[issue13598] string.Formatter doesn't support empty curly braces "{}"

2013-01-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Buump. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17001] Make uuid.UUID use functools.total_ordering

2013-01-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Damn, I forgot to add import functools. Here is a fixed version that passes test_uuid. -- Added file: http://bugs.python.org/file28794/issue-v2.patch ___ Python tracker __

[issue17001] Make uuid.UUID use functools.total_ordering

2013-01-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: @Brian Curtin It appears that there are tests for UUID ordering. [0] I will run the tests. [0] http://hg.python.org/cpython/file/d1e6a48dfb0d/Lib/test/test_uuid.py#l188 -- ___ Python tracker

[issue16273] f.tell() returning negative number on Windows build

2013-01-19 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17001] Make uuid.UUID use functools.total_ordering

2013-01-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Yes, will do so. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue17001] Make uuid.UUID use functools.total_ordering

2013-01-19 Thread Brian Curtin
Brian Curtin added the comment: Can you provide test cases for this code? -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bug

[issue16557] PEP 380 isn't reflected in the Functional Programming HOWTO

2013-01-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Attached is a patch. Note that this is my first Doc patch; please apologize errors. -- keywords: +patch nosy: +ramchandra.apte Added file: http://bugs.python.org/file28793/issue16557.patch ___ Python tracker

[issue17001] Make uuid.UUID use functools.total_ordering

2013-01-19 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17001] Make uuid.UUID use functools.total_ordering

2013-01-19 Thread Ramchandra Apte
New submission from Ramchandra Apte: This would reduce the complexity of uuid.UUID and also if the way it compares changes, one would't have to change all the compare methods. Attached is a patch. -- components: Library (Lib) files: issue.patch keywords: patch messages: 180275 nosy: ram

[issue16999] Remove cruft from unittest docs

2013-01-19 Thread Antoine Pitrou
New submission from Antoine Pitrou: There's a lot of obsolete or simply pointless cruft in the unittest docs, including references to the runTest method, or a detailed description of how to manually collect test suites. Following patch simplifies things a lot and makes the doc easier to read.

[issue17000] Remove cruft from unittest docs

2013-01-19 Thread Antoine Pitrou
New submission from Antoine Pitrou: There's a lot of obsolete or simply pointless cruft in the unittest docs, including references to the runTest method, or a detailed description of how to manually collect test suites. Following patch simplifies things a lot and makes the doc easier to read.

[issue10535] Enable warnings by default in unittest

2013-01-19 Thread Ezio Melotti
Ezio Melotti added the comment: Agreed, closing. -- resolution: -> fixed stage: patch review -> status: open -> closed versions: +Python 3.2 -Python 3.4 ___ Python tracker ___

[issue15955] gzip, bz2, lzma: add option to limit output size

2013-01-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: > What if unconsumed_tail is not empty but less than needed to decompress at > least one byte? We need read more data until unconsumed_tail grow enought to > be decompressed. This is possible in zlib, but not in bz2. According to the manual [1], it is perfectly OK

[issue16042] smtplib: unlimited readline() from connection

2013-01-19 Thread R. David Murray
R. David Murray added the comment: Christian, do you want to try to complete this before the 2.7.4 RC? -- ___ Python tracker ___ ___ P

[issue16998] Lost updates with multiprocessing.Value

2013-01-19 Thread Richard Oudkerk
Richard Oudkerk added the comment: > I thought that access to the value field of Value instances was > protected by locks to avoid lost updates. Loads and stores are both atomic. But "+=" is made up of two operations, a load followed by a store, and the lock is dropped between the two. The s

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-01-19 Thread Sven Brauch
Sven Brauch added the comment: third patch file (... is there a better way to upload three files?) -- Added file: http://bugs.python.org/file28789/81301-change-attr-ranges.diff ___ Python tracker _

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-01-19 Thread Sven Brauch
Sven Brauch added the comment: second patch file -- Added file: http://bugs.python.org/file28788/81300-change-var-kwargs.diff ___ Python tracker ___ _

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-01-19 Thread Sven Brauch
Sven Brauch added the comment: Okay, here they are. I'm not sure how to make hg include a commit message in the patch... 81299-extend-asdl.diff: Changes required to the ASDL framework, in order to allow attributes ( ... ) on a product 81300-change-var-kwargs.diff: Makes var/kwarg be instances

[issue1159051] Handle corrupted gzip files with unexpected EOF

2013-01-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: I've reviewed the patch and posted some comments on Rietveld. > I doubt about backward compatibility. It's obvious that struct.error and > TypeError are unintentional, and EOFError is purposed for this case. However > users can catch undocumented but de facto e

[issue16997] subtests

2013-01-19 Thread florian-rathgeber
Changes by florian-rathgeber : -- nosy: -florian-rathgeber ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee93a89b4e0f by Serhiy Storchaka in branch '2.7': Issue #15989: Fix possible integer overflow in str formatting as in unicode formatting. http://hg.python.org/cpython/rev/ee93a89b4e0f -- ___ Python track

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-01-19 Thread Sven Brauch
Sven Brauch added the comment: Alright, I'll be back with those shortly (as soon as I found out how to do this best with hg -- I'm used to git ;). I'll also sign the contributor agreement, that's no problem of course. -- ___ Python tracker

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-01-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Individual patches would be great. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-01-19 Thread Sven Brauch
Sven Brauch added the comment: Here's the next version which I hope to be somewhat complete now. vararg and kwarg are now of type arg, and I did all the changes which are required to make this possible. The ast tests pass. Do you prefer to have this as one large patch all together, or would yo

[issue16998] Lost updates with multiprocessing.Value

2013-01-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue14340] Update embedded copy of expat - fix security & crash issues

2013-01-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: If you could apply this to 2.7, that'd be great. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue16997] subtests

2013-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch attached: - makes _SubTest a TestCase subclass - clarifies test skipping for subtests (skipTest() only skips the subtest) - makes expected failures work as expected by resorting to a thread-local storage hack -- Added file: http://bugs.python.

[issue16997] subtests

2013-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch attached: - makes _SubTest a TestCase subclass - clarifies test skipping for subtests (skipTest() only skips the subtest) - makes expected failures work as expected by resorting to a thread-local storage hack -- Added file: http://bugs.python.

[issue16997] subtests

2013-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch attached: - makes _SubTest a TestCase subclass - clarifies test skipping for subtests (skipTest() only skips the subtest) - makes expected failures work as expected by resorting to a thread-local storage hack -- Added file: http://bugs.python.

[issue16507] Patch selectmodule.c to support WSAPoll on Windows

2013-01-19 Thread Guido van Rossum
Guido van Rossum added the comment: This works well enough (tested in old version of Tulip), right? What's holding it up? -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue16997] subtests

2013-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I think we're going to have to separate out two counts in the metrics > - the total number of tests (the current counts), and the total number > of subtests (the executed subtest blocks). This is a reasonable proposal. On the other hand, it was already the cas

[issue10535] Enable warnings by default in unittest

2013-01-19 Thread Brett Cannon
Brett Cannon added the comment: I wouldn't backport; not worth it. Anyway, since I consider this bug closed I'm taking myself off the nosy list. -- ___ Python tracker ___ __

[issue16997] subtests

2013-01-19 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16997] subtests

2013-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The way expectedFailure is currently implemented (it's a decorator which knows nothing about test cases and test results, it only expects an exception to be raised by its callee), it's gonna be difficult to make it participate with subtests without breaking co

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for point, Stefan. And thanks Trent for his project. -- ___ Python tracker ___ ___ Pytho

[issue16998] Lost updates with multiprocessing.Value

2013-01-19 Thread Jens Lechtenboerger
New submission from Jens Lechtenboerger: Maybe I'm misreading the documentation of multiprocessing.Value and multiprocessing.sharedctypes.Value. I thought that access to the value field of Value instances was protected by locks to avoid lost updates. Specifically, for multiprocessing.Value(typec

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset a78ebf9aed06 by Serhiy Storchaka in branch '2.7': Ensure that width and precision in string formatting test have type int, not long. http://hg.python.org/cpython/rev/a78ebf9aed06 -- ___ Python tracker <

[issue11983] Inconsistent hash and comparison for code objects

2013-01-19 Thread Eugene Toder
Eugene Toder added the comment: If you add co_firstlineno into code_hash you can say something like /* The rest isn't used in hash and comparisons, except co_name and co_firstlineno, which are preserved for tracebacks and debuggers. */ (Otherwise you'd need to explain why co_firstlineno i

[issue16993] shutil.which() should preserve path case

2013-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, sorry. Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file28781/shutil_which_normcase.patch ___ Python tracker __

[issue10590] Parameter type error for xml.sax.parseString(string, ...)

2013-01-19 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16997] subtests

2013-01-19 Thread Nick Coghlan
Nick Coghlan added the comment: I think we're going to have to separate out two counts in the metrics - the total number of tests (the current counts), and the total number of subtests (the executed subtest blocks). (Other parameterisation solutions can then choose whether to treat each pair o

[issue16993] shutil.which() should preserve path case

2013-01-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Somehow the patch is not showing for me. -- nosy: +ramchandra.apte ___ Python tracker ___ ___ Pytho

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-01-19 Thread Stefan Krah
Stefan Krah added the comment: Several 2.7 buildbots are failing. > Unfortunately I have only platforms where sizeof(int) == sizeof(long) == sizeof(size_t). You can use your cpython ssh key to login to all snakebite buildbot machines. They are tagged with [SB]. http://mail.python.org/piperma

[issue10535] Enable warnings by default in unittest

2013-01-19 Thread Ezio Melotti
Ezio Melotti added the comment: The two TODOs left are: 1) adding UnittestWarning; 2) improving the error message for deprecations; Technically these are new features, so they can go in 3.4 only, but 2) might be simple enough to be backported. Regarding 1) it might be a bit too late, given th

[issue11729] libffi assembler relocation check is not robust, fails with clang

2013-01-19 Thread Stefan Krah
Stefan Krah added the comment: The buildbot coverage is good, but the number of (OS, shell, compiler) combinations is much higher. -- ___ Python tracker ___ _

[issue16953] select module compile errors with broken poll()

2013-01-19 Thread Charles-François Natali
Charles-François Natali added the comment: Committed, thanks for the patch! -- stage: -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.2, Python 3.4 ___ Python tracker _

[issue16945] rewrite CGIHTTPRequestHandler to always use subprocess

2013-01-19 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: +v+python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue16953] select module compile errors with broken poll()

2013-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d33c79d2f6b by Charles-François Natali in branch '2.7': Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL. http://hg.python.org/cpython/rev/1d33c79d2f6b New changeset 101e821e5e70 by Charles-François Natali in branch '3

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset d544873d62e9 by Serhiy Storchaka in branch '2.7': Issue #15989: Fix several occurrences of integer overflow http://hg.python.org/cpython/rev/d544873d62e9 -- ___ Python tracker

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 974ace29ee2d by Serhiy Storchaka in branch '3.2': Issue #15989: Fix several occurrences of integer overflow http://hg.python.org/cpython/rev/974ace29ee2d New changeset 8f10c9eae183 by Serhiy Storchaka in branch '3.3': Issue #15989: Fix several occur

[issue16994] collections.Counter.least_common

2013-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > One method of statistically optimising the computation is to remove n least > common elements from the set S. May be you need not remove least common elements from the set, but *get* a set of (len(S)-n) most common elements? > Does it make any sense to yo

[issue16774] Additional recipes for itertools docs

2013-01-19 Thread Alexey Kachayev
Alexey Kachayev added the comment: It's hard to evaluate how popular given recipes, but: * drop is opposite to take, so it's as popular as take * the same situation with splitat, splitby - it's one case of partition that's hard to write each time with enumerator (partition is already in document

[issue16991] Add OrderedDict written in C

2013-01-19 Thread Eric Snow
Eric Snow added the comment: @Benjamin: Yeah, I've fixed that. @Ezio: Good point. I've touched that up. Once I have cleared up reference counting issues I'll put up a new patch. -- ___ Python tracker ___