mirror of
https://github.com/python/cpython
synced 2026-09-29 09:00:29 +03:00
Patch 1267 by Christian Heimes.
Move the initialization of sys.std{in,out,err} and __builtin__.open
to C code.
This solves the problem that "python -S" wouldn't work.
This commit is contained in:
parent
75a902db78
commit
ce3a72aec6
11 changed files with 175 additions and 31 deletions
|
|
@ -338,6 +338,15 @@ PyFile_FromFile:char*:name::
|
|||
PyFile_FromFile:char*:mode::
|
||||
PyFile_FromFile:int(*:close)::
|
||||
|
||||
PyFile_FromFileEx:PyObject*::+1:
|
||||
PyFile_FromFileEx:FILE*:fp::
|
||||
PyFile_FromFileEx:char*:name::
|
||||
PyFile_FromFileEx:char*:mode::
|
||||
PyFile_FromFileEx:int(*:close)::
|
||||
PyFile_FromFileEx:int:buffering::
|
||||
PyFile_FromFileEx:char*:encoding::
|
||||
PyFile_FromFileEx:char*:newline::
|
||||
|
||||
PyFile_FromString:PyObject*::+1:
|
||||
PyFile_FromString:char*:name::
|
||||
PyFile_FromString:char*:mode::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue