Re: html tags and python

2005-03-30 Thread Timo Virkkala
on to your problem (the solution would be to use JavaScript), but if I was a user, I'd rather type in the day number myself than have to choose from a 31-long dropdown. Why don't you just give the user a text field and then validate the input. Just my 2 cents.. -- Timo Virkkala -- http://

Re: Faster way to do this...

2005-03-03 Thread Timo Virkkala
of 2, 4, 8 etc. as well as other things. range(2, 100, 4) How about you fire up the interactive python and try help(range) ;) -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and version control

2005-02-09 Thread Timo Virkkala
at home. Or after 10 minutes of learning the commands, that is. And as someone already suggested, TortoiseSVN is a great front-end for SVN. It integrates with the Windows shell very nicely. http://subversion.tigris.org/ http://tortoisesvn.tigris.org/ -- Timo Virkkala -- http://mail.python.org/mai

Re: python code with indention

2005-02-08 Thread Timo Virkkala
Xah Lee wrote: is it possible to write python code without any indentation? 1) Why in the name of Xah Lee would you even want to? 2) If you need to ask questions this simple, are you sure you are the right person to write tutorials? 3) Do you even read the replies you get? -- Timo Virkkala

Re: Newbie alert

2005-02-02 Thread Timo Virkkala
is used. Check case. You'll find the problem :) -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] daily tip website

2005-01-28 Thread Timo Virkkala
Xah Lee wrote: Thanks to those who have made useful comments. They will be assimilated. The comments, or those who have made comments? "Corrections are futile. You will be assimilated." --Xah Lee -- Timo Virkkala -- http://mail.python.org/mailma

Re: [perl-python] 20050127 traverse a dir

2005-01-27 Thread Timo Virkkala
The Flow wrote: Do you want to be taken seriously? First, stop posting. Second, learn perl. Third, learn python. No. Second, learn Python. Third, learn Perl (optional). :) But we do agree on the first. -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-27 Thread Timo Virkkala
reversed(x) x.reverse() y = x.reversed() -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-27 Thread Timo Virkkala
Davor wrote: Timo Virkkala wrote: This guy has got to be a troll. No other way to understand. not really - it was not my intention at all - but it seems people get upset whenever this OO stuff is mentioned - and what I did not expect at all at this forum as I believed Python people should not be

Re: python without OO

2005-01-26 Thread Timo Virkkala
This guy has got to be a troll. No other way to understand. -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list

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

2005-01-06 Thread Timo Virkkala
anything to do with the tuple. They are just used for disambiguation. It's the commas that define the tuple. -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list

Re: Other notes

2005-01-06 Thread Timo Virkkala
[EMAIL PROTECTED] wrote: Andrew Dalke: (BTW, it needs to be 1 .. 12 not 1..12 because 1. will be interpreted as the floating point value "1.0".)< Uhm, I have to fix my ignorance about parsers. Cannot a second "." after the first tell that the first "." isn't in the middle of a floating point number

Re: Should I always call PyErr_Clear() when an exception occurs?

2004-12-21 Thread Timo Virkkala
rograms in Python would have been a LOT nicer. Less challenging, sure, but definitely more fun. -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list

Re: lies about OOP

2004-12-14 Thread Timo Virkkala
P makes data encapsulation so much easier. Writing correct code with minimum effort should be the first goal, speed issues (at that level) should be brought into the game later on. You should ask your co-worker if he also puts all his data in global variables :) *wink* -- Timo Virkkala -- http

Re: Python vs. Perl

2004-12-13 Thread Timo Virkkala
;s unfair! That approach leads to Python every time! Oh wait, that was the purpose.. :) -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list

Re: creating generators from function

2004-12-08 Thread Timo Virkkala
Simon Wittber wrote: I guess this changes my question to: Can I convert a function containing an infinite loop, into a generator which will yield on each iteration? Why don't you just use threads? It would probably be easier in the long run... -- Timo Virkkala -- http://mail.python.org/ma

Re: How is Python designed?

2004-12-02 Thread Timo Virkkala
ou'll probably find your answer at http://www.python.org Take a look at the Docs -> Language Reference and PEP sections. -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list

Re: Closing files

2004-11-29 Thread Timo Virkkala
do it? -- Timo Virkkala -- http://mail.python.org/mailman/listinfo/python-list