[issue2423] test_smtplib.py no longer butt slow

2010-08-01 Thread Richard Jones
Richard Jones added the comment: The patch to test_smtplib.py no longer applies since trunk is now py3k. I'm looking into it - and seeing whether the mock socket work I implemented for test_smtpd.py will have any common code. I'm hitting some "fun" areas of py3k-ness with bytes/str stuff in s

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2010-08-01 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: > Well, that makes it the user-specific equivalent of /usr or /usr/local. > Do you put your configuration files in /usr/local ? Why put them > in .local ? Yes, software built for /usr/local will often respect /usr/local/etc in addition to /etc. Also, many de

[issue5510] patches for Modules/socketmodule.c for NetBSD

2010-08-01 Thread Ramsey Dow
Ramsey Dow added the comment: I don't know. I switched to Linux from NetBSD and I don't use Python for anything anymore. On Jul 31, 2010, at 5:27 PM, Éric Araujo wrote: > > Éric Araujo added the comment: > > Does the bug still exist in 3.2 (branch named py3k in subversion)? > Do the patch

[issue1047397] cgitb failures

2010-08-01 Thread William McVey
Changes by William McVey : -- nosy: +wam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1553375] Add traceback.print_full_exception()

2010-08-01 Thread R. David Murray
R. David Murray added the comment: Here's a proof of concept patch that adds a 'fullstack' option to print_exception. The problem with this concept is what happens when you use it on an exception caught at the top level of a module. I'm not entirely clear on why tracebacks work the way they

[issue9315] The trace module lacks unit tests

2010-08-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Aug 1, 2010 at 11:05 PM, Eli Bendersky wrote: .. > The fake module was the least intrusive way I could think of to simulate > stuff for trace.py - > it's a scalable approach if I'll need more than one module in the future for > some stress- > te

[issue9315] The trace module lacks unit tests

2010-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: I understand you, Alexander, but this problem (as is the previous) **doesn't have anything to do with the fake module**. It would happen even if I didn't have it. Why does it only strike this test, then? Because of my usage of __file__ to compare expected res

[issue9315] The trace module lacks unit tests

2010-08-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: While it may be instructive to get to the bottom of what causes this behavior, I believe the right thing to do is to simply place traced code in a separate file in the test directory. Faking a module by manipulating sys.modules is hard to make robust. --

[issue9249] struct.pack and Long Integer datatype should be 4, but is 8 bytes

2010-08-01 Thread Meador Inge
Changes by Meador Inge : -- nosy: +minge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue9315] The trace module lacks unit tests

2010-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: The single test-runner in regrtest.py (runtest_inner) uses the standard import machinery (__import__) to load tests. Thus, is the test has been loaded recently (**) it is reloaded from its .pyc file. In such a case, its module __file__ var points to the .pyc f

[issue9452] configparser support for reading from strings and dictionaries

2010-08-01 Thread Brian Curtin
Brian Curtin added the comment: Although you say this is fairly common, I haven't heard of anyone using or requesting this type of feature. Do you have any real-world use cases for this? Before we start adding more read methods I think we should know who wants them and why. I'm not sure dupl

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Catherine Devlin
Changes by Catherine Devlin : -- nosy: -ted.turocy Added file: http://bugs.python.org/file18320/argparse_test.patch ___ Python tracker ___ ___

[issue9315] The trace module lacks unit tests

2010-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: I see a curious behavior with the test runs. To reproduce: 1. Clean up .pyc files in test/ dir 2. Run: py27 regrtest.py -v test_trace---> SUCCESS 3. Run again: py27 regrtest.py -v test_trace---> FAIL Initial investigation points to my usage of __file__

[issue803422] sgmllib doesn't support hex or Unicode character references

2010-08-01 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Rejected since this didn't make it into Python 2.7. -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue9452] configparser support for reading from strings and dictionaries

2010-08-01 Thread Łukasz Langa
Łukasz Langa added the comment: Patch updated after review by Ezio Melotti. To answer a common question that came up in the review: all atypical names and implementation details are there due to consistency with existing configparser code, e.g.: * readstring ~= readfp (no _ between words)

[issue9452] configparser support for reading from strings and dictionaries

2010-08-01 Thread Łukasz Langa
Changes by Łukasz Langa : Removed file: http://bugs.python.org/file18318/issue9452.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8536] Support new features of ZLIB 1.2.4

2010-08-01 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +Todd.Rovito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8743] set() operators don't work with collections.Set instances

2010-08-01 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue8572] httplib getheader() throws error instead of default

2010-08-01 Thread R. David Murray
R. David Murray added the comment: I'm changing this to release blocker because I don't want to see the erroneous behavior make it into 3.2. -- priority: high -> release blocker ___ Python tracker

[issue8572] httplib getheader() throws error instead of default

2010-08-01 Thread R. David Murray
R. David Murray added the comment: Joining the iterator contents if default is an iterator is an ugly backward compatibility hack. The default should really be returned unchanged. But given there is code in the field working around the current bug, I guess we have to retain it. Of course,

[issue9452] configparser support for reading from strings and dictionaries

2010-08-01 Thread Łukasz Langa
Łukasz Langa added the comment: There goes the patch. -- keywords: +patch nosy: +ezio.melotti Added file: http://bugs.python.org/file18318/issue9452.diff ___ Python tracker ___ _

[issue9452] configparser support for reading from strings and dictionaries

2010-08-01 Thread Łukasz Langa
New submission from Łukasz Langa : Overview It's a fairly common need in configuration parsing to take configuration from a string or a Python data structure (most commonly, a dictionary). The attached patch introduces two new methods to RawConfigParser that serve this purpose: reads

[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-01 Thread R. David Murray
R. David Murray added the comment: Thanks, Éric. Fixed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2010-08-01 Thread Michael Foord
Michael Foord added the comment: I still think that user editable configuration data, at least on windows, is different from application data. It would definitely seem weird to me to have a config file in the %APPDATA% directory. %APPDATA% would be fine for a cache or other application specif

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Theodore Turocy
Theodore Turocy added the comment: I'm uploading a new version of my patch which includes a proposed clarification to the documentation about the behavior in this case. Doug, does this make the documentation clearer to you? It is now explicit about the behavior for formulating the help opti

[issue9276] pickle should support methods

2010-08-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Not a proposed solution, but food for thought. Methods do have __reduce_ex__ method which works with protocol 3: >>> class X: ... def f(self): ... pass >>> X.f.__reduce_ex__(3) (, (,), {}, None, None) This result is useless for several reasons:

[issue8743] set() operators don't work with collections.Set instances

2010-08-01 Thread Guido van Rossum
Guido van Rossum added the comment: No idea, I don't even know what collections.Set is. :-( -- assignee: gvanrossum -> ___ Python tracker ___ ___

[issue8634] get method for dbm interface

2010-08-01 Thread Benjamin VENELLE
Benjamin VENELLE added the comment: Yes I know, that's why get() should be a standard dbm's method like __getitem__() and __setitem__(). So, defining it in all classes which implements dbm interface would be a good enhancement. -- ___ Python tracke

[issue1303434] Please include pdb with windows distribution

2010-08-01 Thread James Lee
James Lee added the comment: Ah, sorry, I see what you mean now... I thought the request for patch was to modify the installer itself, but it meant just make the msi.py script generate a separate zip file alongside the .msi installer. I'll take a look at providing a patch with this over the ne

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-08-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: critical -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread gert cuykens
gert cuykens added the comment: On Mon, Aug 2, 2010 at 12:06 AM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > There are, perhaps 3 main issues with new features; > > 1. What is the specific proposal? > > In particular, where should the new menu entry go and what should it sa

[issue9451] Strengthen __*__ system name warning

2010-08-01 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +Clarify __debug__ restrictions ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue9100] test_sysconfig fails (test_user_similar)

2010-08-01 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue8634] get method for dbm interface

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: dbm.ndbm already has get(). dbm.gnu is missing it. -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2010-08-01 Thread Éric Araujo
Éric Araujo added the comment: Pointed out by Tarek: http://github.com/ActiveState/appdirs#readme (shame it doesn‘t follow the BaseDir Spec on Free OSes). -- ___ Python tracker

[issue9451] Strengthen __*__ system name warning

2010-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Suggested rewrite: "System-defined names. These names are defined by the interpreter and its implementation (including the standard library). Current system names are discussed in the Special method names section and elsewhere. More will likely be defined in

[issue8758] BUILD_LIST followed by BINARY_SUBSCR can be optimized to a BUILD_TUPLE if all members of the list are constants

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: I don't think this happens often enough to warrant optimizing. -- nosy: +georg.brandl resolution: -> rejected status: open -> closed ___ Python tracker _

[issue8612] multiprocessing Queue module failes to send INIConfig objects

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: The issue in the iniparse tracker has been closed as "fixed" now, so I assume the problem was on that side. -- nosy: +georg.brandl resolution: -> works for me status: open -> closed ___ Python tracker

[issue8009] email.parser.Parser is inefficient with large strings

2010-08-01 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8042] mmap buffer implementation does not respect seek pos

2010-08-01 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9451] Strengthen __*__ system name warning

2010-08-01 Thread Terry J. Reedy
New submission from Terry J. Reedy : Current" 2.3.2. Reserved classes of identifiers "__*__ System-defined names. These names are defined by the interpreter and its implementation (including the standard library); applications should not expect to define additional names using this conventi

[issue1772916] xmlrpclib crash when PyXML installed - sgmlop is available

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: Both PyXML and sgmlop are deprecated now, and support has been removed in xmlrpclib as of Python 2.7. I think this can be closed. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python t

[issue1303434] Please include pdb with windows distribution

2010-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: > While including the PDB in the MSI distribution > would require a patch (and might not be the best solution since 99% > of people won't need it), copying the PDB to some place does not This is not the case. I'm not at all clear what specific files are being

[issue8572] httplib getheader() throws error instead of default

2010-08-01 Thread Walter Woods
Walter Woods added the comment: Sigh. I meant ``or not`` instead of ``or``. Clearly, not having an iterator would be a case to not iterate over the default :) -- ___ Python tracker __

[issue8572] httplib getheader() throws error instead of default

2010-08-01 Thread Walter Woods
Walter Woods added the comment: Hi David, I like most of your patch (especially since it has unit tests), and if people like yourself are actually using the current functionality then that's fine, but one recommendation: why not change this line: if not headers or isinstance(headers, str):

[issue1303434] Please include pdb with windows distribution

2010-08-01 Thread James Lee
James Lee added the comment: Right now if you have any moderately complex Python based application (or extension set) the only way to easily debug it on windows is by building Python yourself, which is a horrible solution since it means you may end up with a subtly different version to what y

[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are, perhaps 3 main issues with new features; 1. What is the specific proposal? In particular, where should the new menu entry go and what should it say. 2. Will it hurt anything? 3. Will it be useful. As to these, I suggest you try your own experiment

[issue5077] 2to3 fixer for the removal of operator functions

2010-08-01 Thread Meador Inge
Meador Inge added the comment: Sure. I take it you meant http://svn.python.org/projects/sandbox/trunk/2to3, though. Is this the location that all patches for 2to3 should be produced against? I dropped the documentation changes b/c I did not see any docs in the 2to3 trunk. Should the doc u

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: Follow-up at http://selenic.com/pipermail/mercurial-packaging/2010-August/09.html -- ___ Python tracker ___ __

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied in r84356. Thank you. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2010-08-01 Thread Éric Araujo
Éric Araujo added the comment: I guess I misremembered. %APPDATA% is /usr/share, right? What I meant was the variable that expands to the “documents and settings” directory. -- ___ Python tracker _

[issue9449] glibc detected *** /usr/bin/python: corrupted double-linked list

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the update! -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailin

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-01 Thread Matt Mackall
Matt Mackall added the comment: Ok, we need a change that will work with Python 2.4 through 2.7. -- ___ Python tracker ___ ___ Python-

[issue8821] Range check on unicode repr

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: You're right. Reverted in r83444 and merging back, and I'll also remove the "XXX is this needed" from 2.7. -- status: open -> closed ___ Python tracker _

[issue9449] glibc detected *** /usr/bin/python: corrupted double-linked list

2010-08-01 Thread Nikolaus Rath
Nikolaus Rath added the comment: Duplicate of http://projects.scipy.org/numpy/ticket/1462 -- status: open -> closed ___ Python tracker ___ ___

[issue9449] glibc detected *** /usr/bin/python: corrupted double-linked list

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: Is there any chance you could come up with a smaller python example that produces this crash? Preferably one without dependencies on third-party libraries like numpy, h5py and matplotlib? It's a bit awkward to reproduce and analyze the failure otherwise. -

[issue8821] Range check on unicode repr

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the patch was technically useless since, as mentioned, unicode strings are terminated by a NUL character by design. Anyway, I now get the following error on the 2.7 branch. Perhaps it's related: ==

[issue8397] BZ2File doesn't protect against mixed iterator and read usage

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r83440 (py3k), r83441 (3.1), r83442 (2.7), r83443 (2.6). -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread gert cuykens
gert cuykens added the comment: On Sun, Aug 1, 2010 at 4:55 PM, Tal Einat wrote: > > Tal Einat added the comment: > > I'm +1 on adding such an option to the menu, if only to be able to highlight > files including only Python code which don't happen to have the .py extension. > > If support fo

[issue9450] readline.replace_history_item leaks memory.

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: It turns out that free_history_entry is new in GNU Readline 5.0. It doesn't exist in libedit. -- ___ Python tracker ___ __

[issue8994] pydoc does not support non-ascii docstrings

2010-08-01 Thread Florent Xicluna
Florent Xicluna added the comment: Oops, I really mean #6625. -- status: pending -> open superseder: help() doesn't accept unicode literals in built in docstrings -> UnicodeEncodeError on pydoc's CLI ___ Python tracker

[issue8994] pydoc does not support non-ascii docstrings

2010-08-01 Thread Florent Xicluna
Florent Xicluna added the comment: A duplicate of #7675? -- nosy: +flox resolution: -> duplicate status: open -> pending superseder: -> help() doesn't accept unicode literals in built in docstrings ___ Python tracker

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: this fix was done to avoid generating broken MANIFEST file with sdist. IIUC your problem is more about avoiding generating a MANIFEST file at *all* via sdist, so we should add a --no-manifest option to the sdist command. This can be added today in Mercurial setu

[issue8397] BZ2File doesn't protect against mixed iterator and read usage

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch for py3k. -- keywords: +patch nosy: +georg.brandl Added file: http://bugs.python.org/file18315/bziter.patch ___ Python tracker _

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-01 Thread Matt Mackall
Matt Mackall added the comment: This change just wrecked Mercurial's release build process. We've been building Mercurial release tarballs with a Makefile target wrapped around sdist for most of five years, and we've never had or wanted a MANIFEST.in file. We generate an exact, complete, and

[issue7900] posix.getgroups() failure on Mac OS X

2010-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The other problem is fixed in r83431 for the py3k trunk. I'll check the buildbot status tomorow morning, if that shows that the issue is truly gone I'll backport to the other branches and close this issue. -- ___

[issue9450] readline.replace_history_item leaks memory.

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: See also issue #8065. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9450] readline.replace_history_item leaks memory.

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: This patch fixes the leaks in replace_history_item, remove_history_item (similar), and get_current_history_length. I'm not sure which version of the GNU history library introduced free_history_entry (which is used by this patch). I also haven't checked whet

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-08-01 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8065] Memory leak in readline.get_current_history_length

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: See also issue 9450 (leaks in readline.replace_history_item and readline.remove_history_item). -- nosy: +mark.dickinson ___ Python tracker ___

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2010-08-01 Thread Michael Foord
Michael Foord added the comment: As a (mainly ex) windows user I would hate to have user editable data in APPDATA as it is not a location the user ever expects to visit. The home directory, or a subdirectory thereof, for user editable app specific data is more usual and more friendly. --

[issue7900] posix.getgroups() failure on Mac OS X

2010-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The 2.6 problem (the solaris buildbot you link to) should be fixed in r83420. -- ___ Python tracker ___ ___

[issue5776] RPM build error with python-2.6.spec

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83417. Thanks! -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9450] readline.replace_history_item leaks memory.

2010-08-01 Thread Mark Dickinson
New submission from Mark Dickinson : Some functions in the readline module appear to leak memory; readline.replace_history_item is one of these: Test code: import readline readline.clear_history() readline.add_history("first line") readline.add_history("second line") while True: readline.

[issue8123] TypeError in urllib when trying to use HTTP authentication

2010-08-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r83415 and r83416. -- resolution: accepted -> fixed stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker __

[issue9441] increase logging handlers test coverage

2010-08-01 Thread Tom Dunham
Tom Dunham added the comment: Good point, thank you. I've updated the patch. -- Added file: http://bugs.python.org/file18313/rotating_file_handlers.patch ___ Python tracker ___ _

[issue7900] posix.getgroups() failure on Mac OS X

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Reopening. This seems to have broken a couple of buildbots (two different issues): http://www.python.org/dev/buildbot/builders/x86%20FreeBSD%202.7/builds/44/steps/test/logs/stdio http://www.python.org/dev/buildbot/builders/sparc%20solaris10%20gcc%202.6/builds/7

[issue8743] set() operators don't work with collections.Set instances

2010-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido, do you have a recommendation? -- assignee: rhettinger -> gvanrossum nosy: +gvanrossum ___ Python tracker ___ _

[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks. Fixed in r83411 (py3k), r83412 (2.7), r83413 (3.1). -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann
Doug Hellmann added the comment: Sorry I'm not being clear: I do like the patch, I think the exception should not be raised. -- ___ Python tracker ___ __

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Steven Bethard
Steven Bethard added the comment: A doc patch would also be welcome, but I do think it's a bug that "ArgumentParser(prefix_chars='+')" throws an exception, and I think Ted's patch looks fine to me. -- ___ Python tracker

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann
Doug Hellmann added the comment: Explicitly specifying aliases makes sense, it just wasn't clear that was the intent from the existing documentation. So, I don't think the behavior needs to change, but a doc update might help. -- ___ Python tracke

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks! That fixes all the test_io leaks I was seeing. -- ___ Python tracker ___ ___ Python-bugs-li

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Steven Bethard
Steven Bethard added the comment: It is intentional that you have to specify both "/foo" and "+foo" if you want them to be aliases for the same argument. A common use case for prefix_chars is to define "+x" and "-x" options, which usually mean different things. As far as the current issue, I

[issue9449] glibc detected *** /usr/bin/python: corrupted double-linked list

2010-08-01 Thread Nikolaus Rath
New submission from Nikolaus Rath : $ python --version Python 2.6.5 $ pylint --version pylint 0.21.1, astng 0.20.1, common 0.50.3 Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] $ pylint pylint_crasher.py * Module pylint_crasher R0903: 62:Config: Too few public metho

[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- type: behavior -> resource usage versions: +Python 2.6, Python 2.7, Python 3.1 ___ Python tracker ___ __

[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you try the following patch: diff -r 962e1a7a40fd Modules/_io/bufferedio.c --- a/Modules/_io/bufferedio.c Sun Aug 01 17:30:56 2010 +0200 +++ b/Modules/_io/bufferedio.c Sun Aug 01 18:39:39 2010 +0200 @@ -636,6 +636,8 @@ _buffered_init(buffered *self)

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: Minimal example to reproduce: the script below exhausts my system memory in a minute or two. import io rawio = io.BytesIO(b"abc") bufio = io.BufferedReader(rawio) while True: bufio.__init__(rawio) -- ___ Pytho

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: test_constructor (test.test_io.CBufferedReaderTest) appears to be one of the offending tests. This is probably not an OS X specific problem. Removing 'Mac' from components. -- assignee: ronaldoussoren -> components: -Macintosh

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
New submission from Mark Dickinson : regrest -L detects a memory leak in test_io, on OS X 10.6.4. newton:py3k dickinsm$ ./python.exe Lib/test/regrtest.py -L test_io test_io Testing large file ops skipped on darwin. It requires 2147483648 bytes and a long time. Use 'regrtest.py -u largefile tes

[issue8994] pydoc does not support non-ascii docstrings

2010-08-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8105] mmap crash on Windows with out of range file descriptor

2010-08-01 Thread Brian Curtin
Brian Curtin added the comment: Fixed in r83407 (py3k), r83409 (release31-maint), and r83410 (release27-maint). -- assignee: -> brian.curtin components: +Extension Modules -Library (Lib) resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___

[issue8078] add more baud constants to termios

2010-08-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9441] increase logging handlers test coverage

2010-08-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I noticed that you use timedelta.total_seconds in secs which returns a float while no test covers fractional number of seconds. While not a problem with your choice of tests, equality comparison of floating point values commonly leads to fragile tests.

[issue5551] os.path.ismount takes a cross-device symlink for a mountpoint

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: Thanks, should be fixed in r83408. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5258] addpackage in site.py fails hard on badly formed .pth files

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: Adding a patch that catches exceptions in a single addpackage() call and prints them. I'd like to have more input though if this is a Good Thing(tm). -- assignee: -> r.david.murray keywords: +patch nosy: +georg.brandl, r.david.murray Added file: http:/

[issue3757] threading.local doesn't support cyclic garbage collecting

2010-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> keywords: +easy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ __

[issue5320] I/O error during one-liner gives bad diagnostic (and fails to return OS error status)

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: I think this can be merged with #5319. -- nosy: +georg.brandl resolution: -> duplicate status: open -> closed superseder: -> I/O error during one-liner fails to return OS error status ___ Python tracker

[issue5319] I/O error during one-liner fails to return OS error status

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: Python 2.6, from #5320: $ python2.6 -c 'print 1, 2, 3' > /dev/full || echo error status close failed in file object destructor: Error in sys.excepthook: Original exception was: $ Python 3.1 doesn't output anything and also doesn't set an error status.

[issue3757] threading.local doesn't support cyclic garbage collecting

2010-08-01 Thread Georg Brandl
Georg Brandl added the comment: Do you want to fix that? -- assignee: -> pitrou nosy: +georg.brandl ___ Python tracker ___ ___ Python

  1   2   >