[issue2147] int operations no longer overflow

2008-02-19 Thread Will Robinson
Will Robinson added the comment: Just jumping in to say the colleague Neal refers to is me, and I'm interested in the resolution to this bug. Thanks in advance for your help. -- nosy: +willrobinson __ Tracker <[EMAIL PROTECTED]>

[issue2147] int operations no longer overflow

2008-02-19 Thread Neal Norwitz
New submission from Neal Norwitz: Georg, I hope you don't mind me assigning this to you. Feel free to unassign. A colleague pointed me to section 5.7 in the old ref doc: http://docs.python.org/ref/shifting.html It says that shifting operations lose data on overflow. This info is outdated bas

[issue2144] os.environ should inherit dict

2008-02-19 Thread Martin v. Löwis
Martin v. Löwis added the comment: Sorry, it still makes no sense. Up to r56113, PEP 290 doesn't seem to talk about UserDict, os.environ, or inheritance from new-style classes. What section are you specifically referring to? __ Tracker <[EMAIL PROTECTED]>

[issue2146] ctypes: support double for calling function

2008-02-19 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- assignee: -> theller nosy: +theller __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubsc

[issue2144] os.environ should inherit dict

2008-02-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Forgive me. I meant 290. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue2145] ctypes.util.find_library(): posix .so without SONAME

2008-02-19 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thomas, can you take a look? -- assignee: -> theller nosy: +loewis, theller __ Tracker <[EMAIL PROTECTED]> __ __

[issue2144] os.environ should inherit dict

2008-02-19 Thread Martin v. Löwis
Martin v. Löwis added the comment: I still must be missing something. There is no PEP 390, AFAICT. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue2146] ctypes: support double for calling function

2008-02-19 Thread STINNER Victor
New submission from STINNER Victor: ctypes doesn't support transparent conversion of double arguments. Example code: from ctypes import cdll, c_double libm = cdll.LoadLibrary("libm.so") sqrt = libm.sqrt sqrt.argstype = (c_double,) sqrt.restype = c_double print sqrt(4.0) I wrote a patch to fix

[issue2145] ctypes.util.find_library(): posix .so without SONAME

2008-02-19 Thread STINNER Victor
New submission from STINNER Victor: ctypes.util.find_library() fails to locate distorm64.so library because it has no SONAME entry: $ objdump -p -j .dynamic /usr/local/lib/libdistorm64.so /usr/local/lib/libdistorm64.so: file format elf32-i386 (...) Dynamic Section: NEEDED libc.so.6

[issue1424148] urllib.FancyURLopener.redirect_internal looses data on POST!

2008-02-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Can this item be closed, given jjlee's argument against changing the behaviour? -- nosy: +akuchling _ Tracker <[EMAIL PROTECTED]> _

[issue1330538] datetime/xmlrpclib.DateTime comparison

2008-02-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Skip, I can look at xmlrpclib issues. -- assignee: fdrake -> akuchling nosy: +akuchling _ Tracker <[EMAIL PROTECTED]> _

[issue1174606] Reading /dev/zero causes SystemError

2008-02-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: This seems like an easy fix: just check that S_ISREG(st_mode) is true in new_buffersize in fileobject.c. -- keywords: +easy nosy: +akuchling _ Tracker <[EMAIL PROTECTED]>

[issue1167397] Python 2.4 causes BitTorrent 3.4.2 failure

2008-02-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: The Red Hat bug URL is now https://bugzilla.redhat.com/show_bug.cgi?id=138535 ; it has a lengthy discussion. >From that bug's history, the problem now seems to be fixed, though I'm not sure if it was fixed on the Python or the yum/BitTorrent side. Closing this b

[issue1106262] semaphore errors from Python 2.3.x on AIX 5.2

2008-02-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Fixed for bug #1234. -- nosy: +akuchling resolution: -> duplicate status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ __

[issue1081824] Rewrite of docs for compiler.visitor

2008-02-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +patch _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1044479] docs for Py_UNICODE are wrong

2008-02-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +easy _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1040026] os.times() is bogus

2008-02-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +easy _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1038909] pydoc method documentation lookup enhancement

2008-02-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +easy _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue971330] test_signal sucks

2008-02-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: In Python 2.6, test_signal.py uses unittest. It still spawns a shell script, but I don't understand why this is a problem; is it a portability issue? -- nosy: +akuchling Tracker <[EMAIL PROTECTED]>

[issue849097] Request: getpos() for sgmllib

2008-02-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +patch type: -> rfe Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscri

[issue602291] Bgen should learn about booleans

2008-02-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- type: -> rfe Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue449227] rlcompleter add "(" to callables feature

2008-02-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +easy Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue449227] rlcompleter add "(" to callables feature

2008-02-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +patch Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue2144] os.environ should inherit dict

2008-02-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: PEP 390. It's cleaner and faster. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2144] os.environ should inherit dict

2008-02-19 Thread Martin v. Löwis
Martin v. Löwis added the comment: What's the rationale for this change? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue2144] os.environ should inherit dict

2008-02-19 Thread Benjamin Peterson
New submission from Benjamin Peterson: This patch changes os.environ to inherit builtin dict rather than UserDict. -- files: environ-modern.diff messages: 62571 nosy: gutworth severity: normal status: open title: os.environ should inherit dict type: rfe versions: Python 2.6 Added file: h

[issue2139] sqlite3 module needs upgrading

2008-02-19 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks; closing this report as "won't fix", then. -- resolution: -> wont fix status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2143] smtplib.SSLFakeFile hangs forever if "\n" is not encountered

2008-02-19 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': By looking through the smtplib module code I think I've found a potential issue in the SSLFakeFile class code since there's a while loop which is supposed to be stopped only when the "\n" character is encountered: def readline(self): str

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-19 Thread Mark Dickinson
Mark Dickinson added the comment: Replacing lehmer_gcd.py with a revised version. Even in Python, this version is faster than the current one, on my machine, once both numbers are greater than 10**650 or so (your crossover points may vary). It's over four times faster for very large inputs (

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-19 Thread Mark Dickinson
Changes by Mark Dickinson: Removed file: http://bugs.python.org/file9463/lehmer_gcd.py __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: I think this is definitely premature optimization. :-) In any case, before going any further, you should design a benchmark and defend it. __ Tracker <[EMAIL PROTECTED]> __

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-19 Thread Mark Dickinson
Mark Dickinson added the comment: > A C reimplementation of gcd probably makes little sense -- for large > numbers it is dominated by the cost of the arithmetic, and that will > remain the same. That's true for a direct translation of the usual algorithm. But there's a variant due to Lehmer w

[issue1600] str.format() produces different output on different platforms (Py30a2)

2008-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: I would like Python to follow the C99 rule here. It is practical and Python has a long tradition of following C where it makes sense. __ Tracker <[EMAIL PROTECTED]>

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: A C reimplementation of gcd probably makes little sense -- for large numbers it is dominated by the cost of the arithmetic, and that will remain the same. __ Tracker <[EMAIL PROTECTED]> ___

[issue2114] test_decimal failure on OSX 10.3

2008-02-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've applied the workaround in revision 60903 (after testing that it actually works). __ Tracker <[EMAIL PROTECTED]> __ _

[issue1149798] hotshot.runctx: builtins missing

2008-02-19 Thread Virgil Dupras
Virgil Dupras added the comment: Well, since I brought that issue back, I might as well supply a patch. So if indeed it is decided that hotshot.Profile.runctx() should have __builtins__ in its globals by default, here is it. Added file: http://bugs.python.org/file9462/hotshot_builtins_globals.

[issue2139] sqlite3 module needs upgrading

2008-02-19 Thread Gerhard Häring
Gerhard Häring added the comment: I don't think pysqlite 2.3.2 is very buggy. Otherwise a lot more bug reports about the pysqlite module would have arrived here. About backporting fixes to 2.5.3, I'd have to look which ones are isolated and I could then backport them. As for SQLite, I'm always f

[issue1149798] hotshot.runctx: builtins missing

2008-02-19 Thread Virgil Dupras
Virgil Dupras added the comment: oh crap here goes my ego... pasted the wrong line. _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list maili

[issue1149798] hotshot.runctx: builtins missing

2008-02-19 Thread Virgil Dupras
Virgil Dupras added the comment: Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import hotshot >>> hotshot.Profile('/tmp/hs').runctx('print len',{'__builtins__': .

[issue2127] sqlite3 docs should mention utf8 requirement

2008-02-19 Thread Virgil Dupras
Virgil Dupras added the comment: +1 I've been pulling my hair off over this one too. Try this on win32: Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.mkdir(u'foo\xe

[issue708007] TelnetPopen3, TelnetBase, Expect split

2008-02-19 Thread Christian Heimes
Changes by Christian Heimes: -- status: pending -> closed Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscribe

[issue2142] naive use of ''.join(difflib.unified_diff(...)) results in bogus diffs with inputs that don't end with end-of-line char

2008-02-19 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +patch priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue2134] function generate_tokens at tokenize.py yields wrong token for colon

2008-02-19 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +patch priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue2135] Restructure import.c into PEP 302 importer objects

2008-02-19 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: -> brett.cannon keywords: +patch nosy: +brett.cannon, tiran priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ __

[issue2138] Factorial

2008-02-19 Thread David Albert Torpey
David Albert Torpey added the comment: Mr. Dickinson thank you for doing this. I do not know how to help with a patch. If it helps, here is the code I use in python: def factorial(n, _known=[1]): assert isinstance(n, int), "Need an integer. This isn't a gamma" assert n >= 0, "Sorry, c