A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2008-October/082981.html below:

[Python-Dev] __getattr__ and new style classes

[Python-Dev] __getattr__ and new style classes [Python-Dev] __getattr__ and new style classesGreg Ewing greg.ewing at canterbury.ac.nz
Fri Oct 10 02:37:32 CEST 2008
Amaury Forgeot d'Arc wrote:

> But this is already the case, and the reason why there are three
> variable to describe an exception: type, value and traceback.

Yes, but you only get one object for the value, which means
at least allocating a tuple if you want to be able to report
something like "AttributeError: 'fooblat' object has no
attribute 'asdf'".

I'm thinking about a C api that would let you supply multiple
pre-existing values without having to allocate anything.
Not sure exactly how it would work, though.

Also, what about Py3? Has the type/value separation gone away
completely, or is it still there at the C level?

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4