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
) 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
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
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
(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
with it.
John Roth
--
---
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
---
--
http
be both or neither.
John Roth
John Roth
--
http://mail.python.org/mailman/listinfo/python-list
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
the object in
the tuple.
John Roth
Chris
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
reasonably, although you may have
to set parameters.
John Roth
best regards,
--
Franz Steinhaeusler
--
http://mail.python.org/mailman/listinfo/python-list
to be programmed.
John Roth
Thanks,
Jim, Python no0b
--
http://mail.python.org/mailman/listinfo/python-list
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
is a different question.
John Roth
--
http://mail.python.org/mailman/listinfo/python-list
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
.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
,
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
'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
201 - 220 of 220 matches
Mail list logo