#python - Sun 20 May 2007 between 00:00 and 00:33

NY Lost Funds



dancoror otherwise wrap a module to achieve that
or do i have to modify the module itself
to all be in a class or something
Vornicusdancor: if two modules import a single module, that module might get loaded once for each time it gets imported, but I don't know, and I'm not sure how I'd test it.
dancorperhaps this kind of thing is the reason java is so class-ist
i just want to use ply.lex in a threaded app
ivazquezIf a module is already in the module list then the existing ref is returned.
dancorbut the module itself maintains state
MugginsMyeah non threadsafe modules are a pain
seem quite common in python too, which is weird
dancorMugginsM: i think i have to modify the module right? i don't see any other way
MugginsMbecause it's perfectly capable of doing it right
plasmabif anyone involved with python wants to contact me about that project, to advertise python with it let me know... we're going to be doing more projects like that all over the world
yay
fixed the problem
my stupidity
my file offset was accidentally being cast to a float during a calculation
ivazquezWhoops.
plasmabyeah whoops
it wasnt a critical part of the system
it was the script that parses the history log for the light colours at a particular time
cowbudwhat is the general rule of thumb when using dictionaries? if I am nesting three should I be looking for a different approach?
ivazquezNot necessarily.
JafetDepends on what your current approach is.
Right now your problem is unpossimateable to us.
ivazquezWha?
JafetUnpossible to guesstimate!
plasmabcowbud, depends on what you're storing...
cowbudwell I am basically making dictionaries that translate to something like this job->host->status where each is a dictionary..
MugginsMsounds ok to me
plasmabyou may want to use classes if you want to optimise your structure later
but dictionaries make great lazy iteraror classes
iterator
cowbudgreat lazy iterator classes?
plasmabyou know what an iterator pattern is?
EnsignRedshirtA fancy-pants name for a loop?
plasmabEnsignRedshirt, erm no.
EnsignRedshirt(I hope the implied ":)" was obvious.)
plasmablook isnt implemented in an iterator pattern:P
^loop

Page: 2 9 16 23 30 37 

IrcArchive

NY Lost Funds