[issue35500] Align expected and actual calls on mock.assert_called_with error message

2019-02-16 Thread Tal Einat
Tal Einat added the comment: Thanks everyone for seeing this through! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-02-16 Thread nr
Change by nr : -- pull_requests: +11930 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35951] os.renames() creates directories if original name doesn't exist

2019-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree with Giampaolo. The proposed change does not solve the problem completely. And since it seems that it can not be solved completely, I suggest to just better document the current behavior. -- nosy: +serhiy.storchaka

[issue36014] test_help_with_metavar broken

2019-02-16 Thread wabba
wabba added the comment: Figured it out. My shell had the COLUMNS environment variable set, and python was inheriting it in os.environ. The failing test case assumes an 80-column screen. Anyway, looks like it has been fixed for 3.8 here:

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The custom `__fspath__()` handling is used in `path_converter` for better error reporting. The error message can include names of the function and the argument. PyOS_FSPath() can not provides this information. I agree that error reporting about incorrect

[issue36009] weakref.ReferenceType is not a valid typing type

2019-02-16 Thread Alexander Mohr
Alexander Mohr added the comment: doing the __future__ doesn't help anything as it is an invalid type -- ___ Python tracker ___

[issue36014] test_help_with_metavar broken

2019-02-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the details. I couldn't reproduce this on a clean v3.7.2 build on Mac. There were also no changes to argparse.py between 3.7.0 and 3.7.2 so I don't know why it's failing on your environment. ➜ cpython git:(9a3ffc0492) git log

[issue36014] test_help_with_metavar broken

2019-02-16 Thread wabba
wabba added the comment: Ah sorry, forgot the traceback and command: Command: python3 Lib/test/test_argparse.py test (__main__.TestActionRegistration) ... ok test_failures_many_groups_listargs (__main__.TestActionUserDefined) ... ok test_failures_many_groups_sysargs

[issue36014] test_help_with_metavar broken

2019-02-16 Thread wabba
wabba added the comment: Btw, I am running 3.7.2 because that's the latest version offered on https://www.python.org/downloads/ -- ___ Python tracker ___

[issue36014] test_help_with_metavar broken

2019-02-16 Thread wabba
wabba added the comment: Output from running "python3 -m test.pythoninfo | grep 'sys.version:'": sys.version: 3.7.2 (default, Feb 17 2019, 11:51:43) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] -- ___ Python tracker

[issue36014] test_help_with_metavar broken

2019-02-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Tests were added with 842985f6c70484ed7b8fc30d0bc05aec73236a98 and passes on master and 3.7.1 . Can you please add the full traceback and the command you used to run the test? Also the output of python version as below to try reproducing it

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-16 Thread Nick Coghlan
Nick Coghlan added the comment: Since I haven't really written them down anywhere else, noting some items I'm aware of from the Python 3.7 internals work that haven't made their way back into the PEP 432 public API proposal yet: * If we only had to care about the pure embedding case, this

[issue36014] test_help_with_metavar broken

2019-02-16 Thread wabba
New submission from wabba : The test_help_with_metavar test appears to be broken. It fails with an assertion error: AssertionError: 'usag[55 chars]_name [-h] [--proxy ]\[113 chars]4>\n' != 'usag[55 chars]_name\n [-h] [--proxy \n' If I change

[issue36012] Investigate slow writes to class variables

2019-02-16 Thread Yasser Alshalaan
Yasser Alshalaan added the comment: can you include your python 2.7 runs? for me it looks similar -- nosy: +Yasser Alshalaan ___ Python tracker ___

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-16 Thread Windson Yang
Windson Yang added the comment: I only tested stats.mode() from scipy, data = 'BBAAC' should also return 'A'. But in your code **return return Counter(seq).most_common(1)[0][0]** will return B. Did I miss something? -- ___ Python tracker

[issue28235] In xml.etree.ElementTree docs there is no parser argument in fromstring()

2019-02-16 Thread Manjusaka
Manjusaka added the comment: I have already make a pull request on GitHub -- nosy: +Manjusaka ___ Python tracker ___ ___

[issue28235] In xml.etree.ElementTree docs there is no parser argument in fromstring()

2019-02-16 Thread Manjusaka
Change by Manjusaka : -- pull_requests: +11929 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Steve Dower
Steve Dower added the comment: It would be a great help if you could copy the ensurepip and venv directories from a regular install into an extracted Nuget package and let us know whether your scenario works. As you can see from the discussion, there were problems originally that may have

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread jt
jt added the comment: Sorry I could have added more detailed use cases, so I'll append them here: The use case for venv in this particular script is that it's written to also work outside of CI, so it doesn't assume it runs in a "clean" python like this. And I would rather have the exact

[issue32108] configparser bug: section is emptied if you assign a section to itself

2019-02-16 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread jt
jt added the comment: > As that's what you just installed with nuget, there's no point in creating a > venv - just pip install directly into it. This is not a pip install script or anything, it is more complex code that relies on venv. It is not written to run in this build environment

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 414c625a7ea58943f0b1bc79d095d667d78db013 by Gregory P. Smith in branch 'master': bpo-36013: delete fragile interactive shell SIGINT test (GH-11902) https://github.com/python/cpython/commit/414c625a7ea58943f0b1bc79d095d667d78db013 --

[issue35688] "pip install --user numpy" fails on Python from the Windows Store

2019-02-16 Thread Eryk Sun
Eryk Sun added the comment: > I didn't realize assemblyBinding was supported by the generic runtime > framework, the documentation https://docs.microsoft.com/en-us/dotnet/ > framework/deployment/how-the-runtime-locates-assemblies seems to > suggest it is a dotnet feature. Native private

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +11928 stage: needs patch -> patch review ___ Python tracker ___

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Could it be a race condition the signal delivery? Technically, the process sends itself a signal and never waits for it, it just exits. The signal can arrive after the process has exited normally. Or I am missing something obvious in this reasoning?

[issue31869] commentary on ssl.PROTOCOL_TLS

2019-02-16 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks. Yep this is good for the mentored sprint. -- ___ Python tracker ___ ___

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: testing on my end with various bash versions shows that bash 4.3.0 and 4.4.0 and 5.0.0 all work fine on my linux and macos systems. caveat, i'm launching regrtest from a login shell (in case that influences child bash processes behavior). i'm going to

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have tested in Ubuntu with the same version of bash 4.4.12(1)-release and the test succeeds: root@d7d8cf5d89bf:/src# echo $BASH_VERSION 4.4.12(1)-release root@d7d8cf5d89bf:/src# ./python -m test test_signal -m

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I scheduled a rebuild to check if the failure is consistent. -- ___ Python tracker ___

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Rohit travels and tours
Change by Rohit travels and tours : Added file: https://bugs.python.org/file48145/19592 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33898] pathlib issues with Windows device paths

2019-02-16 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28235] In xml.etree.ElementTree docs there is no parser argument in fromstring()

2019-02-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: @py.user, would you be able to convert your patch to a Github pull request? Thanks! -- nosy: +cheryl.sabella type: behavior -> enhancement versions: +Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker

[issue36012] Investigate slow writes to class variables

2019-02-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It seems 50% of the overhead (50ns) is due to two reasons: - 30-40% is due to the call to update_slot(type, name) after the item is set in the class dictionary. - 70-60% is due to all the extra work from _PyObject_GenericSetAttrWithDict until it

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: This means either that the bash minimum version needs upping to a patch level or that the test is actually flaky and both I and all of the CI got lucky when running it (i'm not actually sure if any of the CI actually ran this test or just skipped it - the

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

2019-02-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > It looks like it does skip calling ftruncate() if size is 0. From > posixshmem.c: Let me rephrase: are we forced to specify a value (aka call ftruncate()) on create ? If we are as I think, could size have a reasonable default value instead of 0?

[issue15757] ./configure --with-pydebug on FreeBSD results in -O2 -pipe eventually ending up in CFLAGS.

2019-02-16 Thread Cheryl Sabella
Change by Cheryl Sabella : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2019-02-16 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: -> patch review type: -> enhancement versions: +Python 3.8 ___ Python tracker ___ ___

[issue31869] commentary on ssl.PROTOCOL_TLS

2019-02-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: Mariatta, This might be another good issue for the mentored sprint, although it's applying a change to the 2.7 branch, so maybe it just needs Miss Islington? -- assignee: docs@python -> Mariatta nosy: +Mariatta

[issue36013] test_signal fails in AMD64 Debian PGO 3.x

2019-02-16 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : test_signal fails in AMD64 Debian PGO 3.x: == Tests result: FAILURE then FAILURE == 406 tests OK. 10 slowest tests: - test_concurrent_futures: 2 min 37 sec - test_multiprocessing_spawn: 2 min 3 sec - test_multiprocessing_forkserver: 1 min 28 sec -

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Steve Dower
Steve Dower added the comment: There certainly used to be a problem where venv was totally reliant on Python being in the registry to work properly. I'm not sure if that's still the case - possibly with the new redirector in 3.7.2+ it's fixed. --

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Paul Moore
Paul Moore added the comment: > The whole point of a venv is to give you a separate directory with a "stand > alone" Python. As that's what you just installed with nuget, there's no point > in creating a venv However, shipping a copy of Python with a non-optional element of the stdlib

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've been thinking about this a bit more. ISTM that for now, it's best to get mode() working for everyday use, returning just the first mode encountered. This keeps the signature simple (Iterable -> Scalar). In the future, if needed, there is room to

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Steve Dower
Steve Dower added the comment: The whole point of a venv is to give you a separate directory with a "stand alone" Python. As that's what you just installed with nuget, there's no point in creating a venv - just pip install directly into it. Alternatively, you can pip install virtualenv and

[issue35580] Windows IocpProactor: CreateIoCompletionPort 4th arg 0xffffffff -- why is this value the default?

2019-02-16 Thread Jeff Robbins
Jeff Robbins added the comment: I don't understand why 0 would be safer. Since asyncio can only service this IOCP from its single threaded event loop, I would have thought 1 would express the intent better. Why not convey to the OS what we're up to, in case that helps it do a better job

[issue29202] Improve dict iteration

2019-02-16 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +11927 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27181] Add geometric mean to `statistics` module

2019-02-16 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: This is in for 3.8. On earlier or unpatched Python versions: application owners have a workaround f they do not mind skipping a clean application shutdown (destructors) on posix platforms: catch KeyboardInterrupt, reset SIGINT to SIG_DFL, kill(getpid(),

[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

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 38f11cc3f62db11a4a24354bd06273322ac91afa by Gregory P. Smith in branch 'master': bpo-1054041: Exit properly after an uncaught ^C. (#11862) https://github.com/python/cpython/commit/38f11cc3f62db11a4a24354bd06273322ac91afa --

[issue27181] Add geometric mean to `statistics` module

2019-02-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Updating the version in case this wanted to be considered for 3.8. Yes. It would be nice to get this wrapped-up. -- ___ Python tracker

[issue35884] Add variable access benchmark to Tools/Scripts

2019-02-16 Thread miss-islington
miss-islington added the comment: New changeset 43766f82ddec84fad7a321eeec2e1cbff6ee44d2 by Miss Islington (bot) (Raymond Hettinger) in branch 'master': bpo-35884: Add missing FIFO queue benchmark (GH-11898) https://github.com/python/cpython/commit/43766f82ddec84fad7a321eeec2e1cbff6ee44d2

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

2019-02-16 Thread Davin Potts
Davin Potts added the comment: @giampaolo: > Also, what happens if you alter the size of an existing object with a smaller > value? Is the memory region overwritten? Attaching to an existing shared memory block with a size=N which is smaller than its allocated size (say it was created with

[issue33234] Improve list() pre-sizing for inputs with known lengths

2019-02-16 Thread miss-islington
miss-islington added the comment: New changeset e182318e6a473e6e9341f1aab8e49f2b1035c674 by Miss Islington (bot) (Raymond Hettinger) in branch 'master': bpo-33234: Add another attribution in Whatsnew (GH-11899) https://github.com/python/cpython/commit/e182318e6a473e6e9341f1aab8e49f2b1035c674

[issue29202] Improve dict iteration

2019-02-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I can convert this to a pull request if there is still interest in the change. Yes, please do. -- ___ Python tracker ___

[issue33234] Improve list() pre-sizing for inputs with known lengths

2019-02-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +11926 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35884] Add variable access benchmark to Tools/Scripts

2019-02-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +11925 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2019-02-16 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-02-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: As for *flags* argument "man shm_open" mentions 5 possible flags: - O_RDONLY, OR_RDWR: these can be served by existing *read_only* arg - O_CREAT, O_EXCL: dictates whether to raise error if file exists; could be served via *attach_if_exists* arg, if added,

[issue36012] Investigate slow writes to class variables

2019-02-16 Thread Raymond Hettinger
New submission from Raymond Hettinger : Benchmark show what writes to class variables are anomalously slow. class A(object): pass A.x = 1 # This write is 3 to 5 times slower than other writes. FWIW, the same operation for old-style classes in Python 2.7 was several times

[issue29202] Improve dict iteration

2019-02-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: I can convert this to a pull request if there is still interest in the change. -- nosy: +cheryl.sabella versions: +Python 3.8 ___ Python tracker

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2019-02-16 Thread miss-islington
miss-islington added the comment: New changeset 63fa1cfece4912110ce3a0ff11fb3ade3ff5e756 by Miss Islington (bot) (Raymond Hettinger) in branch 'master': bpo-32492: Add missing whatsnew entries for itemgetter and namedtuple (GH-11897)

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2019-02-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +11924 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-02-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > The unlink() method is available on the SharedMemory class. No manager is > required. This is also captured in the docs. I missed that, sorry. >> 3) it seems "size" kwarg cannot be zero (current default) > From the docs: When attaching to an existing

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2019-02-16 Thread miss-islington
miss-islington added the comment: New changeset 3ff5962d2e9af2c35d09d39465397c6fa6e9965c by Miss Islington (bot) (Raymond Hettinger) in branch 'master': bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896)

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2019-02-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +11923 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-02-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: I agree that we need to be more resistant to system configuration, but it doesn't seem worth holding 2.7 up for. -- priority: release blocker -> high ___ Python tracker

[issue36011] ssl - tls verify on Windows 10 fails

2019-02-16 Thread Christian Korneck
New submission from Christian Korneck : Hello, I have the impression that there's a general issue with how the Python stdlib module `ssl` uses the Windows certificate store to read the "bundle" of trusted Root CA certificates. At a first look, I couldn't find this issue documented

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread jt
jt added the comment: Okay, I just tested switching to the NuGet package and appear to have hit some sort of issue: C:\myproject\tools\windows\.python-win\python\tools\python.exe: No module named venv Traceback (most recent call last): File "C:\myproject\tools\windows\\windows-build.py",

[issue35962] Slight error in words in [ 2.4.1. String and Bytes literals ]

2019-02-16 Thread Nick Coghlan
Nick Coghlan added the comment: I agree the current text is ambiguous given how often folks refer to the newline escape sequence as a "newline", but it isn't wrong - it's just talking about escaping literal newlines in your source code like: >>> "This is a \ ... single-line string" 'This is

[issue35971] Documentation should warn about code injection from current working directory

2019-02-16 Thread Nick Coghlan
Nick Coghlan added the comment: Folks use "python -m myproject.mymodule" to run code that they're working on all the time - it's currently the only way to get sys.path right for cases like that (otherwise you're exposed to the double import trap, where you can get two copies of a submodule

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > We can return the smallest value from the **table** instead > of the code below. Internally, that does too much work and then throws most of it away. The difference between Counter(data).most_common()[1] and Counter(data).most_common(1) is that the

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Steve Dower
Steve Dower added the comment: > So is that a no for a regular .zip release here? > https://www.python.org/downloads/windows/ Correct, it's a no. The main reason is because people use it wrong and get into trouble, and we don't want to support that. (More after the docs link below) > If

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread jt
jt added the comment: > Well, you still need a tool to fetch the zip and you need another tool to > unzip it Windows 10 actually has everything necessary around, so I don't! That's kind of the beauty of it, the other point being that every dev knows how to deal with a .zip (more than know

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Jeremy Kloth
Jeremy Kloth added the comment: > Why do I need to fetch another tool just to fetch Python? Well, you still need a tool to fetch the zip and you need another tool to unzip it. If not, how are you bootstrapping your script for those uses? > If this is the final decision then I recommend at

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

2019-02-16 Thread Davin Potts
Davin Potts added the comment: @giampaolo: > 1) As for SharedMemoryManager, I believe it should live in > multiprocessing.managers, not shared_memory.py. I am happy to see it live in multiprocessing.managers so long as we can provide a clean way of handling what happens on a platform where

[issue35688] "pip install --user numpy" fails on Python from the Windows Store

2019-02-16 Thread mattip
mattip added the comment: @eryksun thanks for the details. I didn't realize assemblyBinding was supported by the generic runtime framework, the documentation https://docs.microsoft.com/en-us/dotnet/framework/deployment/how-the-runtime-locates-assemblies seems to suggest it is a dotnet

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread jt
jt added the comment: So is that a no for a regular .zip release here? https://www.python.org/downloads/windows/ Don't get me wrong I'm all for options, I just don't get why there is no simple tool-less binary archive for Windows. Why are the only options different variants of installers

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

2019-02-16 Thread Davin Potts
Davin Potts added the comment: @giampaolo: > Maybe something like this instead? > SharedMemory(name=None, attach_if_exists=False, size=0) I think this misses the use case when wanting to ensure we only attach to an existing shared memory block and if it does not exist, we should raise

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

2019-02-16 Thread Davin Potts
Davin Potts added the comment: @giampaolo: > 1) it seems SharedMemory.close() does not destroy the memory region > (I'm able to re-attach to it via name). If I'm not mistaken only > the manager can do that. Correct, close() does not and should not destroy the memory region because other

[issue35810] Object Initialization does not incref Heap-allocated Types

2019-02-16 Thread Nick Coghlan
Nick Coghlan added the comment: Having types created through the stable ABI potentially be deallocated when their instances are deallocated is indeed a major problem, and fixing that seems worth the risk of some types that were designed to handle that become immortal. -- nosy:

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

2019-02-16 Thread Mayank Asthana
Change by Mayank Asthana : -- nosy: +masthana ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-02-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Hopefully my last iteration: =) 1) As for SharedMemoryManager, I believe it should live in multiprocessing.managers, not shared_memory.py. It's a subclass of Manager and behaves like a manager (start(), shutdown(), get_server(), etc.), so IMO that's its

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-16 Thread Nick Coghlan
Nick Coghlan added the comment: Note also that Eric and I haven't failed to agree with Victor on an API, as Victor hasn't actually written a concrete proposal *for* a public API (neither as a PR updating PEP 432, nor as a separate PEP). The current implementation does NOT follow the PEP as

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Jeremy Kloth
Jeremy Kloth added the comment: On Sat, Feb 16, 2019 at 8:32 AM jt wrote: > Is nuget a standard windows utility? No, but if your script can download a zip of Python, it could download the nuget executable. > What happens if that process is interrupted? Same as interrupting an unzip

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread jt
jt added the comment: Is nuget a standard windows utility? What happens if that process is interrupted? What happens if I install it twice to different folders? What happens if I want a specific python version? Don't get me wrong maybe it can do all these things, but why on earth do I need

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Jeremy Kloth
Jeremy Kloth added the comment: For a "tool-style" installation of Python, see the 'PCBuild\find_python.bat' script in the Python source tree, specifically the nuget section. Ultimately, it is just: > nuget install pythonx86 -ExcludeVersion -OutputDirectory "some\path" which will create an

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

2019-02-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Because shared memory blocks are not "owned" by a single process... > [...] > I propose a simpler, consistent-across-platforms API like: > SharedMemory(name=None, create=False, size=0) Maybe something like this instead? SharedMemory(name=None,

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-16 Thread Nick Coghlan
Nick Coghlan added the comment: Steve, you're describing the goals of PEP 432 - design the desired API, then write the code to implement it. So while Victor's goal was specifically to get PEP 540 implemented, mine was just to make it so working on the startup sequence was less awful (and in

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread jt
New submission from jt : It would be really useful if you could provide a .zip Windows release of Python that is not crippled/for embedding only. The reason is simply is that right now, I am having constant pain & trouble with it writing an automated build script for Windows (.bat) that

[issue29466] pickle does not serialize Exception __cause__ field

2019-02-16 Thread Kumar Akshay
Kumar Akshay added the comment: Hey, can I work on this? -- nosy: +kakshay ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36000] __debug__ is a keyword but not a keyword

2019-02-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue34464 -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-16 Thread Windson Yang
Windson Yang added the comment: IMHO, we don't need to add the option. We can return the smallest value from the **table** instead of the code below. if len(table) == 1: return table[0][0] [1] https://github.com/python/cpython/blob/master/Lib/statistics.py#L502 -- nosy:

[issue36008] [good first issue] Update documentation for 3.8

2019-02-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: Awesome! Thanks. If I find anything else, I'll flag it accordingly. -- ___ Python tracker ___

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

2019-02-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Because shared memory blocks are not "owned" by a single process, they are > not destroyed/freed when a process exits. 1) it seems SharedMemory.close() does not destroy the memory region (I'm able to re-attach to it via name). If I'm not mistaken only

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +11922 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36009] weakref.ReferenceType is not a valid typing type

2019-02-16 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This question appeared several times before, and the conclusion is that we are not going to do this. There are many cases in standard library that are generic in stubs (and by nature) but are not declared as such at runtime, so we simply can't provide a

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-16 Thread Francis MB
Francis MB added the comment: Good point Raymond! Only a minor observation on the packages API: [1] SciPy: scipy.stats.mode(a, axis=0, nan_policy='propagate') "Returns an array of the modal (most common) **value** in the passed array." --> Here it claims to return just ONE value And use

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would stick with "first_tie=False". That caters to the common case, avoids API complications, and does something similar to what other stats packages are doing. - API Survey Maple: """This function is only guaranteed to return one potential

[issue35949] Move PyThreadState into Include/internal/pycore_pystate.h

2019-02-16 Thread Stefan Behnel
Stefan Behnel added the comment: Oh, and I forgot the new trashcan support. Cython will also start to use that in its next release, so that adds the trashcan related attributes to the list. https://github.com/cython/cython/pull/2842/files -- ___

  1   2   >