Benjamin Peterson <benjamin <at> python.org> writes:
> 
> > Why can't we simply make co_filename a writable attribute instead of
inventing
> > some complicated API?
> 
> Because code objects are supposed to be a immutable hashable object?

Right, but co_filename is used neither in tp_hash nor in tp_richcompare.

Regards

Antoine.




_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to