Re: About the implementation of del in Python 3

2017-07-07 Thread Ian Kelly
On Fri, Jul 7, 2017 at 8:41 AM, Nathan Ernst wrote: > Looks like single expression statements are handled a bit differently than > multiple expression statements: > > Python 3.5.2 (default, Nov 17 2016, 17:05:23) > [GCC 5.4.0 20160609] on linux > Type "help", "copyright",

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Berker Peksag
Berker Peksag added the comment: > So we have version 0x502 without libedit emulation succeeding on > FreeBSD 9.x, and failing on 10.x. test_history_size() fails on FreeBSD 9.x too: == FAIL: test_history_size

Re: About the implementation of del in Python 3

2017-07-07 Thread Ian Kelly
On Thu, Jul 6, 2017 at 12:56 PM, Nathan Ernst wrote: > In Python, "==" is not a reference equality operator (and I hate Java for > their misuse of the operator), so I absolutely disagree with using the Java > description to describe Python's "==" operator, primarily

[issue30511] shutil.make_archive should not need to chdir (alternatively: make shutil.make_archive thread-safe)

2017-07-07 Thread Joey Harrington
Joey Harrington added the comment: It would be nice if there was at least a warning in the docs that make_archive is not thread-safe, and that if you have two threads creating archives that it's extremely likely you'll get erroneous results since the race condition lasts for the entire

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since some changes looks worse than the old code to me (see my comments on GitHub), I have created PR 2624 which reverts changes with which I disagree or applies alternate changes. -- resolution: fixed -> stage: resolved -> patch review status:

Re: About the implementation of del in Python 3

2017-07-07 Thread Random832
On Fri, Jul 7, 2017, at 10:41, Nathan Ernst wrote: > Looks like single expression statements are handled a bit differently > than > multiple expression statements: > > Python 3.5.2 (default, Nov 17 2016, 17:05:23) > [GCC 5.4.0 20160609] on linux > Type "help", "copyright", "credits" or "license"

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread Guido van Rossum
Guido van Rossum added the comment: IMO you haven't demonstrated a need, you are just complaining that you don't like it. -- ___ Python tracker ___

Re: how to get partition information of a hard disk with python

2017-07-07 Thread Tim Chase
Strange. The OP's message didn't make it here, but I'm seeing multiple replies > On Wednesday, September 22, 2010 at 4:01:04 AM UTC+5:30, Hellmut > Weber wrote: > > Hi list, > > I'm looking for a possibility to access the partiton inforamtion > > of a hard disk of my computer from within a

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread Yury Selivanov
Yury Selivanov added the comment: I looked at the PR and it looks good. The intent is also clear. But the idea of delaying exceptions in StreamReader read methods still feels finicky. To go forward with this we need more examples than just nodejs. And it doesn't really matter what trio and

Re: Check Python version from inside script? Run Pythons script in v2 compatibility mode?

2017-07-07 Thread eryk sun
On Fri, Jul 7, 2017 at 7:53 AM, Steve D'Aprano wrote: > On Fri, 7 Jul 2017 04:30 pm, Ben S. wrote: > >> Is there a way to execute a python script with v3 python engine in v2 >> compatibility mode? I am thinking about a command parameter like (python.exe >> is v3.*): >>

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I extracted the cases that really can happen in PR 2623. -- assignee: -> serhiy.storchaka resolution: fixed -> stage: resolved -> status: closed -> open versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread pfreixes
pfreixes added the comment: I would like to focus the issue as was initially described, Im still convinced that this is a buggy behaviour. As has been seen other systems such as python sync or nodejs behaves as is expected. This last one is IMHO something that can be skipped. Im wondering how

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30788] email.policy.SMTP.fold() issue for long filenames with spaces

2017-07-07 Thread Joel Hillacre
Changes by Joel Hillacre : -- pull_requests: +2688 ___ Python tracker ___ ___

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-07 Thread Charles Wohlganger
Charles Wohlganger added the comment: Progress Update: I've moved all of the basic functionality of the extensions into the regular parts of IDLE, including menus and keyboard shortcuts. parenmatch and codecontext have all of their settings now in the Highlighting settings tab. I have added

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread pfreixes
pfreixes added the comment: fair enough. I'm out with few chances to grab a computer. I'll be back in a week with more information. El 07/07/2017 20:14, "Yury Selivanov" escribió: > > Yury Selivanov added the comment: > > I looked at the PR and it looks good. The

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Berker Peksag
Berker Peksag added the comment: According to https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES, the history-size setting was added in readline 6.0: e. A new user-settable variable, `history-size', allows setting the maximum number of entries in the history list. The only

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2689 ___ Python tracker ___ ___

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Nir Soffer
Changes by Nir Soffer : -- pull_requests: +2687 ___ Python tracker ___ ___ Python-bugs-list

[issue30858] Keyword can't be an expression?

2017-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I prefer the current error message and my students don't seem to have issues with it. No matter what wording we put in, someone will always find a way to misread it, in part because the "end6 + end=' '" example isn't a simple mistake, it reflects

Re: About the implementation of del in Python 3

2017-07-07 Thread Random832
On Fri, Jul 7, 2017, at 04:12, Gregory Ewing wrote: > Only if you interpret the word "address" very narrowly. > > By the way, even the low-level notion of "address" that C > programs deal with is, on most modern hardware, a *virtual* > address that goes through a level of translation before it >

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Nir Soffer
Nir Soffer added the comment: So we have version 0x502 without libedit emulation succeeding on FreeBSD 9.x, and failing on 10.x. I think we are missing something, or maybe the libedit check is wrong. We need results from all builders to do something with this. I think at least for now we want

[issue30553] Add HTTP Response code 421

2017-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue30809] IDLE parenmatch - highlighting options

2017-07-07 Thread Charles Wohlganger
Charles Wohlganger added the comment: I've rolled pretty much all this was going to do, other than underlining and font work into #27099. Trying to bring parenmatch into main otherwise would have been just as much of a hassle. -- ___ Python tracker

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2690 ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 349abd9e37dfdc077bc21f19e6ed2292c767f0e8 by terryjreedy in branch 'master': bpo-30779: IDLE -- Factor ConfigChanges class from configdialog, put in config; test. (#2612)

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2691 ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset edc034221f878b437748cef0f05c782d8190499d by terryjreedy in branch '3.6': [3.6] bpo-30779: IDLE -- Factor ConfigChanges class from configdialog, put in config; test. (GH-2612) (#2625)

[issue30837] Mac OS High Sierra Beta - Python Crash

2017-07-07 Thread Ned Deily
Ned Deily added the comment: I agree with Ronald. Feel free to reopen if a reproducible test case can be supplied and duplicated with, say, a python.org Python. We still may not be able to do much about it other than suggest avoiding the proxy lookup. -- resolution: -> third party

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: My second patch did fix that. I think I will extract that part immediately. -- ___ Python tracker ___

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Why do you think that adding an unnecessary list comprehension around tuple() > call makes them better? I just restore the original code because I don't think the changes make it better. > Also, I don't think you should be able to override and revert all

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2693 ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 24f2e19d68cc6ca563d2be5944d11d5f55a46918 by terryjreedy in branch 'master': bpo-30779: News (#2627) https://github.com/python/cpython/commit/24f2e19d68cc6ca563d2be5944d11d5f55a46918 -- ___ Python

Re: Python3 : import

2017-07-07 Thread Andrew Z
On Friday, July 7, 2017 at 4:00:51 PM UTC-4, Andrew Z wrote: > this has bee driving me nutz for the past few hours. > 2 modules are in the same directory. I want to be able to use them both: > > [code] > > [az@hp tst1]$ pwd > /home/az/Dropbox/work/Prjs/tst1 > > [az@hp tst1]$ ls -l > total 16 >

Python3 : import

2017-07-07 Thread Andrew Z
this has bee driving me nutz for the past few hours. 2 modules are in the same directory. I want to be able to use them both: [code] [az@hp tst1]$ pwd /home/az/Dropbox/work/Prjs/tst1 [az@hp tst1]$ ls -l total 16 -rw-rw-r--. 1 az az 66 Jul 7 12:58 db.py -rw-rw-r--. 1 az az 182 Jul 7 15:54

[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-07 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2692 ___ Python tracker ___ ___

[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-07 Thread Cheryl Sabella
Cheryl Sabella added the comment: Created the pull request so it's ready once the tests are available. -- ___ Python tracker ___

Re: Check Python version from inside script? Run Pythons script in v2 compatibility mode?

2017-07-07 Thread Ian Kelly
On Fri, Jul 7, 2017 at 3:49 PM, wrote: > Is there any particular reason the Windows python does it that way? > Certainly it wouldn't be too difficult to include a "python2.exe" and > "python3.exe", even as symbolic links. Windows associates file types with applications

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: > GetUserCfgDir() is called in three places, (buried in one of Mark's posts). > On the fact of it, this seems like something that should be fixed. -- ___ Python tracker

[issue30869] regrtest: Add .idlerc to saved_test_environment

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current tests do not write anything. But IDLE currently requires the existence of .idlerc to run, and tries to write it if not found. Changing this requirement without disabling multiple features would not be trivial. On possibility might be to replace

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Why do you think that adding an unnecessary list comprehension around tuple() call makes them better? Also, I don't think you should be able to override and revert all the judgments I made when carefully reviewing all the OP's PR. You are NOT the sole

Re: Python3 : import

2017-07-07 Thread Andrew Z
On Friday, July 7, 2017 at 4:00:51 PM UTC-4, Andrew Z wrote: > this has bee driving me nutz for the past few hours. > 2 modules are in the same directory. I want to be able to use them both: > > [code] > > [az@hp tst1]$ pwd > /home/az/Dropbox/work/Prjs/tst1 > > [az@hp tst1]$ ls -l > total 16 >

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, thank you for reviewing. I am answering the question about #30868 on that issue. I did not want to immediately test user parser Save() calls in the .save_all test for two reasons. 1. I want to first reconsider the general question what to do about

Windows: python3.exe missing

2017-07-07 Thread Andrew Pennebaker
Could the Windows installer for Python 3 provide a "python3" command, such as a python3.bat or python3.exe file, to help with scripts that rely on the interpreter being called "python3"? The py launcher is somewhat helpful, but a proper python3 runnable is preferable. --

Re: Check Python version from inside script? Run Pythons script in v2 compatibility mode?

2017-07-07 Thread sohcahtoa82
On Friday, July 7, 2017 at 11:58:33 AM UTC-7, eryk sun wrote: > On Fri, Jul 7, 2017 at 7:53 AM, Steve D'Aprano > wrote: > > On Fri, 7 Jul 2017 04:30 pm, Ben S. wrote: > > > >> Is there a way to execute a python script with v3 python engine in v2 > >> compatibility

Re: Check Python version from inside script? Run Pythons script in v2 compatibility mode?

2017-07-07 Thread Rick Johnson
On Friday, July 7, 2017 at 2:54:04 AM UTC-5, Steve D'Aprano wrote: > [...] That's now not only backwards compatible, but it is > forward compatible: if Python changes in the future to > bring reduce back into the built-in functions, your code > will automatically keep working. If python starts

Re: Python3 : import

2017-07-07 Thread Ian Kelly
On Fri, Jul 7, 2017 at 2:00 PM, Andrew Z wrote: > [az@hp tst1]$ python3 ./uno.py > Traceback (most recent call last): > File "./uno.py", line 1, in > from . import db > SystemError: Parent module '' not loaded, cannot perform relative import That error message is a bit

Re: Python3 : import

2017-07-07 Thread Andrew Z
On Friday, July 7, 2017 at 4:16:38 PM UTC-4, Ian wrote: > On Fri, Jul 7, 2017 at 2:00 PM, Andrew Z wrote: > > [az@hp tst1]$ python3 ./uno.py > > Traceback (most recent call last): > > File "./uno.py", line 1, in > > from . import db > > SystemError: Parent module '' not

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 9d8abf31c430dd83d073660cc92f1fe4ca6f2cd4 by terryjreedy in branch '3.6': [3.6] bpo-30779: News (GH-2627) (#2630) https://github.com/python/cpython/commit/9d8abf31c430dd83d073660cc92f1fe4ca6f2cd4 --

[issue30825] csv.Sniffer does not detect lineterminator

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed ___ Python tracker ___ ___

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset c794b643c9172d69afa46f85982befd82511d9df by Ned Deily (Victor Stinner) in branch '3.6': bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) (#2456) https://github.com/python/cpython/commit/c794b643c9172d69afa46f85982befd82511d9df --

[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset a9b16cff35811f88cdfeb4f50758140dfff36ebc by Ned Deily (Serhiy Storchaka) in branch '3.6': [3.6] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2360)

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset 5777e79ecbd1f2adf36456e09f210608ee221691 by Ned Deily (Victor Stinner) in branch '3.6': [3.6] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2349) https://github.com/python/cpython/commit/5777e79ecbd1f2adf36456e09f210608ee221691

[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset bdabd7666032ce356d550da21c35e4bee5b3448c by Ned Deily in branch '3.6': bpo-30797, bpo-30694: Avoid _GNU_SOURCE redefined warning in xmlparse.c (#2615) https://github.com/python/cpython/commit/bdabd7666032ce356d550da21c35e4bee5b3448c --

[issue30687] build.bat should locate msbuild.exe rather than vcvarsall.bat

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset 00134f64d982561750f57f1a0bb7bb073f9f237c by Ned Deily (Steve Dower) in branch '3.6': bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat (#2252) (#2280)

[issue30500] [security] urllib connects to a wrong host

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset b0fba8874a4bd6bf4773e6efdbd8fa762e9f05bd by Ned Deily (Victor Stinner) in branch '3.6': bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2289) https://github.com/python/cpython/commit/b0fba8874a4bd6bf4773e6efdbd8fa762e9f05bd

[issue30745] Warnings in Modules/_winapi.c

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset d1d65015fca44b8d1f0b1df78694310270f03a6d by Ned Deily (Serhiy Storchaka) in branch '3.6': [3.6] bpo-30745: Fix compiler warnings introduced in bpo-30730. (GH-2376) (#2378)

[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset c794b643c9172d69afa46f85982befd82511d9df by Ned Deily (Victor Stinner) in branch '3.6': bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) (#2456) https://github.com/python/cpython/commit/c794b643c9172d69afa46f85982befd82511d9df --

[issue30694] Update embedded copy of expat to 2.2.1

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset ea1ab803ddc14ab02ffed50ecc5089897f259623 by Ned Deily (Victor Stinner) in branch '3.6': bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2313) https://github.com/python/cpython/commit/ea1ab803ddc14ab02ffed50ecc5089897f259623 New

[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset 5777e79ecbd1f2adf36456e09f210608ee221691 by Ned Deily (Victor Stinner) in branch '3.6': [3.6] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2349) https://github.com/python/cpython/commit/5777e79ecbd1f2adf36456e09f210608ee221691

[RELEASE] Python 3.6.2rc2 is now available for testing

2017-07-07 Thread Ned Deily
On behalf of the Python development community and the Python 3.6 release team, I would like to announce the availability of Python 3.6.2rc2. 3.6.2rc2 is the second release candidate for Python 3.6.2, the next maintenance release of Python 3.6. 3.6.2rc2 includes fixes for three security-related

Re: About the implementation of del in Python 3

2017-07-07 Thread Gregory Ewing
Random832 wrote: What's not abstract is that if an object has address X and is N bytes long, those bytes (and any larger subobjects) occupy a contiguous range of addresses between X and X+(N-1). If you're talking about Python objects, that's not necessarily true -- there's no requirement that

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2694 ___ Python tracker ___ ___

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-07 Thread ppperry
Changes by ppperry : -- title: `SystemError: returned NULL without setting an error` from imp.create_builtin -> `SystemError: returned NULL without setting an error` from importing _pickle ___ Python tracker

[issue30856] unittest.TestResult.addSubTest should be called immediately after subtest finishes

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker ___

[issue30874] unittest execute tests twice in some conditions

2017-07-07 Thread Alessandro Cannini
New submission from Alessandro Cannini: Unittest execute the tests twice in some conditions. You can see the log here: https://travis-ci.org/ale5000-git/test/builds/251382617 based on this code: https://github.com/ale5000-git/test/tree/7a64f24a8bfea0579e30346ba993744272aa9c36 The code to

Re: Windows: python3.exe missing

2017-07-07 Thread Terry Reedy
On 7/7/2017 5:45 PM, Andrew Pennebaker wrote: Could the Windows installer for Python 3 provide a "python3" command, such as a python3.bat or python3.exe file, to help with scripts that rely on the interpreter being called "python3"? The py launcher is somewhat helpful, but a proper python3

[issue30875] round(number[, digits]) does not return value with >12 decimal places

2017-07-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Using "round(number[, digits])" in a program I get no rounding It works for me. Can you show an example of it not working? py> round(1.23456789012345, 3) 1.235 > Using the same command in the terminal interpreter it returns > ... (3 periods) then hangs

[issue13220] print function unable while multiprocessing.Process is being run

2017-07-07 Thread ppperry
ppperry added the comment: Duplicate of issue11820. -- nosy: +ppperry ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2695 ___ Python tracker ___ ___

[issue30841] A shadowing variable naming emitted for Python-ast.c

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson, brett.cannon, ncoghlan, yselivanov ___ Python tracker ___

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get the following error on 3.7: $ ./python issue30873.py Traceback (most recent call last): File "issue30873.py", line 44, in exec("import _pickle", dct) File "", line 1, in File "/home/serhiy/py/cpython/Lib/importlib/_bootstrap.py", line 1059,

[issue13220] print function unable while multiprocessing.Process is being run

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> idle3 shell os.system swallows shell command output ___ Python tracker

[issue11820] idle3 shell os.system swallows shell command output

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Closed #13220 as duplicate of this. -- ___ Python tracker ___ ___

[issue30823] os.startfile("") craches Python 2.7, 3.4 in Windows 7 32 bit in ConEmu 161002 [32]

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 223c7e70e48eb6eed4aab3906fbe32b098faafe3 by terryjreedy in branch 'master': bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (#2629) https://github.com/python/cpython/commit/223c7e70e48eb6eed4aab3906fbe32b098faafe3 --

[issue30873] `SystemError: returned NULL without setting an error` from imp.create_builtin

2017-07-07 Thread ppperry
New submission from ppperry: The following rather long code, reduced from the same example as issue30626, produces a SystemError: import builtins from importlib.machinery import PathFinder import importlib import sys import _imp from functools import partial def copy_module(module): new =

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2696 ___ Python tracker ___ ___

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are you looking for something like: Let it = iter(words). When next(it) returns 'defenestrate', insertion at the beginning moves the original 'defenestrate' over so that next(words) returns 'defenestrate' again. ? -- nosy: +terry.reedy

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 552f26680d3806df7c27dd7161fd7d57ac815f78 by terryjreedy in branch '3.6': [3.6] bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (GH-2629) (#2631) https://github.com/python/cpython/commit/552f26680d3806df7c27dd7161fd7d57ac815f78

[issue30859] Can't install Python for Windows 3.6.1 on multiple profiles

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30875] round(number[, digits]) does not return value with >12 decimal places

2017-07-07 Thread john Forgue
New submission from john Forgue: I have a sensor that returns float with 15 decimal places. Using "round(number[, digits])" in a program I get no rounding Using the same command in the terminal interpreter it returns ... (3 periods) then hangs requiring ^C to continue. I'm using Python

Re: Windows: python3.exe missing

2017-07-07 Thread Bill Deegan
py -3.5 py -3.6 works. Don't know about py -3.6.0 py -3.6.1 On Fri, Jul 7, 2017 at 11:25 PM, Terry Reedy wrote: > On 7/7/2017 5:45 PM, Andrew Pennebaker wrote: > >> Could the Windows installer for Python 3 provide a "python3" command, >> such as a python3.bat or python3.exe

[issue30876] SystemError on import

2017-07-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It is possible to get SystemError on import (see attached archive). $ ./python -c 'import package.module1' Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/package/module1.py", line 3, in from . import module2

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: 30779 was merged and backported today. -- ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue30821] unittest.mock.Mocks with specs aren't aware of default arguments

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +michael.foord ___ Python tracker ___ ___

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-07 Thread Louie Lu
Louie Lu added the comment: Serhiy: Or would it be to detect the user language environment, and come up with user language example sentence? What I remember that Windows font preview will change the sentence in the different language. -- ___ Python

Re: About the implementation of del in Python 3

2017-07-07 Thread Steve D'Aprano
On Fri, 7 Jul 2017 06:05 pm, Gregory Ewing wrote: > Steve D'Aprano wrote: >> In practice, identity is hardly important in Python, except for a few limited >> cases, and the prohibition against using `is` when you mean `==`. > > On the contrary, it's a very important concept needed to make >

Re: About the implementation of del in Python 3

2017-07-07 Thread Chris Angelico
On Fri, Jul 7, 2017 at 6:43 PM, Marko Rauhamaa wrote: > Steve D'Aprano : > >> On Fri, 7 Jul 2017 07:10 am, Marko Rauhamaa wrote: >> >>> I believe identity can be defined much better, in numerous isomorphic >>> ways in fact. >>> >>> For example, we

Re: About the implementation of del in Python 3

2017-07-07 Thread Marko Rauhamaa
Steve D'Aprano : > But the Python virtual machine doesn't require objects to have an > address at all. That's an interesting question. Is it possible to define formal semantics for Python without the notion of an address (under some name)? Ultimately it seems

[issue30714] test_ssl fails with openssl 1.1.0f

2017-07-07 Thread Ned Deily
Ned Deily added the comment: Sorry, this didn't make it in time for 3.6.2. There is still at least a couple of weeks to get it into 3.5.4 and 2.7.14. -- ___ Python tracker

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread STINNER Victor
STINNER Victor added the comment: Similar failure on x86 Tiger 3.x. Maybe we need to skip the test on old macOS and old FreeBSD versions? Maybe it's related to the libncurses version? http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/908/steps/test/logs/stdio

Re: About the implementation of del in Python 3

2017-07-07 Thread Steve D'Aprano
On Fri, 7 Jul 2017 05:45 pm, Chris Angelico wrote: > On Fri, Jul 7, 2017 at 4:43 PM, Steve D'Aprano > wrote: >> On Fri, 7 Jul 2017 01:41 am, Marko Rauhamaa wrote: >>> In Second-Order Logic, you can define identity directly: >>> >>> ∀x ∀y x = y ↔ ∀P (P(x) ↔ P(y))

Re: About the implementation of del in Python 3

2017-07-07 Thread Steve D'Aprano
On Fri, 7 Jul 2017 06:12 pm, Gregory Ewing wrote: > Steve D'Aprano wrote: >> That implies that it is impossible to implement Scheme: >> >> - using a programming language where variables and objects may move during >> their lifetime; >> >> - or using a computing device without conventional

Re: About the implementation of del in Python 3

2017-07-07 Thread Marko Rauhamaa
Steve D'Aprano : > On Fri, 7 Jul 2017 07:10 am, Marko Rauhamaa wrote: > >> I believe identity can be defined much better, in numerous isomorphic >> ways in fact. >> >> For example, we could equate each object with a sequence number >> (unrelated with its id()). You

Re: About the implementation of del in Python 3

2017-07-07 Thread Marko Rauhamaa
Chris Angelico : > On Fri, Jul 7, 2017 at 6:43 PM, Marko Rauhamaa wrote: >> Python's integer object 0 might be equated with the (mathematical) >> natural number 18974387634. Python code would have no way of >> introspecting that natural number. >> >> The

[issue30869] regrtest: Add .idlerc to saved_test_environment

2017-07-07 Thread STINNER Victor
STINNER Victor added the comment: test_site has a similar issue: bpo-30227, "test_site must not write outside the build directory: must not write into $HOME/.local/". -- ___ Python tracker

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think that it is worth to include in Python distribution examples for a hundred of languages. If there are some system-wide collections of examples we can use them, but this should be platform specific and not always available. --

  1   2   >