Re: [bch-discuss] Python 2.0
Status: Alpha
Brought to you by:
mwh
From: Michael H. <mw...@ca...> - 2000-10-05 17:54:39
|
On Thu, 5 Oct 2000, Toby Dickenson wrote: > On Thu, 5 Oct 2000 13:28:46 +0100 (BST), Michael Hudson > <mw...@ca...> wrote: > > >> Is anyone looking at adding support for the new instructions in python > >> 2.0? > > > >I've been meaning to do it for a while. If you beat me to it, I certainly > >won't hold it against you! > > Heres a patch for the two instructions that I am using (PRINT_ITEM_TO > and PRINT_NEWLINE_TO), and which raises a NotImplemented error for all > of those other new ones that I dont yet care about. Cool. I'll check it in, as they say, momentarily. Tests fail at the moment, basically due to the "from x import y as z" patch. I'm on the case (but going to the theatre in an hour, and haven't eaten yet...). > (If anyones interested, Ive been experimenting with allowing file-like > objects to choose their own character encoding when a unicode string > is printed) Cool. How does bytecodehacks help, out of curiosity? > Ive also been niggled by the way bytecodehacks imports its sibling > modules.... it assumes that the bytecodehacks package is installed as > a root package (Its more convenient for me to install it as a > sub-package below my package) Would you accept a patch to change all > of the > from bytecodehacks.ops import * > into > from ops import * > ? Now I've actually read http://www.python.org/doc/essays/packages.html properly, yes. Cheers! M. |