[issue14769] Add test to automatically detect missing format units in skipitem()

2012-06-19 Thread Larry Hastings
Larry Hastings added the comment: Changes incorporated from Benjamin's feedback. Thanks, Benjamin! Is this ready to go? -- Added file: http://bugs.python.org/file26060/larry.test_skipitem_parity.3.diff ___ Python tracker

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-19 Thread Leon Zhang
Leon Zhang added the comment: No people help me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-19 Thread Leon Zhang
Changes by Leon Zhang : Removed file: http://bugs.python.org/file26015/pygen.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue15110] strange Tracebacks with importlib

2012-06-19 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15110] strange Tracebacks with importlib

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: I agree that this is not helpful at all in the usual case, i.e. when you *don't* want to debug importlib. The one frame in actual user code (distutils in this case) in the middle is kind of hard to spot, but it is what you want to know. Note that Amaury's exa

[issue15113] IDLE Shell: delattr(__builtins__, "getattr") causes shell to stop working

2012-06-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: Why do you think this is a bug? It is expected behavior. -- nosy: +loewis ___ Python tracker ___ _

[issue15113] IDLE Shell: delattr(__builtins__, "getattr") causes shell to stop working

2012-06-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Another note: this bug is reproducable in the IDLE Shell with the python subprocess feature enabled (the python process that runs your commands and the python process that manages IDLE's windows are different). -- ___

[issue15113] IDLE Shell: delattr(__builtins__, "getattr") causes shell to stop working

2012-06-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Running the delattr(__builtins__,"getattr") in Python from the cmd line doesn't create any problems though. -- ___ Python tracker ___ ___

[issue15113] IDLE Shell: delattr(__builtins__, "getattr") causes shell to stop working

2012-06-19 Thread Ramchandra Apte
New submission from Ramchandra Apte : delattr(__builtins__,"getattr") causes shell to stop working if you type some code in nothing gets printed back if you press enter without typing any code you get a traceback Exception in thread SockThread: Traceback (most recent call last): File "/usr/lib

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-19 Thread Brian Curtin
Brian Curtin added the comment: > I don't think file is a good name. Changed to "cmd" for command, and that's what the Unix `which` calls it as well. > Wait, why are we even returning more than one result? I don't see any use > cases for that in the issue (though I admit I just skimmed it).

[issue3208] function annotation for builtin and C function

2012-06-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Awaiting a patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue3208] function annotation for builtin and C function

2012-06-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: What is the status of this bug? -- nosy: +ramchandra.apte ___ Python tracker ___ ___ Python-bugs-li

[issue415492] Compiler generates relative filenames

2012-06-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: What is the status of this bug? This is the oldest open bug. -- nosy: +ramchandra.apte ___ Python tracker ___ ___

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2012-06-19 Thread Walter Mundt
New submission from Walter Mundt : Test case: from argparse import * parser = ArgumentParser() parser.add_argument('-x', action='store_true') parser.add_argument('y') parser.add_argument('z', nargs='*') print parser.parse_args('yy -x zz'.split(' ')) The result of this

[issue6727] ImportError when package is symlinked on Windows

2012-06-19 Thread Éric Araujo
Éric Araujo added the comment: (Oh BTW I put back 3.3 in versions without seeing you had removed it recently; even though the bug is not present there, the tests from 3.2 are merged into 3.3 so if I understand the use of the versions field correctly it makes sense to keep 3.3. Didn’t want yo

[issue6727] ImportError when package is symlinked on Windows

2012-06-19 Thread Éric Araujo
Éric Araujo added the comment: Would you mind making a small change and use assertEqual instead of an assert statement? The test suite should run the same tests under -O and -OO; there are remaining asserts in old tests but for the last year or two we’ve tried to change them. Thanks in adva

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread R. David Murray
R. David Murray added the comment: Note that this is a regression in 2.7.3 relative to 2.7.2, which is why I'm marking it as high priority. -- nosy: +petri.lehtinen priority: normal -> high stage: -> needs patch ___ Python tracker

[issue9750] sqlite3 iterdump fails on column with reserved name

2012-06-19 Thread R. David Murray
R. David Murray added the comment: Note that the use of 'format' in the 2.7 patch caused a regression (% causes an implicit promotion to unicode, .format does not). See issue 15109. -- nosy: +r.david.murray ___ Python tracker

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread R. David Murray
R. David Murray added the comment: Or use 'from __future__ import unicode_literals'. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread R. David Murray
R. David Murray added the comment: >>> print('{}'.format(u'\u2107')) Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u2107' in position 0: ordinal not in range(128) >>> print('%s' % u'\u2107') ℇ (You get the exception withou

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

2012-06-19 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file26058/issue13959_get_tag.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-19 Thread R. David Murray
R. David Murray added the comment: I'm not sure why there isn't a review link for your patch. "which(file..." I don't think file is a good name. 'fn' or 'filename' or 'string' would all be better choices, I think. 'file' implies a Python file object (to me). And "the give *file* command i

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread Ev Kontsevoy
Ev Kontsevoy added the comment: I am attaching death.py file which dies on string.format() The stack trace above is at the full depth. Python doesn't print anything from inside of format(). -- Added file: http://bugs.python.org/file26057/death.py __

[issue15111] Wrong ImportError message with importlib

2012-06-19 Thread R. David Murray
R. David Murray added the comment: To clarify Amaury's example: rdmurray@hey:~/python/p32>./python -c "from distutils import msvc9compiler" Traceback (most recent call last): File "", line 1, in File "/home/rdmurray/python/p32/Lib/distutils/msvc9compiler.py", line 27, in import winre

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread Eric V. Smith
Eric V. Smith added the comment: Could you reproduce this in a short script that doesn't use sqlite? I'm looking for something like: str = 'some-string' "{0}".format(str) Also: is that the entire traceback? I don't see how format could be invoking a codec. Maybe the error occurs when writing

[issue15111] Wrong ImportError message with importlib

2012-06-19 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg163238 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15111] Wrong ImportError message with importlib

2012-06-19 Thread R. David Murray
R. David Murray added the comment: To clarify Amaury's example: rdmurray@hey:~/python/p33>./python -c "import distutils.msvc9compiler" Traceback (most recent call last): File "", line 1, in File "", line 1288, in _find_and_load File "", line 1255, in _find_and_load_unlocked File "

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread Ev Kontsevoy
Ev Kontsevoy added the comment: If the behavior of string.format() can be fixed to act identically to u"%s" % "" that would be simply wonderful! Currently at work we have a rule in place: to never use string.format() since it cannot be used for anything but constants due to encoding exception

[issue15110] strange Tracebacks with importlib

2012-06-19 Thread R. David Murray
R. David Murray added the comment: importlib is written in python. So you get a python traceback of its execution stack. Yes it is noisy, but I'm not sure that this should be changed, or we'd lose some of the benefit of having importlib written in python. (It also might be really complicat

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread R. David Murray
R. David Murray added the comment: It's not clear to me why the behavior differs. Hopefully Eric will explain. For 2.7 we should probably just revert the change to the yield statement to restore the previous behavior, unless format can be fixed. -- nosy: +eric.smith, r.david.murray

[issue15111] Wrong ImportError message with importlib

2012-06-19 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : Up to Python3.2, a nested ImportError was correctly displayed: ./python -c "import distutils.msvc9compiler" Traceback (most recent call last): File "", line 1, in File "/home/amauryfa/python/cpython3.2/Lib/distutils/msvc9compiler.py", line 27, in

[issue15110] strange Tracebacks with importlib

2012-06-19 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : Exceptions during import now display huge tracebacks across importlib._bootstrap, this adds a lot of noise to the error: For example, I added some syntax error in distutils/spawn.py, then: ~/python/cpython3.x$ ./python -c "from distutils import ccompi

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

2012-06-19 Thread Eric Snow
Eric Snow added the comment: Here are the things I'm aware of: * implement imp.get_tag() using sys.implementation * *maybe* implement imp.get_magic() in pure Python (patch already attached here) * (low priority) find a way to rip out the bulk of PyImport_ExecCodeModuleObject() from imp.c, if p

[issue12046] Windows build identification incomplete

2012-06-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's indeed resolved. -- resolution: out of date -> duplicate status: pending -> closed ___ Python tracker ___ ___

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread Ev Kontsevoy
Ev Kontsevoy added the comment: Proposed fix: maybe yield(u"%s;" % row[0]) or simply row[0] + ";"? -- ___ Python tracker ___ ___

[issue13463] Fix parsing of package_data

2012-06-19 Thread Éric Araujo
Éric Araujo added the comment: I’ve been using the release blocker priority to mark things that need to be solved for the next d2 alpha release, and by extension before the 3.3 release as the plan was to have d2 in 3.3 (see my recent python-dev email about that). If that interferes with CPyt

[issue14684] zlib set dictionary support inflateSetDictionary

2012-06-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: I plan to commit it (along with the buffer API changes) tomorrow. -- ___ Python tracker ___ ___ Pytho

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread Ev Kontsevoy
Changes by Ev Kontsevoy : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread Ev Kontsevoy
New submission from Ev Kontsevoy : When calling connection.iterdump() on a database with non-ASCII string values, the following exception is raised: File "/python-2.7.3/lib/python2.7/sqlite3/dump.py", line 56, in _iterdump yield("{0};".fo

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2012-06-19 Thread Pankaj D
Pankaj D added the comment: sorry, 2.7, 3.2 is not an option currently but I am hoping someone can provide enough info to help probe this more efficiently. There seem to be references to this issue on the web but no root-cause. -- ___ Python tracke

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2012-06-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- components: -Cross-Build ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2012-06-19 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Could you possibly reproduce this in 2.7, 3.2 and/or "default" (future 3.3)?. Python 2.6 support is over. -- components: +Cross-Build nosy: +jcea ___ Python tracker

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2012-06-19 Thread Pankaj D
New submission from Pankaj D : Hi, Sporadically, while running an sqlite3 query, the above error is seen. In order to debug, I modified Objects/tupleobject.c, PyTuple_SetItem() as follows: if (!PyTuple_Check(op) || op->ob_refcnt != 1) { Py_XDECREF(newitem);

[issue15096] Drop support for the "ur" string prefix

2012-06-19 Thread Christian Heimes
Christian Heimes added the comment: New patch: * corrected comment in Parser/tokenizer.c * added test for ub"" and bu"" raising SyntaxError * removed handling of ur"" from tokenize module Serhiy, could you please review my changed to the tokenize module? I think I found all relevant places

[issue14928] Fix importlib bootstrapping issues

2012-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be ok now. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15096] Drop support for the "ur" string prefix

2012-06-19 Thread Christian Heimes
Christian Heimes added the comment: I'll submit an updated patch tomorrow. -- assignee: -> christian.heimes ___ Python tracker ___ _

[issue14225] _cursesmodule compile error in OS X 32-bit-only installer build

2012-06-19 Thread Ned Deily
Ned Deily added the comment: It was still valid as of 3.3.0a4. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14928] Fix importlib bootstrapping issues

2012-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3616595dada by Antoine Pitrou in branch 'default': Issue #14928: Fix importlib bootstrap issues by using a custom executable (Modules/_freeze_importlib) to build Python/importlib.h. http://hg.python.org/cpython/rev/c3616595dada -- nosy: +

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-19 Thread Ned Deily
Ned Deily added the comment: In progress; fixes for this and the other Xcode4-related issues will be in for 3.3.0b1. -- ___ Python tracker ___ _

[issue14940] Usage documentation for pysetup

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: Ping. This isn't necessary for beta1, but would be nice to have once the final release draws near. -- nosy: +georg.brandl ___ Python tracker __

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: Ping? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12046] Windows build identification incomplete

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: I guess this is not an issue anymore. -- resolution: -> out of date status: open -> pending ___ Python tracker ___ _

[issue15096] Drop support for the "ur" string prefix

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: If you commit this, please do so before beta1. -- nosy: +georg.brandl ___ Python tracker ___ ___ Pyth

[issue14928] Fix importlib bootstrapping issues

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: Is this ready to go in before beta1? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-li

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

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: Which parts are still missing here? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-lis

[issue12779] Update packaging documentation

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: Ping. Does this block 3.3? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14790] use packaging in setup.py

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: I'm not willing to hold up 3.3 for this. On the other hand, it should not be done in the beta stage. And I don't assume it's a trivial matter (Éric?), so I'm inclined to move it to 3.4. -- nosy: +georg.brandl ___ P

[issue14578] importlib doesn't check Windows registry for paths

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: Brett (and/or Brian?), this sounds like it should be tackled soon, to give Windows users enough time of testing 3.3. -- nosy: +georg.brandl ___ Python tracker _

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

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: Greg, are you still going to update expat in time for 3.3? Otherwise this doesn't block 3.3 anymore. -- ___ Python tracker ___

[issue5302] Allow package_data specs/globs to match directories

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: Does this block 3.3b1? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: So it's not a blocker anymore, right? -- nosy: +georg.brandl priority: release blocker -> normal ___ Python tracker ___ _

[issue14225] _cursesmodule compile error in OS X 32-bit-only installer build

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: Is this issue still valid? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13463] Fix parsing of package_data

2012-06-19 Thread Georg Brandl
Georg Brandl added the comment: This has "Python 3.3" set as Version. Does it really block the 3.3 release? -- nosy: +georg.brandl ___ Python tracker ___ __

[issue15008] PEP 362 "Signature Objects" reference implementation

2012-06-19 Thread Yury Selivanov
Yury Selivanov added the comment: New patch - pep362.6.patch Ezio, I've eliminated almost all '\'. Test coverage is now almost 100%. -- Added file: http://bugs.python.org/file26055/pep362.6.patch ___ Python tracker

[issue15008] PEP 362 "Signature Objects" reference implementation

2012-06-19 Thread Ezio Melotti
Ezio Melotti added the comment: I left a few comments on rietveld. The '\' is sometimes used where not necessary and the preferred way to write conditions on multiple lines is: (foo == bar and bar == baz and baz == asd) rather than foo == bar \ and bar == baz \ and baz == asd Have yo

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-19 Thread Brian Curtin
Brian Curtin added the comment: Before we miss yet another beta freeze, how does something like this look? It moves `which` into one function which always yields paths. I don't think anyone will approve of adding a dual-function API to solve this problem. I originally tried an approach where

[issue15008] PEP 362 "Signature Objects" reference implementation

2012-06-19 Thread Yury Selivanov
Yury Selivanov added the comment: New patch (pep362.6.patch) Fixed a bug in BoundArguments.args when positional arguments were partially mapped by functools.partial -- Added file: http://bugs.python.org/file26053/pep362.6.patch ___ Python tracker

[issue14684] zlib set dictionary support inflateSetDictionary

2012-06-19 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: So my question is easy: could we apply this patch as is and defer any "improvement" to 3.4?. The risk of not doing so would be to miss 3.3 completely. -- ___ Python tracker

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Richard Oudkerk
Richard Oudkerk added the comment: 1.41 Generic emulations of the pthread_cond_* API using 1.42 earlier Win32 functions can be found on the Web. 1.43 The following read can be edificating (or not): 1.44 http://www.cse.wustl.edu/~schmidt/win32-cv-1.html 1.45 +

[issue15008] PEP 362 "Signature Objects" reference implementation

2012-06-19 Thread Yury Selivanov
Yury Selivanov added the comment: New patch (pep362.5.patch) Fixed a bug in BoundArguments.args & BoundArguments.kwargs -- Added file: http://bugs.python.org/file26052/pep362.5.patch ___ Python tracker __

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-19 Thread Christian Heimes
Christian Heimes added the comment: Alright, Antoine. Shall explore option 2b) "optionally create a C implementation as it's much easier to check C code for timing issues" as I suggested in http://bugs.python.org/issue15061#msg162893 ? -- ___ Pyth

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ah, right, the lock x, I forgot about that. -- ___ Python tracker ___ ___ Python-bugs-list

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Richard Oudkerk
Richard Oudkerk added the comment: > It's an interesting article Richard, but I don't see how their 2nd attempt > solves the problem. All it does is block the thread doing the Signal(), > not other threads, from stealing the wakeup. Do you mean the listing on page 5? (The earlier attempts w

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm well aware of the fact that they have different timings. That's > why I argued against including a unicode aware variant of the timing > safe compare function. I would not want to repeat myself, but the compare function can be made safe if it restricts it

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-19 Thread Christian Heimes
Christian Heimes added the comment: I'm well aware of the fact that they have different timings. That's why I argued against including a unicode aware variant of the timing safe compare function. I've used Guido's time machine and seen requests for a unicode function in the future. ;) I thin

[issue15102] Fix 64-bit building for buildbot scripts

2012-06-19 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14187] add "function annotation" entry to Glossary

2012-06-19 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7a72fdcc168 by Kristjan Valur Jonsson in branch 'default': Issue #15038: Document caveats with the emulated condition variables. http://hg.python.org/cpython/rev/d7a72fdcc168 -- ___ Python tracker

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I see, Antoine said the same thing (msg162771). -- ___ Python tracker ___ ___ Python-bugs-lis

[issue15107] Potential Bug in mpdecimal.c

2012-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: > That would probably be because exp(-infinity) is 0, which isn't a > floating-point special value, and ln(-infinity) is NaN, which is. Actually, looking at the code, mpd_setspecial is called under exactly the same circumstances (namely for +inf) in *both* cas

[issue14973] restore python2 unicode literals in "ur" strings

2012-06-19 Thread Vinay Sajip
Changes by Vinay Sajip : -- superseder: -> Drop support for the "ur" string prefix ___ Python tracker ___ ___ Python-bugs-list mailin

[issue15104] Unclear language in __main__ description

2012-06-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue15107] Potential Bug in mpdecimal.c

2012-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: The code looks fine to me. > In the first few lines of this clone, the function mpd_qexp only calls > mpd_setspecial when mpd_isnegative is false while the function mpd_qln > calls mpd_setspecial independent of the value of mpd_isnegative. That would probabl

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Right. Without holding the mutex, the definition of "already blocked" is of course meaningless, since only the holding the mutex can define any ordering. pthread standard indeed says "however, if predictable scheduling behaviour is required, then that

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unicode string timing depends on the string implementation which depends on the maximum character code in the string. Strings 'A'*+'$' 'A'*+'€' have different timings for almost all operations (inluding encode('unicode-internal')). -- nosy

[issue15107] Potential Bug in mpdecimal.c

2012-06-19 Thread Ken Cheung
New submission from Ken Cheung : I observed a code clone from the following files. function : mpd_qexp @ (file: "Python-3.3.0a4/Modules/_decimal/libmpdec/mpdecimal.c", line: 4092)~4165 function : mpd_qln @ (file: "Python-3.3.0a4/Modules/_decimal/libmpdec/mpdecimal.c", line: 4525)~4612 In the

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Richard Oudkerk
Richard Oudkerk added the comment: The notes should also mention that PyCOND_SIGNAL() and PyCOND_BROADCAST() must be called while holding the mutex. (pthreads does not have that restriction.) -- ___ Python tracker

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: It's an interesting article Richard, but I don't see how their 2nd attempt solves the probvlem. All it does is block the thread doing the Signal(), not other threads, from stealing the wakeup. I think I know how to fix this correctly, using a separat

[issue14913] tokenize the source to manage Pdb breakpoints

2012-06-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: Uploaded pdb_default_2.patch. This new patch fixes the previous patch that fails to stop at breakpoints set in nested functions, and extends the previous patch in allowing breakpoints outside function and method definitions. > When a breakpoint is set at the li

[issue15106] Potential Bug in errors.c

2012-06-19 Thread Ken Cheung
New submission from Ken Cheung : I observed a code clone from the following files. function : PyErr_Restore @ (file: "Python-3.3.0a4/Python/errors.c", line: 27)~49 function : PyErr_SetExcInfo @ (file: "Python-3.3.0a4/Python/errors.c", line: 341)~353 The function PyErr_Restore performs some che

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > The implementation for multiprocessing.Condition is virtually the same > > as Listing 3 which the author says he thinks is "formally correct" but > > with "a fundamental performance problem". > > To me, it seems similar to the last listing (under "The Seque

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: The problem Richard describes isn´t a lost wakeup. PyCOND_SIGNAL _will_ wake up _at least_ one thread. It just isn't guaranteed to be one of those who previously called PyCOND_WAIT(): It could be a latecomer to the game, including the one who called

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The problem Richard describes isn´t a lost wakeup. PyCOND_SIGNAL > _will_ wake up _at least_ one thread. It just isn't guaranteed to be > one of those who previously called PyCOND_WAIT(): It could be a > latecomer to the game, including the one who called Si

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The implementation for multiprocessing.Condition is virtually the same > as Listing 3 which the author says he thinks is "formally correct" but > with "a fundamental performance problem". To me, it seems similar to the last listing (under "The Sequel—NT and P

[issue14772] Return destination values in some shutil functions

2012-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset e8ea27ab9fa6 by Brian Curtin in branch 'default': Add versionchanged tags for #14772 changes http://hg.python.org/cpython/rev/e8ea27ab9fa6 -- ___ Python tracker _

[issue15103] Solaris compiler chokes on importlib.h

2012-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As a general rule, generated files should not be included in the > repository. We already include generated files such as configure. This is either for convenience or for bootstrap purposes. > Recent mercurial versions include a "--large" parameter for "hg a

[issue15103] Solaris compiler chokes on importlib.h

2012-06-19 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: As a general rule, generated files should not be included in the repository. Recent mercurial versions include a "--large" parameter for "hg add" that threat files as binary. In particular, precludes "hg diff", that I guess it is the point here. --

[issue15038] Optimize python Locks on Windows

2012-06-19 Thread Richard Oudkerk
Richard Oudkerk added the comment: The implementation in condvar.h is basically the same as one of the attempts mentioned in http://birrell.org/andrew/papers/ImplementingCVs.pdf (Listing 2 fixed to use non-binary semaphores.) The implementation for multiprocessing.Condition is virtually

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-19 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue15103] Solaris compiler chokes on importlib.h

2012-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: This should be fixed now. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

  1   2   >