Message286392
| Author |
rhettinger |
| Recipients |
anton.barkovsky, gregory.p.smith, htgoebel, pitrou, r.david.murray, rhettinger, serhiy.storchaka |
| Date |
2017年01月28日.01:02:27 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1485565348.28.0.533197196221.issue15373@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
[Antoine]
> I agree with David that copy(os.environ) is rather ambiguous.
> I think the preferred idiom should be to call dict(os.environ).
> As for __copy__, I don't know what it should do: perhaps
> simply raise an error when copying is attempted?
FWIW, I concur with Antoine on every point. Also, raising an error when copying seems reasonable ("refuse the temptation to guess" at what the user intended). |
|