creating class objects inside methods

Hendrik van Rooyen hendrik at microcorp.co.za
Sun Oct 4 03:35:15 EDT 2009


On Sunday, 4 October 2009 08:14:08 horos11 wrote:

> Saying that 'whoa, this coding error should be handled by naming
> convention' may be the only practical way of getting around this
> limitation, but it is a limitation nonetheless, and a pretty big one.

You misunderstand the dynamic nature of python - YOU rebound the name to 
something else - how on earth can the interpreter know that this is not what 
you meant?

Could you formulate a rule that the interpreter should follow to be able to 
flag what you have done as an error?

- Hendrik




More information about the Python-list mailing list