[issue36790] test_asyncio fails with application verifier!

2019-05-03 Thread Alexander Riccio
New submission from Alexander Riccio : I compiled PCBuild Debug x64 from an updated clone of upstream, and when running the testsuite under Application Verifier with handle verification, the test triggers an invalid handle access by passing an invalid overlapped handle to CancelIoEx with

[issue36790] test_asyncio fails with application verifier!

2019-05-03 Thread Alexander Riccio
Alexander Riccio added the comment: Hmm, proceeding a bit further pointed to finish_recv in windows_events.py -- Added file: https://bugs.python.org/file48299/python_invalid_handle.PNG ___ Python tracker <https://bugs.python.org/issue36

[issue31033] Add argument to .cancel() of Task and Future

2019-05-08 Thread Alexander Mohr
Alexander Mohr added the comment: @yselivanov even better :) -- ___ Python tracker <https://bugs.python.org/issue31033> ___ ___ Python-bugs-list mailin

[issue36790] test_asyncio fails with application verifier!

2019-05-14 Thread Alexander Riccio
Alexander Riccio added the comment: It's part of the Windows SDK, and is installed with it. To enable for this error, add the Python executable in Application Verifier, and check the Handles box. -- ___ Python tracker <https://bugs.py

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2018-01-11 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- assignee: belopolsky -> ___ Python tracker <https://bugs.python.org/issue9325> ___ ___ Python-bugs-list mailing list Un

[issue30698] asyncio sslproto do not shutdown ssl layer cleanly

2018-01-11 Thread Alexander Mohr
Alexander Mohr added the comment: @grzgrzgrz3, does this resolve the issue in https://bugs.python.org/issue29406 ? I'm guessing you based this PR on that issue. If so I'd like it merged ASAP as otherwise our prod services will be incompatible with all future python releases

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2018-01-11 Thread Alexander Mohr
Alexander Mohr added the comment: my understanding is that the PR in https://bugs.python.org/issue30698 fixes this issue no? If so can we get it merged? -- ___ Python tracker <https://bugs.python.org/issue29

[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/9f1b7b93f5f0ef589e7b272e127cac

[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/9f1b7b93f5f0ef589e7b272e127cac

[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 <https://bugs.python.org/issue32403> ___ ___

[issue32583] Crash during decoding using UTF-16/32 and custom error handler

2018-01-17 Thread Alexander Sibiryakov
Change by Alexander Sibiryakov : -- files: decode_crash.py nosy: sibiryakov priority: normal severity: normal status: open title: Crash during decoding using UTF-16/32 and custom error handler type: crash versions: Python 3.5, Python 3.7 Added file: https://bugs.python.org/file47391

[issue32583] Crash during decoding using UTF-16/32 and custom error handler

2018-01-17 Thread Alexander Sibiryakov
Change by Alexander Sibiryakov : Added file: https://bugs.python.org/file47392/test_string.bin ___ Python tracker <https://bugs.python.org/issue32583> ___ ___ Python-bug

[issue32583] Crash during decoding using UTF-16/32 and custom error handler

2018-01-17 Thread Alexander Sibiryakov
New submission from Alexander Sibiryakov : The CPython interpreter gets SIGSEGV or SIGABRT during the run. The script attempts to decode binary file using UTF-16-LE encoding and custom error handler. The error handler is poorly built, and doesn't respect the unicode standard with

[issue26647] ceval: use Wordcode, 16-bit bytecode

2018-01-22 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- components: +Interpreter Core -Documentation stage: needs patch -> resolved ___ Python tracker <https://bugs.python.org/issu

[issue32625] Update the dis module documentation to reflect switch to wordcode

2018-01-22 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : A switch to wordcode is implemented in Python 3.6, but the documentation in the dis module was mostly left unchanged. See issue 26647, msg266388 and issue 27095, msg268389. -- assignee: docs@python components: Documentation messages: 310440

[issue32625] Update the dis module documentation to reflect switch to wordcode

2018-01-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There is an uncommitted update for the EXTENDED_ARG opcode documentation attached to issue 27095 as mkfu4.patch by Demur Rumed. -- nosy: +Demur Rumed ___ Python tracker <https://bugs.python.org/issue32

[issue32625] Update the dis module documentation to reflect switch to wordcode

2018-01-22 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue32625> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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/04af5b1ba9eb546a29735fac6cb529

[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 <https://bugs.python.or

[issue29317] test_copyxattr_symlinks fails

2018-02-01 Thread Alexander Mohr
Change by Alexander Mohr : -- nosy: +thehesiod versions: +Python 3.5 ___ Python tracker <https://bugs.python.org/issue29317> ___ ___ Python-bugs-list mailin

[issue32754] feature request: asyncio.gather/wait cancel children on first exception

2018-02-02 Thread Alexander Mohr
New submission from Alexander Mohr : currently gather/wait allow you to return on the first exception and leave the children executing. A very common use case that I have is of launching multiple tasks, and if any of them fail, then all should fail..otherwise the other tasks would continue

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2018-02-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 22864bc8e4a076bbac748ccda6c27f1ec41b53e7 by Alexander Belopolsky (Paul Ganssle) in branch 'master': Add What's new entry for datetime.fromisoformat (#5559) https://github.com/python/cpython/commit/22864bc8e4a076bbac748ccda

[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-09 Thread Alexander Mohr
New submission from Alexander Mohr : This test fails when run in a debian docker container from a OSX host with the following error: test test_os failed -- Traceback (most recent call last): File "/build/Python-3.6.3/Lib/test/test_os.py", line 3273, in test_attributes self.c

[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-09 Thread Alexander Mohr
Alexander Mohr added the comment: btw there are some other tests that fail too after removing that test like: test test_tokenize failed -- Traceback (most recent call last): File "/build/Python-3.6.3/Lib/test/test_tokenize.py", line 1557, in test_random_files testfi

[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-10 Thread Alexander Mohr
Alexander Mohr added the comment: sorry if my report is confusing, the issue is when run in a debian:stretch docker container on an OSX host, so running this: docker run --rm -ti docker:stretch on osx. So if you have access to an OSX machine and have docker running (18.02.0-ce-mac53) on

[issue32811] test_os.py fails when run in docker container on OSX host

2018-02-10 Thread Alexander Mohr
Alexander Mohr added the comment: here's how to repro, download fresh debian:stretch image, then install reqs for python: apt-get update && apt-get install curl build-essential libssl-dev libffi-dev libmemcached-dev zlib1g-dev install pyenv-installer: c

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

2018-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe by Alexander Belopolsky (Paul Ganssle) in branch 'master': bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814) https://github.com/python

[issue10381] Add timezone support to datetime C API

2018-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe by Alexander Belopolsky (Paul Ganssle) in branch 'master': bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814) https://github.com/python

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

2018-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset fff596f792a0752b0e571fa57809e5752aba6353 by Alexander Belopolsky (Miss Islington (bot)) in branch '3.7': bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814) (gh-5929) https://github.com/python

[issue10381] Add timezone support to datetime C API

2018-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset fff596f792a0752b0e571fa57809e5752aba6353 by Alexander Belopolsky (Miss Islington (bot)) in branch '3.7': bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814) (gh-5929) https://github.com/python

[issue32878] Document value of st_ino on Windows

2018-02-28 Thread Alexander Nelson
Alexander Nelson added the comment: Thank you for this fix. -- nosy: +Alexander Nelson ___ Python tracker <https://bugs.python.org/issue32878> ___ ___ Python-bug

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2018-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 0e06be836ca0d578cf9fc0c68979eb682c00f89c by Alexander Belopolsky (Miss Islington (bot)) in branch '3.7': Add What's new entry for datetime.fromisoformat (GH-5559) (GH-5939) https://github.com/python

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2018-03-01 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue8947] Provide as_integer_ratio() method to Decimal

2018-03-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This issue has been superseded by #25928. -- resolution: rejected -> duplicate stage: patch review -> resolved superseder: -> Add Decimal.as_integer_ratio() ___ Python tracker <https://bug

[issue33080] regen-importlib is causing build races against other regen-all targets in Makefile.pre.in

2018-03-15 Thread Alexander Kanavin
New submission from Alexander Kanavin : You can see here: https://github.com/python/cpython/blob/master/Makefile.pre.in#L708 that regen-importlib is building a binary from .o files which are built from .c and .h files, which are, at the same time, regenerated by other regen- targets. This

[issue33221] Add stats for asyncio task usage.

2018-04-03 Thread Alexander Mohr
Alexander Mohr added the comment: another idea would be neat to somehow plug into the stats so people can trace (ex: via datadog tracing) "slow" tasks, similarly to things that are outputted via PYTHONASYNCIODEBUG, however in this case be able to trace slow steps and also slow a

[issue31033] Add argument to .cancel() of Task and Future

2018-04-04 Thread Alexander Mohr
Alexander Mohr added the comment: I was about to open a new bug, but I think my idea overlaps with this one. From what I understand there are two ways to cancel tasks: 1) calling task.cancel() 2) explicitly raising a CancelledError with #2 you can get a traceback by catching the exception

[issue33232] Segmentation fault in operator.attrgetter

2018-04-05 Thread Alexander Sturm
New submission from Alexander Sturm : This issue can be reproduced using Python 3.5.2 - 3.5.5 compiled with VS2015 (tested both the official Python builds as well as local builds using VS2015 Version 14.0.25431.01 Update 3) on 64-bit Windows. To reproduce, run the attached file (or python -c

[issue33232] Segmentation fault in operator.attrgetter

2018-04-05 Thread Alexander Sturm
Change by Alexander Sturm : Added file: https://bugs.python.org/file47522/annotated_dissasembly.txt ___ Python tracker <https://bugs.python.org/issue33232> ___ ___ Pytho

[issue33232] Segmentation fault in operator.attrgetter

2018-04-05 Thread Alexander Sturm
Alexander Sturm added the comment: As mentioned, the code is compiled correctly by VS2017 - both in 3.5.5 and 3.6.5. So I cannot reproduce the issue with Python 3.6.5. Would it be possible to switch the default platform toolset used to compile Python 3.5 in the next source release to v141

[issue13940] imaplib: Mailbox names are not quoted

2018-04-06 Thread Alexander Harkness
Change by Alexander Harkness : -- pull_requests: +6103 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue13940> ___ ___ Python-bugs-lis

[issue13940] imaplib: Mailbox names are not quoted

2018-04-06 Thread Alexander Harkness
Change by Alexander Harkness : -- nosy: +bearbin ___ Python tracker <https://bugs.python.org/issue13940> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5305] imaplib should support international mailbox names

2018-04-06 Thread Alexander Harkness
Alexander Harkness added the comment: ssu -- nosy: +bearbin ___ Python tracker <https://bugs.python.org/issue5305> ___ ___ Python-bugs-list mailing list Unsub

[issue13940] imaplib: Mailbox names are not quoted

2018-04-08 Thread Alexander Harkness
Alexander Harkness added the comment: Pull Request opened on GH to fix this issue: https://github.com/python/cpython/pull/6395 -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue13

[issue33249] Pickling objects with recursive references and partials fail

2018-04-09 Thread Alexander Neumann
New submission from Alexander Neumann : The code below causes a AttributeError: 'Event' object has no attribute 'name' It seems like the entries of `Machine.events` are not available during `__setstate__`. However, the behaviour depends on the Python version. For Pyth

[issue33249] Unpickling objects with recursive references and partials fail due to incomplete state passed to __setstate__

2018-04-09 Thread Alexander Neumann
Alexander Neumann added the comment: Changed issue title to summarise the actual problem better. -- title: Pickling objects with recursive references and partials fail -> Unpickling objects with recursive references and partials fail due to incomplete state passed to __setstat

[issue33466] Distutils does not support the compilation of Objective-C++ (“.mm”) files

2018-05-11 Thread Alexander Böhn
New submission from Alexander Böhn : Attempting to compile an Objective-C++ source file suffixed “.mm” results in an error complaining about the file extension being unrecognized. -- components: Distutils messages: 316405 nosy: dstufft, eric.araujo, fish2000 priority: normal severity

[issue33466] Distutils does not support the compilation of Objective-C++ (“.mm”) files

2018-05-11 Thread Alexander Böhn
Change by Alexander Böhn : -- keywords: +patch pull_requests: +6453 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33466> ___ ___ Py

[issue33526] hashlib leak on import

2018-05-15 Thread Alexander Mohr
New submission from Alexander Mohr : I'm seeing a lot of leaks via valgrind against the hashlib module. It appears that it's calling OpenSSL_add_all_digests(); on init, and never calling the corresponding EVP_Cleanup on free: https://www.openssl.org/docs/man1.

[issue33526] hashlib leak on import

2018-05-15 Thread Alexander Mohr
Alexander Mohr added the comment: closing as I'm not quite sure this is right -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.

[issue31327] bug in dateutil\tz\tz.py

2017-10-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is this similar to issue 29097? -- ___ Python tracker <https://bugs.python.org/issue31327> ___ ___ Python-bugs-list mailin

[issue31798] abs__file__ in "Lib/site.py"

2017-10-16 Thread Alexander McFarlane
Change by Alexander McFarlane : -- nosy: Alexander McFarlane priority: normal severity: normal status: open title: abs__file__ in "Lib/site.py" ___ Python tracker <https://bugs.python.o

[issue31798] "abs__file__" in "Lib/site.py" fails for modules where "__file__" cannot be assigned a new value

2017-10-16 Thread Alexander McFarlane
New submission from Alexander McFarlane : The pythonnet module clr causes a TypeError when `abs__file__` attempts to run the following line: `m.__file__ = os.path.abspath(m.__file__)` Reproduction: ``` import clr cls.__file__ = 'example' ``` -- components: +Library (

[issue31798] "abs__file__" in "Lib/site.py" fails for modules where "__file__" cannot be assigned a new value

2017-10-16 Thread Alexander McFarlane
Change by Alexander McFarlane : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue31798> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue31798] `site.abs__file__` fails for modules where `__file__` cannot be modified

2017-10-16 Thread Alexander McFarlane
Change by Alexander McFarlane : -- title: "abs__file__" in "Lib/site.py" fails for modules where "__file__" cannot be assigned a new value -> `site.abs__file__` fails for modules where `__file__` cannot be modified _

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2017-10-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Let me look into this. It's been a while ... -- ___ Python tracker <https://bugs.python.org/issue28292> ___ ___

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2017-10-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > 1. Raise OverflowError at both ends (revert issue15421patch). The method > becomes unusable for two extreme months. The issue 15421 patch was committed in 85710a40e7e9eab86060bedc3762ccf9ca

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2017-10-22 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- keywords: +patch pull_requests: +4049 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2017-10-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I submitted PR 4079. Serhiy, please review the logic and if this matches what we discussed a year ago, I will add the docs and NEWS entries. -- ___ Python tracker <https://bugs.python.org/issue28

[issue31800] datetime.strptime: Support for parsing offsets with a colon

2017-10-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that #5288 relaxed the whole number of minutes restriction on UTC offsets. Since the goal is to be able to parse the output of .isoformat(), I think %z should accept sub-minute offsets. -- nosy: +belopolsky

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2017-10-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset fdd9b217c60b454ac6a82f02c8b0b551caeac88b by Alexander Belopolsky in branch 'master': Closes bpo-28292: Implemented Calendar.itermonthdays3() and itermonthdays4(). (#4079) https://github.com/python/cpyt

[issue28281] Remove year limits from calendar

2017-10-24 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- pull_requests: +4079 stage: commit review -> patch review ___ Python tracker <https://bugs.python.org/issue28281> ___ ___ Py

[issue28281] Remove year limits from calendar

2017-10-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I submitted Mark's patch unchanged as PR 4109. If we don't hear from Mark, I will address my own comments and merge. -- ___ Python tracker <https://bugs.python.o

[issue31803] time.clock() should emit a DeprecationWarning

2017-10-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to add my voice to MAL's objections. I was not aware of time.clock() depreciation before Victor brought this issue to my attention. time.clock() is a very well-known API eponymous to a venerable UNIX system call. Its limitation

[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

2017-10-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am going to merge PR 4015 submitted for issue 31800. That issue asks to make %z strptime format accept offsets with : separators. Given that a similar feature has been added to glibc several years ago, I don't see much need for bikeshedding.

[issue31800] datetime.strptime: Support for parsing offsets with a colon

2017-10-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 32318930da70ff03320ec50813b843e7db6fbc2e by Alexander Belopolsky (Mario Corchero) in branch 'master': Closes bpo-31800: Support for colon when parsing time offsets (#4015) https://github.com/python/cpyt

[issue28281] Remove year limits from calendar

2017-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 66c88ce30ca2b23daa37038e1a3c0de98f241f50 by Alexander Belopolsky in branch 'master': Closes bpo-28281: Remove year (1-) limits on the weekday() function. (#4109) https://github.com/python/cpyt

[issue25729] update pure python datetime.timedelta creation

2017-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Brian, is this still relevant? If so, cab you submit a pull request? -- versions: +Python 3.7 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue25

[issue31894] test_timestamp_naive failed on NetBSD

2017-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't have access to NetBSD and this looks like a bug in the system implementation of localtime. The timestamp method is implemented by probing system localtime in the vicinity of UTC timestamp. What does time.localtime(14400) with these TZ set

[issue31894] test_timestamp_naive failed on NetBSD

2017-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I hate this long form display! Next time please use time.localtime(14400)[:]. Do you agree that this is a system bug? On my Mac, I get $ python -c 'import time; print(time.localtime(14400)[:])' (1969, 12, 31, 23, 0, 0,

[issue31894] test_timestamp_naive failed on NetBSD

2017-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I posted a wrong command, but fortunately I am in New York, so it did not matter $ TZ=EST+05EDT,M3.2.0,M11.1.0 python -c 'import time;print(time.localtime(14400)[:])' (1969, 12, 31, 23, 0, 0,

[issue31894] test_timestamp_naive failed on NetBSD

2017-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am not sure. This is a system bug and we often provide work-arounds or even reimplementations of buggy time functions in the time and datetime modules. Whether or not this is something that is worth fixing is a question for the affected NetBSD users

[issue31894] test_timestamp_naive failed on NetBSD

2017-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The documentation only says “datetime.timestamp” calls “mktime” Indeed. See <https://docs.python.org/3/library/datetime.html#datetime.datetime.timestamp>. This is a documentation bug. Since 3.6 the timestamp does not call mktime. In fac

[issue31995] Set operations documentation error

2017-11-09 Thread Alexander Mentis
New submission from Alexander Mentis : Documentation for set/frozenset says |=, &=, -=, ^= operators do not apply to immutable instances of frozenset. This is incorrect. These operators can be used on frozenset; however, they behave differently on frozenset than on set. When used with

[issue31995] Set operations documentation error

2017-11-10 Thread Alexander Mentis
Alexander Mentis added the comment: I don't think you understood my bug. That the augmented assignment operators work differently for set and frozenset is not the issue. The issue is that the documentation says that the |=, &=, -=, ^= operators do not apply to immutable ins

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2017-11-27 Thread Alexander Prokhorov
Change by Alexander Prokhorov : -- nosy: +Alexander Prokhorov ___ Python tracker <https://bugs.python.org/issue30256> ___ ___ Python-bugs-list mailing list Unsub

[issue32195] datetime.strftime with %Y no longer outputs leading zeros

2017-12-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Isn't this a duplicate of issue 13305? -- status: pending -> open ___ Python tracker <https://bugs.python.org

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2017-12-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The better is the enemy of the good here. Given the history of this issue, I would rather accept a well documented restrictive parser than wait for a more general code to be written. Note that we can always relax the parsing rules in the future

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2017-12-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: +1 on what Paul said. Mathieu, the goal for 3.7 will be to get Paul's PR merged. It will be great if you could help in reviewing it. We can return to the features in your PR during the 3.8 development

[issue32267] strptime misparses offsets with microsecond format

2017-12-12 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue32267> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2017-12-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 09dc2f508c8513e0466a759cc27a09108c1e55c2 by Alexander Belopolsky (Paul Ganssle) in branch 'master': bpo-15873: Implement [date][time].fromisoformat (#4699) https://github.com/python/cpython/commit/09dc2f508c8513e0466a759cc27a09

[issue32448] subscriptable

2017-12-29 Thread Alexander Mohr
New submission from Alexander Mohr : Currently subscriting a attribute that's None reports the following: >>> class Foo: pass >>> Foo.organizer = None >>> Foo.organizer['start'] Traceback (most recent call last): File "", line 1, in Typ

[issue32448] subscriptable

2017-12-30 Thread Alexander Mohr
Alexander Mohr added the comment: oh for second example I meant something like this: >>> class Foo: pass >>> Foo.organizer = None >>> Foo.blah = Foo >>> Foo.blah.organizer = None >>> Foo.blah.organizer

[issue32522] Add precision argument to datetime.now

2018-01-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Maybe __round__ can be generalized to take a timedelta instead of ndigits? For some related prior art, take a look at <http://code.kx.com/q/ref/arith-integer/#xbar>. -- ___ Python tracker

[issue32522] Add precision argument to datetime.now

2018-01-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In my experience, when dealing with temporal data truncation (rounding towards -infinity) is more useful than any other form of rounding. See also issue 19475. -- ___ Python tracker <https://bugs.python.

[issue32522] Add precision argument to datetime.now

2018-01-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The problem that I have with the round/truncate proposal is that it is not general enough. Days, hours, minutes etc. are just arbitrary intervals that became popular for obscure historical and astronomical reasons. In practice, you are as likely to

[issue32522] Add precision argument to datetime.now

2018-01-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I think that a "truncate to rrule" function is *way* beyond the scope of the > standard library I agree and I did not propose that. What I said was that in the process of implementing truncate to rrule in dateutil you may encou

[issue32522] Add precision argument to datetime.now

2018-01-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > replacing all elements of a datetime below a certain level is a very common > idiom This can be accomplished rather efficiently by truncating a time tuple: >>> t = datetime.now() >>> datetime(*t.timetuple()[:6]) datetime.dat

[issue32522] Add precision argument to datetime.now

2018-01-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am about +0 on adding a keyword argument to datetime.now. Note that as I wrote in issue 19475 (msg202242), "precision" may be a misleading name because python makes no guarantee about the precision of the computer clock. Still, this feat

[issue32522] Add precision argument to datetime.now

2018-01-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > (And, honestly, `dateutil` would provide a version-independent backport > anyway). Why not start with that? Remember: python standard library is where code goes to die. By implementing this feature in dateutil you will not be tied to rela

[issue32267] strptime misparses offsets with microsecond format

2018-01-09 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-05-16 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker <https://bugs.python.org/issue32604> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33565] strange tracemalloc results

2018-05-17 Thread Alexander Mohr
Change by Alexander Mohr : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue33565> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue33565] strange tracemalloc results

2018-05-17 Thread Alexander Mohr
New submission from Alexander Mohr : while investigating https://github.com/boto/botocore/issues/1464 I used tracemalloc (like I've done before in 3.5.2) to try to figure out where the leak was. To my surprise tracemalloc listed stacks that didn't make any sense. Strangest exam

[issue33565] strange tracemalloc results

2018-05-18 Thread Alexander Mohr
Alexander Mohr added the comment: here's a version that tries to do something similar but does not reproduce the issue -- Added file: https://bugs.python.org/file47602/tracemalloc_test2.py ___ Python tracker <https://bugs.python.org/is

[issue33565] strange tracemalloc results

2018-05-18 Thread Alexander Mohr
Alexander Mohr added the comment: I realize it doesn't track leaks, it's a tool to help find leaks when used correctly :) This example should be similar to using the compare snapshots mechanism as I start tracking from a stable point (several iterations in after a gc), and then

[issue33579] calendar.timegm not always an inverse of time.gmtime

2018-05-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I was able to reproduce this issue on Linux as follows >>> import time, calendar, os >>> os.environ['TZ'] = 'right/UTC' # "right" timezones account for leap seconds >>> time.tzset() >>>

[issue33541] Remove private and apparently unused __pad function

2018-05-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 89a25ce4fdb9c2a1a59d8cbfc498a2614b98e9ae by Alexander Belopolsky (Mario Corchero) in branch 'master': bpo-33541: Remove unused __pad function (GH-4377) https://github.com/python/cpython/commit/89a25ce4fdb9c2a1a59d8cbfc498a2

[issue33541] Remove private and apparently unused __pad function

2018-05-20 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33565] strange tracemalloc results

2018-05-20 Thread Alexander Mohr
Alexander Mohr added the comment: so based on my last comment I just realized we could easily see if something was amiss by comparing results from python 3.5.2 to 3.6.5 and low and behold the callstack in question does not appear in the tracemalloc results from 3.5.2

<    15   16   17   18   19   20   21   22   23   24   >