This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wojtekwalczak
Recipients wojtekwalczak
Date 2007-11-08.20:30:32
SpamBayes Score 0.017379971
Marked as misclassified No
Message-id <1194553833.1.0.901439748582.issue1407@psf.upfronthosting.co.za>
In-reply-to
Content
For debugging reasons I have added a simple line to PyObject_Call()
function in Objects/abstract.c:
printf("%s.%s\n", func->ob_type->tp_name, PyEval_GetFuncName(func));
Now, after compiling python and running interpreter with simple
print() call I receive this:

Python 3.0a1 (py3k, Nov  6 2007, 19:25:33)
[GCC 4.1.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print('!',end='')
builtin_function_or_method.print
method.write
function.write
function.closed
function.closed
builtin_function_or_method.ascii_encode
function.closed
function.closed
!method.write   # here it goes again for 'end' parameter
function.write
function.closed
function.closed
builtin_function_or_method.ascii_encode
function.closed
builtin_function_or_method.displayhook
>>>

Note that there can be something going on between one function.closed 
and the next one, because not every piece of code gets called by 
PyObject_Call(), but still - isn't it checking if stream is closed a 
bit too often?

Regards,
Wojtek Walczak
History
Date User Action Args
2007-11-08 20:30:33wojtekwalczaksetspambayes_score: 0.01738 -> 0.017379971
recipients: + wojtekwalczak
2007-11-08 20:30:33wojtekwalczaksetspambayes_score: 0.01738 -> 0.01738
messageid: <1194553833.1.0.901439748582.issue1407@psf.upfronthosting.co.za>
2007-11-08 20:30:33wojtekwalczaklinkissue1407 messages
2007-11-08 20:30:32wojtekwalczakcreate