New submission from kenneth dombrowski <kenneth-pyt...@ylayali.net>:

The operator documentation @ http://docs.python.org/library/operator.html 
states for operator.isCallable(obj): "Deprecated since version 2.0: Use 
isinstance(x, collections.Callable) instead.", I believe this should read since 
version 2.6

kenn...@dev2 ~ $ python
Python 2.5.4 (r254:67916, Oct  3 2009, 21:36:21)
[GCC 3.4.6 [FreeBSD] 20060305] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.

>>> import collections
>>> collections.Callable
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Callable'

----------
assignee: georg.brandl
components: Documentation
messages: 99433
nosy: georg.brandl, kennethd
severity: normal
status: open
title: typo in operator.isCallable deprecation warning
versions: Python 2.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7945>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to