On 20 June 2013 23:29, Christian Heimes <christ...@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

1. Keep stat.py
2. Make the C version "_stat"
3. 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   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to