[issue11016] stat module in C

2013-06-19 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


Removed file: http://bugs.python.org/file30147/statmodule.c

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11016
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11016] stat module in C

2013-06-19 Thread Christian Heimes

Christian Heimes added the comment:

New patch with extensive tests for the stat module. The tests are testing both 
the new C module and the old stat.py module.

--
Added file: http://bugs.python.org/file30648/statmodule2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11016
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11016] stat module in C

2013-05-12 Thread Stefan Drees

Changes by Stefan Drees ste...@drees.name:


--
nosy: +dilettant

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11016
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11016] stat module in C

2013-05-10 Thread Christian Heimes

Christian Heimes added the comment:

AP has started to review my patch. I'm not yet sure how we should handle 
constants and functions when the platform doesn't provide them. For example 
Windows doesn't have any S_IS*() function like macros and doesn't provide a 
S_IFBLK constant.

We have three possibilities here:

1) omit the constant / function (breaks b/w compatibility)
2) add constant with a value of 0 / function that returns false (may break b/w 
compatibility)
3) default to current value from Lib/stat.py

I'm against 1) because it breaks backwards compatibility and makes the module 
harder to use. I like to follow 3) for all S_I*, SF_* and UF_* macros and 
functions that are currently provided by the stat module and 2) for new 
constants and functions such as S_ISDOOR().

--
title: Add S_ISDOOR to the stat module - stat module in C

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11016
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com