[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-22 Thread Michael Felt
Michael Felt added the comment: On 22/05/2019 10:43, Michael Felt wrote: > 'fe80::1%1' <> 'fe80::1' - ... I am not 'experienced' with IPv6 and scope. >From what I have just read (again) - scope seems to be a way to indicate the interface used (e.g.,

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-22 Thread Michael Felt
Michael Felt added the comment: I do not know if it is that much mode complex. Unless I missed something it seems to be that this bit - needs three lines added after the FREEBSD block - per below: All the other "assurances" are just things that need to be assured. Adding a -D_XXX

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-22 Thread Michael Felt
Michael Felt added the comment: On 22/05/2019 12:22, Michael Felt wrote: > All the other "assurances" are just things that need to be assured. Adding a > -D_XXX to CFLAGS is not all that complex either. Perhaps getting the need for > the flag documented is 'complex&#

[issue37009] Threading and THREAD_SAFE for AIX

2019-05-22 Thread Michael Felt
New submission from Michael Felt : For years Python includes the file /usr/include/pthread.h. The AIX documentation states that this needs to be the first include file included OR the define _THREAD_SAFE needs to be defined. As this may have been true, might still be true, or might have

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

2019-05-22 Thread Michael Sullivan
Michael Sullivan added the comment: I think there will be one more PR to disallow non-ASCII characters immediately after a `# type: ignore`, but otherwise I think this is done -- ___ Python tracker <https://bugs.python.org/issue36

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-22 Thread Michael Felt
Michael Felt added the comment: On 22/05/2019 15:15, Jake Tesler wrote: > Jake Tesler added the comment: > > I will look into whether adding thread_self() for AIX would be simple enough > for this PR. > > -- > > ___ &g

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-22 Thread Michael Felt
Michael Felt added the comment: On 22/05/2019 18:08, STINNER Victor wrote: > STINNER Victor added the comment: > > Michael Felt: it's annoying when you ignore Antoine's comment and my comment. > * https://github.com/python/cpython/pull/13463#issuecomment-494797084 >

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-24 Thread Michael Felt
Michael Felt added the comment: In hindsight, maybe the message could have been better, BUT - is it relevant? commit 413118ebf3162418639a5c4af14b02d26571a02c Author: Michael Felt Date: Fri Sep 14 01:35:56 2018 +0200 Fix test_asyncio for AIX - do not call transport.get_extra_info

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-24 Thread Michael Felt
Michael Felt added the comment: On 24/05/2019 19:59, Erwan Le Pape wrote: > python3 -c 'import socket; print(socket.getaddrinfo("fe80::1%1", 80))'` p.s. I used an actual address: buildbot@x064:[/home/buildbot/aixtools-master]netstat -ni Name  Mtu   Network Address

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-24 Thread Michael Felt
Michael Felt added the comment: On 24/05/2019 19:59, Erwan Le Pape wrote: > python3 -c 'import socket; print(socket.getaddrinfo("fe80::1%1", 80))'` root@x067:[/home/root]python3 -c 'import socket; print(socket.getaddrinfo("fe80::1%1", 80))' [(, , 17,

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

2019-05-24 Thread Michael Blahay
Michael Blahay added the comment: PR 13203 is still waiting for merge -- ___ Python tracker <https://bugs.python.org/issue27639> ___ ___ Python-bugs-list mailin

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-25 Thread Michael Felt
Michael Felt added the comment: No problem with trying out your tests. Sent from my iPhone > On 25 May 2019, at 00:19, Erwan Le Pape wrote: > > > Erwan Le Pape added the comment: > > Thanks for testing that. It's good that you used an actual address because

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-25 Thread Michael Felt
Michael Felt added the comment: On 23/05/2019 18:16, Jake Tesler wrote: > Jake Tesler added the comment: > > Michael Felt - > If you would like some help with adding/building AIX support for this > functionality, tag me, I'd be glad to help out! :) > > -- Th

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

2019-05-26 Thread Michael Blahay
Michael Blahay added the comment: Thank you Mark. Everything for this one is complete. The issue may be closed. -- ___ Python tracker <https://bugs.python.org/issue27

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

2019-05-26 Thread Michael Blahay
Michael Blahay added the comment: Ryan, last chance, do you have any feedback? -- ___ Python tracker <https://bugs.python.org/issue35495> ___ ___ Python-bug

[issue36913] Missing documentation for decorators

2019-05-26 Thread Michael Blahay
Michael Blahay added the comment: The PEP is not the first place I go looking for information on Python topics, just my two cents. -- nosy: +mblahay ___ Python tracker <https://bugs.python.org/issue36

[issue17250] argparse: Issue 15906 patch; positional with nargs='*' and string default

2019-05-26 Thread Michael Blahay
Michael Blahay added the comment: Also see https://bugs.python.org/issue35495 -- nosy: +mblahay ___ Python tracker <https://bugs.python.org/issue17250> ___ ___

[issue37077] Threading: add builtin TID attribute to Thread objects for AIX

2019-05-28 Thread Michael Felt
New submission from Michael Felt : As issue36084 is already closed - opening a new issue for the PR to add this support for AIX. -- messages: 343765 nosy: Michael.Felt priority: normal severity: normal status: open title: Threading: add builtin TID attribute to Thread objects for AIX

[issue37077] Threading: add builtin TID attribute to Thread objects for AIX

2019-05-28 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +13523 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13624 ___ Python tracker <https://bugs.python.org/issu

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-29 Thread Michael Felt
Michael Felt added the comment: On 25/05/2019 00:19, Erwan Le Pape wrote: > Erwan Le Pape added the comment: > > Thanks for testing that. It's good that you used an actual address because > that eliminates the possibility that AIX doesn't handle addresses it doesn&

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

2019-05-29 Thread Michael Felt
Michael Felt added the comment: On 29/05/2019 16:36, Ned Deily wrote: > Ned Deily added the comment: > > FWIW, my opinion on making this kind of wholesale change has not changed: see > the discussion in PR 7800. I had actually read through that before I started on this.

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-30 Thread Michael Felt
Michael Felt added the comment: On 30/05/2019 10:27, Erwan Le Pape wrote: > Erwan Le Pape added the comment: > > Assuming similar configuration to the one in msg343430, a simple native > getaddrinfo test to check whether any scope ID is returned. The 'expanded' program

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-31 Thread Michael Felt
Michael Felt added the comment: On 30/05/2019 23:11, Andrew Svetlov wrote: > Andrew Svetlov added the comment: > > Guys, thank you for investigation. > If there is AIX "idiosyncrasy" -- please feel free to skip failed tests on > AIX. > > If you have access to

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-31 Thread Michael Felt
Michael Felt added the comment: FYI: since: commit 23b4b697e5b6cc897696f9c0288c187d2d24bff2 Author: Andrew Svetlov Date: Mon May 27 22:56:22 2019 +0300 bpo-36889: Merge asyncio streams (GH-13251) https://bugs.python.org/issue36889 AIX bot 'hangs' during tes

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-31 Thread Michael Felt
Michael Felt added the comment: hmm - i had just synced with master. must have just missed something since there is a strike-out through GH-13251. If so, please ignore. BBL. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36721] Add pkg-config python-3.8-embed and --embed to python3.8-config

2019-05-31 Thread Michael Haubenwallner
Change by Michael Haubenwallner : -- pull_requests: +13592 pull_request: https://github.com/python/cpython/pull/737 ___ Python tracker <https://bugs.python.org/issue36

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

2019-06-05 Thread Michael Felt
Michael Felt added the comment: On 05/06/2019 07:07, Tal Einat wrote: > Tal Einat added the comment: > > Michael, your willingness to help, and the work on this issue and PR, are > greatly appreciated! > > Reading through the discussion here again, and the one referenced by

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-05 Thread Michael Bejda
Change by Michael Bejda : -- keywords: +patch pull_requests: +13727 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13850 ___ Python tracker <https://bugs.python.org/issu

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

2019-06-06 Thread Michael Felt
Michael Felt added the comment: On 06/06/2019 14:14, Tal Einat wrote: > Tal Einat added the comment: > > Steve's suggestion sounds reasonable. > > Should we just add this to the devguide, then? Well, as I said before - it was never about THIS being the solution. While

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

2019-06-07 Thread Michael Felt
Michael Felt added the comment: On 06/06/2019 19:08, Steve Dower wrote: > Steve Dower added the comment: > > Changing our policy here (from "no policy" to "here's a recommendation") > probably deserves a python-dev discussion first. I can rejoin the li

[issue36656] Please add race-free os.link and os.symlink wrapper / helper

2019-06-07 Thread Michael Felt
Change by Michael Felt : -- nosy: +Michael.Felt ___ Python tracker <https://bugs.python.org/issue36656> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36656] Please add race-free os.link and os.symlink wrapper / helper

2019-06-07 Thread Michael Felt
Michael Felt added the comment: I started a reply on the python-mentoring maillist - and promised to come back here. a) imho - the discussion about an "attacker" is only misleading for the general case. For active attacks - where an attacker has active acces to the system is not

[issue37087] Adding native id support for openbsd

2019-06-12 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +13872 pull_request: https://github.com/python/cpython/pull/13624 ___ Python tracker <https://bugs.python.org/issue37

[issue37243] test_sendfile in asyncio crashes when os.sendfile() is not supported

2019-06-12 Thread Michael Felt
New submission from Michael Felt : issue34655 added sendfile support to asyncio. However, the `test_sendfile` fails when called if there is no os.sendfile support. This patch will skip the test when @unittest.skipUnless(hasattr(os, 'sendfile'), 'test ne

[issue37243] test_sendfile in asyncio crashes when os.sendfile() is not supported

2019-06-12 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +13874 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14010 ___ Python tracker <https://bugs.python.org/issu

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-06-12 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +13875 pull_request: https://github.com/python/cpython/pull/14011 ___ Python tracker <https://bugs.python.org/issue35

[issue19645] decouple unittest assertions from the TestCase class

2019-06-13 Thread Michael Foord
Michael Foord added the comment: Has anyone seen any real world use cases for failureException? It's a real hindrance to a whole bunch of changes sounds decoupling. On the other hand something like assertThat could catch a custom exception from the matchers (subclass of AssertionError

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

2019-06-13 Thread Michael Felt
Michael Felt added the comment: I have modified - _NODE_GETTERS_WIN32 = [_windll_getnode, _netbios_getnode, _ipconfig_getnode] _NODE_GETTERS_UNIX = [_unix_getnode, _ifconfig_getnode, _ip_getnode, _arp_getnode, _lanscan_getnode, _netstat_getnode] to: +683

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

2019-06-13 Thread Michael Felt
Change by Michael Felt : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue28009> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28009] core logic of uuid.getnode() needs refresh

2019-06-13 Thread Michael Felt
Michael Felt added the comment: p.s. - changed the title: way back when I first started on this I was mainly concerned that the _netstat_getnode() routine was broken for AIX. During the research and follow-up discussions it has become clear that it is more than just an AIX issue. There are

[issue19645] decouple unittest assertions from the TestCase class

2019-06-13 Thread Michael Foord
Michael Foord added the comment: Suppose failureException is set to TypeError on that TestCase class, how would your assertEquals signal failure to the test runner? -- ___ Python tracker <https://bugs.python.org/issue19

[issue19645] decouple unittest assertions from the TestCase class

2019-06-13 Thread Michael Foord
Michael Foord added the comment: Hmm, it could be done by __init_subclass__ potentially. -- ___ Python tracker <https://bugs.python.org/issue19645> ___ ___ Pytho

[issue19645] decouple unittest assertions from the TestCase class

2019-06-13 Thread Michael Foord
Michael Foord added the comment: Or even making the assert methods into custom descriptors. -- ___ Python tracker <https://bugs.python.org/issue19645> ___ ___

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

2019-06-17 Thread Michael Blahay
Michael Blahay added the comment: Need some help searching github to determine the blast radius of the proposed changes. How does one look for instances of argparse.REMAINDER that are used with a default value? -- ___ Python tracker <ht

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

2019-06-18 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +14031 pull_request: https://github.com/python/cpython/pull/14194 ___ Python tracker <https://bugs.python.org/issue35

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

2019-06-18 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +14034 pull_request: https://github.com/python/cpython/pull/14197 ___ Python tracker <https://bugs.python.org/issue34

[issue37243] test_sendfile in asyncio crashes when os.sendfile() is not supported

2019-06-19 Thread Michael Felt
Michael Felt added the comment: Closed. Not a bug in test_sendfile. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue37336] os.sendfile() support missing for AIX platform

2019-06-19 Thread Michael Felt
New submission from Michael Felt : In AIX "sendfile()" is named send_file(). During testing I learned, unexpectedly, that AIX platform has never provided support of os.sendfile(). This is correct that oversight. >From this (and older) documentation - it seems all the bi

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2019-06-19 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +14069 pull_request: https://github.com/python/cpython/pull/14233 ___ Python tracker <https://bugs.python.org/issue34

[issue11192] test_socket error on AIX

2019-06-19 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +14073 pull_request: https://github.com/python/cpython/pull/14237 ___ Python tracker <https://bugs.python.org/issue11

[issue34720] Fix test_importlib.test_bad_traverse for AIX

2019-06-19 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +14074 pull_request: https://github.com/python/cpython/pull/14238 ___ Python tracker <https://bugs.python.org/issue34

[issue34373] test_time errors on AIX

2019-06-19 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +14077 pull_request: https://github.com/python/cpython/pull/14242 ___ Python tracker <https://bugs.python.org/issue34

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-28 Thread Michael Bejda
Michael Bejda added the comment: I do not believe it is specific to the way we package things: $ cat a.py: import inspect def foo(): pass inspect.getsource(foo) $ python3 -m compileall -b a.py $ black a.py # to remove the empty lines $ python3 a.pyc # Index error Traceback (most

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-28 Thread Michael Bejda
Michael Bejda added the comment: I don't think linecache.checkcache helps here. In your example, it would detect the modification, but I don't see how it could persist data if the compilation and execution are different processes. --

[issue28009] core logic of uuid.getnode() needs refresh

2019-07-15 Thread Michael Felt
Michael Felt added the comment: On 14/07/2019 22:28, Tal Einat wrote: > Tal Einat added the comment: > >>> The current code and proposed changes use 'netstat -ia' to find the node >>> however if netstat needs to perform a reverse DNS query to resolve som

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

2019-07-18 Thread Michael Blahay
Michael Blahay added the comment: Ryan, I like option A as well, but it is a breaking change. Unlike in a compiled language where we could output a warning, making the proposed change could bring some software to a grinding halt. For now I'm going to make the documentation change and

[issue37669] Make mock_open return per-file content

2019-07-28 Thread Michael Foord
Michael Foord added the comment: Can you suggest an API for doing this? -- ___ Python tracker <https://bugs.python.org/issue37669> ___ ___ Python-bugs-list m

[issue37668] Allow individual test to be specified by "#" or "."

2019-07-28 Thread Michael Foord
Change by Michael Foord : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37668> ___ ___

[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-07-28 Thread Michael Foord
Michael Foord added the comment: "I don't know why run() returns None for skipIf cases instead of returning a TestResult with non-empty skipped, as it does for skipTest, or if the None is a separate bug." That does s

[issue37690] Simplify linking of shared libraries on the AIX OS

2019-07-29 Thread Michael Felt
Michael Felt added the comment: David gives several reasons why this PR should not be used. And, in reading them - while I follow them at face value, there may be things I miss due to ignorance or being naive (more the system admin than tool developer). Isn't there an configure --e

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

2019-08-01 Thread Michael Felt
Michael Felt added the comment: On 01/08/2019 11:15, STINNER Victor wrote: > FAILED (failures=1) > Warning -- files was modified by test_threading > Before: [] > After: ['core'] Thanks. I'll look again (on my bot) and other test systems. What I assume

[issue18049] Re-enable threading test on macOS

2019-08-02 Thread Michael Felt
Michael Felt added the comment: @Ronald - thanks. Gives me something to work from. Would not have found this so easily! But - where to put it... :) -- nosy: +Michael.Felt ___ Python tracker <https://bugs.python.org/issue18

[issue18049] Re-enable threading test on macOS

2019-08-02 Thread Michael Felt
Michael Felt added the comment: *** Looking in ./Python/thread_pthread.h" +252 #if defined(THREAD_STACK_SIZE) +253 PyThreadState *tstate = _PyThreadState_GET(); +254 size_t stacksize = tstate ? tstate->interp->pythread_stacksize : 0; +255 tss = (sta

[issue18049] Re-enable threading test on macOS

2019-08-02 Thread Michael Felt
Michael Felt added the comment: Going to take a stab in the dark - the the issue lies here: "./Python/errors.c" #ifndef Py_NORMALIZE_RECURSION_LIMIT #define Py_NORMALIZE_RECURSION_LIMIT 32 #endif As there is not enough memory for this to run in the default memory model. However, 3

[issue18049] Re-enable threading test on macOS

2019-08-02 Thread Michael Felt
Michael Felt added the comment: On 02/08/2019 11:48, Ronald Oussoren wrote: > Ronald Oussoren added the comment: > > That code is only called if THREAD_STACK_SIZE is defined. The block I mention > defines it for macOS and FreeBSD, but not for other platforms. I therefore > e

[issue18049] Re-enable threading test on macOS

2019-08-02 Thread Michael Felt
Michael Felt added the comment: On 02/08/2019 11:57, Michael Felt wrote: > On 02/08/2019 11:48, Ronald Oussoren wrote: >> Ronald Oussoren added the comment: >> >> That code is only called if THREAD_STACK_SIZE is defined. The block I >> mention defines it for mac

[issue18049] Re-enable threading test on macOS

2019-08-02 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +14827 pull_request: https://github.com/python/cpython/pull/15081 ___ Python tracker <https://bugs.python.org/issue18

[issue37733] Fail to build _curses module of Python 3.7.4 on AIX 7.1 using gcc

2019-08-02 Thread Michael Felt
Michael Felt added the comment: Issue36210 needs a back-port to 3.7 and 3.6. -- ___ Python tracker <https://bugs.python.org/issue37733> ___ ___ Python-bug

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

2019-08-03 Thread Michael Felt
Michael Felt added the comment: resolved via issue18049 -- ___ Python tracker <https://bugs.python.org/issue36273> ___ ___ Python-bugs-list mailing list Unsub

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

2019-08-03 Thread Michael Felt
Michael Felt added the comment: correction - issue18049 was related to test_threading. cannot say for sure that "this" is resolved by 18049. apologies for noise. -- ___ Python tracker <https://bugs.python.o

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-08-05 Thread Michael Felt
Michael Felt added the comment: I did not ask back in June - but could this also be backported to 3.7. I am trying very hard to have all tests also passing on 3.7. as @asvetlov is ok with a skipped test for AIX - see https://bugs.python.org/issue35545#msg344003 I can make the backport, if

[issue37796] ModuleFinder does not resolve ".." correctly

2019-08-08 Thread Michael Kleehammer
New submission from Michael Kleehammer : The modulefinder module does not handle relative directories properly. The error I found is when one subpackage attempts to import from a sibling subpackage using the form from ..language import ( DirectiveDefinitionNode

[issue26131] Raise ImportWarning when loader.load_module() is used

2019-08-09 Thread Michael Anckaert
Michael Anckaert added the comment: I checked out the source (Lib/imp.py:219) and only see the docstring marking this method als Deprecated. No exceptions are being raised. I would like to work on this issue. -- nosy: +michaelanckaert ___ Python

[issue26131] Raise ImportWarning when loader.load_module() is used

2019-08-09 Thread Michael Anckaert
Michael Anckaert added the comment: Clarification: the imp module shows a DeprecationWarning when imported. Was this what was meant? -- ___ Python tracker <https://bugs.python.org/issue26

[issue27435] ctypes library loading and AIX - also for 2.7.X (and later)

2017-06-13 Thread Michael Felt
Michael Felt added the comment: First, my apology that I have not responded earlier. I had other things to work on (real life things), customers that had interest in a fix for find_library() have indicated no longer have interest, and also my personal issue - becoming disillusioned with the

[issue30706] EmailMessage Object Creation

2017-06-19 Thread Michael Salsone
New submission from Michael Salsone: I am looking to use the get_body() method from email.message.EmailMessage, but I am unable to create an object of this type. I am attempting to create an object of this from message_from_string (as well as some of the other email.parser methods). But it

[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-21 Thread Michael Foord
Michael Foord added the comment: I don't see what this buys over spec and autospec. I'd be inclined to close it without a compelling use case beyond what is already supported. -- ___ Python tracker <http://bugs.python.o

[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-23 Thread Michael Foord
Michael Foord added the comment: Note that you can use an object as the parameter to the spec argument rather than just a list of attributes. Hmmm... I'm not totally opposed to the addition of a "seal_mock" method (optionally with a recurse boolean for child mocks) being add

[issue30821] unittest.mock.Mocks with specs aren't aware of default arguments

2017-07-11 Thread Michael Foord
Michael Foord added the comment: Generally the called with asserts can only be used to match the *actual call*, and they don't determine "equivalence". To do it cleanly would be tricky, and adding complex code is a maintenance burden. I'm not convinced there's a mas

[issue31348] webbrowser BROWSER with MacOSXOSAScript type

2017-09-04 Thread Michael Lazar
New submission from Michael Lazar: Hello, I have found that [1] is an open issue, but I have discovered what appears to be a completely separate bug than the one described in that ticket. The issue is that there is no way to specify a MacOSXOSAScript browser using the BROWSER variable. The

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

2017-09-06 Thread Michael Cuthbert
Changes by Michael Cuthbert : -- pull_requests: +3416 ___ Python tracker <http://bugs.python.org/issue17446> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-09-07 Thread Michael Cuthbert
Michael Cuthbert added the comment: I've tried to get the system to not be slower on small sets by not creating a Counter for less than 60 items, and managed to get within 10% of the speed for small sequences while maintaining the 3-3.6x speedup for big comparisons and testing tha

[issue31412] wave.open does not accept PathLike objects

2017-09-10 Thread Michael Cuthbert
New submission from Michael Cuthbert: The wave library (reading and writing .wav audio files) accepts filehandles, strings, and bytes, but does not accept PathLike objects. Patch will modify wave.py to allow open to use these objects. -- messages: 301826 nosy: mscuthbert priority

[issue31412] wave.open does not accept PathLike objects

2017-09-10 Thread Michael Cuthbert
Changes by Michael Cuthbert : -- components: +Library (Lib) type: -> enhancement ___ Python tracker <https://bugs.python.org/issue31412> ___ ___ Python-

[issue31412] wave.open does not accept PathLike objects

2017-09-10 Thread Michael Cuthbert
Changes by Michael Cuthbert : -- keywords: +patch pull_requests: +3474 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31412> ___ _

[issue29916] No explicit documentation for PyGetSetDef and getter and setter C-API

2017-09-15 Thread Michael Seifert
Changes by Michael Seifert : -- keywords: +patch pull_requests: +3598 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue29916> ___ ___ Py

[issue29916] No explicit documentation for PyGetSetDef and getter and setter C-API

2017-09-15 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +3600 ___ Python tracker <https://bugs.python.org/issue29916> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-11-23 Thread Michael Saah
Michael Saah added the comment: Summary to accompany my patch: Modules/_datetimemodule.c and Lib/datetime.py do not behave identically. Specifically, the strftime functions do not match when passed a format string terminated with a '%'. The C function performs an explicit chec

[issue35483] tarfile.extractall on existing symlink in Ubuntu overwrites target file, not symlink, unlinke GNU tar

2018-12-13 Thread Michael Brandl
New submission from Michael Brandl : In Ubuntu 16.04, with python 3.5, as well as custom built 3.6 and 3.7.1: Given a file foo.txt (with content "foo") and a symlink myLink to it, packed in a tar, and a file bar.txt (with content "bar") with a symlink myLink to it, p

[issue35483] tarfile.extractall on existing symlink in Ubuntu overwrites target file, not symlink, unlinke GNU tar

2018-12-17 Thread Michael Brandl
Michael Brandl added the comment: Sounds good to me. -- ___ Python tracker <https://bugs.python.org/issue35483> ___ ___ Python-bugs-list mailing list Unsub

[issue34897] distutils test errors when CXX is not set

2018-12-25 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10576 ___ Python tracker <https://bugs.python.org/issue34897> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34897] distutils test errors when CXX is not set

2018-12-25 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10576, 10577 ___ Python tracker <https://bugs.python.org/issue34897> ___ ___ Python-bugs-list mailing list Unsub

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-12-27 Thread Michael Felt
Michael Felt added the comment: I have not looked at 3.6, but I have bisected the 3.7 and 3.8 branches for AIX. I get: On 3.7 Branch: Bisecting: 0 revisions left to test after this (roughly 0 steps) [56742f1eb05401a27499af0ccdcb4e4214859fd1] [3.7] bpo-35189: Retry fnctl calls on EINTR (GH

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-12-27 Thread Michael Felt
Michael Felt added the comment: Forgot to include the test failure message: == FAIL: test_all (test.test_eintr.EINTRTests) -- Traceback (most recent call

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-12-27 Thread Michael Felt
Michael Felt added the comment: The "improved" output after getting back to "latest" commit: == CPython 3.8.0a0 (heads/master-dirty:34ae04f74d, Dec 27 2018, 14:05:08) [C] == AIX-1-00C291F54C00-powerpc-32bit big-endian == cwd: /data/prj/python/python3-3.8/build/test_py

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-12-27 Thread Michael Felt
Michael Felt added the comment: On 27/12/2018 15:48, Michael Felt wrote: > Michael Felt added the comment: > > The "improved" output after getting back to "latest" commit: > > == CPython 3.8.0a0 (heads/master-dirty:34ae04f74d, Dec 27 2018, 14:05:08) [C] &g

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

2018-12-28 Thread Michael Felt
Michael Felt added the comment: As I am not clear on where to have a more general discussion (in a PR conversation) or here - going to start here because I cannot figure out which comment in the PR to reply to. Generally, before modifying the test_uuid.py to based tests on uuid

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

2018-12-28 Thread Michael Felt
Michael Felt added the comment: p.s., removed 2.7 and 3.6 as too old for any interest. -- versions: -Python 2.7, Python 3.6 ___ Python tracker <https://bugs.python.org/issue28

[issue35622] Add support for Linux SCHED_DEADLINE

2018-12-30 Thread Michael Büsch
New submission from Michael Büsch : Are there plans to support Linux SCHED_DEADLINE in the os module? If not, would changes to add such support be welcome? Support for SCHED_DEADLINE would also need support for sched_setattr/sched_getattr. -- components: Library (Lib) messages: 332772

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

2019-01-01 Thread Michael Felt
New submission from Michael Felt : test_eintr fails on AIX since fcntl functions were modified In issue35189 the fnctl() module was modified so that the EINTR interruption should be retried automatically. On AIX the test for flock() passes, but the test for lockf() fails

<    8   9   10   11   12   13   14   15   16   17   >