[issue3062] Turtle speed() function has no effect under Mac OS X

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching another test that demonstrates that the speed of the turtle is different when it draws a straight line and a circle. The output shows the time it takes to draw a line and a circle of the same length at various speed settings. $ python3

[issue10157] Memory leak (r70152)

2010-10-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue10157> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10156] Memory leak (r70459)

2010-10-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue10156> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10168] tkinter.Canvas.coords should return a list, not a map

2010-10-21 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Apparently a 2.x to 3.x migration artifact. Canvas.coords() is documented as returning a list: def coords(self, *args): """Return a list of coordinates for the item given in ARGS.""" but in 3.x it returns

[issue6878] changed return type from tkinter.Canvas.coords

2010-10-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Searching through tkinter for map() calls reveals many other places where map object is returned instead of a list. For example: def keys(self): """Return a list of all resource names of this widget."""

[issue6878] changed return type from tkinter.Canvas.coords

2010-10-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch fixes other uses of map() in tkinter. -- Added file: http://bugs.python.org/file19325/issue6878.diff ___ Python tracker <http://bugs.python.org/issue6

[issue7061] Improve 24.5. turtle doc

2010-10-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Oct 21, 2010 at 2:03 PM, Éric Araujo wrote: .. > Having more hyphens than title characters is not an error for reST, but it’s > not done in the rest of the document. >  I suggest “fixing” that when you do further changes in the file

[issue7061] Improve 24.5. turtle doc

2010-10-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Oct 21, 2010 at 2:12 PM, Alexander Belopolsky wrote: > The hyphen fix, however seems easier to commit than to > remember.   I'll do it now. > Committed in r85778. -- ___ Python

[issue7061] Improve 24.5. turtle doc

2010-10-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I also wonder if the title should be changed from "Turtle graphics for Tk" to simply "Turtle graphics". As explained in issue3884, msg73465 turtle's use of Tk is an implementation detail and the title may be confusin

[issue10170] Relationship between turtle speed setting and actual speed is not documented

2010-10-21 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : As Terry J. Reedy mentioned in his comment on issue 7061, turtle documentation is lacking information on how speed "codes" 0-10 translate into actual turtle speed. Attached script measures the speed of the two primitive operations that

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2010-10-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also "turtle.py update for 3.1" post on python-dev specifically mentioning this bug as fixed. http://mail.python.org/pipermail/python-dev/2009-May/089383.html -- status: pending -> closed _

[issue7061] Improve 24.5. turtle doc

2010-10-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Oct 21, 2010 at 3:00 PM, Éric Araujo wrote: .. > +1. [remove reference to Tk from title] > If we do that, I think we should move turtle documentation out of the "Graphical User Interfaces with Tk" chapter. It would be more appr

[issue6639] turtle: _tkinter.TclError: invalid command name ".10170160"

2010-10-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have come across the same bug. To reproduce, run Demo/turtle/tdemo_round_dance.py and kill the Tk window before the "dance" stops. The mysterious command name ".10170160" is simply the generated name for the canvas widget

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 2010/10/25 Jesús Cea Avión : .. > Another question: I am not able to decide between Sun/Apple style, or > breaking dtrace scripts > compatibility completely. Anybody has an opinion about this?. Is this > actually important?. Are > there

[issue10193] Simplify instrospection used by turtle module

2010-10-25 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The turtle module uses introspection in order to generate module level functions. Attached patch streamlines the introspection code by using inspect module function instead of direct access to cod object attributes. -- components: Library

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : On Tue, Oct 26, 2010 at 11:18 AM, Guido van Rossum wrote: > On Tue, Oct 26, 2010 at 8:13 AM, Alexander Belopolsky > wrote: >> The one demo that I want to find a better place for is Demo/turtle. > > Sure, go for it. It is a specia

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Oct 26, 2010 at 12:00 PM, Guido van Rossum wrote: .. > IMO converting turtle.py into a package, unless that's already planned > anyway, is not a good project > to undertake right now. What are your reasons? I don't necess

[issue10193] Simplify instrospection used by turtle module

2010-10-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky resolution: -> accepted stage: -> commit review ___ Python tracker <http://bugs.python.or

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +glingl, gregorlingl ___ Python tracker <http://bugs.python.org/issue10199> ___ ___ Python-bugs-list mailing list Unsub

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Oct 26, 2010 at 12:31 PM, Guido van Rossum wrote: .. > I would like Gregor Lingl's approval of turning turtle.py into a package. Me too. :-) I added him to the "nosy list". >  It might make some things harder for novices,

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I thought this email-to-roundup bug was fixed some time ago. The mangled sample session was: >>> turtle.forward('5 miles') Traceback (most recent call last): File "", line 1, in File "", line 1, in forward .

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch, issue7061.diff, drops "for Tk" from turtle module title and move its doc section under frameworks. I also fixed a couple of markup issues that affected TOC rendering. -- keywords: +patch stage: -> commit revi

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Oct 26, 2010 at 3:32 PM, Georg Brandl wrote: .. > LGTM, if you verified that the label "debugger" is not in use at the moment. Good point. I naively hoped that Sphinx would warn me about a reference to an undefined label.

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 85853. Terry, please chime in if I missed anything that you would consider part of this issue. Note that the speed vs. delay may not be just a doc issue. I opened issue 10170 for that. -- resolution: -> accepted st

[issue10193] Simplify instrospection used by turtle module

2010-10-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Oct 27, 2010 at 8:10 AM, Éric Araujo wrote: .. > I wonder about the name “name”, since we’re looping other default values > here.) Good point. I changed that and committed in revision

[issue10193] Simplify instrospection used by turtle module

2010-10-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue6639] turtle: _tkinter.TclError: invalid command name ".10170160"

2010-10-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Same error occurs when the python -m turtle demo is interrupted by closing the window. I think the correct fix is to exit when the window is closed, but I cannot figure out the best way to achieve that. This probably should be done at the application

[issue7074] Turtle module crashes python

2010-10-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +gregorlingl ___ Python tracker <http://bugs.python.org/issue7074> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1702036] Make Turtle thread-safe so it does not crash

2010-10-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +gregorlingl ___ Python tracker <http://bugs.python.org/issue1702036> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There have been several requests for KeyError to grow "key" attribute that will always contain the key that caused the error. See issue 1182143, for example. If this is done, I think it would be natural to unify the args as well for empty an

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is the case where fixing an issue is easier than arguing that it is not a bug. :-) (Changing to "behavior" not because I agree that it is a bug, but for consistency with targeting 2.7) A (1-line) patch attached. -- keywords: +p

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attaching a patch with tests. -- keywords: +needs review resolution: -> accepted stage: unit test needed -> commit review Added file: http://bugs.python.org/file19401/issue10221-with-tests.diff ___

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I wonder if it would be worthwhile to unify missing key processing as in issue10221a-with-tests.diff. -- Added file: http://bugs.python.org/file19402/issue10221a-with-tests.diff ___ Python tracker <h

[issue7061] Improve 24.5. turtle doc

2010-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attaching another small doc improvement: "gon" is better know as "grad" and even under that name requires an explanation. See issue7061a.diff -- Added file: http://bugs.python.org/file1

[issue7061] Improve 24.5. turtle doc

2010-10-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: committed/rejected -> commit review ___ Python tracker <http://bugs.python.org/issue7061> ___ ___ Python-bugs-lis

[issue10224] Build 3.x documentation using python3.x

2010-10-28 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Opening a ticket to track the progress of getting python 3.x build its own documentation. So far I have installed Sphinx from http://bitbucket.org/birkenfeld/sphinx, but I get the following error: $ sphinx-build -b html -d Doc/build3/doctrees -D

[issue10224] Build 3.x documentation using python3.x

2010-10-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +eric.araujo, georg.brandl ___ Python tracker <http://bugs.python.org/issue10224> ___ ___ Python-bugs-list mailin

[issue10224] Build 3.x documentation using python3.x

2010-10-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> d...@python components: +Build, Documentation nosy: +d...@python versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/issu

[issue10224] Build 3.x documentation using python3.x

2010-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I had some success after running 2to3 on Doc/conf.py and Doc/tools. The build succeeded, but I have not compared the output yet. Running doctest, however, still reported lots of errors and hang in turtle.rst. $ sphinx-build -b doctest -d Doc/build3

[issue10225] Fix doctest runable examples in python manual

2010-10-28 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : As noted in issue 10224, python 3.x documentation is not being built with python 3.x yet, so a simple cd Doc; make doctest does not work. However, hg trunk version os sphinx works with python 3.x and can be used to validate examples in ReST

[issue10225] Fix doctest runable examples in python manual

2010-10-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Build 3.x documentation using python3.x ___ Python tracker <http://bugs.python.org/issue10225> ___ ___ Pytho

[issue10225] Fix doctest runable examples in python manual

2010-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Oct 28, 2010 at 10:20 PM, Éric Araujo wrote: > > How do you replace “make doctest”? $ sphinx-build -b html -d Doc/build3/doctrees -D latex_paper_size= Doc Doc/build3/html but I had to run 2to3 on Doc/conf.py and Doc/tools

[issue10224] Build 3.x documentation using python3.x

2010-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Incremental build was not that successful. After editing Doc/faq/programming.rst, I get the following in the error log: # Sphinx version: 1.1pre # Python version: 3.2a3+.0 # Docutils version: 0.7 release # Jinja2 version: 2.5.5 Traceback (most recent

[issue10226] urlparse example is wrong

2010-10-28 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The following example in Doc/library/urlparse.rst is wrong >>> urlparse('www.cwi.nl:80/%7Eguido/Python.html') ParseResult(scheme='', netloc='', path='www.cwi.nl:80/%7Eguido/Python.html',

[issue10226] urlparse example is wrong

2010-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Looks like I've been beaten again by make doctest picking up older python, but something is not right here: In Python 2.6.5: >>> urlparse('www.cwi.nl:80/%7Eguido/Python.html') ParseResult(scheme='www.cwi.nl', netloc

[issue10226] urlparse example is wrong

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Oct 29, 2010 at 2:15 AM, Georg Brandl wrote: .. > I think this is correct: it is the new behavior after the fix for #754016 was > committed. > I agree. I kept the issue open because I cannot parse """ Otherwis

[issue10225] Fix doctest runable examples in python manual

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I started with 2.7 branch because some of the issues are the same there, but the tools work better at the moment. I a posting a work-in-progress patch to solicit early feedback. -- versions: +Python 2.7, Python 3.1

[issue10225] Fix doctest runable examples in python manual

2010-10-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +patch Added file: http://bugs.python.org/file19409/issue10225-r27.diff ___ Python tracker <http://bugs.python.org/issue10

[issue10225] Fix doctest runable examples in python manual

2010-10-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +d...@python ___ Python tracker <http://bugs.python.org/issue10225> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10225] Fix doctest runable examples in python manual

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a new patch which fixes all but two doctest examples. I suspect that the remaining failures are due to a bug in sphinx. (The examples are executed even though marked up with ::). -- stage: needs patch -> patch review Added f

[issue10224] Build 3.x documentation using python3.x

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The usual build process via Makefile still uses Python 2, > and that won't change for 3.2. Would you consider changing "doctest" make target to check out sphinx trunk (or 3.x compatible release) and run it with the py3k python? T

[issue10225] Fix doctest runable examples in python manual

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I started porting the patch to 3.x and it looks like I've uncovered another bug in sphinx: $ sphinx-build -b doctest -d build/doctrees . build/doctest library/traceback.rst .. **

[issue7061] Improve 24.5. turtle doc

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed issue7061a.diff r85930. This is probably a backport candidate. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7061] Improve 24.5. turtle doc

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: While working on issue 10225, I have found several mistakes in turtle.rst examples. It probably makes sense to review these separately and commit as part of this issue rather than bunching with the other issue 10225 changes. There are still two

[issue7061] Improve 24.5. turtle doc

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Gregor, I suspect that there are doctest mistakes in the turtle.py docstrings, but I cannot figure out how to run it through doctest. Can you help? -- ___ Python tracker <http://bugs.python.org/issue7

[issue7061] Improve 24.5. turtle doc

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As I suspected, the turtle.shapetransform() stems from sphinx' failure to reinitialize the turtle variable as testsetup dictates. I can work around this by adding >>> turtle = Turtle() above >>&g

[issue7061] Improve 24.5. turtle doc

2010-10-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Oct 30, 2010 at 8:27 PM, Terry J. Reedy wrote: .. > "version of python installed with Tk support.": cap 'python' to 'Python' > > Is there any standard on capitalizing 'Python'? It looks like it

[issue10199] Move Demo/turtle under Lib/

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Oct 27, 2010 at 2:37 PM, Gregor Lingl wrote: .. > Imho it is very important to clarify the name convention for demoscripts to > be added to the demo before committing > (or at least before the apperance of beta1). It decides about addin

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue10278> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Why does this need to be in stdlib? AFAICT, the proposed patch is just: if : wallclock = time.clock else: wallclock = time.time which is easy enough to stick in your measuring code or a project's utilities module. If others really want t

[issue10199] Move Demo/turtle under Lib/

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 86095. I included only those demo scripts that are described in the current manual. I am open to making further improvements prior to bata 1, and will open separate issues to track those. -- stage: commit review

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 1, 2010 at 1:43 PM, Antoine Pitrou wrote: .. > Well, the problem is that the "appropriate test" is not easy to guess a > priori, so it would > be useful for the stdlib to provide the right tool for the job. This soun

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Raymond, Did you mean to exclude unit test additions from your commit? See issue10221-with-tests.diff. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 1, 2010 at 2:13 PM, Raymond Hettinger wrote: .. > > We don't usually test the content of error messages because they are not a > guaranteed behavior. > I recall that when I asked about this on #python-dev, someone pointe

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 1, 2010 at 2:09 PM, Antoine Pitrou wrote: .. >> > Well, the problem is that the "appropriate test" is not easy to guess a >> > priori, so it would >> > be useful for the stdlib to provide the right tool f

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 1, 2010 at 2:09 PM, Antoine Pitrou wrote: .. > The problem is time.clock(), since it does two wildly different things > depending on the OS. > I would suggest to deprecate time.clock() at the same time as we add > time.wallcloc

[issue10289] Document magic methods called by built-in functions

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Éric, I just wanted to link to a related discussion we had under issue 8983. See msg107689. -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue10

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 2010/11/1 Kristján Valur Jónsson : .. > I put in the patch since it was quick to do, but I'll provoke a discussion > on python-ideas for now. I am looking forward to it. You may find reviewing the following issues helpful for your case: #

[issue10291] Clean-up turtledemo in-package documentation

2010-11-01 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Since after closing of issue #10199, docstrings in demo scripts are accessible to pydoc, it is important to bring them up to date. For example, turtledemo.wikipedia docstring contains a reference to nonexistent wikipedia1 and calls itself

[issue7061] Improve 24.5. turtle doc

2010-11-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch that adds a hack that allows to run turtle doctests using turtle.run_doctests() function. Running this function has revealed numerous mistakes in doctests that are corrected in the patch. The patch is against release27 branch

[issue1702036] Make Turtle thread-safe so it does not crash

2010-11-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I think threading is a red herring here. The issue is really a duplicate of #6639. -- nosy: +belopolsky status: open -> pending superseder: -> turtle: _tkinter.TclError: invalid command name &quo

[issue1702036] Make Turtle thread-safe so it does not crash

2010-11-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On a closer look at the first post, I see that there are two parts to the issue. The first is indeed a duplicate of #6639, but the second is thread related. I am attaching the OP's code in a script file for convenience. Running ninja.py

[issue10317] Add TurtleShell to turtle

2010-11-04 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : In r84640, Raymond added TurtleShell to the cmd module documentation as an example of a simple interpreter that can be written using that module. I propose adding this code to turtle.py and make it runnable as python -m turtle. -- components

[issue7061] Improve 24.5. turtle doc

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Nov 5, 2010 at 3:34 AM, Georg Brandl wrote: .. > Why shouldn't global function doctests be runnable? They should - I just couldn't figure out a better hack that would work for both mathods and functions. Note that functions are a

[issue10329] trace.py and unicode in Python 3

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't think trace.diff is proposed for commit. I see it more as a supporting file for diagnosing the problem. I see two problems here: 1. Apparently OP's system opens files with encoding set to 'ascii' by default. This is not th

[issue10317] Add TurtleShell to turtle

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Nov 5, 2010 at 1:18 PM, Éric Araujo wrote: .. > nosy: +eric.araujo Raymond has already rejected and closed this request, so I am not optimistic that anything will happen here. (I also understand that he feels rather strongly about this beca

[issue10317] Add TurtleShell to turtle

2010-11-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +gregorlingl ___ Python tracker <http://bugs.python.org/issue10317> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I wish I could test this patch but on OSX I get $ ./configure --without-threads $ make Traceback (most recent call last): File "/Users/sasha/Work/python-svn/py3k/Lib/site.py", line 519, in main() File "/Users/sasha/Work/pyth

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: dummy_threading feels a bit like black magic to me. What do you think about something like issue10330.diff attached. -- keywords: +patch Added file: http://bugs.python.org/file19512/issue10330.diff

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I'll commit tonight. BTW, on a without-threads build: >>> import dummy_threading >>> dummy_threading.settrace >>> dummy_threading.settrace.__module__ 'threading' In other words, dummy_threading.settrace is alw

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r86229, merged in r86231 (3.1) and r86233 (2.7). -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10329] trace.py and unicode in Python 3

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Nov 5, 2010 at 2:43 PM, Antoine Pitrou wrote: .. > Who are the consumers of the trace files? Is there a formal specification > or is Python the primary consumer? The trace files contain annotated python source code. There is no

[issue10329] trace.py and unicode in Python 3

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch, issue10329.diff fixes the issue by setting the encoding of the coverage file to that of the source file. I am not 100% happy with this patch for the following reasons: 1. It opens the source file one more time. This is probably

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-06 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Please run attached zip archive as a python script. Note that the problem is not specific for using __main__.py - any module that comes from a zip archive or loaded by a custom loader would show the same bug. $ unzip -l test.zip Archive: test.zip

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: +1 on adding the function. Note that it is useful for opening any text file with an encoding cookie, not only python source code, so "tokenize.open()" sounds attractive. Once we are at it, I would like to factor out and document code that ext

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Nov 6, 2010 at 12:15 PM, Éric Araujo wrote: .. >> so "tokenize.open()" sounds attractive. > Agreed, even though the docstring of tokenize does talk about Python code. I still like "tokenize.open()" more, but fo

[issue10329] trace.py and unicode in Python 3

2010-11-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Reopening as a reminder to add a unit test for this case. -- stage: needs patch -> unit test needed status: closed -> open ___ Python tracker <http://bugs.python.org/i

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a "proof of concept" patch. The trace code is in a dire need of restructuring to eliminate repeated reading of source files. -- keywords: +needs review, patch nosy: +eli.bendersky, terry.reedy stage: unit test neede

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue10342> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 7, 2010 at 8:47 PM, STINNER Victor wrote: > > STINNER Victor added the comment: > > +            try: > +                with open(filename, 'rb') as fp: > +                    encoding, _ = tokenize

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 7, 2010 at 8:59 PM, Brett Cannon wrote: > .. I don't quite see the point of the get_source call as it isn't returned or > used. It is passed to find_docstrings() to produce the &

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 7, 2010 at 4:24 AM, STINNER Victor wrote: .. > Ok, the new patch (tokenize_open-2.patch) uses tokenize.open() name and adds a > test for BOM without coding cookie (test utf-8-sig encoding). Here are my comments on the new patch: 1.

[issue10335] tokenize.open(): open a Python file with the right encoding

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Changing the title to make the latest choice of function name more visible. -- stage: -> patch review title: tokenize.open_python(): open a Python file with the right encoding -> tokenize.open(): open a Python file with the right encodin

[issue10224] Build 3.x documentation using python3.x

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As discussed on #python-dev, building 3.x documentation using python3.x will require Sphinx 1.1 which will not be released in time for 3.2. I am adding #10225 as a dependency because I feel that fixing actual errors in ReST doctests is more important

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue10366> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10371] Deprecate trace module undocumented API

2010-11-08 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Following python-dev discussion on the issue, I would like to propose trace-deprecations.diff patch for review. I would like to make these changes before turning to issue10342 which will require changing many of these APIs that take a source path to

[issue7061] Improve 24.5. turtle doc

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: >From IRC (raymondh): in the turtle docs, can you add a quick start guide (like we have in the unittest docs) the turtle docs have grown into a small book and is intimidating to get started with. -- nosy: +rhettin

[issue7061] Improve turtle module documentation

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- title: Improve 24.5. turtle doc -> Improve turtle module documentation ___ Python tracker <http://bugs.python.org/iss

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Deprecate trace module undocumented API ___ Python tracker <http://bugs.python.org/issue10342> ___ ___ Pytho

[issue7061] Improve turtle module documentation

2010-11-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file19558/turtle-star.png ___ Python tracker <http://bugs.python.org/issue7061> ___ ___ Python-bug

<    1   2   3   4   5   6   7   8   9   10   >