Message157187
| Author |
kristjan.jonsson |
| Recipients |
Jim.Jewett, Yury.Selivanov, asvetlov, ebfe, jimjjewett, kristjan.jonsson, lehmannro, michael.foord, pitrou, stutzbach |
| Date |
2012年03月31日.13:27:41 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333200462.82.0.975356660031.issue10576@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Thank you Antoine. Your points:
- Yes, I can robustify this.
- I think I worried that the actual contents might be too complex to test for it. I'll see if I can't just simplify it as you suggest.
- right, thanks.
- 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.
- Pep8, yes sorry. I do a lot of programming in other projects that are more lenient in comment styles, so it doesn't come automatically. I personally have no problem whatsoever #to #read #such #comments :) |
|