[issue33370] Addition of mypy cache to gitignore

2018-04-28 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

you could use a feature of git for the global .gitignore file

git config --global core.excludesfile ~/.gitignore

source: https://git-scm.com/docs/gitignore/2.17.0

--
nosy: +matrixise

___
Python tracker 

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



[issue33379] PyImport_Cleanup is called with builtins_copy == NULL in test_embed

2018-04-28 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

PyImport_Cleanup() is called in Py_EndInterpreter(), but Py_NewInterpreter() 
doesn't call _PyImport_Init() which initializes builtins_copy.

--

___
Python tracker 

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



[issue33379] PyImport_Cleanup is called with builtins_copy == NULL in test_embed

2018-04-28 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
versions: +Python 3.6

___
Python tracker 

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



[issue33373] Tkinter ttk Label background ignored on MacOS

2018-04-28 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

ttk.Label is just a think wrapper around Tk's ttk::label. If there are problems 
with setting background on MacOS, it should be reported on the Tk bagtracker.

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



[issue33380] Update module attribute on namedtuple methods for introspection.

2018-04-28 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
assignee:  -> rhettinger
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue33382] make [profile-opt] failed with --enable-optimizations

2018-04-28 Thread Patrick Young

Patrick Young  added the comment:

modify build_all_merge_profile to absolutely: true
then modify build running shell to: zsh

--

___
Python tracker 

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



[issue33382] make [profile-opt] failed with --enable-optimizations

2018-04-28 Thread Patrick Young

Change by Patrick Young :


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



[issue33382] make [profile-opt] failed with --enable-optimizations

2018-04-28 Thread Patrick Young

Change by Patrick Young :


--
title: make [profile-opt] failde with --enable-optimizations -> make 
[profile-opt] failed with --enable-optimizations
type:  -> compile error

___
Python tracker 

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



[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-04-28 Thread Ivan Pozdeev

Ivan Pozdeev  added the comment:

Finally dug up the reason but unsure how to fix it.

Here's the trace. The format is `$TID: $FUNCTION [some of the args]'

0x1A34: Tkapp_Call(_object *, _object *)
0x1A34: PythonCmd(void *, Tcl_Interp *, int, const char * *) 0x0230f430 
0x02d297d0 "47566760dummy_handler" 0x03a28580 "5" 
0x03a29140 "??" 0x03a29140 "??"
0x1D7C: Tkapp_Call(_object *, _object *)
0x1D7C: PythonCmd(void *, Tcl_Interp *, int, const char * *) 0x0230f430 
0x02d297d0 "47566760dummy_handler" 0x03a28580 "5" 
0x03a29140 "??" 0x03a29140 "??"
0x1A34: PythonCmd(void *, Tcl_Interp *, int, const char * *) setting result
0x1A34: PythonCmd(void *, Tcl_Interp *, int, const char * *) exit: 0
TclStackFree: incorrect freePtr (02BA6430 != 02BA6A20). Call 
out of sequence?python_d.exe has triggered a breakpoint.


A second PythonCmd is started when the 1st one is still in progress, then the 
1st one returns, the Tcl interpreter tries to unwind the topmost stack frame, 
and it's the wrong one.


Denying other PythonCmd is out of question (a nested cmd deadlocks). Waiting 
for them to finish, either (would wait for potentially unlimited time).

Look like the only way is to rearrange Tcl stack frames so that the right one 
is on top. (Since Tkinter's "interpreter calls" (sequences of Tcl calls done 
while holding the lock) are supposed to be independent from one another, it 
doesn't really matter which order the frames are in.)

I seriously doubt that's possible with just the public interface though.

--

___
Python tracker 

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



[issue33382] make [profile-opt] failde with --enable-optimizations

2018-04-28 Thread Patrick Young

Patrick Young  added the comment:

$ uname -a
Linux PatrickY 4.9.0-deepin13-amd64 #1 SMP PREEMPT Deepin 4.9.57-1 (2017-10-19) 
x86_64 GNU/Linux

$ lsb_release -a 
Distributor ID: Deepin
Description:Deepin 15.5
Release:15.5

Based on Debian sid

--

___
Python tracker 

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



[issue33382] make [profile-opt] failde with --enable-optimizations

2018-04-28 Thread Patrick Young

New submission from Patrick Young :

0:14:07 load avg: 1.26 [406/406] test_zlib

Total duration: 14 min 9 sec
Tests result: SUCCESS
make[1]: Leaving directory '/home/kmahyyg/Desktop/py36/Python-3.6.5'
make build_all_merge_profile
make[1]: Entering directory '/home/kmahyyg/Desktop/py36/Python-3.6.5'
true
/bin/true: 1: /bin/true: Syntax error: "(" unexpected
Makefile:497: recipe for target 'build_all_merge_profile' failed
make[1]: *** [build_all_merge_profile] Error 2
make[1]: Leaving directory '/home/kmahyyg/Desktop/py36/Python-3.6.5'
Makefile:471: recipe for target 'profile-opt' failed
make: *** [profile-opt] Error 2

--
components: Installation
messages: 315876
nosy: kmahyyg
priority: normal
severity: normal
status: open
title: make [profile-opt] failde with --enable-optimizations
versions: Python 3.6

___
Python tracker 

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



[issue31727] FTP_TLS errors when use certain subcommands

2018-04-28 Thread Dong-hee Na

Dong-hee Na  added the comment:

I can not reproduce this issue on Python 3.8.0a0 with OpenSSL 0.9.8zh 14 Jan 
2016 and OpenSSL 1.0.2o  27 Mar 2018


import ssl
import ftplib

print(ssl.OPENSSL_VERSION)

ftps = ftplib.FTP_TLS('test.rebex.net', timeout=2)
ftps.ssl_version = ssl.PROTOCOL_TLS
ftps.login('demo','password')

ftps.prot_p()
ftps.set_pasv(True)
ftps.dir()
ftps.nlst()
ftps.retrlines('LIST')

--
nosy: +corona10

___
Python tracker 

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



[issue29652] Fix evaluation order of keys/values in dict comprehensions

2018-04-28 Thread janzert

janzert  added the comment:

Just as a note so the email discussion isn't forever lost to the void.

In an unrelated thread on python-dev recently there was a short discussion on 
this topic in which both Guido van Rossum[1] and Tim Peters[2] gave the opinion 
that this should change should probably be made.

1: https://mail.python.org/pipermail/python-dev/2018-April/153122.html
2: https://mail.python.org/pipermail/python-dev/2018-April/153134.html

--
nosy: +janzert

___
Python tracker 

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



[issue33381] Incorrect documentation for strftime()/strptime() format code %f

2018-04-28 Thread Judy Wang

New submission from Judy Wang :

According to https://docs.python.org/3/library/datetime.html, %f is zero-padded 
on the left. But actual Python 3 behavior is puts the zero padding on the right.

--
files: Bug description.py
messages: 315873
nosy: jujuwoman
priority: normal
severity: normal
status: open
title: Incorrect documentation for strftime()/strptime() format code %f
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file47556/Bug description.py

___
Python tracker 

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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread Dong-hee Na

Dong-hee Na  added the comment:

https://github.com/python/cpython/pull/6629

3.6 needs backport patch also.

--

___
Python tracker 

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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread Dong-hee Na

Change by Dong-hee Na :


--
pull_requests: +6325
stage: resolved -> patch review

___
Python tracker 

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



[issue33217] x in enum.Flag member is True when x is not a Flag

2018-04-28 Thread Ethan Furman

Ethan Furman  added the comment:

Rahul Jha, sure, go ahead!

--

___
Python tracker 

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



[issue33380] Update module attribute on namedtuple methods for introspection.

2018-04-28 Thread Allan Feldman

Allan Feldman  added the comment:

Attached is a proposed change.

--
keywords: +patch
Added file: 
https://bugs.python.org/file47555/0001-bpo-33380-Update-module-attribute-on-namedtuple-meth.patch

___
Python tracker 

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



[issue33380] Update module attribute on namedtuple methods for introspection.

2018-04-28 Thread Allan Feldman

New submission from Allan Feldman :

Python 3.7 made several performance improvements to the namedtuple class as 
part of https://bugs.python.org/issue28638

Prior to the implementation of bpo-28638, the __module__ attribute for a 
namedtuple's methods (e.g. _asdict) would return the value 'namedtuple_%s' % 
typename (e.g. namedtuple_Point).

Due to the optimizations made, the __module__ attribute for a namedtuple's 
methods now returns 'collections'.

The proposed change as part of this issue is to report the more accurate 
derived module name for the namedtuple methods. Updating the __module__ 
attribute should help debug and introspection tools more accurately report the 
details of executing calls (in profilers for example).

Example from Python 3.6:
>>> from collections import namedtuple
>>> Point = namedtuple('Point', ('x', 'y'))
>>> p1 = Point(1,2)
>>> p1._asdict.__module__
'namedtuple_Point'

Example from Python 3.7.0b3:
>>> from collections import namedtuple
>>> Point = namedtuple('Point', ('x', 'y'))
>>> p1 = Point(1,2)
>>> p1._asdict.__module__
'collections'

Desired behavior:
>>> from collections import namedtuple
>>> Point = namedtuple('Point', ('x', 'y'))
>>> p1 = Point(1,2)
>>> p1._asdict.__module__
'__main__'

--
components: Library (Lib)
messages: 315869
nosy: a-feld, rhettinger
priority: normal
severity: normal
status: open
title: Update module attribute on namedtuple methods for introspection.
type: enhancement
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



[issue33379] PyImport_Cleanup is called with builtins_copy == NULL in test_embed

2018-04-28 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

PyImport_Cleanup is called with builtins_copy == NULL in 
run_embedded_interpreter() in Lib/test/test_embed.py. This error was silenced 
by calling PyErr_Clear(), but it still looks as error to me. It was exposed by 
PR 6606.

--
components: Interpreter Core
messages: 315868
nosy: brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
priority: normal
severity: normal
status: open
title: PyImport_Cleanup is called with builtins_copy == NULL in test_embed
type: behavior
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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread Julien Palard

Change by Julien Palard :


--
stage: backport needed -> resolved

___
Python tracker 

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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread miss-islington

miss-islington  added the comment:


New changeset 1487c37e7e85e7221adc3030f0f7de023cc99ced by Miss Islington (bot) 
in branch '3.7':
bpo-33378: Add Korean to the language switcher. (GH-6627)
https://github.com/python/cpython/commit/1487c37e7e85e7221adc3030f0f7de023cc99ced


--
nosy: +miss-islington

___
Python tracker 

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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread Julien Palard

Change by Julien Palard :


--
resolution:  -> fixed
stage: patch review -> backport needed

___
Python tracker 

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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6324

___
Python tracker 

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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread Julien Palard

Julien Palard  added the comment:


New changeset 577948329976985ea9bef23d9a6c3dd7108211bf by Julien Palard 
(Dong-hee Na) in branch 'master':
bpo-33378: Add Korean to the language switcher. (GH-6627)
https://github.com/python/cpython/commit/577948329976985ea9bef23d9a6c3dd7108211bf


--

___
Python tracker 

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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread Dong-hee Na

Change by Dong-hee Na :


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

___
Python tracker 

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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread Dong-hee Na

New submission from Dong-hee Na :

looks great

--
nosy: +corona10

___
Python tracker 

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



[issue33378] Add Korean to the language switcher

2018-04-28 Thread Julien Palard

Change by Julien Palard :


--
assignee: mdk
components: Documentation
nosy: mdk
priority: normal
severity: normal
status: open
title: Add Korean to the language switcher

___
Python tracker 

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



[issue33377] add new triplets for mips r6 and riscv variants

2018-04-28 Thread Matthias Klose

Change by Matthias Klose :


Added file: https://bugs.python.org/file47554/riscv64.diff

___
Python tracker 

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



[issue33377] add new triplets for mips r6 and riscv variants

2018-04-28 Thread Matthias Klose

New submission from Matthias Klose :

Late last year / early this year, Debian defined new triplets for some mips r6 
and riscv variants.  Please still consider these for the 3.7 release.  These 
patches are in use in Debian for a while and show no regressions.

The new variants are documented at https://wiki.debian.org/Multiarch/Tuples

--
components: Build
files: mips-r6.diff
keywords: patch
messages: 315864
nosy: doko, ned.deily
priority: normal
severity: normal
status: open
title: add new triplets for mips r6 and riscv variants
versions: Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47553/mips-r6.diff

___
Python tracker 

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



[issue19213] platform.linux_distribution detects Oracle Linux as Red Hat Enterprise Linux

2018-04-28 Thread Roundup Robot

Change by Roundup Robot :


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

___
Python tracker 

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



[issue33281] ctypes.util.find_library not working on macOS

2018-04-28 Thread Roundup Robot

Change by Roundup Robot :


--
keywords: +patch
pull_requests: +6321
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



[issue33217] x in enum.Flag member is True when x is not a Flag

2018-04-28 Thread Rahul Jha

Rahul Jha  added the comment:

Hi Ethan,

The only thing which is left is to change the Deprecation Warning to raise a 
`TypeError` and alter the tests accordingly.

Seeing that most of the work for the issue has already been done, can I take it 
forward from here on wards, please?

--
nosy: +RJ722

___
Python tracker 

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



[issue32790] Keep trailing zeros in precision for string format option g

2018-04-28 Thread Bharat Chhabra

Change by Bharat Chhabra :


--
keywords: +patch
pull_requests: +6320
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



[issue33370] Addition of mypy cache to gitignore

2018-04-28 Thread Naman Sharma

Change by Naman Sharma :


--
pull_requests: +6319

___
Python tracker 

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