Christian Heimes schrieb:
> Hello!
> 
> I'm having a bit of a trouble getting the deprecation warning for
> backquotes `repr` right. Neither the ast_for_* functions in Python/ast.c
> nor the node structures have access to the filename.

On a related note, every time you start a Python interpreter with -3 you
get 8 instances of

warning: callable() not supported in 3.x

They come from copy_reg.py:pickle/constructor. Py3k has a hasattr('__call__')
there. Am I correct that for Py2, that must be

hasattr(object, '__call__') or isinstance(object, types.ClassType)

? Or are there other callable objects without a __call__ method?

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to