[issue5513] "What's New" should say VERY CLEARLY that the type file is gone

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r70536. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue5539] open documentation unclear

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r70534. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5540] "file objects" in python 3 tutorial

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why shouldn't it be? One of the goals of 3.x io is to present a more pythonic interface while preserving a similar interface to 2.x. Users can learn about the complete io stack later. -- nosy: +benjamin.peterson _

[issue2170] rewrite of minidom.Node.normalize

2009-03-22 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-03-22 Thread Matthew Barnett
Matthew Barnett added the comment: Ah, too Perlish! :-) Another feature request that I've decided not to consider any further is recursive regular expressions. There are other tools available for that kind of thing, and I don't want the re module to go the way of Perl 6's rules; such things bel

[issue1034053] unittest.py patch: add skipped test functionality

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I've attached a new patch which takes into account Antoine's review. -- ___ Python tracker ___ ___

[issue1034053] unittest.py patch: add skipped test functionality

2009-03-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : Added file: http://bugs.python.org/file13399/unittest_galore.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue1034053] unittest.py patch: add skipped test functionality

2009-03-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : Removed file: http://bugs.python.org/file13396/unittest_galore.patch ___ Python tracker ___ ___ Python-bugs-l

[issue5539] open documentation unclear

2009-03-22 Thread David W. Lambert
Changes by David W. Lambert : -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl versions: +Python 3.0 ___ Python tracker ___ ___

[issue5540] "file objects" in python 3 tutorial

2009-03-22 Thread David W. Lambert
New submission from David W. Lambert : http://docs.python.org/dev/py3k/tutorial/inputoutput.html#methods-of- file-objects Is it proper to discuss file objects in py3K? -- assignee: georg.brandl components: Documentation messages: 83991 nosy: LambertDW, georg.brandl severity: normal stat

[issue5539] open documentation unclear

2009-03-22 Thread David W. Lambert
New submission from David W. Lambert : See thread http://groups.google.com/group/comp.lang.python/browse_thread/thread/85e c714aa6898d84# En Sun, 22 Mar 2009 19:12:13 -0300, Benjamin Peterson escribió: > Gabriel Genellina yahoo.com.ar> writes: >> The undocumented behavior is relying on t

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-03-22 Thread Robert Xiao
Robert Xiao added the comment: Frankly, I don't really like that idea; I think it muddles up the RE syntax to have such a group-modifying operator, and seems rather unpythonic: the existing way to do this -- use .upper(), .lower() or .title() to format the groups in a match object as necessary

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-03-22 Thread Matthew Barnett
Matthew Barnett added the comment: An additional feature that could be borrowed, though in slightly modified form, from Perl is case-changing controls in replacement strings. Roughly the idea is to add these forms to the replacement string: \g<1> provides capture group 1 \u\g<1> provid

[issue5538] tearDown in unittest should be executed regardless of result in setUp

2009-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's up to Steve to decide wheter to commit. I presume that he will want to stay true to JUnit and to avoid risk of breaking existing test suites. -- assignee: -> purcell keywords: +needs review -patch nosy: +purcell, rhettinger __

[issue5538] tearDown in unittest should be executed regardless of result in setUp

2009-03-22 Thread Garrett Cooper
Garrett Cooper added the comment: If someone will provide a link to a page with instructions on how to checkout python from cvs / svn / etc I'll gladly apply a patch to the sources on 2.x and 3.x HEAD. Thanks, -Garrett -- ___ Python tracker

[issue5538] tearDown in unittest should be executed regardless of result in setUp

2009-03-22 Thread Garrett Cooper
Changes by Garrett Cooper : Removed file: http://bugs.python.org/file13397/issue-blah-2.4.5.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue5538] tearDown in unittest should be executed regardless of result in setUp

2009-03-22 Thread Garrett Cooper
Garrett Cooper added the comment: That patch wasn't complete -_-... here's a more complete 2.4.x patch. -- Added file: http://bugs.python.org/file13398/issue-5538-2.4.5.diff ___ Python tracker _

[issue1501108] Add write buffering to gzip

2009-03-22 Thread Lukas Lueg
Lukas Lueg added the comment: This is true for all objects whose input could be concatenated. For example with hashlib: data = ['foobar']*10 mdX = hashlib.sha1() for d in data: mdX.update(d) mdY = hashlib.sha1() mdY.update("".join(data)) mdX.digest() == mdY.digest() the second versio

[issue5538] tearDown in unittest should be executed regardless of result in setUp

2009-03-22 Thread Garrett Cooper
Changes by Garrett Cooper : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5538] tearDown in unittest should be executed regardless of result in setUp

2009-03-22 Thread Garrett Cooper
New submission from Garrett Cooper : While trying to deal with some annoying issues with setting up and tearing down consoles via pexpect, I noticed that the teardown functions / methods weren't being executed via nose. After applying this change to 2.4.5 and 2.6.1, things work as expected (note

[issue5068] tarfile loops forever on broken input

2009-03-22 Thread Lars Gustäbel
Lars Gustäbel added the comment: I just checked in a fix for the problem, r70523-70527. Thank you very much for your report. -- resolution: -> fixed status: open -> closed versions: +Python 2.5 ___ Python tracker

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Bob Ippolito
Bob Ippolito added the comment: The documentation says "If specified, default is a function that gets called for objects that can’t otherwise be serialized. It should return a JSON encodable version of the object or raise a TypeError." *can't otherwise be serialized* means that the object mus

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Pierre Hanser
Pierre Hanser added the comment: you realize that the current handling is incorrect and also not documented? and that the described case is from the real world: it prevents using pydbus and dbus.Boolean type to send a json boolean I don't take your argument about performance: i would like to h

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2009-03-22 Thread Chris Hollenbeck
New submission from Chris Hollenbeck : The LWPCookieJar can be saved on 64-bit Ubuntu, but not on 32-bit Ubuntu when the expiration year is greater than 2038. This has not been tested on any other Intel-compatible Linux platform, though it appears related to the Year 2038 bug. The MozillaCookie

[issue5536] urllib: urlretrieve() does not close file objects on failure

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r70521. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue1034053] unittest.py patch: add skipped test functionality

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's the patch on Rietveld: http://codereview.appspot.com/27095 -- ___ Python tracker ___ __

[issue5532] imap usage in itertools unique_justseen recipe

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Done in r70520. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue1034053] unittest.py patch: add skipped test functionality

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Ok, here's my unittest skipping patch. It supports skipping classes and expected failures and includes skipping decorators. I had to employ a little evil to make test skipping work for classes. The made a new TestSuite class called ClassTestSuite, to contain

[issue5531] unittest: allow failures in tearDown method

2009-03-22 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch and the attempt, Tim! -- Added file: http://bugs.python.org/file13395/unnamed ___ Python tracker ___Thanks for the patch and

[issue5531] unittest: allow failures in tearDown method

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I concur with other developers. In strict unittesting, assertions of correct behavior should only ever happen in the test not during set up or tear down. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Bob Ippolito
Bob Ippolito added the comment: It is common to specify a default function but it would be terrible for performance if this function was called for every single object passed through to the decoder. If you want a serialization different from a primitive type you'll have to choose a differen

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2009-03-22 Thread Martin von Gagern
Changes by Martin von Gagern : -- nosy: +gagern ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4688] GC optimization: don't track simple tuples and dicts

2009-03-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> bob.ippolito nosy: +bob.ippolito ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5502] io-c: TextIOWrapper is faster than BufferedReader but not protected by a lock

2009-03-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou priority: -> normal stage: -> needs patch type: -> performance ___ Python tracker ___ __

[issue5529] Backport sys module docs involving import to 2.7

2009-03-22 Thread Georg Brandl
Georg Brandl added the comment: Oh, it's nice to have something to do at PyCon. :) -- assignee: -> georg.brandl ___ Python tracker ___ __

[issue5536] urllib: urlretrieve() does not close file objects on failure

2009-03-22 Thread Petr Dolezal
New submission from Petr Dolezal : urllib.request.urlretrieve() does not close the file object created for the retrieval when it fails during processing of the incoming data and raises an exception (e.g. on HTTP 404 response). Therefore the file remains opened until the process terminates and the

[issue5531] unittest: allow failures in tearDown method

2009-03-22 Thread Tim Cuthbertson
Tim Cuthbertson added the comment: In my mind, an error means something is wrong. A failure just means a test case hasn't been implemented yet, or has regressed. For me it's misleading to have an AssertionError reported as a failure. It's not as if changing the reporting in this way could cause

[issue1501108] Add write buffering to gzip

2009-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Although the script does not work as-is (missing import of "string", typo between "frags" and "wfrags"), I can conform the 3x ratio. -- nosy: +pitrou ___ Python tracker

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-22 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> marketdickinson components: +Interpreter Core priority: -> normal type: -> feature request ___ Python tracker ___ __

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-22 Thread Mark Dickinson
Mark Dickinson added the comment: A few comments: I think PyLong_SIGN and PyLong_EQUALS_ZERO should go in Include/longobject.h, not Include/longintrepr.h: these 2 macros have an unambiguous meaning for *any* representation of integers. And longintrepr.h is really supposed to be private, fo

[issue5531] unittest: allow failures in tearDown method

2009-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed with Brett and Raymond. Besides, I'm not sure how getting a failure rather an error changes anything in the big picture (for my non native English-speaking brain, it certainly doesn't make a difference :-)). -- nosy: +pitrou

[issue4688] GC optimization: don't track simple tuples and dicts

2009-03-22 Thread Martin v. Löwis
Martin v. Löwis added the comment: The patch looks fine to me. Some documentation is missing, still: is_tracked needs to be documented in the regular documentation, and SHOW_TRACK_COUNT should be documented in SpecialBuilds.txt. I'm not sure whether you actually want to integrate SHOW_TRACK_COU

[issue3944] faster long multiplication

2009-03-22 Thread Pernici Mario
Pernici Mario added the comment: This patch comes from 30bit_longdigit13+optimizations1.patch in issue4258 with modification for the case of multiplication by 0; it passes test_long.py and pidigits is a bit faster. -- Added file: http://bugs.python.org/file13394/longobject_diff1 __

[issue5534] Decimal __format__ reverses meaning of '<' and '>' alignment specs

2009-03-22 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, it should be fixed already in the release maintenance branches. See r70430 through r70433. -- resolution: -> out of date status: open -> closed ___ Python tracker __

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Pierre Hanser
New submission from Pierre Hanser : The json module provides an encoder python -> json. The encoding may be specialized by the user, using the cls parameter of the dumps function. But all simple types are always handled by the library encoder, the user encoder is only used as a last resort one,

[issue1497532] C API to retain GIL during Python Callback

2009-03-22 Thread Lukas Lueg
Lukas Lueg added the comment: I'm not sure if such a API is feasible. The very nature of Python makes it impossible to tell in advance what the interpreter will do when getting called. This is even true for simple functions - think of your function getting decorated... Let's consider the follow

[issue5534] Decimal __format__ reverses meaning of '<' and '>' alignment specs

2009-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Mark, can you confirm that this is out of date? -- nosy: +rhettinger ___ Python tracker ___ ___ P

[issue4753] Faster opcode dispatch on gcc

2009-03-22 Thread Andrew I MacIntyre
Andrew I MacIntyre added the comment: Out of interest, the attached patch against the py3k branch at r70516 cleans up the threaded code changes a little: - gets rid of TARGET_WITH_IMPL macro; - TARGET(op) is followed by a colon, so that it looks like a label (for editors that make use of that).