#python - Thu 12 Apr 2007 between 06:28 and 07:06

NY Lost Funds



polpakand it'll work perfectly in C, C++, python, on windows, linux, mac, etc.
squirrelpimpKayVoo: but i have a datetime-object for which i want to obtain the seconds since epoch
starGaming-polpak, I'm using getopt but all those commands need to be valid in a cmd.Cmd-session, too. I wrote a weak parser for that.
polpakstarGaming-: you don't need it
starGaming-but cmd.Cmd just supplies args, no matter if you use " or not.
polpakstarGaming-: are you talking about subprocess.Cmd ?
starGaming-No about cmd.Cmd.
the commandline-framework
squirrelpimpgot it
polpakstarGaming-: oh, use shlex
starGaming-: if you find yourself needing to parse a command like line yourself
(though not the actual command line, since that's done for you by cmd.exe as we already demonstrated)
aFlaglol on windows ./foo x x x, "x x x" is passed as a single argument?
that's screwed up
peakerI don't think so
they are passed as separate args
TFKyleuh, no they aren't
(passed as a single arg that is)
aFlagI thought that polpak said that, my bad
peakerGive Microsoft credit. They are only semi-retarded
TouqenIt's only certain division.
Microsoft is like a person with nerve disorders.
Only some parts don't quite function right.
Lazy eye here, twitchy finger there.
TFKylesounds about right
vorsprungmicrosoft works great. You are trying to confuse it by not using the official microsoft tools
TFKyleeh, python works fine on windows
peakervorsprung: There are many examples of pure-microsoft-tools failing in retarded ways
TFKyleindeed
akoculuhow can i use "type()" function in an if statement? I'm trying this: if type(a)=="<type 'int'>" but its not working
Habbieakoculu, type(a) == int
TFKyleakoculu: don't use type() for comparing, isinstance is saner
Habbiebut moreso, what TFKyle says
akoculuthanks..
chasbruckbehold my latest masterpiece: http://deadbeefbabe.org/paste/4346
the script kiddies are gonna have a field day with this thing :(
you can learn to program just like me
watch for my book on amazon.com
TFKylechasbruck: shouldn't that be if/elif, or maybe a dict with funcs? :)
chasbruckI have no idea what you just said

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

IrcArchive

NY Lost Funds