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

2019-01-03 Thread Michael Felt
Michael Felt added the comment: After reading the PEP I realized it is much simpler. The test is for interrupts that occur at a low-level - and not for permission issues. The test is failing because there is a permission issue, not a missed interrupt issue. Modifying the code to: (see line

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

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch, patch pull_requests: +10840, 10841 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

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

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

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

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10842 ___ Python tracker <https://bugs.python.org/issue35189> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10842, 10843 ___ Python tracker <https://bugs.python.org/issue35189> ___ ___ Python-bugs-list mailing list Unsub

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

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10842, 10843, 10844, 10845 ___ Python tracker <https://bugs.python.org/issue35189> ___ ___ Python-bugs-list mailin

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

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10842, 10843, 10845 ___ Python tracker <https://bugs.python.org/issue35189> ___ ___ Python-bugs-list mailin

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

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- components: -IO ___ Python tracker <https://bugs.python.org/issue35633> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35198] Build issue while compiling cpp files in AIX

2019-01-04 Thread Michael Felt
Michael Felt added the comment: While the PR probably solves this - there is a 'bug' in pandas (I expect) that prevents me from completing the test - as, I expect LONG before the .cpp source is to be compiled - there is a error because a wrong flag is passed to the compiler (-

[issue35198] Build issue while compiling cpp files in AIX

2019-01-04 Thread Michael Felt
Michael Felt added the comment: On 04/01/2019 17:08, Kevin wrote: > Kevin added the comment: > > Ah. We always compile with GCC, so would not have hit that particular problem. > > -- > > ___ > Python tracker > <http

[issue35198] Build issue while compiling cpp files in AIX

2019-01-04 Thread Michael Felt
Michael Felt added the comment: Further along - however, I never get to the "link" routine. Again, this is likely a pandas coding issue - currently python is calling xlc_r ..., but when I manually modify it to xlC_r I get the same error. xlc_r -D_LARGE_FILES -O -I/opt/include -O

[issue35633] test_eintr: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX

2019-01-05 Thread Michael Felt
Michael Felt added the comment: I had tried “wb+”, not “w+b”. Is there a difference? I forget if I tried just “w+”. But I’ll do them anyway/again to be sure. Sent from my iPhone > On 4 Jan 2019, at 23:43, STINNER Victor wrote: > > > Change by STINNER Victor : > > &g

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

2019-01-05 Thread Michael Felt
Michael Felt added the comment: On 04/01/2019 23:42, STINNER Victor wrote: > STINNER Victor added the comment: > > Does the test pass if you open the file in read+write ("w+b") mode rather > than write-only ("wb") mode? > > I'm talking about this li

[issue35622] RFE: Add os.sched_setattr() and os.sched_getattr() functions

2019-01-05 Thread Michael Büsch
Michael Büsch added the comment: I would like to implement this feature. So if somebody thinks that it's a bad idea to have this feature, please speak up now. -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/is

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

2019-01-07 Thread Michael Felt
Michael Felt added the comment: On 07/01/2019 15:46, STINNER Victor wrote: > STINNER Victor added the comment: > > Since you are getting indentation error, I'm not sure about your test. Can > you please apply the patch below and run again test_eintr? Does it still fail >

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

2019-01-09 Thread Michael Saah
Michael Saah added the comment: Hi Victor, thanks for taking a look. > Would why datetime have the same behavior on all platforms, but > time.strftime('%') may or may not raise an exception depending on the libc? If I understand the call stack correctly, datetime does n

[issue35198] Build issue while compiling cpp files in AIX

2019-01-09 Thread Michael Felt
Michael Felt added the comment: On 08/01/2019 15:40, Ayappan wrote: > Ayappan added the comment: > > Not sure what went wrong here. > I used gcc & g++ and didn't hit this issue. > > -- > > ___ > Python tracker &

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

2019-01-10 Thread Michael Felt
New submission from Michael Felt : By default AIX builds 32-bit applications - and the combined .data, .bss and .stack areas share one memory segment of 256 Mbyte. This can be modified by either specifying a larger value for maxdata during linking (e.g., with LDFLAGS=-bmaxdata:0x4000) or

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

2019-01-10 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +11029 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35704> ___ ___ Py

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

2019-01-10 Thread Michael Saah
Michael Saah added the comment: > Michael - do you think you can / would you like to add the functionality that > Victor mentioned to your existing PR? If not, I recommend we merge the > current PR and open a new issue for "Lone trailing % not supported on all > platforms&q

[issue35735] Current "make test" status for AIX

2019-01-13 Thread Michael Felt
New submission from Michael Felt : Hi all, as we get closer to having the current tests all patched I want to have a place to post new "failures" - since the BOT process is unable to report regressions before all tests are passing for a time. Initially, the tests run normally,

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Michael Krötlinger
New submission from Michael Krötlinger : After operations = xmltree.getElementsByTagName("operation") the table does not contain operations antragstypenErmitteln and mammographieIndikationenErmitteln -- files: EbsService.wsdl messages: 333621 nosy: MiKr41 priority: norma

[issue35735] Current "make test" status for AIX

2019-01-14 Thread Michael Felt
Michael Felt added the comment: Well, I can close this again - whatever was wrong with test_xml_etree_c disappeared - and a cursory look at test_os reveals that the issue might be the time lag between the NFS server where the temp files are made and the "local" sense of time. M

[issue35735] Current "make test" status for AIX

2019-01-14 Thread Michael Felt
Change by Michael Felt : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35735> ___ ___ Python-bugs-list

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

2019-01-15 Thread Michael Felt
Michael Felt added the comment: On 07/01/2019 15:46, STINNER Victor wrote: > STINNER Victor added the comment: > > Since you are getting indentation error, I'm not sure about your test. Can > you please apply the patch below and run again test_eintr? Does it s

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-15 Thread Michael Krötlinger
Michael Krötlinger added the comment: http://schemas.xmlsoap.org/wsdl/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://soap.ebs.client.chipkarte.at"; xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"; xmlns:wsp="http:/

[issue35773] test_bdb fails on AIX bot (regression)

2019-01-18 Thread Michael Felt
New submission from Michael Felt : I see in the bot history that test_bdb is now failing on AIX https://buildbot.python.org/all/#/builders/161/builds/718/steps/4/logs/stdio == CPython 3.8.0a0 (heads/master:a37f52436f, Jan 15 2019, 22:53:01) [C] == AIX-1-00C291F54C00-powerpc-32bit big-endian

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

2019-01-18 Thread Michael Felt
Michael Felt added the comment: I’ll make a new PR and delete the news entry. Sent from my iPhone > On 15 Jan 2019, at 11:23, STINNER Victor wrote: > > > STINNER Victor added the comment: > >> On AIX the test for flock() passes, but the test for lockf() fails: (...

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

2019-01-21 Thread Michael Felt
Michael Felt added the comment: Done. > On 1/15/2019 11:23 AM, STINNER Victor wrote: > I would prefer to simply skip the lockf() test rather than ignoring > PermissionError for flock() and lockf() on all platforms. Can you please > write a PR for that? > > There is no

[issue35828] test_multiprocessing_* tests - success versus fail varies over time

2019-01-25 Thread Michael Felt
New submission from Michael Felt : Last August I started running a bot for AIX using xlc_r as the compiler, rather than gcc that the other AIX bot uses. Initially, I had no issues with the test_multiprocess* tests, but of late (last two+ months I am guessing) I have been having regular

[issue35828] test_multiprocessing_* - crash in PyDict_GetItem - segmentation error

2019-01-26 Thread Michael Felt
Change by Michael Felt : -- title: test_multiprocessing_* tests - success versus fail varies over time -> test_multiprocessing_* - crash in PyDict_GetItem - segmentation error ___ Python tracker <https://bugs.python.org/issu

[issue35828] test_multiprocessing_* - crash in PyDict_GetItem - segmentation error

2019-01-26 Thread Michael Felt
Michael Felt added the comment: OK, I have gone as far back as "where" in dbx can bring me. Could this, somehow, be related with changes made in issue-33015 ? In any case, does it seem correct that "pthread_wrapper(void *arg) can be correct if arg is nil? +15

[issue27749] multprocessing errors on Windows: WriteFile() argument 1 must be int, not None; OSError: handle is closed

2019-01-28 Thread Michael Jacob
Michael Jacob added the comment: Does this ticket track the issue in its title or the native crash? If it's the latter, is there a new ticket for the None _handle or shall I create one? -- nosy: +Michael Jacob2 versions: +Python 3.7 ___ P

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-01-30 Thread Michael Felt
Michael Felt added the comment: OK. being more specific about the test situation. When I run ./python -m test test_multiprocessing_fork all is fine. However, when I run it as: ./python -m test -j2 test_multiprocessing_main_handling test_multiprocessing_fork

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-01-30 Thread Michael Felt
Michael Felt added the comment: After enabling PYTHONTHREADDEBUG=1 I got the dprintf output. I added line info (as fixed text) asin: Python/thread_pthread.h: +511 PyLockStatus +512 PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds, +513

[issue27749] multprocessing errors on Windows: WriteFile() argument 1 must be int, not None; OSError: handle is closed

2019-01-31 Thread Michael Jacob
Michael Jacob added the comment: So, I'm experiencing the issue in the title, too. The pipe handle stays valid for between 5 and 60 minutes, then it goes None when written to. I'm far from understanding that code, but this crude re-connect code seems to solve the issue for me: In

[issue35773] test_bdb fails on AIX bot (regression)

2019-01-31 Thread Michael Felt
Michael Felt added the comment: Update: buildbot@x064:[/home/buildbot/buildarea/3.x.aixtools-aix-power6/issue]./python -m test -v test_bdb == CPython 3.8.0a0 (heads/master-dirty:0785889468, Jan 30 2019, 16:16:31) [C] == AIX-1-00C291F54C00-powerpc-32bit big-endian == cwd: /home/buildbot

[issue35773] test_bdb fails on AIX bot (regression)

2019-02-01 Thread Michael Felt
Michael Felt added the comment: OK. New info. Back in the time of issue 34347 I installed some extra filesets to support UTF-8 on the virtual machine (aka partition) that I have the bot on. On systems where this fileset is not installed this test does not fail. Shall dig further - in a

[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2019-02-01 Thread Michael Sullivan
Michael Sullivan added the comment: How about adding another sigil that indicates that subsequent keyword-only arguments are required? So then your example becomes (using ` as a totally strawman option): PyArg_ParseTupleAndKeywords(args, kwds, "O|O$O`O", kwlist, &a, &

[issue35941] ssl.enum_certificates() regression

2019-02-08 Thread Michael Schlenker
New submission from Michael Schlenker : The introduction of the ReadOnly flag in the ssl.enum_certificates() function implementation has introduced a regression. The old version returned certificates for both the current user and the local system, the new function only enumerates system wide

[issue35941] ssl.enum_certificates() regression

2019-02-08 Thread Michael Schlenker
Michael Schlenker added the comment: It probably is even worse. The flag seems to specifiy the physical locations, and just using CERT_SYSTEM_STORE_LOCAL_SYSTEM probably misses the certificates distributed by Group Policy or AD too, in addition to the stores for the current user. See

[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2019-02-12 Thread Michael Sullivan
Change by Michael Sullivan : -- keywords: +patch pull_requests: +11865 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34235> ___ _

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

2019-02-14 Thread Michael Felt
Michael Felt added the comment: On 14/02/2019 23:57, Indra Talip wrote: > Indra Talip 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 some > interfac

[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2019-02-15 Thread Michael Sullivan
Michael Sullivan added the comment: The point about a performance penalty is fair---my PR does add a search for the '@' (which I spelled as '`' in my example above) sigil whenever it encounters a '|'. (Though I'm not sure how big the impact would be? Format

[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2019-02-15 Thread Michael Sullivan
Michael Sullivan added the comment: A downside of the "allow $ twice" approach is that it means splitting up the positional arguments, and a lot of the processing loop is built around the assumption that the index into the keyword list and the index into the argument tuple coi

[issue35773] test_bdb fails on AIX bot (regression)

2019-02-16 Thread Michael Felt
Michael Felt added the comment: OK. I have narrowed it down to this: when LANG=en_US.8859-15 the test fails. root@x064:[/home/root]grep LANG /etc/environment LANG=en_US And now it passes. -- ___ Python tracker <https://bugs.python.

[issue35773] test_bdb fails on AIX bot (regression)

2019-02-17 Thread Michael Felt
Michael Felt added the comment: Some record keeping - to keep track of when this regression first appeared on the bot: buildername POWER6 AIX 3.x Builder buildnumber 718 Build codebaseBuild event pushChange github_distinct trueChange got_revision

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

2019-02-18 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +11940 ___ Python tracker <https://bugs.python.org/issue35633> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34757] Placeholder for discussion on Combined patches for AIX - to resolve failig tests

2019-02-18 Thread Michael Felt
Michael Felt added the comment: The PR's have been merged. Many thanks. Closing this issue and looking forward. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.

[issue27632] build on AIX fails when builddir != srcdir, more than bad path to ld_so_aix

2019-02-19 Thread Michael Felt
Michael Felt added the comment: As far as 'master' is concerned, this has been resolved, so I'll close it myself. -- stage: -> resolved status: open -> closed versions: +Python 3.8 -Python 3.4 ___ Python tracker <

[issue35773] test_bdb fails on AIX bot (regression)

2019-02-19 Thread Michael Felt
Michael Felt added the comment: Again - after switching the env variable LANG to the 'default' everything works as expected. Leaving it open as a regression - because everything was working with a non-default setting. When I have more time I'll do a git bisect to try an

[issue36034] Suprise halt caused by -Werror=implicit-function-declaration in ./Modules/posixmodule.c

2019-02-19 Thread Michael Felt
New submission from Michael Felt : On a system using an older version of gcc (v5.7.4) I get an error: (also AIX 6.1) gcc -pthread -Wno-unused-result -Wsign-compare -g -O0 -Wall -O -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror

[issue36034] Suprise halt caused by -Werror=implicit-function-declaration in ./Modules/posixmodule.c

2019-02-19 Thread Michael Felt
Michael Felt added the comment: correction - gcc version is v4.7.4 -- ___ Python tracker <https://bugs.python.org/issue36034> ___ ___ Python-bugs-list mailin

[issue36038] ^ used in inaccurate example in regex-howto

2019-02-19 Thread Louis Michael
New submission from Louis Michael : at https://docs.python.org/3/howto/regex.html#regex-howto and https://docs.python.org/3.8/howto/regex.html#regex-howto https://docs.python.org/3.7/howto/regex.html#regex-howto https://docs.python.org/3.6/howto/regex.html#regex-howto https://docs.python.org

[issue35584] Wrong statement about ^ in howto/regex.rst

2019-02-19 Thread Louis Michael
Change by Louis Michael : -- keywords: +patch pull_requests: +11968 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35584> ___ ___ Py

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-19 Thread Michael Selik
Michael Selik added the comment: +1, This would be useful for quick analyses, avoiding the overhead of installing scipy and looking through its documentation. Given that it's in the statistics namespace, I think the name can be simply ``Normal`` rather than ``NormalDist``. Also, inste

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-02-20 Thread Michael Felt
Michael Felt added the comment: I am still trying to get further with this, but I won't get far enough without some help on how to best dig deeper. For one, it should be leaving a core dump, but it never seems to leave the core dump in the working directory. I know it is doing core

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-02-20 Thread Michael Felt
Michael Felt added the comment: Another message that surprises me is: Warning -- multiprocessing.process._dangling was modified by test_multiprocessing_spawn Before: <_weakrefset.WeakSet object at 0x3076e810> After: <_weakrefset.WeakSet object at 0x3076e390> Normally

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-02-20 Thread Michael Felt
Michael Felt added the comment: Also - this looks like a core dump was 'seen', but later removed. Warning -- files was modified by test_multiprocessing_forkserver Before: [] After: ['core'] What can I change so that ot does not c

[issue36034] Suprise halt caused by -Werror=implicit-function-declaration in ./Modules/posixmodule.c

2019-02-21 Thread Michael Felt
Michael Felt added the comment: xlc has an option -qsource that creates output like this - first showing the code with macro, then showing the expansion >>>>> SOURCE SECTION <<<<< ...    16 | dev = st.st_dev;    17 | minor = minor(dev);   

[issue29800] functools.partial segfaults in repr when keywords attribute is abused

2017-03-12 Thread Michael Seifert
New submission from Michael Seifert: It's possible to create a segfault when one (inappropriatly) changes the functools.partial.keywords attribute manually. A minimal example reproducing the segfault is: >>> from functools import partial >>> p = partial(int) >>&g

[issue29800] functools.partial segfaults in repr when keywords attribute is abused

2017-03-12 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +536 ___ Python tracker <http://bugs.python.org/issue29800> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29800] functools.partial segfaults in repr when keywords attribute is abused

2017-03-13 Thread Michael Seifert
Michael Seifert added the comment: Given that this my first contribution to CPython I'm not too sure about the etiquette. When do I know (or who decides) when an agreement on a fix is reached? I wouldn't mind retracting the pull request if someone else wants to fix it differently.

[issue29813] PyTuple_GetSlice documentation incorrect

2017-03-14 Thread Michael Seifert
New submission from Michael Seifert: The PyTuple_GetSlice documentation says it "Take a slice of the tuple pointed to by p from low to high and return it as a new tuple." [0] However in case the start is <= 0 and the stop is >= tuplesize it doesn't return the promised

[issue29813] PyTuple_GetSlice does not always return a new tuple

2017-03-14 Thread Michael Seifert
Changes by Michael Seifert : -- title: PyTuple_GetSlice documentation incorrect -> PyTuple_GetSlice does not always return a new tuple ___ Python tracker <http://bugs.python.org/issu

[issue29813] PyTuple_GetSlice does not always return a new tuple

2017-03-14 Thread Michael Seifert
Michael Seifert added the comment: > What leads to your headache? That depending on the arguments to "PyTuple_GetSlice" I get "SystemError: ..\Objects\tupleobject.c:156: bad argument to internal function" when using PyTuple_SetItem on the (supposedly) new tuple. May

[issue29800] functools.partial segfaults in repr when keywords attribute is abused

2017-03-15 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +554 ___ Python tracker <http://bugs.python.org/issue29800> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29800] functools.partial segfaults in repr when keywords attribute is abused

2017-03-15 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +555 ___ Python tracker <http://bugs.python.org/issue29800> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29813] PyTuple_GetSlice does not always return a new tuple

2017-03-15 Thread Michael Seifert
Michael Seifert added the comment: I rather thought about something along the lines of: "Take a slice of the tuple pointed to by *p* from *low* to *high* and return it as a tuple. Whether the returned tuple is new or not is an implementation detail (and may depend on the value o

[issue19521] Parallel build race condition on AIX since python-2.7

2017-03-16 Thread Michael Haubenwallner
Changes by Michael Haubenwallner : -- pull_requests: +560 ___ Python tracker <http://bugs.python.org/issue19521> ___ ___ Python-bugs-list mailing list Unsub

[issue29545] Python behavioral difference between Linux and AIX

2017-03-17 Thread Michael Felt
Michael Felt added the comment: Curious. First pass: using python2.7.12 also hanged as program, on the close() second pass: interactive - do the read first, then the close - seems to work: root@x064:[/data/prj/python/issues/29545]cat hello.py #!/usr/bin/env python import errno import os

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2017-03-20 Thread Michael Haubenwallner
Changes by Michael Haubenwallner : -- pull_requests: +652 ___ Python tracker <http://bugs.python.org/issue15590> ___ ___ Python-bugs-list mailing list Unsub

[issue29897] itertools.chain behaves strangly when copied with copy.copy

2017-03-24 Thread Michael Seifert
New submission from Michael Seifert: When using `copy.copy` to copy an `itertools.chain` instance the results can be weird. For example >>> from itertools import chain >>> from copy import copy >>> a = chain([1,2,3], [4,5,6]) >>> b = copy(a) >>> ne

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

2017-03-27 Thread Michael Seifert
New submission from Michael Seifert: A copy of the struct definition can be found in the typeobject documentation [1]. There is also some explanation of the "closure" function pointer in the extending tutorial [2]. However the struct isn't explicitly defined as "c:type&q

[issue29917] Wrong link target in PyMethodDef documentation

2017-03-27 Thread Michael Seifert
New submission from Michael Seifert: The `link`-target of the "type" struct member is the python built-in "type". See [1]. I think it should not be a link at all. [1] https://docs.python.org/3.7/c-api/structures.html#c.PyMemberDef -- assignee: docs@python compo

[issue1234] semaphore errors on AIX 5.2

2017-03-27 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +753 ___ Python tracker <http://bugs.python.org/issue1234> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29951] PyArg_ParseTupleAndKeywords exception messages containing "function"

2017-03-30 Thread Michael Seifert
New submission from Michael Seifert: Some exceptions thrown by `PyArg_ParseTupleAndKeywords` refer to "function" or "this function" even when a function name was specified. For example: >>> import bisect >>> bisect.bisect_right([1,2,3,4], 2, low=10)

[issue29951] PyArg_ParseTupleAndKeywords exception messages containing "function"

2017-03-30 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +816 ___ Python tracker <http://bugs.python.org/issue29951> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29951] PyArg_ParseTupleAndKeywords exception messages containing "function"

2017-03-31 Thread Michael Seifert
Michael Seifert added the comment: Thank you for the suggestions, I added them to the PR. If you want But are you sure about the "keywords must be strings" -> "keyword arguments must be strings" change? I always thought the key is the "keyword" and t

[issue29897] itertools.chain behaves strangly when copied with copy.copy

2017-03-31 Thread Michael Seifert
Michael Seifert added the comment: Just an update what doesn't work: just overriding the `__copy__` method. I tried it but it somewhat breaks `itertools.tee` because if the passed iterable has a `__copy__` method `tee` rather copies the iterator (=> resulting in a lot of unnecessar

[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Michael Selik
New submission from Michael Selik: Minor, but it looks like someone decided to use a defaultdict but forgot to remove the checks for whether a key exists. Creating a defaultdict(list): https://github.com/python/cpython/blob/6f0eb93183519024cb360162bdd81b9faec97ba6/Lib/lib2to3/btm_matcher.py

[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Michael Selik
Michael Selik added the comment: I'll submit a pull request momentarily. -- ___ Python tracker <http://bugs.python.org/issue29957> ___ ___ Python-bugs-list m

[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Michael Selik
Michael Selik added the comment: PR submitted. I also signed the contributor agreement, but the bot doesn't seem to have noticed. -- ___ Python tracker <http://bugs.python.org/is

[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-04-01 Thread Michael Selik
Michael Selik added the comment: Ok, I'll change the PR. -- ___ Python tracker <http://bugs.python.org/issue29957> ___ ___ Python-bugs-list mailing list

[issue29965] MatchObject __getitem__() should support slicing and len

2017-04-02 Thread Michael Selik
New submission from Michael Selik: Currently, slicing a MatchObject causes an IndexError and len() a TypeError. It's natural to expect slicing and len to work on objects of a finite length that index by natural numbers. -- messages: 291050 nosy: selik priority: normal severity: n

[issue29965] MatchObject __getitem__() should support slicing and len

2017-04-02 Thread Michael Selik
Changes by Michael Selik : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett type: -> enhancement ___ Python tracker <http://bugs.python.org/issu

[issue29965] MatchObject __getitem__() should support slicing and len

2017-04-02 Thread Michael Selik
Michael Selik added the comment: This would also enable negative indexing, which currently raises "IndexError: no such group". Edit: I meant whole numbers, not natural numbers. -- versions: +Python 3.7 ___ Python tracker <http://bu

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

2017-04-03 Thread Michael Sghaier
Changes by Michael Sghaier : -- pull_requests: +1154 ___ Python tracker <http://bugs.python.org/issue29406> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29965] MatchObject __getitem__() should support slicing and len

2017-04-03 Thread Michael Selik
Michael Selik added the comment: Yesterday I wanted to do a destructuring bind on a slice of groups in a finditer. Similar situation to the use case of Issue #24454. It might not be "normal code" but I end up in that situation every month or so when parsing semi-structured document

[issue29965] MatchObject __getitem__() should support slicing and len

2017-04-03 Thread Michael Selik
Michael Selik added the comment: Sorry, it looks like I got the issue number wrong. My comparison should not have been with #24454, but instead with an issue I can't locate at the moment. Reproducing the example: for g0, g1, g2 in re.finditer(r'(\d+)/(\d+)', 'Is

[issue29870] ssl socket leak

2017-04-10 Thread Michael Sghaier
Changes by Michael Sghaier : -- pull_requests: +1218 ___ Python tracker <http://bugs.python.org/issue29870> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2017-04-10 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +1220 ___ Python tracker <http://bugs.python.org/issue26828> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30059] No documentation for C type Py_Ellipsis

2017-04-12 Thread Michael Seifert
New submission from Michael Seifert: The "Py_Ellipsis" object is part of the public C-API but it isn't documented anywhere. It is defined in "sliceobject.o/.h" so I created a PR and added it to the "slice" documentation. -- assignee: docs@python

[issue30059] No documentation for C type Py_Ellipsis

2017-04-12 Thread Michael Seifert
Michael Seifert added the comment: > I'm wondering if it is worth to add a separate section for Ellipsis at the > same level as "Slice Objects", but in the same file. I'm not sure either. There seems to be no precedent in the documentation, for example "

[issue30059] No documentation for C type Py_Ellipsis

2017-04-14 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +1280 ___ Python tracker <http://bugs.python.org/issue30059> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30059] No documentation for C type Py_Ellipsis

2017-04-14 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +1278 ___ Python tracker <http://bugs.python.org/issue30059> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30059] No documentation for C type Py_Ellipsis

2017-04-14 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +1279 ___ Python tracker <http://bugs.python.org/issue30059> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2017-04-25 Thread Michael Seifert
Michael Seifert added the comment: > I explored that notion of iterator length transparency years ago. While I > don't remember all the details, I did record some notes at the top of > Lib/test/test_iterlen.py. But isn't that the point of the length_hint? To provide an

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2017-04-26 Thread Michael Seifert
Michael Seifert added the comment: > I would like to mark this tracker item as closed. IMO it is a dead-end. Yes, even some (not very uncommon cases) give incorrect results: it = iter([1,2,3]) zip(it, it, it) has length_hint 3 but will only yield one i

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2017-04-26 Thread Michael Seifert
Michael Seifert added the comment: > zip.__length_hint__() must return NotImplemented or raise TypeError if any of > iterators don't implement __length_hint__ or its __length_hint__() returns > NotImplemented or raises TypeError. > And what should return zip(range(

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