[issue32561] Add API to io objects for non-blocking reads/writes

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Ideally we would be able to do buffer-only reads through all the of the > different read methods (read, readline, readinto, ...), Hmm... We already have non-blocking support in BufferedIOReader, except it *doesn't work*. The problem is, the semantics manda

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

2018-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What should be done for PR 5006? Changes of this PR have been minimized for easier review. But many interesting things can made after merging it. For example simplify 'with'-related opcodes. Or implement static blocks (this will make the 'try' statement zer

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

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently PR 5006 has a conflict. Otherwise, is it ready for review? -- ___ Python tracker ___ __

[issue32564] Syntax error on using variable async

2018-01-16 Thread Andrew Olefira
New submission from Andrew Olefira : In python 3.6 you can use name "async" for variable: >>> class A: ... async = True ... >>> but in python 3.7a4 you catch syntax error: >>> class A: ... async = True File "", line 2 async = True ^ SyntaxError: invalid syntax >>>

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

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Simplifying "with"-related opcodes (and perhaps "finally" ones) sounds nice. "try" blocks are already zero-overhead for practical purposes (i.e. I don't think I've met any workload where moving a "try" around did improve performance significantly). -

[issue32564] Syntax error on using variable async

2018-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See https://docs.python.org/3.7/whatsnew/3.5.html#new-keywords. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue32561] Add API to io objects for non-blocking reads/writes

2018-01-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: Hmm, why did I use "unbuffered" as my term above? That's a very odd name. It's like, exactly the opposite of what we actually want. Clearly I did not think this through properly. Please pretend I said "buffer-only" instead, thanks. > So my opinion here is th

[issue32561] Add API to io objects for non-blocking reads/writes

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > And all the async file IO APIs I know [1][2][3] have the public API of "just > like regular files, but the blocking methods are async". 99% of the time, > that means TextWrapper and BufferedStream. So I just don't see any way to get > the advantages of this

[issue32544] Speed up hasattr(o, name) and getattr(o, name, default)

2018-01-16 Thread INADA Naoki
INADA Naoki added the comment: I run pyperformance. It seems django_template is significant faster. # Without PGO+LTO ./python -m perf compare_to -G --min-speed=2 default.json patched.json Slower (6): - scimark_monte_carlo: 217 ms +- 9 ms -> 237 ms +- 10 ms: 1.09x slower (+9%) - scimark_lu: 32

[issue32559] logging - public function to get level from name

2018-01-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: The use case of setting the level by name was already fulfilled in Python 3.2. The logging.setLevel() function takes either an int or a string. -- assignee: -> vinay.sajip nosy: +rhettinger, vinay.sajip priority: normal -> low versions: -Python

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Bob Kline
Bob Kline added the comment: Would it be inappropriate for this fix to be applied to 2.7? -- nosy: +bkline ___ Python tracker ___ __

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's not really a fix, it's an improvement, and as such doesn't belong in 2.7. Using malloc() and free() is not a bug in itself. -- ___ Python tracker _

[issue32564] Syntax error on using variable async

2018-01-16 Thread Andrew Olefira
Andrew Olefira added the comment: Yes, I understand, but "not recommended" != "not allowed". For example library Pika (https://pypi.python.org/pypi/pika) use variable "async", so no one project that use lib Pika can't be launched on Python 3.7a4 --

[issue32564] Syntax error on using variable async

2018-01-16 Thread Andrew Olefira
Change by Andrew Olefira : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Bob Kline
Bob Kline added the comment: Sorry, I should have used the language of the patch author ("the resolution"). Without the resolution, Python 2.7 eventually runs out of memory and crashes for some correctly written user code. -- ___ Python tracker

[issue32534] Speed-up list.insert

2018-01-16 Thread Jeethu Rao
Jeethu Rao added the comment: Built and benchmarked both the baseline and the patch without PGO; the differences are less pronounced, but still present. https://gist.github.com/jeethu/abd404e39c6dfcbabb4c01661b9238d1 -- ___ Python tracker

[issue32553] venv says to use python3 which does not exist in 3.6.4

2018-01-16 Thread Paul Moore
Paul Moore added the comment: Agreed, the docs don't need to mention PATHEXT. I don't have a machine to hand with Python 3.6 not installed, to check, but I believe the launcher is installed by default (although as you say it can be deselected - and it's definitely described as "recommended")

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, memory fragmentation can happen with any allocation scheme, and it's possible even Python 3 isn't immune to this. Backporting performance improvements is a strain on our resources and also constitutes a maintenance threat (what if the bug hides in the

[issue32534] Speed-up list.insert

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks. That's really surprising. I'll give it a try myself. -- ___ Python tracker ___ ___ Pytho

[issue32564] Syntax error on using variable async

2018-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It raised a DeprecationWarning since 3.5. Most projects got rid of "async" and "await" identifiers before 3.7. File a bug in the Pika library. -- ___ Python tracker __

[issue32565] Document the version of adding opcodes

2018-01-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The version of adding a new opcode is not specified for some opcodes. The proposed PR adds missed 'versionadded' directives (as usually, only when added after 3.0). -- assignee: docs@python components: Documentation messages: 310061 nosy: docs@pyt

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2018-01-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset b44c5169f64178d2ff2914187b315549e7ab0cb6 by Raymond Hettinger in branch 'master': bpo-26163: Frozenset hash improvement (#5194) https://github.com/python/cpython/commit/b44c5169f64178d2ff2914187b315549e7ab0cb6 -- ___

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2018-01-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +5052 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue32534] Speed-up list.insert

2018-01-16 Thread STINNER Victor
STINNER Victor added the comment: > jeethu@dev:cpython (3.7_list_insert_memmove)$ ./python -m timeit -s "l = []" > "for _ in range(100): l.insert(0, None)" Please don't use timeit, but perf timeit to run such *microbenchmark* (time smaller than 1 ms). Your benchmark measures also the perfor

[issue32566] Not able to open Python IDLE

2018-01-16 Thread Kiran
New submission from Kiran : Hello, I am new to Python and installed python3 recently and when I try to open IDLE, Iam getting the error attached. Please let me know how to resolve it. Thanks. -- components: Windows files: Python.jpg messages: 310062 nosy: Kiran, paul.moore, steve.dow

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2018-01-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32565] Document the version of adding opcodes

2018-01-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5053 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Bob Kline
Bob Kline added the comment: Thanks for your responses to my comments. I'm working as hard as I can to get my customer's systems migrated into the Python 3 world, and I appreciate the efforts of the community to provide incentives (such as the resolution for this failure) for developers to up

[issue32534] Speed-up list.insert: use memmove()

2018-01-16 Thread STINNER Victor
Change by STINNER Victor : -- title: Speed-up list.insert -> Speed-up list.insert: use memmove() ___ Python tracker ___ ___ Python-bu

[issue32563] -Werror=declaration-after-statement expat build failure on Python 3.5

2018-01-16 Thread STINNER Victor
STINNER Victor added the comment: Hum, I backported a fix to 3.4 but I forgot Python 3.5. My fix for Python 3.4 is made of multiple bugfixes: 8b11e8de7aedacfbbcc8c780f3c4097396f1d1a3 For Python 3.5, you want at least this change I think: https://github.com/libexpat/libexpat/commit/e0b290eb3d

[issue32561] Add API to io objects for non-blocking reads/writes

2018-01-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: That's a reasonable concern. Do you think we can deprecate the existing broken non-blocking mode? -- ___ Python tracker ___

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread INADA Naoki
INADA Naoki added the comment: FYI, jemalloc can reduce memory usage, especially when application is multithreaded. https://www.speedshop.co/2017/12/04/malloc-doubles-ruby-memory.html https://zapier.com/engineering/celery-python-jemalloc/ -- nosy: +inada.naoki

[issue32561] Add API to io objects for non-blocking reads/writes

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Do you think we can deprecate the existing broken non-blocking mode? I would suggest asking on python-dev. I wouldn't mind it, but perhaps there are people using it. -- ___ Python tracker

[issue29708] support reproducible Python builds

2018-01-16 Thread Bernhard M. Wiedemann
Change by Bernhard M. Wiedemann : -- keywords: +patch pull_requests: +5054 stage: -> patch review ___ Python tracker ___ ___ Python-

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2018-01-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e7dbd0658304f11daf103d56662656efecad006d by Raymond Hettinger (Miss Islington (bot)) in branch '3.6': bpo-26163: Frozenset hash improvement (GH-5194) (#5198) https://github.com/python/cpython/commit/e7dbd0658304f11daf103d56662656efecad006d -

[issue32567] Venv’s config file (pyvenv.cfg) should be compatible with ConfigParser

2018-01-16 Thread Tzu-ping Chung
New submission from Tzu-ping Chung : I’m not sure if it is intended, but it seems wrong to me that pyvenv.cfg is using a format that ConfigParser does not recognise. ConfigParser requires all values be placed under a section, but pyvenv.cfg does not do that. Maybe related: * ConfigParser’s fo

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-01-16 Thread Tal Einat
New submission from Tal Einat : In 2fb9ae9dfc5a6830d902332ba93b13387e292ddb, select.epoll() was changed to reject sizehint=-1, despite that still being documented as the default value. Would it be possible to reverse this change, making -1 a special value signaling select.epoll() to use sizehi

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-01-16 Thread Tal Einat
Tal Einat added the comment: Also see discussion in GitHub PR 4265 for #31938. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue32563] -Werror=declaration-after-statement expat build failure on Python 3.5

2018-01-16 Thread Nick Coghlan
Change by Nick Coghlan : -- keywords: +patch pull_requests: +5055 stage: needs patch -> patch review ___ Python tracker ___ ___ Pytho

[issue32563] -Werror=declaration-after-statement expat build failure on Python 3.5

2018-01-16 Thread Nick Coghlan
Nick Coghlan added the comment: I couldn't persuade git to pull the upstream patch in directly, so I just made the same change downstream: https://github.com/python/cpython/pull/5201 -- ___ Python tracker __

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-01-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Extension Modules stage: -> needs patch type: -> behavior versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also sizehint=0 was rejected before 2fb9ae9dfc5a6830d902332ba93b13387e292ddb. Now it is accepted. -- ___ Python tracker ___ ___

[issue32516] Add a shared library mechanism for win32

2018-01-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: Putting .dll's next to their .pyd's isn't a general solution, because sometimes you want to be able to use the same .dll's from .pyd's that are in different directories. For example, scipy.spatial.qhull, scipy.optimize._lbfsgb, and scipy.linalg._flinalg are

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread David Carlier
New submission from David Carlier : Might brings a bit of "controversy" but some oses have already unoptimizable memset like functions from their libc was thinking to just use them instead. -- ___ Python tracker

[issue32516] Add a shared library mechanism for win32

2018-01-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Probably better overall to go with a conda package which puts the DLLs in a central location and manages the dependencies. You can then load the DLL in the package before loading the PYD and you're all set. Whether in an __init__.py or elsewhere is really u

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread David Carlier
Change by David Carlier : -- components: Library (Lib) nosy: David Carlier priority: normal pull_requests: 5056 severity: normal status: open title: Blake2 module, memory clearance update type: enhancement versions: Python 3.8 ___ Python tracker

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread David Carlier
David Carlier added the comment: Since the PR had been closed. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your contribution. Any optimization must land in upstream first, https://github.com/BLAKE2/libb2. See https://bugs.python.org/issue17405 for more discussion on the topic. -- nosy: +christian.heimes ___

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread Christian Heimes
Christian Heimes added the comment: In general your patch is a good idea. It should land in upstream, so everybody benefits from it. I also want to keep the maintenance burden as small as possible. -- ___ Python tracker

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread David Carlier
David Carlier added the comment: No worries If I saw first it was an extra project I would not have try to submit in Cpython. Apologies. I ll see what I can do in blake2 side :-) -- ___ Python tracker __

[issue32544] Speed up hasattr(o, name) and getattr(o, name, default)

2018-01-16 Thread INADA Naoki
INADA Naoki added the comment: New changeset 378edee0a3b913d60653dc17dfe61d83405a8135 by INADA Naoki in branch 'master': bpo-32544: Speed up hasattr() and getattr() (GH-5173) https://github.com/python/cpython/commit/378edee0a3b913d60653dc17dfe61d83405a8135 -- ___

[issue32544] Speed up hasattr(o, name) and getattr(o, name, default)

2018-01-16 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue32516] Add a shared library mechanism for win32

2018-01-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: Conda is cool but we're not currently planning to abandon wheels. -- ___ Python tracker ___ ___ P

[issue32544] Speed up hasattr(o, name) and getattr(o, name, default)

2018-01-16 Thread INADA Naoki
INADA Naoki added the comment: I confirmed django_template is `hasattr`-heavy benchmark. Functionwas called by... ncalls tottime cumtime {built-in method builtins.hasattr} <- 10.0000.000 /home/inada-n/local/p

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Bob Kline
Bob Kline added the comment: > ... jemalloc can reduce memory usage ... Thanks for the tip. I downloaded the source and successfully built the DLL, then went looking for a way to get it loaded. Unfortunately, DLL injection, which is needed to use this allocator in Python, seems to be much bet

[issue32561] Add API to io objects for non-blocking reads/writes

2018-01-16 Thread YoSTEALTH
YoSTEALTH added the comment: There will be lot of confusion using "buffered" & "unbuffered" terminology, since python already has BufferedIOBase (as mentioned by Martin). It would be more appropriate to create io.CachedIOBase and add non-blocking argument to open(blocking=False) to enable thi

[issue32503] Avoid creating small frames in pickle protocol 4

2018-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In the current form the change is trivial, just an additional check. Actually it fixes a regression introduced in issue31993. Currently even empty frames can be produced (when fast=True). -- ___ Python tracker <

[issue11416] netrc module does not handle multiple entries for a single host

2018-01-16 Thread Yuri Bochkarev
Change by Yuri Bochkarev : -- nosy: +Yuri.Bochkarev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31368] Support asynchronous, non-blocking buffered reads (RWF_NONBLOCK)

2018-01-16 Thread YoSTEALTH
YoSTEALTH added the comment: According to this nginx test https://www.nginx.com/blog/thread-pools-boost-performance-9x/ there is a huge boost in performance when using thread poll for File IO. It is postulated that when preadv2() & RWF_NONBLOCK feature are available it would further benefit

[issue32544] Speed up hasattr(o, name) and getattr(o, name, default)

2018-01-16 Thread STINNER Victor
STINNER Victor added the comment: Cool. I always wanted to implement something similar. Nice work Naoki! -- nosy: +vstinner ___ Python tracker ___ _

[issue29240] PEP 540: Add a new UTF-8 mode

2018-01-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +5057 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29240] PEP 540: Add a new UTF-8 mode

2018-01-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset c495e799ed376af91ae2ddf6c4bcc592490fe294 by Victor Stinner in branch 'master': Skip test_readline.test_nonascii() on C locale (#5203) https://github.com/python/cpython/commit/c495e799ed376af91ae2ddf6c4bcc592490fe294 --

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2018-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4d9aec022063dcfc4cf40ae46b1c4a968297e664 by Serhiy Storchaka in branch 'master': bpo-31572: Get rid of PyObject_HasAttr() and _PyObject_HasAttrId() in the _io module. (#3726) https://github.com/python/cpython/commit/4d9aec022063dcfc4cf40ae46b1

[issue29240] PEP 540: Add a new UTF-8 mode

2018-01-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +5058 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue32559] logging - public function to get level from name

2018-01-16 Thread Varun Agrawal
Varun Agrawal added the comment: The request is not to set the level but to get the level given the level name aka textual representation. For example, passing in INFO should return 20 and passing in CRITICAL should return 50. -- ___ Python tracker

[issue32536] ast and tokenize disagree about line number

2018-01-16 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue32534] Speed-up list.insert: use memmove()

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I ran the benchmarks here (Ubuntu 16.04, Core i5-2500K, PGO and LTO disabled) and I don't get any consistent speedup, which is more in line with what I was expecting: https://gist.github.com/pitrou/29eb7592fa1eae2be390f3bfa3db0a3a --

[issue32570] Python crash 0xc00000fd Windows10 x64 - "fail without words"

2018-01-16 Thread Василь Коломієць
New submission from Василь Коломієць : The code https://ideone.com/ctx92s works for 1 000 000. But on my PC it works only for 1024. Wen i am trting give him 1 000 000 - the Python crashes without any words: https://i.stack.imgur.com/1do06.png and in windows we can found this crash report: https

[issue32559] logging - public function to get level from name

2018-01-16 Thread Zachary Ware
Zachary Ware added the comment: You could use `getattr(logging, levelname)` for that purpose. -- nosy: +zach.ware ___ Python tracker ___ ___

[issue29240] PEP 540: Add a new UTF-8 mode

2018-01-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset c2740e8a263e76427a8102a89f4b491a3089b2a1 by Victor Stinner (Miss Islington (bot)) in branch '3.6': Skip test_readline.test_nonascii() on C locale (GH-5203) (#5204) https://github.com/python/cpython/commit/c2740e8a263e76427a8102a89f4b491a3089b2a1

[issue32410] Implement loop.sock_sendfile method

2018-01-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 6b5a27975a415108a5eac12ee302bf2b3233f4d4 by Andrew Svetlov in branch 'master': bpo-32410: Implement loop.sock_sendfile() (#4976) https://github.com/python/cpython/commit/6b5a27975a415108a5eac12ee302bf2b3233f4d4 -- _

[issue32403] date, time and datetime alternate constructors should take fast construction path

2018-01-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 9f1b7b93f5f0ef589e7b272e127cacf4ce5d23f1 by Alexander Belopolsky (Paul Ganssle) in branch 'master': bpo-32403: Faster date and datetime constructors (#4993) https://github.com/python/cpython/commit/9f1b7b93f5f0ef589e7b272e127cacf4ce5d23f1

[issue32404] fromtimestamp does not call __new__ in datetime subclasses

2018-01-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 9f1b7b93f5f0ef589e7b272e127cacf4ce5d23f1 by Alexander Belopolsky (Paul Ganssle) in branch 'master': bpo-32403: Faster date and datetime constructors (#4993) https://github.com/python/cpython/commit/9f1b7b93f5f0ef589e7b272e127cacf4ce5d23f1

[issue32403] date, time and datetime alternate constructors should take fast construction path

2018-01-16 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-lis

[issue32571] Speed up and clean up getting optional attributes in C code

2018-01-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In issue32544 there was introduced a new private C API function _PyObject_GetAttrWithoutError() which never raises an AttributeError, but returns NULL without error set if an attribute is absent. This allowed to speed up Python builtins hasattr() and geta

[issue32571] Speed up and clean up getting optional attributes in C code

2018-01-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5059 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue32572] Add the ftplib option, overrides the IP address.

2018-01-16 Thread Hideyuki
New submission from Hideyuki : Add the ftplib's option, overrides the IP address to be used with the PORT command. Currently, the PORT command is sending its self IP address. If the host is connected with NAT, it will not work. If that command has a NAT external IP address, it is working. So add

[issue11191] test_search_cpp error on AIX (with xlc)

2018-01-16 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +5060 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32572] Add the ftplib option, overrides the IP address.

2018-01-16 Thread Hideyuki
Change by Hideyuki : -- keywords: +patch pull_requests: +5061 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue32551] Zipfile & directory execution in 3.5.4 adds the current directory to sys.path

2018-01-16 Thread Eryk Sun
Eryk Sun added the comment: On Windows it's the directory that contains the zip file or directory with __main__.py, not the current directory. This seems normal to me. The directory or zip file is effectively executing as a script. I can understand wanting more isolated behavior in this case,

[issue32559] logging - public function to get level from name

2018-01-16 Thread Varun Agrawal
Varun Agrawal added the comment: @zach.ware: True, but since we already have a getLevelName method, having a symmetric method to do the opposite made sense. Plus the method can perform error checking and other things to ensure much cleaner code. -- ___

[issue32573] sys.argv documentation should include caveat for embedded environments

2018-01-16 Thread Pedro
New submission from Pedro : Embedded Python interpreters, such as Boost.Python, do not have sys.argv available. (sys itself works fine.) This causes the interpreter to crash with the following exception when you try to access argv: AttributeError: 'module' object has no attribute 'argv' I

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2018-01-16 Thread Jay Crotts
Jay Crotts added the comment: Submitted a PR for this issue, awaiting review. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32574] asyncio.Queue, put() leaks memory if the queue is full

2018-01-16 Thread José Melero Fernández
New submission from José Melero Fernández : Repro: asyncio queue with limited size and the queue full, call asyncio.wait_for(some_queue.put(1), some_timeout). Every canceled put produces a new item in queue._putters that is never deleted (memory leak). Uploaded to the issue a file with an exa

[issue32573] sys.argv documentation should include caveat for embedded environments

2018-01-16 Thread R. David Murray
R. David Murray added the comment: A better question might be: is there something in the embedding framework that should initialize argv to the empty list? embedding framework here could have two meanings: either the third party code, or the code that we provide for supporting embedding. --

[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks

2018-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Catalin has been examining code... switching concurrent.futures.thread to use SimpleQueue instead of Queue is probably a good idea as the queues in there get used from weakref callbacks. -- ___ Python tracker

[issue32516] Add a shared library mechanism for win32

2018-01-16 Thread xoviat
xoviat added the comment: As Nathaniel noted, the "solution" of placing DLLs in the same directory as extension modules is not a solution. I also think that some people here misunderstand my proposal: I'm not necessarily proposing that these directories are added using an import hook: they co

[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks

2018-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Could you open a new issue for it? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue32549] Travis: Test with OpenSSL 1.1.0

2018-01-16 Thread Christian Heimes
Christian Heimes added the comment: New changeset ced9cb5303ad1447f84d923e0c7f769f5e0c6297 by Christian Heimes in branch 'master': bpo-32549: Compile OpenSSL 1.1.0 on Travis CI (#5180) https://github.com/python/cpython/commit/ced9cb5303ad1447f84d923e0c7f769f5e0c6297 -- _

[issue32574] asyncio.Queue, put() leaks memory if the queue is full

2018-01-16 Thread José Melero Fernández
Change by José Melero Fernández : -- keywords: +patch pull_requests: +5062 stage: -> patch review ___ Python tracker ___ ___ Python-

[issue26692] cgroups support in multiprocessing

2018-01-16 Thread David Chin
David Chin added the comment: I would like to state strong support if is.get_usable_cpu_count() I administer a typical HPC cluster which may have multiple jobs scheduled on the same physical server. The fact that multiprocessing ignores cgroups leads to bad oversubscription. -- nosy:

[issue32516] Add a shared library mechanism for win32

2018-01-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: > However, the principal reason that I'm opening this issue is that Ray > complained that packages shouldn't be altering the DLL search path If that's crucial context, can you link to it? -- ___ Python tracker

[issue32516] Add a shared library mechanism for win32

2018-01-16 Thread Steve Dower
Steve Dower added the comment: I understood the proposal just fine, and I understand the problems involved and appreciate why the ideal isn't sufficient here. The import hook was my proposal to let you only preload DLLs when the extension module is being loaded, rather than having to load all

[issue32573] sys.argv documentation should include caveat for embedded environments

2018-01-16 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue32575] IDLE cannot locate certain SyntaxErrors raised by f-string expressions

2018-01-16 Thread Dan Snider
New submission from Dan Snider : For example the following f-string f'{1):.1%}' IDLE will scroll to the top of the file and highlight a random and irrelevant line (not sure what it's doing tbh). running the expression with `exec` makes it look like implicit parenthesis are added to the ends

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +5064 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32516] Add a shared library mechanism for win32

2018-01-16 Thread xoviat
xoviat added the comment: This is what ray said: "Please do not do this. Importing a specific module should not modify the way that process loads subsequent DLLs." (https://github.com/numpy/numpy/pull/10229#issuecomment-354846459) What I'm proposing to do is write a tool, widely used like au

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-16 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- pull_requests: -5016 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32575] IDLE cannot locate certain SyntaxErrors raised by f-string expressions

2018-01-16 Thread Eric V. Smith
Eric V. Smith added the comment: This is not an IDLE bug, per se. There's a known problem with f-strings not producing the correct line numbers. See issue #29051. Unless Terry thinks there's something IDLE-specific here, I suggest closing this as a duplicate. -- nosy: +eric.smith ___

[issue31299] Add "ignore_modules" option to TracebackException.format()

2018-01-16 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +5065 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

  1   2   >