Re: [Tutor] installation of scipy

2009-03-30 Thread Trilok Khairnar
More specifically, in this case, numpy.stats should be used instead of scipy.stats You will not see the deprecation warning with numpy.stats On Mon, Mar 30, 2009 at 5:15 PM, Arun Tomar wrote: > hi! > Bala. > > On Mon, Mar 30, 2009 at 3:57 PM, Bala subramanian > wrote: > > Friends > > i install

Re: [Tutor] Timers in Python

2007-10-16 Thread Trilok Khairnar
Doug Hellmann's PyMotW (Python Module of the Week) series recently covered sched http://feeds.feedburner.com/~r/PyMOTW/~3/161303668/pymotw-sched.html He always provides an overview supported by examples. You think of a functionality in some context, and it tends to appear in the series. :-) Regar

Re: [Tutor] newbie question

2007-10-15 Thread Trilok Khairnar
parseably short, though not quite exactly pithy. :-) Regards, Trilok -Original Message- From: Luke Paireepinart [mailto:[EMAIL PROTECTED] Sent: Monday, October 15, 2007 10:03 PM To: Trilok Khairnar Cc: tutor@python.org Subject: Re: [Tutor] newbie question Trilok Khairnar wrote: >>

Re: [Tutor] newbie question

2007-10-15 Thread Trilok Khairnar
> With this, and if you want to use your formatted print statements instead of the join, you could use something like > print "Specials: %s %s %s" % tuple(menu_specials.values()) which turns the output of menu_specials.values() (a list) into a tuple. > Disadvantage is that you'll need to know the

Re: [Tutor] newbie question

2007-10-15 Thread Trilok Khairnar
27;, ') >> Given that a.keys() returns a "copy" of a's list of keys, will it be memory intensive for large lists and it's better to use an iterator? Thanks, Trilok. -Original Message- From: Trilok Khairnar [mailto:[EMAIL PROTECTED] Sent: Monday, Octobe

Re: [Tutor] newbie question

2007-10-15 Thread Trilok Khairnar
Either of the following should do it: print string.join([menu_specials[val] for val in menu_specials], ', ') or print string.join([menu_specials[val] for val in menu_specials.keys()], ', ') or print string.join([menu_specials[val] for val in ["breakfast", "lunch", "dinner"] ], ', ')

Re: [Tutor] iterate list items as lvalue

2007-08-20 Thread Trilok Khairnar
It also seems fair to do the following (if the modified list is to be used more than once - to avoid building the modified list more than once)? array = [item*2 for item in array] # instead of for item in array: item *= 2 Regards, Trilok -Original Message- From: [EMAIL PROTECTED] [