[issue31216] Add ensure_ascii argument to json.tool

2017-08-15 Thread TaoQingyun
New submission from TaoQingyun: Sometimes I want this ``` $ echo -e '"\xe4\xbd\xa0\xe5\xa5\xbd"' | ./python -m json.tool --no-escape "你好" ``` not just ``` $ echo -e '"\xe4\xbd\xa0\xe5\xa5\xbd"' | ./python -m json.tool "\u4f60\u597d" ``` -- components:

[issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility

2017-08-15 Thread Nick Coghlan
New submission from Nick Coghlan: https://bugs.python.org/issue26470 updated the ssl and hashlib modules in 2.7 and 3.5+ to be compatible with OpenSSL 1.1.0. However, it's currently unclear what the *minimum* versions actually are for platforms that want to drop support for OpenSSL 1.0.x, and

[issue31212] min date can't be converted to timestamp

2017-08-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> haypo nosy: +haypo ___ Python tracker ___

[issue31148] Can we get an MSI installer for something past 3.4.4?

2017-08-15 Thread Steve Dower
Steve Dower added the comment: Burn bundles are part of Wix, but it's the part you don't like :) If you just want a single MSI, you won't want a bundle. But you will have to leave out nearly half of the features I listed because they simply are not possible without it. --

[issue31209] MappingProxyType can not be pickled

2017-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: What would be the point of pickling a MappingProxy? Do you have use case or is it just a curiosity? -- nosy: +rhettinger ___ Python tracker

Re: Python's method-resolution algorithm: An implementation question

2017-08-15 Thread Evan Aad
Thanks! On Tue, Aug 15, 2017 at 10:41 PM, Ian Kelly wrote: > > On Tue, Aug 15, 2017 at 12:57 PM, Evan Aad wrote: > > I don't see how, since the L(B*)'s are listed in order in the argument > > list: L(B1), L(B2), ..., and each L(B*) starts with B*:

[issue6090] zipfile: Bad error message when zipping a file with timestamp before 1980

2017-08-15 Thread Craig McQueen
Craig McQueen added the comment: One ongoing weakness I see with this situation is that it's difficult to code a suitable work-around if a user wants to zip files that have a date < 1980 (e.g. to zip it with a datestamp of 1-Jan-1980). https://stackoverflow.com/q/45703747/60075 I am trying to

[issue31148] Can we get an MSI installer for something past 3.4.4?

2017-08-15 Thread D Gentry
D Gentry added the comment: Thank you for the information. That will definitely be helpful. Also, thank you for being so detailed with your explanation. Even though it will be difficult and may take more time than I was initially intending, I believe its within the realm of possibility.

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset de36ba065e933648f5687998021175cf21d4564b by Terry Jan Reedy in branch '3.6': [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017-08-15. (GH-3098) (#3099) https://github.com/python/cpython/commit/de36ba065e933648f5687998021175cf21d4564b --

Re: Proposed new syntax

2017-08-15 Thread Ben Finney
Gregory Ewing writes: > The whole reason to write something as a comprehension is because you > want to express it declaratively. You're saying "this is the list I > want, I don't care how you compute it." That's certainly a strong reason for my choosing

[issue31214] os.walk has a bug on Windows

2017-08-15 Thread Chris Lovett
Chris Lovett added the comment: Oh, my bad then. Apologies for the noise in your system. -- ___ Python tracker ___

[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The configdialog diff for #31205 was so jumbled that it did not apply correctly to 3.6. Let's do this in 2 PRs. First adds the class to how we think it should be. The second deletes the old code, makes any edits needed for the new class, and redirects the

[issue31211] distutils/util.py get_platform() does not identify linux-i686 platforms

2017-08-15 Thread Éric Araujo
Éric Araujo added the comment: Hello! Your analysis sounds right, but this is the wrong place. distutils doesn’t know about wheels, it’s setuptools and/or the wheel module that generate them, and pip and others who consumes them. Please report the issue to the setuptools and/or wheel bug

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-08-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3138 ___ Python tracker ___ ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7f066844a79ea201a28b9555baf4bceded90484f by Terry Jan Reedy in branch 'master': bpo-30928: Update idlelib/NEWS.txt to 2017-08-15. (#3098) https://github.com/python/cpython/commit/7f066844a79ea201a28b9555baf4bceded90484f --

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

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

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change to configdialog is basically a block move with a few edits. The resulting diff is so complicated that git could not apply it cleanly to the identical code in 3.6. We should do multiple PRs for the highlight group. --

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ff4b222b029f9977a4509d8697ba2b82c09b477a by Terry Jan Reedy in branch '3.6': [3.6] bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (GH-3096) (#3097) https://github.com/python/cpython/commit/ff4b222b029f9977a4509d8697ba2b82c09b477a

[issue31214] os.walk has a bug on Windows

2017-08-15 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31214] os.walk has a bug on Windows

2017-08-15 Thread Peter Otten
Peter Otten added the comment: Read the documentation of os.walk() again. It already walks the complete directory tree starting with src. When you invoke it again by calling your copy_dir() method recursively you will of course see once more the files and directories in the respective

Re: Proposed new syntax

2017-08-15 Thread Gregory Ewing
Steve D'Aprano wrote: I take issue with your statement that relying on order of evaluation is always "a very bad idea". Perhaps what I should say is that relying on side effects in an expression occurring in a particular order is a bad idea. Boolean operators are a well-understood special case

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-08-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3137 ___ Python tracker ___ ___

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3136 ___ Python tracker ___ ___

[issue31214] os.walk has a bug on Windows

2017-08-15 Thread Chris Lovett
New submission from Chris Lovett: When I walk a directory recursively, it is tacking on an additional non-existant file from one of the subdirectories. Here's the code: def copy_dir(self, src, dest): result = sftp.mkdir(dest) for dirname, dirnames, filenames in

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e36d9f5568093b3885da62a0bf0fdfbe3771672b by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (#3096) https://github.com/python/cpython/commit/e36d9f5568093b3885da62a0bf0fdfbe3771672b

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lines not yet covered in keys group, other than deactivate_current_config and activate_config_changes functions: def save_new_key_set if not idleConf.userCfg['keys'].has_section(keyset_name): # never false - minor issue def delete_custom_keys if not

Re: numpy not working any more

2017-08-15 Thread breamoreboy
On Tuesday, August 15, 2017 at 8:13:19 PM UTC+1, Poul Riis wrote: > Den tirsdag den 15. august 2017 kl. 19.19.15 UTC+2 skrev bream...@gmail.com: > > On Tuesday, August 15, 2017 at 5:23:29 PM UTC+1, Poul Riis wrote: > > > Den tirsdag den 15. august 2017 kl. 07.29.05 UTC+2 skrev dieter: > > > > Poul

Re: Python's method-resolution algorithm: An implementation question

2017-08-15 Thread Ian Kelly
On Tue, Aug 15, 2017 at 12:57 PM, Evan Aad wrote: > I don't see how, since the L(B*)'s are listed in order in the argument > list: L(B1), L(B2), ..., and each L(B*) starts with B*: L(B1) = ...>, L(B2) = , ... > > Could you please give a counter-example?

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-08-15 Thread Steve Dower
Steve Dower added the comment: This commit added *a lot* of warnings - http://buildbot.python.org/all/builders/AMD64%20Windows10%203.x/builds/1056 Most are of the form: warning C4133: 'function': incompatible types - from 'volatile uintptr_t *' to 'volatile int *' I can't obviously see

Re: A question on modification of a list via a function invocation

2017-08-15 Thread Fred Stluka
Here is my attempt to clarify the situation with some ascii graphics. (Well, not ascii, but utf-8 box-drawing characters — I hope they come through ok. And, of curse, it won't display properly with a proportional font.) Here's a VERY useful tool for understanding/explaining/drawing such code

Re: numpy not working any more

2017-08-15 Thread Poul Riis
Den tirsdag den 15. august 2017 kl. 19.19.15 UTC+2 skrev bream...@gmail.com: > On Tuesday, August 15, 2017 at 5:23:29 PM UTC+1, Poul Riis wrote: > > Den tirsdag den 15. august 2017 kl. 07.29.05 UTC+2 skrev dieter: > > > Poul Riis writes: > > > > ... > > > > For some time I have been using python

Re: Python's method-resolution algorithm: An implementation question

2017-08-15 Thread Evan Aad
I don't see how, since the L(B*)'s are listed in order in the argument list: L(B1), L(B2), ..., and each L(B*) starts with B*: L(B1) = , L(B2) = , ... Could you please give a counter-example? On Tue, Aug 15, 2017 at 9:44 PM, Ian Kelly wrote: > > On Tue,

Re: A question on modification of a list via a function invocation

2017-08-15 Thread Larry Hudson via Python-list
On 08/14/2017 08:25 PM, Larry Hudson wrote: [snip] Here is my attempt to clarify the situation with some ascii graphics. (Well, not ascii, but utf-8 box-drawing characters — I hope they come through ok. And, of curse, it won't display properly with a proportional font.) The left side is the

Re: Python's method-resolution algorithm: An implementation question

2017-08-15 Thread Ian Kelly
On Tue, Aug 15, 2017 at 9:56 AM, Evan Aad wrote: > According to the description of Python's method resolution order (mro) > (https://www.python.org/download/releases/2.3/mro/), a.k.a. C3 > linearization (see Wikipedia), the algorithm can be described as > follows: > > "the

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-15 Thread sping
sping added the comment: For the record, the upstream fix is commit https://github.com/libexpat/libexpat/commit/74a7090a6eb92c27b7010287a4082de6b357fa42 and it will be part of Expat 2.2.4. -- nosy: +sping versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
Changes by R. David Murray : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
R. David Murray added the comment: OK, that seems reasonable to me. I'll reopen the issue. Assuming other developers agree that this should be changed, I'm not sure if it will qualify as a bug or an enhancement, so I'm leaving versions unselected for now :) -- resolution: not a bug

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread Cédric Krier
Cédric Krier added the comment: On 2017-08-15 17:32, R. David Murray wrote: > You mean to create the entries on sys.path that do not come from the > PYTHONPATH? Yes because such path could contain ':'. -- ___ Python tracker

PyDev 5.9.2 released

2017-08-15 Thread Fabio Zadrozny
PyDev 5.9.2 Release Highlights - *Important* PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards. - PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars). - *Debugger* - Integrated speedups for Python 3.6 which use the new Python hook which allows the

Re: Proposed new syntax

2017-08-15 Thread Steve D'Aprano
On Tue, 15 Aug 2017 08:26 am, Gregory Ewing wrote: > Ben Finney wrote: >> That the comprehension >> syntax *does not* necessarily connote a procedural loop, but instead can >> quite reasonably be interpreted as its designer intended, a single >> conceptual operation. > > To put it another way:

[issue31213] __context__ reset to None in nested exception

2017-08-15 Thread Christopher Stelma
Christopher Stelma added the comment: crosslink to related future lib issue that led me to this: https://github.com/PythonCharmers/python-future/issues/141 -- ___ Python tracker

[issue31213] __context__ reset to None in nested exception

2017-08-15 Thread Christopher Stelma
New submission from Christopher Stelma: When I try to re-raise an exception with a __cause__ inside a nested exception, the __context__ of the outer __context__ appears to be reset to None. e.g. >>> try: ... try: ... raise Exception('foo') ... except Exception as foo: ...

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
R. David Murray added the comment: You mean to create the entries on sys.path that do not come from the PYTHONPATH? -- ___ Python tracker ___

[issue31212] min date can't be converted to timestamp

2017-08-15 Thread Dave Johansen
New submission from Dave Johansen: This worked in Python 3.6.0 and before: ``` from datetime import datetime d = datetime(1, 1, 1, 0, 0, 0) d.timestamp() ``` The error output is: ``` ValueError: year 0 is out of range ``` But it used to return `-62135658000.0`. Appears to be related to

Re: numpy not working any more

2017-08-15 Thread breamoreboy
On Tuesday, August 15, 2017 at 5:23:29 PM UTC+1, Poul Riis wrote: > Den tirsdag den 15. august 2017 kl. 07.29.05 UTC+2 skrev dieter: > > Poul Riis writes: > > > ... > > > For some time I have been using python 3.6.0 on a windows computer. > > > Suddenly, my numpy does not work any more. > > > This

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread Cédric Krier
Cédric Krier added the comment: A last comment, I do not think it is an issue to follow posix way to parse PATH. But for me, the problem is that Python adds without sanitation the sys.prefix to the PYTHONPATH. So I think internally Python should not use PATH notation to extend the PYTHONPATH

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-15 Thread Cheryl Sabella
Cheryl Sabella added the comment: I ran into an issue with the three calls to functions in ConfigDialog (deactivate_current_config, activate_config_changes, and save_all_changed_extensions) from within the KeysPage class. I tried to minimize the changes by just creating self.cd for the

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-15 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +3135 ___ Python tracker ___ ___

Python's method-resolution algorithm: An implementation question

2017-08-15 Thread Evan Aad
According to the description of Python's method resolution order (mro) (https://www.python.org/download/releases/2.3/mro/), a.k.a. C3 linearization (see Wikipedia), the algorithm can be described as follows: "the linearization of C is the sum of C plus the merge of the linearizations of the

Re: numpy not working any more

2017-08-15 Thread Poul Riis
Den tirsdag den 15. august 2017 kl. 07.29.05 UTC+2 skrev dieter: > Poul Riis writes: > > ... > > For some time I have been using python 3.6.0 on a windows computer. > > Suddenly, my numpy does not work any more. > > This one-liner program: > > import numpy as np > > results in

[issue31211] distutils/util.py get_platform() does not identify linux-i686 platforms

2017-08-15 Thread Siming Yuan
New submission from Siming Yuan: in CentOS installations where both 32 and 64 bit libraries can co exist, and when python is compiled to run with 32-bit libraries (i686) >>> from distutils.util import get_platform >>> get_platform() 'linux-x86_64' because the api only looks at OS flavor and

Vulture 0.25

2017-08-15 Thread Jendrik Seipp
Vulture - Find dead code Vulture finds unused code in Python programs. This is useful for cleaning up and finding errors in large code bases. If you run Vulture on both your library and test suite you can find untested code. Due to Python's dynamic nature, static code

[issue25144] 3.5 Win install fails with "TARGETDIR"

2017-08-15 Thread Steve Dower
Steve Dower added the comment: Yu Zhigang - can you post your install logs from the failed install? You'll notice in my last message I said that I added some extra logging. However, it sounds like you have a certain system option set that essentially breaks paths passed between non-admin and

All zunzun source code repositories move to Bitbucket

2017-08-15 Thread zunzun . com
All zunzun curve fitting and surface fitting source code repositories have been moved to Bitbucket, no future development will be done using GitHub. Please update any git URLs to the following. All code us Python 3 unless otherwise noted. Web curve fitting and surface fitting: Deluxe

Vulture 0.24

2017-08-15 Thread Jendrik Seipp
Vulture - Find dead code Vulture finds unused code in Python programs. This is useful for cleaning up and finding errors in large code bases. If you run Vulture on both your library and test suite you can find untested code. Due to Python's dynamic nature, static code

pytest 3.2.1 released

2017-08-15 Thread Bruno Oliveira
pytest 3.2.1 has just been released to PyPI. This is a bug-fix release, being a drop-in replacement. To upgrade:: pip install --upgrade pytest The full changelog is available at http://doc.pytest.org/en/latest/changelog.html. Thanks to all who contributed to this release, among them: * Alex

Vulture 0.23

2017-08-15 Thread Jendrik Seipp
Vulture - Find dead code Vulture finds unused code in Python programs. This is useful for cleaning up and finding errors in large code bases. If you run Vulture on both your library and test suite you can find untested code. Due to Python's dynamic nature, static code

pytest-logger 0.2.0

2017-08-15 Thread Krzysztof Laskowski
Hi All, pytest-logger is a pytest plugin putting stdlib logs to: - tmpdir directory structure mimicking test suite structure, - pytest terminal output in real time, as test progresses. pypi: https://pypi.python.org/pypi/pytest-logger/0.2.0 repo:

cx_Oracle 6.0

2017-08-15 Thread Anthony Tuininga
What is cx_Oracle? cx_Oracle is a Python extension module that enables access to Oracle Database for Python 3.x and 2.x and conforms to the Python database API 2.0 specifications with a number of enhancements. Where do I get it? https://oracle.github.io/python-cx_Oracle The easiest method to

[issue31194] Inconsistent __repr__s for _collections objects

2017-08-15 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 27541. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Repr of collection's subclasses ___ Python tracker

[issue31194] Inconsistent __repr__s for _collections objects

2017-08-15 Thread Vedran Čačić
Vedran Čačić added the comment: More and more, Python looks to me like a certain language that I thought I had left behind a long time ago. [...] Each operator decides which sort of scalar it would be most appropriate to return. [...] In general, they do what

Re: Application Error

2017-08-15 Thread Ian Kelly
On Tue, Aug 15, 2017 at 3:37 AM, Alhassan Tom Alfa wrote: > Dear Sir, > > I just downloaded Python on my PH Windows 10 PC but any time I tried to > start the application it always give the following error message; > > Python.exe - Application Error > The application was

Re: Application Error

2017-08-15 Thread Bob Gailer
On Aug 15, 2017 9:50 AM, "Alhassan Tom Alfa" wrote: > > Dear Sir, > > I just downloaded Python Exactly what did you download? Where did you download it from? There are 32 bit versions and 64-bit versions. Did you download the one corresponding to your computer? Normally

Application Error

2017-08-15 Thread Alhassan Tom Alfa
Dear Sir, I just downloaded Python on my PH Windows 10 PC but any time I tried to start the application it always give the following error message; Python.exe - Application Error The application was unable to start correctly (0xc07b). Click Ok to close the application. How this error be

Any advice on getting Pyscripter installed & working with Python on Windows 10 computer ?

2017-08-15 Thread TKS
> > > Hi there, > > I am trying to assist my daughter with a school IT task to install Python > & Pyscripter on a Windows 10 notebook. (64 bit system) > > It seems no version of Pyscripter will work - it fails to complete the > installation & ends with an error ("Python could not be properly >

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
R. David Murray added the comment: I'm not sure there is anything we should do here, then, because we are conforming to the posix parsing for PATH in our PYTHONPATH implementation. I think if you want to pursue this further you should take it to the python-ideas mailing list. I'm going to

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread Cédric Krier
Cédric Krier added the comment: Yes I mean ':' for posix. Indeed I do not known a posix way to escape the colon (it was discussed here: https://stackoverflow.com/questions/14661373/how-to-escape-colon-in-path-on-unix). But it does not mean that the method makepathobject could not support one.

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
R. David Murray added the comment: By DELIM, you mean the shell ':'? As far as I've been able to determine there is no way defined in posix to escape that character. If you can find one, please let us know. (I think the same is true for the Windows semicolon but I'm not sure.) --

Re: Proposed new syntax

2017-08-15 Thread Rustom Mody
On Tuesday, August 15, 2017 at 5:48:43 PM UTC+5:30, Steve D'Aprano wrote: > On Tue, 15 Aug 2017 02:54 pm, Rustom Mody wrote: > > > On Monday, August 14, 2017 at 10:35:22 PM UTC+5:30, Terry Reedy wrote: > [...] > >> Suppose stdin contains "a\nb\nc\nd\ne\nf\ng\n". > >> What is the meaning of > >>

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread Cédric Krier
New submission from Cédric Krier: If the path on which Python is installed contains the DELIM, the resulted sys.path is split. I think maybe there should be a escape mechanism for the PYTHONPATH. -- components: Interpreter Core messages: 300293 nosy: ced priority: normal severity:

Re: Proposed new syntax

2017-08-15 Thread Steve D'Aprano
On Tue, 15 Aug 2017 02:54 pm, Rustom Mody wrote: > On Monday, August 14, 2017 at 10:35:22 PM UTC+5:30, Terry Reedy wrote: [...] >> Suppose stdin contains "a\nb\nc\nd\ne\nf\ng\n". >> What is the meaning of >> [input(f"response{i}") for i in range(6)]? >> In Python, the predictable result is >>

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-15 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'll work on this today. -- ___ Python tracker ___ ___ Python-bugs-list

Re: Proposed new syntax

2017-08-15 Thread Steve D'Aprano
On Tue, 15 Aug 2017 01:26 pm, Paul Rubin wrote: > Steve D'Aprano writes: [...] >> In Haskell, you cannot get the last N elements of a list without >> allocating memory for the previous ones. > > lastn n xxs@(x:xs) > | length (take n xs) == n-1 = xxs >

[issue31197] Namespace disassembly omits some compiled objects

2017-08-15 Thread Nick Coghlan
Nick Coghlan added the comment: Another refactoring point that came up in the same discussion: it might be nice if the objects that expose code attributes all offered a read-only __code__ property, rather than requiring the dis module (and other consumers) to be aware of all the different

[issue25144] 3.5 Win install fails with "TARGETDIR"

2017-08-15 Thread Yu Zhigang
Yu Zhigang added the comment: It's quite an issue... This is 2017 and it's still there. Anyway, I encountered the same problem by running the installer in Win7, and it was fixed by running it again in administrative mode. -- nosy: +Yu Zhigang ___

[issue30714] test_ssl fails with openssl 1.1.0f: test_alpn_protocols()

2017-08-15 Thread Christian Heimes
Christian Heimes added the comment: 2.7, 3.6 and master are fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker

[issue30714] test_ssl fails with openssl 1.1.0f: test_alpn_protocols()

2017-08-15 Thread Christian Heimes
Christian Heimes added the comment: New changeset 05b7d9c6675b71d17f5fcf379b3888fba431f14e by Christian Heimes in branch '2.7': [2.7] bpo-30714: ALPN changes for OpenSSL 1.1.0f (#3094) https://github.com/python/cpython/commit/05b7d9c6675b71d17f5fcf379b3888fba431f14e --

Re: Redirecting input of IDLE window

2017-08-15 Thread Friedrich Rentsch
On 08/14/2017 10:47 AM, Friedrich Rentsch wrote: Hi, I work interactively in an IDLE window most of the time and find "help (...)" very useful to summarize things. The display comes up directly (doesn't return a text, which I could edit, assign or store). I suspect that there are ways

[issue30714] test_ssl fails with openssl 1.1.0f: test_alpn_protocols()

2017-08-15 Thread Christian Heimes
Christian Heimes added the comment: New changeset 7f6a13bd562ff6a265fc63a991327feaecb07a77 by Christian Heimes in branch '3.6': [3.6] bpo-30714: ALPN changes for OpenSSL 1.1.0f (#3093) https://github.com/python/cpython/commit/7f6a13bd562ff6a265fc63a991327feaecb07a77 --

Re: Solution Manual Test Bank for South-Western Federal Taxation 2018: Corporations, Partnerships, Estates and Trusts, 41st Edition by Hoffman

2017-08-15 Thread alister via Python-list
On Mon, 14 Aug 2017 15:48:02 -0700, zhilongch64 wrote: Please do the whole world a big favour & NEVER reply to spam if no-one responded this heinous practice would die. -- I hate users you sound like a sysadmin already! -- https://mail.python.org/mailman/listinfo/python-list

[issue30714] test_ssl fails with openssl 1.1.0f: test_alpn_protocols()

2017-08-15 Thread Christian Heimes
Christian Heimes added the comment: New changeset 7b40cb7293cb14e5c7c8ed123efaf9acb33edae2 by Christian Heimes in branch 'master': bpo-30714: ALPN changes for OpenSSL 1.1.0f (#2305) https://github.com/python/cpython/commit/7b40cb7293cb14e5c7c8ed123efaf9acb33edae2 --

[issue30714] test_ssl fails with openssl 1.1.0f: test_alpn_protocols()

2017-08-15 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3133 ___ Python tracker ___ ___

[issue30714] test_ssl fails with openssl 1.1.0f: test_alpn_protocols()

2017-08-15 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3134 ___ Python tracker ___ ___

[issue30576] http.server should support HTTP compression (gzip)

2017-08-15 Thread Pierre Quentel
Pierre Quentel added the comment: On Python-ideas someone asked if other compressions could be supported besides gzip. The latest version of the PR adds a mechanism for that : SimpleHTTPRequestHandler has a new attribute "compressions", a dictionary that maps compression encodings (eg

Re: Proposed new syntax

2017-08-15 Thread Gregory Ewing
Paul Rubin wrote: Historically (in "naive set theory") we didn't bother with any of this. We could write { S : S \not\in S } for the set of all sets that are not members of themselves. Is S a member of itself ("Russell's paradox")? Either way leads to contradiction. So the comprehension axiom

Re: Proposed new syntax

2017-08-15 Thread Ian Kelly
On Mon, Aug 14, 2017 at 8:24 PM, Steve D'Aprano wrote: > I think the closest analogy in Python terms would be a generator expression > with > a cache. That's not *quite* the same, because Python is eagerly evaluated and > Haskell is lazily evaluated, but the critical