[issue34572] C unpickling bypasses import thread safety

2019-02-07 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Implement C's Switch in Python 3 [OT languages]

2019-02-07 Thread Christian Gollwitzer
Am 05.02.19 um 02:20 schrieb DL Neil: So, even with the French making their dates into sentences, not a single one uses ordinals! - did the computer people in all these languages/cultures decide that the more numeric approach was better/easier/... (ie simpler/less-complex) :) For the two

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-07 Thread Ethan Furman
Ethan Furman added the comment: Yes, the first solution will be fine. Maxwell, can you create a github pull request with that? -- keywords: +easy stage: -> needs patch type: crash -> behavior ___ Python tracker

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-07 Thread daniel hahler
New submission from daniel hahler : `debug print(` will make pdb crash with a SyntaxError: % python -c '__import__("pdb").set_trace()' --Return-- > (1)()->None (Pdb) print( *** SyntaxError: unexpected EOF while parsing (Pdb) debug print( ENTERING RECURSIVE

[issue28411] Eliminate PyInterpreterState.modules.

2019-02-07 Thread Eric Snow
Eric Snow added the comment: FTR, gh-9047 (for issue #34572) mentions this issue. -- ___ Python tracker ___ ___ Python-bugs-list

[issue35813] shared memory construct to avoid need for serialization between processes

2019-02-07 Thread Neil Schemenauer
Neil Schemenauer added the comment: I didn't finish reviewing completely yet but here are some comments. I think the random filename generation can be pulled out of _posixshmem. Make it require that a filename is passed into it. That moves a fair bit of complexity out of C and into Python.

[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Does it still work? With both the C and Python pickler? Can you post an example? -- ___ Python tracker ___

[issue35934] Add socket.bind_socket() utility function

2019-02-07 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : The main point of this patch is to automatize all the necessary tasks which are usually involved when creating a server socket, amongst which: * determining the right family based on address, similarly to socket.create_connection() * whether to use

[issue35934] Add socket.bind_socket() utility function

2019-02-07 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch, patch pull_requests: +11769, 11770 ___ Python tracker ___ ___ Python-bugs-list

[issue35929] Spam

2019-02-07 Thread Zachary Ware
Change by Zachary Ware : -- components: -2to3 (2.x to 3.x conversion tool), Build, Demos and Tools, Distutils, Documentation, Extension Modules, FreeBSD, Library (Lib), SSL, email, macOS nosy: -Mariatta, barry, docs@python, dstufft, eric.araujo, koobs, ned.deily, r.david.murray,

[issue17561] Add socket.create_server_sock() convenience function

2019-02-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: After careful thinking I realize I'm not completely sure about how to expose the IPv4/6 functionality yet. I prefer to defer it for later and start landing a bind_socket() utility function which serves as a base for this functionality. See: issue17561.

[issue35932] Interpreter gets stuck while applying a compiled regex pattern

2019-02-07 Thread SilentGhost
SilentGhost added the comment: In your variant 2 you're not using re.IGNORECASE flag, if you do you're likely to encounter the same behaviour as for the compiled pattern. At least I do on python3.6 -- components: +Regular Expressions nosy: +SilentGhost, ezio.melotti, mrabarnett

timezones

2019-02-07 Thread Jaap van Wingerde
I made a small script to practise with timezones: #!/usr/bin/env python3 # -*- coding: utf_8 -*- from datetime import datetime, timedelta from pytz import timezone import pytz amsterdam_datetime = datetime(2018, 12, 17, 11, 31, 26, tzinfo=timezone('Europe/Amsterdam')) print(amsterdam_datetime)

[issue35932] Interpreter gets stuck while applying a compiled regex pattern

2019-02-07 Thread Sateesh Kumar
New submission from Sateesh Kumar : The python interpreter gets stuck while applying a compiled regex pattern against a given string. The regex matching doesn't get stuck if uncompiled regex pattern is used, or if the flag "re.IGNORECASE" is not used for regex match. Below code snippets

[issue35615] "RuntimeError: Dictionary changed size during iteration" when copying a WeakValueDictionary

2019-02-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +11773 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

RE: timezones

2019-02-07 Thread David Raymond
I'd say if the documentation mentions it, but doesn't say why, then we're not gonna be able to do much better for you as far as "why" goes. http://pytz.sourceforge.net/ "Unfortunately using the tzinfo argument of the standard datetime constructors "does not work" with pytz for many timezones."

[issue35932] Interpreter gets stuck while applying a compiled regex pattern

2019-02-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35813] shared memory construct to avoid need for serialization between processes

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: (also, OSError will automatically convert to more specific subclasses for some errnos, see PEP 3151: >>> raise OSError(errno.ENOENT, "foobar") >>>

[issue34572] C unpickling bypasses import thread safety

2019-02-07 Thread Eric Snow
Eric Snow added the comment: Perhaps PyImport_GetModule() should aquire-release the module's lock before the lookup? This would effectively be a call to _lock_unlock_module() in importlib._bootstrap. The alternative is to encourage using PyImport_Import() instead, like the PR has done.

[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-07 Thread Pierre Glaser
New submission from Pierre Glaser : Hello all, This 16-year old commit (*) allows an object's state to be updated using its slots instead of its __dict__ at unpickling time. To use this functionality, the state keyword-argument of Pickler.save_reduce (which maps to the third item of the tuple

Re: The sum of ten numbers inserted from the user

2019-02-07 Thread Ian Clark
This is my whack at it, I can't wait to hear about it being the wrong big o notation! numbers=[] while len(numbers) < 10: try: chip = int(input('please enter an integer: ')) except ValueError: print('that is not a number, try again') else: numbers.append(chip)

[issue28411] Eliminate PyInterpreterState.modules.

2019-02-07 Thread Eric Snow
Change by Eric Snow : -- assignee: -> eric.snow type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

RE: The sum of ten numbers inserted from the user

2019-02-07 Thread Schachner, Joseph
I just realized that input has changed in Python 3 and I was using Python 2.7.13 with from __future__ import print_function and some others, but not that. In Python 3 the int( ) or float( ) cast is necessary because input( ) does what raw_input( ) did in Python 2; raw_input( ) name is therefore

[issue35615] "RuntimeError: Dictionary changed size during iteration" when copying a WeakValueDictionary

2019-02-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +11773, 11774, 11775 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-07 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch, patch pull_requests: +11767, 11768 stage: -> patch review ___ Python tracker ___

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-07 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +11767 stage: -> patch review ___ Python tracker ___ ___

[issue35934] Add socket.bind_socket() utility function

2019-02-07 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch, patch, patch pull_requests: +11769, 11770, 11771 ___ Python tracker ___ ___

[issue35934] Add socket.bind_socket() utility function

2019-02-07 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch pull_requests: +11769 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34572] C unpickling bypasses import thread safety

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Interesting I could not reproduce here, even by throwing Pandas into the mix and spawning 1024 workers... -- nosy: +pitrou ___ Python tracker

[issue28411] Eliminate PyInterpreterState.modules.

2019-02-07 Thread Eric Snow
Change by Eric Snow : -- pull_requests: -11713 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28411] Eliminate PyInterpreterState.modules.

2019-02-07 Thread Eric Snow
Change by Eric Snow : -- pull_requests: -11714 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

RE: The sum of ten numbers inserted from the user

2019-02-07 Thread Schachner, Joseph
Well of course that doesn't work. For starters, x is an int or a float value. After the loop It holds the 10th value. It might hold 432.7 ... It is not a list. The default start for range is 0. The stop value, as you already know, is not part of the range. So I will use range(10). In

[issue35929] rtat.net

2019-02-07 Thread Mariatta Wijaya
New submission from Mariatta Wijaya : Please provide more info about the bug you're reporting. As it is, this looks like spam, so I'm closing it. -- assignee: docs@python -> nosy: +Mariatta resolution: -> not a bug stage: -> resolved status: open -> closed type: resource usage ->

[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset df8d2cde63c865446468351f8f648e1c7bd45109 by Antoine Pitrou (Pierre Glaser) in branch 'master': bpo-35911: add cell constructor (GH-11771) https://github.com/python/cpython/commit/df8d2cde63c865446468351f8f648e1c7bd45109 --

[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-07 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35615] "RuntimeError: Dictionary changed size during iteration" when copying a WeakValueDictionary

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 96d37dbcd23e65a7a57819aeced9034296ef747e by Antoine Pitrou (Fish) in branch 'master': bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384) https://github.com/python/cpython/commit/96d37dbcd23e65a7a57819aeced9034296ef747e

[issue35615] "RuntimeError: Dictionary changed size during iteration" when copying a WeakValueDictionary

2019-02-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +11773, 11774 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35615] "RuntimeError: Dictionary changed size during iteration" when copying a WeakValueDictionary

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 48769a28ad6ef4183508951fa6a378531ace26a4 by Antoine Pitrou (Miss Islington (bot)) in branch '3.7': bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384) (GH-11785)

[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-07 Thread Pierre Glaser
Change by Pierre Glaser : Removed file: https://bugs.python.org/file48111/test_slots.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-07 Thread Pierre Glaser
Change by Pierre Glaser : Added file: https://bugs.python.org/file48112/test_slots.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35935] threading.Event().wait() not interruptable with Ctrl-C on Windows

2019-02-07 Thread Chris Billington
Chris Billington added the comment: If I add: import signal signal.signal(signal.SIGINT, signal.SIG_DFL) before the wait() call, then the call is interruptible on both Python versions without needing to add a timeout. -- ___ Python tracker

[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-07 Thread Pierre Glaser
Pierre Glaser added the comment: It turns out that both pickle and _pickle implement this feature, but the behavior is inconsistent. - As a reminder, instances of slotted classes do not have a dict attribute (1) - On the other side, when pickling slotted class instances, __getstate__ can

Re: The sum of ten numbers inserted from the user

2019-02-07 Thread Grant Edwards
On 2019-02-07, Ben Bacarisse wrote: > Ian Clark writes: > >> This is my whack at it, I can't wait to hear about it being the wrong big o >> notation! >> >> numbers=[] >> >> while len(numbers) < 10: >> try: >> chip = int(input('please enter an integer: ')) >> except ValueError: >>

[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can have both a dict and slots by subclassing: >>> class A: ...: __slots__ = ('x',) ...:

Re: Python program to phone?

2019-02-07 Thread Jack Dangler
On 2/4/19 3:20 PM, Steve wrote: I have written my first python program (600 lines!) to help control my blood sugar and it has been so successful that my A1c dropped form 9.3 to an impressive 6.4. It will be much more useful if I had it on my phone. (MotoG, Android) The .py file reads/writes

[issue4356] Add "key" argument to "bisect" module functions

2019-02-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12317] inspect.getabsfile() is not documented

2019-02-07 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @corona10, Antoine's message is from 2013 and inspect.getabsfile() is still not documented, I think it's safe to say he's not working on it. You can work on the issue and open a new PR on GitHub when you think it is ready for review :) -- nosy:

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2019-02-07 Thread Steve Dower
Steve Dower added the comment: Posted a review. I suggest a few changes for the sake of tidying up, but I agree that I'd like to see more tests added. -- ___ Python tracker

[issue35904] Add statistics.fmean(seq)

2019-02-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: >def fmean(seq: Sequence[float]) -> float: >return math.fsum(seq) / len(seq) Is it intentional that this doesn't support iterators? -- ___ Python tracker

[issue35932] Interpreter gets stuck while applying a regex pattern

2019-02-07 Thread Sateesh Kumar
Sateesh Kumar added the comment: @SilentGhost, You are right, when I pass the flag "re.IGNORECASE" for example in Variant-2 the python process do gets stuck. Here is the revised code for Variant-2: * Variant-2 %cat match.py import re pattern =

[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 buster/sid buildbots

2019-02-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: I had emailed Christian around the same time you filed this. """ The problem likely not related to your hardware. I guess it's caused by tightened crypto polices. OpenSSL 1.1.1 has disabled some weak crypto. Some platforms like Debian and RHEL require even

Re: The sum of ten numbers inserted from the user

2019-02-07 Thread Ben Bacarisse
Bart writes: > On 07/02/2019 20:45, Ben Bacarisse wrote: >> Ian Clark writes: >> >>> This is my whack at it, I can't wait to hear about it being the wrong big o >>> notation! >>> >>> numbers=[] >>> >>> while len(numbers) < 10: >>> try: >>> chip = int(input('please enter an

Re: The sum of ten numbers inserted from the user

2019-02-07 Thread Ben Bacarisse
Grant Edwards writes: > On 2019-02-07, Ben Bacarisse wrote: >> Ian Clark writes: >> >>> This is my whack at it, I can't wait to hear about it being the wrong big o >>> notation! >>> >>> numbers=[] >>> >>> while len(numbers) < 10: >>> try: >>> chip = int(input('please enter an

[issue35904] Add statistics.fastmean(seq)

2019-02-07 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Add statistics.fmean(seq) -> Add statistics.fastmean(seq) ___ Python tracker ___ ___

[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-07 Thread Pierre Glaser
Change by Pierre Glaser : Added file: https://bugs.python.org/file48113/test_slots.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-07 Thread Pierre Glaser
Change by Pierre Glaser : Removed file: https://bugs.python.org/file48112/test_slots.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35935] threading.Event().wait() not interruptable with Ctrl-C on Windows

2019-02-07 Thread Chris Billington
New submission from Chris Billington : I'm experiencing that the following short program: import threading event = threading.Event() event.wait() Cannot be interrupted with Ctrl-C on Python 2.7.15 or 3.7.1 on Windows 10 (using the Anaconda Python distribution). However, if the wait is given

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-07 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2019-02-07 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2019-02-07 Thread Eryk Sun
Change by Eryk Sun : -- components: -Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Interestingly, you can also put an instance dict in slots: >>> class A: __slots__ = ['x', '__dict__'] >>> a = A() >>> a.x = 5 >>> a.y = 6 >>> a.__dict__ {'y': 6} >>> a.x 5 -- nosy: +rhettinger

[issue12317] inspect.getabsfile() is not documented

2019-02-07 Thread Dong-hee Na
Dong-hee Na added the comment: @pitrou Hi, Can I work on this issue? -- nosy: +corona10 ___ Python tracker ___ ___

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2019-02-07 Thread Eryk Sun
Eryk Sun added the comment: Ping on PR 11248. It would be nice to get this into 3.8. -- ___ Python tracker ___ ___

Re: The sum of ten numbers inserted from the user

2019-02-07 Thread Ben Bacarisse
Ian Clark writes: > This is my whack at it, I can't wait to hear about it being the wrong big o > notation! > > numbers=[] > > while len(numbers) < 10: > try: > chip = int(input('please enter an integer: ')) > except ValueError: > print('that is not a number, try again')

[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster buildbot

2019-02-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: test_httplib test_nntplib test_ssl fail on ARMv7 buster/sid buildbots -> test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster buildbot ___ Python tracker

[issue35904] Add statistics.fmean(seq)

2019-02-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: >>def fmean(seq: Sequence[float]) -> float: >>return math.fsum(seq) / len(seq) > > Is it intentional that this doesn't support iterators? Since we need both the sum and the length, this seemed like a good starting point. Also, the existing

[issue35936] Give modulefinder some much-needed updates.

2019-02-07 Thread Brandt Bucher
New submission from Brandt Bucher : I've written a patch here that includes a few useful fixes. Namely: - It doesn't crash if it encounters a syntax error. (17396) - It doesn't report certain name collisions as bad. (35376) - It doesn't use mutable default arguments in its initializer. - Most

[issue35904] Add statistics.fmean(seq)

2019-02-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: > On my current 3.8 build, this code given an approx 500x speed-up On my system, I only get a 30x speed-up using your timeit code. Using ints instead of random floats, I only get a 9x speed-up. This just goes to show how sensitive these timing results are

[issue35533] argparse standard error usage for exit / error

2019-02-07 Thread paul j3
paul j3 added the comment: The proposed PR does not address this issue. It just adds comments to the method code, which aren't really needed. The method is short and obvious. We don't need, at this time, to get into questions of whether comments in argparse.py conform to one of the PEPs.

[issue35932] Interpreter gets stuck while applying a regex pattern

2019-02-07 Thread Tim Peters
Tim Peters added the comment: Without re.IGNORECASE, the leading ^[_a-z0-9-]+ can't even match the first character (`val` starts with uppercase Z), so it fails instantly. With re.IGNORECASE, it's not "stuck", but is taking a verry long time to try an enormous number of (ultimately

[issue35936] Give modulefinder some much-needed updates.

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch, patch pull_requests: +11779, 11780 stage: -> patch review ___ Python tracker ___

[issue17396] modulefinder fails if module contains syntax error

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +11781 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35936] Give modulefinder some much-needed updates.

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +11779 stage: -> patch review ___ Python tracker ___ ___

[issue12317] inspect.getabsfile() is not documented

2019-02-07 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +11776 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue12317] inspect.getabsfile() is not documented

2019-02-07 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch, patch, patch pull_requests: +11776, 11777, 11778 stage: needs patch -> patch review ___ Python tracker ___

[issue12317] inspect.getabsfile() is not documented

2019-02-07 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch, patch pull_requests: +11776, 11777 stage: needs patch -> patch review ___ Python tracker ___

RE: Python program to phone?

2019-02-07 Thread Steve
BeeWare looks as if it requires Java, does it? Is it exclusively java? = Footnote: Zamboni locks up after running into large patch of loose teeth. -Original Message- From: Python-list On Behalf Of Mario R. Osorio Sent: Tuesday, February 5, 2019 8:58 AM To:

how to exit from a nested loop in python

2019-02-07 Thread Kaka
for i in range(len(A.hp)): for j in range(len(run_parameters.bits_Mod)): req_slots[j] = math.ceil((A.T[i]) for g in Temp[i]["Available_ranges"][j]: for s in range(g[0], g[-1]): if (s+req_slots[j]-1) <= g[-1]: if

[issue35936] Give modulefinder some much-needed updates.

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- components: Library (Lib) nosy: brandtbucher priority: normal severity: normal status: open title: Give modulefinder some much-needed updates. type: enhancement versions: Python 3.4 ___ Python tracker

[issue17396] modulefinder fails if module contains syntax error

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +11781, 11782, 11783, 11784 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17396] modulefinder fails if module contains syntax error

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +11781, 11782, 11783 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20020] "modernize" the modulefinder module

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +11788 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +11786, 11787 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +11786 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue17396] modulefinder fails if module contains syntax error

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +11781, 11782 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20020] "modernize" the modulefinder module

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch, patch pull_requests: +11788, 11789 stage: needs patch -> patch review ___ Python tracker ___

[issue35376] modulefinder skips nested modules with same name as top-level bad module

2019-02-07 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +11785 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35935] threading.Event().wait() not interruptable with Ctrl-C on Windows

2019-02-07 Thread Eryk Sun
Eryk Sun added the comment: Python's C signal handler sets a flag and returns, and the signal is eventually handled in the main thread. In Windows, this means the Python SIGINT handler won't be called so long as the main thread is blocked. (In Unix the signal is delivered on the main thread

[issue12317] inspect.getabsfile() is not documented

2019-02-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.6 is also on security-fix-only status -- versions: -Python 3.6 ___ Python tracker ___ ___

Re: Python program to phone?

2019-02-07 Thread Michael Torrie
On 02/07/2019 09:00 PM, Steve wrote: > BeeWare looks as if it requires Java, does it? > Is it exclusively java? Kind of. You do your coding in Python, then that's compiled to python byte code, which is then translated to Java byte code. You'll need the Android SDK, even if you're not using Java

[issue35937] Add instancemethod to types.py

2019-02-07 Thread Dan Snider
New submission from Dan Snider : Having the ability to add binding behavior to any callable is an incredibly useful feature if one knows how to take advantage of it, but unfortunately, nothing that currently (publicly) exists comes close to filling the gap `instancemethod`s secrecy leaves.

[issue35917] multiprocessing: provide unit-tests for manager classes and shareable types

2019-02-07 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +11761 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35917] multiprocessing: provide unit-tests for manager classes and shareable types

2019-02-07 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +11761, 11762 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35917] multiprocessing: provide unit-tests for manager classes and shareable types

2019-02-07 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +11761, 11762, 11763 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35917] multiprocessing: provide unit-tests for manager classes and shareable types

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 2848d9d29914948621bce26bf0d9a89f2e19b97b by Antoine Pitrou (Giampaolo Rodola) in branch 'master': bpo-35917: Test multiprocessing manager classes and shareable types (GH-11772)

The sum of ten numbers inserted from the user

2019-02-07 Thread ^Bart
I thought something like it but doesn't work... for n in range(1, 11): x = input("Insert a number: ") for y in range(x): sum = y print ("The sum is: ",y) -- https://mail.python.org/mailman/listinfo/python-list

[issue35917] multiprocessing: provide unit-tests for manager classes and shareable types

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 15526f5be72f547288c16d53526fc74f15ee61ed by Antoine Pitrou in branch '3.7': [3.7] bpo-35917: Test multiprocessing manager classes and shareable types (GH-11772) (GH-11780)

[issue35917] multiprocessing: provide unit-tests for manager classes and shareable types

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks Giampaolo! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35913] asyncore: allow handling of half closed connections

2019-02-07 Thread Isaac Boukris
Isaac Boukris added the comment: if not data: # a closed connection is indicated by signaling # a read condition, and having recv() return 0. self.handle_close() return b'' This above is the current code. Do you agree that it

  1   2   >