[issue36170] posix_spawn doesn't exist in 3.7

2019-03-02 Thread Mark Williams
Change by Mark Williams : -- keywords: +patch pull_requests: +12143 stage: -> patch review ___ Python tracker ___ ___

[issue36170] posix_spawn doesn't exist in 3.7

2019-03-02 Thread Mark Williams
New submission from Mark Williams : The 3.8 docs claim that os.posix_spawn was introduced in 3.7, but it wasn't; it will be introduced in 3.8. https://docs.python.org/3.8/library/os.html#os.posix_spawn -- assignee: docs@python components: Documentation messages: 337027 nosy:

[issue36169] Add overlap() method to statistics.NormalDist()

2019-03-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Another cross-check can be had with this nomogram: https://www.rasch.org/rmt/rmt101r.htm -- ___ Python tracker ___

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2019-03-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: eat_self is also a problem as mentioned and would help in solving issue27715 where self is not ignored. I tried a patch for issue27715 but that would require changing the output of some functions that take _eat_self as a parameter to return

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-02 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 432 tweaked: https://github.com/python/peps/pull/904/files -- ___ Python tracker ___ ___

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2019-03-02 Thread Mario Corchero
Mario Corchero added the comment: Quite a tricky bug! Indeed @xtreak the `_call_matcher` is using the `__init__` signature. I think this is a bug introduced in https://bugs.python.org/issue17015. There is a mix of the fact that spec in Mock also can accept classes (not instances) whilst

[issue23216] IDLE grep/find/replace source code needs docstrings

2019-03-02 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've created the first PR for docstrings on replace. Saimadhav Heblikar had added some docstrings under issue 21676, so I expanded on what he did. I referred to Al's diff, but didn't use it much since there were already some docstrings. For readability, I

[issue23216] IDLE grep/find/replace source code needs docstrings

2019-03-02 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +12142 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36046] support dropping privileges when running subprocesses

2019-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: I like the separate parameters. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36169] Add overlap() method to statistics.NormalDist()

2019-03-02 Thread Raymond Hettinger
New submission from Raymond Hettinger : -- How to use it -- What percentage of men and women will have the same height in two normally distributed populations with known means and standard deviations? # http://www.usablestats.com/lessons/normal >>> men = NormalDist(70, 4)

[issue34484] Unicode HOWTO incorrectly refers to Private Use Area for surrogateescape

2019-03-02 Thread A.M. Kuchling
Change by A.M. Kuchling : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36146] Refactor setup.py

2019-03-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 96d81583be98cec9728636186ea32b662cb091d5 by Victor Stinner in branch 'master': bpo-36146: Fix inc_dirs in setup.py on macOS (GH-12098) https://github.com/python/cpython/commit/96d81583be98cec9728636186ea32b662cb091d5 --

[issue32129] IDLE app icon is blurry on macOS with Aqua Tk 8.6

2019-03-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 59e824b4fc314b10c5d24ff0bf737a15787f0574 by Benjamin Peterson (Ned Deily) in branch '2.7': bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch by Kevin Walzer. (GH-12034)

[issue21314] Document '/' in signatures

2019-03-02 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Ping for review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22021] shutil.make_archive() root_dir do not work

2019-03-02 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Pinging once more for review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36046] support dropping privileges when running subprocesses

2019-03-02 Thread desbma
Change by desbma : -- nosy: +desbma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36125] Cannot cross-compile to more featureful but same tune

2019-03-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: The cross-compilation rely on the fact that the cross-compiled shared libraries names are constructed using the configure `--host=HOST-TYPE' command line parameter and therefore cannot be loaded by the native compiler that uses a different suffix for those

[issue31904] Python should support VxWorks RTOS

2019-03-02 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- nosy: +izbyshev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34776] Postponed annotations break inspection of dataclasses

2019-03-02 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: Any chance this could get into 3.7.3? -- nosy: +vlad ___ Python tracker ___ ___

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: CPython requires several changes to build for Android < 21. There was an attempt in issue32654 but it's abandoned. -- nosy: +yan12125 ___ Python tracker

[issue35100] urllib.parse.unquote_to_bytes: needs "escape plus" option

2019-03-02 Thread SilentGhost
Change by SilentGhost : -- nosy: +orsenthil versions: +Python 3.8 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2019-03-02 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I gave up building gdbm as a static library. It brings more headache than benefits. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue35100] urllib.parse.unquote_to_bytes: needs "escape plus" option

2019-03-02 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: This issue still stands. The output of all three methods is exactly the same as it was when the original question was posted. Would it maybe make sense to add a flag to the unquote_to_bytes method to parse the 'plus' symbol as a space? Or maybe create a

[issue36081] Cannot set LDFLAGS containing $

2019-03-02 Thread Rolf Eike Beer
Rolf Eike Beer added the comment: No, it's not. $ORIGIN is a special value that must be literally in the RPATH (i.e. in the ELF), so that the binary is relocatable and will looks for the libraries relative to it's location. I wonder if I could do "export ORIGIN='$ORIGIN'" instead, so the

[issue36150] Possible assertion failures due to _ctypes.c's PyCData_reduce()

2019-03-02 Thread Zackery Spytz
Zackery Spytz added the comment: I'm sorry. I misunderstood the behavior of Py_BuildValue(). -- ___ Python tracker ___ ___

[issue36168] DOC: Fix capitalization in string.rst

2019-03-02 Thread Cheryl Sabella
New submission from Cheryl Sabella : In `string.rst`, under get_value(), `Subsequent` shouldn't be capitalized after the semi-colon. For compound field names, these functions are only called for the first component of the field name; ---> Subsequent <--- components are handled through

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-03-02 Thread Cheryl Sabella
New submission from Cheryl Sabella : In Programming FAQ under question "How can my code discover the name of an object?", in the second sentence, the word 'The' shouldn't be capitalized after the semi-colon. Essentially, assignment always binds a name to a value; ---> The <--- same is true

[issue36125] Cannot cross-compile to more featureful but same tune

2019-03-02 Thread Ross Burton
Ross Burton added the comment: strace disagrees. By putting strace in PYTHON_FOR_BUILD and then invoking make sharedmods: | openat(AT_FDCWD, "/data/poky-tmp/master/work/corei7-64-poky-linux/python3/3.7.2-r0/build/build/lib.linux-x86_64-3.7/_heapq.cpython-37m-x86_64-linux-gnu.so",

[issue36166] DOC: Fix markup on function parameter on datamodel.rst

2019-03-02 Thread Cheryl Sabella
New submission from Cheryl Sabella : In `datamodel.rst`, fix formatting on the format_spec argument in the text paragraph of object.__format__() to be italicized instead of marked as a code sample. object.__format__(self, format_spec) The ---> ``format_spec`` <--- argument is a string

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread muhzi
muhzi added the comment: err, wrong logs sorry... configure:11514: checking for truncate configure:11514: armv7a-linux-androideabi16-clang -o conftest -pie -march=armv7-a -Wl,--fix-cortex-a8 conftest.c -ldl >&5 configure:11514: $? = 0 configure:11514: result: yes configure:7954:

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread muhzi
muhzi added the comment: Yes it is detected by configure because they exist. >From config.log: configure:11514: checking for truncate configure:11514: armv7a-linux-androideabi21-clang -o conftest -pie -march=armv7-a -Wl,--fix-cortex-a8 conftest.c -ldl >&5 configure:11514: $? = 0

[issue36081] Cannot set LDFLAGS containing $

2019-03-02 Thread Christian Heimes
Christian Heimes added the comment: There is a simpler solution. How about you use double quotes instead of single quotes and let the shell expand the variable before you pass it down into the process? $ export ORIGIN=/origin $ echo LDFLAGS=-Wl,-rpath,'$ORIGIN/../lib'

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread Christian Heimes
Christian Heimes added the comment: The presence of sendfile and truncate is detected by configure. Your copy of configure defines HAVE_SENDFILE and HAVE_SYS_SENDFILE_H. Please check config.log and see why configure detects the functions. -- nosy: +christian.heimes

[issue36165] DOC: ssl.rst is missing formatting on two links

2019-03-02 Thread Cheryl Sabella
New submission from Cheryl Sabella : In `ssl.rst`, formatting for two data links is missing the leading `:` 1. ssl.PROTOCOL_SSLv23ΒΆ Alias for ---> data:PROTOCOL_TLS. <--- 2. Wrap the BIO objects incoming and outgoing and return an instance of ---> attr:SSLContext.sslobject_class

[issue36158] Regex search behaves differently in list comprehension

2019-03-02 Thread Ma Lin
Ma Lin added the comment: Just remind, the pattern r'"{1}', is same as r'"', means " repeats 1 time. -- nosy: +Ma Lin ___ Python tracker ___

[issue36125] Cannot cross-compile to more featureful but same tune

2019-03-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: @Ross > The intention appears to be that the sysconfig.py in the build is used. In > my case that directory is also full of shared libraries that Python happily > loads, and then fails. No, the intention is that the native python finds the sysconfigdata