[issue20767] Some python extensions can't be compiled with clang 3.4

2016-11-28 Thread Stefan Krah
Stefan Krah added the comment: I guess the FreeBSD people are happy with the solution. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would be nice to add Misc/NEWS entry for this patch. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue28699] Imap from ThreadPool behaves unexpectedly

2016-11-28 Thread Xiang Zhang
Xiang Zhang added the comment: > 4. Guard against misbehaving generators/iterables *before* they are put into > the taskqueue. This approach is good. 2 points about the patch: 1. How about _map_async(map)? Does it need the same strategy? For an iterator with __len__ defined it seems to get t

[issue12844] Support more than 255 arguments

2016-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c1bb72c0f5d by Serhiy Storchaka in branch 'default': Issue #12844: More than 255 arguments can now be passed to a function. https://hg.python.org/cpython/rev/5c1bb72c0f5d -- nosy: +python-dev ___ Python

[issue28728] test_host_resolution in test_socket fails

2016-11-28 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue28781] On Installation of 3.5 Python get error message

2016-11-28 Thread Mark Harris
Mark Harris added the comment: Hi Steve, I did as you suggested, removed following add remove programs, removed every instance of python I could find(folders etc.), cleared out the temp folder. Then I ran the commands you suggested(it couldn't find any of the registry keys this time), reinsta

[issue28816] Document if zipimport can respect import hooks to load custom files from zip.

2016-11-28 Thread Decorater
New submission from Decorater: I am wondering so lets say for example if I was to make a json import hook (code below): from importlib.machinery import FileFinder import json import sys class ExtensionImporter(object): """Base Importer Class.""" def __init__(self, extension_list):

[issue28816] Document if zipimport can respect import hooks to load custom files from zip.

2016-11-28 Thread Decorater
Changes by Decorater : -- assignee: -> docs@python components: +Documentation -Interpreter Core nosy: +docs@python ___ Python tracker ___ ___

[issue28781] On Installation of 3.5 Python get error message

2016-11-28 Thread Decorater
Decorater added the comment: Normally when you install python systemwide it installs python35.dll in %SystemDrive%\Windows\System32\. Try looking there maybe you can use regsvr to register python35.dll in the registry or find where python.exe is and copy python35.dll to there. -- nosy

[issue28781] On Installation of 3.5 Python get error message

2016-11-28 Thread Decorater
Decorater added the comment: You could also download the embeded build which ships with python35.dll to put it in the folder you installed python to alongside python.exe. -- ___ Python tracker

[issue28781] On Installation of 3.5 Python get error message

2016-11-28 Thread Eryk Sun
Eryk Sun added the comment: No, Python 3.5 is the first version to always place the interpreter DLL in the installation directory, beside python.exe. Installing for all users does not place python35.dll in "%SystemRoot%\System32". -- nosy: +eryksun

[issue18896] Remove namedtuple 255 arguments restriction

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently it is not possible to declare a Python function with more than 255 parameters. There were two historical causes of this: 1. Opcodes MAKE_FUNCTION and MAKE_CLOSURE packed the number of default values for positional and keyword parameters in the opco

[issue12844] Support more than 255 arguments

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Brett. See issue18896 for supporting functions with more than 255 parameters. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28811] Make pathlib.PurePath.__str__ use shlex.quote

2016-11-28 Thread Ram Rachum
Ram Rachum added the comment: I understand now, you're completely right. This change would break the entire world :) -- ___ Python tracker ___ __

[issue9938] Documentation for argparse interactive use

2016-11-28 Thread Wolfgang Maier
Changes by Wolfgang Maier : -- nosy: +wolma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue28749] Fixed the documentation of the mapping codec APIs

2016-11-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Why are you removing the introductory section on how mappings work ? Also, this wording needs to be corrected: "bytes (integers in the range from 0 to 255)". Bytes are not integers. I'd suggest to use the more correct wording "bytes strings of length 1".

[issue28817] Provide method PurePath.quote() that calls shlex.quote

2016-11-28 Thread Ram Rachum
New submission from Ram Rachum: I have a a PurePath object like so: path = PurePath('/home/my awesome user/file.txt') I'm SSHing into a server and I want to remove the file. So I have to do this: ssh_client.run(f'/bin/rm {shlex.quote(str(path))}') Which is really long and ugly.

[issue28817] Provide method PurePath.quote() that calls shlex.quote

2016-11-28 Thread Ram Rachum
Changes by Ram Rachum : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue28817] Provide method PurePath.quote() that calls shlex.quote

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please no. The interface of pathlib is already overburdened. We shouldn't add every function that is applicable to string paths as a Path method. -- nosy: +serhiy.storchaka ___ Python tracker

[issue28799] Drop CALL_PROFILE special build?

2016-11-28 Thread STINNER Victor
STINNER Victor added the comment: Jeremy Hylton, the author of the feature, approved the removal of CALL_PROFILE: https://mail.python.org/pipermail/python-dev/2016-November/146866.html Raymond Hettinger is also ok to remove it: "This seems reasonable to me. I've never used or needed this specia

[issue28818] simplify lookdict functions

2016-11-28 Thread INADA Naoki
New submission from INADA Naoki: This patch reduces indirect access to improve readability. benchmark: Slower (14): - logging_format: 29.9 us +- 2.7 us -> 31.2 us +- 2.8 us: 1.04x slower - scimark_monte_carlo: 227 ms +- 5 ms -> 235 ms +- 16 ms: 1.03x slower - dulwich_log: 149 ms +- 10 ms -> 153

[issue28799] Drop CALL_PROFILE special build?

2016-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5aa2171ee43f by Victor Stinner in branch 'default': Remove CALL_PROFILE special build https://hg.python.org/cpython/rev/5aa2171ee43f -- nosy: +python-dev ___ Python tracker

[issue28799] Drop CALL_PROFILE special build?

2016-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07d8272d61e7 by Victor Stinner in branch 'default': Issue #28799: Update Misc/SpecialBuilds.txt https://hg.python.org/cpython/rev/07d8272d61e7 -- ___ Python tracker __

[issue28749] Fixed the documentation of the mapping codec APIs

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Xiang. I forgot about comments in headers, the updated path updates them too. > Why are you removing the introductory section on how mappings work ? Because it is not correct. I copied it to descriptions of concrete functions with correcting it accor

[issue28749] Fixed the documentation of the mapping codec APIs

2016-11-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file45669/docs-PyUnicode_Translate-3.patch ___ Python tracker ___ ___ Python-

[issue28818] simplify lookdict functions

2016-11-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue28818] simplify lookdict functions

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. I don't expect significant performance difference, but the code looks simpler. -- ___ Python tracker ___ __

[issue28749] Fixed the documentation of the mapping codec APIs

2016-11-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 28.11.2016 12:24, Serhiy Storchaka wrote: >> Why are you removing the introductory section on how mappings work ? > > Because it is not correct. I copied it to descriptions of concrete functions > with correcting it according to the peculiarity of partic

[issue28819] tzinfo class spacing bug

2016-11-28 Thread B. Liu
New submission from B. Liu: In Python 2.7, the following works: import datetime ZERO = timedelta(0) class UTC(datetime.tzinfo): """UTC""" # can be configured here def utcoffset(self, dt): return ZERO def tzname(self, dt): return "UTC" def dst(self, dt): return ZERO def

[issue28781] On Installation of 3.5 Python get error message

2016-11-28 Thread Mark Harris
Mark Harris added the comment: Thanks for the advice, I downloaded the Python35.dll in the file located here https://www.python.org/downloads/release/python-352/ which was called "Windows x86 embeddable zip file". With this file when I enter python.exe the program crashes. I tried Windows x86

[issue28819] tzinfo class spacing bug

2016-11-28 Thread B. Liu
Changes by B. Liu : -- type: -> behavior versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24339] iso6937 encoding missing

2016-11-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The codec code has a few (performance) issues: * nonspacing_diacritical_marks should be a set for fast lookup * ord(c) in range(0x00, 0xA0) should be rewritten using < and >= * result += bytes([ord(c)]) has exponential timing (it copies the whole bytes

[issue28820] Typo in section 6 of the Python 3.4 documentation

2016-11-28 Thread Rares Aioanei
New submission from Rares Aioanei: In section 6.4.1. it's said "Although certain modules are designed to export only names that follow certain patterns when you use import *, it is still considered bad practise in production code." "practise" should be "practice", as it's a noun. -- a

[issue28819] tzinfo class spacing bug

2016-11-28 Thread SilentGhost
SilentGhost added the comment: What do you mean by "work" and "does not work"? Both versions raise TypeError, because you're passing epoch to fromtimestamp, but once that's fixed both versions return identical output. Python is not sensitive to empty lines in class definitions, so I'd be surpr

[issue28819] tzinfo class spacing bug

2016-11-28 Thread B. Liu
B. Liu added the comment: Nevermind, the code I submitted was incomplete/buggy. This is embarrassing. The issue was that I was using an interpreter and a class definition that had spaces was happy to be read incompletely. Attached is working demonstration code that doesn't work as expected whe

[issue28749] Fixed the documentation of the mapping codec APIs

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The only part that is not correct is "single string characters". > This should read "single bytes" or "bytes strings of length 1". This is not correct. Decoding mappings map not bytes strings, but integers. And this is not the only incorrect part. Decoding

[issue28819] tzinfo class spacing bug

2016-11-28 Thread SilentGhost
Changes by SilentGhost : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28781] On Installation of 3.5 Python get error message

2016-11-28 Thread Mark Harris
Mark Harris added the comment: Sorry realized I didn't say I put the python35.dll in the python 35-32 folder of the c drive with the above results. -- ___ Python tracker ___ ___

[issue28816] Document if zipimport can respect import hooks to load custom files from zip.

2016-11-28 Thread Decorater
Changes by Decorater : -- components: -Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28820] Typo in section 6 of the Python 3.4 documentation

2016-11-28 Thread Julien Palard
Julien Palard added the comment: Hi Rares thanks for reporting. While building a patch for this issue I found another occurrence of the error. -- keywords: +patch nosy: +mdk Added file: http://bugs.python.org/file45672/issue28820.diff ___ Python trac

[issue28817] Provide method PurePath.quote() that calls shlex.quote

2016-11-28 Thread Zachary Ware
Zachary Ware added the comment: You already have a short, simple, one-line solution, and have had suggestions for shortening it yourself if you absolutely need to do so. If you can provide proof that this is an extremely common use case (and considering how short the solution already is, it w

[issue28781] On Installation of 3.5 Python get error message

2016-11-28 Thread Eryk Sun
Eryk Sun added the comment: Please zip and upload the installation logs since your most recent attempt in msg281849. They might help to figure out why it's doing a per-user uninstall that removes python35.dll. -- ___ Python tracker

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-28 Thread Julien Palard
Julien Palard added the comment: Hi Raymond, About Argument Clinic # Just to clarify the situation, Argument Clinic allows for clear method signature, typically: `hi: Py_ssize_t(py_default="len(a)") = -1` gives the expected "hi=len(a)" signature successfully. The problem

[issue28781] On Installation of 3.5 Python get error message

2016-11-28 Thread Mark Harris
Mark Harris added the comment: I've attached all the files I could find in the temp file. Hope that helps. Mark -- Added file: http://bugs.python.org/file45673/Python 3.5.2 log files.zip ___ Python tracker ___

[issue28816] Document if zipimport can respect import hooks to load custom files from zip.

2016-11-28 Thread Steve Dower
Changes by Steve Dower : -- nosy: +brett.cannon, eric.snow, ncoghlan, twouters -steve.dower ___ Python tracker ___ ___ Python-bugs-lis

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Julien, you don't to decide that long-standing APIs that have worked just fine for users are now a bad practice. Some of these APIs (range, dict.pop, type) we designed by Guido and work fine in practice. The expression, "don't have the tail wag the

[issue28818] simplify lookdict functions

2016-11-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can you make the patch without the unnecessary variable name change from "value_addr" to "pvalue". The former name is more communicative and is self-describing. -- ___ Python tracker

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread Florin Papa
New submission from Florin Papa: Hello, This is Florin Papa from the Dynamic Scripting Languages Optimizations team in Intel Corporation. In changeset 105360:46e2755b022c [1] the generate_opcode_h.py script was modified to use tokenize.open() in order to avoid a Resource Warning. The tokeniz

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-11-28 Thread Xiang Zhang
New submission from Xiang Zhang: PyUnicode_FindChar declares in the doc it treats its *start* and *end* parameters as str[start:end], same as other APIs like PyUnicode_Find, PyUnicode_Count. But it doesn't allow negative indices like others so violates the doc. -- components: Interpre

[issue27172] Undeprecate inspect.getfullargspec()

2016-11-28 Thread Yury Selivanov
Yury Selivanov added the comment: Nick, your patch LGTM. I'd only add to the getargspec section that getfullargspec is usually a drop-in replacement (I've yet to see code where it's not the case). -- ___ Python tracker

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue28823] Simplify compiling to BUILD_MAP_UNPACK

2016-11-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently the compiler produces BUILD_MAP_UNPACK with an argument at most 255. If needed to merge more than 255 dictionaries, BUILD_MAP_UNPACK is called several times. But this is unneeded complication since BUILD_MAP_UNPACK doesn't have a limitation on it

[issue28635] Update What's New for 3.6

2016-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52038705827d by Yury Selivanov in branch '3.6': Issue #28635: Document Python 3.6 opcode changes https://hg.python.org/cpython/rev/52038705827d New changeset 48fb6a4cb5f8 by Yury Selivanov in branch 'default': Merge 3.6 (issue #28635) https://hg.pyt

[issue28823] Simplify compiling to BUILD_MAP_UNPACK

2016-11-28 Thread Yury Selivanov
Yury Selivanov added the comment: While I don't think that merging more than 256 dicts is a common task, the code does become much simpler. LGTM. -- ___ Python tracker ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-28 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I didn't follow the discussion, but why not using "/" magic separator in Argument Clinic to mark arguments as optional but don't document their default value? -- ___ Python tracker

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-11-28 Thread STINNER Victor
STINNER Victor added the comment: PyUnicode_FindChar.patch is a new feature, it cannot be applied to stable branches (py < 3.7). I'm not sure that it's worth it to support negative indexes for end. Why not simply documenting that end must be positive? -- _

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Berker Peksag
Berker Peksag added the comment: > PYTHON3WARNINGS looks as Python 3 variant of PYTHONWARNINGS. Sadly, I can't think of a better name. Do you have a suggestion? > Yes, I suppose this falls under the general exemption in 2.x for -3 warning changes. Thanks, Benjamin! -- ___

[issue28800] Add RETURN_NONE bytecode instruction

2016-11-28 Thread Yury Selivanov
Yury Selivanov added the comment: -1; we have too many opcodes already. Let's not complicate the code if there's no performance improvement. -- nosy: +yselivanov ___ Python tracker

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one option is to introduce the constant UNBOUND = -1 in the bisect module and use it as a default value. -- ___ Python tracker ___ __

[issue28689] OpenSSL 1.1.0c test failures

2016-11-28 Thread Christian Heimes
Christian Heimes added the comment: The test suite is passing with OpenSSL 1.1.0d-dev (OpenSSL_1_1_0-stable branch). I consider 1.1.0c a broken and unsupported release. -- ___ Python tracker __

[issue28800] Add RETURN_NONE bytecode instruction

2016-11-28 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I didn't want to bother you. I should run the benchmark *before* opening an issue next time :-) I agree that the speedup is negligible, so it's not worth it. The main purpose of the patch was an optimization. I close the issue. Thanks ;-) -- re

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6ea34c8b413 by Victor Stinner in branch 'default': Reintroduce Python2 support in generate_opcode_h.py https://hg.python.org/cpython/rev/a6ea34c8b413 -- nosy: +python-dev ___ Python tracker

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread STINNER Victor
STINNER Victor added the comment: I don't understand why do you run Tools/scripts/generate_opcode_h.py. It seems like Makefile wants to run it if Lib/opcode.py is more recent than Include/opcode.h. Can you please try the "make touch" command to not recompile Include/opcode.h? Include/opcode.h

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread STINNER Victor
STINNER Victor added the comment: Anyway, I reintroduced the Python 2, just for practical reasons :-) I knew that my change dropped Python 2 support, but I didn't notice that the Makefile might have to run the script to be able to build the ./python binary. So the script can be used on python2

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about PYTHON_OPT and allowing to pass any options via an environment variable? There is a number of precedences (gzip, less, etc). export PYTHON_OPT="-t -b -3" Or PYTHON3COMP[ATIBILITY]? -- ___ Python tr

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Sorry, I didn't follow the discussion, but why not using "/" magic separator > in Argument Clinic to mark arguments as optional but don't document their > default value? '/' marks positional-only arguments, not optional arguments. --

[issue28799] Drop CALL_PROFILE special build?

2016-11-28 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Roy Williams
Roy Williams added the comment: > What about PYTHON_OPT and allowing to pass any options via an environment > > > variable? There is a number of precedences (gzip, less, etc). > >export PYTHON_OPT="-t -b -3" I'd be open to this, but it seems like a much wider change than something that I'd

[issue28781] On Installation of 3.5 Python get error message

2016-11-28 Thread Steve Dower
Steve Dower added the comment: Looking at those logs, it seems like we think the per-user packages are already installed. When you go to do an all-users install, it "removes" the per-user packages, but passes in the same options as it does for the all user packages. Under the hood, these packa

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Brett Cannon
Brett Cannon added the comment: I agree with Roy: while PYTHON_OPT might be nice long-term, I think that scopes it beyond a py3k change in Python 2.7 and into new feature territory. As for a better name, PY3KWARNINGS is also possible and minimizes typo issues if that's what people are worried

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-28 Thread STINNER Victor
STINNER Victor added the comment: Ah right, _bisect.bisect_right() support keywords. I expected that it doesn't support keywords yet ;-) -- ___ Python tracker ___ ___

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Brett Cannon
Brett Cannon added the comment: Benjamin just announced 2.7.13rc1 is going to be Dec 3, so this patch needs to land before then if it's going to make it in the next release. -- ___ Python tracker _

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Berker Peksag
Berker Peksag added the comment: I can commit the patch this week if there are no objections to the name of the variable. I like Brett's PY3KWARNINGS suggestion, but I'm fine with either of the suggested names. -- ___ Python tracker

[issue28824] os.environ should preserve the case of the OS keys ?

2016-11-28 Thread tzickel
New submission from tzickel: In Windows, python's os.environ currently handles the case sensitivity different that the OS. While it's true that the OS is case insensitive, it does preserve the case that you first set it as. For example: C:\Users\user>set aSD=Blah C:\Users\user>set asd aSD=Blah

[issue28823] Simplify compiling to BUILD_MAP_UNPACK

2016-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ded2433dc2c by Serhiy Storchaka in branch 'default': Issue #28823: Simplified compiling with opcode BUILD_MAP_UNPACK. https://hg.python.org/cpython/rev/9ded2433dc2c -- nosy: +python-dev ___ Python tracke

[issue28823] Simplify compiling to BUILD_MAP_UNPACK

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Yury. Simplifying the code was the main purpose. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28824] os.environ should preserve the case of the OS keys ?

2016-11-28 Thread R. David Murray
R. David Murray added the comment: That unfortunately would probably break existing code. It does seem reasonable that case should be ignored on get, though, if the OS does so. So making your 'in' statement work might be acceptable, backward compatibility wise. Probably only in 3.7, though.

[issue28824] os.environ should preserve the case of the OS keys ?

2016-11-28 Thread Steve Dower
Steve Dower added the comment: This works fine in Python 3, and also Python 2.7 *unless* you call .keys(). PS D:\> py -2.7 Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>

[issue28825] socket.SO_KEEPALIVE does not work on FreeBSD

2016-11-28 Thread Victor Porton
New submission from Victor Porton: When I connect telnet XXX 9000 to the server in attached file, the connection breaks after 5 min (and a few seconds), as if SO_KEEPALIVE were not specified. I run my server on FreeBSD 9.2-RELEASE-p15 (GENERIC) So SO_KEEPALIVE does not work in Python 2.7 and

[issue28824] os.environ should preserve the case of the OS keys ?

2016-11-28 Thread tzickel
tzickel added the comment: My issue is that somebody wants to pass a few dict like environment variables as some prefix_key=value but he wants to preserve the case of the key for usage in python so the .keys() space needs to be enumerated. A workaround for this issue can be importing nt and us

[issue28825] socket.SO_KEEPALIVE does not work on FreeBSD

2016-11-28 Thread Victor Porton
Victor Porton added the comment: Weird, after I minimized the PHP example, it also has the same bug as the Python one. (The real long code in PHP was working without this bug.) I attach the PHP code for your reference. Maybe it is a FreeBSD bug? Please write to [email protected] with advice how

[issue28824] os.environ should preserve the case of the OS keys ?

2016-11-28 Thread Eryk Sun
Eryk Sun added the comment: I've come across a few problems when passing a modified os.environ.copy() to a child process via subprocess.Popen. Ideally it shouldn't be an issue, as long as the OS or C runtime functions are used, but some troublesome programs do their own case-sensitive search f

[issue28824] os.environ should preserve the case of the OS keys ?

2016-11-28 Thread tzickel
tzickel added the comment: Steve, I've checked in Python 3.5.2, and os.environ.keys() still uppercases everything when scanning (for my use case). Has it changed since then ? -- ___ Python tracker

[issue24469] Py2.x int free list can grow without bounds

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It seems to me, that all builtin and extension types set tp_free to PyObject_Del, PyObject_GC_Del, or 0. The int class is the only exception. int_free() was introduced in 200559fcc664: > Make sure that tp_free frees the int the same way as tp_dealloc would.

[issue24469] Py2.x int free list can grow without bounds

2016-11-28 Thread Guido van Rossum
Guido van Rossum added the comment: OK, SGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue28816] Document if zipimport can respect import hooks to load custom files from zip.

2016-11-28 Thread Decorater
Changes by Decorater : -- nosy: -brett.cannon, eric.snow, ncoghlan, paul.moore, tim.golden, twouters, zach.ware ___ Python tracker ___ _

[issue28816] Document if zipimport can respect import hooks to load custom files from zip.

2016-11-28 Thread Decorater
Changes by Decorater : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue28824] os.environ should preserve the case of the OS keys ?

2016-11-28 Thread Steve Dower
Steve Dower added the comment: Ah, I see what you mean. In this case, we could change how the case-insensitivity is handled here, but it would only be applicable to 3.7. I'm not opposed to changing the default behavior here, but it does kind of bring up the mapping dict discussion again. If c

[issue28818] simplify lookdict functions

2016-11-28 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue14845] list() != []

2016-11-28 Thread Wolfgang Maier
Wolfgang Maier added the comment: Isn't the difference between generator expressions and comprehensions what's dealt with by PEP479? So it seems this issue is outdated enough to deserve being closed? -- nosy: +wolma ___ Python tracker

[issue28791] update sqlite to 3.15.2

2016-11-28 Thread Big Stone
Big Stone added the comment: too late for sqlite-0.15.2 in Python-3.6.0rc ? -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue28826] Programming with Python 3.6

2016-11-28 Thread Allen David Frankel
New submission from Allen David Frankel: On the Python Tutorial for beginners, the Python 3.6 gives me a syntax error with strings and does not respond to print and/or nothing comes up. -- components: Demos and Tools messages: 281921 nosy: ADFGUR priority: normal severity: normal status

[issue28826] Programming with Python 3.6

2016-11-28 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Maybe you can post your code snippet and the error? -- nosy: +Mariatta ___ Python tracker ___ ___ P

[issue28820] Typo in section 6 of the Python 3.4 documentation

2016-11-28 Thread Martin Panter
Martin Panter added the comment: Thanks, this looks good to me, although let’s not touch the blank line at the end of the file. -- nosy: +martin.panter stage: -> commit review versions: +Python 2.7, Python 3.5, Python 3.6, Python 3.7 -Python 3.4 ___

[issue21134] Segfault when stringifying UnicodeEncodeError (or UnicodeDecodeError) created with __new__()

2016-11-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue19159] 2to3 incorrectly converts two parameter unicode() constructor to str()

2016-11-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-11-28 Thread Eric N. Vander Weele
Changes by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue27632] build on AIX fails when builddir != srcdir, more than bad path to ld_so_aix

2016-11-28 Thread Eric N. Vander Weele
Changes by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28827] f-strings: format spec should not accept unicode escapes

2016-11-28 Thread Yury Selivanov
New submission from Yury Selivanov: Right now, Python 3.6b4 happily accepts the following: >>> f'{10:02\N{LATIN CAPITAL LETTER X}}' '0A' >>> f'{10:02X}' '0A' I think that the first line should not be accepted (as we now don't accept escaped open curly brace). At least this sho

  1   2   >