Message157188
| Author |
pitrou |
| Recipients |
Jim.Jewett, Yury.Selivanov, asvetlov, ebfe, jimjjewett, kristjan.jonsson, lehmannro, michael.foord, pitrou, stutzbach |
| Date |
2012年03月31日.13:35:27 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333200625.3494.0.camel@localhost.localdomain> |
| In-reply-to |
<1333200462.82.0.975356660031.issue10576@psf.upfronthosting.co.za> |
| Content |
> - gc.callbacks is a simple module attribute. Anyone can set it to
> anything else, e.g. gc.callbacks=None. We have to accomodate this
> possibility or else introduce annoying api functions to edit the list.
> I thought it best to do things similarly to sys.import_hooks etc,
> simply expose a list object and trust the user to treat this list
> object with care, but check it regardless to avoid crashing.
The way I read it, you don't fetch it from the module dictionary,
though, you just use the static C variable, which shouldn't change when
the dict is mutated. |
|