From: Georg B. <g.b...@gm...> - 2008-11-30 10:53:45
|
gr...@us... schrieb: > On Thu, 27 Nov 2008, Georg Brandl wrote: > >> Georg Brandl schrieb: >>> Hi, >>> >>> in order to get more people porting and testing things on Python 3000, >>> I want to start by getting Sphinx running on it. That requires having >>> Docutils. >> >> OK, after the encouraging post from Alan I'll try to find a way to let >> 2to3 do all the work. It may also be possible to write custom fixers >> for 2to3 that fix things the stock tool can't generally do. >> >> I'll send patches for some changes that can be made without breaking any >> compatibility. >> >> The first removes all unnecessary use of the "types" module whose trivial >> attributes like StringType are gone in 3k. >> >> Usage of ClassType remains however and must (ATM) be fixed manually. > > in python2.2 slice is a built-in function i guess that is why > it says 'TypeError: isinstance() arg 2 must be a class, type, or tuple of > classes and types' OK, I didn't test that here. Maybe I really should build a Python 2.2 :-) Related question: For how long will the 2.2 compatibility requirement be upheld? > you could post the patches to sourceforge maybe , then we have a clearer > subject line (and we might get bigger numbers on the change counters). but > this is up to you I will if you insist, but I thought I'd spare everyone the trouble that is using SourceForge ;-) Georg -- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out. |