Re: Comma is not always OK in the argument list?!

2006-07-29 Thread Roman Susi
Nick Vatamaniuc wrote: >True, that is why it behaves the way it does, but which way is the >correct way? i.e. does the code need updating or the documentation? > > > Perhaps, someone can make a bug report... IMHO, docs are wrong. -Roman >-Nick V. > >[EMAIL PROTECTED] wrote: > > >>Nick Vatama

Comma is not always OK in the argument list?!

2006-07-28 Thread Roman Susi
Hi! it is interesting that I found this syntax error: >>> a = {} >>> str('sdfd', **a,) File "", line 1 str('sdfd', **a,) ^ SyntaxError: invalid syntax I just wonder is it intentional or by-product (bug or feature)? (The behaviour makes sense, of course... I tend to leav

Re: Need a compelling argument to use Django instead of Rails

2006-07-27 Thread Roman Susi
Ben Sizer wrote: > Ray wrote: > >>Just that it's a big, huge, humongous pity to see Python keeps missing >>the big thing over and over again. Last time when biotechnology was >>hot, which language became The Language? Perl. Now simple web app is >>hot? It's Ruby. > > > The problem is that Python

Re: Standalone Python functions in UML?

2006-04-05 Thread Roman Susi
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Roman Susi > wrote: > > >>Out of curiosity, how do I draw functions outside classes with UML? How >>module could be drawn in this case? > > > I just create a (UML) class for modules. A

Re: Standalone Python functions in UML?

2006-04-04 Thread Roman Susi
Ravi Teja wrote: >>>Out of curiosity, how do I draw functions outside classes with UML? How > > module could be drawn in this case? > > As a utility class. So, function could be a utility class method. If there are no better ways. >>>More theoretical question is if I create classes on the fly,

Standalone Python functions in UML?

2006-04-04 Thread Roman Susi
Hi! Out of curiosity, how do I draw functions outside classes with UML? How module could be drawn in this case? More theoretical question is if I create classes on the fly, how UML can reflect that? (I know that Python code itself is best at communication design ideas, but there are some peop

Re: How to except the unexpected?

2006-03-04 Thread Roman Susi
Rene Pijlman wrote: > Paul Rubin : > >>We have to get Knuth using Python. > > > Perhaps a MIX emulator and running TeXDoctest on his books will convince > him.. Or maybe Python written for MIX... -Roman -- http://mail.python.org/mailman/listinfo/python-list

Re: python coding contest

2005-12-28 Thread Roman Susi
with 2.4 and get out extra characters thanks for generator expression and .join() integration. So now I am at 147. Probably a lot of reserve as I have 3 fors... One for just for the purpose of getting a name: ...x for x in [scalar] Probably its time rething solution from scratch... Roman Susi -- http://mail.python.org/mailman/listinfo/python-list