[Python-Dev] stat module in C -- what to do with stat.py? (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Thu Jun 20 15:40:13 CEST 2013
- Previous message: [Python-Dev] stat module in C -- what to do with stat.py?
- Next message: [Python-Dev] stat module in C -- what to do with stat.py?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 20 June 2013 23:29, Christian Heimes <christian at python.org> wrote:
Am 20.06.2013 15:21, schrieb Florent:
we already have "pyio.py", we could have "pystat.py". Works for me.
I suggest following the guidelines in PEP 399 for cross implementation compatibility of the standard library: http://www.python.org/dev/peps/pep-0399/#details
Keep stat.py
Make the C version "_stat"
Add the following to the end of stat.py:
try: from _stat import * except ImportError: pass
Run the tests with and without the C module in the test suite (again, as per PEP 399).
Cheers, Nick.
-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message: [Python-Dev] stat module in C -- what to do with stat.py?
- Next message: [Python-Dev] stat module in C -- what to do with stat.py?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]