#python - Wed 28 Feb 2007 between 00:00 and 00:18

NY Lost Funds



roygbivarkanes/deltab yep you're right. i'm stuck with using ancient python 1.5.2 and both str() and repr() stick an L on the end
tsproygbiv: why are you using 1.5.2? omg
arkanesroygbiv: string interpolation should work then
roygbivtsp: long long story, and a battle i fought and lost :-\
arkanesroygbiv: but with 1.5.2, who knows :\
roygbivarkanes string interpolation would work, but in 1.5.2 apparently there is no way to interoplate a long
if i do something like print "%i" % longValue, then it throws an exception
arkanesroygbiv: 1.5.2 doesn't even have slices, does it?
roygbivarkanes no that does work.
i've had to define an itoa() function
it checks for a trailing L and removes it if it exists
arkanesroygbiv: did you use str() and strip the L off, or did you re-implement it from scratch?
there you go
if interpolation, repr, and str are all broken I think thats about all you can do
roygbivwhat a pita :\
they are going to regret hanging around on 1.5.2 all this time because 64-bit int problems are starting to pop up all over their codebase
CJLucasdoes anyone know if its possible to call a function thats in another python script?
roygbivgoogle apps is too cool. i get free domain hosting, free email hosting, free web hosting. i'm loving this :-D
jmalicki_cjlucas: thats what import does.
CJLucasjmalicki_: so i can do "import file2.py"
?
jmalicki_no
import file2
to import file2.py
then call file2.whateverfunc
CJLucasah
jmalicki_thats all import does.
CJLucasbut i want to be able to run the function from file2
jmalicki_yes
CJLucasreally?
jmalicki_import just lets you call functions in other python scripts, thats all it is
CJLucasah
very cool
jmalicki_like, when you import sys
it lets you call functions in /usr/lib/python2.4/sys.py
for example
CJLucasohhh
jmalicki_err sys is a bad example :)
but when you import os :)
CJLucasso how would i import a file in a certain directory?

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

IrcArchive

NY Lost Funds