[issue2423] test_smtplib.py no longer butt slow

2010-08-03 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: Merged mock socket from test_smtpd.py and committed. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2423

[issue8739] Update to smtpd.py to RFC 5321

2010-08-03 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: The smtpd module now has a test suite. Please add your unit tests to test_smtpd.py -- nosy: +richard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739

[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-03 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: On 2 Aug, 2010, at 21:49, Bill Janssen wrote: Bill Janssen bill.jans...@gmail.com added the comment: So the problem is in the _mac_ver_xml() routine in Lib/platform.py, which says: machine = os.uname()[4] if machine

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

2010-08-03 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Some else backported to 3.1 (that is, 3.1 already contained the fix when I tried the svnmerge) Backported to 2.7 in r83643 Backported to 2.6 in r83650 -- Added file: http://bugs.python.org/file18336/smime.p7s

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

2010-08-03 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___ ___

[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-03 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Fixed in r83644 (3.x), r83645 (3.1), r83646 (2.7), r83651 (2.6) I'm not yet closing the issue, I want to check the buildbots later today. -- resolution: - fixed stage: - committed/rejected status: open - closed versions:

[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2010-08-03 Thread Trundle
Changes by Trundle andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1748064 ___ ___ Python-bugs-list

[issue9458] xml.etree.ElementTree.write(): encoding handling problems

2010-08-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Is this a behavior bug or a doc bug? -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458 ___

[issue9458] xml.etree.ElementTree.write(): encoding handling problems

2010-08-03 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +effbot, flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458 ___ ___

[issue8312] Add post/pre hooks for distutils commands

2010-08-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: And if you don’t allow hooks on other commands, people can still subclass them to add hooks support. I guess it’s best to keep it a consenting adults matter and not adding a restriction that can easily be circumvented. --

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-08-03 Thread W. Trevor King
W. Trevor King wk...@drexel.edu added the comment: And while we're at it, we should also .replace('', 'amp;').replace('', quot;).replace('', 'lt;') which would have to go at the beginning to avoid double-escaping the ''. We could use xml.sax.saxutils.escape to do all the escaping rather

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6517 ___ ___ Python-bugs-list mailing

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The 3.2 docs now don't mention ConfigParser prominently anymore (as part of a different patch that added some features). Could be done in other branches as well. -- ___ Python tracker

[issue6751] Default return value in ConfigParser

2010-08-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +lukasz.langa, merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6751 ___ ___

[issue6751] Default return value in ConfigParser

2010-08-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Why is it needed to add varargs and kwargs instead of only a new “default” argument? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6751

[issue1410680] Add 'surgical editing' to ConfigParser

2010-08-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1410680 ___ ___ Python-bugs-list

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Yes, so the patch part is already solved. The thing that is still open to discussion is whether we should do something like this: 1. Pending-Deprecate naked the ConfigParser class in 3.2. 2. Deprecate it in 3.3. 3. Remove it in 3.4 and rename

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: +1 for deprecation. Nobody *should* be using ConfigParser anyway, and of those who are 99% either wouldn't notice or would have bugs in their code *fixed* by the rename, so I can't see much of a downside. --

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If ConfigParser is not documented first, the name “SafeConfigParser” becomes strange—safe compared to what? These names have an historical motivation and could become clearer if renamed, but I don’t know if python-dev will agree with this

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: If ConfigParser is not documented first, the name “SafeConfigParser” becomes strange—safe compared to what? The first sentence is Derived class of ConfigParser that implements a sane variant of the magical interpolation feature. I think it's

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Agree with Michael, +1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6517 ___ ___

[issue9292] Dead code in Modules/pyexpat.c

2010-08-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9292 ___ ___ Python-bugs-list mailing

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-08-03 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Doc review: Small typo, Flase vs False. Also, exceptions are raised rather than thrown in Python land (same for the docstring). Both exception references should be :exc:`OSError`. Here fixed these doc problems. Thanks for reviewing! Besides,

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-08-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks for bringing that up, I've now fixed all these instances of throw that should be raise. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The first sentence is Derived class of ConfigParser that implements a sane variant of the magical interpolation feature. I think it's enough for an explanation. True. but I don’t know if python-dev will agree with this deprecation. I wrote

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Are 2.6 docs built by an older Sphinx version? I wonder why the text uses “the :func:`quoteattr` function in the :mod:`xml.sax.saxutils` module” and not “:func:`~xml.sax.saxutils.quoteattr” to get a direct link (or even just “consider using

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: No, that's just a relic from the olden LaTeX days, and I've not paid attention enough to fix it :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9061

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Eric, while I agree that would be nice as well, renaming each and every parser in the module will be more problematic for sure. *** TO ALL: WHAT DO YOU SAY TO A PATH LIKE THIS *** 1) In 3.2 we add an alias: InterpolatingConfigParser =

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: 2010/8/3 Łukasz Langa rep...@bugs.python.org: 1) In 3.2 we add an alias: InterpolatingConfigParser = SafeConfigParser I'd rather see the class renamed and SafeConfigParser made the alias in 3.2. Otherwise, +1 for this plan (msg 112589),

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I'd be happy with aliasing SafeConfigParser to ConfigParser in 3.2. Can we just do this without a deprecation process? -- ___ Python tracker rep...@bugs.python.org

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Making ConfigParser an alias for SafeConfigParser creates a silent behavioral change. An application developer may not realize that users rely on the full ConfigParser anti-glory and end up breaking their configurations without so much as

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Unfortunately, I have to agree with Fred here. We'll stick to renaming and the deprecation process. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6517

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Such constructs are notoriously tedious to grep for; patches are welcome. -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9061

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Sorry - I misunderstood your earlier suggestion Fred. configparser.ConfigParser is the *natural* name for SafeConfigParser. I'm strongly +1 on moving towards that. (I doubt there would *actually* be any real code breakage if we did it

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: By the way, given that deprecation warnings are silent I am strongly -1 on removing the ConfigParser name altogether. That would cause far more breakage. As ConfigParser should not be used at all, and SafeConfigParser provides its

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

2010-08-03 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Yep, I'm fine with you committing this (after adding the prefix=+-/ you suggested). I don't have time right now to test the patches, but the code looks about right, and the tests ran fine for you, so I'm fine with it. --

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Agree on the proposal of Łukasz, with the caveat mentioned by Fred (rename the class and make the old name an alias, for pickle and all). I’ll let Michael and Fred decide if the name ConfigParser has to go or not, I’m happy enough that the

[issue4188] Lib/threading.py causes infinite recursion when running as verbose

2010-08-03 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +minge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4188 ___ ___ Python-bugs-list mailing list

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

2010-08-03 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Hi Ezio, what's the status on this issue for 2.6.6rc1? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7092 ___

[issue5248] Adding T_SIZET to structmember.h

2010-08-03 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +minge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5248 ___ ___ Python-bugs-list mailing list

[issue1172711] long long support for array module

2010-08-03 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +minge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1172711 ___ ___ Python-bugs-list mailing

[issue7828] chr() and ord() documentation for wide characters

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7828 ___ ___ Python-bugs-list mailing

[issue7225] fwrite() compiler warnings

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7225 ___ ___ Python-bugs-list mailing

[issue7186] Document specialness of __doc__, and possibly other special attributes

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7186 ___ ___ Python-bugs-list mailing

[issue7141] 2to3 should add from __future__ import print_statement

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7141 ___ ___ Python-bugs-list mailing

[issue8450] httplib: false BadStatusLine() raised

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___ ___ Python-bugs-list mailing

[issue8867] serve.py (using wsgiref) cannot serve Python docs under Python3 due to encoding issues

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8867 ___ ___ Python-bugs-list mailing

[issue8906] Document TestCase attributes in class docstring

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8906 ___ ___ Python-bugs-list mailing

[issue9452] configparser support for reading from strings and dictionaries

2010-08-03 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: Removed file: http://bugs.python.org/file18329/issue9452.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9452 ___

[issue3871] cross and native build of python for mingw32 with distutils

2010-08-03 Thread LRN
LRN lrn1...@gmail.com added the comment: Here's an alternative patch that enables Python building with MinGW/MSys I've skimmed rpetrov's patch, and it seems that my patch is more about building Python than about distutils (i've patched distutils only as far as the compilation of Python itself

[issue8138] wsgiref.simple_server.SimpleServer claims to be multithreaded

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8138 ___ ___ Python-bugs-list mailing

[issue6785] IncompleteRead / BadStatus when parsing http://peakoil.mobi

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6785 ___ ___ Python-bugs-list mailing

[issue9452] configparser support for reading from strings and dictionaries

2010-08-03 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Updated patch after discussion on #python-dev: - PEP8 compliant names used: read_file, read_string, read_dict. readfp has been PendingDeprecated - documentation updates - option validation is now optional with the use of `strict=` argument in the

[issue9452] configparser support for reading from strings and dictionaries

2010-08-03 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: FTR, some people questioned the purpose of read_dict(). Let me summarize this very briefly here: - the API is using dictionaries similar to those in defaults= but has one level of depth more (sections) - initializing a parser with a dictionary

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Getting *rid* of the name ConfigParser would be annoying and cause *gratuitous* code breakage. If we are going to keep the name but get rid of the unsafe version then we can only replace it with what is now SafeConfigParser - as it is

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: There IS one more option that seems to be better than all of the above: 1. Add an interpolation=True argument to RawConfigParser __init__ and move the interpolating functionality from SafeConfigParser to it. 2. Rename RawConfigParser to

[issue9352] argparse eats characters when parsing multiple merged short options

2010-08-03 Thread Catherine Devlin
Catherine Devlin fredv8vi...@liquidid.net added the comment: Attaching a test to verify parse failure on mismatched prefix (-abc or +abc). Steven's patch makes it pass. -- nosy: +catherine versions: -Python 2.7, Python 3.2 Added file:

[issue9352] argparse eats characters when parsing multiple merged short options

2010-08-03 Thread Catherine Devlin
Catherine Devlin fredv8vi...@liquidid.net added the comment: Updated Steven's patch; no changes, but now it knows the new context so that ``patch -p0`` won't fail. -- Added file: http://bugs.python.org/file18343/multiple_short_same_prefix_new.patch

[issue9450] readline.replace_history_item leaks memory.

2010-08-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Leaks in replace_history_item and remove_history_item fixed in r83667 (py3k), r83668 (release31-maint) and r83669 (release27-maint). -- versions: +Python 2.7, Python 3.1 ___ Python tracker

[issue9495] argparse unittest tracebacks are confusing if an error is raised when not expected

2010-08-03 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: In python3 if an error is raised from ErrorRaisingArgumentParser that is not caught by an assertRaises, unittest prints out the traceback, which is a chained traceback including the SystemExit that the argparse test suite catches in

[issue7003] finish documentation of user local paths

2010-08-03 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Should this now go to d...@python or is it best left with Christian? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7003

[issue7141] 2to3 should add from __future__ import print_statement

2010-08-03 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Daniel there's far chance of this happening if you could provide a patch. -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue7186] Document specialness of __doc__, and possibly other special attributes

2010-08-03 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: georg.brandl - d...@python nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7186 ___

[issue9495] argparse unittest tracebacks are confusing if an error is raised when not expected

2010-08-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can't find anyway to actually do what I suggested. There doesn't seem to be any way to break the traceback chain. -- ___ Python tracker rep...@bugs.python.org

[issue9340] argparse parse_known_args does not work with subparsers

2010-08-03 Thread Catherine Devlin
Catherine Devlin fredv8vi...@liquidid.net added the comment: Some basic unit tests for parse_known_args on a subparser. -- keywords: +patch nosy: +catherine Added file: http://bugs.python.org/file18344/test_subparser_parse_known_args.patch ___

[issue7225] fwrite() compiler warnings

2010-08-03 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I'm assuming that this is still an issue, sorry I don't have gcc 4.3.2 to try it out on. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7225

[issue8065] Memory leak in readline.get_current_history_length

2010-08-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I've fixed this leak in r83670 through r83672. It's still using the old, inefficient method (get the state, read the length, free the state), because without good tests I don't want to disturb things too much. In particular, it's not

[issue9450] readline.replace_history_item leaks memory.

2010-08-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The other leaks have now been fixed too; see issue 8065 for details. -- assignee: - mark.dickinson resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python

[issue7828] chr() and ord() documentation for wide characters

2010-08-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: georg.brandl - d...@python nosy: +d...@python, haypo versions: -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7828

[issue9340] argparse parse_known_args does not work with subparsers

2010-08-03 Thread Catherine Devlin
Changes by Catherine Devlin fredv8vi...@liquidid.net: Removed file: http://bugs.python.org/file18344/test_subparser_parse_known_args.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9340 ___

[issue8867] serve.py (using wsgiref) cannot serve Python docs under Python3 due to encoding issues

2010-08-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a simple patch. -- keywords: +patch nosy: +pitrou Added file: http://bugs.python.org/file18345/serve.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8867

[issue8867] serve.py (using wsgiref) cannot serve Python docs under Python3 due to encoding issues

2010-08-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r83673. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8867 ___

[issue9340] argparse parse_known_args does not work with subparsers

2010-08-03 Thread Catherine Devlin
Catherine Devlin fredv8vi...@liquidid.net added the comment: Some simple unit tests for parse_known_args on a parser with a subparser. They are indeed failing on the trunk. -- Added file: http://bugs.python.org/file18346/test_subparser_parse_known_args.patch

[issue9496] Unittests for Lib/rlcompleter.py

2010-08-03 Thread Michele Orrù
New submission from Michele Orrù maker...@gmail.com: The attached patch tests Lib/rlcompleter.py. -- components: Tests files: testrlcompleter.patch keywords: patch messages: 112636 nosy: ezio.melotti, maker priority: normal severity: normal status: open title: Unittests for

[issue9497] test_ssl memory leak

2010-08-03 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: On OS X 10.6, with a 64-bit build of Python, regrtest -L is showing leaks from test_ssl. Here are the first few lines of the output; I've also attached the full output. newton:py3k dickinsm$ ./python.exe -m test.regrtest -L test_ssl

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: It doesn't make sense to make any of these changes to Python 2; this really should have been separate from the documentation issue. That's probably understood by everyone, but explicit is better. Merging implementations

[issue1777398] IDLE Freezes After Running Scripts

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Intermittent bugs involving 3rd-party packages are hard to even confirm, let alone fix. 2.6.6rc will be out today, so no fix for that. IDLE on 3.1.2 is more stable than it was on 3.0, so I will not assume that the problem still exists on the

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6517 ___

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2010-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3362 ___

[issue2620] Multiple buffer overflows in unicode processing

2010-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- status: open - closed versions: -Python 2.4, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2620 ___

[issue9496] Unittests for Lib/rlcompleter.py

2010-08-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: From a quick look the patch looks nice, thanks! There's a typo (builtinis namespace). -- nosy: +pitrou versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue9496] Unittests for Lib/rlcompleter.py

2010-08-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +r.david.murray stage: - patch review type: feature request - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9496 ___

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Is this still an issue in 2.7 or 3.x? Or should it be closed? -- nosy: +tjreedy versions: +Python 2.7 -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue1758146] Crash in PyObject_Malloc

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Is this still an issue for 2.7 or 3.x? Is it actually a Python issue or should it be closed? -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1758146

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: If we merge the functionality in a single class with a new name then I guess that is fine as it will simplify the documentation rather than complexify it (good word hey). We still need to *mention* the old names so that people finding

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

2010-08-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed (with the additional test) to py3k in r83657, and 2.7 in r83676. -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9497] test_ssl memory leak

2010-08-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: From a bit of experimentation, ssl._ssl._test_decode_cert seems to be the call that's leaking. I haven't studied the source to see if I can pinpoint the cause yet. -- ___ Python tracker

[issue9496] Unittests for Lib/rlcompleter.py

2010-08-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The new tests pass on OS X, using both GNU readline (v6.1) and the system libedit. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9496

[issue1540529] cgi.py error on parsing/handling content-disposition

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: With 3.1.2, cgi.parse_header gives the same correct response as cgtest.parse_header, so I will assume that the same is true in 2.7 until demonstrated otherwise. -- nosy: +tjreedy resolution: - fixed status: open - closed

[issue3467] sqlite3 path is hard coded in setup.py

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Martin, should this be closed? fixed? won't fix? out-of-date? The link to Modules/Setup does not work for py3k branch. -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org

[issue4956] Py_Initialize needs to be done before file load (on msys+wine)

2010-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4956 ___

[issue5202] wave.py cannot write wave files into a shell pipeline

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Is this still a problem with 2.7-3.2? GP, what state do you think either patch is in? -- nosy: +tjreedy stage: - patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 2.6

[issue3067] setlocale fails with unicode strings on Py2 and with byte strings on Py3

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The docs say that the locale arg should be None, tuple, or string, so I take that to mean that Unicode should be OK for 2.x, and that would help porting to 3.x. If bytes are rejected in 3.x, there should be TypeError raised, not ValueError,

[issue9497] test_ssl memory leak

2010-08-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The fix turned out to be as simple as adding a single X509_free call to _test_decode_cert. Fixed in revisions r83677 (py3k), r83679 (release31-maint), r83680 (release27-maint) and r83686 (release26-maint). [The last with Barry's

[issue3511] Incorrect charset range handling with ignore case flag?

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: EM and MB seemed to agree on closing this. -- nosy: +tjreedy resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3511

[issue2200] find_executable fails to find .bat files on win32

2010-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.5, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2200 ___

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2010-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1978 ___

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2010-08-03 Thread Uli Kunitz
Uli Kunitz uli.kun...@googlemail.com added the comment: I believe handling of TextIOWrapper streams is broken in xml.etree.ElementTree.ElementTree.write(). First example: import sys from xml.etree import ElementTree element = ElementTree.fromstring(foobarfoobar/bar/foo) element_tree =

[issue5414] asciibin.a2b_uu returns unexpected values on non ascii data

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In 3.1.2, a2b_uu() now raises TypeError: a2b_uu() takes exactly 1 argument (0 given) as it should. I assume the same of 2.7. The manual claims, in effect, that a2b_uu(b2a_uu(data))== data. The behavior of a2b_uu with any other input (not from

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504 ___ ___ Python-bugs-list

  1   2   3   >