[issue29708] support reproducible Python builds

2018-01-24 Thread Alexandru Ardelean
Change by Alexandru Ardelean : -- pull_requests: +5159 ___ Python tracker ___ ___

[issue32657] Mutable Objects in SMTP send_message Signature

2018-01-24 Thread Chason Chaffin
Chason Chaffin added the comment: Hi Steven, I have nothing to do with the original submitter but this bug did catch my eye. Does using mutable variables in the SMTP library serve a purpose? Looking through the code, I wasn't able to spot anything obvious, and I did spot a

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

2018-01-24 Thread Nathaniel Smith
Nathaniel Smith added the comment: > I attempted to implement my weakref idea (i.e. raw file keeps a weakref to > the buffered file, calls flush before the raw file gets closed). That > doesn't work either because the GC clears the weakref before calling __del__. This may be

[issue32657] Mutable Objects in SMTP send_message Signature

2018-01-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Kenny, and thanks, but I'm not sure what your point is. Are you claiming this is a bug in the code or the documentation? For what it is worth... mutable defaults *are* a "gotcha", so the documentation isn't wrong. And mutable

[issue32662] Implement Server.serve_forever and corresponding APIs

2018-01-24 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +5158 stage: -> patch review ___ Python tracker ___

[issue32662] Implement Server.serve_forever and corresponding APIs

2018-01-24 Thread Yury Selivanov
New submission from Yury Selivanov : As discussed, we want to make Server objects more usable in async/await code and more compatible with asyncio.run. This is also needed to handle a use case when two or more servers are created and need to start listening at the same

[issue27505] Missing documentation for setting module __class__ attribute

2018-01-24 Thread Nick Coghlan
Nick Coghlan added the comment: I think the only thing missing for the 3.7 docs now would be a pair of "versionchanged" notes indicating that __class__ has been settable since 3.5, while module level __dir__ and __getattr__ support is new in 3.7. It would also be

[issue31972] Inherited docstrings for pathlib classes are confusing

2018-01-24 Thread Chason Chaffin
Change by Chason Chaffin : -- pull_requests: +5157 ___ Python tracker ___ ___

[issue12706] timeout sentinel in ftplib and poplib documentation

2018-01-24 Thread Marcel Widjaja
Change by Marcel Widjaja : -- pull_requests: +5156 stage: needs patch -> patch review ___ Python tracker ___

[issue32628] Add configurable DirectoryIndex to http.server

2018-01-24 Thread Erik Paulson
Change by Erik Paulson : -- keywords: +patch pull_requests: +5155 stage: -> patch review ___ Python tracker ___

[issue32661] ProactorEventLoop locks up on close call

2018-01-24 Thread Roger Taylor
New submission from Roger Taylor : The following problem only occurs when I use ProactorEventLoop. If I use 'asyncio.get_event_loop()' it exits normally, rather than infinite looping in IOCP land. 1. I run the attached 'bug.py' script in a DOS window. It is a

[issue32659] Solaris "stat" should support "st_fstype"

2018-01-24 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- keywords: +patch pull_requests: +5154 stage: needs patch -> patch review ___ Python tracker ___

[issue32623] Resize dict on del/pop

2018-01-24 Thread INADA Naoki
INADA Naoki added the comment: I think I understand #17563, and I should fix GROWTH_RATE. Before compact-ordered dict, we can avoid resizing in "the number of deletions is on a par with the number of insertions." scenario, by large GROWTH_RATE. That's because new entry

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

2018-01-24 Thread Guido van Rossum
Guido van Rossum added the comment: Raising for order=True if one of the ordering dunders exists sounds fine. I am confused by the corner case for hash. Your table: """ eq=?frozen=?__hash__ False False do not generate __hash__ False True

[issue29708] support reproducible Python builds

2018-01-24 Thread Brett Cannon
Brett Cannon added the comment: New changeset cab0b2b053970982b760048acc3046363615a8dd by Brett Cannon in branch 'master': bpo-29708: Add What's New entries for SOURCE_DATE_EPOCH and py_compile (GH-5306)

[issue32660] Solaris should support constants like termios' FIONREAD

2018-01-24 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Solaris supports termios constants like FIONREAD with an appropiate "#include" in the C code. The main issue is that some names conflicts between System V and BSD personalities. I could evaluate the situation and do a patch proposal for

[issue29708] support reproducible Python builds

2018-01-24 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +5153 ___ Python tracker ___ ___

[issue32659] Solaris "stat" should support "st_fstype"

2018-01-24 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Solaris has an extra "st_fstype" in the "stat" structure: """ st_fstype A null-teminated string that uniquely identifies the type of the filesystem that contains the file. """ Supporting this

[issue32623] Resize dict on del/pop

2018-01-24 Thread INADA Naoki
INADA Naoki added the comment: > Should we make sure that all dicts have at least MINSIZE entries? I don't think so. I think "allocate on first insert" is good idea for dict.clear() And I think it's good idea for new dict too:

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

2018-01-24 Thread Neil Schemenauer
Neil Schemenauer added the comment: Using atexit is not the solution because the data can be lost even while the program is running, not just at interpreter shutdown. The problem occurs if the buffered file object and the underlying file object are both part of a

[issue32658] Metacharacter (\) documentation suggestion

2018-01-24 Thread Kevin Raeder
New submission from Kevin Raeder : I've found the Regular Expression HOWTO to be very helpful (https://docs.python.org/3/howto/regex.html?highlight=regular%20expressions). One inconsistency I noticed is that the intro to metacharacters says "Metacharacters are not active inside

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

2018-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, test_dictviews and test_ordered_dict now pass for me, and Appveyor already ran entire suite and says OK to all. -- ___ Python tracker

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

2018-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hold the failure comment. I forgot that I have to recompile when patch changes .c files. -- ___ Python tracker

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

2018-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Not ready to merge. 1. We need the Appveyer test to pass or special action from the gateway gods. 2. After a month, the PR needed to be updated and retested anyway. I pulled, updated, pushed the update (which will trigger Travis and AV), and

[issue32391] Add StreamWriter.wait_closed()

2018-01-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ 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

[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

[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 --

[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 ___

[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

[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

[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)

[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

[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: 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)

[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 ___

[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

[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

[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 :) --

[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 >>>

[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. --

[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

[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)

[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

[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)

[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)

[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

[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

[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

[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)

[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

[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 ___

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

2018-01-24 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +5151 ___ Python tracker ___

[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 --

[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

[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:

[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 ___

[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

[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

[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

[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

[issue32636] test_asyncio fails with PYTHONASYNCIODEBUG=1

2018-01-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +5149 ___ 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

[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 ___

[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:

[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

[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)

[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

[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

[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? --

[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

[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)

[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

[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 ___

[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 ___

[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

[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

[issue32650] Debug support for native coroutines is broken

2018-01-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +njs ___ Python tracker ___ ___

[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

[issue32623] Resize dict on del/pop

2018-01-24 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +5147 ___ Python tracker ___ ___

[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 ___

[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)

[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)

[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

[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

[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

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

2018-01-24 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +5146 ___ Python tracker ___ ___

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

2018-01-24 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +5145 ___ 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

[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

[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

[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)

[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

[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

[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

[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.

[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

[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)

  1   2   >