Re: numpy not working any more

2017-08-14 Thread dieter
Poul Riis writes: > ... > For some time I have been using python 3.6.0 on a windows computer. > Suddenly, my numpy does not work any more. > This one-liner program: > import numpy as np > results in the long error message below. > ... > Traceback (most recent call last): >

Re: Proposed new syntax

2017-08-14 Thread Rustom Mody
On Monday, August 14, 2017 at 10:35:22 PM UTC+5:30, Terry Reedy wrote: > On 8/14/2017 5:59 AM, Ben Finney wrote: > > > At what point will you accept the feedback: That the comprehension > > syntax *does not* necessarily connote a procedural loop, but instead can > > quite reasonably be

[issue31209] MappingProxyType can not be pickled

2017-08-14 Thread Alex Hayes
New submission from Alex Hayes: I imagine that this is by design (likely because it can't be implemented) however I wanted to check if this was the case. Instances of types.MappingProxyType can't be pickled. For example; ``` import pickle from types import MappingProxyType eggs =

Re: Proposed new syntax

2017-08-14 Thread Rustom Mody
On Tuesday, August 15, 2017 at 3:57:22 AM UTC+5:30, Gregory Ewing wrote: > Ben Finney wrote: > > That the comprehension > > syntax *does not* necessarily connote a procedural loop, but instead can > > quite reasonably be interpreted as its designer intended, a single > > conceptual operation. > >

Re: Proposed new syntax

2017-08-14 Thread Paul Rubin
Paul Rubin writes: > FORALL P. [ P(0) and P(n) -> P(n+1) ] Sorry, that was supposed to say FORALL P. [ (P(0) and P(n) -> P(n+1)) -> forall n. P(n) ] FORALL quantifies over formulas and forall quantifies over numbers. Maybe something is still missing from the above

[issue9253] argparse: optional subparsers

2017-08-14 Thread Anthony Sottile
Anthony Sottile added the comment: I've attempted to address some of the backward/forward compatibility issue with subparsers becoming optional by default (vs required by default in python2) with this pull request: https://github.com/python/cpython/pull/3027 (would love to get a review as

[issue31208] Simplify `low_fds_to_close` in subprocess.py

2017-08-14 Thread TaoQingyun
Changes by TaoQingyun <845767...@qq.com>: -- components: Library (Lib) files: subprocess.patch keywords: patch nosy: qingyunha priority: normal severity: normal status: open title: Simplify `low_fds_to_close` in subprocess.py type: enhancement versions: Python 3.7 Added file:

Re: cpython version

2017-08-14 Thread Larry Martell
On Sun, Aug 13, 2017 at 10:59 PM, Gilmeh Serda wrote: > On Sat, 12 Aug 2017 10:24:06 -0400, Larry Martell wrote: > >> now I have prospective client that refuses to run linux, even in a VM. >> So I am tying to get my app running on Windows Server 2016, piece by

Re: Proposed new syntax

2017-08-14 Thread Paul Rubin
Marko Rauhamaa writes: > For the non-logicians in the audience, an "axiom schema" is a generator > pattern that produces an infinity of actual axioms. For non-logicians this is not worth worrying about: schemas are basically a technical hack to get around the inability of

Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread Michael Torrie
On 08/14/2017 07:28 PM, jlada...@itu.edu wrote: > On Monday, August 14, 2017 at 4:41:23 PM UTC-7, Ho Yeung Lee wrote: >> my code can run without error, >> >> you can try to download one of face from search keyword "face" >> and try this script > > You're assuming a lot. From your code: > >

Re: A question on modification of a list via a function invocation

2017-08-14 Thread Larry Hudson via Python-list
On 08/14/2017 01:02 PM, Mok-Kong Shen wrote: Am 14.08.2017 um 21:53 schrieb Ned Batchelder: [snip] def test(alist): alist=[3,6,9] return def test1(alist): alist[0],alist[1],alist[2]=3,6,9 return def test2(alist): alist[0],alist[1],alist[2]=3,6,9 alist=[30,60,90] return

Re: Proposed new syntax

2017-08-14 Thread Paul Rubin
Steve D'Aprano writes: > It's quite clever, actually, in that it gives *pseudo* random-access > with lazy evaluation. You can evaluate the Nth element without > evaluating the earlier ones. But you can't do so without *storing* the > previous ones, they have to be

[issue26510] [argparse] Add required argument to add_subparsers

2017-08-14 Thread Anthony Sottile
Anthony Sottile added the comment: I've added a patch for this https://github.com/python/cpython/pull/3027 Would love to get a review so it could be included -- nosy: +Anthony Sottile ___ Python tracker

Re: Proposed new syntax

2017-08-14 Thread Steve D'Aprano
On Tue, 15 Aug 2017 01:40 am, Chris Angelico wrote: [...] >> A Haskell list comprehension is not a loop at all. > > What if you don't take the first four, but instead take just the tenth > element? Will the preceding elements be calculated too, or do you have > a sparse list? Both. Or neither.

[issue31198] getaddrinfo: inconsistent handling of port=None

2017-08-14 Thread Nathaniel Smith
Nathaniel Smith added the comment: Ugh, apparently this weird behavior is actually mandated by the RFC :-(. RFC 3493: The nodename and servname arguments are either null pointers or pointers to null-terminated strings. One or both of these two arguments must be a non-null pointer.

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Great work. Thank you. Next: #31205, #31001, #31206, then ... -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue31093] IDLE: Add tests for configdialog extensions tab

2017-08-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: It is not clear what will be left after #27099 -- ___ Python tracker ___

[issue31207] IDLE, configdialog: Factor out ExtPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE: Add tests for configdialog extensions tab ___ Python tracker ___

[issue31207] IDLE, configdialog: Factor out ExtPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: terry.reedy components: IDLE nosy: terry.reedy priority: normal severity: normal stage: test needed status: open title: IDLE, configdialog: Factor out ExtPage class from ConfigDialog versions: Python 3.6, Python 3.7

[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE: Add tests for configdialog highlight tab ___ Python tracker ___

[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: As with #31050, #31205 -- assignee: terry.reedy components: IDLE messages: 300278 nosy: csabella, terry.reedy priority: normal severity: normal stage: test needed status: open title: IDLE, configdialog: Factor out HighPage class from ConfigDialog

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a31459008c5b3230363d155a2e8616664dc4f0c6 by Terry Jan Reedy in branch '3.6': [3.6] bpo-31002: IDLE: Add tests for configdialog keys tab (GH-2996) (#3092) https://github.com/python/cpython/commit/a31459008c5b3230363d155a2e8616664dc4f0c6

Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread jladasky
On Monday, August 14, 2017 at 4:41:23 PM UTC-7, Ho Yeung Lee wrote: > my code can run without error, > > you can try to download one of face from search keyword "face" > and try this script You're assuming a lot. From your code: from PIL import Image # Two lines removed import

[issue31001] IDLE: Add tests for configdialog highlight tab

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: If we do the same renamings for the theme selection vars and functions as done for keys selection on the keys tab, then the corresponding tests can be copied and slightly altered. However, duplicate names require that KeyPage be separated first. Hence the

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Let me know if you start on this. -- nosy: +csabella ___ Python tracker ___

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3132 ___ Python tracker ___ ___

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2f8964634918bdf09107c49a2d5ca62460091e54 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-31002: IDLE: Add tests for configdialog keys tab (#2996) https://github.com/python/cpython/commit/2f8964634918bdf09107c49a2d5ca62460091e54

[issue31205] IDLE, configdialog: Factor out KeysPage class from ConfigDialog

2017-08-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: Do as did with #31050 and GenPage class. This should be done *before* #31001, highlights test. -- assignee: terry.reedy components: IDLE messages: 300273 nosy: terry.reedy priority: normal severity: normal stage: test needed status: open title:

[issue31194] Inconsistent __repr__s for _collections objects

2017-08-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: IIRC, deque() did this to better match the behavior of list(). Not everything in Python is consistent and sometimes we have to pick and choose between what we want to be consistent with. For the most part, the decisions have worked out well in practice

[issue31194] Inconsistent __repr__s for _collections objects

2017-08-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue31204] Support __fspath__ in shlex.quote

2017-08-14 Thread Anthony Sottile
Anthony Sottile added the comment: Ah oops, I'm incorrect here, the __fspath__ object I was dealing with supported __str__ and that's how subprocess was converting it -- not via __fspath__. -- stage: -> resolved status: open -> closed ___ Python

[issue31204] Support __fspath__ in shlex.quote

2017-08-14 Thread Anthony Sottile
New submission from Anthony Sottile: Given shlex.quote often is used closely with calls in `subprocess`, should it also support quoting __fspath__ objects? I'll write up a quick patch for this -- components: Library (Lib) messages: 300270 nosy: Anthony Sottile priority: normal

Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread Ho Yeung Lee
my code can run without error, you can try to download one of face from search keyword "face" and try this script On Tuesday, August 15, 2017 at 4:33:51 AM UTC+8, jlad...@itu.edu wrote: > On Monday, August 14, 2017 at 12:30:21 PM UTC-7, Ho Yeung Lee wrote: > >

Re: A question on modification of a list via a function invocation

2017-08-14 Thread Ned Batchelder
On 8/14/17 4:18 PM, Mok-Kong Shen wrote: > Am 14.08.2017 um 22:10 schrieb oliver: >> It is not a global because accessing an item of a list does not change >> whether it is global or local. It would only be global if you >> declared it >> global via a "global" statement. Can you give an example,

Re: Proposed new syntax

2017-08-14 Thread Ben Finney
Steve D'Aprano writes: > On Mon, 14 Aug 2017 07:59 pm, Ben Finney wrote: > > You began by asking what people would expect syntax to mean. > > > > Then you expressed surprise that anyone would think a comprehension > > would be interpreted by the reader as a single

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Changes by Łukasz Langa : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 09b77165e3fffa7b7ff160ad06042cdcfa004bf5 by Łukasz Langa in branch '3.6': [3.6] bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (GH-2803) (#3090)

Re: Solution Manual Test Bank for South-Western Federal Taxation 2018: Corporations, Partnerships, Estates and Trusts, 41st Edition by Hoffman

2017-08-14 Thread zhilongch64
On Friday, June 30, 2017 at 3:03:05 PM UTC-5, Test Banks wrote: > Greetings, > > We do have Solution Manuals and Test Bank for SOUTH-WESTERN FEDERAL TAXATION > 2018: CORPORATIONS, PARTNERSHIPS, ESTATES AND TRUSTS 41st EDITION BY HOFFMAN > at reasonable price. You can get above mentioned

Re: Solution Manual Test Bank for South-Western Federal Taxation 2018: Corporations, Partnerships, Estates and Trusts, 41st Edition by Hoffman

2017-08-14 Thread zhilongch64
On Friday, June 30, 2017 at 3:03:05 PM UTC-5, Test Banks wrote: > Greetings, > > We do have Solution Manuals and Test Bank for SOUTH-WESTERN FEDERAL TAXATION > 2018: CORPORATIONS, PARTNERSHIPS, ESTATES AND TRUSTS 41st EDITION BY HOFFMAN > at reasonable price. You can get above mentioned

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-14 Thread Lin Tian
Lin Tian added the comment: Reactive this issue as to let you know that libexpat has confirmed and fixed the bug and they are interested in porting the fix to python. Reactive this in case you want to know what's going on and make a decision accordingly. (Sorry, I'm not very familiar with

Re: A question on modification of a list via a function invocation

2017-08-14 Thread MRAB
On 2017-08-14 20:21, Mok-Kong Shen wrote: [snip] I could more or less understand that in test() alist is interpreted as local but in the extended program below in test2() I first write the same as in test1(), after which I logically assume that the name alist is now known as global and then I

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +3131 ___ Python tracker ___ ___

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +3130 ___ Python tracker ___ ___

Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread Ho Yeung Lee
i would like to ask whether at line dd = dst>0.01*dst.max() and the part of code below from script, whether write wrong in array access or assignment testing1 = zip(*np.where(dd == 1)) locations = testing1 testing1 = [list((float(elem[0]),float(elem[1]))) for elem in testing1]

Re: Proposed new syntax

2017-08-14 Thread Gregory Ewing
Ben Finney wrote: That the comprehension syntax *does not* necessarily connote a procedural loop, but instead can quite reasonably be interpreted as its designer intended, a single conceptual operation. To put it another way: Consider that a comprehension is an expression, and I think most

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Larry Hastings
Larry Hastings added the comment: You understand correctly. It won't be backported to Python 3.5. -- ___ Python tracker ___

[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-14 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2e0f4db114424a00354eab889ba8f7334a2ab8f0 by Łukasz Langa (Bruno "Polaco" Penteado) in branch 'master': bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (#2803)

[issue31149] Add Japanese to the language switcher

2017-08-14 Thread Julien Palard
Julien Palard added the comment: @inada make sense, so I'll change "Français" for "French" for consistency. -- ___ Python tracker ___

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Марк Коренберг
Марк Коренберг added the comment: If I understand right, Python 3.5 will not be fixed with this pathc. Right ? If yes, I will tell Debian maintainers to backport this patch to Python 3.5, which is shipped with latest stable Debian 9. -- ___ Python

Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread jladasky
On Monday, August 14, 2017 at 12:30:21 PM UTC-7, Ho Yeung Lee wrote: > https://gist.github.com/hoyeunglee/df7e6cb9b76c576b26fd2bb2b26bfe2f > > sample image > https://drive.google.com/file/d/0Bxs_ao6uuBDUY09qM1JMWS1Ob0k/view?usp=sharing > > would like to rectangle bound the eye ,mouth corner etc

Re: A question on modification of a list via a function invocation

2017-08-14 Thread Mok-Kong Shen
Am 14.08.2017 um 22:10 schrieb oliver: It is not a global because accessing an item of a list does not change whether it is global or local. It would only be global if you declared it global via a "global" statement. Can you give an example, that would help determine the issue. If without a

Re: A question on modification of a list via a function invocation

2017-08-14 Thread oliver
It is not a global because accessing an item of a list does not change whether it is global or local. It would only be global if you declared it global via a "global" statement. Can you give an example, that would help determine the issue. On Mon, 14 Aug 2017 at 16:06 Mok-Kong Shen

Re: A question on modification of a list via a function invocation

2017-08-14 Thread Mok-Kong Shen
Am 14.08.2017 um 21:53 schrieb Ned Batchelder: On 8/14/17 3:21 PM, Mok-Kong Shen wrote: Am 14.08.2017 um 20:50 schrieb Ned Batchelder: On 8/14/17 2:21 PM, Mok-Kong Shen wrote: I ran the attached program and got the following output: [1, 2, 3] [3, 6, 9] I don't understand why the

Re: A question on modification of a list via a function invocation

2017-08-14 Thread Ned Batchelder
On 8/14/17 3:21 PM, Mok-Kong Shen wrote: > Am 14.08.2017 um 20:50 schrieb Ned Batchelder: >> On 8/14/17 2:21 PM, Mok-Kong Shen wrote: >>> I ran the attached program and got the following output: >>> >>> [1, 2, 3] >>> [3, 6, 9] >>> >>> I don't understand why the modification doesn't work in the

[issue1612262] Class Browser doesn't show internal classes

2017-08-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE: add docstrings to browser.py stage: test needed -> patch review ___ Python tracker

why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread Ho Yeung Lee
https://gist.github.com/hoyeunglee/df7e6cb9b76c576b26fd2bb2b26bfe2f sample image https://drive.google.com/file/d/0Bxs_ao6uuBDUY09qM1JMWS1Ob0k/view?usp=sharing would like to rectangle bound the eye ,mouth corner etc which detected by harris corner but using kmeans can not rectangle the red area

Re: A question on modification of a list via a function invocation

2017-08-14 Thread Mok-Kong Shen
Am 14.08.2017 um 20:50 schrieb Ned Batchelder: On 8/14/17 2:21 PM, Mok-Kong Shen wrote: I ran the attached program and got the following output: [1, 2, 3] [3, 6, 9] I don't understand why the modification doesn't work in the case of test() but does work in the case of test1(). Thanks for

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-08-14 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Bernát, I would recommend asking this on Sphinx tracker (I also assigned this to docs@python since this seems to be a purely documentation issue). https://github.com/sphinx-doc/sphinx -- assignee: -> docs@python components: +Documentation nosy:

[issue31191] Fix grammar in threading.Barrier docs

2017-08-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___

[issue31191] Fix grammar in threading.Barrier docs

2017-08-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> backport needed versions: +Python 3.6 ___ Python tracker ___

[issue31191] Fix grammar in threading.Barrier docs

2017-08-14 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: New changeset 143be366295038b36fc32c44b8e1b48a375eab56 by Mariatta (Saurabh Chaturvedi) in branch 'master': bpo-31191: Improve grammar in threading.Barrier docs (GH-3080) https://github.com/python/cpython/commit/143be366295038b36fc32c44b8e1b48a375eab56

[issue31148] Can we get an MSI installer for something past 3.4.4?

2017-08-14 Thread Steve Dower
Steve Dower added the comment: The general requirements of an installer are: * runs without any preinstalled prerequisites * does not install anything permanent until the user says so (Visual Studio breaks this rule :( ) * installs all required prerequisites * install on all supported operating

Re: A question on modification of a list via a function invocation

2017-08-14 Thread Ned Batchelder
On 8/14/17 2:21 PM, Mok-Kong Shen wrote: > I ran the attached program and got the following output: > > [1, 2, 3] > [3, 6, 9] > > I don't understand why the modification doesn't work in the case of > test() but does work in the case of test1(). > > Thanks for your help in advance. > > M. K. Shen >

Re: Running flask server under virtualenv

2017-08-14 Thread Frustrated learner
Here is the complete stack trace Traceback (most recent call last): File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File

[issue30824] Add mimetype for extension .json

2017-08-14 Thread R. David Murray
Changes by R. David Murray : -- stage: needs patch -> backport needed ___ Python tracker ___

[issue30824] Add mimetype for extension .json

2017-08-14 Thread R. David Murray
R. David Murray added the comment: New changeset 8204b903683f9e0f037ccfaa87622716019914d7 by R. David Murray (Nate Tangsurat) in branch 'master': bpo-30824: Add mimetype for .json (#3048) https://github.com/python/cpython/commit/8204b903683f9e0f037ccfaa87622716019914d7 --

A question on modification of a list via a function invocation

2017-08-14 Thread Mok-Kong Shen
I ran the attached program and got the following output: [1, 2, 3] [3, 6, 9] I don't understand why the modification doesn't work in the case of test() but does work in the case of test1(). Thanks for your help in advance. M. K. Shen

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Needed a NEWS entry. -- nosy: +serhiy.storchaka versions: -Python 3.5 ___ Python tracker ___

[issue31193] re.IGNORECASE strips combining character from lower case of LATIN CAPITAL LETTER I WITH DOT ABOVE

2017-08-14 Thread David MacIver
David MacIver added the comment: Sure, but 'i' is a single code point. The bug is that the regex matches 'i', not that it doesn't match the actual two codepoint lower case of the string. -- ___ Python tracker

[issue31193] re.IGNORECASE strips combining character from lower case of LATIN CAPITAL LETTER I WITH DOT ABOVE

2017-08-14 Thread Matthew Barnett
Matthew Barnett added the comment: The re module works with codepoints, it doesn't understand canonical equivalence. For example, it doesn't recognise that "\N{LATIN CAPITAL LETTER E}\N{COMBINING ACUTE ACCENT}" is equivalent to "\N{LATIN CAPITAL LETTER E WITH ACUTE}". This is true for Python

[issue31195] Make any() and all() work with async generators

2017-08-14 Thread Brett Cannon
Brett Cannon added the comment: I figured there was something. :( Closing this as "rejected". -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

Re: Running flask server under virtualenv

2017-08-14 Thread Frustrated learner
My bad. I was playing around with it. It should be: from swagger_server.models.binary import Binary -- https://mail.python.org/mailman/listinfo/python-list

Re: Proposed new syntax

2017-08-14 Thread Terry Reedy
On 8/14/2017 5:59 AM, Ben Finney wrote: At what point will you accept the feedback: That the comprehension syntax *does not* necessarily connote a procedural loop, but instead can quite reasonably be interpreted as its designer intended, a single conceptual operation. In a world where

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-14 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think this is worth it. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-14 Thread Daniel Watkins
Daniel Watkins added the comment: Having ironed out my confusion over typing the method, I agree that making the types more obvious is not a compelling argument for this change. That said, I think the current API has been confusing to me in the past, and I think the proposed change is still a

Re: Proposed new syntax

2017-08-14 Thread Rustom Mody
http://www.cosc.canterbury.ac.nz/greg.ewing/python/listcomp/ Greg's 1999 announcement. If you see the "semantics are equivalent" Steven wins. If you focus on "like other languages" then it's... well not quite equivalent! We can take our pick! For myself, as I earlier said, if python disagrees

Re: Proposed new syntax

2017-08-14 Thread Chris Angelico
On Tue, Aug 15, 2017 at 1:54 AM, Ian Kelly wrote: > On Mon, Aug 14, 2017 at 9:40 AM, Chris Angelico wrote: >> On Tue, Aug 15, 2017 at 1:33 AM, Ian Kelly wrote: >>> On Sun, Aug 13, 2017 at 8:36 AM, Steve D'Aprano Sure. In

Re: Proposed new syntax

2017-08-14 Thread Ian Kelly
On Mon, Aug 14, 2017 at 9:40 AM, Chris Angelico wrote: > On Tue, Aug 15, 2017 at 1:33 AM, Ian Kelly wrote: >> On Sun, Aug 13, 2017 at 8:36 AM, Steve D'Aprano >>> Sure. In Haskell, comprehensions are *implicit* loops, rather than explicit >>> like >>> in

Re: Redirecting input of IDLE window

2017-08-14 Thread Terry Reedy
On 8/14/2017 6:19 AM, Joel Goldstick wrote: do you know about the utility called pydoc? Type it at a command line to learn more. This only works if a wrapper has been installed in a directory on the system path. 'python -m pydoc' should always work. It displays information like help

Re: Proposed new syntax

2017-08-14 Thread Chris Angelico
On Tue, Aug 15, 2017 at 1:33 AM, Ian Kelly wrote: > On Sun, Aug 13, 2017 at 8:36 AM, Steve D'Aprano >> Sure. In Haskell, comprehensions are *implicit* loops, rather than explicit >> like >> in Python. > > No, they aren't. Haskell list comprehensions use lazy evaluation. >

Re: Redirecting input of IDLE window

2017-08-14 Thread Terry Reedy
A better subject line would have been Redirecting output interactive help(ob). On 8/14/2017 4:47 AM, Friedrich Rentsch wrote: I work interactively in an IDLE window most of the time and find "help (...)" very useful to summarize things. The display comes up directly (doesn't return a

Re: Proposed new syntax

2017-08-14 Thread Ian Kelly
On Sun, Aug 13, 2017 at 8:36 AM, Steve D'Aprano wrote: > On Sat, 12 Aug 2017 01:02 am, Ian Kelly wrote: > >> On Thu, Aug 10, 2017 at 11:45 PM, Steve D'Aprano >> wrote: > >>> Comprehension syntax makes the sequential loop explicit: the loop

[issue31200] address sanitizer build fails

2017-08-14 Thread Julien Palard
Julien Palard added the comment: Segfault occur in Include/object.h line 1054: #define Py_TRASHCAN_SAFE_BEGIN(op) \ do { \ PyThreadState *_tstate = PyThreadState_GET(); \ if (_tstate->trash_delete_nesting < PyTrash_UNWIND_LEVEL) { \

[issue31201] module test that failed doesn't exist

2017-08-14 Thread R. David Murray
R. David Murray added the comment: Yep, I figured that. That's why I suggested the clarification to the README, if someone wants to generate a PR for it. -- ___ Python tracker

Re: Running flask server under virtualenv

2017-08-14 Thread Steve D'Aprano
On Tue, 15 Aug 2017 01:08 am, Frustrated Learner wrote: > I am getting the following error when running flask server. I have a model > called binary. I am guessing a path issue. In the model, the code is: > > from __future__ import absolute_import > from swagger_server.models.binary import

[issue31201] module test that failed doesn't exist

2017-08-14 Thread Paulo Matos
Paulo Matos added the comment: Argh, apologies David. I hadn't noticed the mistake. I simply copy/pasted and was expecting the command line to rerun all the tests that had previously failed. I was assuming the suite had some kind of state that recorded the tests that previously failed and ran

Re: Proposed new syntax

2017-08-14 Thread Steve D'Aprano
On Mon, 14 Aug 2017 07:59 pm, Ben Finney wrote: > Steven D'Aprano writes: > >> On Sun, 13 Aug 2017 21:06:08 -0700, Rustom Mody wrote: >> >> > Here's a bunch of different ways in which a mapping comprehension >> > could be implemented: >> >> Not in Python

[issue31199] configure checks fail confusingly under --with-address-sanitizer if libasan is missing

2017-08-14 Thread R. David Murray
Changes by R. David Murray : -- title: !HAVE_CLOCK_GETTIME causes problems with _PyTime_FromTimespec -> configure checks fail confusingly under --with-address-sanitizer if libasan is missing ___ Python tracker

Running flask server under virtualenv

2017-08-14 Thread Frustrated Learner
Hello, I am using Python 3.62 on a mac. I am working under a virtualenv. I generated server code via http://editor.swagger.io (Swagger UI) Steps to reproduce python3 -m venv flaskglobal source flaskglobal/bin/activate cp binary to flaskglobal and unzip contents cd python-flask-server pip

[issue31201] module test that failed doesn't exist

2017-08-14 Thread R. David Murray
R. David Murray added the comment: Replace "test_that_failed" with the name of the test that failed. The README could be improved by saying: If any tests fail, you can re-run the failing test(s) in verbose mode. For example if, 'test_os' and 'test_gdb' failed, you can run:: make test

[issue31203] socket.IP_PKTINFO is missing from python

2017-08-14 Thread Laurent GUERBY
Laurent GUERBY added the comment: Probable fix in Modules/socketmodule.c after /* IPv4 [gs]etsockopt options */ add: #ifdef IP_PKTINFO PyModule_AddIntMacro(m, IP_PKTINFO); #endif -- ___ Python tracker

Re: Redirecting input of IDLE window

2017-08-14 Thread Peter Otten
Friedrich Rentsch wrote: > Hi, > > I work interactively in an IDLE window most of the time and find > "help (...)" very useful to summarize things. The display comes up > directly (doesn't return a text, which I could edit, assign or store). I > suspect that there are ways to redirect the

[issue31203] socket.IP_PKTINFO is missing from python

2017-08-14 Thread Laurent GUERBY
New submission from Laurent GUERBY: The constant socket.IP_PKTINFO is missing. Definition on Linux: http://elixir.free-electrons.com/linux/v4.12.7/source/include/uapi/linux/in.h#L96 Exemple code that would benefit from the definition:

Re: Proposed new syntax

2017-08-14 Thread Steve D'Aprano
On Mon, 14 Aug 2017 09:03 pm, Rustom Mody wrote: > For myself, if the python docs contradict the last 100 years or prior art/math > history, the latter takes precedence When theory disagrees with the facts, you ignore the facts? > All I want to say is the gratuitous incidental resemblance of

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-08-14 Thread Bernát Gábor
Bernát Gábor added the comment: how can we find it out? -- ___ Python tracker ___ ___ Python-bugs-list

Re: wrote a commodore-64 emulator using just Python

2017-08-14 Thread Irmen de Jong
On 08/13/2017 03:50 PM, Irmen de Jong wrote: > Now, it's not a "true" emulator: obviously it doesn't simulate the C64 on a > hardware > level. It does however implement enough to load and run simple basic programs > that can > show interesting PETSCII pictures by manipulating the colors and

[issue31200] address sanitizer build fails

2017-08-14 Thread Julien Palard
Julien Palard added the comment: Some (most?) of them looks to be unicode strings, and according to the very end of the main function: #ifdef __INSURE__ /* Insure++ is a memory analysis tool that aids in discovering * memory leaks and other memory problems. On Python exit, the *

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +3129 ___ Python tracker ___ ___

[issue31202] Windows pathlib.Path.glob(pattern) fixed part of the pattern changed to lowercase whereas it should be unchanged.

2017-08-14 Thread aicirbs
New submission from aicirbs: Windows pathlib.Path.glob(pattern) fixed part of the pattern to lowercase whereas it should be unchanged. Note that this issue is different from http://bugs.python.org/issue26655 : "pathlib glob case sensitivity issue on Windows" where it was asked to get the

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-14 Thread Larry Hastings
Larry Hastings added the comment: New changeset d4b93e21c2664d6a78e0656e7a7be0807be1c352 by larryhastings (Коренберг Марк) in branch 'master': bpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() (#3000) (#3000)

  1   2   >