[issue6061] time.clock(): overflow in programs that run for very long

2009-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: time.clock() is a simple wrapper around the C stdlib clock() function. As the clock() man page says: « Note that the time can wrap around. On a 32-bit system where CLOCKS_PER_SEC equals 100 this function will return the same value approximately every 72 mi

[issue6061] time.clock(): overflow in programs that run for very long

2009-05-18 Thread Thomas Reiter
New submission from Thomas Reiter : On a 64-bit Linux machine the attached program generates the following (shortened) output: $ python bug.py ... after 2145.49s: after 2145.82s: after 2146.14s: after 2146.47s: after 2146.80s: after 2147.13s: after 2147.45s: after -2147.19s: Here's your

[issue1309352] Make fcntl work properly on AMD64

2009-05-18 Thread R. David Murray
R. David Murray added the comment: @AP: ran patched test on Freebsd (6.2) as requested. Result is: test_fcntl_64_bit (test.test_fcntl.TestFcntl) ... skipped 'F_NOTIFY or DN_MULTISHOT unavailable' -- nosy: +r.david.murray ___ Python tracker

[issue858809] Use directories from configure rather than hardcoded

2009-05-18 Thread soundmurderer
soundmurderer added the comment: OK done, opened a feature request for this pet peeve of mine. ;-) Maybe someday I'll complain about something substantial... See: http://bugs.python.org/issue6060 -- ___ Python tracker

[issue6060] PYTHONHOME should be more flexible (and controllable by --libdir)

2009-05-18 Thread soundmurderer
New submission from soundmurderer : The PYTHONHOME variable does not allow complete control over making a Python installation find its own libs because "lib/pythonX.Y" gets appended to it, see: http://docs.python.org/using/cmdline.html#envvar-PYTHONHOME For example, let's say my Python insta

[issue858809] Use directories from configure rather than hardcoded

2009-05-18 Thread soundmurderer
soundmurderer added the comment: OK, I am now convinced that even with this patch, the Python build process still won't work correctly because --libdir (post-patch) will not correctly set the default PYTHONHOME. Moreover, the very way that PYTHONHOME gets used needs to change. PYTHONHOME speci

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2009-05-18 Thread Ryan Leslie
Ryan Leslie added the comment: Yeah, storing pickled queues in the file system makes for some easy IPC :) It wasn't a very original idea, I took the pickling comments in the documentation at face value: http://docs.python.org/library/multiprocessing.html#proxy-objects So, from what I can tell t

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2009-05-18 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Bug exhibits on Linux with Tk 8.4, but requires a couple hundred characters to show up. Also goes away if MultiCall is disabled. -- ___ Python tracker ___

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2009-05-18 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Occurs with and w/o the subprocess, but sooner (fewer char) with the subprocess. If the MultiCall wrapper on the EditorWindow Text widget is disabled, the bug disappears. -- versions: +Python 2.6, Python 3.1, Python 3.2 _

[issue1722344] Thread shutdown exception in Thread.notify()

2009-05-18 Thread Aren Olson
Changes by Aren Olson : -- nosy: +reacocard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6059] uuid.uuid4 cause segfault in emesene

2009-05-18 Thread Yu Yuwei
New submission from Yu Yuwei : I'm on Gentoo Linux with glibc-2.9_20081201-r2, python-2.6.2, e2fsprogs-libs-1.41.3-r1 When Emesene send offline message to another msn user, it call uuid4() in uuid module in python, which call get_random_fd() in gen_uuid.c(e2fsprogs-libs). After this, the program

[issue6058] Add cp65001 to encodings/aliases.py

2009-05-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue1983] Return from fork() is pid_t, not int

2009-05-18 Thread Ryan Stutsman
Ryan Stutsman added the comment: No, I don't think this is actually fixed in any version of Python at the moment. The title may be a bit misleading, because all the versions now store the result of fork in a pid_t and return it as a PyLong. However, posix_waitpid is still pulling pid's as a Py

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-18 Thread Collin Winter
Collin Winter added the comment: Applied as r72777 (trunk), r72778 (py3k). -- assignee: -> collinwinter resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6002] test_urllib2_localnet DigestAuthHandler leaks nonces

2009-05-18 Thread Collin Winter
Collin Winter added the comment: Daniel Diniz reviewed in the other issue. Fixed in r72777 (trunk), r72778 (py3k). -- assignee: -> collinwinter resolution: -> fixed status: open -> closed ___ Python tracker

[issue5964] WeakSet cmp methods

2009-05-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: accepted -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue3541] bsddb memory leak on ubuntu

2009-05-18 Thread Daniel Diniz
Daniel Diniz added the comment: I can confirm it in trunk and release26-maint on Ubuntu 8.04. For trunk: bsddb.__version__ : '4.7.3' libdb4.6-dev: 4.6.21-6ubuntu1 _bsddb.version(): (4, 6, 21) bsddb._bsddb.cvsid: '$Id: _bsddb.c 66568 2008-09-23 18:54:08Z jesus.cea $' -- resolution: out

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-18 Thread Daniel Diniz
Daniel Diniz added the comment: LGTM :) This part changes the output in verbose mode, not sure it's necessary (but not a real problem either): -test_support.run_unittest(ProxyAuthTests) -test_support.run_unittest(TestUrlopen) +test_support.run_unittest(ProxyAuthTests, TestUrlopen)

[issue6002] test_urllib2_localnet DigestAuthHandler leaks nonces

2009-05-18 Thread Collin Winter
Collin Winter added the comment: I've posted a patch in issue 6032 (didn't see this one); I'd be interested in any comments on the approach taken there. -- nosy: +collinwinter ___ Python tracker ___

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-18 Thread Collin Winter
Collin Winter added the comment: Daniel, did you have any comments on this patch? If not, I'll go ahead and commit it and close both of these issues. -- ___ Python tracker ___ __

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Changes by Jean Brouwers : Removed file: http://bugs.python.org/file14006/hpTime.c ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Changes by Jean Brouwers : Removed file: http://bugs.python.org/file14004/hires_lsprof4.tgz ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Jean Brouwers added the comment: Another test build and result has been added to the hpTime.c comment. -- Added file: http://bugs.python.org/file14012/hpTime.c ___ Python tracker ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Jean Brouwers added the comment: Both the hires_lsprof4.tgz and hpTime.c files have been updated with a change in the PowerPC asm code. The previous implementation used a loop: label and that may cause duplicate symbols when compiled at optimization levels of -O3 and above with older GNU C c

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2009-05-18 Thread Jesse Noller
Jesse Noller added the comment: Pickling the queue and then unpickling it in a new process is something I never thought of. That's interesting in and of itself ;) -- ___ Python tracker

[issue6057] sqlite3 error classes should be documented

2009-05-18 Thread Mitchell Model
New submission from Mitchell Model : I can't find any documentation of the exception classes defined in the sqlite3 module. There are quite a few, and some inheritance. The examples in the sqlite3 module documentation have a few exception clauses, but the errors they catch are not explained. I w

[issue6055] References to "pysqlite" in documentation of sqlite3 should be changed.

2009-05-18 Thread Mitchell Model
Mitchell Model added the comment: I see that the _sqlite .h and .c files, and the sqlite3/dbapi2.py file, all use "pysqlite" instead of "sqlite3" internally. Should that be changed too, or is there just no point? My main concern is that people relatively new to Python who wouldn't be aware of th

[issue1689458] pdb unable to jump to first statement

2009-05-18 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: The attached patch fixes this problem and adds a test. I'll wait a day for any comments before committing it. Review at http://codereview.appspot.com/67063. -- keywords: +needs review, patch nosy: +jyasskin stage: test needed -> patch review versions:

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2009-05-18 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> jnoller nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue3023] Problem with invalidly-encoded command-line arguments (Unix)

2009-05-18 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2009-05-18 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: As a workaround, if you need the tooltip, select Edit / Show Calltip from the menu or use the hotkey to 'reopen' the tooltip. That will get you another 60 characters. Otherwise, just hit esc to close the tooltip and your keystrokes will appear. --

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2009-05-18 Thread Ryan Leslie
New submission from Ryan Leslie : Terminal 1: Python 2.6.1 (r261:67515, Apr 2 2009, 18:25:55) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from multiprocessing.managers import SyncManager >>> manager = SyncManager(au

[issue966625] Documentation for Descriptors in the main docs

2009-05-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2009-05-18 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Not issue 1529353. Edit window stops updating after about 60 keystrokes when a tooltip window is active. 1. Strings not necessary. Only occurs when a tooltip is active. For example, if rz is undefined, entering rz( followed by a long key sequence won't ra

[issue920573] http libraries throw errors internally in BitTorrent

2009-05-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: It looks like both pieces of offending code were changed long ago. No new bug reports have surfaced since then. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue6055] References to "pysqlite" in documentation of sqlite3 should be changed.

2009-05-18 Thread Mitchell Model
New submission from Mitchell Model : Why are there references to "pysqlite" in the documentation and examples for the sqlite3 module. Was sqlite3 derived from the earlier pysqlite module? Seems to me that all the references to "pysqlite" should read "sqlite3", except maybe in a reworded attributi

[issue5337] Scanner class in re module undocumented

2009-05-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is very old code, without a mature API. Will take a look at competing recipes to see if this is still the best way of doing this. Maybe it should return a generator instead of a list. Perhaps there should be some checking for re's that don't combine w

[issue6052] for-loop doesn't work with -c

2009-05-18 Thread R. David Murray
R. David Murray added the comment: The error message is correct: your example is invalid python code. Try it in a file and you will get the same error message. Check the documentation of the '-c' option to learn how to correctly code your example. -- nosy: +r.david.murray resolution:

[issue2263] struct.pack() + numpy int raises SystemError

2009-05-18 Thread engelbert gruber
engelbert gruber added the comment: issue5476 has a problem with timedelta(microseconds = int32(36)) interestingly 0 to 35 work , if the patch for this issue2263 is applied. -- ___ Python tracker _

[issue6054] tarfile normalizes arcname

2009-05-18 Thread mkv
New submission from mkv : When creating tar archives using the tarfile module, requested arc names are not respected. It is currently impossible to create a tar which when listing contents would give: $tar tvf test.tar ./ ./control ./prerm ./postinst The actual result will be $tar tvf test.tar

[issue3023] Problem with invalidly-encoded command-line arguments (Unix)

2009-05-18 Thread R. David Murray
R. David Murray added the comment: I believe the title problem is solved by PEP 383 in py3k trunk. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> pending ___ Python tracker

[issue6037] MutableSequence.__iadd__ should return self

2009-05-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r72772 et al. Thanks for the report -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-05-18 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file13948/smime.p7s ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-05-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've improved the symlink support in jaraco.windows (SVN). It now implements the symlink check based on the technique suggested by the MSDN docs. I've begun to port this functionality to CPython. I'm attaching a patch against /branches/py3k that I believe wi

[issue6053] distutils error on windows

2009-05-18 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file14008/fix_distutils_ensure_relative.patch ___ Python tracker ___ ___ Pyth

[issue6053] distutils error on windows

2009-05-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Here is workaround for second issue. If there is tar command for windows which supports drive letter, I think I should use it instead of workaround or fix, though. -- keywords: +patch Added file: http://bugs.python.org/file14007/workaround_tar_proble

[issue6053] distutils error on windows

2009-05-18 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I found two distutils error on windows. 1. If the implementation of ensure_relative is correct, test should be fixed like attached patch. 2. I got tar error. This happens because tar command I'm using cannot recognize path with drive letter. For example,

[issue6052] for-loop doesn't work with -c

2009-05-18 Thread Kandalintsev Alexandre
New submission from Kandalintsev Alexandre : Hello! I found this problem: $ python3 -c 'import sys; for line in sys.stdout: pass' File "", line 1 import sys; for line in sys.stdout: pass ^ SyntaxError: invalid syntax Without import-statement this work great. Also code '

[issue3949] curses' sigwinch handler isn't visible from python

2009-05-18 Thread Shish
Shish added the comment: in its simplest form, this shows the bug -- signal.getsignal does not return the original signal handler (the "tell the app to resize itself" one that curses installs), and so, the original signal handler cannot be re-activated after being temporarily disabled ~~

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2009-05-18 Thread engelbert gruber
engelbert gruber added the comment: testing with 2.6 and numpy 1.3 already :: timedelta(seconds = int32(36)) TypeError: unsupported type for timedelta seconds component: numpy.int32 But not if I apply a change to numpy to fix issue2263 then ``timedelta(days = int32(36))`` and ``timedel

[issue6051] smtplib docs should link to email module examples

2009-05-18 Thread Thomas Guettler
New submission from Thomas Guettler : On "smtplib example": http://docs.python.org/library/smtplib.html#smtp-example should be a link to: http://docs.python.org/library/email-examples.html I think the smtplib example is bad, since the email gets created with a string. That's not solid. Using the