[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset e3510d74aacc477c30f42f2b941d69689bbc478e by Victor Stinner in branch 'master': bpo-31160: regrtest now reaps child processes (#3044) https://github.com/python/cpython/commit/e3510d74aacc477c30f42f2b941d69689bbc478e --

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4baca1b0f7325032598cd38e7ceffc79b616d255 by Victor Stinner in branch 'master': bpo-31160: Fix test_builtin for zombie process (#3043) https://github.com/python/cpython/commit/4baca1b0f7325032598cd38e7ceffc79b616d255 --

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 4baca1b0f7325032598cd38e7ceffc79b616d255 by Victor Stinner in > branch 'master': > bpo-31160: Fix test_builtin for zombie process (#3043) This change introduced a regression:

[issue31072] add filter to zipapp

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be better to name the parameter filterfunc for conformity with PyZipFile? I think the new feature needs at least the versionadded directive in the module documentation. And may be an entry in the What's New document. -- nosy:

[issue31162] urllib.request.urlopen error

2017-08-09 Thread R. David Murray
R. David Murray added the comment: What makes you think this is a python bug rather than exactly what it says: a cert verification error? -- nosy: +r.david.murray ___ Python tracker

Re: __new__ and __init__ - why does this work?

2017-08-09 Thread Ian Pilcher
On 08/08/2017 10:19 PM, Ian Kelly wrote: It's initialized by the superclass call to __new__. frozenset is immutable, and __init__ methods of immutable types generally don't do anything (if they could, then they wouldn't be immutable), which is why it doesn't really matter that you didn't call

[issue30824] Add mimetype for extension .json

2017-08-09 Thread Nate Tangsurat
Changes by Nate Tangsurat : -- pull_requests: +3082 ___ Python tracker ___ ___

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Paul Moore added the comment: Good point - I wasn't even aware of the filterfunc argument in PyZipFile. I'll rename the argument. I wasn't initially sure about a what's new entry. I'll add one - and thanks for the reminder about versionadded. --

Re: Are these tutorials the best tutorials for learning Python?

2017-08-09 Thread Chris Warrick
On 9 August 2017 at 17:14, Steve D'Aprano wrote: > On Wed, 9 Aug 2017 07:12 pm, Chris Warrick wrote: > >> So, I started by writing my opinion of those recommendations, and that >> the “community” is very small (<1k Twitter followers, 2.7k Facebook >> likes). But then I

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3079 ___ Python tracker ___ ___

[issue31163] Return destination path in Path.rename and Path.replace

2017-08-09 Thread R. David Murray
R. David Murray added the comment: I agree. The normal python convention is that an immutable object returns the new value when an operation "changes" it, while a mutable object returns None. It seems like replace and rename should follow this convention (and that it would also be

[issue31153] Update docstrings of itertools functions

2017-08-09 Thread nicholas kobald
Changes by nicholas kobald : -- pull_requests: +3081 ___ Python tracker ___ ___

[issue30824] Add mimetype for extension .json

2017-08-09 Thread Sijis Aviles
Changes by Sijis Aviles : -- nosy: +sijis ___ Python tracker ___ ___ Python-bugs-list

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-08-09 Thread Wonsup Yoon
Wonsup Yoon added the comment: I think it can be merged. Is there anything I need to do? -- ___ Python tracker ___

[issue31142] python shell crashed while input quotes in print()

2017-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: terry.reedy -> ___ Python tracker ___ ___

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Although my freshly opened window says PR2822 is open, it was merged with https://github.com/python/cpython/commit/3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162 4 hours ago, and then backported. Louie, thanks for the patch and the persistence. --

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-08-09 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file47070/800.jpg ___ Python tracker ___

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not our code. Please use corresponding bug tracker [1] if you have found a bug in Expat. But I think there is not a bug here. [1] https://github.com/libexpat/libexpat/issues -- nosy: +serhiy.storchaka resolution: -> third party stage: ->

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is about IDLE getting further out of the business of calculating signatures and depending instead on the newest (and tested) inspect function. In 2012, the blogger used getargspec, which was deprecated for 3.x a few years before, in 3.0. I suspect

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-08-09 Thread 高可爱
Changes by 高可爱 : Added file: http://bugs.python.org/file47070/800.jpg ___ Python tracker ___

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Vedran Čačić
Vedran Čačić added the comment: Am I right in assuming this will also fix the bug mentioned in this comment https://emptysqua.re/blog/copying-a-python-functions-signature/#comment-1816090904 ? If yes, I'm glad I didn't have to report it. :-) -- nosy: +veky

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 646f6c3096abfe5bde13f039ebf32bce5baf083a by Terry Jan Reedy in branch '3.6': [3.6] bpo-19903: IDLE: Calltips changed to use inspect.signature (GH-2822) (#3053) https://github.com/python/cpython/commit/646f6c3096abfe5bde13f039ebf32bce5baf083a

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-09 Thread Lin Tian
New submission from Lin Tian: utf8_toUtf8(const ENCODING *UNUSED_P(enc), const char **fromP, const char *fromLim, char **toP, const char *toLim) { char *to; const char *from; const char *fromLimInitial = fromLim; /* Avoid copying partial characters. */

[issue31167] timedelta produced by datetime.__sub__ does not take Daylight Savings Time into account

2017-08-09 Thread R. David Murray
R. David Murray added the comment: It is by design. Read the footnote associated with the subtraction opertion on datetimes: after subtraction date2 + timedelta = date1, which implies that the subtraction ignores daylight savings transitions, since the addition does ("Note that no time zone

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Vedran Čačić
Vedran Čačić added the comment: Hm... now I see that link is very misleading... it opens a blog post, and then only a few seconds later jumps to the comment. So now I'll paste the comment here, to avoid misunderstandings: Python3.6.0 (now in 2017). I start IDLE, and write >>> def deco(f):

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-08-09 Thread Xiang Zhang
Xiang Zhang added the comment: Hi Wonsup, sorry for the delay. I get really busy with my work these days. If no one get involved I'd try to find time reviewing your patch this week. -- ___ Python tracker

[RELEASED] Python 3.4.7 is now available

2017-08-09 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.7. Python 3.4 is now in "security fixes only" mode. This is the final stage of support for Python 3.4. Python 3.4 now only receives security fixes, not bug

[issue31153] Update docstrings of itertools function

2017-08-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Docstrings of some itertools functions look outdated. 1. The docstring of groupby() contains the signature "groupby(iterable[, keyfunc])". But groupby() supports keyword arguments, the name of the second parameter is "key", and its default value is None.

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb on AMD64 Windows8.1 Refleaks 3.x

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the solution can be simpler. PR 3033 uses the global import lock for guarding modification of the _module_locks dictionary. -- components: +Interpreter Core -Tests stage: -> patch review type: -> behavior versions: +Python 3.6

[issue26656] Documentation for re.compile is a bit outdated

2017-08-09 Thread SylvainDe
SylvainDe added the comment: @swapnil agarwal I think you can go for it. -- ___ Python tracker ___ ___

Are these tutorials the best tutorials for learning Python?

2017-08-09 Thread Saurabh Hooda
Hello, https://hackr.io/tutorials/learn-python proclaims that it's a collection of the best tutorials recommended by the programming community. Do you agree? Is there any better tutorial? Thanks in advance, Saurabh Hooda -- https://mail.python.org/mailman/listinfo/python-list

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2017-08-09 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___

[issue31082] reduce takes iterable, not just sequence

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The term "sequence" also is used in the docstring of itertools.starmap() (actually an iterable is accepted). -- ___ Python tracker

[issue31153] Update docstrings of itertools functions

2017-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Update docstrings of itertools function -> Update docstrings of itertools functions ___ Python tracker

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb on AMD64 Windows8.1 Refleaks 3.x

2017-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3068 ___ Python tracker ___ ___

[issue31141] Start should be a keyword argument of the built-in sum

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Adding this feature is so easy as moving '/' in Argument Clinic declaration one line up. I don't think it is worth to allow passing the first argument as a keyword argument. Check what performance effect of this change on simple calls sum(()), sum((), 0).

[issue31154] Path.replace and Path.rename naming, behavior and documentation

2017-08-09 Thread Alberto Gomez-Casado
New submission from Alberto Gomez-Casado: I find the naming of Path.replace quite unfortunate, coming from the os.path and basestring mindset, the expectation would be that it would change some substring by another substring in the Path instance. Instead, it _moves_ the file indicated by the

Re: __new__ and __init__ - why does this work?

2017-08-09 Thread Peter Otten
Ian Pilcher wrote: > I have created a class to provide a "hash consing"[1] set. > >class UniqueSet(frozenset): > >_registry = dict() > >def __new__(cls, *args, **kwargs): >set = frozenset(*args, **kwargs) >try: >return

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_threaded_import: KeyError ignored in _get_module_lock..cb on AMD64 Windows8.1 Refleaks 3.x -> test_threaded_import: KeyError ignored in _get_module_lock..cb ___ Python tracker

[issue31135] [2.7] test_ttk_guionly doesn't destroy all widgets on Python 2.7

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 33460fa7e0bd126bee739a66e1228665dc22e70f by Victor Stinner in branch '3.6': ttk: fix LabeledScale and OptionMenu destroy() method (#3025) (#3030) https://github.com/python/cpython/commit/33460fa7e0bd126bee739a66e1228665dc22e70f --

[issue31150] [EASY] test_thread: Warning -- reap_children() reaped child process

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 88eee44a91c991dbbdf284fa220e2928b5de105c by Victor Stinner (Ammar Askar) in branch 'master': bpo-31150: Wait for child process in test_forkinthread to avoid thread reaped warnings (#3032)

Re: Are these tutorials the best tutorials for learning Python?

2017-08-09 Thread Ben Finney
Saurabh Hooda writes: > https://hackr.io/tutorials/learn-python proclaims that it's a > collection of the best tutorials recommended by the programming > community. Do you agree? I agree that those are recommended by the programming community. Do I agree those are the

[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's too late to change *again* subprocess.getstatusoutput() behaviour. Otherwise, it would mean that a complex test like "if not((3, 4) <= sys.version_info < (3, 7))" would be needed to workaround the bug... Whereas right now, basically we only have to

[Repost] Are these tutorials the best tutorials for learning Python?

2017-08-09 Thread Saurabh Hooda
Hello, I am the co-founder of Hackr.io, a community where developers can share and recommend the tutorials they have found useful. This is the page for Python tutorials: https://hackr.io/tutorials/learn-python I am interested in listening to your feedback on how we can improve Hackr.io Python

[issue31157] math.sqrt function wrong

2017-08-09 Thread Mick Press
New submission from Mick Press: math.sqrt for very large numbers returns wrong value. Attached is screen shot showing my sqrt function result and math.sqrt function result. -- components: Windows files: PyCuda - [C__Users_mick_PyScripts_PyCuda] -

[issue30849] test_stress_delivery_dependent() of test_signal randomly fails on AMD64 Debian root 3.6

2017-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm. Perhaps someone can give me temporary shell access to one of those buildbots? -- nosy: +zach.ware ___ Python tracker

Re: Planning a Python Course for Beginners

2017-08-09 Thread Chris Angelico
On Wed, Aug 9, 2017 at 7:51 PM, Marko Rauhamaa wrote: > Dennis Lee Bieber : > >> Then there is the facet that tuples (being unmutable) can be used as >> keys into a dictionary... > > Mutable objects can be used as keys into a dictionary. Only when

Re: Validating regexp

2017-08-09 Thread Peter Heitzer
Larry Martell wrote: >On Tue, Aug 8, 2017 at 12:51 PM, Chris Angelico wrote: >> On Wed, Aug 9, 2017 at 2:37 AM, Larry Martell >> wrote: >>> Anyone have any code or know of any packages for validating a regexp? >>> >>> I have

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "I think the solution can be simpler. PR 3033 uses the global import lock for guarding modification of the _module_locks dictionary." I tried exactly that, but it wasn't enough. But your PR is correct because it also checks the current value of

[issue31155] Encode set, frozenset, bytearray, and iterators as json arrays

2017-08-09 Thread Javen O'Neal
New submission from Javen O'Neal: Currently json.dump, json.dumps, and json.JSONEncoder do not support writing iterator objects. Users can choose to pass the iterator to a tuple and write that as a json array, but this is wasteful if the iterator is large, requiring a large amount of memory

Re: Planning a Python Course for Beginners

2017-08-09 Thread Marko Rauhamaa
Dennis Lee Bieber : > Tabs are logical entities indicating structure and should always be > used! I wrote an entire database program using only tabs. http://dilbert.com/strip/1992-09-08> Marko -- https://mail.python.org/mailman/listinfo/python-list

[issue31157] math.sqrt function wrong

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: The math module uses the float type which has a limited precision: it's 64-bit IEEE. For better precision, you can use the decimal module which has configurable precision. Example: --- import decimal decimal.getcontext().prec = 5 root =

[issue30849] test_stress_delivery_dependent() of test_signal randomly fails on AMD64 Debian root 3.6

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: Antoine: "Hmm. Perhaps someone can give me temporary shell access to one of those buildbots?" Contact directly the owners: * AMD64 Debian root 3.6: Chris Angelico * x86 Gentoo Non-Debug with X 3.x: Zachary Ware

[issue31150] [EASY] test_thread: Warning -- reap_children() reaped child process

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue31156] Stopiteration terminates while-loop

2017-08-09 Thread Günter Rote
New submission from Günter Rote: It should be mentioned in the documentation that A StopIteration exception raised in the body of a while loop will terminate (and is caught by) the while-loop, thus leading to graceful termination. A good place would be here: 1)

Re: Planning a Python Course for Beginners

2017-08-09 Thread Marko Rauhamaa
Dennis Lee Bieber : > Then there is the facet that tuples (being unmutable) can be used as > keys into a dictionary... Mutable objects can be used as keys into a dictionary. Marko -- https://mail.python.org/mailman/listinfo/python-list

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread STINNER Victor
New submission from STINNER Victor: https://travis-ci.org/python/cpython/jobs/262606831 0:13:26 load avg: 134.81 [256/403] test_pty test test_pty failed -- Traceback (most recent call last): File "/home/travis/build/python/cpython/Lib/test/test_pty.py", line 109, in test_basic

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: I don't know why test_pty fails. https://github.com/python/cpython/pull/3037 makes sure that all data is written into the master fd using a new write_all() helper function which loops until all data is written: handle os.write() partial write. --

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3070 ___ Python tracker ___ ___

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9b0d1d647e3d2ec9d299e5c9f49b02fbbb810a5a by Serhiy Storchaka in branch 'master': bpo-31070: Fix a race condition in importlib _get_module_lock(). (#3033) https://github.com/python/cpython/commit/9b0d1d647e3d2ec9d299e5c9f49b02fbbb810a5a

[issue31159] Doc: Language switch can't switch on specific cases

2017-08-09 Thread Julien Palard
New submission from Julien Palard: Since ja has been added to the language switch, a bug appeared and in some case the switch won't ... switch. Due to a regex bug in switchers.js, a needed trailing slash is sometimes not matched. It has not been detected previously as it can happen only when

[issue31159] Doc: Language switch can't switch on specific cases

2017-08-09 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3072 ___ Python tracker ___

[issue31149] Add Japanese to the language switcher

2017-08-09 Thread Julien Palard
Changes by Julien Palard : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread Martin Panter
Martin Panter added the comment: Checking for short writes is worthwhile, but in Issue 29070 it looks like Cornelius identified the main problem was short _reads_. See the parts of his patch to do with “_os_read_exactly” and related functions. -- nosy: +Cornelius Diekmann,

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f3b891718e104b6e7018b58bbcd86421a2837fb8 by Serhiy Storchaka in branch '3.6': [3.6] bpo-31070: Fix a race condition in importlib _get_module_lock(). (GH-3033). (#3038)

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for review Victor and Nick. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Planning a Python Course for Beginners

2017-08-09 Thread Marko Rauhamaa
Chris Angelico : > On Wed, Aug 9, 2017 at 7:51 PM, Marko Rauhamaa wrote: >> Mutable objects can be used as keys into a dictionary. > > Only when the objects' mutability does not affect their values. Up to equality. The objects can carry all kinds of mutable

Re: Planning a Python Course for Beginners

2017-08-09 Thread alister via Python-list
On Tue, 08 Aug 2017 14:19:53 +, Stefan Ram wrote: > I am planning a Python course. > > I started by writing the course akin to courses I gave in other > languages, that means, the course starts roughly with these topics: > > - number and string literals - types of number and string

Re: Validating regexp

2017-08-09 Thread Jon Ribbens
On 2017-08-09, Cameron Simpson wrote: > On 08Aug2017 17:31, Jon Ribbens wrote: >>On 2017-08-08, Chris Angelico wrote: >>> On Wed, Aug 9, 2017 at 2:57 AM, Larry Martell >>> wrote: Yeah, it does not

Re: Planning a Python Course for Beginners

2017-08-09 Thread Chris Angelico
On Wed, Aug 9, 2017 at 8:38 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Wed, Aug 9, 2017 at 7:51 PM, Marko Rauhamaa wrote: >>> Mutable objects can be used as keys into a dictionary. >> >> Only when the objects' mutability does not

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3071 ___ Python tracker ___ ___

Re: Validating regexp

2017-08-09 Thread TheSeeker
On Tuesday, August 8, 2017 at 11:38:34 AM UTC-5, larry@gmail.com wrote: > Anyone have any code or know of any packages for validating a regexp? > > I have an app that allows users to enter regexps for db searching. > When a user enters an invalid one (e.g. 'A|B|' is one I just saw) it >

[issue31045] Add a language switch to the Python documentation

2017-08-09 Thread Julien Palard
Changes by Julien Palard : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[RELEASED] Python 3.5.4 is now available

2017-08-09 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm pleased to announce the availability of Python 3.5.4. Python 3.5.4 is the final 3.5 release in "bug fix" mode. The Python 3.5 branch has now transitioned into "security fixes mode"; all future improvements

[RELEASED] Python 3.4.7 is now available

2017-08-09 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.7. Python 3.4 is now in "security fixes only" mode. This is the final stage of support for Python 3.4. Python 3.4 now only receives security fixes, not bug

[ANN] Daily Windows builds of Python 3.x

2017-08-09 Thread Steve Dower
Hi all As part of a deal with Zach Ware at PyCon, I agreed that if he removed the Subversion dependency from our builds, I would set up daily Windows builds of Python. Zach did an excellent job, and so I am now following through on my half of the deal :) For a while I've been uploading the

Re: Planning a Python Course for Beginners

2017-08-09 Thread Marko Rauhamaa
Chris Angelico : > On Wed, Aug 9, 2017 at 8:38 PM, Marko Rauhamaa wrote: >> Chris Angelico : >> >>> On Wed, Aug 9, 2017 at 7:51 PM, Marko Rauhamaa wrote: Mutable objects can be used as keys into a dictionary. >>> >>>

Re: Are these tutorials the best tutorials for learning Python?

2017-08-09 Thread Chris Warrick
On 9 August 2017 at 10:29, Saurabh Hooda wrote: > Hello, > [advertisement] proclaims that it's a collection of the best tutorials > recommended by the programming community. Do you agree? Is there any better > tutorial? > > Thanks in advance, > Saurabh Hooda > -- >

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

2017-08-09 Thread Paul Moore
Paul Moore added the comment: To be clear, Steve *is* our main Windows developer, and specifically the person who developed the Windows installers we now use. They work perfectly for many people, including myself, so there certainly isn't a general issue with them. I myself routinely install

RE: Are these tutorials the best tutorials for learning Python?

2017-08-09 Thread learning
Hi Saurabh, those are good for ones to become proficient in writing Python Code. Regards, Sriram Srinivasan www.sriramsrinivasan.in -Original Message- From: Python-list [mailto:python-list-bounces+learning=sriramsrinivasan...@python.org] On Behalf Of Saurabh Hooda Sent: 09 August 2017

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: I've observed the exact same issue on Fedora at random times. -- nosy: +cstratak ___ Python tracker ___

Re: Validating regexp

2017-08-09 Thread Larry Martell
On Wed, Aug 9, 2017 at 6:13 AM, Peter Heitzer wrote: > Larry Martell wrote: >>On Tue, Aug 8, 2017 at 12:51 PM, Chris Angelico wrote: >>> On Wed, Aug 9, 2017 at 2:37 AM, Larry Martell >>>

Re: Planning a Python Course for Beginners

2017-08-09 Thread Larry Martell
On Wed, Aug 9, 2017 at 8:00 AM, Marko Rauhamaa wrote: > Yeah, when there's a will, there's a way. My Dad used to say "Where there's a will, there's relatives." -- https://mail.python.org/mailman/listinfo/python-list

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
New submission from STINNER Victor: Attached PR enhances the support.reap_children() function: * reap_children() now sets environment_altered to True to detect bugs using python3 -m test --fail-env-changed * Replace bare "except:" with "except OSError:" in reap_children() * Write an unit test

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: The GCC job of Travis CI failed with ENV_CHANGED: Test wait() behavior when waitpid returns WIFSTOPPED; issue29335. ... Warning -- reap_children() reaped child process 19839 ok I tested and... WOW! When run in a loop, this test leaks 100 MB per second. It

[issue31142] python shell crashed while input quotes in print()

2017-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is still something you left out. Entering either print(") or print(') at either a shell prompt or in a file and running the file should result in "SyntaxError: EOL while scanning string literal", as Steven said. Ditto for eval("print(')") or

Re: __new__ and __init__ - why does this work?

2017-08-09 Thread Ian Pilcher
On 08/09/2017 07:54 AM, Steve D'Aprano wrote: On Wed, 9 Aug 2017 10:08 am, Ian Pilcher wrote: I have created a class to provide a "hash consing"[1] set. Your footnote for [1] appears to be missing. What's a hash consing set? It appears to be nothing more than frozen sets which you put in a

Re: __new__ and __init__ - why does this work?

2017-08-09 Thread Ethan Furman
On 08/09/2017 12:59 PM, Ian Pilcher wrote: I do want to prevent frozenset.__init__ from being called *again* when an existing instance is returned, so I've decided to take this approach: def __new__(cls, *args, **kwargs): self = super(UniqueSet, cls).__new__(cls, *args, **kwargs)

[issue31155] Encode set, frozenset, bytearray, and iterators as json arrays

2017-08-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> bob.ippolito nosy: +bob.ippolito ___ Python tracker ___

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Changes by Paul Moore : -- pull_requests: +3084 ___ Python tracker ___ ___

[issue31153] Update docstrings of itertools functions

2017-08-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Paul Moore added the comment: I've created a new PR 3049 adding the fixes you suggested (and tightening up the tests, as I noticed an untested aspect of the change while editing). -- ___ Python tracker

[issue31152] Tutorial wording implies an understanding of a concept prior to it being introduced

2017-08-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Emily, thanks for the second review. Lorem, thanks for the suggestion, but we're going to decline. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2017-08-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'll get to it. acassaigne's patches are already a good attempt at that, i'll probably find wording tweaks to make as I apply them. -- assignee: docs@python -> gregory.p.smith ___ Python tracker

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset da5e9301877346942fa4279612750d6a09e05153 by Victor Stinner in branch 'master': bpo-31160: Fix test_random for zombie process (#3045) https://github.com/python/cpython/commit/da5e9301877346942fa4279612750d6a09e05153 --

Re: Planning a Python Course for Beginners

2017-08-09 Thread Marko Rauhamaa
Chris Angelico : > On Wed, Aug 9, 2017 at 11:46 PM, Marko Rauhamaa wrote: >> Really, the most obvious use case for hashed objects is their membership >> in a set. For example: >> >> invitees = set(self.bff) >> invitees |= self.classmates() >>

Re: Planning a Python Course for Beginners

2017-08-09 Thread Steve D'Aprano
On Wed, 9 Aug 2017 11:46 pm, Marko Rauhamaa wrote: > Typically, an object's equality is simply the "is" relation. "Typically"? I don't think so. Are you sure you've programmed in Python before? *wink* py> [1, 2] is [1, 2] False The most commonly used objects don't define equality as identity,

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3080 ___ Python tracker ___ ___

[issue31164] test_functools: test_recursive_pickle() stack overflow on x86 Gentoo Refleaks 3.x

2017-08-09 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Gentoo%20Refleaks%203.x/builds/51/steps/test/logs/stdio 0:17:12 load avg: 2.97 [ 52/406/1] test_functools crashed (Exit code -6) -- running: test_nntplib (406 sec) beginning 6 repetitions 123456 Fatal Python

  1   2   >