[Python-Dev] Python 3000 PEP: Postfix type declarations

2007-04-01 Thread Georg Brandl
PEP: XXX Title: Postfix type declarations Version: $Revision: $ Last-Modified: $Date: $ Author: Georg Brandl [EMAIL PROTECTED] Status: Draft Type: Standards Track Content-Type: text/x-rst Created: 01-Apr-2007 Python-Version: 3.0 Abstract This PEP proposes the addition of a postfix type

Re: [Python-Dev] Python 3000 PEP: Postfix type declarations

2007-04-01 Thread Johann C. Rocholl
Brilliant! On 4/1/07, Georg Brandl [EMAIL PROTECTED] wrote: def foo${LATIN SMALL LETTER LAMBDA WITH STROKE}$(x${DOUBLE-STRUCK CAPITAL C}$): return None${ZERO WIDTH NO-BREAK SPACE}$ This is still easy to read and makes the full power of type-annotated Python available to ASCII

Re: [Python-Dev] Python 3000 PEP: Postfix type declarations

2007-04-01 Thread Gustavo Carneiro
On 4/1/07, Georg Brandl [EMAIL PROTECTED] wrote: [...] Example === This is the standard ``os.path.normpath`` function, converted to type declaration syntax:: def normpathƛ(path✎)✎: Normalize path, eliminating double slashes, etc. if path✎ == '': return

Re: [Python-Dev] Python 3000 PEP: Postfix type declarations

2007-04-01 Thread Gustavo Carneiro
On 4/1/07, Gustavo Carneiro [EMAIL PROTECTED] wrote: On 4/1/07, Georg Brandl [EMAIL PROTECTED] wrote: [...] Example === This is the standard ``os.path.normpath`` function, converted to type declaration syntax:: def normpathƛ(path✎)✎: Normalize path, eliminating

Re: [Python-Dev] Python 3000 PEP: Postfix type declarations

2007-04-01 Thread Ron Adam
Johann C. Rocholl wrote: Brilliant! On 4/1/07, Georg Brandl [EMAIL PROTECTED] wrote: def foo${LATIN SMALL LETTER LAMBDA WITH STROKE}$(x${DOUBLE-STRUCK CAPITAL C}$): return None${ZERO WIDTH NO-BREAK SPACE}$ This is still easy to read and makes the full power of

Re: [Python-Dev] proposed which.py replacement

2007-04-01 Thread Stefan Rank
on 31.03.2007 22:39 Guido van Rossum said the following: If you ask me, having it hosted by Trent is probably more helpful for its popularity than putting it in the Python source distro; the Tools directory is mostly a poorly-maintained collection of trivia I wrote many years ago that is now

Re: [Python-Dev] BaseException pickle issue

2007-04-01 Thread Žiga Seilnacht
Eric Huss wrote: Some subclasses of Exception are no longer pickleable in Python 2.5. An example: [snip] Does anyone have any thoughts about this? Is it a bug? I can imagine one could argue that exceptions should call the base __init__ method to properly set args, but there are so

Re: [Python-Dev] proposed which.py replacement

2007-04-01 Thread Guido van Rossum
It's out of character for the standard library, since (regardless of whether it's implemented in Python or part of the standard library) it's a stand-alone utility. I don't see much use for this as a library module. On 4/1/07, Stefan Rank [EMAIL PROTECTED] wrote: on 31.03.2007 22:39 Guido van

[Python-Dev] Python Documentation Problem Example

2007-04-01 Thread xah lee
Python Doc Problem Example: os.path.split() Xah Lee, 20050918 Quote from: http://www.python.org/doc/2.4.1/lib/module-os.path.html « split(path) Split the pathname path into a pair, (head, tail) where tail is the last pathname component and head is everything leading up to that.

Re: [Python-Dev] Python 3000 PEP: Postfix type declarations

2007-04-01 Thread Guido van Rossum
+18446744073709551616 from me too. This also fits nicely in with my plan to abandon the python-dev and python-3000 mailing lists. Mailing lists are so 20th century! I propose that from now on, all Python development should be carried out on blogs, so that readers can use customized RSS feeds to

Re: [Python-Dev] Python+XUL

2007-04-01 Thread Mark Hammond
Has anyone heard the Python+XUL community cry I'm not dead yet! or are they really dead? I haven't seen mentions of new work in these areas lately. XUL in general seems to have died (so many broken links on XUL pages). Was this just a fad? If not, and if there's some really useful of