an extension of the ini-
style config format. Sorry for the multiple brackets, my fault. :-)
--
Nicola Larosa - http://www.tekNico.net/
Ci sono paesi in cui un gesto violento se compiuto da un uomo su una
don-
na è punito più severamente: si chiama uguaglianza sostanziale,
compensa
la
time in free/open work, and you'll be much rewarded.
--
Nicola Larosa - http://www.tekNico.net/
Do you know how to proof-read your writing before hitting send? If
not,
please learn. A spell checker may help. If you do know how, if you
care
so little for what you write that you can't be bothered, why
John Posner wrote:
Is there any consensus on how to format a conditional expression
that is too long for one line?
Here's my take:
excessblk = Block(total - P.BASE, srccol,
carry_button_suppress=True
) if total P.BASE else None
--
Nicola Larosa - http://www.tekNico.net/
Nobody
Nicola Larosa wrote:
Here's my take:
excessblk = Block(total - P.BASE, srccol,
carry_button_suppress=True
) if total P.BASE else None
Oops, it got shortened out: line longer than 72 chars, acceptable in
code, but not in email. I'll try again.
If the first line is too long, I
Pat [EMAIL PROTECTED] wrote:
After you learn Python, you'll come to despise Perl.
Some of us came to despise Perl *before* learning Python (third to
last paragraph):
A journey through languages
http://www.teknico.net/devel/journey/index.en.html
--
Nicola Larosa - http://www.tekNico.net/
Look
translation for our
guests, and also English-to-Italian realtime translation for that part of
the audience which is not much familiar with English.
[1]: http://www.pycon.it/pycon2/login
--
Nicola Larosa - http://www.tekNico.net/
--
http://mail.python.org/mailman/listinfo/python-list
seconds. :-)
This is 6 orders of magnitude faster than Congiano's benchmark. That
is a speed up by a factor of a million.
That's really besides the point. Nice OT, anyway. ;-)
--
Nicola Larosa - http://www.tekNico.net/
AtomPub sits in a very strange place, as it has the potential to
disrupt half
Holy Shmoly, Ruby 1.9 smokes Python away!
http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/
The post is less flaming than the title, fortunately. :-)
--
Nicola Larosa - http://www.tekNico.net/
If you have multiple CPUs and you want to use them all, fork off as
many
Franchi (Sviluppatore Indipendente)
* Alan Franzoni (Sviluppatore Indipendente)
* Nicola Larosa (Space SPA)
* Alex Martelli (Google Inc.)
* Stefano Masini (Pragma2000)
* Carlo Miron (Visiant Galyleo)
* David Mugnai (Space SPA)
* Lawrence Oluyede (Sviluppatore Indipendente)
* Manlio Perillo
to mean index and count.
Yeah, I like this! frozenlist is nice, and we get a real immutable
sequence for a change.
--
Nicola Larosa - [EMAIL PROTECTED]
She was up the learning curve like a mountain goat.
-- WasterDave on Slashdot, October 2005
--
http://mail.python.org/mailman/listinfo/python-list
serviceable.
Here's a more recent and tested one, by yours truly (and Michael Foord):
An Ordered Dictionary
http://www.voidspace.org.uk/python/odict.html
--
Nicola Larosa - [EMAIL PROTECTED]
How wonderful the world would be if his behaviour and attitude was the
default among rich people - using his
://www.kdedevelopers.org/node/1445
--
Nicola Larosa - [EMAIL PROTECTED]
...Linux security has been better than many rivals. However, even
the best systems today are totally inadequate. Saying Linux is
more secure than Windows isn't really addressing the bigger issue
- neither is good enough
' as a result.)
# use new-style classes, if there's no cogent reason to do otherwise
class A(object):
def __init__(self, n):
self.data = n
def f(self, x = None)
# do NOT use if not x !
if x is None:
print self.data
else:
print x
--
Nicola Larosa
def f(self, x=None):
if not x:
Ha! You fell for it! ;-D
(Hint: what about x being passed with a value of zero? :-) )
x = self.data
print x
--
Nicola Larosa - [EMAIL PROTECTED]
...Linux security has been better than many rivals. However, even
the best
Using None might be problematic if None could be a valid argument.
That's like saying that NULL could be a significant value in SQL. In
Python, None *is* the empty, not significant value, and should always be
used as such. Specifically, never exchange None for False.
--
Nicola Larosa - [EMAIL
://www.voidspace.org.uk/python/configobj.html#config-files
--
Nicola Larosa - [EMAIL PROTECTED]
No inventions have really significantly eased the cognitive difficulty
of writing scalable concurrent applications and it is unlikely that any
will in the near term. [...] Most of all, threads do not help
is essentially independent of device, computer platform, and VR
system. VR Juggler may be run with any combination of immersive
technologies and computational hardware.
Ah, I see now. Thanks again. ;-)
--
Nicola Larosa - [EMAIL PROTECTED]
Using Unix is the computing equivalent of listening only to music
17 matches
Mail list logo