[issue908441] default index for __getslice__ is not sys.maxint

2008-03-22 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Closing as Fixed. -- nosy: +georg.brandl resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue908441

[issue1918] weak references are removed before __del__ is called.

2008-03-22 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Done in r61733. -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1918 __ ___ Python-bugs-list

[issue2349] Py3K warn against assigning to True/False

2008-03-22 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Keep what you've got but don't lose sleep if some offbeat case is not covered. -- assignee: rhettinger - brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2349

[issue1721812] A subclass of set doesn't always have __init__ called.

2008-03-22 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Attaching a possible fix (untested). -- keywords: +patch Added file: http://bugs.python.org/file9809/set.diff _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1721812

[issue1943] improved allocation of PyUnicode objects

2008-03-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: I wasn't clear enough: my point was that your free list patch would probably benefit from some tuning of the cut-off parameters. 15 characters appears to be too small (see the HISTORY file histogram). You'll likely get better results for

[issue1605] Semi autogenerated _types module

2008-03-22 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Fri, Mar 21, 2008 at 11:06 PM, Guido van Rossum [EMAIL PROTECTED] wrote: Guido van Rossum [EMAIL PROTECTED] added the comment: Well, okay. I still think we should expose these core interpreter types somehow, so people can

[issue1477] UnicodeDecodeError that cannot be caught in narrow unicode builds

2008-03-22 Thread Walter Dörwald
Walter Dörwald [EMAIL PROTECTED] added the comment: The patch looks goog to me now. Go ahead and check it in. -- assignee: doerwalter - amaury.forgeotdarc __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1477 __

[issue1328] Force BOM option in UTF output.

2008-03-22 Thread Walter Dörwald
Walter Dörwald [EMAIL PROTECTED] added the comment: If you want to use UTF-8-sig for decoding and UTF-8 for encoding and have this available as one codec you can define your owen codec for this: import codecs def search_function(name): if name == myutf8: utf8 = codecs.lookup(utf-8)

[issue1328] Force BOM option in UTF output.

2008-03-22 Thread Walter Dörwald
Walter Dörwald [EMAIL PROTECTED] added the comment: Oops, that code was supposed to read: import codecs def search_function(name): if name == myutf8: utf8 = codecs.lookup(utf-8) utf8_sig = codecs.lookup(utf-8-sig) return codecs.CodecInfo( name='myutf8',

[issue1054434] automatic XMLRPC boxcarring via multicall for xmlrpclib

2008-03-22 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: I see these multicall classes (including tests) in python-trunk, except for the threaded one. So, should this remain open ? If yes, what has to be done here ? -- nosy: +gpolo _ Tracker [EMAIL

[issue2456] Make sysmodule.c compatible with Bazaar

2008-03-22 Thread Barry A. Warsaw
New submission from Barry A. Warsaw [EMAIL PROTECTED]: For the Bazaar experiment http://www.python.org/dev/bazaar, sysmodule.c needs to be made compatible with Bazaar, for build number display. -- assignee: barry components: Interpreter Core messages: 64327 nosy: barry priority: normal

[issue2385] run_setup can fail if the setup script uses __file__

2008-03-22 Thread Tarek Ziadé
Tarek Ziadé [EMAIL PROTECTED] added the comment: new patch that adds __main__ and __file__, and make a chdir, so the function is called in a realistic way. this patch also adds test_core.py for this change. Added file: http://bugs.python.org/file9811/2008-03-28-distutils.core.patch

[issue2385] run_setup can fail if the setup script uses __file__

2008-03-22 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9724/distutils.core.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2385 __ ___

[issue1858] Make .pypirc handle multiple servers

2008-03-22 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9489/distutils.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858 __ ___

[issue1858] Make .pypirc handle multiple servers

2008-03-22 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9503/bugday.distutils.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858 __ ___

[issue1858] Make .pypirc handle multiple servers

2008-03-22 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9500/bugday-distutils.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858 __ ___

[issue1858] Make .pypirc handle multiple servers

2008-03-22 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9652/distutils.2008.03.11.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858 __ ___

[issue1858] Make .pypirc handle multiple servers

2008-03-22 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9653/distutils.2008.03.11.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858 __ ___

[issue1858] Make .pypirc handle multiple servers

2008-03-22 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9614/distutils.2008-03-05.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858 __ ___

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2008-03-22 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: There is another patch regarding the use of HTTP/1.1 for xmlrpclib at http://bugs.python.org/issue1767370. The other issue could be update with some comments from this issue and then this issue could be closed, I believe. -- nosy:

[issue2013] Long object free list optimization

2008-03-22 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Here are some updated timings against the current py3k branch: $ ./python -m timeit sum(range(1)) Without patch: 1000 loops, best of 3: 675 usec per loop With patch: 1000 loops, best of 3: 462 usec per loop $ ./python -m timeit -s

[issue2456] Make sysmodule.c compatible with Bazaar

2008-03-22 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- nosy: +benjamin.peterson __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2456 __ ___ Python-bugs-list mailing list

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-03-22 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Here are 2 forward diff files against _lspprof.c rev 59564. One _lsprof2.6.diff for Python 2.6a1 and _lsprof3.0.diff for 3.0. Added file: http://bugs.python.org/file9812/_lsprof2.6.diff __ Tracker [EMAIL

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-03-22 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: -- versions: +Python 3.0 -Python 2.5 Added file: http://bugs.python.org/file9813/_lsprof3.0.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2281 __

[issue1762940] struni: test_urllib2, test_cookielib

2008-03-22 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I think the patch was wrong. I question whether urllib *should* work on str at all, given that URLs are byte strings. In any case, the quoting is incorrect for str; it should implement rfc 3987, but currently does a mixture of Latin-1 and

[issue1081824] Rewrite of docs for compiler.visitor

2008-03-22 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: I have done some changes and did a patch against python-trunk -- nosy: +gpolo Added file: http://bugs.python.org/file9814/compiler.visitor_doc_update.diff _ Tracker [EMAIL PROTECTED]

[issue2218] Enhanced hotshot profiler with high-resolution timer

2008-03-22 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Here are the forward diffs of the 3 files against the version in the trunk. -- versions: +Python 2.6 -Python 2.5 Added file: http://bugs.python.org/file9815/hires_hotshot_2.6.diffs.tgz __ Tracker [EMAIL

[issue2457] add --help and -h options to pdb

2008-03-22 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: If --help or -h are used as options for pdb, pdb unhelpfully exits with file -h cannot be found. This makes it more user friendly and prints the usage if those options are passed. -- components: Demos and Tools, Library (Lib)

[issue2013] Long object free list optimization

2008-03-22 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: I'm attaching a slightly improved version of the longfreelist2 patch. It moves the important test to be first and removes the unneeded ? : conditional. Here are some more benchmarks: ---

[issue2446] 2to3 translates import foobar to import .foobar rather than from . import foobar

2008-03-22 Thread David Wolever
David Wolever [EMAIL PROTECTED] added the comment: Ok, I've fixed this in r61755. I _think_ it does the right thing, but it might be good if someone else checks out the test cases to make sure. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2446

[issue2458] Allow Python code to change Py3k warning flag

2008-03-22 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: This patch removed sys.py3kwarning and adds sys.getpy3kwarn, sys.enablepy3kwarn, and sys.disablepy3kwarn with docs. I also changed the places in the Lib which used sys.py3kwarning. -- files: change_py3kwarning.patch keywords:

[issue1081824] Rewrite of docs for compiler.visitor

2008-03-22 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- assignee: jhylton - georg.brandl nosy: +georg.brandl _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1081824 _ ___

[issue964437] idle help is modal

2008-03-22 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Hi, This patch makes Help dialog executes as nonmodal. I added a new button at textView.py to demonstrate the behavior, also, I created a decorator called _singledialog at EditorWindow so just one Help window executes at a time, trying to

[issue1691411] Duplicate preferences menu item/Tk Aqua 8.4.14

2008-03-22 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Someone should close this as it has been fixed already. -- nosy: +gpolo _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1691411 _

[issue2459] speedup loops with better bytecode

2008-03-22 Thread Antoine Pitrou
New submission from Antoine Pitrou [EMAIL PROTECTED]: This is a preliminary patch to speedup for and while loops (it will also be able to speedup list comps and gen comps, if I get to do it). The patch works by putting the loop condition test at the end of loop, which allows removing one

[issue2459] speedup loops with better bytecode

2008-03-22 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: This is a preliminary patch to speedup for and while loops (it will also be able to speedup list comps and gen comps, if I get to do it). The patch works by putting the loop condition test at the end of loop, which allows removing one

[issue2459] speedup loops with better bytecode

2008-03-22 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Sorry for the double post, the second message contains fixed benchmark numbers. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2459 __

[issue1810] AST compile() patch

2008-03-22 Thread Armin Ronacher
Changes by Armin Ronacher [EMAIL PROTECTED]: -- nosy: +aronacher __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1810 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2343] Raise a Py3K warning when using a float where an int is expected

2008-03-22 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This is already implemented: [].insert(.5, 0) __main__:1: DeprecationWarning: integer argument expected, got float -- nosy: +benjamin.peterson __ Tracker [EMAIL PROTECTED]

[issue2402] get rid of warnings in regrtest with -3

2008-03-22 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2402 __ ___ Python-bugs-list mailing list

[issue2402] get rid of warnings in regrtest with -3

2008-03-22 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- components: +Tests __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2402 __ ___ Python-bugs-list mailing list

[issue1616] compiler warnings

2008-03-22 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: While we're at it, see 2388. -- nosy: +benjamin.peterson __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1616 __

[issue2460] Ellipsis not copyable

2008-03-22 Thread Armin Ronacher
New submission from Armin Ronacher [EMAIL PROTECTED]: Currently python raises an exception if one tries to copy or deepcopy Ellpisis. The former is usually no problem but if an ellipsis ends up on an object and becomes deepcopied this is pretty annoying. The patch provided adds Ellipsis to the

[issue2343] Raise a Py3K warning when using a float where an int is expected

2008-03-22 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Is there any other place where this might be an issue? That's the real question; are all reasonable cases covered. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2343 __

[issue2459] speedup loops with better bytecode

2008-03-22 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: Added file: http://bugs.python.org/file9822/loops2.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2459 __ ___

[issue2459] speedup loops with better bytecode

2008-03-22 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9820/loops.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2459 __ ___

[issue1038909] pydoc method documentation lookup enhancement

2008-03-22 Thread Andy Harrington
Andy Harrington [EMAIL PROTECTED] added the comment: Several points: Additional note in pydoc output: I thought that 'inherited' docs should be marked, so I chose to add to the note for any function that gets docs displayed from an inherited function: ', docs from inherited inherited class

[issue2343] Raise a Py3K warning when using a float where an int is expected

2008-03-22 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I think so. The warning is implemented in getargs.c, so any conversion from a float to int will result in a warning. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2343

[issue2343] Raise a Py3K warning when using a float where an int is expected

2008-03-22 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2343 __ ___ Python-bugs-list mailing list

[issue2460] Ellipsis not copyable

2008-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- assignee: - rhettinger nosy: +rhettinger type: behavior - feature request versions: -Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2460 __

[issue2013] Long object free list optimization

2008-03-22 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: Looking at how much memory was actually used by PyLongObjects the way our code allocates them... we can use this freelist for 2 digit PyLongs on 32-bit systems and for 4 digit PyLongs on 64-bit systems. Doing this speeds things up even more

[issue2013] Long object free list optimization

2008-03-22 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: And the benchmarks of gps02... see the attached file. At the end I had it run pybench rather than these microbenchmarks that obviously show the speedup, the -gps02 patch ran 1.3% faster best case a 0.5% faster on average (32-bit; my mac's

[issue2343] Raise a Py3K warning when using a float where an int is expected

2008-03-22 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- assignee: - brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2343 __ ___ Python-bugs-list mailing list