[issue31953] Dedicated place for security announcements?

2017-11-06 Thread Jean-Philippe Ouellet
Jean-Philippe Ouellet added the comment: Ah, I now see there actually *is* a security-announce list [1]! Unless one happens to already know that Python has two concurrent mailman instances hosting different lists [2][3], it's easy to miss. Thanks, and sorry for the noise! [1]: https://mail.p

[issue31954] Don't prevent dict optimization by coupling with OrderedDict

2017-11-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4254 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue31954] Don't prevent dict optimization by coupling with OrderedDict

2017-11-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently OrderedDict uses a table of nodes that mirrors the dict table. For keeping it in sync it saves the size and address of the dict table. There are two issues with this. First, this prevent some kind of dict optimization. When dict is resized (afte

[issue31945] Configurable blocksize in HTTP(S)Connection

2017-11-06 Thread Nir Soffer
Nir Soffer added the comment: When using highlevel request() api, users can control the block size by wrapping the file object with an iterator: class FileIter: def __init__(self, file, blocksize): self.file = file self.blocksize = blocksize def __i

[issue29659] Expose the `length` arg from shutil.copyfileobj for public use

2017-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please provide any benchmarks Tyler? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue31954] Don't prevent dict optimization by coupling with OrderedDict

2017-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Later I'm going to add a flag that will allow regular dicts reuse holes when delete items, while keep OrderedDict and dicts used as class namespace ordered. I'm not sure there will be a benefit, but at least this will open an option. -- ___

[issue31955] set_executables() incorrectly parse values with spaces

2017-11-06 Thread Dee Mee
New submission from Dee Mee : Function set_executable() in ccompiler.py does the following check: def set_executable(self, key, value): if isinstance(value, str): setattr(self, key, split_quoted(value)) else: setattr(self, key, value) The check "if i

[issue23670] Modifications to support iOS as a cross-compilation target

2017-11-06 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: For those interested, I've started tracking these patches on Github: https://github.com/freakboy3742/cpython The 3.4, 3.5 and 3.6 branches are tested and compile as of the time of this comment; the master branch has also been updated, in preparation for

[issue31851] test_subprocess hangs randomly on Windows with Python 3.x

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Sadly, the AMD64 Windows10 3.x buildbot worker is also sick: http://buildbot.python.org/all/#/builders/3/builds/117 1:15:30 [405/407] test_urllibnet passed -- running: test_subprocess (3338 sec) 1:15:52 [406/407] test_bytes passed -- running: test_subprocess (

[issue31956] Add start and stop parameters to the array.index()

2017-11-06 Thread Николай Спахиев
New submission from Николай Спахиев : Sequence protocol specifies 2 optional argument for index method: seq.index(value, [start, [stop]]) array.index(value) needs start and stop arguments too. -- components: Library (Lib) messages: 305629 nosy: Николай Спахиев priority: normal severity:

[issue31957] [Windows] PCbuild error: A numeric comparison was attempted

2017-11-06 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/58/builds/110 Build started 11/4/2017 7:30:21 PM. Project "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\PCbuild\pythoncore.vcxproj" on node 1 (KillPython target(s)). D:\cygwin\home\db3l\buildarea\3.x.bolen

[issue31957] [Windows] PCbuild error: A numeric comparison was attempted

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Windows8 error: D:\buildarea\3.x.bolen-windows8\build\PCbuild\python.props(76,31): error MSB4086: A numeric comparison was attempted on "$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)" that evaluates to "" inste

[issue31957] [Windows] PCbuild error: A numeric comparison was attempted

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Compilation also failed on AMD64 Windows8 3.x: http://buildbot.python.org/all/#/builders/32/builds/118 -- ___ Python tracker ___

[issue30406] async and await should be keywords in 3.7

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: > (...) don't raise any deprecation warning in 3.6. python3 requires -Wd to display DeprecationWarning: https://mail.python.org/pipermail/python-dev/2017-November/150149.html Yury Selivanov: "We had PendingDeprecationWarning for async/await names in 3.5, and

[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: """ Unrelated to the patch (same before and after), this looks odd to me: >>> import uuid >>> uuid._has_uuid_generate_time_safe is None True >>> >>> import _uuid >>> _uuid.has_uuid_generate_time_safe 1 """ None means "not initialized yet". It's initialized o

[issue31958] UUID

2017-11-06 Thread David MacIver
New submission from David MacIver : The documentation for the UUID module says the UUID.version field is "The UUID version number (1 through 5, meaningful only when the variant is RFC_4122)". However, the UUID constructor doesn't actually validate that the version lies in that range if you don

[issue31958] UUID versions are not validated to lie in the documented range

2017-11-06 Thread David MacIver
Change by David MacIver : -- title: UUID -> UUID versions are not validated to lie in the documented range ___ Python tracker ___ ___

[issue31959] Directory at `TemporaryDirectory().name` does not exist

2017-11-06 Thread Adam Dangoor
New submission from Adam Dangoor : Sample code: ``` import os from tempfile import TemporaryDirectory name = TemporaryDirectory().name print(os.path.exists(name)) # prints False td = TemporaryDirectory() name_2 = td.name print(os.path.exists(name_2)) # prints True ``` Expected behavior: `Tr

[issue31959] Directory at `TemporaryDirectory().name` does not exist

2017-11-06 Thread Adam Dangoor
Adam Dangoor added the comment: > The unexpected behavior occurs on CPython 3.5.3 and CPython 3.6.X but not on > pypy. This suggests that it is something to do with garbage collection. Upon further thought, maybe this is by design, but I still was surprised. -- _

[issue31959] Directory at `TemporaryDirectory().name` does not exist

2017-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is by design. The first TemporaryDirectory object is destroyed before the first print statement. For not be surprised use TemporaryDirectory with the "with" statement. with TemporaryDirectory() as td: name = td.name print(os.path.exists(name))

[issue31959] Directory at `TemporaryDirectory().name` does not exist

2017-11-06 Thread Martin Panter
Martin Panter added the comment: The documentation says “On . . . destruction of the temporary directory object the newly created temporary directory and all its contents are removed”. If you had enabled warnings, you may have seen a hint: $ python -Wdefault -c 'import tempfile; print(tempfi

[issue31959] Directory at `TemporaryDirectory().name` does not exist

2017-11-06 Thread Martin Panter
Change by Martin Panter : -- nosy: +serhiy.storchaka resolution: wont fix -> not a bug stage: -> resolved ___ Python tracker ___ ___

[issue13777] socket: communicating with Mac OS X KEXT controls

2017-11-06 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4255 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue25942] Add a new optional cleanup_timeout parameter to subprocess.call()

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: I changed the issue title to "Add a new optional cleanup_timeout parameter to subprocess.call()" to make it more positive and update it to the currently proposed change ;-) -- title: subprocess.call SIGKILLs too liberally -> Add a new optional cleanu

[issue31955] set_executables() incorrectly parse values with spaces

2017-11-06 Thread Dee Mee
Change by Dee Mee : -- keywords: +patch pull_requests: +4256 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue29710] Incorrect representation caveat on bitwise operation docs

2017-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: > “Bitwise operations have the same result as calculations using two’s > complement with a bit-width large enough to avoid overflows.” That sounds fine to me, but then, the original wording sounds fine to me now that I know how to read it. :-) The main issue

[issue30699] Misleading class names in datetime.tzinfo usage examples

2017-11-06 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2017-11-06 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.7 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31956] Add start and stop parameters to the array.index()

2017-11-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31959] Directory at `TemporaryDirectory().name` does not exist

2017-11-06 Thread Adam Dangoor
Adam Dangoor added the comment: Thank you for clearing this up for me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue31955] distutils C compiler: set_executables() incorrectly parse values with spaces

2017-11-06 Thread STINNER Victor
Change by STINNER Victor : -- title: set_executables() incorrectly parse values with spaces -> distutils C compiler: set_executables() incorrectly parse values with spaces ___ Python tracker _

[issue31955] distutils C compiler: set_executables() incorrectly parse values with spaces

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: > The check "if isinstance(value, str)" is incorrect, because type of value can > be unicode, while it should be splitted as well. Your pull request is for Python 3, but the type of paths is expected to be str on Python 3, no? For Python 2, you can use isins

[issue31958] UUID versions are not validated to lie in the documented range

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: What do you propose? Raise an exception in the constructor if the version is not in the range 1..5? Or just modify the variant value? -- nosy: +haypo ___ Python tracker

[issue31951] import curses is broken on windows

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: The curses module is not supported on Windows. -- nosy: +haypo ___ Python tracker ___ ___ Python-b

[issue31951] import curses is broken on windows

2017-11-06 Thread Paul Moore
Paul Moore added the comment: The docs for the curses module say "While curses is most widely used in the Unix environment, versions are available for Windows, DOS, and possibly other systems as well." This is the only mention of platform support I can see. It might be worth making the platfo

[issue31939] Support return annotation in signature for Argument Clinic

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: I'm sorry, I'm confused between docstrings and annotations. My first goal is to not loose the return type from the docstring when the select module is converted to Argument Clinic, at least for the simplest return types. Complex return types can be documented

[issue31956] Add start and stop parameters to the array.index()

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Николай Спахиев: Are you only asking for the feature, or are you interested to work on a concrete patch? -- nosy: +haypo ___ Python tracker _

[issue28140] Attempt to give better errors for pip commands typed into the REPL

2017-11-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31948] [EASY] Broken MSDN links in msilib docs

2017-11-06 Thread STINNER Victor
Change by STINNER Victor : -- title: Broken MSDN links in msilib docs -> [EASY] Broken MSDN links in msilib docs ___ Python tracker ___

[issue31942] Document that support of start and stop parameters in the Sequence's index() is optional

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-31956: "Add start and stop parameters to the array.index()". -- nosy: +haypo ___ Python tracker ___ _

[issue31949] Bugs in PyTraceBack_Print()

2017-11-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4257 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Neil pushed the commit 0a1ff24acfc15d8c7f2dc41000a6f3d9a31e7480. What is the status of this issue? Can we now close it? -- ___ Python tracker ___

[issue28340] [py2] TextIOWrapper.tell extremely slow

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Berker Peksag, Antoine Pitrou (who implemented the discussed change) and me are opposed to backporting this optimization, so I close the issue as WONTFIX. The only known workaround is to upgrade to Python 3, sorry! Benjamin: Please speakup if you want this op

[issue31951] import curses is broken on windows

2017-11-06 Thread Zachary Ware
Zachary Ware added the comment: Curses is available for Windows from Christopher Gohlke's site: https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses We should clean up this situation, though, either by making the state of Windows curses support explicit in the docs or by actually adding support

[issue31935] subprocess.run() timeout not working with grandchildren and stdout=PIPE

2017-11-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue31934] Failure to build out of source from a not clean source

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: Xavier proposed PR 4255 fix :-) -- nosy: +haypo ___ Python tracker ___ ___ Python

[issue31951] import curses is broken on windows

2017-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are two open issues for adding support of the curses module on Windows: issue1005895 and issue2889. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue31904] Python should support VxWorks RTOS

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: To support a new platform, you need a developer who can support this platform next years, a working buildbot, etc. You can start a discussion on python-dev to get a first feedback. Without a strong support, this issue should be fixed a REJECTED and a patch s

[issue31939] Support return annotation in signature for Argument Clinic

2017-11-06 Thread Tal Einat
Tal Einat added the comment: My apologies, I seem to have been the source of the confusion. I misunderstood your original meaning. -- ___ Python tracker ___ __

[issue31939] Support return annotation in signature for Argument Clinic

2017-11-06 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue31925] [NetBSD] test_socket creates too many locks

2017-11-06 Thread STINNER Victor
Change by STINNER Victor : -- title: test_socket creates too many locks -> [NetBSD] test_socket creates too many locks ___ Python tracker ___ __

[issue31943] Add asyncio.Handle.cancelled() method

2017-11-06 Thread Marat Sharafutdinov
Change by Marat Sharafutdinov : -- title: Add asyncio.Handle.cancelled() and asyncio.TimerHandle.when -> Add asyncio.Handle.cancelled() method ___ Python tracker ___ __

[issue31925] [NetBSD] test_socket creates too many locks

2017-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: test_socket creates many locks on all platforms. -- ___ Python tracker ___ ___ Python-bugs-list

[issue30952] include Math extension in SQlite

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: > I would be interested in having SQLite shipped with the math extension Python uses the SQLite library installed on the system, at least on Linux. To load an extension, I found: https://sqlite.org/loadext.html https://sqlite.org/c3ref/load_extension.html How

[issue28643] Broken makefile depends for profile-opt target

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Oh, I had this bug and I'm quite sure that I reported it, but I cannot find it anymore :-) -- nosy: +haypo ___ Python tracker ___ ___

[issue31960] Protection against using a Future with another loop only works with await

2017-11-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : If you await a Future with another loop than a loop at instance creation (this is trivial to do accidentally when using threads), asyncio raises a RuntimeError. But if you use another part of the Future API, such as add_done_callback(), the situation isn't

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2017-11-06 Thread Roy Williams
New submission from Roy Williams : Repro: ```python from pathlib import Path import subprocess subprocess.run([Path('/bin/ls')]) # Works Fine subprocess.run(Path('/bin/ls')) # Fails ``` The problem seems to originate from here: https://github.com/python/cpython/blob/master/Lib/subprocess.py#

[issue28643] Broken makefile depends for profile-opt target

2017-11-06 Thread Neil Schemenauer
Neil Schemenauer added the comment: The previous behavior nearly drove me to drink. At least on my machine (and I have a relatively fast one), the profile-opt build takes a long time. After running "make" and checking things over, running "make install" will cause the whole process (make cl

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-11-06 Thread Neil Schemenauer
Neil Schemenauer added the comment: Yes, my bad. I thought that accepting the pull would close the bug. -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker _

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2017-11-06 Thread Sanyam Khurana
Sanyam Khurana added the comment: Hey, seems like this bug is not updated for a while. Can I work on this? -- nosy: +CuriousLearner ___ Python tracker ___ _

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2017-11-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sanyam, you definitely can. Step #1 would probably be to port the patch to git master and turn it into a GitHub PR. -- ___ Python tracker __

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2017-11-06 Thread Sanyam Khurana
Sanyam Khurana added the comment: Thanks for the heads up! I'll do that ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2017-11-06 Thread Roy Williams
Roy Williams added the comment: Ignore my comment re: pathlib, it looks like PathLike is defined in `os` and not `pathlib`. -- ___ Python tracker ___ _

[issue31681] pkgutil.get_data() leaks open files in Python 2.7

2017-11-06 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: -4016 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31028] test_pydoc fails when run directly

2017-11-06 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +4258 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28907] test_pydoc fails if build is in sub-directory

2017-11-06 Thread Neil Schemenauer
Neil Schemenauer added the comment: Pretty sure the fix for bug 31028 also fixed this. Closing. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> test_pydoc fails when run directly ___ Python tracker

[issue31957] [Windows] PCbuild error: A numeric comparison was attempted

2017-11-06 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower stage: -> needs patch type: -> compile error versions: +Python 3.6 ___ Python tracker ___

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2017-11-06 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +4259 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2017-11-06 Thread Sanyam Khurana
Sanyam Khurana added the comment: Hey ncoghlan, Does this issue makes sense to be worked on for Python 3.7? -- nosy: +CuriousLearner ___ Python tracker ___ ___

[issue28708] Low FD_SETSIZE limit on Windows

2017-11-06 Thread desbma
desbma added the comment: I just want to say that I strongly support either bumping the value of FD_SETSIZE to something a lot higher than 512, or making it configurable from Python code. I am the author of a program that makes heavy use of asyncio. Some Windows users have reported errors wh

[issue27169] __debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks

2017-11-06 Thread Neil Schemenauer
Change by Neil Schemenauer : -- nosy: +nascheme ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue24340] co_stacksize estimate can be highly off

2017-11-06 Thread Neil Schemenauer
Change by Neil Schemenauer : -- nosy: +nascheme ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-11-06 Thread Neil Schemenauer
Change by Neil Schemenauer : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/py

[issue31957] [Windows] PCbuild error: A numeric comparison was attempted

2017-11-06 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +4260 stage: needs patch -> patch review ___ Python tracker ___ ___ Python

[issue31843] sqlite3.connect() should accept PathLike objects

2017-11-06 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4261 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue31843] sqlite3.connect() should accept PathLike objects

2017-11-06 Thread Anders Lorentsen
Anders Lorentsen added the comment: Had my first go at a python patch. Added a test case for it, and all tests passing when I test with `./python -bb -E -Wd -m test -v test.test_sqlite -r -w -uall -R 3:2` -- nosy: +Phaqui ___ Python tracker

[issue31957] [Windows] PCbuild error: A numeric comparison was attempted

2017-11-06 Thread Steve Dower
Steve Dower added the comment: New changeset 30f4fa456ef626ad7a92759f492ec7a268f7af4e by Steve Dower in branch 'master': bpo-31957: Fixes version detection. (#4298) https://github.com/python/cpython/commit/30f4fa456ef626ad7a92759f492ec7a268f7af4e -- _

[issue31957] [Windows] PCbuild error: A numeric comparison was attempted

2017-11-06 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4263 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31962] test_importlib double free or corruption

2017-11-06 Thread Thomas Knox
New submission from Thomas Knox : On a Raspberry Pi 3 running Linux pi3 4.9.58-v7+ #1046 SMP Tue Oct 24 17:07:15 BST 2017 armv7l GNU/Linux C(PP)FLAGS="-O6 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize" Built with ./configure --enable-loadabl

[issue31962] test_importlib double free or corruption

2017-11-06 Thread Thomas Knox
Change by Thomas Knox : -- components: +Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue24340] co_stacksize estimate can be highly off

2017-11-06 Thread Neil Schemenauer
Neil Schemenauer added the comment: The WIP pull request PR# 2827 seems to help. The following code prints 86 on python3.6 and 25 with PR 2827 applied. def g(): try: pass except ImportError as e: pass try: pass except ImportError as e: pass try: pass except ImportError

[issue31945] Configurable blocksize in HTTP(S)Connection

2017-11-06 Thread STINNER Victor
Change by STINNER Victor : -- type: -> enhancement versions: -Python 2.7, Python 3.6, Python 3.8 ___ Python tracker ___ ___ Python-

[issue31945] Configurable blocksize in HTTP(S)Connection

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset ad455cd9243319b896c86074ffeb3bf78a82f4ec by Victor Stinner (Nir Soffer) in branch 'master': bpo-31945: Configurable blocksize in HTTP(S)Connection (#4279) https://github.com/python/cpython/commit/ad455cd9243319b896c86074ffeb3bf78a82f4ec ---

[issue31945] Configurable blocksize in HTTP(S)Connection

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Thank you Nir Soffer for this nice enhancement. Sadly, since it's a new feature, it cannot be backport to Python 3.6 nor 2.7, since it's a new feature. -- ___ Python tracker ___

[issue31945] Configurable blocksize in HTTP(S)Connection

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: The commit message contains much more information than the NEWS and What's New entries. Maybe the What's New entry can be completed, I don't know. In the meanwhile, I close the issue :-) Nir: Feel free to create a new PR if you want to complete the What's New

[issue30952] include Math extension in SQlite

2017-11-06 Thread Big Stone
Big Stone added the comment: Hi Victor, I would like to use math functions, specifically "exp(sum(log(x)))", on the Sqlite motor shipped embedded with Python on Windows. It's an important corner case of what I miss in Sqlite motor, that forced me to (wait to) rely on SQLServer (or other big

[issue31963] AMD64 Debian PGO 3.x buildbot: compilation failed with an internal compiler error in create_edge

2017-11-06 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/47/builds/127 (...) gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -

[issue30952] [Windows] include Math extension in SQlite

2017-11-06 Thread STINNER Victor
Change by STINNER Victor : -- title: include Math extension in SQlite -> [Windows] include Math extension in SQlite ___ Python tracker ___ _

[issue31960] Protection against using a Future with another loop only works with await

2017-11-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure what the desired semantics for Futures and multiple loops is. On the one hand, there is little point in having two event loops in the same thread at once (except for testing purposes). On the other hand, the Future implementation is entirely no

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-11-06 Thread Neil Schemenauer
Neil Schemenauer added the comment: The attached pyperformance report compares cpython:master to nascheme:unwind_stack. If I've done the tests correctly, the unwind_stack version is slightly faster. -- Added file: https://bugs.python.org/file47253/perf_unwind_stack.txt _

[issue31957] [Windows] PCbuild error: A numeric comparison was attempted

2017-11-06 Thread Steve Dower
Steve Dower added the comment: New changeset a6ffec2e88437ed4fecb10cb359cf2fb64781e9a by Steve Dower (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31957: Fixes version detection. (GH-4298) (#4300) https://github.com/python/cpython/commit/a6ffec2e88437ed4fecb10cb359cf2fb64781e9a -

[issue28791] update sqlite to latest version before beta 1

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: Oh wow, I didn't even know that Python included a copy of SQLite for Windows and macOS installers! I added it to my list of "embedded libraries" :-) http://haypo-notes.readthedocs.io/cpython.html#embedded-libraries -- nosy: +haypo

[issue31963] AMD64 Debian PGO 3.x buildbot: compilation failed with an internal compiler error in create_edge

2017-11-06 Thread Neil Schemenauer
Neil Schemenauer added the comment: Hi Victor, My first guess is that the build bot is not cleaning the fprofile information after updating the source tree. A few options: - remove the profile-run-stamp file after checking out new code - call "make profile-removal" after checkout of new code

[issue30952] [Windows] include Math extension in SQlite

2017-11-06 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: A possible workaround is to use create_function(): >>> import sqlite3, math >>> db = sqlite3.connect(":memory:") >>> db.execute("select sin(?);", (math.pi,)).fetchone() Traceback (most recent call last): File "", line 1, in sqlite3.Operational

[issue31940] copystat on symlinks fails for alpine -- faulty lchmod implementation?

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: I would prefer to catch os.lchmod() exception and reminds that lchmod() doesn't work. Search for _O_TMPFILE_WORKS in Lib/tempfile.py for a Python example of code trying to use a function, or falls back on something else. (I gave other examples for C code in a

[issue31904] Python should support VxWorks RTOS

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: FYI I already started a thread on python-dev: [Python-Dev] Partial support of a platform https://mail.python.org/pipermail/python-dev/2017-November/150238.html -- ___ Python tracker

[issue31884] [Windows] subprocess set priority on windows

2017-11-06 Thread STINNER Victor
New submission from STINNER Victor : Please describe the issue. -- nosy: +haypo title: subprocess set priority on windows -> [Windows] subprocess set priority on windows versions: -Python 3.8 ___ Python tracker

[issue31770] crash and refleaks when calling sqlite3.Cursor.__init__() more than once

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset e56ab746a965277ffcc4396d8a0902b6e072d049 by Victor Stinner (Oren Milman) in branch 'master': bpo-31770: Prevent a crash and refleaks when calling sqlite3.Cursor.__init__() more than once (#3968) https://github.com/python/cpython/commit/e56ab746a

[issue31770] crash and refleaks when calling sqlite3.Cursor.__init__() more than once

2017-11-06 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4264 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31770] crash and refleaks when calling sqlite3.Cursor.__init__() more than once

2017-11-06 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4265 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

  1   2   >