Re: why not datetime.strptime() ?

2005-01-13 Thread josh
On Thu, Jan 13, 2005 at 08:06:56AM -0600, Skip Montanaro wrote: > > Skip> I just checked in your changes. Thanks for the effort. > > Jeez Skip... That reads poorly. How about "Thanks for your contribution"? > In any case, thanks. My pleasure. Thanks for helping me to help. And I liked the

Re: why not datetime.strptime() ?

2005-01-13 Thread Skip Montanaro
Skip> I just checked in your changes. Thanks for the effort. Jeez Skip... That reads poorly. How about "Thanks for your contribution"? In any case, thanks. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: why not datetime.strptime() ?

2005-01-13 Thread Skip Montanaro
Josh> The datetime is full of these calls. Would it make sense to make Josh> this a separate patch? (Or maybe the PyImport_ImportModule could Josh> implement such a cache :) ?) Hmmm... I wonder why that wasn't done before. Perhaps it just doesn't matter performance-wise. I just che

Re: why not datetime.strptime() ?

2005-01-11 Thread josh
On Tue, Jan 11, 2005 at 08:56:33AM -0600, Skip Montanaro wrote: > * The seventh item returned from time.strptime() is the day of the week. > You're passing it into the microsecond arg of the datetime constructor Thanks! > and ignoring the timezone info (ninth item returned from >

Re: why not datetime.strptime() ?

2005-01-11 Thread josh
David M. Cookie writes: > You don't check for errors: an exception being thrown by > PyObject_CallMethod will return obj == NULL. Oops, missed that one. Thanks. > If there's a module in sys.path called time that overrides the stdlib > time, things will fail, and you should be able to catch that.

Re: why not datetime.strptime() ?

2005-01-11 Thread Skip Montanaro
Josh> OK, it was pretty straightforward. Thanks for the direction. Glad to help. Josh> To whom should I send the patch (attached)? Patches should be posted to SourceForge using this form: http://sourceforge.net/tracker/?func=add&group_id=5470&atid=305470 Note that you will have to

Re: why not datetime.strptime() ?

2005-01-10 Thread David M. Cooke
Joshua Spoerri <[EMAIL PROTECTED]> writes: > Skip Montanaro pobox.com> writes: >> josh> Shouldn't datetime have strptime? >> If someone wants to get their feet wet with extension module >> programming >> this might be a good place to start. Mostly, I think nobody who has >> needed/wanted it so f

Re: why not datetime.strptime() ?

2005-01-10 Thread Joshua Spoerri
Skip Montanaro pobox.com> writes: > josh> Shouldn't datetime have strptime? > If someone wants to get their feet wet with extension module > programming > this might be a good place to start. Mostly, I think nobody who has > needed/wanted it so far has the round tuits available to spend on the >

Re: why not datetime.strptime() ?

2005-01-08 Thread Lee Harr
On 2005-01-07, Skip Montanaro <[EMAIL PROTECTED]> wrote: > > josh> Shouldn't datetime have strptime? > > Sure, but it's not quite as trivial to implement as was strftime() support. > While strftime() is a C library function and thus easily called from within > the datetime C code, strptime() is

Re: why not datetime.strptime() ?

2005-01-07 Thread Skip Montanaro
josh> Shouldn't datetime have strptime? Sure, but it's not quite as trivial to implement as was strftime() support. While strftime() is a C library function and thus easily called from within the datetime C code, strptime() is implemented in Python as part of the time module for portability (

why not datetime.strptime() ?

2005-01-07 Thread josh
Shouldn't datetime have strptime? It already has strftime, and it'd be really nice to obviate datetime.fromtimestamp(time.mktime(time.strptime(...))) thanks in advance -- http://mail.python.org/mailman/listinfo/python-list