#python - Sun 25 Mar 2007 between 17:21 and 17:28



AsSlowAsHellok
Greatredpreferably the entire containing block around the finally: clause
AsSlowAsHellyep
http://deadbeefbabe.org/paste/4109
Ind[y]cya Greatred
GreatredAsSlowAsHell: ah yes, i think i see it
ZeriouSHello :)
Greatredearlier than a certain version of python (2.5? 3??) having both except and finally on the same try block doesn't work
AsSlowAsHellGreatred, oh really? what is it. I wonder why it works in python 2.5 and not in python 2.4
Greatredah yes
to fix:
AsSlowAsHellah
Greatredput the try and except inside a try block
AF-SlashIs there a way to have a non turnicated result from devision?
AsSlowAsHellahh ok ill do that
Greatredand have the finally block attached to the outer try
AsSlowAsHellto keep backwards compatabilty
Greatredyep, should do it
AsSlowAsHellthankfully i only have 3 of those blocks in my code so far
haha
toxikWhen I use implied line continuation with parenthesis, should the extended lines be indented one more level or not?
ben_goodgerAF-Slash: if the result is a recurring number, no
Greatredit's a trivial change, so :)
AsSlowAsHellyeah
thanks :D
ben_goodgerAF-Slash: but I believe python stores a very large number of places internally
and then truncates to about ten places on display
AF-Slashben_goodger, even on non recurring numbers it turnicates to intigers or floating to the largest leading 0
ben_goodgerAF-Slash: integer division returns integers in python
AF-Slashand what is the diffrenece between / and //
ben_goodgerI don't know
but if you want a float, you must put floats in
Greatredusing // is *forced* integer division
ben_goodgere.g. 14/10=1; 14.0/10=1.4
Greatredin future 14/10 won't give you an int
but 14//10 will
ben_goodgerGreatred: I'm aware of this
Greatred:)
AF-SlashGreatred, isnt that planed for 3.x?
ben_goodgerhowever, since we are not using G5 processors, the future is not now

Page: 1 8 15 22 29 36 43 50 57 64 

IrcArchive