[issue31571] Redundand information on Doc/reference/lexical_analysis.rst

2017-09-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 4a2d00cb4525fcb3209f04531472ba6a359ed418 by Mariatta (Guilherme Caminha) in branch 'master': bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691)

[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2017-09-25 Thread Matthew Woodcraft
Matthew Woodcraft added the comment: I've investigated a bit more. First, I've tried with Python 3.7.0a1 . As you'd expect, PEP 537 means this behaviour now also occurs when no locale environment variables at all are set. Second, I've looked through locale.py a bit. I believe what it calls

[issue18257] Two copies of python-config

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: Downgrading the priority, it's not a deferred blocker for sure. I think we could probably just close it? -- nosy: +lukasz.langa priority: deferred blocker -> ___ Python tracker

[issue31571] Redundand information on Doc/reference/lexical_analysis.rst

2017-09-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 26b940f762f0b306ff894601003f51a8d036e285 by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691) (GH-3754)

Printing a Chunk Of Words

2017-09-25 Thread Cai Gengyang
""" Boolean Operators True and True is True True and False is False False and True is False False and False is False True or True is True True or False is True False or True is True False or False is False Not True is False Not False is True """ If I simply

[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2017-09-25 Thread Matthew Woodcraft
Matthew Woodcraft added the comment: (For PEP 537 please read PEP 538, sorry) -- ___ Python tracker ___ ___

[issue29624] Python 3.5.3 x86 web installer cannot install launcher

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: This is marked as "critical". Looks like it's fixed. Can we close it? -- nosy: +lukasz.langa ___ Python tracker ___

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: This is marked as Critical so either we should change the priority or fix it soon :) -- nosy: +lukasz.langa ___ Python tracker

Re: Calling methods without objects?

2017-09-25 Thread Chris Angelico
On Tue, Sep 26, 2017 at 8:49 AM, Stefan Ram wrote: > |>>> from random import randint > | > |>>> randint > |> > | > |>>> randint.__self__ > | > | > |>>> randint( 2, 3 ) > |2 > > It seems I am calling the method »randint« of the object at > »0x389798«, but I do not have

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-09-25 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: -> yselivanov ___ Python tracker ___ ___

Re: TypeError with map with no len()

2017-09-25 Thread Thomas Jollans
On 25/09/17 18:44, john polo wrote: > Python List, > > I am trying to make practice data for plotting purposes. I am using > Python 3.6. The instructions I have are > > import matplotlib.pyplot as plt > import math > import numpy as np > t = np.arange(0, 2.5, 0.1) > y1 = map(math.sin, math.pi*t)

Re: Printing a Chunk Of Words

2017-09-25 Thread Chris Angelico
On Tue, Sep 26, 2017 at 10:15 AM, Cai Gengyang wrote: > """ > Boolean Operators > > True and True is True > True and False is False > False and True is False > False and False is False > > True or True is True > True or False is True > False or

Re: Calling methods without objects?

2017-09-25 Thread Thomas Jollans
On 26/09/17 01:04, Thomas Jollans wrote: > > In [1]: class C: > >...: def m(self): > >...: return True I'll have to give my MUA a stern talking to about the importance of whitespace. Anyway, you know what I mean. > >...: -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] beginning to code

2017-09-25 Thread Antoon Pardon
On 25-09-17 21:44, Ned Batchelder wrote: > On 9/25/17 5:32 AM, Antoon Pardon wrote: >> Can you explain, what you mean by "Pass-By-Reference" as far a I understand, >> pass by reference means that the parameter of the function becomes an alias >> of the argument, so that if the entity is mutated

[issue14799] Tkinter ttk tests hang on linux

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: Unsetting priority. -- nosy: +lukasz.langa priority: critical -> ___ Python tracker ___

Re: Printing a Chunk Of Words

2017-09-25 Thread Rick Johnson
On Monday, September 25, 2017 at 7:15:41 PM UTC-5, Cai Gengyang wrote: > """ > Boolean Operators > > True and True is True > True and False is False > False and True is False > False and False is False > > True or True is True > True or False is True > False or

Re: Grumpy-pants spoil-sport [was Re: [Tutor] beginning to code]

2017-09-25 Thread Antoon Pardon
On 25-09-17 18:29, Steve D'Aprano wrote: > > Regardless of whether I'm using Python, Swift, Java, C, Pascal or Scheme, if I > write something like: > > x = Parrot(name="Polly") > > (using Python syntax for simplicity) and somebody tries to tell me that the > value of x is anything but a Parrot

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3740 ___ Python tracker ___

[issue31415] Add -X option to show import time

2017-09-25 Thread INADA Naoki
INADA Naoki added the comment: how can I make it more machine readable? On 2017年9月25日(月) 19:39 Christian Heimes wrote: > > Christian Heimes added the comment: > > +1 for an option to profile import time. > > I have a minor complain: The output format is not

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: There is a possible leak of the value emitted by an underlying iterator in enumerate.__next__. Proposed PR fixes it. -- assignee: rhettinger components: Interpreter Core messages: 302978 nosy: rhettinger, serhiy.storchaka priority: normal

[issue27163] IDLE entry for What's New in Python 3.6

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: Unsetting priority since it's not Critical and RMs look at open Critical bugs when releasing 3.6.3 and so on. -- nosy: +lukasz.langa priority: critical -> ___ Python tracker

[issue31571] Redundand information on Doc/reference/lexical_analysis.rst

2017-09-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: The proposed change seems fine. Merged and backported. Thanks everyone! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue14799] Tkinter ttk tests hang on linux

2017-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: A year or so ago, I asked people on python-list who could to run the gui tests on their linux boxes and report. About 6 did and with one possible exception, and not that reported here, everyone reported success. So, unless someone can report otherwise, I

[issue31580] Defer compiling regular expressions

2017-09-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- keywords: +patch pull_requests: +3742 stage: -> patch review ___ Python tracker ___

[issue31582] Add _pth breadcrumb to sys.path documentation

2017-09-25 Thread Traveler Hauptman
New submission from Traveler Hauptman: Python on windows (winpython) was not adding PYTHONPATH to sys.path as documented and I could not understand why. It took a lot of time, web searches, and finally a tour through the code to find out about _pth; which is well documented but difficult to

[issue31583] 2to3 call for file in current directory yields error

2017-09-25 Thread Denis Osipov
Changes by Denis Osipov : -- keywords: +patch pull_requests: +3744 stage: -> patch review ___ Python tracker ___

[issue31580] Defer compiling regular expressions

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: lru_cache() is not used for reasons. The patch makes using cached patterns slower by adding an overhead of 4 additional checks. It makes resolving attributes of a deferred patterns slower. All this slows down a straight call to re.search(pattern, s).

[issue31585] Refactor the enumerate.__next__ implementation

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Having separate code paths was an intentional decision. I prefer to keep it that way. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Printing a Chunk Of Words

2017-09-25 Thread Steve D'Aprano
On Tue, 26 Sep 2017 10:15 am, Cai Gengyang wrote: > """ [snip text] > """ > > If I simply want to print a chunk of words and a paragraph like the above, > what command should I use ? Print to the terminal? Use print(). Print to an actual printer? There's no built-in command in Python to do

[issue31580] Defer compiling regular expressions

2017-09-25 Thread R. David Murray
R. David Murray added the comment: I agree with Raymond. It would be strange to have the API that is obviously designed to pre-compile the regex not pre-compile the regex. If the concern is that a non-precompiled regex might get bumped out of the cache but you want a way to only compile a

[issue31581] Reduce the number of imports for functools

2017-09-25 Thread INADA Naoki
New submission from INADA Naoki: Makes `import functools` about 1.5 ms faster. * heapq is used only when Counter.most_common(n). * types and waakref is used only for singledispatch. master: import time: - _functools 76 us (self 76 us) import time: - _operator 110 us (self 110 us)

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Bill
Chris Angelico wrote: On Tue, Sep 26, 2017 at 5:35 AM, Marko Rauhamaa wrote: Chris Angelico : On Tue, Sep 26, 2017 at 12:26 AM, Marko Rauhamaa wrote: Sorry, that was my bad in the terminology. But where do you get that all Python

Running a GUI program haults the calling program (linux)

2017-09-25 Thread Kryptxy via Python-list
I want to run a GUI program (transmission-gtk) from python. This is what I do: import subprocess subprocess.Popen(['transmission-gtk', link], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Where `link` is some magnetic link. This command opens transmission-gtk, but it haults the calling

[issue18257] Two copies of python-config

2017-09-25 Thread R. David Murray
R. David Murray added the comment: Since it hasn't been an issue for a few releases, I say we close it. If there is some problem remaining, it probably deserves its own tracker issue anyway. -- nosy: +r.david.murray resolution: -> fixed stage: needs patch -> resolved status: open ->

[issue31581] Reduce the number of imports for functools

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go ahead. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31585] Refactor the enumerate.__next__ implementation

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3745 stage: -> patch review ___ Python tracker ___

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3747 ___ Python tracker ___

[issue31581] Reduce the number of imports for functools

2017-09-25 Thread INADA Naoki
Changes by INADA Naoki : -- keywords: +patch pull_requests: +3743 stage: -> patch review ___ Python tracker ___

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Bill
Tim Golden wrote: On 25/09/2017 20:40, Marko Rauhamaa wrote: Rhodri James : On 25/09/17 15:26, Marko Rauhamaa wrote: That's not what I said. I said all expressions *evaluate to* pointers. This may well be true in particular implementations, but it is an implementation

Re: Grumpy-pants spoil-sport [was Re: [Tutor] beginning to code]

2017-09-25 Thread Ned Batchelder
On 9/25/17 10:20 PM, Steve D'Aprano wrote: On Tue, 26 Sep 2017 02:54 am, Ned Batchelder wrote: [...] We've been asked nicely by the list mod to stop :) --Ned. -- https://mail.python.org/mailman/listinfo/python-list

[issue31580] Defer compiling regular expressions

2017-09-25 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: It's a very common pattern to see the following at module scope: cre_a = re.compile('some pattern') cre_b = re.compile('other pattern') and so on. This can cost you at start up time because all those regular expressions are compiled at import time, even

[issue31580] Defer compiling regular expressions

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM, the whole point is to compile in advance. When I worked during high frequency trading, that was essential to news trading where you *really* didn't want to pay the compilation cost at the time the regex was used. This proposal takes away the user's

Re: Running a GUI program haults the calling program (linux)

2017-09-25 Thread Michael Torrie
On 09/25/2017 06:38 PM, Kryptxy via Python-list wrote: > Is there any way that the GUI program is opened, and immediately the > control returns to calling program, instead of keeping the terminal > busy? Yes. This is a classic situation where you want to first fork() the process, then exec() the

[issue31583] 2to3 call for file in current directory yields error

2017-09-25 Thread Denis Osipov
New submission from Denis Osipov: 2to3 doesn't work if called for file in current directory with --add-suffix option. $ /d/repos/cpython/python.bat /d/repos/cpython/Tools/scripts/2to3 -n -W --add-suffix=3 test2to3.py Running Debug|x64 interpreter... WARNING: --write-unchanged-files/-W

[issue31584] Documentation Language mixed up

2017-09-25 Thread asl
New submission from asl: Some of the documentation language are mixed up. eg: Japanese on the English page https://docs.python.org/2.7/faq/design.html French on the Japanese https://docs.python.org/ja/2.7/faq/design.html It seem to affect multiple pages: https://docs.python.org/2.7/bugs.html

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0e950dd22b075b4809c84afda8aede02b76ac0fa by Serhiy Storchaka in branch 'master': bpo-31579: Fixed a possible leak in enumerate() with large indices. (#3753) https://github.com/python/cpython/commit/0e950dd22b075b4809c84afda8aede02b76ac0fa

[issue31585] Refactor the enumerate.__next__ implementation

2017-09-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently the large and complex part of enum_next() and enum_next_long() in Objects/enumobject.c is duplicated. This increases the code size and makes harder maintaining the code. The proposed patch refactors the implementation and removes the code

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3746 ___ Python tracker ___

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Antoon Pardon
Op 25-09-17 om 14:16 schreef Marko Rauhamaa: > Antoon Pardon : > >> Op 25-09-17 om 13:32 schreef Marko Rauhamaa: >>> In Python, assignment "mutates the target" as well. It's only that in >>> Python, the target is always a pointer. >> Fine if you want to word it like that, the

[issue31576] problem in math

2017-09-25 Thread STINNER Victor
STINNER Victor added the comment: It seems like you are confused between radians and degrees. math.sin() expects radians. https://docs.python.org/dev/library/math.html#math.sin Sorry but the Python bug tracker is not the right to ask questions. I close your bug report. -- nosy:

[issue31576] problem in math

2017-09-25 Thread ANEESH JOSE
ANEESH JOSE added the comment: Thankyou for the information . -- ___ Python tracker ___ ___ Python-bugs-list

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Marko Rauhamaa
Antoon Pardon : > Op 25-09-17 om 14:16 schreef Marko Rauhamaa: >> Python only operates with pointers. You can operate with pointers in >> Pascal as well. > > You are talking about implementation details. No, I'm not. I'm talking about pointers in the abstract sense, both in

Re: [Tutor] beginning to code

2017-09-25 Thread Antoon Pardon
Op 25-09-17 om 14:24 schreef Steve D'Aprano: > On Mon, 25 Sep 2017 08:05 pm, Antoon Pardon wrote: > >> Pass by reference doesn't imply being able to >> write a swap function. > Really. Do you have a counter-example? Python, smalltalk, scheme. > > >> A swap function as possible in pascal requires

Looking for an algorithm - calculate ingredients for a set of recipes

2017-09-25 Thread Paul Moore
I'm trying to work out a good algorithm to code a calculation I need to do. I can see brute force ways of handling the problem, but I keep getting bogged down in details, and the question seems like it's something that should have been solved plenty of times in the past, I just don't know where to

[issue31573] PyStructSequence_New() doesn't validate its input type (crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage

2017-09-25 Thread STINNER Victor
Changes by STINNER Victor : -- title: crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage -> PyStructSequence_New() doesn't validate its input type (crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage

[issue31573] crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage

2017-09-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

Re: Looking for an algorithm - calculate ingredients for a set of recipes

2017-09-25 Thread Paul Moore
On 25 September 2017 at 14:23, Ian Kelly wrote: > You have a DAG, so you can sort it topologically. Then you can process > it in that order so that everything that uses X will be processed > before X so that when you get to X you'll know exactly how much of it > you need

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Sep 25, 2017 at 7:41 PM, Marko Rauhamaa wrote: >> In Python, all expressions evaluate pointers. > > And that's an assertion that isn't backed by anything in the Python > specification. Where do you get that all Python expressions are

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Marko Rauhamaa
Antoon Pardon : > Op 25-09-17 om 15:16 schreef Marko Rauhamaa: >> No, I'm not. I'm talking about pointers in the abstract sense, both in >> case of Python and Pascal. Neither language gives any hint as to the >> physical nature of the pointer. > > Yes you are. Python doesn't

[issue31576] problem in math

2017-09-25 Thread ANEESH JOSE
New submission from ANEESH JOSE: We know that the answer of sin 90 is 1. But In Python's library math,the value of it is around 0.83... My program is as follows: import math a=math.sin(90) print(a) #Output obtained is 0.83. Hope you guys solve this on the next update or nearby I hope it is a

Re: [Tutor] beginning to code

2017-09-25 Thread Antoon Pardon
Op 25-09-17 om 14:53 schreef Ned Batchelder: > On 9/25/17 8:24 AM, Steve D'Aprano wrote: >> On Mon, 25 Sep 2017 08:05 pm, Antoon Pardon wrote: >> >>> Pass by reference doesn't imply being able to >>> write a swap function. >> Really. Do you have a counter-example? >> >> >>> A swap function as

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Antoon Pardon
Op 25-09-17 om 15:16 schreef Marko Rauhamaa: > Antoon Pardon : > >> Op 25-09-17 om 14:16 schreef Marko Rauhamaa: >>> Python only operates with pointers. You can operate with pointers in >>> Pascal as well. >> You are talking about implementation details. > No, I'm not. I'm

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-09-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list

Re: Looking for an algorithm - calculate ingredients for a set of recipes

2017-09-25 Thread Ian Kelly
On Mon, Sep 25, 2017 at 6:49 AM, Paul Moore wrote: > I'm trying to work out a good algorithm to code a calculation I need > to do. I can see brute force ways of handling the problem, but I keep > getting bogged down in details, and the question seems like it's > something

[issue31573] crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage

2017-09-25 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch pull_requests: +3737 stage: -> patch review ___ Python tracker ___

[issue31573] crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage

2017-09-25 Thread STINNER Victor
STINNER Victor added the comment: Attached PR 3750 tries to validate the input type. The problem is that structseq is not exactly a type. It's hard to really validate everything. See the comment test in my PR. -- nosy: +haypo ___ Python tracker

Re: _sitebuiltins?

2017-09-25 Thread Steve D'Aprano
On Mon, 25 Sep 2017 11:39 am, Stefan Ram wrote: > The problem with »__module__« is that it is not always > a permissible prefix for a use of the name. For example, That's not what __module__ is intended for. Just because an object obj was created inside module M doesn't mean it is

Re: _sitebuiltins?

2017-09-25 Thread Steve D'Aprano
On Mon, 25 Sep 2017 12:05 pm, Stefan Ram wrote: > So when after > > import builtins > > the expression > > builtins.dir > > yields a value, then »dir« must be in »builtins«. dir is in builtins *now*, but that doesn't tell you where it came from. Anything can be added, or removed, from

Re: [Tutor] beginning to code

2017-09-25 Thread Ned Batchelder
On 9/25/17 8:24 AM, Steve D'Aprano wrote: On Mon, 25 Sep 2017 08:05 pm, Antoon Pardon wrote: Pass by reference doesn't imply being able to write a swap function. Really. Do you have a counter-example? A swap function as possible in pascal requires two conditions. 1) Pass by reference 2)

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Chris Angelico
On Mon, Sep 25, 2017 at 7:41 PM, Marko Rauhamaa wrote: > Antoon Pardon : > >> the semantics of an assignment depends on the language > > I've only seen one kind of assignment in the general-purpose programming > languages I know, maybe with the exception of

[issue31573] PyStructSequence_New() doesn't validate its input type (crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage)

2017-09-25 Thread STINNER Victor
Changes by STINNER Victor : -- title: PyStructSequence_New() doesn't validate its input type (crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage -> PyStructSequence_New() doesn't validate its input type (crashes in os.wait3() and

[issue18558] Iterable glossary entry needs clarification

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 0bf287b6e0a42877b06cbea5d0fe6474d8061caa by Raymond Hettinger in branch 'master': bpo-18558: Clarify glossary entry for "Iterable" (#3732) https://github.com/python/cpython/commit/0bf287b6e0a42877b06cbea5d0fe6474d8061caa --

[issue18558] Iterable glossary entry needs clarification

2017-09-25 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3728 ___ Python tracker ___

[issue18558] Iterable glossary entry needs clarification

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 01438ed4c22ca150da1cc5c38d83a59b0b6a62a7 by Raymond Hettinger (Miss Islington (bot)) in branch '3.6': [3.6] bpo-18558: Clarify glossary entry for "Iterable" (GH-3732) (#3741)

[issue18558] Iterable glossary entry needs clarification

2017-09-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31549] test_strptime and test_time fail on non-English Windows

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks a duplicate of issue16322. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding ___ Python tracker

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2017-09-25 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3729 ___ Python tracker ___

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 0d4497b9cae7942b7f731a6f99a73985c3fb4630 by Raymond Hettinger in branch 'master': bpo-23702: Update Descriptor-HOWTO to reflect the removal of unbound methods (#3739)

[issue31311] a SystemError and a crash in PyCData_setstate() when __dict__ is bad

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 57c2561c8c5663aef55b00e3f29cba575ff36ccd by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31311: Fix a SystemError and a crash in ctypes._CData.__setstate__(), in case of a bad __dict__. (#3254)

[issue31311] a SystemError and a crash in PyCData_setstate() when __dict__ is bad

2017-09-25 Thread Roundup Robot
Changes by Roundup Robot : -- keywords: +patch pull_requests: +3730 stage: -> patch review ___ Python tracker ___

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 73c915a5cd1cdd8775cf47b77fef7ca8fd42ad96 by Raymond Hettinger (Miss Islington (bot)) in branch '3.6': [3.6] bpo-23702: Update Descriptor-HOWTO to reflect the removal of unbound methods (GH-3739) (#3742)

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2017-09-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- dependencies: -Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation) ___ Python tracker

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2017-09-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've just updated the section on unbound methods. I'll be working on a number of other improvements over the next few weeks and will incorporate the suggested changes where appropriate. -- ___ Python tracker

[issue27385] itertools.groupby has misleading doc string

2017-09-25 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3731 ___ Python tracker ___

[issue27385] itertools.groupby has misleading doc string

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 49392c63a243052c8013bef80d35202bb6d7c404 by Raymond Hettinger in branch 'master': bpo-27385: Clarify docstring for groupby() (#3738) https://github.com/python/cpython/commit/49392c63a243052c8013bef80d35202bb6d7c404 --

[issue31568] Configure thinks it finds python3.5 but doesn't

2017-09-25 Thread STINNER Victor
STINNER Victor added the comment: It seems like the bug was fixed. Nice. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2017-09-25 Thread STINNER Victor
STINNER Victor added the comment: libexpat has been upgraded from 2.2.1 to 2.2.4 in 2.7, 3.4, 3.5, 3.6 and master branches. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset e6d9fcbb8d0c325e57df08ae8781aafedb71eca2 by Victor Stinner in branch 'master': bpo-31170: Write unit test for Expat 2.2.4 UTF-8 bug (#3570) https://github.com/python/cpython/commit/e6d9fcbb8d0c325e57df08ae8781aafedb71eca2 --

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-25 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3732 stage: commit review -> patch review ___ Python tracker ___

[issue30152] Reduce the number of imports for argparse

2017-09-25 Thread INADA Naoki
INADA Naoki added the comment: Oh, the pull request is far larger than I thought! I doubt that avoiding functools and collections is worth enough, because it is very common. For example: * functools is very commonly imported, especially for wraps(). * collections is imported by functools,

[issue31573] struct_rusage

2017-09-25 Thread Oren Milman
Changes by Oren Milman : -- nosy: Oren Milman priority: normal severity: normal status: open title: struct_rusage ___ Python tracker

[issue31574] Add dtrace hook for importlib

2017-09-25 Thread Christian Heimes
New submission from Christian Heimes: #31415 proposed an option to show import timings. The output is primarily designed for humans. I propose to instrument importlib with two dtrace hooks: probe import__find__load__start(const char *) probe import__find__load__done(const char *, int);

[issue31574] Add dtrace hook for importlib

2017-09-25 Thread Christian Heimes
Changes by Christian Heimes : -- keywords: +patch pull_requests: +3736 stage: needs patch -> patch review ___ Python tracker ___

[issue31415] Add -X option to show import time

2017-09-25 Thread Christian Heimes
Christian Heimes added the comment: +1 for an option to profile import time. I have a minor complain: The output format is not machine-friendly, which makes it harder to perform automatic analysis. I created #31574 / PR3749 to add dtrace probes. -- nosy: +christian.heimes

[issue30152] Reduce the number of imports for argparse

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: functools.wraps() is used in more complex programs. The purpose of this PR is speeding up small scripts that just start, parse arguments, do its fast work (so fast as outputting a help or a version) and exit. Even collections is not used in a half of my

Re: [Tutor] beginning to code

2017-09-25 Thread Antoon Pardon
Op 22-09-17 om 15:30 schreef Steve D'Aprano: > On Fri, 22 Sep 2017 10:27 pm, Marko Rauhamaa wrote: > >> r...@zedat.fu-berlin.de (Stefan Ram): >> >>> Marko Rauhamaa writes: swap(slot_ref(locals(), "x"), slot_ref(locals(), "y")) >>> You need to be able to write the call as

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Antoon Pardon
Op 25-09-17 om 11:41 schreef Marko Rauhamaa: > Antoon Pardon : > >> the semantics of an assignment depends on the language > I've only seen one kind of assignment in the general-purpose programming > languages I know, maybe with the exception of Prolog and Rust. I disagree.

[issue31573] crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage

2017-09-25 Thread Oren Milman
New submission from Oren Milman: The following code causes the interpreter to crash: import os import time import resource new_pid = os.fork() if new_pid == 0: time.sleep(0.5) else: resource.struct_rusage = None os.wait3(0) We would get a crash also if we replaced 'os.wait3(0)'

Re: Looking for an algorithm - calculate ingredients for a set of recipes

2017-09-25 Thread Paul Moore
On 25 September 2017 at 15:20, Paul Moore wrote: > On 25 September 2017 at 14:23, Ian Kelly wrote: >> You have a DAG, so you can sort it topologically. Then you can process >> it in that order so that everything that uses X will be processed >> before

  1   2   3   >