[Python-Dev] Automatic Scope Macros

Kristján Valur Jónsson kristjan at ccpgames.com
Tue Apr 24 23:11:53 CEST 2007


What you really want is to use C++.
However, that is a brash and immature language that is still awaiting wider acceptance
and is therefore not supported.
K

-----Original Message-----
From: python-dev-bounces+kristjan=ccpgames.com at python.org [mailto:python-dev-bounces+kristjan=ccpgames.com at python.org] On Behalf Of Georg Brandl
Sent: Tuesday, April 24, 2007 21:00
To: python-dev at python.org
Subject: Re: [Python-Dev] Automatic Scope Macros

Calvin Spealman schrieb:
> Could we use and add this macro to object.h? It could be a much
> cleaner and safer way of dealing with new references you want to clean
> up in the same scope.

In most cases, you will have error checking in _scopecode which DECREFs the
variable and returns, or jumps to a "cleanup" label. I can't see how this would
be possible with these macros.




More information about the Python-Dev mailing list