##// END OF EJS Templates
Update copyright/author statements....
Update copyright/author statements. - Updated copyright statements to use the new form: # Copyright (C) 2008-2009 The IPython Development Team I left the old notices in place (just updating the year in some cases), because as far as I know, old copyright statements are not meant to be retroactively modified. - Also, on most files, replaced __author__ marks with an 'Authors' section in the module docstring. This reduces top-level code in the module, while ensuring that the Author(s) get properly acknowledged in auto-generated API docs (sphinx doesn't read __author__ marks, but it will include the module docstring). I only left a few in place for very old files that we ship externally, and for those by Laurent: he had his authorship mark both in the docstring and in __author__ variables, so I think out of courtesy it would be better to ask him about it on the list. All the others were I found regular __author__ variables, I moved them to the main docstring.

File last commit:

r1856:2f5ba090
r1875:bba7e571
Show More
tclass.py
26 lines | 613 B | text/x-python | PythonLexer
Fernando Perez
Cleanup testing machinery.
r1851 """Simple script to instantiate a class for testing %run"""
Fernando Perez
Fix bug: https://bugs.launchpad.net/ipython/+bug/269966...
r1856 import sys
# An external test will check that calls to f() work after %run
Fernando Perez
Cleanup testing machinery.
r1851 class foo: pass
def f():
Fernando Perez
Fix bug: https://bugs.launchpad.net/ipython/+bug/269966...
r1856 return foo()
# We also want to ensure that while objects remain available for immediate
# access, objects from *previous* runs of the same script get collected, to
# avoid accumulating massive amounts of old references.
class C(object):
def __init__(self,name):
self.name = name
def __del__(self):
print 'Deleting object:',self.name
try:
name = sys.argv[1]
except IndexError:
pass
else:
c = C(name)