Jacques Grove jacq...@tripitinc.com added the comment:
And another, bit less pathological, testcase. Sorry for the ugly testcase; it
was much worse before I boiled it down :-)
$ cat test.py
import re, regex
text = \nTest\nxyz\nxyz\nEnd
regexp = '(\nTest(\n+.+?){0,2}?)?\n+End'
print
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Updated and applied in r86022.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5729
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
title: Add a thrading.Condition.wait_for() method - Add a
threading.Condition.wait_for() method
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10260
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
My patch handles the described situation, albeit a bit poorly ...
Let us know when you've got a cleaned-up patch and have run the round-trip
tests on a broad selection of files.
For your test case, don't feel compelled to
New submission from Karsten Wolf karste...@web.de:
It would be helpful to have a tarfile iterator that does not cache every
archive member encountered.
This makes it nearly impossible to iterate over an archive with millions of
files.
--
components: Library (Lib)
messages: 120041
Lars Gustäbel l...@gustaebel.de added the comment:
I assume you're using Python 2.x. because tarfile's memory footprint was
significantly reduced in Python 3.0, see the patch in issue2058 and r62337.
This patch was not backported to the 2.x branch back then. As the 2.x branch
has been closed
Karsten Wolf karste...@web.de added the comment:
Yes, I'm on 2.6. I checked the Python 3.x tarfile just for this one line in
TarFile.next():
self.members.append(tarinfo)
to conclude it would have the same problem.
Reducing 2.5gb memory usage as measured in my particular case by 60%, still
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10254
___
Changes by Antoine Pitrou pit...@free.fr:
--
type: feature request - resource usage
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10261
___
New submission from Arfrever Frehtes Taifersar Arahesis
arfrever@gmail.com:
Some packagers might want to disable ABI flags. The attached patch adds
--disable-abi-flags option to `configure`.
--
components: Build
files: python-abi-flags.patch
keywords: patch
messages: 120044
nosy:
New submission from Doug Hellmann doug.hellm...@gmail.com:
Running python -m site is supposed to print a report about the current import
path and its components (like USER_BASE and USER_SITE).
This works under 2.6 and 3.1, but not 2.7. No output is produced under 2.7 at
all.
When I add a
Brian Brazil brian.bra...@gmail.com added the comment:
Fixing title.
--
title: Fix resource warnings in distutil test_tokenize - Fix resource warnings
in test_tokenize
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10258
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +eric.araujo, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10263
___
___
New submission from Brian Brazil brian.bra...@gmail.com:
Please see attached.
--
components: Tests
files: test_smtplib_fd_leak.patch
keywords: patch
messages: 120047
nosy: bbrazil
priority: normal
severity: normal
status: open
title: Fix resource warnings in test_smtplib
versions:
Changes by Mike Auty mike.a...@gmail.com:
--
nosy: +ikelos
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9561
___
___
Python-bugs-list mailing
Nick Coghlan ncogh...@gmail.com added the comment:
Since it works for me (I tried both r84120, my old 2.7 build from August or so,
and r86033, which is the 2.7 head), we'll need more information. The starting
blurb from the interactive prompt would be a good place to start.
(-m was slightly
New submission from Brian Brazil brian.bra...@gmail.com:
Please see attached.
It's possible that this change will lead to fds leaking if someone is passing
in a fd, however a) this is consistent with how other modules (e.g. uu) do it
and b) of the 2 (!) uses of this module I found on Google
Per Øyvind Karlsen peroyv...@mandriva.org added the comment:
I've uploaded a new version of the patch to
http://codereview.appspot.com/2724043/ now.
I'd be okay on doing maintenance directly against the CPython repository btw. :)
--
___
Python
Brian Curtin cur...@acm.org added the comment:
Forget the attachment?
--
nosy: +brian.curtin
type: - resource usage
versions: +Python 3.2 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10265
Doug Hellmann doug.hellm...@gmail.com added the comment:
I downloaded an OS X installer from python.org, but I don't remember the date I
did that.
Here's the output when I start the interpreter:
$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
$ python
Python 2.7
Nick Coghlan ncogh...@gmail.com added the comment:
Note also that site.py runs twice when used with -m: once implicitly during
interpreter startup, and a second time as the main module. Due to the way the
interpreter starts up and figures out sys.path, it is possible for the implicit
import
New submission from Brian Brazil brian.bra...@gmail.com:
I missed this when fixing issue 10246. The attached patch fixes this and adds a
test that produces a resource warning with the old code.
--
components: Library (Lib)
files: uu_decode_fd_leak.patch
keywords: patch
messages: 120054
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10263
___
___
Python-bugs-list
Doug Hellmann doug.hellm...@gmail.com added the comment:
Actually I'm trying to update the PyMOTW article about site, and I discovered
that the output from the old examples that showed using --user-base and
--user-site were no longer producing any output. It looks like the build of
2.7 I
Brian Brazil brian.bra...@gmail.com added the comment:
That'd help alright.
--
keywords: +patch
Added file: http://bugs.python.org/file19446/sunau_fd_leak.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10265
Nick Coghlan ncogh...@gmail.com added the comment:
r82508 is the correct release binary (created after the error I mentioned above
was fixed).
I've CC'ed Ronald to see if he can shed any light - it may be a platform
specific issue with the way sys.path is calculated.
--
Doug Hellmann doug.hellm...@gmail.com added the comment:
Ah, I assumed that since the revision number was older there might be a newer
build available now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10263
Antoine Pitrou pit...@free.fr added the comment:
The PyUnicode_GET_SIZE issue was still there, but I've fixed it and committed
in r86036. Thanks for your contribution!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
Nick Coghlan ncogh...@gmail.com added the comment:
No, there won't be another binary release until 2.7.1 comes out. The SVN
revision number ratchets up pretty fast, since it is counting checkins on *all*
branches, even experimental ones.
--
___
Antoine Pitrou pit...@free.fr added the comment:
It's possible that this change will lead to fds leaking if someone is
passing in a fd
I don't think so, why do you say that?
That said, there's an indentation problem in your patch.
--
nosy: +pitrou
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +giampaolo.rodola, r.david.murray
stage: - patch review
type: - resource usage
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10264
___
Antoine Pitrou pit...@free.fr added the comment:
Now that the previous patch has been committed, could you post a patch against
current SVN?
--
nosy: +pitrou
type: - resource usage
versions: +Python 3.2 -Python 3.3
___
Python tracker
Neil Schemenauer nas-pyt...@arctrix.com added the comment:
Oops, my patch doesn't work since m_base can be shared by more than one module
instance. I guess a different solution would be to cleanup the m_copy
references on interpreter shutdown. Somehow they would have to be found though.
Brian Brazil brian.bra...@gmail.com added the comment:
The patch is against current SVN.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10266
___
Antoine Pitrou pit...@free.fr added the comment:
Oops, sorry. I hadn't seen that this was about a different function.
I've committed the patch in r86037.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Brian Brazil brian.bra...@gmail.com added the comment:
Currently, if you pass in a fd it'll be closed by the __del__. My patch no
longer does this so any use of the module depending on this behaviour could
leak an fd. However, noone seems to use the module that way.
V2 attached.
--
New submission from Antoine Pitrou pit...@free.fr:
This can be seen on all 3 branches:
$ ./python -m test.regrtest -uall -R 3:2 test_ttk_guionly
[306/349] test_ttk_guionly
beginning 5 repetitions
12345
.
test_ttk_guionly leaked [590, 590] references, sum=1180
--
components: Tkinter
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: rhettinger -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9685
___
Martin v. Löwis mar...@v.loewis.de added the comment:
After starting to review the code, I'm becoming skeptical whether this is the
right approach. This does way to much action in C, and thus becomes complicated
but also limited.
An alternative approach would be to just expose lzma_code to
New submission from Arfrever Frehtes Taifersar Arahesis
arfrever@gmail.com:
I would like to suggest introduction of --enable-loadable-sqlite-extensions
option, so that packagers (and maybe other users) don't need to comment out 1
line in setup.py. I'm attaching the patch.
--
Benjamin Peterson benja...@python.org added the comment:
r86045
--
nosy: +benjamin.peterson
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10268
Benjamin Peterson benja...@python.org added the comment:
r86046. Thanks
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10264
Brett Cannon br...@python.org added the comment:
On Sat, Oct 30, 2010 at 06:04, Antoine Pitrou rep...@bugs.python.org wrote:
Antoine Pitrou pit...@free.fr added the comment:
Committed in r85975 (3.2). I guess we'll do a big svnmerge to other branches
later.
Or not at all. I honestly have
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Applied in r86049.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10110
___
Brian Brazil brian.bra...@gmail.com added the comment:
The garbage collector should take care of the vast majority of these, it's only
bugs in the C like issue 10253 that I'd worry about.
--
___
Python tracker rep...@bugs.python.org
Brian Curtin cur...@acm.org added the comment:
A fix to this would help silence a number of ResourceWarning messages coming
out of the test suite.
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9846
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Removed the inaccurate description.
See r86053.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10025
New submission from Brian Brazil brian.bra...@gmail.com:
Please see attached.
--
components: Tests
files: test_sax_fd_leak.patch
keywords: patch
messages: 120077
nosy: bbrazil
priority: normal
severity: normal
status: open
title: Fix some resource warnings in test_sax
versions: Python
Benjamin Peterson benja...@python.org added the comment:
r86055
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10269
___
New submission from Brian Brazil brian.bra...@gmail.com:
Please see attached.
--
components: Tests
files: test_threading_fd_leak.patch
keywords: patch
messages: 120079
nosy: bbrazil
priority: normal
severity: normal
status: open
title: Fix resource warnings in test_threading
Added file:
New submission from lekma lekma...@gmail.com:
Overriding warnings.showwarning() with a c/python module function (from a
c/python module) doesn't work because warn_explicit() only allow PyFunction or
PyMethod objects to be called (unfortunately c/python module functions are of
type
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10271
___
Changes by Brett Cannon br...@python.org:
--
versions: -Python 2.6, Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10271
___
David Watson bai...@users.sourceforge.net added the comment:
FWIW, you can do the same on a Linux box, i.e. setup the host name
and domain to some completely bogus values. And as David pointed out,
without also updating the /etc/hosts on the Linux, you always get the
resolver error with
Mathieu Bridon boche...@fedoraproject.org added the comment:
I finally found the time to follow up on this issue, sorry for the absence of
response.
The thread on Python-Ideas didn't really lead to a consensus (nor did it
generate a lot of discussion).
Some wanted to see this in fnmatch,
Changes by Mathieu Bridon boche...@fedoraproject.org:
Removed file: http://bugs.python.org/file18497/curly-fnmatch.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9584
___
Ned Deily n...@acm.org added the comment:
Unfortunately, the problem here is caused by having setuptools or Distribute
installed. As released, both setuptools and Distribute install an
easy-install.pth into site-packages to insert its egg into sys.path. If you
look inside the egg, you'll see
Per Øyvind Karlsen peroyv...@mandriva.org added the comment:
LZMAFile, LZMACompressor LZMADecompressor are all inspired by and written to
be as similar to bz2's for easier use maintenance. I must admit that I
haven't really put much thought into alternate ways to implement them beyond
Antoine Pitrou pit...@free.fr added the comment:
I feel guilty of having said, some months ago, that Well, I wouldn't say
bz2module is the best module out there, but as you say it's probably good
enough (my words).
It's true that bz2module is not awful in terms of coding style or quality; the
Per Øyvind Karlsen peroyv...@mandriva.org added the comment:
Hehe, don't feel guily on my part at least, I had already implemented it like
this long before. :p
I guess I could rewrite it following these suggestions, but I probably won't be
able to finish it in time for 3.2 beta.
--
Antoine Pitrou pit...@free.fr added the comment:
Committed in r86067. Thank you Brian!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10265
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Fixed in r86066, r86068 and r86069.
--
resolution: - fixed
status: open - closed
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7447
Martin v. Löwis mar...@v.loewis.de added the comment:
LZMAFile, LZMACompressor LZMADecompressor are all inspired by and
written to be as similar to bz2's for easier use maintenance. I
must admit that I haven't really put much thought into alternate ways
to implement them beyond monkey see,
New submission from Antoine Pitrou pit...@free.fr:
The issue here is that ssl is using its own exception class rather than the
socket module's timeout class:
test test_httplib failed -- Traceback (most recent call last):
File
Martin v. Löwis mar...@v.loewis.de added the comment:
I guess I could rewrite it following these suggestions, but I probably won't
be able to
finish it in time for 3.2 beta.
The more I think about it, the more I feel like -1 about this code as
long as it uses stdio, and does buffering. We
Martin v. Löwis mar...@v.loewis.de added the comment:
I think this approach (of file19364) is reasonable.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue775964
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Fixed in r86070, r86071, and r86072.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7402
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7402
___
Doug Hellmann doug.hellm...@gmail.com added the comment:
That's strange. I have Distribute 0.6.10, including an easy-install.pth file,
installed under 2.6 and it doesn't exhibit the problem. Is there some
interaction between a change in Python 2.7 and Distribute?
--
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Fixed. See r86073.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9886
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Have looked at this again and think I don't care what happens to it. The gain
is minimal but it doesn't take much extra core. Like Fred, I'm not sure having
another code path to test and maintain just to save 5 bytes.
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10254
___
___
Ned Deily n...@acm.org added the comment:
For me, python2.6 exhibits the same behavior as python2.7, using either
Distribute 0.6.14 or 0.6.10 for both (this is on OS X with a stock framework
build but that should not be significant). Perhaps you have a file permissions
problem with your 2.6
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I'll fix this in 2.7.
For 3.2, may remove the method entirely (for the reasons discussed on
python-dev).
--
assignee: michael.foord - rhettinger
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
“Python” is lower-cased only when referring to the executable (as a file)
itself. When talking about the language, the implementation or the VM in an
abstract way (not a file), It think it’s always “Python”.
--
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 2.7, Python 3.1 -Python 2.6, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue775964
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9977
___
___
Python-bugs-list
New submission from Raymond Hettinger rhettin...@users.sourceforge.net:
* Dedocument assertSetEqual, assertDictEqual, assertListEqual, and
assertTupleEqual. These are all automatically dispatched from assertEqual.
The user need not call any of these directly. These methods should not have
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10273
___
___
Antoine Pitrou pit...@free.fr added the comment:
I would prefer assertRegex to assertRegexp.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10273
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10242
___
___
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
The attached patch fixes output of `configure`.
--
keywords: +patch
nosy: +Arfrever, benjamin.peterson
Added file: http://bugs.python.org/file19452/python-configure-getaddrinfo.patch
Benjamin Peterson benja...@python.org added the comment:
r86075
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7059
___
Changes by Michael Foord mich...@voidspace.org.uk:
--
assignee: rhettinger - michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10242
___
Michael Foord mich...@voidspace.org.uk added the comment:
As this has been released in 2.7 (and unittest2) I don't think it can be just
removed in 3.2 - it would make porting code from Python 2 to 3 more painful.
Very happy for you to fix in Python 2.7. Please let me know when it goes in so
Michael Foord mich...@voidspace.org.uk added the comment:
David - would you get a good approximation of what you want simply with:
self.assertEqual(ascii(first), ascii(second))
(This actually returns b'first' b'second' so you may want a convenience
function that chops the leading and
Michael Foord mich...@voidspace.org.uk added the comment:
In general *none* of this should be done until there is clear consensus on
Python-dev and it isn't clear that this is the case.
* On the deocumenting: barry warsaw objects to public apis that aren't
documented and gregory smith asserts
david db.pub.m...@gmail.com added the comment:
So I know the current patch doesn't support IP addresses but I thought I would
link to what mozilla considered a security problem(just for future reference):
CVE-2010-3170: http://www.mozilla.org/security/announce/2010/mfsa2010-70.html
Security
New submission from david db.pub.m...@gmail.com:
imaplib should provide a means to validate a remote server ssl certificate(s).
So currently imaplib allows you to do the following:
import imaplib
conn = imaplib.IMAP4_SSL(imap.gmail.com)
#the following should fail
conn =
Changes by py.user port...@yandex.ru:
--
resolution: invalid - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8555
___
___
Python-bugs-list
New submission from py.user port...@yandex.ru:
import os
m = os
type(m)
class 'module'
isinstance(m, module)
Traceback (most recent call last):
File stdin, line 1, in module
NameError: name 'module' is not defined
n = 1
type(n)
class 'int'
isinstance(1, int)
True
--
Brian Curtin cur...@acm.org added the comment:
See the types module, specifically types.ModuleType. Compare that to your
type(os) result.
This is not a support channel. Please see python-list for these types of
questions.
--
nosy: +brian.curtin
resolution: - rejected
stage: -
Senthil Kumaran orsent...@gmail.com added the comment:
Not sure, why changed the resolution. It is an invalid bug report. You could
have resolved it by a little research or by asking around.
--
resolution: fixed - invalid
___
Python tracker
93 matches
Mail list logo