[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

[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

[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

[issue20689] socket.AddressFamily is absent in html pydoc

2014-05-24 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: Added file: http://bugs.python.org/file35337/socket.SocketType.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20689 ___

[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 Serhiy Storchaka
Serhiy Storchaka added the comment: Try ./python -m pydoc -w socket. -- Added file: http://bugs.python.org/file35338/socket.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20689 ___

[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

[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

[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 stdin, line 1, in module File mtrand.pyx, line 3218, in mtrand.RandomState.triangular

[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 rep...@bugs.python.org http://bugs.python.org/issue15809

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue8243 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org

[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), I

[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 rep...@bugs.python.org http://bugs.python.org/issue21569

[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 rep...@bugs.python.org http://bugs.python.org/issue20269 ___

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

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() currentDateTime =

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue21235

[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 rep...@bugs.python.org http://bugs.python.org/issue21570

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

2014-05-24 Thread Brandon
Changes by Brandon x...@codeslum.org: -- resolution: - not a bug ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21570 ___ ___ Python-bugs-list

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

[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 rep...@bugs.python.org

[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. Tests

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

[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 rep...@bugs.python.org http://bugs.python.org/issue21555

[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 rep...@bugs.python.org http://bugs.python.org/issue20177

[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

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

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

2014-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21402 ___ ___

[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. What do you

[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

[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

[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 rep...@bugs.python.org

[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 j...@jcea.es: -- resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21562 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue15293

[issue21534] 404 on documentation download links

2014-05-24 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21534 ___

[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

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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue21572 ___ ___ Python-bugs-list mailing list

[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

[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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue21572 ___

[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

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

[issue21573] Clean up turtle.py code formatting

2014-05-24 Thread Lita Cho
Changes by Lita Cho lita@gmail.com: -- nosy: +Lita.Cho ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21573 ___ ___ Python-bugs-list mailing

[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

[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

[issue21573] Clean up turtle.py code formatting

2014-05-24 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +gregorlingl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21573 ___ ___ Python-bugs-list mailing list

[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 rep...@bugs.python.org http://bugs.python.org/issue21573 ___