[issue36249] f-string should be the default placeholder

2019-03-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36247] zipfile - extract truncates (existing) file when bad password provided (zip encryption weakness)

2019-03-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +alanmcintyre, serhiy.storchaka, twouters ___ Python tracker ___ ___ Python-bugs-list

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

2019-03-08 Thread Geoff Alexander
Change by Geoff Alexander : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36249] f-string should be the default placeholder

2019-03-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New code might use f-strings as needed but refactoring old code just for f-strings could result in large change that pollutes git history. Generally large refactorings like this are rejected like making all code PEP 8 compatible is another

[issue36249] f-string should be the default placeholder

2019-03-08 Thread Akash Shende
Change by Akash Shende : -- keywords: +patch pull_requests: +12237 stage: -> patch review ___ Python tracker ___ ___

[issue36249] f-string should be the default placeholder

2019-03-08 Thread Akash Shende
New submission from Akash Shende : Currently lot of code still uses old placeholder and .format() methods for formatting the string. Lets convert them all to f-string "%s" % (name) => f'{name}' "{name}".format(name="yoyo") = > f'{name}' -- components: Library (Lib) messages: 337560

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

2019-03-08 Thread Geoff Alexander
Geoff Alexander added the comment: This problem does not appear to be a race condition ("Time Of Check To Time Of Use" bug) in my case as the directory in question exists both before and after the os.listdir call. I got a workaround saying to wrap the os.listdir call in try/except in my

[issue36248] document about `or`, `and` operator.

2019-03-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: Document *what* about the behaviour shown? I'm sure you don't mean to say that we should document the fact the *literally* `1 or 0 and 3` returns 1, but I don't know what you think we should document beyond what is already stated in the existing docs. It

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

2019-03-08 Thread Eric Snow
Eric Snow added the comment: New changeset 8479a3426eb7d1840473f7788e639954363ed37e by Eric Snow in branch 'master': bpo-33608: Make sure locks in the runtime are properly re-created. (gh-12245) https://github.com/python/cpython/commit/8479a3426eb7d1840473f7788e639954363ed37e --

[issue36248] document about `or`, `and` operator.

2019-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is already documented. Just follow the link from "or" or "and". https://docs.python.org/3/reference/expressions.html -- nosy: +serhiy.storchaka ___ Python tracker

RE: System Beep?

2019-03-08 Thread Steve
Mischief almost managed. They both work when using IDLE but the second one leaves an empty window to be closed. I do like the second one. Is there a follow up command to close that window? Steve Footnote: I am simply a thing that thinks. Rene Descartes -Original Message- From:

[issue36248] document about `or`, `and` operator.

2019-03-08 Thread Windson Yang
New submission from Windson Yang : I think we should document the behavior as below, (maybe at https://docs.python.org/3/reference/expressions.html#operator-precedence) >>> 1 or 0 and 3 1 >>> 0 or 1 and 3 3 Please correct me if we already document it. -- assignee: docs@python

RE: System Beep?

2019-03-08 Thread Steve
Thank you, both work for me too. Mischief managed. Steve Footnote: I am simply a thing that thinks. Rene Descartes -Original Message- From: Python-list On Behalf Of Terry Reedy Sent: Saturday, March 9, 2019 12:53 AM To: python-list@python.org Subject: Re: System Beep? On 3/8/2019

[issue35830] building multiple (binary) packages from a single project

2019-03-08 Thread Stefan Seefeld
Change by Stefan Seefeld : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___

Re: System Beep?

2019-03-08 Thread Terry Reedy
On 3/8/2019 1:13 PM, Steve wrote: How can I cause a system beep using code? >>> import winsound as ws >>> ws.Beep(500, 1000) and >>> from tkinter import Tk >>> root = Tk() >>> root.bell() work for me. The bell is not exactly a bell, but different from a monotone beep. -- Terry Jan Reedy

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

2019-03-08 Thread Eric Snow
Eric Snow added the comment: New changeset 5be45a6105d656c551adeee7770afdc3b806fbb5 by Eric Snow in branch 'master': bpo-33608: Minor cleanup related to pending calls. (gh-12247) https://github.com/python/cpython/commit/5be45a6105d656c551adeee7770afdc3b806fbb5 --

[issue36229] Linear-time ops for some mutable collections.

2019-03-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36244] Lock release fails under windows

2019-03-08 Thread Eryk Sun
Eryk Sun added the comment: If you're using a virtual environment, then this is most likely a duplicate of issue 35797. -- nosy: +eryksun ___ Python tracker ___

Re: System Beep?

2019-03-08 Thread eryk sun
On 3/8/19, Grant Edwards wrote: > > I just tested three of the terminals on my laptop, and none of them > beep when they receive a BEL. In Ubuntu, enable sound effects and select an alert sound, and then enable "Terminal bell" in GNOME Terminal's preferences. In Windows, the console calls

join us at the new Maintainers Summit at PyCon US

2019-03-08 Thread Shauna Gordon-McKeon
Hello CompLangPythonistas! I am co-organizing a "Maintainers Summit" at PyCon US this year. The goal is to create a community of practice to help support Python project maintainers socially, technologically, and logistically. This is the first time the event will be held, so I'm trying to

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

2019-03-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: > How can this happen? Easily -- this looks like a "Time Of Check To Time Of Use" bug. You check for the existence of a directory, and then a fraction of a second later you attempt to use that directory. But on a multi-processing operating system like

[issue36215] Should AppVeyor run compile Python in debug mode?

2019-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Testing with installed release builds is about twice as fast. f:\dev\37>python -m test -ugui -j14 # Debug 32-bit 3.7 ... 0:03:51 [412/416] test_tarfile passed (56 sec 7 ms) -- running: test_multiprocessing_spawn (1 min 46 sec) 0:04:14 [413/416] test_weakref

[issue36219] IDLE menu option to convert non-ascii quotes & other?

2019-03-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond, do users encounter all of the characters and combinations Cheryl > suggested? The only recurring issue is with the smart quotes. For anything else, perhaps there can be a box on the General configuration tab for additional source/dest

[issue36219] IDLE menu option to convert non-ascii quotes & other?

2019-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I support adding a new function, with these notes. 1. Let's limit the scope to actual reversible bugs introduced by 3rd party software we care about. Let's not try to anticipate every possible issue. Also, once we have a function to replace some unicode

[issue35880] math.sin has no backward error; this isn't documented

2019-03-08 Thread Tim Peters
Tim Peters added the comment: Jurjen, the errors you see in Python's sin() are _entirely_ due to your platform C's libm. Python just calls the platform C's sin. So nothing can be said about it in general. The better libm trig functions today do indeed perform trig argument reduction "as

[issue36236] Python crash on macOS when CWD is invalid

2019-03-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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: +12236 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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: +12235 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36246] csv.writer lineterminator affects csv escaping

2019-03-08 Thread Martin Panter
Martin Panter added the comment: This is the result that I see: >>> output = StringIO() >>> csv.writer(output, lineterminator='\n').writerow(["Whoa!\rNewlines!"]) 16 >>> output.getvalue() 'Whoa!\rNewlines!\n' For comparison, this is the result with CRLF terminators (the default): >>> output

[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: +12234 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36203] PyWeakref_NewRef docs are misleading

2019-03-08 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12232 stage: -> patch review ___ Python tracker ___ ___

[issue35880] math.sin has no backward error; this isn't documented

2019-03-08 Thread Jurjen N.E. Bos
Jurjen N.E. Bos added the comment: I stand corrected; more on that later. "backward error" is the mathematical term used for the accuracy of a function. (Forward error is in the result proper; backward error means that you calculate the correct result for a number that is very close to the

[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: +12231 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36247] zipfile - extract truncates (existing) file when bad password provided (zip encryption weakness)

2019-03-08 Thread Cristi Fati
Cristi Fati added the comment: Submitted: https://github.com/python/cpython/pull/12242. As a note, it applies to any Python version. -- keywords: +patch pull_requests: +12230 stage: -> patch review ___ Python tracker

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

2019-03-08 Thread Steve Dower
Change by Steve Dower : -- components: +Build versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

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

2019-03-08 Thread Steve Dower
Steve Dower added the comment: Since the checks are all against empty strings, perhaps we can use "IF NOT DEFINED PYTHON" instead? That should work as well, I think, and it'll save us from problems in the future if someone puts "]" in their username :) --

[issue36247] zipfile - extract truncates (existing) file when bad password provided (zip encryption weakness)

2019-03-08 Thread Cristi Fati
New submission from Cristi Fati : PKWARE encryption password pre check algorithm (relying on an 8 bits value to differentiate passwords) is insanely short. Most of the wrong passwords are filtered out by the check, but some of them aren't. For the ones in the latter category, when trying to

Re: System Beep?

2019-03-08 Thread Grant Edwards
On 2019-03-08, Steve wrote: > I tried all three, nothing audio. I am beginning to wonder if > something I the operating system is at fault. The three lines do > produce symbols. The first two are a rectangle with a space in the > middle and the last one spelled out "bel" in short/small

Re: System Beep?

2019-03-08 Thread DL Neil
Steve, On 9/03/19 11:03 AM, Steve wrote: I tried all three, nothing audio. I am beginning to wonder if something I the operating system is at fault. The three lines do produce symbols. The first two are a rectangle with a space in the middle and the last one spelled out "bel" in short/small

Re: System Beep?

2019-03-08 Thread MRAB
On 2019-03-08 22:11, Steve wrote: Import winsound winsound No error, no beep either. You haven't called anything. import winsound dir(winsound) ['Beep', 'MB_ICONASTERISK', 'MB_ICONEXCLAMATION', 'MB_ICONHAND', 'MB_ICONQUESTION', 'MB_OK', 'MessageBeep', 'PlaySound', 'SND_ALIAS',

[issue36176] Fix IDLE Autocomplete / Calltip Window Colors

2019-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The only thing missing is the OS, which I presume is some version and distribution of Linux. IDLE used tkinter which uses tcl/tk. From what you say, the latter, at least on Linux, picks up its default colors from the window manager, which for you happens

RE: System Beep?

2019-03-08 Thread Steve
Import winsound winsound No error, no beep either. - Footnote A cat looks up and sees a bird in a tree and says" "Hey, let's do lunch someday..." -Original Message- From: Python-list On Behalf Of Peter Otten

[issue36176] Fix IDLE Autocomplete / Calltip Window Colors

2019-03-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> needs patch type: enhancement -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue36176] Fix IDLE Autocomplete / Calltip Window Colors

2019-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Kristoffer, can you try removing 'bg=while' from autocomplete_w.py? -- ___ Python tracker ___

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

2019-03-08 Thread Dmitrii Pasechnik
Dmitrii Pasechnik added the comment: Needless to say, subprocess is most certainly an overkill, something less involved would do the job, without the need for all the module dependencies of subprocess. -- ___ Python tracker

RE: System Beep?

2019-03-08 Thread Steve
I tried all three, nothing audio. I am beginning to wonder if something I the operating system is at fault. The three lines do produce symbols. The first two are a rectangle with a space in the middle and the last one spelled out "bel" in short/small characters.

[issue36230] Please sort assertSetEqual's output

2019-03-08 Thread Jess
Jess added the comment: Good call on the repr(), hadn't noted the "3+4j" issue - __gt__ and __lt__ do work for compare there, but not sorted(). *shrug* Will make sure the solution takes that into account in some fashion. Bit slower as I expected as setting up the windows env has some bits

[issue35661] Store the venv prompt in pyvenv.cfg

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

[issue35661] Store the venv prompt in pyvenv.cfg

2019-03-08 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset d5a70c6b0355f247931f6be80b78a0ff1869c56f by Cheryl Sabella in branch 'master': bpo-35661: Store the venv prompt in pyvenv.cfg (GH-11440) https://github.com/python/cpython/commit/d5a70c6b0355f247931f6be80b78a0ff1869c56f --

[issue36246] csv.writer lineterminator affects csv escaping

2019-03-08 Thread flow2k
New submission from flow2k : output = io.StringIO() csvData = [1, 2, 'a', 'He said "what do you mean?"', "Whoa!\rNewlines!"] writer = csv.writer(output,lineterminator='\n') writer.writerow(csvData) print(repr(output.getvalue())) #does not escape \r as expected -- messages: 337537 nosy:

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

2019-03-08 Thread Jess
Change by Jess : -- keywords: +patch pull_requests: +12229 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35807] Update bundled pip to 19.0

2019-03-08 Thread miss-islington
miss-islington added the comment: New changeset 55438d713978a1913ef12c8a801848626228aad6 by Miss Islington (bot) in branch '2.7': bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189) https://github.com/python/cpython/commit/55438d713978a1913ef12c8a801848626228aad6 --

[issue35807] Update bundled pip to 19.0

2019-03-08 Thread miss-islington
miss-islington added the comment: New changeset 572205adf06fc5afa64984740c4775af45942d5c by Miss Islington (bot) in branch '3.7': bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189) https://github.com/python/cpython/commit/572205adf06fc5afa64984740c4775af45942d5c --

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

2019-03-08 Thread miss-islington
miss-islington added the comment: New changeset 8755f0aeb67125a154e5665a24276fe85d269d85 by Miss Islington (bot) in branch '3.7': bpo-35899: Fix Enum handling of empty and weird strings (GH-11891) https://github.com/python/cpython/commit/8755f0aeb67125a154e5665a24276fe85d269d85 --

[issue10909] IDLE: thread hang, possibly related to print

2019-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have since learned the following about accessing tk widgets from non-main threads. 1. It seem to be reliable when tcl/tk is compiled with thread support but not when tcl/tk is not so compiled. (The latter is contrary to a claim in the doc.) 2. The tcl

[issue36216] urlsplit does not handle NFKC normalization

2019-03-08 Thread Steve Dower
Steve Dower added the comment: This issue is now assigned CVE-2019-9636 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-9636 -- ___ Python tracker ___

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

2019-03-08 Thread Jess
Jess added the comment: Note: the error is actually in get_externals.bat, which is called by build.bat. -- ___ Python tracker ___

[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) >

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Drake Gossi
Ok, I think it worked. Embarrassingly, in my environment, I was clicked on "help" rather than "variable explorer." This is what is represented: api_key string 1 DEMO KEY docket_id string 1 ED-2018-OCR-0064 docs_per_page int 1 1000 total_docs int 1 32068 Does this mean I can add on

Re: System Beep?

2019-03-08 Thread Karsten Hilbert
On Fri, Mar 08, 2019 at 03:16:28PM -0500, Steve wrote: > = RESTART: C:\Gork\Med Insulin codes\MedReminder 127.py > = > Traceback (most recent call last): > File "C:\Gork\Med Insulin codes\MedReminder 127.py", line 13, in > > windsound.Beep #(frequency, duration) >

Re: System Beep?

2019-03-08 Thread DL Neil
Dear Squeak, sorry, Dear Steve, Back in the ?good, old days when we used to walk alongside a mainframe CPU whilst it cogitated, we would often use the BEL character to alert us to job completion (and meantime bunk-off to go have a coffee, cakes, ...) - more seriously, it alerted telegraph and

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Chris Angelico
On Sat, Mar 9, 2019 at 7:47 AM Drake Gossi wrote: > > Still having issues: > > 7. import requests > 8. import csv > 9. import time > 10. import sys > 11. api_key = 'PUT API KEY HERE' > 12. docket_id = 'ED-2018-OCR-0064' > 13. total_docs = 32068 > 14. docs_per_page = 1000 > 15. > 16. r =

[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.

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Drake Gossi
Still having issues: 7. import requests 8. import csv 9. import time 10. import sys 11. api_key = 'PUT API KEY HERE' 12. docket_id = 'ED-2018-OCR-0064' 13. total_docs = 32068 14. docs_per_page = 1000 15. 16. r = requests.get("https://api.data.gov:443/regulations/v3/documents.json

RE: System Beep?

2019-03-08 Thread Peter Otten
Steve wrote: >> You have a typo. It is winsound, not winDsound. > Yes, I saw that. It still failed with, or without, the “d”. I played > with case and the use of (). They all produced similar errors Did you import the winsound module before trying to use it? --

RE: System Beep?

2019-03-08 Thread Steve
Yes, I saw that. It still failed with, or without, the “d”. I played with case and the use of (). They all produced similar errors Footnote: Ultrasound

Re: System Beep?

2019-03-08 Thread Ivan "Rambius" Ivanov
Hello, On Fri, Mar 8, 2019, 3:19 PM Steve wrote: > = RESTART: C:\Gork\Med Insulin codes\MedReminder 127.py > = > Traceback (most recent call last): > File "C:\Gork\Med Insulin codes\MedReminder 127.py", line 13, in > > windsound.Beep #(frequency, duration) >

RE: System Beep?

2019-03-08 Thread Steve
I used print(0x07) as the system called for parentheses but no error but also no sound. Should this use a default or do I have to specify frequency and duration? Footnote: Ultrasound Technician Asks Pregnant Woman If She’d Like To Know Baby’s Name -Original Message- From: Igor Korot

RE: System Beep?

2019-03-08 Thread David Raymond
I believe you added an extra D there. winsound, not winDsound -Original Message- From: Steve [mailto:Gronicus@SGA.Ninja] Sent: Friday, March 08, 2019 3:16 PM To: David Raymond; python-list@python.org Subject: RE: System Beep? = RESTART: C:\Gork\Med Insulin

RE: System Beep?

2019-03-08 Thread Steve
= RESTART: C:\Gork\Med Insulin codes\MedReminder 127.py = Traceback (most recent call last): File "C:\Gork\Med Insulin codes\MedReminder 127.py", line 13, in windsound.Beep #(frequency, duration) NameError: name 'windsound' is not defined Something missing in my

[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

[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

RE: System Beep?

2019-03-08 Thread David Raymond
Windows has the built in winsound module that lets you set frequency and duration, not sure about other OS's. https://docs.python.org/3.7/library/winsound.html -Original Message- From: Python-list [mailto:python-list-bounces+david.raymond=tomtom@python.org] On Behalf Of Steve

Re: System Beep?

2019-03-08 Thread Igor Korot
Hi, On Fri, Mar 8, 2019 at 1:35 PM Steve wrote: > > How can I cause a system beep using code? > This is using the computer's internal speaker, not an audio external > speaker. Print 0x07. Thank you. > Do I have control of duration or volume? > > Steve > > > > > > Footnote: > Every minute,

RE: Duplicates

2019-03-08 Thread Steve
Are they going to the same or another eddress? Do you have a second e-mail address in the list? Footnote: Ultrasound Technician Asks Pregnant Woman If She'd Like To Know Baby's Name -Original Message- From: Python-list On Behalf Of Milt Sent: Friday, March 8, 2019 2:37 PM To:

Duplicates

2019-03-08 Thread Milt
I get two messages for every post - p...@netrh.com -- Regards, Milt m...@ratcliffnet.com -- https://mail.python.org/mailman/listinfo/python-list

System Beep?

2019-03-08 Thread Steve
How can I cause a system beep using code? This is using the computer's internal speaker, not an audio external speaker. Do I have control of duration or volume? Steve Footnote: Every minute, every single day, the equivalent of a truckload of plastic enters our oceans. --

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Chris Angelico
On Sat, Mar 9, 2019 at 6:14 AM Drake Gossi wrote: > > Hi everyone, > > I'm further along than I was last time. I've installed python and am > running this in spyder. This is the code I'm working with: > > import requests > import csv > import time > import sys > api_key = 'my api key' > docket_id

[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

[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. --

trying to retrieve comments with activated API key

2019-03-08 Thread Drake Gossi
Hi everyone, I'm further along than I was last time. I've installed python and am running this in spyder. This is the code I'm working with: import requests import csv import time import sys api_key = 'my api key' docket_id = 'ED-2018-OCR-0064' total_docs = 32068 docs_per_page = 1000 Where the

[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 ___ ___

[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)

[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

[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

[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:

[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 ```

[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. --

[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:

[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,

[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

[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

[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.

[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

[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)

[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

[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

[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

[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: > 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

  1   2   >