[issue33296] datetime.datetime.utcfromtimestamp call decimal causes precision loss

2018-05-08 Thread Shlomo Anglister
Shlomo Anglister added the comment: This issue is in review stage for a long time. What's holding it? On Wed, May 9, 2018 at 8:24 AM, Shlomo Anglister wrote: > > Shlomo Anglister added the comment: > > Thanks

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2018-05-08 Thread Shlomo Anglister
Change by Shlomo Anglister : -- nosy: +anglister ___ Python tracker ___ ___

[issue33296] datetime.datetime.utcfromtimestamp call decimal causes precision loss

2018-05-08 Thread Shlomo Anglister
Shlomo Anglister added the comment: Thanks @serhiy.storchaka and @corona10 ! I read it, documented the relation and failed to see the duplication. -- ___ Python tracker

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread miss-islington
miss-islington added the comment: New changeset c925108b991b9c5f0402feb0e7f725ee3ac7da11 by Miss Islington (bot) in branch '3.6': closes bpo-33445: fail properly in test_cprofile() (GH-6727)

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread miss-islington
miss-islington added the comment: New changeset 263523ae217e1af580628b4fe0609194823a51aa by Miss Islington (bot) in branch '3.7': closes bpo-33445: fail properly in test_cprofile() (GH-6727)

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6426 ___ Python tracker ___

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6425 ___ Python tracker ___

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ac9240b9be31d073d1b2e50ce53481ff0fc9ed23 by Benjamin Peterson (jdemeyer) in branch 'master': closes bpo-33445: fail properly in test_cprofile() (GH-6727)

[issue33447] Asynchronous lambda syntax

2018-05-08 Thread Noah Simon
Noah Simon added the comment: Actually, you wouldn't even need to import asyncio. -- ___ Python tracker ___

[issue33447] Asynchronous lambda syntax

2018-05-08 Thread Noah Simon
New submission from Noah Simon : It would be very useful to add an asynchronous lambda syntax, as a shortcut for coroutines. I'm not experienced enough to write a PEP or edit the C source, but I have some ideas for syntax: import asyncio foo = async lambda a,b: 5 + await

[issue28556] typing.py upgrades

2018-05-08 Thread miss-islington
miss-islington added the comment: New changeset 3c28a6387b48bad3fcae47906bc166d02a2f8ed2 by Miss Islington (bot) in branch '3.7': bpo-28556: Minor fixes for typing module (GH-6732)

[issue33420] [typing] __origin__ invariant broken

2018-05-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This is now fixed on master by https://github.com/python/cpython/commit/43d12a6bd82bd09ac189069fe1eb40cdbc10a58c (the comment is updated). -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue28556] typing.py upgrades

2018-05-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6424 ___ Python tracker ___

[issue28556] typing.py upgrades

2018-05-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 43d12a6bd82bd09ac189069fe1eb40cdbc10a58c by Ivan Levkivskyi in branch 'master': bpo-28556: Minor fixes for typing module (GH-6732) https://github.com/python/cpython/commit/43d12a6bd82bd09ac189069fe1eb40cdbc10a58c

[issue16733] Solaris ctypes_test failures

2018-05-08 Thread Greg Onufer
Greg Onufer added the comment: The bitfields failures are due to Python not implementing bitfields the same as the compiler. https://docs.oracle.com/cd/E77782_01/html/E77792/gqexw.html "Signed and Unsigned int Bit-fields Bit-fields which are declared as int (not signed

[issue27675] IDLE file completion has 2 bugs depending on open quote used

2018-05-08 Thread Cheryl Sabella
Cheryl Sabella added the comment: I can't seem to recreate this. I tried on Ubuntu with master and Windows with 3.6.3. I'm not sure if it's been fixed by another change or if I'm not doing the steps correctly to recreate it. -- nosy: +csabella

[issue33414] Make shutil.copytree use os.scandir to take advantage of cached is_(dir|file|symlink)

2018-05-08 Thread Andrés Delfino
Andrés Delfino added the comment: I believe you are right about being conservative with changing working code, specially when there's no proof about performance being improved. I think its best to close this ticket. I'd do it myself, but I know what resolution applies

[issue28556] typing.py upgrades

2018-05-08 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- pull_requests: +6423 ___ Python tracker ___ ___

[issue13044] pdb throws AttributeError at end of debugging session

2018-05-08 Thread Xavier de Gaye
Change by Xavier de Gaye : Added file: https://bugs.python.org/file47578/lazy_import.diff ___ Python tracker ___

[issue13044] pdb throws AttributeError at end of debugging session

2018-05-08 Thread Xavier de Gaye
Change by Xavier de Gaye : Added file: https://bugs.python.org/file47579/gdb_backtrace.txt ___ Python tracker ___

[issue13044] pdb throws AttributeError at end of debugging session

2018-05-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nosying Serhiy as this post attempts to answer one of the questions raised in msg315588 in issue 33328: > Is it good that the debugger is enabled at the shutdown stage? This post has four different sections showing that the successive and

[issue32717] Document PEP 560

2018-05-08 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27465] IDLE:Make help source menu entries unique and sorted.

2018-05-08 Thread Cheryl Sabella
Cheryl Sabella added the comment: > Currently, names are displayed in the order added. I believe sorting would > be better, especially when one adds more than 2 entries. That should also be > easy. I'm wondering if it would be worthwhile to add Drag and Drop

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-05-08 Thread steverweber
steverweber added the comment: ref to other projects that hit this issue. https://gitlab.idiap.ch/bob/bob.buildout/issues/15 https://github.com/saltstack/salt/issues/45080 https://groups.google.com/forum/#!msg/comp.lang.python/tpfiHAJhl9Y/hZj1f50vBQAJ -- nosy:

[issue33446] destructors of local variables are not traced

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue16653] reference kept in f_locals prevents the tracing/profiling of a destructor

2018-05-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Closing as a duplicate of issue 33446 which has a wider scope and a PR. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue32717] Document PEP 560

2018-05-08 Thread miss-islington
miss-islington added the comment: New changeset 101d0d585f99a3b8c8d070b9d4dea15fa3daff62 by Miss Islington (bot) in branch '3.7': bpo-32717: Document PEP 560 (GH-6726) https://github.com/python/cpython/commit/101d0d585f99a3b8c8d070b9d4dea15fa3daff62

[issue33446] destructors of local variables are not traced

2018-05-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: In both cases the destructor cannot be traced because it is invoked from functions called from [1] call_trace() where tracing is disabled: Case local variable 'a': On line 12, just before executing this line with a pdb step command,

[issue33446] destructors of local variables are not traced

2018-05-08 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +6422 stage: -> patch review ___ Python tracker ___

[issue32717] Document PEP 560

2018-05-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6421 ___ Python tracker ___

[issue32717] Document PEP 560

2018-05-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset bd5f96581bf23f6d05fc106996428a8043b6b084 by Ivan Levkivskyi in branch 'master': bpo-32717: Document PEP 560 (GH-6726) https://github.com/python/cpython/commit/bd5f96581bf23f6d05fc106996428a8043b6b084 --

[issue33446] destructors of local variables are not traced

2018-05-08 Thread Xavier de Gaye
New submission from Xavier de Gaye : In the following code, the destructors of objects referenced by the 'a' and 'b' local variables are not traced by the 'step' command of pdb. 1 class C: 2 def __init__(self, name): 3 self.name = name 4 5 def

[issue33444] Memory leak/high usage on copy in different thread

2018-05-08 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue33444] Memory leak/high usage on copy in different thread

2018-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, this looks surprising, but there is no memory leak here, just memory fragmentation in the glibc allocator. This is the program I used to diagnose it: https://gist.github.com/pitrou/6c5310d4c721436165666044e3c31158 At the end the program

[issue33437] Defining __init__ in enums

2018-05-08 Thread Ethan Furman
Ethan Furman added the comment: That new example looks great! Note that you don't need the parenthesis, though. FYI: The same thing using the aenum library* would look like: from aenum import Enum class Coord(bytes, Enum): _init_ = 'value label unit' PX

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +6420 stage: -> patch review ___ Python tracker ___

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : When this test from Lib/test/test_profile.py fail, it just prints a message and doesn't fail the testsuite: def test_cprofile(self): results = self.do_profiling() expected = self.get_expected_output()

[issue32717] Document PEP 560

2018-05-08 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +6419 stage: needs patch -> patch review ___ Python tracker ___

[issue33144] random._randbelow optimization

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33144] random._randbelow optimization

2018-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ec1622d56c80d15740f7f8459c9a79fd55f5d3c7 by Serhiy Storchaka in branch 'master': bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)

[issue33365] http/client.py does not print correct headers in debug

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +barry, r.david.murray versions: -Python 3.4, Python 3.5 ___ Python tracker ___

[issue33444] Memory leak/high usage on copy in different thread

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +bquinlan, pitrou ___ Python tracker ___

[issue33399] site.abs_paths should handle None __cached__ type

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +brett.cannon, eric.snow, ncoghlan type: -> behavior versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue33444] Memory leak/high usage on copy in different thread

2018-05-08 Thread MultiSosnooley
New submission from MultiSosnooley : On linux (ubuntu 16.04, 18.04 tested) with python 3.6.5, 3.5.5 and 3.7-dev (windows is not affected) there is ~850Mb of memory used by python process at sleep point. Replacing `submit` `result` with plain function call causes

[issue33419] Add functools.partialclass

2018-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm -1 on this change. It looks as an uncommon case, and the correct general implementation is hard (it may be even more hard that it looked to me now). The stdlib should't provide an incomplete implementation which can be

[issue33437] Defining __init__ in enums

2018-05-08 Thread Andres Ayala
Andres Ayala added the comment: I see, with mixed types you need to use __new__ to construct the elements (I imagine is specially important for non mutable types) I have modified the example of the coordinates to try to use a mixed type. Is not the most useful thing, but

[issue20104] expose posix_spawn(p)

2018-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I propose the following changes to the file_actions parameter in PR 6725. Currently it is the fourth positional-only parameter with the default value None. 1. Change its default value to an empty tuple. None will no longer be

[issue20104] expose posix_spawn(p)

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6418 ___ Python tracker ___ ___

[issue33413] asyncio.gather should not use special Future

2018-05-08 Thread twisteroid ambassador
twisteroid ambassador added the comment: I would like to comment on the last observation about current_task().cancel(). I also ran into this corner case recently. When a task is cancelled from outside, by virtue of there *being something outside doing the

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 903f189b6e528cbe9500014c6f990c6511b38918 by Serhiy Storchaka in branch '2.7': bpo-33096: Removed unintentionally backported from Python 3 Tkinter files. (GH-6724)