Show More
@@ -338,7 +338,7 b' class StrongRef(object):' | |||
|
338 | 338 | return self.obj |
|
339 | 339 | |
|
340 | 340 | |
|
341 |
def superreload(module, reload=reload, old_objects= |
|
|
341 | def superreload(module, reload=reload, old_objects=None): | |
|
342 | 342 | """Enhanced version of the builtin reload function. |
|
343 | 343 | |
|
344 | 344 | superreload remembers objects previously in the module, and |
@@ -348,6 +348,8 b' def superreload(module, reload=reload, old_objects={}):' | |||
|
348 | 348 | - clears the module's namespace before reloading |
|
349 | 349 | |
|
350 | 350 | """ |
|
351 | if old_objects is None: | |
|
352 | old_objects = {} | |
|
351 | 353 | |
|
352 | 354 | # collect old objects in the module |
|
353 | 355 | for name, obj in list(module.__dict__.items()): |
General Comments 0
You need to be logged in to leave comments.
Login now