[issue3279] import of site.py fails on startup

Benjamin Peterson report at bugs.python.org
Mon Aug 25 19:49:35 CEST 2008


Benjamin Peterson <musiccomposition at gmail.com> added the comment:

On Mon, Aug 25, 2008 at 12:48 PM, Brett Cannon <report at bugs.python.org> wrote:
>
> Brett Cannon <brett at python.org> added the comment:
>
> On Mon, Aug 25, 2008 at 6:40 AM, Benjamin Peterson
> <report at bugs.python.org> wrote:
>>
>> Benjamin Peterson <musiccomposition at gmail.com> added the comment:
>>
>> We could:
>>
>> 1. Use _fileio._FileIO directly.
>> 2. Use os.open.
>> 3. Initialize the stdio streams before importing site. This seems like
>> the best option, although I haven't run all the tests yet.
>>
>
> Or you could use _warnings which is already compiled into the binary.

How would that help the problem of site using open() when it can't?
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue3279>
> _______________________________________
>

-- 
Cheers,
Benjamin Peterson
"There's no place like 127.0.0.1."

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3279>
_______________________________________


More information about the Python-bugs-list mailing list