Meta programming question

Bruce Dickey ceiesa at excite.com
Sat Sep 27 22:30:48 EDT 2003


Ben Finney wrote:
> On Sat, 27 Sep 2003 19:18:15 -0600, Bruce Dickey wrote:
> 
>>I've read a number of the meta progamming articles. I have not found
>>what I am looking for. I want to override assignments to variables
>>which are in the module namespace (not object members -- no classes
>>involved).  Can this be done?
> 
> 
> AFAIK, no.  If it were possible, it would be very confusing.
> 
> What is it you're trying to achieve?  Perhaps a better alternative can
> be suggested that doesn't break expected behaviour.
> 
I'm investigating the use of Python as a grammar language. I'm trying to 
achive minimal required syntax/verbage.

Thanks,

Bruce





More information about the Python-list mailing list