[issue21573] Clean up turtle.py code formatting

2014-05-24 Thread Lita Cho
Lita Cho added the comment: I'm claiming this ticket. Plan to work on it during my OPW internship. -- ___ Python tracker ___ ___ Pytho

[issue21573] Clean up turtle.py code formatting

2014-05-24 Thread Ned Deily
Changes by Ned Deily : -- nosy: +gregorlingl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21571] Python build should check CPATH, C_INCLUDE_PATH for module dependencies

2014-05-24 Thread Ned Deily
Ned Deily added the comment: setup.py already does that but only for builds on OS X (darwin); see http://hg.python.org/cpython/file/default/setup.py#l539. The comments there suggest to me that the code was made conditional to OS X to avoid introducing regressions in builds on other platforms.

[issue17095] Modules/Setup *shared* support broken

2014-05-24 Thread Ned Deily
Ned Deily added the comment: Your original patch LGTM. However, since it was written, Setup *shared* support became even more broken due to changes in Makefile macros. Attached is an updated patch. I've never tried customizing Setup before so I don't have a lot of confidence that it now wor

[issue21573] Clean up turtle.py code formatting

2014-05-24 Thread Lita Cho
Changes by Lita Cho : -- nosy: +Lita.Cho ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue21559] OverflowError should not happen for integer operations

2014-05-24 Thread theme
theme added the comment: skrah: I am not sure what link are you referring to. However, no matter which link you are talking about, the documentation still doesn't match the behavior no matter how you interpret it. Some possible interpretations of the documentation on OverflowError: - OverflowE

[issue21573] Clean up turtle.py code formatting

2014-05-24 Thread Jessica McKellar
New submission from Jessica McKellar: Lib/turtle.py has some code formatting issues. Let's clean them up to make the module easier to read as interns start working on it this summer. Specifically: 1. Run turtle.py through a pep8 checker and fix the issues that are reasonable to fix. 2. Run tu

[issue21572] Use generic license web page rather than requiring release-specific license pages

2014-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sounds like a pretty obvious improvement. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-li

[issue21477] Idle: improve idle_test.htest

2014-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just discovered today that Rietveld can do diffs between diffs, so to speak. For example, http://bugs.python.org/review/21477/diff2/11941:11942/Lib/idlelib/idle_test/htest.py showed the changes between patched htest in 3.4 and 2.7. -- __

[issue7094] Add alternate float formatting styles to new-style formatting.

2014-05-24 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to go ahead and close this. Alternate formatting was added to float and complex. I think leaving this issue open just confuses whether or not that support was added. I know I had to go back and double check. Since decimal never participated in %-forma

[issue17172] Add turtledemo to IDLE menu

2014-05-24 Thread Lita Cho
Lita Cho added the comment: I did not know that NEWS items should not be edited unless it is about to be committed. The previous comments suggested to put it in. Thank you for the feedback. I can move the Turtle Demp into the Help Menu rather than the File menu. I agree that it seems out of p

[issue21572] Use generic license web page rather than requiring release-specific license pages

2014-05-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Big +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21572] Use generic license web page rather than requiring release-specific license pages

2014-05-24 Thread Ned Deily
New submission from Ned Deily: Currently the "license" command for the interactive interpreter falls back to attempting to download a release-specific license URL if LICENSE.txt is not found locally. This adds the requirement to the release process to create a release-specific license file fo

[issue21477] Idle: improve idle_test.htest

2014-05-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ece24bcd1a6f by Terry Jan Reedy in branch '2.7': Issue #21477: Idle htest: merge and modify run and runall; add many tests. http://hg.python.org/cpython/rev/ece24bcd1a6f New changeset 038cbbef4539 by Terry Jan Reedy in branch '3.4': Issue #21477: Id

[issue21477] Idle: improve idle_test.htest

2014-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I wanted to get this large patch applied as a basis for further work, I went ahead with the 2.7 backport. I am listing the issues in converting run-runall-34.diff to run-runall-27.diff to help Saimadhav do this in the future. 1. /tkinter/Tkinter/ 7 plac

[issue21534] 404 on documentation download links

2014-05-24 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue15293] AST nodes do not support garbage collection

2014-05-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: How are you reproducing the bug? In Python 2, the AST base class doesn't have a __dict__, and it's subtypes do support GC. -- ___ Python tracker ___

[issue21332] subprocess bufsize=1 docs are misleading

2014-05-24 Thread akira
akira added the comment: > The short answer is: no, you don't have to make you thread thread > safe, as long as it can reliably run even in the presence of > background threads (like the tkinter threads Victor mentions). https://mail.python.org/pipermail/python-dev/2014-May/134541.html It seems

[issue21562] curses getsxy() should be curses getxy() in https://docs.python.org/3/library/curses.html#curses.cursxy

2014-05-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue21562] curses getsxy() should be curses getxy() in https://docs.python.org/3/library/curses.html#curses.cursxy

2014-05-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Python 3.5. File "_cursesmodule.c", line 3522. Marking this bug as invalid. Please, reopen if you think I am mistaken. -- assignee: docs@python -> jcea nosy: +jcea ___ Python tracker

[issue21571] Python build should check CPATH, C_INCLUDE_PATH for module dependencies

2014-05-24 Thread Jan Kanis
New submission from Jan Kanis: When building, pythons setup.py tries to find external sources for optional modules such as ssl, sqlite, etc. For that it searches the CFLAGS environment variable for -I options. C compilers such as gcc and clang also interpret CPATH and C_INCLUDE_PATH as extra s

[issue21477] Idle: improve idle_test.htest

2014-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: run-runall.diff import cleanly to 3.4. Running all the tests works well enough that I am applying this, with minor changes, to be a base for further patches. Good job. The few problems I fixed: 1. AutoCompleteWindow.py had \n added at the beginning. I just del

[issue18695] os.statvfs() not working well with unicode paths

2014-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > > You have eaten "return NULL;" in posix_mkfifo. > What do you mean? You deleted "return NULL;" after "if (!PyArg_ParseTuple(...))" in the posix_mkfifo() function. > > Tests should check that results for unicode filename is same as for str > > filename. >

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, if we allow to change signature of theses functions, here is a patch which fixes _list_from_layouttuple and _val_or_dict and rewrites tests. Mocked TkApp is used because test_functions should run without the gui resource enabled. -- keywords:

[issue21550] Add Python implementation of the tar utility

2014-05-24 Thread Éric Araujo
Éric Araujo added the comment: IIRC, when the tarfile module CLI was added, there was a decision to keep it short and simple, not mimic the whole tar(1) interface. Python core ships with modules that should be featurefull, but we don’t put much focus or effort on general utilities: the only gl

[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2014-05-24 Thread Nikolaus Rath
Nikolaus Rath added the comment: Tal, I was referring to this mail: https://mail.python.org/pipermail/python-dev/2014-January/132066.html -- ___ Python tracker ___ _

[issue21555] gcmodule.c could use pytime.h

2014-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed. Thank you for contributing, Geoffrey! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue21555] gcmodule.c could use pytime.h

2014-05-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset d151ee749f5a by Antoine Pitrou in branch 'default': Issue #21555: simplify code in gcmodule.c by using the pytime.h functions instead of trying to call time.time() via the C API. http://hg.python.org/cpython/rev/d151ee749f5a -- nosy: +pytho

[issue18695] os.statvfs() not working well with unicode paths

2014-05-24 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Ok, I will go on then. > You have eaten "return NULL;" in posix_mkfifo. What do you mean? > If TESTFN_UNICODE.encode(TESTFN_ENCODING) fails (on POSIX locale), it will be > better to run tests with > unicode(TESTFN, 'ascii') than skip them. Agreed. > Tes

[issue21555] gcmodule.c could use pytime.h

2014-05-24 Thread Geoffrey Spear
Geoffrey Spear added the comment: Per pitrou's suggestion, eliminate get_time altogether and use _PyTime_INTERVAL macro. -- Added file: http://bugs.python.org/file35340/issue21555-3.patch ___ Python tracker __

[issue20383] Add a keyword-only spec argument to types.ModuleType

2014-05-24 Thread Nick Coghlan
Nick Coghlan added the comment: I'd ask "Why not a class method?", but I already know the answer (types.ModuleType is implemented in C, so it would be unnecessarily painful to implement it that way). Given that, the utility function approach sounds good to me. --

[issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread Brandon
Changes by Brandon : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread Brandon
Brandon added the comment: Type returned as datetime, I was not familiar with the MySQLdb code. Sorry for the bad report. -- status: open -> closed ___ Python tracker ___ __

[issue21235] importlib's spec module create algorithm is not exposed

2014-05-24 Thread Brett Cannon
Brett Cannon added the comment: Issue #20383 is tracking adding an API to simply getting the proper module and having it be initialized. -- ___ Python tracker ___ __

[issue20383] Add a keyword-only spec argument to types.ModuleType

2014-05-24 Thread Brett Cannon
Brett Cannon added the comment: Nope, I commented where I meant to. I wanted a way to promote people to **always** create modules with properly initialized attributes while also dealing with the module creation dance at the same time. Otherwise it will require expanding the API of types.Module

Re: [issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread M.-A. Lemburg
On 24.05.2014 15:55, Brandon wrote: > > Observe the following code: > > import MySQLdb, MySQLdb.cursors, datetime > """ ... mysqlCursor is a cursor object from a connection to database from the > MySQLdb module ... """ > mysqlCursor.execute("SELECT NOW()") > timeRow = mysqlCursor.fetchall() > cu

[issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread Brandon
New submission from Brandon: Observe the following code: import MySQLdb, MySQLdb.cursors, datetime """ ... mysqlCursor is a cursor object from a connection to database from the MySQLdb module ... """ mysqlCursor.execute("SELECT NOW()") timeRow = mysqlCursor.fetchall() currentDateTime = datetime

[issue20269] Inconsistent behavior in pdb when pressing Ctrl-C

2014-05-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch with a test case. -- Added file: http://bugs.python.org/file35339/sigint_2.patch ___ Python tracker ___ __

[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-05-24 Thread Nick Coghlan
Nick Coghlan added the comment: Added Brett to the nosy list for feedback, since the porting guide is mostly his work. -- nosy: +brett.cannon ___ Python tracker ___

[issue18695] os.statvfs() not working well with unicode paths

2014-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: BDFL says (http://permalink.gmane.org/gmane.comp.python.devel/146074): """Given that the claim "Python 2 doesn't support Unicode filenames" is factually incorrect (in Python 2.7, most filesystem calls in fact do support Unicode, at least on some platforms),

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2014-05-24 Thread Stefan Krah
Stefan Krah added the comment: Hi Andrew. Did you by any chance sign the contributor agreement? [It's perfectly okay if you don't want to, but then we cannot use the patch from #20230.] -- ___ Python tracker _

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2014-05-24 Thread Georg Brandl
Georg Brandl added the comment: you WILL pick up, of course. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2014-05-24 Thread Georg Brandl
Georg Brandl added the comment: Knowledge of RST should be more than enough; there is not much Sphinx-specific markup, and even that you won't pick up easily while looking at the file. -- nosy: +georg.brandl ___ Python tracker

[issue15809] 2.7 IDLE console uses incorrect encoding.

2014-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Only ufix_utf8 (with the utf-8 encoding of stdin/stdout/stderr) and ufix_locale (with hacked tracebacks) make sense. -- ___ Python tracker __

[issue13355] random.triangular error when low = high=mode

2014-05-24 Thread Stefan Krah
Stefan Krah added the comment: While NumPy is of course not normative, this is what they do: >>> numpy.random.triangular(left=1, right=2, mode=0) Traceback (most recent call last): File "", line 1, in File "mtrand.pyx", line 3218, in mtrand.RandomState.triangular (numpy/random/mtrand/mtran

[issue21559] OverflowError should not happen for integer operations

2014-05-24 Thread Stefan Krah
Stefan Krah added the comment: OverflowError vs. ValueError is a debatable issue (msg215873). In my view ValueError should be raised in most of the cases. I do not see anything wrong with the docs though, since the link you posted talks about "arithmetic operations". -- nosy: +skrah __

[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-05-24 Thread Nick Coghlan
New submission from Nick Coghlan: Some proposed changes to the introductory section of the Python 2.7 What's New document. Key changes: * I updated the Future of Python 2.x section to describe the status quo, rather than preserving the original speculation from 2010 * I added a new section to

[issue20689] socket.AddressFamily is absent in html pydoc

2014-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Try "./python -m pydoc -w socket". -- Added file: http://bugs.python.org/file35338/socket.html ___ Python tracker ___

[issue20689] socket.AddressFamily is absent in html pydoc

2014-05-24 Thread Berker Peksag
Berker Peksag added the comment: I couldn't reproduce this issue. I'm attaching HTML output of both socket.AddressFamily and socket.SocketType enum types. -- nosy: +berker.peksag Added file: http://bugs.python.org/file35336/socket.AddressFamily.html

[issue20689] socket.AddressFamily is absent in html pydoc

2014-05-24 Thread Berker Peksag
Changes by Berker Peksag : Added file: http://bugs.python.org/file35337/socket.SocketType.html ___ Python tracker ___ ___ Python-bugs-list mai

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2014-05-24 Thread Jessica McKellar
Jessica McKellar added the comment: Some IRC discussion about what contributors should do while this is unresolved, and the bigger plan for comprehensively addressing this: 01:53 < ned_deily> jesstess, saw your nosy on Issue17496. Beware that it's really a can of worms and definitely was misc

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2014-05-24 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Note that defaulting to unsafe math in extensions will make *their* use of the Py_NAN macro break under icc. If we go that route ("-fp-model strict" for Python build, but not for extensions), we should also apply the attached patch that defines Py_NAN as Py_HU

[issue17172] Add turtledemo to IDLE menu

2014-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: My thoughts on this. Overall, +.something (and increasing as I look at it more ;-). I am opposed to adding this to the relatively long file menu. It has nothing to do with manipulating or editing files. If it is to go in, please put it on the help menu, at le