[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

[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

[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 ___ ___

[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 ___ ___

[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

[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

[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

[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

[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 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

[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 "

[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

[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
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 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 __

[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

[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

[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

[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

[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: 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

[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

[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

[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

[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 ___ ___

[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

[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:

[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).

[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

[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
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 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 ___ _

[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

[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

[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

[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

[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

<    1   2