=== pavlushka is now known as Guest78383 | ||
=== Guest78383 is now known as pavlushka | ||
thatgraemeguy | morning all, any python nerds awake? | 07:00 |
---|---|---|
=== urbanslug is now known as zipper | ||
kulelu88 | thatgraemeguy: whats up | 07:25 |
thatgraemeguy | just want to hear what folks use for parsing command-line options usually | 07:29 |
kulelu88 | bash commands? thatgraemeguy | 07:31 |
kulelu88 | this should be it: http://docs.python.org/library/subprocess.html | 07:32 |
thatgraemeguy | no, I mean if I want to pass options to a script that I'm writing | 07:58 |
thatgraemeguy | like for a bash script I'd use the getopts builtin | 07:58 |
thatgraemeguy | not to worry | 07:58 |
superfly | thatgraemeguy: argparse | 08:07 |
superfly | thatgraemeguy: https://docs.python.org/2/howto/argparse.html | 08:08 |
thatgraemeguy | thanks fly :) | 08:08 |
thatgraemeguy | how is all the arrangements going your side? | 08:09 |
superfly | thatgraemeguy: getting there. sent off my application for police clearance yesterday | 08:11 |
superfly | waiting for the consulate to tell me I can apply for my visa | 08:11 |
thatgraemeguy | eish, so much red tape :-o | 08:12 |
thatgraemeguy | is the Mrs still a US citizen? | 08:12 |
superfly | thatgraemeguy: yep, and so are the kids. | 08:32 |
superfly | thatgraemeguy: to be honest, there's more red tape to settle in SA if you're married to a citizen, than in the US if you're married to a citizen | 08:32 |
superfly | thatgraemeguy: I haven't even been living in the US yet and I am already elligible for permanent residence. in ZA you have to live here for at least 5 years on another sort of permit before you're allowed to apply for permanent residence | 08:33 |
thatgraemeguy | nice | 08:37 |
thatgraemeguy | thanks superfly, argparse is amazing | 09:53 |
superfly | thatgraemeguy: you're welcome :-) | 09:53 |
thatgraemeguy | (compared with getopt in bash) :-o | 09:53 |
superfly | there are times when I wish it were a little better, but for the most part it's a charm | 09:53 |
thatgraemeguy | don't need to write a whole lot of code to handle missing args and printing help, so cool | 09:53 |
superfly | yup, it takes a lot of the boilerplate out | 09:55 |
jerit | guys I did a sudo rm -rf / and now nothing works anymore | 10:23 |
superfly | jerit: that's impossible, you have to use an extra flag to get that right | 10:26 |
jerit | :P | 10:26 |
superfly | sorry to rain on your party :-P | 10:27 |
jerit | eh I just thought it was funny | 10:28 |
nlsthzn | alo?! | 17:02 |
nlsthzn | it's a me... | 17:09 |
nlsthzn | (╯°□°)╯︵ ┻━┻ | 17:11 |
nlsthzn | (╯︵╰,) | 17:11 |
paddatrapper | Hey nlsthzn | 17:18 |
paddatrapper | Lol | 17:18 |
nlsthzn | (òÓ,)_\,,/ | 17:19 |
nlsthzn | : | 17:19 |
nlsthzn | :p | 17:19 |
paddatrapper | How you doing? | 17:20 |
paddatrapper | Bored clearly :p | 17:20 |
nlsthzn | fine thanks paddatrapper , how about you? | 17:27 |
nlsthzn | and yes... I do seem to have more time on my hands than I know what to do with | 17:27 |
nlsthzn | I see many (-(-_(-_-)_-)-) ... | 18:01 |
paddatrapper | nlsthzn: this week has been insane... But I'm good thanks | 18:03 |
nlsthzn | good to hear, hope it quiets down now for the downhill run to weekend | 18:04 |
kulelu88 | any Pythonistas lurking here? | 18:06 |
nlsthzn | print "Hello World" | 18:07 |
nlsthzn | can't help with more than that, sorry | 18:08 |
nlsthzn | cheers all, have fun ^_^ | 18:09 |
paddatrapper | kulelu88: I know some | 18:15 |
kulelu88 | paddatrapper: you familiar with REST APIs and asyncio? | 18:16 |
paddatrapper | kulelu88: no... Sorry | 18:16 |
kulelu88 | ok :) | 18:16 |
kulelu88 | superfly: does it make sense to use a synchronous framework as a wrapper(for a REST API) on top of an async library? | 21:05 |
superfly | kulelu88: I honestly don't know. and I can't help right now, my sleeping tablet has just kicked in | 21:06 |
kulelu88 | sure thing. rest easy superfly | 21:07 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!