[issue30462] urllib does not support NO_PROXY environment variable containing domain with asterisk

2018-06-19 Thread Xiang Zhang
Xiang Zhang added the comment: Hi, Jiri. Could you update your PR and let's continue with this issue? -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue33904] IDLE: In rstrip, rename class RstripExtension as Rstrip

2018-06-19 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7418 stage: needs patch -> patch review ___ Python tracker ___

Re: Writing an assembler in Python

2018-06-19 Thread dieter
iansuder...@gmail.com writes: > What does the code look like to insert assembler into python and how does > that code send information back to python. Python is a "high level" language: it tries hard to hide many "low level" details such as addresses and memory management. Thus, it is quite far

[issue33908] remove unecessary variable assignments

2018-06-19 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: resource usage -> versions: -Python 3.7 ___ Python tracker ___

[issue33908] remove unecessary variable assignments

2018-06-19 Thread Srinivas Reddy T
New submission from Srinivas Reddy T : https://github.com/python/cpython/pull/7116 -- messages: 320018 nosy: thatiparthy priority: normal severity: normal status: open title: remove unecessary variable assignments type: resource usage versions: Python 3.7, Python 3.8

[issue33908] remove unecessary variable assignments

2018-06-19 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +7417 stage: -> patch review ___ Python tracker ___ ___

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +7416 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e97a685185b82ba6de6de576fc2a4cf3cd6192af by Terry Jan Reedy in branch '3.6': [3.6] bpo-33907: Rename an IDLE module and class. (GH-7807) (GH-7809) https://github.com/python/cpython/commit/e97a685185b82ba6de6de576fc2a4cf3cd6192af --

Re: syntax difference

2018-06-19 Thread Chris Angelico
On Wed, Jun 20, 2018 at 11:19 AM, Steven D'Aprano wrote: > On Wed, 20 Jun 2018 07:52:31 +1000, Chris Angelico wrote: > >>> What do you do in python when a local function variable needs to retain >>> its value? I'm sure it can do it, but I bet it's not as simple as how I >>> do it. >>> >> What do

[issue33301] Add __contains__ to pathlib

2018-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There was a similar (closed) issue about making Path an iterable. The problem with both these related ideas is that they are ambiguous. Does it means that a directory contains a specified file, or that a path contains a specified path component, or that a

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: The calltip window class name is only used in 4 places, so I decided to expand to CalltipWindow. -- ___ Python tracker ___

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I also changed calltips.CallTips to calltip.Calltip, which is the same class name as for calltip_w.Calltip (formerly CallTip). This is confusing now and would block merging the files. Change the latter to calltip_w.CalltipW (for Window). -- nosy:

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +7415 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread miss-islington
miss-islington added the comment: New changeset b89a376b3b9bdc3b6f1b7d05ff64babcbfd93cc2 by Miss Islington (bot) in branch '3.7': bpo-33907: Rename an IDLE module and class. (GH-7807) https://github.com/python/cpython/commit/b89a376b3b9bdc3b6f1b7d05ff64babcbfd93cc2 -- nosy:

Re: syntax difference

2018-06-19 Thread Steven D'Aprano
On Tue, 19 Jun 2018 12:13:40 -0700, Jim Lee wrote: > On 06/19/2018 04:13 AM, Ed Kellett wrote: >> I think >> we're all--still--missing the larger point that "easy to remove" is a >> completely stupid metric for judging language features. Seriously. Not >> a little bit stupid. > > Not if you think

Re: syntax difference

2018-06-19 Thread Steven D'Aprano
On Tue, 19 Jun 2018 12:38:24 -0700, Rick Johnson wrote: > Why shouldn't i have the right to "brush type-hints under the rug" Ian? > After all, if the code *I* write doesn't belong to *ME*, well then, who > *HELL* does it belong to? If you don't want to use type-hints in your own code, why did

Re: curve_fit in scipy

2018-06-19 Thread Sharan Basappa
> > Secondly, I don't understand how curve_fit knows the number of arguments > > that test_func takes. > > Part of the dynamic nature of Python is that a function carries with it > the number of parameters (as just one among many such properties).  We > call it "introspection" when we examine

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +7414 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 06e2029dfa500a42e3565ed7ba8573412f153d1c by Terry Jan Reedy in branch 'master': bpo-33907: Rename an IDLE module and class. (GH-7807) https://github.com/python/cpython/commit/06e2029dfa500a42e3565ed7ba8573412f153d1c --

Re: Writing an assembler in Python

2018-06-19 Thread Dan Stromberg
On Tue, Jun 19, 2018 at 7:33 PM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Tue, 19 Jun 2018 17:41:11 -0700, iansuderman wrote: > > > What does the code look like to insert assembler into python and how > > does that code send information back to python. > > > > It seems

Re: Writing an assembler in Python

2018-06-19 Thread Steven D'Aprano
On Tue, 19 Jun 2018 17:41:11 -0700, iansuderman wrote: > What does the code look like to insert assembler into python and how > does that code send information back to python. > > It seems you wrote that python is a good compiler for assembly. If > possible I want to add assembly to my python.

[issue33855] IDLE: Minimally test every non-startup module.

2018-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Still open for a patch explaining idle_test.template in README. I opened #33904 for rstrip, #33905 for stackbrowser, #33906 for windows, and #33907 for calltips/CallTip renaming. -- stage: patch review -> test needed

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +7413 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue23548] TypeError in event loop finalizer, new in Python 3.4.3

2018-06-19 Thread William Woodall
William Woodall added the comment: Just an update to my previous post. We ran into this issue again, but only noticed later because we do not see this problem on Ubuntu Bionic with Python 3.6.5, but we did see it again when we tested later on Ubuntu Xenial with Python 3.5.1. See:

Re: syntax difference

2018-06-19 Thread Steven D'Aprano
On Wed, 20 Jun 2018 07:52:31 +1000, Chris Angelico wrote: >> What do you do in python when a local function variable needs to retain >> its value? I'm sure it can do it, but I bet it's not as simple as how I >> do it. >> > What do you mean, "retain its value"? Do you mean the way closures work?

Re: Why an object changes its "address" between adjacent calls?

2018-06-19 Thread Jach Fong
Terry Reedy at 2018/6/19 PM 08:35 wrote: On 6/18/2018 8:38 PM, sa...@caprilion.com.tw wrote: Grant Edwards at 2018/6/18 PM 10:36 wrote: On 2018-06-17, Jach Fong wrote: The "address" of the Font object 'TkDefaultFont' changes, why? What makes you think it's the same object the second time

Re: syntax difference

2018-06-19 Thread Steven D'Aprano
On Tue, 19 Jun 2018 14:07:32 -0700, bart4858 wrote: > Do you think that a feature like swap(x,y) literally only works on two > simple variables? I think that if you write "x" and "y", you mean placeholder names that stand in for arbitrary variable names, not expressions. That's the common and

Re: Writing an assembler in Python

2018-06-19 Thread iansuderman
What does the code look like to insert assembler into python and how does that code send information back to python. It seems you wrote that python is a good compiler for assembly. If possible I want to add assembly to my python. -- https://mail.python.org/mailman/listinfo/python-list

[issue33855] IDLE: Minimally test every non-startup module.

2018-06-19 Thread miss-islington
miss-islington added the comment: New changeset cbaee6fe02d22f357c2edf4e463c240d5df22f14 by Miss Islington (bot) in branch '3.7': bpo-33855: Still more edits and minimal tests for IDLE (GH-7784) https://github.com/python/cpython/commit/cbaee6fe02d22f357c2edf4e463c240d5df22f14 --

[issue33855] IDLE: Minimally test every non-startup module.

2018-06-19 Thread miss-islington
miss-islington added the comment: New changeset 90209a172c5b629f512cf292a22950285a2c3d81 by Miss Islington (bot) in branch '3.6': bpo-33855: Still more edits and minimal tests for IDLE (GH-7784) https://github.com/python/cpython/commit/90209a172c5b629f512cf292a22950285a2c3d81 --

Re: syntax difference

2018-06-19 Thread bart4858
Some of that can be done. It may not need specific support. But my intention is to have an ordinary language for everyday coding not one that can only be understood by CS professors. Mine is unusual in that I can drop features I rarely use, which means that everything in it gets good use.

[issue33301] Add __contains__ to pathlib

2018-06-19 Thread Andrew Berger
Andrew Berger added the comment: I think the idea is that either a subdir or file could be valid inputs. So `Path('/usr/bar') in Path('/etc/foo')` return True if `Path('/etc/foo/usr/bar')` is either a dir or file. As for PurePath, I did overlook that accessing an inode via a call to stat

[issue33855] IDLE: Minimally test every non-startup module.

2018-06-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +7412 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33855] IDLE: Minimally test every non-startup module.

2018-06-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +7411 stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33855] IDLE: Minimally test every non-startup module.

2018-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4d92158f4c3917fc4fbfebff15224e74782abf79 by Terry Jan Reedy in branch 'master': bpo-33855: Still more edits and minimal tests for IDLE (GH-7784) https://github.com/python/cpython/commit/4d92158f4c3917fc4fbfebff15224e74782abf79 --

[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am going to change calltips.py and CallTips to calltip.py and Calltip in #33907, but will not change tooltip.py there as I would expect a merge conflict. Once the change is made elsewhere, change should be made to tooltip and test_tooltip directly.

[issue33907] IDLE: Rename calltips and CallTips as calltip and Calltip.

2018-06-19 Thread Terry J. Reedy
New submission from Terry J. Reedy : Rename module 'calltips' as 'calltip' 1. 'calltips' and 'windows' are the only two plural module names. 2. 'calltip' fits better with 'calltip_w' (which may, however, be merged in 'calltip'. Module rename can be checked as with 'window', #33906. and class

[issue33904] IDLE: In rstrip, rename class RstripExtension as Rstrip

2018-06-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: In rstrip, change class RstripExtension to Rstrip -> IDLE: In rstrip, rename class RstripExtension as Rstrip ___ Python tracker ___

[issue33906] IDLE: rename windows.py as window.py

2018-06-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: change windows.py to window.py -> IDLE: rename windows.py as window.py ___ Python tracker ___

[issue33906] IDLE: change windows.py to window.py

2018-06-19 Thread Terry J. Reedy
New submission from Terry J. Reedy : Change module 'windows' to 'window':: 1. 'calltips' and 'windows' are the only two plural module names. 2. The top menu entry was changed from 'Windows' to 'Window' some time ago. 3. 'windows' is also a OS. With all modules at least imported in a test, all

[issue30811] A venv created and activated from within a virtualenv uses the outer virtualenv's site-packages rather than its own.

2018-06-19 Thread Josh Holland
Change by Josh Holland : -- nosy: +anowlcalledjosh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: syntax difference

2018-06-19 Thread Chris Angelico
On Wed, Jun 20, 2018 at 8:14 AM, wrote: > Features? Important ones? Go back 40 years and see how important they were > then. Most of them,nobody had heard of, and would not be meaningful. > Let's see. Forty years ago was 1978. Databasing was a little bit important. I mean, not much... just

[issue33905] IDLE: stackbrowser.Stackbrowser should accept exception.

2018-06-19 Thread Terry J. Reedy
New submission from Terry J. Reedy : Stackbrowser is currently initialized with a traceback and/or the sys.last_xyz attributes. The latter are not set when unittesting; the test framework somehow prevents this. The tests needed are the ones that will be enabled by Stackbrower accepting an

Re: syntax difference

2018-06-19 Thread bart4858
Features? Important ones? Go back 40 years and see how important they were then. Most of them,nobody had heard of, and would not be meaningful. Now do the same with my list - most are programming features that could be understood and appreciated even then. Finally, imagine going forward 40

[issue33904] IDLE: In rstrip, change class RstripExtension to Rstrip

2018-06-19 Thread Terry J. Reedy
New submission from Terry J. Reedy : Rstrip is no longer an extension. Change all occurrences throughout idlelib, including tests. Some may not be covered in tests. Branch after #33855 is merged. -- assignee: terry.reedy components: IDLE messages: 320001 nosy: terry.reedy

Re: syntax difference

2018-06-19 Thread Chris Angelico
On Wed, Jun 20, 2018 at 7:41 AM, wrote: > I think you're getting a programming language mixed up with a bunch of random > libraries. > > If you want to do any actual coding rather than scripting, such as > implementing some of that stuff, then this is where those basic language > features

Re: syntax difference

2018-06-19 Thread bart4858
I think you're getting a programming language mixed up with a bunch of random libraries. If you want to do any actual coding rather than scripting, such as implementing some of that stuff, then this is where those basic language features that are missing from core Python become useful. What

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor
STINNER Victor added the comment: Thanks Serhiy and Xiang for the reviews and to help to debug this bug. -- ___ Python tracker ___

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor
STINNER Victor added the comment: Ok, the test have been fixed in 3.6, 3.7 and master. I added a private version number in master. If someone wants to add a public version number, please go ahead but open a new issue. -- resolution: -> fixed stage: patch review -> resolved status:

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 00f9edb98dd64e14daf5c44f303deca5cbc3cdeb by Victor Stinner in branch 'master': bpo-33901: Add _gdbm._GDBM_VERSION (GH-7794) https://github.com/python/cpython/commit/00f9edb98dd64e14daf5c44f303deca5cbc3cdeb --

Re: syntax difference

2018-06-19 Thread Chris Angelico
On Wed, Jun 20, 2018 at 7:07 AM, wrote: > Do you think that a feature like swap(x,y) literally only works on two simple > variables? X and y represent any two lvalue expressions. For example, a[I] > and a[I+1]. Python will evaluate each twice. > > My version sets up two references then

Re: syntax difference

2018-06-19 Thread bart4858
Do you think that a feature like swap(x,y) literally only works on two simple variables? X and y represent any two lvalue expressions. For example, a[I] and a[I+1]. Python will evaluate each twice. My version sets up two references then exchanges what they point to with one bytecode. --

[issue33855] IDLE: Minimally test every non-startup module.

2018-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Change windows.py to window.py, in line with change of menu. Should be safer with everything imported. -- stage: patch review -> test needed ___ Python tracker

Re: syntax difference

2018-06-19 Thread Ian Kelly
On Tue, Jun 19, 2018 at 1:42 PM Rick Johnson wrote: > > On Tuesday, June 19, 2018 at 1:02:52 PM UTC-5, Ian wrote: > > On Mon, Jun 18, 2018 at 2:57 PM Rick Johnson > > It's a "burden" (actually, a helpful tool) to the > > programmer either way: whether it's in a comment or an > > annotation, it's

[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread George King
George King added the comment: OK, thanks. I agree that this is best pursued with the developers of the relevant modules. I appreciate your quick and detailed responses! -- ___ Python tracker

[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: "It's complicated" :) But technically speaking they are all separate projects, so while there is synergy, CPython itself *imports* some of those to provide various tasks, but it doesn't lead their development. You'll find a lot of the same players in all

Re: syntax difference

2018-06-19 Thread Chris Angelico
On Wed, Jun 20, 2018 at 5:38 AM, Rick Johnson wrote: >> You've been answered time and time again -- the devs are >> volunteers and are not beholden to do whatever you want >> just because you don't like it -- yet for some reason you >> keep asking. > > Are you a dev? > > Is Chris a Dev? > > Is

Re: syntax difference

2018-06-19 Thread Rick Johnson
On Tuesday, June 19, 2018 at 1:02:52 PM UTC-5, Ian wrote: > On Mon, Jun 18, 2018 at 2:57 PM Rick Johnson [...] > > The point is, from the POV of the interpreter and the > > programmer. comments are always going to be comments > > regardless of whether special purpose tools parse them or > > not.

[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread George King
George King added the comment: Thanks Barry. My question then is, what relationship does cpython have with pip, setuptools, distutils and pkg_resources? Since pip comes bundled with Python now it seems a little bit closer than "3rd party". Thanks! --

[issue17237] m68k aligns on 16bit boundaries.

2018-06-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -7408 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31680] Expose curses library name and version on Python level

2018-06-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7410 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: syntax difference

2018-06-19 Thread Jim Lee
On 06/19/2018 04:13 AM, Ed Kellett wrote: I think we're all--still--missing the larger point that "easy to remove" is a completely stupid metric for judging language features. Seriously. Not a little bit stupid. Not if you think of the feature as analogous to cancer. -Jim --

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

2018-06-19 Thread Chris Eykamp
Chris Eykamp added the comment: Packaged patch offered below into PR 7804 https://github.com/python/cpython/pull/7804 -- versions: +Python 3.5 ___ Python tracker ___

[issue33301] Add __contains__ to pathlib

2018-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not a good idea IMHO. Why would containment mean the existence of a file in a directory? It could just as well mean that a certain path component is part of the path. Also I don't understand what would e.g. `Path('/usr/bar') in Path('/etc/foo')` mean.

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

2018-06-19 Thread Chris Eykamp
Change by Chris Eykamp : -- pull_requests: +7409 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: syntax difference

2018-06-19 Thread Grant Edwards
On 2018-06-19, Steven D'Aprano wrote: > I know that Rick's attitude towards reality is that facts are only for > other people, and that once he has made up his mind nothing will budge > it, *especially* not facts, but for anyone reading this who might be > fooled into imagining that Rick has

[issue17237] m68k aligns on 16bit boundaries.

2018-06-19 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7408 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: syntax difference

2018-06-19 Thread Mark Lawrence
On 19/06/18 18:10, Ian Kelly wrote: On Tue, Jun 19, 2018 at 3:14 AM Steven D'Aprano wrote: On Mon, 18 Jun 2018 10:01:58 -0700, Rick Johnson wrote: Steven D'Aprano wrote: [...] particular at DropBox, which is (I believe) funding a lot of Guido's time on this, because they need it. And now

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 6aa283a6036f80e5820db2beae98c62745fae96f by Xiang Zhang (Miss Islington (bot)) in branch '3.6': bpo-33717: set terse to True when calling platform.platform in test.pythoninfo (GH-7797) (GH-7802)

Re: syntax difference

2018-06-19 Thread Ian Kelly
On Mon, Jun 18, 2018 at 2:57 PM Rick Johnson wrote: > > On Monday, June 18, 2018 at 2:48:58 PM UTC-5, Ian wrote: > > I would also note that none of this applies to type hinting > > in any case. Type hints don't require the programmer to be > > able to explain anything in natural language, nor are

Re: syntax difference

2018-06-19 Thread Rick Johnson
On Tuesday, June 19, 2018 at 4:12:10 AM UTC-5, Steven D'Aprano wrote: [...] > People have been requesting static typing in Python virtually since Day > 1, "Day one"??? Really? "People"??? How many people? Contrary to to your fuzzy memories, Steven, we all know that Guido _purposely_

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset b2dd5f1b667b37b5d36b39adc3a3aa6ebf59ef0b by Xiang Zhang (Miss Islington (bot)) in branch '2.7': bpo-33717: set terse to True when calling platform.platform in test.pythoninfo (GH-7797) (GH-7803)

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This really isn't enough information to know exactly what's going on in your case, but there are things that are known to be slow for CLI startups. Probably the biggest contributor is pkg_resources. Of course, that's a third party library that's popular

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +7407 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +7406 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The buildbot is green again! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: syntax difference

2018-06-19 Thread Ian Kelly
On Tue, Jun 19, 2018 at 3:14 AM Steven D'Aprano wrote: > > On Mon, 18 Jun 2018 10:01:58 -0700, Rick Johnson wrote: > > > Steven D'Aprano wrote: > > [...] > >> particular at DropBox, which is (I believe) funding a lot of Guido's > >> time on this, because they need it. > > > > And now we get to

Re: syntax difference

2018-06-19 Thread Steven D'Aprano
On Mon, 18 Jun 2018 10:34:54 -0700, Jim Lee wrote: > The syntax should be defined inside comments Then you ought to be pleased that from Python 4.0 (or from Python 3.7 with a ``__future__`` import) annotations will be treated as strings by the interpreter. That makes them effectively special

Re: [pypy-dev] A quick question for you!

2018-06-19 Thread William ML Leslie
On 18 June 2018 at 22:18, Etienne Robillard wrote: > Hi, > > Quick question: Does anyone of you know what is the effect of enabling > gc.enable() in sitecustomize.py when using PyPy? Can it reduce latency for > long-lived WSGI applications? > gc is enabled by default. you only need to use

Re: syntax difference

2018-06-19 Thread Rick Johnson
Rhodri James wrote: [...] > It has little flea executioners running around with little flea axes > chopping off little flea heads? Hmm. And who knew that Python-list was really just a homicidal flea circus. Go figure! -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-19 Thread Rick Johnson
On Tuesday, June 19, 2018 at 5:21:25 AM UTC-5, Chris Angelico wrote: > On Tue, Jun 19, 2018 at 8:12 PM, Steven D'Aprano > wrote: > > On Mon, 18 Jun 2018 11:34:40 -0700, Jim Lee wrote: > > > >> On 06/18/2018 11:18 AM, Chris Angelico wrote: > >>> What, fundamentally, is the difference between type

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread miss-islington
miss-islington added the comment: New changeset fe8122d7b7c747fc344dde8467b09de6b5888d01 by Miss Islington (bot) in branch '3.6': bpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7798) https://github.com/python/cpython/commit/fe8122d7b7c747fc344dde8467b09de6b5888d01 -- nosy:

[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-19 Thread Eryk Sun
Eryk Sun added the comment: In some of these cases, it would be simpler to just remove the explicit dynamic linking. 3.6+ doesn't support XP, so CancelIoEx, CreateSymbolicLinkW, RegDeleteKeyExW, RegDisableReflectionKey, RegEnableReflectionKey, and RegQueryReflectionKey can be linked

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-19 Thread STINNER Victor
STINNER Victor added the comment: Ok, I pushed a change to the master branch. Now the question is if Python 2.7, 3.6 and 3.7 should be fixed as well? I will wait at least one day to see if buildbots are happy. -- ___ Python tracker

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 06fe77a84bd29d51506ab2ff703ae585a6121af2 by Victor Stinner in branch 'master': bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) https://github.com/python/cpython/commit/06fe77a84bd29d51506ab2ff703ae585a6121af2 --

Re: curve_fit in scipy

2018-06-19 Thread Gary Herron
This is a Python forum, but what you are asking is not a Python question.  You might find a better source of answers on a scipy specific forum. But here's my attempt at answers: On 06/19/2018 08:26 AM, sharan.basa...@gmail.com wrote: Hi All, I am working out an exercise on curve_fit

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +7405 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +7404 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 13c79c677f9ec9437c82eda72fa1c2d288d8fceb by Victor Stinner in branch '3.7': bpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7798) https://github.com/python/cpython/commit/13c79c677f9ec9437c82eda72fa1c2d288d8fceb --

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7403 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33746] testRegisterResult in test_unittest fails in verbose mode

2018-06-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7402 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7401 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset c44d8e5db6fb9d3847c49e9c9718f2b4cf71f506 by Victor Stinner in branch 'master': bpo-33901: Better test_dbm_gnu.test_reorganize() fix (GH-7795) https://github.com/python/cpython/commit/c44d8e5db6fb9d3847c49e9c9718f2b4cf71f506 --

Re: syntax difference

2018-06-19 Thread Steven D'Aprano
On Tue, 19 Jun 2018 11:52:22 +0100, Bart wrote: > On 19/06/2018 11:33, Steven D'Aprano wrote: >> On Tue, 19 Jun 2018 10:19:15 +0100, Bart wrote: >> >>> * Swap(x,y) (evaluate each once unlike a,y=y,x) >> >> Sigh. Really? You think x,y = y,x evaluates x and y twice? > > Yes. Well, you would be

curve_fit in scipy

2018-06-19 Thread Sharan Basappa
Hi All, I am working out an exercise on curve_fit function available scipy package. While I understand in general about curve_fit, I am unable to understand the following: params, params_covariance = optimize.curve_fit(test_func, x_data, y_data,

[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-19 Thread Tony Roberts
Tony Roberts added the comment: Sure, that's reasonable :) For my case I have a usable workaround so not back porting it to < 3.8 is fine for me. My workaround will just leak the thread state if another thread is in __import__, which happens so rarely that it's not really a problem (but not

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New changeset c7f02a965936f197354d7f4e6360f4cfc86817ed by Giampaolo Rodola in branch 'master': bpo-33671 / shutil.copyfile: use memoryview() with dynamic size on Windows (#7681)

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-19 Thread STINNER Victor
STINNER Victor added the comment: Very interesting article about PGO and LTO changes in GCC: https://hubicka.blogspot.com/2018/06/gcc-8-link-time-and-interprocedural.html See "Early debug info" paragraph. -- ___ Python tracker

[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-19 Thread STINNER Victor
STINNER Victor added the comment: Prawin Phichitnitikorn: "But for me I'm resolve by adding (...)" Ok, so can you please give the value of: * sys.stdin.encoding * sys.stdout.encoding * sys.stderr.encoding * os.device_encoding(0) * os.device_encoding(1) * os.device_encoding(2) *

  1   2   >