[Python-Dev] Backquote deprecation warning (original) (raw)
Georg Brandl g.brandl at gmx.net
Fri Nov 23 14:36:29 CET 2007
- Previous message: [Python-Dev] Backquote deprecation warning
- Next message: [Python-Dev] Backquote deprecation warning
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Christian Heimes schrieb:
Hello!
I'm having a bit of a trouble getting the deprecation warning for backquotes
repr
right. Neither the astfor* 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.
- Previous message: [Python-Dev] Backquote deprecation warning
- Next message: [Python-Dev] Backquote deprecation warning
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]