[BangPypers] Any python metaclasses for UID
Shivaraj M S
shivraj.ms at gmail.com
Mon Jul 27 10:20:45 CEST 2009
We will have to wait for UID I guess.
In a ''real world scenario''
class ClassI(Gates):
def __init__():
super(UID,self).Wind(7)
friend void exchange(ClassI& x, Gates& y)
void exchange(A& x, B& y)
{
B.x = A.location.awards
A.x = B.location.banks.outsource
}
These classes extended from probably c++ or so (of whose patchy source is
closed) .
Now the issue is this class has also a friend in UID but can be extended by
python in real world.
class UID():
friend void A::show(ClassI& x, UID& y);
UID is meant to be in public domain of whose behaviour is unknown. Should be
available near future Py 3.0
Coming back to the question:
Can there be a metaclass in python which can change the behaviour of object
at creation stage by extending it and nullifying friend functions?
--
Regards
_______________
Shivaraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20090727/4f61f64e/attachment.htm>
More information about the BangPypers
mailing list