Message125224
Ah, I hadn't looked closely enough at site.py to realize that the init work was being done by a 'main()' call. Given that, just moving the main call out should be relatively unlikely to break any custom site.py. Worse case would presumably be main() getting called twice, which could be annoying but probably not catastrophic. One would like to think that anyone customizing site.py would redo the customization for a major release and would notice. (And no, I don't know how common customized site.py's are.)
Logging already only does its import if you construct an NTEventLogHandler, so that's probably safe enough. Changing xml to require a function call might make some people mad, and other people happy...
I wonder if there are any other stdlib modules that do these kinds of external imports. I suppose we can just fix xml and wait for additional bug reports :)
I'm not sure either of these changes (site.py-call or xml-activate-xmlplus) should be backported, though, assuming we go ahead with them. |
|
Date |
User |
Action |
Args |
2011-01-03 20:03:23 | r.david.murray | set | recipients:
+ r.david.murray, loewis, doko, pitrou, nyb, ajaksu2, dugan, eric.araujo, Arfrever |
2011-01-03 20:03:23 | r.david.murray | set | messageid: <1294085003.25.0.815430881673.issue1674555@psf.upfronthosting.co.za> |
2011-01-03 20:03:21 | r.david.murray | link | issue1674555 messages |
2011-01-03 20:03:21 | r.david.murray | create | |
|