[issue10302] Add class-functions to hash many small objects with hashlib

2010-11-04 Thread Lukas Lueg
Lukas Lueg added the comment: Thanks for your comment; it is a very valid point to consider. However, as a vector-based implementation is roughly three to four times faster than what the current API can provide by design (reduced overhead and GIL-relaxation not included), I may disagree with

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-11-04 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Move the CObject use to a py3k warning instead of an error in r86178. I still need to solve improve error management in bsddb. This bug remains open for a while. -- ___ Python tracker

[issue10279] test_gc failure on Windows x64

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the issue seems to be simpler. This piece of code calls PyErr_WarnFormat, which doesn't use the platform's printf but Python's own format codes as documented in http://docs.python.org/dev/c-api/unicode.html#PyUnicode_FromFormat -- nosy: +georg.b

[issue10279] test_gc failure on Windows x64

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Could you check the following patch works for you? -- assignee: -> brian.curtin keywords: +patch Added file: http://bugs.python.org/file19499/gcprint.patch ___ Python tracker ___

[issue7061] Improve 24.5. turtle doc

2010-11-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch that adds a hack that allows to run turtle doctests using turtle.run_doctests() function. Running this function has revealed numerous mistakes in doctests that are corrected in the patch. The patch is against release27 branch bec

[issue10302] Add class-functions to hash many small objects with hashlib

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thanks for your comment; it is a very valid point to consider. > However, as a vector-based implementation is roughly three to four > times faster than what the current API can provide by design (reduced > overhead and GIL-relaxation not included), I may disa

[issue6305] islice doesn't accept large stop values

2010-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.1.2, range handles large numbers. >>> list(range(10, 500, 100)) [10, 110, 210, 310, 410] # those are all billions This means that the 'equivalent' code in the doc will work. -- nosy:

[issue10302] Add class-functions to hash many small objects with hashlib

2010-11-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Overlord Antoine ;-) The API of "hashfunc *files" looks like something that should be done at the command line in bash. For the most part, I think users are better-off using normal Python loops so they can do something with the computed has

[issue10279] test_gc failure on Windows x64

2010-11-04 Thread Brian Curtin
Brian Curtin added the comment: Works for me. -- assignee: brian.curtin -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-04 Thread Łukasz Langa
Changes by Łukasz Langa : Removed file: http://bugs.python.org/file19010/issue5412.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-04 Thread Łukasz Langa
Łukasz Langa added the comment: Patch updated yet again: * optional .get() arguments are now keyword only. This is a bit backwards incompatible but: * protects users of mapping protocol access from invoking get() as if the last positional argument was the `fallback` value (it would

[issue10279] test_gc failure on Windows x64

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r86179. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue10316] tkFileDialog.askopenfilenames scrambling multiple file selection

2010-11-04 Thread Ned Deily
Ned Deily added the comment: Works for me on a current Debian Linux system with a Debian Python 2.5.5 + Tcl/Tk 8.5 and with Python 2.6.1 + Tcl/Tk 8.5 on OS X 10.6 and with Python 2.7 + Tcl/Tk 8.4 on OS X 10.6. In all cases, the tkFileDialog.askopenfilenames returns a tuple of absolute file pa

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-11-04 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Better bsddb error control. Please, review. """ [j...@babylon5 release27-maint]$ ./python Python 2.7.0+ (release27-maint:86176:86178M, Nov 5 2010, 00:30:) [GCC 4.5.1] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-11-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- assignee: -> jcea resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue1926] NNTPS support in nntplib

2010-11-04 Thread StevenJ
StevenJ added the comment: Hi Julien, >> I also don't understand why START_TLS and AUTHINFO need to change >> how the module is interfaced to (separating log in/authentication, etc) > Because once you have used AUTHINFO, STARTTLS is no longer a valid > command in a session. I understand this,

[issue1926] NNTPS support in nntplib

2010-11-04 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1702036] Make Turtle thread-safe so it does not crash

2010-11-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I think threading is a red herring here. The issue is really a duplicate of #6639. -- nosy: +belopolsky status: open -> pending superseder: -> turtle: _tkinter.TclError: invalid command name ".10170160" ___

[issue1702036] Make Turtle thread-safe so it does not crash

2010-11-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On a closer look at the first post, I see that there are two parts to the issue. The first is indeed a duplicate of #6639, but the second is thread related. I am attaching the OP's code in a script file for convenience. Running ninja.py under python

[issue10317] Add TurtleShell to turtle

2010-11-04 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : In r84640, Raymond added TurtleShell to the cmd module documentation as an example of a simple interpreter that can be written using that module. I propose adding this code to turtle.py and make it runnable as python -m turtle. -- components:

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-04 Thread Allan McRae
New submission from Allan McRae : The following files are incorrectly installed with a "#!/usr/bin/env python" shebang when using "make altinstall": usr/lib/python2.7/base64.py usr/lib/python2.7/bsddb/dbshelve.py usr/lib/python2.7/bsddb/test/test_dbtables.py usr/lib/python2.7/cgi.py usr/lib/pyt

[issue10293] PyMemoryView object has obsolete members

2010-11-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ah, the SHADOW member... Weird. Anyway, I have been hacking around in the memory view. One thing that it does, and makes me uncomfortable since I think it is breaking the new buffer protocol, is to a) PyObject_GetBuffer() b) Modify the resulting loca

[issue10319] SocketServer.TCPServer truncates responses on close (in some situations)

2010-11-04 Thread jrodman2
New submission from jrodman2 : Behavior exists in at least Python 2.5 through 3.1. The issue regards the socketserver's handling of the tcp sockets it works with. On object reaping, the sockets are properly closed (in some versions explicitly, in others implicitly). However, closing a socket

<    1   2