[issue35897] Support list as argument to .startswith()

2019-02-05 Thread Fred .Flintstone
New submission from Fred .Flintstone : The "".startswith() method accepts a string or a tuple as a parameter. Consider adding support for list as parameter. Example: "foo".startswith(["food", "for", "fast"]) -- components: Interpreter Core messages: 334856 nosy: Fred .Flintstone prior

[issue35897] Support list as argument to .startswith()

2019-02-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: For subtle reasons, that would make us worse off. Tuple of constants get precomputed but lists of constants have to be rebuilt. Thank for the suggestion, but I think we should stick with the original design. -- nosy: +rhettinger resolution: -> r

[issue35897] Support list as argument to .startswith()

2019-02-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Related discussion : issue34312 -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs

[issue35897] Support list as argument to .startswith()

2019-02-05 Thread Fred .Flintstone
Fred .Flintstone added the comment: A programmer want to instruct the computer to do something, without having to care about how it works. Maybe the library could in the background convert the list to a tuple. Like: "foo".startswith(tuple(["food", "for", "fast"])) But the programmer shouldn

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch, patch, patch pull_requests: +11707, 11708, 11709 stage: -> patch review ___ Python tracker ___ __

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +11707 stage: -> patch review ___ Python tracker ___ ___ Py

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch, patch pull_requests: +11707, 11708 stage: -> patch review ___ Python tracker ___

[issue20001] pathlib inheritance diagram too large

2019-02-05 Thread INADA Naoki
INADA Naoki added the comment: New changeset cd90f6a3692e0f7ef0a13aae651e19a08d1f9b31 by Inada Naoki (Harmandeep Singh) in branch 'master': bpo-20001: update pathlib landing image (GH-11304) https://github.com/python/cpython/commit/cd90f6a3692e0f7ef0a13aae651e19a08d1f9b31 -- nosy: +

[issue20001] pathlib inheritance diagram too large

2019-02-05 Thread INADA Naoki
Change by INADA Naoki : -- nosy: -inada.naoki versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue20001] pathlib inheritance diagram too large

2019-02-05 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +11710, 11711 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue20001] pathlib inheritance diagram too large

2019-02-05 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +11710 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20001] pathlib inheritance diagram too large

2019-02-05 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +11710, 11711, 11712 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20001] pathlib inheritance diagram too large

2019-02-05 Thread INADA Naoki
INADA Naoki added the comment: New changeset 21ab7744ae30bff24bcc9e075a96e98137b90a37 by Inada Naoki in branch '3.7': bpo-20001: update pathlib landing image (GH-11304) https://github.com/python/cpython/commit/21ab7744ae30bff24bcc9e075a96e98137b90a37 -- nosy: +inada.naoki resolution

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2019-02-05 Thread Stefan Krah
Change by Stefan Krah : -- assignee: -> skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2019-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Guido, The team of Pytest has been informed and after a small discussion, it seems it's a problem with the way they use the AST for the assert keyword. They know the issue, I hope they will fix it asap. I would like to test pytest with 3.8 ;-) Thank you

[issue35358] Document that importlib.import_module accepts names that are not valid Python syntax

2019-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I close this issue, thank you for your feedback. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker __

[issue35055] Error when we try to download the epub archive

2019-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ping ned, do we have a solution for this issue? Thank you, Stéphane -- ___ Python tracker ___ _

[issue35898] The TARGETDIR variable must be provided when invoking this installer

2019-02-05 Thread Thomas Trummer
New submission from Thomas Trummer : The installer for Python 3.8.0a1 doesn't work under Windows 7. It shows the aforementioned error message. -- components: Installation files: Python 3.8.0a1 (64-bit)_20190205130936.log messages: 334865 nosy: Thomas Trummer priority: normal severity:

[issue35898] The TARGETDIR variable must be provided when invoking this installer

2019-02-05 Thread Thomas Trummer
Change by Thomas Trummer : Added file: https://bugs.python.org/file48100/Python 3.8.0a1 (64-bit)_20190205131106_000_core_JustForMe.log ___ Python tracker ___ _

[issue35898] The TARGETDIR variable must be provided when invoking this installer

2019-02-05 Thread Thomas Trummer
Change by Thomas Trummer : Added file: https://bugs.python.org/file48098/Python 3.8.0a1 (64-bit)_20190205130936_000_core_JustForMe.log ___ Python tracker ___ _

[issue35898] The TARGETDIR variable must be provided when invoking this installer

2019-02-05 Thread Thomas Trummer
Change by Thomas Trummer : Added file: https://bugs.python.org/file48099/Python 3.8.0a1 (64-bit)_20190205131106.log ___ Python tracker ___

[issue35898] The TARGETDIR variable must be provided when invoking this installer

2019-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ __

[issue35896] sysconfig.get_platform returns wrong value when Python 32b is running under Windows 64b

2019-02-05 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue34572] C unpickling bypasses import thread safety

2019-02-05 Thread SilentGhost
Change by SilentGhost : -- keywords: +needs review nosy: +alexandre.vassalotti ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue35813] shared memory construct to avoid need for serialization between processes

2019-02-05 Thread Stefan Krah
Change by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-05 Thread Maxwell
New submission from Maxwell : This is a really minor bug. In enum.py the function _is_sunder(name) fails on empty string with an IndexError. As a result, attempting to create an Enum with an empty string fails. >>> from enum import Enum >>> Yay = Enum('Yay', ('', 'B', 'C')) Traceback (most r

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-05 Thread Maxwell
Maxwell added the comment: Typo fix on solution 2: def _is_sunder(name): """Returns True if a _sunder_ name, False otherwise.""" return (name[:1] == name[-1:] == '_' and name[1:2] != '_' and name[-2:-1] != '_' and len(name) > 2) --

[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

2019-02-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: @gregory.p.smith Do you think the debugHook should be added to the test case or the test runner? If we add it to the test case, how do you think the runner should tell the test case what flags have been given on the command line? I feel like adding a new class

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @Maxpxt, I think your first solution is appropriate, do you want to open a new pull request with your solution and an appropriate test case? -- nosy: +remi.lapeyre ___ Python tracker

[issue35900] Add pickler hoor for the user to customize the serialization of user defined functions and types.

2019-02-05 Thread Pierre Glaser
New submission from Pierre Glaser : Pickler objects provide a dispatch_table attribute, where the user can specify custom saving functions depending on the object-to-be-saved type. However, for performance purposes, this table is predated (in the C implementation only) by a hardcoded switch that

[issue35900] Add pickler hoor for the user to customize the serialization of user defined functions and types.

2019-02-05 Thread Pierre Glaser
Pierre Glaser added the comment: Pickler objects provide a dispatch_table attribute, where the user can specify custom saving functions depending on the object-to-be-saved type. However, for performance purposes, this table is predated (in the C implementation only) by a hardcoded switch that w

[issue35900] Add pickler hook for the user to customize the serialization of user defined functions and types.

2019-02-05 Thread SilentGhost
Change by SilentGhost : -- title: Add pickler hoor for the user to customize the serialization of user defined functions and types. -> Add pickler hook for the user to customize the serialization of user defined functions and types. ___ Python trac

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailin

[issue35900] Add pickler hook for the user to customize the serialization of user defined functions and types.

2019-02-05 Thread Antoine Pitrou
Change by Antoine Pitrou : -- Removed message: https://bugs.python.org/msg334871 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35900] Add pickler hook for the user to customize the serialization of user defined functions and types.

2019-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: FYI, I've removed the duplicate message :-) Also adding Serhiy as cc. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue32417] fromutc does not respect datetime subclasses

2019-02-05 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue35896] sysconfig.get_platform returns wrong value when Python 32b is running under Windows 64b

2019-02-05 Thread Steve Dower
Steve Dower added the comment: This is intentional. The "platform" here represents the Python platform (for figuring out whether native modules are compatible), and since it's the 32-bit build of Python it should specify the 32-bit platform. To find out information about the machine you are

[issue35898] The TARGETDIR variable must be provided when invoking this installer

2019-02-05 Thread Steve Dower
Steve Dower added the comment: The installer hasn't changed since 3.7, so this seems unlikely to be a new issue. I see this line in your log file: MSI (s) (A8:D0) [13:09:39:028]: Ignoring disallowed property TARGETDIR Perhaps your IT department has configured some restrictions on installers

[issue35737] crypt AuthenticationError introduced with new Linux kernel

2019-02-05 Thread Brett R
Brett R added the comment: Karthikeyan, Thank you for looking into this. I have been trying, in the background, to make further progress on this issue but progress is slow and other issues crop up. While the version of Python here is old, it was the latest in RHEL/CentOS 7.5. We are trying

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue35896] sysconfig.get_platform returns wrong value when Python 32b is running under Windows 64b

2019-02-05 Thread jcrmatos
jcrmatos added the comment: Then what is the difference between sysconfig.get_platform and sys.platform? When should we use one or the other? Maybe changing sys.platform to 'win' instead of 'win32', like was done with 'linux' in Python 3.3 (changed from 'linux2' and 'linux3') would be a step

[issue35901] json.dumps infinite recurssion

2019-02-05 Thread MultiSosnooley
New submission from MultiSosnooley : ``` __import__('json').dumps(object(), default=lambda o: repr(o).encode()) ``` Produce infinite recursion on `default` function. Here is more informative example: ``` >>> def f(o): ... input(f"{o!r} {type(o)}") ... return repr(o).encode() ... >>> im

[issue35896] sysconfig.get_platform returns wrong value when Python 32b is running under Windows 64b

2019-02-05 Thread pmpp
pmpp added the comment: > what is the difference sys.platform is defined by code path taken while compiling. it is hardcoded and really represents the os abi used of a *supported* platform, it is to be trusted. while sysconfig.get_platform() try to guess from various sources with more or l

[issue35055] Error when we try to download the epub archive

2019-02-05 Thread Julien Palard
Julien Palard added the comment: Issue has been fixed upstream IIRC: https://github.com/sphinx-doc/sphinx/pull/5574 -- ___ Python tracker ___

[issue28411] Eliminate PyInterpreterState.modules.

2019-02-05 Thread Tim Burgess
Change by Tim Burgess : -- pull_requests: +11713, 11714 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue35901] json.dumps infinite recurssion

2019-02-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess json module expects a return value from default function that is str, int, float, etc. that can be handled by built in encoders and returning a bytes object with repr causes it to keep calling default until a value of one of expected type i

[issue28411] Eliminate PyInterpreterState.modules.

2019-02-05 Thread Tim Burgess
Change by Tim Burgess : -- pull_requests: +11713 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35897] Support list as argument to .startswith()

2019-02-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > A programmer want to instruct the computer to do something, without having to > care about how it works. This is not true, as a programmer you need to choose carefully your data structures because they matter, for example there is a difference between doing

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-02-05 Thread Aron Podrigal
Aron Podrigal added the comment: I am experiencing the same issue. https://github.com/python/cpython/pull/10771 looks good. While were at it, and if PR 10771 is accepted, maybe we can change https://github.com/python/cpython/blob/6613b56173d26f32da9945691ff9f824304224a2/Lib/cgi.py#L717 to

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-02-05 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue35896] sysconfig.get_platform returns wrong value when Python 32b is running under Windows 64b

2019-02-05 Thread Steve Dower
Steve Dower added the comment: > sys.platform is defined by code path taken while compiling. it is hardcoded > and really represents the os abi used of a *supported* platform Correct, though the examples I'd give are Win32 vs. WinRT vs. Cygwin, which are fundamentally different API surfaces

[issue35055] Error when we try to download the epub archive

2019-02-05 Thread Ned Deily
Ned Deily added the comment: Yes, it looks like 3.6 and 3.7 have been building properly so that's good. However, I see that there seems to be an issue with building the 3.8.0 downloadables. It looks like only the html formats are being built and that now results in 404s for the others sinc

[issue35901] json.dumps infinite recurssion

2019-02-05 Thread MultiSosnooley
MultiSosnooley added the comment: Oh, I got it. Size is too high growing to reach recurtion limit. I replace repr with slow growing data and now there is good old recursion limit exception. import json class F: counter = 0 total = 0 data = b"" def __call__(self, o):

[issue35902] Forking from background thread

2019-02-05 Thread Vadim Tsozik
New submission from Vadim Tsozik : Attached is code sample that forks child process either from main or from background thread. Child starts and joins all of its threads except a sleeping daemon. If parent forks child from main thread program exits immediately after child threads are joined a

[issue35902] Forking from background thread

2019-02-05 Thread Christian Heimes
Christian Heimes added the comment: In general threads and forks don't mix well. If you fork from any thread but the main thread, you can run into undefined behavior. Daemon threads are a special property of Python's threading model. You need to have one non-daemon thread running to keep the

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-02-05 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11715 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-02-05 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11715, 11716 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-02-05 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11715, 11716, 11717 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-02-05 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11715, 11716, 11717, 11718 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
New submission from Neil Schemenauer : The logic in setup.py that determines if _multiprocessing/posixshmem.c should get built is not very robust. I think it is better to use autoconfig to probe for the required functions and libraries. My autoconfig brain cells are a bit fuzzy but I think

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +11719 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +11719, 11720 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +11719, 11720, 11721 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-02-05 Thread Aron Podrigal
Aron Podrigal added the comment: A different approach. Always honor content length, and do not try to read more than. -- ___ Python tracker ___ __

[issue35851] Make search result in online docs keep their position when search finishes

2019-02-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is fixed upstream and will be available as Sphinx is upgraded. Closing it now. Thanks @roelschroeven for the report. Upstream PR : https://github.com/sphinx-doc/sphinx/pull/6018 -- resolution: -> third party stage: -> resolved status

[issue35902] Forking from background thread

2019-02-05 Thread Vadim Tsozik
Vadim Tsozik added the comment: Thank you for your reply. I understand that forking and threads do not mix well if developer is not careful and child doesn't clear/reset synchronization variables inherited from parent. However this is not the case in provided code sample. The answer to my qu

[issue35737] crypt AuthenticationError introduced with new Linux kernel

2019-02-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Hi Brett, Those issues should be reported on Red Hat's bugzilla, if it's definite that the kernel version (or a new cpython release downstream) is the one to blame for it. Also RHEL 7's python version while being 2.7.5, carries many additional patche

[issue35904] Add statistics.fmean(seq)

2019-02-05 Thread Raymond Hettinger
New submission from Raymond Hettinger : The current mean() function makes heroic efforts to achieve last bit accuracy and when possible to retain the data type of the input. What is needed is an alternative that has a simpler signature, that is much faster, that is highly accurate without dem

[issue35905] macOS build docs need refresh (2019)

2019-02-05 Thread Jason R. Coombs
New submission from Jason R. Coombs : In https://github.com/python/devguide/issues/453#issuecomment-460848565, I understand that Ned wishes to update the macOS build docs prior to linking to them from the dev guide. -- assignee: docs@python components: Documentation messages: 334895 n

[issue35905] macOS build docs need refresh (2019)

2019-02-05 Thread Ned Deily
Change by Ned Deily : -- assignee: docs@python -> ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue35894] Apparent regression in 3.8-dev: 'TypeError: required field "type_ignores" missing from Module'

2019-02-05 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue35906] Header Injection in urllib

2019-02-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue35906] Header Injection in urllib

2019-02-05 Thread Sihoon Lee
New submission from Sihoon Lee : this patch can also be broken by path and query string. http://www.cvedetails.com/cve/CVE-2016-5699/ https://bugs.python.org/issue30458 can succeed to inject HTTP header and be more critical by bypassing illegal header check # Vulnerability PoC >>> import url

[issue35766] Merge typed_ast back into CPython

2019-02-05 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +11723 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35766] Merge typed_ast back into CPython

2019-02-05 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +11723, 11724 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35766] Merge typed_ast back into CPython

2019-02-05 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +11723, 11724, 11725 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue24209] Allow IPv6 bind in http.server

2019-02-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: I don't believe the current patch as accepted has the right behaviors. First off, the default behavior, which indicates "all interfaces" only binds to IPv4 interfaces. Additionally, "-b localhost" only binds to IPv4 localhost. Ideally, the bind should happe

[issue24209] Allow IPv6 bind in http.server

2019-02-05 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +11726, 11727 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue24209] Allow IPv6 bind in http.server

2019-02-05 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +11726 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue24209] Allow IPv6 bind in http.server

2019-02-05 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +11726, 11727, 11728 stage: resolved -> patch review ___ Python tracker ___ ___ Python

[issue35905] macOS build docs need refresh (2019)

2019-02-05 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue35905] macOS build docs need refresh (2019)

2019-02-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: All I know is that for 3.7 and 3.8 (3.6 is different), I have this little helper script to build against Homebrew libraries. #!/bin/sh export CPPFLAGS="-I$(brew --prefix sqlite3)/include -I$(brew --prefix zlib)/include" export LDFLAGS="-L$(brew --prefix sq

[issue35904] Add statistics.fmean(seq)

2019-02-05 Thread Josh Rosenberg
Josh Rosenberg added the comment: Correct me if I'm wrong, but at least initially, the first listed goal of statistics (per the PEP) was: "Correctness over speed. It is easier to speed up a correct but slow function than to correct a fast but buggy one." numpy already exists for people who

[issue35906] Header Injection in urllib

2019-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +martin.panter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Davin Potts
Davin Potts added the comment: Agreed that the logic for building that code needs exactly this sort of change. Thanks for the patch! It looks like your patch does not happily detect the dependencies on MacOS for some reason, but all appears well on Windows & Linux. I will have a closer lo

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
Neil Schemenauer added the comment: I didn't understand autoconfig well enough but I think I fixed it now. Apparently MacOS is a platform where it has shm_open but you don't need to link with -lrt. The revised 'configure' should handle that correctly now. -- __

[issue35904] Add statistics.fmean(seq)

2019-02-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Correctness over speed. Are you saying that "fsum(seq) / len(seq)" is incorrect because on some older builds there is a rare possibility of an error of 1 unit in the last place? Just about everyone who uses this module will not care one whit about that

[issue35812] Don't log an exception from the main coroutine in asyncio.run()

2019-02-05 Thread Henry Chen
Henry Chen added the comment: I'm having trouble reproducing this issue. The main_coro seems to disappear when an exception is raised in it, so that it does not show up in the set of tasks to cancel. I'm probably misunderstanding something basic here. Is it possible to provide a minimal exam

[issue35902] Forking from background thread

2019-02-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unless it's clear that there is a buggy behavior or a useful feature request, it would be better to move this to StackOverflow which is a more appropriate forum for general questions on how Python works internally. -- nosy: +rhettinger __