[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



Re: Create a list of dates for same day of week in a year

2017-06-27 Thread Sayth Renshaw

> > Is there an obvious method I am missing in creating a list of dates? I want 
> > to get a list of each Saturday and each Wednesday for the year 2017.
> >
> > It seems and maybe this is where I am wrong but doesn't the datetime 
> > library already know the dates if yes is there an easy way to query it?
> >
> 
> Sorta-kinda.
> 
> >>> import datetime
> >>> today = datetime.date.today()
> >>> monday = today - datetime.timedelta(days=today.weekday())
> >>> wednesday = monday + datetime.timedelta(days=2)
> >>> saturday = monday + datetime.timedelta(days=5)
> >>> week = datetime.timedelta(days=7)
> >>> next_wed = wednesday + week
> 
> You can mess around with that. If you want to find the beginning of
> the year, you could start by using datetime.date(2017, 1, 1) instead
> of today(), and then locate the previous Monday the same way.
> 
> So yes, all the information is available, but no, there's no easy way
> to say "give me all the Saturdays in 2017". You'd have to iterate.
> 
> ChrisA

Thanks ChrisA could using the calendar and a for loop work better?

As below test a date to see if the value = 5 so loop months 1-12 and then days 
1-31 and just throw an error when the date doesn't exist 30th of Feb etc
In [19]: import calendar


In [23]: calendar.weekday(2017,6,24)
Out[23]: 5

Or I have set the Saturday to be the firstday of the week 
https://docs.python.org/2/library/calendar.html is there a way to loop for all 
firstdayofweeks in year and return dates out that way?

Not sure how to get all dates in the year as an object for iteration though. 
The calendar iter items end at months 
https://docs.python.org/2/library/calendar.html#calendar.Calendar.itermonthdays

In [20]: calendar.setfirstweekday(calendar.SATURDAY)

In [21]: calendar.firstweekday()
Out[21]: 5

Cheers

Sayth
-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: How to build a simple neural network in 9 lines of Python code

2017-06-27 Thread Rustom Mody
On Wednesday, June 28, 2017 at 1:04:46 AM UTC+5:30, Marko Rauhamaa wrote:
> John Ladasky 
> > OK, that's cheating a bit, using Numpy. It's a nice little program,
> > but it leverages a huge, powerful library.
> 
> What would *not* be cheating? A language without a library would be
> dead.

One man's powerful is another's simple
A beginning C programmer treats lists as a "data structure" for an advanced
course on data structures
A beginning python programmer starts using them in his first hour or at worst 
day

Likewise python does this with the help of numpy
>From which one could conclude one of
- This (numpy-using) 9 lines is advanced
- Numpy needs to be in python's core

My guess of Marko's intent of bringing up APL is just to show a language in
which numpy is effectively in the language core

My other guess is that these same 9 lines could be translated to R with no 
import

PS I am not advocating numpybuiltintopython
-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: Syntax error for simple script

2017-06-27 Thread Chris Angelico
On Wed, Jun 28, 2017 at 12:46 PM, Steve D'Aprano
 wrote:
> I think that there are broadly two sets of newbies in the world:
>
> - those who will read the message, and be able to resolve the problem from the
> current wording ("oh, it needs parentheses, like a function");
>
> - and those who won't, in which case adding more words to the message won't 
> help
> in the slightest.

And in between are the people who read the message but don't
understand it, and then key it into a web search engine. For those
people, the value isn't necessarily in the clarity of the wording, but
in the specificity of it; as long as Google/DuckDuckGo/Bing/Yahoo can
find the right information given that error as input, it's good
enough. As such, I think the current wording is excellent; I start
typing "missing parentheses" and all four of those search engines
suggest the rest of the message, and all of them have good results
(mainly from Stack Overflow) at the top of the search. Bing and DDG
even pick up part of the answer to show above the results, with DDG
edging out Bing in usefulness.

Or maybe they're a subcategory of the first group. I don't know. In
any case, consistency helps the search engines (it's easier to search
for "missing parentheses in call to print" than for "unexpected error
at <0x13456474678fbcea>" where the hex number varies according to
cause), and brevity (as long as clarity isn't sacrificed) is a huge
advantage in getting the message typed in.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to build a simple neural network in 9 lines of Python code

2017-06-27 Thread Chris Angelico
On Wed, Jun 28, 2017 at 12:28 PM, Steve D'Aprano
 wrote:
> E.g. comparing Python to AcmeScript, where you write:
>
>
> program myprogram
> begin program
> load library webbrowser
> new string url copied from 'http://www.example.com'
> with webbrowser
>   begin
> method = open
> method.call url
>   end
> end program
>
> (I made that language up, for the record, don't bother googling for it.)

Just to be contrary, I did. And Google suggested that maybe I meant
"acnescript".

H.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to build a simple neural network in 9 lines of Python code

2017-06-27 Thread Ian Kelly
On Tuesday, June 27, 2017, Steve D'Aprano 
wrote:

> On Wed, 28 Jun 2017 02:23 am, Sam Chats wrote:
>
> >
> https://medium.com/technology-invention-and-more/how-to-
> build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1
>
>
> The derivative of the sigmoid curve given is completely wrong.
>
> def __sigmoid(self, x):
> return 1 / (1 + exp(-x))
>
> def __sigmoid_derivative(self, x):
> return x * (1 - x)
>
>
> Should be:
>
> def __sigmoid_derivative(self, x):
> return exp(x) / (1 + exp(x))**2
>
>
>
> http://mathworld.wolfram.com/SigmoidFunction.html
>
>
Actually, it's not stated clearly but x is not the same in each function.
The return value of sigmoid is the input of sigmoid_derivative. The article
that you linked confirms that this identity holds.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Create a list of dates for same day of week in a year

2017-06-27 Thread Chris Angelico
On Wed, Jun 28, 2017 at 12:48 PM, Sayth Renshaw  wrote:
> Is there an obvious method I am missing in creating a list of dates? I want 
> to get a list of each Saturday and each Wednesday for the year 2017.
>
> It seems and maybe this is where I am wrong but doesn't the datetime library 
> already know the dates if yes is there an easy way to query it?
>

Sorta-kinda.

>>> import datetime
>>> today = datetime.date.today()
>>> monday = today - datetime.timedelta(days=today.weekday())
>>> wednesday = monday + datetime.timedelta(days=2)
>>> saturday = monday + datetime.timedelta(days=5)
>>> week = datetime.timedelta(days=7)
>>> next_wed = wednesday + week

You can mess around with that. If you want to find the beginning of
the year, you could start by using datetime.date(2017, 1, 1) instead
of today(), and then locate the previous Monday the same way.

So yes, all the information is available, but no, there's no easy way
to say "give me all the Saturdays in 2017". You'd have to iterate.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Create a list of dates for same day of week in a year

2017-06-27 Thread Sayth Renshaw
Afternoon

Is there an obvious method I am missing in creating a list of dates? I want to 
get a list of each Saturday and each Wednesday for the year 2017.

It seems and maybe this is where I am wrong but doesn't the datetime library 
already know the dates if yes is there an easy way to query it?

Also checked out Python Arrow http://arrow.readthedocs.io/en/latest/ as it 
expands on the python standard library but I couldn't find an obvious example 
of this.

Thoughts or examples?

Cheers

Sayth
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Syntax error for simple script

2017-06-27 Thread Steve D'Aprano
On Wed, 28 Jun 2017 05:38 am, Erik wrote:


[...]
> So I don't understand the resistance to making the error be a bit more
> explicit about why it is being generated to help those users - it
> doesn't explain (the obvious reason) _why_ their tutorial/example gives
> them an error when it doesn't to the person who wrote the tutorial.

All of this is irrelevant if beginners don't read the error message. End-users
don't read error messages, no matter how well written they are, and every word
you add probably cuts the number of people reading it by half.

Newbie programmers are more like end-users than seasoned programmers. Learning
to read the error message is a skill that must be taught and learned. Part of
the learning process is to explain the why, the when, the how, and perhaps even
the history of the error. That's not something needed in the error message
itself (imagine how annoying it would be if ZeroDivisionError tried to explain
the basis of arithmetic and why you can't divide by zero), and rather than
helping the newbie, it will probably intimidate them and make it even less
likely to read and understand the error.

When designing an error message, imagine that you are going to read it a dozen
times a day, every day, for the rest of your career.


> One other possibility is that a beginner fires up Py3 and gets that
> "weird" (to them) error when they tried their tutorial or SO code and
> then finds out that if they fire up Py2 instead it just works. Now they
> might continue to use Py2 because it's "the one that works" for them.
> 
> I would suggest that making the error dissuade them from doing that (for
> the cost of a few tens of bytes) is a good thing.

The cost isn't ten bytes. The cost is human attention span.

Don't think of the newbie reading the error for the first time, because that
only happens *once*. Think of them reading it for the 50th time. Do you think
they will still appreciate your little history lesson?


> You are concentrating on the detail of what I wrote. I don't care what
> the eventual wording is (and for sure, someone else is far more
> qualified than me to suggest wording that is better for a beginner). My
> point is simply that the error _could_ contain _some_ more information
> that addresses this issue for a beginner who may be typing in Py2
> examples that encourages them to seek out Py3 tutorials instead.

Of course it could. It could also include a link to the Python documentation, a
history of how and why Python 3000 came to be, and a note that if you email the
Python Software Foundation they'll pay you $50, and none of these things will
make the slightest difference if people don't read them.

It's not a question of what the error message *could* say, its what it *should*
say, and more is not always better.

I think that there are broadly two sets of newbies in the world:

- those who will read the message, and be able to resolve the problem from the
current wording ("oh, it needs parentheses, like a function");

- and those who won't, in which case adding more words to the message won't help
in the slightest.


>> That's why I asked Ben if there was something we
>> could do to make the sentence clearer.
> 
> Exactly. Ben is an example of someone more qualified than me to suggest
> the correct words.

And is typical, Ben has not (as far as I can see) replied. Which I take as an
answer to my question: no, he did not read the error message, or spend more
than a millisecond trying to understand it, and adding more words wouldn't have
changed that in the slightest.

"Cynical" is what Pollyannas call realists :-)



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: How to build a simple neural network in 9 lines of Python code

2017-06-27 Thread Steve D'Aprano
On Wed, 28 Jun 2017 06:22 am, Marko Rauhamaa wrote:

> You saw the APL example, right? APL's standard runtime/library contains
> most of Numpy functionality because that's what APL has been designed
> for.
> 
> Is that cheating?


Of course not. That demonstrates beautifully (or perhaps "unreadably tersely")
that the APL language primitives are extremely powerful (too powerful?).

Apart from just your usual contrariness *wink* I don't know why you are
objecting to this. It should be obvious that if you allow the use of external
libraries that can contain arbitrary amounts of code, *without* counting that
external code towards your measure of code complexity, you get a bogus
measurement of code complexity.

(That's like manufacturers who can make things artificially cheaply because they
don't have to pay the full costs of their input and processes: they get their
raw materials subsidised, putting part of the cost on tax payers, and don't
have to pay for their pollution, making others pay the cost.)

Suppose I said that I can write a full featured, advanced GUI web browser,
complete with Javascript and a plug-in system, in just *two* lines of Python
code:

import webbrowser
webbrowser.open('http://www.example.com')


What an astonishingly powerful language Python must be! Other languages require
dozens of lines of code just to parse Javascript, let alone run it.

Except... I'm not really measuring the capability of *Python*, as such. Not if I
word it as I have. I haven't really implemented a web browser, I'm just using
an external web browser. If I wanted to change the parameters, lets say by
changing the Javascript keyword "true" to "truish", then my code would expand
from two lines to millions of lines.

My demo of launching an external process to do all the work is of no help at all
to assist a developer in estimating the expressiveness and power of the
language.

If I were more honest, I would say:

"Here is how I can launch a web browser using the Python standard library in
just two lines of code."

which is an honest description of what I did, and can allow people to make fair
comparisons. E.g. comparing Python to AcmeScript, where you write:


program myprogram
begin program
load library webbrowser
new string url copied from 'http://www.example.com'
with webbrowser
  begin
method = open
method.call url
  end
end program

(I made that language up, for the record, don't bother googling for it.)

That gives you a fair comparison of the language expressiveness and power.

Chris is right: saying that we can create a simple neural network in 9 lines of
Python plus numpy allows fair comparison to other combinations of language and
library. Implying that it's just Python alone does not.




-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: How to build a simple neural network in 9 lines of Python code

2017-06-27 Thread Steve D'Aprano
On Wed, 28 Jun 2017 05:34 am, Marko Rauhamaa wrote:

> John Ladasky :
>> OK, that's cheating a bit, using Numpy. It's a nice little program,
>> but it leverages a huge, powerful library.
> 
> What would *not* be cheating? A language without a library would be
> dead.

Its not really nine lines of Python. It's nine lines of Python, to call a
library of many thousands of lines of C, Fortran and Python.

And its not really a neural *network* as such, more like just a single neuron.

Starting from scratch with just the Python language and standard library, no
external third party code, how quickly can you write a neural network? I think
the answer is probably a wee bit more than "nine lines".



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to build a simple neural network in 9 lines of Python code

2017-06-27 Thread Steve D'Aprano
On Wed, 28 Jun 2017 06:19 am, Marko Rauhamaa wrote:

> alister :
> 
>> On Tue, 27 Jun 2017 22:34:18 +0300, Marko Rauhamaa wrote:
>>
>>> John Ladasky :
 OK, that's cheating a bit, using Numpy. It's a nice little program,
 but it leverages a huge, powerful library.
>>> 
>>> What would *not* be cheating? A language without a library would be
>>> dead.
>>
>> true but for a realistic comparison you should probably count all the
>> lines of code in the libruary
> 
> How's that defined? Lines of Python? Lines of C? Lines of assembly?
> Lines of microcode?
> 
> What is a line?

Microcode isn't text so it doesn't come in lines.

Obviously we're talking about source code, not object code, byte code or machine
code, since source code is the only one that is measured in lines rather than
bytes.


-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: How to build a simple neural network in 9 lines of Python code

2017-06-27 Thread Steve D'Aprano
On Wed, 28 Jun 2017 02:23 am, Sam Chats wrote:

>
https://medium.com/technology-invention-and-more/how-to-build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1


The derivative of the sigmoid curve given is completely wrong.

def __sigmoid(self, x):
return 1 / (1 + exp(-x))

def __sigmoid_derivative(self, x):
return x * (1 - x)


Should be:

def __sigmoid_derivative(self, x):
return exp(x) / (1 + exp(x))**2



http://mathworld.wolfram.com/SigmoidFunction.html


I wish these neural networks would give a tutorial on how to do something
non-trivial where:

- your training data is not just a couple of bits;

- the function you want the neural network to perform is non-trivial.


E.g. I have a bunch of data:

['cheese', 'pirate', 'aardvark', 'vitamin', 'egg', 'moon']

and a set of flags:

[True, False, True, True, False, True]


and I want the network to predict that:

'calcium' -> False
'aluminium' -> True
'wood' -> True
'plastic' -> False


(The function is, "is there a duplicated vowel?")


-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list


[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



  1   2   3   >