Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102756 > unrolled thread

Re: There has to be a better way to split this string!

Started byCameron Simpson <cs@zip.com.au>
First post2016-02-10 17:50 +1100
Last post2016-02-10 17:50 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: There has to be a better way to split this string! Cameron Simpson <cs@zip.com.au> - 2016-02-10 17:50 +1100

#102756 — Re: There has to be a better way to split this string!

FromCameron Simpson <cs@zip.com.au>
Date2016-02-10 17:50 +1100
SubjectRe: There has to be a better way to split this string!
Message-ID<mailman.0.1455087479.22075.python-list@python.org>
On 10Feb2016 07:34, srinivas devaki <mr.eightnoteight@gmail.com> wrote:
>On Feb 10, 2016 7:23 AM, "srinivas devaki" <mr.eightnoteight@gmail.com>
>wrote:
>> On Feb 10, 2016 6:56 AM, "Anthony Papillion" <anthony@cajuntechie.org>
>wrote:
>> > I am using datetime.now() to create a unique version of a filename.
>> > When the final file is named, it will look something like:
>> > myfile-2015-02-09-19-08-45-4223
>>
>> You can easily do this(retrieving the tokens) using re module.
[... complicated suggestion for the inverse problem ...]
>
>I'm a stupid.
>as soon as I saw strftime it looked like strptime and I assumed he is
>trying to extract the tokens and wrote that stupid/unrelated mail.
>
>PS: trying to read mailing list when you are half woke, is a bad idea and
>trying reply to it is even bad idea.

Regrettably, when one is half awake one is unable to realise what a bad idea it 
may be:-)

Cheers,
Cameron Simpson <cs@zip.com.au>

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web