Message182026
| Author |
pitrou |
| Recipients |
georg.brandl, giampaolo.rodola, pitrou |
| Date |
2013年02月13日.12:08:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<91414180.31981704.1360757278458.JavaMail.root@zimbra10-e2.priv.proxad.net> |
| In-reply-to |
<1360750258.42.0.775186583691.issue17197@psf.upfronthosting.co.za> |
| Content |
> No, it's the other way around. It's from cProfile which I import
> profile.
>
> diff --git a/Lib/cProfile.py b/Lib/cProfile.py
> --- a/Lib/cProfile.py
> +++ b/Lib/cProfile.py
> ...
> +import profile as _pyprofile
That's exactly what I'm saying. Once you import cProfile, the attributes
on the profile functions are overriden.
Either way, a module shouldn't mutate another module's functions. |
|