[Pythonmac-SIG] print to console window very slow

Christer Fernstrom fernstrom@geocities.com
Thu, 14 Jun 2001 23:21:29 +0100


Actually, printing from the application is fine. It's the traceback that's
really slow (watching it feels like watching an old movie where a policeman
takes down a report on a typewriter with two fingers). Environment: Python
2.1, carbon, MacOs 8.5.1 (French). Since traceback writes to sys.stderr,
then maybe it's sys.stderr that's unbuffered? And maybe for good reasons?

    christer

----------
>De=A0: Jack Jansen <jack@oratrix.nl>
>=C0 : fernstrom@geocities.com
>Cc : pythonmac-sig@python.org
>Objet=A0: Re: [Pythonmac-SIG] print to console window very slow
>Date=A0: Jeu 14 juin 2001 14:18
>

>
> Recently, Christer =3D?iso-8859-1?Q?Fernstr=3DF6m?=3D <fernstrom@geocities.com>
said:
>> Printing to the console window is very slow, especially when the
>> interpretor dumps out the execution stack after an exception. This takes
>> more than a minute for the 15-20 lines! Anybody else having the same
>> problem?
>
> Strange... Is printing to the console always slow, or only in specific
> cases? If it's only slow after a specific script crashes it could be
> that the script sets sys.stdout to unbuffered, that will definitely
> make output very slow.
>
> If it's a general problem maybe you should give us a little more
> information: Python version (including carbon/classic), OS version,
> machine type, etc.
> --
> Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
> Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig =
++++
> www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.=
htm