[issue33316] Windows: PyThread_release_lock always fails

2018-05-21 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > So, nothing more to do here. In case that was cryptic, it means: the PR can be acted upon, no other changes are needed. -- ___ Python tracker

[issue18307] Relative path in co_filename for zipped modules

2018-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In year 2018 you have to create a pull request on GitHub. See https://devguide.python.org/. -- nosy: +serhiy.storchaka ___ Python tracker

[issue33565] strange tracemalloc results

2018-05-21 Thread INADA Naoki
Change by INADA Naoki : -- nosy: +inada.naoki ___ Python tracker ___ ___

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Joe Pfeiffer
Mikhail V writes: > On Mon, May 21, 2018 at 1:41 PM, Chris Lindsay via Python-list > wrote: > >> If a block of static data is large enough to start to be ugly, a common >> approach is to load the data from some other file, in a language which is >>

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Mikhail V
On Mon, May 21, 2018 at 3:48 PM, bartc wrote: > > This is intended to be used inside actual Python programs? > > In that case code is normally displayed in fixed pitch, as it would normally > be viewed in a code editor, even if part of a document. > > But I have to say it looks

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Ben Finney
Ned Batchelder writes: > You've proposed it and asked for feedback, but you seem to be > completely ignoring the feedback people are giving you. Another problem with the proposal: The motivation to introduce such a large change is not compelling. What is the problem this

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Ned Batchelder
On 5/21/18 9:42 PM, Mikhail V wrote: On Mon, May 21, 2018 at 2:14 PM, Ned Batchelder wrote: On 5/19/18 10:58 PM, Mikhail V wrote: I have made up a printable PDF with the current version of the syntax suggestion.

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
miss-islington added the comment: New changeset 0c1e7d8122808d42f9fdb7019061dc2e78a78efa by Miss Islington (bot) in branch '3.6': bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Mikhail V
On Mon, May 21, 2018 at 1:41 PM, Chris Lindsay via Python-list wrote: > If a block of static data is large enough to start to be ugly, a common > approach is to load the data from some other file, in a language which is > designed around structured data. Maybe it is

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Mikhail V
On Mon, May 21, 2018 at 2:14 PM, Ned Batchelder wrote: > On 5/19/18 10:58 PM, Mikhail V wrote: >> >> I have made up a printable PDF with the current version >> of the syntax suggestion. >> >> https://github.com/Mikhail22/Documents/blob/master/data-blocks-v01.pdf >> >>

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-21 Thread Eric Snow
Eric Snow added the comment: Under Py_LIMITED_API: typedef struct _is PyInterpreterState; Also, the actual removal of the "modules" field was reverted. The field is still there until I get back to fixing https://github.com/python/cpython/pull/3606.

[issue33595] FIx references to lambda "arguments"

2018-05-21 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6681 stage: -> patch review ___ Python tracker ___

[issue33595] FIx references to lambda "arguments"

2018-05-21 Thread Andrés Delfino
New submission from Andrés Delfino : There a couple of references to lambda parameters mentioned as arguments. I'm proposing fixing them. -- assignee: docs@python components: Documentation messages: 317255 nosy: adelfino, docs@python priority: normal severity:

[issue32092] mock.patch with autospec does not consume self / cls argument

2018-05-21 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +michael.foord versions: -Python 3.5, Python 3.6 ___ Python tracker ___

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-21 Thread Jason Fried
Jason Fried added the comment: For loops not supporting this throwing NotImplmentedError from the method to enable reentrancy seems appropriate. "You should convert all your stack to async functions..." That may not be practical for large code bases in transition to

[issue18307] Relative path in co_filename for zipped modules

2018-05-21 Thread Vitaly Murashev
Vitaly Murashev added the comment: Guys, a couple questions ... I want to suggest new patches for python3.7 and python2.7 with regression tests included What is proper way to do it now, in year 2018 ? May I do it on github.com ? Should I submit new issue for that there

[issue33594] add deprecation since 3.5 for a few methods of inspect.

2018-05-21 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +6680 stage: -> patch review ___ Python tracker ___

[issue33594] add deprecation since 3.5 for a few methods of inspect.

2018-05-21 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : inspect's getargspec, as well as Signature's from_function, and from_builtin are deprecated. They all emits DeprecationWarning but: The deprecation warning does not say since which version since are deprecated. For the

[issue33361] readline() + seek() on codecs.EncodedFile breaks next readline()

2018-05-21 Thread Josh Rosenberg
Change by Josh Rosenberg : -- title: readline() + seek() on io.EncodedFile breaks next readline() -> readline() + seek() on codecs.EncodedFile breaks next readline() ___ Python tracker

[issue33590] sched.enter priority has no impact on execution

2018-05-21 Thread R. David Murray
R. David Murray added the comment: I think Ronald is correct. The priority argument for enter would apply if you called enter twice with two different delays, but they happen to end up pointing to the same moment in time from the scheduler's point of view. How would

[issue33593] Support heapq on typed arrays?

2018-05-21 Thread Diego Argueta
New submission from Diego Argueta : It'd be really great if we could have support for using the `heapq` module on typed arrays from `array`. For example: ``` import array import heapq import random a = array.array('I', (random.randrange(10) for _ in range(10)))

Re: Python 3.6 causes error, python 3.5 does not.

2018-05-21 Thread Jim
On 05/20/2018 02:03 PM, Jim wrote: Mint 18 Libreoffice 5.1.6.2 Python 3.6.5 in one virtual environment Python 3.5.2 in another I am writing a script that uses pyautogui to get some data and paste it into a Libreoffice calc file, there by bypassing the complexity of uno. The problem is it

[issue33590] sched.enter priority has no impact on execution

2018-05-21 Thread sahilmn
sahilmn added the comment: The task schedule is executed when `s.run()` is called. There should be a *delay = 5* from the time the scheduling statement is executed. If your claim is true, the priority argument is useless since it has no impact on the execution

RE: "Data blocks" syntax specification draft

2018-05-21 Thread Dan Strohl via Python-list
On 5/19/18 10:58 PM, Mikhail V wrote: >> I have made up a printable PDF with the current version of the syntax >> suggestion. >> >> https://github.com/Mikhail22/Documents/blob/master/data-blocks-v01.pdf >> >> After some of your comments I've made some further re-considerations, >> e.g. element

Re: best way to remove leading zeros from a tuple like string

2018-05-21 Thread brucegoodstein
On Monday, May 21, 2018 at 1:05:52 PM UTC-4, Rodrigo Bistolfi wrote: > >>> repr(tuple(int(i) for i in s[1:-1].split(','))) > '(128, 20, 8, 255, -1203, 1, 0, -123)' > > 2018-05-21 4:26 GMT-03:00 Peter Otten <__pete...@web.de>: > > > bruceg113...@gmail.com wrote: > > > > > Looking over the

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Marko Rauhamaa
Mikhail V : > How do you do that?! You're truly unsurpassed master of polemics. How > you turn everything upside down so easily? If someone's behavior annoys you too much, just put them in your kill file. (And no, you don't have to declare it publically.) Marko --

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Chris Angelico
On Tue, May 22, 2018 at 4:08 AM, Mikhail V wrote: >>> Ok. How is about images? this proposal will require a lot of images >>> - otherwise people who read it are forced to copy-paste snippets >>> into their code editors to understand how it may look in reality. >> >> If

[issue33573] statistics.median does not work with ordinal scale

2018-05-21 Thread W deW
W deW added the comment: Changing the documentation in tis way seems to me an excellent and easy way to solve the issue. -- ___ Python tracker

[issue33533] Provide an async-generator version of as_completed

2018-05-21 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Another option occurred to me: as_completed could return an object that implements both synchronous and asynchronous iteration protocol: class as_completed: def __init__(fs, *, loop=None, timeout=None): self.__fs = fs

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread R. David Murray
R. David Murray added the comment: json keys *are* strings, so the fact that we support other object types as keys and coerce them to strings is an "extra feature" of python, and is actually a somewhat questionable feature. The reproducible use case is solved by the

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Mikhail V
On Mon, May 21, 2018 at 7:05 AM, Chris Angelico wrote: >>> Forcing us to download a PDF and then read it? Well, it's your >>> decision. My decision is that I cannot be bothered going to THAT much >>> effort to figure out what you're saying. >> >> THAT much effort to click two

[issue33361] readline() + seek() on io.EncodedFile breaks next readline()

2018-05-21 Thread Diego Argueta
Diego Argueta added the comment: Update: Tested this on Python 3.5.4, 3.4.8, and 3.7.0b3 on OSX 10.13.4. They also exhibit the bug. Updating the ticket accordingly. -- versions: +Python 3.4, Python 3.5, Python 3.7 ___

[issue33592] Document contextvars C API

2018-05-21 Thread Elvis Pranskevichus
Change by Elvis Pranskevichus : -- keywords: +patch pull_requests: +6679 stage: -> patch review ___ Python tracker ___

[issue33592] Document contextvars C API

2018-05-21 Thread Elvis Pranskevichus
New submission from Elvis Pranskevichus : The C API for PEP 567 is currently missing. -- assignee: docs@python components: Documentation messages: 317244 nosy: Elvis.Pranskevichus, docs@python, yselivanov priority: normal severity: normal status: open title: Document

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread Aaron Hall
Aaron Hall added the comment: >From a design standpoint, I'm fairly certain the sort_keys argument was >created due to Python's dicts being arbitrarily ordered. Coercing to strings before sorting is unsatisfactory because, e.g. numbers sort lexicographically instead of

[issue33531] test_asyncio: test_subprocess test_stdin_broken_pipe() failure on Travis CI

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed failed sendfile tests on Windows (at least I hope so). -- ___ Python tracker ___

Re: Numpy array

2018-05-21 Thread Rob Gaddi
On 05/18/2018 09:50 PM, Sharan Basappa wrote: This is regarding numpy array. I am a bit confused how parts of the array are being accessed in the example below. 1 import scipy as sp 2 data = sp.genfromtxt("web_traffic.tsv", delimiter="\t") 3 print(data[:10]) 4 x = data[:,0] 5 y = data[:,1]

Re: best way to remove leading zeros from a tuple like string

2018-05-21 Thread Rodrigo Bistolfi
>>> repr(tuple(int(i) for i in s[1:-1].split(','))) '(128, 20, 8, 255, -1203, 1, 0, -123)' 2018-05-21 4:26 GMT-03:00 Peter Otten <__pete...@web.de>: > bruceg113...@gmail.com wrote: > > > Looking over the responses, I modified my original code as follows: > > > s = "(128, 020, 008, 255,

[issue5945] PyMapping_Check returns 1 for lists

2018-05-21 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue33591] ctypes does not support fspath protocol

2018-05-21 Thread Robert
Change by Robert : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___

Re: Spam levels.

2018-05-21 Thread Grant Edwards
On 2018-05-21, José María Mateos wrote: > On Mon, May 21, 2018 at 10:00:41AM +0200, m wrote: >> I also almost stopped reading c.l.python, because of enormous spam >> levels. Do I have any option to read it without spam, other than launch >> my own filtering NNTP server and do

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread R. David Murray
R. David Murray added the comment: I'm fairly certain (though not 100%, obviously :) that coercing first and then sorting would be accepted if someone wants to create a PR for this. -- nosy: +r.david.murray versions: +Python 3.8

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread Christian Tanzer
Christian Tanzer added the comment: Aaron Hall wrote at Sun, 20 May 2018 16:49:06 +: > Now that dicts are sortable, does that make the sort_keys argument redundant? > > Should this bug be changed to "won't fix"? https://bugs.python.org/issue25457#msg317216 is as good

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: New changeset 2b4ed5da1d599190c3be0084ee235b0a8f0a75ea by INADA Naoki (Miss Islington (bot)) in branch '3.7': bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)

Re: Spam levels.

2018-05-21 Thread José María Mateos
On Mon, May 21, 2018 at 10:00:41AM +0200, m wrote: > I also almost stopped reading c.l.python, because of enormous spam > levels. Do I have any option to read it without spam, other than launch > my own filtering NNTP server and do whack the mole game for myself? > > Maybe join forces and

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: I grepped quickly and I can't find existing usage of anonymous union/struct. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: Oh,,, while even gcc 4.0 supported it, it is language spec from C11, not C99. -- ___ Python tracker

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm fine with an anonymous struct. Is it standard C these days? -- ___ Python tracker ___

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: Make sense. Then, what about using anonymous struct to make GC code more readable? typedef union _gc_head { struct { union _gc_head *gc_next; union _gc_head *gc_prev; Py_ssize_t gc_refs; -} gc; +};

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
miss-islington added the comment: New changeset 3ccc31386da5f35f83756a265429831d650db731 by Miss Islington (bot) in branch '2.7': bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)

[issue33581] Document "optional components that are commonly included in Python distributions."

2018-05-21 Thread R. David Murray
R. David Murray added the comment: As I understand it, we don't control or know what that list is, it depends on each distribution's policies. -- nosy: +r.david.murray ___ Python tracker

[issue33591] ctypes does not support fspath protocol

2018-05-21 Thread Robert
Change by Robert : -- keywords: +patch pull_requests: +6678 stage: -> patch review ___ Python tracker ___

[issue33586] 2.7.15 missing release notes on download page

2018-05-21 Thread Ned Deily
Change by Ned Deily : -- assignee: docs@python -> nosy: +benjamin.peterson ___ Python tracker ___

Re: "Data blocks" syntax specification draft

2018-05-21 Thread bartc
On 20/05/2018 03:58, Mikhail V wrote: I have made up a printable PDF with the current version of the syntax suggestion. https://github.com/Mikhail22/Documents/blob/master/data-blocks-v01.pdf After some of your comments I've made some further re-considerations, e.g. element separation should be

[issue33542] _ipconfig_getnode incorrectly selects a DUID as a MAC address

2018-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Zvi! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7 ___ Python tracker

Re: "Data blocks" syntax specification draft

2018-05-21 Thread bartc
On 21/05/2018 05:05, Chris Angelico wrote: On Mon, May 21, 2018 at 2:00 PM, Mikhail V wrote: heaps! oh come on, youre making up again. No, I'm not making it up. Just because the PDF works perfectly for you, you assume that it'll work perfectly for everyone. That is

[issue33542] _ipconfig_getnode incorrectly selects a DUID as a MAC address

2018-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e9e2fd75ccbc6e9a5221cf3525e39e9d042d843f by Serhiy Storchaka in branch '3.6': [3.6] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7014)

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Ned Batchelder
On 5/19/18 10:58 PM, Mikhail V wrote: I have made up a printable PDF with the current version of the syntax suggestion. https://github.com/Mikhail22/Documents/blob/master/data-blocks-v01.pdf After some of your comments I've made some further re-considerations, e.g. element separation should be

[issue33591] ctypes does not support fspath protocol

2018-05-21 Thread Robert
New submission from Robert : Passing a non-str path which fulfills the new fspath-protcol (like a Path() object) to CDLL (or WinDLL, PyDLL, ...) a exception is returned. -- components: ctypes messages: 317230 nosy: mrh1997 priority: normal severity: normal status: open

[issue5945] PyMapping_Check returns 1 for lists

2018-05-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- priority: high -> normal versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker

[issue5945] PyMapping_Check returns 1 for lists

2018-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I propose an alternate PR 7029 which also adds other improvements to the documentation of mappings and sequences C API. -- ___ Python tracker

[issue5945] PyMapping_Check returns 1 for lists

2018-05-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6677 ___ Python tracker ___

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Chris Lindsay via Python-list
So this is a syntax for defining large blocks of static data in-line with code. If a block of static data is large enough to start to be ugly, a common approach is to load the data from some other file, in a language which is designed around structured data. YAML comes to mind - it has minimal

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Short of adding a `tp_alignment`, though, I think we should not make things harder for the common cases. This means we should probably keep the "double" member to ensure that extension types that have a "double" field in their object struct

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 7208bfb64b74f31f9704be3f01f26861c9cf092b by Andrew Svetlov in branch '3.6': [3.6] bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7025)

[issue33589] Remove dummy member in GCHead

2018-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: >From the linked changeset message: > unless anyone knows of a platform where ssize_t is 4 bytes? That's most 32-bit platforms, right? Basically, size_t and ssize_t are pointer-sized except on some rare architectures. > A more correct

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +6676 ___ Python tracker ___

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +6675 ___ Python tracker ___

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +6674 ___ Python tracker ___

[issue33583] PyObject_GC_Resize() doesn't relink GCHead

2018-05-21 Thread INADA Naoki
INADA Naoki added the comment: New changeset 1179f4b40f375af5c59cd4b6be9cc313fa0e1a37 by INADA Naoki in branch 'master': bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021) https://github.com/python/cpython/commit/1179f4b40f375af5c59cd4b6be9cc313fa0e1a37

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Raising `InvalidStateError` sounds perfect. Would you make a pull request? -- ___ Python tracker

[issue33544] Asyncio Event.wait() is a hold over from before awaitable, and should be awaitable

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33546] asyncio.Condition should become awaitable in 3.9

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: No, condition variables don't work this way. The proper code looks like: async with cond: while not : await cond.wait() It cannot be collapsed to just `await cond`. -- resolution: -> rejected stage: ->

Re: Poor corporate communication culture - was Re: syntax oddities

2018-05-21 Thread Steven D'Aprano
On Sun, 20 May 2018 20:39:44 -0600, Michael Torrie wrote: > Nine times out of ten, a top posted reply from a manager is a sure sign > he hasn't bothered to read anything of what I actually wrote. Instead he > just answers the question he thought I asked. And the other one time out of ten, he's

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Steven D'Aprano
On Mon, 21 May 2018 01:28:51 +0300, Mikhail V wrote: > Source examples on > Github will force a crappy font and replace tabs. Is that supposed to convince us that using mandatory TABs is a good idea? -- Steve -- https://mail.python.org/mailman/listinfo/python-list

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +6673 ___ Python tracker ___ ___

[issue23749] asyncio missing wrap_socket (starttls)

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is the issue done? -- ___ Python tracker ___

[issue33037] Skip sending/receiving after SSL transport closing

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30618] readlink for pathlib paths

2018-05-21 Thread Dror Levin
Change by Dror Levin : -- nosy: +spatz ___ Python tracker ___ ___ Python-bugs-list

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, no. The feature was requested many times but was constantly rejected. By this, you are adding a BLOCKING call to your async function. At least it leads to log warning about too long callback execution. Moreover, I suspect that

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset b8b800090ff0954117a26ffcb501307823f3d33a by Andrew Svetlov (Miss Islington (bot)) in branch '3.7': bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7022)

Re: "Data blocks" syntax specification draft

2018-05-21 Thread m
W dniu 21.05.2018 o 06:00, Mikhail V pisze: >> As Ian says, reStructuredText is the only supported format [1] for >> PEPs, so you may as well just start using it straight away. GitHub >> automatically renders it if you use a ".rst" extension on your file, >> so the rendered form would be visible

[issue32463] problems with shutil.py and os.get_terminal_size

2018-05-21 Thread Nick McElwaine
Nick McElwaine added the comment: Thankyou for clearing that up! On 18 May 2018 at 13:05, Berker Peksag wrote: > > Berker Peksag added the comment: > > Thanks for the report. I agree with Eryk. os.get_terminal_size() is

[issue33590] sched.enter priority has no impact on execution

2018-05-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think there's a bug here: sched.enter schedules an event some time after the current time. The two calls to sched.enter are not at the same time, hence the priority is not used because the events are scheduled at different

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a84d0b361a26c05c6fadc6640591ec3feee5bfb5 by Andrew Svetlov (Vlad Starostin) in branch 'master': bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450)

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +6672 ___ Python tracker ___

Re: Spam levels.

2018-05-21 Thread m
W dniu 10.02.2018 o 15:57, C W Rose pisze: > No other groups (in the limited set which I read) have the problem, > and I don't understand why the spammers neither spam a range of > groups, nor change their adddresses more frequently. It may be > that destroying comp.lang.python is their actual

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread zachrahan
zachrahan added the comment: Well, "wontfix" would be appropriate in the context of deprecating the sort_keys option (over the course of however many releases) and documenting that the new procedure for getting JSON output in a specific order is to ensure that the input

Re: best way to remove leading zeros from a tuple like string

2018-05-21 Thread Peter Otten
bruceg113...@gmail.com wrote: > Looking over the responses, I modified my original code as follows: > s = "(128, 020, 008, 255, -1203,01,-000, -0123)" ",".join([str(int(i)) for i in s[1:-1].split(",")]) > '128,20,8,255,-1203,1,0,-123' I think this looks better with a generator

Re: Python 3.6 causes error, python 3.5 does not.

2018-05-21 Thread dieter
Jim writes: > ... > The problem is it runs fine if I use python 3.5. If I use python 3.6 > it opens the calc file then pops up a dialog saying > "std::bad_alloc". This looks like a C++ error message -- maybe from "calc". It also looks quite severe (some memory allocation

Re: decorat{or,ion}

2018-05-21 Thread dieter
Mike McClain writes: > ... > Thanks for the response, this is still a foreign language to me and I > need all > the help I can get. I'm reading the docs, doing the tutorial again but > still have > more questions than answers. > If I understand what