|
I don't really see the point but if I'm understanding this correctly, then this is nicercode:
|
# ¿ Jan 9, 2008 17:18 |
|
|
# ¿ May 5, 2024 11:35 |
|
deimos posted:Yeah but what happens if you call foo(clowns=20)? He didnt want to be able to do that? quote:but I'm wondering if there's a way to do it without having to place the `clowns` argument in the function definition for `bar`. Buffis fucked around with this message at 17:23 on Jan 9, 2008 |
# ¿ Jan 9, 2008 17:20 |
|
Ferg posted:I read this book cover-to-cover electronically, and then purchased a copy. Definitely a fantastic resource to learn the language. Seconded. It is a really great book if you have some prior development knowledge in any other language.
|
# ¿ Jun 28, 2009 08:29 |
|
Is it weird to write a program only targeting Python 3 nowadays? I know that the migration from 2 to 3 was in a weird limbo for years, but I don't really know what the state of things is nowadays. Want to target mainly linux and OSX, but potentially also Windows (less important). All deps are available through pip in both Python 2 and 3. There's some things in 3 that I'd like to depend on without having to implement backwards compatibility if possible though. The app is terminal based if that matters.
|
# ¿ Mar 14, 2015 10:41 |
|
Dominoes posted:Is there a reason why python doesn't implement numpy/matlab-style indexing with multiple keys or indices? Tuples are (usually) allowed to omit the parenthesis, as in: >>> a={} >>> a[1, "hey"]=2 >>> a {(1, 'hey'): 2} >>> a[1, "hey"] 2 So the syntax mentioned above implies that a tuple is being looked up in a dict.
|
# ¿ Mar 26, 2015 14:32 |
|
|
# ¿ May 5, 2024 11:35 |
|
Comedy answer:code:
|
# ¿ Mar 26, 2015 14:43 |