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
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
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:
>>
> 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
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
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"] ], ', ')
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] [