#python - Thu 3 May 2007 between 19:28 and 19:41



jsoftwDoes my except Thing: have to have brackets around Thing ?
kbrooksjsoftw, no.
jsoftwCool then
ferguscanfrostschutz, becomes pretty unintuitive that way.
kbrooksand somehow, do gets the condition from it's line number when it was called and evaluates it, and then yields repeatedly
awful hack
but works
note: contextlib.contextmanager
tvynrbabbitt: Example of a do-while loop producing what I consider to be nicer code (as well as a tangent about the construct I think would produce the nicest code): http://deadbeefbabe.org/paste/4598
kbrooksactually, the function does not have to do that
there are even worse hacks: a trace function
thefirstdudehow can I have a module that basicly links to another?
like, self = someother module
kbrooksthefirstdude, ?
thefirstdude, a = module_name
easy
thefirstdudebut I want to make a file that is a module linked to another module
so when I import filename I get a module
CarlFKpy2exe - how do I get this file included: P:\dabodev\dabodemo\DaboDemo\dist\library.zip\dabo\icons\daboSplashName.png
thefirstdudeis this possible?
CarlFKthefirstdude: how is that different than a module?
Vogateerthefirstdude, modules are often just python files placed in a certain place where python looks for them...
CarlFKthefirstdude: try better names that "filename"
thefirstdudeanyway
the module is suposed to be representing another
like if I'd do import mymodule
I could have mymodule == os
like in mymodule(file) I'd write import os;self = os
but that no work
CarlFKthefirstdude: what problem are you trying to solve?
tvynrthefirstdude: Are you maybe thinking something like "from os import *" ?
thefirstdudenot in the least
I want to make a module that is being loaded dynamicly redirect the "loader" to another file but still think that it is loading the original file
better put the module being loaded, become another module dynamicly
I can't exactly "control" the loader
so this is only way
VogateerThat sounds like something that could use a different implementation that you're looking for...
thefirstdudeVogateer, I'm not the one who implementated the loader
babbitttf: I disagree...I'd rather have duplicated IO rather than duplicated logic
thefirstdudeI'm simply asking if this is possible

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 

IrcArchive