[issue31544] gettext.Catalog title is not flagged as a class

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg314357 ___ Python tracker ___

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31544] gettext.Catalog title is not flagged as a class

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0694b6a651ba2a53f6323ffb3b23358f43885815 by Serhiy Storchaka (scoder) in branch '2.7': bpo-31544: Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set. (GH-3992)

[issue33006] docstring of filter function is incorrect

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan, rhettinger ___ Python tracker ___

[issue33130] functools.reduce signature/docstring discordance

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan, rhettinger versions: -Python 3.5 ___ Python tracker ___

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have tested -- omitting the option and passing an empty string are treated different in Tk. Passing a duplicate iid is error. Thus the fix should be just `iid is not None`. But needed tests. -- keywords: +easy stage:

Re: Since when builtin dict preserve key order?

2018-03-23 Thread Chris Angelico
On Sat, Mar 24, 2018 at 3:34 PM, Arkadiusz Bulski wrote: > I already asked on PYPY and they confirmed that any version of pypy, > including 2.7, has dict preserving insertion order. I am familiar with > ordered **kw which was introduced in 3.6 but I also heard that builtin

Since when builtin dict preserve key order?

2018-03-23 Thread Arkadiusz Bulski
I already asked on PYPY and they confirmed that any version of pypy, including 2.7, has dict preserving insertion order. I am familiar with ordered **kw which was introduced in 3.6 but I also heard that builtin dict preserves order since 3.5. Is that true? -- ~ Arkadiusz Bulski --

[issue33119] python sys.argv argument parsing not clear

2018-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: This is deliberate, and is covered in the documentation at https://docs.python.org/3/using/cmdline.html#cmdoption-m where it says 'If this option is given, the first element of sys.argv will be the full path to the module file (while the

[issue22257] PEP 432: Redesign the interpreter startup sequence

2018-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, this is the issue for making the API public, so it will stay open until PEP 432 is actually accepted. We switched to the pre-implement-changes-as-an-internal-CPython-refactoring approach after we/I realised there was no feasible way to

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-23 Thread Elias Zamaria
Elias Zamaria added the comment: Mark, you have some good points. I didn't fully think about the implications of my change. I undid the change to _operator_fallbacks. I updated the tests to expect 1.0 // 1/10 to equal 9.0 and 1.0 % 1/10 to equal 0.09995. That

[issue33121] recv returning 0 on closed connection not documented

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please make a specific suggestion for a change in a specific location in the current online version of a particular doc -- the one you wish had been there already. -- nosy: +terry.reedy ___

[issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Peter, please include x.y.z version with reports (and upgrade first if possible ;-). This was apparently fixed in #25532 last year for current versions. With 3.6.4 and 3.7.0b2 I get Traceback (most recent call last): File

[issue33119] python sys.argv argument parsing not clear

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two of your 3 suggested alternatives could lead to bugs. To use your example: python -m mainmodule.submodule.foobar -o -b is a convenient alternative and abbreviation for python .../somedir/mainmodule/submodule/foobar.py -o -b The two

[issue22257] PEP 432: Redesign the interpreter startup sequence

2018-03-23 Thread Ned Deily
Ned Deily added the comment: See Issue33128: PathFinder is twice on sys.meta_path. Also, is this issue supposed to remain open across releases? -- nosy: +ned.deily ___ Python tracker

[issue33128] PathFinder is twice on sys.meta_path

2018-03-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. git bisect result: 1abcf6700b4da6207fe859de40c6c1bada6b4fec is the first bad commit commit 1abcf6700b4da6207fe859de40c6c1bada6b4fec Author: Eric Snow Date: Tue May 23 21:46:51 2017 -0700

[issue33023] Unable to copy ssl.SSLContext

2018-03-23 Thread Vitaly Kruglikov
Vitaly Kruglikov added the comment: It would be very helpful to make a statement in SSLContext's documentation to the effect that it's not copyable. This is frankly the first time I run into a non-copyable object.I spend quite a bit of time researching this after

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Eric V. Smith
Eric V. Smith added the comment: Changing this to 3.8: there's not enough time to add this to 3.7. -- versions: -Python 3.7 ___ Python tracker

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___

Re: Putting Unicode characters in JSON

2018-03-23 Thread Chris Angelico
On Sat, Mar 24, 2018 at 11:11 AM, Steven D'Aprano wrote: > On Fri, 23 Mar 2018 07:46:16 -0700, Tobiah wrote: > >> If I changed my database tables to all be UTF-8 would this work cleanly >> without any decoding? > > Not reliably or safely. It will appear to

Re: Putting Unicode characters in JSON

2018-03-23 Thread Steven D'Aprano
On Fri, 23 Mar 2018 07:46:16 -0700, Tobiah wrote: > If I changed my database tables to all be UTF-8 would this work cleanly > without any decoding? Not reliably or safely. It will appear to work so long as you have only pure ASCII strings from the database, and then crash when you don't: py>

[issue33117] asyncio example uses non-existing/documented method

2018-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.5 ___ Python tracker ___ ___

[issue33115] Asyncio loop blocks with a lot of parallel tasks

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the unforeseeable future arrives, someone can reopen or open a new issue. -- nosy: +terry.reedy resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue33130] functools.reduce signature/docstring discordance

2018-03-23 Thread Vince Reuter
New submission from Vince Reuter : The signature for functools.reduce correctly refers to the collection parameter as an iterable, but the docstring refers to it as "sequence," which the input need not be and does not match the parameter name despite being italicized.

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
Alan Du added the comment: Err... the right link would actually be https://github.com/alanhdu/cpython/tree/bpo-33129. -- ___ Python tracker

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
Alan Du added the comment: If this would be accepted, I'd be happy to contribute a patch adding a `kwarg_only` option to `dataclass` (although it might take me a while since I'm not super familiar with the Python development workflow). I believe I already have the code

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
New submission from Alan Du : I'd like to request a new option to the `dataclasses.dataclass` decorator to make the `__init__` keyword-only. The two use-cases I have in mind are: (1) Using as a dataclass big-bag-of-config. In this scenario, forcing the user to specify

[issue33128] PathFinder is twice on sys.meta_path

2018-03-23 Thread Hartmut Goebel
New submission from Hartmut Goebel : As of Python 3.7.0b2 _frozen_importlib_external.PathFinder exists twice on sys.meta_path, and it is the same object: $ python -S Python 3.7.0b2 (default, Mar 22 2018, 20:09:00) [GCC 5.5.0] on linux Type "help", "copyright",

[issue33111] Merely importing tkinter breaks parallel code (multiprocessing, sharedmem)

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The examples in the multiprocessing doc all put all multiprocessing calls within a "if __name__ == '__main__':" statement. I know that this is necessary on Windows, but don't know if or when it helps on other OSes. -- nosy:

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: This was initially reported in pydev thread "ttk.Treeview.insert() does not allow to insert item with iid=0" on 2018/3/16. Igor, you should have mentioned on the thread that you had opened a tracker issue in response. It was only

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

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

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread miss-islington
miss-islington added the comment: New changeset 643a781188539de038745d23d0e8e5a03b781209 by Miss Islington (bot) in branch '3.6': bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)

[issue33061] NoReturn missing from __all__ in typing.py

2018-03-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: The typing repo PR is not merged yet, but I am closing this here, the remainder is tracked in typing repo. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue33061] NoReturn missing from __all__ in typing.py

2018-03-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset ac5602746ed39ca6591e98e062e587121ac71371 by Ivan Levkivskyi in branch '3.7': bpo-33061: Add missing 'NoReturn' to __all__ in typing.py (GH-6127) (#6162)

[issue32387] Disallow untagged C extension import on major platforms

2018-03-23 Thread Ned Deily
Ned Deily added the comment: As far as I know, it has not been discussed elsewhere and I think the potential for breaking third-party distributions is too high to risk making this change this late in the release cycle, independent of Steve's concerns in msg308878. Unless

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread miss-islington
miss-islington added the comment: New changeset 45738ede5ac8507b88b35fb0d6e2806a7b2e2efc by Miss Islington (bot) in branch '3.7': bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5950 ___ Python tracker ___

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5949 ___ Python tracker ___

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-03-23 Thread Berker Peksag
Change by Berker Peksag : -- keywords: +easy stage: -> needs patch type: -> behavior versions: -Python 3.4, Python 3.5 ___ Python tracker

[issue32358] json.dump: fp must be a text file object

2018-03-23 Thread Berker Peksag
Berker Peksag added the comment: This is already documented in the json.dump() documentation: The json module always produces str objects, not bytes objects. Therefore, fp.write() must support str input. Note that the traceback you've posted doesn't have

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread Brett Cannon
Brett Cannon added the comment: New changeset 5cbb84106efefd200933aa31e22abf39267d2557 by Brett Cannon (Himanshu Lakhara) in branch 'master': bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)

[issue33114] random.sample() behavior is unexpected/unclear from docs

2018-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Something along the lines of: "For a fixed seed, random.sample(population, k) > is not guaranteed to return the same samples for different values of k." In a way, the proposed wording succinctly directly addresses the problem

[issue31793] Allow to specialize smart quotes in documentation translations

2018-03-23 Thread Julien Palard
Julien Palard added the comment: Reopening as smart quotes is still a source of bugs in Japanese translation, see: https://github.com/python/docsbuild-scripts/issues/32#issuecomment-375801129 -- status: closed -> open ___

[issue32387] Disallow untagged C extension import on major platforms

2018-03-23 Thread Brett Cannon
Brett Cannon added the comment: Not sure if this has missed the 3.7 train, but bumping this to check if the discussion on distutils-sig ever occurred and what the result of it was. (Otherwise the PR just needs a news entry and it should be ready.) -- versions:

[issue33122] ftplib: FTP_TLS seems to have problems with sites that close the encrypted channel themselfes

2018-03-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Please paste your code and traceback message. Also what's the remote FTP server you're connected to? You should be able to see it in the welcome message (you can set FTP_TLS.debugging to True). --

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Christian Heimes
Christian Heimes added the comment: The homepage is correct. The last stable release is 2.6.4. I know this first hand from a LibreSSL developer. -- ___ Python tracker

[issue33122] ftplib: FTP_TLS seems to have problems with sites that close the encrypted channel themselfes

2018-03-23 Thread Ned Deily
Change by Ned Deily : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread miss-islington
miss-islington added the comment: New changeset f8d2c3cf5f62f0c259b2bf35c631353d22cf1d08 by Miss Islington (bot) in branch '3.7': bpo-31639: Use threads in http.server module. (GH-5018)

[issue33093] Fatal error on SSL transport

2018-03-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the report and for the analysis! Closing as duplicate. -- nosy: +ned.deily resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Skip sending/receiving after SSL transport closing

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Charles
Charles added the comment: I'm not sure it's a beta release. I think they just forgot to update on their homepage what the latest stable is. Nothing on the releases page or the release notes says it's a beta. -- ___ Python

[issue33023] Unable to copy ssl.SSLContext

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 6099 changes error message "can't pickle SSLContext objects" to "cannot serialize SSLContext object", right? Wouldn't be better to change the standard error message instead? -- nosy: +serhiy.storchaka

ANN: Wing Python IDEs version 6.0.11 released

2018-03-23 Thread Wingware
Hi, We've just released Wing 6.0.11 , which implements auto-save and restore for remote files, adds a Russian translation of the UI (thanks to Alexandr Dragukin), improves remote development error reporting and recovery after network breaks, correctly

[issue32287] Import of _pyio module failed on cygwin

2018-03-23 Thread Berker Peksag
Change by Berker Peksag : -- superseder: -> _pyio module broken on Cygwin / setmode not usable ___ Python tracker ___

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the report. LibreSSL 2.7 introduced OpenSSL 1.1 API methods. I already know about the issue and have a pending fix for it on my disk. I'll push it as soon as 2.7.1 is out. 2.7.0 is a beta release. The latest stable is 2.6.4.

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Charles
New submission from Charles <chd...@gmail.com>: On macOS I could build python 2.7.14 with libressl 2.6.4 without any problems. If I try to build that same version of python with libressl 2.7.0, I get the failure pasted in below. /Users/chdiza/.tmp/tmpdir/python27-20180323-74284-f2auy2/

Re: Best practice for managing secrets (passwords, private keys) used by Python scripts running as daemons

2018-03-23 Thread Dan Stromberg
I'd put them in a file with access to the daemon.. Putting credentials in an environment variable is insecure on Linux, because ps auxwwe lists environment variables. On Fri, Mar 23, 2018 at 9:37 AM, Malcolm Greene wrote: > Looking for your suggestions on best practice

[issue32234] Add context management to mailbox.Mailbox

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is closing a mailbox in __exit__ the most desirable operation? In the last example on https://docs.python.org/3/library/mailbox.html#examples inbox is locked and unlocked multiple times. The with statement couldn't be used

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Steven D'Aprano
On Fri, 23 Mar 2018 10:39:05 -0600, Malcolm Greene wrote: >> Perhaps it doesn't need to be said, but just to be sure: don't use eval >> if you don't trust the people writing the configuration file. They can >> do nearly unlimited damage to your environment.  They are writing code >> that you are

[issue32234] Add context management to mailbox.Mailbox

2018-03-23 Thread Stéphane Blondon
Stéphane Blondon added the comment: I don't know about something blocking the merge. I sent a message to Barry on Github the 3th january but perhaps it was a wrong timing (too soon after new year). -- ___ Python tracker

Re: PyQt4 QWebView cant load google maps markers

2018-03-23 Thread Xristos Xristoou
tell some solution ?yes you are correct for some seconds show me the mark but only for some seconds.can i update my pyqt4 to show me the mark ? -- https://mail.python.org/mailman/listinfo/python-list

[issue33092] The bytecode for f-string formatting is inefficient.

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I wouldn't say this more efficient. Instead one instruction you would need to execute two instructions. If I implemented f-string formatting I would add four simple opcodes for str(), repr(), ascii() and format(). But Eric

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Ned Batchelder
On 3/23/18 12:39 PM, Malcolm Greene wrote: Perhaps it doesn't need to be said, but just to be sure: don't use eval if you don't trust the people writing the configuration file. They can do nearly unlimited damage to your environment.  They are writing code that you are running. Of course!

[issue33081] multiprocessing Queue leaks a file descriptor associated with the pipe writer

2018-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for reporting this. I agree this is a real issue, but it doesn't exist on Python 3 anymore: >>> q = multiprocessing.Queue() >>> q.put(1) >>> q.get() 1 >>> threading.enumerate() [<_MainThread(MainThread, started 139978753529600)>,

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread Julien Palard
Change by Julien Palard : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5948 ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5947 ___ Python tracker ___

[issue33126] Some C buffer protocol APIs not documented

2018-03-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : The following C functions are available for C code but not documented: - PyBuffer_ToContiguous() - PyBuffer_FromContiguous() - PyObject_CopyData() I am not sure how to describe those functions myself. -- assignee: docs@python

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Malcolm Greene
> Perhaps it doesn't need to be said, but just to be sure: don't use eval if > you don't trust the people writing the configuration file. They can do nearly > unlimited damage to your environment.  They are writing code that you are > running. Of course! Script and config file are running in

Best practice for managing secrets (passwords, private keys) used by Python scripts running as daemons

2018-03-23 Thread Malcolm Greene
Looking for your suggestions on best practice techniques for managing secrets used by Python daemon scripts. Use case is Windows scripts running as NT Services, but interested in Linux options as well. Here's what we're considering 1. Storing secrets in environment vars 2. Storing secrets in

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread Julien Palard
Julien Palard added the comment: New changeset 8bcfa02e4b1b65634e526e197588bc600674c80b by Julien Palard in branch 'master': bpo-31639: Use threads in http.server module. (GH-5018) https://github.com/python/cpython/commit/8bcfa02e4b1b65634e526e197588bc600674c80b

[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for spotting this. I will take a look soon, unless someone beats me to it. -- nosy: +pitrou ___ Python tracker

[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-03-23 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +tomMoral versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue33092] The bytecode for f-string formatting is inefficient.

2018-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I would suggest that a simper interpreter with smaller, simpler bytecodes is > a worthy goal in itself. +1 from me. Though I'm curious about performance changes as well :-) -- nosy: +pitrou ___

[issue33125] Windows 10 ARM64 platform support

2018-03-23 Thread Steven Downum
Change by Steven Downum : -- nosy: +steven.downum ___ Python tracker ___ ___

[issue33125] Windows 10 ARM64 platform support

2018-03-23 Thread Zachary Ware
Zachary Ware added the comment: Ideally, all of the changes necessary in OpenSSL, libffi, and Tcl/Tk will happen upstream and we'll just update to new versions of them. We have PR 3806 in progress to extract libffi from our repo and treat it just as any other

Re: Putting Unicode characters in JSON

2018-03-23 Thread Chris Angelico
On Sat, Mar 24, 2018 at 1:46 AM, Tobiah wrote: > On 03/22/2018 12:46 PM, Tobiah wrote: >> >> I have some mailing information in a Mysql database that has >> characters from various other countries. The table says that >> it's using latin-1 encoding. I want to send this data out

Re: Putting Unicode characters in JSON

2018-03-23 Thread Grant Edwards
On 2018-03-23, Richard Damon wrote: > One comment on this whole argument, the original poster asked how to get > data from a database that WAS using Latin-1 encoding into JSON (which > wants UTF-8 encoding) and was asking if something needed to be done > beyond using

Re: Putting Unicode characters in JSON

2018-03-23 Thread Grant Edwards
On 2018-03-23, Chris Angelico wrote: > On Fri, Mar 23, 2018 at 10:47 AM, Steven D'Aprano > wrote: >> On Fri, 23 Mar 2018 07:09:50 +1100, Chris Angelico wrote: >> I was reading though, that JSON files must be encoded with UTF-8. So

Re: Putting Unicode characters in JSON

2018-03-23 Thread Tobiah
On 03/22/2018 12:46 PM, Tobiah wrote: I have some mailing information in a Mysql database that has characters from various other countries.  The table says that it's using latin-1 encoding.  I want to send this data out as JSON. So I'm just taking each datum and doing 'name'.decode('latin-1')

Re: PyQt4 QWebView cant load google maps markers

2018-03-23 Thread Anssi Saari
Xristos Xristoou writes: > I want to create a simple python app using pyqt,QWebView and google maps with > markers. > > The problem is that,the markers does not load inside the QWebView, as > you can see they load just fine in the browser. Well, since you got a javascript

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Ned Batchelder
On 3/23/18 4:30 AM, Malcolm Greene wrote: Looking for advice on how to expand f-string literal strings whose values I'm reading from a configuration file vs hard coding into my script as statements. I'm using f-strings as a very simple template language. I'm currently using the following

Re: Entering a very large number

2018-03-23 Thread Thomas Jollans
On 2018-03-23 14:01, ast wrote: > Le 23/03/2018 à 13:43, Rustom Mody a écrit : >> On Friday, March 23, 2018 at 5:46:56 PM UTC+5:30, ast wrote: >>> Hi >>> >>> I found this way to put a large number in >>> a variable. >> >> What stops you from entering the number on one single (v long) line? > > >

Re: Putting Unicode characters in JSON

2018-03-23 Thread Richard Damon
On 3/23/18 6:35 AM, Chris Angelico wrote: On Fri, Mar 23, 2018 at 9:29 PM, Steven D'Aprano wrote: On Fri, 23 Mar 2018 18:35:20 +1100, Chris Angelico wrote: That doesn't seem to be a strictly-correct Latin-1 decoder, then. There are a number of unassigned

Re: Entering a very large number

2018-03-23 Thread Richard Damon
On 3/23/18 9:35 AM, ast wrote: Le 23/03/2018 à 14:16, Antoon Pardon a écrit : On 23-03-18 14:01, ast wrote: Le 23/03/2018 à 13:43, Rustom Mody a écrit : On Friday, March 23, 2018 at 5:46:56 PM UTC+5:30, ast wrote: What meaningful information from number can you easily retrieve from

Re: Entering a very large number

2018-03-23 Thread Antoon Pardon
On 23-03-18 14:35, ast wrote: > Le 23/03/2018 à 14:16, Antoon Pardon a écrit : >> On 23-03-18 14:01, ast wrote: >>> Le 23/03/2018 à 13:43, Rustom Mody a écrit : On Friday, March 23, 2018 at 5:46:56 PM UTC+5:30, ast wrote: > > >> What meaningful information from number can you easily retrieve

[issue33041] Issues with "async for"

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33041] Issues with "async for"

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 18d7edf32e6832a818621cb8cb3d144928eca232 by Serhiy Storchaka in branch '3.6': [3.6] bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH-6154). (GH-6199)

Re: Entering a very large number

2018-03-23 Thread ast
Le 23/03/2018 à 14:16, Antoon Pardon a écrit : On 23-03-18 14:01, ast wrote: Le 23/03/2018 à 13:43, Rustom Mody a écrit : On Friday, March 23, 2018 at 5:46:56 PM UTC+5:30, ast wrote: What meaningful information from number can you easily retrieve from representing the number in some kind

[issue33125] Windows 10 ARM64 platform support

2018-03-23 Thread Steven Noonan
Steven Noonan added the comment: I originally tagged this issue against 3.6 just because that's what I was attempting to build. But I'm not super concerned about what release these changes actually land in, I can always backport it to my own builds (and at my own

Re: Entering a very large number

2018-03-23 Thread ast
Le 23/03/2018 à 13:55, Wolfgang Maier a écrit : On 03/23/2018 01:30 PM, Wolfgang Maier wrote: On 03/23/2018 01:16 PM, ast wrote: n = int(     ''.join(""" 37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538

Re: Entering a very large number

2018-03-23 Thread Antoon Pardon
On 23-03-18 14:01, ast wrote: > Le 23/03/2018 à 13:43, Rustom Mody a écrit : >> On Friday, March 23, 2018 at 5:46:56 PM UTC+5:30, ast wrote: >>> Hi >>> >>> I found this way to put a large number in >>> a variable. >> >> What stops you from entering the number on one single (v long) line? > > > It

Re: Entering a very large number

2018-03-23 Thread Johannes Bauer
On 23.03.2018 14:01, ast wrote: > It is not beautiful and not very readable. It is better to > have a fixed number of digits per line (eg 50) Oh yes, because clearly a 400-digit number becomes VERY beautiful and readable once you add line breaks to it. Cheers, Joe -- >> Wo hattest Du das

Re: Entering a very large number

2018-03-23 Thread ast
Le 23/03/2018 à 13:30, Wolfgang Maier a écrit : On 03/23/2018 01:16 PM, ast wrote: A very simple improvement would be to use a single triple-quoted string. Assuming you are copy/pasting the number from somewhere that will save a lot of your time. no, it seems that sone \n are inserted

[issue33125] Windows 10 ARM64 platform support

2018-03-23 Thread Steve Dower
Steve Dower added the comment: I'd like to see this as well, but just to set expectations, it can't be any earlier than 3.8 at this stage (for upstream support), and we need access to some real hardware to regularly run tests on. That said, most of the changes you

Re: Entering a very large number

2018-03-23 Thread ast
Le 23/03/2018 à 13:43, Rustom Mody a écrit : On Friday, March 23, 2018 at 5:46:56 PM UTC+5:30, ast wrote: Hi I found this way to put a large number in a variable. What stops you from entering the number on one single (v long) line? It is not beautiful and not very readable. It is better

Re: Entering a very large number

2018-03-23 Thread Wolfgang Maier
On 03/23/2018 01:30 PM, Wolfgang Maier wrote: On 03/23/2018 01:16 PM, ast wrote: Hi I found this way to put a large number in a variable. C = int( "28871482380507712126714295971303939919776094592797" "22700926516024197432303799152733116328983144639225"

[issue33041] Issues with "async for"

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +5946 ___ Python tracker ___ ___

Re: Entering a very large number

2018-03-23 Thread Rustom Mody
On Friday, March 23, 2018 at 5:46:56 PM UTC+5:30, ast wrote: > Hi > > I found this way to put a large number in > a variable. What stops you from entering the number on one single (v long) line? In case there is a religious commitment to PEP 8 dicta, the recommended meditation is this line

[issue30953] Fatal python error when jumping into except clause

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 397466dfd905b5132f1c831cd9dff3ecc40b3218 by Serhiy Storchaka in branch 'master': bpo-30953: Improve error messages and add tests for jumping (GH-6196)

[issue33041] Issues with "async for"

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b9744e924ca07ba7db977e5958b91cd8db565632 by Serhiy Storchaka in branch '3.7': bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH-6154)

  1   2   >