Emanuel Barry added the comment:

Functionally, both versions are equivalent, but one is a class and the other is 
not. From PEP 399:

"Technical details of the VM providing the accelerated code are allowed to 
differ as necessary, e.g., a class being a `type` when implemented in C."

It clearly states that it's an implementation detail. I've been beaten! 
However, the next paragraph also says this:

"Acting as a drop-in replacement also dictates that no public API be provided 
in accelerated code that does not exist in the pure Python code."

I think this contradicts itself, since IMO an object being a type is part of 
the public API (but obviously this thought isn't universal). Whatever happens 
with the pure Python implementation, shouldn't the PEP be clarified on that 
point?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27137>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to