Kassym Dorsel added the comment:

Yes. You're correct. Sorry for the confusion. Below is an updated snippet of 
code.

>>> from copy import copy
>>> class foo():
...   def __getattr__(self, attr):
...     return None
... 
>>> f = foo()
>>> copy(f)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py",
 line 76, in copy
    return copier(x)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py",
 line 125, in _copy_inst
    return x.__copy__()
TypeError: 'NoneType' object is not callable

----------

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

Reply via email to