[issue11048] import ctypes causes segfault on read-only filesystem

2011-01-29 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Thanks for the instructions. You're right, this way I can reproduce the segfault. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11048

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Replied on Rietveld. Ezio, I think you have good HTML/CSS knowledge, so I’m adding you to nosy. If you could read the short discussion and Rietveld and weigh in, it would be very helpful. -- nosy: +ezio.melotti

[issue10975] #10961: Pydoc touchups in new 3.2 Web server (issue4090042)

2011-01-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg127466 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10975 ___

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: Good catch on the test. Note that for issue 10941, we'll want a new non-timezone-dependent test case that can catch the DST-related problem. I'll post a new patch to issue 10941 now and describe this some more there. --

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: It looks like my test is not robust enough: http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.1/builds/298 -- ___ Python tracker rep...@bugs.python.org

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: (I hope you meant I was working on a patch :) Patch is done, but there is one remaining test failure that I'm not sure how to handle. The test is test_add_text_file_warns. The code checks to see if a file is a subclass of

[issue11045] shutil._make_tarball

2011-01-29 Thread Kelsey
Kelsey kelsey.highto...@gmail.com added the comment: Adding patch to ticket -- keywords: +patch Added file: http://bugs.python.org/file20609/check-logger-is-none.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11045

[issue11052] Fix OS X IDLE menu accelerators for Save As and Save Copy

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Committed in r88236 (with release manager approval) for 3.2rc2, r88237 for 3.1, and r88238 for 2.7. -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python

[issue11065] Fatal can't locate locale errors when zip file with directories is on the PYTHONPATH.

2011-01-29 Thread Ned Batchelder
Ned Batchelder ned...@users.sourceforge.net added the comment: With help from ned_deily in #python-dev, we confirmed this is a dup of http://bugs.python.org/issue10955, and is already fixed. -- resolution: - duplicate ___ Python tracker

[issue11045] shutil._make_tarball

2011-01-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve checked the code and this is the only place where logger.* is not protected by a check for None. There is no unit test, though. My patch adds two things: Make one formatting call lazy (use logging.info(one, two) instead of one % two),

[issue11065] Fatal can't locate locale errors when zip file with directories is on the PYTHONPATH.

2011-01-29 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: open - closed superseder: - Possible regression with stdlib in zipfile ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11065 ___

[issue11058] dist directory not created when running sdist command

2011-01-29 Thread Kelsey
Kelsey kelsey.highto...@gmail.com added the comment: This could be my mistake. . I think an early attempt at patching Issue 11045, I disabled os.makedirs(archive_dir) in shutil. I am going to retest -- ___ Python tracker rep...@bugs.python.org

[issue11045] shutil._make_tarball

2011-01-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Please apply right away. -- nosy: +rhettinger resolution: - accepted versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue11045] shutil._make_tarball

2011-01-29 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11045 ___

[issue11058] dist directory not created when running sdist command

2011-01-29 Thread Kelsey
Kelsey kelsey.highto...@gmail.com added the comment: I have retested; this issue was related to a bug I introduced in shutil (fixed now, and patch sent upstream) -- resolution: - invalid status: open - closed ___ Python tracker

[issue11045] shutil._make_tarball

2011-01-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: For 3.2, just make the one-line fix. I'm worry that a test may be hard to get right and would be a risk in and of itself this late in the release cycle. For the backports, a test would be nice (since we have time to fix a

[issue10639] reindent.py converts newlines to platform default

2011-01-29 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: That's great that reindent works in your environment, but that's no help in my environment. Here's the use case: We have a software package developed in Unix and with Unix LF line endings. The code base may also contain files with CRLF line

[issue10639] reindent.py converts newlines to platform default

2011-01-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: That is a valid use case, so +1 on not changing behavior and adding a new option in 3.3 (in another bug report). What is your reply to msg125818? -- ___ Python tracker rep...@bugs.python.org

[issue11045] shutil._make_tarball

2011-01-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Indeed, I tried writing a small test to go into the faulty code path, but without calling the private function directly it’s not trivial. I’ll apply the minimal change shortly if there is no opposition from Georg. -- assignee: tarek -

[issue11045] shutil._make_tarball

2011-01-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Fixed for 3.2rc2 in r88240. Would it be right to call the internal function in the test? -- priority: high - normal status: pending - open ___ Python tracker rep...@bugs.python.org

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Some systems don't like times too close to epoch. Fixed in revision 88239. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10939

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10939 ___

[issue10911] cgi: add more tests

2011-01-29 Thread Pierre Quentel
Pierre Quentel pierre.quen...@gmail.com added the comment: Here is the diff file for test_cgi.py I added a test for a multipart/form-data form with non ASCII data to test the encoding parameter of FieldStorage -- keywords: +patch Added file:

[issue11066] cgi.py proposals : sys.stdout encoding + rewriting of parsing functions

2011-01-29 Thread Pierre Quentel
New submission from Pierre Quentel pierre.quen...@gmail.com: Python 3.2rc1 introduced a new version of cgi.py that handles correctly file uploads In this version, the FieldStorage constructor receives an argument encoding which is the encoding used by the document holding the submitted form

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-01-29 Thread Peter Eisentraut
New submission from Peter Eisentraut pete...@gmx.net: When setting Py_LIMITED_API, functions such as PyUnicode_Check() can no longer be used. Example: #define Py_LIMITED_API #include Python.h void foo() { PyObject *o; PyUnicode_Check(o); } test.c: In function ‘foo’: test.c:9:

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: Alexander, looks like you hit a weirdness in the Europe/London timezone for dates before 31-Oct-1971, as if DST was in effect even in winter. And the fail of the test is caused by the same bug that causes issue 10941: the use of mktime to

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-01-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Interpreter Core -None nosy: +loewis type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11067 ___

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2011-01-29 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: Here is a new patch that adds a test to the tests committed for issue 10939. This new test case is needed to trigger the DST issue. This test is not timezone-dependent (in the sense that one does not have to have a specific timezone set for it

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Benjamin suggested using hasattr(message, 'buffer'), and that works great. The test revealed a bug in the patch, which is now fixed. All tests pass on windows. As far as I'm concerned the patch is ready to go. Other reviews would of

[issue11068] Python 2.7.1 Idle Segmentation Fault OS X (10.6.6)

2011-01-29 Thread David Meier
New submission from David Meier djme...@gmail.com: After IDLE launches I select 'File-Open' browse to a blank .py file, when I select the particular file I get the segfault below... silverbox:~ user$ (idle) silverbox:~ user$ Traceback (most recent call last): File

[issue11068] Python 2.7.1 Idle traceback on OS X (10.6.6)

2011-01-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - ned.deily nosy: +ned.deily title: Python 2.7.1 Idle Segmentation Fault OS X (10.6.6) - Python 2.7.1 Idle traceback on OS X (10.6.6) ___ Python tracker rep...@bugs.python.org

[issue11068] Python 2.7.1 Idle traceback on OS X (10.6.6)

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Does it matter what the contents of the file are, i.e. what do you mean by a blank .py file? I am not able to reproduce that problem. Be aware that, because of problems with the Apple-suppled Cocoa Tk 8.5 in OS X 10.6, the 2.7.1 IDLE from the

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: More info on the Europe/London near the epoch thing (there is no weirdness in the tz stuff - it's just issue 10941 causing the test to fail)... I looked at the sources for the tz data, and here is the definition for Europe/London: # Zone NAME

[issue11068] Python 2.7.1 Idle traceback on OS X (10.6.6)

2011-01-29 Thread David Meier
David Meier djme...@gmail.com added the comment: It doesn't matter what's in the file itself. By 'blank' I mean, literally, an empty file (i.e. `touch file.py`). You are correct that this was installed from the 10.6 specific 2.7.1, I will try to install from the other version. Is there a

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Sat, Jan 29, 2011 at 5:48 PM, Joe Peterson rep...@bugs.python.org wrote: .. Note that this also exposes another problem with Time2Internaldate(), since it uses time.timezone/time.altzone, which are only valid for the

[issue9527] Add aware local time support to datetime module

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- dependencies: +Time zone-capable variant of time.localtime ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9527 ___

[issue11068] Python 2.7.1 Idle traceback on OS X (10.6.6)

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: To uninstall, you can do the following: sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7 sudo rm -rf /Applications/Python 2.7 If you've installed any site-packages, you would need to re-install them. --

[issue9527] Add aware local time support to datetime module

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- dependencies: +No obvious and correct way to get the time zone offset ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9527

[issue1667546] Time zone-capable variant of time.localtime

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1667546 ___

[issue1647654] No obvious and correct way to get the time zone offset

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1647654 ___

[issue11063] uuid.py module import has heavy side effects

2011-01-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy stage: - needs patch versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11063 ___

[issue11053] OS X IDLE 3 with Tk 8.4 appears to hang with syntax error

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: r88242 for 3.1 -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11053 ___ ___

[issue9763] Crashes upon run after syntax error encountered in OSX 10.5.8

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The problem was caused by a minor change in IDLE during the port of IDLE from 2.x to 3.x. It is fixed by the changes for Issue11053: r88234 (3.2rc2) and r88242 (planned for 3.1.4). -- resolution: - duplicate stage: - committed/rejected

[issue6628] IDLE freezes after encountering a syntax error

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: For the record: The problem was caused by a minor change in IDLE during the port of IDLE from 2.x to 3.x. It is fixed by the changes for Issue11053: r88234 (3.2rc2) and r88242 (planned for 3.1.4). -- assignee: ronaldoussoren - ned.deily

[issue10907] OS X installer: warn users of buggy Tcl/Tk in OS X 10.6

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: 7. Backported to 2.7 in r88243 (to appear in 2.7.2). -- priority: release blocker - status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10907

[issue10907] OS X installer: warn users of buggy Tcl/Tk in OS X 10.6

2011-01-29 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10907 ___ ___ Python-bugs-list mailing

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Sat, Jan 29, 2011 at 4:45 PM, Joe Peterson rep...@bugs.python.org wrote: .. I have added code that sets the TZ to one that works, and then reverts the temporary TZ change after the test. Your test will not restore

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Committed for 3.2 in r88247. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10845 ___ ___

[issue10842] Update third-party libraries for OS X installer builds

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Merged to 2.7 in r88248 (for 2.7.2). -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10842 ___

[issue11054] OS X installer build script for 3.2 can no longer build with system Python on OS X 10.5

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Merged to 2.7 in r88248 (for 2.7.2). -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11054 ___

[issue11037] State of PEP 382 or How does distutils2 handle namespaces?

2011-01-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Martin, could you shed some light on the state of that PEP? It's implemented in a branch, and will likely be included in Python 3.3. -- title: Implementing PEP 382 - State of PEP 382 or How does distutils2 handle namespaces?

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2011-01-29 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: Removed file: http://bugs.python.org/file20613/issue10941.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10941 ___

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2011-01-29 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: I like the idea of adding the decorator. New patch added. -- Added file: http://bugs.python.org/file20615/issue10941.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10941

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2011-01-29 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: [just carrying over some info from issue 10939 that is related to this issue] Here is another manifestation of this issue, related to the local time assumption, but not to DST, per se: Here is the definition for Europe/London in the unix tz

[issue11069] IDLE crashes when Stack Viewer opened

2011-01-29 Thread Yakov Blum
New submission from Yakov Blum yak2...@gmail.com: This problem was asked about on Stack Overflow, where there's some more information on it: http://stackoverflow.com/questions/4046021/python-idle-windows-pressing-stack-viewer-exits-all-idle-windows But I didn't see it listed as a bug here.

[issue11069] IDLE crashes when Stack Viewer opened

2011-01-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: According to the StackOverflow report, the crash occurs on Python 3.1.2 with IDLE 3.1.2 on Windows 7. -- components: +Windows nosy: +brian.curtin, kbk, ned.deily ___ Python tracker rep...@bugs.python.org

[issue11069] IDLE crashes when Stack Viewer opened

2011-01-29 Thread Yakov Blum
Yakov Blum yak2...@gmail.com added the comment: A few additional details: I'm also running Windows 7. Reproducing the crash is as simple as opening IDLE, typing, e.g., raise TypeError and clicking Debug Stack Viewer -- ___ Python tracker

[issue11070] test_capi crashes and fails

2011-01-29 Thread rmtew
New submission from rmtew richard.m@gmail.com: OS: Windows 7 Compiler: Visual Studio 2008 Build: Win32 (Debug and Release) The main problem is observed in both debug and release builds, and even though the test effectively passes in both it also fails in release build. ** In a debug build

[issue11070] test_capi crashes and fails

2011-01-29 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Duplicate of #9116. -- nosy: +brian.curtin resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - test_capi.test_no_FatalError_infinite_loop crash on Windows versions: +Python 3.1 -Python 3.2

[issue11070] test_capi crashes and fails

2011-01-29 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11070 ___ ___

[issue11069] IDLE crashes when Stack Viewer opened

2011-01-29 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I don't get a crash, but it certainly doesn't work. Once IDLE is open I type raise TypeError, then open the stack viewer as you did. Here's what I'm seeing: [WINSEVEN] 2011-01-29 21:05:30.18 c:\Users\brian c:\python31\python.exe -m idlelib.idle

[issue11069] IDLE crashes when Stack Viewer opened

2011-01-29 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11069 ___ ___ Python-bugs-list

[issue11069] IDLE crashes when Stack Viewer opened

2011-01-29 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: The following patch will fix it. Another example of why 'list' isn't a great name :) Index: Lib/idlelib/RemoteObjectBrowser.py === --- Lib/idlelib/RemoteObjectBrowser.py (revision

[issue9527] Add aware local time support to datetime module

2011-01-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I think Tim and Guido had deliberately avoided local timezone awareness when they designed the module. Also, I question whether the proposed API is correct. ISTM that any code that sets the *dst* parameter is guaranteed to

[issue9527] Add aware local time support to datetime module

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Sat, Jan 29, 2011 at 11:56 PM, Raymond Hettinger rep...@bugs.python.org wrote: .. Also, I question whether the proposed API is correct.  ISTM that any code that sets the *dst* parameter is guaranteed to be wrong

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed (with RM approval on IRC) in r88252. Note that this does not necessarily solve the performance problem. A new issue should be opened for that if it still exist. -- resolution: - fixed stage: commit review -

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-29 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: New and hopefully last patch... pydoc_misc_fix_e.diff I removed the .html in the ?key= links as Eric suggested. I checked the navbar float behavior on browsershots.org. Multiple versions of MSIE, firefox, opera, chrome, and safari

[issue6715] xz compressor support

2011-01-29 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nvawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list

<    1   2