[issue13617] Reject embedded null characters in wchar* strings

2017-06-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2518

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13617] Reject embedded null characters in wchar* strings

2017-06-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2517

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13617] Reject embedded null characters in wchar* strings

2017-06-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset f7eae0adfcd4c50034281b2c69f461b43b68db84 by Serhiy Storchaka in 
branch 'master':
[security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302)
https://github.com/python/cpython/commit/f7eae0adfcd4c50034281b2c69f461b43b68db84


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

First, I think urllib.parse is not the best place for doing such checks. Even 
if add some checks in urllib.parse, they should be added also at lower level in 
urllib.request or concrete protocol implementations.

Second, PR 2303 actually doesn't reject arguments with '\n'. 
splithost('example.org\n') will return a tuple ('example.org\n', None), etc.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29301] decimal: Use FASTCALL and/or Argument Clinic

2017-06-27 Thread Stefan Krah

Stefan Krah added the comment:

I think I'll wait until #29464 is committed and the API is considered frozen 
(see msg295176?).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2017-06-27 Thread Stefan Krah

Stefan Krah added the comment:

icc on Linux has always worked exactly as gcc, except that -fp-model=strict 
needs to be specified.

I can't test on Windows -- I don't seem to get MSVC licences any more.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Charles, thank you for the focused suggestion and patch.  If you are 
interested, #30422 reviews IDLE goals and current issues.

--
resolution:  -> fixed
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-27 Thread Nick Coghlan

Nick Coghlan added the comment:

I like it because it categorically eliminates the "tracing or not?" global 
state dependence when it comes to manipulation of the return value of locals() 
- manipulating that will either always affect the original execution namespace 
immediately (modules, classes, exec, eval), or always be a completely 
independent snapshot that can never lead to changes in the original name 
bindings (functions, generators, coroutines).

As a result, the locals() documentation updates for issue #17960 wouldn't need 
to mention trace functions at all.

Instead, the only folks that would need to worry about potentially unexpected 
updates to the internal state of functions, generators, and coroutines when 
tracing is in effect would be those accessing frame.f_locals directly. That 
state dependence can then be documented specifically as part of the f_locals 
documentation, and users of that attribute can make their own copy if they want 
to ensure that their subsequent mutations definitely can't affect the original 
namespace, even when tracing is in effect.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30422] Add roadmap.txt section to idlelib

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

If you are suggesting that at least you, Cheryl, and I work together on one 
'area' to make fairly rapid, visible, and satisfying progress, I am all for 
that.  But rather than focus on one of the 5 types of improvements for all 
components, I would rather focus on multiple improvements of one component.  I 
think configuration is a good place to start, as it has been a major source of 
user annoyance.  That is why I and Cheryl have been working on configdialog and 
config_key, with some help from you, for the last week.  I would like to 
continue.

The config module also needs attention.  There are 4 issues, 3 with patches, 
that claim startup problems.  What problems still exist and do the patches 
solve anything?

There are non-configuration issues blocked on the issue of where to put 
configuration options on config dialog.

At least some coordination should be on idle-dev.  Have you subscribed yet?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-06-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +serhiy.storchaka
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10972] zipfile: add "unicode" option to the force the filename encoding to UTF-8

2017-06-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also issue28080.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24039] Idle: some modal dialogs maximize, don't minimize

2017-06-27 Thread Louie Lu

Louie Lu added the comment:

The bugs can be reproduce on MacOS, when click the minimize button, the search 
dialog will be minimize, then pop up to front again. 

The preference dialog have the same behavior on MacOS, but debugger dialog 
won't.

And, Goto dialog will minimize with IDLE shell disappear, then both pop out 
again.

--
nosy: +louielu

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30422] Add roadmap.txt section to idlelib

2017-06-27 Thread Louie Lu

Louie Lu added the comment:

Terry: For question 1, I think we can mark out the value point of the   part in 
your roadmap.txt which we have more priority to fixed first, then get a 
bi-weekly (maybe) sprint to fixed one part.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-27 Thread Nathaniel Smith

Nathaniel Smith added the comment:

> Folks that actually *wanted* the old behaviour would then need to do either 
> "sys._getframe().f_locals" or "inspect.currentframe().f_locals".

So by making locals() and f_locals have different semantics, we'd be adding yet 
another user-visible special-case? That seems unfortunate to me.

> if you want to write access to a function namespace from outside the 
> function, you need to either implement an eval hook (not just a tracing hook)
[...]
> or else a decision to disallow write-backs to frame locals even from tracing 
> functions in 3.7+.

Disallowing writeback from tracing functions would completely break bdb/pdb, so 
unless you're planning to rewrite bdb in C as an eval hook, then I don't think 
this is going to happen :-). Writing back to locals is a useful and important 
feature!

I think I'm missing some rationale here for why you prefer this approach – it 
seems much more complicated in terms of user-visible semantics, and possibly 
implementation-wise as well.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 413c0a92bcc92efe92849fe5e711163da453410b by terryjreedy in branch 
'3.6':
[3.6] bpo-24813: IDLE  tagline is Integrated Development and Learning 
Environment (GH-2451) (#2461)
https://github.com/python/cpython/commit/413c0a92bcc92efe92849fe5e711163da453410b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset af68382f68b08a383e7064777cf817375681e434 by terryjreedy in branch 
'3.6':
[3.6] bpo-30723: IDLE -- Enhance parenmatch; add style, flash, and help 
(GH-2306) (#2460)
https://github.com/python/cpython/commit/af68382f68b08a383e7064777cf817375681e434


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-27 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2516

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2515

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 592eda123329bb5ce2bffcbe3701be6b909f1b2a by terryjreedy (Mark 
Roseman) in branch 'master':
bpo-24813: IDLE  tagline is Integrated Development and Learning Environment 
(#2451)
https://github.com/python/cpython/commit/592eda123329bb5ce2bffcbe3701be6b909f1b2a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset fae2c3538ecbcdd37b6eca891c0815d2093c39e3 by terryjreedy 
(wohlganger) in branch 'master':
bpo-30723: IDLE -- Enhance parenmatch; add style, flash, and help (#2306)
https://github.com/python/cpython/commit/fae2c3538ecbcdd37b6eca891c0815d2093c39e3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30422] Add roadmap.txt section to idlelib

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

A possible revision of the first paragraph of my opening message.

* Summer 2010: Pydev discussed whether to remove IDLE (too old) or to maintain 
and 'modernize' it.  Included in the latter were use of the better-looking ttk 
widgets and of tabbed windows and panels in a single window app.  Core 
developers decided to keep IDLE and encourage more maintenance.  They approved 
in principle using ttk and other major changes in principle but did not 
immediately approve the necessary compatibility breaks.

KunYu: I wrote the roadmap draft to help two new contributors, and any the 
follow.  I only gave as much history as I thought relevant to new contributors. 
In particular, IDLE development is exempt from two normal limitations:  we can 
backport enhancements, and I am currently backporting all patches to 3.6; we 
can and are refactoring modules and changing their API (which requires changing 
calls in other modules).  People should know that these are exceptions so that 
they don't propose the same for other modules.  I should emphasize this more 
than I did before.

Louie: Question 1. I intend Roadmap.txt to be an overview of the main goals, 
each of which will require multiple patches (like 20 or more).  The good ideas 
in TODO.txt that are not already implemented, issues, or items on my 
patch-oriented list should be added to my list.

Question 2. Currently, each window is limited to one hard-coded master frame, 
which has no independent existence as a separate class.  What can one do with 
one window?  In Shell, execute code entered by key or pasting.  In Editor, edit 
and save code.  To edit and run, one must have at least two windows.  In 
contrast, modern browsers have multiple tabs with multiple panes. The original 
browsers, developed about the same time as tcl/tk, did not.  (One can still 
choose to open each page in a separate window, or choose multiple windows each 
with multiple tabs.)  Similarly, at least some modern editors also have 
multiple tabs.  I use Notepad++ for text files and read-only code review 
because of this.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-06-27 Thread Eryk Sun

Eryk Sun added the comment:

I assume by nt.realpath we're talking about ntpath.realpath. In that case 
nothing was done to fix this. It's still an alias for ntpath.abspath, which 
calls GetFullPathNameW.

--
nosy: +eryksun
resolution: fixed -> 
stage: resolved -> needs patch
status: closed -> open
title: nt.realpath() should use GetFinalPathNameByHandle() when available -> 
ntpath.realpath() should use GetFinalPathNameByHandle()
versions: +Python 3.7 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30658] Buildbot: don't sent email notification for custom builders

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

It seems like buildbot.python.org will be upgrade to buildbot 0.9, and so we 
will be able to filter emails by branches ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28232] asyncio: wrap_future() doesn't handle cancellation correctly

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I'm sorry, but I'm not interested anymore to work on asyncio, and I'm unable to 
say if the bug was fixed since I reported it or not :-/ But I saw work on 
cancellation. So maybe it was already fixed. I now just close the issue.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Oh, it seems like this change should help to use FASTCALL in the _decimal 
module: issue #29301. Stefan doesn't want to use Argument Clinic.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29301] decimal: Use FASTCALL and/or Argument Clinic

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

So Stefan: what do you want to do? Use FASTCALL or not? :-)

I would prefer to not wait until the beta if you are ok to use FASTCALL.

Note: it seems like bpo-29464 is going to be approved ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, I lost track of this issue. What is the status?

@Martin: Do you want to convert your latest patch into a PR?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14094] nt.realpath() should use GetFinalPathNameByHandle() when available

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Python 3 now uses GetFinalPathNameByHandle()!

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13617] Reject embedded null characters in wchar* strings

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Wow, it's nice to see activity on this issue that I opened 6 years ago :-)

Sorry Serhiy, I don't have the bandwidth right now to review your change :-( In 
lack of review, I suggest you to just push it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13552] Compilation issues of the curses module on Solaris and OpenIndiana

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

The OpenIndiana buildbot is offline. The Solaris buildbot was removed. We 
cannot develop on these operating systems, so I just close the issue. Sorry.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12939] Add new io.FileIO using the native Windows API

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

While it might be a good idea, we failed to find anyone to implement it in 6 
years, and so I close the issue. Sorry!

--
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12568] Add functions to get the width in columns of a character

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Since we failed to agree on this feature, I close the issue.

--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12513] codec.StreamReaderWriter: issues with interlaced read-write

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, I just lost track of this issue and so will just close it. Moreover, I 
also closed issue12215.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12512] codecs: StreamWriter issues with stateful codecs after a seek or with append mode

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, I just lost track of this issue and so will just close it.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12215] TextIOWrapper: issues with interlaced read-write

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Given that nobody complains the last 9 years (since Python 3.0 was released), 
I'm not sure that it's worth it to fix this corner case.

If you consider that I'm wrong, please reopen the issue ;-)

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10972] zipfile: add "unicode" option to the force the filename encoding to UTF-8

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

> This looks similar to issue10614

Right. Let's focus on that one which has a better design. "unicode" means 
everything and nothing. It's more reliable to specify an encoding.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> ZipFile: add a filename_encoding argument

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8796] Deprecate codecs.open()

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I proposed this idea multiple times, but it's backward incompatible and more 
generally seen as a bad issue, since there are very specific use cases for 
codecs.open(). So I just close the issue.

--
resolution:  -> rejected
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19756] test_nntplib: sporadic failures, network isses? server down?

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Any progress on this issue?

Martin: Can you please convert your latest patch into a Pull Request?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20615] Replace PyDict_GetItem() with PyDict_GetItemWithError()

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, I lost track of this issue, so I just close it.

--
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Or should we just close the issue as "out of date"?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Oh, this issue is now old. Can someone please try the patch? Does it fix the 
issue?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20718] OpenBSD/AIX: tests passing a file descriptor with sendmsg/recvmsg failures

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Old issue with no activity, I just close it.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21080] asyncio.subprocess: connect pipes of two programs

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I don't see how to implement this idea, not if it's doable. Anyway, I'm not 
interested anymore to implement the idea, so I just close this old issue.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21998] asyncio: support fork

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Python 3.7 got as new os.register_at_fork() function. I don't know if it could 
help:
https://docs.python.org/dev/library/os.html#os.register_at_fork

Can we close this issue? Sorry, I lost track of this issue and I see no 
activity since the end of 2015...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Ok, let's close the issue in that case ;-)

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22271] Deprecate PyUnicode_AsUnicode(): emit a DeprecationWarning

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Sorry I lost track of this issue, I just close it.

Note: Serhiy recently worked on wchar_t functions of PyUnicodeObject to detect 
embedded null characters, see for example bpo-30708.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22331] test_io.test_interrupted_write_text() hangs on the buildbot FreeBSD 7.2

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Hum, the resolution is already set to Fixed, and I didn't see this bug last 
months on buildbots, so I consider that yes, it's fixed.

Sorry Martin, I lost track of this issue and so I don't know what to do with 
your patch :-/ I will just close the issue.

--
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23587] asyncio: use the new traceback.TracebackException class

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, I'm not interested anymore to work on asyncio, so I just close this old 
issue which has no activity since March 2015. I'm not even sure that it's 
doable to use traceback.TracebackException in asyncio. Moreover, Python and 
asyncio evolved in the meanwhile and the traceback logger was redesigned.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24598] asyncio: add background task detecting reference cycles

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I lost track of this issue, so I just close it, sorry.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23763] Chain exceptions in C

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I lost track of this issue and my PEP 490 was more and less rejected, so I just 
close this issue.

I was decided that chaining or not exceptions should be done on a case by case 
basis.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

The two ICC buildbots are now offline. ICC was never really officially 
supported, so I just close this old issue (no activity since the end of 2015).

--
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25796] Running test_multiprocessing_spawn is slow (more than 8 minutes)

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, I failed to take a decision nor find a concrete action to do on this 
issue, so I just closed it.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25606] asyncio doc: 'socket' transport extra info is not mandatory

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

It seems like Guido doesn't like the idea, so I just close the issue :-)

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25868] test_eintr.test_sigwaitinfo() hangs on "AMD64 FreeBSD CURRENT 3.x" buildbot

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

It seems like the root issue was fixed by myself in the bpo-30320. Sorry 
Martin, I forgot this issue and so forgot to review your patch.

But it seems like we took a similar approach: using signal.pthread_sigmask() 
seems to be the only right way to write a *reliable* test for sigwaitinfo() ;-)

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> test_eintr.test_sigwaitinfo(): race condition on AMD64 FreeBSD 
10.x Shared 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26145] [WIP] PEP 511: Add sys.set_code_transformers()

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
title: PEP 511: Add sys.set_code_transformers() -> [WIP] PEP 511: Add 
sys.set_code_transformers()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26098] [WIP] PEP 510: Specialize functions with guards

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
title: PEP 510: Specialize functions with guards -> [WIP] PEP 510: Specialize 
functions with guards

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26251] Use "Low-fragmentation Heap" memory allocator on Windows

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Is there anyway interested to experiment to write such change and run 
benchmarks with it?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26373] asyncio: add support for async context manager on streams?

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I'm not sure asynico anymore and lost track of this issue, so I just close it.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26506] hex() documentation: mention "%x" % int

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Can someone pick the last patch and convert it to a pull request? CPython moved 
to GitHub in the meanwhile! See http://docs.python.org/devguide/ ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
keywords: +easy
title: hex() documentation: mention "%x" % int -> [EASY] hex() documentation: 
mention "%x" % int

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26618] _overlapped extension module of asyncio uses deprecated WSAStringToAddressA() function

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26643] regrtest: rework libregrtest.save_env submodule

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

regrtest now always displays before/after when the environment is altered. I 
consider that it's enough to close this issue.

I'm no more interested to try to enhance the output.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26757] test_urllib2net.test_http_basic() timeout after 15 min on

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Buildbot failure not seen last months, so I just close the issue.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27068] Add a detach() method to subprocess.Popen

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

@Martin Panter: Do you still want this feature? Any progress on bpo-27069?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

While the root issue is not fixed, at least -W doesn't cause issues anymore 
with -R, so I consider that the "bug" was fixed ;-)

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27847] os.set_inheritable() looks to be broken on OpenIndiana, regression of Python 3.6

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I'm not interested to work on OpenIndiana, and I consider that we should just 
remove the OpenIndiana buildbot, so I abandon this issue.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27940] xml.etree: Avoid XML declaration for the "ascii" encoding

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I lost track of this change. I'm not sure why I proposed it, and I don't feel 
confortable to change the ElementTree code :-/ I fear a regression, so I prefer 
to abandon my change.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28223] test_tools fails with timeout on AMD64 Snow Leop 3.x buildbot

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Buildbots timeout has been adjusted, so this issue has been fixed indiretly.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28224] Compilation warnings on Windows: export 'PyInit_xx' specified multiple times

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

> This is a known bug when compiling 64-bit extension modules.

Oh ok. I will just close my issue in that case :-)

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29240] [WIP] Implementation of the PEP 540: Add a new UTF-8 mode

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Implementation of the PEP 540: Add a new UTF-8 mode -> [WIP] 
Implementation of the PEP 540: Add a new UTF-8 mode

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28554] Windows: _socket module fails to compile on "AMD64 Windows7 SP1 3.x" buildbot "because "AlwaysCreate" was specified"

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Windows buildbots are now fine. It seems like the bug was fixed ;-)

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29461] Experiment usage of likely/unlikely in CPython core

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

So, I played with likely/unlikely and... nothing, nothing interesting. Please 
use PGO compilation ;-)

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29512] regrtest refleak: implement bisection feature

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Ok, I pushed a first implementation. It's problaby buggy and incomplete, but 
it's better than nothing, and can be enhanced later.

I prefer to play with it longer before starting to backport it to other 
branches, to not have to backport changes multiple times.

Thanks Yury for the review ;-)

--
nosy: +yselivanov
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30422] Add roadmap.txt section to idlelib

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Attached is my current sorted list of IDLE issues.  It is a detailed map as 
opposed to the overview I posted before.

I spent a couple of days last week reviewing issues, making sure that all IDLE 
issues were marked category IDLE and that all with a patch were on my list, 
where they are marked by * after the issue number.  (Most everything else 
should be also.)  After closing 24 issues, there were 220 left, 115 with a 
patch to review.  I marked a few issues with ** for attention soon.

I obviously need help reviewing existing patches, and in some cases, turning 
them into github pull requests.

I still need to review and clean up the todos on the list.  I want to review 
TODO.txt to see what should be added (and then replace that file with this, 
under a different name).  There are also TODOs and XXXs in individual module 
files.

I posted a older version to idle-dev about Sept 2015 and will probably do so 
again.

--
Added file: http://bugs.python.org/file46979/idle-issues.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29530] Windows buildbots broken by the migration to GitHub (meta issue)

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Windows buildbots are green since at least 2 months, so I close this issue.

There is one remaining issue, but specific to the Windows *installer*: see 
bpo-30716 and bpo-27425.

--
dependencies:  -Tests fail because of git's newline preferences on Windows
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29933] asyncio: set_write_buffer_limits() doc doesn't specify unit of the parameters

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Oh, thanks for the documentation! Now the change should just be backported to 
other branches.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30172] test_tools takes longer than 5 minutes on some buildbots

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I failed to take a decision nor any concrete action on this issue, so I just 
close it ;-)

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30314] Buildbots: 15 min is too low for test_tools on x86 Tiger 3.6 buildbot

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

The timeout of buildbot has been adjusted (my PR 
https://github.com/python/buildmaster-config/pull/8 has been merged).

The cpu resource has been disabled on Travis CI to make it faster.

This issue can now been fixed.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

The initial issue ("[2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 
2.7") is now fixed, so I close the issue. Thanks for the help everyone who 
helped me on this one!

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] test_threaded_import leaks references

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

test_threaded_import has been fixed, so I close the issue. Thanks Antoine and 
Serhiy for the reviews and feedback ;-)

I'm ok to not provide a "unregister" function. At least, until an user 
complains with a good rationale ;-)

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
title: os.register_at_fork(): allow to unregister callbacks -- 
test_threaded_import leaks references -> test_threaded_import leaks references

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks references

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

It seems like the change works well since I didn't see any more false alarms on 
the Refleaks buildbots. I close the issue. The change has been applied to 2.7, 
3.5, 3.6 and master branches.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
title: regrtest: change -R/--huntrleaks rule to decide if a test leaks -> 
regrtest: change -R/--huntrleaks rule to decide if a test leaks references

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30542] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

test_tools leak was a false alarm which has been fixed in regrtest by bpo-30776.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 26daad4ee14693381d84a5235709d22aed1c22ed by Victor Stinner in 
branch '3.6':
bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) (#2456)
https://github.com/python/cpython/commit/26daad4ee14693381d84a5235709d22aed1c22ed


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 26daad4ee14693381d84a5235709d22aed1c22ed by Victor Stinner in 
branch '3.6':
bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) (#2456)
https://github.com/python/cpython/commit/26daad4ee14693381d84a5235709d22aed1c22ed


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29512] regrtest refleak: implement bisection feature

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 84d9d14a1fa395fbd21262ba195490be25a7b3bc by Victor Stinner in 
branch 'master':
bpo-29512: Add test.bisect, bisect failing tests (#2452)
https://github.com/python/cpython/commit/84d9d14a1fa395fbd21262ba195490be25a7b3bc


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2514

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2513

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 23e7944eba1968bb8432fdc4cc96d4fdd2c1a230 by Victor Stinner in 
branch 'master':
bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455)
https://github.com/python/cpython/commit/23e7944eba1968bb8432fdc4cc96d4fdd2c1a230


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 23e7944eba1968bb8432fdc4cc96d4fdd2c1a230 by Victor Stinner in 
branch 'master':
bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455)
https://github.com/python/cpython/commit/23e7944eba1968bb8432fdc4cc96d4fdd2c1a230


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +dino.viehland, yselivanov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

> _PyCode_SetExtra() uses two memory block for code extras. By changing how 
> memory is accessed and allocated, it would be possible to use a single memory 
> block. Was it on purpose to use two memory blocks?

I discussed with Yury who is not opposed to such change in Python 3.7, so I 
created bpo-30789.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-06-27 Thread STINNER Victor

New submission from STINNER Victor:

Currently, _PyCode_SetExtra() uses two memory block for code extras. Using a 
different structure, it would be possible to use a single memory block: less 
memory fragmentation, better CPU cache usage, less indirections, etc.

It matters since the long term plan for co_extras is to implement of kind-of 
JIT compiler insider CPython: see bpo-28158.

--
components: Interpreter Core
messages: 297077
nosy: haypo
priority: normal
severity: normal
status: open
title: Redesign PyCodeObject.co_extras to use a single memory block, instead of 
two
type: performance
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

_PyCode_SetExtra() uses two memory block for code extras. By changing how 
memory is accessed and allocated, it would be possible to use a single memory 
block. Was it on purpose to use two memory blocks?

See for example PyTupleObject which uses a single memory block vs PyListObject 
which uses two memory blocks.

typedef struct {
PyObject_VAR_HEAD
PyObject *ob_item[1];

/* ob_item contains space for 'ob_size' elements.
 * Items must normally not be NULL, except during construction when
 * the tuple is not yet visible outside the function that builds it.
 */
} PyTupleObject;

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2512

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2511

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17942] IDLE Debugger: Improve GUI

2017-06-27 Thread Mark Roseman

Changes by Mark Roseman :


--
pull_requests: +2510

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29512] regrtest refleak: implement bisection feature

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2509

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30758] regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?)

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
title: regrtest hangs sometimes on the master branch (test_pydoc? 
test_subprocess?à) -> regrtest hangs sometimes on the master branch 
(test_pydoc? test_subprocess?)

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >