[issue9527] Add aware local time support to datetime module

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Would anyone like to review this? The Rietveld link works (thanks Martin!) and I would like to get some feedback on the python version before I invest effort into coding this in C. -- ___ Python tracker

[issue9183] Intern UTC timezone

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85485. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue9183> ___ ___ Python-

[issue4086] support %z format in time.strftime and _strptime?

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Closing as a duplicate of (closed) issue 6641. time.strftime appears to support %z on the platforms that support it in C strftime: >>> time.strftime("%z", time.localtime()) '-0400' -- dependencies: -No obvious an

[issue9013] Implement tzinfo.dst() method in timezone

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: After thinking some more about this issue, I am going to withdraw this proposal. If we want to support storing dst flag in datetime instances, it should be stored in the datetime object itself, not in tzinfo. See http://mail.python.org/pipermail

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching an updated patch, issue9308b.diff. Compared to the "a" patch, I added test/encoded_modules to the makefile so that it gets installed and removed cookies from some more test and Tools files. -- Added file: http://bugs.

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85537. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue9308> ___ ___ Python-

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Tools/scripts/reindent.py -d Lib/test/encoded_modules/module_koi8_r.py Traceback (most recent call last): File "Tools/scripts/reindent.py", line 310, in main() File "Tools/scripts/reindent.py", line 93, in main chec

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +christian.heimes, flox, tim_one ___ Python tracker <http://bugs.python.org/issue10117> ___ ___ Python-bugs-list mailin

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have verified that the original issue is still present. I will try to narrow it down to a smaller test case. -- ___ Python tracker <http://bugs.python.org/issue9

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have found the cause of at least part of the issue. Apparently, module level statements for some of the modules such as pickle do not show up in trace because they are imported by trace itself. In other words, by the time traced script gets

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Oct 16, 2010 at 1:34 PM, R. David Murray wrote: .. > I yhink you need to add an svnignore property to that directory for > __pycache__. r85576 (I hope I got it right.) -- ___ Python tracker

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 8:45 AM, Benjamin Peterson wrote: .. > No, negative values have to be allowed. > Why? As far as I can tell, negative values are only used as sentinels and we can use say (size_t)-1 instead of -1L. Are there cases wher

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 9:59 AM, Antoine Pitrou wrote: .. >> Why?  As far as I can tell, negative values are only used as sentinels >> and we can use say (size_t)-1 instead of -1L. > > You can, except that changing the sentinel value w

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Issue #9778 makes this out of date. -- assignee: tim_one -> belopolsky nosy: -BreamoreBoy resolution: -> out of date status: open -> pending superseder: -> Make hash values the same width as a pointer (o

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85695. Leaving open to discuss whether anything can/should be done for the case when reindent acts as an stdin to stdout filter. Also, what is the policy on backporting Tools' bug

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 11:17 AM, Sebastian Ramacher wrote: .. > Any news on that? Is this patch still relevant for 3.2? It looks like const has been added when char* was changed to wchar_t* in the affected functions. See r62

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In fact, it looks like const has been added in py3k as early as r57439. I am resetting "versions" to 2.7, but I am -0 on backporting. I am also unselecting "type" because with "feature request" type this should be closed

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 11:27 AM, Antoine Pitrou wrote: .. >> The benefit, though is that >> hash computations can be performed natively on the hash values without >> casting to an unrelated type. > > I don't understand

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Oct 17, 2010 at 3:54 PM, Boštjan Mejak wrote: .. > About the  if year == 0  check... Well, read Wikipedia's article   > http://en.wikipedia.org/wiki/0_(year)  which clearly > states that "Year zero does not exist in the wi

[issue10138] calendar module does not support years outside [1, 9999] range

2010-10-18 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Documentation for the calendar module says: """ Most of these functions and classes rely on the datetime module which uses an idealized calendar, the current Gregorian calendar indefinitely extended in both directions. "&quo

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 1:25 PM, Case Van Horsen wrote: .. > We either needed to (1) add an unsigned Py_hash_t type or (2) just use size_t > and Py_ssize_t. > Option (2) may actually be preferable because dict and set implementations rely on

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The most pedantic implementation of calendar.isleap() would be from datetime import date, timedelta def isleap(year): return date(year, 3, 1) - date(year, 2, 1) == timedelta(29) Since python calendar only supports years in the range [1, ], the

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't think anything good will come out of this. Closing as "rejected." -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bu

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19267/unnamed ___ Python tracker <http://bugs.python.org/issue10073> ___ ___ Python-bugs-list m

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19268/unnamed ___ Python tracker <http://bugs.python.org/issue10073> ___ ___ Python-bugs-list m

[issue9344] please add posix.getgrouplist()

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't see how this difference is relevant for exposing the functionality in python: Linux: int getgrouplist(const char *user, gid_t group, gid_t *groups, int *ngroups); MacOS: int getgrouplist(const char *name

[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 a simpler and hopefully more revealing test, speed_test.py. This test repeatedly draws a full circle at various speeds and prints the time spent. Here is the result: # python3.1 speed_test.py 0: 0.03 1: 6.61

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

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

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19283/unnamed ___ Python tracker <http://bugs.python.org/issue10073> ___ ___ Python-bugs-list m

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Oct 19, 2010 at 12:34 PM, Boštjan Mejak wrote: > I have also written a typo report. But > got rejected. No one listens to my ideas. So why do you have a bug tracker > anyway? Bug tracker is not the place to discuss ideas. We have pyt

[issue1528363] forward in turtle module may cause incorrect display

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I cannot reproduce this on OSX. I have verified that the turtle position is correct (-70.00,30.00) after the steps reported by OP. This must be out of date. -- nosy: +belopolsky resolution: -> out of date stage: unit test needed -> com

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed the docstring patch in r85725. -- ___ Python tracker <http://bugs.python.org/issue10073> ___ ___ Python-bug

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

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like this has been fixed in turtle 1.1. See r72318 and issue 5923. -- nosy: +belopolsky, georg.brandl resolution: -> out of date stage: -> committed/rejected status: open -> pending _

[issue7061] Improve 24.5. turtle doc

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > It seems that 'add=False' would be same as 'add=None' and more > consistent with below. The add argument is passed unchanged to canvas' bind method which is documented as taking either '' or '+' s

[issue7061] Improve 24.5. turtle doc

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed some of the simpler fixes in r85732. > ?? Unclear how [delay()] interacts with turtle.speed Unclear indeed. See issue 3062. -- ___ Python tracker <http://bugs.python.org/iss

[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:

[issue10167] ESET Torgan Alert [python-3.1.2.amd64 ON Win7-64]

2010-10-21 Thread Alexander Collins
New submission from Alexander Collins : While trying to install 3.1.2 on my windows 7. I was faced with a Trojan alert from my ESET "NOD32" anti-virus. The link to the file: http://www.python.org/ftp/python/3.1.2/python-3.1.2.amd64.msi A snapshot is attached. Windows 7 x64

[issue10167] ESET Trojan Alert [python-3.1.2.amd64 ON Win7-64]

2010-10-21 Thread Alexander Collins
Alexander Collins added the comment: Checksum matches. I am not sure why did it detect that. The AV report: ( I shoulda posted that earlier -_-') //- Report starts ... 10/21/2010 11:54:12 AM Real-time file system protection file C:\Windows\Installer\{D40AF016-506C-43FB

[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

[issue10167] ESET Trojan Alert [python-3.1.2.amd64 ON Win7-64]

2010-10-21 Thread Alexander Collins
Alexander Collins added the comment: I'll attempt to contact my anti-virus provider and see what they have to say about that. -- ___ Python tracker <http://bugs.python.org/is

[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

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