[issue35821] Clarify when logging events are propagated when propagate is true

2019-01-28 Thread Vinay Sajip
Vinay Sajip added the comment: > I'm not sure which part of what I wrote you think is inaccurate. It's just that language can be tricky. When you said "pass to the parent logger" this might be misconstrued as some kind of call to a method of the parent logger. Your OP says that you think

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread Tim Peters
Tim Peters added the comment: > As far as I can tell from the discussions here, Steven > and you stated a preference for the shortened names, and > that's it. Plus Mark, plus me - all backed "comb()" specifically. > I find it hard to imagine anyone needing combinations without > also needing

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread Yash Aggarwal
Yash Aggarwal added the comment: Agreed, comb sounds much better than combination. And using the name binomial would make it sound like something that would puke out whole binomial series rather than a single coefficient(maybe leave it for that in case is it decided to be useful in the

[issue35766] Merge typed_ast back into CPython

2019-01-28 Thread Guido van Rossum
Guido van Rossum added the comment: Also the tests now all pass; for now I am happy with the solution I found for the indentation error (see https://github.com/python/cpython/pull/11645#issuecomment-456627216). -- ___ Python tracker

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > But given the precedent set by itertools and math.factorial, > perhaps you are right and we ought to stick to the longer name I disagree. Let's stick with comb() which is what SciPy uses. It is tedious to write out combinations in a formula what

Re: List of methods affected by 'Special method lookup'

2019-01-28 Thread Terry Reedy
On 1/28/2019 11:14 AM, Roberto Martínez wrote: Hi, the documentation about Special method lookup claims: "For custom classes, implicit invocations of special methods are only guaranteed to work correctly if defined on an

Re: time.strftime question on 0 as argument

2019-01-28 Thread eryk sun
On 1/28/19, David Raymond wrote: > > In the docs there is > "0 is a legal argument for any position in the time tuple; if it is normally > illegal the value is forced to a correct one." The POSIX specification for strftime only states that "[i]f any of the specified values are outside the normal

[issue35845] Can't read a F-contiguous memoryview in physical order

2019-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, my fingers slipped. Let me try again: As for tobytes(), if we want to follow NumPy, we can have 'A' mean 'F' if F-contiguous, 'C' otherwise: [...] -- ___ Python tracker

[issue35845] Can't read a F-contiguous memoryview in physical order

2019-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, raw_memory() would avoid a copy, which is useful. As for tobytes(), if we want to follow NumPy, we can have 'F' mean if F-contiguous, 'C' otherwise: >>> a = np.arange(12, dtype='int8').reshape((3,4)) >>>

[issue35845] Can't read a F-contiguous memoryview in physical order

2019-01-28 Thread Stefan Krah
Stefan Krah added the comment: raw_bytes() is also possible of course. I assume it would do nothing and just dump the memory. Or tobytes('F') AND tobytes('raw'). -- ___ Python tracker

[issue35845] Can't read a F-contiguous memoryview in physical order

2019-01-28 Thread Stefan Krah
Stefan Krah added the comment: Yes, it's modeled after NumPy's tobytes(): >>> x = np.array(list(range(6)), dtype="int8").reshape(2,3) >>> x.tobytes() b'\x00\x01\x02\x03\x04\x05' >>> x.T.tobytes() b'\x00\x03\x01\x04\x02\x05' >>> >>> >>> memoryview(x).tobytes() b'\x00\x01\x02\x03\x04\x05' >>>

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: > This involved a few changes, which seem to reflect the consensus here: > - raise ValueError if k>n ; > - rename the function to math.combinations. I see at least four people (myself, Raymond, Mark and Tim) giving comb as first choice, and I didn't see

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Sorry for the late reply, I missed Tim's comment when it first came through. > Please resist pointless feature creep. The original report was about > comb(n, k) for integer n and k with 0 <= k <= n and that's all. > Everyone who commented appeared to

meta protocol protocol

2019-01-28 Thread Avi Gross
I brought up a topic earlier and am now taking a different slant. I am thinking of the wisdom of having a protocol on announcing what protocols you implement. Python has many protocols that are now part of the language and I suspect many more will arise. Python already has a series of

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Though it's difficult to say for certain (distutils' option selection logic is obscure and difficult to follow), it seems that Jeroen's analysis is right. -- nosy: +pitrou ___ Python tracker

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-28 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

Re: How do I get a python program to work on my phone?

2019-01-28 Thread Michael Torrie
On 2019-01-28 8:29 a.m., Steve wrote: > I now want to run it on my MotoG phone. The program accepts keyed in data > and will access two text files to keep data and I would like to have the > program chime my phone to remind me to take the next reading. > > First step is to get it running in my

List of methods affected by 'Special method lookup'

2019-01-28 Thread Roberto Martínez
Hi, the documentation about Special method lookup claims: "For custom classes, implicit invocations of special methods are only guaranteed to work correctly if defined on an object’s type, not in the object’s instance

How do I get a python program to work on my phone?

2019-01-28 Thread Steve
This is my first message to this forum, I am not sure how to submit it so please correct me if I am not doing this properly. === Being new to python as of a year ago December and have extensive programming experience: C++, VBasic, HTML etc... I installed

[issue35845] Can't read a F-contiguous memoryview in physical order

2019-01-28 Thread Antoine Pitrou
New submission from Antoine Pitrou : This request is motivated in detail here: https://github.com/python/peps/pull/883#issuecomment-458290745 In short: in C, when you have a Py_buffer, you can directly read the memory in whatever order you want (including physical order). It is not possible

[issue35844] Calling `Multiprocessing.Queue.close()` too quickly causes intermittent failure (BrokenPipeError)

2019-01-28 Thread Samuel Grayson
New submission from Samuel Grayson : If all processes try to close the Queue immediately after someone has written to it, this causes [an error][1] (see the link for more details). Uncommenting any of the `time.sleep`s makes it work consistently again. import multiprocessing import

[issue35806] typing module adds objects to sys.modules that don't look like modules

2019-01-28 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35808] Let's retire pgen

2019-01-28 Thread Guido van Rossum
Guido van Rossum added the comment: @eamanu, feel free to submit a PR. I won't be available to guide you through the steps; there are other forums e.g. Zulip. -- ___ Python tracker

[issue35843] importlib.util docs for namespace packages innaccurate

2019-01-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

time.strftime question on 0 as argument

2019-01-28 Thread David Raymond
https://docs.python.org/3.7/library/time.html#time.strftime In the docs there is "0 is a legal argument for any position in the time tuple; if it is normally illegal the value is forced to a correct one." and yet if given 0 for the year/first item in the tuple it raises a ValueError. Is that a

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-28 Thread jcrmatos
jcrmatos added the comment: I deleted the fork and started again. This time I didn't PR to my own fork but to cpython master. It is now waiting for review, "skip news" labeling and CLA (I'm still waiting on my request). -- ___ Python tracker

Re: preferences file

2019-01-28 Thread DL Neil
On 29/01/19 7:11 AM, songbird wrote: DL Neil wrote: On 29/01/19 1:29 AM, Karsten Hilbert wrote: On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: What about running a multi-tenant application (for multiple users who are not also system-users) - cf them logging-on to run their own. It

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-28 Thread jcrmatos
Change by jcrmatos : -- keywords: +patch, patch, patch, patch pull_requests: +11532, 11533, 11534, 11535 stage: needs patch -> patch review ___ Python tracker ___

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-28 Thread jcrmatos
Change by jcrmatos : -- keywords: +patch, patch, patch pull_requests: +11532, 11533, 11534 stage: needs patch -> patch review ___ Python tracker ___

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-28 Thread jcrmatos
Change by jcrmatos : -- keywords: +patch pull_requests: +11532 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-28 Thread jcrmatos
Change by jcrmatos : -- keywords: +patch, patch pull_requests: +11532, 11533 stage: needs patch -> patch review ___ Python tracker ___

[issue35843] importlib.util docs for namespace packages innaccurate

2019-01-28 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch, patch pull_requests: +11529, 11530 stage: -> patch review ___ Python tracker ___

[issue35843] importlib.util docs for namespace packages innaccurate

2019-01-28 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch, patch, patch pull_requests: +11529, 11530, 11531 stage: -> patch review ___ Python tracker ___

[issue35843] importlib.util docs for namespace packages innaccurate

2019-01-28 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +11529 stage: -> patch review ___ Python tracker ___ ___

[issue35707] time.sleep() should support objects with __float__

2019-01-28 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > I'm also mildly concerned by how duplicative the code becomes post-patch. I know, that's why I added that comment on GitHub. > perhaps just implement _PyTime_ObjectToTime_t as a wrapper for > _PyTime_ObjectToDenominator Sure, but will that increase the

Re: preferences file

2019-01-28 Thread songbird
DL Neil wrote: > On 29/01/19 1:29 AM, Karsten Hilbert wrote: >> On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: >> What about running a multi-tenant application (for multiple users who are not also system-users) - cf them logging-on to run their own. It is appropriate,

Re: preferences file

2019-01-28 Thread songbird
Karsten Hilbert wrote: > On Mon, Jan 28, 2019 at 10:23:31AM -0500, songbird wrote: >> Karsten Hilbert wrote: >> > On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: >> > >> >> > What about running a multi-tenant application (for multiple users who >> >> > are not also system-users) - cf

[issue35843] importlib.util docs for namespace packages innaccurate

2019-01-28 Thread Anthony Sottile
Anthony Sottile added the comment: Hmmm, it appears this was changed in python3.7 to have `None` for the origin instead of `'namespace'` -- however the `submodule_search_locations` is still not indexable: >>> importlib.util.find_spec('a') ModuleSpec(name='a', loader=None,

[issue35843] importlib.util docs for namespace packages innaccurate

2019-01-28 Thread Anthony Sottile
New submission from Anthony Sottile : For instance: # `a` is an empty directory, a PEP 420 namespace package >>> import importlib.util >>> importlib.util.find_spec('a') ModuleSpec(name='a', loader=None, origin='namespace', submodule_search_locations=_NamespacePath(['/tmp/x/a']))

[issue35842] A potential bug about use of uninitialised variable

2019-01-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: One additional note, just in case you're wondering. slice explicitly does not set Py_TPFLAGS_BASETYPE (in either Py2 or Py3), so you can't make a subclass of slice with NULLable fields by accident (you'll get a TypeError the moment you try to define it).

[issue35808] Let's retire pgen

2019-01-28 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hello! I can help if you consider it appropriate :-) -- nosy: +eamanu ___ Python tracker ___

Re: preferences file

2019-01-28 Thread DL Neil
On 29/01/19 1:29 AM, Karsten Hilbert wrote: On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: What about running a multi-tenant application (for multiple users who are not also system-users) - cf them logging-on to run their own. It is appropriate, possibly even "required" to keep

[issue35842] A potential bug about use of uninitialised variable

2019-01-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: Yes, the 2.7 version of _PyEval_SliceIndex would bypass the NULL pointer dereference, so *if* you could make a slice with a NULL stop value, you could trigger a read from uninitialized stack memory, rather than dying due to a NULL pointer dereference. But

[issue35707] time.sleep() should support objects with __float__

2019-01-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: You've got a reference leak in your __index__ based paths. PyNumber_Index is returning a new reference (either to the existing obj, or a new one, if the existing obj isn't already an int). You never release this reference. Simplest fix is to make intobj top

[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-01-28 Thread Paul Ganssle
Paul Ganssle added the comment: I think this is not a bug. bpo-35535 is probably also intended behavior, but that is less certain. The misunderstanding here is that %W does not give you the ISO week number, from the documentation: %W: Week number of the year (Monday as the first day of

[issue32834] test_gdb fails with Posix locale in 3.7

2019-01-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This passes on my Ubuntu box and fails for the commit before issue34537 with the stack trace as per the original report. karthi@ubuntu-s-1vcpu-1gb-blr1-01:~/cpython$ LC_ALL=C ./python -We -m test -vuall -m test_strings test_gdb == CPython 3.8.0a0

[issue35535] time.strptime() unexpectedly gives the same result for %U and %W for 2018

2019-01-28 Thread Emmanuel Arias
Emmanuel Arias added the comment: I try to reproduce and confirm the xtreak example, and how xtreak and p-ganssle explain, I think that the behavoir is correct according the documentation. I would like to know why there is difference between 2.3.4 (Paul Keating example) and cpython master

[issue35842] A potential bug about use of uninitialised variable

2019-01-28 Thread rongxin
Change by rongxin : -- resolution: not a bug -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35842] A potential bug about use of uninitialised variable

2019-01-28 Thread rongxin
rongxin added the comment: I think this bug is valid at least in Python 2.7, as I mentioned the implementation of _PyEval_SliceIndex is different from the one in Python 3.8. The condition " if (v != NULL && v != Py_None) " will bypass the NULL pointer dereference. Would you please check

[issue35842] A potential bug about use of uninitialised variable

2019-01-28 Thread rongxin
rongxin added the comment: Hi, Josh Rosenberg. As you mentioned PySlice_New (which is ultimately responsible for all slice construction) explicitly replaces any argument of NULL with Py_None, I am not sure whether this is always true r->stop cannot be NULL. I detected this bug using the

Re: preferences file

2019-01-28 Thread Karsten Hilbert
On Mon, Jan 28, 2019 at 10:23:31AM -0500, songbird wrote: > Karsten Hilbert wrote: > > On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: > > > >> > What about running a multi-tenant application (for multiple users who > >> > are not also system-users) - cf them logging-on to run their

Re: preferences file

2019-01-28 Thread songbird
Karsten Hilbert wrote: > On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: > >> > What about running a multi-tenant application (for multiple users who >> > are not also system-users) - cf them logging-on to run their own. It is >> > appropriate, possibly even "required" to keep Fred's

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: Steven: I'm assuming Brett rearranged the title to put emphasis on the new function and to place it earlier in the title. Especially important if you're reading e-mails with the old subject on an e-mail client with limited subject preview lengths, you end

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: As Karthikeyan said, you do need to open a PR against the CPython master. I'm not a Git expert, but this page (section 3.3) discusses the steps to open that PR: https://devguide.python.org/pullrequest/ Those are the steps I follow and it's a good write-up

[issue31456] SimpleCookie fails to parse any cookie if an entry has whitespace in the name

2019-01-28 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: It may be relevant: Ruby accept whitespaces in the name of the morsel: ➜ ~ irb irb(main):002:0> require "cgi" => true irb(main):003:0> CGI::Cookie::parse "ASDF=stuff; ASDF space=more stuff" => {"ASDF"=>##https://bugs.python.org/issue31456>

[issue35842] A potential bug about use of uninitialised variable

2019-01-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: Your analysis would be (almost) correct if a slice object could have a stop value of NULL. It's wrong in that the error would be a NULL deference, not a silent use of an uninitialized value, but it would be a bug. In your scenario where v == NULL, it would

[issue31456] SimpleCookie fails to parse any cookie if an entry has whitespace in the name

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

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-01-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be a bug with read_dict which is used internally when a dictionary is directly assigned. In read_dict optionxform is called with key [0] to check for duplicate and the transformed value is again passed to self.set which also calls

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-28 Thread jcrmatos
jcrmatos added the comment: Hello, I didn't do anything locally. I did the change and preview it on GitHub's web interface. Has I said, I did a PR to my own fork and now I think I have to do a PR to the cpython master. Is that correct? The PR to my own fork was required, or the commit was

[issue35842] A potential bug about use of uninitialised variable

2019-01-28 Thread rongxin
rongxin added the comment: BTW, if this bug is true, there is a similar code snippet in the same file. mmapmodule.c: 845 static int 846 mmap_ass_subscript(mmap_object *self, PyObject *item, PyObject *value) 847 { ... 888else if (PySlice_Check(item)) { 889Py_ssize_t start, stop,

[issue35815] Able to instantiate a subclass with abstract methods from __init_subclass__ of the ABC

2019-01-28 Thread BTaskaya
BTaskaya added the comment: I debugged object.__new__ and i saw the subclass you are trying to initalize doesn't have proper signature of abstract classes (it returns 0 from flags & Py_TPFLAGS_IS_ABSTRACT) However it has __abstractmethods__ entry. Currently i'm trying to find why it is

[issue35842] A potential bug about use of uninitialised variable

2019-01-28 Thread rongxin
New submission from rongxin : In the source file mmapmodule.c, the function mmap_subscript contains a potential bug about the use of uninitialised variable. mmapmodule.c: 764 static PyObject * 765 mmap_subscript(mmap_object *self, PyObject *item) 766 { ... else if (PySlice_Check(item))

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: @jcrmatos - Sounds like you're on the right track. :-) Based on the steps you've outlined, I just had one question. Were you able to rebuild the docs locally in order to see how your changes looked? Here's the direct link to building the docs:

[issue27749] multprocessing errors on Windows: WriteFile() argument 1 must be int, not None; OSError: handle is closed

2019-01-28 Thread Michael Jacob
Michael Jacob added the comment: Does this ticket track the issue in its title or the native crash? If it's the latter, is there a new ticket for the None _handle or shall I create one? -- nosy: +Michael Jacob2 versions: +Python 3.7 ___ Python

[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-01-28 Thread Paul Ganssle
Paul Ganssle added the comment: Possibly related to 35535. -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing

Re: preferences file

2019-01-28 Thread Karsten Hilbert
On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: > > What about running a multi-tenant application (for multiple users who > > are not also system-users) - cf them logging-on to run their own. It is > > appropriate, possibly even "required" to keep Fred's config file, > > reports,

[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-01-28 Thread Tommy Rowland
New submission from Tommy Rowland : This relates to the calculation of the week number from a given datetime, when calling the strftime method. If you call isocalendar() on the datetime.datetime object for the date ‘2018-12-31’, the week number returned is 1, which is correct. This is the

Re: preferences file

2019-01-28 Thread songbird
DL Neil wrote: > On 25/01/19 4:22 PM, Bill Campbell wrote: >> On Thu, Jan 24, 2019, Dave wrote: >>> I'm doing a small application and want to add user preferences. Did some >>> googling to see if there are standard Python ways/tools, but it seems not so >>> much. My specific questions are: >>>

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread kellerfuchs
kellerfuchs added the comment: @Raymond Hettinger > Let's name this comb() instead of binomial() please (as requested by me, > Mark, and Tim). (Replying here to keep the discussion in a single place.) As far as I can tell from the discussions here, Steven and you stated a preference for

[issue10915] Make the PyGILState API compatible with multiple interpreters

2019-01-28 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35808] Let's retire pgen

2019-01-28 Thread BTaskaya
Change by BTaskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread kellerfuchs
kellerfuchs added the comment: So, I rebased Yash's and my branches, and merged them together. The result is still in PR#11018. This involved a few changes, which seem to reflect the consensus here: - raise ValueError if k>n ; - rename the function to math.combinations. --

[issue35822] _queue _queuemodule.c is missing inside the Setup file

2019-01-28 Thread INADA Naoki
INADA Naoki added the comment: _queue is normal extension module, not builtin module. In my environment: >>> import _queue >>> _queue.__file__ '/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_queue.cpython-37m-darwin.so' It seems your

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread kellerfuchs
kellerfuchs added the comment: > Start with an initial patch that implements this simplest possible > implementation, accompanied by clean documentation and thorough testing. > > Once everyone has agreed on the API (i.e. calling it "comb()", how to handle > various input datatypes, and

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-28 Thread kellerfuchs
kellerfuchs added the comment: Hi everyone, Sorry for the lack of reply, I severely underestimated how exhausting the holiday season would be. Catching up with the comments right now. -- ___ Python tracker

Re: Exercize to understand from three numbers which is more high

2019-01-28 Thread Frank Millman
"^Bart" wrote in message news:q2mghh$ah6$1...@gioia.aioe.org... > 1. The last two lines appear to be indented under the 'if number3 < ' > line. I think you want them to be unindented so that they run every > time. I'm sorry but I didn't completely understand what you wrote about the last

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-28 Thread STINNER Victor
STINNER Victor added the comment: I merged the doc change. I understand that the issue can now be closed, thanks to everyone who helped here! -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea446409cd5f1364beafd5e5255da673f285 by Victor Stinner (David H) in branch 'master': bpo-35701: Update doc for UUID weak referencing (GH-11621) https://github.com/python/cpython/commit/ea446409cd5f1364beafd5e5255da673f285 --

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-28 Thread David Heiberg
David Heiberg added the comment: I have submitted a PR for the documentation. Hopefully this is enough to resolve the issue and close. -- ___ Python tracker ___

Re: Exercize to understand from three numbers which is more high

2019-01-28 Thread ^Bart
Excellent! Glad I could help. Thank you! :) I'm studying Python everyday and I try to do the best! :) 1. The last two lines appear to be indented under the 'if number3 < ' line. I think you want them to be unindented so that they run every time. I'm sorry but I didn't completely understand

[issue35840] Control flow inconsistency on closed asyncio stream

2019-01-28 Thread Marc Schlaich
Marc Schlaich added the comment: After having a closer look I fear that there isn't a correct implementation for half closed sockets and returning True from eof_received results in a fundamentally broken state machine. I'm not sure if a selector implementation can handle half closed

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-01-28 Thread INADA Naoki
INADA Naoki added the comment: I think it's easy to solve this particular case. But there may be some other cases. optionxform must be idempotent? If so, this is document issue. -- nosy: +inada.naoki ___ Python tracker

[issue10915] Make the PyGILState API compatible with multiple interpreters

2019-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: A more recent discussion of this on python-dev: https://mail.python.org/pipermail/python-dev/2019-January/156095.html The situation there appears to be a case of "Hand off an OS level thread from the creating interpreter to a different subinterpreter. As far