[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-03-17 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Attaching a patch that sets the record straight in 3.3 - the 3 methods will raise TypeError, in both C and Python implementations. Also adds a test that verifies this, and updating the documentation. Note that in the C implementation extend

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-03-17 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: Removed file: http://bugs.python.org/file24897/issue13782.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13782 ___

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-03-17 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: Added file: http://bugs.python.org/file24898/issue13782.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13782 ___

[issue6566] json.dumps converts None to null (not null)

2012-03-17 Thread Kirubakaran Athmanathan
Kirubakaran Athmanathan pyb...@kirubakaran.com added the comment: Here is the patch that fixes for 2.7 -- keywords: +patch nosy: +kirubakaran Added file: http://bugs.python.org/file24899/6566.2.7.patch ___ Python tracker rep...@bugs.python.org

[issue6566] json.dumps converts None to null (not null)

2012-03-17 Thread Kirubakaran Athmanathan
Kirubakaran Athmanathan pyb...@kirubakaran.com added the comment: Here is the patch that fixes for 3.3 -- Added file: http://bugs.python.org/file24900/6566.3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566

[issue6566] json.dumps converts None to null (not null)

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7c818b4cd98a by Senthil Kumaran in branch '2.7': explain json.dumps for non-string keys in dicts. closes issue6566. Patch contributed Kirubakaran Athmanathan http://hg.python.org/cpython/rev/7c818b4cd98a New

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-17 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Shouldn't using vgetargs1 with '$' in the format string just be an error? vgetargs1 doesn't know anything about keyword arguments. Thank you for catching that! Serves me right for search-and-destroy style development--I'm not that

[issue13210] Support Visual Studio 2010

2012-03-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I'd like to subscribe to this newsletter. IMHO, it is important that people are able to compile python with VS2010 with minimum fuss. Not everyone has access to older compilers and forward compatibility shouldn't be that hard.

[issue14315] zipfile.ZipFile() unable to open zip File

2012-03-17 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: This is padding. Other implimentations just ignore it and Python must. -- keywords: +patch Added file: http://bugs.python.org/file24902/fix_zipfile_extra.patch ___ Python tracker

[issue14346] Typos in Mac/README

2012-03-17 Thread Dionysios Kalofonos
New submission from Dionysios Kalofonos peite...@gmail.com: Mac/README had a few typos (see attached file for details). -- files: typos.patch keywords: patch messages: 156148 nosy: dk priority: normal severity: normal status: open title: Typos in Mac/README versions: Python 2.7 Added

[issue14302] Move python.exe to bin/

2012-03-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm still in favor of the change, accepting any breakage that will result from it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14302

[issue13210] Support Visual Studio 2010

2012-03-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: IMHO, it is important that people are able to compile python with VS2010 with minimum fuss. Not everyone has access to older compilers and forward compatibility shouldn't be that hard. Not sure what you mean by forward compatibility. You

[issue14065] Element should support cyclic GC

2012-03-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As a matter of principle, garbage collection in Python should *always* work, for all types, except for the one documented exception (cycles involving __del__). Failure of a type to properly garbage collect should be considered as serious

[issue14337] Recent refleaks

2012-03-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Nice. 0554183066b5 is completely clean except for a leak in test_curses. I think that one may be due to the fact that I'm running the tests in an ssh terminal. -- resolution: - fixed stage: - committed/rejected status: open -

[issue14276] installing latest version of a project

2012-03-17 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14276 ___ ___

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-03-17 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: However, I have not actually applied and run test_string.py. I've applied the issue13579_4720cc9e.patch to the changeset 0554183066b5 and applies without errors for me. -- ___ Python

[issue14347] Misc/README

2012-03-17 Thread Dionysios Kalofonos
New submission from Dionysios Kalofonos peite...@gmail.com: Misc/README does not enumerate all the files in the Misc directory (see the attached file for more information). -- components: None files: files.patch keywords: patch messages: 156154 nosy: dk priority: normal severity:

[issue10516] Add list.clear() and list.copy()

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 958a98bf924e by Eli Bendersky in branch 'default': updated whatsnew/3.3.rst with the new methods added to list and bytearray (issue 10516) http://hg.python.org/cpython/rev/958a98bf924e -- nosy: +python-dev

[issue14348] Whitespace - Lib/base64.py

2012-03-17 Thread Dionysios Kalofonos
New submission from Dionysios Kalofonos peite...@gmail.com: Whitespace changes as of PEP8. -- components: Library (Lib) files: base64.patch keywords: patch messages: 156156 nosy: dk priority: normal severity: normal status: open title: Whitespace - Lib/base64.py versions: Python 3.3

[issue12619] Automatically regenerate platform-specific modules

2012-03-17 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: +1 for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12619 ___ ___

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: To answer your question about wrapping, it is best not to introduce noise into the patch. The person who commits it can rewrap (although even then it is nice to do the rewrapping in a separate changeset). -- nosy:

[issue14344] repr of email policies is wrong

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: That doesn't produce an evalable repr, though. The repr should actually be Policy(linesep='\\r\\n', max_line_length=None) I'm not immediately seeing how to get that to happen. -- ___

[issue14245] float rounding examples in FAQ are outdated

2012-03-17 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Both appear to be commonly used. Both sound OK to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14245 ___

[issue14349] The documentation of 'dis' doesn't describe MAKE_FUNCTION correctly

2012-03-17 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: The documentation of the MAKE_FUNCTION opcode in 'dis' says: Pushes a new function object on the stack. TOS is the code associated with the function. Which doesn't appear to be true. In Python/ceval.c: [...]

[issue14306] try/except block is both efficient and expensive?

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9a7dcfbcf726 by Georg Brandl in branch '3.2': Closes #14306: clarify expensiveness of try-except and update code snippet http://hg.python.org/cpython/rev/9a7dcfbcf726 -- nosy: +python-dev resolution: -

[issue14344] repr of email policies is wrong

2012-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t understand why the repr should use \\r instead of \r. It seems to work: from email.policy import Policy, HTTP, strict strict Policy(raise_on_defect=True) eval(repr(strict)) Policy(raise_on_defect=True) HTTP Policy(linesep='\r\n',

[issue6566] json.dumps converts None to null (not null)

2012-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Shouldn’t the 2.7 docs talk about str and unicode, or maybe basestring, instead of just str? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566

[issue14306] try/except block is both efficient and expensive?

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7a93f6ee2ebc by Georg Brandl in branch '2.7': Closes #14306: clarify expensiveness of try-except and update code snippet http://hg.python.org/cpython/rev/7a93f6ee2ebc --

[issue14349] The documentation of 'dis' doesn't describe MAKE_FUNCTION correctly

2012-03-17 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: docs@python - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14349 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-03-17 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Based on the discussion on python-dev [1], this is an updated implementation that uses encoding='bytes' to signal str-bytes behaviour. http://mail.python.org/pipermail/python-dev/2012-March/117536.html -- Added file:

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-03-17 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: ...and the tests to go with that. -- Added file: http://bugs.python.org/file24907/pickle_bytes_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784

[issue14342] In re's examples the example with recursion doesn't work

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8172d7dce0ed by Georg Brandl in branch '3.2': Closes #14342: remove out-of-date section about avoiding recursion errors. http://hg.python.org/cpython/rev/8172d7dce0ed -- nosy: +python-dev resolution: -

[issue14343] In re's examples the example with re.split() shadows builtin input()

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6cf5f963e0c4 by Georg Brandl in branch '3.2': Closes #14343: avoid shadowing builtin input() in example code. http://hg.python.org/cpython/rev/6cf5f963e0c4 -- nosy: +python-dev resolution: - fixed stage: -

[issue14342] In re's examples the example with recursion doesn't work

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 276f79e4b215 by Georg Brandl in branch '2.7': Closes #14342: remove out-of-date section about avoiding recursion errors. http://hg.python.org/cpython/rev/276f79e4b215 --

[issue14343] In re's examples the example with re.split() shadows builtin input()

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 483319c711d4 by Georg Brandl in branch '2.7': Closes #14343: avoid shadowing builtin input() in example code. http://hg.python.org/cpython/rev/483319c711d4 -- ___ Python

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b3b3a4a7d7b2 by Georg Brandl in branch '3.2': Closes #14250: regex.flags has not only explicit flags but also implicit flags and those from the pattern http://hg.python.org/cpython/rev/b3b3a4a7d7b2 -- nosy:

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ac00531a63aa by Georg Brandl in branch '2.7': Closes #14250: regex.flags has not only explicit flags but also those from the pattern http://hg.python.org/cpython/rev/ac00531a63aa --

[issue6566] json.dumps converts None to null (not null)

2012-03-17 Thread Kirubakaran Athmanathan
Kirubakaran Athmanathan pyb...@kirubakaran.com added the comment: The note added Keys in key/value pairs of JSON are always of the type str. When a dictionary is converted into JSON, all the keys of the dictionary are coerced to strings. is true for unicode keys too. '{foo: bar}' --

[issue6566] json.dumps converts None to null (not null)

2012-03-17 Thread Kirubakaran Athmanathan
Kirubakaran Athmanathan pyb...@kirubakaran.com added the comment: json.dumps({u'foo':'bar'}) '{foo: bar}' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566 ___

[issue6566] json.dumps converts None to null (not null)

2012-03-17 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: JSON does not have the distinction between bytes and unicode; py2 strings are coerced into unicode. I think it would be better to speak about 'JSON string' or 'JSON string element' if it's JSON and about 'unicode' (2.7) or 'str' (3.x)

[issue11959] smtpd cannot be used without affecting global state

2012-03-17 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11959 ___ ___ Python-bugs-list mailing

[issue13512] ~/.pypirc created insecurely

2012-03-17 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I don't think it's worth fixing in Python 2.6, at least not in 2.6.8 which is ready for rc2 today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512

[issue13210] Support Visual Studio 2010

2012-03-17 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Nothing's keeping it from moving forward at this point. Progress stagnated the last few months because I was busy doing organizational and PR work for PyCon. Now that the conference has passed, this and installer changes are on the top of my

[issue14333] queue unittest errors

2012-03-17 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___ ___ Python-bugs-list mailing

[issue14346] Typos in Mac/README

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3decf67e1a28 by Ned Deily in branch '2.7': Issue #14346: Fix some typos in the Mac/README file. http://hg.python.org/cpython/rev/3decf67e1a28 New changeset 7464c8cf7466 by Ned Deily in branch '3.2': Issue #14346:

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-17 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Incorporated Greg's (hopefully) parting shot. Also put the as an integer back for the docs. Finally, munged the note about float seconds vs integer nanoseconds a bit; I think it's an improvement. Can I get the go ahead now, pretty please?

[issue14346] Typos in Mac/README

2012-03-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the suggestions! -- assignee: - ned.deily components: +Documentation nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2, Python 3.3 ___

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-03-17 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Ok, I've updated the patch. The NEWS entry could be: Issue #13579: string.Formatter now understands the !a conversion specifier. (not in the patch because AFAIN it makes the merge easier) Let me know if that's in the line you want.

[issue14333] queue unittest errors

2012-03-17 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: This bug is becouse of Lib/unittest/loader.py:107 . So a quick fix would be to inherit from unittest.TestCase only in the exposed classes; but probably using a class decorator is the best solution. -- keywords: +patch Added file:

[issue14333] queue unittest errors

2012-03-17 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file24911/issue14333.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___

[issue14347] Misc/README

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 65a0a6fab127 by Ned Deily in branch 'default': Issue #14347: Update Misc/README list of files. http://hg.python.org/cpython/rev/65a0a6fab127 -- nosy: +python-dev ___

[issue14347] Update Misc/README

2012-03-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the suggestion! -- nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed title: Misc/README - Update Misc/README ___ Python tracker rep...@bugs.python.org

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-17 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Incorporated the latest round of suggestions from Benjamin's most recent--and very thorough!--review. Thanks, Benjamin! -- Added file: http://bugs.python.org/file24912/larry.parsekwonly.diff.5.txt

[issue14333] queue unittest errors

2012-03-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The decorator solution looks overly mind-boggling for this simple case. BTW, I'm not sure we support calling our tests in this way, but it would be a good goal to, so I'm in favor of fixing these kinds of problems. -- nosy:

[issue12684] profile does not dump stats on exception like cProfile does

2012-03-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The same fix should be applied to runctx() too. The SystemExit handling is fine, it's in the original code also. I would recommend making a single try-except-finally statement. -- ___ Python tracker

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread Jakob Bowyer
New submission from Jakob Bowyer jkb...@gmail.com: Running: Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] Code: import copy copy.copy(iter([1,2,3])) Exception: --- TypeError

[issue14344] repr of email policies is wrong

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ach, I screwed up my testing at the interactive interpreter. Yes, it does work, and I will commit the fix. Thanks for the report. -- ___ Python tracker rep...@bugs.python.org

[issue14344] repr of email policies is wrong

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 97b0cf9df420 by R David Murray in branch 'default': #14344: fixed the repr of email.policy objects. http://hg.python.org/cpython/rev/97b0cf9df420 -- nosy: +python-dev ___

[issue14344] repr of email policies is wrong

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14344

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sorry for the delay. I've run the tests (with OpenSSL 1.0.1-beta3) in debug mode and got an error: == ERROR: test_npn_ext (test.test_ssl.ThreadedTests)

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The patch was actually by Brian Curtin, before he got commit privs :). Attached is a fix. I don't know what t.py has to do with the issue, though. I'm experimenting to see if I can trigger the bug before I apply the fix. --

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12757 ___ ___

[issue14351] Script error in 3.2.3rc1 Windows doc

2012-03-17 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 3.2.3rc1: When I click the Python manuals Start Menu icon, the Windows help version of the docs comes up, but with a Script Error box. Contents of the box: warning sign A error has occurred in the script on this page Line : 1 Char : 1

[issue14352] Distutils2 won't install on Ubuntu

2012-03-17 Thread Alex Grönholm
New submission from Alex Grönholm alex.gronholm+pyt...@nextday.fi: Running distutils2 hg tip (changeset 2cec52b682a9): The command pysetup install fails with: u'Python': u'2.7.2+' is not a valid version (field 'Version') Not that it should matter, but this is Ubuntu 11.10. Also, distutils2

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, ./python -OO -m test test_json will trigger it. Updated fix attached. I'm not completely happy with it, though, since it prints the 'skipping test from module XXX' twice, and I don't know why (some unittest thing I'm not getting

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Oh, in case anyone is wondering, the fix for -OO test runs was originally made because the unladen swallow folks ran the test suite that way. (I think someone else wanted it too, but I don't remember who). It's broken again, so I

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a fixed patch. It also came to me that selected_protocol could be ambiguous, so I renamed it to selected_npn_protocol. -- Added file: http://bugs.python.org/file24916/npn.patch ___ Python

[issue14351] Script error in 3.2.3rc1 Windows doc

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I believe this was already found by someone (Georg, Martin?) and fixed by Ezio. -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti, r.david.murray ___ Python tracker

[issue14333] queue unittest errors

2012-03-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 118f7bdd631b by R David Murray in branch '3.2': #14333: fix test_queue so it can be run via standard unittest test discovery. http://hg.python.org/cpython/rev/118f7bdd631b New changeset 3ea4d7adb3e7 by R David

[issue14353] Proper gettext support in locale module

2012-03-17 Thread Mel Flynn
Mel Flynn rfl...@acsalaska.net added the comment: Additional patch for 2.7 branch. -- Added file: http://bugs.python.org/file24918/python27-configure.in.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14353

[issue14333] queue unittest errors

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Not only do I think we should support calling our tests via unittest, I think we should move in the direction of having regrtest be implemented via standard unittest hooks rather than the monster it currently is. That will take quite a

[issue14353] Proper gettext support in locale module

2012-03-17 Thread Mel Flynn
New submission from Mel Flynn rfl...@acsalaska.net: Gettext support in Python is configured by two tests: - textdomain in libc or libintl - bind_textdomain_codeset in libc only The latter causes incomplete gettext support in the locale module. Since the implementation uses two different

[issue14353] Proper gettext support in locale module

2012-03-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14353 ___ ___ Python-bugs-list

[issue14355] imp module should omit references to init_frozen

2012-03-17 Thread Eric Snow
New submission from Eric Snow ericsnowcurren...@gmail.com: The imp.init_frozen() function was removed from the documentation prior to 3.2 (changeset 2cf7bb2bbfb8). One reference to the function was left behind. I've attached a very intricate patch. wink -- assignee: docs@python

[issue14354] Crash in _ctypes_alloc_callback

2012-03-17 Thread Joe Rumsey
New submission from Joe Rumsey pyt...@rumsey.org: I have reproduced this crash in Apple's default 2.7.1 python, and in 2.7.3 built from source myself. But only in release mode. If I rebuild 2.7.3 in debug, the crash goes away. The attached file reproduces the issue, which has to do with a

[issue14295] PEP 417: adding mock module

2012-03-17 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Interesting. As I have to keep the external version of mock in sync with unittest.mock, and I have more important things to do first (like the docs) it would be a gratuitous change for no benefit. If you have any more substantive

[issue14351] Script error in 3.2.3rc1 Windows doc

2012-03-17 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I hope you are right. The module docs server is also not working for me. Has that also been found and fixed (I don't see any issues) or should I file a separate report? -- ___ Python tracker

[issue14351] Script error in 3.2.3rc1 Windows doc

2012-03-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, it should be fixed in rc2. The module docs server (I'm not familiar with that) is probably another issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14351] Script error in 3.2.3rc1 Windows doc

2012-03-17 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: fixed - duplicate superseder: - 2.7.3rc1 chm gives JS error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14351 ___

[issue14354] Crash in _ctypes_alloc_callback

2012-03-17 Thread Joe Rumsey
Joe Rumsey pyt...@rumsey.org added the comment: I just built python 3.2.2 from source, and reproduced the issue there as well. Same location. Here's the slightly more informative stack trace from my release-with-symbols 3.2.2 build: #0 _ctypes_alloc_callback (callable=0x7fff5fbfef20,

[issue14352] Distutils2 won't install on Ubuntu

2012-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Your log file seems to tell that the installation goes fine. The last message is just a warning. So what makes you say that d2 doesn’t install? -- versions: +3rd party ___ Python tracker

[issue14352] Distutils2 won't install on Ubuntu

2012-03-17 Thread Alex Grönholm
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: Being new to d2, I wouldn't know that the installation was completed successfully or if there was something left out. Regardless, this needs to be fixed. -- ___ Python tracker

[issue14352] Distutils2 won't install on Ubuntu

2012-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I would agree, if you told me *what* needs to be fixed :) First, the unhelpful warning will go (that’s another bug); second, would you be satisfied if I added a logging message to tell that the installation completed successfully? The

[issue14352] Distutils2 won't install on Ubuntu

2012-03-17 Thread Alex Grönholm
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: It doesn't say Warning there, so how was I supposed to determine that it's not an error which terminated the installation process? If it is indeed just a warning, just getting rid of it would fix this for me. However, will this

[issue14352] Distutils2: add logging message to report successful installation

2012-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It doesn't say Warning there Right, so that’s a problem with our logging config. However, will this cause trouble with requires-python in setup.cfg? I’m not sure why you’re asking that, as d2’s setup.cfg does not use requires-python and does

[issue13370] test_ctypes fails when building python with clang

2012-03-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: An update: test_ctypes continues to fail on 2.7.3rc2 with exactly the same failures as originally reported when compiled non-debug 64-bit (x86_64) with either the latest clang *or* llvm-gcc from Xcode 4.3.1. It does not fail when compiled with

[issue14352] Distutils2: add logging message to report successful installation

2012-03-17 Thread Alex Grönholm
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: I’m not sure why you’re asking that, as d2’s setup.cfg does not use requires-python and does produce the warning, so it’s unrelated. (The warning comes from d2.database.) I was concerned that maybe the version comparator

[issue14354] Crash in _ctypes_alloc_callback

2012-03-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: This is likely related to Issue13370 which documents test_ctypes failures when using either of the llvm-based compilers (clang or llvm-gcc) supplied with recent versions of Xcode 4. test_ctypes and your test both do not fail when Python is compiled

[issue14354] Crash in _ctypes_alloc_callback

2012-03-17 Thread Joe Rumsey
Joe Rumsey pyt...@rumsey.org added the comment: Thanks for that. This does seem to be the case. I rebuilt with CC=gcc-4.2 and my short sample and the full library I took it from both work fine. -- ___ Python tracker rep...@bugs.python.org

[issue14333] queue unittest errors

2012-03-17 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Yes, FWIW much of the standard library tests are callable this way without issue. I have patches that fix the discoverability of a few test modules. I'll submit these in another issue. -- ___

[issue12684] profile does not dump stats on exception like cProfile does

2012-03-17 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I will submit a patch for this soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684 ___

[issue14348] Whitespace - Lib/base64.py

2012-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi Dionysios. In the standard library, we do not usually make cosmetic changes, because they don’t bring much value, make the version control history less useful, and take time that could be spent on fixing bugs or adding features. Please

[issue13009] Remove documentation in distutils2 repo

2012-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Done in 21b8e29bcd5c. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13009

[issue13512] ~/.pypirc created insecurely

2012-03-17 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Check it in. It looks innocent enough to put in 2.7.3 final. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512 ___

[issue13512] ~/.pypirc created insecurely

2012-03-17 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: On the other hand, it doesn't seem to be a very pressing issue, so let's wait for 2.7.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512

[issue13512] ~/.pypirc created insecurely

2012-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alright, I’ll commit normally to the stable and development versions, skipping the security-mode branches. -- type: security - behavior ___ Python tracker rep...@bugs.python.org

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: I get a normal exception. I see ipython at the top level in 'T:\languages\Python27\Scripts\ipython-input-2-4b0069a09ded in module()' Perhaps you ran ipython accidentally? -- nosy: +ramchandra.apte

[issue14348] Whitespace - Lib/base64.py

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, our preferred approach is to make such cleanups when we touch that section of code for some other reason. Like Éric said, your willingness to contribute is very much appreciated and we hope you'll find another bug to work on.

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: @Ramchandra: I think you referring to the traceback format (which is indeed less useful than a normal Python traceback in the context of this tracker). The OP, however, is referring to the exception itself: TypeError:

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14350 ___ ___

  1   2   >