Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#12 Fix for unbuffered option

closed-accepted
nobody
None
5
2004-12-30
2004-12-21
David Bolen
No

py2exe currently has an undocument per-target
unbuffered option, but that option does not actually
disable buffering in the target executable.

This patch changes from using PYTHONUNBUFFERED
(which is not looked at by Py_Initialize but in Python
itself is handled in frozenmain.c) to explicitly disabling
buffering itself in start.c. This is also the approach
taken in Gordon McMillan's installer package.

-- David

Discussion

  • Thomas Heller
    Thomas Heller
    2004-12-21

    Logged In: YES
    user_id=11105

    There's no uploaded file - did you check the checkbox?

     
  • David Bolen
    David Bolen
    2004-12-21

    Logged In: YES
    user_id=53196

    Duh ... obviously not...

    As it turns out, to be a bit closer to Python itself, I updated
    the change to follow what modules/main.c does (rather than
    frozenmain). So here's the proper diff attachment.

     
  • David Bolen
    David Bolen
    2004-12-21

    unbuffered patch

     
    Attachments
  • Thomas Heller
    Thomas Heller
    2004-12-30

    Logged In: YES
    user_id=11105

    This is now in CVS, thanks for the patch.

     
  • Thomas Heller
    Thomas Heller
    2004-12-30

    • status: open --> closed-accepted