I don't get *why* someone would like to write that. Does it look cool? Is
it some kind of Look, ma, I know those hidden names! syndrome? Is it
contagious?
I think thats what it is. It does look cool, thats for telling me about the
fact that
prevents the interpreter from doing many
I'm actually still getting to this section of my code, I've been working a
logging,stdout colors lately, Although I am going to need __import__ in
several places in this program
-Alex Goretoy
http://www.goretoy.com
On Sat, Mar 14, 2009 at 3:05 AM, alex goretoy
aleksandr.gore...@gmail.comwrote:
I can show you people more code if you want :) I like to learn
-Alex Goretoy
http://www.goretoy.com
On Sat, Mar 14, 2009 at 3:09 AM, alex goretoy
aleksandr.gore...@gmail.comwrote:
I'm actually still getting to this section of my code, I've been working a
logging,stdout colors lately,
This is a chunk of what its starting to look like now, thanks
from colors import _available_colors as _ck
from has_colors import _has_colors as _ha
from log import _brush as _er
class stdout_colors(object):
def
__init__(self,colors_active=1,output_caller=1,caller_color=red,default=1,
Gabriel Genellina wrote:
En Thu, 12 Mar 2009 09:27:35 -0200, alex goretoy
aleksandr.gore...@gmail.com escribió:
note i would still like to be able to do __import__(sys).path
p = __import__(sys).path
That's a convoluted way of doing:
import sys
p = sys.path
(except that the latter one
wow, ok, thank you Gabriel, I wasn't aware of x,'y',z
This is what I decided to go with for now in one of my classes, but another
class will need a modified version of this, as mentioned x,'y',z
B=_brush()
list( ( self.__setattr__(x.replace(b_,),getattr(B,x)) for x in
dir(B) if
En Fri, 13 Mar 2009 17:12:49 -0200, alex goretoy
aleksandr.gore...@gmail.com escribió:
wow, ok, thank you Gabriel, I wasn't aware of x,'y',z
This is what I decided to go with for now in one of my classes, but
another
class will need a modified version of this, as mentioned x,'y',z
Gabriel Genellina wrote:
En Fri, 13 Mar 2009 17:12:49 -0200, alex goretoy
aleksandr.gore...@gmail.com escribió:
wow, ok, thank you Gabriel, I wasn't aware of x,'y',z
This is what I decided to go with for now in one of my classes, but
another
class will need a modified version of this, as
En Sat, 14 Mar 2009 00:31:55 -0200, Lie Ryan lie.1...@gmail.com escribió:
Gabriel Genellina wrote:
En Fri, 13 Mar 2009 17:12:49 -0200, alex goretoy
aleksandr.gore...@gmail.com escribió:
list( ( self.__setattr__(x.replace(b_,),getattr(B,x)) for
x in
dir(B) if x.startswith(b_) ) )
I have resolved this problem in my code. It has something to do with your
current working directory when you append cwd/jars to sys.path and try to
import from interactive console
-Alex Goretoy
http://www.goretoy.com
On Thu, Mar 12, 2009 at 4:58 AM, alex goretoy
yay, no more
exec (import + sys)
in my code
-Alex Goretoy
http://www.goretoy.com
On Thu, Mar 12, 2009 at 5:42 AM, alex goretoy
aleksandr.gore...@gmail.comwrote:
I have resolved this problem in my code. It has something to do with your
current working directory when you append cwd/jars to
or eval for that matter
-Alex Goretoy
http://www.goretoy.com
On Thu, Mar 12, 2009 at 5:43 AM, alex goretoy
aleksandr.gore...@gmail.comwrote:
yay, no more
exec (import + sys)
in my code
-Alex Goretoy
http://www.goretoy.com
On Thu, Mar 12, 2009 at 5:42 AM, alex goretoy
note i would still like to be able to do __import__(sys).path
maybe if __import__ had __str__ defined, How is my thinking on this?
and how would I achieve something like this?
-Alex Goretoy
http://www.goretoy.com
On Thu, Mar 12, 2009 at 5:44 AM, alex goretoy
aleksandr.gore...@gmail.comwrote:
__import__(opt['imp_mod']).options
eval(opt['imp_mod']+.+opt['imp_opt'])
how to make top work like bottom?
-Alex Goretoy
http://www.goretoy.com
On Thu, Mar 12, 2009 at 5:56 AM, alex goretoy
aleksandr.gore...@gmail.comwrote:
note i would still like to be able to do __import__(sys).path
En Thu, 12 Mar 2009 09:27:35 -0200, alex goretoy
aleksandr.gore...@gmail.com escribió:
note i would still like to be able to do __import__(sys).path
p = __import__(sys).path
That's a convoluted way of doing:
import sys
p = sys.path
(except that the latter one inserts sys in the current
Gabriel,
Thank you. This makes sense to me. I will go with sys.modules. Can you give
me a good example how to do it getattr way?
currently I am having this problem in my code. Kinda off subject, but not
entirely. I set default variable in self.opt after that I import
jar.properties into
En Thu, 12 Mar 2009 23:00:30 -0200, alex goretoy
aleksandr.gore...@gmail.com escribió:
Thank you. This makes sense to me. I will go with sys.modules. Can you
give
me a good example how to do it getattr way?
obj.attr is the same as getattr(obj, attr) (note the quotes). This makes
more
17 matches
Mail list logo