Re: [Python-Dev] PEP 343 rewrite complete

2005-06-06 Thread Nick Coghlan
Paul Moore wrote: Unfortunately, I don't have a better naming suggestion (other than simply template, which is probably too general to work), so I just raise this as something you should expect to need to clarify a few times... PEP 346 used statement_template for the generator decorator. That

[Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Reinhold Birkenfeld
Hello, I am currently having some thoughts about the standard library, with regard to Python 2.5 and 3.0. Since I don't want to withhold them from you, here are they ;) - Flat namespace: Should we tend to a more hierarchic library (e.g. inet.url, inet.http, inet.nntp)? This would increase

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Raymond Hettinger
- 3rd party modules: There are many superb modules out there, some of which really do have a standard character. Examples include PIL, numarray, ElementTree, [wxPython - I know this is a hairy issue], If Fred were up for it, I think ElementTree would be a wonderful, must-have addition.

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Skip Montanaro
Reinhold - Flat namespace: Should we tend to a more hierarchic library Reinhold (e.g. inet.url, inet.http, inet.nntp)? This would increase Reinhold clarity when searching for a module. We've talked about this before. The main technical challenge seems to be backward

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Barry Warsaw
On Mon, 2005-06-06 at 14:38, Skip Montanaro wrote: import urllib from www.urllib import urlopen the module-level code should only be executed once, and urlopen == urllib.urlopen should evaluate to True. Not to mention urlopen is urllib.urlopen -Barry signature.asc

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Skip Montanaro
Barry == Barry Warsaw [EMAIL PROTECTED] writes: Barry On Mon, 2005-06-06 at 14:38, Skip Montanaro wrote: import urllib from www.urllib import urlopen the module-level code should only be executed once, and urlopen == urllib.urlopen should evaluate

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Eric Nieuwland
Skip Montanaro wrote: The main technical challenge seems to be backward compatibility. You need to support both flat (import urllib) and packaged namespaces (from www import urllib), possibly within the same application. That is, postulating a www package, if I execute import

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Martin v. Löwis
Raymond Hettinger wrote: ElementTree, [wxPython - I know this is a hairy issue], If Fred were up for it, I think ElementTree would be a wonderful, must-have addition. I might be missing fine details of the English language here (what does to be up for something mean?), however, I believe

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Bob Ippolito
On Jun 6, 2005, at 3:10 PM, Raymond Hettinger wrote: If Fred were up for it, I think ElementTree would be a wonderful, must-have addition. I might be missing fine details of the English language here (what does to be up for something mean?), however, I believe ElementTree is an unlikely

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Skip Montanaro
Tim On 6/6/05, Reinhold Birkenfeld [EMAIL PROTECTED] wrote: - Flat namespace: Should we tend to a more hierarchic library (e.g. inet.url, inet.http, inet.nntp)? This would increase clarity when searching for a module. Tim -1. I feel the opposite way: when trying to figure

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Josiah Carlson
Fernando Perez wrote: Skip Montanaro wrote: I wouldn't mind a stdlib that defined a set of top-level packages (some of which might be wholly unpopulated by modules in the standard distribution) It might, for example, define a gui package and gui.Tkinter and gui._tkinter modules, leaving the

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Stephen J. Turnbull
Skip == Skip Montanaro [EMAIL PROTECTED] writes: Skip If you provide the necessary namespace structure for them to Skip nestle into, I suspect most of them could be maintained Skip outside the stdlib just fine. FWIW, this has worked well for XEmacs; it's one of our most popular

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Fernando Perez
Josiah Carlson wrote: Fernando Perez wrote: I've wondered if it wouldn't be better if the std lib were all stuffed into its own namespace: from std import urllib If a more structured approach is desired, it could be from std.www import urllib This generally brings up the

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Josiah Carlson
Fernando Perez wrote: Josiah Carlson wrote: Fernando Perez wrote: I've wondered if it wouldn't be better if the std lib were all stuffed into its own namespace: from std import urllib If a more structured approach is desired, it could be from std.www import urllib This generally brings up the