Re: [Python-Dev] Idle, site.py, and the release candidates

2013-03-30 Thread Nick Coghlan
On Sun, Mar 31, 2013 at 12:34 PM, Terry Jan Reedy wrote: > While trying to test the patch for > http://bugs.python.org/**issue5492 > on Windows, I discovered that quit() and exit() in the Idle Shell are now > disabled, it seems, for all versions on all systems r

[Python-Dev] Idle, site.py, and the release candidates

2013-03-30 Thread Terry Jan Reedy
While trying to test the patch for http://bugs.python.org/issue5492 on Windows, I discovered that quit() and exit() in the Idle Shell are now disabled, it seems, for all versions on all systems rather than just sometimes on Linux. The problem is a change in idlelib that invalidated an assumpti

Re: [Python-Dev] py2.7: dictobject not properly resizing

2013-03-30 Thread Micha Gorelick
True, but your example mechanism of getting a shrink event is purely based on ma_fill. This is happening because your last loop is increasing ma_fill to the point where it thinks it needs to resize because of the load factor and then it calculates the new size based on ma_used. The comment that I

Re: [Python-Dev] py2.7: dictobject not properly resizing

2013-03-30 Thread Armin Rigo
Hi Antoine, On Sat, Mar 30, 2013 at 10:37 PM, Antoine Pitrou wrote: > On Sat, 30 Mar 2013 17:31:26 -0400 > Micha Gorelick wrote: >> I was taking a look at dictobject.c and realized that the logic >> controlling whether a resizedict will occur in >> dict_set_item_by_hash_or_entry disallows for th

Re: [Python-Dev] py2.7: dictobject not properly resizing

2013-03-30 Thread Antoine Pitrou
On Sat, 30 Mar 2013 17:31:26 -0400 Micha Gorelick wrote: > I was taking a look at dictobject.c and realized that the logic > controlling whether a resizedict will occur in > dict_set_item_by_hash_or_entry disallows for the shrinking of a > dictionary. This is contrary to what the comments directl

[Python-Dev] py2.7: dictobject not properly resizing

2013-03-30 Thread Micha Gorelick
I was taking a look at dictobject.c and realized that the logic controlling whether a resizedict will occur in dict_set_item_by_hash_or_entry disallows for the shrinking of a dictionary. This is contrary to what the comments directly above say: (http://hg.python.org/cpython/file/f3032825f637/Obje

Re: [Python-Dev] Accepting PEP 434, Idle Enhancement Exception

2013-03-30 Thread Antoine Pitrou
On Sat, 30 Mar 2013 13:36:39 -0700 "fwierzbi...@gmail.com" wrote: > On Fri, Mar 29, 2013 at 11:33 PM, Simon Cross > wrote: > > > Having a standalone version of IDLE might be really useful to > > alternative Python implementations. > > I suspect it's too hard. I remember seeing some work on "any

Re: [Python-Dev] Accepting PEP 434, Idle Enhancement Exception

2013-03-30 Thread fwierzbi...@gmail.com
On Fri, Mar 29, 2013 at 11:33 PM, Simon Cross wrote: > Having a standalone version of IDLE might be really useful to > alternative Python implementations. I suspect it's too hard. I remember seeing some work on "anygui.py" that looked like an attempt to make these sorts of things work across var

Re: [Python-Dev] Accepting PEP 434, Idle Enhancement Exception

2013-03-30 Thread Daniel Holth
Yes, it would probably make more sense to split the editor and shell processes as many Python IDEs do, with IDLE running in CPython and the user's computation running in the chosen interpreter. On Sat, Mar 30, 2013 at 8:35 AM, Maciej Fijalkowski wrote: > On Sat, Mar 30, 2013 at 5:26 AM, Antoine P

Re: [Python-Dev] Accepting PEP 434, Idle Enhancement Exception

2013-03-30 Thread Maciej Fijalkowski
On Sat, Mar 30, 2013 at 5:26 AM, Antoine Pitrou wrote: > On Sat, 30 Mar 2013 08:33:38 +0200 > Simon Cross wrote: > >> Having a standalone version of IDLE might be really useful to >> alternative Python implementations. > > Why? I don't think it's worth discussing - tkinter does not work on any o

Re: [Python-Dev] cpython (2.7): Fix typos and clear up one very odd bit of wording as pointed out by

2013-03-30 Thread Antoine Pitrou
On Sat, 30 Mar 2013 09:39:00 +0100 (CET) gregory.p.smith wrote: > > The workarounds and modifications are not included in patch releases as they > break backward compatibility. This is not entirely true. It was perfectly possible to give the *options* to change behaviour, but the patch wasn't

Re: [Python-Dev] Accepting PEP 434, Idle Enhancement Exception

2013-03-30 Thread Antoine Pitrou
On Sat, 30 Mar 2013 08:33:38 +0200 Simon Cross wrote: > Having a standalone version of IDLE might be really useful to > alternative Python implementations. Why? ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo