[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8a1bab92915dd5c88832706c56af2f5611181d50 by Terry Jan Reedy in branch 'master': bpo-34162: Add entries for idlelib/NEWS.txt (#12232) https://github.com/python/cpython/commit/8a1bab92915dd5c88832706c56af2f5611181d50 --

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-03-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +12219 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-03-08 Thread miss-islington
miss-islington added the comment: New changeset 02351ed1ba601445735c6a6eae6f9b1d37fae8cd by Miss Islington (bot) in branch '3.7': bpo-34162: Add entries for idlelib/NEWS.txt (GH-12232) https://github.com/python/cpython/commit/02351ed1ba601445735c6a6eae6f9b1d37fae8cd --

[issue35967] Better platform.processor support

2019-03-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: As the documentation says, the API is intended as fairly portable implementation of the Unix uname helper across platforms. It's fine to redirect this directly to e.g. /proc output instead of using the executable, but in whatever you do here, the output

[issue36227] Add default_namespace argument to xml.etree.ElementTree.tostring()

2019-03-08 Thread Stefan Behnel
Stefan Behnel added the comment: The feature seems reasonable to me and the patch looks good. -- ___ Python tracker ___ ___ Python-

[issue36227] Add default_namespace argument to xml.etree.ElementTree.tostring()

2019-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue31256. I do not know what is better: make tostring() to accept all options of write(), or keep it simpler. What strategy lxml supports? -- ___ Python tracker _

[issue36230] Please sort assertSetEqual's output

2019-03-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: @rhettinger > It's possible to have non-sortable elements in the set, so you'll either need > to sort on the repr of the elements or have a fallback Yes, it is the repr that is used in the loop and that what's the sorting needs to be done against. @Windson Ya

[issue36227] Add default_namespace argument to xml.etree.ElementTree.tostring()

2019-03-08 Thread Stefan Behnel
Stefan Behnel added the comment: lxml does not support the "default_namespace" option specifically (because its tree model preserves namespace prefixes), but it generally makes all (justifiable) serialisation options available to both tostring() and ET.write(). I think the same should apply

[issue36228] Support coercion of complex to float/int

2019-03-08 Thread Марат Нагаев
Марат Нагаев added the comment: Oh, __floor__ can return anything. So I suggest: 1. Methods __floor__ and __ceil__ for complex object. 2. Don't change __float__ and __int__ methods. 3. So I think it isn't nessesary to add methods floor and ceil to complex module. Example: from math import * z=1

[issue36227] Add default_namespace argument to xml.etree.ElementTree.tostring()

2019-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Okay. Bernt, do you mind to add also the xml_declaration option in PR 12225 or create a separate PR for issue31256? -- ___ Python tracker

[issue36231] no "proper" header files on macOS 10.14 Mojave

2019-03-08 Thread Dmitrii Pasechnik
New submission from Dmitrii Pasechnik : Neither Xcode nor its command-line tools on macOS 10.14 Mojave come with header files installed in /usr/ and other "normal" directories. This is not documented in https://devguide.python.org/setup/#macos-and-os-x While an extra step to handle this, i.e.

[issue36232] Improve error message on dbm.open

2019-03-08 Thread Marco Rougeth
New submission from Marco Rougeth : If dbm.open is used with the flags 'r' or 'w' (read-only) to open a file that doesn't exist, it raises an exception with the message "need 'c' or 'n' flag to open new db". It'd be better to have a more explicit error message like "db file doesn't exist, use

[issue36233] xml ElementTree quotation marks of xml version string

2019-03-08 Thread Johann Krauter
New submission from Johann Krauter : I have the problem, that a xml file is save with the following xml declaration: instead of I would propose to change the line number 769 in the ElementTree.py to: write("\n" % ( declared_encoding,)) -- components: XML files

[issue36234] test_os: add tests for invalid uid type

2019-03-08 Thread STINNER Victor
New submission from STINNER Victor : The Fedora package of python contains a downstream patch to add more tests for invalid uid types: https://src.fedoraproject.org/rpms/python2/blob/master/f/00157-uid-gid-overflows.patch I propose to make this patch upstream. More tests never hurts :-) uid/g

[issue36234] test_os: add tests for invalid uid type

2019-03-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch Added file: https://bugs.python.org/file48194/00157-uid-gid-overflows.patch ___ Python tracker ___ __

[issue36234] test_os: add tests for invalid uid type

2019-03-08 Thread STINNER Victor
STINNER Victor added the comment: See _Py_Uid_Converter() and _Py_Gid_Converter() of Modules/posixmodule.c. -- ___ Python tracker ___ _

[issue36234] test_os: add tests for invalid uid type

2019-03-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12221 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36228] Support coercion of complex to float/int

2019-03-08 Thread Mark Dickinson
Mark Dickinson added the comment: > So I suggest: > 1. Methods __floor__ and __ceil__ for complex object. What's the use-case for these? It's not a particularly natural operation, and I've never had a need for a complex "floor" operation, either as a mathematician or as a developer. Do you h

[issue36230] Please sort assertSetEqual's output

2019-03-08 Thread Windson Yang
Windson Yang added the comment: My point is careful about the non-sortable object. My mistake, this should be an enhancement, not a bug. -- versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue36234] test_os: add tests for invalid uid type

2019-03-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-08 Thread STINNER Victor
New submission from STINNER Victor : When a C extension is built by distutils, distutils.sysconfig.customize_compiler() is used to configure compiler flags. Extract of the code: (cc, cxx, opt, cflags, ccshared, ldshared, shlib_suffix, ar, ar_flags) = \ get_config_vars('CC', 'CXX',

[issue36236] Python crash on macOS when CWD is invalid

2019-03-08 Thread László Kiss Kollár
New submission from László Kiss Kollár : CPython crashes with "pymain_compute_path0: memory allocation failed" when attempting to execute it with a library module from a previously deleted directory. To reproduce: cd ~/tmp/python_crash rm -rf ~/tmp/python_crash python3.7 -m pdb Fatal Python

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12223 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36236] Python crash on macOS when CWD is invalid

2019-03-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is happening because _Py_wgetcwd returns NULL (although the underliying getcwd system call populates the `fullpath` variable correctly) but its caller, _PyPathConfig_ComputeArgv0, does not check the return value: _Py_wgetcwd(fullpath,

[issue36236] Python crash on macOS when CWD is invalid

2019-03-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12224 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36237] data_files / Install Additional Files written unclearly such that it's not obvious what parameter is what

2019-03-08 Thread jt
New submission from jt : I find the following doc section found at https://docs.python.org/3.7/distutils/setupscript.html#installing-additional-files about data_files somewhat unclear: ``` setup(..., data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']), ('config', ['cfg/

[issue36238] distutils complains "package init file 'xxx/__init__.py' not found (or not a regular file)" when using Cythonized __init__.pyx

2019-03-08 Thread jt
New submission from jt : distutils spits out a warning: package init file 'xxx/__init__.py' not found (or not a regular file) ... when using Cythonized __init__.pyx instead. However, the installed package works absolutely fine, it can be imported & used perfectly, so this warning seems bogus

[issue36233] xml ElementTree quotation marks of xml version string

2019-03-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list m

[issue36227] Add default_namespace argument to xml.etree.ElementTree.tostring()

2019-03-08 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: I will add xml_declaration and push to the existing PR. -- ___ Python tracker ___ ___ Python-

[issue36237] data_files / Install Additional Files written unclearly such that it's not obvious what parameter is what

2019-03-08 Thread jt
jt added the comment: Ok I am now realizing after more tests I actually read the docs correctly, and in that sense they're not ambiguous. It's just that I tried to use data_files for something that it's not for: I did look at package_data first and I get that's what I SHOULD be using, howeve

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: It won't be possible in general to emit what the function returned before, as `uname` is a symbolic reference to an arbitrary executable, which can vary by platform and release and local environment. What I might be able to do is find the implementation of

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread STINNER Victor
New submission from STINNER Victor : When a translation .po file contains a comment in headers, it's kept when compiled as .mo by msgfmt. Example with test.po: --- msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "#-#-#-#-# plo.po

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file48195/parse.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file48196/comments.po ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file48197/messages.mo ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread STINNER Victor
STINNER Victor added the comment: Attached files: * comments.po: PO file with a comment in headers * messages.mo: comments.po compiled with msgfmt * parse.py: Python script to parse messages.mo -- ___ Python tracker

[issue36227] Add default_namespace argument to xml.etree.ElementTree.tostring()

2019-03-08 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: I pushed changes to the PR. I also added xml_declaration and default_namespace to the tostringlist() method. -- ___ Python tracker ___ _

[issue31256] xml.etree.ElementTree: add support for doctype in tostring method

2019-03-08 Thread Bernt Røskar Brenna
Change by Bernt Røskar Brenna : -- keywords: +patch pull_requests: +12225 stage: -> patch review ___ Python tracker ___ ___ Python-b

[issue31256] xml.etree.ElementTree: add support for doctype in tostring method

2019-03-08 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: See also: https://bugs.python.org/issue36227 PR: https://github.com/python/cpython/pull/12225 -- nosy: +Bernt.Røskar.Brenna ___ Python tracker _

[issue35967] Better platform.processor support

2019-03-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks. It would be good to do some before/after tests on popular platforms, e.g. a few Linuxes, MacOS, Windows. -- ___ Python tracker __

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: The first call I see in that routine is to "sysinfo", but the signature of that function doesn't match what I find in the [man pages for that function](http://man7.org/linux/man-pages/man2/sysinfo.2.html). So that function must be coming from elsewhere. --

[issue36240] Definitions of time

2019-03-08 Thread Robert Billing
New submission from Robert Billing : https://docs.python.org/3.7/library/time.html contains the text "UTC is Coordinated Universal Time (formerly known as Greenwich Mean Time, or GMT)". This is not strictly true. Referring to https://en.wikipedia.org/wiki/Coordinated_Universal_Time the defini

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: Aha! It seems the 'sysinfo' call is for Solaris: https://docs.oracle.com/cd/E23823_01/html/816-5167/sysinfo-2.html -- ___ Python tracker __

[issue35435] Discourage external links to old docs.

2019-03-08 Thread Julien Palard
Julien Palard added the comment: Let's not have duplicate issues, so I'm closing this in favor of https://github.com/python/python-docs-theme/issues/24. Thanks Terry for noticing. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: Best I can tell, neither sysinfo nor sysctl are exposed in any way to Python, so it may not be possible to accurately load the processor information from those system calls without writing a wrapper in C. What I might try is to experiment with ctypes to see

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread Julien Palard
Julien Palard added the comment: After some research I found a few comments around comments being marked as starting by #-#-#-#-# and ending with #-#-#-#-#, not just starting with #. In gettext-0.19.8.1 sources for example: $ grep -r '#-#-#-#-' | head gettext-tools/misc/po-mode.el:#-#-#-#-#

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: Reading further, the 'sysctl' call seems to only be for BSD (https://www.freebsd.org/cgi/man.cgi?sysctl(3)). I could find the man page for sysctl for BSD but not Linux. There is a _sysctl in Linux (http://man7.org/linux/man-pages/man2/sysctl.2.html), but it

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: Hmm. But if I go to the Linux man page for uname (https://linux.die.net/man/1/uname) and follow the links to the source code, I end up at the same repository. So maybe the BSD man page is suitable for Linux. I'll work from that assumption for now.

[issue36233] xml ElementTree quotation marks of xml version string

2019-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Both quotes are valid. See https://www.w3.org/TR/2008/REC-xml-20081126/#sec-prolog-dtd. -- ___ Python tracker ___

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread STINNER Victor
STINNER Victor added the comment: I found a .po file with "#" in headers on the Internet, Sympa mailing list project: https://www.sympa.org/distribution/sympa-6.0.10/po-wwsympa/et.po: # #-#-#-#-# blank_web_help_et.po (sympa) #-#-#-#-# # Sympa online help internationalisation. # Copyright (C

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread STINNER Victor
STINNER Victor added the comment: I hacked gettext.py to parse all files of my system. I found 3 .mo files which contain "#" in headers: /usr/share/locale/fa/LC_MESSAGES/digikam.mo: {'content-transfer-encoding': '8bit\n' '#-#-#-#-# digikamimageplugin_channelmixe

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread Julien Palard
Julien Palard added the comment: The 'last-translator': '# ANI PETER|അനി പീറ്റര്\u200d ', case does not looks like an issue, it does *not* starts with #, it's in the middle of the line, the line starts with "Last-Translator". -- ___ Python tracke

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread STINNER Victor
STINNER Victor added the comment: /usr/share/locale/fa/LC_MESSAGES/digikam.mo: I downloaded the .po file using: svn cat svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/fa/messages/extragear-graphics/digikam.po > fa_digikam.po It contains many comments in headers. Extract: (...) # MaryamSada

[issue36157] Document PyInterpreterState_Main().

2019-03-08 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch pull_requests: +12226 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread STINNER Victor
STINNER Victor added the comment: /usr/share/locale/ml/LC_MESSAGES/ktraderclient5.mo: svn cat svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/ml/messages/kde-workspace/ktraderclient5.po > ml_ktraderclient5.po Extract: msgid "" msgstr "" "Project-Id-Version: ktraderclient\n" "Report-Msgid-Bugs

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread Julien Palard
Julien Palard added the comment: That's literally sick þ Looks like we have to trust the "\n", not the file wrapping, but this means that: msgstr "" "Pro" "jec" "t-I" "d-V" "ers" "ion" ": " "dig" "ika" "m\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n"; is valid, too? I have to try it! HAHA

[issue36157] Document PyInterpreterState_Main().

2019-03-08 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Since there was no response, I decided to open a PR for this. -- keywords: -patch stage: patch review -> needs patch ___ Python tracker _

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-08 Thread Julien Palard
Julien Palard added the comment: I tested further, and when we have this horrible mess in the po files: msgstr "" "Pro" "jec" "t-I" "d-V" "ers" "ion" ": " "dig" "ika" "m\n" We have a clean string in the .mo file. So there is no fear to have of: "Plural-Forms: nplurals=1; plural=0;\n" "#-#-#

[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2019-03-08 Thread Ernesto Eduardo Medina Núñez
Ernesto Eduardo Medina Núñez added the comment: While this gets fixed, can you provide a workaround? or recommend another library? -- nosy: +Ernesto Eduardo Medina Núñez ___ Python tracker __

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: After fussing with sysctl for a while, I'm fairly confident that one can't use sysctl on Linux reliably (https://stackoverflow.com/a/55066774/70170). I'll keep digging to see if I can find another implementation of `uname` that's used on Linux. --

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: [This answer](https://unix.stackexchange.com/a/307960/275034) is extremely helpful. `uname -p` isn't available on Linux except Fedora and late versions of Debian that apply the patch. This lack of consistency means that `platform.uname().processor` and thus

[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-08 Thread Eric Snow
Eric Snow added the comment: On Sat, Mar 2, 2019 at 12:33 AM Armin Rigo wrote: > PyModule_GetState() requires having the module object that corresponds > to the given interpreter state. I'm not sure how a C extension module is > supposed to get its own module object corresponding to the curre

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-08 Thread andrejs-sisojevs-accenture
New submission from andrejs-sisojevs-accenture : On download page https://www.python.org/downloads/release/python-2716/ MD5 checksum for "Windows x86-64 MSI installer" is 2fe86194bb4027be75b29852027f1a79 But download file checksum is `2841e92ba89a6f036305a8a07fbe9d18`. Checksum calculated on

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: Correction on last comment: s/Debian/Ubuntu/ -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-08 Thread andrejs-sisojevs-accenture
andrejs-sisojevs-accenture added the comment: Checksum for earlier v2.7.15 is fine. -- ___ Python tracker ___ ___ Python-bugs-list

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-08 Thread Ned Deily
Ned Deily added the comment: This appears to be a duplicate of Issue969718. -- nosy: +ned.deily ___ Python tracker ___ ___ Python-b

[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-08 Thread Eric Snow
Eric Snow added the comment: Also, while PyThreadState_GetDict() is the inspiration here, we don't have to copy it exactly. For instance, PyInterpreterState_GetDict() takes a PyInterpreterState* argument, whereas PyThreadState_GetDict() takes no arguments and gets the PyThreadState* from th

[issue36228] Support coercion of complex to float/int

2019-03-08 Thread Марат Нагаев
Марат Нагаев added the comment: >For those rare cases where this is needed, it isn't that hard to spell out >`complex(floor(z.real) But in Python we have math.tau. However it's just 2*pi. >`math.floor` of a `float` object returns an `int` Maybe the best solution is to add functions floor and ce

[issue36242] ABC: We ask U.S. news media to interview Human Rights expert Alfred de Zayas about Venezuela.

2019-03-08 Thread Andre Dias
New submission from Andre Dias : Olá, Eu acabei de assinar o abaixo-assinado "ABC: We ask U.S. news media to interview Human Rights expert Alfred de Zayas about Venezuela." e queria saber se você pode ajudar assinando também. A nossa meta é conseguir 1.000 assinaturas e precisamos de mais apoio

[issue36242] spam

2019-03-08 Thread SilentGhost
Change by SilentGhost : -- nosy: -aod resolution: -> not a bug stage: -> resolved status: open -> closed title: ABC: We ask U.S. news media to interview Human Rights expert Alfred de Zayas about Venezuela. -> spam ___ Python tracker

[issue36242] spam

2019-03-08 Thread SilentGhost
Change by SilentGhost : -- Removed message: https://bugs.python.org/msg337508 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue35967] Better platform.processor support

2019-03-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Jason: StackExchange does have lots of good hints, but it's not always the correct. In this case, it's clearly wrong. uname -p has been available on many Unix installations for decades. I started writing the module back in 1999 and even then, the support w

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue12851] ctypes: getbuffer() never provides strides

2019-03-08 Thread SilentGhost
Change by SilentGhost : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The download page linked doesn't contain checksum 2fe86194bb4027be75b29852027f1a79. The checksum in the page is 2841e92ba89a6f036305a8a07fbe9d18 and I can confirm that the downloaded binary also has the correct checksum as below : karthi@ubuntu-s

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: > the output of platform.uname() needs to stay compatible to what the function > returned prior Do we really wish to retain the output for this unreliable interface, especially when it is not standardized and is returning improper information? Is it valuab

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-08 Thread Jeremy Kloth
Jeremy Kloth added the comment: When I visit the provided link, I also see what OP describes. Is it a caching/location issue? I'm in US-Colorado. -- nosy: +jkloth ___ Python tracker ___

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: > Perhaps adding a more capable API to interface to /proc/cpuinfo would be a good idea. The core concern I want to address is that it's not possible to use any function in the platform module without invoking "uname -p", and thus it's not possible to implem

[issue36228] Support coercion of complex to float/int

2019-03-08 Thread Mark Dickinson
Mark Dickinson added the comment: > Maybe the best solution is to add functions floor and ceil to cmath module You say "solution", but what problem would this be a solution to? So far, I don't think there's a demonstrated need to have this functionality. What is it useful for? So IMO, the b

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Strange, when I visit the link again in new tab then it gives me the checksum as described by OP. But I still have the old tab open with which I wrote my comment that has 2841e92ba89a6f036305a8a07fbe9d18 (20348928 bytes) and wget at the time also h

[issue36243] Python os.listdir fails with FileNotFoundError when directory exists

2019-03-08 Thread Geoff Alexander
New submission from Geoff Alexander : I have the following code: ``` def handle_empty_directories(dir): if os.path.exists(dir): shouter.shout("%s exists" % dir) else: shouter.shout("%s doesn't exists" % dir) entries = os.listdir(dir) if

[issue35967] Better platform.processor support

2019-03-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 08.03.2019 18:00, Jason R. Coombs wrote: > >> Perhaps adding a more capable API to interface to /proc/cpuinfo > would be a good idea. > > The core concern I want to address is that it's not possible to use any > function in the platform module without

[issue36224] Python quit unexpectedly error

2019-03-08 Thread Xin Wang
New submission from Xin Wang : I face the same error with https://bugs.python.org/issue36154, but the solution is not work for me. So I want to show you my error. I'm on a Mac running Mojave, version 10.14.3. I installed Python 3.7.2. I am using vscode. It is work fine in command line. Proces

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: In [this commit](https://github.com/jaraco/cpython/commit/acd024e2d4aa56f13d7bc165d10a35510e83a12b), I demonstrate the alternative approach I was considering that avoids calling "uname -p" until it's required, but otherwise retains compatibility by using t

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: > It's also easy to bypass that by simply seeding the global cache > for uname(): _uname_cache. > Or you could monkey-patch the platform module > in your utility to work around the circular reference. I don't think these options are possible in the general c

[issue35967] Better platform.processor support

2019-03-08 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +12227 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue36233] xml ElementTree quotation marks of xml version string

2019-03-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: +0 I support making this change, if only to keep the quoting convention consistent with how we quote attributes. Also, use of double quotes seems to be the norm. I made a brief informal survey of XML samples from multiple sources including DocBook, MS

[issue36228] Support coercion of complex to float/int

2019-03-08 Thread Марат Нагаев
Марат Нагаев added the comment: I think at bank. I find post (Russian) about complex numbers: https://cyberleninka.ru/article/v/primenenie-kompleksnyh-chisel-v-finansovyh-operatsiyah And rounding was used. Sorry, I don't know about English version of this article. -- __

[issue36213] subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long

2019-03-08 Thread Geoff Alexander
Geoff Alexander added the comment: Using the "\\?\" prefix does not work. Here's a small example: ``` import os import subprocess os.chdir(r"\\?\C:\Users") output = subprocess.check_output("dir", shell=True) ``` Using Python 3.7.2 64-bit on Windows 10 fails with ``` c:\Users\GeoffAlexander

[issue36243] Python os.listdir fails with FileNotFoundError when directory exists

2019-03-08 Thread Geoff Alexander
Change by Geoff Alexander : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-08 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +12228 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue36228] Support coercion of complex to float/int

2019-03-08 Thread Tim Peters
Tim Peters added the comment: I have no use for this either, and agree with rejecting it - in nearly 30 years, nobody has asked for this before, and it's still the case that we don't have an actual programming use case (some theoretical use in an abstract mathematical model isn't a programmi

[issue35843] importlib.util docs for namespace packages innaccurate

2019-03-08 Thread miss-islington
miss-islington added the comment: New changeset ab9b31f94737895f0121f26ba3ad718ebbc24fe1 by Miss Islington (bot) (Anthony Sottile) in branch 'master': bpo-35843: Implement __getitem__ for _NamespacePath (GH-11690) https://github.com/python/cpython/commit/ab9b31f94737895f0121f26ba3ad718ebbc24f

[issue35843] importlib.util docs for namespace packages innaccurate

2019-03-08 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-08 Thread Steve Dower
Steve Dower added the comment: We updated the build to be properly code signed, but the CDN may still be caching the old release. Nothing has changed except the signature on the installer (Python 2 binaries have never been signed). I'll run a CDN purge to try and clear it up. -- __

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-08 Thread Steve Dower
Steve Dower added the comment: I redownloaded and confirmed that the files are correct. Benjamin - the MD5 for the 32-bit installer didn't get updated. It should be 912428345b7e0428544ec4edcdf70286 (as in my updated email I sent). -- ___ Python tr

[issue36244] Lock release fails under windows

2019-03-08 Thread Konrad Ciecierski
New submission from Konrad Ciecierski : In python 3.7.2 when the subprocess releases the acquired lock, the OSError occurs: "OSError: [WinError 6] The handle is invalid". Problem does not occur under Ubuntu 18. File "multip-test.py", line 13, in worker lock.release() OSError: [WinError 6

[issue36233] xml ElementTree quotation marks of xml version string

2019-03-08 Thread Stefan Behnel
Stefan Behnel added the comment: While I do understand the interest in a bit more visual consistency (and, lacking further input, I assume that this is the OP's "problem"), it really is at best a purely visual improvement with the potential to break code and/or tests out there. I'd rather no

[issue36228] Support coercion of complex to float/int

2019-03-08 Thread Fredrik Johansson
Fredrik Johansson added the comment: I can think of two reasons to extend floor() and ceil() to complex numbers, and they lead to different extensions. The first is as a way to map complex numbers to nearby Gaussian integers by defining floor(z) = floor(z.real) + floor(z.imag)*1j, etc. Defin

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-08 Thread Jess
New submission from Jess : Have a fix for this that I'll send off shortly. What I see with the current head (my username was replaced with "Foo Bar" in this example: > Using "C:\Users\Foo > Bar\cpython\PCbuild\\..\externals\pythonx86\tools\python.exe" (found in > externals directory) > Bar\c

  1   2   >