[Python-Dev] xturtle.py a replacement for turtle.py(!?) ATTENTION PLEASE! (original) (raw)
Bob Ippolito bob at redivi.com
Wed Jun 28 22:53:32 CEST 2006
- Previous message: [Python-Dev] xturtle.py a replacement for turtle.py(!?) ATTENTION PLEASE!
- Next message: [Python-Dev] xturtle.py a replacement for turtle.py(!?) ATTENTION PLEASE!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jun 28, 2006, at 1:05 PM, Gregor Lingl wrote:
Martin v. Löwis schrieb:
Collin Winter wrote:
While I have no opinion on Gregor's app, and while I fully agree that new language features and stdlib modules should generally stay out of bug-fix point releases, xturtle doesn't seem to rise to that level (and hence, those restrictions).
It's a stdlib module, even if no other stdlib modules depend on it; try "import turtle". In the specific case, the problem with adding it to 2.5 is that xturtle is a huge rewrite, so ideally, the code should be reviewed before being added. Given that this is a lot of code, nobody will have the time to perform a serious review. It will be hard enough to find somebody to review it for 2.6 - often, changes of this size take several years to review (primarily because it is so specialized that only few people even consider reviewing it). Sorry Martin, but to me this seems not to be the right way to manage things. We have turtle.py revised in Python2.5b1 Please try this example (as I just did) : IDLE 1.2b1 ==== No Subprocess ==== >>> from turtle import * >>> beginfill() >>> circle(100,90) # observe the turtle >>> backward(200) >>> circle(100,90) >>> color("red") >>> endfill() IDLE internal error in runcode() Traceback (most recent call last): File "<pyshell#6>", line 1, in endfill() File "C:\Python25\lib\lib-tk\turtle.py", line 724, in endfill def endfill(): getpen.endfill() AttributeError: 'function' object has no attribute 'endfill' >>> An error occurs, because in line 724 it should read def endfill(): getpen().endfill()
File a patch, this is a bug fix and should definitely be appropriate
for inclusion before the release of Python 2.5!
-bob
- Previous message: [Python-Dev] xturtle.py a replacement for turtle.py(!?) ATTENTION PLEASE!
- Next message: [Python-Dev] xturtle.py a replacement for turtle.py(!?) ATTENTION PLEASE!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]