[Tutor] now = ctime()[11:20]
Luke Paireepinart
rabidpoobear at gmail.com
Sat Jul 17 09:10:08 CEST 2010
Sorry the iPhone email client is terrible. It sent the previous email before I was done writing it. Anyway, the timeit module is available whenever you want to profile something and determine how long it takes to run.
Sent from my iPhone
On Jul 17, 2010, at 1:32 AM, "Richard D. Moores" <rdmoores at gmail.com> wrote:
> Please see <http://tutoree7.pastebin.com/azLrNL0n>
>
> Foolishly, without thinking it through, I expected the 2 prints to
> show different times. I understood right away why they were identical,
> but then I began to wonder how to create an "alias" for
> "ctime()[11:20]" so I wouldn't have to keep typing or pasting it.
> "now" would be fine. But how to get it to execute ctime()?
>
> Thanks,
>
> Dick Moores
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list