Message280203
| Author |
erik.bray |
| Recipients |
erik.bray, masamoto |
| Date |
2016年11月07日.15:25:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1478532303.15.0.214729604834.issue28459@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Hi Masayuki, thanks for the response (I thought I replied to this earlier but maybe I only imagined it--I've been on vacation).
I agree with just about everything you write here.
I'm aware of the FreeBSD setmode(), but I figured os.setmode() could do different things on different platforms as applicable. But that would also be very confusing.
Your patch using ctypes looks fine to me--I considered doing the same, but what I'm not sure is if it's kosher to use ctypes here, given that it's techically an optional module. Since _pyio is, as I understand it, mainly used for testing it's probably fine? But I think we'll need some core maintainers' comments here...
Implementing a cygwin module would be really nice, actually, even if it isn't included in the stdlib. There are a few other cygwin-specific APIs that it is useful to have wrappers around: https://cygwin.com/cygwin-api/cygwin-functions.html But that would be outside the scope of fixing this issue. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年11月07日 15:25:03 | erik.bray | set | recipients:
+ erik.bray, masamoto |
| 2016年11月07日 15:25:03 | erik.bray | set | messageid: <1478532303.15.0.214729604834.issue28459@psf.upfronthosting.co.za> |
| 2016年11月07日 15:25:03 | erik.bray | link | issue28459 messages |
| 2016年11月07日 15:25:02 | erik.bray | create |
|