[issue35587] Python 3.7.2 Embed - zipimport.ZipImportError (Cannot load python37.zip)

2018-12-25 Thread embed372


Change by embed372 :


--
components: +Library (Lib) -Build

___
Python tracker 

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



[issue34897] distutils test errors when CXX is not set

2018-12-25 Thread Nick Coghlan


Nick Coghlan  added the comment:


New changeset 259c159fc1faab0dd631d20374842dc0d6a9f145 by Nick Coghlan (Michael 
Felt) in branch 'master':
bpo-34897: avoid distutils test error when CXX is not set (GH-9706)
https://github.com/python/cpython/commit/259c159fc1faab0dd631d20374842dc0d6a9f145


--
nosy: +ncoghlan

___
Python tracker 

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



[issue34711] Lib/http/server.py: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory

2018-12-25 Thread Nick Coghlan


Nick Coghlan  added the comment:


New changeset 2062a20641febad5eb9c18d74e1cfb4d7a6e53ed by Nick Coghlan (Michael 
Felt) in branch 'master':
bpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith('/') and not a 
directory (GH-9687)
https://github.com/python/cpython/commit/2062a20641febad5eb9c18d74e1cfb4d7a6e53ed


--
nosy: +ncoghlan

___
Python tracker 

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



[issue35587] Python 3.7.2 Embed - zipimport.ZipImportError (Cannot load python37.zip)

2018-12-25 Thread embed372


Change by embed372 :


--
type: compile error -> behavior

___
Python tracker 

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



[issue35587] Python 3.7.2 Embed - zipimport.ZipImportError (Cannot load python37.zip)

2018-12-25 Thread embed372


Change by embed372 :


--
type: crash -> compile error

___
Python tracker 

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



[issue35587] Python 3.7.2 Embed - zipimport.ZipImportError (Cannot load python37.zip)

2018-12-25 Thread embed372


Change by embed372 :


--
title: Python 3.7.2 Embed - zipimport.ZipImportError -> Python 3.7.2 Embed - 
zipimport.ZipImportError (Cannot load python37.zip)

___
Python tracker 

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



[issue35587] Python 3.7.2 Embed - zipimport.ZipImportError

2018-12-25 Thread embed372


New submission from embed372 :

[zip file]
=---
python37.zip
.

# Uncomment to run site.main() automatically
#import site

Fatal Python error: initfsencoding: unable to load the file system codec
zipimport.ZipImportError: can't find module 'encodings'

Current thread 0x228c (most recent call first):




[directory : extracted form python37.zip]
=---
python37
.

# Uncomment to run site.main() automatically
#import site


works well ...




[duplicaiton of vcruntime140.dll in Python 3.7.2 embed]

python37._pth
libcrypto-1_1-x64.dll
libssl-1_1-x64.dll
python3.dll
python37.dll
sqlite3.dll
vcruntime140.dll [*]
vcruntime140.dll [*]  <-- _distutils_findvs.pyd (?)
python.exe
pythonw.exe
_asyncio.pyd
_bz2.pyd
_contextvars.pyd
_ctypes.pyd
_decimal.pyd
_elementtree.pyd
_hashlib.pyd
_lzma.pyd
_msi.pyd
_multiprocessing.pyd
_overlapped.pyd
_queue.pyd
_socket.pyd
_sqlite3.pyd
_ssl.pyd
pyexpat.pyd
select.pyd
unicodedata.pyd
winsound.pyd
python37.zip


--
components: Build
messages: 332530
nosy: embed372
priority: normal
severity: normal
status: open
title: Python 3.7.2 Embed - zipimport.ZipImportError
type: crash
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



[issue34897] distutils test errors when CXX is not set

2018-12-25 Thread Michael Felt


Change by Michael Felt :


--
pull_requests: +10576

___
Python tracker 

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



[issue34897] distutils test errors when CXX is not set

2018-12-25 Thread Michael Felt


Change by Michael Felt :


--
pull_requests: +10576, 10577

___
Python tracker 

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



[issue35586] Open pyexpat compilation, Make shows error(missing separator)

2018-12-25 Thread kbengine

New submission from kbengine :

Python3.7.2
My compilation steps:
1. Modify Modules/Setup.dist, open pyexpat
pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c 
-I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DXML_POOR_ENTROPY=1 
-DUSE_PYEXPAT_CAPI

2. ./configure
3. make
Makefile:272: *** missing separator. Stop.




--
components: Extension Modules
messages: 332529
nosy: kbengine
priority: normal
severity: normal
status: open
title: Open pyexpat compilation, Make shows error(missing separator)
type: compile error
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



[issue27643] test_ctypes fails on AIX with xlc

2018-12-25 Thread Nick Coghlan


Nick Coghlan  added the comment:


New changeset 22462da70c1ae015a60a7b821547bc6d2b5bc265 by Nick Coghlan (Michael 
Felt) in branch 'master':
bpo-27643 - skip test_ctypes test case with XLC compiler. (GH-5164)
https://github.com/python/cpython/commit/22462da70c1ae015a60a7b821547bc6d2b5bc265


--
nosy: +ncoghlan

___
Python tracker 

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



[issue11192] test_socket error on AIX

2018-12-25 Thread Nick Coghlan


Nick Coghlan  added the comment:


New changeset 5661459f5f508ea4bd24c13cbc861543f283147e by Nick Coghlan (Michael 
Felt) in branch 'master':
bpo-11192: Skip unsupported cases in test_socket on AIX (GH-8954)
https://github.com/python/cpython/commit/5661459f5f508ea4bd24c13cbc861543f283147e


--
nosy: +ncoghlan

___
Python tracker 

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



[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2018-12-25 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

Hi Elliot!

> It seems like a no-brainer to add these, they reduce magic number use and 
> improve the accessibility of Python to people coming from C. I would love to 
> add these if everyone is OK with it.

Sound great. But IMO I think that this can be solved doing:

EXIT_FAILURE = 1
EXIT_SUCCESS = 0

sys.exit(EXIT_SUCCES)

And what is the difference between EX_OK and EXIT_SUCCESS? both values are 0. 

BTW, I think this is a good improve and more for C coder. 

I recommend you mmake the PR.

--
nosy: +eamanu

___
Python tracker 

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



[issue35228] Index search in CHM help crashes viewer

2018-12-25 Thread Ma Lin


Ma Lin  added the comment:

I solved this thoroughly: Format disk C: and install a clean Windows 10.

Don't forget to backup important files in C:\Users\\ folder.

--

___
Python tracker 

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



[issue29886] links between binascii.{un,}hexlify / bytes.{,to}hex

2018-12-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10573, 10574

___
Python tracker 

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



[issue29886] links between binascii.{un,}hexlify / bytes.{,to}hex

2018-12-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10573, 10574, 10575

___
Python tracker 

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



[issue29886] links between binascii.{un,}hexlify / bytes.{,to}hex

2018-12-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10573

___
Python tracker 

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



[issue29886] links between binascii.{un,}hexlify / bytes.{,to}hex

2018-12-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +10570, 10571

___
Python tracker 

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



[issue29886] links between binascii.{un,}hexlify / bytes.{,to}hex

2018-12-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +10570

___
Python tracker 

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



[issue29886] links between binascii.{un,}hexlify / bytes.{,to}hex

2018-12-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +10570, 10571, 10572

___
Python tracker 

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



[issue35585] Speedup Enum lookup

2018-12-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee:  -> ethan.furman
nosy: +ethan.furman

___
Python tracker 

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



[issue35585] Speedup Enum lookup

2018-12-25 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +10568
stage:  -> patch review

___
Python tracker 

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



[issue35585] Speedup Enum lookup

2018-12-25 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch, patch
pull_requests: +10568, 10569
stage:  -> patch review

___
Python tracker 

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



[issue35585] Speedup Enum lookup

2018-12-25 Thread Andrew Svetlov


New submission from Andrew Svetlov :

Construction enums by-value (e.g. http.HTTPStatus(200)) performs two dict 
lookups: 
if value in cls._value2member_map_:
return cls._value2member_map_[value]

Changing the code to just
return cls._value2member_map_[value]
with catching KeyError can speedup the fast path a little.

--
components: Library (Lib)
messages: 332524
nosy: asvetlov
priority: normal
severity: normal
status: open
title: Speedup Enum lookup
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue35565] Add detail to an assertion failure message in wsgiref

2018-12-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
resolution:  -> fixed
stage: patch review -> 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



[issue35565] Add detail to an assertion failure message in wsgiref

2018-12-25 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset b6af23ebf9d6667fa222e804f045735289b4527f by Raymond Hettinger in 
branch 'master':
Revert "bpo-35565: Add detail to assertion failure message in wsgiref" 
(GH-11317)
https://github.com/python/cpython/commit/b6af23ebf9d6667fa222e804f045735289b4527f


--

___
Python tracker 

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



[issue35565] Add detail to an assertion failure message in wsgiref

2018-12-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +10565

___
Python tracker 

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



[issue35565] Add detail to an assertion failure message in wsgiref

2018-12-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +10565, 10566, 10567

___
Python tracker 

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



[issue35565] Add detail to an assertion failure message in wsgiref

2018-12-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +10565, 10566

___
Python tracker 

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



[issue35565] Add detail to an assertion failure message in wsgiref

2018-12-25 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 5ef4fc241aea6759ef3f55b1ef564aebc492a0db by Raymond Hettinger 
(Cheryl Sabella) in branch 'master':
bpo-35565: Add detail to assertion failure message in wsgiref (GH-11293)
https://github.com/python/cpython/commit/5ef4fc241aea6759ef3f55b1ef564aebc492a0db


--

___
Python tracker 

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



[issue35584] Wrong statement about ^ in howto/regex.rst

2018-12-25 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The caret has several meanings:

* Generally, it is a beginning of string: r'^bol'

* When MULTILINE is on, it is a beginning of line: r'^bos'

* Escaped with a backslash, it is just a caret: r'a\^b'

* Immediately after a left bracket, it inverts a character set: r'[^aeiou]'

* Elsewhere in brackets, it is just a caret: r'[ab^d]'

--
nosy: +rhettinger
versions:  -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



[issue35584] Wrong statement about ^ in howto/regex.rst

2018-12-25 Thread Julien Palard


New submission from Julien Palard :

In howto/regex.rst I read:

> '^' outside a character class will simply match the '^' character.

Which looks wrong, '^' is the "begin anchor", it's a metacharacter that 
typically won't match '^'.

I propose to simply remove the statement, if nobody finds a better idea.

--
assignee: docs@python
components: Documentation
messages: 332520
nosy: Vaibhav Gupta, docs@python, mdk
priority: normal
severity: normal
status: open
title: Wrong statement about ^ in howto/regex.rst
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue35579] Typo in in asyncio-task documentation

2018-12-25 Thread Julien Palard


Julien Palard  added the comment:

Looks like you can (no one objected to it).

--

___
Python tracker 

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



[issue35579] Typo in in asyncio-task documentation

2018-12-25 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Sure!

--

___
Python tracker 

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



[issue34055] IDLE Shell: check syntax before smart indent

2018-12-25 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

This code in editor.py controls the text that is parsed for smart indenting:
if not self.context_use_ps1:
for context in self.num_context_lines:
startat = max(lno - context, 1)
startatindex = repr(startat) + ".0"
rawtext = text.get(startatindex, "insert")
y.set_code(rawtext)
bod = y.find_good_parse_start(
  self.context_use_ps1, 
self._build_char_in_string_func(startatindex))
if bod is not None or startat == 1:
break
y.set_lo(bod or 0)
else:
r = text.tag_prevrange("console", "insert")
if r:
startatindex = r[1]
else:
startatindex = "1.0"
rawtext = text.get(startatindex, "insert")
y.set_code(rawtext)
y.set_lo(0)

The `if not self.context_use_ps1` basically says whether the window is an 
editor or shell.  At a high level, the editor code goes back a certain number 
of lines from the current cursor and the shell window goes back to just the 
current statement.  

#31858 improved the use of sys.ps1 (the prompt) and it removed setting 
`self.context_use_ps1` in pyshell.  This meant that the `else` above was never 
accessed and that the shell was parsing all the text, not just the current 
statement.

#31858 introduced `self.prompt_last_line` that is set to '' in the editor and 
set to the prompt in the shell.  Replacing `self.context_use_ps1` with 
`self.prompt_last_line` allows the `else` above to be called.

#32989 addresses a bug discovered with adding tests to `pyparse` where the 
`find_good_parse_start` call above was actually sending incorrect parameters, 
so removing `context_use_ps1` from that line is not an issue, but rather 
another bug fix.  It might be preferable to merge #32989 first, therefore I'm 
listing that as a dependency.

--
dependencies: +IDLE: Fix pyparse.find_good_parse_start and its bad editor call
nosy: +cheryl.sabella
stage: patch review -> test needed

___
Python tracker 

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



[issue35485] Mac: tkinter windows turn black while resized

2018-12-25 Thread Ned Deily

Ned Deily  added the comment:

It depends what version of Tcl/Tk is used and on what version of macOS the Tk 
is built on. I believe there were problems with versions of Tk bout on 10.14 
Mojave that have been fixed perhaps in the latest version of Tk. Kevin May know 
more. It’s not a problem for the python.org macOS installers because we don’t 
build any on 10.14 even though they install and run on 10.14.

--

___
Python tracker 

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



[issue35485] Mac: tkinter windows turn black while resized

2018-12-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

https://stackoverflow.com/questions/53923262/pyenv-installed-version-opening-idle-in-black-screen
 reports that with 3.6.7 in a venv running on Mac Mohave (with 3.7.2 
installed), IDLE opens with a black screen.  Is there another report like this?

--

___
Python tracker 

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



[issue35583] (glibc2.28/MIPS32EL) python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine)

2018-12-25 Thread Gagan


Change by Gagan :


--
title: python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine) 
-> (glibc2.28/MIPS32EL) python 3.7.x interpreter segmentation fault 
(3.6.x/2.7.x compile fine)

___
Python tracker 

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



[issue35583] python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine)

2018-12-25 Thread Gagan


New submission from Gagan :

Hello everyone.

I am currently trying to compile Python 3.7.x on a MIPS(el, little endian; 32 
bit) platform, and I am having issues producing a functioning interpreter to 
continue the compilation.

I have no issue compiling either 2.7.x or 3.6.x versions on this machine, and I 
am using 3.6.7.

here is the dump from the installation:

root@DD-WRT:/mnt/work/Python-3.7.2# make platform
LD_LIBRARY_PATH=/mnt/work/Python-3.7.2:/lib:/usr/lib:/usr/local/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib
 ./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
/bin/sh: line 5:   399 Segmentation fault  
LD_LIBRARY_PATH=/mnt/work/Python-3.7.2:/lib:/usr/lib:/usr/local/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib
 ./python -E -S -m sysconfig --generate-posix-vars
generate-posix-vars failed
make: *** [Makefile:604: pybuilddir.txt] Error 1
---

and here is the valgrind output.:

-
root@DD-WRT:/mnt/work/Python-3.7.2# valgrind ./python -E -S -m sysconfig 
--generate-posix-vars
==1246== Memcheck, a memory error detector
==1246== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1246== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==1246== Command: ./python -E -S -m sysconfig --generate-posix-vars
==1246== 
==1246== Conditional jump or move depends on uninitialised value(s)
==1246==at 0x401FAF4: ??? (in /lib/ld-2.28.so)
==1246==by 0x400942C: ??? (in /lib/ld-2.28.so)
==1246== 
==1246== Conditional jump or move depends on uninitialised value(s)
==1246==at 0x4020104: ??? (in /lib/ld-2.28.so)
==1246==by 0x4020024: ??? (in /lib/ld-2.28.so)
==1246== 
==1246== Conditional jump or move depends on uninitialised value(s)
==1246==at 0x4007E94: ??? (in /lib/ld-2.28.so)
==1246==by 0x4007DC4: ??? (in /lib/ld-2.28.so)
==1246== 
==1246== Conditional jump or move depends on uninitialised value(s)
==1246==at 0x4020104: ??? (in /lib/ld-2.28.so)
==1246==by 0x400D950: ??? (in /lib/ld-2.28.so)
==1246== 
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
==1246== Conditional jump or move depends on uninitialised value(s)
==1246==at 0x4858AEC: wcslen (vg_replace_strmem.c:1856)
==1246==by 0x4A51CEC: _PyMem_RawWcsdup (obmalloc.c:569)
==1246==by 0x4D15A8C: pymain_wstrdup (main.c:501)
==1246==by 0x4D15A8C: pymain_init_cmdline_argv (main.c:561)
==1246==by 0x4D15A8C: pymain_read_conf (main.c:2024)
==1246==by 0x4D15A8C: pymain_cmdline_impl (main.c:2642)
==1246==by 0x4D15A8C: pymain_cmdline (main.c:2707)
==1246==by 0x4D15A8C: pymain_init (main.c:2748)
==1246==by 0x4D18BA0: pymain_main (main.c:2782)
==1246==by 0x4D1AE04: _Py_UnixMain (main.c:2822)
==1246==by 0x400D88: main (in /tmp/mnt/work/Python-3.7.2/python)
==1246== 
==1246== Conditional jump or move depends on uninitialised value(s)
==1246==at 0x4858AEC: wcslen (vg_replace_strmem.c:1856)
==1246==by 0x4A51CEC: _PyMem_RawWcsdup (obmalloc.c:569)
==1246==by 0x4D0D688: copy_wstrlist (main.c:1237)
==1246==by 0x4D171E0: pymain_init_core_argv (main.c:1263)
==1246==by 0x4D171E0: pymain_read_conf_impl (main.c:1955)
==1246==by 0x4D171E0: pymain_read_conf (main.c:2028)
==1246==by 0x4D171E0: pymain_cmdline_impl (main.c:2642)
==1246==by 0x4D171E0: pymain_cmdline (main.c:2707)
==1246==by 0x4D171E0: pymain_init (main.c:2748)
==1246==by 0x4D18BA0: pymain_main (main.c:2782)
==1246==by 0x4D1AE04: _Py_UnixMain (main.c:2822)
==1246==by 0x400D88: main (in /tmp/mnt/work/Python-3.7.2/python)
==1246== 
==1246== Conditional jump or move depends on uninitialised value(s)
==1246==at 0x4858AEC: wcslen (vg_replace_strmem.c:1856)
==1246==by 0x4A51CEC: _PyMem_RawWcsdup (obmalloc.c:569)
==1246==by 0x4D0D688: copy_wstrlist (main.c:1237)
==1246==by 0x4D17B78: pymain_cmdline_impl (main.c:2663)
==1246==by 0x4D17B78: pymain_cmdline (main.c:2707)
==1246==by 0x4D17B78: pymain_init (main.c:2748)
==1246==by 0x4D18BA0: pymain_main (main.c:2782)
==1246==by 0x4D1AE04: _Py_UnixMain (main.c:2822)
==1246==by 0x400D88: main (in /tmp/mnt/work/Python-3.7.2/python)
==1246== 
==1246== Conditional jump or move depends on uninitialised value(s)
==1246==at 0x4858AEC: wcslen (vg_replace_strmem.c:1856)
==1246==by 0x4A51CEC: _PyMem_RawWcsdup (obmalloc.c:569)
==1246==by 0x4D11C3C: _PyCoreConfig_Copy (main.c:2415)
==1246==by 0x4C9D630: _Py_InitializeCore (pylifecycle.c:847)
==1246==by 0x4D150D4: pymain_init (main.c:2760)
==1246==by 0x4D18BA0: pymain_main (main.c:2782)
==1246==by 0x4D1AE04: _Py_UnixMain (main.c:2822)
==1246==by 0x400D88: main (in /tmp/mnt/work/Python-3.7.2/python)
==1246== 
==1246== Conditional jump or move depends on 

[issue32070] Clarify the behavior of the staticmethod builtin

2018-12-25 Thread Andrés Delfino

Andrés Delfino  added the comment:

Also see #34085 that deals with the same issue in functions.rst.

--
nosy: +adelfino

___
Python tracker 

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



[issue35579] Typo in in asyncio-task documentation

2018-12-25 Thread Vaibhav Gupta


Vaibhav Gupta  added the comment:

I am totally new to the community here and would like to start with a easy 
issue.
Can i make a PR for this?

--
nosy: +Vaibhav Gupta

___
Python tracker 

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



[issue23867] Argument Clinic: inline parsing code for 1-argument functions

2018-12-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

See issue35582 for next step.

--
resolution:  -> fixed
stage: patch review -> 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



[issue35582] Argument Clinic: inline parsing code for functions with only positional parameters

2018-12-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch, patch, patch
pull_requests: +10562, 10563, 10564
stage:  -> patch review

___
Python tracker 

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



[issue35582] Argument Clinic: inline parsing code for functions with only positional parameters

2018-12-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch, patch
pull_requests: +10562, 10563
stage:  -> patch review

___
Python tracker 

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



[issue35582] Argument Clinic: inline parsing code for functions with only positional parameters

2018-12-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +10562
stage:  -> patch review

___
Python tracker 

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



[issue35582] Argument Clinic: inline parsing code for functions with only positional parameters

2018-12-25 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

This is a continuation of issue23867. The proposed PR makes Argument Clinic 
inlining parsing code for functions with only positional parameters, i.e. 
functions that use PyArg_ParseTuple() and _PyArg_ParseStack() now. This saves 
time for parsing format strings and calling few levels of functions. It can 
save also a C stack, because of lesser number of nested (and potentially 
recursive) calls, lesser number of variables, and getting rid of a stack 
allocated array for "objects" which will need to be deallocated or cleaned up 
if overall parsing fails.

PyArg_ParseTuple() and _PyArg_ParseStack() will still be used if there are 
parameters for which inlining converter is not supported. Unsupported 
converters are deprecated Py_UNICODE API ("u", "Z"), encoded strings ("es", 
"et"), obsolete string/bytes converters ("y", "s#", "z#"), some custom 
converters (DWORD, HANDLE, pid_t, intptr_t).

--
components: Argument Clinic
messages: 332510
nosy: larry, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Argument Clinic: inline parsing code for functions with only positional 
parameters
type: performance
versions: Python 3.8

___
Python tracker 

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



[issue34823] libffi detection doesn’t work in my setup

2018-12-25 Thread Daniel Fetchinson


Daniel Fetchinson  added the comment:

It seems there is a way to fix this:

https://mail.python.org/pipermail/python-list/2018-December/738568.html

LDFLAGS=`pkg-config --libs-only-L libffi` ./configure

Would be nice to document this or make the build system find the libraries and 
headers in a simpler way.

--

___
Python tracker 

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



[issue35581] Document @typing.type_check_only

2018-12-25 Thread Sebastian Rittau


Change by Sebastian Rittau :


--
keywords: +patch, patch
pull_requests: +10559, 10560
stage:  -> patch review

___
Python tracker 

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



[issue35581] Document @typing.type_check_only

2018-12-25 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +gvanrossum, levkivskyi

___
Python tracker 

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



[issue35581] Document @typing.type_check_only

2018-12-25 Thread Sebastian Rittau


Change by Sebastian Rittau :


--
keywords: +patch, patch, patch
pull_requests: +10559, 10560, 10561
stage:  -> patch review

___
Python tracker 

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



[issue35581] Document @typing.type_check_only

2018-12-25 Thread Sebastian Rittau


Change by Sebastian Rittau :


--
keywords: +patch
pull_requests: +10559
stage:  -> patch review

___
Python tracker 

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



[issue35581] Document @typing.type_check_only

2018-12-25 Thread Sebastian Rittau


New submission from Sebastian Rittau :

Document @typing.type_check_only per 
https://github.com/python/typing/issues/597.

--
assignee: docs@python
components: Documentation
messages: 332508
nosy: docs@python, srittau
priority: normal
severity: normal
status: open
title: Document @typing.type_check_only
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue23867] Argument Clinic: inline parsing code for 1-argument functions

2018-12-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 32d96a2b5bc3136d45a66adbdb45fac351b520ce by Serhiy Storchaka in 
branch 'master':
bpo-23867: Argument Clinic: inline parsing code for a single positional 
parameter. (GH-9689)
https://github.com/python/cpython/commit/32d96a2b5bc3136d45a66adbdb45fac351b520ce


--

___
Python tracker 

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



[issue35578] Add test for Argument Clinic converters

2018-12-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 74d914ecd595536531ded9ba5203e653f0d80e1e by Serhiy Storchaka in 
branch '3.7':
[3.7] bpo-35578: Add an example file for testing Argument Clinic converters. 
(GH-11306) (GH-11311)
https://github.com/python/cpython/commit/74d914ecd595536531ded9ba5203e653f0d80e1e


--

___
Python tracker 

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



[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-12-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 65ce60aef150776f884715b4315a10a0d6ae769e by Serhiy Storchaka in 
branch 'master':
bpo-20180: Simplify char_converter in Argument Clinic. (GH-9828)
https://github.com/python/cpython/commit/65ce60aef150776f884715b4315a10a0d6ae769e


--

___
Python tracker 

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



[issue35578] Add test for Argument Clinic converters

2018-12-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +10556, 10557, 10558

___
Python tracker 

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



[issue35578] Add test for Argument Clinic converters

2018-12-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +10556

___
Python tracker 

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



[issue35578] Add test for Argument Clinic converters

2018-12-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +10556, 10557

___
Python tracker 

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



[issue35578] Add test for Argument Clinic converters

2018-12-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 837c7dc1ede18748e1a7a8e77ed117c03a086a94 by Serhiy Storchaka in 
branch 'master':
bpo-35578: Add an example file for testing Argument Clinic converters. 
(GH-11306)
https://github.com/python/cpython/commit/837c7dc1ede18748e1a7a8e77ed117c03a086a94


--

___
Python tracker 

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