#python - Thu 19 Apr 2007 between 10:09 and 10:16



antontbabo: trying to use it is 'messing with it', as it is almost never needed
baboantont: yeah, I could. But it still defeats the purpose of having a locals in the first place...
antontbabo: no it does not. locals is handy for e.g. debugging. but it is not there for storing data
TFKylebabo: one possible thing is if you happen to be using psyco somewhere, it used to have problems with locals and stuff I think
baboantont: if it doesn't work, then it shouldn't be there. If it is there, then it should be up to the dev to decide whether it's 'needed' or not ...
IMO
TFKyle: the python-psycog module ?
TFKylebabo: nah
babo: psyco == an optimization thing
baboahh
antontbabo: it works. and it is up to the dev to decide. and sounds like for you the best decision is not to use it -- it is a good decision for anyone to not use it for something it is not needed
babo:-) OK let's leave it at that then ...
antontit is needed if you need to mess with namespaces, not needed if you just deal with data like usually
ok :)
crazy_penguinhello
TFKylebabo: if you could produce a minimal example that shows how it breaks that'd be great, tested using locals().update(somedict) a little while ago and it worked here in my handler
antontTFKyle: are you a mod_python dev?
TFKyleantont: nope
crazy_penguinhow can i taransform a int to string? wht class, method do i use?
TFKylejust use it occasionally
crazy_penguinerr taransfrom/transform
antontok, was just wondering why the interest - i've preferred to stay clear from it (as the conventional wisdom here seems to be, as i have not needed to write apache plugins)
crazy_penguin: str(1)
crazy_penguinantont: thx
antontcrazy_penguin: that being the str class/type :)
crazy_penguinok
thx
i could find it
thx :)
scanfhello. I asked earlier but had to reboot: can anyone here raise a ticket for me re python.org website correction?
TFKyleI'm thinking of partially ditching it the future, but I'd have to write a bunch of pieces first :)
antontcrazy_penguin: next time if you need to know the same for e.g. a list, and can't remember it is list(), you can do type([]) .. like type("") tells you 'str' :)
baboTFKyle: yeah, that's the problem. I can't reproduce the error in a traceback environment. And my mod_python isn't logging to error_log. So I'm kinda left in the dark. All I no is that the execution stops when it hits that statement. ( I know it's not much to go on )
TFKyleprobably use it as a gateway
scanf(I need this so seldom it would be better to ask someone who already does)
baboanyway, I've spent way too much time on it already. I'm just going to leave it ...
python has no variable variables as far as I'm concerned ...
python--
antontbabo: i hope you are happy with a dict. and you could report the bug to mod_python ppl
TFKylebabo: and again, what are "variable variables", all variables are variable aren't they?

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

IrcArchive