[issue30640] NULL + 1

2017-06-12 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

In _PyFunction_FastCallDict() if nk == 0, k is set to NULL. After that k + 1 is 
passed to _PyEval_EvalCodeWithName(). NULL + 1 is an undefined behavior.

--
components: Interpreter Core
messages: 295786
nosy: haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: NULL + 1
versions: Python 3.7

___
Python tracker 

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



[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-12 Thread STINNER Victor

STINNER Victor added the comment:

Here are benchmark results. Sorry, but I'm not really convinced that this 
specialization is worth it.

The change adds yet another calling convention where we already have 
METH_NOARG, METH_VARARGS, METH_O, METH_NOARG | METH_KEYWORDS, METH_FASTCALL...

I'm ok to add a new calling convention but only if it's faster on more 
benchmarks or if it uses much less memory. It doesn't seem to be the case with 
the current change.


Differences of at least 5%:

haypo@speed-python$ python3 -m perf compare_to 
/home/haypo/json/2017-06-09_08-18-master-ef8320cf6f09.json.gz 
~/json/patch/2017-06-09_08-18-master-ef8320cf6f09-patch-1955.json.gz -G 
--min-speed=5 --table

+-+--+-+
| Benchmark   | 2017-06-09_08-18-master-ef8320cf6f09 | 
2017-06-09_08-18-master-ef8320cf6f09-patch-1955 |
+=+==+=+
| spectral_norm   | 283 ms   | 263 ms: 
1.08x faster (-7%)  |
+-+--+-+
| scimark_lu  | 294 ms   | 314 ms: 
1.07x slower (+7%)  |
+-+--+-+
| scimark_sparse_mat_mult | 8.15 ms  | 9.12 ms: 
1.12x slower (+12%)|
+-+--+-+


Differences of at least 2%:

haypo@speed-python$ python3 -m perf compare_to 
/home/haypo/json/2017-06-09_08-18-master-ef8320cf6f09.json.gz 
~/json/patch/2017-06-09_08-18-master-ef8320cf6f09-patch-1955.json.gz -G 
--min-speed=2 --table

+-+--+-+
| Benchmark   | 2017-06-09_08-18-master-ef8320cf6f09 | 
2017-06-09_08-18-master-ef8320cf6f09-patch-1955 |
+=+==+=+
| spectral_norm   | 283 ms   | 263 ms: 
1.08x faster (-7%)  |
+-+--+-+
| genshi_text | 73.1 ms  | 70.5 ms: 
1.04x faster (-3%) |
+-+--+-+
| scimark_monte_carlo | 209 ms   | 201 ms: 
1.04x faster (-3%)  |
+-+--+-+
| raytrace| 1.05 sec | 1.02 sec: 
1.02x faster (-2%)|
+-+--+-+
| regex_v8| 40.3 ms  | 41.4 ms: 
1.03x slower (+3%) |
+-+--+-+
| json_dumps  | 26.2 ms  | 27.0 ms: 
1.03x slower (+3%) |
+-+--+-+
| float   | 207 ms   | 215 ms: 
1.04x slower (+4%)  |
+-+--+-+
| crypto_pyaes| 199 ms   | 207 ms: 
1.04x slower (+4%)  |
+-+--+-+
| scimark_fft | 644 ms   | 675 ms: 
1.05x slower (+5%)  |
+-+--+-+
| scimark_lu  | 294 ms   | 314 ms: 
1.07x slower (+7%)  |
+-+--+-+
| scimark_sparse_mat_mult | 8.15 ms  | 9.12 ms: 
1.12x slower (+12%)|
+-+--+-+

--

___
Python 

Nikola v7.8.8 is out!

2017-06-12 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate
availability of Nikola v7.8.8. It fixes some bugs and adds new
features.

What is Nikola?
===

Nikola is a static site and blog generator, written in Python.
It can use Mako and Jinja2 templates, and input in many popular markup
formats, such as reStructuredText and Markdown — and can even turn
Jupyter Notebooks into blog posts! It also supports image galleries,
and is multilingual. Nikola is flexible, and page builds are extremely
fast, courtesy of doit (which is rebuilding only what has been changed).

Find out more at the website: https://getnikola.com/

Downloads
=

Install using `pip install Nikola` or download tarballs on GitHub and PyPI:

https://github.com/getnikola/nikola/releases/tag/v7.8.8
https://pypi.python.org/pypi/Nikola/7.8.8

Changes
===

This release fixes two grave bugs in TOML metadata support (sorry!).
The built-in themes have also been cleaned up and include less unused
assets. In addition, taxonomies now support translations. HTML meta
tags are also possible metadata sources. The default metadata format
to generate can now be changed.

Features


* Providing infrastructure for taxonomies for classification pages to
  link to related classifications in other languages
* Added alternate links (visible and header) for archives and authors
  (Issue #993)
* Added options to add alternative links (visible and header) for
  tags, sections and categories.
* New METADATA_FORMAT option to choose preferred metadata format
  (Nikola/YAML/TOML/Pelican) (Part of Issue #2801)
* Extract metadata from HTML meta and title tags like Pelican (Issue #1923)
* Update assets in the ``base`` and ``base-jinja`` themes and clean
  up code (Issue #2744)
* Show captions in the base theme gallery (Part of issue #2777)

Bugfixes


* Fix two grave bugs in TOML metadata
* Require just one line break after TOML/YAML metadata
* Add alt attribute to images in galleries in base theme (Part of issue
#2777)
* Support empty lines in YAML/TOML metadata (Part of issue #2801)
* Tests run on macOS.



signature.asc
Description: OpenPGP digital signature
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Twisted 17.5 Release Announcement

2017-06-12 Thread Amber Hawkie Brown
On behalf of Twisted Matrix Laboratories, I am honoured to announce the release 
of Twisted 17.5!

The highlights of this release are:

- twisted.python.url has been spun out into the new 'hyperlink' package; 
importing twisted.python.url is now a compatibility alias
- Initial support for OpenSSL 1.1.0.
- Fixes around the reactor DNS resolver changes in 17.1, solving all known 
regressions
- Deferred.asFuture and Deferred.fromFuture, to allow you to map asyncio 
Futures to Twisted Deferreds and vice versa, for use the with Python 3+ 
asyncioreactor in Twisted
- Support for TLS 1.3 ciphersuites, in advance of a released OpenSSL to enable 
the protocol
- Further Python 3 support in twisted.web, initial support in twisted.mail.smtp.

For more information, check the NEWS file (link provided below).

You can find the downloads at > (or alternatively 
>). The NEWS file is also 
available at >.

Many thanks to everyone who had a part in this release - the supporters of the 
Twisted Software Foundation, the developers who contributed code as well as 
documentation, and all the people building great things with Twisted!

Twisted Regards,
Amber Brown (HawkOwl)


signature.asc
Description: Message signed with OpenPGP
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I want close() to be deterministic.  So I guess we have two simple 
possibilities:
1) close() raises if the process is still alive
2) close() calls join() implicitly if the process is still alive

--

___
Python tracker 

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



[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Jim Jewett

Jim Jewett added the comment:

Could join be called in a background thread, or even asynchronously?  That
seems like mixing paradigms, but ...

On Jun 12, 2017 3:15 AM, "Antoine Pitrou"  wrote:

>
> Antoine Pitrou added the comment:
>
> That's a good question.  close() methods on other objects tend to avoid
> taking an infinite amount of time :-)  But then, Process objects are
> different enough that they don't need to follow that rule.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver

New submission from Thomas Kluyver:

This came up in IPython & Jedi: several functions in inspect end up calling 
getfile(). If the object is something for which it can't find the source file, 
it throws an error, the message for which contains the object's repr.

This is problematic for us because for some objects the repr may be expensive 
to calculate (e.g. data tables where the repr forms primary output, not just 
debugging information). In some cases, it could also throw another error.

I plan to make a PR for this, but I'm opening an issue so I've got a bpo number.

https://github.com/ipython/ipython/issues/10493
https://github.com/davidhalter/jedi/issues/919

--
components: Library (Lib)
messages: 295782
nosy: takluyver
priority: normal
severity: normal
status: open
title: inspect.getfile(obj) calls object repr on failure
type: behavior

___
Python tracker 

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



[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-12 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


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



[issue30638] Additional dependencies and rule for `make regen-all`

2017-06-12 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

`make regen-all` regenerates many generated files. But not all.

1. Argument Clinic files has their own make target, `make clinic`. Perhaps 
"clinic" should be a dependency for "regen-all".

2. Lib/token.py and Lib/symbols.py are generated from Include/token.h and 
Include/graminit.h.

3. Lib/keyword.py is generated from graminit.c.

4. Modules/sre_constants.h is generated from Lib/sre_constants.py.

5. Lib/stringprep.py is generated by mkstringprep.py (currently it is slightly 
outdated).

6. Objects/unicodetype_db.h, Objects/unicodetype_db.h and 
Modules/unicodename_db.h are generated by makeunicodedata.py (it downloads 
Unicode data from Internet).

Some generating scripts support Python 2.7 and even older versions. Some 
generating scripts (in particular Argument Clinic) need recent Python version 
(3.5+ or like).

--
components: Build
messages: 295781
nosy: haypo, ncoghlan, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Additional dependencies and rule for `make regen-all`
type: enhancement
versions: Python 3.7

___
Python tracker 

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



[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-12 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 41af942e57f9a450cf273ef6b72a21380c6ba8d1 by Victor Stinner 
(Stéphane Wirtel) in branch '2.7':
bpo-30615: Fix the leak reference in Modules/_elementtree.c (#2129)
https://github.com/python/cpython/commit/41af942e57f9a450cf273ef6b72a21380c6ba8d1


--

___
Python tracker 

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



[issue28180] sys.getfilesystemencoding() should default to utf-8

2017-06-12 Thread Nick Coghlan

Changes by Nick Coghlan :


--
pull_requests: +2184

___
Python tracker 

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



[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I've merged a fix for Python 3.7.  Since the fix is a bit delicate, I don't 
want to risk regression by merging it into 3.6 and 3.5. Closing now.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:


New changeset dfd5f34634f9c505945e9348b4b799544680a7cf by Antoine Pitrou in 
branch 'master':
Fix bpo-30589: improve Process.exitcode with forkserver (#1989)
https://github.com/python/cpython/commit/dfd5f34634f9c505945e9348b4b799544680a7cf


--

___
Python tracker 

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



[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
pull_requests: +2185

___
Python tracker 

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



[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

yep, I see that, I fix it asap

--

___
Python tracker 

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



[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan

Nick Coghlan added the comment:

I just noticed that there's a line-wrapping problem in the patch as-merged. The 
output ends up being:

PYTHONCOERCECLOCALE: if this variable is set to 0, it disables the locale
coercion behavior

It should either match the immediately preceding settings, which use a three 
space indent:

PYTHONMALLOC: set the Python memory allocators and/or install debug hooks
   on Python memory allocators. Use PYTHONMALLOC=debug to install debug
   hooks.

While some of the earlier ones align the continuation line with the opening 
text on the first line, those are all for much shorter variable names.

--
components: +Interpreter Core
resolution: fixed -> 
stage: resolved -> needs patch
status: closed -> open

___
Python tracker 

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



[issue28414] SSL match_hostname fails for internationalized domain names

2017-06-12 Thread Nick Lamb

Nick Lamb added the comment:

I endorse njs' recommended fix here. Don't try to get clever, this is a 
security component, it should be the dumbest it can be possibly be while being 
correct, because if it's smarter it will probably be wrong.

--
nosy: +tialaramex

___
Python tracker 

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



[issue30624] selectors should use bare except clauses

2017-06-12 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

I see that on 3.6 except BaseException: is used, so the backport should not be 
necessary.

--
resolution:  -> fixed
stage: backport needed -> resolved
status: open -> closed
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



[issue30624] selectors should use bare except clauses

2017-06-12 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:


New changeset ced36a993fcfd1c76637119d31c03156a8772e11 by Giampaolo Rodola in 
branch 'master':
bpo-30624 remaining bare except (#2108)
https://github.com/python/cpython/commit/ced36a993fcfd1c76637119d31c03156a8772e11


--

___
Python tracker 

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



[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

2017-06-12 Thread Hrvoje Nikšić

New submission from Hrvoje Nikšić:

Our application compiles snippets of user-specified code using the compile 
built-in with ast.PyCF_ONLY_AST flag. At this stage we catch syntax errors and 
perform some sanity checks on the AST. The AST is then compiled into actual 
code using compile() and run using further guards.

We found that using a bare "return" in the code works with ast.PyCF_ONLY_AST, 
but raises SyntaxError when compiled without the flag:

>>> import ast
>>> compile('return', '', 'exec', ast.PyCF_ONLY_AST, True)
<_ast.Module object at 0x7f35df872310>

>>> compile('return', '', 'exec', 0, True)
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 1
SyntaxError: 'return' outside function

Is this intended behavior? It doesn't seem to be documented anywhere.

--
components: Interpreter Core
messages: 295771
nosy: hniksic
priority: normal
severity: normal
status: open
title: Syntax error reported on compile(...), but not on compile(..., 
ast.PyCF_ONLY_AST)
versions: Python 2.7, Python 3.7

___
Python tracker 

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

2017-06-12 Thread Nick Coghlan

Nick Coghlan added the comment:

Moving to deferred blocker and taking 3.6 off the affected versions list, since 
the 3.6 What's New has now been updated appropriately.

Items still to be done:

- make a similar change to the 3.5 What's New on the 3.5 branch
- update the maintenance release changes section in the 2.7 What's New on the 
2.7 branch
- cherry-pick the 2.7, 3.5, & 3.6 updates in order to make a combined PR for 
the development branch

--
priority: release blocker -> deferred blocker
stage: needs patch -> backport needed
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



[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-12 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
pull_requests: +2183

___
Python tracker 

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

2017-06-12 Thread Nick Coghlan

Nick Coghlan added the comment:


New changeset e1b690370fd8f93bef1e69eeea2695f95a7cfff5 by Nick Coghlan in 
branch '3.6':
bpo-23404: `make regen-all` What's New entry (#2128)
https://github.com/python/cpython/commit/e1b690370fd8f93bef1e69eeea2695f95a7cfff5


--

___
Python tracker 

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



[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan

Changes by Nick Coghlan :


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



[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan

Nick Coghlan added the comment:


New changeset 7d1017d9ed3285857e827635eda966da246dcd5f by Nick Coghlan 
(Stéphane Wirtel) in branch 'master':
bpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (GH-2125)
https://github.com/python/cpython/commit/7d1017d9ed3285857e827635eda966da246dcd5f


--

___
Python tracker 

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

2017-06-12 Thread Nick Coghlan

Nick Coghlan added the comment:

Thanks for that Victor. I started to review the PR, and then realised my 
suggestions were going to be extensive enough that it made more sense to post 
an alternate PR for you to review: https://github.com/python/cpython/pull/2128

--

___
Python tracker 

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

2017-06-12 Thread Nick Coghlan

Changes by Nick Coghlan :


--
pull_requests: +2182

___
Python tracker 

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



Re: Generate PDF with Tamil font problem

2017-06-12 Thread Steve D'Aprano
On Mon, 12 Jun 2017 05:51 pm, ccubed...@gmail.com wrote:

> On Saturday, 5 March 2011 10:50:25 UTC+5:30, sath...@e-ndicus.com  wrote:
>> Hi All,
>> 
>>I am using python's reportlab to print some unicode Tamil characters
>> ''. I added necessary unicode font to reportlab. But It
>> prints the output as '' (in reverse order). This issue
>> happens for multi-byte characters, whereas for character '' is
>> printed as it is.
>> I am struggling to figure out the issue. Any help would see me on track.
>> 
>> Thank you,
[...]

> I am also facing the same problem with another similar Indian language-
> Malayalam. Has anybody encountered such issue and found any solution for this?

You are replying to a six year old message from 2011. I doubt anyone remembers
the details of that discussion.

Please show us a SIMPLE example of this issue.

If I try this, I get something which appears to be okay:

py> print('\u2986\u3015')
⦆〕

but they don't appear to be Tamil characters?

py> for c in '\u2986\u3015':
... unicodedata.name(c)
...
'RIGHT WHITE PARENTHESIS'
'RIGHT TORTOISE SHELL BRACKET'


Let me try this instead:

py> for c in (chr(2986), chr(3015)):
... unicodedata.name(c)
...
'TAMIL LETTER PA'
'TAMIL VOWEL SIGN EE'

That's better!

py> print(''.join([chr(2986), chr(3015)]))
பே


If you want help to diagnose and fix this, you will need to show us some simple
code demonstrating the problem. Also tell us what output you expect, and what
version of Python you are running.





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

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


[issue30634] ctypes.cast(obj, ctypes.c_void_p) invalid return in linux_x64

2017-06-12 Thread Eryk Sun

Eryk Sun added the comment:

It's undocumented that cast() should work to directly convert Python strings to 
pointers. Even when it seems to work, it's a risky thing to depend on because 
there's no source ctypes data object to reference. Thus there's neither 
_b_base_ nor anything in _objects to support the reference. If the string has 
since been deallocated, the pointer is invalid.

What you've uncovered is an implementation detail. Windows has a 16-bit 
unsigned wchar_t type, so HAVE_USABLE_WCHAR_T is defined when building the 
default narrow build in Python 2. In this case ctypes can use 
PyUnicode_AS_UNICODE, which is why you can get the base address of the unicode 
object's internal buffer on Windows. 

Linux systems define wchar_t as a 4-byte signed value. IIRC it's a typedef for 
int. Because wchar_t is signed in this case, HAVE_USABLE_WCHAR_T is not defined 
even for a wide build. ctypes has to temporarily copy the string via 
PyUnicode_AsWideChar. It references the memory in a capsule object. You can see 
this by constructing a c_wchar_p instance, for example:

>>> p = ctypes.c_wchar_p(u'helloworld')
>>> p._objects


In your case, by the time you actually look at the address, the capsule has 
been deallocated, and the memory is no longer valid. For example:

>>> addr = ctypes.cast(u'helloworld', ctypes.c_void_p).value
>>> ctypes.wstring_at(addr, 10)
u'\U0150ccf0\x00\U0150cc00\x00oworld'

It works as expected if one instead casts a c_wchar_p instance, which 
references the capsule to keep the memory alive:

>>> addr = ctypes.cast(p, ctypes.c_void_p).value
>>> ctypes.wstring_at(addr, 10)
u'helloworld'

However, that's not what you want since we know it's a copy. I think your only 
option is to use the C API via ctypes.pythonapi. For example:

ctypes.pythonapi.PyUnicodeUCS4_AsUnicode.argtypes = (ctypes.py_object,)
ctypes.pythonapi.PyUnicodeUCS4_AsUnicode.restype = ctypes.c_void_p

s = u'helloworld'
addr = ctypes.pythonapi.PyUnicodeUCS4_AsUnicode(s)

>>> ctypes.wstring_at(addr, 10)
u'helloworld'

On narrow builds this function is exported a PyUnicodeUCS2_AsUnicode.

--
nosy: +eryksun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-12 Thread Yury Selivanov

Yury Selivanov added the comment:

See also issue 29970.

--

___
Python tracker 

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



[issue29679] Add @contextlib.asynccontextmanager

2017-06-12 Thread Yury Selivanov

Changes by Yury Selivanov :


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



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

2017-06-12 Thread STINNER Victor

STINNER Victor added the comment:

I wrote https://github.com/python/cpython/pull/2127 to document "make 
regen-all". I'm not sure that it's the correct way to document such build 
change in minor 3.6 releases. Can someone please take a look?

--

___
Python tracker 

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

2017-06-12 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2181

___
Python tracker 

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



[issue9566] Compilation warnings under x64 Windows

2017-06-12 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue30635] Leak in test_c_locale_coercion

2017-06-12 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2180

___
Python tracker 

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



[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
pull_requests: +2179

___
Python tracker 

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



[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel

New submission from Stéphane Wirtel:

Add the description of PYTHONCOERCECLOCALE in the command line.

--
messages: 295763
nosy: matrixise, ncoghlan
priority: normal
severity: normal
status: open
title: Add PYTHONCOERCECLOCALE to the help of the command line
versions: Python 3.7

___
Python tracker 

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-12 Thread STINNER Victor

STINNER Victor added the comment:

I'm happy to see this "old" issue now fixed :-)

--

___
Python tracker 

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



[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-12 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy:  -haypo

___
Python tracker 

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



[issue11822] Improve disassembly to show embedded code objects

2017-06-12 Thread STINNER Victor

STINNER Victor added the comment:

Thanks Serhiy, it works and I like the result :-)

>>> def f():
...  def g():
...   return 3
...  return g
... 

>>> import dis; dis.dis(f)
  2   0 LOAD_CONST   1 (", line 2>)
  2 LOAD_CONST   2 ('f..g')
  4 MAKE_FUNCTION0
  6 STORE_FAST   0 (g)

  4   8 LOAD_FAST0 (g)
 10 RETURN_VALUE

Disassembly of ", line 2>:
  3   0 LOAD_CONST   1 (3)
  2 RETURN_VALUE

--

___
Python tracker 

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



[issue30635] Leak in test_c_locale_coercion

2017-06-12 Thread STINNER Victor

STINNER Victor added the comment:

Likely a leak in the implementation of the PEP 538, commit 
6ea4186de32d65b1f1dc1533b6312b798d300466, bpo-28180.

--
nosy: +haypo

___
Python tracker 

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



[issue30635] Leak in test_c_locale_coercion

2017-06-12 Thread Stéphane Wirtel

New submission from Stéphane Wirtel:

./python -m test -R 3:3  test_c_locale_coercion -m 
test_external_target_locale_configuration   

 Mon 12 Jun 2017 10:57:14 AM CEST
Run tests sequentially
0:00:00 load avg: 1.31 [1/1] test_c_locale_coercion
beginning 6 repetitions
123456
..
test_c_locale_coercion leaked [2, 2, 2] references, sum=6
test_c_locale_coercion failed

1 test failed:
test_c_locale_coercion

Total duration: 4 sec
Tests result: FAILURE

--
messages: 295759
nosy: matrixise
priority: normal
severity: normal
status: open
title: Leak in test_c_locale_coercion
versions: Python 3.7

___
Python tracker 

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



[issue30635] Leak in test_c_locale_coercion

2017-06-12 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue30634] ctypes.cast(obj, ctypes.c_void_p) invalid return in linux_x64

2017-06-12 Thread fooofei

New submission from fooofei:

module:ctypes
pyversion: 2.7.13
python platform : win32, linux_x86_x64

I use ctypes.cast(v,ctypes.c_void_p).value to get address of 'helloworld' and 
u'helloworld' internal buffer address.

the result is both right in win32,but not in linux.

'helloworld'  is right, u'helloworld' is invalid.

please see 
https://github.com/fooofei/py_string_address
https://github.com/fooofei/py_string_address/blob/master/issue.py

--
components: ctypes
messages: 295758
nosy: fooofei
priority: normal
severity: normal
status: open
title: ctypes.cast(obj,ctypes.c_void_p) invalid return in linux_x64
type: behavior
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



[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Andreas Jung

New submission from Andreas Jung:

Installing Python 3.6.1 from the sources on OpenSuse 42.1 gives me:

o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o 
Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o 
Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o 
Python/random.o Python/structmember.o Python/symtable.o Python/sysmodule.o 
Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o 
Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o 
Python/dynload_shlib.o   Python/thread.o  Python/frozen.o
ar rc libpython3.6m.a Modules/config.o Modules/getpath.o Modules/main.o 
Modules/gcmodule.o
ar rc libpython3.6m.a Modules/_threadmodule.o  Modules/posixmodule.o  
Modules/errnomodule.o  Modules/pwdmodule.o  Modules/_sre.o  
Modules/_codecsmodule.o  Modules/_weakref.o  Modules/_functoolsmodule.o  
Modules/_operator.o  Modules/_collectionsmodule.o  Modules/itertoolsmodule.o  
Modules/atexitmodule.o  Modules/signalmodule.o  Modules/_stat.o  
Modules/timemodule.o  Modules/_localemodule.o  Modules/_iomodule.o 
Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o 
Modules/textio.o Modules/stringio.o  Modules/zipimport.o  
Modules/faulthandler.o  Modules/_tracemalloc.o Modules/hashtable.o  
Modules/symtablemodule.o  Modules/xxsubtype.o
ranlib libpython3.6m.a
gcc -pthread  -fprofile-generate  -Xlinker -export-dynamic -o python 
Programs/python.o libpython3.6m.a -lpthread -ldl  -lutil   -lm
gcc -pthread  -fprofile-generate  -Xlinker -export-dynamic -o 
Programs/_testembed Programs/_testembed.o libpython3.6m.a -lpthread -ldl  
-lutil   -lm
./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Could not find platform independent libraries 
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x7f8a8d4c6680 (most recent call first):
/bin/sh: line 5: 31168 Aborted ./python -E -S -m sysconfig 
--generate-posix-vars
generate-posix-vars failed
Makefile:595: recipe for target 'pybuilddir.txt' failed
make[2]: *** [pybuilddir.txt] Error 1
make[2]: Leaving directory '/data/home/ajung/src/Python-3.6.1'
Makefile:511: recipe for target 'build_all_generate_profile' failed
make[1]: *** [build_all_generate_profile] Error 2
make[1]: Leaving directory '/data/home/ajung/src/Python-3.6.1'
Makefile:492: recipe for target 'profile-opt' failed
make: *** [profile-opt] Error 2

Some search on Google reveals some dependency to PYTHONPATH but this variable 
is not set on my system

--
components: Installation
messages: 295757
nosy: zopyx
priority: normal
severity: normal
status: open
title: Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: 
No module named 'encodings'
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



[issue30632] IDLE: add unittest to test_autocomplete

2017-06-12 Thread Louie Lu

Changes by Louie Lu :


--
pull_requests: +2178

___
Python tracker 

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



[issue23033] Disallow support for a*.example.net, *a.example.net, and a*b.example.net in certificate wildcard handling.

2017-06-12 Thread Christian Heimes

Christian Heimes added the comment:

It's probably not a good idea to port it to 3.6. It's a backwards incompatible 
change.

--

___
Python tracker 

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



[issue30632] IDLE: add unittest to test_autocomplete

2017-06-12 Thread Louie Lu

New submission from Louie Lu:

Add unittest to test_open_completions, test_fetch_copmletions, and 
test_get_entity in test_autocomplete

--
assignee: terry.reedy
components: IDLE
messages: 295755
nosy: louielu, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: add unittest to test_autocomplete
type: enhancement
versions: Python 3.7

___
Python tracker 

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



[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> The idea is that modifier (such as "!" would require a width argument (the 
> signed representation only make sense in fixed width concepts as every 
> assembly language programmer knows).  Its presence would also imply the "0".

I would use the precision for this. Truncating the number of digits in integer 
representation is similar to truncating the number of characters for strings.

But actually I don't think we should add such feature in the core. It has very 
limited application. This can be implemented as a third-part library.

Actually I think the stdlib needs something like bitarray and/or bitset. The 
specially purposed types that allow testing and modifying separate bits and bit 
ranges.

--

___
Python tracker 

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



[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This is a recurring need in my teaching of Python to hardware engineers.   The 
whole point of having a binary format code is to show which bits are set.  For 
negative values, that need is not being served by the current option.  And it 
makes it awkward when modeling the effects of bitwise operations on signed 
numbers.

I can understand a -1 if you think this is fundamentally broken, but if you're 
just saying that you've never personally needed this or casually dismissing the 
awkwardness of the usual workarounds, then it seems like a meaningless vote 
that blows-off my proposal which is based on real-world classroom experiences.

The idea is that modifier (such as "!" would require a width argument (the 
signed representation only make sense in fixed width concepts as every assembly 
language programmer knows).  Its presence would also imply the "0".

Serhiy, I believe you've either read different maillist posts than I have or 
that you're misinterpreting this as a proposal for a fixed width integer type 
with automatic wrap-around and truncation (full emulation of a register).  This 
proposal is for display formatting only.  IMO, it remedies a deficiency where 
the current option is more for our convenience (not wanting to deal with the 
width) rather than for the user's convenience where the user wants to see which 
bits are set rather than seeing a minus sign (which is both obvious and 
useless).

Also, when a senior coredev presents a proposal, I expect that it will be 
greeted with a little more open mindedness and not instantly shot down as if I 
have no idea what I'm talking about.

--

___
Python tracker 

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



Re: Generate PDF with Tamil font problem

2017-06-12 Thread ccubed2k4
On Saturday, 5 March 2011 10:50:25 UTC+5:30, sath...@e-ndicus.com  wrote:
> Hi All,
> 
>I am using python's reportlab to print some unicode Tamil characters
> ''. I added necessary unicode font to reportlab. But It
> prints the output as '' (in reverse order). This issue
> happens for multi-byte characters, whereas for character '' is
> printed as it is.
> I am struggling to figure out the issue. Any help would see me on track.
> 
> Thank you,
> --
> SatheeshKumar. P
> +91 99446 38595
> +91 87544 15303
> sathe...@e-ndicus.com
> pskuma...@gmail.com

I am also facing the same problem with another similar Indian language- 
Malayalam. Has anybody encountered such issue and found any solution for this?
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Concur with Mark. Similar issues already were raised multiple times on mailing 
lists and the conclusion is that explicit wrapping integers to specific range 
is better. Different behavior for integers out of range is needed in different 
applications.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-06-12 Thread Zhang Wenbo

Zhang Wenbo added the comment:

I think I find a case which can reproduct this bug: 
the UnstructuredTokenList has a ValueTerminal which is long enough(its encoded 
word is longer than policy.maxlen ) and not at the beginning.

For examples, the following subjects can cause this bug:

- 'Re: 我只是一个有那么一点点长的主题而已'
- '回复: 回复:【北京大学-2017年招生信息公告】'

So, the code can not fold a ValueTerminal correctly. 
Seems the method `_fold_as_ew` was designed to do this, but it is missing.

--
Added file: http://bugs.python.org/file46941/test2.py

___
Python tracker 

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



[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

That's a good question.  close() methods on other objects tend to avoid taking 
an infinite amount of time :-)  But then, Process objects are different enough 
that they don't need to follow that rule.

--

___
Python tracker 

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



Re: Strang thing in tkinter, and pdb too?

2017-06-12 Thread Christian Gollwitzer

Am 12.06.17 um 06:03 schrieb Terry Reedy:

On 6/11/2017 10:06 PM, jf...@ms4.hinet.net wrote:

 D:\Temp\widget-tour-py3>python canvasruler.py
 can't invoke "event" command: application has been destroyed
 while executing
 "event generate $w <>"
 (procedure "ttk::ThemeChanged" line 6)
 invoked from within
 "ttk::ThemeChanged"


I have seen this too.  It is not specific to any python/tkinter code, 
but is specific to exiting with some things destroyed and something not.

This must be coming from tcl or tk, not python or tkinter.


I can confirm that this is a Tk error message, with the following cause:
In Tk, the root window with the name ".", which in Python comes to live 
with the Tk() function, determines the lifetime of a program. If you  do:


root=Tk()

an empty window appears. If now the user closes this window with the "x" 
button on top, Tk stops - because usually this means that the program 
should stop - but Tcl does continue, in order to clean up stuff before 
leaving. If now further Tk commands are sent, they give the mentioned error:


>>> import Tkinter
>>> root=Tkinter.Tk()
# here the window was closed using the "x" button

>>> root

# however the Tk() object still exists,
# which is a Tcl interpreter with a dysfunct Tk

>>> root.update()
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", 
line 1019, in update

self.tk.call('update')
_tkinter.TclError: can't invoke "update" command:  application has been 
destroyed

>>>

This behaviour makes the root window special in the sense that the whole 
application stops, when it is closed, because closing this window exits 
the mainloop().


This makes sense for many applications, however sometimes it does not. 
If you wish to create many windows which pop up by themselves and the 
user can close them freely, then one should withdraw the main window:


root=Tkinter.Tk()
root.withdraw()

now the main window disappears, the user can't incidentally close it. 
One can then create additional toplevel windows using


t=Tkinter.Toplevel()

and place anything there. These can be closed without destroying the 
application / exiting the main loop.


Christian

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


[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Mark Dickinson

Mark Dickinson added the comment:

-1 from me. Using `format(x % 2**8, '08b')` seems both short enough to be easy 
to use, and long enough to remind one that there's something a little bit 
unnatural going on here, given that two's complement isn't something that makes 
sense for arbitrary-sized integers.

--
nosy: +eric.smith

___
Python tracker 

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



[issue29334] ssl.SSLObject method getpeercert() is buggy, do_handshake() is strange

2017-06-12 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> backport needed
versions: +Python 3.6, Python 3.7

___
Python tracker 

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



[issue29478] email.policy.Compat32(max_line_length=None) not as documented

2017-06-12 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage: patch review -> backport needed

___
Python tracker 

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



[issue29478] email.policy.Compat32(max_line_length=None) not as documented

2017-06-12 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset b459f7482612d340b88b62edc024628595ec6337 by Mariatta 
(mircea-cosbuc) in branch 'master':
[email] bpo-29478: Fix passing max_line_length=None from Compat32 policy 
(GH-595)
https://github.com/python/cpython/commit/b459f7482612d340b88b62edc024628595ec6337


--

___
Python tracker 

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



Re: Strang thing in tkinter, and pdb too?

2017-06-12 Thread jfong
Terry Reedy於 2017/06/12 UTC+8 12:04:18PM wrote:
> Right.  I got this with IDLE tests before using ttk.  Good luck tracing 
> this to its origin.

A little progress. If I remove temp.destroy() at line 34 then that message is 
gone. hmm...trying to find another way of doing it:-)

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


[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 0cc43df05e36655220468953e838169966b94ebd by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (GH-2034) 
(#2123)
https://github.com/python/cpython/commit/0cc43df05e36655220468953e838169966b94ebd


--

___
Python tracker 

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



[issue30603] textwrap: declining indent level has no test case

2017-06-12 Thread Emily Morehouse

Emily Morehouse added the comment:

Good catch. We should also add additional tests for a declining indentation 
level with a blank line and a declining indentation with a whitespace only 
line, as it is a pattern followed throughout the dedent tests. 

It should be noted that PR 2014 is the appropriate pull request for this issue. 
PR 2064 is for a different, though related, issue 
(https://bugs.python.org/issue30620).

--

___
Python tracker 

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



[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 7d8c1ebd86ce27b28736c5e97fef58ec60b8ef31 by Serhiy Storchaka in 
branch '3.5':
[3.5] bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (GH-2034) 
(#2122)
https://github.com/python/cpython/commit/7d8c1ebd86ce27b28736c5e97fef58ec60b8ef31


--

___
Python tracker 

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



[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-06-12 Thread Zhang Wenbo

Changes by Zhang Wenbo :


--
nosy: +Zhang Wenbo

___
Python tracker 

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



[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset d89dc844d288ee2e403272f3e4552eed6911cafd by Serhiy Storchaka in 
branch '3.6':
[3.6] bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (GH-2034) 
(#2121)
https://github.com/python/cpython/commit/d89dc844d288ee2e403272f3e4552eed6911cafd


--

___
Python tracker 

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



<    1   2