[issue30177] pathlib.resolve(strict=False) only includes first child

2017-04-26 Thread Michael Shuffett
New submission from Michael Shuffett: According to the documentation https://docs.python.org/3/library/pathlib.html#pathlib.Path.resolve If strict is False, the path is resolved as far as possible and any remainder is appended without checking whether it exists. The current behavior is not

[issue30221] Deprecate assertNotAlmostEqual

2017-05-01 Thread Michael Foord
Michael Foord added the comment: I agree it's not *very* useful, but I don't see any benefit in getting rid of it either. -- ___ Python tracker <http://bugs.python.o

[issue26904] Difflib quick_ratio() could use Counter()

2017-05-15 Thread Michael Cuthbert
Michael Cuthbert added the comment: Poking to see if there's still interest in getting this into 3.7. Thanks! -- versions: +Python 3.7 -Python 3.6 ___ Python tracker <http://bugs.python.org/is

[issue17446] doctest test finder doesnt find line numbers of properties

2017-05-15 Thread Michael Cuthbert
Michael Cuthbert added the comment: just poking to see if this patch is worth trying to get into 3.7 -- versions: +Python 3.7 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue17

[issue30537] Using PyNumber_AsSsize_t in itertools.islice

2017-06-01 Thread Michael Seifert
New submission from Michael Seifert: In a question on StackOverflow (https://stackoverflow.com/questions/44302946/itertools-does-not-recognize-numpy-ints-as-valid-inputs-on-python-3-6) it was mentioned that numpys scalars cannot be used as index for `itertools.islice`. The reason for this

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-02-26 Thread Michael Sullivan
Change by Michael Sullivan : -- nosy: +msullivan ___ Python tracker <https://bugs.python.org/issue35975> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-03-04 Thread Michael Felt
Michael Felt added the comment: I see I already asked howto better utilize this info: ConnectionRefusedError: [Errno 79] Connection refused Warning -- files was modified by test_multiprocessing_fork Before: [] After: ['core'] -- so, more specific -- which module, or file, is

[issue36210] ncurses versus cursus integration - platform differences and defaults

2019-03-06 Thread Michael Felt
New submission from Michael Felt : Only marking Python3.8, but this is a historical issue I have ignored as long as possible. There are many - ancient and recent issues open around the extension module _curses - and over the years it appears many assumptions have come into the code (such as

[issue36210] ncurses versus cursus integration - platform differences and defaults

2019-03-06 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +12197 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36210> ___ ___ Py

[issue35704] On AIX, test_unpack_archive_xztar fails with default MAXDATA settings

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to 3.7 and 3.6 please? -- versions: +Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue35

[issue34720] Fix test_importlib.test_bad_traverse for AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to 3.6 and 3.7 please? -- versions: +Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue34

[issue34720] Fix test_importlib.test_bad_traverse for AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: could this be backported to versions 3.7, and if applicable, to version 3.6 -- ___ Python tracker <https://bugs.python.org/issue34

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to version 3.6? -- versions: +Python 3.6 ___ Python tracker <https://bugs.python.org/issue35

[issue34490] transport.get_extra_info('sockname') of test_asyncio fails on AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to Version 3.6? -- versions: +Python 3.6 ___ Python tracker <https://bugs.python.org/issue34

[issue34711] Lib/http/server.py: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to Version 3.7 and 3.6? -- versions: +Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue34

[issue11192] test_socket error on AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to Version 3.7 and 3.6 (I do not expect it to be backported to 2.7, but I had mistakenly removed it 2.7 when I changed it to 3.8 - and should have added 3.6 and 3.7 then). -- versions: +Python 2.7, Python 3.6, Python 3.7

[issue34373] test_time errors on AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this alos be backported to Version 3.7 and 3.6 - thx! -- versions: +Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue34

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this be backported to version 3.7? -- ___ Python tracker <https://bugs.python.org/issue34347> ___ ___ Python-bugs-list m

[issue34711] Lib/http/server.py: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory

2019-03-11 Thread Michael Felt
Michael Felt added the comment: On 11/03/2019 09:42, Stéphane Wirtel wrote: > Stéphane Wirtel added the comment: > > Hi Michael, > > I think no, because 3.6 is in security mode. Clear reason. Maybe makes the baclport to 3.7 more opportune. Thx for the reply! > >

[issue34373] test_time errors on AIX

2019-03-11 Thread Michael Felt
Michael Felt added the comment: On 10/03/2019 19:43, Michael Felt wrote: > Michael Felt added the comment: > > Could this alos be backported to Version 3.7 and 3.6 - thx! As 3.6 is in security mode - I guess only 3.7 then. > -- > versions: +Python

[issue11192] test_socket error on AIX

2019-03-11 Thread Michael Felt
Michael Felt added the comment: On 10/03/2019 19:40, Michael Felt wrote: > Michael Felt added the comment: > > Could this also be backported to Version 3.7 and 3.6 (I do not expect it to > be backported to 2.7, but I had mistakenly removed it 2.7 when I changed it > to 3.8 -

[issue34490] transport.get_extra_info('sockname') of test_asyncio fails on AIX

2019-03-11 Thread Michael Felt
Michael Felt added the comment: On 10/03/2019 19:37, Michael Felt wrote: > Michael Felt added the comment: > > Could this also be backported to Version 3.6? Ignore this since 3.6 is in security mode. > > -- > versions: +Python 3.6 > >

[issue34720] Fix test_importlib.test_bad_traverse for AIX

2019-03-11 Thread Michael Felt
Michael Felt added the comment: On 10/03/2019 19:31, Michael Felt wrote: > Michael Felt added the comment: > > could this be backported to versions 3.7, and if applicable, to version 3.6 Only 3.7 - As 3.6 is in security mode. > > -- > > ___

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-03-11 Thread Michael Felt
Michael Felt added the comment: On 10/03/2019 19:34, Michael Felt wrote: > Michael Felt added the comment: > > Could this also be backported to version 3.6? > > -- > versions: +Python 3.6 Not to worry: As 3.6 is in security mode. > >

[issue35704] On AIX, test_unpack_archive_xztar fails with default MAXDATA settings

2019-03-11 Thread Michael Felt
Michael Felt added the comment: On 10/03/2019 19:25, Michael Felt wrote: > Michael Felt added the comment: > > Could this also be backported to 3.7 and 3.6 please? Only 3.7 I guess - As 3.6 is in security mode. > > -- > versions: +Pyth

[issue35704] On AIX, test_unpack_archive_xztar fails with default MAXDATA settings

2019-03-12 Thread Michael Felt
Change by Michael Felt : -- versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue35704> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34373] test_time errors on AIX

2019-03-12 Thread Michael Felt
Change by Michael Felt : -- versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue34373> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11192] test_socket error on AIX

2019-03-12 Thread Michael Felt
Change by Michael Felt : -- versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue11192> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34720] Fix test_importlib.test_bad_traverse for AIX

2019-03-12 Thread Michael Felt
Change by Michael Felt : -- versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue34720> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-03-18 Thread Michael Saah
Michael Saah added the comment: While I agree with Victor that reworking time.strftime to be more portable is a great idea, this issue was never about that; it was about making exception throwing behavior consistent across datetime's two strftime implementations (python and C), and

[issue36366] Patcher stop method should be idempotent

2019-03-19 Thread Michael Foord
Michael Foord added the comment: It's almost certainly an oversight rather than a design decision. I'd be happy with the change you suggest Karthikeyan. -- ___ Python tracker <https://bugs.python.o

[issue10514] configure does not create accurate Makefile on AIX

2019-03-19 Thread Michael Felt
Michael Felt added the comment: >From memory I do not believe this is still a problem, at least on Python3. There was recently a different issue (do not recall the #) where there was an issue with CXX regardless of compiler. In any case, the apporach I would recommend would be to export

[issue36273] test_thread leaks a core dump on PPC64 AIX 3.x

2019-03-27 Thread Michael Felt
Michael Felt added the comment: I have looked at this briefly. I would consider it a regression, or a spurious incident as the bot run before (https://buildbot.python.org/all/#/builders/10/builds/2223) and after (https://buildbot.python.org/all/#/builders/10/builds/2225) do not show this

[issue34498] Python 3.7 breaks on singledispatch_function.register(pseudo_type), which Python 3.6 accepted

2019-03-28 Thread Michael Selik
Michael Selik added the comment: +1 for this use case. Until it's resolved, perhaps there should be a note in the singledispatch docs that types from the ``typing`` module should not be used? -- nosy: +selik ___ Python tracker &

[issue36485] Add a way to clear all caches

2019-03-30 Thread Michael Foord
Michael Foord added the comment: An auto-magic cache clearing mechanism is really tempting. I tend to agree with Raymond though, if code needs and progress a cache clearing mechanism it should be treated and accessible. They're are probably some problematic caches still within uni

[issue36485] Add a way to clear all caches

2019-03-30 Thread Michael Foord
Michael Foord added the comment: > On 30 Mar 2019, at 23:48, Michael Foord wrote: > > > Michael Foord added the comment: > > An auto-magic cache clearing mechanism is really tempting. I tend to agree > with Raymond though, if code needs and progress a cache

[issue36485] Add a way to clear all caches

2019-03-30 Thread Michael Foord
Michael Foord added the comment: Tests codify knowledge about the system under test, so it doesn't matter that the test suite has to know how to clear caches. It's specifically a good thing that the test writer knows which caches exist and need clearing, and how to do it. The ha

[issue30587] Mock with spec object does not ensure method call signatures

2019-04-01 Thread Michael Foord
Michael Foord added the comment: Spec objects are currently dumb. It would be a new feature to add signature validation to them. I think it would be a useful feature though as currently autospec sort of obsoletes spec objects whilst being more heavyweight and harder to use. I think it

[issue36210] correct AIX logic in setup.py for non-existant optional extensions

2019-04-01 Thread Michael Felt
Michael Felt added the comment: Updating this to not only correct the failure of 3rd-party library ncurses (while IBM curses builds with no issue) to also stop announcing that the optional modules osaudiodev and spwd have not been built. Neither are supported on AIX - so they will never be

[issue36210] correct AIX logic in setup.py for non-existant optional extensions

2019-04-01 Thread Michael Felt
Change by Michael Felt : -- versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue36210> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36210] correct AIX logic in setup.py for (non-existant) optional extensions

2019-04-01 Thread Michael Felt
Change by Michael Felt : -- title: correct AIX logic in setup.py for non-existant optional extensions -> correct AIX logic in setup.py for (non-existant) optional extensions ___ Python tracker <https://bugs.python.org/issu

[issue36503] remove references to aix3 and aix4 in \*.py

2019-04-02 Thread Michael Felt
New submission from Michael Felt : sys.platform returns "aix[3|4|4|5|6|7" AIX 3 and AIX 4 are no longer around, in any supported form, so references to these specific releases is pointless. This will remove the (two) places where they are still referenced. -- compone

[issue36503] remove references to aix3 and aix4 in \*.py

2019-04-02 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +12587 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36503> ___ ___ Py

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-10 Thread Michael Felt
New submission from Michael Felt : This is something that probably shouts - boring - but back in 2012 it was a hot topic for linux2 and linux3. Maybe - as far back as 1996 (when AIX4 was new) "aix3" and "aix4" made sense. Whether that is true, or not - is pointless thes

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-10 Thread Michael Felt
Michael Felt added the comment: On 10/04/2019 17:05, STINNER Victor wrote: > STINNER Victor added the comment: > > I like the idea. Would you like to propose a patch? I suggest to only make > such change in Python 3.8 and properly document it. > > --

[issue36579] test_venv: test_with_pip() hangs on PPC64 AIX 3.x

2019-04-10 Thread Michael Felt
Michael Felt added the comment: On 09/04/2019 18:51, STINNER Victor wrote: > New submission from STINNER Victor : > > https://buildbot.python.org/all/#/builders/10/builds/2389 > > 0:45:36 [412/420/1] test_venv crashed (Exit code 1) > Timeout (0:15:00)! > Thread 0x0

[issue28009] core logic of uuid.getnode() is broken for netstat

2019-04-11 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +12704 ___ Python tracker <https://bugs.python.org/issue28009> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-11 Thread Michael Felt
Michael Felt added the comment: Was: root@x064:[/data/prj/python/python3-3.8]./python Python 3.8.0a3+ (heads/bpo-28009-2-dirty:2fb2bc81c3, Apr 11 2019, 07:09:55) [C] on aix6 Type "help", "copyright", "credits" or "license" for more informatio

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-11 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +12714 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36588> ___ ___ Py

[issue36579] test_venv: test_with_pip() hangs on PPC64 AIX 3.x

2019-04-12 Thread Michael Felt
Michael Felt added the comment: On 10/04/2019 18:49, STINNER Victor wrote: > STINNER Victor added the comment: > > "I am looking into this - but as it seems to have gone away again - is > there a simple way to get that code back, and/or see what the diff is, > before/badr

[issue36579] test_venv: test_with_pip() hangs on PPC64 AIX 3.x

2019-04-12 Thread Michael Felt
Michael Felt added the comment: On 12/04/2019 10:28, Michael Felt wrote: > Michael Felt added the comment: > > On 10/04/2019 18:49, STINNER Victor wrote: >> STINNER Victor added the comment: >> >> "I am looking into this - but as it seems to have gone away aga

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-12 Thread Michael Felt
Michael Felt added the comment: On 12/04/2019 16:16, STINNER Victor wrote: > STINNER Victor added the comment: > > Do you want to work on a change to replace sys.platform.startswith("aix") to > cleanup the stdlib and tests? Not sure if it'

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-12 Thread Michael Felt
Michael Felt added the comment: On 12/04/2019 17:34, STINNER Victor wrote: > STINNER Victor added the comment: > >> But, should I just continue standard practice (sys.platform), or would >> this be a moment to move towards platform.system() (i.e., set the >> exampl

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-13 Thread Michael Felt
New submission from Michael Felt : Back in 2012 (issue12326 and issue12795), and just recently (issue36588) sys.platform has been modified (and documented) to not return the platform version. Additionally, the recommendation is to use the form sys.platform.startswith() - to continue to be

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-13 Thread Michael Felt
Michael Felt added the comment: On 12/04/2019 23:16, Michael Felt wrote: > Agreed, in case of doubt - leave alone (never change a winning team). > > And, to make it a short reply - I'll get started, and we see where it > leads us. I opened issue36624 (https://bugs.pyth

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-14 Thread Michael Felt
Michael Felt added the comment: I took a peak at test.support. a) I see that while many tests import test.support, or from test.support import - not all tests use this. b) I see that only 35 .py files in Lib/test have the string sys.platform.startswith, and there are 76 files that have

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-14 Thread Michael Felt
Michael Felt added the comment: On 14/04/2019 18:04, Michael Felt wrote: > Is this a good way to get started? So, as an example - seems to be many attributes in test/support/__init__.py diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 5bd15a2..e20567f 100

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-15 Thread Michael Felt
Michael Felt added the comment: On 15/04/2019 11:50, STINNER Victor wrote: > STINNER Victor added the comment: > > support.is_android has two flaws: > > * it's a constant: it must be spelled as UPPER CASE > * I dislike "is_" prefix: "MS_WINDOWS" c

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-15 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +12768 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36624> ___ ___ Py

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-16 Thread Michael Felt
Michael Felt added the comment: OK. I have been chewing my bone. I hope not too much indigestion. Who has a pointer for the antacid? Getting base branch for PR ... origin/master Getting the list of files that have been added/changed ... 72 files Fixing Python file whitespace ... Traceback

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-16 Thread Michael Felt
Michael Felt added the comment: Never mind - typos in the files I did work on. iow, I found a way to get the filename, and am cleaning up the errors. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36273] test_thread leaks a core dump on PPC64 AIX 3.x

2019-04-17 Thread Michael Felt
Michael Felt added the comment: On 17/04/2019 14:02, STINNER Victor wrote: > STINNER Victor added the comment: > > The same bug is back: > https://buildbot.python.org/all/#/builders/10/builds/2443 > > Warning -- files was modified by test_threading > Before:

[issue36696] possible multiple regressions on AIX

2019-04-22 Thread Michael Felt
New submission from Michael Felt : My AIX bot has been very consistent - only the multiprocessing tests failing when run by bot, but 4 or 5 days ago 3 to 5 additional tests - that, afaik, had never failed before, are now failing. These may also be compiler related specifics, or the presence

[issue36696] possible multiple regressions on AIX

2019-04-23 Thread Michael Felt
Michael Felt added the comment: On 22/04/2019 14:15, Inada Naoki wrote: > Inada Naoki added the comment: > > Maybe, XLC doesn't support -D name. -Dname should be used instead. Excellent hint: the diff between bot run 1013 and run 1014 reveals: diff --git a/setup.py b/

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-23 Thread Michael Felt
Michael Felt added the comment: On 22/04/2019 21:14, Steve Dower wrote: > Steve Dower added the comment: > > I like this, though I don't like using the platform module here and would > prefer sys.platform to be canonical (until there's a need to differentiate - > e

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-25 Thread Michael Felt
Michael Felt added the comment: On 23/04/2019 17:53, Steve Dower wrote: > Steve Dower added the comment: > >> Being 'runtime' rather than 'buildtime' seemed more precise - tests that >> are not meant to be build-time dependent use run-time status whil

[issue14568] HP-UX local libraries not included

2019-04-26 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: Please close because there is actually no /usr/local on HP-UX, System V does use /opt, not /usr/local. -- ___ Python tracker <https://bugs.python.org/i

[issue36734] Modules/faulthandler.c does not compile on HP-UX due to bpo-35214/1584a0081500d35dc93ff88e5836df35faf3e3e2

2019-04-26 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: > /opt/aCC/bin/aCC -Ae -O -I./Include/internal -I. -I./Include > -I/opt/ports/include -I/opt/ports/include -DPy_BUILD_CORE_BUILTIN -c > ./Modules/faulthandler.c -o Modules/faulthandler.o > "./Modules/fau

[issue36734] Modules/faulthandler.c does not compile on HP-UX due to bpo-35214/1584a0081500d35dc93ff88e5836df35faf3e3e2

2019-04-30 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: The memset() works as expected and compiles for me. -- ___ Python tracker <https://bugs.python.org/i

[issue36734] Modules/faulthandler.c does not compile on HP-UX due to bpo-35214/1584a0081500d35dc93ff88e5836df35faf3e3e2

2019-04-30 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: I do not know because I haven't really tested that branch. My HP-UX PRs (https://github.com/python/cpython/pulls/michael-o) are still open and apply to master currently. We (you and me) agreed some time ago, that we go m

[issue36758] configured libdir not correctly passed to Python executable

2019-04-30 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: I do compile Python from master on HP-UX with aCC: # echo $LDFLAGS $CPPFLAGS -L/opt/ports/lib/hpux32 -I/opt/ports/include UNIX_STD=1998 LDFLAGS="$LDFLAGS -lreadline" CPPFLAGS="-I$PREFIX/include/ncurses $CPPFLAGS&

[issue27497] csv module: Add return value to DictWriter.writeheader

2019-05-06 Thread MICHAEL BLAHAY
MICHAEL BLAHAY added the comment: I would like to drive this to conclusion since it appears this issue has not had any real activity in a while. First thing that needs to be determined is whether this enhancement is still desirable. Who can answer this? -- nosy: +MICHAEL BLAHAY

[issue27497] csv module: Add return value to DictWriter.writeheader

2019-05-06 Thread MICHAEL BLAHAY
MICHAEL BLAHAY added the comment: Ah ha, so there is. I'm glad this one will get closed out. Sorry for noob mistake. -- ___ Python tracker <https://bugs.python.org/is

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2019-05-06 Thread MICHAEL BLAHAY
MICHAEL BLAHAY added the comment: I will work on this -- nosy: +MICHAEL BLAHAY ___ Python tracker <https://bugs.python.org/issue11698> ___ ___ Python-bugs-list m

[issue36582] collections.UserString encode method returns a string

2019-05-06 Thread MICHAEL BLAHAY
MICHAEL BLAHAY added the comment: I will pick this on up -- nosy: +MICHAEL BLAHAY ___ Python tracker <https://bugs.python.org/issue36582> ___ ___ Python-bug

[issue36582] collections.UserString encode method returns a string

2019-05-06 Thread MICHAEL BLAHAY
MICHAEL BLAHAY added the comment: My mistake, dfortunov is already working on this one. -- ___ Python tracker <https://bugs.python.org/issue36582> ___ ___ Pytho

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2019-05-06 Thread MICHAEL BLAHAY
MICHAEL BLAHAY added the comment: I have been advised to avoid enhancements like this one, so I am setting this back down. Also, this should be relabeled as easy(c). -- ___ Python tracker <https://bugs.python.org/issue11

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-06 Thread Michael Blahay
Michael Blahay added the comment: Here is a test that more explicitly shows the problem. >>> from collections import UserList >>> UserList([0,1,2,3,4,5])[0:2].__class__ >>> It can clearly be seen here that the return type of the slicing operator is list when

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-06 Thread Michael Blahay
Michael Blahay added the comment: The root cause of this issue seems to be the failure to implement type usage in __getitem__ when the deprecated __getslice__ was removed. This is why slicing worked correctly in 2.7, but not the 3.x versions. In 3.8, the __getitem__ method is used to create

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-06 Thread Michael Blahay
Michael Blahay added the comment: It is also worth noting that the definition of UserList moved from Lib/UserList.py in 2.7 to Lib/collections/__init__.py in 3.x -- ___ Python tracker <https://bugs.python.org/issue27

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-06 Thread Michael Blahay
Michael Blahay added the comment: Results from a quick unit test on the proposed changes were positive: >>> from collections import UserList >>> UserList([0,1,2,3,4,5])[0:2].__class__ If you compare this result with the one a couple comments above, you can see that the r

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Michael Blahay
Michael Blahay added the comment: Thank you for bringing up that PR. My team will review and try to find out why it was closed without a merge. -- ___ Python tracker <https://bugs.python.org/issue27

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Michael Blahay
Michael Blahay added the comment: Please note that I am working with Erick Cervantes at PyCon2019 on this issue. -- ___ Python tracker <https://bugs.python.org/issue27

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Michael Blahay
Michael Blahay added the comment: Let it be known that the author of PR 4981 is known as vaultah. He/she personally closed the pull request this morning stating a lack of need to be recognized for the work. Per his/her instructions I am reviewing the changes and incorporating in our

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

2019-05-07 Thread Michael Blahay
Michael Blahay added the comment: Ryan, what are the exact steps to reproduce the problem? This is what I get when I run the code you included: >>> import argparse >>> parser = argparse.ArgumentParser() >>> parser.add_argument('things', nargs=

[issue36849] Native libcurses on HP-UX not properly detected

2019-05-08 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: The module _curses fails to build because curses cannot be found on HP-UX. In this case, it has an unorthodox location: > $ ll /usr/lib/hpux32/libcurses.so lr-xr-xr-x 1 bin bin 17 2018-09-07 15:29 /usr/lib/hpux32/lib

[issue36849] Native libcurses on HP-UX not properly detected

2019-05-08 Thread Michael Osipov
Change by Michael Osipov <1983-01...@gmx.net>: -- keywords: +patch pull_requests: +13099 stage: -> patch review ___ Python tracker <https://bugs.python.or

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-08 Thread Michael Blahay
Change by Michael Blahay : -- pull_requests: +13114 ___ Python tracker <https://bugs.python.org/issue27639> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-08 Thread Michael Blahay
Michael Blahay added the comment: PR 13150, the recreation of PR 4981, was noticed just after I created PR 13169. It was decided to continue forward with PR 13169 since PR 13150 contained changes that were out of scope for BPO-27639 for which it was suspected might have been the cause of

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

2019-05-08 Thread Michael Blahay
Michael Blahay added the comment: Okay, so the expected output after running parse.parse_args([]) is Namespace(['nothing']) -- ___ Python tracker <https://bugs.python.o

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

2019-05-08 Thread Michael Blahay
Michael Blahay added the comment: Ryan, I have reviewed the documentation at https://docs.python.org/3/library/argparse.html#nargs and must admit that there is not a definitive answer that I can see regarding the defined behavior should there be no command line arguments that are in fact

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-09 Thread Michael Blahay
Michael Blahay added the comment: For those that are wondering what is going on with PR 13181 and PR 13203, those are both for back porting the change to 3.7. The auto generated PR 13181 failed for an unknown reason and then the bot deleted the branch so the PR could not be taken any

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

2019-05-10 Thread Michael Blahay
Michael Blahay added the comment: For the purpose of facilitating continuing conversation, here are two tests that contrast the use of * versus REMAINDER import argparse parser = argparse.ArgumentParser() parser.add_argument('foo', nargs=1,default=['none']) parser.add_a

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

2019-05-10 Thread Michael Blahay
Michael Blahay added the comment: Here is another take on the issue, this time illustrated through the lens of optional arguments. import argparse parser = argparse.ArgumentParser() parser.add_argument('--foo', nargs=1,default=['none']) parser.add_argument('--baz&#x

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

2019-05-10 Thread Michael Blahay
Michael Blahay added the comment: With the optional arguments, the determination about whether to use the default value is made based on whether the flag is present or not. When positional arguments are involved, the need for the defaults seems to in part be determined based on whether the

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

2019-05-10 Thread Michael Blahay
Michael Blahay added the comment: Much detail has been provided regarding why the default is ignored when user the REMAINDER option. The desire to add an exception has not. Is there anyone that can provide guidance on whether the combination of: 1. Positional Argument 2. nargs=REMAINDER 3

[issue36878] ast.parse with type_comments=True should allow extra text after # type: ignore

2019-05-10 Thread Michael Sullivan
New submission from Michael Sullivan : Per discussion during the typing summit at PyCon, it would be a good idea to allow extra information to be included in `# type: ignore` comments, in order to allow behavior such as suppressing individual errors (for example, with syntax like `# type

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-10 Thread Michael Blahay
Michael Blahay added the comment: PR 13203 has finally made it through all checks successfully and is now awaiting merging. Please someone pick it up and merge it. Thank you -- ___ Python tracker <https://bugs.python.org/issue27

[issue36878] ast.parse with type_comments=True should allow extra text after # type: ignore

2019-05-10 Thread Michael Sullivan
Change by Michael Sullivan : -- keywords: +patch pull_requests: +13148 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36878> ___ _

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

2019-05-13 Thread Michael Blahay
Michael Blahay added the comment: Ryan, What say you? Will you be satisfied with the addition of a note in the documentation? -- ___ Python tracker <https://bugs.python.org/issue35

<    10   11   12   13   14   15   16   17   18   19   >