[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3f04287e7bea by Gregory P. Smith in branch '2.7':
Fixes issue# 27983: Cause lack of llvm-profdata tool when using clang -
https://hg.python.org/cpython/rev/3f04287e7bea

--

___
Python tracker 

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



[issue26359] CPython build options for out-of-the box performance

2016-09-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bc28cbd49070 by Gregory P. Smith in branch '2.7':
Issue #26359: Add the --with-optimizations flag.
https://hg.python.org/cpython/rev/bc28cbd49070

--

___
Python tracker 

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



[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-08 Thread Gregory P. Smith

Changes by Gregory P. Smith :


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



[issue26359] CPython build options for out-of-the box performance

2016-09-08 Thread Gregory P. Smith

Changes by Gregory P. Smith :


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



[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-09-08 Thread Cory Benfield

Cory Benfield added the comment:

Thanks for your response Larry. I think it cleared up my understanding a bit, 
and I'm (extremely!) sympathetic to your desire to not get any closer to this 
problem than you have to.

I think it may be worth, in future, defining what effort will be made to 
achieve compatibility with libraries that Python relies on. I can see several 
questions here that, AFAIK, have no concrete answer:

- Can a Python minor version increase (e.g. 3.6 -> 3.7) add support for a new 
ABI in a library dependency? (This one has an answer, which is certainly yes, 
but we could still stand to write it down because you'd be amazed how often it 
helps to write down the basic starting point of the argument.)
- Can a Python patch version increase *before* security release mode (e.g. 
3.6.1 -> 3.6.2) add support for a new ABI in a library dependency?
- What about a new API that maintains ABI compatibility?
- Can a Python security version increase (e.g. 3.4.5 -> 3.4.6) add support for 
a new ABI in a library dependency?
- What about a new API that maintains ABI compatibility?
- How do the answers to the above questions vary if the change is 
security-focused (e.g. AES is broken tomorrow so ChaCha20 is the only safe 
cipher left in OpenSSL)?

I'm not qualified or authoritative enough to answer those questions, but having 
an answer to them would help modulate expectations from people like myself.

--

___
Python tracker 

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



[issue28005] Broken encoding modules are silently skipped.

2016-09-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Thinking about this some, we could go ahead and document somewhere that if a 
codec wants to tell the search function that it cannot work due to some missing 
dependency, it will have to raise an ImportError from the codec module level 
(instead of just lettering ImportError bubble up), possibly reraising the error 
to assure this.

--

___
Python tracker 

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



[issue28015] configure --with-lto builds fail when CC=clang on Linux, requires gold linker

2016-09-08 Thread Gregory P. Smith

New submission from Gregory P. Smith:

The error message you will see when building may look something like:

clang -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  
-fprofile-instr-generate -flto Parser/acceler.o Parser/grammar1.o 
Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o 
Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o 
Objects/obmalloc.o Python/dynamic_annotations.o Python/mysnprintf.o 
Python/pyctype.o Parser/tokenizer_pgen.o Parser/printgrammar.o 
Parser/parsetok_pgen.o Parser/pgenmain.o -lpthread -ldl  -lutil -o Parser/pgen
/usr/bin/ld: /usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: error loading plugin: 
/usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: cannot open shared object file: No 
such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:793: recipe for target 'Parser/pgen' failed
make[2]: *** [Parser/pgen] Error 1

as seen on ubuntu 16.04.

Related to 
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/1254970 
which suggests we also need -B/usr/lib/gold-ld in our LDFLAGS and/or CFLAGS 
when using clang on Linux with LTO.

testing with it set in both still runs into errors; someone with clang LTO 
experience will need to untangle this.

(is this related to why --with-lto doesn't work on MacOS as well?)

--
components: Build
messages: 274984
nosy: gregory.p.smith
priority: normal
severity: normal
stage: needs patch
status: open
title: configure --with-lto builds fail when CC=clang on Linux, requires gold 
linker
type: compile error
versions: Python 2.7, 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



[issue25761] Improve unpickling errors handling

2016-09-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue28016] test_fileio fails on AIX

2016-09-08 Thread Matthieu S

New submission from Matthieu S:

==
FAIL: testAbles (test.test_fileio.COtherFileTests)
--
Traceback (most recent call last):
  File 
"/opt/freeware/src/packages/BUILD/Python-3.5.2/64bit/Lib/test/test_fileio.py", 
line 382, in testAbles
self.assertEqual(f.seekable(), False)
AssertionError: True != False

==
FAIL: testAbles (test.test_fileio.PyOtherFileTests)
--
Traceback (most recent call last):
  File 
"/opt/freeware/src/packages/BUILD/Python-3.5.2/64bit/Lib/test/test_fileio.py", 
line 382, in testAbles
self.assertEqual(f.seekable(), False)
AssertionError: True != False

/dev/tty is seakable on AIX, like on some other Unix on wich this assertion is 
already skipped (macOS, BSD, SunOS).

The attached patch adds adds AIX to the list of platform on wich the assertion 
should be skipped.

--
components: Tests
files: Python-3.5.1-fileio.patch
keywords: patch
messages: 274985
nosy: sarterm
priority: normal
severity: normal
status: open
title: test_fileio fails on AIX
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file44460/Python-3.5.1-fileio.patch

___
Python tracker 

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



[issue26798] add BLAKE2 to hashlib

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

Other tests catch OSError and HTTPError. I have changed read_vectors() to do 
the same for now.

--

___
Python tracker 

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



[issue26798] add BLAKE2 to hashlib

2016-09-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 46b34706eb41 by Christian Heimes in branch 'default':
Issue 26798: fetch OSError and HTTPException like other tests that use 
open_urlresource.
https://hg.python.org/cpython/rev/46b34706eb41

--

___
Python tracker 

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



[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

On 2016-09-08 09:28, Cory Benfield wrote:
> 
> Cory Benfield added the comment:
> 
> Thanks for your response Larry. I think it cleared up my understanding a bit, 
> and I'm (extremely!) sympathetic to your desire to not get any closer to this 
> problem than you have to.
> 
> I think it may be worth, in future, defining what effort will be made to 
> achieve compatibility with libraries that Python relies on. I can see several 
> questions here that, AFAIK, have no concrete answer:
> 
> - Can a Python minor version increase (e.g. 3.6 -> 3.7) add support for a new 
> ABI in a library dependency? (This one has an answer, which is certainly yes, 
> but we could still stand to write it down because you'd be amazed how often 
> it helps to write down the basic starting point of the argument.)
> - Can a Python patch version increase *before* security release mode (e.g. 
> 3.6.1 -> 3.6.2) add support for a new ABI in a library dependency?
> - What about a new API that maintains ABI compatibility?
> - Can a Python security version increase (e.g. 3.4.5 -> 3.4.6) add support 
> for a new ABI in a library dependency?
> - What about a new API that maintains ABI compatibility?
> - How do the answers to the above questions vary if the change is 
> security-focused (e.g. AES is broken tomorrow so ChaCha20 is the only safe 
> cipher left in OpenSSL)?
> 
> I'm not qualified or authoritative enough to answer those questions, but 
> having an answer to them would help modulate expectations from people like 
> myself.

I'm going to discuss these points in my OpenSSL PEP. Thanks for the
summary :)

--

___
Python tracker 

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



[issue11551] test_dummy_thread.py test coverage improvement

2016-09-08 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Here is an updated patch that increases the coverage to 100% and has some pep8 
style improvements.


shannon-2:issue11551 senthil$ ./python.exe -m test.regrtest test_dummy_thread
Run tests sequentially
0:00:00 [1/1] test_dummy_thread
1 test OK.

Total duration: 23 ms
Tests result: SUCCESS

shannon-2:issue11551 senthil$ ./python.exe -m coverage run --pylib 
--source=_dummy_thread Lib/test/regrtest.py test_dummy_thread
Run tests sequentially
0:00:00 [1/1] test_dummy_thread
1 test OK.

Total duration: 82 ms
Tests result: SUCCESS

shannon-2:issue11551 senthil$ ./python.exe -m coverage report --show-missing
Name   Stmts   Miss  Cover   Missing

Lib/_dummy_thread.py  64  0   100%


Since these are restricted to test improvements and have addressed the comments 
from previous reviews, I am going ahead with committing this patch. If there 
are any further comments, we can address them in subsequent commits.

--
Added file: http://bugs.python.org/file44461/issue11551.patch

___
Python tracker 

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



[issue28017] bluetooth.h on big endian needs GNU C extensions

2016-09-08 Thread Christian Heimes

New submission from Christian Heimes:

PPC Fedora build bot is not able to build the _ssl and _socket module. It looks 
like bluetooth.h is not compatible with std=c99. It uses some GNU C extensions 
like __extension__, __attribute__((packed)) and __typeof__. The C99 variant 
-std=gnu99 should do the trick.

http://buildbot.python.org/all/builders/PPC64%20Fedora%203.x/builds/1527/steps/test/logs/stdio

In file included from /usr/include/bluetooth/bluetooth.h:37:0,
 from 
/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Modules/socketmodule.h:58,
 from 
/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Modules/socketmodule.c:321:
/usr/include/bluetooth/bluetooth.h: In function ‘bt_get_le64’:
/usr/include/bluetooth/bluetooth.h:238:18: error: expected 
specifier-qualifier-list before ‘typeof’
  return bswap_64(bt_get_unaligned((const uint64_t *) ptr));
  ^
/usr/include/bluetooth/bluetooth.h:238:18: error: called object is not a 
function or function pointer
  return bswap_64(bt_get_unaligned((const uint64_t *) ptr));
  ^
/usr/include/bluetooth/bluetooth.h:238:18: error: ‘struct ’ has no 
member named ‘__v’
  return bswap_64(bt_get_unaligned((const uint64_t *) ptr));

--
components: Extension Modules
messages: 274990
nosy: benjamin.peterson, christian.heimes
priority: critical
severity: normal
stage: needs patch
status: open
title: bluetooth.h on big endian needs GNU C extensions
type: compile error
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



[issue28017] bluetooth.h on big endian needs GNU C extensions

2016-09-08 Thread Martin Panter

Martin Panter added the comment:

I don’t have access to the buildbot. Are you sure it uses __typeof__? The error 
message says “typeof” without the underscores. I suspect that it would work 
with the underscores.

--
nosy: +martin.panter
superseder:  -> PPC64 Fedora socket and ssl compile failure

___
Python tracker 

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



[issue28017] bluetooth.h on big endian needs GNU C extensions

2016-09-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b5b2bb56d303 by Christian Heimes in branch 'default':
Issue 28017: Use -std=gnu99 to get C99 with GNU extensions for bluetooth.h on 
big endian.
https://hg.python.org/cpython/rev/b5b2bb56d303

--
nosy: +python-dev

___
Python tracker 

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



[issue28017] bluetooth.h on big endian needs GNU C extensions

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

Let's give it a try.

--

___
Python tracker 

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



[issue28013] PPC64 Fedora socket and ssl compile failure

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

#28017 and -std=gnu99 fixes the problem. The header files needs GNU extensions 
on big endian machines.

--
nosy: +christian.heimes
resolution:  -> fixed
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



[issue11551] test_dummy_thread.py test coverage improvement

2016-09-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 08f446bf45a7 by Senthil Kumaran in branch '3.5':
Issue11551 - Increase the test coverage of _dummy_thread module to 100%.
https://hg.python.org/cpython/rev/08f446bf45a7

New changeset d69e0df64b11 by Senthil Kumaran in branch 'default':
[merge from 3.5] Issue11551 - Increase the test coverage of _dummy_thread 
module to 100%.
https://hg.python.org/cpython/rev/d69e0df64b11

--
nosy: +python-dev

___
Python tracker 

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



[issue11551] test_dummy_thread.py test coverage improvement

2016-09-08 Thread Senthil Kumaran

Changes by Senthil Kumaran :


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



[issue28017] bluetooth.h on big endian needs GNU C extensions

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

It compiles now. Sorry for the duplicate ticket.

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



[issue26798] add BLAKE2 to hashlib

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


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



[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


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



[issue28016] test_fileio fails on AIX

2016-09-08 Thread Martin Panter

Martin Panter added the comment:

You should be able to provide a tuple of prefixes (I can easily change to that 
change when I commit):

not sys.platform.startswith(('sunos', 'aix'))

However I noticed the AIX buildbots are all passing test_fileio. I wonder what 
the difference is? Maybe the buildbot process doesn’t have a /dev/tty and skips 
the test.

Would this also be needed on 2.7? The test seems to be called testAblesOnTTY() 
there.

--
nosy: +martin.panter
stage:  -> patch review
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



[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-08 Thread Emanuel Barry

Emanuel Barry added the comment:

Thank you R. David for the review, here's a new patch with the one change.

--
Added file: http://bugs.python.org/file44463/invalid_stdlib_escapes_4.patch

___
Python tracker 

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



[issue28018] Cross compilation fails in regen

2016-09-08 Thread Chi Hsuan Yen

New submission from Chi Hsuan Yen:

Since issue23968 landed (changeset 5c77488830bc), cross compilation fails. It's 
not regression of a single revision but is caused by a combination of multiple 
changes. Here are my steps:

1. git clone https://github.com/yan12125/python3-android
2. comment `patch -p1 < "${FILESDIR}/cross-compile.patch"` from 
mk/python/prepare.sh
3. `make`

This results in bash errors:

mkdir ../Lib/plat-aarch64-linux-android
if [ -n "aarch64-linux-android" ]; then \
  cp ../Lib/plat-linux/regen ../Lib/plat-aarch64-linux-android/regen; \
else \
  cp ../Lib/plat-generic/regen ../Lib/plat-aarch64-linux-android/regen; \
fi; \
export PATH; PATH="`pwd`:$PATH"; \
export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
export EXE; EXE=""; \
export CC; CC="/home/yen/Projects/python3-android/clang-bin/cc"; \
if [ -n "aarch64-linux-android" ]; then export MULTIARCH; 
MULTIARCH=aarch64-linux-android; fi; \
export PYTHON_FOR_BUILD; \
if [ "x86_64-pc-linux-gnu" = "aarch64-unknown-linux-android" ]; then \
  PYTHON_FOR_BUILD="python"; \
else \
  
PYTHON_FOR_BUILD="_PYTHON_PROJECT_BASE=/home/yen/Projects/python3-android/src/cpython/build-target
 _PYTHON_HOST_PLATFORM=linux-aarch64 
PYTHONPATH=/home/yen/Projects/python3-android/src/cpython/build-target/build/lib.linux-aarch64-3.6:../Lib:../Lib/plat-aarch64-linux-android
 python3.6"; \
fi; \
export H2PY; H2PY="$PYTHON_FOR_BUILD 
/home/yen/Projects/python3-android/src/cpython/build-target/../Tools/scripts/h2py.py";
 \
cd ../Lib/plat-aarch64-linux-android;  ./regen
+ 
_PYTHON_PROJECT_BASE=/home/yen/Projects/python3-android/src/cpython/build-target
 _PYTHON_HOST_PLATFORM=linux-aarch64 
PYTHONPATH=/home/yen/Projects/python3-android/src/cpython/build-target/build/lib.linux-aarch64-3.6:../Lib:../Lib/plat-aarch64-linux-android
 python3.6 
/home/yen/Projects/python3-android/src/cpython/build-target/../Tools/scripts/h2py.py
 -i '(u_long)' 
/opt/android-ndk/platforms/android-21/arch-arm64/usr/include/sys/types.h 
/opt/android-ndk/platforms/android-21/arch-arm64/usr/include/netinet/in.h 
/opt/android-ndk/platforms/android-21/arch-arm64/usr/include/dlfcn.h
./regen: line 33: 
_PYTHON_PROJECT_BASE=/home/yen/Projects/python3-android/src/cpython/build-target:
 No such file or directory
make[1]: *** [Makefile:1331: ../Lib/plat-aarch64-linux-android] Error 127
make[1]: Leaving directory 
'/home/yen/Projects/python3-android/src/cpython/build-target'
make: *** [Makefile:36: python] Error 2

bash (I'm using 4.3.046) does not parse environment variables in quotation 
marks. For example the following script fails:

FOO="BAR=1 ls"
$FOO

The attached patch makes regen work again. I see /usr/bin/env used everywhere 
in CPython, so I guess it's OK to use it in configure without loss of 
portability.

Also added some people from issue14330, where $PYTHON_FOR_BUILD appeared for 
the first time.

--
components: Cross-Build
files: cross-compile.patch
keywords: patch
messages: 274998
nosy: Alex.Willmer, Chi Hsuan Yen, doko, eric.araujo, xdegaye
priority: normal
severity: normal
status: open
title: Cross compilation fails in regen
type: compile error
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file44462/cross-compile.patch

___
Python tracker 

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



[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-09-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e5871ffe9ac0 by Christian Heimes in branch 'default':
Issue #16113: SHA3: allocate extra memory for lane extraction and check return 
value of PyModule_Create()
https://hg.python.org/cpython/rev/e5871ffe9ac0

--

___
Python tracker 

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



[issue26798] add BLAKE2 to hashlib

2016-09-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa89fff0b52c by Christian Heimes in branch 'default':
Issue #26798: Coverity complains about potential memcpy() of overlapped 
regions. It doesn't hurt to use memmove() here. CID 1372514 / CID 1372515. 
Upstream https://github.com/BLAKE2/BLAKE2/issues/32
https://hg.python.org/cpython/rev/fa89fff0b52c

--

___
Python tracker 

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



[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-09-08 Thread Xavier de Gaye

Xavier de Gaye added the comment:

> Sorry that I haven't answered for a long time. I would like to get an email 
> notification but I don't know whether/how I can enable it.

You should get an email upon each message posted to this issue. The email is 
sent to the address you have registered with as "jojo".


So your config.log confirms that the configure script does use 
${exec_prefix}/lib64.
Your system may be configured with a configure system-wide initialization file 
[1]. In that case, configure will print a line starting with:
"loading site script ..."
and showing the path to the config.site file that is being loaded. As described 
at the end of [1], this is where libdir may be set to '${exec_prefix}/lib64'.

[1] 
https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Site-Defaults.html

--

___
Python tracker 

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



[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2016-09-08 Thread Jeroen Demeyer

Changes by Jeroen Demeyer :


--
keywords: +patch
Added file: http://bugs.python.org/file44464/no_strict_proto.patch

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2016-09-08 Thread Martin Panter

Martin Panter added the comment:

+++ b/Lib/test/test_winconsoleio.py
+to real people with real keyborads.
Should be keyboards
There are still assert_() calls in this file (1602_6.patch). Did you miss them?

+++ b/Lib/io.py
+from _io import WindowsConsoleIO
+__all__.append('WindowsConsoleIO')
I think you should either document this class, or remove it from __all__ to 
clarify it is just an implementation detail.

+++ b/Modules/_io/winconsoleio.c
+_io_WindowsConsoleIO___init___impl
+PyObject *decodedname = Py_None;
+Py_INCREF(decodedname);
+int d = PyUnicode_FSDecoder(nameobj, (void*)&decodedname);
Won’t this leak a reference to Py_None?
(Also, I think needless casting like in the last line can mask mistakes that 
the compiler would otherwise pick up. Imagine if you got the parameters around 
the wrong way.)

+read_console_w(HANDLE handle, DWORD maxlen, DWORD *readlen) {
+/* If we didn't read a full buffer that time, don't try
+   again or we will block a second time. */
I’m not familiar with the Windows APIs involved, but this doesn’t seem robust. 
What if there were exactly one full buffer waiting, would the next call block 
without returning anything?

--

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2016-09-08 Thread Martin Panter

Martin Panter added the comment:

Ah sorry I see Berker’s assert_() comment was _after_ you posted 1602_6.patch, 
so ignore that bit :)

--

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2016-09-08 Thread Martin Panter

Martin Panter added the comment:

Also as I understand it, the open() function can return this new class, so the 
documentation at  
needs updating.

--

___
Python tracker 

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



[issue3672] Ill-formed surrogates not treated as errors during encoding/decoding

2016-09-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2150eadb54c7 by Serhiy Storchaka in branch 'default':
Remove old typo.
https://hg.python.org/cpython/rev/2150eadb54c7

--
nosy: +python-dev

___
Python tracker 

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



[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-08 Thread Marcos Dione

New submission from Marcos Dione:

If the `step` parameter for `itertools.count()` rounds to 1 (f.i., 1.1, 
1.437643, 1.9), then it fallsback to fast (integer) mode and increases the 
counter by 1. Here's an example:

Python 3.6.0a4+ (default:ddc95a9bc2e0+, Sep  8 2016, 14:46:19)
>>> import itertools
>>> for i in itertools.count(1, step=1.5):
... print(i)
... if i > 10:
... break
1
2
3
4
5
6
7
8
9
10
11

--
components: Library (Lib)
messages: 275007
nosy: StyXman
priority: normal
severity: normal
status: open
title: itertools.count() falls back to fast (integer) mode when step rounds to 1
type: behavior
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



[issue28020] Python 3 logging HTTPHandler doesn't implement a standard http basic authorize

2016-09-08 Thread SenBin Yu

New submission from SenBin Yu:

The standard http basic authorization is

basic-credentials = "Basic" SP basic-cookie

basic-cookie  = 

userid-password   = [ token ] ":" *TEXT

but the logging/handlers module do the fllowing:

s = ('u%s:%s' % self.credentials).encode('utf-8')

s = 'Basic ' + base64.b64encode(s).strip()

why there is a redundant chr 'u'?

--
components: Library (Lib)
messages: 275008
nosy: SenBin Yu
priority: normal
severity: normal
status: open
title: Python 3 logging HTTPHandler doesn't implement a standard http basic 
authorize
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I suggest to not change fixcid.py. It is not correct and there is special issue 
for this (issue27952).

--

___
Python tracker 

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



[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +rhettinger

___
Python tracker 

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



[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-08 Thread Facundo Batista

Changes by Facundo Batista :


--
versions: +Python 3.5

___
Python tracker 

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



[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-08 Thread Emanuel Barry

Emanuel Barry added the comment:

All right, since you'll work on it I'm leaving it out. Removed it and 
test_bytes (which you already fixed, thanks!) from new patch.

--
Added file: http://bugs.python.org/file44465/invalid_stdlib_escapes_5.patch

___
Python tracker 

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



[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2016-09-08 Thread Berker Peksag

Changes by Berker Peksag :


--
status: open -> closed

___
Python tracker 

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



[issue27877] Add recipe for "valueless" Enums to docs

2016-09-08 Thread Berker Peksag

Changes by Berker Peksag :


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



[issue28005] Broken encoding modules are silently skipped.

2016-09-08 Thread Steve Dower

Steve Dower added the comment:

Is it deliberate that inner import errors should be treated as if the codec is 
missing? Another search function isn't going to help in that case unless it 
finds the same encoding in another place. I didn't see any evidence of that, 
and apparently neither did Eric (but I was bitten by a misspelt import within 
my new encodings/oem.py giving a confusing message).

I don't think any encoding modules in the stdlib should fail to import. This 
change ensures that we hear about it if they do fail.

--

___
Python tracker 

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



[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-09-08 Thread Andrea De Pasquale

Andrea De Pasquale added the comment:

Yes you are right, my patch produces an RFC2046-compliant output and also 
registers the "not-unique-boundary" defect.

--

___
Python tracker 

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



[issue27881] Fix possible bugs when setting sqlite3.Connection.isolation_level

2016-09-08 Thread Berker Peksag

Berker Peksag added the comment:

Closing this as 'fixed'. Any further improvement can be discussed in separate 
issues. Thanks!

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



[issue28020] Python 3 logging HTTPHandler doesn't implement a standard http basic authorize

2016-09-08 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

There's indeed a 'u' in 3.5.1: 
https://hg.python.org/cpython/file/v3.5.1/Lib/logging/handlers.py#l1157 and 
latter fixed in 3.5.2: 
https://hg.python.org/cpython/file/v3.5.2/Lib/logging/handlers.py#l1159. Please 
consider update.

--
nosy: +Chi Hsuan Yen

___
Python tracker 

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



[issue28020] Python 3 logging HTTPHandler doesn't implement a standard http basic authorize

2016-09-08 Thread SilentGhost

Changes by SilentGhost :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> TypeError in logging.HTTPHandler.emit; possible python 2 to 3 
conversion issue

___
Python tracker 

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



[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


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



[issue28021] Calculating wrong modulus manually

2016-09-08 Thread Faisal Saleem

New submission from Faisal Saleem:

Hi,

when I calculate (11**19)%23 it gives me 15 but when I try to do the same 
operation manually it give a totally different result which is 1395.

>>> 11**19
61159090448414546291
>>> (11**19)%23
15
>>> a=11**19
>>> a
61159090448414546291
>>> b=23
>>> c=int(a/b)
>>> c
2659090889061501952
>>> d=b*c
>>> d
61159090448414544896
>>> e=a-d
>>> e
1395

--
messages: 275015
nosy: sfaisalawan
priority: normal
severity: normal
status: open
title: Calculating wrong modulus manually
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-08 Thread Marcos Dione

Marcos Dione added the comment:

Here's a first approach on fixing this bug. I'm not sure how to handle the case 
where step=1.0.

--
keywords: +patch
Added file: http://bugs.python.org/file44466/fix_28019.diff

___
Python tracker 

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



[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-08 Thread Marcos Dione

Changes by Marcos Dione :


--
versions: +Python 3.3, Python 3.4

___
Python tracker 

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



[issue10274] imaplib should provide a means to validate a remote server ssl certificate(s)

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

You can use a custom ssl context to enforce cert and hostname validation:

>>> import imaplib, ssl
>>> ctx = ssl.create_default_context()
>>> conn = imaplib.IMAP4_SSL("74.125.133.109", ssl_context=ctx)
Traceback (most recent call last):
...
ssl.CertificateError: hostname '74.125.133.109' doesn't match 'imap.gmail.com'

--
nosy: +christian.heimes
resolution:  -> fixed
stage: needs patch -> 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



[issue1522400] irda socket support

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue15426] On a x86_64 Linux workstation, the build-from-source is borked.

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
resolution:  -> out of date
stage:  -> patch review
status: open -> pending
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

The ticket hasn't moved in about four years. Does the issue still persist?

--
nosy: +christian.heimes
resolution:  -> out of date
stage: needs patch -> patch review
status: open -> pending
versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue15670] PEP 3121, 384 Refactoring applied to ssl module

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen
stage:  -> needs patch
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue28021] Calculating wrong modulus manually

2016-09-08 Thread Xiang Zhang

Xiang Zhang added the comment:

You should use a//b instead of int(a/b).

>>> 11**19 - 11**19//23*23
15
>>> 11**19 - int(11**19/23)*23
1395

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-08 Thread SilentGhost

Changes by SilentGhost :


--
stage:  -> patch review
versions:  -Python 3.3, Python 3.4

___
Python tracker 

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



[issue7672] _ssl module overwrites existing thread safety callbacks

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

OpenSSL 1.1.0 comes with its own locking code. I'm not going to change the 
module for < 1.1.0.

--
nosy: +christian.heimes
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue4470] smtplib SMTP_SSL not working.

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

The bug is 8 years old and hasn't seen activity for three years. Is SMTP over 
SSL still broken for you?

--
nosy: +christian.heimes
status: open -> pending

___
Python tracker 

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



[issue18029] Python SSL support is missing from SPARC build

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

SPARC is no longer a supported platform.

--
nosy: +christian.heimes
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue13403] Option for XMLPRC Server to support HTTPS

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

The patch is out of date. The XMLRPC HTTPS server should accept a ssl context 
instead of key and cert file. This allows better customization and SSL session 
resumption.

--
nosy: +christian.heimes
versions: +Python 3.7 -Python 3.4

___
Python tracker 

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



[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

Good idea, but the patch is outdated. We can enforce verification by changing 
ssl._create_stdlib_context.

--
assignee:  -> christian.heimes
nosy: +alex, dstufft, janssen
priority: normal -> high
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-08 Thread Facundo Batista

Facundo Batista added the comment:

I think the fix nails it; all the problem was that the "fast" mode was wrongly 
detected, and all the problems (counting badly, or a bad repr, etc) is a 
problem after setting cnt into PY_SSIZE_T_MAX.

IIUC there is nothing special to do when step=1.0, as later on the original 
objects are used (they don't suffer a wrong cast to integer anymore).

--
nosy: +facundobatista

___
Python tracker 

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



[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

Oh sorry, this is about SNI not verified context. All protocols support SNI for 
some time.

--
resolution:  -> out of date
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



[issue18636] mingw: setup _ssl module

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

Is this patch still relevant and required?

--
nosy: +christian.heimes
status: open -> pending
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

I can no longer reproduce the crash with Python 2.7 and 3.5 (Fedora 24 with 
OpenSSL 1.0.2h). Is this still a problem for you?

--
status: open -> pending

___
Python tracker 

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



[issue9216] FIPS support for hashlib

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue18617] TLS and Intermediate Certificates

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, 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



[issue21649] Mention "Recommendations for Secure Use of TLS and DTLS"

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

https://wiki.mozilla.org/Security/Server_Side_TLS is a good resource, too.

--
versions: +Python 3.6, Python 3.7

___
Python tracker 

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



[issue20469] ssl.getpeercert() should include extensions

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

We cannot support arbitrary extensions. If you need special extension, then you 
have to get the raw DER cert and use some library like pyasn1 to parse the cert 
yourself. PyCA cryptography might help you with that, too.

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue18616] enable more ssl socket options with get_server_certificate

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

I would accept a patch that adds a ssl_context argument to 
get_server_certificate().

--
status: open -> pending
versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue21830] ssl.wrap_socket fails on Windows 7 when specifying ca_certs

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

The ticket hasn't been updated in two years.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue16763] test_ssl with connect_ex don't handle unreachable server correctly

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

It's probably out of date :)

Please reopen if you still see this issue.

--
nosy: +christian.heimes
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-08 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee:  -> rhettinger

___
Python tracker 

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



[issue9423] Error in urllib2.do_open(self, http_class, req)

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

No activity in two years, I'm closing this ticket.

--
nosy: +christian.heimes
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue22301] smtplib.SMTP.starttls' documentation is just confusing

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

starttls() does accept a ssl_context argument for a while.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue22365] SSLContext.load_verify_locations(cadata) does not accept CRLs

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

Is this still an issue? The bug is 10 years old and the patch two years.

--
nosy: +christian.heimes
status: open -> pending
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4

___
Python tracker 

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



[issue20994] Disable TLS Compression

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

the default context sets context.options |= getattr(_ssl, "OP_NO_COMPRESSION", 
0), _create_unverified_context() is missing that line.

--
stage:  -> needs patch
type:  -> security
versions: +Python 3.6, Python 3.7 -Python 3.3, Python 3.4

___
Python tracker 

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



[issue20994] Disable TLS Compression

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
priority: normal -> high

___
Python tracker 

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



[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-08 Thread Marcos Dione

Marcos Dione added the comment:

New patch following comments from SilentGhost.

--
Added file: http://bugs.python.org/file44467/fix_28019.diff

___
Python tracker 

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



[issue23033] Disallow support for a*.example.net, *a.example.net, and a*b.example.net in certificate wildcard handling.

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

Sounds good to me!

For 3.7 I'm planning to use OpenSSL's hostname verification system and 
deprecate match_hostname(). It does support partial matching by default.

--
nosy: +christian.heimes
stage:  -> needs patch
type:  -> security
versions: +Python 3.6, Python 3.7

___
Python tracker 

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



[issue22870] urlopen timeout failed with SSL socket

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

Is this bug still relevant for you?

--
nosy: +christian.heimes
status: open -> pending

___
Python tracker 

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



[issue22866] ssl module in 2.7 should provide a way to configure default context options

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

MAL, where is your patch? :)

--
nosy: +christian.heimes
stage:  -> needs patch
status: open -> pending
type: enhancement -> security

___
Python tracker 

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



[issue23274] make_ssl_data.py in Python 2.7.9 needs Python 3 to run

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

It's 2016. Everybody should have a host with Python 3. In fact it's more likely 
that your machine doesn't have 2.7.

--
nosy: +christian.heimes
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue28022] SSL releated deprecation for 3.6

2016-09-08 Thread Christian Heimes

New submission from Christian Heimes:

I like to deprecate some SSL related parts of Python:

- ssl.wrap_socket() is a horrible abomination. People should use 
SSLContext.wrap_socket() instead
- all certfile/cert_file, keyfile/key_file and check_hostname arguments. Use 
context / ssl_context instead.
- make ftplib, imaplib, nntplib, pop3lib, smtplib etc. validate certs by 
default.

--
assignee: christian.heimes
components: Documentation, Library (Lib)
messages: 275043
nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen
priority: high
severity: normal
stage: needs patch
status: open
title: SSL releated deprecation for 3.6
type: security
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue20924] openssl init 100% CPU utilization on Windows

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue23588] Errno conflicts in ssl.SSLError

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue17123] Add OCSP support to ssl module

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

I'll add OCSP stapling verification to 3.7.

--
versions: +Python 3.7 -Python 3.5

___
Python tracker 

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



[issue23843] ssl.wrap_socket doesn't handle virtual TLS hosts

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

ssl.wrap_socket() will be deprecated in 3.6. Please use a context. You can 
still inspect the server cert with a context. In fact ssl.wrap_socket() uses a 
context internally.

--
resolution:  -> wont fix
status: open -> closed
versions: +Python 3.6 -Python 3.4

___
Python tracker 

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



[issue23843] ssl.wrap_socket doesn't handle virtual TLS hosts

2016-09-08 Thread Giampaolo Rodola'

Changes 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



[issue23588] Errno conflicts in ssl.SSLError

2016-09-08 Thread Giampaolo Rodola'

Changes 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



[issue24372] Documentation for ssl.wrap_socket's ssl_version parameter is odd

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

OpenSSL 1.1.0 has deprecated all versions except TLS_METHOD and DTLS_METHOD. 
TLS_METHOD is the new name for auto-nego SSLv23_METHOD. Python 3.6 defaults to 
TLS_METHOD already. #27876 will add a better way to configure accepted versions.

--
status: open -> pending

___
Python tracker 

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



[issue24542] ssl - SSL_OP_NO_TICKET not reimplemented

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

I will provide the option as part of #19500.

--
resolution:  -> duplicate
status: open -> closed
superseder:  -> Add client-side SSL session resumption
versions: +Python 3.6, Python 3.7 -Python 2.7

___
Python tracker 

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



[issue24516] SSL create_default_socket purpose insufficiently documented

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue24545] Issue with ssl package

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

It will be fix in 2.7.13 as part of my OpenSSL 1.1.0 patch.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue24334] SSLSocket extra level of indirection

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
versions: +Python 3.7 -Python 3.5

___
Python tracker 

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



[issue25115] SSL_set_verify_depth not exposed by the ssl module

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
versions: +Python 3.7 -Python 2.7, Python 3.6

___
Python tracker 

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



[issue8106] SSL session management

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

I'm going to implement sessions in #19500.

--
resolution:  -> duplicate
status: open -> closed
superseder:  -> Add client-side SSL session resumption
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



  1   2   3   4   >