#python - Mon 30 Apr 2007 between 00:00 and 00:24

NY Lost Funds



Jerubyou need to send the entire directory
those other files weren't junk. they were required.
nu-the entire dist directory? its 16MB
Jerubyeah, that.
nu-wow
Jerubit does package a large portion of the python interpreter there.
nu-i figured
so no matter how small the prog, it'll always be ~15mb on windows if it doesnt have python installed?
Jerubit depends.
I think it can be a little smaller, quite possibly larger.
if you're not packaging any new dependancies, and you don't modify the 'first' module, i.e. it's just import mmypackage; mypackage.main() or something,
then you only have to distribute the Library.zip file to upgrade.
nu-oh
i packed wx
JerubThat would be why it was so big.
nu-i see
thanks
Jerubno worries.
Leedsinterview time...
drjnutJerub, hum now my program does a segfault at the very beginning...
ironfroggyOK. I dont know if i got any reaction when i asked before, because my laptop fell asleep.
Two functions. Is one defined in the other. How to find out?
Master_Medichello
can you do c style for loops in python?
for (i = 0; i < x; i++) ?
VerteMaster_Medic, for i in range(0,x) or something like that
Master_Medicwhat if i want to do something like: for (i = 0; i < x; i+=800)
TFKyleMaster_Medic: range(0, x, 800)
or something like that
Vertetake a look at range in the library reference.
Master_Medicokay
Vertefailing all else, you could do the equivalent while loop.
CSWookieMaster_Medic: If you are just wanting to iterate over something, for x in thing is better.
Master_Medicalright i found it
qebabHow comes no one mentions xrange(n)? Is it a better idea to use range(n)?
Master_Medicrange(start, stop, step); ftw
CSWookieqebab: I believe xrange is planned to go away, eventually.
Master_Medic: What do you need it for?
Master_MedicCSWookie, just keeping track of time
CSWookieMaster_Medic: Keeping track of time?

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

IrcArchive

NY Lost Funds