Eric V. Smith | 30 Aug 15:41 2015

PEP 498: Literal String Interpolation

PEP 498 adds a new string prefix which allows simpler string formatting
by embedding expressions inside string literals. The expressions are
evaluated and inserted into the resulting string value:

>>> import datetime
>>> name = 'Fred'
>>> age = 50
>>> anniversary = datetime.date(1991, 10, 12)

>>> f'My name is {name}, my age next year is {age+1}, my anniversary is
{anniversary:%A, %B %d, %Y}.'
'My name is Fred, my age next year is 51, my anniversary is Saturday,
October 12, 1991.'

There's been a lot of discussion about this on python-ideas, much of
which has been incorporated in to the PEP. Now I feel it's ready for
python-dev input.

Note there's a companion PEP 501 which extends this idea by delaying
converting the expression into a string. This allows for more control
over how the expressions are converted in to strings, and allows for
non-string conversions as well.

I have a complete implementation of PEP 498. I'll shortly create an
issue and attach the patch to it.

--

-- 
Eric.
Python tracker | 28 Aug 18:08 2015

Summary of Python tracker Issues


ACTIVITY SUMMARY (2015-08-21 - 2015-08-28)
Python tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open    5042 (+29)
  closed 31671 (+15)
  total  36713 (+44)

Open issues with patches: 2251 

Issues opened (39)
==================

#24909: Windows: subprocess.Popen: race condition for leaking inherita
http://bugs.python.org/issue24909  opened by Adam Meily

#24910: Windows MSIs don't have unique display names
http://bugs.python.org/issue24910  opened by steve.dower

#24911: Context manager of socket.socket is not documented
http://bugs.python.org/issue24911  opened by zodalahtathi

#24912: The type of cached objects is mutable
http://bugs.python.org/issue24912  opened by serhiy.storchaka

#24913: deque.index() overruns deque boundary
(Continue reading)

Yury Selivanov | 27 Aug 23:15 2015
Picon

provisional status for asyncio

Recently, in an asyncio related issue [1], Guido said that new features
for asyncio have to wait till 3.6, since asyncio is no longer a provisional
package.  Later, in an off-list conversation, he suggested that this topic
should be discussed on python-dev, and that it might indeed make sense to
either write a new PEP for cases like this or to augment PEP 411.

My opinion on this topic is that we must maintain full backwards
compatibility for asyncio from 3.5.0, as it is now widely used, and there
is quite a big ecosystem around it.  However, asyncio is simply not mature
enough to be completely feature frozen for about 2 years.

For example, there is an issue [2] to add starttls support to asyncio.  It
is an essential feature, because some protocols start as clear text and
upgrade to TLS later, for example PostgreSQL PQ3 protocol.  It's very hard
to implement starttls on top of asyncio, lots of code will have to be
duplicated -- it's a feature that has to implemented in the asyncio core.

Aside from adding new APIs, we also have to improve debugging
capabilities.  One example is using os.fork() from within a running event
loop -- it must be avoided by all means.  There are safe ways to fork in
asyncio applications (and I plan to document them soon), but asyncio
should raise an exception in debug mode if this happens (see issue [3]).

These are just two immediate issues that I have in mind.  In reality,
asyncio is quite young compared to frameworks like Twisted, which had
years to mature, and accumulate essential features.

My proposal is to amend PEP 411 with two levels of provisional packages:

Level 1: Backwards incompatible changes might be introduced in point
(Continue reading)

Low, Wai HoeX | 27 Aug 10:57 2015
Picon

Python Issue-subprocess problem

Dear,

 

I have faced a problem as below when I startup the python IDLE

 

 

Then I try to run a simple program like this:

 

Other issue is pop out

 

 

May I know how to fix the issue? My laptop is window 7 64bits.

 

 

 

Thanks and having a  nice day !

 

Regards,

Arthur Low Wai Hoe

 

<div>
<div class="WordSection1">
<p class="MsoNormal">Dear, </p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal">I have faced a problem as below when I startup the python IDLE<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Then I try to run a simple program like this:<p></p></p>
<p class="MsoNormal"><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Other issue is pop out<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p></p></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal">May I know how to fix the issue? My laptop is window 7 64bits.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Thanks and having a&nbsp; nice day !<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Regards,<p></p></p>
<p class="MsoNormal">Arthur Low Wai Hoe<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
</div>
Terry Reedy | 27 Aug 06:20 2015
Picon

Testing tkinter on Linux

None of the linux buildbots run with X enabled.  Consequently none of 
the tkinter (or tkinter user) gui tests are run on Linux.  It was thus 
pointed out to me, during discussion of using ttk widgets in Idle, that 
we do not really know if ttk works on the variety of Linux systems 
(beyond the one Serhiy uses) and that I should look into this.

I asked on python-list for help, by linux users running
python3 -m test -ugui test_tk test_ttk_guionly test_idle

Seven people did so with Debian Jessie, Debian Wheezy, Gentoo, Mint, 
openSUSE, and Ubuntu (x2). One machine failed once with the ttk test, 
and then passed.  Another failed the tk test until a mis-configuration 
was fixed.  So tkinter, and ttk in particular, seems to be working on linux.

Do any of the core devs who run the test suite on Linux do so with -uall 
or -ugui?  The gui tests above take about 10 seconds (mostly the tk 
test) on my machine, with some flashing boxes near the end.

--

-- 
Terry Jan Reedy

Papa, Florin | 25 Aug 15:11 2015
Picon

django_v2 benchmark compatibility fix for Python 3.6

Hi All,

My name is Florin Papa and I work in the Server Languages Optimizations Team at Intel Corporation.

I would like to submit a patch that solves compatibility issues of the django_v2 benchmark in the Grand
Unified Python Benchmark. The django_v2 benchmark uses inspect.getargspec(), which is deprecated and
was removed in Python 3.6. Therefore, it crashes with the message "ImportError: cannot import name
'getargspec'" when using the latest version of Python on the default branch.

The patch modifies the benchmark to use inspect.signature() when Python version is 3.6 or above and keep
using inspect.getargspec() otherwise.

Regards,
Florin
Attachment (django_v2_compat_3_6.patch): application/octet-stream, 2023 bytes
Hi All,

My name is Florin Papa and I work in the Server Languages Optimizations Team at Intel Corporation.

I would like to submit a patch that solves compatibility issues of the django_v2 benchmark in the Grand
Unified Python Benchmark. The django_v2 benchmark uses inspect.getargspec(), which is deprecated and
was removed in Python 3.6. Therefore, it crashes with the message "ImportError: cannot import name
'getargspec'" when using the latest version of Python on the default branch.

The patch modifies the benchmark to use inspect.signature() when Python version is 3.6 or above and keep
using inspect.getargspec() otherwise.

Regards,
Florin
Patrascu, Alecsandru | 22 Aug 16:46 2015
Picon

Profile Guided Optimization active by-default

Hi All,

This is Alecsandru from Server Scripting Languages Optimization team at Intel Corporation.

I would like to submit a request to turn-on Profile Guided Optimization or PGO as the default build option
for Python (both 2.7 and 3.6), given its performance benefits on a wide variety of workloads and hardware. 
For instance, as shown from attached sample performance results from the Grand Unified Python
Benchmark, >20% speed up was observed.  In addition, we are seeing 2-9% performance boost from
OpenStack/Swift where more than 60% of the codes are in Python 2.7. Our analysis indicates the
performance gain was mainly due to reduction of icache misses and CPU front-end stalls.

Attached is the Makefile patches that modify the all build target and adds a new one called
"disable-profile-opt". We built and tested this patch for Python 2.7 and 3.6 on our Linux machines
(CentOS 7/Ubuntu Server 14.04, Intel Xeon Haswell/Broadwell with 18/8 cores).  We use "regrtest" suite
for training as it provides the best performance improvement.  Some of the test programs in the suite may
fail which leads to build fail.  One solution is to disable the specific failed test using the "-x " flag (as
shown in the patch)

Steps to apply the patch: 
1.  hg clone https://hg.python.org/cpython cpython 
2.  cd cpython 
3.  hg update 2.7 (needed for 2.7 only) 
4.  Copy *.patch to the current directory 
5.  patch < python2.7-pgo.patch (or patch < python3.6-pgo.patch)
6.  ./configure 
7.  make

To disable PGO
7b. make disable-profile-opt

In the following, please find our sample performance results from latest XEON machine, XEON Broadwell EP.  
Hardware (HW):      Intel XEON (Broadwell) 8 Cores

BIOS settings:      Intel Turbo Boost Technology: false
                    Hyper-Threading: false

Operating System:   Ubuntu 14.04.3 LTS trusty

OS configuration:   CPU freq set at fixed: 2.6GHz by
                        echo 2600000 > /sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq
                        echo 2600000 > /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
                    Address Space Layout Randomization (ASLR) disabled (to reduce run to run variation) by
                        echo 0 > /proc/sys/kernel/randomize_va_space

GCC version:        gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)

Benchmark:          Grand Unified Python Benchmark (GUPB)
                    GUPB Source: https://hg.python.org/benchmarks/                    

Python2.7 results:
    Python source: hg clone https://hg.python.org/cpython cpython
    Python Source: hg update 2.7
    hg id: 0511b1165bb6 (2.7)
    hg id -r 'ancestors(.) and tag()': 15c95b7d81dc (2.7) v2.7.10
    hg --debug id -i: 0511b1165bb6cf40ada0768a7efc7ba89316f6a5

        Benchmarks          Speedup(%)
        simple_logging      20
        raytrace            20
        silent_logging      19
        richards            19
        chaos               16
        formatted_logging   16
        json_dump           15
        hexiom2             13
        pidigits            12
        slowunpickle        12
        django_v2           12
        unpack_sequence     11
        float               11
        mako                11
        slowpickle          11
        fastpickle          11
        django              11
        go                  10
        json_dump_v2        10
        pathlib             10
        regex_compile       10
        pybench             9.9
        etree_process       9
        regex_v8            8
        bzr_startup         8
        2to3                8
        slowspitfire        8
        telco               8
        pickle_list         8
        fannkuch            8
        etree_iterparse     8
        nqueens             8
        mako_v2             8
        etree_generate      8
        call_method_slots   7
        html5lib_warmup     7
        html5lib            7
        nbody               7
        spectral_norm       7
        spambayes           7
        fastunpickle        6
        meteor_contest      6
        chameleon           6
        rietveld            6
        tornado_http        5
        unpickle_list       5
        pickle_dict         4
        regex_effbot        3
        normal_startup      3
        startup_nosite      3
        etree_parse         2
        call_method_unknown 2
        call_simple         1
        json_load           1
        call_method         1

Python3.6 results
    Python source: hg clone https://hg.python.org/cpython cpython    
    hg id: 96d016f78726 tip
    hg id -r 'ancestors(.) and tag()': 1a58b1227501 (3.5) v3.5.0rc1
    hg --debug id -i: 96d016f78726afbf66d396f084b291ea43792af1

                        
        Benchmark           Speedup(%)
        fastunpickle        22.94
        fastpickle          21.67
        json_load           17.64
        simple_logging      17.49
        meteor_contest      16.67
        formatted_logging   15.33
        etree_process       14.61
        raytrace            13.57
        etree_generate      13.56
        chaos               12.09
        hexiom2             12
        nbody               11.88
        json_dump_v2        11.24
        richards            11.02
        nqueens             10.96
        fannkuch            10.79
        go                  10.77
        float               10.26
        regex_compile       9.8
        silent_logging      9.63
        pidigits            9.58
        etree_iterparse     9.48
        2to3                8.44
        regex_v8            8.09
        regex_effbot        7.88
        call_simple         7.63
        tornado_http        7.38
        etree_parse         4.92
        spectral_norm       4.72
        normal_startup      4.39
        telco               3.88
        startup_nosite      3.7
        call_method         3.63
        unpack_sequence     3.6
        call_method_slots   2.91
        call_method_unknown 2.59
        iterative_count     0.45
        threaded_count      -2.79

Thank you,
Alecsandru
Attachment (python2.7-pgo.patch): application/octet-stream, 2744 bytes
Attachment (python3.6-pgo.patch): application/octet-stream, 3153 bytes
Hi All,

This is Alecsandru from Server Scripting Languages Optimization team at Intel Corporation.

I would like to submit a request to turn-on Profile Guided Optimization or PGO as the default build option
for Python (both 2.7 and 3.6), given its performance benefits on a wide variety of workloads and hardware. 
For instance, as shown from attached sample performance results from the Grand Unified Python
Benchmark, >20% speed up was observed.  In addition, we are seeing 2-9% performance boost from
OpenStack/Swift where more than 60% of the codes are in Python 2.7. Our analysis indicates the
performance gain was mainly due to reduction of icache misses and CPU front-end stalls.

Attached is the Makefile patches that modify the all build target and adds a new one called
"disable-profile-opt". We built and tested this patch for Python 2.7 and 3.6 on our Linux machines
(CentOS 7/Ubuntu Server 14.04, Intel Xeon Haswell/Broadwell with 18/8 cores).  We use "regrtest" suite
for training as it provides the best performance improvement.  Some of the test programs in the suite may
fail which leads to build fail.  One solution is to disable the specific failed test using the "-x " flag (as
shown in the patch)

Steps to apply the patch: 
1.  hg clone https://hg.python.org/cpython cpython 
2.  cd cpython 
3.  hg update 2.7 (needed for 2.7 only) 
4.  Copy *.patch to the current directory 
5.  patch < python2.7-pgo.patch (or patch < python3.6-pgo.patch)
6.  ./configure 
7.  make

To disable PGO
7b. make disable-profile-opt

In the following, please find our sample performance results from latest XEON machine, XEON Broadwell EP.  
Hardware (HW):      Intel XEON (Broadwell) 8 Cores

BIOS settings:      Intel Turbo Boost Technology: false
                    Hyper-Threading: false

Operating System:   Ubuntu 14.04.3 LTS trusty

OS configuration:   CPU freq set at fixed: 2.6GHz by
                        echo 2600000 > /sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq
                        echo 2600000 > /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
                    Address Space Layout Randomization (ASLR) disabled (to reduce run to run variation) by
                        echo 0 > /proc/sys/kernel/randomize_va_space

GCC version:        gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)

Benchmark:          Grand Unified Python Benchmark (GUPB)
                    GUPB Source: https://hg.python.org/benchmarks/                    

Python2.7 results:
    Python source: hg clone https://hg.python.org/cpython cpython
    Python Source: hg update 2.7
    hg id: 0511b1165bb6 (2.7)
    hg id -r 'ancestors(.) and tag()': 15c95b7d81dc (2.7) v2.7.10
    hg --debug id -i: 0511b1165bb6cf40ada0768a7efc7ba89316f6a5

        Benchmarks          Speedup(%)
        simple_logging      20
        raytrace            20
        silent_logging      19
        richards            19
        chaos               16
        formatted_logging   16
        json_dump           15
        hexiom2             13
        pidigits            12
        slowunpickle        12
        django_v2           12
        unpack_sequence     11
        float               11
        mako                11
        slowpickle          11
        fastpickle          11
        django              11
        go                  10
        json_dump_v2        10
        pathlib             10
        regex_compile       10
        pybench             9.9
        etree_process       9
        regex_v8            8
        bzr_startup         8
        2to3                8
        slowspitfire        8
        telco               8
        pickle_list         8
        fannkuch            8
        etree_iterparse     8
        nqueens             8
        mako_v2             8
        etree_generate      8
        call_method_slots   7
        html5lib_warmup     7
        html5lib            7
        nbody               7
        spectral_norm       7
        spambayes           7
        fastunpickle        6
        meteor_contest      6
        chameleon           6
        rietveld            6
        tornado_http        5
        unpickle_list       5
        pickle_dict         4
        regex_effbot        3
        normal_startup      3
        startup_nosite      3
        etree_parse         2
        call_method_unknown 2
        call_simple         1
        json_load           1
        call_method         1

Python3.6 results
    Python source: hg clone https://hg.python.org/cpython cpython    
    hg id: 96d016f78726 tip
    hg id -r 'ancestors(.) and tag()': 1a58b1227501 (3.5) v3.5.0rc1
    hg --debug id -i: 96d016f78726afbf66d396f084b291ea43792af1

                        
        Benchmark           Speedup(%)
        fastunpickle        22.94
        fastpickle          21.67
        json_load           17.64
        simple_logging      17.49
        meteor_contest      16.67
        formatted_logging   15.33
        etree_process       14.61
        raytrace            13.57
        etree_generate      13.56
        chaos               12.09
        hexiom2             12
        nbody               11.88
        json_dump_v2        11.24
        richards            11.02
        nqueens             10.96
        fannkuch            10.79
        go                  10.77
        float               10.26
        regex_compile       9.8
        silent_logging      9.63
        pidigits            9.58
        etree_iterparse     9.48
        2to3                8.44
        regex_v8            8.09
        regex_effbot        7.88
        call_simple         7.63
        tornado_http        7.38
        etree_parse         4.92
        spectral_norm       4.72
        normal_startup      4.39
        telco               3.88
        startup_nosite      3.7
        call_method         3.63
        unpack_sequence     3.6
        call_method_slots   2.91
        call_method_unknown 2.59
        iterative_count     0.45
        threaded_count      -2.79

Thank you,
Alecsandru
Python tracker | 21 Aug 18:08 2015

Summary of Python tracker Issues


ACTIVITY SUMMARY (2015-08-14 - 2015-08-21)
Python tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open    5013 (+11)
  closed 31656 (+29)
  total  36669 (+40)

Open issues with patches: 2241 

Issues opened (33)
==================

#21167: float('nan') returns 0.0 on Python compiled with icc
http://bugs.python.org/issue21167  reopened by r.david.murray

#21192: Idle: Print filename when running a file from editor
http://bugs.python.org/issue21192  reopened by rhettinger

#24869: shlex lineno inaccurate with certain inputs
http://bugs.python.org/issue24869  opened by rescrv

#24870: Optimize coding with surrogateescape and surrogatepass error h
http://bugs.python.org/issue24870  opened by naoki

#24871: freeze.py doesn't work on x86_64 Linux out of the box
http://bugs.python.org/issue24871  opened by termim

#24872: Add /NODEFAULTLIB:MSVCRT to _msvccompiler
http://bugs.python.org/issue24872  opened by steve.dower

#24873: Add "full cleanup" checkbox to uninstaller
http://bugs.python.org/issue24873  opened by steve.dower

#24875: pyvenv doesn´t install PIP inside a new venv with --system-si
http://bugs.python.org/issue24875  opened by gilgamezh

#24876: distutils.errors not wildcard-import-safe
http://bugs.python.org/issue24876  opened by jwilk

#24880: ctypeslib patch for regular expression for symbols to include
http://bugs.python.org/issue24880  opened by jwagner313

#24881: _pyio checks that `os.name == 'win32'` instead of 'nt'
http://bugs.python.org/issue24881  opened by Cosimo Lupo

#24882: ThreadPoolExecutor doesn't reuse threads until #threads == max
http://bugs.python.org/issue24882  opened by Matt Spitz

#24884: Add method reopenFile() in WatchedFileHandler class
http://bugs.python.org/issue24884  opened by Marian Horban

#24885: StreamReaderProtocol docs recommend using private API
http://bugs.python.org/issue24885  opened by aymeric.augustin

#24886: open fails randomly on AIX
http://bugs.python.org/issue24886  opened by wiggin15

#24887: Sqlite3 has no option to provide open flags
http://bugs.python.org/issue24887  opened by sleepycal

#24888: FileNotFoundException raised by subprocess.call
http://bugs.python.org/issue24888  opened by Geoffrey Royer

#24889: Idle: always start with focus
http://bugs.python.org/issue24889  opened by terry.reedy

#24890: Windows launcher docs don't fully explain shebang semantics
http://bugs.python.org/issue24890  opened by BrenBarn

#24891: race condition in initstdio() (python aborts running under noh
http://bugs.python.org/issue24891  opened by Yi Ding

#24893: Tk  occasionally mispositions Text() insert cursor on mouse cl
http://bugs.python.org/issue24893  opened by rhettinger

#24894: iso-8859-11 missing from codecs table
http://bugs.python.org/issue24894  opened by ezio.melotti

#24896: It is undocumented that re.UNICODE affects re.IGNORECASE
http://bugs.python.org/issue24896  opened by Leif Arne Storset

#24898: Documentation for str.find() is confusing
http://bugs.python.org/issue24898  opened by Ted Lemon

#24899: Add an os.path <=> pathlib equivalence table in pathlib docs
http://bugs.python.org/issue24899  opened by ezio.melotti

#24900: Raising an exception that cannot be unpickled causes hang in P
http://bugs.python.org/issue24900  opened by filmor

#24902: http.server: on startup, show host/port as URL
http://bugs.python.org/issue24902  opened by fxkr

#24903: Do not verify destdir argument to compileall
http://bugs.python.org/issue24903  opened by jgarver

#24904: Patch: add timeout to difflib SequenceMatcher ratio() and quic
http://bugs.python.org/issue24904  opened by jftuga

#24905: Allow incremental I/O to blobs in sqlite3
http://bugs.python.org/issue24905  opened by jim_minter

#24906: asyncore asynchat hanging on ssl
http://bugs.python.org/issue24906  opened by Michele Comitini

#24907: Module location load order is not respected if pkg_resources i
http://bugs.python.org/issue24907  opened by Vadim Kantorov

#24908: sysconfig.py and distutils.sysconfig.py disagree on directory 
http://bugs.python.org/issue24908  opened by htnieman

Most recent 15 issues with no replies (15)
==========================================

#24906: asyncore asynchat hanging on ssl
http://bugs.python.org/issue24906

#24905: Allow incremental I/O to blobs in sqlite3
http://bugs.python.org/issue24905

#24899: Add an os.path <=> pathlib equivalence table in pathlib docs
http://bugs.python.org/issue24899

#24894: iso-8859-11 missing from codecs table
http://bugs.python.org/issue24894

#24886: open fails randomly on AIX
http://bugs.python.org/issue24886

#24885: StreamReaderProtocol docs recommend using private API
http://bugs.python.org/issue24885

#24884: Add method reopenFile() in WatchedFileHandler class
http://bugs.python.org/issue24884

#24881: _pyio checks that `os.name == 'win32'` instead of 'nt'
http://bugs.python.org/issue24881

#24876: distutils.errors not wildcard-import-safe
http://bugs.python.org/issue24876

#24875: pyvenv doesn´t install PIP inside a new venv with --system-si
http://bugs.python.org/issue24875

#24871: freeze.py doesn't work on x86_64 Linux out of the box
http://bugs.python.org/issue24871

#24869: shlex lineno inaccurate with certain inputs
http://bugs.python.org/issue24869

#24853: Py_Finalize doesn't clean up PyImport_Inittab
http://bugs.python.org/issue24853

#24848: Warts in UTF-7 error handling
http://bugs.python.org/issue24848

#24846: Add tests for ``from ... import ...` code
http://bugs.python.org/issue24846

Most recent 15 issues waiting for review (15)
=============================================

#24904: Patch: add timeout to difflib SequenceMatcher ratio() and quic
http://bugs.python.org/issue24904

#24903: Do not verify destdir argument to compileall
http://bugs.python.org/issue24903

#24902: http.server: on startup, show host/port as URL
http://bugs.python.org/issue24902

#24889: Idle: always start with focus
http://bugs.python.org/issue24889

#24886: open fails randomly on AIX
http://bugs.python.org/issue24886

#24884: Add method reopenFile() in WatchedFileHandler class
http://bugs.python.org/issue24884

#24880: ctypeslib patch for regular expression for symbols to include
http://bugs.python.org/issue24880

#24871: freeze.py doesn't work on x86_64 Linux out of the box
http://bugs.python.org/issue24871

#24870: Optimize coding with surrogateescape and surrogatepass error h
http://bugs.python.org/issue24870

#24861: deprecate importing components of IDLE
http://bugs.python.org/issue24861

#24851: infinite loop in faulthandler._stack_overflow
http://bugs.python.org/issue24851

#24847: Can't import tkinter in Python 3.5.0rc1
http://bugs.python.org/issue24847

#24845: IDLE functional/integration testing
http://bugs.python.org/issue24845

#24840: implement bool conversion for enums to prevent odd edge case
http://bugs.python.org/issue24840

#24838: tarfile.py: fix GNU and USTAR formats to properly handle paths
http://bugs.python.org/issue24838

Top 10 most discussed issues (10)
=================================

#24872: Add /NODEFAULTLIB:MSVCRT to _msvccompiler
http://bugs.python.org/issue24872  18 msgs

#24790: Idle: improve stack viewer
http://bugs.python.org/issue24790  16 msgs

#24847: Can't import tkinter in Python 3.5.0rc1
http://bugs.python.org/issue24847  14 msgs

#8987: Distutils doesn't quote Windows command lines properly
http://bugs.python.org/issue8987  11 msgs

#24305: The new import system makes it impossible to correctly issue a
http://bugs.python.org/issue24305  11 msgs

#23496: Steps for Android Native Build of Python 3.4.2
http://bugs.python.org/issue23496   9 msgs

#24294: DeprecationWarnings should be visible by default in the intera
http://bugs.python.org/issue24294   8 msgs

#24870: Optimize coding with surrogateescape and surrogatepass error h
http://bugs.python.org/issue24870   8 msgs

#24891: race condition in initstdio() (python aborts running under noh
http://bugs.python.org/issue24891   7 msgs

#10740: sqlite3 module breaks transactions and potentially corrupts da
http://bugs.python.org/issue10740   6 msgs

Issues closed (28)
==================

#11691: sqlite3 Cursor.description doesn't set type_code
http://bugs.python.org/issue11691  closed by ghaering

#17570: Improve devguide Windows instructions
http://bugs.python.org/issue17570  closed by python-dev

#20362: longMessage attribute is ignored in unittest.TestCase.assertRe
http://bugs.python.org/issue20362  closed by rbcollins

#22680: Blacklist FunctionTestCase from test discovery
http://bugs.python.org/issue22680  closed by rbcollins

#23572: functools.singledispatch fails when "not BaseClass" is True
http://bugs.python.org/issue23572  closed by yselivanov

#23672: IDLE can crash if file name contains non-BMP Unicode character
http://bugs.python.org/issue23672  closed by terry.reedy

#23810: Suboptimal stacklevel of deprecation warnings for formatter an
http://bugs.python.org/issue23810  closed by brett.cannon

#24054: Invalid syntax in inspect_fodder2.py (on Python 2.x)
http://bugs.python.org/issue24054  closed by rbcollins

#24079: xml.etree.ElementTree.Element.text does not conform to the doc
http://bugs.python.org/issue24079  closed by ned.deily

#24379: operator.subscript
http://bugs.python.org/issue24379  closed by rhettinger

#24492: using custom objects as modules: AttributeErrors new in 3.5
http://bugs.python.org/issue24492  closed by brett.cannon

#24764: cgi.FieldStorage can't parse multipart part headers with Conte
http://bugs.python.org/issue24764  closed by haypo

#24774: inconsistency in http.server.test
http://bugs.python.org/issue24774  closed by rbcollins

#24842: Mention SimpleNamespace in namedtuple docs
http://bugs.python.org/issue24842  closed by rhettinger

#24859: ctypes.Structure bit order is reversed - counts from right
http://bugs.python.org/issue24859  closed by zeero

#24864: errors writing to stdout during interpreter exit exit with sta
http://bugs.python.org/issue24864  closed by rbcollins

#24866: Boolean representation of Q/queue objects does not fit behavio
http://bugs.python.org/issue24866  closed by rhettinger

#24867: Asyncio Task.get_stack fails with native coroutines
http://bugs.python.org/issue24867  closed by yselivanov

#24868: Python start
http://bugs.python.org/issue24868  closed by terry.reedy

#24874: Improve pickling efficiency of itertools.cycle
http://bugs.python.org/issue24874  closed by rhettinger

#24877: Bad Password for file using zipfile module
http://bugs.python.org/issue24877  closed by shivaprasanth

#24878: Add docstrings to selected named tuples
http://bugs.python.org/issue24878  closed by rhettinger

#24879: Pydoc to list data descriptors in _fields order if it exists
http://bugs.python.org/issue24879  closed by rhettinger

#24883: Typo in c-api/buffer documentation
http://bugs.python.org/issue24883  closed by python-dev

#24892: bytes.join() won't take it's own type as the argument
http://bugs.python.org/issue24892  closed by brett.cannon

#24895: indentation fix in ceval.c in python 2.7
http://bugs.python.org/issue24895  closed by python-dev

#24897: Add new attribute decorator (akin to property)?
http://bugs.python.org/issue24897  closed by eric.snow

#24901: (2,)!=(2) and (2,3)==(2,3,) why ??? tested in each version
http://bugs.python.org/issue24901  closed by eryksun

ACTIVITY SUMMARY (2015-08-14 - 2015-08-21)
Python tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open    5013 (+11)
  closed 31656 (+29)
  total  36669 (+40)

Open issues with patches: 2241 

Issues opened (33)
==================

#21167: float('nan') returns 0.0 on Python compiled with icc
http://bugs.python.org/issue21167  reopened by r.david.murray

#21192: Idle: Print filename when running a file from editor
http://bugs.python.org/issue21192  reopened by rhettinger

#24869: shlex lineno inaccurate with certain inputs
http://bugs.python.org/issue24869  opened by rescrv

#24870: Optimize coding with surrogateescape and surrogatepass error h
http://bugs.python.org/issue24870  opened by naoki

#24871: freeze.py doesn't work on x86_64 Linux out of the box
http://bugs.python.org/issue24871  opened by termim

#24872: Add /NODEFAULTLIB:MSVCRT to _msvccompiler
http://bugs.python.org/issue24872  opened by steve.dower

#24873: Add "full cleanup" checkbox to uninstaller
http://bugs.python.org/issue24873  opened by steve.dower

#24875: pyvenv doesn´t install PIP inside a new venv with --system-si
http://bugs.python.org/issue24875  opened by gilgamezh

#24876: distutils.errors not wildcard-import-safe
http://bugs.python.org/issue24876  opened by jwilk

#24880: ctypeslib patch for regular expression for symbols to include
http://bugs.python.org/issue24880  opened by jwagner313

#24881: _pyio checks that `os.name == 'win32'` instead of 'nt'
http://bugs.python.org/issue24881  opened by Cosimo Lupo

#24882: ThreadPoolExecutor doesn't reuse threads until #threads == max
http://bugs.python.org/issue24882  opened by Matt Spitz

#24884: Add method reopenFile() in WatchedFileHandler class
http://bugs.python.org/issue24884  opened by Marian Horban

#24885: StreamReaderProtocol docs recommend using private API
http://bugs.python.org/issue24885  opened by aymeric.augustin

#24886: open fails randomly on AIX
http://bugs.python.org/issue24886  opened by wiggin15

#24887: Sqlite3 has no option to provide open flags
http://bugs.python.org/issue24887  opened by sleepycal

#24888: FileNotFoundException raised by subprocess.call
http://bugs.python.org/issue24888  opened by Geoffrey Royer

#24889: Idle: always start with focus
http://bugs.python.org/issue24889  opened by terry.reedy

#24890: Windows launcher docs don't fully explain shebang semantics
http://bugs.python.org/issue24890  opened by BrenBarn

#24891: race condition in initstdio() (python aborts running under noh
http://bugs.python.org/issue24891  opened by Yi Ding

#24893: Tk  occasionally mispositions Text() insert cursor on mouse cl
http://bugs.python.org/issue24893  opened by rhettinger

#24894: iso-8859-11 missing from codecs table
http://bugs.python.org/issue24894  opened by ezio.melotti

#24896: It is undocumented that re.UNICODE affects re.IGNORECASE
http://bugs.python.org/issue24896  opened by Leif Arne Storset

#24898: Documentation for str.find() is confusing
http://bugs.python.org/issue24898  opened by Ted Lemon

#24899: Add an os.path <=> pathlib equivalence table in pathlib docs
http://bugs.python.org/issue24899  opened by ezio.melotti

#24900: Raising an exception that cannot be unpickled causes hang in P
http://bugs.python.org/issue24900  opened by filmor

#24902: http.server: on startup, show host/port as URL
http://bugs.python.org/issue24902  opened by fxkr

#24903: Do not verify destdir argument to compileall
http://bugs.python.org/issue24903  opened by jgarver

#24904: Patch: add timeout to difflib SequenceMatcher ratio() and quic
http://bugs.python.org/issue24904  opened by jftuga

#24905: Allow incremental I/O to blobs in sqlite3
http://bugs.python.org/issue24905  opened by jim_minter

#24906: asyncore asynchat hanging on ssl
http://bugs.python.org/issue24906  opened by Michele Comitini

#24907: Module location load order is not respected if pkg_resources i
http://bugs.python.org/issue24907  opened by Vadim Kantorov

#24908: sysconfig.py and distutils.sysconfig.py disagree on directory 
http://bugs.python.org/issue24908  opened by htnieman

Most recent 15 issues with no replies (15)
==========================================

#24906: asyncore asynchat hanging on ssl
http://bugs.python.org/issue24906

#24905: Allow incremental I/O to blobs in sqlite3
http://bugs.python.org/issue24905

#24899: Add an os.path <=> pathlib equivalence table in pathlib docs
http://bugs.python.org/issue24899

#24894: iso-8859-11 missing from codecs table
http://bugs.python.org/issue24894

#24886: open fails randomly on AIX
http://bugs.python.org/issue24886

#24885: StreamReaderProtocol docs recommend using private API
http://bugs.python.org/issue24885

#24884: Add method reopenFile() in WatchedFileHandler class
http://bugs.python.org/issue24884

#24881: _pyio checks that `os.name == 'win32'` instead of 'nt'
http://bugs.python.org/issue24881

#24876: distutils.errors not wildcard-import-safe
http://bugs.python.org/issue24876

#24875: pyvenv doesn´t install PIP inside a new venv with --system-si
http://bugs.python.org/issue24875

#24871: freeze.py doesn't work on x86_64 Linux out of the box
http://bugs.python.org/issue24871

#24869: shlex lineno inaccurate with certain inputs
http://bugs.python.org/issue24869

#24853: Py_Finalize doesn't clean up PyImport_Inittab
http://bugs.python.org/issue24853

#24848: Warts in UTF-7 error handling
http://bugs.python.org/issue24848

#24846: Add tests for ``from ... import ...` code
http://bugs.python.org/issue24846

Most recent 15 issues waiting for review (15)
=============================================

#24904: Patch: add timeout to difflib SequenceMatcher ratio() and quic
http://bugs.python.org/issue24904

#24903: Do not verify destdir argument to compileall
http://bugs.python.org/issue24903

#24902: http.server: on startup, show host/port as URL
http://bugs.python.org/issue24902

#24889: Idle: always start with focus
http://bugs.python.org/issue24889

#24886: open fails randomly on AIX
http://bugs.python.org/issue24886

#24884: Add method reopenFile() in WatchedFileHandler class
http://bugs.python.org/issue24884

#24880: ctypeslib patch for regular expression for symbols to include
http://bugs.python.org/issue24880

#24871: freeze.py doesn't work on x86_64 Linux out of the box
http://bugs.python.org/issue24871

#24870: Optimize coding with surrogateescape and surrogatepass error h
http://bugs.python.org/issue24870

#24861: deprecate importing components of IDLE
http://bugs.python.org/issue24861

#24851: infinite loop in faulthandler._stack_overflow
http://bugs.python.org/issue24851

#24847: Can't import tkinter in Python 3.5.0rc1
http://bugs.python.org/issue24847

#24845: IDLE functional/integration testing
http://bugs.python.org/issue24845

#24840: implement bool conversion for enums to prevent odd edge case
http://bugs.python.org/issue24840

#24838: tarfile.py: fix GNU and USTAR formats to properly handle paths
http://bugs.python.org/issue24838

Top 10 most discussed issues (10)
=================================

#24872: Add /NODEFAULTLIB:MSVCRT to _msvccompiler
http://bugs.python.org/issue24872  18 msgs

#24790: Idle: improve stack viewer
http://bugs.python.org/issue24790  16 msgs

#24847: Can't import tkinter in Python 3.5.0rc1
http://bugs.python.org/issue24847  14 msgs

#8987: Distutils doesn't quote Windows command lines properly
http://bugs.python.org/issue8987  11 msgs

#24305: The new import system makes it impossible to correctly issue a
http://bugs.python.org/issue24305  11 msgs

#23496: Steps for Android Native Build of Python 3.4.2
http://bugs.python.org/issue23496   9 msgs

#24294: DeprecationWarnings should be visible by default in the intera
http://bugs.python.org/issue24294   8 msgs

#24870: Optimize coding with surrogateescape and surrogatepass error h
http://bugs.python.org/issue24870   8 msgs

#24891: race condition in initstdio() (python aborts running under noh
http://bugs.python.org/issue24891   7 msgs

#10740: sqlite3 module breaks transactions and potentially corrupts da
http://bugs.python.org/issue10740   6 msgs

Issues closed (28)
==================

#11691: sqlite3 Cursor.description doesn't set type_code
http://bugs.python.org/issue11691  closed by ghaering

#17570: Improve devguide Windows instructions
http://bugs.python.org/issue17570  closed by python-dev

#20362: longMessage attribute is ignored in unittest.TestCase.assertRe
http://bugs.python.org/issue20362  closed by rbcollins

#22680: Blacklist FunctionTestCase from test discovery
http://bugs.python.org/issue22680  closed by rbcollins

#23572: functools.singledispatch fails when "not BaseClass" is True
http://bugs.python.org/issue23572  closed by yselivanov

#23672: IDLE can crash if file name contains non-BMP Unicode character
http://bugs.python.org/issue23672  closed by terry.reedy

#23810: Suboptimal stacklevel of deprecation warnings for formatter an
http://bugs.python.org/issue23810  closed by brett.cannon

#24054: Invalid syntax in inspect_fodder2.py (on Python 2.x)
http://bugs.python.org/issue24054  closed by rbcollins

#24079: xml.etree.ElementTree.Element.text does not conform to the doc
http://bugs.python.org/issue24079  closed by ned.deily

#24379: operator.subscript
http://bugs.python.org/issue24379  closed by rhettinger

#24492: using custom objects as modules: AttributeErrors new in 3.5
http://bugs.python.org/issue24492  closed by brett.cannon

#24764: cgi.FieldStorage can't parse multipart part headers with Conte
http://bugs.python.org/issue24764  closed by haypo

#24774: inconsistency in http.server.test
http://bugs.python.org/issue24774  closed by rbcollins

#24842: Mention SimpleNamespace in namedtuple docs
http://bugs.python.org/issue24842  closed by rhettinger

#24859: ctypes.Structure bit order is reversed - counts from right
http://bugs.python.org/issue24859  closed by zeero

#24864: errors writing to stdout during interpreter exit exit with sta
http://bugs.python.org/issue24864  closed by rbcollins

#24866: Boolean representation of Q/queue objects does not fit behavio
http://bugs.python.org/issue24866  closed by rhettinger

#24867: Asyncio Task.get_stack fails with native coroutines
http://bugs.python.org/issue24867  closed by yselivanov

#24868: Python start
http://bugs.python.org/issue24868  closed by terry.reedy

#24874: Improve pickling efficiency of itertools.cycle
http://bugs.python.org/issue24874  closed by rhettinger

#24877: Bad Password for file using zipfile module
http://bugs.python.org/issue24877  closed by shivaprasanth

#24878: Add docstrings to selected named tuples
http://bugs.python.org/issue24878  closed by rhettinger

#24879: Pydoc to list data descriptors in _fields order if it exists
http://bugs.python.org/issue24879  closed by rhettinger

#24883: Typo in c-api/buffer documentation
http://bugs.python.org/issue24883  closed by python-dev

#24892: bytes.join() won't take it's own type as the argument
http://bugs.python.org/issue24892  closed by brett.cannon

#24895: indentation fix in ceval.c in python 2.7
http://bugs.python.org/issue24895  closed by python-dev

#24897: Add new attribute decorator (akin to property)?
http://bugs.python.org/issue24897  closed by eric.snow

#24901: (2,)!=(2) and (2,3)==(2,3,) why ??? tested in each version
http://bugs.python.org/issue24901  closed by eryksun
Valentine Sinitsyn | 19 Aug 09:53 2015
Picon

tp_finalize vs tp_del sematics

Hi everybody,

I'm trying to get sense of PEP-0442 [1]. Most of the looks clear, 
however I wasn't able to answer myself one simple question: why it 
wasn't possible to implement proposed CI disposal scheme on top of 
tp_del? Common sense suggests that tp_del and tp_finalize have different 
semantics. For instance, with tp_finalize there is a guarantee that the 
object will be in a safe state, as documented at [2]. However, tp_del is 
not documented, and I have only vague idea of its guarantees. Are there any?

Thanks for the clarification.

1. https://www.python.org/dev/peps/pep-0442/
2. https://docs.python.org/3/c-api/typeobj.html

--
Best regards,
Valentine Sinitsyn
Alexander Belopolsky | 18 Aug 04:12 2015
Picon

Re: [Datetime-SIG] PEP 495 (Local Time Disambiguation) is ready for pronouncement

[Posted on Python-Dev]

On Sun, Aug 16, 2015 at 3:23 PM, Guido van Rossum <guido <at> python.org> wrote:
> I think that a courtesy message to python-dev is appropriate, with a link to
> the PEP and an invitation to discuss its merits on datetime-sig.

Per Gudo's advise, this is an invitation to join PEP 495 discussion on
Datetime-SIG.

I you would like to catch-up on the SIG discussion, the archive of
this thread starts at
<https://mail.python.org/pipermail/datetime-sig/2015-August/000253.html>.

The PEP itself can be found at
<https://www.python.org/dev/peps/pep-0495>, but if you would like to
follow draft updates as they happen, you can do it on Github at
<https://github.com/abalkin/ltdf>.

Even though the PEP is deliberately minimal in scope, there are still
a few issues to be ironed out including how to call the disambiguation
flag.  It is agreed that the name should not refer to DST and should
distinguish between two ambiguous times by their chronological order.
The working name is "first", but no one particularly likes it
including the author of the PEP.  Some candidates are discussed in the
PEP at <https://www.python.org/dev/peps/pep-0495/#questions-and-answers>,
and some more have been suggested that I will add soon.

Please direct your responses to <datetime-sig <at> python.org>.
lucky yadav | 16 Aug 06:22 2015
Picon

Python

Want to learn python
Would u help me!

<div><p dir="ltr">Want to learn python<br>
Would u help me!</p></div>

Gmane