[issue12944] Accept arbitrary files for packaging's upload command

2011-10-16 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-10-16 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue13185] Why does Python interpreter care about curvy quotes in comments?

2011-10-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Martin and Ezio. This report was correctly closed as invalid. -- nosy: +rhettinger ___ Python tracker ___

[issue13183] pdb skips frames after hitting a breakpoint and running step

2011-10-16 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13191] Typo in argparse documentation

2011-10-16 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue13185] Why does Python interpreter care about curvy quotes in comments?

2011-10-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: Am 17.10.2011 06:22, schrieb Phillip Feldman: > This is a fine example of the so-called "is-ought" controversy. Wrong. This has nothing to do with desired and factual. A bug, by definition, is a deviation from the specification. This is not a bug, since it exa

[issue12619] Automatically regenerate platform-specific modules

2011-10-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: -1 on auto-building. The header needed may not be available on the build platform, if it is not normally needed to build Python. -- ___ Python tracker __

[issue13185] Why does Python interpreter care about curvy quotes in comments?

2011-10-16 Thread Ezio Melotti
Ezio Melotti added the comment: In theory, with some encodings you can't even know where the line (and the comment) ends if you don't decode first. Also it doesn't seem worth to me changing the way files are parsed just for this use case. Assuming you are using UTF-8 (and you should), you sh

[issue13185] Why does Python interpreter care about curvy quotes in comments?

2011-10-16 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: Hello Martin, This is a fine example of the so-called "is-ought" controversy. The error message is indeed telling me exactly what the problem is, but the underlying problem is that this scheme was poorly thought out. Clearly, the stripping of comments and

[issue415492] Compiler generates relative filenames

2011-10-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13192] ImportError silences low-level OS errors

2011-10-16 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue415492] Compiler generates relative filenames

2011-10-16 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2011-10-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2011-10-16 Thread STINNER Victor
STINNER Victor added the comment: What is the status of this issue? rot13 codecs & friends were added back to Python 3.2 with {bytes,str}.(un)transform() methods: commit 7e4833764c88. Codecs were disabled because of surprising error messages before the release of Python 3.2 final: issue #108

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-16 Thread Mark Hammond
Mark Hammond added the comment: I pushed the changes to 2.7, 3.2 and 3.3. I'm happy to help with distutils2/packaging but I'll need to do that later once I work out where to start :) Therefore I'm not yet closing this issue. -- ___ Python tracker

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb886858024c by Mark Hammond in branch '2.7': Issue #7833: Ext. modules built using distutils on Windows no longer get a manifest http://hg.python.org/cpython/rev/fb886858024c New changeset 9caeb7215344 by Mark Hammond in branch '3.2': Issue #7833

[issue12619] Automatically regenerate platform-specific modules

2011-10-16 Thread STINNER Victor
STINNER Victor added the comment: > is auto-generation wanted? For example, Lib/plat-linux/IN.py was regenerated at Nov 23 12:09:28 2002 (revision c2604d69aa5d) for the last time, and nobody complained. These modules are inconsistent. For example, the IN module contains constants of 64 bits

[issue12619] Automatically regenerate platform-specific modules

2011-10-16 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file23423/python-regenerate_platdir.patch ___ Python tracker ___ _

[issue415492] Compiler generates relative filenames

2011-10-16 Thread Armin Ronacher
Armin Ronacher added the comment: The reason why this is a problem: $ cat test.py def foo(): pass >>> import test, os, inspect >>> os.chdir('/') >>> inspect.getsource(test) 'def foo():\npass\n' But >>> import test, os, inspect >>> os.chdir('/') >>> inspect.getsource(test) Traceback

[issue12619] Automatically regenerate platform-specific modules

2011-10-16 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file22726/python-regenerate_platdir.patch ___ Python tracker ___ ___

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-10-16 Thread STINNER Victor
STINNER Victor added the comment: Using your patch, h2py.py skips all statements that cannot be decoded from UTF-8, whereas unpatched h2py.py accepts all statements that can be decoded from the locale encoding. I don't know if it is intentional to accept non-ASCII statements. It is maybe safe

[issue415492] Compiler generates relative filenames

2011-10-16 Thread Nick Coghlan
Nick Coghlan added the comment: It's fairly easy to check this is still a problem: $ ./python Python 3.3.0a0 (default:a06ef7ab7321, Sep 22 2011, 13:41:29) [GCC 4.6.0 20110603 (Red Hat 4.6.0-10)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import setup >>

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-16 Thread Stefan Krah
Stefan Krah added the comment: I temporarily changed the Fedora bot to run Fedora-14-i386. The same failures can be observed: == ERROR: test_no_optimize_flag (distutils.tests.test_bdist_rpm.BuildRpmTestCase) ---

[issue13194] zlib (de)compressobj copy() method missing on Windows

2011-10-16 Thread Nadeem Vawda
Nadeem Vawda added the comment: Confirmed for 3.3. I should be able to post a patch tomorrow. -- assignee: -> nadeem.vawda ___ Python tracker ___ __

[issue10653] test_time test_strptime fails on windows

2011-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 977c5753ca32 by Victor Stinner in branch '3.2': Issue #10653: Fix time.strftime() on Windows, check for invalid format strings http://hg.python.org/cpython/rev/977c5753ca32 -- ___ Python tracker

[issue13194] zlib (de)compressobj copy() method missing on Windows

2011-10-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis, nadeem.vawda versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13192] ImportError silences low-level OS errors

2011-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think that fopen() can fails with ENOTDIR. According to POSIX: [ENOTDIR] A component of the path prefix is not a directory, or the filename argument contains at least one non- character and ends with one or more trailing characters and the last

[issue13192] ImportError silences low-level OS errors

2011-10-16 Thread STINNER Victor
STINNER Victor added the comment: > I suggest also ignoring ENOTDIR and EISDIR. Not sure about EACCES. We should maybe mimick the io module: >>> open('Lib') IsADirectoryError: [Errno 21] Is a directory: 'Lib' In the io module, opening a directory raises an exception. In the import machinery

[issue11776] types.MethodType() params and usage is not documented

2011-10-16 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue13194] zlib (de)compressobj copy() method missing on Windows

2011-10-16 Thread Simon Elén
New submission from Simon Elén : The zlib (de)compressobj copy() method is missing on Windows. Tested on Python 2.7.2 and 3.2.2 Windows binaries. I have not tried to build from source. (In the source code I can see a check for HAVE_ZLIB_COPY. Does the Windows binaries statically link the incl

[issue13193] test_packaging and test_distutils failures under Windows

2011-10-16 Thread Antoine Pitrou
New submission from Antoine Pitrou : http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/3593/steps/test/logs/stdio -- assignee: tarek components: Distutils, Distutils2, Library (Lib), Tests messages: 145643 nosy: alexis, eric.araujo, pitrou, tarek priority: high seve

[issue13192] ImportError silences low-level OS errors

2011-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > _Py_fopen() returns NULL without raising an exception if fopen() fails. > > Attached patch raises a OSError if fopen() if errno is different than > ENOENT. I don't know if ENOENT is the right error number on Windows. It seems so. > Should we ignore more er

[issue13189] New bdist_simple binary distribution format for packaging

2011-10-16 Thread Paul Moore
Paul Moore added the comment: New patch including some basic tests. -- Added file: http://bugs.python.org/file23422/bdist_simple.patch ___ Python tracker ___ ___

[issue13189] New bdist_simple binary distribution format for packaging

2011-10-16 Thread Paul Moore
Changes by Paul Moore : Removed file: http://bugs.python.org/file23417/bdist_simple.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13192] ImportError silences low-level OS errors

2011-10-16 Thread STINNER Victor
STINNER Victor added the comment: _Py_fopen() returns NULL without raising an exception if fopen() fails. Attached patch raises a OSError if fopen() if errno is different than ENOENT. I don't know if ENOENT is the right error number on Windows. Should we ignore more error numbers, like EACCES

[issue13192] ImportError silences low-level OS errors

2011-10-16 Thread Antoine Pitrou
New submission from Antoine Pitrou : Not sure this is by design or not, but I wanted to report this issue (it's rather hard to diagnose). Here the file descriptor limit is reached, and "import" raises an ImportError while it would be more helpful to let the original OS error slip through (whic

[issue13174] test_os failures on Fedora 15: listxattr() returns ['security.selinux']

2011-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 78c660a63960 by Victor Stinner in branch 'default': Close #13174: Fix extended attributes tests in test_os for SELinux http://hg.python.org/cpython/rev/78c660a63960 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed

[issue13088] Add Py_hexdigits constant: use one unique constant to format a digit to hexadecimal

2011-10-16 Thread STINNER Victor
STINNER Victor added the comment: Antoine fixed the compilation issue. http://hg.python.org/cpython/rev/c63087ac1f6c changeset: 72941:c63087ac1f6c user:Antoine Pitrou date:Sat Oct 15 16:38:20 2011 +0200 Fix build under Windows -- resolution: -> fixed status: open -

[issue13191] Typo in argparse documentation

2011-10-16 Thread Mike Hoy
New submission from Mike Hoy : In the Docs mailing list a typo was pointed out in argparse docs. http://docs.python.org/dev/library/argparse.html#metavar > "So, a single positional argument with dest='bar' will that argument > will be referred to as bar." > "So, a single positional argument w

[issue10653] test_time test_strptime fails on windows

2011-10-16 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-16 Thread Ned Deily
Ned Deily added the comment: Just to be sure we're talking about the same thing here, my understanding is that the "missing traceback" issues referred to here are only an issue when IDLE is run as a stand-alone GUI program, such as can be done on Windows and with the OS X IDLE.app. In that c

[issue13183] pdb skips frames after hitting a breakpoint and running step

2011-10-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: Uploaded restore_trace.py27.patch with a fix and test case for python 2.7. -- Added file: http://bugs.python.org/file23419/restore_trace.py27.patch ___ Python tracker

[issue13183] pdb skips frames after hitting a breakpoint and running step

2011-10-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: Uploaded restore_trace_2.patch that improves the test case. -- Added file: http://bugs.python.org/file23418/restore_trace_2.patch ___ Python tracker __

[issue13190] ConfigParser uses wrong newline on Windows

2011-10-16 Thread Noam Eliahu
New submission from Noam Eliahu : ConfigParser writes data to the config file using hard-coded newline: '\n'. This newline is not suitable for Windows. Therefore, the config file isn't readable in Notepad.exe. os.linesep should be used instead. -- components: None messages: 145632 nosy

[issue12406] msi.py needs updating for Python 3.3

2011-10-16 Thread Vinay Sajip
Vinay Sajip added the comment: I also noticed that subdirectories in packaging/tests/ need to be added (e.g. fake_dists), otherwise packaging tests fail when run in an installed Python. -- ___ Python tracker

[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

2011-10-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Do we need to keep backward compatibility if we change the format of the > config > data? Or wininst-xx.exe are only usable with trailing config data in the .exe > file? The wininst.exe belongs to the version of distutils it is released with. So if we cha

[issue10653] test_time test_strptime fails on windows

2011-10-16 Thread STINNER Victor
STINNER Victor added the comment: > Crashes on the Windows buildbots: Oops, it should be fixed by my last commits. -- ___ Python tracker ___ ___

[issue10653] test_time test_strptime fails on windows

2011-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3c13a1d2595 by Victor Stinner in branch 'default': Issue #10653: Fix time.strftime() on Windows, check for invalid format strings http://hg.python.org/cpython/rev/e3c13a1d2595 -- ___ Python tracker

[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

2011-10-16 Thread STINNER Victor
STINNER Victor added the comment: > The problem is that the config file is parsed using > GetPrivateProfileString, and the result is then passed to TextOut, > SetDlgItemText, CreateWindow, etc. all of which are defined to accept MBCS > strings. I agree that this can't work correctly in the gener

[issue11610] Improved support for abstract base classes with descriptors

2011-10-16 Thread Darren Dale
Darren Dale added the comment: It would be nice if this patch could be merged in time for python-3.3... -- ___ Python tracker ___ ___

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-16 Thread Mark Bucciarelli
Mark Bucciarelli added the comment: BAD : sqlite3.sqlite_version_info = (3, 6, 12) GOOD: sqlite3.sqlite_version_info = (3, 7, 4) GOOD: sqlite3.sqlite_version_info = (3, 7, 8) I guess this is the cause of the different behavior. sqlite_version_info is the version of the underlying sqlite3 datab

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-16 Thread poq
poq added the comment: sqlite3.version_info = (2, 6, 0) sqlite3.sqlite_version_info = (3, 7, 4) pysqlite2.version_info = (2, 6, 0) pysqlite2.sqlite_version_info = (3, 7, 4) -- ___ Python tracker __

[issue1673007] urllib2 requests history + HEAD support

2011-10-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: I have committed the patch accomodating the doc review comments which Ezio had mentioned. At the moment, the current way seems to be most backwards compatible one and did not want to delay it. Let's hope we get some feedback on this method arg. Thanks!

[issue1673007] urllib2 requests history + HEAD support

2011-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a0aafaa9bf5 by Senthil Kumaran in branch 'default': Fix closes issue 1673007 urllib.request to support HEAD requests with a new method arg. http://hg.python.org/cpython/rev/0a0aafaa9bf5 -- nosy: +python-dev resolution: -> fixed stage: co

[issue13189] New bdist_simple binary distribution format for packaging

2011-10-16 Thread Paul Moore
New submission from Paul Moore : The attached patch is a first version of a bdist_simple binary distribution format for packaging. There is a bdist_simple command to build the distribution, and pysetup install has been updated to handle bdist_simple format distributions (only as local files, t

[issue13175] packaging uses wrong line endings in RECORD files on Windows

2011-10-16 Thread Paul Moore
Paul Moore added the comment: Here's a patch. It includes a test, but I don't expect the test will catch the issue except on Windows... -- keywords: +patch Added file: http://bugs.python.org/file23416/recordfix.patch ___ Python tracker

[issue13175] packaging uses wrong line endings in RECORD files on Windows

2011-10-16 Thread Paul Moore
Paul Moore added the comment: I found the problem - it's in packaging.util.write_record_file. The file passed to csv.writer should be opened with newline=''. -- ___ Python tracker _

[issue13177] Avoid chained exceptions in lru_cache

2011-10-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the bug report and for the test case. -- ___ Python tracker ___ ___ Python-bugs-list

[issue13177] Avoid chained exceptions in lru_cache

2011-10-16 Thread Ezio Melotti
Ezio Melotti added the comment: My comment was referring to double try/except suggested by Eric. Indeed the if/else might lead to a race condition, and that's a good reason to avoid LBYL -- even if on average calling hash() twice might be faster. I'm happy with the fix you committed, thanks!

[issue992389] attribute error due to circular import

2011-10-16 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-16 Thread Ezio Melotti
Ezio Melotti added the comment: > I would consider it preferable if it quit Note that if we catch the error there might be no reason for IDLE to quit (unless the error left IDLE in some invalid state). > with an error traceback that gave as much info as available, That might scare newbies a

[issue13177] Avoid chained exceptions in lru_cache

2011-10-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13177] Avoid chained exceptions in lru_cache

2011-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8365f82f8a13 by Raymond Hettinger in branch '3.2': Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache. http://hg.python.org/cpython/rev/8365f82f8a13 -- nosy: +python-dev