Brett Cannon wrote:
Speaking with my importlib hat on, I need a function that can easily return the encoding of a file, so I have another legit use-case for the functionality where exposing it through some built-in fashion would be REALLY appreciated (I have one hacked together as imp.source_open() in my bootstrapping work, but I still don't think it is a very good solution).
I've send you a patch.
Who is loading 'warnings'? If it something minor and very startup-specific, perhaps using _warnings instead is a possibility.
It's always loaded by Python/pythonrun.c Christian _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com