This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author DqASe
Recipients DqASe
Date 2016-04-28.22:25:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461882326.3.0.694986363749.issue26878@psf.upfronthosting.co.za>
In-reply-to
Content
Currently doctest makes shallow copies of the environment or globs argument.  This is somewhat un-symmetrical: on the one hand, a test cannot see variables created by another, but on the other, it can alter mutable objects.  This is inconvenient e.g. when documenting several methods that change an object (say, obj.append() , then obj.insert() - one would hope that the results are independent on the order tests are executed ).

An option to make deep copies of the variables in the context, instead of shallow ones, would in my opinion solve the issue cleanly.
History
Date User Action Args
2016-04-28 22:25:26DqASesetrecipients: + DqASe
2016-04-28 22:25:26DqASesetmessageid: <1461882326.3.0.694986363749.issue26878@psf.upfronthosting.co.za>
2016-04-28 22:25:26DqASelinkissue26878 messages
2016-04-28 22:25:26DqASecreate