[issue32643] Make Task._step, Task._wakeup and Future._schedule_callback methods private

2018-01-24 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue32410] Implement loop.sock_sendfile method

2018-01-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +5141 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-24 Thread Eric V. Smith
Eric V. Smith added the comment: I'm working on a patch before beta 1. The only issue is whether to raise in the case that order=True and the user specifies one of the 4 ordering dunders. I think raising is okay, especially since order=False is the default: you'd have to go out of your way to

[issue32623] Resize dict on del/pop

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: I agree that an heuristic is needed to decide when a dict should be compacted. > * When (dict size < dk_size/8), call insertion_resize() In bpo-31179, I suggested to Yury to use 2/3 ratio... to avoid integer overflow :-) He first used 80%, but I dislike using

[issue32623] Resize dict on del/pop

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: This issue is a matter of CPU vs memory tradeoff. It reminds me the PEP 393: str type doesn't make tradeoff anymore, CPython guarantee that str always use the most efficient storage (least memory) for characters. But here the tradeoff is different. A dict is

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-24 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 2.7 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

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

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: Good. Using PR 5291, test_asyncio doesn't hang anymore, and only 2 tests still fail: == ERROR: test_foobar (test.test_asyncio.test_tasks.CTask_Future_Tests) ---

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

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

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: Charalampos, Christian: are you ok to backport the fix to Python 2.7 and 3.6? (PR 5295 and PR 5296) -- nosy: +christian.heimes ___ Python tracker ___

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: Fix for the two remaining bugs: diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index 8d72df6a72..6489f50f27 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-24 Thread Christian Heimes
Christian Heimes added the comment: yes, go ahead -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32645] test_asyncio: TLS tests fail on "x86 Windows7" buildbot

2018-01-24 Thread STINNER Victor
New submission from STINNER Victor : test_asyncio started to fail after the implementation of STARTTLS in asyncio, bpo-23749: commit f111b3dcb414093a4efb9d74b69925e535ddc470. http://buildbot.python.org/all/#/builders/58/builds/502 Extract of test.pythoninfo: ssl.HAS_SNI: True ssl.OPENSSL_

[issue32641] test_context and test_asyncio crash on Windows 7

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: > I've pushed a commit that should fix the buildbot. Please reopen if it > doesn't. test_context and test_asyncio do'nt crash anymore on this buildbot, thanks Yury. test_asyncio still fail on this buildbot, I created a new issue: bpo-32645, test_asyncio: TLS

[issue23749] asyncio missing wrap_socket (starttls)

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: > Tests fail on x86 Windows7 3.x: I created a more specific issue: bpo-32645, test_asyncio: TLS tests fail on "x86 Windows7" buildbot. -- ___ Python tracker ___

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6ccdad7b1f6fb316e4e85aa1eba8fbdc3169741e by Victor Stinner (Miss Islington (bot)) in branch '2.7': bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. (GH-5284) (#5295) https://github.com/python/cpython/commit/6ccdad7b1f6fb

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8e230e1eb3d38ad557b5dc5c31166afa35c01ff3 by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. (GH-5284) (#5296) https://github.com/python/cpython/commit/8e230e1eb3d38

[issue32646] test_asyncgen: race condition on test_async_gen_asyncio_gc_aclose_09(), random failure

2018-01-24 Thread STINNER Victor
New submission from STINNER Victor : test_asyncgen.test_async_gen_asyncio_gc_aclose_09() fails randomly. It looks like a race condition, likely related to the system load. https://ci.appveyor.com/project/python/cpython/build/3.6build10993/job/l89045et4rmey72q (...) Run tests in parallel using

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: > I plan to always run the Python test suite (especially when running on our > CIs) in the new Python 3.7 "development mode" (python3 -X dev) which enables > asyncio debug mode. Are you ok with that? Oh, I forgot to mention the obvious drawback: asyncio debug

[issue32647] Undefined references when compiling ctypes

2018-01-24 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Original bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1537489 As soon as strict symbol checking was enabled on the development branch of Fedora, our build of CPython started failing due to undefined symbols when compiling ctypes. Build lo

[issue32647] Undefined references when compiling ctypes

2018-01-24 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- components: +Build ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue32648] Wrong byte count with struct

2018-01-24 Thread Róbert Lexmann
New submission from Róbert Lexmann : struct.pack('id',a,b) returns 16 bytes, should return 4+8=12 bytes. struct.calcsize('id') also returns 16. -- messages: 310584 nosy: Róbert Lexmann priority: normal severity: normal status: open title: Wrong byte count with struct type: behavior vers

[issue32648] Wrong byte count with struct

2018-01-24 Thread Christian Heimes
Christian Heimes added the comment: It's not a bug. Please read the section about padding. >>> struct.calcsize('id') 16 >>> struct.calcsize('>id') 12 -- nosy: +christian.heimes resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue32647] Undefined references when compiling ctypes

2018-01-24 Thread Christian Heimes
Christian Heimes added the comment: The attached file is 1.3 MB and your build is using Fedora-specific patches. Please post the relevant part from a vanilla build without Fedora patches. -- nosy: +christian.heimes ___ Python tracker

[issue32623] Resize dict on del/pop

2018-01-24 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +5144 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue17799] settrace docs are wrong about "c_call" events

2018-01-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 131fd7f96c619bc7eaea956e45c6337175f4b27f by Xiang Zhang (Pablo Galindo) in branch 'master': bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile (#4056) https://github.com/python/cpython/commit/131fd7f96c619bc7eaea956e45c6337175f4b27

[issue32649] complete C API doc debug and profile part with new PyTrace_OPCODE

2018-01-24 Thread Xiang Zhang
New submission from Xiang Zhang : As the title, the new PyTrace_OPCODE event is not documented in C API doc yet. -- assignee: docs@python components: Documentation messages: 310588 nosy: docs@python, ncoghlan, pablogsal, xiang.zhang priority: normal severity: normal status: open title: c

[issue32648] Wrong byte count with struct

2018-01-24 Thread Róbert Lexmann
Róbert Lexmann added the comment: Thanks for a fast response. If I may ask, what is it good for to encode 'id' in 16 bytes and 'di' in 12? Rob On 01/24/2018 12:00 PM, Christian Heimes wrote: > Christian Heimes added the comment: > > It's not a bug. Please read the section about padding. > >>

[issue32648] Wrong byte count with struct

2018-01-24 Thread Christian Heimes
Christian Heimes added the comment: Hardware restrictions, some CPUs require types to be aligned in certain ways. Doubles must be aligned by multiple of 8 bytes. Please read https://en.wikipedia.org/wiki/Data_structure_alignment and use the Python users mailing list for further questions. --

[issue32647] Undefined references when compiling ctypes

2018-01-24 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Relevant part from the build log: running build_ext building '_ctypes' extension gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_A

[issue32647] Undefined references when compiling ctypes

2018-01-24 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Unfortunately when trying to reproduce it by compiling from source and adding the '-z defs' flag to the linker, undefined symbol issues appeared for all the extension modules of the stdlib. -- components: +Extension Modules ___

[issue32502] uuid1() fails if only 64-bit interface addresses are available

2018-01-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset d69794f4df81de731cc66dc82136e28bee691e1e by Barry Warsaw (Bo Bayles) in branch '3.6': [3.6] bpo-32502: Discard 64-bit (and other invalid) hardware addresses (GH-5254) (#5290) https://github.com/python/cpython/commit/d69794f4df81de731cc66dc82136

[issue32502] uuid1() fails if only 64-bit interface addresses are available

2018-01-24 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker ___

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-24 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32637] Android: set sys.platform to android

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: I propose to leave MACHDEP unchanged: keep MACHDEP="linux". Can it create inconsistencies? Is it an issue in practice? My short term goal is to use sys.platform == 'android' has the reference test to check if we are running on Android. -- __

[issue17799] settrace docs are wrong about "c_call" events

2018-01-24 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +5145 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue17799] settrace docs are wrong about "c_call" events

2018-01-24 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +5146 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the issue on Fedora 27 (binutils-2.29-6.fc27.src.rpm, gcc-7.2.1-2.fc27.src.rpm). _ctypes.cpython-37dm-x86_64-linux-gnu.so is generated whereas it's not linked to libdl.so (as expected). The flag seems to be ignored. https://src.fedora

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-01-24 Thread Christian Heimes
Christian Heimes added the comment: -ldl is the correct fix here. https://fedoraproject.org/wiki/UnderstandingDSOLinkChange explains the problem. tl;dr linking with dl is required because the linker no longer adds indirect dependencies. We can't just add dl unconditionally. You have to add a

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: > We can't just add dl unconditionally. dlopen() is not used on Windows nor macOS older than 10.3. On old macOS, functions like NSCreateObjectFileImageFromFile() are used. I don't think that the master branch still supports macOS 10.2. Mac OS X 10.2 was rele

[issue17799] settrace docs are wrong about "c_call" events

2018-01-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset fd844efa9c31e1f00e04b07940875b9dacff3d77 by Xiang Zhang in branch '3.6': bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile (GH-4056) (#5298) https://github.com/python/cpython/commit/fd844efa9c31e1f00e04b07940875b9dacff3d77

[issue17799] settrace docs are wrong about "c_call" events

2018-01-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset e64a47b37d0c592fd162b2f51e79ecfd046b45ec by Xiang Zhang in branch '2.7': bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile (GH-4056). (#5299) https://github.com/python/cpython/commit/e64a47b37d0c592fd162b2f51e79ecfd046b45ec ---

[issue17799] settrace docs are wrong about "c_call" events

2018-01-24 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue32623] Resize dict on del/pop

2018-01-24 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +5147 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue32650] Debug support for native coroutines is broken

2018-01-24 Thread Andrew Svetlov
New submission from Andrew Svetlov : pdb (and other Python debuggers) are built on top of bdb.py module. The module has a support for stepping to next line in function (next command). The command checks frame flags and do extra steps if the flags contains CO_GENERATOR. But CO_COROUTINE is not

[issue32650] Debug support for native coroutines is broken

2018-01-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue32651] os.getlogin() should recommend getpass.getuser()

2018-01-24 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : The documentation for os.getlogin() says: "Return the name of the user logged in on the controlling terminal of the process. For most purposes, it is more useful to use the environment variables LOGNAME or USERNAME to find out who the user is, or pwd.getp

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

2018-01-24 Thread Arusekk
Arusekk added the comment: Since the issue seems to have been active lately, may I suggest my view on solving it. One solution that comes to my mind is to keep a weak reference to the file, and to register an atexit function per file (and to unregister it when the file is closed). Example co

[issue32645] test_asyncio: TLS tests fail on "x86 Windows7" buildbot

2018-01-24 Thread Yury Selivanov
Yury Selivanov added the comment: I now have a Win7 VM, I'll take a look at this later. -- ___ Python tracker ___ ___ Python-bugs-li

[issue32651] os.getlogin() should recommend getpass.getuser()

2018-01-24 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- keywords: +patch pull_requests: +5148 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue32623] Resize dict on del/pop

2018-01-24 Thread INADA Naoki
INADA Naoki added the comment: > * When dict size become 0, make the dict shared-empty, like dict.clear() This will cause significant performance regression for `dict[a]=None; del dict[a]` loop. del/pop shouldn't do clear(). > * When (dict size < dk_size/8), call insertion_resize() This is b

[issue28046] Remove the concept of platform-specific directories

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5de15f1d5ff09085620f63f0597d0920d75be719 by Victor Stinner in branch 'master': bpo-28046: Remove MACHDEPPATH from Modules/Setup.dist (#5289) https://github.com/python/cpython/commit/5de15f1d5ff09085620f63f0597d0920d75be719 -- _

[issue32030] PEP 432: Rewrite Py_Main()

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8ded5b803705328749622256701b3f08a9d6c5ab by Victor Stinner in branch 'master': bpo-32030: Add _PyCoreConfig.module_search_paths (#4954) https://github.com/python/cpython/commit/8ded5b803705328749622256701b3f08a9d6c5ab -- __

[issue32623] Resize dict on del/pop

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: "This will cause significant performance regression for `dict[a]=None; del dict[a]` loop. del/pop shouldn't do clear()." Should we make sure that all dicts have at least MINSIZE entries? -- ___ Python tracker

[issue28046] Remove the concept of platform-specific directories

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: Fixed. I close again the issue. I don't want to backport this change, it doesn't hurt Python 3.6. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

2018-01-24 Thread Yury Selivanov
Yury Selivanov added the comment: > Nathaniel: do you want to include these fixes in your PR as well? Victor, can you submit a new PR for this? Let's merge this right away. -- ___ Python tracker

[issue32643] Make Task._step, Task._wakeup and Future._schedule_callback methods private

2018-01-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 22feeb88b473b288950cdb2f6c5d28692274b5f9 by Yury Selivanov in branch 'master': bpo-32643: Drop support for a few private Task and Future APIs. (#5293) https://github.com/python/cpython/commit/22feeb88b473b288950cdb2f6c5d28692274b5f9 --

[issue32030] PEP 432: Rewrite Py_Main()

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32652] test_distutils: BuildRpmTestCase tests fail on RHEL buildbots

2018-01-24 Thread STINNER Victor
New submission from STINNER Victor : It may be a regression introduced by commit 8ded5b803705328749622256701b3f08a9d6c5ab, bpo-32030: "Add _PyCoreConfig.module_search_paths", since it's the only change of the failing build 577. s390x RHEL 3.x5: http://buildbot.python.org/all/#/builders/21/bu

[issue32643] Make Task._step, Task._wakeup and Future._schedule_callback methods private

2018-01-24 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-24 Thread Yury Selivanov
Yury Selivanov added the comment: So let's retarget this to 3.8 as it's too close to 3.7 feature freeze to get seriously considered/merged. -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue32030] PEP 432: Rewrite Py_Main()

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: I made most, if not all, changes that I wanted to do. It's time to close this huge issue to continue the work in new more specific issues. Notes on Py_Main(). (*) _PyPathConfig_Init() is called even if it's not needed (if all "Path configuration outputs" fil

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

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

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: > Victor, can you submit a new PR for this? Let's merge this right away. Ok, done: https://github.com/python/cpython/pull/5302 -- ___ Python tracker

[issue32653] AttributeError: 'Task' object has no attribute '_callbacks'

2018-01-24 Thread Timur Irmatov
New submission from Timur Irmatov : Sometimes during shutdown of our simple http server based on asyncio/ aiohttp we get following stack trace: ERROR[2018-01-24 08:28:33,398]: Exception in default exception handler while handling an unexpected error in custom exception handler Traceback (m

[issue32653] AttributeError: 'Task' object has no attribute '_callbacks'

2018-01-24 Thread Yury Selivanov
Yury Selivanov added the comment: Can you check if this happens on 3.6? 3.5 is in a security-fix mode only, so even if this is a bug it would take us a long time to fix it. -- ___ Python tracker ___

[issue32030] PEP 432: Rewrite Py_Main()

2018-01-24 Thread STINNER Victor
STINNER Victor added the comment: Oh, my latest commit introduced a regression in test_distutils: bpo-32652. -- ___ Python tracker ___ _

[issue32652] test_distutils: BuildRpmTestCase tests fail on RHEL buildbots

2018-01-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +5150 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32655] File mode shou

2018-01-24 Thread Марат Нагаев
Change by Марат Нагаев : -- components: IO nosy: nagayev priority: normal severity: normal status: open title: File mode shou type: behavior versions: Python 3.7 ___ Python tracker

[issue32654] Fixes Python for Android API 19

2018-01-24 Thread STINNER Victor
New submission from STINNER Victor : I'm working on a pull request to make https://github.com/pmp-p/droid-pydk/tree/master/sources.32/cpython-bpo-30386.patchset changes upstream. -- messages: 310619 nosy: vstinner priority: normal severity: normal status: open title: Fixes Python for A

[issue32655] File mode should be a constant

2018-01-24 Thread Марат Нагаев
New submission from Марат Нагаев : Hey guys, I find bug in Python. If you'll try to file stream using open function you can edit file mode: Watch git: https://gist.github.com/nagayev/7d17ead7b3bc2b06f2445fb5d9122a5c In fact,mode don't changed,so mode shoul be constant like a encoding of the file

[issue32651] os.getlogin() should recommend getpass.getuser()

2018-01-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset d499031f5f33c3ef71be7c81ef52eee6b47c42e1 by Barry Warsaw in branch 'master': bpo-32651 Recommend getpass.getuser() (#5301) https://github.com/python/cpython/commit/d499031f5f33c3ef71be7c81ef52eee6b47c42e1 -- __

[issue32651] os.getlogin() should recommend getpass.getuser()

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

[issue32654] Fixes Python for Android API 19

2018-01-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +5152 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32655] File mode should be a constant

2018-01-24 Thread R. David Murray
R. David Murray added the comment: That isn't a bug. Python doesn't protect you from doing the wrong thing, in general. On the other hand, it might be a worthwhile improvement to make it read-only in this case. Especially since, as you point out, other seemingly similar attributes of this

[issue32651] os.getlogin() should recommend getpass.getuser()

2018-01-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 196b8cbab2b5044b92077f0b3c07c798fff68bc6 by Barry Warsaw (Miss Islington (bot)) in branch '3.6': bpo-32651 Recommend getpass.getuser() (GH-5301) (#5304) https://github.com/python/cpython/commit/196b8cbab2b5044b92077f0b3c07c798fff68bc6

[issue32651] os.getlogin() should recommend getpass.getuser()

2018-01-24 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker ___

[issue32410] Implement loop.sock_sendfile method

2018-01-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0a5e71b4c70aab87125a54d7a59765e18d7583a4 by Andrew Svetlov in branch 'master': bpo-32410: Improve sock_sendfile tests (#5294) https://github.com/python/cpython/commit/0a5e71b4c70aab87125a54d7a59765e18d7583a4 --

[issue32410] Implement loop.sock_sendfile method

2018-01-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

2018-01-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset fb5a7ad421ac20c49218ee4b86fb0d85ca4cd664 by Yury Selivanov (Nathaniel J. Smith) in branch 'master': bpo-32636: Fix @asyncio.coroutine debug mode bug exposed by gh-5250 (#5291) https://github.com/python/cpython/commit/fb5a7ad421ac20c49218ee4b86fb0

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

2018-01-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 789e359f51d2b27bea01b8c6c3bf090aaedf8839 by Yury Selivanov (Victor Stinner) in branch 'master': bpo-32636: Fix two bugs in test_asyncio (#5302) https://github.com/python/cpython/commit/789e359f51d2b27bea01b8c6c3bf090aaedf8839 -- __

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

2018-01-24 Thread Yury Selivanov
Yury Selivanov added the comment: This can probably be closed now. Thanks Victor and Nathaniel! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

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

2018-01-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 6f6eb35f9bee18f54945f09664344f2d118ed89f by Barry Warsaw in branch 'master': bpo-32248 - Implement `ResourceReader` and `get_resource_reader()` for zipimport (#5248) https://github.com/python/cpython/commit/6f6eb35f9bee18f54945f09664344f2d118e

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

2018-01-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Now that the zipimporter support has landed, I think we're done! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue32630] Migrate decimal to use PEP 567 context variables

2018-01-24 Thread Yury Selivanov
Yury Selivanov added the comment: Stefan, it would be great to have this committed before 3.7 feature freeze. The change is pretty straightforward -- we replaced threading.local() with a contextvar, which should be a backwards compatible change. -- ___

[issue32656] writing to stdout prints extraneous size character

2018-01-24 Thread David Albert Torpey
New submission from David Albert Torpey : $ python3.5 Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 08:49:46) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.stdout.write('python') python6 -

[issue32656] writing to stdout prints extraneous size character

2018-01-24 Thread Zachary Ware
Zachary Ware added the comment: This is not a bug, it's a side effect of using the REPL for this test and not assigning the return value of `sys.stdout.write` to anything. Try the following: >>> import sys >>> character_count = sys.stdout.write('python\n') # note trailing newline python >>>

[issue32656] writing to stdout prints extraneous size character

2018-01-24 Thread Zachary Ware
Zachary Ware added the comment: Of course, I realize after clicking "submit" that my character count there is actually wrong, and should be 7. That's what I get for writing out the example instead of actually running and copying it :) -- ___ Pytho

[issue24132] Direct sub-classing of pathlib.Path

2018-01-24 Thread Keith
Keith added the comment: Look at the architecture of Rio in Ruby (also ported to Squeak/Smalltalk) Leave Path to handle path stuff, and have another class to handle Platform stuff. https://rubygems.org/gems/rio/versions/0.6.0 -- nosy: +keithy ___

[issue17882] test_objecttypes fails for 3.2.4 on CentOS 6

2018-01-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: I believe this may have been fixed in #19527. -- nosy: +csabella ___ Python tracker ___ ___ Python

[issue29708] support reproducible Python builds

2018-01-24 Thread Brett Cannon
Brett Cannon added the comment: New changeset ccbe5818af20f8c12043f5c30c277a74714405e0 by Brett Cannon (Bernhard M. Wiedemann) in branch 'master': bpo-29708: Setting SOURCE_DATE_EPOCH forces hash-based .pyc files (GH-5200) https://github.com/python/cpython/commit/ccbe5818af20f8c12043f5c30c277a

[issue17882] test_objecttypes fails for 3.2.4 on CentOS 6

2018-01-24 Thread bharper
bharper added the comment: Hey all, I am not having this issue on other versions of python. Seeing that python 3.2 is EOL, lets just close this issue. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue29708] support reproducible Python builds

2018-01-24 Thread Brett Cannon
Brett Cannon added the comment: Just merged Bernhard's PR which forces hash-based .pyc files. Thanks to everyone who constructively helped reach this point. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python t

[issue10381] Add timezone support to datetime C API

2018-01-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 04af5b1ba9eb546a29735fac6cb5298159069b53 by Alexander Belopolsky (Paul Ganssle) in branch 'master': bpo-10381: Add timezone to datetime C API (#5032) https://github.com/python/cpython/commit/04af5b1ba9eb546a29735fac6cb5298159069b53 --

[issue10381] Add timezone support to datetime C API

2018-01-24 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue32391] Add StreamWriter.wait_closed()

2018-01-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset fe133aad5949db7309c26c58b066c22e714e by Andrew Svetlov in branch 'master': bpo-32391: Implement StreamWriter.wait_closed() (#5281) https://github.com/python/cpython/commit/fe133aad5949db7309c26c58b066c22e714e -- ___

[issue17882] test_objecttypes fails for 3.2.4 on CentOS 6

2018-01-24 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> out of date stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue32657] Mutable Objects in SMTP send_message Signature

2018-01-24 Thread Kenny Trytek
New submission from Kenny Trytek : Mutable arguments in signature of send_message: https://github.com/python/cpython/blob/master/Lib/smtplib.py#L892-L893 More Information: http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments -- components: Library (Lib) mess

[issue18533] Avoid error from repr() of recursive dictview

2018-01-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: It looks like Serhiy approved the PR on 12/13. Is it ready to merge? Thanks! -- ___ Python tracker ___ _

[issue27505] Missing documentation for setting module __class__ attribute

2018-01-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Nick, It looks like #32225 took care of this documentation change, so I think this can be closed? Thanks! -- ___ Python tracker ___ __

  1   2   >