Message154557
| Author |
brett.cannon |
| Recipients |
brett.cannon, pitrou |
| Date |
2012年02月28日.17:03:49 |
| SpamBayes Score |
1.2466936e-09 |
| Marked as misclassified |
No |
| Message-id |
<1330448630.79.0.296713458855.issue14153@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The _io module imports the os module purely for the use of os.device_encoding(). That function, though, is defined by posix and thus is already available to C code. To avoid this import dependency it would be better to simply expose the function somehow so that _io can just directly call the function.
Antoine has suggested Python/fileutils.c as a possible place, although I'm personally happy simply exposing the function from posix and making it a METH_O function so that as little code needs to change for _io to use it. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月28日 17:03:50 | brett.cannon | set | recipients:
+ brett.cannon, pitrou |
| 2012年02月28日 17:03:50 | brett.cannon | set | messageid: <1330448630.79.0.296713458855.issue14153@psf.upfronthosting.co.za> |
| 2012年02月28日 17:03:50 | brett.cannon | link | issue14153 messages |
| 2012年02月28日 17:03:49 | brett.cannon | create |
|