[issue14309] Deprecate time.clock()

2012-03-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > Python 3.3 has 3 functions to get time: > > - time.clock() > - time.steady() > - time.time() > > Antoine Pitrou suggested to deprecated time.clock() in msg120149 (issue > #10278). >

[issue4199] add shorthand global and nonlocal statements

2012-03-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 on the feature as described in the PEP. -- nosy: +rhettinger ___ Python tracker ___ ___ Python

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-14 Thread R. David Murray
R. David Murray added the comment: Fixed in the email6 feature branch. Thanks Brian. -- status: open -> closed ___ Python tracker ___ __

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-14 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray resolution: -> fixed stage: -> committed/rejected type: -> behavior ___ Python tracker ___ ___

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
R. David Murray added the comment: Note that this patch causes test_logging to fail/hang. I've opened issue 14314 that mentions the hang (the issue is really about the lack of a timeout in logging's smtp handler) and updated issue 11959 about the issues involved in test_logging using smtpd t

[issue12758] time.time() returns local time instead of UTC

2012-03-14 Thread Dylan Sarber
Dylan Sarber added the comment: I patched this one up quickly. One has been changed using belopolsky's recommendation, which already reads well. -- keywords: +patch nosy: +dwsarber Added file: http://bugs.python.org/file24858/time_doc_fix.patch ___

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-03-14 Thread 勇刚 罗
勇刚 罗 added the comment: +1 _get_default_tempdir to use normpath -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue4199] add shorthand global and nonlocal statements

2012-03-14 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11959] smtpd cannot be used without affecting global state

2012-03-14 Thread R. David Murray
R. David Murray added the comment: The test failure in #14314 isn't a bug in my code, it is due to the fact that you copied the __init__ method of SMTPChannel in your logging tests, and the __init__ is changed by my patch. Clearly it would be good to resolve this issue one way or another. I

[issue8963] test_urllibnet failure

2012-03-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Closing this based on - msg155387. The upstream bug is "unfortunately" closed as OLD. We can reopen if this stumble upon this again. -- resolution: -> invalid stage: needs patch -> committed/rejected status: open -> closed __

[issue14314] logging smtp handler (and test) timeout issue

2012-03-14 Thread R. David Murray
New submission from R. David Murray : I'm working on a patch that updates smtpd, and when I ran the full test suite I got a hang in test_logging. This means there's a bug in my update, but there is also a bug in the logging test. But see below for another issue I noticed while investigating t

[issue13153] IDLE crashes when pasting non-BMP unicode char on UCS-16 build

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Not sure. Let me to investigate the problem deeper. -- ___ Python tracker ___ ___ Python-bugs-list

[issue14163] tkinter: problems with hello doc example

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed into master. Thanks. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14163] tkinter: problems with hello doc example

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8ba959a547b by Andrew Svetlov in branch 'default': Closes issue #14163 - tkinter: problems with hello doc example http://hg.python.org/cpython/rev/d8ba959a547b -- nosy: +python-dev ___ Python tracker <

[issue14313] zipfile does not unpack files from archive (files extracted have zero length)

2012-03-14 Thread Sergey Dorofeev
New submission from Sergey Dorofeev : unzip does extract files but zipfile no works fine with python2.7 but fails with python 3.2.2 tested on solaris 11 express and windows xp >>> import zipfile >>> zipfile.ZipFile("test.zip") >>> z=_ >>> z.namelist > >>> z.namelist() ['19A7B5A4.PKT'] >>> z.rea

[issue14133] improved PEP 409 implementation

2012-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm wondering if allowing printing __context__ and __cause__ is the best idea. Both could have chains and if they do it will be very non-obvious which one came from which. -- ___ Python tracker

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm guessing the most important part to review is the binding of importlib into being the main import implementation? (It's been in the tree a while, so I assume the kinks of the actual import implementation have been mostly ironed out.) -- _

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: I consulted with Martin at PyCon sprint and he suggested sulution which I'm following — to split `print` and REPL (read-eval-print loop). Output passed to print() function encoded with sys.stdout.encoding UTF has been invented to support any character. Linux

[issue14312] Convert PEP 7 to reStructuredText for readability purposes

2012-03-14 Thread Berker Peksag
Changes by Berker Peksag : -- assignee: docs@python components: Documentation files: pep-0007_v1.diff keywords: patch nosy: berker.peksag, docs@python priority: normal severity: normal status: open title: Convert PEP 7 to reStructuredText for readability purposes type: enhancement Added

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file24855/issue8739.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
R. David Murray added the comment: OK, I've gone through Dan's update (thanks very much for the tests!). I'm uploading a revised patch. The major differences are: I've refactored the parsing. Now it is a three step process: peel off the extra keyword (FROM:, TO:) if there is one, then pull

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-14 Thread Brian Jones
Changes by Brian Jones : -- nosy: +Brian.Jones ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14163] tkinter: problems with hello doc example

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: The current tk_hello.py file works under Ubuntu 11.04 with the latest python build from the repository. It looks good to me. -- ___ Python tracker __

[issue14296] Compilation error on CentOS 5.8

2012-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can you try on the default branch now? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue14296] Compilation error on CentOS 5.8

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 760347b11ef8 by Benjamin Peterson in branch 'default': try to fix compilation on glibc's with cpu sets (#14296) http://hg.python.org/cpython/rev/760347b11ef8 -- nosy: +python-dev ___ Python tracker

[issue9216] FIPS support for hashlib

2012-03-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: My summary of our discussion was pretty terse. :) dmalcolm has more detailed TODO list notes that include things like the error cases and .rst documentation. As for how to commit it, i'd make 0001 its own commit as it is a useful refactoring otherwise unre

[issue14163] tkinter: problems with hello doc example

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: What the status of 'hello demo'? If there are no objections I can update the docs. -- nosy: +asvetlov ___ Python tracker ___ _

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Andrew, I do admit that I have a lot to learn about Unicode support in Python, for instance with its error-handling and its corner cases. On Windows Vista, I do see that print() behaves differently than evaluating the expression. An exception is raised for: p

[issue14311] ConfigParser does not parse utf-8 files with BOM bytes

2012-03-14 Thread Sean Wang
New submission from Sean Wang : ConfigParser failed to parse a utf-8 file with BOM bytes('\xef\xbb\xbf'), it would raise ConfigParser.MissingSectionHeaderError. I think that other files with BOM would have the same problem; because the argument "SECTCRE" does not consider the BOM conditions. N

[issue14310] Socket duplication for windows

2012-03-14 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : winsock natively supports the duplciation of sockets for use on different processes. This patch proposes to add that functionality: socket.duplicate(target_pid) gets a bytes representation of the duplicate socket, usable for the target process. sock

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-03-14 Thread Ezio Melotti
Ezio Melotti added the comment: I don't mind if they are removed in 3.3 or 3.4, as long as they are documented in all the versions where they are present. -- ___ Python tracker ___

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: okay. it is time to cut the rc2 release candidates with these changes. -- assignee: barry -> gregory.p.smith resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-03-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Ezio, I'm was thinking of marking the code and its docstring as removed/unused, but if you want the code removed altogether, that would be fine. -- ___ Python tracker

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-03-14 Thread Ezio Melotti
Ezio Melotti added the comment: Raymond, I think it's better to leave the documentation and use "deprecated-removed" to signal clearly that those functions are deprecated and when they will be removed (even if this means 3.4). IME removing documentation creates more confusion because people

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2012-03-14 Thread STINNER Victor
STINNER Victor added the comment: See also #14222. Python 3.3 has a new time.steady() function. -- ___ Python tracker ___ ___ Python-

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ddb78341290 by Raymond Hettinger in branch 'default': Issue #13248: Removed docs for two deprecated unittest features. To be conservative, the code is left in for one more release. http://hg.python.org/cpython/rev/0ddb78341290 -- _

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset b2d4a6a9463e by Gregory P. Smith in branch '3.2': Fixes Issue 14234: fix for the previous commit, keep compilation when http://hg.python.org/cpython/rev/b2d4a6a9463e New changeset db27b7353400 by Gregory P. Smith in branch 'default': Fixes Issue 14

[issue11261] urlopen breaks when data parameter is used.

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset fddbe9a59d26 by Senthil Kumaran in branch '3.2': Fix the wrong urllib exampls which use str for POST data. Closes Issue11261 http://hg.python.org/cpython/rev/fddbe9a59d26 New changeset 0345dc184e9a by Senthil Kumaran in branch 'default': cpython:Fi

[issue14222] Using time.time() in Queue.get breaks when system time is changed

2012-03-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yo, I had marked this as something I was going to review once the python-dev discussion to complete. FWIW, I'm the maintainer of the Queue module. -- ___ Python tracker _

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: configure --with-system-expat was introduced in 2.7 and 3.2 so 2.6 and 3.1 are good to go for release candidates. patch tests are running now. -- ___ Python tracker __

[issue14309] Deprecate time.clock()

2012-03-14 Thread STINNER Victor
New submission from STINNER Victor : Python 3.3 has 3 functions to get time: - time.clock() - time.steady() - time.time() Antoine Pitrou suggested to deprecated time.clock() in msg120149 (issue #10278). "The problem is time.clock(), since it does two wildly different things depending on the

[issue13963] dev guide has no mention of mechanics of patch review

2012-03-14 Thread Ezio Melotti
Ezio Melotti added the comment: Most of the patches are against 3.2 or 2.7, so applying them to "default" might fail. If we specify the correct branch, rietveld should be able to apply them cleanly to the head of the branch even without knowing the exact revision (so even with git-style diff)

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: One issue has been identified when compiling with --system-expat. if the system expat library does not have the hash salt support, compilation breaks. fixing now. -- ___ Python tracker

[issue14222] Using time.time() in Queue.get breaks when system time is changed

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset d97ae725814c by Victor Stinner in branch 'default': Issue #14222: Use the new time.steady() function instead of time.time() for http://hg.python.org/cpython/rev/d97ae725814c -- nosy: +python-dev ___ Pyth

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c8d066013ea by Barry Warsaw in branch '2.6': - Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes in the hash http://hg.python.org/cpython/rev/9c8d066013ea -- ___ Python tracker

[issue10278] add time.wallclock() method

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27441e0d6a75 by Victor Stinner in branch 'default': Issue #10278: Add an optional strict argument to time.steady(), False by default http://hg.python.org/cpython/rev/27441e0d6a75 -- ___ Python tracker <

Re: [issue13963] dev guide has no mention of mechanics of patch review

2012-03-14 Thread Senthil Kumaran
Yeah, the other option is to fix the tracker-reitveld integration. (Which I assumed was harder because diff did not give hg info required for it) ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archi

[issue14295] PEP 417: adding mock module

2012-03-14 Thread Éric Araujo
Éric Araujo added the comment: “If your public attribute name collides with a reserved keyword, append a single trailing underscore to your attribute name. This is preferable to an abbreviation or corrupted spelling. (However, notwithstanding this rule, 'cls' is the preferred spelling for a

[issue14217] text output pretends to be code

2012-03-14 Thread Éric Araujo
Éric Araujo added the comment: I thought nonlocal had been backported to 2.7 but you’re right, it was not. -- stage: patch review -> committed/rejected ___ Python tracker ___ __

[issue13963] dev guide has no mention of mechanics of patch review

2012-03-14 Thread Éric Araujo
Éric Araujo added the comment: This is highly debatable. All Mercurial guides that I’ve seen recommend setting git=on because of its many advantages. On the other side there is only one inconvenient. I’m strongly opposed to removing that info from the devguide because one tool can’t cope w

[issue14295] PEP 417: adding mock module

2012-03-14 Thread Michael Foord
Michael Foord added the comment: Feel free to suggest changes on this issue. _callable can probably go now I agree. cls is only suggested by PEP 8 for classmethods I believe, and off the top of my head I don't think mock has any of those. -- ___

[issue14295] PEP 417: adding mock module

2012-03-14 Thread Éric Araujo
Éric Araujo added the comment: I’ve seen some things to clean up in the code, like the fact that callable is back in 3.2+, or (I hate to point this) the ugly-according-to-PEP-8 klass instead of cls; I may read the code more carefully later if it helps. -- nosy: +eric.araujo _

[issue10278] add time.wallclock() method

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset c11946846474 by Victor Stinner in branch 'default': Issue #10278: Drop time.monotonic() function, rename time.wallclock() to time.steady() http://hg.python.org/cpython/rev/c11946846474 -- ___ Python tra

[issue14308] '_DummyThread' object has no attribute '_Thread__block'

2012-03-14 Thread R. David Murray
Changes by R. David Murray : -- stage: -> test needed title: Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in ignored -> '_DummyThread' object has no attribute '_Thread__block' type: crash -> behavior versions: +Python 3.2, Pytho

[issue14307] Make subclassing SocketServer simpler for non-blocking frameworks

2012-03-14 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : Added file: http://bugs.python.org/file24853/75647.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue14307] Make subclassing SocketServer simpler for non-blocking frameworks

2012-03-14 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : Removed file: http://bugs.python.org/file24851/75647.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue14308] Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'", ) in ignored

2012-03-14 Thread Dustin Kirkland
New submission from Dustin Kirkland : My Apache2 logs are filled with the following error kicked out by my python wsgi script: [Wed Mar 14 18:16:38 2012] [error] Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in ignored I was able to sil

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Roger, you are missing the difference between calling print() and evaluating expression in python interactive mode. While later should be unicode escaped the former should to raise error — we need to follow the same way as console python interactive session do

[issue14307] Make subclassing SocketServer simpler for non-blocking frameworks

2012-03-14 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : Added file: http://bugs.python.org/file24851/75647.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue14307] Make subclassing SocketServer simpler for non-blocking frameworks

2012-03-14 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : SocketServer employs select.select to achieve timeout behaviour on accepting new requests. Unfortunately, the way this is implemented makes it tricky to bypass this behaviour for users that want to achieve timeout in a different manner. This defect

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset b30171bbc571 by Benjamin Peterson in branch 'default': remove get_prefix and set_prefix (#13248) http://hg.python.org/cpython/rev/b30171bbc571 -- ___ Python tracker _

[issue14304] Implement utf-8-bmp codec

2012-03-14 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue13153] IDLE crashes when pasting non-BMP unicode char on UCS-16 build

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Issue14200 has a patch to fix this problem. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Attached is a better implementation of the patch. The Percolator which ultimately handles writing to the Text widget should intercept the ValueError due to non-BMP characters. The issue14200_rev1.patch fixes this issue and Issue13153. -- status: closed

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: the fix is in the 3.1, 3.2, 3.3 and 2.7 trees. It still need applying to the 2.6 branch (it applies cleanly other than Misc/NEWS); I'll let Barry do that one. New rc2 release candidates should be made. Otherwise I think we're ready for the releases. I'm

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset b54f5849013c by Gregory P. Smith in branch '2.7': Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes http://hg.python.org/cpython/rev/b54f5849013c -- ___ Python tracker

[issue13153] IDLE crashes when pasting non-BMP unicode char on UCS-16 build

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Issue13582 deals with the IDLE error feedback. -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-

[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Rather than raising a ValueError, would UnicodeEncodeError be more appropriate? I admit that this suggestion may be bike shedding. -- ___ Python tracker

[issue14305] fix typos

2012-03-14 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- hgrepos: -116 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b5bc1719477 by Gregory P. Smith in branch '3.1': Fixes issue #14234: CVE-2012-0876: Randomize hashes of xml attributes http://hg.python.org/cpython/rev/7b5bc1719477 New changeset d6c197edd99b by Gregory P. Smith in branch '3.2': Fixes Issue #14234

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Attached is a patch to undo Andrew's and fixes the issue in a simple manner. The tcl_unicode_range.patch from Issue12342 has already been applied, so catching ValueError within IDLE is all that is now needed. -- Added file: http://bugs.python.org/file248

[issue14217] text output pretends to be code

2012-03-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Éric - not really. nonlocal is from python3.x onwards only. -- ___ Python tracker ___ ___ Python-

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Andrew, please reopen this issue. Your committed patch does not work if IDLE is not using the subprocess. >>> got_ahsa = "\N{GOTHIC LETTER AHSA}" >>> got_ahsa Traceback (most recent call last): File "", line 1, in got_ahsa File "i

[issue12558] Locale-dependent exception for float width argument to Tkinter widget constructor

2012-03-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2012-03-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in #14200 -- assignee: -> asvetlov resolution: fixed -> duplicate stage: commit review -> committed/rejected status: open -> closed superseder: -> Idle shell crash on printing non-BMP unicode character versions: -Python 2.7, Python 3.2 ___

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

2012-03-14 Thread Ezio Melotti
Ezio Melotti added the comment: What it's trying to say is that in case the operation in the "try" block succeeds there's almost no overhead, so it's very efficient. On the other hand, raising and then catching the error is expensive. -- nosy: +ezio.melotti _

[issue13153] IDLE crashes when pasting non-BMP unicode char on UCS-16 build

2012-03-14 Thread Ned Deily
Ned Deily added the comment: Reassigning to Andrew to investigate solution similar to the one used in Issue14200. -- assignee: ned.deily -> astrand nosy: +astrand title: IDLE crash with unicode bigger than 0x -> IDLE crashes when pasting non-BMP unicode char on UCS-16 build versio

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

2012-03-14 Thread Georg Brandl
Georg Brandl added the comment: It could be reworded, yes. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13153] IDLE crashes when pasting non-BMP unicode char on UCS-16 build

2012-03-14 Thread Ned Deily
Changes by Ned Deily : -- nosy: -astrand ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue13153] IDLE crashes when pasting non-BMP unicode char on UCS-16 build

2012-03-14 Thread Ned Deily
Ned Deily added the comment: (Oops, wrong assignment!) -- assignee: astrand -> asvetlov nosy: +asvetlov ___ Python tracker ___ ___ Py

[issue14305] fix typos

2012-03-14 Thread Roundup Robot
New submission from Roundup Robot : New changeset 0092ab03fdd5 by Georg Brandl in branch '3.2': Closes #14305: fix typo. http://hg.python.org/cpython/rev/0092ab03fdd5 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed

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

2012-03-14 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : In Doc/faq/design.rst, we got this text: "A try/except block is extremely efficient. Actually catching an exception is expensive." The 2 sentences appear contradictory. -- assignee: docs@python components: Documentation messages: 155798 nosy:

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-03-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: In unittest, DictContainsSubset() should be removed from 3.3. It was defective by design (wrong argument order). I concur with Ezio that the other unittest methods should remain intact. I'm not sure whether assertSameElements() should stay or go (when G

[issue8536] Support new features of ZLIB 1.2.4

2012-03-14 Thread Nadeem Vawda
Nadeem Vawda added the comment: Jesús, did you have any particular idea about exactly where these new features would be useful? Or was your idea that someone needs to read through the code and check whether the features can be used at all? Also, it should be noted that the scope of this issue h

[issue14305] fix typos

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

[issue7978] SocketServer doesn't handle syscall interruption

2012-03-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue14305] fix typos

2012-03-14 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- keywords: +patch Added file: http://bugs.python.org/file24847/08b3d0bf0a61.diff ___ Python tracker ___ __

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-03-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue13963] dev guide has no mention of mechanics of patch review

2012-03-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: It should be noted that diff in git supported format is recommended in the devguide - http://docs.python.org/devguide/committing.html#minimal-configuration If it breaks the rietveld integration, then we should not be advising it. -- nosy: +orsenth

[issue14305] fix typos

2012-03-14 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- hgrepos: 116 nosy: tshepang priority: normal severity: normal status: open title: fix typos ___ Python tracker ___ __

[issue14139] test_ftplib: segfault

2012-03-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue14222] Using time.time() in Queue.get breaks when system time is changed

2012-03-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Patch escapes avery non-ascii char while better to escape only non-BMP. Will be done after #14304 -- resolution: -> fixed ___ Python tracker

[issue14304] Implement utf-8-bmp codec

2012-03-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- components: +Tkinter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue14304] Implement utf-8-bmp codec

2012-03-14 Thread Andrew Svetlov
New submission from Andrew Svetlov : Tkinter (and IDLE specially) can use only UCS-2 characters. In PyShell IDLE tries to escape non-ascii. To better result we should to escape only non-BMP chars leaving BMP characters untouched. -- assignee: asvetlov messages: 155793 nosy: asvetlov pri

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30f13d7fecd0 by Senthil Kumaran in branch 'default': Fix the buildbot breakdown - issue 10050 http://hg.python.org/cpython/rev/30f13d7fecd0 -- ___ Python tracker

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: false alarm, thats just what happens when PYTHONHASHSEED=0 (I won't be committing the assert, I was just testing behavior). For what its worth, the xmlparse.c generate_hash_seed() function is pretty poor as far as picking a random number goes as it is time

[issue13959] Re-implement parts of imp in pure Python

2012-03-14 Thread Brett Cannon
Brett Cannon added the comment: Attached is a start for re-implementing imp. Still need code for cache_from_source, source_from_cache, find_module, load_module, reload, load_compiled, load_source, and load_package. -- keywords: +patch Added file: http://bugs.python.org/file24846/imp.d

  1   2   >