Eli Bendersky <eli...@gmail.com> added the comment:

Hmm, that may be PEP 399:

  If an acceleration module is provided it is to be named the same as the 
module it is accelerating with an underscore attached as a prefix, e.g., 
_warnings for warnings. The common pattern to access the accelerated code from 
the pure Python implementation is to import it with an import *, e.g., from 
_warnings import *. This is typically done at the end of the module to allow it 
to overwrite specific Python objects with their accelerated equivalents. 

However, it's hardly a rule, just describing a "common pattern". I wonder why 
this approach is preferable to the one I proposed (explicit facade module)?

----------

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

Reply via email to