[issue36240] Definitions of time

2019-03-11 Thread Paul Ganssle
Paul Ganssle added the comment: I also think it would be ideal to avoid getting into too much detail about the definitions of UTC and GMT in a general sense. Instead, we should probably refer to some better source on the matter and maybe focus on how UTC and GMT are used *in this document

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-03-07 Thread paul j3
Change by paul j3 : -- priority: normal -> high ___ Python tracker <https://bugs.python.org/issue36078> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36085] Enable better DLL resolution

2019-03-05 Thread Paul Moore
Paul Moore added the comment: As someone whose work environment is still Windows 7, I'd prefer it if it were a soft desupport (i.e., we require users to manually ensure that the KB fix is installed, but we don't do anything specific to refuse to install Python on Win7). I'd

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue36145> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2019-02-27 Thread Paul Ganssle
Paul Ganssle added the comment: Oh actually that's my mistake. I can't reproduce the failure in the constructor in the Python version of the module, and also it seems to be fixed in the pure Python version as of at least 3.6: Python 3.6.7 (default, Oct 25 2018, 16:11:17)

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2019-02-27 Thread Paul Ganssle
Paul Ganssle added the comment: I'm not sure if either of these patches got merged, but at some point this was fixed: Python 3.7.2 (default, Feb 9 2019, 13:18:43) [GCC 8.2.1 20181127] on linux Type "help", "copyright", "credits" or "lic

[issue15237] Add capsule API to _decimal

2019-02-27 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue15237> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22194] access to cdecimal / libmpdec API

2019-02-27 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue22194> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-02-27 Thread Paul Ganssle
New submission from Paul Ganssle : In a recent python-dev thread, there was some confusion about how to get something like `timedelta.total_microseconds()`. There is already an existing, supported idiom for this, which is that `timedelta` implements division: td = timedelta(hours=1

[issue35417] Double parenthesis in print function running 2to3 in already correct call

2019-02-27 Thread Paul Ganssle
Paul Ganssle added the comment: > 2to3 is designed as a tool to convert a Python 2 code base to Python 3 at > once. I understand that once the code base is converted, you may want to > revert some unwanted "useless" changes. While this problem is likely to show up beca

[issue36071] Add support for Windows ARM32 in ctypes/libffi

2019-02-26 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch pull_requests: +12084 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36071> ___ ___ Py

[issue36122] Second run of 2to3 continues to modify output

2019-02-26 Thread Paul Ganssle
Paul Ganssle added the comment: Because what's being printed is a tuple, I think it's not exactly the same as issue35417, because in fact this is the correct behavior for 2to3, note that in Python 2: Python 2.7.15 (default, Jul 21 2018, 11:13:03) >>> print 1, 2 1 2 &g

[issue24643] VS 2015 pyconfig.h #define timezone _timezone conflicts with timeb.h

2019-02-24 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue24643> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread paul j3
paul j3 added the comment: By defining a custom 'type' function: def foo(astr): if astr is argparse.SUPPRESS: raise KeyError return astr I get the full traceback 1831 def take_action(action, argument_strings, option_string=None

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread paul j3
paul j3 added the comment: Defaults are handled into two stages. At the start of parsing defaults are added to the Namespace. At the end of parsing intact defaults are evaluated with 'type'. But a nargs='?' positional gets special handling. It matches an empty stri

[issue36071] Add support for Windows ARM32 in ctypes/libffi

2019-02-21 Thread Paul Monson
Change by Paul Monson : -- components: Windows, ctypes nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Add support for Windows ARM32 in ctypes/libffi versions: Python 3.8

[issue36039] Replace append loops with list comprehensions

2019-02-19 Thread Paul Ganssle
Paul Ganssle added the comment: I think I'm -1 on a general project or policy to replace all for-append loops with list comprehensions, but I'm generally positive about individual improvements to the code base, on a case-by-case basis. I can't speak for anyone but myself, but

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35186> ___ ___ Pyth

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue35186> ___ ___ Python-bugs-list mailing list Unsub

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- resolution: -> fixed ___ Python tracker <https://bugs.python.org/issue35186> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36014] test_help_with_metavar broken

2019-02-18 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker <https://bugs.python.org/issue36014> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Paul Ganssle
Paul Ganssle added the comment: I've put *a* fix in there by introducing a new wrapper function. Ideally we would just point the C API at the argument clinic-generated function, but because it takes a single positional argument the argument clinic outputs a METH_O function inste

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +11947 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36025> ___ ___ Py

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Paul Ganssle
New submission from Paul Ganssle : The PyO3 test suite has been breaking since the alpha release of Python 3.8 because PyDateTimeAPI->Date_FromTimeStamp has had a breaking change in its API: https://github.com/PyO3/pyo3/issues/352 I believe this happened when `datetime.date.fromtimest

[issue36004] Add datetime.fromisocalendar

2019-02-17 Thread Paul Ganssle
Paul Ganssle added the comment: The attached PR is more or less fully ready, I think the correct answers to 1, 3 and 4 are that we should go with 3 separate arguments and we should not allow either time components or tz components, at least in this version. In the future, I don't thi

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-17 Thread Paul Moore
Paul Moore added the comment: On Sun, 17 Feb 2019 at 14:12, jt wrote: > subprocess.CalledProcessError: Command > '['C:\\myproject\\tools\\windows\\.python-win\\spen-venv\\Scripts\\pip', > 'install', '--upgrade', 'pip']' returned

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Paul Moore
Paul Moore added the comment: > The whole point of a venv is to give you a separate directory with a "stand > alone" Python. As that's what you just installed with nuget, there's no point > in creating a venv However, shipping a copy of Python with a non-o

[issue36004] Add datetime.fromisocalendar

2019-02-15 Thread Paul Ganssle
Paul Ganssle added the comment: I have a first-pass PR, a few questions to address: 1. Should it take three arguments or a single 3-tuple? (I've gone with 3 arguments) 2. Since all three arguments are required, should we make them positional-only? 3. Should we allow time components i

[issue36004] Add datetime.fromisocalendar

2019-02-15 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +11918 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36004> ___ ___ Py

[issue36004] Add datetime.fromisocalendar

2019-02-15 Thread Paul Ganssle
New submission from Paul Ganssle : Datetime has many methods that "serializes" an instance to some other format - toordinal, timestamp, isoformat, etc. Most methods that "serialize" a datetime have a corresponding method that "deserializes" that method,

[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2019-02-14 Thread Paul Ganssle
Change by Paul Ganssle : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32417] fromutc does not respect datetime subclasses

2019-02-14 Thread Paul Ganssle
Change by Paul Ganssle : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import

2019-02-12 Thread Paul Ganssle
Paul Ganssle added the comment: > @Guido, I recall a while back you explained the value of adding CWD to > sys.path. Would you mind providing some insight here I think bpo-35971 or bpo-13475 are better places to discuss that, because this issue doesn't require CWD to be in th

[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import

2019-02-12 Thread Paul Ganssle
Paul Ganssle added the comment: > One enhancement of this new API is that it now reports the name of the C > function which causes the error. The initial bug report says "Fatal Python > error: init_sys_streams: can't initialize sys standard streams": init_sys_strea

[issue35976] PCBuild file changes for arm32 should be separated from code changes for review

2019-02-11 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch pull_requests: +11855 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35976> ___ ___ Py

[issue35976] PCBuild file changes for arm32 should be separated from code changes for review

2019-02-11 Thread Paul Monson
Change by Paul Monson : -- components: Build, Windows nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: PCBuild file changes for arm32 should be separated from code changes for review type: enhancement versions

[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import

2019-02-11 Thread Paul Ganssle
Paul Ganssle added the comment: @Karthikeyan I would certainly consider this a duplicate of the encodings bug/behavior that you demonstrate. I don't see an existing bug on the tracker for it, though. I think it's pretty clear that the interpreter needs to fail, but it seems

[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import

2019-02-11 Thread Paul Ganssle
Paul Ganssle added the comment: Tested with 3.6 and 2.7 - core dump on 3.6, no core dump on 2.7. The crash on 2.7 goes through a different path, it goes site.py > os.py >= UserDict.py > _abcoll.py > abc.py. That may account for why it's not crashing the in

[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import

2019-02-11 Thread Paul Ganssle
New submission from Paul Ganssle : Just noticed this (tested on Python 3.7 and 3.8): mkdir /tmp/demo cd /tmp/demo cat << EOF > abc.py raise Exception("Hi") EOF PYTHONPATH=: python -c "" This will crash the interpreter with: Fatal P

[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2019-02-09 Thread Paul Ganssle
Paul Ganssle added the comment: This issue and bpo-32417 can be closed now, as they are fixed on master. -- versions: +Python 3.8 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue35

[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch, patch pull_requests: +11803, 11804 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch, patch, patch, patch pull_requests: +11803, 11804, 11805, 11806 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch, patch, patch pull_requests: +11803, 11804, 11806 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch pull_requests: +11803 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35947> ___ ___ Py

[issue35948] update version of libffi in cpython-sources-dep

2019-02-08 Thread Paul Monson
New submission from Paul Monson : libffi needs to be updated to the current version for Windows builds to make it easier to add ARM support -- components: Windows, ctypes messages: 335116 nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity

[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson
New submission from Paul Monson : libffi needs to be updated to the current version for Windows builds to make it easier to add ARM support -- components: Windows, ctypes messages: 335115 nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity

[issue35943] PyImport_GetModule() can return partially-initialized module

2019-02-08 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue35943> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle
Paul Ganssle added the comment: Ah, sorry for the noise, this is a known issue: https://github.com/python/bugs.python.org/issues/12 -- ___ Python tracker <https://bugs.python.org/issue32

[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle
Paul Ganssle added the comment: Hm, when I made the "What's new" issue, it added the same PR to the "Pull requests" 4 times instead of once, and in the history it seems like it *tried* to actually add PR 11790, 11791, 11792 and 11793 (only the first one exists at

[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +11790, 11791, 11792, 11793 ___ Python tracker <https://bugs.python.org/issue32417> ___ ___ Python-bugs-list mailin

[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2019-02-08 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +11794, 11795 ___ Python tracker <https://bugs.python.org/issue35364> ___ ___ Python-bugs-list mailing list Unsub

[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +11790, 11791 ___ Python tracker <https://bugs.python.org/issue32417> ___ ___ Python-bugs-list mailing list Unsub

[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +11790, 11791, 11792 ___ Python tracker <https://bugs.python.org/issue32417> ___ ___ Python-bugs-list mailin

[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2019-02-08 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +11794 ___ Python tracker <https://bugs.python.org/issue35364> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +11790 ___ Python tracker <https://bugs.python.org/issue32417> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24087] Documentation doesn't explain the term "coroutine" (PEP 342)

2019-02-08 Thread Paul Moore
Paul Moore added the comment: I'm OK that the basic glossary item is now covered. I don't know about any of the other issues Martin mentioned. I've closed the issue as my original comment is addressed, but if Martin wants to reopen it to address his concerns, I'm OK

[issue35533] argparse standard error usage for exit / error

2019-02-07 Thread paul j3
paul j3 added the comment: The proposed PR does not address this issue. It just adds comments to the method code, which aren't really needed. The method is short and obvious. We don't need, at this time, to get into questions of whether comments in argparse.py conform to one o

[issue35926] Need openssl 1.1.1 support on Windows for ARM and ARM64

2019-02-06 Thread Paul Monson
New submission from Paul Monson : Need code and test changes to match https://bugs.python.org/issue35740 -- assignee: christian.heimes components: SSL, Windows messages: 334998 nosy: Paul Monson, christian.heimes, paul.moore, steve.dower, tim.golden, zach.ware priority: normal

[issue35705] libffi support is not there for windows on ARM64

2019-02-06 Thread Paul Monson
Change by Paul Monson : -- nosy: +Paul Monson ___ Python tracker <https://bugs.python.org/issue35705> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35740] openssl version 1.1.1 need to be there in cpython-source-deps for windows ARM64

2019-02-06 Thread Paul Monson
Change by Paul Monson : -- nosy: +Paul Monson ___ Python tracker <https://bugs.python.org/issue35740> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35920] Windows 10 ARM32 platform support

2019-02-06 Thread Paul Monson
Change by Paul Monson : -- nosy: +Paul Monson ___ Python tracker <https://bugs.python.org/issue35920> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35893] distutils fails to build extension on windows when it is a package.__init__

2019-02-04 Thread Paul Ganssle
Paul Ganssle added the comment: Well, there's some tentative plan for `setuptools` to completely adopt distutils, so in some sense all distutils bugs are setuptools bugs as well. That said, the reason to report it in setuptools as well is that setuptools still supports Python 2.7, 3.

[issue35893] distutils fails to build extension on windows when it is a package.__init__

2019-02-04 Thread Paul Ganssle
Paul Ganssle added the comment: @Ronald Ah, interesting, I missed that. In my experience, distutils is pretty static and it's not particularly common to merge changes into it. Whether or not this is in scope for distutils, it's definitely in scope for setuptools - do you mind

[issue35893] distutils fails to build extension on windows when it is a package.__init__

2019-02-04 Thread Paul Ganssle
Paul Ganssle added the comment: @Ronald The module you've linked to seems to be using flit and doesn't have any C extensions. Did you change over the build process, or am I missing something? -- ___ Python tracker <https://bu

[issue35893] distutils fails to build extension on windows when it is a package.__init__

2019-02-04 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue35893> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35895] the test suite of pytest failed with 3.8.0a1

2019-02-04 Thread Paul Moore
Paul Moore added the comment: Is this relevant? https://bugs.python.org/issue33416 It's a backward incompatible change to the AST in 3.8 (according to the 3.8 changelog). -- nosy: +paul.moore ___ Python tracker <https://bugs.python.org/is

[issue35533] argparse standard error usage for exit / error

2019-02-03 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker <https://bugs.python.org/issue35533> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-01-28 Thread Paul Ganssle
Paul Ganssle added the comment: I think this is not a bug. bpo-35535 is probably also intended behavior, but that is less certain. The misunderstanding here is that %W does not give you the ISO week number, from the documentation: %W: Week number of the year (Monday as the first day of

[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-01-28 Thread Paul Ganssle
Paul Ganssle added the comment: Possibly related to 35535. -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue35841> ___ ___ Python-bugs-list m

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2019-01-27 Thread Paul Ganssle
Paul Ganssle added the comment: > It seems a little odd to need to pull in a third-party library for this; it > seems far more tempting for me to just do > "datetime.fromisoformat(str.replace('Z', '+00:00'))" instead since I know my > dates are pr

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2019-01-25 Thread Paul Ganssle
Paul Ganssle added the comment: > I can see your point in not causing confusion about what this method is > meant to be used for. In this case, making it easy to explain what it does is less important than making the scope and contract of the function clear so that we don't hav

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2019-01-25 Thread Paul Ganssle
Paul Ganssle added the comment: You can see the discussion in bpo-15873 for the full rationale of why "Z" was omitted - to quote from https://bugs.python.org/issue15873#msg307607 : > We can have further discussion later about what exactly should be supported > in Python 3.

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Paul Moore
Paul Moore added the comment: > The script executable redirects to run `"path\to\python.exe" > "path\to\.exe"`. But if I understood what Steve said, only if path\to\python.exe is a *relative* pathname? --

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Paul Moore
Paul Moore added the comment: Steve - thanks for the clarification. If it's only affecting launching with relative paths, then agreed it's minor (although I do recall recent discussions somewhere about using launchers with relative paths - that use case may need checking, but w

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Paul Moore
Paul Moore added the comment: I'm not particularly happy with the statement that "However, the latter is out of scope here since the entry-point launchers are in distlib." If Python is changing the semantics of __PYVENV_LAUNCHER__ in such a way that it breaks 3rd party code,

[issue35801] venv in 3.7 references python3 executable

2019-01-21 Thread Paul Watson
New submission from Paul Watson : The documentation for venv in Python 3.7 references using `python3` to run venv. I do not find a `python3` executable in the kit. https://docs.python.org/3.7/library/venv.html#module-venv -- assignee: docs@python components: Documentation messages

[issue35723] Add "time zone index" cache to datetime objects

2019-01-14 Thread Paul Ganssle
Paul Ganssle added the comment: > I dislike adding a public API for an optimization. Would it be possible to > make it private? Would it make sense? tzidx => _tzidx. This also would have been my preference, but it is unfortunately not possible because of the way tzinfo works. tzi

[issue35723] Add "time zone index" cache to datetime objects

2019-01-11 Thread Paul Ganssle
Paul Ganssle added the comment: One other thing I might mention here is that I did explore the idea of storing this cache on the tzinfo implementation itself, but it is problematic for a number of reasons: 1. It would either need to use some sort of expiring cache (lru, ttl) or require a

[issue35723] Add "time zone index" cache to datetime objects

2019-01-11 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +11122 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35723> ___ ___ Py

[issue35723] Add "time zone index" cache to datetime objects

2019-01-11 Thread Paul Ganssle
New submission from Paul Ganssle : When examining the performance characteristics of pytz, I realized that pytz's eager calculation of tzname, offset and DST gives it an implicit cache that makes it much faster for repeated queries to .utcoffset(), .dst() and/or .tzname() though the

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-01-10 Thread Paul Ganssle
Paul Ganssle added the comment: I agree with Victor on this. In the future, I'd really like to see us do our best to add cross-platform uniformity to Python's strftime and strptime support. If there really is a platform out there that doesn't support a trailing `%`, I l

[issue8538] Add FlagAction to argparse

2018-12-27 Thread paul j3
paul j3 added the comment: Let me highlight something about https://stackoverflow.com/a/15008806/169947 The original question was how to implement an Action that accepts 'True' or 'False' as an argument. Users often try `type=bool`, which doesn't work because of t

[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2018-12-26 Thread paul j3
paul j3 added the comment: argparse.REMAINDER matches an empty list of arguments, just like '?' and '*'. So they are always 'filled', even by `parse_args([])`. '?' and '*' have some special handling of defaults in this case, see in

[issue35442] Chain of several subcommands in argparse

2018-12-26 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker <https://bugs.python.org/issue35442> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35535] time.strptime() unexpectedly gives the same result for %U and %W for 2018

2018-12-19 Thread Paul Ganssle
Paul Ganssle added the comment: I don't really know what Python was doing in version 2.3, and I don't have immediate access to a Python 2.3 interpreter, but at least for %U and %W, datetime is calling the platform's `strftime` under the hood, so presumably if this is a bu

[issue35535] time.strptime() unexpectedly gives the same result for %U and %W for 2018

2018-12-19 Thread Paul Keating
New submission from Paul Keating : This was originally reported on StackOverflow (53829118) and I believe the poster has found a genuine issue. He reported a problem converting from Python 2.3 to Python 2.7 in which strptime() produced a different result for %U in the two versions. For lack

[issue31727] FTP_TLS errors when use certain subcommands

2018-12-18 Thread Paul Wilkinson
Paul Wilkinson added the comment: This issue does appear to be related to the FTP server (or presumably the SSL library on the FTP server). A test against `test.rebex.net` works with OpenSSL 1.0.1t (on Debian) and LibreSSL 2.2.7 (macOS 10.14.2) while a test against my web host fails on both

[issue34977] Release Windows Store app containing Python

2018-12-08 Thread Paul Moore
Paul Moore added the comment: > Yeah, and these are all essentially my fault (though I documented the > embeddable package relatively well, modulo a few uses I hadn't imagined). > Maybe my holiday writing project can be some better docs for choosing how to > install Python,

[issue34977] Release Windows Store app containing Python

2018-12-07 Thread Paul Moore
Paul Moore added the comment: Thanks for the clarification. > In all the cases I've tested, regular Python install shows up first. If it's > not installed, the Store app shows up much of the time. This feels like the > right design (with the caveat about "much of the

[issue34977] Release Windows Store app containing Python

2018-12-07 Thread Paul Moore
Paul Moore added the comment: > > Steve, assuming that I can access the Store, should I be able to install > > both PSF 3.7.2 and Windows Store 3.7.2 simultaneously? So I could test > > both IDLEs that beginners might install? > > Yes, absolutely. (To be clear, b

[issue32417] fromutc does not respect datetime subclasses

2018-12-07 Thread Paul Ganssle
Paul Ganssle added the comment: > What's the use case for subclassing DateTime? These classes were not designed > with subclassing as a use case in mind. There are several reasons for doing it, of various levels of legitimacy. The overall theme is that people want different beh

[issue32417] fromutc does not respect datetime subclasses

2018-12-07 Thread Paul Ganssle
Paul Ganssle added the comment: Ah, that's my mistake. I have always been under the impression that "Versions" meant "versions affected", not "versions that this needs to be fixed for". I usually just selected the ones where I had verified that it's a

[issue32417] fromutc does not respect datetime subclasses

2018-12-07 Thread Paul Ganssle
Paul Ganssle added the comment: I am somewhat uneasy about backporting this to Python 2.7 because changing the return type of `SomeDateTime + timedelta` could be seen as a breaking change. I have sent a message to the datetime-SIG mailing list about this for more visibility. If it is

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2018-12-07 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: -p-ganssle ___ Python tracker <https://bugs.python.org/issue22005> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2018-12-07 Thread Paul Ganssle
Paul Ganssle added the comment: I do not care enough about this to fight about it. The issue has been open long enough that I do not think it justified the urgency of rushing through a patch just before the release and merging without review, but now that it is in the release of multiple

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2018-12-07 Thread Paul Ganssle
Paul Ganssle added the comment: @Serhiy Any chance we can roll these back before the release so that they can have some time for discussion? I have serious concerns about having to support some Python 2/3 compatibility hack in datetime for the next 6 years. If this is worth doing at all, I

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2018-12-07 Thread Paul Ganssle
Paul Ganssle added the comment: I'm not sure I agree with how this was resolved. We're adding complexity to the datetime unpickler to support unpickling pickles created in Python 2 in Python 3? I also don't really understand the encoding parts of it, but it smells very fishy

[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2018-12-04 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +10143 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35364> ___ ___ Py

[issue32417] fromutc does not respect datetime subclasses

2018-12-04 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +10142 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32417> ___ ___ Py

[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2018-12-04 Thread Paul Ganssle
Paul Ganssle added the comment: Another thing to note: I'm pretty sure this was a mistake in the first place. There are many examples of places where the datetime module was just not designed with inheritance in mind, for example: - issue 32404 / issue 32403 - fromtimestamp not ca

<    5   6   7   8   9   10   11   12   13   14   >