[issue26303] Shared execution context between doctests in a module

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- assignee: docs@python -> Mariatta ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26303] Shared execution context between doctests in a module

2019-05-06 Thread anthony shaw
anthony shaw added the comment: this issue would be good for pycon sprints -- nosy: +Mariatta, anthonypjshaw ___ Python tracker ___ ___

[issue26303] Shared execution context between doctests in a module

2016-02-06 Thread kernc
kernc added the comment: The use case is not unpopular [1] and with unambiguous examples like >>> arr = np.arange(5) >>> my_sum(arr) 10 (i.e., without importing numpy as np everywhere), it also makes a lot of sense. [1]: http://stackoverflow.com/questions/13106118/object-reuse-in

[issue26303] Shared execution context between doctests in a module

2016-02-06 Thread kernc
New submission from kernc: The doctest execution context documentation [0] says the tests get shallow *copies* of module's globals, so one test can't mingle with results of another. This makes it impossible to make literate modules such as: """ This module is about reusable doctests c