On Thu, Jan 26, 2006 at 07:55:08PM +0000, Steve Holden wrote: > Would it help to redefine file/open so they called an __open__() method > on the argument were one defined, otherwise reverting to current behaviour?
Not really, open() is (by far!) not the only function that breaks. Most posixmodule functions, by the looks of it, as well as a few in _tkinter and socket. And that's just a quick grep for PyArg_Parse* with '"et' as an argument. Perhaps if __open__ was generalized into __equivalent_string__... but we've been there already. ;) -- Thomas Wouters <[EMAIL PROTECTED]> Hi! I'm a .signature virus! copy me into your .signature file to help me spread! _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com