[issue16036] simplify int() signature docs

2012-09-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching patch updated for backport to 2.7. In cases where the 2.7 language was substantively different, I preserved the 2.7 language (e.g. I preserved the reference to plain and long integers). I also added the lone 0 prefix for octals, which is a

[issue16092] test_recursion_limit in test_threading fails on Mac OS X in 3.2

2012-09-30 Thread Chris Jerdonek
New submission from Chris Jerdonek: The test_threading.ThreadingExceptionTests.test_recursion_limit test fails on Mac OS X with the standard compilation command: $ ./configure --with-pydebug make -j2 Python 3.2.3+ (3.2:247d3e3c08ca, Sep 29 2012, 23:45:43) [GCC 4.2.1 (Based on Apple Inc.

[issue16090] but is needed somewhere in http://www.python.org/dev/peps/pep-3138/

2012-09-30 Thread Georg Brandl
Georg Brandl added the comment: I've gone through the PEP; I've found a few typos and fixed them, but no missing but. Sorry, but without a more specific location I don't think it's sensible to keep this open. -- nosy: +georg.brandl resolution: - fixed status: open - closed

[issue16093] Documentation: links to 3.3

2012-09-30 Thread Stefan Krah
New submission from Stefan Krah: A couple of links still need to be updated: http://docs.python.org/ Python 3.3 says in development and points to 3.4. http://docs.python.org/dev/ Python 3.3 is missing. -- assignee: docs@python components: Documentation messages: 171615 nosy:

[issue16091] changing sidebar links in http://docs.python.org/

2012-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset eac9a50a2bdd by Georg Brandl in branch 'default': Closes #16091: fix the references to 3.3/3.4 in the Doc sidebar. http://hg.python.org/cpython/rev/eac9a50a2bdd -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status:

[issue16093] Documentation: links to 3.3

2012-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - duplicate status: open - closed superseder: - changing sidebar links in http://docs.python.org/ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16093

[issue16092] test_recursion_limit in test_threading fails on Mac OS X in 3.2

2012-09-30 Thread Ned Deily
Ned Deily added the comment: As far as I know, this is currently only an issue if you use the llvm-gcc-4.2 compiler on OS X to do a debug mode build. That compiler is no longer maintained by Apple and is known to miscompile Python 3.3 builds. There are checks in configure.ac for 3.3 to

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Serhiy, would you be OK with me also including this patch in the bz2file package? Yes, of course. We can even speed up 1.5 times the reading of small chunks, if we inline _check_can_read() and _read_block(). The same approach is applied for LZMAFile.

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +XML nosy: +eli.bendersky, flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16089 ___

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Stefan Krah
Stefan Krah added the comment: I can't reproduce this, so just a wild guess: Does the segfault still happen if you replace Py_XDECREF() with Py_CLEAR() in xmlparser_gc_clear()? -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue15533] subprocess.Popen(cwd) documentation

2012-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset abfaa4368263 by Chris Jerdonek in branch '3.2': Issue #15533: Clarify docs and add tests for subprocess.Popen()'s cwd argument. http://hg.python.org/cpython/rev/abfaa4368263 New changeset f66ff96f0030 by Chris Jerdonek in branch '3.3': Issue

[issue15533] subprocess.Popen(cwd) documentation

2012-09-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: I will commit to 2.7 separately. -- versions: +Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15533 ___

[issue15533] subprocess.Popen(cwd) documentation

2012-09-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: Two of the tests fail on at least some of the Windows bots. I am investigating. == ERROR: test_cwd_with_relative_arg (test.test_subprocess.ProcessTestCase)

[issue11798] Test cases not garbage collected after run

2012-09-30 Thread Tom Wardill
Tom Wardill added the comment: Patch attached using setting test to None after execution. -- keywords: +patch nosy: +tomwardill Added file: http://bugs.python.org/file27352/11798.patch ___ Python tracker rep...@bugs.python.org

[issue15505] unittest.installHandler incorrectly assumes SIGINT handler is set.

2012-09-30 Thread Tom Wardill
Changes by Tom Wardill t...@howrandom.net: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15505 ___ ___ Python-bugs-list

[issue11770] inspect.dir_static

2012-09-30 Thread Tom Wardill
Changes by Tom Wardill t...@howrandom.net: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11770 ___ ___

[issue13476] Simple exclusion filter for unittest autodiscovery

2012-09-30 Thread Tom Wardill
Changes by Tom Wardill t...@howrandom.net: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13476 ___ ___

[issue16055] incorrect error text for int(base=1000, x='1')

2012-09-30 Thread Peter Inglesby
Peter Inglesby added the comment: Ok, I've now attached a patch with tests. -- Added file: http://bugs.python.org/file27353/issue16055-fix-with-tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16055

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Christian Heimes
Christian Heimes added the comment: No, it doesn't make a difference when I replace Py_XDECREF() with Py_CLEAR(). I've also replaced Py_(X)DECREF() in the other *_gc_clear() methods without success. -- ___ Python tracker rep...@bugs.python.org

[issue8800] add threading.RWLock

2012-09-30 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Yes, any blocking on the internal lock is not semantic blocking due to the use of the Shared lock itself, but merely a technical aspect, not semantically visible to the program. It is equivalent to the operating system pausing the thread, a techical

[issue16094] Tuple extraction in lambda isn't supported with more than one argument

2012-09-30 Thread GlitchMr
New submission from GlitchMr: Tuple extraction in lambda isn't supported with more than one argument. -- components: 2to3 (2.x to 3.x conversion tool) files: lambda.py messages: 171627 nosy: GlitchMr priority: normal severity: normal status: open title: Tuple extraction in lambda isn't

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-30 Thread Nadeem Vawda
Nadeem Vawda added the comment: Yes, of course. Awesome. I plan to do a new release for this in the next couple of days. We can even speed up 1.5 times the reading of small chunks, if we inline _check_can_read() and _read_block(). Interesting idea, but I don't think it's worthwhile. It

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Stefan Krah
Stefan Krah added the comment: I'm now able to reproduce the issue with a non-debug build. As Christian says, using Py_CLEAR() does not help (though I wonder if it shouldn't be used anyway). Reverting part of 20b8f0ee3d64 fixes the segfault, see the attached diff. I don't know the code well

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16089 ___ ___ Python-bugs-list

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Christian Heimes
Christian Heimes added the comment: I can confirm that Stefan's fix works. I ran the SimpleTAL test suite about hundred times in a loop without a segfault. But I don't understand why the change fixes the issue. Could the alteration just lead to another code path so the erroneous code isn't

[issue15862] IDLE not working when due to wrong Hard Drive point of os.path.expanduser

2012-09-30 Thread Cemal Duman
Cemal Duman added the comment: Hi, yes exactly... I changed my home by using below commands. C:\Python27set HOME=C:\ C:\Python27python -m idlelib.idle it is working. But if i reboot my computer HOME changes again to network drive. I think sth abour corporate programs rewrites this paramters.

[issue16090] but is needed somewhere in http://www.python.org/dev/peps/pep-3138/

2012-09-30 Thread mani and ram
mani and ram added the comment: When I find it I will open it. On 30 September 2012 12:26, Georg Brandl rep...@bugs.python.org wrote: Georg Brandl added the comment: I've gone through the PEP; I've found a few typos and fixed them, but no missing but. Sorry, but without a more specific

[issue16090] but is needed somewhere in http://www.python.org/dev/peps/pep-3138/

2012-09-30 Thread Ramchandra Apte
Ramchandra Apte added the comment: Somehow my name is displayed as mani and ram when replying by email (I changed my email name from that to Ramchandra Apte) Just so that you know that mani and ram is the same person as Ramchandra Apte -- ___

[issue16090] but is needed somewhere in http://www.python.org/dev/peps/pep-3138/

2012-09-30 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- resolution: fixed - postponed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16090 ___ ___

[issue16094] Tuple extraction in lambda isn't supported with more than one argument

2012-09-30 Thread Ramchandra Apte
Ramchandra Apte added the comment: Python 2.7 and earlier are in bug-fix mode (means no new features) Tuple unpacking is not there in Python 3. Please close this bug as invalid. -- nosy: +ramchandra.apte type: - enhancement ___ Python tracker

[issue16094] Tuple extraction in lambda isn't supported with more than one argument

2012-09-30 Thread Mark Dickinson
Mark Dickinson added the comment: Works for me (Python 2.7.3): x = lambda (a, b), c: a + b + c x((2, 3), 4) 9 What issue are you seeing? -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16094

[issue16094] Tuple extraction in lambda isn't supported with more than one argument

2012-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The issue is in lib2to3. tuple_params does not work with lambdas. I confirm the bug. $ ./python -m lib2to3 -f tuple_params lambda_tuple_params.py RefactoringTool: Refactored lambda_tuple_params.py --- lambda_tuple_params.py (original) +++

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also, I'm reluctant to have two copies of the code for _read_block(); it makes the code harder to read, and increases the chance of introducing a bug when changing the code. Recursive inline _check_can_read() will be enough. Now this check calls 4

[issue15812] inspect.getframeinfo() cannot show first line

2012-09-30 Thread Sam Breese
Sam Breese added the comment: Looking into this now. Should have a patch either later today or tommorow. -- nosy: +Sam.Breese ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15812 ___

[issue8800] add threading.RWLock

2012-09-30 Thread Richard Oudkerk
Richard Oudkerk added the comment: I've added a new patch, that implements a shared/exclusive lock as described in my comments above, for the threading and multiprocessing module. The patch does not seem to touch the threading mode and does not come with tests. I doubt the

[issue15812] inspect.getframeinfo() cannot show first line

2012-09-30 Thread Sam Breese
Sam Breese added the comment: Also, would you mind posting an example? I'm having trouble replicating. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15812 ___

[issue15812] inspect.getframeinfo() cannot show first line

2012-09-30 Thread Sam Breese
Sam Breese added the comment: Nevermind, replicated it. Changing start = max(start, 1) to start = max(start, 0) DOES fix. Writing a test case now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15812

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Eli Bendersky
Eli Bendersky added the comment: I'm currently somewhat offline for a while (cross-continental move), but I'll do my best to try to recreate my setup to test this problem and the proposed solution. -- ___ Python tracker rep...@bugs.python.org

[issue15812] inspect.getframeinfo() cannot show first line

2012-09-30 Thread Sam Breese
Sam Breese added the comment: Here's a patch. Very, very simple, just changed that one line in inspect.py and wrote a highly primitive test case for inspect.getframeinfo. The test isn't actually testing the primary functionality right now, just this one bug. I can probably write more

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Stefan Krah
Stefan Krah added the comment: Do note that the patch is somewhat cargo-cult. I don't understand yet why it works; it may very well just silence the real problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16089

[issue16055] incorrect error text for int(base=1000, x='1')

2012-09-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: A few comments on the patch: 1) You should also check the exception type (e.g. by using PyErr_ExceptionMatches()). 2) If the exception doesn't match, you should restore the original exception so that the pure Python test framework will in turn raise it and

[issue9650] format codes in time.strptime docstrings

2012-09-30 Thread Mike Hoy
Mike Hoy added the comment: Changed docstring for timemodule.c to include format codes listed here: http://bugs.python.org/msg169193 -- keywords: +patch Added file: http://bugs.python.org/file27358/issue9650-format-codes.diff ___ Python tracker

[issue14503] docs: yield from breaks Pygments syntax coloring in doc examples

2012-09-30 Thread Georg Brandl
Georg Brandl added the comment: I've updated the version of Pygments used by 3.3 and 3.4 branches, which fixes this and the raise from issue. -- nosy: +georg.brandl resolution: - fixed status: open - closed versions: +Python 3.4 -Python 2.7, Python 3.2

[issue13801] The Python 3 Docs don't highlight nonlocal

2012-09-30 Thread Georg Brandl
Georg Brandl added the comment: Pygments is now updated to 1.5pre. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13801 ___

[issue15533] subprocess.Popen(cwd) documentation

2012-09-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: So it seems the cwd argument to Popen() currently works differently on Windows from Mac OS X. For example, the following doesn't work on Windows (but does on Mac). Windows doesn't look for arg0 relative to arg_cwd: def test_cwd(arg0, arg_cwd):

[issue16094] Tuple extraction in a lambda isn't supported by 2to3

2012-09-30 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- title: Tuple extraction in lambda isn't supported with more than one argument - Tuple extraction in a lambda isn't supported by 2to3 ___ Python tracker rep...@bugs.python.org

[issue16095] urllib2 failing with squid proxy and digest authentication

2012-09-30 Thread Pietro Battiston
New submission from Pietro Battiston: If you run the following code: #! /usr/bin/python import urllib2 MyHTTPPasswordMgr = urllib2.HTTPPasswordMgr proxy = urllib2.ProxyHandler({'http': 'http://proxybiblio2.si.unimib.it:8080'}) auth = urllib2.ProxyDigestAuthHandler(MyHTTPPasswordMgr())

[issue16095] urllib2 failing with squid proxy and digest authentication

2012-09-30 Thread Pietro Battiston
Changes by Pietro Battiston m...@pietrobattiston.it: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16095 ___ ___

[issue16082] xml.etree.ElementTree.tostringlist does conform to it's documentation

2012-09-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16082 ___ ___

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2012-09-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16076 ___ ___

[issue16094] Tuple extraction in a lambda isn't supported by 2to3

2012-09-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16094 ___ ___

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16089 ___ ___

[issue15533] subprocess.Popen(cwd) documentation

2012-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8d52b5b4bc2 by Chris Jerdonek in branch '3.2': Issue #15533: Skip test_cwd_with_relative_*() tests on Windows pending resolution of issue. http://hg.python.org/cpython/rev/d8d52b5b4bc2 New changeset 17d709f0b69b by Chris Jerdonek in branch '3.3':

[issue16007] Improved Error message for failing re expressions

2012-09-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16007 ___ ___

[issue16009] Json error messages could provide more information about the error

2012-09-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16009 ___ ___

[issue16074] bad error message in os.rename

2012-09-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16074 ___ ___

[issue9650] format codes in time.strptime docstrings

2012-09-30 Thread Ezio Melotti
Ezio Melotti added the comment: The patch contains non-ascii apostrophes: s/Locale’s/Locale's/ -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9650 ___

[issue16095] urllib2 failing with squid proxy and digest authentication

2012-09-30 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16095 ___

[issue8800] add threading.RWLock

2012-09-30 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I can't say that I'm that familiar with multiprocessing to comment on that in particular. But I do find your approach strange, to create two lock-like objects, in stead of the more familiar construct of having a RWLock (this is known from other

[issue14783] Make int() and str() docstrings correct

2012-09-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: The change for issue 15831 contains a number of places where a single signature line was converted to multiple -- but in the docs and not the docstrings. Those instances can also be examined for this issue. The signature line for str() was not updated in

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I'm not Martin, but I'll try to answer. An ABI pertains to the interfaces exposed by compiled object code, not source code. With C, function signatures in compiled code don't keep any type information (*), and they obviously doesn't know about macros

[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2012-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Which was the command run under strace exactly? -- nosy: +brett.cannon, ncoghlan, pitrou versions: +Python 3.4 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13028

[issue16096] Get rid of dangerous integer overflow tricks

2012-09-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In several places such dungerous code used to check the integer overflow: size = n * itemsize; if (size / itemsize != n) raise exception... Because these values are signed, this results in undefined behavior. The proposed patches replace similar

[issue16096] Get rid of dangerous integer overflow tricks

2012-09-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file27361/size_overflow-3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16096 ___

[issue16096] Get rid of dangerous integer overflow tricks

2012-09-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file27362/size_overflow-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16096 ___

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: It looks slightly better, but it would also violate there is one obvious way to do it. -- nosy: +gvanrossum, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16049

[issue8800] add threading.RWLock

2012-09-30 Thread Sebastian Noack
Sebastian Noack added the comment: I was just waiting for a comment pointing out, that my patch comes without tests. :) Note that we are still discussing the implementation and this patch is just a proof of concept. And since the way it is implemented and the API it provides could still

[issue9650] format codes in time.strptime docstrings

2012-09-30 Thread Mike Hoy
Mike Hoy added the comment: Updated patch as per Ezio's comment. -- Added file: http://bugs.python.org/file27364/issue9650-format-codes_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9650

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-09-30 Thread Stefan Krah
Stefan Krah added the comment: For once a Linux bot shows the failure that is the topic of this issue: http://buildbot.python.org/all/builders/x86%20Gentoo%20Non-Debug%203.x/builds/3101/steps/test/logs/stdio == FAIL:

[issue14783] Make int() and str() docstrings correct

2012-09-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: So (a) there is precedent for multiple signatures in docstrings For the record, this is also true of 2.7: http://hg.python.org/cpython/file/15fd0b4496e0/Objects/bytearrayobject.c#l2870 -- ___ Python tracker

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2012-09-30 Thread Éric Araujo
Éric Araujo added the comment: A unit test is needed. -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9674 ___ ___

[issue15923] Building from a fresh clone breaks on Parser/asdl_c.py

2012-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f07ab82de92 by Ezio Melotti in branch '2.7': #15923: fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801). http://hg.python.org/cpython/rev/8f07ab82de92 New changeset cb988d601803 by Ezio Melotti in branch

[issue15801] Weird string interpolation behaviour

2012-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f07ab82de92 by Ezio Melotti in branch '2.7': #15923: fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801). http://hg.python.org/cpython/rev/8f07ab82de92 New changeset cb988d601803 by Ezio Melotti in branch

[issue15923] Building from a fresh clone breaks on Parser/asdl_c.py

2012-09-30 Thread Ezio Melotti
Ezio Melotti added the comment: This is now fixed. self.emit(default: % name, 2) worked until #15801 got fixed, Since asdl_c.py is executed using the system Python, this was failing only when the system Python included the fix. -- assignee: - ezio.melotti components: +Build nosy:

[issue8800] add threading.RWLock

2012-09-30 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: A shared/exclusive lock isn't one lock but two locks, which are synchronized, but must be acquired separately. Similar to a pipe, which isn't one file, but one file connected to another file that reads whatever you have written into the first file. So

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-09-30 Thread Guido van Rossum
Guido van Rossum added the comment: In practice this is indeed how most users of met a classes do it. E.g. Django. So, +1. --Guido van Rossum (sent from Android phone) On Sep 30, 2012 11:36 AM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou added the comment: It looks slightly

[issue8800] add threading.RWLock

2012-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, since we're bikeshedding, I like Richard's proposal best: Personally, I would prefer to make the shared and exclusive locks attributes of the same object, so one could do with selock.shared: ... with selock.exclusive: ... Please

[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2012-09-30 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13028 ___ ___ Python-bugs-list

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: For once a Linux bot shows the failure that is the topic of this issue: Hmm, so there may be a small race condition after all? The problem is that I can't reproduce, on a non-debug build as on that buildbot, after more than 43000 (!) test runs. Either this

[issue16081] Fix compile warnings in thread_pthread.h

2012-09-30 Thread Michele Orrù
Michele Orrù added the comment: That's ok for me. Tested with OSX 10.8 and clang. -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16081 ___

[issue16081] Fix compile warnings in thread_pthread.h

2012-09-30 Thread Brian Brazil
Brian Brazil added the comment: I'm on gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, this was the only warning I saw (though I don't have all the optional libraries installed). -- ___ Python tracker rep...@bugs.python.org

[issue1052827] filelist.findall should not fail on dangling symlinks

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

[issue9650] format codes in time.strptime docstrings

2012-09-30 Thread Chris Rebert
Chris Rebert added the comment: I'm going to bikeshed and again suggest that %I and %p be included for handling 12-hour clock times. Also, the patch seems to only be for strftime(), and not strptime(). -- ___ Python tracker rep...@bugs.python.org

[issue8800] add threading.RWLock

2012-09-30 Thread Richard Oudkerk
Richard Oudkerk added the comment: @Sebastian: Both your patch sets are missing the changes to threading.py. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8800 ___

[issue15862] IDLE not working when due to wrong Hard Drive point of os.path.expanduser

2012-09-30 Thread Roger Serwy
Roger Serwy added the comment: In your original message, did IDLE eventually start when you ran: C:\Python27python.exe Lib\idlelib\idle.py ? If yes, then the bug is likely due to issue13582. If I understand correctly, when you reboot your computer, IDLE won't launch from the shortcut in

[issue9650] format codes in time.strptime docstrings

2012-09-30 Thread Mike Hoy
Mike Hoy added the comment: New patch includes time.strptime and the additional changes suggested by Chris Rebert. -- Added file: http://bugs.python.org/file27365/issue9650-format-codes_v3.diff ___ Python tracker rep...@bugs.python.org

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-30 Thread Nadeem Vawda
Nadeem Vawda added the comment: Recursive inline _check_can_read() will be enough. Now this check calls 4 Python functions (_check_can_read(), readable(), _check_non_closed(), closed). Recursive inlining only readable() in _check_can_read() is achieved significant but less (about 30%)

[issue12930] reindent.py inserts spaces in multiline literals

2012-09-30 Thread Roger Serwy
Roger Serwy added the comment: This issue also affects reindent.py in Python 3.x. The attached patch adds a -s switch to reindent.py to disallow changes to the contents of strings. The rstrip_and_expand_tabs function tokenizes the input to identify all strings and then expands and rstrips

[issue12930] reindent.py inserts spaces in multiline literals

2012-09-30 Thread Roger Serwy
Roger Serwy added the comment: Attached is a simple test of the -s functionality for reindent.py. It works on Linux but I'm not sure about Windows. -- Added file: http://bugs.python.org/file27367/test_reindent.py ___ Python tracker

[issue16074] bad error message in os.rename

2012-09-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16074 ___

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2012-09-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16076 ___

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In fact I have tried other code, a bit faster and more maintainable (see patch). -- Added file: http://bugs.python.org/file27368/bz2_bikeshedding.patch ___ Python tracker rep...@bugs.python.org

[issue10951] gcc 4.6 warnings

2012-09-30 Thread Martin Pool
Martin Pool added the comment: Hi, Martin, On 20 August 2012 05:25, Martin v. Löwis rep...@bugs.python.org wrote: Martin v. Löwis added the comment: (As usual), I'm quite skeptical about this bulk bug report; it violates the one bug at a time principle, where one bug can roughly be defined

[issue12930] reindent.py inserts spaces in multiline literals

2012-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Definitely a bugfix should not add any new switches. Patch would simply lead to preserving of all string literals and nothing more. I will look at Caio's patches a little later. Now Python contains automated tests for some tools. -- nosy:

[issue9650] format codes in time.strptime docstrings

2012-09-30 Thread Chris Rebert
Chris Rebert added the comment: This is now hardcore nitpicking, but I'm conflicted as to whether %p should be grouped with the other locale-related codes or with %I (since it's hard to imagine using %I or %p in a singleton capacity). In any case, props to Mike for putting an actual patch

[issue13476] Simple exclusion filter for unittest autodiscovery

2012-09-30 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- assignee: - michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13476 ___ ___

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2012-09-30 Thread Ezio Melotti
Ezio Melotti added the comment: Attached failing test. -- keywords: +patch Added file: http://bugs.python.org/file27369/issue11489.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11489

[issue12930] reindent.py inserts spaces in multiline literals

2012-09-30 Thread Roger Serwy
Roger Serwy added the comment: Definitely a bugfix should not add any new switches. Patch would simply lead to preserving of all string literals and nothing more. I added the switch so that the existing behavior of reindent would stay the same in case some other scripts rely on that

[issue16036] simplify int() signature docs

2012-09-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: [Django/Rietveld is erroring out for me when I try to reply there, so replying here] On 2012/10/01 01:45:03, cvrebert wrote: Doc/library/functions.rst:636: arguments are given. If *x* is a number, return :meth:`x.__int__() How is number-ness determined?

[issue15897] zipimport.c doesn't check return value of fseek()

2012-09-30 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Felipe, could you please submit a Contributor Agreement Form? http://www.python.org/psf/contrib/ Your patch looks good to me, although I would move almost all fclose(fp); PyErr_Format(ZipImportError, can't read Zip file: %R, archive); return NULL; To a

  1   2   >