[issue35209] Crash with tkinter text on osx

2018-11-10 Thread remi bertholet


remi bertholet  added the comment:

The problem is due to an old version of tk. I deleted the python3 from 
homebrew. With version 3.7.1 python.org, the crash is no longer, but the 
keyboard shortcuts tkinter on the menus (accelerator), seems to be capricious, 
they work once, then it does not work anymore. I did not have this problem 
before, is it a regression of version 3.7.1?

--

___
Python tracker 

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



[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2018-11-10 Thread tzickel


tzickel  added the comment:

ahh, very interesting discussion. BTW, how is this code different than

https://github.com/python/cpython/blame/50ff02b43145f33f8e28ffbfcc6a9d15c4749a64/Modules/_io/bufferedio.c

which does the same thing exactly ? (i.e. the memoryview can leak there as 
well).

--

___
Python tracker 

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



[issue35149] pip3 show causing Error for ConfigParaser

2018-11-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. The tracker is for issues related to CPython. I think 
this is an issue with pip and please file an issue at 
https://github.com/pypa/pip/issues. I can see some related issues as per your 
original report on googling specifically on Windows machines while processing 
non-ASCII characters in metadata.

* https://github.com/dib-lab/khmer/issues/1565
* https://github.com/pypa/pip/issues/1291
* 
https://github.com/pypa/pip/issues?q=is%3Aissue+sort%3Aupdated-desc+unicode+is%3Aopen

I propose closing this as third party.

--
nosy: +xtreak

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread Tal Einat


Tal Einat  added the comment:

Can we detect whether this system preference is enabled? If so, perhaps
IDLE should display a prominent warning.

--

___
Python tracker 

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



[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth


Change by bob moth :


Added file: https://bugs.python.org/file47923/life2.py

___
Python tracker 

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



[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth


Change by bob moth :


Added file: https://bugs.python.org/file47922/life.py

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread Ned Deily

Ned Deily  added the comment:

I don’t think it’s worth changing the file name or other names, that just 
causes needless churn and the possibility for stranded files on an upgrade. I’d 
just update the docs and messages.

--

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

OK, I will change doc references in the next doc patch, or maybe in a patch 
that also changes module macosx to macos.  (I want to keep it all lowercase.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type: behavior -> enhancement
versions:  -Python 2.7

___
Python tracker 

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



[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Please quote only the relevant parts of the original email while replying from 
email since it duplicates the content and makes your reply hard to read. Also I 
think the bug tracker doesn't support attachments from email so please attach 
them here from the UI.

Thanks

--
nosy: +xtreak

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread miss-islington


miss-islington  added the comment:


New changeset a650493a4626c309b34a38919a41f5de32de3721 by Miss Islington (bot) 
in branch '3.6':
bpo-34864: Document two IDLE on MacOS issues. (GH-10456)
https://github.com/python/cpython/commit/a650493a4626c309b34a38919a41f5de32de3721


--

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread miss-islington


miss-islington  added the comment:


New changeset b91c27d89de83ee664e3726e066eb2e424d84bdf by Miss Islington (bot) 
in branch '3.7':
bpo-34864: Document two IDLE on MacOS issues. (GH-10456)
https://github.com/python/cpython/commit/b91c27d89de83ee664e3726e066eb2e424d84bdf


--
nosy: +miss-islington

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread Ned Deily


Ned Deily  added the comment:

Terry, FYI, according to Apple, the correct current styling for the Mac 
Operating System is "macOS".  We should be using that spelling in the 
documentation.

https://en.wikipedia.org/wiki/MacOS

--

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9733

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9732

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 50ff02b43145f33f8e28ffbfcc6a9d15c4749a64 by Terry Jan Reedy in 
branch 'master':
bpo-34864: Document two IDLE on MacOS issues. (GH-10456)
https://github.com/python/cpython/commit/50ff02b43145f33f8e28ffbfcc6a9d15c4749a64


--

___
Python tracker 

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



Error in installing "conda-build"

2018-11-10 Thread tommy yama
Hi there,

Anyone encountered the same problem?

ommand "python setup.py egg_info" failed with error code 1 in
/private/tmp/pip-install-ReWrqJ/conda-build/


Your advices would be appreciated.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35140] encoding problem: coding:gbk cause syntaxError

2018-11-10 Thread Ma Lin


Ma Lin  added the comment:

I debugged, this is a duplicate of issue 20844 and issue 27797.
Eryk Sun analyzed this detailedly, it's a problem of Windows CRT.

--
versions: +Python 3.5, Python 3.6, Python 3.8

___
Python tracker 

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



[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-10 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +9731
stage:  -> patch review

___
Python tracker 

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



[issue19217] Calling assertEquals for moderately long list takes too long

2018-11-10 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

I create this patch on 3.7

--

___
Python tracker 

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



[issue21603] IDLE: Document SaveAs extension display on Mac

2018-11-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I should have mentioned before, but forgot, that Windows, by default, hides 
file name extensions in File Explorer.  (The 'type' column supposedly makes 
them redundant.)  If they are hidden, they are also hidden in the Save As name 
box, as described for MacOS.  So I think this is worth a sentence in the doc.

After 4 years, I want to close this with or without an edit (for this and/or 
#4832).  The current SaveAs entry is

   Save the current window with a Save As dialog.  The file saved becomes the
   new associated file for the window.

(Ned has previously said leave this alone for both issues.)  Proposal:

Save the contents of the current window with a Save As dialog.  (If your file 
manager is set to hide extensions, the current extension will be omitted in the 
file name box.)  If the new filename has no '.', '.py' and '.txt' will be added 
for Python and text files.  (On MacOS Aqua, '.py' is added for any type.)  The 
file saved becomes the new associated file for the window.

Opinions?

--
nosy: +taleinat -Saimadhav.Heblikar

___
Python tracker 

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



[issue33878] Doc: Assignment statement to tuple or list: case missing.

2018-11-10 Thread Emily Morehouse


Change by Emily Morehouse :


--
nosy: +emilyemorehouse

___
Python tracker 

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



[issue19217] Calling assertEquals for moderately long list takes too long

2018-11-10 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

Hi!

I see that this issue have a pr (https://github.com/python/cpython/pull/10034) 
opened 20 days ago. So, I want to continue work on this (my first pr).

I use the vstinner's patch and I make two little change (attached patch):

1) first I add the "expected" and "got" mentioned by vstinner. 
2) I quit the @@ -1 +1 @@ in case of the input are list or tuple, because IMO 
this does not give me lot of information (and could be confuse, because I can 
interpret that the lists differ on the first element)

This is the output for the vstinner test case. 

What do you think?

--
nosy: +eamanu
Added file: https://bugs.python.org/file47921/issue_19217.diff

___
Python tracker 

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



[issue35104] IDLE: On macOS, Command-M minimizes & opens "Open Module..."

2018-11-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#21359, reported by Ned in 4/2018, is about "Cmd-Shift-Z, has the same effect 
as the Undo accelerator, Cmd-Z"  So there may be a general problem with 
Cmd-Shift == Cmd.

--

___
Python tracker 

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



[issue28054] Diff for visually comparing actual with expected in mock.assert_called_with.

2018-11-10 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

+1 for extending the unittest display niceties to mock.

--
nosy: +rhettinger

___
Python tracker 

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



[issue35196] IDLE text squeezer is too aggressive and is slow

2018-11-10 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

By the way, I really appreciate the work you all are putting into IDLE.  It can 
definitely benefit from some love and attention.

--

___
Python tracker 

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



[issue35196] IDLE text squeezer is too aggressive and is slow

2018-11-10 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> This sounds like macOS's new "Prefer tabs when opening
> documents" system preference, which breaks IDLE in various 
> ways; see issue34864.  It should be disabled when using IDLE.

Thanks for the link.  I couldn't figure out what was happening with the 
student's computer and why it only happened to one person.

--

___
Python tracker 

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



[issue23220] IDLE: Document how Shell displays user code output

2018-11-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

In the patch for #33000, to cover MacOS behavior, I changed the comment about 
control chars from 'replaced' to 'replaced or deleted' Users can fill in the 
details by comparing IDLE on their system to a particular console or terminal.

--
resolution:  -> fixed
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



[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth


bob moth  added the comment:

Here is the source, just simply Turtles...

https://github.com/grantjenks/free-python-games 


Attached life.py and life2.py

I don't know what cause the problem. I suspect
there is more of a problem than just alt-Q 

> On Nov 10, 2018, at 15:08, Bob Moth  wrote:
> 
> send to you?
> 
> .
> 
> 
>> On Nov 10, 2018, at 14:41, Eric V. Smith  wrote:
>> 
>> 
>> Eric V. Smith  added the comment:
>> 
>> Please create a small program that reproduces the problem. You should strip 
>> out everything that isn't needed. There's no way we can guess the problem 
>> without seeing the code.
>> 
>> --
>> nosy: +eric.smith
>> 
>> ___
>> Python tracker 
>> 
>> ___

--

___
Python tracker 

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



[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth


bob moth  added the comment:

send to you?

.

> On Nov 10, 2018, at 14:41, Eric V. Smith  wrote:
> 
> 
> Eric V. Smith  added the comment:
> 
> Please create a small program that reproduces the problem. You should strip 
> out everything that isn't needed. There's no way we can guess the problem 
> without seeing the code.
> 
> --
> nosy: +eric.smith
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread Eric V. Smith


Eric V. Smith  added the comment:

Please create a small program that reproduces the problem. You should strip out 
everything that isn't needed. There's no way we can guess the problem without 
seeing the code.

--
nosy: +eric.smith

___
Python tracker 

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



[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2018-11-10 Thread Martin Panter

Martin Panter  added the comment:

Looks like this is about about making “RawIOBase.read” delegate to “readinto” 
with a “bytes” object. If so, there’s more discussion in Issue 15903.

--
nosy: +martin.panter

___
Python tracker 

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



[issue35196] IDLE text squeezer is too aggressive and is slow

2018-11-10 Thread Tal Einat


Tal Einat  added the comment:

Raymond, thanks for bringing up all of these issues.  This kind of input from 
people using IDLE extensively for teaching is extremely useful.  I'll leave it 
to Terry to decide how to manage this list, but I promise to do my best (with 
my limited time) to resolve the worst of these.

A few quick notes:

> However, recently a student got into a new-tabbed mode and there didn't seem 
> to be any way to turn it off.  It became impossible to see code and output or 
> error messages at the same time.  This devastated the learner's experience.

This sounds like macOS's new "Prefer tabs when opening documents" system 
preference, which breaks IDLE in various ways; see issue34864.  It should be 
disabled when using IDLE.

> FWIW, I think the squeezer focused on the wrong problem.  In general, I've 
> never had a problem with too many *lines* of output. [...]  The real problem 
> with IDLE was excessive wide output on a *single* line [...]  That tends to 
> cripple IDLE because line wrap logic seems to be computationally expensive 
> for scrolling text windows.  The effect persists even after the offending 
> text has scrolled off and is no longer visible.

This is exactly the main rationale for Squeezer; it takes wrapping into account 
when counting lines precisely for this reason.  This may not be working 
properly in some cases due to issue35208, which I discovered only yesterday and 
for which a PR is now ready with a fix.

--

___
Python tracker 

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



[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

2018-11-10 Thread Javier Castillo II


Change by Javier Castillo II :


--
pull_requests: +9730

___
Python tracker 

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



[issue35196] IDLE text squeezer is too aggressive and is slow

2018-11-10 Thread Tal Einat


Change by Tal Einat :


--
keywords: +patch
pull_requests: +9729
stage:  -> patch review

___
Python tracker 

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



[issue10486] http.server doesn't set all CGI environment variables

2018-11-10 Thread Pierre Quentel


Change by Pierre Quentel :


--
nosy: +quentel

___
Python tracker 

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



[issue35207] Disallow expressions like (a) = 42

2018-11-10 Thread Guido van Rossum


Guido van Rossum  added the comment:

Hm, I was thinking of https://github.com/python/cpython/pull/9212/, but
that's about keyword arg (where the interpreter incorrectly allowed
f((kw)=expr). But on thinking about it more I believe we should allow (a) =
(b), so there is no code change required. Sorry for the false alarm.

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

One other thought:  We should add a note to the docs for all of the 
serialization formats saying that we specifically disclaim that they will 
always generate exactly the same output byte-for-byte.  When Serhiy made some 
small optimizations to the encoding of pickles, it would have broken any test 
that checked byte-level equality rather than semantic level equality (checked 
by making sure the pickle/unpickle steps would round-trip without loss of 
information).

--

___
Python tracker 

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



[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

2018-11-10 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +9728
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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Raymond's words convinced me, but if it is needed for preserving compatibility 
in tests, here is PR 10452 which adds support for the sort_attrs argument in 
XML serializing methods.

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9727

___
Python tracker 

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



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-10 Thread Dragoljub


Dragoljub  added the comment:

@cgohlke compared the statement df2 = pd.read_csv(csv) on Python 3.7.0a3 and a4 
in the Visual Studio profiler. The culprit is the isdigit function called in 
the parsers extension module. On 3.7.0a3 the function is fast at ~8% of 
samples. On 3.7.0a4 the function is slow at ~64% samples because it calls the 
_isdigit_l function, which seems to update and restore the locale in the 
current thread every time...

3.7.0a3:
Function Name   Inclusive Samples   Exclusive Samples   Inclusive 
Samples % Exclusive Samples % Module Name
 + [parsers.cp37-win_amd64.pyd] 705 347 28.52%  14.04%  
parsers.cp37-win_amd64.pyd
   isdigit  207 207 8.37%   8.37%   ucrtbase.dll
 - _errno   105 39  4.25%   1.58%   ucrtbase.dll
   toupper  24  24  0.97%   0.97%   ucrtbase.dll
   isspace  21  21  0.85%   0.85%   ucrtbase.dll
   [python37.dll]   1   1   0.04%   0.04%   python37.dll
3.7.0a4:
Function Name   Inclusive Samples   Exclusive Samples   Inclusive 
Samples % Exclusive Samples % Module Name
 + [parsers.cp37-win_amd64.pyd] 8,613   478 83.04%  4.61%   
parsers.cp37-win_amd64.pyd
 + isdigit  6,642   208 64.04%  2.01%   ucrtbase.dll
 + _isdigit_l   6,434   245 62.03%  2.36%   ucrtbase.dll
 + _LocaleUpdate::_LocaleUpdate 5,806   947 55.98%  9.13%   ucrtbase.dll
 + __acrt_getptd2,121   1,031   20.45%  9.94%   ucrtbase.dll
   FlsGetValue  647 647 6.24%   6.24%   KernelBase.dll
 - RtlSetLastWin32Error 296 235 2.85%   2.27%   ntdll.dll
   _guard_dispatch_icall_nop101 101 0.97%   0.97%   ucrtbase.dll
   GetLastError 46  46  0.44%   0.44%   KernelBase.dll
 + __acrt_update_multibyte_info 1,475   246 14.22%  2.37%   ucrtbase.dll
 - __crt_state_management::get_current_state_index  1,229   513 11.85%  
4.95%   ucrtbase.dll
 + __acrt_update_locale_info1,263   235 12.18%  2.27%   ucrtbase.dll
 - __crt_state_management::get_current_state_index  1,028   429 9.91%   
4.14%   ucrtbase.dll
   _ischartype_l383 383 3.69%   3.69%   ucrtbase.dll

--

___
Python tracker 

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



[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread Ned Deily


Change by Ned Deily :


--
nosy: +gregorlingl, willingc

___
Python tracker 

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



[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth


New submission from bob moth :

Running life.py from the Free Python Games requires
alt-Q twice, and the GUI keeps running after System.exit.

Running life2.py, (which is my clone, and I will happily 
share it if you want a great stress tester that gobbles
100% of a CPU core for as long as you want,) doesn't
respond to alt-Q and requires a force quit.

--
components: Tkinter, macOS
files: turtle shutdown problem.txt
messages: 329640
nosy: bmoth, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Turtle Shutdown Problem(s)
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file47920/turtle shutdown problem.txt

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> Being able to sort attributes would be a very useful addition 
> to the prettyxml method.

+1 This seems reasonable to me.

I misread it and thought it was much broader than prettyxml().

--

___
Python tracker 

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



[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2018-11-10 Thread tzickel


tzickel  added the comment:

I think that if someone tries that this code will raise an exception at the 
resize part (since the reference will be higher than one), a check can be added 
and in this case fallback to the previous behaviour, If it's a required check, 
I can add it.

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Ned Batchelder


Ned Batchelder  added the comment:

Words like flawed from the outset, fundamentally flawed, fragile, and 
ill-conceived are being thrown around, which does not help the discussion.  Can 
we focus on the question of whether it's reasonable to add sorted attributes as 
an option?

This idea exactly parallels the sort_keys option in the json module.  It 
precisely solves the problem I have.  The code change is small.  I'll even 
volunteer to make the pull request.

I'm not suggesting that we get rid of the new feature of preserving the user's 
attributes order. I'm not even suggesting that the new feature needs to be the 
non-default option. I'd just like a way to sort attributes in XML output.

--

___
Python tracker 

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



[issue28054] Diff for visually comparing actual with expected in mock.assert_called_with.

2018-11-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I think this can be useful for keyword arguments as in the original suggestion. 
I tried an initial implementation as below to use difflib to get the difference 
like unittest if there are keyword args to be checked against the caller list 
since the absence of one or other generates a diff with empty {} which I find 
little distracting during my initial iterations. I would like to know if there 
is still sufficient interest in getting this to core only for keyword arguments 
given that there is pytest-mock with specialized error reporting handling more 
cases : 
https://github.com/pytest-dev/pytest-mock#improved-reporting-of-mock-call-assertion-errors


$ ./python.exe -q
>>> from unittest.mock import Mock
>>> m = Mock()
>>>
>>> m(foo='bar', bar='baz')

>>>
>>> m.assert_called_with(bar='baz', foo='car')
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/unittest/mock.py", 
line 838, in assert_called_with
raise AssertionError(_error_message()) from cause
AssertionError: Expected call: mock(bar='baz', foo='car')
Actual call: mock(bar='baz', foo='bar')
- {'bar': 'baz', 'foo': 'car'}
?^

+ {'bar': 'baz', 'foo': 'bar'}
?^


diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index a9c82dcb5d..8603b4ac4c 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -749,6 +749,20 @@ class NonCallableMock(Base):
 call_args = self.call_args
 if len(call_args) == 3:
 call_args = call_args[1:]
+
+diffMsg = ''
+if kwargs and self.call_args[1]:
+import difflib
+
+seq1 = kwargs
+seq2 = self.call_args[1]
+diffMsg = '\n' + '\n'.join(
+difflib.ndiff(pprint.pformat(seq1).splitlines(),
+  pprint.pformat(seq2).splitlines()))
+
+if diffMsg:
+message += diffMsg
+
 actual_string = self._format_mock_call_signature(*call_args)
 return message % (expected_string, actual_string)

--
nosy: +xtreak

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Tal Einat


Tal Einat  added the comment:

>> ISTM that the coverage tests as currently written aren't good tests.

> Hi, I'd like to remind everyone to be open, respectful, and considerate. 
> There are ways to describe hos things that can be improved. There is no need 
> to denigrate other people's work.

I find this to be an overreaction in this case.  Sure, it could have been 
worded more positively, but the negativity was very mild; the tests weren't 
even being called "bad", not to mention overly negative wording e.g. "horrible".

Further, you omitted the followup explanation of *what about the tests isn't 
good*:

> Otherwise, the tests are relying on a non-guaranteed implementation detail.

IMO we shouldn't require ourselves to be overly careful in our wording, such as 
avoiding any negative wording entirely.

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Mariatta Wijaya


Mariatta Wijaya  added the comment:

IMO adding optional keyword argument to make it compatible with previous 
version is reasonable request, and it seems early on several other core devs 
also agree with it.

--

___
Python tracker 

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



[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2018-11-10 Thread Johan Dahlin


Change by Johan Dahlin :


--
nosy: +Johan Dahlin

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Mariatta Wijaya


Mariatta Wijaya  added the comment:

> ISTM that the coverage tests as currently written aren't good tests.

Hi, I'd like to remind everyone to be open, respectful, and considerate. There 
are ways to describe hos things that can be improved. There is no need to 
denigrate other people's work.

--
nosy: +Mariatta

___
Python tracker 

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



[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2018-11-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

When you remove the original reference, the second reference keeps the 
bytearray object live. When you remove or just resize the bytes object, the 
memoryview object becomes referring to freed memory.

--

___
Python tracker 

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



Re: Error in installing "pyperclip" module

2018-11-10 Thread boB Stepp
On Sat, Nov 10, 2018 at 11:45 AM Joel Goldstick
 wrote:
>
> On Sat, Nov 10, 2018 at 12:29 PM boB Stepp  wrote:

> > Unfortunately this is a text only mailing list, which disallows
> > attachments.
>
> One maybe small quibble.  I don't think it is unfortunate at all that
> this mailing list is text only...

Hi, Joel!  Since we are being _precise_ my "Unfortunately" was meant
to be viewed from the OP's perspective, not mine.  Sorry that I was
not clear about that.



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


Re: Error in installing "pyperclip" module

2018-11-10 Thread Joel Goldstick
On Sat, Nov 10, 2018 at 12:29 PM boB Stepp  wrote:
>
> Greetings Hemant!
>
> On Sat, Nov 10, 2018 at 10:31 AM Hemant Chauhan
>  wrote:
> >
> > Hi team,
> > I’m having trouble in installing pyperclip  module through command line.
> > I just upgraded to the latest version.
> > Here’s the SS of command line showing error.
>
> Unfortunately this is a text only mailing list, which disallows
> attachments.

One maybe small quibble.  I don't think it is unfortunate at all that
this mailing list is text only.  Coding is text.  It is not screen
shots.  If a questioner is first thinking of pasting screen shots or
attaching files to a mailing list like this, they should be informed
what a useless method this is, and how they can provide information
that is useful, and that can help others help them.  This is what this
response does.  So, I don't mean to be snarky

So no one will see your screenshot.  Instead you should
> copy and paste into a *plain text* email what you entered on the
> command line and likewise copy and paste the resulting error messages
> into the email.  Please state your operating system and version of
> Python that you are using.  With that information I am sure someone
> here will be able to help you.
>
> > P.S. – I’m a beginner in Python , it’s the first programming language I 
> > started with.
>
> If you are just starting out, a better forum for a new learner to
> programming and Python would be the Python Tutor mailing list.
> Subscription information can be found at
> https://mail.python.org/mailman/listinfo/tutor  However, people on the
> this main list are quite friendly and helpful to newbies as well.  In
> fact many here actively monitor and help out on the Tutor list.
> --
> boB
> --
> https://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2018-11-10 Thread tzickel


tzickel  added the comment:

How is that different from the situation today ? The bytearray passed to 
readinto() is deleted before the function ends.

This revision simply changes 2 mallocs and a memcpy to 1 malloc and a potential 
realloc.

--

___
Python tracker 

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



[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2018-11-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

What if readinto() save a reference to its argument?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2018-11-10 Thread tzickel


Change by tzickel :


--
nosy: +benjamin.peterson, stutzbach

___
Python tracker 

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



Re: Error in installing "pyperclip" module

2018-11-10 Thread boB Stepp
Greetings Hemant!

On Sat, Nov 10, 2018 at 10:31 AM Hemant Chauhan
 wrote:
>
> Hi team,
> I’m having trouble in installing pyperclip  module through command line.
> I just upgraded to the latest version.
> Here’s the SS of command line showing error.

Unfortunately this is a text only mailing list, which disallows
attachments.  So no one will see your screenshot.  Instead you should
copy and paste into a *plain text* email what you entered on the
command line and likewise copy and paste the resulting error messages
into the email.  Please state your operating system and version of
Python that you are using.  With that information I am sure someone
here will be able to help you.

> P.S. – I’m a beginner in Python , it’s the first programming language I 
> started with.

If you are just starting out, a better forum for a new learner to
programming and Python would be the Python Tutor mailing list.
Subscription information can be found at
https://mail.python.org/mailman/listinfo/tutor  However, people on the
this main list are quite friendly and helpful to newbies as well.  In
fact many here actively monitor and help out on the Tutor list.
-- 
boB
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2018-11-10 Thread tzickel


Change by tzickel :


--
keywords: +patch
pull_requests: +9726
stage:  -> patch review

___
Python tracker 

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



[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2018-11-10 Thread tzickel


New submission from tzickel :

There was a TODO in the code about this:

https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Modules/_io/iobase.c#L909

--
components: IO
messages: 329629
nosy: tzickel
priority: normal
severity: normal
status: open
title: Use bytes + memoryview + resize instead of bytesarray + array in 
io.RawIOBase.read
type: performance
versions: Python 3.8

___
Python tracker 

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



[issue35209] Crash with tkinter text on osx

2018-11-10 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the report and for the investigation. The Tk crash described in 
Issue32481 (and many other earlier issues) is due to a very old bug in Tk 8.5.x 
for macOS.  While this bug has been fixed in more recent versions of 8.5.x and 
in 8.6.x, the version of Tk shipped by Apple with macOS has not been updated 
since Mac OS X 10.7 (!) and so apps that use it will see this crash.  Which Tk 
a particular instance of Python tkinter will link with depends on how that 
Python was built.  In general, there are ways to check which one is in use.  
The easiest is, when the app is running, go to the macOS menu bar, select the 
app name (the second menu row which, for standalone Python scripts will likely 
be labeled "Python"), then choose the first menu item under it, the "About " item.  Unless the app itself has defined its own About menu (like 
IDLE.app does) that should bring up a Tk app window that says what version of 
Tk is running.  (The IDLE.app About window also says what version of
  Tk is in use.)  If the version is 8.5.9, the app is most likely using the 
buggy system Tk.  It's also possible for the Python program to get the Tk 
version in-use at runtime; see tkVersionWarning in IDLE for an example:

https://github.com/python/cpython/blob/v3.7.1/Lib/idlelib/macosx.py#L69

An even more definite confirmation is to examine the macOS crash report 
produced (either on screen or saved at ~/Library/Logs/DiagnosticReports and 
browsable with Console.app).  Search the Binary Images section for the specific 
Tk file name in use.  If the line found has Tk (8.5.9 - 8.5.9) and 
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk in it, you know that 
the culprit is the Apple-supplied Tk.  If the file name is something else, like 
/Library/Frameworks/Tk.framework/Versions/8.5/Tk, then the system Tk is not to 
blame.


There is more info here:
https://www.python.org/download/mac/tcltk/

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> I can see that there are ways that I can change my tests. 
> I see that there are third-party libraries that can help me with this.

Please do that.  That is good design and uses all the tools the way they are 
meant to be used.


> But changing the behavior of the standard library, without a 
> way to retain the old behavior, and asking people to adapt 
> by changing their test suites, seems a bit cavalier.

Several thoughts:

* We are not cavalier.  We generally work very hard to preserve guaranteed 
behaviors.  For example, see all the work done on version numbering random 
seeding or pickle versions.  That said, we cannot be handcuffed by 
over-reliance on implementation details; otherwise, we wound never be able to 
improve the library.  The whole point of encapsulation and abstraction is to 
provide freedom to improve the internals and add capabilities without breaking 
the API contract.

* It is reasonable for folks to change tests which were flawed from the outset 
(just like when hash randomization was introduced, it scrambled key order and 
broke any tests that relied on key order).  FWIW, we remove or fix fragile or 
ill conceived tests in our own test suite all the time.

* We could add an option to sort attributes but this just clutters the API and 
turns an old quirk into a permanent fixture.  Instead, I recommend adding a 
documentation link to a standards compliant canonicalization tool.

> Let's honor Python's tradition of standard library stability, 
> and give me a way to keep the behavior I used to have.

The library IS stable with respect to documented guaranteed behaviors.  With 
respect to everything else, our tradition is make improvements where we can.  
We don't backport these changes so that mirco-releases retain their quirks.  
But point releases are allowed and encouraged to make improvements (i.e. this 
is for 3.8 and later).

In this case, there was never an API contract to sort attributes.  In a way, 
this is no different than when we improve a repr (see match objects for 
example).  That would break tests that incorrectly relied on an exact output 
match.  

When a test stops matching what a tool does, the one that is incorrect is the 
one that should be changed.  If there is an API contract, the tool needs to 
change to match.  However, if the test is fundamentally flawed, it should be 
one to change.

--

___
Python tracker 

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



Error in installing "pyperclip" module

2018-11-10 Thread Hemant Chauhan


Hi team,
I’m having trouble in installing pyperclip  module through command line.
I just upgraded to the latest version.
Here’s the SS of command line showing error.
Peace.
Regards,
Hemant

P.S. – I’m a beginner in Python , it’s the first programming language I started 
with.


[cid:image002.png@01D478F2.412C2D60]

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


[issue33826] enable discovery of class source code in IPython interactively defined classes

2018-11-10 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


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

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Ned Batchelder


Ned Batchelder  added the comment:

I can see that there are ways that I can change my tests.  I see that there are 
third-party libraries that can help me with this.

But changing the behavior of the standard library, without a way to retain the 
old behavior, and asking people to adapt by changing their test suites, seems a 
bit cavalier.

Why not add an option to keep the sorting that the standard library has always 
had?  I'll even be OK with changing the default behavior to unsorted, just give 
me a way to explicitly keep the behavior its always had in the past.

The discussion so far has 1) hypothesized that test suites would be broken, and 
2) claimed that no one needs the output in sorted order.  I can tell you that 
my test suite is broken, and that removing the sorted order is what broke it.

The json module has the option to sort keys.  toprettyxml already has options 
well outside the needs of XML semantics (indent and newl).

Let's honor Python's tradition of standard library stability, and give me a way 
to keep the behavior I used to have.

--

___
Python tracker 

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



Re: Cloud platform with GPU

2018-11-10 Thread Andrew Z
Denis,
 ..none of them was very satisfactory.
Sharing your requirements will be a good first step for getting good
answers.

On Sat, Nov 10, 2018, 02:26 denis meng  Good day all,
>
> I am looking for a good cloud platform to do all my python development for
> machine learning with GPU availability, so far I have used Amazon ec2,
> google colab, kaggle etc but none of them was very satisfactory.
>
> Anyone has good experience with other options? please share and TIA
>
> Denis
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue33826] enable discovery of class source code in IPython interactively defined classes

2018-11-10 Thread Thomas Viehmann


Change by Thomas Viehmann :


--
resolution: duplicate -> 

___
Python tracker 

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



[issue35198] Build issue while compiling cpp files in AIX

2018-11-10 Thread Michael Felt


Michael Felt  added the comment:

Getting farther - after "hacking" pandas setup.py to not force a gcc flag.

Still not getting as far, I think, as the initial poster.

...
/opt/include/python3.8dm -c pandas/_libs/parsers.c -o 
build/temp.aix-6.1-3.8-pydebug/pandas/_libs/parsers.o
xlc_r -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -I/opt/include -O2 
-qmaxmem=-1 -qarch=pwr5 -Ipandas/_libs/src/klib -Ipandas/_libs/src 
-I/opt/lib/python3.8/site-packages/numpy/core/include 
-I/opt/include/python3.8dm -c pandas/_libs/src/parser/tokenizer.c -o 
build/temp.aix-6.1-3.8-pydebug/pandas/_libs/src/parser/tokenizer.o
"/opt/include/python3.8dm/pyconfig.h", line 1538.9: 1506-236 (W) Macro name 
_POSIX_C_SOURCE has been redefined.
"/opt/include/python3.8dm/pyconfig.h", line 1538.9: 1506-358 (I) 
"_POSIX_C_SOURCE" is defined on line 160 of /usr/include/standards.h.
"/opt/include/python3.8dm/pyconfig.h", line 1553.9: 1506-236 (W) Macro name 
_XOPEN_SOURCE has been redefined.
"/opt/include/python3.8dm/pyconfig.h", line 1553.9: 1506-358 (I) 
"_XOPEN_SOURCE" is defined on line 156 of /usr/include/standards.h.
"/usr/include/unistd.h", line 171.17: 1506-343 (S) Redeclaration of lseek64 
differs from previous declaration on line 169 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 171.17: 1506-050 (I) Return type "long long" in 
redeclaration is not compatible with the previous return type "long".
"/usr/include/unistd.h", line 171.17: 1506-377 (I) The type "long long" of 
parameter 2 differs from the previous type "long".
"/usr/include/sys/lockf.h", line 64.20: 1506-343 (S) Redeclaration of lockf64 
differs from previous declaration on line 62 of "/usr/include/sys/lockf.h".
"/usr/include/sys/lockf.h", line 64.20: 1506-377 (I) The type "long long" of 
parameter 3 differs from the previous type "long".
"/usr/include/unistd.h", line 809.33: 1506-343 (S) Redeclaration of ftruncate64 
differs from previous declaration on line 807 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 809.33: 1506-377 (I) The type "long long" of 
parameter 2 differs from the previous type "long".
"/usr/include/unistd.h", line 845.33: 1506-343 (S) Redeclaration of truncate64 
differs from previous declaration on line 843 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 845.33: 1506-377 (I) The type "long long" of 
parameter 2 differs from the previous type "long".
"/usr/include/unistd.h", line 862.33: 1506-343 (S) Redeclaration of pread64 
differs from previous declaration on line 859 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 862.33: 1506-377 (I) The type "long long" of 
parameter 4 differs from the previous type "long".
"/usr/include/unistd.h", line 863.33: 1506-343 (S) Redeclaration of pwrite64 
differs from previous declaration on line 860 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 863.33: 1506-377 (I) The type "long long" of 
parameter 4 differs from the previous type "long".
"/usr/include/unistd.h", line 942.25: 1506-343 (S) Redeclaration of fclear64 
differs from previous declaration on line 939 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 942.25: 1506-050 (I) Return type "long long" in 
redeclaration is not compatible with the previous return type "long".
"/usr/include/unistd.h", line 942.25: 1506-377 (I) The type "long long" of 
parameter 2 differs from the previous type "long".
"/usr/include/unistd.h", line 943.25: 1506-343 (S) Redeclaration of 
fsync_range64 differs from previous declaration on line 940 of 
"/usr/include/unistd.h".
"/usr/include/unistd.h", line 943.25: 1506-377 (I) The type "long long" of 
parameter 3 differs from the previous type "long".
"pandas/_libs/src/parser/tokenizer.c", line 265.40: 1506-280 (W) Function 
argument assignment between types "long long*" and "unsigned long*" is not 
allowed.
"pandas/_libs/src/parser/tokenizer.c", line 292.30: 1506-280 (W) Function 
argument assignment between types "long long*" and "unsigned long*" is not 
allowed.
"pandas/_libs/src/parser/tokenizer.c", line 323.28: 1506-280 (W) Function 
argument assignment between types "long long*" and "unsigned long*" is not 
allowed.
error: command 'xlc_r' failed with exit status 1
root@x066:[/data/prj/python/pandas-0.23.4]set | grep OBJ
root@x066:[/data/prj/python/pandas-0.23.4]python3
Python 3.8.0a0 (heads/master-dirty:b9498e2367, Nov 10 2018, 13:51:41) [C] on 
aix6
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxsize()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'int' object is not callable
>>> sys.maxsize
2147483647

+
Will uninstall and build a 64-bit python3 and see if that helps.
+

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 

[issue35198] Build issue while compiling cpp files in AIX

2018-11-10 Thread Michael Felt


Change by Michael Felt :


--
versions: +Python 3.8

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> I'm checking that my XML generating code is producing the right XML.

ISTM that the coverage tests as currently written aren't good tests.  Why not 
update the tests to check the generated XML is what the code asked it to 
generate?  Otherwise, the tests are relying on a non-guaranteed implementation 
detail. 

Alternatively, use c14n.Canonicalize[1] which implements standard compliant 
cross-language canonicalization (as opposed to non-guaranteed ad-hoc comparison 
which just happens to work).

[1] https://www.ibm.com/developerworks/xml/library/x-c14n/

Note with attribute order preservation, code now has the ability to produce 
exactly the XML it wants to produce.  The explicit intention of the user is 
honored.

--

___
Python tracker 

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



[issue34628] urllib.request.urlopen fails when userinfo is present in URL

2018-11-10 Thread Niklas Sombert


Niklas Sombert  added the comment:

This behaviour would be better than the current one, yes.

--

___
Python tracker 

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



[issue35198] Build issue while compiling cpp files in AIX

2018-11-10 Thread Michael Felt


Michael Felt  added the comment:

There are, perhaps, other issues as well.

After a build of "master"

a) pip3 install pandas
 - failed to find/download and build numpy
 - after "manual" pip3 install numpy and got to " six, python-dateutil, pytz, 
pandas"

Then:
 Running setup.py install for pandas ... error
Complete output from command /opt/bin/python3.8 -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-install-f5rvzoc0/pandas/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-record-kmi2p9sd/install-record.txt --single-version-externally-managed 
--compile:
...
UPDATING build/lib.aix-6.1-3.8-pydebug/pandas/_version.py
set build/lib.aix-6.1-3.8-pydebug/pandas/_version.py to '0.23.4'
running build_ext
building 'pandas._libs.algos' extension
creating build/temp.aix-6.1-3.8-pydebug
creating build/temp.aix-6.1-3.8-pydebug/pandas
creating build/temp.aix-6.1-3.8-pydebug/pandas/_libs
xlc_r -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -I/opt/include -O2 
-qmaxmem=-1 -qarch=pwr5 -Ipandas/_libs/src/klib -Ipandas/_libs/src 
-I/opt/lib/python3.8/site-packages/numpy/core/include 
-I/opt/include/python3.8dm -c pandas/_libs/algos.c -o 
build/temp.aix-6.1-3.8-pydebug/pandas/_libs/algos.o -Wno-unused-function
xlc_r: 1501-210 (S) command option Wno-unused-function contains an 
incorrect subargument
error: command 'xlc_r' failed with exit status 40


Command "/opt/bin/python3.8 -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-install-f5rvzoc0/pandas/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-record-kmi2p9sd/install-record.txt --single-version-externally-managed 
--compile" failed with error code 1 in /tmp/pip-install-f5rvzoc0/pandas/

So, it looks like, using xlc - I may not have even gotten as far window.gcc due 
to issues in pandas (the incorrect flag -Wno-used-function - have to find where 
that came from!)

--
Added file: https://bugs.python.org/file47919/pip3_build_pandas_0001.text

___
Python tracker 

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



[issue23930] http.cookies.SimpleCookie doesn't parse comma-only separated cookies correctly

2018-11-10 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

This is not a valid cookie string and I think neither Django nor Nginx would 
understand this cookie correctly.

On the other hand, per RFC 6265 the comma is a forbidden character in a cookie 
value (https://tools.ietf.org/html/rfc6265#section-4.1.1):

cookie-pair   = cookie-name "=" cookie-value
cookie-name   = token
cookie-value  = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
cookie-octet  = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
   ; US-ASCII characters excluding CTLs,
   ; whitespace DQUOTE, comma, semicolon,
   ; and backslash

so there is no official way to parse the given string (when a comma is present 
in the value, the cookie should be encoded as base 64).

Since this is not a valid cookie string anyway, I think the solution proposed 
by Kyle is appropriate.

--

___
Python tracker 

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



[issue35209] Crash with tkinter text on osx

2018-11-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks a lot remi_bertholet. I think this is related to issue32481 . I will 
wait for Ned's confirmation on how Homebrew packages Python 3.7 with Tcl/Tk and 
if it's different from python.org Mac installers.

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Ned Batchelder


Ned Batchelder  added the comment:

This is exactly the situation Stefan was talking about: "However, I still think 
that Serhiy is right: this change would break code, and in particular test code 
that compares XML output. Having to deal with two different "correct" 
serialisations in tests depending on the Python version is annoying at best."

He says comparison should be done with true canonicalization (C14N).  Does that 
exist in the standard library?  With sorted keys, we had a form of good-enough 
canonicalization.  Now we don't.

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Ned Batchelder


Ned Batchelder  added the comment:

Diego, they are my tests in the coverage.py test suite.  I'm checking that my 
XML generating code is producing the right XML.

--

___
Python tracker 

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



[issue35209] Crash with tkinter text on osx

2018-11-10 Thread remi bertholet


remi bertholet  added the comment:

with the python installer I do not have the problem...

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Diego Rojas


Diego Rojas  added the comment:

Ned, exactly what test fails? I ran all the test suite in local and all was ok, 
even all passed in the CI build.

--

___
Python tracker 

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



[issue35209] Crash with tkinter text on osx

2018-11-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks, can you please try the mac installer from python.org to see if the 
crash is till present : https://www.python.org/downloads/release/python-371/

Please remove the original email content while replying from email unless the 
relevant parts need to be quoted. The content is added to the tracker making 
the reply hard to read.

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Ned Batchelder


Ned Batchelder  added the comment:

To provide a little more context: coverage.py has tests that the XML reports it 
generates are correct.  It does this by comparing the result to saved XML 
files.  On Python versions up to 3.7, the file compares correctly.  It has 
sorted attributes generated by minidom.  Now on Python 3.8, the comparison 
fails.

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Ned Batchelder


Ned Batchelder  added the comment:

(sorry, to sort the attributes.)

--

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Ned Batchelder


Ned Batchelder  added the comment:

Hi, this broke my tests, just as earlier comments predicted.

Can we get an optional argument to sort the keys?  The json module lets us sort 
keys even though it's irrelevant to JSON.  Being able to sort attributes would 
be a very useful addition to the prettyxml method.

--
nosy: +nedbat

___
Python tracker 

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



[issue35209] Crash with tkinter text on osx

2018-11-10 Thread remi bertholet

remi bertholet  added the comment:

Yes I use homebrew.

I have done :
brew update
brew upgrade

python 3.7.1 installed :
Python 3.7.1 (default, Nov  6 2018, 18:45:35)
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

but I still have the crash with this version :

2018-11-10 15:37:54.784 Python[35388:488345] *** Terminating app due to 
uncaught exception 'NSRangeException', reason: '-[__NSCFConstantString 
characterAtIndex:]: Range or index out of bounds'
*** First throw call stack:
(
0   CoreFoundation  0x7fff2b04123b 
__exceptionPreprocess + 171
1   libobjc.A.dylib 0x7fff522d2c76 
objc_exception_throw + 48
2   CoreFoundation  0x7fff2b0d2d5d 
+[NSException raise:format:] + 205
3   CoreFoundation  0x7fff2afbd236 
-[__NSCFString characterAtIndex:] + 102
4   Tk  0x7fff37721343 
TkpInitKeymapInfo + 731
5   Tk  0x7fff377271a1 
Tk_MacOSXSetupTkNotifier + 798
6   Tcl 0x7fff37621a50 
Tcl_DoOneEvent + 300
7   _tkinter.cpython-37m-darwin.so  0x000106b877ab 
_tkinter_tkapp_mainloop + 256
8   Python  0x0001061e3313 
_PyMethodDef_RawFastCallKeywords + 496
9   Python  0x0001061e7caa 
_PyMethodDescr_FastCallKeywords + 82
10  Python  0x000106278bd0 
call_function + 801
11  Python  0x000106271758 
_PyEval_EvalFrameDefault + 6991
12  Python  0x000106279432 
_PyEval_EvalCodeWithName + 1835
13  Python  0x0001061e2874 
_PyFunction_FastCallKeywords + 225
14  Python  0x000106278ba0 
call_function + 753
15  Python  0x000106271771 
_PyEval_EvalFrameDefault + 7016
16  Python  0x000106279432 
_PyEval_EvalCodeWithName + 1835
17  Python  0x00010626fb81 
PyEval_EvalCode + 42
18  Python  0x00010629e6ed run_mod + 54
19  Python  0x00010629d708 
PyRun_FileExFlags + 164
20  Python  0x00010629cdc2 
PyRun_SimpleFileExFlags + 266
21  Python  0x0001062b4adc pymain_main 
+ 5665
22  Python  0x0001062b50ff _Py_UnixMain 
+ 75
23  libdyld.dylib   0x7fff52eec015 start + 1
24  ??? 0x0002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException

> Le 10 nov. 2018 à 15:26, Karthikeyan Singaravelan  a 
> écrit :
> 
> 
> Karthikeyan Singaravelan  added the comment:
> 
> Thanks for the report. I added Ned since it seemed similar to issue32481 but  
> from Python 3.7 the Mac installers from python.org ship with in-built Tcl/Tk 
> 8.6.8 as in which was the reported version 
> https://www.python.org/download/mac/tcltk/#built-in-8-6-8 . I was able to 
> reproduce the crash with attached file on 3.6 which was installed from 
> Homebrew. I was not able to reproduce the crash on Python 3.7.1RC2 installed 
> from python.org. I don't know if installing 3.7 from Homebrew might cause 
> problems with my existing virtual environments to validate my assumption.
> 
> 1. @remi_bertholet Is Python 3.7 installed with Homebrew? 
> 2. Ned, does Python 3.7 that is installed from Homebrew ship with in-built 
> Tcl/Tk similar to Mac installers from python.org?
> 
> --
> nosy: +xtreak
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface

2018-11-10 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:

The separation may look arbitrary, but the idea is quite simple. Only those 
classes with few methods support structural checks. Those classes have few 
independent abstract methods (or even just one method), while in classes with 
large APIs like `Sequence`, the methods are not logically independent, so you 
can't say a class is 100% a `Sequence` even if types/signatures of all methods 
are correct, because e.g. `__contains__()` and `index()` should behave in 
agreement with `__getitem__()`.

We might explicitly document which ABCs support structural checks, and which 
require explicit subclassing. Also we might clarify what "abstract methods" and 
"mixin methods" mean in the table at the top. In the case of `Sequence` one can 
just implement two abstract methods and the other will behave in a "coordinated 
way". Then, simple purely abstract classes (called "One-trick ponies" in the 
source code) support structural checks.

> The collections.abc — Abstract Base Classes for Containers documentation says:

>> This module provides abstract base classes that can be used to test whether 
>> a class provides a particular interface; for example, whether it is hashable 
>> or whether it is a mapping.

Btw, Mapping also doesn't support structural checks, so the docs are quite 
outdated.

--
nosy: +levkivskyi

___
Python tracker 

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



[issue35209] Crash with tkinter text on osx

2018-11-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. I added Ned since it seemed similar to issue32481 but  
from Python 3.7 the Mac installers from python.org ship with in-built Tcl/Tk 
8.6.8 as in which was the reported version 
https://www.python.org/download/mac/tcltk/#built-in-8-6-8 . I was able to 
reproduce the crash with attached file on 3.6 which was installed from 
Homebrew. I was not able to reproduce the crash on Python 3.7.1RC2 installed 
from python.org. I don't know if installing 3.7 from Homebrew might cause 
problems with my existing virtual environments to validate my assumption.

1. @remi_bertholet Is Python 3.7 installed with Homebrew? 
2. Ned, does Python 3.7 that is installed from Homebrew ship with in-built 
Tcl/Tk similar to Mac installers from python.org?

--
nosy: +xtreak

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2018-11-10 Thread Alexey Izbyshev

Alexey Izbyshev  added the comment:

Victor, you moved declarations of some functions to other headers, but didn't 
include the new headers into files that implement the functions in some cases. 
For example, _PyGILState_Init was moved into 
Include/internal/pycore_lifecycle.h in 
a1c249c40517917d2e0971d55aea8d14a44b2cc8, but it's implemented in 
Python/pystate.c, which doesn't include the new header.

This may lead to subtle problems because the compiler can't check that 
signatures of the declaration and the implementation match. I suggest to use 
-Wmissing-prototypes and -Wmissing-declarations to detect such situations:

../../cpython/Python/pystate.c: At top level:
../../cpython/Python/pystate.c:968:1: warning: no previous prototype for 
‘_PyGILState_Init’ [-Wmissing-prototypes]
 _PyGILState_Init(PyInterpreterState *i, PyThreadState *t)
 ^~~~
../../cpython/Python/pystate.c:988:1: warning: no previous prototype for 
‘_PyGILState_Fini’ [-Wmissing-prototypes]
 _PyGILState_Fini(void)
 ^~~~

Sadly, there are many other similar issues in Python now, but you can at least 
compare the number of warnings before and after your changes.

--
nosy: +izbyshev

___
Python tracker 

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



[issue33944] Deprecate and remove pth files

2018-11-10 Thread Ivan Pozdeev


Ivan Pozdeev  added the comment:

@barry 

> Interdependent namespace packages.  If they get loaded in the wrong order, 
> they can mess up __path__ settings

Actually, when writing the PR, I had a revelation how this could be 
implemented. Via an import hook that would work like a union FS!

In its .pth file, each such package will import the hook's module (which will 
cause the hook to be installed on the first import) and "register" its 
namespaces and/or dependencies with it. The hook will then calculate the 
required load order and enforce it upon import of any of the registered 
namespaces.

--

___
Python tracker 

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



[issue35209] Crash with tkinter text on osx

2018-11-10 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +ned.deily

___
Python tracker 

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



[issue35209] Crash with tkinter text on osx

2018-11-10 Thread remi bertholet


New submission from remi bertholet :

Hello,

If I press the key "Alt-Shift-F" with script it crash all times. I reproduces 
the same crash with Python 2.7. 
To reproduce it, on terminal osx 10.13.6 (17G3025) : 
- run "python3 ScrollFrame.py" 
- Click one time on tk window (it show on foreground)
- Press "Ctrl-Alt-F" (all other alt produce the same crash)
- And you obtain the crash next :

The crash on python 3.7 :

2018-11-10 11:50:30.702 Python[3095:292595] *** Terminating app due to uncaught 
exception 'NSRangeException', reason: '-[__NSCFConstantString 
characterAtIndex:]: Range or index out of bounds'
*** First throw call stack:
(
0   CoreFoundation  0x7fff2b04123b 
__exceptionPreprocess + 171
1   libobjc.A.dylib 0x7fff522d2c76 
objc_exception_throw + 48
2   CoreFoundation  0x7fff2b0d2d5d 
+[NSException raise:format:] + 205
3   CoreFoundation  0x7fff2afbd236 
-[__NSCFString characterAtIndex:] + 102
4   Tk  0x7fff37721343 
TkpInitKeymapInfo + 731
5   Tk  0x7fff377271a1 
Tk_MacOSXSetupTkNotifier + 798
6   Tcl 0x7fff37621a50 
Tcl_DoOneEvent + 300
7   _tkinter.cpython-37m-darwin.so  0x00010dd957ac 
_tkinter_tkapp_mainloop + 256
8   Python  0x00010d3d4f42 
_PyMethodDef_RawFastCallKeywords + 525
9   Python  0x00010d3d981e 
_PyMethodDescr_FastCallKeywords + 82
10  Python  0x00010d46b1a2 
call_function + 615
11  Python  0x00010d4622ec 
_PyEval_EvalFrameDefault + 2579
12  Python  0x00010d46bad1 
_PyEval_EvalCodeWithName + 1837
13  Python  0x00010d3d4474 
_PyFunction_FastCallKeywords + 225
14  Python  0x00010d46b17a 
call_function + 575
15  Python  0x00010d462305 
_PyEval_EvalFrameDefault + 2604
16  Python  0x00010d46bad1 
_PyEval_EvalCodeWithName + 1837
17  Python  0x00010d461851 
PyEval_EvalCode + 42
18  Python  0x00010d490a5f run_mod + 54
19  Python  0x00010d48fa7a 
PyRun_FileExFlags + 164
20  Python  0x00010d48f159 
PyRun_SimpleFileExFlags + 283
21  Python  0x00010d4a6842 pymain_main 
+ 5114
22  Python  0x00010d4a6fd4 _Py_UnixMain 
+ 104
23  libdyld.dylib   0x7fff52eec015 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

The crash on python 2.7 :

2018-11-10 11:51:34.728 Python[3104:294757] *** Terminating app due to uncaught 
exception 'NSRangeException', reason: '-[__NSCFConstantString 
characterAtIndex:]: Range or index out of bounds'
*** First throw call stack:
(
0   CoreFoundation  0x7fff2b04123b 
__exceptionPreprocess + 171
1   libobjc.A.dylib 0x7fff522d2c76 
objc_exception_throw + 48
2   CoreFoundation  0x7fff2b0d2d5d 
+[NSException raise:format:] + 205
3   CoreFoundation  0x7fff2afbd236 
-[__NSCFString characterAtIndex:] + 102
4   Tk  0x7fff37721343 
TkpInitKeymapInfo + 731
5   Tk  0x7fff377271a1 
Tk_MacOSXSetupTkNotifier + 798
6   Tcl 0x7fff37621a50 
Tcl_DoOneEvent + 300
7   _tkinter.so 0x0001026cca77 
Tkapp_MainLoop + 354
8   Python  0x00010236a357 
PyEval_EvalFrameEx + 19822
9   Python  0x0001023653d2 
PyEval_EvalCodeEx + 1562
10  Python  0x00010236e4d7 
fast_function + 290
11  Python  0x00010236a25a 
PyEval_EvalFrameEx + 19569
12  Python  0x0001023653d2 
PyEval_EvalCodeEx + 1562
13  Python  0x000102364db2 
PyEval_EvalCode + 32
14  Python  0x00010238679b run_mod + 49
15  Python  0x000102386842 
PyRun_FileExFlags + 130
16  Python  0x0001023863c4 
PyRun_SimpleFileExFlags + 706
17  Python  0x000102397f44 Py_Main + 
3136
18  libdyld.dylib   

[issue23930] http.cookies.SimpleCookie doesn't parse comma-only separated cookies correctly

2018-11-10 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue10486] http.server doesn't set all CGI environment variables

2018-11-10 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2018-11-10 Thread James Crowther


James Crowther  added the comment:

Hi guys, I am the OP for the stack overflow issue question that sparked this 
bug report. 


In response to Ned's question about configuration of the system:

MacOS 10.14.1
Installed x-code and command line tools
python versions used, varies, 3.5.3, 3.6 and 3.7.0 (sorry can't be more 
specific about 3.6 since I've used a lot. These python configurations have been 
both a bundled python env in blender, and also MacOS's native python 2.7.

So far they've all had the same issue, that being;

socket.gethostname() 

returns a value that seems to be set by the router/switch if 

scutil --set hostname somehostname 

has not been run. What Sorin mentioned on the stack overflow question that he 
didn't here (and I feel is important) is that ping and nslookup work with the 
expected hostname, i.e. the one the user can actually see by going to the 
system preferences and viewing it under the sharing section. Here it is called 
"Computer name", analogous to the same used on windows (which I might add has 
no such issues with hostnames being set to something other than the computer 
name unless a certain command is run).

So the real issue for us, is how come ping and nslookup will work fine with the 
macOS "computer name" but the socket module uses something else, seemingly the 
hostname and computer name are not or loosely connected on macOS perhaps. 

Ideally what we need here is a way to ensure that the user can input the 
computer name of a target machine on another system and that system resolve the 
ip address for the target machine. We can't currently use socket.gethostname 
for this on mac since it seems to require that the scutil --set hostname 
command has been run. Otherwise the hostname that is returned doesn't work with 
socket.gethostbyname(hostname).

Hope this helps, happy to clarify.

J.

--
nosy: +James Crowther

___
Python tracker 

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



[issue35202] Remove unused imports in standard library

2018-11-10 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి

Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) 
 added the comment:

I have raised one more PR; I think i am done with this issue. People who are 
interested can take up from here. ,

For the record, following are some filters to search;

Query to find unused imports
--

find . -type f -name \*.py -print  | xargs flake8 | grep F401
--

Search query 

grep -v warnings | grep -v "\.\*" | grep -v tkinter | grep -v sysconfig | grep 
-v readline | grep -v py3_test_grammar.py  | grep -v java | grep -v rlcompleter 
| grep -v sitecustomize | grep -v __all__ | grep -v test_importlib | grep -v 
async | grep -v test_future | grep -v circular_import | grep -v dataclasses


--

___
Python tracker 

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



[issue35202] Remove unused imports in standard library

2018-11-10 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి

Change by Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) 
:


--
pull_requests: +9725

___
Python tracker 

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



[issue35202] Remove unused imports in standard library

2018-11-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Srinivas, if you thing the issue is finished, please close it.  Otherwise say 
something about what is left to do.

--

___
Python tracker 

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