Re: Recommended new way for config files

2010-02-25 Thread Nicola Larosa (tekNico)
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

Re: Question on Python as career

2009-12-11 Thread Nicola Larosa (tekNico)
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

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://www.tekNico.net/ Nobody

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. If the first line is too long, I

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://www.tekNico.net/ Look

Last Call for Papers for PyCon Italia Due

2008-03-27 Thread Nicola Larosa
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)
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

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
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

Re: Death to tuples!

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

Re: Why are there no ordered dictionaries?

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

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

2005-11-16 Thread Nicola Larosa
://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

Re: Default method arguments

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

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, even the best

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 False. -- Nicola Larosa - [EMAIL

Re: Newbie Alert: Help me store constants pythonically

2005-11-07 Thread Nicola Larosa
://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

Re: PyJuggler 1.0 Beta 1 available

2004-12-28 Thread Nicola Larosa
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