[Python-ideas] generic Ref class
aahz at pythoncraft.com
Sat Jan 12 21:51:09 CET 2008
On Sat, Jan 12, 2008, Aaron Brady wrote:
> For iteration and pass-by-reference semantics:
> class Ref:
> def __init__( self, val):
> self.val= val
Good addition to the cookbook if it's not already there. IMO, not
appropriate for the standard library.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Weinberg's Second Law: If builders built buildings the way programmers wrote
programs, then the first woodpecker that came along would destroy civilization.
More information about the Python-ideas