[issue25572] _ssl doesn't build on OSX 10.11

2016-06-22 Thread Caleb Hattingh

Caleb Hattingh added the comment:

I struggled with this issue, and eventually found the recommendations about 
linking with homebrew's OpenSSL on StackOverflow or similar, and then only 
later found this issue here (and with it the link to the devguide); but the 
*first* places I looked were the README in the source root, and then the README 
in the Mac/ directory. That may however just be ignorance on my part of where I 
should have been looking. Yet another reminder that I need to become much more 
familiar with the devguide.

The README only mentions the devguide in the context of contributing, but not 
that it will contain further information required for building. Under "Build 
Instructions", the README says:

***

Build Instructions
--

On Unix, Linux, BSD, OSX, and Cygwin:

./configure
make
make test
sudo make install

This will install Python as python3.

You can pass many options to the configure script; run "./configure --help" to 
find out more.  On OSX and Cygwin, the executable is called python.exe;
elsewhere it's just python.

On Mac OS X, if you have configured Python with --enable-framework, you should 
use "make frameworkinstall" to do the installation.  Note that this installs 
the Python executable in a place that is not normally on your PATH, you may 
want to set up a symlink in /usr/local/bin.

***

It might be helpful to add to the README (in the "Build Instructions" section): 

"The devguide may include further information about specific build dependencies 
for your platform here: 
https://docs.python.org/devguide/setup.html#build-dependencies";

--

___
Python tracker 

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



[issue21106] Updated Mac folder icon

2016-06-22 Thread Carol Willing

Carol Willing added the comment:

Closing as an out of date issue (greater than 2 years old).

--
nosy: +willingc
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2016-06-22 Thread Carol Willing

Carol Willing added the comment:

Ned, Closing as an out of date issue.

--
nosy: +willingc
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue13829] exception error in _scproxy.so

2016-06-22 Thread Carol Willing

Carol Willing added the comment:

Closed as an out of date issue.

--
nosy: +willingc
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

2016-06-22 Thread Carol Willing

Carol Willing added the comment:

Closed as an out of date issue.

--
nosy: +willingc
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue16821] bundlebuilder broken in 2.7

2016-06-22 Thread Carol Willing

Carol Willing added the comment:

Closed as an out of date issue.

--
nosy: +willingc
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue14354] Crash in _ctypes_alloc_callback

2016-06-22 Thread Carol Willing

Carol Willing added the comment:

As per Ronald's last comment "close this as a duplicate of #16575 as that 
better explains the underlying problem".

Closing this dated and duplicate issue.

--
components: +Benchmarks -Macintosh, ctypes
nosy: +brett.cannon, pitrou, willingc
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

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



[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as "universal"

2016-06-22 Thread Carol Willing

Carol Willing added the comment:

Closing this out of date issue.

--
nosy: +willingc
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue8406] Make some setup.py paths exclude-able

2016-06-22 Thread Carol Willing

Changes by Carol Willing :


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

___
Python tracker 

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



[issue8406] Make some setup.py paths exclude-able

2016-06-22 Thread Carol Willing

Carol Willing added the comment:

This issue is languishing. Recommend closing the issue.

--
nosy: +willingc

___
Python tracker 

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



[issue25572] _ssl doesn't build on OSX 10.11

2016-06-22 Thread Carol Willing

Carol Willing added the comment:

After Ned's last message, perhaps it would be best to close this issue.

--
nosy: +willingc

___
Python tracker 

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



[issue26547] Undocumented use of the term dictproxy in vars() documentation

2016-06-22 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag
stage:  -> patch review
type: enhancement -> behavior
versions: +Python 3.5, Python 3.6

___
Python tracker 

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



[issue27304] Create "Source Code" links in module sections, where relevant

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Three of the links are to one- or two- line modules that import the C 
implementation.  I considered dropping them, but decided that the only way to 
know that they are not worth looking at is to let someone take a look.  A 
counter argument is that we don't have links to CPython C implementations, and 
we could pretend that the Python wrappers are not there. Another core developer 
who feels strongly enough can remove the three.

Thanks for the nice patch.  I hope you do some more.

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

___
Python tracker 

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



[issue27304] Create "Source Code" links in module sections, where relevant

2016-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e3b4033e0ea7 by Terry Jan Reedy in branch '3.5':
Issue #27304: Source code links for sub-packages in the same file.
https://hg.python.org/cpython/rev/e3b4033e0ea7

--
nosy: +python-dev

___
Python tracker 

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



[issue27370] Inconsistency in docs for list.extend

2016-06-22 Thread Martin Panter

Martin Panter added the comment:

The t vs x mixup was introduced by my sloppy backport in Issue 16701. The other 
problem here is x is generally defined as any arbitrary object, but redefined 
as an iterable in the footnote. I think we should use t instead, as in the 
other two slice assignment operations and in Python 3. My commit should have 
fixed both these problems.

--
nosy: +martin.panter
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue26243] zlib.compress level as keyword argument

2016-06-22 Thread Martin Panter

Martin Panter added the comment:

The patch (with Berker’s fix) looks okay. Personally, I don’t see a big problem 
with the first argument also having a keyword name, but I don’t mind if it 
doesn’t either.

--

___
Python tracker 

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



[issue27370] Inconsistency in docs for list.extend

2016-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c91007ab3fda by Martin Panter in branch '2.7':
Issue #27370: Use t for an iterable in mutable sequence ops
https://hg.python.org/cpython/rev/c91007ab3fda

--
nosy: +python-dev

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-22 Thread Martin Panter

Martin Panter added the comment:

It looks like ctypes uses ffi_closure_alloc() to allocate an executable 
function on demand. So it should be possible for readline to also call libffi 
and do this, but certainly not trivial.

>>> from ctypes import *
>>> @CFUNCTYPE(c_int, c_int, c_int)
... def operate_and_get_next(count, char):
... print("Boo!", count, char)
... return 0
... 
>>> libreadline = CDLL("libreadline.so.6")
>>> libreadline.rl_add_defun("operate-and-get-next", operate_and_get_next, 
>>> ord("O") & 0x1F)
0
>>> # Press Ctrl-O ==>  Boo! 1 15

--

___
Python tracker 

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



[issue27304] Create "Source Code" links in module sections, where relevant

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Looks good at first review on Rietveld.  Will test next.

--

___
Python tracker 

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



[issue25588] Run test suite from IDLE idlelib.run subprocess

2016-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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

___
Python tracker 

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



[issue25588] Run test suite from IDLE idlelib.run subprocess

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The premise of the issue is this: if IDLE is started with 'pythonx', then 
running 'filex' from a IDLE editor is equivalent to running "python x -i filex" 
at a command line.  For instance, loading test.__main__ into an editor and 
running should give the same result as 
f:/python/dev> 36\pcbuild\win32\python_d.exe -i 36\Lib\test.__main__

However, 
Traceback (most recent call last):
  File "F:\Python\dev\36\Lib\test\__main__.py", line 2, in 
main()
  File "F:\Python\dev\36\lib\test\libregrtest\main.py", line 508, in main
Regrtest().main(tests=tests, **kwargs)
  File "F:\Python\dev\36\lib\test\libregrtest\main.py", line 446, in main
self._main(tests, kwargs)
  File "F:\Python\dev\36\lib\test\libregrtest\main.py", line 458, in _main
setup_tests(self.ns)
  File "F:\Python\dev\36\lib\test\libregrtest\setup.py", line 18, in setup_tests
faulthandler.enable(all_threads=True)
io.UnsupportedOperation: fileno

The pseudofile socket wrappers are not real files with a fileno.  I should take 
a better look as sys.stdout and _stdout (and stderr) when connected to a 
console,

--

___
Python tracker 

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



[issue27369] [PATCH] Tests break with --with-system-expat and Expat 2.2.0

2016-06-22 Thread Martin Panter

Martin Panter added the comment:

Thanks for the patches. This test was added in r74435, presumably to test for a 
crash. IMO it would be sufficient to test for the first part of the error 
message, without checking the column number. The test could also use 
assertRaisesRegex().

Should this actually be applied to all security versions, or just 3.5+ and 2.7? 
I guess can see the benefit of fixing 3.2+, and I remember doing this once 
before when the test suite fell over and it was not Python’s fault.

--
nosy: +martin.panter
stage:  -> patch review

___
Python tracker 

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



[issue22115] Add new methods to trace Tkinter variables

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I gather that 'add', 'delete', and 'info' replace 'variable', 'vdelete', and 
'vinfo'.  Also see review.  Deprecation period should be fairly long.  Of 
course, a currently hypothetical tcl/tk 9.0 with old stuff gone would make it 
immediate for users of 9.0.

Applies cleanly and tests pass, but do not hardly interact with the patch.  
More importantly, IDLE starts fresh, option dialog comes up and appears to 
work.  So old functions continue to work.

The real test from IDLE would be to recode configdialog to use the new 
functions and then test.  I am thinking about how to test configdialog enough 
that I am willing to refactor it for real.

--

___
Python tracker 

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



[issue27362] json.dumps to check for obj.__json__ before raising TypeError

2016-06-22 Thread R. David Murray

R. David Murray added the comment:

Pretty much any project that makes non-trivial use of json ends up implementing 
a jsonification protocol, usually by creating either a __json__ method or (more 
commonly, I think) a to_json method.

But, yeah, this is python-ideas material and would get into the stdlib only as 
an officially blessed protocol, in which case using __json__ would make sense.  
So I'm going to close the issue pending a consensus on python-ideas.  If it 
gets accepted the issue can be reopened.

--
nosy: +r.david.murray
resolution:  -> later
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue20350] Replace tkapp.split() to tkapp.splitlist()

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

FWIW, patch applies cleanly to 3.6 on Windows and test_idle passes.

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

___
Python tracker 

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



[issue27196] Eliminate 'ThemeChanged' warning when running IDLE tests

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The only thing I still see is a pair of ThemeChanged warnings from 2.7.  Using 
binary search, I identified test_editmenu as the culprit.  This in spite of all 
the cleanup I can think of

@classmethod
def tearDownClass(cls):
del cls.text, cls.entry, cls.spin
cls.root.clipboard_clear()
cls.root.update_idletasks()
cls.root.update()
cls.root.destroy()
del cls.root

When I tried to determine which test method(s) gave the warning, as disable all 
to make sure the warnings vanished, which then did.  But after re-enabling, the 
warnings did not come back -- until they did after a few more runs.  I suspect 
that the only permanent solution will be Serhiy's patch to have .destroy cancel 
pending callbacks.

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

As a practical matter, I have no plans to backport except in exceptional cases. 
 If the regression had only affected 3.6, I would have left 2.7 and 3.5 alone.

--

___
Python tracker 

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



[issue27372] Test_idle should stop changing locale

2016-06-22 Thread Terry J. Reedy

New submission from Terry J. Reedy:

test.test_idle has long resulted in warnings about the locale being changed.  
In 3.6, this warning causes test_idle to be tagged a failure. Though this does 
not (yet) turn the overall run of a buildbot from green to red, it is annoying 
to have success reported as a failure.

The culprit is in iomenu: locale.setlocale(locale.LC_CTYPE, "") Commenting it 
out removed the warning and tests pass. But I don't know the real effect, if it 
would work for tests on all systems, and the consequence when running IDLE 
normally.

The problem cannot be monkey-patched away since the damage is done on import.  
Instead I added 'testing = False' to idlelib.__init__, made test_idle change it 
to True, and replace the locale-encoding code with "encoding = 'utf-8'" when 
testing is True.

Serhiy, I *think* this is ready.  However, another eagle-eye review would be 
welcome.  Tests also pass with 'ascii'.  Would that be better?

---
Side note: the locale and encoding code could use a review from someone who 
knows more that me.  For instance, suppressing ImportError here:

try:
import locale
locale.setlocale(locale.LC_CTYPE, "")
except (ImportError, locale.Error):
pass

guarantees a NameError a few lines further.  There is another chunk labelled 
deprecated, and more might be obsolete in 3.x.  But this is another issue.

--
assignee: terry.reedy
files: locale-change.diff
keywords: patch
messages: 269087
nosy: serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: patch review
status: open
title: Test_idle should stop changing locale
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file43516/locale-change.diff

___
Python tracker 

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



[issue27371] Runaway memory consumption using update()

2016-06-22 Thread Jeremy Blow

New submission from Jeremy Blow:

Hi folks, 

While going about running tkinter's update() call within a coroutine/asyncio 
event loop in lieu of using mainloop(), I came across odd memory behavior on 
MacOS where the cpython process gradually increases memory consumption. 
Suspicious that there may be some unfavorable interaction between asyncio's use 
of KqueueSelector and the lower level tk calls, I stripped things down to a 
simple implementation and found the behavior exhibits itself without asyncio 
involved at all. 

```
import tkinter as tk


def start(root):

while True:
root.update()


# tk update loop: mem consumption increases
start(tk.Tk())

# tk mainloop: mem consumption stable
# tk.Tk().mainloop()
```

# Using tk mainloop, ~1 minute
/Users/jeremy$ /usr/bin/time -l python3.5 tk_perf.py
   60.26 real 0.16 user 0.07 sys
  31756288  maximum resident set size
 0  average shared memory size
 0  average unshared data size
 0  average unshared stack size
 10215  page reclaims
 0  page faults
 0  swaps
 0  block input operations
 7  block output operations
 0  messages sent
 0  messages received
 0  signals received
 7  voluntary context switches
  1788  involuntary context switches

# tk update loop, ~1 minute
/Users/jeremy$ /usr/bin/time -l python3.5 tk_perf.py
Traceback (most recent call last):
  File "tk_perf.py", line 10, in 
start(tk.Tk())
  File "tk_perf.py", line 7, in start
root.update()
  File 
"/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py",
 line 1025, in update
self.tk.call('update')
_tkinter.TclError: can't invoke "update" command:  application has been 
destroyed
   60.37 real38.09 user20.54 sys
 545976320  maximum resident set size
 0  average shared memory size
 0  average unshared data size
 0  average unshared stack size
135760  page reclaims
 2  page faults
 0  swaps
 0  block input operations
 9  block output operations
 0  messages sent
 0  messages received
 0  signals received
474742  voluntary context switches
   1672276  involuntary context switches

That's 31,756,288 versus 545,976,320 after ~1 minute. If I let the update loop 
continue, it eventually consumes many gigabytes of memory. 

Obviously something is very wrong here. To further the fun, I've tested this 
across three Macs, and only two exhibit the behavior. This may or may not be 
interesting to those who are already aware of Tk / Cocoa event loop interaction 
issues.

+---+++--+
| MacOS Version | Python Version | Tcl/Tk Version | Exhibits |
+---+++--+
| 10.11.3/15D21 | 3.5.1  | 8.5/8.5| Yes  |
| 10.9.4/13E28  | 3.5.1  | 8.5/8.5| No   |
| 10.11.2/15C50 | 3.5.1  | 8.5/8.5| Yes  |
+---+++--+

Could someone illuminate me as to as whether I'm facing a PEBKAC, update() is 
lacking some housekeeping that exists in the mainloop routine, a new/known bug, 
or other? Further troubleshooting steps I can take are appreciated, I'm happy 
to try to isolate it further. 

My use case is a tkinter app written solely w/ coroutines thus the event loop 
selection is constrained.

Env details below.. Cheers.



~~~ENV


/Users/jeremy$ sw_vers
ProductName:Mac OS X
ProductVersion: 10.11.3
BuildVersion:   15D21

/Users/jeremy$ python3.5 --version
Python 3.5.1

>>> import _tkinter
>>> _tkinter.__spec__
ModuleSpec(name='_tkinter', 
loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x1028ae5c0>, 
origin='/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload/_tkinter.cpython-35m-darwin.so')
>>> _tkinter.TCL_VERSION, _tkinter.TK_VERSION
('8.5', '8.5')


/Users/jeremy$ python3.5 -m sysconfig "sysconfig.get_config_vars()"
Platform: "macosx-10.11-x86_64"
Python version: "3.5"
Current installation scheme: "posix_prefix"

Paths:
data = 
"/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5"
include = 
"/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/include/python3.5m"
platinclude = 
"/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/include/python3.5m"
platlib = 
"/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages"
platstdlib = 
"/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5"
purelib = 
"/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages"
scripts = 
"/usr/local/Cellar/python3/3.5.1/Frameworks/Python.fram

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-22 Thread Nick Coghlan

Nick Coghlan added the comment:

OK, so maybe the right answer here is to officially undeprecate 
inspect.getfullargspec(), as we definitely *don't* want people feeling obliged 
to write their own version of that, and potentially introducing inconsistencies 
between different tools.

Then the deprecation warning on inspect.getargspec() can be updated to point 
people towards "inspect.signature() or inspect.getfullargspec()", while the 
docs for getfullargspec() itself can be updated to say it isn't recommended for 
use in new code, rather than that it's deprecated.

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Larry Hastings

Larry Hastings added the comment:

You speak confidently, for a guy who hasn't seen any sort of schedule from the 
3.5 RM.  :-O

After 3.6 comes out, I expect 3.5 to get one more "bug fix" release.  And 
*then* it will transition to "security fixes only" mode.  Six months is the 
absolute minimum, and I'd expect it to be longer than that.

--

___
Python tracker 

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



[issue27139] Increased test coverage for statistics.median_grouped

2016-06-22 Thread Julio C Cardoza

Julio C Cardoza added the comment:

Hi Steve!

Just giving you a hello! and, like you asked, to remind you about my case.

Thanks men!

On Thu, Jun 16, 2016 at 1:17 PM, Steven D'Aprano 
wrote:

>
> Steven D'Aprano added the comment:
>
> Thanks Julio,
>
> I hope to get to this over the next week. Please feel free to prod me if
> you see no action by then.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-22 Thread Ryan Petrello

Ryan Petrello added the comment:

Nick,

My main reasoning for not using it is that it's marked as deprecated in the 
docstring, and I want to avoid relying on it if disappears in the future :)

Warnings or not, the shim that I wrote doesn't use any deprecated code, so 
that's why I took that approach.

--

___
Python tracker 

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



[issue16218] Python launcher does not support unicode characters

2016-06-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage: commit review -> resolved

___
Python tracker 

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



[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-22 Thread Nick Coghlan

Nick Coghlan added the comment:

Are you able to use inspect.getfullargspec() on Python 3 rather than 
inspect.getargspec()?

While both are technically deprecated, only inspect.getargspec() actually emits 
a deprecation warning - inspect.getfullargspec() still works without complaint 
and is in no danger of being removed.

--

___
Python tracker 

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



[issue27370] Inconsistency in docs for list.extend

2016-06-22 Thread Andrew Cameron

New submission from Andrew Cameron:

The documentation for Mutable Sequence Types states that, for operation:
s.extend(x) or s += t

the expected result is:
for the most part the same as s[len(s):len(s)] = x

Note that if you perform operation 's += t' the result is not the same as 
's[len(s):len(s)] = x' unless 't == x'.

This does not occur with the Python 3 docs, which uses exclusively 't' (not 
'x'). However for people reading the Python 2 docs the variable mix-up could 
cause confusion.

--
assignee: docs@python
components: Documentation
messages: 269080
nosy: Andrew Cameron, docs@python
priority: normal
severity: normal
status: open
title: Inconsistency in docs for list.extend
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



[issue27369] [PATCH] Tests break with --with-system-expat and Expat 2.2.0

2016-06-22 Thread sping

Changes by sping :


Added file: 
http://bugs.python.org/file43515/0001-Fix-Python-3.x.x-tests-for-Expat-2.2.0.patch

___
Python tracker 

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



[issue27369] [PATCH] Tests break with --with-system-expat and Expat 2.2.0

2016-06-22 Thread sping

New submission from sping:

Expat commit
https://sourceforge.net/p/expat/code_git/ci/550eb6bbaa7e6efc44e94cab945fe9c781c01211
 introduced with the recent release of Expat 2.2.0 fixed a bug that the current 
Python test suite relies on.

Attached you find patches to fix the test suite for all versions in a 
backwards-compatible way.  Please consider application upstream.  Thanks!

Best, Sebastian

--
components: Tests
files: 0001-Fix-Python-2.7.11-tests-for-Expat-2.2.0.patch
keywords: patch
messages: 269079
nosy: sping
priority: normal
severity: normal
status: open
title: [PATCH] Tests break with --with-system-expat and Expat 2.2.0
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: 
http://bugs.python.org/file43514/0001-Fix-Python-2.7.11-tests-for-Expat-2.2.0.patch

___
Python tracker 

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



[issue17909] Autodetecting JSON encoding

2016-06-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
versions: +Python 3.6 -Python 3.5
Added file: http://bugs.python.org/file43513/json_detect_encoding_3.patch

___
Python tracker 

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



[issue27345] GzipFile's readinto() reads gzip data instead of file data.

2016-06-22 Thread Ryan Birmingham

Ryan Birmingham added the comment:

It seems to work as expected in python 3.5 (and at least up, presumably). I'll 
close it. Thank you.

--
status: open -> closed

___
Python tracker 

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



[issue4945] json checks True/False by identity, not boolean value

2016-06-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Added file: http://bugs.python.org/file43512/json_doc_truefalse-2.7_2.patch

___
Python tracker 

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



[issue4945] json checks True/False by identity, not boolean value

2016-06-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Updated patches are synchronized with current sources and address Ezio's 
comments (sorry for the delay Ezio, I missed your comments).

--
versions: +Python 3.6 -Python 3.4
Added file: http://bugs.python.org/file43511/json_doc_truefalse_3.patch

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

No, it ends with the last 3.5 maintenance release in about 6 months.  When I 
did it right, as in #27245, which was otherwise a clean single file merge, 
there was no problem and it took at most an extra 30 seconds.  I know what I 
did wrong this time, starting with not writing down the steps needed, and in 
which order, for a much more complicated merge.

--

___
Python tracker 

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



[issue25548] Show the address in the repr for class objects

2016-06-22 Thread Tim Graham

Tim Graham added the comment:

I'll echo what Peter said and say that this breaks 5 tests in Django's test 
suite which are checking error messages. If it stays, perhaps it could be added 
to the release notes instead of just NEWS.

--
nosy: +Tim.Graham

___
Python tracker 

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



[issue27152] Additional assert methods for unittest

2016-06-22 Thread R. David Murray

R. David Murray added the comment:

I would expect it to be assertEndswith, etc.  You will note that all the other 
cases of multiple capitals are either englishification of symbolic operators or 
concatenations of separate type words and/or syntactically distinct operators.

--

___
Python tracker 

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



[issue27345] GzipFile's readinto() reads gzip data instead of file data.

2016-06-22 Thread R. David Murray

R. David Murray added the comment:

Probably not in 2.7.  It may be broken, but what if someone is depending on it? 
 (Unlikely, but the chance of it outweighs the benefit of changing it in a 
mainteance release.)

Does the same problem exist in 3.6?  That's probably the only version where we 
would change it.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue27350] Compact and ordered dict

2016-06-22 Thread INADA Naoki

INADA Naoki added the comment:

FYI, bench result of USABLE_FRACTION(n) = (n/2):

Report on Linux ip-10-0-1-249 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 
(2016-03-06) x86_64
Total CPU cores: 2
+--+-++--++
| Benchmark| default | usable n/2 | Change   | Significance   |
+==+=++==++
| 2to3 | 5.18| 5.17   | 1.00x faster | Not significant|
+--+-++--++
| chameleon_v2 | 4.03| 3.87   | 1.04x faster | Significant (t=61.85)  |
+--+-++--++
| django_v3| 0.4 | 0.39   | 1.01x faster | Not significant|
+--+-++--++
| fastpickle   | 0.33| 0.33   | 1.00x slower | Not significant|
+--+-++--++
| fastunpickle | 0.41| 0.42   | 1.04x slower | Significant (t=-56.83) |
+--+-++--++
| json_dump_v2 | 1.93| 1.94   | 1.01x slower | Not significant|
+--+-++--++
| json_load| 0.33| 0.33   | 1.01x faster | Not significant|
+--+-++--++
| nbody| 0.19| 0.19   | 1.00x slower | Not significant|
+--+-++--++
| regex_v8 | 0.04| 0.04   | 1.00x faster | Not significant|
+--+-++--++
| tornado_http | 0.19| 0.2| 1.01x slower | Not significant|
+--+-++--++


I've changed recommended usable fraction from 5/8~2/3 to 1/2~2/3.

--

___
Python tracker 

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



[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-22 Thread Ryan Petrello

Ryan Petrello added the comment:

Nick,

My use case is an issue of backwards compatibility and multiple Python version 
support for a library that makes prolific use of the legacy argspec (args, 
varargs, varkw, defaults) namedtuple, *including* the bound self argument 
behavior.  argspec and signature are quite different, and supporting a 
Py26-Py36 codebase that handles both simultaneously seemed like quite a burden, 
so I opted to write a compatibility shim that returned an Argspec-like object 
for all versions of Python;  this seemed the simplest approach to bridge the 
gap in a codebase that supports Python 2.6 through 3.6, and it's the approach 
that I've seen other major libraries (like Django) take:

https://github.com/pecan/pecan/pull/61

I'm using a similar approach to Python 3.5's getfullargspec() implementation:

https://github.com/python/cpython/blob/3.5/Lib/inspect.py#L1069

...but I don't have a long-term public API for doing it (so I have to rely on 
the private inspect._signature_from_callable call, which seems icky).

--

___
Python tracker 

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



[issue20674] Update comments in dictobject.c

2016-06-22 Thread Jaysinh shukla

Jaysinh shukla added the comment:

Submitting patch which tries to cover mentioned change. I request 
Core-developers to verify the approach I took for fixing this change. Thanks!

--
keywords: +patch
nosy: +jaysinh.shukla
Added file: http://bugs.python.org/file43510/issue20674_patch_v1.diff

___
Python tracker 

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



[issue27350] Compact and ordered dict

2016-06-22 Thread INADA Naoki

Changes by INADA Naoki :


Added file: http://bugs.python.org/file43509/compact-dict.patch

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is this dance with renaming forever?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue27350] Compact and ordered dict

2016-06-22 Thread INADA Naoki

INADA Naoki added the comment:

Thank you, mark.

I've added PY_INT16_T and PY_UINT16_T for windows, too.

https://github.com/methane/cpython/pull/1/commits/dfaa44c051b2dbf580701729944cd0fda00cb541
https://github.com/methane/cpython/pull/1/commits/af80dc27dd381af9d211792963a23c5cecfa7009

I'll post next patchset soon.

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Suspicion wrong.  idle_test and hand tests pass.

Larry, I am done with this.  I left it open until you are also.

--
resolution:  -> fixed
stage: test needed -> resolved

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 33769ce40b47 by Terry Jan Reedy in branch 'default':
Issue #27365: Finish merge so tests pass.
https://hg.python.org/cpython/rev/33769ce40b47

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Because of the case conflict I did not notice soon enough, the rest of the 
patch and merge did not go well and I got this

test test_idle crashed -- Traceback (most recent call last):
  File "F:\Python\dev\36\lib\test\libregrtest\runtest.py", line 180, in 
runtest_inner
test_runner()
  File "F:\Python\dev\36\lib\test\libregrtest\runtest.py", line 178, in 
test_runner
raise Exception("errors while loading tests")
Exception: errors while loading tests

I suspect it is a problem with textView/textview, so I will temporarily disable 
test files to find the culprit.

--

___
Python tracker 

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



[issue27368] os.mkdir is not working for multiple level of directory creation in windows environment

2016-06-22 Thread SilentGhost

SilentGhost added the comment:

You need to use os.makedirs

--
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: enhancement -> behavior

___
Python tracker 

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



[issue26923] asyncio.gather drops cancellation

2016-06-22 Thread Johannes Ebke

Johannes Ebke added the comment:

Attached is a new version of the patch incorporating the review results.

--
Added file: http://bugs.python.org/file43508/fix_and_test_26923_reviewed.patch

___
Python tracker 

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



[issue27368] os.mkdir is not working for multiple level of directory creation in windows environment

2016-06-22 Thread Chandrajyoti

New submission from Chandrajyoti:

Problem:
os.mkdir is not working for multiple level of directory creation in windows 
environment.

Explanation:
Suppose there is a directory whose path is "D:\Output"

Now to create 2 levels of directory in side the path "D:\Output", when 
os.mkdir("D:\Output\Dir1\Dir2") is used, python 2.7 throws errors as below:
Traceback (most recent call last):
  File "", line 1, in 
WindowsError: [Error 3] The system cannot find the path specified: 
'D:\\Output\\Dir1\\Dir2'

Please update python to create multiple level of directory.

--
components: Library (Lib)
messages: 269062
nosy: ChandrajyotiDas
priority: normal
severity: normal
status: open
title: os.mkdir is not working for multiple level of directory creation in 
windows environment
type: 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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 49323bb44229 by Terry Jan Reedy in branch 'default':
Issue #27365: revert  temporary rename
https://hg.python.org/cpython/rev/49323bb44229

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3a122d0e4187 by Terry Jan Reedy in branch 'default':
Issue #27365: add chunk
https://hg.python.org/cpython/rev/3a122d0e4187

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 54dde0cb10f9 by Terry Jan Reedy in branch 'default':
Issue #27365: revert  temporary rename
https://hg.python.org/cpython/rev/54dde0cb10f9

New changeset be0dec826982 by Terry Jan Reedy in branch 'default':
Issue #27365: add chunk
https://hg.python.org/cpython/rev/be0dec826982

--

___
Python tracker 

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



[issue27367] Windows buildbot: random timeout failure on test_threading

2016-06-22 Thread STINNER Victor

New submission from STINNER Victor:

test_threading fails with a timeout, but it is probably a random failure caused 
by a slow Windows buildbot.

http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/7871/steps/test/logs/stdio

0:21:16 [351/401] test_threading crashed -- running: test_concurrent_futures 
(93 sec)
Timeout (0:15:00)!
Thread 0x14a0 (most recent call first):
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\threading.py", line 
295 in wait
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\lock_tests.py", 
line 473 in f
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\lock_tests.py", 
line 38 in task

Thread 0x1704 (most recent call first):
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\lock_tests.py", 
line 17 in _wait
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\lock_tests.py", 
line 511 in _check_notify
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\lock_tests.py", 
line 520 in test_notify
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\case.py", 
line 600 in run
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\case.py", 
line 648 in __call__
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\suite.py", 
line 122 in run
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\suite.py", 
line 84 in __call__
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\suite.py", 
line 122 in run
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\suite.py", 
line 84 in __call__
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\suite.py", 
line 122 in run
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\suite.py", 
line 84 in __call__
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\runner.py", 
line 176 in run
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\support\__init__.py", 
line 1803 in _run_suite
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\support\__init__.py", 
line 1837 in run_unittest
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\runtest.py", 
line 179 in test_runner
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\runtest.py", 
line 180 in runtest_inner
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\runtest.py", 
line 133 in runtest
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\runtest_mp.py",
 line 71 in run_tests_slave
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\main.py", 
line 453 in _main
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\main.py", 
line 446 in main
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\main.py", 
line 508 in main
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\regrtest.py", 
line 46 in _main
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\regrtest.py", 
line 50 in 
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\runpy.py", line 85 in 
_run_code
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\runpy.py", line 184 in 
_run_module_as_main
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\runpy.py", line 184, 
in _run_module_as_main
"__main__", mod_spec)
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\runpy.py", line 85, in 
_run_code
exec(code, run_globals)
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\__main__.py", 
line 2, in 
main()
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\main.py", 
line 508, in main
Regrtest().main(tests=tests, **kwargs)
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\main.py", 
line 446, in main
self._main(tests, kwargs)
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\main.py", 
line 466, in _main
self.run_tests()
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\main.py", 
line 404, in run_tests
run_tests_multiprocess(self)
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\libregrtest\runtest_mp.py",
 line 221, in run_tests_multiprocess
raise Exception(msg)
Exception: Child error on test_threading: Exit code 1

--
components: Tests
keywords: buildbot
messages: 269058
nosy: haypo
priority: normal
severity: normal
status: open
title: Windows buildbot: random timeout failure on test_threading
versions: Python 3.6

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d5ee1e5c1ac0 by Terry Jan Reedy in branch '3.5':
Issue #27365: Allow non-ascii in idlelib/NEWS.txt, for contributor names.
https://hg.python.org/cpython/rev/d5ee1e5c1ac0

New changeset e7ecad98a785 by Terry Jan Reedy in branch 'default':
Issue #27365: temporary rename
https://hg.python.org/cpython/rev/e7ecad98a785

New changeset a4aa45859b5c by Terry Jan Reedy in branch 'default':
Issue #27365: partial merge
https://hg.python.org/cpython/rev/a4aa45859b5c

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

783dfd77e4c1 is the one to pick for 3.5, then null merge if you merge to 3.6.

--

___
Python tracker 

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



[issue26859] unittest fails with "Start directory is not importable" when trying to run sourceless tests

2016-06-22 Thread Xavier de Gaye

Xavier de Gaye added the comment:

> the list_dir() nested function is never called
Verifying that load_tests is called is the purpose of this test. In this case 
should_recurse is false in _find_tests() and os.listdir() is not invoked by 
this method.

This new patch does not use vfs and list_dir and uses subtests to also check 
that TestLoader.discover() does consider that a path refers to a package 
directory when it contains an '__init__.pyc' file and no '__init__.py' file, 
and vice-versa.

--
Added file: http://bugs.python.org/file43507/unittest_3.patch

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 783dfd77e4c1 by Terry Jan Reedy in branch '3.5':
Issue #27365: Allow non-ascii in idlelib/NEWS.txt - minimal part for 3.5.2.
https://hg.python.org/cpython/rev/783dfd77e4c1

New changeset b8926908d2a0 by Terry Jan Reedy in branch 'default':
Issue #27365:  Merge minimal part.
https://hg.python.org/cpython/rev/b8926908d2a0

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I was wondering if splitting the patch would be better.  Shelve makes it easy.

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I should mention that I have separate 3.5 and 3.6 patches because I know that 
the merge will not work.

--

___
Python tracker 

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



[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-22 Thread Larry Hastings

Larry Hastings added the comment:

If the diff is literally changing two lines, I'll accept it.  Guido relaxed the 
rules for IDLE changes.  If it breaks something it's on *your* head ;-)

Please just check it in normally.  Either I'm going to use hg to cherry-pick 
the changes for 3.5.2 final, or I'm going to have to apply patches manually 
anyway.  Either way an hg checkin is fine.

Please check in this minimal change *as a separate checkin* from the larger 
changes, if you're committing the other changes any time soon.

--

___
Python tracker 

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



[issue27366] PEP487: Simpler customization of class creation

2016-06-22 Thread Martin Teichmann

New submission from Martin Teichmann:

This is the implementation of PEP 487.

It adds a metaclass to types that calls a method on a class
once it is subclassed. This way one can customize the creation
of classes without the need to write an own metaclass.

As a second functionality, it calls a method on each descriptor
in a class, such that descriptors know their name.

--
components: Library (Lib)
files: pep487.patch
keywords: patch
messages: 269050
nosy: Martin.Teichmann
priority: normal
severity: normal
status: open
title: PEP487: Simpler customization of class creation
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file43506/pep487.patch

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-22 Thread Lele Gaifax

Lele Gaifax added the comment:

I addressed Martin's comments (thank you!) in
https://github.com/lelit/cpython/commits/issue8_2, removing pointless
usage of a macro and avoiding usage of module's state to store the "next line
index", keeping it in a plain static variable.

Let me know how it looks now.

Martin Panter writes:

> Python’s “readline” module currently has runtime detection of Editline vs
> Gnu Readline. I am not sure if it is strictly needed, or just that it was
> easier than build-time detection, as hinted in
> . It is confusing, because we
> have other build-time detection of particular Readline features.

Yes, it confused me too. Also, there is at least one spot in setup_readline()
that seems wrong to me, because it does not consider if it's effectively using
libedit:

#ifndef __APPLE__
if (!isatty(STDOUT_FILENO)) {
/* Issue #19884: stdout is not a terminal. Disable meta modifier
   keys to not write the ANSI sequence "\033[1034h" into stdout. On
   terminals supporting 8 bit characters like TERM=xterm-256color
   (which is now the default Fedora since Fedora 18), the meta key 
is
   used to enable support of 8 bit characters (ANSI sequence
   "\033[1034h").

   With libedit, this call makes readline() crash. */
rl_variable_bind ("enable-meta-key", "off");
}
#endif

> Perhaps you may be able to try out Editline using my patch for Issue 13501,
> but in my experience, the non-Apple patched Editline is too buggy to be
> useful in Python for much more than experimentation.

I will try to find some spare time to spend on this, but unfortunately I can
not promise I'll be able to do that in the near future, sorry.

> I would prefer to expose more of this at the Python level, but that seems
> hard to do.

Yeah, I know (I've been here nearly from the beginning ;-).

--

___
Python tracker 

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