[Python-Dev] pep8ity __future__

2008-06-07 Thread Armin Ronacher
Hi, That's just a flaming-sword thread but I want to mention it nonetheless :-) Basically I propose getting rid of __future__._Feature.getMandatoryRelease() in favour of __future__._Feature.mandatory. That's backwards compatibile and much more pythonic. Getters/Setters are considered unpythonic

Re: [Python-Dev] Modules for 2.6 inclusion

2008-06-07 Thread Georg Brandl
Guilherme Polo schrieb: I created an issue 1 week ago (http://bugs.python.org/issue2983) suggesting the addition of the ttk module to lib-tk, and to the new tkinter package. Is there any chance to this be accepted for Python 2.6 ? This may be a good thing to have since it can show that Tkinter

Re: [Python-Dev] Modules for 2.6 inclusion

2008-06-07 Thread Giampaolo Rodola'
On 6 Giu, 13:27, Georg Brandl <[EMAIL PROTECTED]> wrote: > - setuptools >BDFL pronouncement for inclusion in 2.5: >http://mail.python.org/pipermail/python-dev/2006-April/063964.html I'd like to see more interest about this issue since it's a real shame that the current distutils is not ev

[Python-Dev] Deprecate parser's "ast" functions?

2008-06-07 Thread Georg Brandl
The parser module exports each function and type twice, once with "AST" in the name, once with "ST". Since "AST" now has a different meaning for Python code compilation, I propose to deprecate the "ast" variants in 2.6 and remove them in Python 3000. (Also, all keyword arguments are called "ast"

Re: [Python-Dev] Mini-Pep: Simplifying the Integral ABC

2008-06-07 Thread Guido van Rossum
I recommend switching back to __int__ and int; even in 2.5, these are expected to return either an int or a long as required. There's no need to mess with __long__ at all. On Fri, Jun 6, 2008 at 8:25 PM, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > Well, it seems like Integral instances should be

Re: [Python-Dev] Different cpu python code usage between embedded mode and standalone mode

2008-06-07 Thread Guido van Rossum
This is not an issue for python-dev, but I have to ask: what do you mean by "embedded mode"? On Sat, Jun 7, 2008 at 10:14 AM, Pau Freixes <[EMAIL PROTECTED]> wrote: > Hi list, > > First Hello to all, I have a serious problem for understand some results > when I'm comparing cpu usages between same

[Python-Dev] Different cpu python code usage between embedded mode and standalone mode

2008-06-07 Thread Pau Freixes
Hi list, First Hello to all, I have a serious problem for understand some results when I'm comparing cpu usages between same python code in embedded mode and standalone mode ( python name_script.py ) This last months I have been writing a program in c like to mod_python for embedding python lang

Re: [Python-Dev] ABC issues

2008-06-07 Thread Georg Brandl
Guido van Rossum schrieb: On Mon, May 26, 2008 at 11:59 AM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: * The 2.6-backported Mapping ABC has the 3.0 dict API, that is, it uses keys() that returns a view etc. Curious to hear what Guido thinks about this one. A nice use of the Mapping ABC is t

Re: [Python-Dev] wrt the beta deadline and freelist management

2008-06-07 Thread Gregory P. Smith
On Wed, Jun 4, 2008 at 7:32 PM, Andrew MacIntyre < [EMAIL PROTECTED]> wrote: > There are 2 disparate approaches to clearing/compacting free lists for > basic types: > - APIs of the form Py_ClearFreeList() called from gc.collect() > [class, frame, method, tuple & unicode types]; > - APIs of the fo

Re: [Python-Dev] on Python's tests (and making them better)

2008-06-07 Thread Benjamin Peterson
On Fri, Jun 6, 2008 at 6:19 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > (just to test your own intuition: when reversed() got added, was > that more of a language change than when sys.meta_path got > added?) I would say they were both core language changes. Anyway, I will happily drop this

[Python-Dev] Python bug day (was Re: New Developer)

2008-06-07 Thread John J Lee
On Fri, 6 Jun 2008, Facundo Batista wrote: [...] Next week we'll have a Python Bug Weekend [3], it's a good moment to gain speed. [...] [3] http://wiki.python.org/moin/PythonBugDay That page says the next bug day will be on Sat, June 21st-22nd 2008, which is in two weeks' time. Has that pla

Re: [Python-Dev] on Python's tests (and making them better)

2008-06-07 Thread Martin v. Löwis
> I think, and this is just my opinion, that if you are forced to do a > linear search through the entire test suite in order to find the file > you want, that perhaps the test suite needs a tad better organisation. Perhaps. However, if the linear search is then replaced with a recursive one, no

Re: [Python-Dev] Location of uname in os.py

2008-06-07 Thread Martin v. Löwis
> Can anyone give me an idea as to where the function uname is located in > os? This question is out-of-scope for python-dev; please use python-list instead when asking how something is currently implemented. However, there is an easy answer, so I'll give it anyway: it's implemented in Modules/po

Re: [Python-Dev] on Python's tests (and making them better)

2008-06-07 Thread Martin v. Löwis
> Personally I'd like to see packages have their own test directory. That's a good idea, and it is already implemented for several packages. > This > keeps things related to each other together. Top level modules of > course would have their tests in the top level test directory as they > are no