Re: Securing a future for anonymous functions in Python

2004-12-30 Thread John Roth
Ian Bicking [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John Roth wrote: The syntax I prefer (and I don't know if it's actually been suggested before) is to use braces, that is { and }. In other words, an anonymous function looks like: {p1, p2, p3 | stmt1 stmt2

Re: Why tuples use parentheses ()'s instead of something else like 's?

2004-12-29 Thread John Roth
) and subscripts/slices (operators). Braces ({}) are used for dictionarys (operands). They aren't currently used for unary operators. John Roth Please enlighten me as I really want to know. Chris P.S. I love Python! -- http://mail.python.org/mailman/listinfo/python-list

Re: Why tuples use parentheses ()'s instead of something else like 's?

2004-12-29 Thread John Roth
for comparisons. The same thing goes for multiplication and division. We've allowed ourselves to be limited by the ASCII character set for so long that improving that seems to be outside of most people's boxes. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: objects as mutable dictionary keys

2004-12-28 Thread John Roth
I think that's a good summary. The condensed version is that the results of both __hash__() and __cmp__() have to remain stable for dicts to work as one would expect. __cmp__ doesn't do that for lists, and it isn't defined by default for user objects. John Roth Peter Maas [EMAIL PROTECTED] wrote

Re: A Revised Rational Proposal

2004-12-27 Thread John Roth
(strings don't implement the / operator). John Roth mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: objects as mutable dictionary keys

2004-12-27 Thread John Roth
with it. John Roth -- --- Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0 E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64') --- -- http

Re: A Revised Rational Proposal

2004-12-26 Thread John Roth
be both or neither. John Roth John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: A Revised Rational Proposal

2004-12-26 Thread John Roth
access _n and _d. I'd suggest making them public rather than either protected or private. There's a precident with the complex module, where the real and imaginary parts are exposed as .real and .imag. John Roth Thanks again for your work! Steve [1] http://www.python.org/peps/pep-0257.html [2] http

Re: Are tuple really immutable?

2004-12-26 Thread John Roth
the object in the tuple. John Roth Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Optional Static Typing

2004-12-23 Thread John Roth
that it was incredibly useful for other things that you can't get from reflection on type data. John Roth Bear hugs, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: Optional Static Typing

2004-12-23 Thread John Roth
Rocco Moretti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John Roth wrote: One of the comments on Artima asks a rather profound question: static typing is an answer. What's the question? (That's a paraphrase.) The answer that everyone seems to give is that it prevents errors

Re: Tabnanny really useful?

2004-12-21 Thread John Roth
complain. John Roth regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabnanny really useful?

2004-12-20 Thread John Roth
reasonably, although you may have to set parameters. John Roth best regards, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list

Re: Easy here documents ??

2004-12-19 Thread John Roth
to be programmed. John Roth Thanks, Jim, Python no0b -- http://mail.python.org/mailman/listinfo/python-list

Re: Maven like tool?

2004-12-18 Thread John Roth
the potential to avoid having to learn several different languages in order to do builds, as well as the possibility to scale well. Martin Fowler has this to say on the subject: http://martinfowler.com/bliki/BuildLanguage.html Besides, it's in pure Python. John Roth -- http://mail.python.org/mailman

Re: Why are tuples immutable?

2004-12-17 Thread John Roth
is a different question. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: lies about OOP

2004-12-13 Thread John Roth
Try comp.object. John Roth projecktzero [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I know this might not be the correct group to post this, but I thought I'd start here. A co-worker considers himself old school in that he hasn't seen the light of OOP.(It might be because he's

Re: usage of __import__ across two files

2004-12-12 Thread John Roth
.PrintHello() Shouldn't this be tb.PrintHello() ? [snip] Any help will be much appreciated! Bones John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] PEP: __source__ proposal

2004-12-04 Thread John Roth
, the ones I do know indicate that they liked that environment very much. However, this might have real problems with the dangling references issue. Or maybe not: there may be ways of redesigning the function object so that you can replace the embedded code object on the fly. John Roth -- Nick Coghlan

Re: weird behaviour of 0 in [] is False

2004-11-30 Thread John Roth
'in' and 'is' as equality operators, and defines exactly what a chain of equality operators means. In this case, it means: (0 in l) and (l is False) The and short circuits, giving the result of False without ever doing the final comparison. Granted, that's not exactly obvious... John Roth -- http

<    1   2   3