[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-14 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
pull_requests: +11895
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



[issue28009] core logic of uuid.getnode() is broken for netstat

2019-02-14 Thread Michael Felt


Michael Felt  added the comment:

On 14/02/2019 23:57, Indra Talip wrote:
> Indra Talip  added the comment:
>
> The current code and proposed changes use 'netstat -ia' to find the node 
> however if netstat needs to perform a reverse DNS query to resolve some 
> interfaces this makes using uuid1 *really* slow especially when reverse DNS 
> queries aren't set up correctly or timeout.
>mac = _find_mac_netstat('netstat', '-ia', b'Address', lambda i: i)
>
> Would it be possible to change the netstat call to add 'n' to the nestat 
> options, i.e. _find_mac_netstat('netstat', '-ian', ...) to prevent netstat 
> from attempting to resolve addresses?
Sounds like an excellent idea. Gives me a reason to get started again. Thx!
> --
> nosy: +italip
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue31829] Portability issues with pickle

2019-02-14 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

The proposed PR looks big. Are these actual bug fixes or features? "Portability 
improvements" sounds like a feature.

--

___
Python tracker 

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



[issue35994] In WalkTests of test_os.py, sub2_tree missed the dir "SUB21" if symlink can't be supported.

2019-02-14 Thread Zachary Ware


Zachary Ware  added the comment:

Thanks for the patch!

--
nosy: +zach.ware -miss-islington
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue35993] incorrect use of released memory in Python/pystate.c line 284

2019-02-14 Thread wangjiangqiang


wangjiangqiang <767563...@qq.com> added the comment:

Just create a temporary node points to the next node before release the current 
node. change the loop condition if necessary.

--

___
Python tracker 

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



[issue35994] In WalkTests of test_os.py, sub2_tree missed the dir "SUB21" if symlink can't be supported.

2019-02-14 Thread miss-islington


miss-islington  added the comment:


New changeset 04a39399ef13197e433757fe13108ad472461094 by Miss Islington (bot) 
in branch '3.7':
bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not 
supported (GH-11853)
https://github.com/python/cpython/commit/04a39399ef13197e433757fe13108ad472461094


--

___
Python tracker 

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



[issue35994] In WalkTests of test_os.py, sub2_tree missed the dir "SUB21" if symlink can't be supported.

2019-02-14 Thread miss-islington


miss-islington  added the comment:


New changeset 3e028b2d40370dc986b6f3146a7ae927bc119f97 by Miss Islington (bot) 
(pxinwr) in branch 'master':
bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not 
supported (GH-11853)
https://github.com/python/cpython/commit/3e028b2d40370dc986b6f3146a7ae927bc119f97


--
nosy: +miss-islington

___
Python tracker 

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



[issue35994] In WalkTests of test_os.py, sub2_tree missed the dir "SUB21" if symlink can't be supported.

2019-02-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11894

___
Python tracker 

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



[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Put me down for -1.  In 40 years of programming, I've needed a modulus on a 
product exactly zero times.

--

___
Python tracker 

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



[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

"One other issue is that the arguments to prod() need not be integers, so a 
modulus argument wouldn't make sense in those contexts."

The arguments to pow don't need to be integers either, yet the optional third 
argument is only really relevant to integers.

Not saying we should do this, but we definitely allow optional arguments that 
are only meaningful for certain input types in other cases.

The best argument for this change I can come up with from other Python 
functions is the push for an efficient math.comb (#35431); if we didn't want to 
bother supporting minimizing intermediate values, math.comb could be 
implemented directly in terms of math.factorial instead of trying to pre-cancel 
values. But even that's not a strong argument for this, given the relative 
frequency with which each feature is needed (the binomial coefficient coming up 
much more often than modular reduction of huge products).

--
nosy: +josh.r

___
Python tracker 

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



[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

One other issue is that the arguments to prod() need not be integers, so a 
modulus argument wouldn't make sense in those contexts.

--

___
Python tracker 

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



[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I don't think even Mathematica has found a need for this: 
https://reference.wolfram.com/language/ref/Product.html

--

___
Python tracker 

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



[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-14 Thread Eryk Sun


Change by Eryk Sun :


Added file: https://bugs.python.org/file48142/winsig.py

___
Python tracker 

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



[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-14 Thread Eryk Sun


Eryk Sun  added the comment:

Gregory's last example reminded me that CMD checks for STATUS_CONTROL_C_EXIT 
for more than simply printing "^C". It also breaks out of a FOR loop when 
interactive and prompts to continue when executing a batch script.

Normally CMD also gets a console control event when the user presses Ctrl+C, so 
it knows about the Ctrl+C regardless of the child's exit status. One exception 
is when we start a process with a new console via CMD's `start` command. In 
this case CMD doesn't get a Ctrl+C event, since it's attached to a different 
console. Another exception is a simulated keyboard interrupt (e.g. from C raise 
SIGINT or Python _thread.interrupt_main). In these cases, CMD depends on the 
exit status value to determine whether the process was terminated by the 
default Ctrl+C handler. I've demonstrated this in the files winsig.bat and 
winsig.py. Put both in the same directory and run winsig.bat.

--
Added file: https://bugs.python.org/file48141/winsig.bat

___
Python tracker 

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



[issue35078] Allow customization of CSS class name of a month in calendar module

2019-02-14 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Issue 30095 enhanced the `HTMLCalendar` code to allow easier customization of 
the CSS classes.  This PR extends that to the existing `LocaleHTMLCalendar`. 

Adding @doerwalter to the nosy list as he merged #30095.

--
nosy: +cheryl.sabella, doerwalter

___
Python tracker 

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



[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2019-02-14 Thread miss-islington


miss-islington  added the comment:


New changeset b8bcec35e01cac018f6ccfc8323d35886340efe0 by Miss Islington (bot) 
in branch '3.7':
bpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 
(GH-10264)
https://github.com/python/cpython/commit/b8bcec35e01cac018f6ccfc8323d35886340efe0


--

___
Python tracker 

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



[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2019-02-14 Thread Mariatta Wijaya


Mariatta Wijaya  added the comment:

Fixed in 3.8 and 3.7.
Thanks!

--
nosy: +Mariatta
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



[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2019-02-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11893

___
Python tracker 

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



[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2019-02-14 Thread miss-islington


miss-islington  added the comment:


New changeset 5723263a3a39a05b6a2f567e0e7771792e6e2f5b by Miss Islington (bot) 
(Lysandros Nikolaou) in branch 'master':
bpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 
(GH-10264)
https://github.com/python/cpython/commit/5723263a3a39a05b6a2f567e0e7771792e6e2f5b


--
nosy: +miss-islington

___
Python tracker 

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



[issue12317] inspect.getabsfile() is not documented

2019-02-14 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


--
nosy:  -giampaolo.rodola

___
Python tracker 

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



[issue28009] core logic of uuid.getnode() is broken for netstat

2019-02-14 Thread Indra Talip


Indra Talip  added the comment:

The current code and proposed changes use 'netstat -ia' to find the node 
however if netstat needs to perform a reverse DNS query to resolve some 
interfaces this makes using uuid1 *really* slow especially when reverse DNS 
queries aren't set up correctly or timeout.
   mac = _find_mac_netstat('netstat', '-ia', b'Address', lambda i: i)

Would it be possible to change the netstat call to add 'n' to the nestat 
options, i.e. _find_mac_netstat('netstat', '-ian', ...) to prevent netstat from 
attempting to resolve addresses?

--
nosy: +italip

___
Python tracker 

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



[issue35848] readinto is not a method on io.TextIOBase

2019-02-14 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Steve,

Would you be interested in creating a Github pull request with the 
documentation changes?

--
components: +Documentation -IO
nosy: +cheryl.sabella

___
Python tracker 

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



[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi


Change by muhzi :


Added file: https://bugs.python.org/file48140/xcompile-py3.sh

___
Python tracker 

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



[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi


Change by muhzi :


Removed file: https://bugs.python.org/file48139/xcompile-py3.sh

___
Python tracker 

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



[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi


muhzi  added the comment:

OK, I uploaded it. I give the path for NDK then it determines those values for 
the target architecture, in my case I use it for x86_64.

--
Added file: https://bugs.python.org/file48139/xcompile-py3.sh

___
Python tracker 

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



[issue24658] open().write() and .read() fails on 2 GB+ data (OS X)

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Hi @barry

normally this issue is fixed for 3.x but I need to finish my PR for 2.7. 

I think to fix for 2.7 in the next weeks.

--

___
Python tracker 

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



[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Thank you, but I think there is missing info with your script.

Do you have a shell script to share? What are the values of:

ANDROID_TARGET
ANDROID_API
CC++
BIN_UTILS_PREFIX
etc...

For example, if I want to use a docker image on my Fedora, how can I compile 
Python for Android from my Fedora or Debian x86?

Thank you

--

___
Python tracker 

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



[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi


muhzi  added the comment:

Yes, the symbols are there.
And here is how I cross compiled Python:

export CC="${ANDROID_TARGET}${ANDROID_API}-clang"
export CXX="$CC++"

# environment variables for binary utils..
export AR="$BIN_UTILS_PREFIX-ar"
export LD="$BIN_UTILS_PREFIX-ld"
export AS="$BIN_UTILS_PREFIX-as"
export STRIP="$BIN_UTILS_PREFIX-strip"
export RANLIB="$BIN_UTILS_PREFIX-ranlib"
export READELF="$BIN_UTILS_PREFIX-readelf"

# compiler and linker flags
export CFLAGS="-fPIE -fPIC"
export LDFLAGS="-fuse-ld=lld -Wl,--rpath=../lib"

export CONFIG_SITE="config.site"

CONFIG_BUILD="$(uname -m)-linux-gnu"
CONFIG_ARGS="--enable-shared --disable-ipv6"
CONFIG_PREFIX="$PYTHON_PATH/output/$ARCH-android"

$PYTHON_PATH/configure --host=$ANDROID_TARGET --build=$CONFIG_BUILD 
--prefix=$CONFIG_PREFIX $CONFIG_ARGS
make -C $PYTHON_PATH
make -C $PYTHON_PATH install

--

___
Python tracker 

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



[issue24658] open().write() and .read() fails on 2 GB+ data (OS X)

2019-02-14 Thread Barry A. Warsaw


Change by Barry A. Warsaw :


--
title: open().write() fails on 2 GB+ data (OS X) -> open().write() and .read() 
fails on 2 GB+ data (OS X)

___
Python tracker 

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



[issue24658] open().write() fails on 2 GB+ data (OS X)

2019-02-14 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

Nosying myself since I just landed here based on an internal $work bug report.  
We're seeing it with reads.  I'll try to set aside some work time to review the 
PRs.

--
nosy: +barry

___
Python tracker 

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



[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

if you have compiled python with --enable-shared you will get a 
lib/libpython3.Xdm.so file and you can use nm -D lib/libpython3.Xdm.so | grep 
PyBool_Type

nm --debug-syms lib/libpython3.8dm.so | grep PyBool 
  00077696 T 
PyBool_FromLong
00328d20 D PyBool_Type

I think it's a problem with your compilation.

Could you explain how do you cross-compile for android?

Thank you

--

___
Python tracker 

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



[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-02-14 Thread Géry

Géry  added the comment:

Yes, closed.

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



[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Can you see the symbols when you use nm or readelf?

--
nosy: +matrixise

___
Python tracker 

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



[issue35661] Store the venv prompt in pyvenv.cfg

2019-02-14 Thread Brett Cannon


Brett Cannon  added the comment:

I think upgrading the scripts to read from pyvenv.cfg is a separate issue per 
activation script (e.g. an issue for PowerShell, an issue for fish, etc.) as 
this could be done piecemeal.

One benefit to doing this is it would help move towards the activation scripts 
becoming static and thus skipping the string substitution when writing the 
files to disk.

--

___
Python tracker 

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



[issue35843] importlib.util docs for namespace packages innaccurate

2019-02-14 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +barry, eric.smith, eric.snow, ncoghlan

___
Python tracker 

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



[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-02-14 Thread Brett Cannon


Brett Cannon  added the comment:

Can this be closed?

--

___
Python tracker 

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



[issue12317] inspect.getabsfile() is not documented

2019-02-14 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

2019-02-14 Thread Brett Cannon


Change by Brett Cannon :


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



[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi


New submission from muhzi :

I cross compiled python for android x86_64, and the interpreter works fine, no 
problems. But when I compiled some other extension and try to import it. I get 
an import error as such the imported shared library fails to locate the symbol 
"PyBool_Type".

ImportError: dlopen failed: cannot locate symbol "PyBool_Type" referenced by 


The extension was compiled with -I && -L flags pointing to the Python 
installation include and lib folders.

--
components: Cross-Build, Regular Expressions
messages: 335560
nosy: Alex.Willmer, ezio.melotti, mrabarnett, muhzi, xdegaye
priority: normal
severity: normal
status: open
title: ImportError: dlopen failed: cannot locate symbol "PyBool_Type"
type: behavior
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



[issue31829] Portability issues with pickle

2019-02-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +11892

___
Python tracker 

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



[issue34433] cancel all other pending child futures

2019-02-14 Thread Yury Selivanov


Yury Selivanov  added the comment:

This is a backwards incompatible change, unfortunately.  Wait for the new 
TaskGroups API that will resolve this issue.

--
resolution:  -> rejected
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



[issue34971] add support for tls/ssl sessions in asyncio

2019-02-14 Thread Yury Selivanov


Yury Selivanov  added the comment:

Christian, do you think the sessions support shouldn't be added to asyncio in 
3.8?

--

___
Python tracker 

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



[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Berry Schoenmakers


New submission from Berry Schoenmakers :

It's nice to see the arrival of the prod() function, see PR11359.

Just as for the built-in pow(x, y[, z]) function it would be very useful to 
have an optional argument z for computing integer products modulo z. Typical 
use case in cryptography would be:

prod((pow(x, y, z) for x, y in zip(g, s)), z)

to compute the product of all (potentially many) g[i]**s[i]'s modulo z. 

And, just as with the use of pow(), the intermediate values for prod() may in 
general grow quickly, hence modular reduction is essential to limit time and 
space usage.

Maybe an interesting option to add at this stage?

--
components: Library (Lib)
messages: 335557
nosy: lschoe, rhettinger
priority: normal
severity: normal
status: open
title: Optional modulus argument for new math.prod() function
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



[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-14 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

jwilk: Confirmed.  The exit code is not enough, we must trigger the SIG_DFL 
handler.

to reproduce:

 while true; do ./sig.py ; done

with the attached sig.py.

pass a parameter to sig.py to have it exit 130 instead of triggering SIG_DFL...

--
Added file: https://bugs.python.org/file48138/sig.py

___
Python tracker 

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



[issue35810] Object Initialization does not incref Heap-allocated Types

2019-02-14 Thread Eddie Elizondo


Eddie Elizondo  added the comment:

> Please open a thread on python-dev
Done! https://mail.python.org/pipermail/python-dev/2019-February/156322.html

> Yes. You should add a new "Changes in the C API" 
Done as well, I also included examples for the scenarios that will need fixing 
to avoid having immortal types: https://github.com/python/cpython/pull/11661

Looking forward to seeing this through!

--

___
Python tracker 

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



[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-02-14 Thread miss-islington


miss-islington  added the comment:


New changeset 7e618f3154404613cd9774fb8ffb5b48e7233a9e by Miss Islington (bot) 
in branch '3.7':
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission 
denied" on AIX (GH-11424)
https://github.com/python/cpython/commit/7e618f3154404613cd9774fb8ffb5b48e7233a9e


--

___
Python tracker 

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



[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-02-14 Thread miss-islington


miss-islington  added the comment:


New changeset 7e618f3154404613cd9774fb8ffb5b48e7233a9e by Miss Islington (bot) 
in branch '3.7':
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission 
denied" on AIX (GH-11424)
https://github.com/python/cpython/commit/7e618f3154404613cd9774fb8ffb5b48e7233a9e


--

___
Python tracker 

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



[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-02-14 Thread Mariatta Wijaya


Mariatta Wijaya  added the comment:

Thanks all!

--
nosy: +Mariatta
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



[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-02-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11891

___
Python tracker 

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



[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-02-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11890

___
Python tracker 

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



[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-02-14 Thread miss-islington


miss-islington  added the comment:


New changeset b94d4bed67c60834b1a5a0936b8c13934cf3b872 by Miss Islington (bot) 
(Michael Felt) in branch 'master':
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission 
denied" on AIX (GH-11424)
https://github.com/python/cpython/commit/b94d4bed67c60834b1a5a0936b8c13934cf3b872


--
nosy: +miss-islington

___
Python tracker 

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



[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-02-14 Thread miss-islington


miss-islington  added the comment:


New changeset b94d4bed67c60834b1a5a0936b8c13934cf3b872 by Miss Islington (bot) 
(Michael Felt) in branch 'master':
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission 
denied" on AIX (GH-11424)
https://github.com/python/cpython/commit/b94d4bed67c60834b1a5a0936b8c13934cf3b872


--

___
Python tracker 

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



[issue25737] array is not a Sequence

2019-02-14 Thread Eryk Sun


Eryk Sun  added the comment:

I had closed this issue because I thought issue 23864 would be resolved by 
extending the existing behavior. Three years later, still with no resolution, 
Guido commented on that issue that the current behavior shouldn't be extended 
and only the documentation should be fixed. In apparent contradiction, we now 
have the Collection ABC (Sized, Iterable, Container), which does implement a 
__subclasshook__.

>>> issubclass(array.array, abc.Collection)
True

Anyway, it was obviously a mistake to close this specific issue in favor of the 
general design problem. This problem can be easily solved via registration. The 
general design problem is dead in the water.

--

___
Python tracker 

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



[issue35577] side_effect mocked method lose reference to instance

2019-02-14 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. I think this is design by choice that self is not passed 
to the side_effect directly set on the mock [0]. Changing this would break 
existing tests like [1] . You can use the approach by @remi.lapeyre which 
directly replaces the function on the target inside the context manager at [2] 
passing self to the side_effect callable.

[0] 
https://github.com/python/cpython/blob/8a1657b93469580ef345c7c91738587f3d76e87d/Lib/unittest/mock.py#L1043
[1] 
https://github.com/python/cpython/blob/8a1657b93469580ef345c7c91738587f3d76e87d/Lib/unittest/test/testmock/testmock.py#L664
[2] 
https://github.com/python/cpython/blob/8a1657b93469580ef345c7c91738587f3d76e87d/Lib/unittest/mock.py#L1376

--
nosy: +cjw296, mariocj89, xtreak
versions:  -Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue34506] Traceback logged when SSL handshake fails

2019-02-14 Thread cdods


cdods  added the comment:

Any update on this one? Still happening on 3.7.1

--
assignee:  -> christian.heimes
components: +SSL
nosy: +cdods, christian.heimes
type:  -> behavior
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



[issue35874] Clarify that the (...) convertor to PyArg_ParseTuple... accepts any sequence.

2019-02-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Passing non-tuple can lead to reference counting error. See issue6083. I think 
that accepting a non-tuple should be deprecated, and finally disallowed.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35976] Enable Windows projects to build with platform ARM32

2019-02-14 Thread Steve Dower


Steve Dower  added the comment:

Thanks, Paul! Hopefully when you rebase the main change on top of this it will 
be easier to see the actual impact.

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



[issue35846] Incomplete documentation for re.sub

2019-02-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This is a duplicate of issue28450.

--
nosy: +serhiy.storchaka
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Misleading/inaccurate documentation about unknown escape 
sequences in regular expressions

___
Python tracker 

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



[issue35145] sqlite3: optionally autoconvert table_info's DATETIME fields

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Hi @jondo,

Of course you can submit a PR and we can help you with a review if we have time 
because we are volunteers and it's in function of our free time.

Have a nice day,

--

___
Python tracker 

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



[issue35460] Add PyDict_GetItemStringWithError

2019-02-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

See also issue35459.

--

___
Python tracker 

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



[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Eric requested to run the benchmark suite. Here are results. I do not know how 
to interpret them. Likely all differences are random.

--
Added file: https://bugs.python.org/file48137/pydict-getitem-compare.txt

___
Python tracker 

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



[issue35889] sqlite3.Row doesn't have useful repr

2019-02-14 Thread Berker Peksag


Change by Berker Peksag :


--
pull_requests:  -11844

___
Python tracker 

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



[issue35889] sqlite3.Row doesn't have useful repr

2019-02-14 Thread Berker Peksag


Change by Berker Peksag :


--
pull_requests:  -11845

___
Python tracker 

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



[issue35889] sqlite3.Row doesn't have useful repr

2019-02-14 Thread Berker Peksag


Berker Peksag  added the comment:

While the proposed formats look nice for artificial inputs, the Row object can 
have more than two fields and the value of a field can be much longer than 
that. So, in practice the new repr can make the situation worse than the 
current repr.

I think wrapping the output of row.keys() 
(https://docs.python.org/3/library/sqlite3.html#sqlite3.Row.keys) with 
something like reprlib.recursive_repr() would work better for Row objects with 
several fields.

--
nosy: +berker.peksag

___
Python tracker 

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



[issue35889] sqlite3.Row doesn't have useful repr

2019-02-14 Thread Berker Peksag


Change by Berker Peksag :


--
pull_requests:  -11846

___
Python tracker 

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



[issue25737] array is not a Sequence

2019-02-14 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

Correction: It should actually be registered as a subclass of MutableSequence 
(which should make it a virtual subclass of Sequence too; list is only 
registered on MutableSequence as well).

--

___
Python tracker 

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



[issue35976] Enable Windows projects to build with platform ARM32

2019-02-14 Thread Steve Dower


Steve Dower  added the comment:


New changeset 8a1657b93469580ef345c7c91738587f3d76e87d by Steve Dower (Paul 
Monson) in branch 'master':
bpo-35976: Enable Windows projects to build with platform ARM32 (GH-11825)
https://github.com/python/cpython/commit/8a1657b93469580ef345c7c91738587f3d76e87d


--

___
Python tracker 

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



[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2019-02-14 Thread Paul Ganssle


Change by Paul Ganssle :


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



[issue25737] array is not a Sequence

2019-02-14 Thread Josh Rosenberg


Change by Josh Rosenberg :


--
versions: +Python 3.7, Python 3.8 -Python 3.5

___
Python tracker 

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



[issue25737] array is not a Sequence

2019-02-14 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

This should not be closed as a duplicate. Yes, array.array isn't automatically 
a Sequence, but since it isn't, the array module should be modified to 
explicitly do the equivalent of:

import _collections_abc

_collections_abc.Sequence.register(array)

so it's properly registered manually.

--
nosy: +josh.r
resolution: duplicate -> 
status: closed -> open
superseder: issubclass without registration only works for "one-trick pony" 
collections ABCs. -> 

___
Python tracker 

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



[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)

2019-02-14 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

Wait, why should #25737 be closed? This bug is a docs issue; collections.abc 
shouldn't claim that all the ABCs do duck-typing checks since Sequence doesn't. 
But #25737 is specific: array.array *should* be registered as a Sequence, but 
isn't; that requires a code fix (to make array perform the registration), not a 
doc fix.

--
nosy: +josh.r

___
Python tracker 

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



[issue32417] fromutc does not respect datetime subclasses

2019-02-14 Thread Paul Ganssle


Change by Paul Ganssle :


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



[issue35934] Add socket.create_server() utility function

2019-02-14 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:

Correct. Sorry for the typo.

--

___
Python tracker 

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



[issue35934] Add socket.create_server() utility function

2019-02-14 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

The previous comment is a self-reference.  I believe the intention was to mark 
this as a duplicate of #17561.

--

___
Python tracker 

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



[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)

2019-02-14 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

The previous comment is a self-reference.  I believe the intention was to mark 
this as a duplicate of #17561.

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)

2019-02-14 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
Removed message: https://bugs.python.org/msg335533

___
Python tracker 

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



[issue35962] Slight error in words in [ 2.4.1. String and Bytes literals ]

2019-02-14 Thread SilentGhost


Change by SilentGhost :


--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue35962] Slight error in words in [ 2.4.1. String and Bytes literals ]

2019-02-14 Thread SilentGhost


SilentGhost  added the comment:

I don't think that's what the sentence say at all. It says, that a backslash 
can be used to escape a newline character (not "n"). This refers only to 
triple-quoted literals and is described in the first row of the table of escape 
sequences below.

--
nosy: +SilentGhost -remi.lapeyre

___
Python tracker 

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



[issue35934] Add socket.create_server() utility function

2019-02-14 Thread STINNER Victor


Change by STINNER Victor :


--
title: Add socket.bind_socket() utility function -> Add socket.create_server() 
utility function

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Julien Palard


Julien Palard  added the comment:

lidayan (Ignore my latest comment I was reading your implementation, not the 
actual one...).

--

___
Python tracker 

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



[issue35993] incorrect use of released memory in Python/pystate.c line 284

2019-02-14 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
nosy: +eamanu

___
Python tracker 

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



[issue35962] Slight error in words in [ 2.4.1. String and Bytes literals ]

2019-02-14 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

You will find the line you want to change in 
`Doc/reference/lexical_analysis.rst`

--

___
Python tracker 

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



[issue35962] Slight error in words in [ 2.4.1. String and Bytes literals ]

2019-02-14 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi Magnien, if you have already used Git, everything should be familiar.

You have to clone the whole project, but the documentation leaves in the `Doc` 
folder. There is a lot of information that you can get at 
https://devguide.python.org/documenting/

If you get lost, please open the PR and tag me in the discussion, I will try 
and help you.

--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Julien Palard


Julien Palard  added the comment:

@lidayan, if you're trying implicit TLS, have you tried giving a username an an 
empty tuple to the secure parameter?

It looks like the empty tuple means "implicit TLS", see the docstring 
https://github.com/python/cpython/blob/7fea5ad9f081247927bc851605f3a6269cbcd84d/Lib/logging/handlers.py#L959

--

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Julien Palard


Julien Palard  added the comment:

lidayan If I understand correctly, you're trying to connect to an SMTP server 
that does *not* support STARTTLS, only implicit TLS on port 465?

--
nosy: +mdk

___
Python tracker 

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



[issue35962] Slight error in words in [ 2.4.1. String and Bytes literals ]

2019-02-14 Thread Magnien Sebastien


Magnien Sebastien  added the comment:

I'm all up for it; however I only ever worked on small solo projects. I don't 
really know where to start. Must I clone the whole python repo, or is there 
maybe a doc repo?

--

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I propose to create a SMTPSSLHandler class and submit a PR.

--

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Here is my suggestion

class SMTPSSLHander(SMTPHandler):
def emit(self, record):
"""
Emit a record.

Format the record and send it to the specified addressees.
"""
try:
import smtplib
from email.message import EmailMessage
import email.utils

port = self.mailport
if not port:
port = smtplib.SMTP_SSL_PORT
keyfile = self.secure[0] if len(self.secure) > 0 else None
certfile = self.secure[1] if len(self.secure) > 1 else None
smtp = smtplib.SMTP_SSL(self.mailhost, port, timeout=self.timeout,
keyfile=keyfile, certfile=certfile)
if self.username:
smtp.login(self.username, self.password)
msg = EmailMessage()
msg['From'] = self.fromaddr
msg['To'] = ','.join(self.toaddrs)
msg['Subject'] = self.getSubject(record)
msg['Date'] = email.utils.localtime()
msg.set_content(self.format(record))
smtp.send_message(msg)
smtp.quit()
except Exception:
self.handleError(record)

--

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +vinay.sajip

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

@lidayan

I have checked the code of your PR, and I think there is an issue with your 
code.

1. When you specify the secure flag to the SMTPHandler, it's because you will 
start the TLS connection if the SMTP server supports the STARTTLS. Firstly in 
plaintext mode and if STARTTLS is supported then we move to the TLS encryption.

2. If you use SSL + SMTP, it's not the same behavior because you support that 
your SMTP server will support a socket + ssl.

For my part, I suggest you the creation of a SMTPSSLHandler and use the 
SMTP_SSL class.

--

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I re-open this issue because after the change of the subject, maybe there is an 
issue with the code of logging.handler.SMTPHandler + TLS.

--
resolution: rejected -> 
status: closed -> open

___
Python tracker 

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



[issue35992] Metaclasses interfere with __class_getitem__

2019-02-14 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

Yes, I think this is a bug. Created a PR with a possible simple fix.

--
nosy: +gvanrossum

___
Python tracker 

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



[issue35992] Metaclasses interfere with __class_getitem__

2019-02-14 Thread Ivan Levkivskyi


Change by Ivan Levkivskyi :


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

___
Python tracker 

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



[issue33043] Add a 'Contributing to Docs' link at the bottom of docs.python.org

2019-02-14 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
nosy: +eamanu
type:  -> enhancement

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

hmmm do you have some code to reproduce it?

--
nosy: +eamanu

___
Python tracker 

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



[issue35132] python-gdb error: Python Exception Type does not have a target

2019-02-14 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.6 no longer accept bugfixes, only security fixes:
http://devguide.python.org/#status-of-python-branches

You can try faulthandler has a workaround. For example, install faulthandler 
signal handler using faulthandler.register(signal.SIGUSR1) and then send a 
SIGUSR1 signal to the blocked process. You might want to write the output into 
a file if you don't have access the program stdout: use the 'file' parameter of 
faulthandler.register(). See also faulthandler.dump_traceback_later() to use a 
timeout.

https://docs.python.org/dev/library/faulthandler.html

--

___
Python tracker 

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



[issue35132] python-gdb error: Python Exception Type does not have a target

2019-02-14 Thread STINNER Victor


STINNER Victor  added the comment:

> Distro: Linux Mint 18.2 Sonya

Hum, Dylan: what is your gdb version?

On Fedora 29 with gdb 8.2-6.fc29, it seems like .target() is useless:

$ gdb ./python
GNU gdb (GDB) Fedora 8.2-6.fc29
...
(gdb) python print([field.name for field in 
gdb.lookup_type('PyUnicodeObject').target().fields()])
['_base', 'data']

(gdb) python print([field.name for field in 
gdb.lookup_type('PyUnicodeObject').fields()])
['_base', 'data']

I tested on a Python compiled manually from source, I ran my test in the 
directory of Python source  code.

I also tested on /usr/bin/python3 (system Python), same behavior.

--
nosy: +vstinner

___
Python tracker 

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



[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread lidayan


Change by lidayan <840286...@qq.com>:


--
pull_requests: +11888

___
Python tracker 

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



[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-14 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

I'm assuming the calling shell uses waitpid() and then WIFSIGNALED()?

--

___
Python tracker 

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



[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-14 Thread Jakub Wilk


Jakub Wilk  added the comment:

This issue was reported because with the current behavior, "the script will not 
properly exit on C-c". Exiting with code 128+SIGINT will not fix this.

Please re-raise the signal.

--

___
Python tracker 

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



  1   2   >