[issue30362] Launcher add list and list with paths options

2017-05-19 Thread Steve Barnes

Steve Barnes added the comment:

@terry.reedy - Very good points and I like the shortness of -0 note that there 
is already an accepted change to allow -x.y-64 to specifically require the 64 
bit versions so we don't need the complex logic to distinguish cases where -x.y 
will run 32 bit because there is no 64 bit verses -x.y will run 64 bit and 
-x.y-32 will run 32 bit so I haven't implemented that complex logic.

I have put a tab between the run flag and the path as I find that is easier to 
detect than some number of spaces.

Found that I needed to move the test for -0 nearer the top as 0 is a 
potentially valid version specifier, (isdigit).

Also modified the "not found" message to mention -0 as an option for discovery.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17188] Document 'from None' in raise statement doc.

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The double listing seems to be a glitch.

Either someone else does backport or online doc change waits until I can do it.

--
assignee: docs@python -> terry.reedy
stage: patch review -> backport needed
versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23674] super() documentation isn't very clear

2017-05-19 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Martin, can we just fix the signature here.  It is not the purpose of the super 
docs explain the MRO (that is a feature of all new-style classes, super() is 
just something that hops to the next in the chain) or to be a tutorial.  I 
would like to keep the rest of the docs mostly as-is.  These docs have already 
been refined multiple times and proven themselves usable for a lot of user).   
The only part that wasn't previously edited was the parameter names for the 
signature.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17188] Document 'from None' in raise statement doc.

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 763557eac06ba60d7c5133e4f80df8870d8f917e by terryjreedy 
(csabella) in branch 'master':
bpo-17188: DOC: Document 'from None' in raise statement (#1671)
https://github.com/python/cpython/commit/763557eac06ba60d7c5133e4f80df8870d8f917e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25794] __setattr__ does not always overload operators

2017-05-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1770

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30409] locale.getpreferredencoding doesn't return result

2017-05-19 Thread Decorater

Changes by Decorater :


Added file: http://bugs.python.org/file46878/suggested_change.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30408] [defaultdict] default_factory should accept a "key" default parameter (which can be passed my __missing__)

2017-05-19 Thread Nam

Nam added the comment:

Sure, thanks Raymond and Steven for your thoughts.

--
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30409] locale.getpreferredencoding doesn't return result

2017-05-19 Thread STINNER Victor

STINNER Victor added the comment:

> ok,  is this a valid fix then?

Yes, totally. Sorry, ignore my first comment.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30409] locale.getpreferredencoding doesn't return result

2017-05-19 Thread Sean McCully

Sean McCully added the comment:

ok,  is this a valid fix then?

On Saturday, May 20, 2017 1:34 AM, STINNER Victor  
wrote:

STINNER Victor added the comment:

> In fact, it seems like I introduced a regression in bpo-6393, commit 
> 94a3694c3dda97e3bcb51264bf47d948c5424d84.

I backported this commit, but I didn't notice the bug in the code... In fact, 
this commit was followed by the commit 6a448d4c2eac16af4c451b43c6dc46cf287b1671.

--

___
Python tracker 

___

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25794] __setattr__ does not always overload operators

2017-05-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1769

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25794] __setattr__ does not always overload operators

2017-05-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1768

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30408] [defaultdict] default_factory should accept a "key" default parameter (which can be passed my __missing__)

2017-05-19 Thread Steven D'Aprano

Steven D'Aprano added the comment:

I think this should be closed. For backwards compatibility, the defaultdict 
default_factory function must remain as it is. There is lots of code that uses 
something like `int` or `list` as the factory, and if the missing key was to be 
passed, the code would break.

As Raymond says, if you need the key passed to your factory, you can subclass 
dict and give it a __missing__ method.

--
nosy: +steven.daprano

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25794] __setattr__ does not always overload operators

2017-05-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset d896985bb2de49046f9b6879e906d1e4db255e23 by Serhiy Storchaka in 
branch 'master':
bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. (#1652)
https://github.com/python/cpython/commit/d896985bb2de49046f9b6879e906d1e4db255e23


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Louie: It appears that old PRs might merge as they are but any change, 
including an update merge, requires that you close and re-open.  When you 
re-open, please add "was pr".  It would be easier for me if you redid all 
the IDLE PRs in a batch or two.

Cheryl: Yes. Idlelib callables need docstrings, especially because they are not 
otherwise documented.  Based on our work on bdb, I was hoping you would work on 
IDLE.  I added you to #30290

Some of the colorizer functions are hard to usefully characterize.  This is 
parly because everything is done by side-effect and most functions have 
multiple side-effects.  There is a connection between the lack of docstrings 
and the vestigial nature of test_colorizer.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30290] IDLE: add tests for help_about.py

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Follow-up issues.

A. Move code and tests into help.py and test_help.py.
B. Improve content: 1) #25224; 2) remove or update credits;
3) reconsider each item.
C. Improve appearance: 1) ttk widgets; 2) Redo entire look.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30406] async and await should be keywords in 3.7

2017-05-19 Thread STINNER Victor

STINNER Victor added the comment:

It's time to remove Yury's hacks from the parser and get a sane syntax ;-) I 
agree to make async and await real keywords!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30409] locale.getpreferredencoding doesn't return result

2017-05-19 Thread STINNER Victor

STINNER Victor added the comment:

> In fact, it seems like I introduced a regression in bpo-6393, commit 
> 94a3694c3dda97e3bcb51264bf47d948c5424d84.

I backported this commit, but I didn't notice the bug in the code... In fact, 
this commit was followed by the commit 6a448d4c2eac16af4c451b43c6dc46cf287b1671.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30409] locale.getpreferredencoding doesn't return result

2017-05-19 Thread STINNER Victor

STINNER Victor added the comment:

In fact, it seems like I introduced a regression in bpo-6393, commit 
94a3694c3dda97e3bcb51264bf47d948c5424d84.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30409] locale.getpreferredencoding doesn't return result

2017-05-19 Thread STINNER Victor

STINNER Victor added the comment:

Oh, I'm sorry, I read too fast. I didn't notice the pull request. It seems like 
a real bug in Python 2.7.

--
resolution: third party -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30409] locale.getpreferredencoding doesn't return result

2017-05-19 Thread STINNER Victor

STINNER Victor added the comment:

File "/usr/lib/python2.7/site-packages/pip/utils/encoding.py", line 31, in 
auto_decode
return data.decode(locale.getpreferredencoding(False))
TypeError: decode() argument 1 must be string, not None

I'm sorry, but this issue looks like a bug in pip, not in Python. Please report 
the issue at https://github.com/pypa/pip/issues

--
nosy: +dstufft
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30290] IDLE: add tests for help_about.py

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

4a. Change uglyMidcap widget names and CamelCase function names to 
pep8_conformant names.  Simplify: byline, email, docs, pyver, tkver, idlever, 
py_license, py_copyright, py_credits, readme, idle_news, idle_credits.

4b. Change CamelCase function names to pep8_conformant names.
ShowIDLEAbout => show_readme, 

5. Add docstrings
For show_xyz functions, "Command for xyz button"? even though not verb?

#30303 implemented 2a, improve textview and tests.

Cheryl: this should be much easier than colorizer.  Let me know if you want to 
take a stab at at least 4 and 5.

--
dependencies: +IDLE: Add _utest to textview and add textview tests
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30406] async and await should be keywords in 3.7

2017-05-19 Thread Guido van Rossum

Guido van Rossum added the comment:

Yes, I signed off on this when I approved that PEP.

On May 19, 2017 20:10, "Raymond Hettinger"  wrote:

>
> Raymond Hettinger added the comment:
>
> +1 These words are here to stay.
>
> That said, Guido needs to explicitly sign-off on any new language keywords.
>
> --
> assignee:  -> gvanrossum
> nosy: +gvanrossum, rhettinger
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30405] build.bat: register binaries for py launcher

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

>From a couple of tests, the local python.bat should be satisfactory for most 
>of my current uses.  Being part of a #30362 listing would be nice, but I don't 
>often change my set of build binaries.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30409] locale.getpreferredencoding doesn't return result

2017-05-19 Thread Sean McCully

New submission from Sean McCully:

Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
  File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 312, in 
run
wheel_cache
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 295, in 
populate_requirement_set
wheel_cache=wheel_cache):
  File "/usr/lib/python2.7/site-packages/pip/req/req_file.py", line 84, in 
parse_requirements
filename, comes_from=comes_from, session=session
  File "/usr/lib/python2.7/site-packages/pip/download.py", line 422, in 
get_file_content
content = auto_decode(f.read())
  File "/usr/lib/python2.7/site-packages/pip/utils/encoding.py", line 31, in 
auto_decode
return data.decode(locale.getpreferredencoding(False))
TypeError: decode() argument 1 must be string, not None

--
components: Unicode
files: patchset.diff
keywords: patch
messages: 293995
nosy: ezio.melotti, haypo, seanmccully
priority: normal
pull_requests: 1767
severity: normal
status: open
title: locale.getpreferredencoding doesn't return result
versions: Python 2.7
Added file: http://bugs.python.org/file46877/patchset.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30406] async and await should be keywords in 3.7

2017-05-19 Thread Raymond Hettinger

Raymond Hettinger added the comment:

+1 These words are here to stay.   

That said, Guido needs to explicitly sign-off on any new language keywords.

--
assignee:  -> gvanrossum
nosy: +gvanrossum, rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30408] [defaultdict] default_factory should accept a "key" default parameter (which can be passed my __missing__)

2017-05-19 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Take a look at the __missing__(key) method for the regular dict API to see if 
it meets your needs.  It is in the ``d[key]`` section at 
https://docs.python.org/3/library/stdtypes.html#dict 

>>> class UpperDict(dict):
def __missing__(self, key):
return key.upper()

>>> d = UpperDict()
>>> print(d['tom'])
TOM

--
assignee:  -> rhettinger
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30408] [defaultdict] default_factory should accept a "key" default parameter (which can be passed my __missing__)

2017-05-19 Thread Nam

New submission from Nam:

currently default_factory does not accept any parameter. This made the default 
value generated by it constant among keys. If default_factory takes in key as 
the parameter, it should be able to generate default values based on key, which 
provide more flexibility to the class defaultdict.

--
components: Extension Modules
messages: 293992
nosy: namtt
priority: normal
severity: normal
status: open
title: [defaultdict] default_factory should accept a "key" default parameter 
(which can be passed my __missing__)
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-19 Thread Xiang Zhang

Xiang Zhang added the comment:

See the doc: 
https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network.hosts. 
For hosts() method, network address and broadcast address are excluded from the 
result. So it's right IPv4Address('192.168.0.0') and 
IPv4Address('192.168.1.255') are not included.

--
nosy: +xiang.zhang
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30000] Inconsistency in the zlib module

2017-05-19 Thread Xiang Zhang

Xiang Zhang added the comment:

Since Martin and Gregory support it, Ellison if you'd like you could make a PR 
for it. But code change alone is not enough. You need also adding corresponding 
tests and docs.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30405] build.bat: register binaries for py launcher

2017-05-19 Thread Eryk Sun

Eryk Sun added the comment:

The launcher could be extended to support additional suffixes in the version 
string. Currently -32 is supported after the minor version number (e.g. 
3.6-32), and (per a recent update) the latest version of the launcher will also 
support -64, with and without specifying the minor version number. This could 
be extended to support specifying an [o]fficial / [s]ource and [r]elease / 
[d]ebug build. A debug build wouldn't be separately registered on the system 
since it coexists with the release build. Instead, "d" would force the launcher 
to look for python_d.exe instead of python.exe. A default search would prefer 
an official build over a source build and a release build over a debug build. 
The point of supporting "o" and "r" suffixes is to force an error if an 
official/release build isn't available, rather than defaulting to a 
source/debug build. 

Under the hood, the INSTALLED_PYTHON struct would be extended with source_build 
and debug_build boolean values in addition to the bits value (which is an int 
but may as well be boolean). So there are up to 8 possibilities for every minor 
version number. MAX_INSTALLED_PYTHONS shouldn't have to be increased from 100. 

For example, `py -3-32d` would look for the highest 3.x 32-bit debug build and 
prefer an official build over a source build. `py -3-32od` would narrow the 
search to only official builds. `py -3-32sd` would instead narrow it to only 
source builds. In the latter case, the registry key would be named like 
"3.7-32s" to distinguish it from an official install. A build process with 
admin privileges would register the build in HKLM (taking care to create a 
"-32" key using KEY_WOW64_32KEY). Otherwise use HKCU.

For convenience, build.bat could set PY_PYTHON after a successful build, to 
make the current source build the default for the command-line and virtual 
shebangs, e.g. `set PY_PYTHON=3.7sd` for a registered 64-bit debug build. This 
would have to be executed after an endlocal statement, since it does most of 
its work in a setlocal block.

--
components: +Windows -Unicode
nosy: +eryksun
title: PCbuild.bat: register binaries for py launcher -> build.bat: register 
binaries for py launcher

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-05-19 Thread Martin Panter

Martin Panter added the comment:

I suspect the test won’t be effective with Editline (either fail, or silently 
pass without testing the bug). From memory Editline uses an ~/.editrc file, not 
INPUTRC, with different syntax and configuration.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17188] Document 'from None' in raise statement doc.

2017-05-19 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +1765, 1766

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17188] Document 'from None' in raise statement doc.

2017-05-19 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +1765

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-19 Thread Martin Panter

Martin Panter added the comment:

What is the advantage of compiling calls to both Long and LongLong converters? 
Isn’t it simpler to blindly call PyLong_FromUnsignedLongLong or similar?

--
nosy: +martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23674] super() documentation isn't very clear

2017-05-19 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I don't know if it's appropriate to add this to this ticket, but on the Data 
Model doc page, section 3.3.2.2 for Invoking Descriptors describes Super 
Binding.  A separate discussion with Nick in PR 1561 highlighted that section 
as a possible candidate for clarification.  It seemed to fit in with the 
discussion of super() and __mro__ here.

--
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28845] Clean up known issues for AIX

2017-05-19 Thread Eric N. Vander Weele

Changes by Eric N. Vander Weele :


--
pull_requests: +1764

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30405] PCbuild.bat: register binaries for py launcher

2017-05-19 Thread Zachary Ware

Zachary Ware added the comment:

Terry: Is python.bat sufficient for your uses?  It's created by 
PCbuild/python.vcxproj, and always points to whatever interpreter you built 
last.

If it's not enough, maybe it could be extended to invoke any already-built 
interpreter?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-19 Thread Cheryl Sabella

Cheryl Sabella added the comment:

Terry,

Should IDLE library modules get docstrings or is that something you'd rather 
not have?  Putting the question here because ColorDelegator in colorizer.py 
doesn't have any docstrings.  I wanted to read some of the IDLE code and I can 
try to add missing docstrings if it's something that should be done.

Thanks!

--
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30403] Running extension modules using -m switch

2017-05-19 Thread Petr Viktorin

Petr Viktorin added the comment:

It's part of a larger effort to bring the capabilities of extension modules up 
to par with Python ones. For example, it's one less surprise you'd get when you 
Cythonize a module. And it's not only for stdlib modules – it's for any 
extension module.



I'd be happy to answer questions here. But to get up to speed and avoid bpo 
comment lag, you can also see the current discussion on import-sig [0], or dig 
up some of the older conversations there leading up to PEP 489 (Feb-May 2015). 
And if you're at PyCon, you could have a high-bandwidth conversation with Nick 
Coghlan – he has the master plan in his head :)

[0] https://mail.python.org/pipermail/import-sig/2017-May/001072.html

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30405] PCbuild.bat: register binaries for py launcher

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I presume there is already a dead registry entry problem if someone simply 
deletes the pythonxy directory.  (I know, very bad idea.)  On the other hand, 
deleting a git repository directory *is* the thing to do.  While listing 
entries and paths, py could check that the path exists and delete the registry 
entry if it does not.

I have no idea how easy it would be to expand to more than x.y and x.y-32.  For 
myself, this is not immediately an issue as I install 64 bit versions and build 
the default 32 bit debug versions.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-05-19 Thread Nir Soffer

Nir Soffer added the comment:

I think the issue can be solved in readline or in the code using it, but I 
don't have more time to dig into this, and I think that python should not crash 
in this case.

I don't have an environment to test Apple editline, so I cannot test this 
issue. The PR includes a test case now, running the new test on OS X will tell 
us if this is the case.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-19 Thread kelly hirai

kelly hirai added the comment:

tested with 1.0.18 with same results.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30404] Make stdout and stderr truly unbuffered when using -u option

2017-05-19 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
title: Make stdout and stderr truly unbuffered when run with the -u option -> 
Make stdout and stderr truly unbuffered when using -u option

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30403] Running extension modules using -m switch

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

What is the use case?

It only make sense to run any stdlib module with -m, and without -i, if it has 
a command line interface (and an if __name__ clause).  Otherwise, the module is 
created and then deleted when python exits.

> py -m math
>

C-coded modules with such a command line interface have a mod.py file that 
imports _mod.

The following can make sense.

> py -m -i math  
Python x.y ...
>>> math.sin(1.48973)

But it is hardly needed as '-m -i math' is only one char less than 'import math'

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-19 Thread kelly hirai

New submission from kelly hirai:

for x in ipaddress.IPv4Network(u"192.168.0.0/23").hosts():
print x

contains 192.168.1.0 but does not contain 192.168.1.255

ipaddress version 1.0.14

--
messages: 293978
nosy: kghongaku
priority: normal
severity: normal
status: open
title: ipaddress ver. 1.0.14 IPv4Network off by 1
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30406] async and await should be keywords in 3.7

2017-05-19 Thread Jelle Zijlstra

Changes by Jelle Zijlstra :


--
pull_requests: +1763

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30399] Get rid of trailing comma in the repr() of BaseException

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I think the trailing comma is slightly worse than redundant, as someone who has 
forgotten the trailing comma rule for calls can mistakenly read it as making 
the arg a tuple.  So +1 on removing it.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30406] async and await should be keywords in 3.7

2017-05-19 Thread Jelle Zijlstra

New submission from Jelle Zijlstra:

According to PEP 492, async and await should be full keywords in Python 3.7, 
but this hasn't been implemented yet. I have a patch ready that I'll submit as 
a PR soon.

--
components: Interpreter Core
messages: 293976
nosy: Jelle Zijlstra, giampaolo.rodola, haypo, yselivanov
priority: normal
severity: normal
status: open
title: async and await should be keywords in 3.7
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30388] ndbm can't iterate through values on OS X

2017-05-19 Thread Forest Gregg

Forest Gregg added the comment:

Very sorry for the ambiguity. 

The bug appears for both python 3.5 and python 3.6.1 on OS X. I have not tried 
other versions of python on OS X.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30388] ndbm can't iterate through values on OS X

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Do you mean that on OSX, you code works with 3.6.1 and fails with 3.5.3?

--
components: +macOS
nosy: +ned.deily, ronaldoussoren, terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30377] Unnecessary complexity in tokenize.py: comments and newlines

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This is pycon week, so staff person is busy with that.

--
nosy: +terry.reedy
title: Unnecessary complexity in tokenize.py around handling of comments and 
newlines -> Unnecessary complexity in tokenize.py: comments and newlines

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30376] Curses documentation refers to incorrect type

2017-05-19 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30376] Curses documentation refers to incorrect type

2017-05-19 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage:  -> needs patch
type:  -> behavior
versions:  -Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30372] Status of __builtins__ is not totally clear

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Moving "CPython implementation detail: " up a paragraph should be trivial.  
Resolving the conflict between " __builtins__ can be set to a user-created 
dictionary to create a weak form of restricted execution." and "Users should 
not touch __builtins__;" seems less so.  I suspect the the latter was added 
well after the former, and that the former should have been deleted at that 
time.

--
nosy: +terry.reedy
stage:  -> needs patch
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30405] PCbuild.bat: register binaries for py launcher

2017-05-19 Thread Paul Moore

Paul Moore added the comment:

Hmm, thinking a bit further, are you just suggesting registering the build as 
-3.7? What if I were to build the 3.6 branch? Would that overwrite my "real" 
3.6 registry entries?

As things stand, the launcher can only register two copies of Python for any 
given minor version (one 32 bit and one 64 bit). So this would only really be 
useful for trunk (and for builds of versions where you don't already have the 
release version installed).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30405] PCbuild.bat: register binaries for py launcher

2017-05-19 Thread Paul Moore

Paul Moore added the comment:

I'd be wary of leaving out of date registry entries around. Maybe make it a 
separate script (or part of build.bat but requiring a command line flag to 
request it)?

Alternatively (or as well) we could have a cleanup command that removes 
registry entries for working builds that are no longer wanted. Of course you 
can handle this by manually editing the registry - but the same could equally 
be said of the original request...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30362] Launcher add list and list with paths options

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

py already has the -number option space.  To avoid conflict, use -0 (zero).  I 
think only one option is needed -- print 'x.y path' for each binary it can find 
and run.  'x.y' should be the exact option needed to start the particular 
binary.

This enhancement would enable IDEs to much more easily offer 'Run with x.y'.  
It also would make #30405 (register locally built binaries) more useful.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30405] PCbuild.bat: register binaries for py launcher

2017-05-19 Thread Terry J. Reedy

New submission from Terry J. Reedy:

While working on patches for python, typing 
path\repository\PCbuild\win32\python-d.exe is an error-prone pain.  I would 
really like to be able to run locally built binaries with py.Could 
pcbuild/build.bat register binaries that it successfully builds?  And then 
print the -x.y option needed for py?  

#30362 would nicely complement this issue.

--
components: Build, Unicode
messages: 293968
nosy: ezio.melotti, haypo, paul.moore, steve.dower, terry.reedy, tim.golden, 
zach.ware
priority: normal
severity: normal
stage: test needed
status: open
title: PCbuild.bat: register binaries for py launcher
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30361] Docs example: converting mixed types to floating point

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Agreed.  Also, I think one example is enough.  A good sprint fix.

--
keywords: +easy
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30360] getpass.getpass() does not accept stdin from an Expect script

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I strongly suspect that this should be closed as 'not a bug', but I know too 
little about expect to be sure.  If there is a python, as opposed to expect or 
os bug, then it should be possible to demonstrate the problem with python.  If 
you leave this open, please post to python-ideas, where there are people who 
use expect.

Also, text files should be uploaded as they are, uncompressed, so readers can 
click and view in a browser.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30359] Annotating a function as returning an (async) context manager?

2017-05-19 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
title: A standard convention for annotating a function as returning an (async) 
context manager? -> Annotating a function as returning an (async) context 
manager?

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30355] Unicode symbols crash lib2to3.parse

2017-05-19 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree.  Δ is not a 2.x identifier (variable name) or anything else (like 
'binary operator') and it would be wrong for lib2to3.pgen2.parse.classify to 
classify it is such, or as anything else.  So I am closing this.  Benjamin can 
reopen if we are mistaken.

--
nosy: +benjamin.peterson, terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30359] A standard convention for annotating a function as returning an (async) context manager?

2017-05-19 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

Or you can use typing.ContextManager[ret_type] if you like generics
(typing.AsyncContextManager will be also added soon).

Also this recent discussion seems relevant 
https://github.com/python/peps/pull/242 and the corresponding thread on 
python-dev: https://www.mail-archive.com/python-dev@python.org/msg95595.html

--
nosy: +levkivskyi

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30399] Get rid of trailing comma in the repr() of BaseException

2017-05-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
title: Get rid of trailing comma if the repr() of BaseException -> Get rid of 
trailing comma in the repr() of BaseException

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18299] Change script_helper to use universal_newlines=True in _assert_python

2017-05-19 Thread Pranav Deshpande

Pranav Deshpande added the comment:

I am afraid I didn't make myself clear. 
I am a beginner when it comes to open source contribution and have decided to 
take up this issue. I did some basic research about the issue and found this 
file:

cpython/Lib/test/support/script_helper.py

The function _assert_python calls run_python_until_end which calls 
subprocess.Popen which takes the parameter universal_newlines=True.

That is all I could discover. Could you guide me further regarding this?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30000] Inconsistency in the zlib module

2017-05-19 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I think adding these parameters to the zlib.compress() function is a fine 
addition for 3.7.  They are more convenient for those (few) who do need them.

I'd go ahead and turn it into a cpython PR.

--
nosy: +gregory.p.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30404] Make stdout and stderr truly unbuffered when run with the -u option

2017-05-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1762

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28647] python --help: -u is misdocumented as binary mode

2017-05-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Issue30404 makes stdout and stderr truly unbuffered when run with -u.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30404] Make stdout and stderr truly unbuffered when run with the -u option

2017-05-19 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

In Python 2 when run the interpreter with the -u option the stdout and stderr 
streams are unbuffered. In Python 3 they become just line-buffered. This is 
because initially there was no way to create unbuffered text streams. But since 
Python 3.3 TextIOWrapper supports unbuffered output binary stream and accepts 
the write_through argument which switch off its own buffering.

Proposed patch makes the stdout and stderr streams truly unbuffered when run 
with the -u option.

--
components: IO, Interpreter Core
messages: 293960
nosy: benjamin.peterson, pitrou, serhiy.storchaka, stutzbach
priority: normal
severity: normal
stage: patch review
status: open
title: Make stdout and stderr truly unbuffered when run with the -u option
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-19 Thread Xavier de Gaye

Xavier de Gaye added the comment:

PR 1666 added.

With Unified Headers introduced in android-ndk-r14, the size of off_t for 32 
bits Android devices is 8 instead of 4 and the cross-compilation of Python on 
Android does not fail in this case, see msg293956.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30385] Segfault on OSX with 3.6.1

2017-05-19 Thread Ned Deily

Ned Deily added the comment:

Unfortunately, his is a long standing problem when using Python applications 
that fork on macOS and that end up calling certain system frameworks that under 
the covers use the system libdispatch which is not fork safe.  In this case, it 
is most likely due to a call to s urllib function that results in a call to 
Python's helper module _scproxy to query the macOS system configuration for 
network proxies.  If your application and system are not using a proxy, the 
simplest workaround is to disable network proxy lookups by defining the 
environment variable 'no_proxy' with value '*' in the Python process, for 
example:

env no_proxy='*' python3.6 ...

Otherwise, restructuring your code to ensure network initialization occurs in 
the main thread before any forking *might* also prevent the segfault.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> _scproxy.so causes EXC_BAD_ACCESS (SIGSEGV)

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-19 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
pull_requests: +1761

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29611] TextIOWrapper's write_through option behave differently between C and pure Python implementation.

2017-05-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is a duplicate of issue15571.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
superseder:  -> Python version of TextIOWrapper ignores "write_through" arg

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30386] Add a build infrastructure for Android

2017-05-19 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Commited 'bpo-30386: Support the new NDK Unified Headers'.

This does fix the missing declarations in the NDK headers and 
android-api-24.patch is not needed now.
It also fixes the missing declaration of sethostname() at API 24 that caused 
the import of the _socket module to fail.
More surprisingly it also fixes the compilation failure with 32 bits 
architectures (the size of off_t is now 8 instead of 4 previously) and 
issue29619.patch is not needed now.
Only one version of the NDK is supported, currently it is android-ndk-r14 the 
latest stable release.
The '-Wno-nullability-completeness' compilation flag is needed to avoid a flow 
of warnings in the processing of some NDK headers.

Unified Headers comes with a new annoying problem: langinfo.h exists now but 
nl_langinfo() is intentionaly not declared except for the 
__ANDROID_API_FUTURE__ API level
which is reserved for the development of the NDK itself. The solution chosen 
here is:
* Undefine HAVE_LANGINFO_H and CODESET in Include/pyport.h to maintain the 
status quo in the Python code.
* The Makefile generated by makesetup runs a script at configure time that 
checks that nl_langinfo() is not declared and aborts the build otherwise.  This 
allows to detect when langinfo.h starts being not broken anymore when swicthing 
to a new version of the NDK. In that case the following steps should be taken 
upon swicthing to this new version:
  + Remove this script from the build system (obviously).
  + Remove the changes in Include/pyport.h.
  + Revert the changes made in issue 28596.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30385] Segfault on OSX with 3.6.1

2017-05-19 Thread Daniel Birnstiel

Daniel Birnstiel added the comment:

I am currently (occasionally) running into the same problem, using Python 3.6.0 
on OSX 10.12.3.

I cannot reproduce this segmentation fault reliably, it happens after running 
for a while in production. This appears to be similar to issue 13829.

python traceback (trimmed):

Fatal Python error: Segmentation fault

Current thread 0x765fb000 (most recent call first):
  File 
"/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py",
 line 2592 in proxy_bypass_macosx_sysconf
  File 
"/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py",
 line 2616 in proxy_bypass
  File 
"/Users/daniel/Workspace/venv/lib/python3.6/site-packages/requests/utils.py", 
line 677 in should_bypass_proxies
  File 
"/Users/daniel/Workspace/venv/lib/python3.6/site-packages/requests/utils.py", 
line 693 in get_environ_proxies
  File 
"/Users/daniel/Workspace/venv/lib/python3.6/site-packages/requests/sessions.py",
 line 686 in merge_environment_settings
  File 
"/Users/daniel/Workspace/venv/lib/python3.6/site-packages/requests/sessions.py",
 line 509 in request
  File 
"/Users/daniel/Workspace/venv/lib/python3.6/site-packages/requests/api.py", 
line 58 in request


crash dump traceback (trimmed):

* thread #1: tid = 0x, 0x7fffc1ef0dd6 
libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGSTOP
  * frame #0: 0x7fffc1ef0dd6 libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x7fffc1fdc787 libsystem_pthread.dylib`pthread_kill + 90
frame #2: 0x7fffc1e07497 libsystem_c.dylib`raise + 26
frame #3: 0x7fffc1fcfbba libsystem_platform.dylib`_sigtramp + 26
frame #4: 0x7fffc1da188f libdispatch.dylib`_dispatch_queue_push + 172
frame #5: 0x7fffc1d91572 libdispatch.dylib`_dispatch_mach_msg_send + 657
frame #6: 0x7fffc1d924ba libdispatch.dylib`_dispatch_mach_send_drain + 
280
frame #7: 0x7fffc1da91ea 
libdispatch.dylib`_dispatch_mach_send_push_and_trydrain + 487
frame #8: 0x7fffc1da6745 libdispatch.dylib`_dispatch_mach_send_msg + 282
frame #9: 0x7fffc1da6804 
libdispatch.dylib`dispatch_mach_send_with_result + 50
frame #10: 0x7fffc201f25e libxpc.dylib`_xpc_connection_enqueue + 104
frame #11: 0x7fffc201eca3 
libxpc.dylib`xpc_connection_send_message_with_reply + 152
frame #12: 0x7fffac99b8e5 CoreFoundation`__80-[CFPrefsSearchListSource 
alreadylocked_generationCountFromListOfSources:count:]_block_invoke_2 + 133
frame #13: 0x7fffac9cb4e4 CoreFoundation`-[_CFXPreferences 
withConnectionForRole:performBlock:] + 36
frame #14: 0x7fffac99b817 CoreFoundation`__80-[CFPrefsSearchListSource 
alreadylocked_generationCountFromListOfSources:count:]_block_invoke + 199
frame #15: 0x7fffac99b662 CoreFoundation`-[CFPrefsSearchListSource 
alreadylocked_generationCountFromListOfSources:count:] + 226
frame #16: 0x7fffac81ee80 CoreFoundation`-[CFPrefsSearchListSource 
alreadylocked_copyDictionary] + 336
frame #17: 0x7fffac81eb5c CoreFoundation`-[CFPrefsSearchListSource 
alreadylocked_copyValueForKey:] + 60
frame #18: 0x7fffac94dd75 CoreFoundation`-[CFPrefsSource 
copyValueForKey:] + 53
frame #19: 0x7fffac9c9b00 CoreFoundation`__76-[_CFXPreferences 
copyAppValueForKey:identifier:container:configurationURL:]_block_invoke + 32
frame #20: 0x7fffac99ca32 
CoreFoundation`__108-[_CFXPreferences(SearchListAdditions) 
withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke
 + 290
frame #21: 0x7fffac99c8a9 
CoreFoundation`-[_CFXPreferences(SearchListAdditions) 
withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 345
frame #22: 0x7fffac9c9a66 CoreFoundation`-[_CFXPreferences 
copyAppValueForKey:identifier:container:configurationURL:] + 310
frame #23: 0x7fffb343a56f 
SystemConfiguration`SCDynamicStoreCopyProxiesWithOptions + 164
frame #24: 0x00010b36f926 
_scproxy.cpython-36m-darwin.so`get_proxy_settings + 24
frame #25: 0x00010942148b Python`_PyCFunction_FastCallDict + 529
frame #26: 0x000109488959 Python`call_function + 562
frame #27: 0x000109485d10 Python`_PyEval_EvalFrameDefault + 26835

--
nosy: +Birne94

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30403] Running extension modules using -m switch

2017-05-19 Thread Petr Viktorin

Changes by Petr Viktorin :


--
nosy: +encukou, ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30403] Running extension modules using -m switch

2017-05-19 Thread Marcel Plch

New submission from Marcel Plch:

Currently the -m switch does not work with extension modules:

$ python3 -m math

/usr/bin/python3: No code object available for math


In order to enable extension modules to behave like Python source modules,
the -m switch should be supported.

Please, see this proof of concept:
https://github.com/Traceur759/cpython/tree/main_c_modules

--
components: Extension Modules
messages: 293954
nosy: Dormouse759
priority: normal
severity: normal
status: open
title: Running extension modules using -m switch
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-05-19 Thread Erik Bray

Changes by Erik Bray :


--
pull_requests: +1760

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-19 Thread Andrew Jaffe

Andrew Jaffe added the comment:

This seems to be a bug in the `osascript` application in the latest macOS 
10.12.5:

$ osascript < open location "http://python.org";
> EOF
0:33: execution error: "http://python.org"; doesn’t understand the “open 
location” message. (-1708)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30377] Unnecessary complexity in tokenize.py around handling of comments and newlines

2017-05-19 Thread Albert-Jan Nijburg

Albert-Jan Nijburg added the comment:

Still no CLA, I checked my username on the pdf, and it's correct, hope someone 
looks at it soon :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com