| antont | babo: trying to use it is 'messing with it', as it is almost never needed |
| babo | antont: yeah, I could. But it still defeats the purpose of having a locals in the first place... |
| antont | babo: no it does not. locals is handy for e.g. debugging. but it is not there for storing data |
| TFKyle | babo: one possible thing is if you happen to be using psyco somewhere, it used to have problems with locals and stuff I think |
| babo | antont: 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 ? |
| TFKyle | babo: nah babo: psyco == an optimization thing |
| babo | ahh |
| antont | babo: 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 ... |
| antont | it is needed if you need to mess with namespaces, not needed if you just deal with data like usually ok :) |
| crazy_penguin | hello |
| TFKyle | babo: 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 |
| antont | TFKyle: are you a mod_python dev? |
| TFKyle | antont: nope |
| crazy_penguin | how can i taransform a int to string? wht class, method do i use? |
| TFKyle | just use it occasionally |
| crazy_penguin | err taransfrom/transform |
| antont | ok, 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_penguin | antont: thx |
| antont | crazy_penguin: that being the str class/type :) |
| crazy_penguin | ok thx i could find it thx :) |
| scanf | hello. I asked earlier but had to reboot: can anyone here raise a ticket for me re python.org website correction? |
| TFKyle | I'm thinking of partially ditching it the future, but I'd have to write a bunch of pieces first :) |
| antont | crazy_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' :) |
| babo | TFKyle: 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 ) |
| TFKyle | probably use it as a gateway |
| scanf | (I need this so seldom it would be better to ask someone who already does) |
| babo | anyway, 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-- |
| antont | babo: i hope you are happy with a dict. and you could report the bug to mod_python ppl |
| TFKyle | babo: and again, what are "variable variables", all variables are variable aren't they? |