[issue14190] Minor C API documentation bugs

2012-03-04 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +haypo, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-04 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +bethard title: argparse: nargs='*' doesn't parse all positional parameters -> argparse: nargs='*' doesn't get out-of-order positional parameters versions: +Python 2.7, Python 3.3 ___ Python tracker

[issue14174] argparse.REMAINDER fails to parse remainder correctly

2012-03-04 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Could you edit your script to add the expected results, for example Namespace(foo=..., command=[...])? -- nosy: +eric.araujo stage: -> needs patch versions: +Python 3.3 ___ Python tracker

[issue14114] 2.7.3rc1 chm gives JS error

2012-03-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: It worked fine in the 3.3a1 chm, so I consider it indeed fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue14168] Bug in minidom 3.3 after optimization patch

2012-03-04 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14168] Bug in minidom 3.3 after optimization patch

2012-03-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73c76466cf44 by Martin v. Löwis in branch 'default': Issue #14168: Check for presence of _attrs before accessing it. http://hg.python.org/cpython/rev/73c76466cf44 -- nosy: +python-dev ___ Python tracker

[issue14197] MacOS10.7 compiled uWSGI the issue.

2012-03-04 Thread shibingli
shibingli added the comment: Has been revised to permit BUG Description 在 2012-3-5,下午1:18, Ned Deily 写道: > > Ned Deily added the comment: > > Sorry, can you explain better what problem you are seeing including specific > error messages? > > -- > nosy: +ned.deily > > _

[issue14197] MacOS10.7 compiled uWSGI the issue.

2012-03-04 Thread shibingli
shibingli added the comment: Use the Mac OS 10.7 compiler uWSGI Makefile.Py32 (make-f), will report a compile error. Information in the annex.Artificially will the soft libpython3.2.a / Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/config-3.2m under connection to a libpython

[issue11379] Remove "lightweight" from minidom description

2012-03-04 Thread Éric Araujo
Éric Araujo added the comment: This alternate version of my patch (a) merges the first two paragraphs to make the intro less redundant and heavy, and (b) reorganizes a bit the list of modules in Doc/library/markup.rst to have xml.etree first and pyexpat (less interesting for most people) at t

[issue14197] MacOS10.7 compiled uWSGI the issue.

2012-03-04 Thread Ned Deily
Ned Deily added the comment: Sorry, can you explain better what problem you are seeing including specific error messages? -- nosy: +ned.deily ___ Python tracker ___ ___

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

2012-03-04 Thread Éric Araujo
Éric Araujo added the comment: > I have no problem making doc and test changes. I'll probably need a > pointer as to where these changes need to be made Great! I think the right test file is Lib/test/test_urllib2.py (the test files were not renamed in Python 3 when some modules were renamed);

[issue14169] compiler.compile fails on "if" statement in attached file

2012-03-04 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14197] MacOS10.7 compiled uWSGI the issue.

2012-03-04 Thread shibingli
New submission from shibingli : Artificial libpython3.2.a soft links to libpython3.2m.a -- components: None messages: 154921 nosy: shibingli priority: normal severity: normal status: open title: MacOS10.7 compiled uWSGI the issue. type: compile error versions: Python 3.2 ___

[issue14181] Support getbuffer redirection scheme in memoryview

2012-03-04 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13951] Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2012-03-04 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14184] test_recursion_limit fails on OS X when compiled with clang

2012-03-04 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14189] Documentation for some C APIs is missing clear specification of the type of reference they return

2012-03-04 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Meador Inge
Changes by Meador Inge : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4b3f1decb1af by Meador Inge in branch '2.7': Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive. http://hg.python.org/cpython/rev/4b3f1decb1af New changeset 5b88475aae96 by Meador Inge in branch '3.2': Issue #14195: Make WeakSet.__lt_

[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 thanks for fixing this -- nosy: +rhettinger priority: normal -> high ___ Python tracker ___ _

[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Meador Inge
Meador Inge added the comment: Ouch, WeakSet.__lt__ and WeakSet.__gt__ are defined in terms of set.issubset and set.issuperset, respectively. set.issubset and set.issuperset are *not* proper subset and superset operations, thus the error. The attached patch fixes this. -- keywords:

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think that needs to be a gating criteria for the initial commit, > though. I think it should, otherwise we will end up in a situation worse than currently (we will have two competing default implementations of import, depending which API you invoke).

[issue14196] Unhandled exceptions in pdb return value display

2012-03-04 Thread Simon Chopin
New submission from Simon Chopin : This issue occurred at least in Python 2.7, I haven't checked in other versions. When stepping on a return statement, pdb calls the return value __str__() method to display it at the end of the line. Only, it doesn't handle the potential exceptions raised wit

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-04 Thread Nick Coghlan
Nick Coghlan added the comment: Yes, the import related C API should be turned into a mere wrapper around the appropriate importlib code wherever possible. I don't think that needs to be a gating criteria for the initial commit, though. -- ___ Pyth

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

2012-03-04 Thread Jay Deiman
Jay Deiman added the comment: I have no problem making doc and test changes. I'll probably need a pointer as to where these changes need to be made and submitted to, but like you said, I'll wait until the patch is accepted before doing that. -- __

[issue13719] bdist_msi upload fails

2012-03-04 Thread Ralf Schmitt
Ralf Schmitt added the comment: sorry, I'm currently short on time and don't use windows at the moment. bdist_msi runs without user interaction. just let the buildbots test it. -- ___ Python tracker _

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have taken a look at the latest code again, and I'm worried that import.c still has large chunks of code dealing with module finding and loading. These functionalities should be redirected to the corresponding importlib code instead. -- __

[issue14168] Bug in minidom 3.3 after optimization patch

2012-03-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Instead of calling _ensure_attributes (which creates the attribute dictionaries), getAttribute should return "" immediately if there are no attributes at all, to avoid creating those dictionaries. I'll do a patch shortly, unless somebody beats me. -

[issue1508475] transparent gzip compression in urllib

2012-03-04 Thread Evgeny Kapun
Changes by Evgeny Kapun : -- nosy: +abacabadabacaba ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : >>> a = weakref.WeakSet() >>> a < a True >>> a > a True -- components: Library (Lib) messages: 154910 nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: WeakSet has ordering relations wrong type: behavior versions: P

[issue14171] warnings from valgrind about openssl as used by CPython

2012-03-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: It may indeed be that recompiling OpenSSL properly could fix this. I added this anyway since it probably doesn't cause harm. Thanks for the patch. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue14171] warnings from valgrind about openssl as used by CPython

2012-03-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a69b47f194e by Martin v. Löwis in branch 'default': Issue #14171: Add valgrind suppressions for OpenSSL issue. http://hg.python.org/cpython/rev/9a69b47f194e -- nosy: +python-dev ___ Python tracker

[issue14176] Fix unicode literals

2012-03-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: I propose to close this issue as invalid (although out-of-date might be fine as well). Jean-Michel is apparently unable to describe what issue *precisely* he wants to see fixed, rather than just complaining that open source is a disaster. I don't think we ca

[issue13704] Random number generator in Python core

2012-03-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is indeed out-of-date. -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue14190] Minor C API documentation bugs

2012-03-04 Thread Eli Bendersky
Changes by Eli Bendersky : -- keywords: +easy versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1040439] Missing documentation on how to link with libpython

2012-03-04 Thread Eli Bendersky
Eli Bendersky added the comment: Éric, go ahead :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue13704] Random number generator in Python core

2012-03-04 Thread Christian Heimes
Christian Heimes added the comment: Yes, this ticket can be closed unless there is an interest to include the PRNG in the core. -- resolution: -> out of date status: open -> pending ___ Python tracker __

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2012-03-04 Thread sbt
sbt added the comment: Updated patch against 2822765e48a7. -- Added file: http://bugs.python.org/file24730/pipe_poll_fix.patch ___ Python tracker ___ ___

[issue14166] private dispatch table for picklers

2012-03-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've replaced occurrences of "pickle.Pickler" with "self.pickler_class" in the tests. Otherwise, the patch looks perfect and I've now committed it. Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed __

[issue14166] private dispatch table for picklers

2012-03-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7a9a10ae0c0 by Antoine Pitrou in branch 'default': Issue #14166: Pickler objects now have an optional `dispatch_table` attribute which allows to set custom per-pickler reduction functions. http://hg.python.org/cpython/rev/f7a9a10ae0c0 --

[issue14188] Sharing site-packages between Apple and python.org builds breaks extensions

2012-03-04 Thread Ned Deily
Changes by Ned Deily : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12346] Python source code build fails with old mercurial

2012-03-04 Thread Georg Brandl
Georg Brandl added the comment: Is there anything left to do here? It doesn't appear to be a release blocker anymore. -- priority: release blocker -> normal ___ Python tracker ___

[issue13704] Random number generator in Python core

2012-03-04 Thread Georg Brandl
Georg Brandl added the comment: Demoting from release blocker since the hash collision issue got remedied differently. If this is not needed anymore, please close. -- priority: release blocker -> normal ___ Python tracker

[issue14192] stdout.encoding not set when redirecting windows command line output

2012-03-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I have to take it, although I am not really convinced. The system > codepage probably differs from the console codepage (here 1152 vs. > 850). Print statements on the other hand are typical for console > programs. Calling python.exe (vs. pythonw.exe) me

[issue14166] private dispatch table for picklers

2012-03-04 Thread sbt
sbt added the comment: Updated patch with docs. -- Added file: http://bugs.python.org/file24729/pickle_dispatch.patch ___ Python tracker ___

[issue14194] typo in pep414

2012-03-04 Thread Georg Brandl
Georg Brandl added the comment: Fixed, thanks. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue14194] typo in pep414

2012-03-04 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ __

[issue14194] typo in pep414

2012-03-04 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : in pep414: "in additional to" --> "in addition to" -- messages: 154895 nosy: tshepang priority: normal severity: normal status: open title: typo in pep414 ___ Python tracker

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2012-03-04 Thread sbt
sbt added the comment: > Hmm, I tried to apply the latest patch to the default branch and it > failed. It also seems the patch was done against a changeset > (508bc675af63) which doesn't exist in the repo... I will do an updated patch against a "public" changeset. (I usually use a patch fo

[issue14166] private dispatch table for picklers

2012-03-04 Thread sbt
sbt added the comment: > I don't understand the following code: > ... > since self.dispatch_table is a property returning > self._dispatch_table. Did you mean type(self).dispatch_table? More or less. That code was a botched attempt to match the behaviour of the C implementation. The C imple

[issue14192] stdout.encoding not set when redirecting windows command line output

2012-03-04 Thread Redoute
Redoute added the comment: Martin, thanks for your response. I have to take it, although I am not really convinced. The system codepage probably differs from the console codepage (here 1152 vs. 850). Print statements on the other hand are typical for console programs. Calling python.exe (vs.

[issue14193] broken link on PEP 385

2012-03-04 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in 636320b98756. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue14193] broken link on PEP 385

2012-03-04 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : The pymigr link on pep385 is broken. -- assignee: docs@python components: Documentation messages: 154890 nosy: docs@python, tshepang priority: normal severity: normal status: open title: broken link on PEP 385 __

[issue13183] pdb skips frames after hitting a breakpoint and running step

2012-03-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: This message is just a reminder that this 4 months old issue raises the point that the step command in pdb is broken. A patch and test case have been proposed. No comment so far. As the author of pyclewn, a Vim front end to pdb and gdb, I would be grateful for

[issue14192] stdout.encoding not set when redirecting windows command line output

2012-03-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: That is impossible to implement. When outputting to a terminal window, the terminal's encoding is queried and used. When the Python script is run on its own, there may not even exist a terminal encoding. In any case, this issue is resolved in Python 3 (not b

[issue14179] Test coverage for lib/re.py

2012-03-04 Thread Florian M
Changes by Florian M : Added file: http://bugs.python.org/file24728/re_coverage.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14183] Test coverage for packaging.install and packaging.pypi.wrapper

2012-03-04 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I've updated the patch. Let me know if something has to be changed. -- Added file: http://bugs.python.org/file24727/issue14183_fbb9847b8f43.patch ___ Python tracker _

[issue14188] Sharing site-packages between Apple and python.org builds breaks extensions

2012-03-04 Thread Barry Alan Scott
Barry Alan Scott added the comment: I have wxPython installed. Uninstalling it changes the order of sys.path to this: ['', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Library/Frameworks/Python.fra

[issue14192] stdout.encoding not set when redirecting windows command line output

2012-03-04 Thread Redoute
New submission from Redoute : When running a python script from windows command line (cmd.exe) and redirecting its output, stdout.encoding is set to None and printing non-ascii chars fails. Encoding should be the same as without redirecting. Example: [Code unictest.py] # -*- coding: utf-8 -*-

[issue14188] Sharing site-packages between Apple and python.org builds breaks extensions

2012-03-04 Thread Ned Deily
Changes by Ned Deily : -- status: open -> pending title: Sharing site-packages between Apply and python.org builds breaks extensions -> Sharing site-packages between Apple and python.org builds breaks extensions ___ Python tracker

[issue14190] Minor C API documentation bugs

2012-03-04 Thread Baruch Sterin
Baruch Sterin added the comment: A few additional ones: The prototype in the documentation is incorrect: * PyFile_SetEncoding accepts PyObject*, not PyFileObject* * PyFile_SetEncodingAndErrors accepts PyObject*, not PyFileObject* PyLong_AsSsize_t is also duplicated. -- _

[issue14190] Minor C API documentation bugs

2012-03-04 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-03-04 Thread Eli Bendersky
Changes by Eli Bendersky : -- Removed message: http://bugs.python.org/msg154883 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-03-04 Thread Eli Bendersky
Eli Bendersky added the comment: Éric, The tests *do* use import_fresh_module, actually. Moreover, while monkeypatching exists it's rather limited (just setting the module name for test_main). The biggest problem with these tests is that they're based on doctest, which wasn't designed to be

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-03-04 Thread Eli Bendersky
Eli Bendersky added the comment: Éric, The tests *do* use import_fresh_module, actually. Moreover, while monkeypatching exists it's rather limited (just setting the module name for test_main). The biggest problem with these tests is that they're based on doctest, which wasn't designed to be

[issue14188] Sharing site-packages between Apply and python.org builds breaks extensions

2012-03-04 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-03-04 Thread Éric Araujo
Éric Araujo added the comment: An aside: Your commit made me realize that ET tests use monkey-patching instead of now more common idioms like using support.import_fresh_module and using subclasses to run the same tests for a Python and a C module. There is also a doctest that is not executed

[issue14140] packaging tests: add helpers to create and inspect a tree of files

2012-03-04 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai