[issue31050] IDLE, configdialog: Factor out GenTab class from ConfigDialog

2017-07-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
dependencies: +IDLE, configdialog: Factor out FontTab class from ConfigDialog

___
Python tracker 

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



[issue31050] IDLE, configdialog: Factor out GenTab class from ConfigDialog

2017-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Now that we know what we are doing, we can simplify the steps.  These assume 
that #21004, PR2905, which prepares create_widgets and fixes the GeneralTest 
that was broken by Notebook, has been merged.

For configdialog:
* copy general block after FontPage;
* add 'class GenPage(Frame):' and def __init__ modeled on FontPage.__init__, 
but no highlight parameter;
* replace 'frame = dialog.tabpages...' at top of create_page_general with 
'frame = self';
* comment out old code;
* in create_widgets change 'self.create_page_general' to 'GenPage(note)'.

For test_configdialog:
* change 'GeneralTest' to 'GenPageTest
* change setUpClass similarly as in FontPageTest;
* change test functions similarly as in FontPageTest and otherwise as needed to 
keep tests passing.

--

___
Python tracker 

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



[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I fixed the test problem by selecting the General page in the class setup with 
d.note.select(3).  Then the focus_force to a widget on the page must have 
worked.

--

___
Python tracker 

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



[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am going to work on this now.  Tracers should be on for the duration of the 
test class except for the load test.  d = self.page is what I planned initially.

Argument note is bound to parameter parent and that will remain the name.

The one error I see in PageFont before testing is adding or leaving "frame = 
Frame(self.parent)".  Now that FontPage is a frame, 'frame = self' (we can 
later replace 'frame' with 'self' as the parent argument in calls that follow).

--

___
Python tracker 

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



[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-29 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I'm pushing step 2 with an error in the test.  It's on the keydown in 
test_fontlist_key.  I just didn't want to hold you up from looking at the rest 
of it because of one test.

I did run into a bunch of other issues/questions while doing this.  I didn't 
add tracers.attach() to the FontPage class.  So, I had to call it in the 
FontPageTest.  Well, I then also added a detach so it wouldn't carry to the 
other tests and of course all the other tests broke.  So, I added 
setup/teardown of tracers in all the test classes.  I don't know if that was 
the right way to go or if adding tracers.attach to FontPage and then just 
leaving everything attached would be ok.

Also, I tried to minimize the change from `d=dialog` to `d = self.page`, so I 
kept the name `d`.

Adding set_samples to load_font_cfg upped the called count to 4 in 
test_load_font_cfg because the tracers are attached when it's called.  I think 
you mentioned that test needs to be changed with them detached, but I wasn't 
sure if you wanted that changed now or later.

In FontPage, I tried not to change code yet, so I keep the name `parent` even 
though `note` will be passed in.

--

___
Python tracker 

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



[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
status: open -> closed

___
Python tracker 

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



[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> fixed
stage:  -> resolved

___
Python tracker 

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



[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 4c7b368de7bcabdd821059c023c46c9d85668d3f by Terry Jan Reedy in 
branch '3.6':
[3.6] bpo-30803: clarify truth value testing documentation (GH-2508) (#2946)
https://github.com/python/cpython/commit/4c7b368de7bcabdd821059c023c46c9d85668d3f


--

___
Python tracker 

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



[issue31074] Startup failure if executable is a \\?\ path on Windows

2017-07-29 Thread Shubha Ramani

Shubha Ramani added the comment:

May I take resolve this issue and submit a patch ?

--
nosy: +shubha_bloodhound

___
Python tracker 

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



[issue31078] pdb's debug command (Pdb.do_debug) doesn't use rawinput even if the parent pdb uses rawinput

2017-07-29 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2996

___
Python tracker 

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



[issue31077] Windows Installer Version

2017-07-29 Thread Steve Dower

Steve Dower added the comment:

Please file separate bugs for each of your concerns, and ensure Python 3.6/3.7 
and 2.7 are separate as these are fundamentally different installers and will 
have different bugs.

Other versions will not be changed at this point.

--
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



[issue9325] Add an option to pdb/trace/profile to run library module as a script

2017-07-29 Thread Segev Finer

Changes by Segev Finer :


--
nosy: +Segev Finer

___
Python tracker 

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



[issue31078] pdb's debug command (Pdb.do_debug) doesn't use rawinput even if the parent pdb uses rawinput

2017-07-29 Thread Segev Finer

New submission from Segev Finer:

This is caused by 
https://github.com/python/cpython/blob/caa1280d1ee5f828f346b585169a7592371d3faa/Lib/pdb.py#L1096
 which always passes our own current stdin and stdout, and this triggers the 
conditional in 
https://github.com/python/cpython/blob/caa1280d1ee5f828f346b585169a7592371d3faa/Lib/pdb.py#L144-L145.

self.stdin and self.stdout are initialized to sys.stdin and sys.stdout 
respectively when not passed explicitly: 
https://github.com/python/cpython/blob/caa1280d1ee5f828f346b585169a7592371d3faa/Lib/cmd.py#L87-L94.

See Also: https://github.com/ipython/ipython/pull/10721

--
components: Library (Lib)
messages: 299485
nosy: Segev Finer
priority: normal
severity: normal
status: open
title: pdb's debug command (Pdb.do_debug) doesn't use rawinput even if the 
parent pdb uses rawinput
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2995

___
Python tracker 

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



[issue31075] Collections - ChainMap - Documentation example wrong order line

2017-07-29 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> Many thanks for the great work you do with Python,

Thanks for the kudos.  Also, thanks for the close reading of the docs.

--

___
Python tracker 

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



[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset caa1280d1ee5f828f346b585169a7592371d3faa by Terry Jan Reedy 
(Peter Thomassen) in branch 'master':
bpo-30803: clarify truth value testing documentation (#2508)
https://github.com/python/cpython/commit/caa1280d1ee5f828f346b585169a7592371d3faa


--

___
Python tracker 

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



[issue31027] test_listcomps fails when run directly

2017-07-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
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



[issue31027] test_listcomps fails when run directly

2017-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset b26cc82b2252dd54e73661a026b32e7808fef945 by Terry Jan Reedy in 
branch '3.6':
[3.6] bpo-31027: Fix test_listcomps failure when run directly (GH-2939) (#2945)
https://github.com/python/cpython/commit/b26cc82b2252dd54e73661a026b32e7808fef945


--

___
Python tracker 

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



[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I will check for anything even vaguely related.  In any case, your comment 
reminded me to give your PR a boost.  Too bad it will miss 3.5.

--

___
Python tracker 

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



[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Chris Wilcox

Chris Wilcox added the comment:

I was reviewing the docs for the os module and cpu_count should always return 
the number of cpus on the system, not the usable CPUs. GetMaximumProcessorCount 
returns a simulated count in WoW64. I have reached back out to the Windows API 
dev and will see if GetLogicalProcessorInformationEx will allow us to do this. 
He had thought that my solution that way had other limitations under WoW64.

--

___
Python tracker 

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



[issue17560] problem using multiprocessing with really big objects?

2017-07-29 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Davin, when you write-up a blog post, I think it would be helpful to mention 
that creating really large objects with multi-processing is mostly an 
anti-pattern (the cost of pickling and interprocess communication tends to 
drown-out the benefits of parallel processing).

--
nosy: +rhettinger

___
Python tracker 

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



[issue31075] Collections - ChainMap - Documentation example wrong order line

2017-07-29 Thread Raymond Hettinger

Raymond Hettinger added the comment:

-0

The code block was originally intended to just be a table of patterns, not 
meant to be executed sequentially.  It followed the traditional presentation 
order (__getitem__, __setitem__, followed by __delitem__).

If we do change this, then the subsequent "k in d" example should also be 
changed to "'x' in d" because k isn't defined.

--
assignee: docs@python -> rhettinger
nosy: +rhettinger
priority: normal -> low
resolution:  -> not a bug

___
Python tracker 

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



[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

I agree that the MS Docs for this are a bit confusing. I ended up reaching out 
to the guy who authored the GetMaximumProcessorCount function. I had also 
written an implementation that iterated over GetProcessorInformationEx and he 
advised against it. 

One of the things that makes this interesting is that in 32 bit processes 
(wow64) your processor is simulated to fit in the confines of that old system. 
This method will only report 32 cores under 32 bit as that is all the program 
can access in 32 bit mode.

--

___
Python tracker 

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



[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

About GetMaximumProcessorCount, MS doc states that it returns the "maximum 
number of logical processors that a processor group or the system can have", so 
maybe it also includes "empty" CPU sockets.

GetActiveProcessorCount, on the other hand, returns "the number of active 
processors in a processor group or in the system", which adds even more 
confusion.

--

___
Python tracker 

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



[issue31077] Windows Installer Version

2017-07-29 Thread Damon Atkins

New submission from Damon Atkins:

The Windows installer for example titles the software as
Display Name:Python 3.5.3 (64-bit)
Display Version: 3.5.3150.0
The default install folder is
C:\Program Files\Python35

There is no consistency

It looks like the 3150 been shorten to 3
If you look at Python 2.7.2 it has a display version of 2.7.13150

Suggest
Display Name:Python 3.5 (64-bit)
Display Version: 3.5.3150.0
C:\Program Files\Python3.5 or C:\Program Files\Python3.5.3150
OR
Display Name:Python 3.5.3150 (64-bit)
Display Version: 3.5.3150.0
C:\Program Files\Python3.5.3150
OR
Display Name:Python 3.5.3 (64-bit)
Display Version: 3.5.3.3150
C:\Program Files\Python3.5.3

Alse seems that Python 3 installer is placing one entery in the 'Users' 
registry for uninstall and the rest of the entries in 'System' registry for 
uninstall

I suggest if the files are installed in C:\Program Files then their should be 
no  'User' registry entries.

--
components: Windows
messages: 299475
nosy: Damon Atkins, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows Installer Version
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue31027] test_listcomps fails when run directly

2017-07-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2994

___
Python tracker 

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



[issue31027] test_listcomps fails when run directly

2017-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset ceb93f4540981e3f9af66bd936920186aba813fc by Terry Jan Reedy 
(Zackery Spytz) in branch 'master':
bpo-31027: Fix test_listcomps failure when run directly (#2939)
https://github.com/python/cpython/commit/ceb93f4540981e3f9af66bd936920186aba813fc


--

___
Python tracker 

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



[issue31076] http.server should correctly handle HTTP 1.1 responses without a content-length

2017-07-29 Thread Martin Panter

Martin Panter added the comment:

The trouble is you would also have to parse the Transfer-Encoding field, and 
have special logic for responses where Content-Length is not needed or 
irrelevant (certain combinations of method and status code). And even then you 
risk breaking rare or custom methods and status codes. All this seems complex 
and at the wrong layer. A server shouldn’t be parsing the header fields it just 
generated.

Perhaps there could be a new HTTP 1.1 mode (separate from protocol_version) 
that still closed the connection by default, but had a clearer API for keeping 
the connection open that the programmer can use in the right circumstances. But 
I had this thought before (see Issue 21224), and it didn’t seem beneficial.

What’s your use case? Why not just stick with HTTP 1.0, or update the server 
code to either close the connection or use chunked encoding?

--
nosy: +martin.panter

___
Python tracker 

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



[issue29654] SimpleHTTPRequestHandler should support browser cache

2017-07-29 Thread Pierre Quentel

Pierre Quentel added the comment:

Thanks for telling me. I must have run the test hundreds of times now, on a
Windows 7 PC, and this bug never occured.

Just for my information, why do you add temp.flush() in the "with" block ?
I thought the context manager took care of this.

2017-07-28 18:19 GMT+02:00 STINNER Victor :

>
> STINNER Victor added the comment:
>
> FYI there was a race condition, impacting Windows. I just fixed it:
> bpo-31066, commit 28ce07ae9e34c70eea6b52515c7e1cefd41e.
>
> --
> nosy: +haypo
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue31076] http.server should correctly handle HTTP 1.1 responses without a content-length

2017-07-29 Thread Tom Forbes

New submission from Tom Forbes:

The builtin http.server module does not support HTTP keep-alive when sending a 
response without a content-length. This causes any clients to hang waiting on 
more response data, while the server hangs waiting for the client to send 
another request. This is documented 
(https://docs.python.org/3/library/http.server.html#http.server.BaseHTTPRequestHandler.protocol_version),
 but it is confusing.

As far as I can tell the fix would be pretty simple: If no content-length 
header is set then close the connection regardless of the keep-alive header 
(Keep-alive is advisory and servers can close the connection at-will, 
regardless of what the client sends).

If a response contains an inaccurate content-length header there is nothing we 
can do, but if none is present the server (and clients) should not just hang.

--
components: Library (Lib)
messages: 299471
nosy: Tom Forbes
priority: normal
severity: normal
status: open
title: http.server should correctly handle HTTP 1.1 responses without a 
content-length
type: enhancement
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



[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-29 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

> Do you have any idea?

Unfortunately no.

--

___
Python tracker 

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



[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-29 Thread Bernát Gábor

Bernát Gábor added the comment:

I would need to know who and how maintains the 
https://docs.python.org/3.6/objects.inv file. Do you have any idea?

--

___
Python tracker 

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



[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-29 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

> This ticket is about fix objects.inv to have the Tuple in the correct bucket.

If you know how to do this without breaking the python docs system (so that 
Tuple and Callable will not have a "class" prefix on 
https://docs.python.org/3/library/typing.html) then I think it is OK.

--

___
Python tracker 

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



[issue31074] Startup failure if executable is a \\?\ path on Windows

2017-07-29 Thread Steve Dower

Steve Dower added the comment:

Sounds like the right fix. We should increase the maximum path length though, 
since 3.6 and later can work with much longer paths on Win10 through normal 
APIs and without prefix.

--

___
Python tracker 

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



[issue30842] pyenv activate for bash and tcsh

2017-07-29 Thread Arnon Sela

Arnon Sela added the comment:

readlink -f can be replaced by the following sequence:

pushd $fullpath
fullpath=$(pwd -P)
popd

Please note that:

[[ $called != $0 ]] && fullpath="${BASH_SOURCE[@]}" || fullpath=$0

Should be replaced with:

[[ $called != $0 ]] && fullpath="${BASH_SOURCE[0]}" || fullpath=$0

0 instead of @ - that was a misspelling.

--

___
Python tracker 

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



[issue31075] Collections - ChainMap - Documentation example wrong order line

2017-07-29 Thread Marcos Soutullo

New submission from Marcos Soutullo:

Hello,

I have been taking a look into your ChainMap collections documentation 
(https://docs.python.org/3.6/library/collections.html?highlight=collections#collections.ChainMap),
 specifically the third code example on "8.3.1.1. ChainMap Examples and Recipes"
that clearly describe and illustrate a use case for the ChainMap class. 
However, I found a very small code issue in regards to how the sample code 
(line 7) is presented to the reader. Please refer to the code compilation below:

Line 7 >>> d['x']# Get first key in the chain of contexts
raise KeyError(key)
KeyError: 'x'
Line 8 >>> d['x'] d['x'] = 1# Set value in current context

The key named 'x' had not been initialised yet and of course, the compiler is 
complaining. It should be the other way around.

Line 8 >>> d['x'] = 1   # Set value in current context
Line 7 >>> d['x']   # Get first key in the chain of contexts


Many thanks for the great work you do with Python,

Marcos S.

--
assignee: docs@python
components: Documentation
messages: 299465
nosy: Marcos Soutullo, docs@python
priority: normal
severity: normal
status: open
title: Collections - ChainMap - Documentation example wrong order line
type: compile error
versions: Python 3.6

___
Python tracker 

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



[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-29 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I wonder if the usability bug is related to issue25684, even though it's a 
different widget.  The reason I'm suggesting that is that I had converted the 
DynOptionMenu to be a ttk.OptionMenu in configdialog, but when I did that, that 
selection of a target tag on the highlight screen and the clicking of a target 
within highlight_sample didn't stay in sync, and that sounds very much like 
what it happening in helplist.

My patch for 25684 fixed the reported issue, but also fixed what I was seeing 
in configdialog.

--

___
Python tracker 

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



[issue30842] pyenv activate for bash and tcsh

2017-07-29 Thread Vinay Sajip

Vinay Sajip added the comment:

This needs further thought as to how to implement. For example, readlink -f 
isn't supported on OS X. If a patch were available which works across 
platforms, that would potentially speed up resolution of this issue.

--

___
Python tracker 

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



[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

MS documentation is not clear on what function should be used as there are many 
returning different values. Here it is being suggested to use 
GetLogicalProcessorInformationEx: 
https://stackoverflow.com/questions/31209256/reliable-way-to-programmatically-get-the-number-of-cores-on-windows

--

___
Python tracker 

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



[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue30931] Race condition in asyncore may access the wrong dispatcher

2017-07-29 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
assignee:  -> giampaolo.rodola

___
Python tracker 

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



[issue30931] Race condition in asyncore may access the wrong dispatcher

2017-07-29 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

+1, I would push https://github.com/python/cpython/pull/2854/ first and fix the 
race condition only.

--

___
Python tracker 

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



[issue17560] problem using multiprocessing with really big objects?

2017-07-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> There's also the other multiprocessing limitation Antoine mentioned early on, 
> where queues/pipes used a 32-bit signed integer to encode object length.

> Is there a way or plan to get around this limitation?

As I said above in https://bugs.python.org/issue17560#msg185345, it should be 
easy to improve the current protocol to allow for larger than 2GB data.

--

___
Python tracker 

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



[issue31074] Startup failure if executable is a \\?\ path on Windows

2017-07-29 Thread Eryk Sun

New submission from Eryk Sun:

search_for_prefix in PC/getpathp.c sets the wrong path when Python is started 
with a \\?\ path on Windows, which results in the following crash:

>>> subprocess.call(r'"\\?\C:\Program Files\Python36\python.exe"')
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x0b40 (most recent call first):
3221226505

The problem is due to the implementation of join(), which calls 
PathCchCombineEx, which strips the \\?\ prefix from the joined path. 
Consequently in gotlandmark(), setting `prefix[n] = '\0'` nulls the wrong index 
because the value of n includes the original \\?\ prefix. 

Breakpoint 0 hit
python36_d!gotlandmark:
`6cc1a920 48894c2408  mov qword ptr [rsp+8],rcx
ss:00c2`9a9ee920={python36_d!prefix (`6cf697d0)}
1:005> du python36_d!prefix
`6cf697d0  "\\?\C:\Program Files\Python36"

1:005> pc
python36_d!gotlandmark+0x15:
`6cc1a935 e8e60a  callpython36_d!wcsnlen_s 
(`6cc1b420)
1:005> pc
python36_d!gotlandmark+0x2b:
`6cc1a94b e89001  callpython36_d!join 
(`6cc1aae0)
1:005> p
python36_d!gotlandmark+0x30:
`6cc1a950 33d2xor edx,edx
1:005> du python36_d!prefix
`6cf697d0  "C:\Program Files\Python36\lib\os"
`6cf69810  ".py"

1:005> pt
python36_d!gotlandmark+0x7b:
`6cc1a99b c3  ret
1:005> du python36_d!prefix
`6cf697d0  "C:\Program Files\Python36\lib"

I think the simplest solution is to remove the \\?\ prefix from the executable 
path that's returned by GetModuleFileNameW in get_progpath(). AFAIK, no version 
of Windows can reliably run programs from long paths, and the current 
MAXPATHLEN (256) doesn't allow it anyway. The only reason to use \\?\ for the 
executable path would be to avoid the normal DOS/Windows path normalization 
rules -- e.g. removing trailing dots and spaces or using DOS device names such 
as "con.exe". That's not really a practical concern.

--
components: Interpreter Core, Windows
messages: 299459
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: test needed
status: open
title: Startup failure if executable is a \\?\ path on Windows
type: crash
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue31045] Add a language switch to the Python documentation

2017-07-29 Thread Julien Palard

Julien Palard added the comment:

@terry About Japanese translation, Inada Naoki is the coordinator, their 
repository is created (https://github.com/python/python-docs-ja) they just have 
to push now.

Once this language switch fully tested / implemented / released, it will be 
easy to add a language. Rules to add a language to the picker are described in 
PEP 545 (translation have to meet criterias like having a fully translated 
tutorial).

Spannish translation exist too, here 
https://github.com/PyAr/tutorial/commits/master but I don't remember if they 
contacted us about porting it to docs.python.org.

FYI I try to document which language is at which step of landing to d.p.o here: 
https://mdk.fr/blog/python-documentation-translation.html, coordinators are 
documented here: 
https://docs.python.org/devguide/experts.html#documentation-translations

FTR I'm currently testing the new switchers locally, I should be able to remove 
the "WIP" soon.

--
nosy: +inada.naoki

___
Python tracker 

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



[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-29 Thread Bernát Gábor

Bernát Gábor added the comment:

I agree we should not advertise the type. However, whatever its type is should 
be in sync in what we put inside objects.inv. That's sort of a encoded binary 
black box for the user; the Sphinx tool included. It maps standard library 
elements to URLs. This ticket is about fix objects.inv to have the Tuple in the 
correct bucket.

--

___
Python tracker 

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