[issue2859] sphinx and virtualenv

2008-05-14 Thread Peter
New submission from Peter <[EMAIL PROTECTED]>: I tried to install sphinx with virtualenv.The error message is showing a missing file: ... INFORMATION the speedup extension could not be compiled, Jinja will fall back to the native python classes. ==

[issue2858] bsddb.db.DBEnv.lock_get test_lock.test03_set_timeout crashes

2008-05-14 Thread Gregory P. Smith
New submission from Gregory P. Smith <[EMAIL PROTECTED]>: I disabled the Lib/bsddb/test/test_lock.py test03_set_timeout test as it crashes the interpreter when compiled in debug mode with an UNREF test. It appears to happen on all platforms according to the buildbots. This is not a new problem,

[issue2819] Full precision summation

2008-05-14 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: When you need full precision, the Kahan approach helps but doesn't make guarantees and can sometimes hurt (it makes some assumptions about the data). One use case in is computing stats like a mean where many of the larger magnitude entr

[issue2857] add coded for java modified utf-8

2008-05-14 Thread paul rubin
New submission from paul rubin <[EMAIL PROTECTED]>: For object serialization and some other purposes, Java encodes unicode strings with a modified version of utf-8: http://en.wikipedia.org/wiki/UTF-8#Java http://java.sun.com/javase/6/docs/api/java/io/DataInput.html#modified-utf-8 It is used in

[issue2775] Implement PEP 3108

2008-05-14 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Wed, May 14, 2008 at 6:33 PM, Juracy Filho <[EMAIL PROTECTED]> wrote: > > Juracy Filho <[EMAIL PROTECTED]> added the comment: > > I've finished a patch for http package, but I've doubts about how to > make a patch. > > I've used a svn diff an

[issue2775] Implement PEP 3108

2008-05-14 Thread Juracy Filho
Juracy Filho <[EMAIL PROTECTED]> added the comment: Output for svn status of http package patch. Added file: http://bugs.python.org/file10325/http_package_on_py3k.status __ Tracker <[EMAIL PROTECTED]> ___

[issue2775] Implement PEP 3108

2008-05-14 Thread Juracy Filho
Juracy Filho <[EMAIL PROTECTED]> added the comment: I've finished a patch for http package, but I've doubts about how to make a patch. I've used a svn diff and svn status to make the patch and status file respectively. Added file: http://bugs.python.org/file10324/http_package_on_py3k.diff

[issue2856] os.listdir doc should mention that Unicode decoding can fail

2008-05-14 Thread Brodie Rao
New submission from Brodie Rao <[EMAIL PROTECTED]>: The documentation for os.listdir should mention that there's a possibility that it can fail to decode paths to unicode objects and that it returns str objects for those paths it couldn't decode. The documentation should also explain when this

[issue2854] Add gestalt back into Python 3.0

2008-05-14 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Wed, May 14, 2008 at 6:01 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > Benjamin Peterson <[EMAIL PROTECTED]> added the comment: > > I feel kinda bad about removing the module without noting how it was > used in platform.py, so I'll de

[issue2854] Add gestalt back into Python 3.0

2008-05-14 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I feel kinda bad about removing the module without noting how it was used in platform.py, so I'll deal with this. -- assignee: -> benjamin.peterson __ Tracker <[EMAIL PROTECTED]>

[issue2854] Add gestalt back into Python 3.0

2008-05-14 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Wed, May 14, 2008 at 1:37 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > Benjamin Peterson <[EMAIL PROTECTED]> added the comment: > > Does it have to be public? How about _gestalt? > That's fine by me. If someone really cares enough th

[issue2632] performance problem in socket._fileobject.read

2008-05-14 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- priority: critical -> release blocker __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mai

[issue2778] set_swap_bodies is unsafe

2008-05-14 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: There is no temporary hashability. The hash value is calculated, but never stored in the set's hash field, so it will never become out of sync. Modification while __hash__ or __eq__ is running is possible, but for __eq__ that applies to any muta

[issue2838] Verify callback for SSL

2008-05-14 Thread Bill Janssen
Changes by Bill Janssen <[EMAIL PROTECTED]>: -- resolution: -> works for me status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue2838] Verify callback for SSL

2008-05-14 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: Yep, it looks like you're on the right track. I'll close this bug. Bill On Wed, May 14, 2008 at 12:51 PM, Ruben Kerkhof <[EMAIL PROTECTED]> wrote: > > Ruben Kerkhof <[EMAIL PROTECTED]> added the comment: > > Hi Bill, > > When I include the s

[issue2778] set_swap_bodies is unsafe

2008-05-14 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: By replacing temporary immutability with temporary hashability, does this approach create the possibility that someone could mutate the key- set during a search? Is it possible to get the __eq__ check out-of- sync with the __hash__ value?

[issue2854] Add gestalt back into Python 3.0

2008-05-14 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Does it have to be public? How about _gestalt? -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __ __

[issue2854] Add gestalt back into Python 3.0

2008-05-14 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Actually, the plat-darwin comment is not right if the original C version is kept since that would just end up in Modules. __ Tracker <[EMAIL PROTECTED]> ___

[issue2855] lookkey should INCREF/DECREF startkey around PyObject_RichCompareBool

2008-05-14 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: FWIW, I periodically update setobject.c based on patches made to dictobject.c so there is usually no need to post separate bug reports. -- assignee: -> rhettinger nosy: +rhettinger __ Tracker <[EM

[issue2775] Implement PEP 3108

2008-05-14 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- dependencies: +Add gestalt back into Python 3.0 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bug

[issue2855] lookkey should INCREF/DECREF startkey around PyObject_RichCompareBool

2008-05-14 Thread Adam Olsen
New submission from Adam Olsen <[EMAIL PROTECTED]>: sets are based on dicts' code, so they have the same problem as bug 1517. Patch attached. -- files: python-lookkeycompare.diff keywords: patch messages: 66829 nosy: Rhamphoryncus severity: normal status: open title: lookkey should INCR

[issue2854] Add gestalt back into Python 3.0

2008-05-14 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: gestalt was removed as part of the stdlib cleanup for Mac code. But it turns out that gestalt is one of those modules that is just needed. Either the original version needs to be added back in or a ctypes version needs to be implemented. Ei

[issue2838] Verify callback for SSL

2008-05-14 Thread Ruben Kerkhof
Ruben Kerkhof <[EMAIL PROTECTED]> added the comment: Hi Bill, When I include the server certificate in ca_certs, verification succeeds, and I can view the peer certificate dict with getpeercert(False) When I set ca_certs to none and ssl.CERT_NONE, I can still call getpeercert(True) and call DER

[issue2850] Augmenting the Windows build to support code signing.

2008-05-14 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Objection. I don't see the point of signing the binaries; signing the MSI files should be enough. __ Tracker <[EMAIL PROTECTED]> __ __

[issue2853] *** glibc detected *** python: double free or corruption

2008-05-14 Thread Michael Lang
New submission from Michael Lang <[EMAIL PROTECTED]>: Hi, i am trying to solve some problems we encounter, when locking files on a NFS Storage using fcntl. since this is a security related problem i just add some pseudo code here that was used to create the problem fh = os.open('filename') fcnt

[issue2778] set_swap_bodies is unsafe

2008-05-14 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: Revised again. sets are only hashed after PyObject_Hash raises a TypeError. This also fixes a regression in test_subclass_with_custom_hash. Oddly, it doesn't show up in trunk, but does when my previous patch is applied to py3k. Added file: htt

[issue2775] Implement PEP 3108

2008-05-14 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Keep one file per submodule, but rename them to the new names, and update all references to the old name. If the new toplevel package (http in this case) contains something, there must be a new file for it. -- nosy: +georg.brandl

[issue2775] Implement PEP 3108

2008-05-14 Thread Juracy Filho
Juracy Filho <[EMAIL PROTECTED]> added the comment: I almost finished the http package patch, but I'm doubt about how I would do it with Docs. There are various doc files: basehttpserver.rst, cgihttpserver.rst, httplib.rst and so on. Would I join them into one's or only update their information

[issue2852] sidebar directive fails

2008-05-14 Thread Noah Kantrowitz
New submission from Noah Kantrowitz <[EMAIL PROTECTED]>: The normal ReST sidebar directive creates a div with the same class as the HTML sidebar. This makes it not render its contents correctly. Perhaps the default template/CSS should match on div#sphinxsidebar or similar? -- assignee:

[issue2838] Verify callback for SSL

2008-05-14 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: On the client side, are you passing a ca_certs file with the self-signed certificate in it? If not, the library won't be able to validate the certificate enough to be able to see the data in it. But if you do that, you should be able to see th

[issue2851] Eliminate Perl legacy in re flag names

2008-05-14 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Please keep them. They correspond to the (?x) and (?s) syntax that is supported inside the regex. Perl compatibility is a feature, not a bug for the re module. -- nosy: +gvanrossum resolution: -> wont fix status: open -> closed

[issue2845] shutil.copy2() copies permission bits

2008-05-14 Thread Alexander Belopolsky
Changes by Alexander Belopolsky <[EMAIL PROTECTED]>: -- assignee: -> georg.brandl components: +Documentation -Windows nosy: +georg.brandl type: behavior -> feature request versions: +Python 2.5, Python 2.6, Python 3.0 __ Tracker <[EMAIL PROTECTED]>

[issue2845] shutil.copy2() copies permission bits

2008-05-14 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: This seems to be a documentation issue. """ shutil.copy2(src, dst) Similar to copy(), but last access time and last modification time are copied as well. This is similar to the Unix command cp -p. """ -- http://docs.python.org/dev/libr

[issue2851] Eliminate Perl legacy in re flag names

2008-05-14 Thread Mark Summerfield
New submission from Mark Summerfield <[EMAIL PROTECTED]>: The re module has the following flags (amongst others): re.X == re.VERBOSE re.S == re.DOTALL The short forms of both these flags are clearly taken from Perl, but they don't seem necessary for Python and are confusing since all the other

[issue2775] Implement PEP 3108

2008-05-14 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: I've somehow lost my xmlrpc* changes on my local machine - if someone else gets to it before me, feel free to work on it. __ Tracker <[EMAIL PROTECTED]> ___

[issue2775] Implement PEP 3108

2008-05-14 Thread Quentin Gallet-Gilles
Quentin Gallet-Gilles <[EMAIL PROTECTED]> added the comment: I'm working on renaming the ConfigParser module. -- nosy: +quentin.gallet-gilles __ Tracker <[EMAIL PROTECTED]> __

[issue2850] Augmenting the Windows build to support code signing.

2008-05-14 Thread Trent Nelson
New submission from Trent Nelson <[EMAIL PROTECTED]>: Now that we've finally got a VeriSign code-signing certificate (hurrah!), we can look at how we want to integrate the aspect of code signing into our build process. I'd like to propose augmenting the build process such that as a post- link

[issue1467929] %-formatting and dicts

2008-05-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: I guess the patch was just forgotten after the 2.5 release was out. I've added a 2.6 tag and assigned the patch to Sean. -- assignee: anthonybaxter -> jafo versions: +Python 2.6 _ Tracker <[EM

[issue2833] __exit__ silences the active exception

2008-05-14 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Small typo in the snippet above, this should obviously read: try: raise Exception("foo") except Exception as e: try: raise KeyError("caught") except KeyError: pass raise e __ Trac

[issue2833] __exit__ silences the active exception

2008-05-14 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: As Amaury said, lexically nested exception handlers make re-raising behaviour buggy. In Py3k, a workaround is to instead write: try: raise Exception("foo") except Exception as : try: raise KeyError("caught") except Key