#python - Sat 12 May 2007 between 15:08 and 15:23



nburlettexarkun: cool, thanks
RagzoukenHow is it intended to be used then?
habnabitRagzouken, try looking at examples?
exarkunRagzouken: I'm not sure what Peaker just said actually makes sense as a stand-alone statement.
Ragzouken: Take a look. Maybe it will be obvious what you need to do. If not, then at least you'll have some more specific questions to ask.
RagzoukenOk.
peakerexarkun: reactor.run() will not work if he wrote his own mainloop.. ?
habnabitPeaker, well, if he had a mainloop that dealt with sockets, he'd have to rewrite it all anyway.
exarkunPeaker: Most random assemblies of software won't work. Take about hypothetical concoctions doesn't strike me as productive.
s/Take/Talking/
peakerIts not hypothetical, because if he didn't write a mainloop yet, he can use his code with twisted with less work
(or less redoing of things)
exarkunPeaker: You have no idea what his code looks like.
Peaker: At the very least, you should ask.
Peaker: Otherwise you're basing your suggestions on unfounded assumptions.
Peaker: And that's generally not helpful.
peakerThat's why I said "if"
RagzoukenWhat would you expect me to have if I wasn't using my own main loop?
peakerRagzouken: blocking use of a single socket?
Ragzoukenhm
furstsUmm.. how do I format the current date/time like this: 2007-05-12 17:08:13
tjansson-2I am trying to make this generic "Create a checkbox" function, but I am little clueless on how to call an item from a dict, so far this is what I got
http://deadbeefbabe.org/paste/4733
habnabitfursts, time.strftime?
noam_what's self.self? what's self, anyway? are you sure you need to take a self parameter? is this function a method in a class?
ivazqueztjansson-2: Very wrong unfortunately.
habnabitThere's also datetime.strftime if you're using date/time objects.
ivazqueztjansson-2: Keep the names in a list.
tjansson-2: The dict should be initially empty.
tjansson-2: Then add items as needed.
tjansson-2: Then refer to them in the dict using the name.
tjansson-2: self.checkbutton['LNCOL'].....
tjansson-2ivazquez: hmm - okay - i guess missunderstood quite a bit
furstshabnabit: strftime("%Y-%m-%d %H:%m:%S", gmtime()) - correct?
habnabitfursts, well, if you're just doing the current time, the gmtime() is redundant.
tjansson-2ivazquez: sound easy now - but if want to join the name extracted from the dict with some other string - how should that be done?
ivazquezWell, won't you know the name already?
Aren't you using the name as the key in the first place?
tjansson-2ivazquez: i am not sure if do ... :D Maybe this function is a little over head. I guess I was looking for a way to join strings as "." does in PHP
Zaotjansson-2: 'foo' + 'bar'

Page: 2 9 16 23 30 37 44 51 58 65 72 

IrcArchive