Re: Recommended "new" way for config files

2010-02-25 Thread Nicola Larosa (tekNico)
nd yours truly. It uses 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 sostan

Re: Question on Python as career

2009-12-11 Thread Nicola Larosa (tekNico)
second Michele's comment: invest some of your 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

Re: Code formatting question: conditional expression

2009-08-25 Thread Nicola Larosa (tekNico)
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. I

Re: Code formatting question: conditional expression

2009-08-25 Thread Nicola Larosa (tekNico)
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://w

Re: PYTHON WORKING WITH PERL ??

2008-11-01 Thread Nicola Larosa (tekNico)
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://w

Last Call for Papers for PyCon Italia Due

2008-03-27 Thread Nicola Larosa
y provide Italian-to-English realtime 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

Re: Is a "real" C-Python possible?

2007-12-12 Thread Nicola Larosa (tekNico)
0 (one million) in about 190 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 s

Is Ruby 1.9 going to be faster than CPython?

2007-11-28 Thread Nicola Larosa (tekNico)
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

[PyCon Uno Italy] Call For Papers

2007-04-26 Thread Nicola Larosa
) * Enrico 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) * Manl

Re: Death to tuples!

2005-11-29 Thread Nicola Larosa
ethods > of list to tuple, which appears 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.

Re: Why are there no ordered dictionaries?

2005-11-20 Thread Nicola Larosa
e-dates subclassable native types, but quite > 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 an

Re: best way to discover this process's current memory usage, cross-platform?

2005-11-16 Thread Nicola Larosa
t;, this article may be useful: On measuring memory usage http://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

Re: Default method arguments

2005-11-15 Thread Nicola Larosa
> 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

Re: Default method arguments

2005-11-15 Thread 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, e

Re: Default method arguments

2005-11-15 Thread Nicola Larosa
if x is None: print self.data else: print x -- 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 addres

Re: Newbie Alert: Help me store constants pythonically

2005-11-07 Thread Nicola Larosa
so I'll > look around for better ideas. You may want to look into ConfigObj: http://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 applica

Re: PyJuggler 1.0 Beta 1 available

2004-12-28 Thread Nicola Larosa
aces. An application written with VR Juggler 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] Us