[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Steve Dower

Steve Dower added the comment:

Did the behavior change for 3.4 after the updates? It seems unlikely.

Zach's right: we need a test to formally state the expectations here.

--

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



[issue24692] types.coroutines() idempotence documentation

2015-07-29 Thread Stefan Behnel

Stefan Behnel added the comment:

Note that the expected usage is not as a function but as a decorator. That 
should be stated in the docs as well. IMHO, users should only do two things 
with whatever the result is: either use it as a Generator (as before), or pass 
it as an argument to await. Everything else is best considered implementation 
details. Well, except for the case of passing a coroutine, which will obviously 
just be passed through (and that answers the original question).

--
nosy: +scoder

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



[issue24692] types.coroutines() idempotence documentation

2015-07-29 Thread Antoine Pietri

Antoine Pietri added the comment:

Lgtm!

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-29 Thread Cyd Haselton

Cyd Haselton added the comment:

Finally found a hacky fix for the no module named _struct found; I copied all 
Modules/*.cpython-34m.so objects to Lib.

Unfortunately I still get a segfault error when test_ctypes is run:

[ 83/390/11] test_ctypes
Fatal Python error: Segmentation fault

Current thread 0xb6f2bec8 (most recent call first):
  File /bld/pyt/cpython-android/Lib/ctypes/test/test_as_parameter.py, line 85 
in test_callbacks
  File /bld/pyt/cpython-android/Lib/unittest/case.py, line 577 in run
  File /bld/pyt/cpython-android/Lib/unittest/case.py, line 625 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1668 in run
  File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1769 in 
_run_suite
  File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1803 in 
run_unittest
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1279 in test_runner
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1280 in 
runtest_inner
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 978 in runtest
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 763 in main
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1564 in 
main_in_temp_cwd  File /bld/pyt/cpython-android/Lib/test/__main__.py, line 3 
in module
  File /bld/pyt/cpython-android/Lib/runpy.py, line 85 in _run_code
  File /bld/pyt/cpython-android/Lib/runpy.py, line 170 in _run_module_as_main
Segmentation fault

--

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Etienne Fortin

Etienne Fortin added the comment:

It is also possible that the root cause is related to Microsoft Windows Update 
2999226 and/or 3065987. The behavior was the same between 3.4 and 3.5 on a 
machine without these updates and is believed to have changed after the install 
of these updates.

--

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Etienne Fortin

Etienne Fortin added the comment:

No the behavior only changed for 3.5. 3.4 works just fine.

--

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
stage:  - test needed

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



[issue24360] improve argparse.Namespace __repr__ for invalid identifiers.

2015-07-29 Thread R. David Murray

R. David Murray added the comment:

If one is going to have a repr at all, I think it should be as accurate as 
practical.  I think this is worthwhile, and favor the existing patch.

--
nosy: +r.david.murray

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



[issue24729] Input and Output tutorial erroneously references default encoding UTF-8

2015-07-29 Thread Alessandro Cucci

Changes by Alessandro Cucci alessandro.cu...@gmail.com:


Added file: http://bugs.python.org/file40057/issue24729_v4.patch

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



[issue23589] Redundant sentence in FAQ

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

@Demian, I agree that there are more improvements we can make. The current 
patch addresses the specific issue of this bug, and if you wished to make a new 
issue with further improvements that would be great. I'm going to apply this 
patch now though.

--
nosy: +rbcollins

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



[issue20557] Use specific asserts in io tests

2015-07-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

+1

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

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



[issue20556] Use specific asserts in threading tests

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

ping @serhiy - there's a bug in the patch. Moving back to patch review.

--
nosy: +rbcollins
stage: commit review - patch review

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



[issue24729] Input and Output tutorial erroneously references default encoding UTF-8

2015-07-29 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Thanks for working through this Alessandro. I've applied your v3 patch and 
added a subsequent commit 20084be60761 to correct the open reference.

--
resolution:  - fixed
status: open - closed

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Petr Viktorin

Petr Viktorin added the comment:

Eric or me.

I'm not sure I understand the description clearly. Etienne, would it be 
possible to write a smaller reproducer, that wouldn't be tied to Windows?
Or is this Windows-only behavior?

--

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Steve Dower

Steve Dower added the comment:

3.5 won't work without 2999226 at all, so ignore that. It's the C runtime.

--

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



[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

So, I think this is worth applying. The discussion around :ipp etc is 
irrelevant here: this patch changes large or negative ints to be a valueerror, 
as non-ints are.

The only question is where. I think this is in the category of 'will only break 
buggy applications' - applications that already handle ValueError to deal with 
bad inputs, will not be broken. Applications that depend on ports outside the 
valid range for ports will be broken, but thats the definition of the bug.

So I propose to apply to 2.7/3.4/3.5/3.6, but I'm going to seek a second 
opinion.

--
nosy: +rbcollins

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



[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2015-07-29 Thread R. David Murray

R. David Murray added the comment:

Because it raises an error where none was raised before, I'd only apply this to 
3.6.  This is especially true since this issue is not a *bug* report, but a 
shouldn't this be more consistent report.  That is, there's no great weight 
(the OP wasn't even sure it should be changed) in favor of the backport, so 
even a small possibility of breaking working code argues against the backport.

(To be clear: by working code I'm envisioning code that is getting that None 
value and using it as an error signal or treating it the same as a missing 
port.  Such code is technically broken but could be working if the default 
port happens to work, or the only out of range values it encounters are 
integers, or it is happy with the exception bubbling up in the non-integer 
cases.)

--
nosy: +r.david.murray

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



[issue24109] Documentation for difflib uses optparse

2015-07-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8777e59a99bd by Berker Peksag in branch '3.5':
Issue #24109: Include Tools/scripts/diff.py instead of duplicating it in 
difflib documentation.
https://hg.python.org/cpython/rev/8777e59a99bd

New changeset aa2517e9f9ce by Berker Peksag in branch 'default':
Issue #24109: Include Tools/scripts/diff.py instead of duplicating it in 
difflib documentation.
https://hg.python.org/cpython/rev/aa2517e9f9ce

--
nosy: +python-dev

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



[issue5594] IDLE startup configuration

2015-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This issue should include any startup configuration, such as making '-s' 
automatic (see #5233). There is no way to pass that when clicking an icon or 
selecting 'Open with Idle' on a context menu.  At present, the General tab has 
just 'Open edit window' *or* 'Open shell window'.

There should should be a new Startup tab.  There would then be room for a Text 
widget, which would be sufficient for simple scripts, such as Mark's example.  
This would be friendlier than a separate file for people who do not even know 
what a console is.

Because user config files are (currently) used for all versions, we would have 
to make sure that default and user config files with the new sections still 
worked with older versions, and that older versions ignore and do not remove 
the new section.

--
versions: +Python 3.6

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



[issue20580] IDLE should support platform-specific default config defaults

2015-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

While I like the fact that my font choice is used by 3 installed and 4 built 
pythons, I am beginning to see possible version problems.  In #5594 I propose 
adding a Startup tab to Idle preferences, but doing so will require carefully 
checking that the corresponding all-release user config file works on releases 
without and with the new tab.

--
versions: +Python 3.6

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



[issue24360] improve argparse.Namespace __repr__ for invalid identifiers.

2015-07-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset dcc00d9ba8db by Berker Peksag in branch 'default':
Issue #24360: Improve __repr__ of argparse.Namespace() for invalid identifiers.
https://hg.python.org/cpython/rev/dcc00d9ba8db

--
nosy: +python-dev

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



[issue24745] Better default font for editor

2015-07-29 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.6

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



[issue24747] ctypes silently truncates ints larger than C int

2015-07-29 Thread eryksun

eryksun added the comment:

I think the window to change this is closed. Section 16.16.2.7 in the docs 
states that for c_int no overflow checking is done. I'm sure there's code 
that relies on that behavior, just as I'm sure there's code that relies on it 
for the default conversion.

That said, it does shine a light on an existing inconsistency. c_int's setfunc 
(i_set in cfield.c) truncates values that are larger than a C long. This is due 
to its use of PyLong_AsUnsignedLongMask in 3.x and PyInt_AsUnsignedLongMask in 
2.x. 

For example:

from ctypes import CDLL, CFUNCTYPE, c_int, c_char_p

gsyms = CDLL(None) # POSIX
printf = CFUNCTYPE(c_int, c_char_p, c_int)(('printf', gsyms))

 n = printf(b'%#x\n', 2**64+1)
0x1

OTOH, without a prototype the default C int conversion fails in this case 
because it calls PyLong_AsUnsignedLong or PyLong_AsLong.

 n = gsyms.printf(b'%#x\n', 2**64+1)
Traceback (most recent call last):
  File stdin, line 1, in module
ctypes.ArgumentError: argument 2: class 'OverflowError': int too long to 
convert

Section 16.16.1.3 states that Python integers are passed as the platforms 
default C int type, their value is masked to fit into the C type. I think 
either ConvParam should change to use PyLong_AsUnsignedLongMask, or the docs 
should state that the number has to be in the inclusive range LONG_MIN to 
ULONG_MAX (e.g. -2**63 to 2**64-1 in 64-bit Linux), else ArgumentError is 
raised.

--
nosy: +eryksun

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



[issue24360] improve argparse.Namespace __repr__ for invalid identifiers.

2015-07-29 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch, Matthias.

--
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[issue24720] Python install help

2015-07-29 Thread node

node added the comment:

Steve had this installed before, however I uninstall it and ran it again, from 
the link you provided, below is the result. It now fail to be installed. Truly 
struggling as to why.



[13C0:105C][2015-07-30T01:45:13]i001: Burn v3.7.3813.0, Windows v6.3 (Build 
9600: Service Pack 0), path: C:\Users\Admin_8_1\Desktop\vc_redist.x64.exe, 
cmdline: ''
[13C0:105C][2015-07-30T01:45:14]i000: Setting string variable 'WixBundleLog' to 
value 
'C:\Users\ADMIN_~1\AppData\Local\Temp\dd_vcredist_amd64_20150730014514.log'
[13C0:105C][2015-07-30T01:45:14]i000: Setting string variable 
'WixBundleOriginalSource' to value 
'C:\Users\Admin_8_1\Desktop\vc_redist.x64.exe'
[13C0:105C][2015-07-30T01:45:14]i000: Setting string variable 
'WixBundleOriginalSourceFolder' to value 'C:\Users\Admin_8_1\Desktop\'
[13C0:105C][2015-07-30T01:45:14]i000: Setting string variable 'WixBundleName' 
to value 'Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.23026'
[13C0:105C][2015-07-30T01:45:14]i100: Detect begin, 10 packages
[13C0:105C][2015-07-30T01:45:14]i000: File search: windows_uCRT_DetectKey, did 
not find path: C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll
[13C0:105C][2015-07-30T01:45:14]i000: File search: 
windows_uCRT_DetectKeyExists, did not find path: 
C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll
[13C0:105C][2015-07-30T01:45:14]i000: Setting numeric variable 
'windows_uCRT_DetectKeyExists' to value 0
[13C0:105C][2015-07-30T01:45:14]i052: Condition '(windows_uCRT_DetectKeyExists 
AND windows_uCRT_DetectKey = v10.0.10137.0)' evaluates to false.
[13C0:105C][2015-07-30T01:45:14]i052: Condition '(windows_uCRT_DetectKeyExists 
AND windows_uCRT_DetectKey = v10.0.10137.0)' evaluates to false.
[13C0:105C][2015-07-30T01:45:14]i052: Condition '(windows_uCRT_DetectKeyExists 
AND windows_uCRT_DetectKey = v10.0.10137.0)' evaluates to false.
[13C0:105C][2015-07-30T01:45:14]i052: Condition '(windows_uCRT_DetectKeyExists 
AND windows_uCRT_DetectKey = v10.0.10137.0)' evaluates to false.
[13C0:105C][2015-07-30T01:45:14]i052: Condition '(windows_uCRT_DetectKeyExists 
AND windows_uCRT_DetectKey = v10.0.10137.0)' evaluates to false.
[13C0:105C][2015-07-30T01:45:14]i052: Condition '(windows_uCRT_DetectKeyExists 
AND windows_uCRT_DetectKey = v10.0.10137.0)' evaluates to false.
[13C0:105C][2015-07-30T01:45:14]i052: Condition '(windows_uCRT_DetectKeyExists 
AND windows_uCRT_DetectKey = v10.0.10137.0)' evaluates to false.
[13C0:105C][2015-07-30T01:45:14]i052: Condition '(windows_uCRT_DetectKeyExists 
AND windows_uCRT_DetectKey = v10.0.10137.0)' evaluates to false.
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: vcRuntimeMinimum_x64, 
state: Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: 
vcRuntimeAdditional_x64, state: Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: Windows81_x86, state: 
Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: Windows81_x64, state: 
Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: Windows8_x86, state: 
Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: Windows8_x64, state: 
Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: Windows7_MSU_x86, 
state: Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: Windows7_MSU_x64, 
state: Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: WindowsVista_MSU_x86, 
state: Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i101: Detected package: WindowsVista_MSU_x64, 
state: Absent, cached: None
[13C0:105C][2015-07-30T01:45:14]i052: Condition 'VersionNT64 = v6.0 OR 
(VersionNT64 = v5.2 AND ServicePackLevel = 1)' evaluates to true.
[13C0:105C][2015-07-30T01:45:14]i199: Detect complete, result: 0x0
[13C0:105C][2015-07-30T01:45:17]i200: Plan begin, 10 packages, action: Install
[13C0:105C][2015-07-30T01:45:17]i052: Condition '(VersionNT64)' evaluates to 
true.
[13C0:105C][2015-07-30T01:45:17]i000: Setting string variable 
'WixBundleRollbackLog_vcRuntimeMinimum_x64' to value 
'C:\Users\ADMIN_~1\AppData\Local\Temp\dd_vcredist_amd64_20150730014514_000_vcRuntimeMinimum_x64_rollback.log'
[13C0:105C][2015-07-30T01:45:17]i000: Setting string variable 
'WixBundleLog_vcRuntimeMinimum_x64' to value 
'C:\Users\ADMIN_~1\AppData\Local\Temp\dd_vcredist_amd64_20150730014514_000_vcRuntimeMinimum_x64.log'
[13C0:105C][2015-07-30T01:45:17]i052: Condition '(VersionNT64)' evaluates to 
true.
[13C0:105C][2015-07-30T01:45:17]i000: Setting string variable 
'WixBundleRollbackLog_vcRuntimeAdditional_x64' to value 
'C:\Users\ADMIN_~1\AppData\Local\Temp\dd_vcredist_amd64_20150730014514_001_vcRuntimeAdditional_x64_rollback.log'
[13C0:105C][2015-07-30T01:45:17]i000: Setting string variable 
'WixBundleLog_vcRuntimeAdditional_x64' to value 
'C:\Users\ADMIN_~1\AppData\Local\Temp\dd_vcredist_amd64_20150730014514_001_vcRuntimeAdditional_x64.log'

[issue24745] Better default font for editor

2015-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

For the benefit of anyone reading the file, I would prefer font = 
TkFixedFont, though I notice that LoadFontConfig has a backup default.

Just as important, I think: IDLE Preferences = Font/Tabs = Editor Base Font 
needs a [Default] button so people can unselect a non-default selection without 
remembering what the default was.  Other changes (re-arrangements) are needed 
to use the space better, but for now, I think increasing the height to make 
room would be sufficient. Or perhaps 'TkFixedFont could be added to the top of 
the list before adding the sorted list of those available.

The tricky issue is this: when a user changes a setting, the change is saved to 
a change dictionary.  When [Apply] or [OK] are clicked, the new values are 
compared to the defaults and non-defaults are written to the user file.  (Some 
files get sets of values written).  So a user needs to be able to select 
'TkFixedFont' to avoid having a specific font written to the user file (which 
might be the only item in the file, and which would override a future change to 
the binding of TkFixedFont).

--

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



[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

ok, 3.6 only.

--
versions: +Python 3.6 -Python 2.7, Python 3.4, Python 3.5

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-07-29 Thread Mark Roseman

New submission from Mark Roseman:

The screen shot shows the current version of the main IDLE window, with the 
little pics at the bottom indicating what it looks like when the window loses 
focus.  A few entirely cosmetic changes I'd like to make here:

1. Swap scrollbar for ttk scrollbar; this visually will affect the Linux 
version. Note that even the ttk scrollbar is somewhat out-of-date with current 
desktops, but it's a step in the right direction!

2. You'll notice the slight border around the text widget when active; barely 
visible on Windows, a bit more so on Linux, and very much there on Mac (this is 
the highlightthickness attribute). Current conventions on all three platforms 
do away with this, so it should be removed for IDLE.

3. Regarding the items in the status bar, I'm going to suggest removing the 
sunken reliefs around the two items. Again, this was all the range long ago, 
but most apps on all platforms now have more minimal decorations in those 
contexts. If there were more (different) things on the status bar, I might 
suggest a light vertical separator between sections, but here there's no need 
for decoration at all.

4. Color and border on status bar. It's most apparent on the Mac inactive 
window pic, where the status bar blends in to the editor. I plan on tweaking 
the status bar so it's always a light grey color, and has a small darker 
separator above it. I may see about tweaking the font, as status bars tend to 
use a slightly smaller font nowadays.

5. Spacing for icon size grip on Mac should be removed for recent versions of 
OS X. This hasn't been necessary since before OS X Lion (released 2011). I can 
have the code include it when running on earlier versions of OS X.

These are all tiny changes, but combined with a decent font make a big 
difference visually when IDLE first starts up.

--
components: IDLE
files: idle_main.png
messages: 247627
nosy: kbk, markroseman, roger.serwy, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Cosmetic improvements for main window
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file40060/idle_main.png

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



[issue24109] Documentation for difflib uses optparse

2015-07-29 Thread Berker Peksag

Berker Peksag added the comment:

Thanks Keith.

--
nosy: +berker.peksag
resolution:  - fixed
stage: commit review - resolved
status: open - closed
versions: +Python 3.6

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



[issue24751] regrtest/buildbot: test run marked as failure even when re-run succeeds

2015-07-29 Thread Zachary Ware

New submission from Zachary Ware:

The buildbots all run the test suite with the '-w', which re-runs any tests 
that failed in the main test sequence at a higher verbosity level.  More often 
than not it seems the re-run tests succeed, but the exit code is still 1 so the 
build is marked as a failure.

The simplest action I'd like would be to exit(0) iff all re-run tests pass on 
the re-run.  Alternatively, we could try to get a bit fancier and exit with 
some other return code, and adjust the build master to interpret that return 
code as passed, with warnings and mark the build as amber rather than red.

--
keywords: buildbot, easy
messages: 247632
nosy: zach.ware
priority: low
severity: normal
status: open
title: regrtest/buildbot: test run marked as failure even when re-run succeeds

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



[issue5233] IDLE: exec IDLESTARTUP/PYTHONSTARTUP on restart

2015-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Re my comment about handling Shell restarts differently for Shell restart 
cntlF6 and Run module F5: Python only runs PYTHONSTARTUP for interactive 
move.  From the manual: If this is the name of a readable file, the Python 
commands in that file are executed before the first prompt is displayed in 
interactive mode.  When -s is passed, Idle opens Shell for sure and executes 
the file there.

--

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



[issue5233] IDLE: exec IDLESTARTUP/PYTHONSTARTUP on restart

2015-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

A new patch is needed to optionally rerun startup stuff (including future 
imports, see #22893) with ^F6 restarts. I think a combined patch might better 
be attached to the other issue, where I did some analysis on the changes needed.

--
stage: patch review - needs patch
versions: +Python 3.6

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



[issue24751] regrtest/buildbot: test run marked as failure even when re-run succeeds

2015-07-29 Thread R. David Murray

R. David Murray added the comment:

I think option 1 is to be preferred.  One of the things we've been talking 
about for the workflow is gating on the buildbots passing, and the way that 
works with flaky tests is if the check fails, you just run the test again so 
you get a green and the patch can be gated in.  So from that perspective if the 
tests pass on rerun the result is most useful if it is green.

Unless we want to say amber is OK for gating...but in terms of cognative load I 
think green is better.  After all, our current green state is morally 
equivalent to running the tests again and having them pass..

--
nosy: +r.david.murray

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



[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2015-07-29 Thread Martin Panter

Martin Panter added the comment:

If we take the 3.6-only path, does that warrant adding “Version changed” 
notices, and/or a What’s New entry?

--

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



[issue5233] IDLE: exec IDLESTARTUP/PYTHONSTARTUP on restart

2015-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I guess the point of automatically reading is that python does also, at least 
for PYTHONSTARTUP.  I don't know Idle is different.  However, the main point of 
this issue is about restarts.

--

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



[issue24360] improve argparse.Namespace __repr__ for invalid identifiers.

2015-07-29 Thread Matthias Bussonnier

Matthias Bussonnier added the comment:

Thanks for accepting the patch. Looking forward to 3.6 ! :-)

--

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



[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-29 Thread Stefan Krah

Stefan Krah added the comment:

 $ make test  Go.res3 21 

The test suite does seem to behave poorly when run in the background:
I'm getting constant swapping, excessive kworker activity, and indeed,
one hang.

With nohup prepended at least the tests have finished now.

I'm not sure if the tests are meant to be run in the background.

--
nosy: +skrah
status: pending - open

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



[issue13884] IDLE: Remove tear-off menu feature

2015-07-29 Thread Mark Roseman

Mark Roseman added the comment:

Same changes for 2.7 branch

--
Added file: http://bugs.python.org/file40059/tearoff27.patch

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



[issue24745] Better default font for editor

2015-07-29 Thread Mark Roseman

Mark Roseman added the comment:

Quick question how best to represent this in the config-main.def file. My 
thought is to leave a font= line there so that the GetOption call returns an 
empty string. The editor code can then detect that and substitute TkFixedFont. 

Would this break anything and/or would there be a more preferred approach?

--

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



[issue23447] Import fails when doing a circular import involving an `import *`

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

Yep: The issue has no clear solution , e.g., no agreement on a technical 
solution or if it is even a problem worth fixing.

Brett is saying he doesn't consider this a bug.

Steven says he doesn't have time to push it forward.

Oh, I see there is a patch attached though (I wish the attachments were linked 
at the message that adds them as well as globally).

--
stage: needs patch - patch review
status: languishing - open

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



[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-29 Thread R. David Murray

R. David Murray added the comment:

We certainly don't regularly test running them that way :)

It might be interesting to make it possible, if it doesn't require too many 
changes to the tests.  Excessive swapping seems like an odd symptom; I'm sure 
the explanation will be interesting if someone decides to figure it out.

--

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Etienne Fortin

Etienne Fortin added the comment:

I suggest the test should use pywin32. The test script could be only:

import pywintypes
dir(pywintypes)

Testing for an attribute that is defined in the DLL would make it pass or fail.

--

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



[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-29 Thread R. David Murray

R. David Murray added the comment:

Let's close it, since we've identified the problem and it is not something we 
currently support.  If someone finds this and wants to work on it they can open 
a new issue.

(It reopened because I had it set to pending...I didn't close it because I 
thought someone else might have some relevant insight, as proved to be the 
case...)

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

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



[issue23589] Redundant sentence in FAQ

2015-07-29 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


--
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[issue23756] Tighten definition of bytes-like objects

2015-07-29 Thread Stefan Krah

Stefan Krah added the comment:

c-contig.v3.patch LGTM.

--

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



[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-29 Thread Stefan Krah

Stefan Krah added the comment:

Personally I'm happy to run the tests in the foreground. :)

BTW, I didn't intend to reopen this one.  Shall we close it
or do you want to keep it open for improving the test suite?

--

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



[issue13884] IDLE: Remove tear-off menu feature

2015-07-29 Thread Mark Roseman

Mark Roseman added the comment:

As indicated in prior comments, the tearoff menus are strictly a holdover from 
ancient Motif, and are no longer found in current user interfaces on any 
platform. Because of that, I would strongly support deleting them altogether, 
rather than making available a configuration option.

I've updated Roger's patch for current 3.x tip (and also extended it to remove 
the reference to tearoff menus from the help file).

--
nosy: +markroseman
Added file: http://bugs.python.org/file40058/tearoff.patch

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



[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

@ezio I think you should commit what you have so far. LGTM.

--
nosy: +rbcollins

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



[issue23447] Import fails when doing a circular import involving an `import *`

2015-07-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Languishing? :)

--

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Steve Dower

Steve Dower added the comment:

I'd rather have our own test pyd that shows a minimal repro of the behavior. 
Requiring pywin32 for running one test is excessive, won't reveal the issue (if 
it exists) on other platforms, and is not necessarily going to help someone 
debug the issue.

I agree this is probably due to PEP 489, which means that Eric is almost 
certainly the best person to look into it. It may also be due to the list of 
suffixes changing for 3.5 (.cp35-win32.pyd is now a valid suffix as well as 
just .pyd, for example), but looking at pywintypes.py that seems unlikely.

--

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



[issue20557] Use specific asserts in io tests

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

@serhiy I think you should apply this: you're a committer, and no committers 
have objected in over a year.

--
nosy: +rbcollins

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



[issue24729] Input and Output tutorial erroneously references default encoding UTF-8

2015-07-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c9e78d91d588 by Alessandro Cucci in branch '3.4':
Issue #24729: Update tutorial to match implementation.
https://hg.python.org/cpython/rev/c9e78d91d588

New changeset 20084be60761 by Jason R. Coombs in branch '3.4':
Issue #24729: Correct reference to open function.
https://hg.python.org/cpython/rev/20084be60761

New changeset 575e60ed7cb8 by Jason R. Coombs in branch '3.5':
Merge with 3.4 for Issue #24729
https://hg.python.org/cpython/rev/575e60ed7cb8

New changeset 47330144debd by Jason R. Coombs in branch 'default':
Merge with 3.5 for Issue #24729
https://hg.python.org/cpython/rev/47330144debd

--
nosy: +python-dev

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



[issue22227] Simplify tarfile iterator

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

@serhiy could you update the patch with the review feedback? Thanks. Moving 
back to patch review. Lars hasn't commented on this in a year, so I think we 
should go ahead once the patch is fixed: e.g. you should update the comments 
and commit it directly.

--
nosy: +rbcollins
stage: commit review - patch review

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



[issue23899] HTTP regression in distutils uploads to chishop

2015-07-29 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Ultimately, we've decided not to patch chishop nor to address the issue in the 
stdlib, but instead we've replaced chishop with devpi.

--
resolution:  - wont fix
status: open - closed

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Etienne Fortin

Etienne Fortin added the comment:

The only dll / pyd files I have are all in pywin32. I don't have a build 
environment for extensions. Can anyone provide me with a very simple extension 
DLL with at least one exported attribute?

--

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



[issue24360] improve argparse.Namespace __repr__ for invalid identifiers.

2015-07-29 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
assignee:  - berker.peksag

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



[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

LGTM - lukasz, do you want to commit this, or would you like someone else to if 
you're too busy? Looks like we should patch this in 3.4/3.5./3.6 at this point.

--
nosy: +rbcollins
versions: +Python 3.4, Python 3.6

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



[issue24720] Python install help

2015-07-29 Thread Steve Dower

Steve Dower added the comment:

If you download and install the VC++ Redistributable from 
http://www.microsoft.com/en-us/download/details.aspx?id=48145 then we won't try 
and run the code that is failing in our installer.

If the previous installer fails then you have a configuration error on your 
machine and will need to resolve that before installing Python.

--

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



[issue24729] Input and Output tutorial erroneously references default encoding UTF-8

2015-07-29 Thread Alessandro Cucci

Alessandro Cucci added the comment:

ok, this time I tested the render myself and seems ok. For rendering I used 
sphinx. Sorry if I didn't try the final result in the first time, but I've 
never had the chance to use rst files before.

--
Added file: http://bugs.python.org/file40056/issue24729_v4.patch

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



[issue23589] Redundant sentence in FAQ

2015-07-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 02f3bf3f74aa by Robert Collins in branch '2.7':
Issue #23589: Remove duplicate sentence from the FAQ.  Patch by Yongzhi Pan.
https://hg.python.org/cpython/rev/02f3bf3f74aa

New changeset 941b9c27b8c8 by Robert Collins in branch '3.4':
Issue #23589: Remove duplicate sentence from the FAQ.  Patch by Yongzhi Pan.
https://hg.python.org/cpython/rev/941b9c27b8c8

New changeset 93f3ca8fdc39 by Robert Collins in branch '3.5':
Issue #23589: Remove duplicate sentence from the FAQ.  Patch by Yongzhi Pan.
https://hg.python.org/cpython/rev/93f3ca8fdc39

New changeset 7163dd7e9511 by Robert Collins in branch 'default':
Issue #23589: Remove duplicate sentence from the FAQ.  Patch by Yongzhi Pan.
https://hg.python.org/cpython/rev/7163dd7e9511

--
nosy: +python-dev

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



[issue22141] rlcompleter.Completer matches too much

2015-07-29 Thread R. David Murray

R. David Murray added the comment:

I agree with Robert.  You'll have to convince me that this is an actual bug.  
It seems reasonable to me that foobar would be returned in this case...it seems 
to me it is analogous to what my zsh shell does when I hit tab and there's no 
exact match but there is a match if it interpolates.  Since this doesn't 
evidence as a bug at the python prompt, there needs to be more of an argument 
as to why it is wrong...and probably too much risk of breaking working code to 
change it anyway, absent a bug at the python prompt.

I'm inclined to reject this.

--
nosy: +r.david.murray
status: open - pending

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Etienne Fortin

Etienne Fortin added the comment:

At this point I can't say if it's Windows only or if it affect all platform. I 
can't even guarantee that it will appear on all Windows platform. On my 
platform (see following), it doesn't work:

Windows 7 64 bits with updates 2999226 and 3065987 installed.

I can't confirm the update are related either. I just did a quick analysis and 
between the time 3.5 was working and wasn't anymore these updates were 
installed.

I will create a quick script to reproduce the behavior.

--

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Etienne Fortin

Etienne Fortin added the comment:

Is it possible that the C runtime introduced with 2999226, which I believe is 
the universal runtime Microsoft is trying to introduce, modified something 
that makes importlib break on 3.5???

--

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



[issue23447] Import fails when doing a circular import involving an `import *`

2015-07-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Can someone reset the status and open fields, thanks.

--
nosy: +BreamoreBoy
versions: +Python 3.6

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Steve Dower

Steve Dower added the comment:

It's possible, but that isn't solvable or testable by removing the update. To 
solve that we need a test and then fix the bug.

--

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



[issue23447] Import fails when doing a circular import involving an `import *`

2015-07-29 Thread Robert Collins

Robert Collins added the comment:

reset.

--
nosy: +rbcollins
resolution: not a bug - 
stage:  - needs patch
status: closed - languishing

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



[issue22141] rlcompleter.Completer matches too much

2015-07-29 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


--
stage: commit review - patch review
status: pending - open

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



[issue24720] Python install help

2015-07-29 Thread Steve Dower

Steve Dower added the comment:

I don't know either. Below I've pasted the part of your log that shows the 
error and error code - you should contact your support department or (better) 
search the internet for that error code:

[173C:0C0C][2015-07-30T01:45:21]i301: Applying execute package: Windows81_x64, 
action: Install, path: C:\ProgramData\Package 
Cache\FC6260C33678BB17FB8B88536C476B4015B7C5E9\packages\Patch\x64\Windows8.1-KB2999226-x64.msu,
 arguments: 'C:\Windows\SysNative\wusa.exe C:\ProgramData\Package 
Cache\FC6260C33678BB17FB8B88536C476B4015B7C5E9\packages\Patch\x64\Windows8.1-KB2999226-x64.msu
 /quiet /norestart'
[173C:0C0C][2015-07-30T01:45:23]e000: Error 0x80240017: Failed to execute MSU 
package.
[13C0:105C][2015-07-30T01:45:23]e000: Error 0x80240017: Failed to configure 
per-machine MSU package.

--

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



[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2015-07-29 Thread Martin Panter

Martin Panter added the comment:

Added versioning notices in port-ValueError.v3.patch.

--
Added file: http://bugs.python.org/file40061/port-ValueError.v3.patch

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



[issue24720] Python install help

2015-07-29 Thread node

node added the comment:

Thanks Steve will go to the Acer on Friday see what they say

--

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



[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2015-07-29 Thread R. David Murray

R. David Murray added the comment:

Hmm.  Good question.  I think it probably does, because it means getting an 
exception where one did not previously happen.

--

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Ned, Mark will be opening several appearance issues (see ttk thread on Idle 
list).  Do you want to be routinely added as nosy to comment?

Mark: The description and labeling of the screenshot is a bit off. For Windows, 
the full window is inactive ([ x ] is not red). The Linux and Windows inset 
labels are reversed (and the Windows one inactive).

1. I added the ttk import and prefix to EditorWindow and hit F5 to test. The 
result matches what appears to be the native Win7 scrollbar.  I am ready change 
all the scrollbars.  Lets make this a separate first patch.

2. The current Tk/Toplevel frame appears to be the native frame, at least on 
Win7. So I do not see anything to be done away with to match the platform.  The 
semi-transparent frame gets grayer (less transparent) when active.  There is 
additional darkening along the bottom and up 3/4 the sides.  I do not care 
about Win8 as, judging from Stackoverflow, it seems to be less common among 
Idle users. I expect Win 10 will eventually be a different matter.  I will 
eventually upgrade after I get the notice.

3. I agree with deleting the sinks: useless and ugly. I do not believe anything 
else has a status bar.

There is much wasted space.  Notepad++ has file type, length (chars), lines, 
lineno, colno, selection length, Dos/Windows??, ANSI??, and  Ins(ert versus 
Overwrite on insert - not available with Idle). I am not sure what would be 
useful, but adding stuff would be a separate issue.

4. Windows bar looks fine to me.  Light gray, same active or not. For me, the 
font, the same as on the menu, is already small. No smaller. In fact, I have 
wondered whether it would be possible for users to adjust the size of the 
'other' fonts also.

5. Ned's territory.

--
nosy: +ned.deily
stage:  - needs patch
versions: +Python 3.6

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



[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-07-29 Thread Martin Panter

Martin Panter added the comment:

Merged the current What’s New page in getdoc-news.v2.patch. Is there any 
interest in applying this?

--
stage: resolved - patch review
Added file: http://bugs.python.org/file40062/getdoc-news.v2.patch

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



[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

_filename_to_unicode returns unicode names as is.  In 3.x, are filenames ever 
not unicode?  They come from either a file dialog (via tk, hence unicode), or 
sys.argv. I do not know about the latter, which is possibly OS-dependent.

This function is used in three places in idlelib, all within EditorWindow:
1.def update_recent_files_list(self, new_file=None): ...
ufile_name = self._filename_to_unicode(file_name)
2.def short_title(self):  # reduce filename to basename
return self._filename_to_unicode(filename)
3.def long_title(self):
return self._filename_to_unicode(self.io.filename or )

The _f2u output is not saved to disk or used to open files; it is display only. 
 So replacing astral chars with either \Un escapes or the BMP box char 
should be fine.

1. The callback associated with each ufile_name encloses the original 
file_name, which is used to open the file.  The original filename is also saved 
back to disk before the _f2u call.

23. The titles are display only.  WindowList.py displays the long name for 
editor windows, but the callback is a wakeup function tied to the Window itself.

--
stage: needs patch - test needed
versions: +Python 3.6

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



[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-29 Thread Eric Snow

Eric Snow added the comment:

It's starting to look like this is threading-related.  There's a single 
requests.Session defined as a module global in pywikibot.comms.http which is 
shared by all threads handling requests.  requests.Session uses OrderedDict for 
an LRU cache for redirects.  That's where we're running into trouble.

So it seems that I missed a spot that is susceptible to issues with threading 
(not necessarily in pop/popitem).  The catch is that it's not very racy.  The 
failure is reproducing quite consistently.

I'm going to continue investigating and constructing a simple reproducer.

--

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



[issue24745] Better default font for editor

2015-07-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

In your online tutorial, your recommend
  root.option_add('*tearOff', FALSE)
Why not here, and be covered everywhere, and in the future?
Or is this needed for each Toplevel?

--

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



[issue23556] Scope for raise without argument is different in Python 2 and 3

2015-07-29 Thread Martin Panter

Martin Panter added the comment:

Here is a patch for Python 3. The re-raise behaviour reported by Antoine is 
already tested in test_raise.TestRaise.test_except_reraise().

My patch also clarifies some details about how __context__ is set:

* Context is the exception being handled, not necessarily the last exception
* “With” statements can influence context
* Re-raising does not set context; must be new exception object
* Add test case when context is not the last exception

I’m not so experienced with Python 2’s exception handling, so I haven’t got a 
patch for that. I suspect there is some shared “last exception” context. I 
wonder how it interacts with generators, multi-threading, __del__() and other 
callbacks, etc.

--
keywords: +patch
stage:  - patch review
versions: +Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40053/raise-scope-py3.patch

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



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

2015-07-29 Thread sanad

sanad added the comment:

I have tested all the cases mentioned in the comments on Linux Mint 17.1 
Rebecca 64 bit with Python 3.6.0a0 build version.

1.I reproduced the issue mentioned in #msg241871 the minimize button works 
perfectly fine and the search dialog box does minimizes(Which implies that this 
is a windows only issue).The maximize/expand also works and the dialog window 
can be resized both horizontally and vertically.

2.Similarly, 'Find in Files' and 'Replace' dialogs can also be resized and have 
both maximize and minimize buttons which too work fine.

3.The 'Options' = 'Configure Extensions' dialog does not have the 
maximize/minimize buttons but it can be resized.

4.The 'Options' = 'Configure IDLE' dialog can neither be resized nor does it 
have maximize/minimize buttons.

--
nosy: +sanad

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



[issue17991] ctypes.c_char gives a misleading error when passed a one-character unicode string

2015-07-29 Thread Steven Barker

Steven Barker added the comment:

I was looking over some of the bugs I've contributed to, and it looks like this 
one has been fixed. It should be marked as a dupe of issue 22161 and closed (I 
can close, but not set a superseder, it seems).

--
resolution:  - duplicate
status: open - closed

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



[issue19450] Bug in sqlite in Windows binaries

2015-07-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 33dbcde76b3f by Ned Deily in branch '3.4':
Issue #19450: Update OS X installer builds to use SQLite 3.8.11.
https://hg.python.org/cpython/rev/33dbcde76b3f

New changeset ebe72984c1b9 by Ned Deily in branch '3.5':
Issue #19450: merge from 3.4
https://hg.python.org/cpython/rev/ebe72984c1b9

New changeset 1f4ef305b658 by Ned Deily in branch 'default':
Issue #19450: merge from 3.5
https://hg.python.org/cpython/rev/1f4ef305b658

--

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



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

2015-07-29 Thread Vivek

Vivek added the comment:

The bug is also not reproducible in my Ubuntu 14.04 64 bit system with python 
3.4.But can be reproduced on my Windows7 and Windows8 systems.This seems to be 
a Windows specific issue.

Terry, thanks for the advice. I will take care next time :).

--

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



[issue17991] ctypes.c_char gives a misleading error when passed a one-character unicode string

2015-07-29 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
superseder:  - Remove unsupported code from ctypes

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



[issue24747] ctypes silently truncates ints larger than C int

2015-07-29 Thread Petr Viktorin

New submission from Petr Viktorin:

A Python int larger than a C int but smaller than a C long is silently 
truncated to int when passed to a ctypes function without C type information 
attached.

Ints longer than C long fail with an OverflowError; I believe the same should 
happen for numbers that don't fit in a C int.


Reproducer (for 64-bit systems):

from ctypes import cdll, ArgumentError
libc = cdll.LoadLibrary(libc.so.6)


# Silently truncated
libc.printf(b%x\n, 0x1234567890)

try:
# OverflowError raised
libc.printf(b%x\n, 2 ** 64)
except ArgumentError as e:
print(e)


see callproc.c, function ConvParam, after the PyLong_Check.

--
components: ctypes
messages: 247565
nosy: encukou
priority: normal
severity: normal
status: open
title: ctypes silently truncates ints larger than C int
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

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



[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2015-07-29 Thread Martin Panter

Martin Panter added the comment:

Readline 7.0 alpha version includes a new “feature” that should help:

i.  rl_callback_sigcleanup: a new application function that can clean up and 
unset any state set by readline’s callback mode.  Intended to be used after a 
signal.

Patch readline-sigcleanup.patch uses this function, depending on a compile-time 
version check. It fixes the bug when compiled against Readline 7.

--
stage: test needed - patch review
Added file: http://bugs.python.org/file40054/readline-sigcleanup.patch

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



[issue23404] 'make touch' does not work with git clones of the source repository

2015-07-29 Thread Berker Peksag

Berker Peksag added the comment:

Patch LGTM. Thanks Carol.

I will left this issue open in case someone wants to work on a git equivalent 
of make touch as described by Ned in msg235514.

--
components:  -Devguide
nosy: +berker.peksag
stage: patch review - needs patch
type:  - enhancement
versions: +Python 3.6

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



[issue24749] Which fastest python-mysql connector?

2015-07-29 Thread nivin

New submission from nivin:

Please suggest the fastest python-mysql connector. Our aim is to call 
procedures and resturn data.

--
messages: 247576
nosy: nivin
priority: normal
severity: normal
status: open
title: Which fastest python-mysql connector?
type: performance
versions: Python 2.7

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



[issue24749] Which fastest python-mysql connector?

2015-07-29 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, the Python bug tracker is not a forum to ask questions. See for example 
https://www.python.org/community/irc/

--
nosy: +haypo
resolution:  - not a bug
status: open - closed

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



[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-29 Thread Eric Snow

Eric Snow added the comment:

This is most likely related to PEP 489, which changed extension module loading 
in what was meant to be a backward-compatible way.

--
nosy: +brett.cannon, encukou, eric.snow, ncoghlan
versions: +Python 3.6

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



[issue24747] ctypes silently truncates ints larger than C int

2015-07-29 Thread Petr Viktorin

Petr Viktorin added the comment:

Originally found here: https://bugzilla.redhat.com/show_bug.cgi?id=1244261

--

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