[issue23932] Tutorial section on function annotations is out of date re: PEP 484

2015-04-13 Thread Zachary Ware
New submission from Zachary Ware: (Brought up by 'Tronster' on docs@) https://docs.python.org/3/tutorial/controlflow.html#function-annotations In light of the PEP 484 and its clear intentions for function annotations, the tutorial section on function annotations is out of date. It should be u

[issue23931] Update DevGuide link in Quickstart Step 1

2015-04-13 Thread Carol Willing
New submission from Carol Willing: Change Quickstart step 1 link to redirect to Section 1.1 Getting Started. Currently, it redirects to 1.1.2 Getting the Source Code. For developers coming from git, step 1.1.1 Version Control Setup would be helpful. Feedback from PyCon 2015 Sprints suggest thi

[issue16125] open accepts arbitrary mode strings as long as they contain U

2015-04-13 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for a Py3k warning. Filing a pylint --py3k RFE may also be appropriate. -- nosy: +ncoghlan ___ Python tracker ___ _

[issue23930] SimpleCookie doesn't parse comma-only separated cookies correctly

2015-04-13 Thread Piotr
New submission from Piotr: Skype WISPr and iPassConnect (and maybe other bots) return cookies as a comma separated list. It's not a comma + space (which works). C = cookies.SimpleCookie() C.load('a=b,z=zz') >>> C['a'] I wonder what would those bots do if there was a comma in a cookie value.

[issue19050] [Python 2, Windows] fflush called on pointer to potentially closed file

2015-04-13 Thread eryksun
eryksun added the comment: The default (and standards-violating) behavior of the Windows CRT is to kill the process for a bad file descriptor, instead of just setting errno to EBADF. To work around this PyOS_StdioReadline needs to to check _Py_Verify_fd before calling fflush or writing to stde

[issue23928] SSL wiki page, host name matching, CN and SAN

2015-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm closing this issue since it isn't part of our responsibilites here, sorry. If you want to see that wiki page fixed, the best is probably to... fix it yourself :-) (it's a wiki after all) (frankly, I think it should be removed or replaced with a pair of link

[issue23928] SSL wiki page, host name matching, CN and SAN

2015-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the report; your remarks are obviously true. Unfortunately, the wiki is community-maintained, there's not much point in reporting bugs here about it. That page's contents look very outdated, by the way. The official documentation for the ssl module

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2015-04-13 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Well, I'd say that if tracing is enabled and is disabled automatically by Python (thus breaking a working debugger which would usually be used to diagnose the error), I'd at least consider issuing some warning to stderr... (probably warnings.warn cannot be use

[issue23929] Minor typo (way vs. away) in os.renames docstring

2015-04-13 Thread Eric V. Smith
Changes by Eric V. Smith : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue23929] Minor typo (way vs. away) in os.renames docstring

2015-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: I think removing the word "way" would be a better improvement. -- nosy: +eric.smith versions: -Python 3.2, Python 3.3, Python 3.6 ___ Python tracker ___

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: With socket_eintr.4.patch, socket methods become non-thread safe. I'm not sure that it's a serious issue, but you have to consider this side effect of your change. (Modify socketmodule.c instead would allow to handle EINTR, recompute timeout and keep the thre

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: > Issue #23817: run autoreconf to update configure. Oh thanks, I forgot to regenerate configure! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue23929] Minor typo (way vs. away) in os.renames docstring

2015-04-13 Thread Philippe
New submission from Philippe: There is a minor typo in the docstring of os.renames: See https://hg.python.org/cpython/file/37905786b34b/Lib/os.py#l275 "After the rename, directories corresponding to rightmost path segments of the old name will be pruned way until [..]" This should be using aw

[issue23908] Check path arguments of os functions for null character

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: > The patch doesn't contain tests because I can't test them. But they should be > simple, just pass a path with null character to os function. IMO this issue is a bug, so you must write an unit test to test for non regression. One test for FileIO, another for

[issue19050] [Python 2, Windows] fflush called on pointer to potentially closed file

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: Python 3 raises an exception as expected, so I remove it from the Versions field. This issue is specific to Python 2, and it looks to be only reproductible on Windows. It's probably a bug in the C library (stdio.h). -- versions: -Python 3.4, Python 3.

[issue19050] [Python 2, Windows] fflush called on pointer to potentially closed file

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: > This snippet let my interpreter crash immediately Well, I don't understand the issue. If you write a bug, Python crashes. Ok, so? Please fix your bug. Don't expect Python from recovering from any bug. The io stack of Python 3 is safer because it has a direct

[issue23919] [Windows] test_os fails several C-level assertions

2015-04-13 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_os fails several C-level assertions -> [Windows] test_os fails several C-level assertions ___ Python tracker ___ _

[issue23919] test_os fails several C-level assertions

2015-04-13 Thread STINNER Victor
STINNER Victor added the comment: > The fix for these is to hide the output, which is in the test modules > handling of the -n option. Since Python raises an exception for EBADF, I don't see the purpose of these assertion messages. -- ___ Python tr

[issue23928] SSL wiki page, host name matching, CN and SAN

2015-04-13 Thread Jeffrey Walton
New submission from Jeffrey Walton: The Python wiki page on SSL states (https://wiki.python.org/moin/SSL): To validate that a certificate matches requested site, you need to check commonName field in the subject of the certificate. I don't think its quite correct. Both the IETF and

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2015-04-13 Thread Martin Panter
Martin Panter added the comment: For the record, it looks like there were a few distinct but related problems here: * Passing any StringIO object as the body is not supported (see ), because no StringIO class imple

<    1   2   3   4