Chris Withers | 24 Apr 09:18 2014
Picon

pep8 reasoning

Hi All,

Apologies if this is considered off topic, but I'm keen to get the 
"language designers" point of view and short of emailing Barry, Guido 
and Nick directly, this seemed like the best place.

I'm having a tough time persuading some people of the benefits of pep8, 
particularly when it comes to applying to an existing large code base.

The biggest sticking point is naming, particularly as it's the one thing 
that can't necessarily be changed module by module. What were the 
compelling reasons to go from mixedCase to underscore_separated? What's 
considered the best approach for migrating from the former to the latter?

A couple of others that have raised some consternation; what are the 
technical reasons for this pattern being bad:

if len(seq)
if not len(seq)

...or, for me, the rather ugly:

if 0 != len(seq)

Likewise, these:

if greeting == True:
if greeting is True:

Please don't misunderstand me: I dislike the above intensely, but it's 
(Continue reading)

Ethan Furman | 24 Apr 04:14 2014
Picon

ref leaks

Command line:

   ./python -m test.regrtest -v -R3:3 test_tools

Results:

   Ran 44 tests in 7.628s

   OK (skipped=1)
   .
   test_tools leaked [0, 2, 2] references, sum=4
   1 test failed:
       test_tools

Any words of wisdom for tracking those leaks?

--
~Ethan~
Claudiu Popa | 23 Apr 21:27 2014
Picon

Patches in need of review

Hello!

This approach worked for Nikolaus and I hope that it could work for me.
I have a couple of languishing patches, waiting for a core dev
to review, reject or commit them. I consider them ready to go,
but another pair of eyes could unveil unknown problems to me.
I pinged some issues from this list on core-mentorship a month ago,
without luck though. Here they are:

* http://bugs.python.org/issue19385

`dbm.dumb should be consistent when the database is closed`

This patch adds a check for operations with closed
dbm.dumb databases. The problem is that currently this
fails with AttributeError:

>>> import dbm.dumb as d
>>> db = d.open('test.dat', 'c')
>>> db.close()
>>> db.keys()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tank/libs/cpython/Lib/dbm/dumb.py", line 212, in keys
    return list(self._index.keys())
AttributeError: 'NoneType' object has no attribute 'keys'

With this patch, the error is consistent with the other
dbm flavours.

(Continue reading)

Marius Storm-Olsen | 22 Apr 04:31 2014
Picon

Open Source Organizational Culture

Hi,

I would like to request your participation in a survey on
    Open Source Organizational Culture, 
which will provide valuable insight into how Open Source projects are run, how their participants act, how
they might change going forward, and how particular Open Source projects compare with one another and
with traditional business cultures. The survey will take 10-15 minutes to complete.

    http://bit.ly/osocas2014

Why?
----
The survey will be used as part of my thesis on Open Source Organizational Culture at BI Norwegian Business
School (www.bi.no/en, or www.bi.edu), but in true Open Source spirit the raw - but anonymized - results
will be open for all. So, your Open Source project will be able to massage and dissect the results any way you
wish, and see how you compare with other projects out there.

Up until now, most research in Open Source culture has been based on mining mailing lists to find out how
people act, who they interact with, and how projects organize themselves.

In this research we would rather ask the participants directly about how a project is managed and what
should change for the project to be spectacularly successful.

When?
-----

The survey is open now through May 1st.

Where?
------
(Continue reading)

Ken Chan | 21 Apr 02:25 2014
Picon

Fw: fail to fetch python-dev for raspian with details of error message

Dear sir,
 
I am working on WebIOPi where library of python-dev is needed,
so I use "sudo apt-get install python-dev" to install it.
 
 
Then returned message of:     fail to fetch http://mirrordirector.raspbian.org/raspbian/ wheezy......
 
 
 
details of error message:
Found Python 2.7.3rc2...
Trying to install python-dev using apt-get
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libexpat1-dev libssl-dev libssl-doc python2.7-dev
The following NEW packages will be installed:
  libexpat1-dev libssl-dev libssl-doc python-dev python2.7-dev
0 upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
Need to get 31.3 MB of archives.
After this operation, 42.2 MB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main python2.7-dev armhf 2.7.3~rc2-2.1
  404  Not Found
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main python-dev all 2.7.3~rc2-1 [912 B]
Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libexpat1-dev armhf 2.1.0-1 [210 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libssl-dev armhf 1.0.1c-4+rpi1 [1,494 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libssl-doc all 1.0.1c-4+rpi1 [1,204 kB]
Fetched 2,909 kB in 21s (136 kB/s)
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/p/python2.7/python2.7-dev_2.7.3~rc2-2.1_armhf.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Cannot install for Python 2.7.3rc2 : missing development headers

Found Python 3.2.3...
Trying to install python3-dev using apt-get
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libexpat1-dev libpython3.2 libssl-dev libssl-doc python3.2-dev
The following NEW packages will be installed:
  libexpat1-dev libpython3.2 libssl-dev libssl-doc python3-dev python3.2-dev
0 upgraded, 6 newly installed, 0 to remove and 3 not upgraded.
Need to get 31.0 MB/33.9 MB of archives.
After this operation, 46.8 MB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpython3.2 armhf 3.2.3-2
  404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main python3.2-dev armhf 3.2.3-2
  404  Not Found
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main python3-dev all 3.2.3-5 [1,060 B]
Fetched 1,060 B in 0s (5,711 B/s)
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/p/python3.2/libpython3.2_3.2.3-2_armhf.deb  404  Not Found
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/p/python3.2/python3.2-dev_3.2.3-2_armhf.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Cannot install for Python 3.2.3 : missing development headers

ERROR: WebIOPi cannot be installed - please check errors above

 
 
 
 
Would you please to advise a solution.
 
Many many thanks!
 
Ken
 
 
 
 
 

TIML MOM Limited

交通基建管理合約有限公司

P Please think of the environment before printing this email

Disclaimer:
This e-mail message (together with any attachments) is confidential to the addressee and may also be privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. Please also notify the sender immediately by return e-mail and delete it from your system. Internet communications cannot be guaranteed to be secure or error-free. The sender and the entity through which this message is sent therefore
<div>
<div>Dear sir,</div>
<div>&nbsp;</div>
<div>I am working on WebIOPi 
where library of python-dev is needed, </div>
<div>so I use "sudo apt-get install python-dev"&nbsp;to install it. </div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Then returned&nbsp;message 
of:&nbsp;&nbsp;&nbsp;&nbsp; fail to fetch <a href="http://mirrordirector.raspbian.org/raspbian/">http://mirrordirector.raspbian.org/raspbian/</a> 
wheezy......</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<blockquote dir="ltr">
  <div>
  <div dir="ltr">
  <div>
  <div>details of error message:</div>
  <div>
  <div>Found Python 2.7.3rc2...<br>Trying to install python-dev using 
  apt-get<br>Reading package lists... Done<br>Building dependency 
  tree<br>Reading state information... Done<br>The following extra packages will 
  be installed:<br>&nbsp; libexpat1-dev libssl-dev libssl-doc 
  python2.7-dev<br>The following NEW packages will be installed:<br>&nbsp; 
  libexpat1-dev libssl-dev libssl-doc python-dev python2.7-dev<br>0 upgraded, 5 
  newly installed, 0 to remove and 3 not upgraded.<br>Need to get 31.3 MB of 
  archives.<br>After this operation, 42.2 MB of additional disk space will be 
  used.<br>Err <a href="http://mirrordirector.raspbian.org/raspbian/" target="_blank">http://mirrordirector.raspbian.org/raspbian/</a> 
  wheezy/main python2.7-dev armhf 2.7.3~rc2-2.1<br>&nbsp; 404&nbsp; Not 
  Found<br>Get:1 <a href="http://mirrordirector.raspbian.org/raspbian/" target="_blank">http://mirrordirector.raspbian.org/raspbian/</a> 
  wheezy/main python-dev all 2.7.3~rc2-1 [912 B]<br>Get:2 <a href="http://mirrordirector.raspbian.org/raspbian/" target="_blank">http://mirrordirector.raspbian.org/raspbian/</a> 
  wheezy/main libexpat1-dev armhf 2.1.0-1 [210 kB]<br>Get:3 <a href="http://mirrordirector.raspbian.org/raspbian/" target="_blank">http://mirrordirector.raspbian.org/raspbian/</a> 
  wheezy/main libssl-dev armhf 1.0.1c-4+rpi1 [1,494 kB]<br>Get:4 <a href="http://mirrordirector.raspbian.org/raspbian/" target="_blank">http://mirrordirector.raspbian.org/raspbian/</a> 
  wheezy/main libssl-doc all 1.0.1c-4+rpi1 [1,204 kB]<br>Fetched 2,909 kB in 21s 
  (136 kB/s)<br>Failed to fetch <a href="http://mirrordirector.raspbian.org/raspbian/pool/main/p/python2.7/python2.7-dev_2.7.3~rc2-2.1_armhf.deb" target="_blank">http://mirrordirector.raspbian.org/raspbian/pool/main/p/python2.7/python2.7-dev_2.7.3~rc2-2.1_armhf.deb</a>&nbsp; 
  404&nbsp; Not Found<br>E: Unable to fetch some archives, maybe run apt-get 
  update or try with --fix-missing?<br>Cannot install for Python 2.7.3rc2 : 
  missing development headers<br><br>Found Python 3.2.3...<br>Trying to install 
  python3-dev using apt-get<br>Reading package lists... Done<br>Building 
  dependency tree<br>Reading state information... Done<br>The following extra 
  packages will be installed:<br>&nbsp; libexpat1-dev libpython3.2 libssl-dev 
  libssl-doc python3.2-dev<br>The following NEW packages will be 
  installed:<br>&nbsp; libexpat1-dev libpython3.2 libssl-dev libssl-doc 
  python3-dev python3.2-dev<br>0 upgraded, 6 newly installed, 0 to remove and 3 
  not upgraded.<br>Need to get 31.0 MB/33.9 MB of archives.<br>After this 
  operation, 46.8 MB of additional disk space will be used.<br>Err <a href="http://mirrordirector.raspbian.org/raspbian/" target="_blank">http://mirrordirector.raspbian.org/raspbian/</a> 
  wheezy/main libpython3.2 armhf 3.2.3-2<br>&nbsp; 404&nbsp; Not Found<br>Err 
  <a href="http://mirrordirector.raspbian.org/raspbian/" target="_blank">http://mirrordirector.raspbian.org/raspbian/</a> 
  wheezy/main python3.2-dev armhf 3.2.3-2<br>&nbsp; 404&nbsp; Not Found<br>Get:1 
  <a href="http://mirrordirector.raspbian.org/raspbian/" target="_blank">http://mirrordirector.raspbian.org/raspbian/</a> 
  wheezy/main python3-dev all 3.2.3-5 [1,060 B]<br>Fetched 1,060 B in 0s (5,711 
  B/s)<br>Failed to fetch <a href="http://mirrordirector.raspbian.org/raspbian/pool/main/p/python3.2/libpython3.2_3.2.3-2_armhf.deb" target="_blank">http://mirrordirector.raspbian.org/raspbian/pool/main/p/python3.2/libpython3.2_3.2.3-2_armhf.deb</a>&nbsp; 
  404&nbsp; Not Found<br>Failed to fetch <a href="http://mirrordirector.raspbian.org/raspbian/pool/main/p/python3.2/python3.2-dev_3.2.3-2_armhf.deb" target="_blank">http://mirrordirector.raspbian.org/raspbian/pool/main/p/python3.2/python3.2-dev_3.2.3-2_armhf.deb</a>&nbsp; 
  404&nbsp; Not Found<br>E: Unable to fetch some archives, maybe run apt-get 
  update or try with --fix-missing?<br>Cannot install for Python 3.2.3 : missing 
  development headers<br><br>ERROR: WebIOPi cannot be installed - please check 
  errors above<br><br>
</div>
</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>Would you please to advise a 
solution.</div>
  <div>&nbsp;</div>
  <div>Many many thanks!</div>
  <div>&nbsp;</div>
  <div>Ken</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>
  <div dir="ltr">
  <div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>
  <div dir="ltr">
  <div>
  <div>
  <div dir="ltr">
  <div>
  <div>
  <table>
<tr>
<td valign="top" rowspan="2" width="0pt"></td>
      <td width="100%">
        <p class="MsoNormal"><span><span lang="EN-US">TIML MOM 
        Limited<p></p></span></span></p>
</td>
</tr>
<tr>
<td width="100%">
        <p class="MsoNormal"><span><span>&#20132;&#36890;&#22522;&#24314;&#31649;&#29702;&#21512;&#32004;&#26377;&#38480;&#20844;&#21496;<span lang="EN-US"><p></p></span></span></span></p>
</td>
<span></span>
</tr>
<tr><td width="100%" colspan="2">
        <p class="MsoNormal"><span lang="EN-US">P</span> <span lang="EN-US">Please think of the environment before printing this 
        email</span> 
        </p>
<span><span lang="EN-US">Disclaimer:<br>This e-mail message (together with any 
        attachments) is confidential to the addressee and may also be 
        privileged. If you are not the intended recipient, you are hereby 
        notified that any dissemination, distribution or copying of this message 
        is strictly prohibited. Please also notify the sender immediately by 
        return e-mail and delete it from your system. Internet communications 
        cannot be guaranteed to be secure or error-free. The sender and the 
        entity through which this message is sent therefore 
    </span></span>
</td></tr>
<div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <blockquote></blockquote>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
anatoly techtonik | 20 Apr 15:49 2014
Picon

Python usability study (Was: Language Summit notes)

On Thu, Apr 10, 2014 at 2:24 PM, Kushal Das <kushaldas <at> gmail.com> wrote:
> Glyph wants a PSF fund to a usability study on Python. There were a
> few other suggestion on PSF support for tooling development.

+2 on initiative

--

-- 
anatoly t.
David Aguilar | 20 Apr 04:02 2014
Picon
Picon

subprocess.Popen and win32

Hi,

I just joined python-dev because I found the need to add some code to
paper over python3's subprocess API, and I'm wondering whether I'm
missing something.

On python2 and python3, the (only?) way to get utf-8 arguments to
subprocess was to ensure that all unicode strings are encoded into
bytes before subprocess sees them. This has worked for a long time
(currently compatible across python2 and 3).

On python3, this still works for normal platforms, but on windows we
can't pass a list of byte strings. We have to pass a list of unicode
strings.

This means that the application code ends up needing to do this:
https://github.com/git-cola/git-cola/commit/1109aeb4354c49931d9b0435d2b7cfdc2d5d6966

basically,

def start_command(cmd):
    if sys.platform == 'win32':
        # Python on windows always goes through list2cmdline() internally inside
        # of subprocess.py so we must provide unicode strings here otherwise
        # Python3 breaks when bytes are provided.
        cmd = [decode(c) for c in cmd]
    else:
        cmd = [encode(c) for c in cmd]
     return subprocess.Popen(cmd)

That seems broken to me, so I wonder if this is a bug in the way
python3 is handling Popen with list-of-bytestring on win32?

I'm not a windows user, but I was able to install python3 under wine
and the same traceback happens without the paper bag fix. This is what
the traceback looks like; it dies in list2cmdline (which I am not
calling directly, Popen does it under the covers):

    File "E:\Program Files
(E)\git-cola\share\git-cola\lib\cola\core.py", line 109, in
start_command
    universal_newlines=universal_newlines)
    File "C:\Python32\lib\subprocess.py", line 744, in __init__
    restore_signals, start_new_session)
    File "C:\Python32\lib\subprocess.py", line 936, in _execute_child
    args = list2cmdline(args)
    File "C:\Python32\lib\subprocess.py", line 564, in list2cmdline
    needquote = (" " in arg) or ("\t" in arg) or not arg
    TypeError: Type str doesn't support the buffer API

This is an issue for folks that use python to write cross-platform
code. The unix code paths expect list-of-bytes, but win32 only expects
list-of-unicode, which pushes the burden onto the application
programmer.

It's my opinion that the win32 code path on python3 is the odd man
out. If it allowed list-of-bytes like python2/win32 and python2+3/unix
then this wouldn't be an issue.

Is this an actual problem, or is it something that should be handled
by application-level code as I've done?

Thanks,
--

-- 
David
Nick Coghlan | 19 Apr 04:31 2014
Picon

PEP 469: Restoring the iterkeys/values/items() methods

After spending some time talking to the folks at the PyCon Twisted
sprints, they persuaded me that adding back the iterkeys/values/items
methods for mapping objects would be a nice way to eliminate a key
porting hassle for them (and likely others), without significantly
increasing the complexity of Python 3.

I personally put this one in the same category as PEP 414 - not
particularly useful from a Python 3 perspective, but not really
harmful either, and helpful enough from a transition perspective to be
worth doing.

Regards,
Nick.

==============================================
PEP: 469
Title: Simplified migration of iterator-based mapping code to Python 3
Version: $Revision$
Last-Modified: $Date$
Author: Nick Coghlan <ncoghlan <at> gmail.com>
Status: Draft
Type: Standards Track
Content-Type: text/x-rst
Created: 2014-04-18
Python-Version: 3.5
Post-History: 2014-04-18

Abstract
========

For Python 3, PEP 3106 changed the design of the ``dict`` builtin and the
mapping API in general to replace the separate list based and iterator based
APIs in Python 2 with a merged, memory efficient set and multiset view
based API.

This means that Python 3 code always requires an additional qualifier to
reliably reproduce classic Python 2 mapping semantics:

    * List based (e.g. ``d.keys()``): ``list(d.keys())``
    * Iterator based (e.g. ``d.iterkeys()``): ``iter(d.keys())``

Some Python 2 code that uses ``d.keys()`` may be migrated to Python 3
(or the common subset of Python 2 and Python 3) without alteration, but
*all* code using the iterator based API requires modification. Code that
is migrating to the common subset of Python 2 and 3 and needs to retain the
memory efficient implementation that avoids creating an unnecessary list
object must switch away from using a method to instead using a helper
function (such as those provided by the ``six`` module)

To simplify the process of migrating Python 2 code that uses the existing
iterator based APIs to Python 3, this PEP proposes the reintroduction
of the Python 2 spelling of the iterator based semantics in Python 3.5, by
restoring the following methods to the builtin ``dict`` API and the
``collections.abc.Mapping`` ABC definition:

    * ``iterkeys()``
    * ``itervalues()``
    * ``iteritems()``

Proposal
========

Methods with the following exact semantics will be added to the builtin
``dict`` type and ``collections.abc.Mapping`` ABC::

    def iterkeys(self):
        return iter(self.keys())

    def itervalues(self):
        return iter(self.values())

    def iteritems(self):
        return iter(self.items())

These semantics ensure that the methods also work as expected for subclasses
of these base types.

Rationale
=========

Similar in spirit to PEP 414 (which restored explicit Unicode literal
support in Python 3.3), this PEP is aimed primarily at helping users
that currently feel punished for making use of a feature that needed to be
requested explicitly in Python 2, but was effectively made the default
behaviour in Python 3.

Users of list-based iteration in Python 2 that aren't actually relying on
those semantics get a free memory efficiency improvement when migrating to
Python 3, and face no additional difficulties when migrating via the common
subset of Python 2 and 3.

By contrast, users that actually want the increased efficiency may have
faced a three phase migration process by the time they have fully migrated
to Python 3:

* original migration to the iterator based APIs after they were added in
  Python 2.2
* migration to a separate function based API in order to run in the common
  subset of Python 2 and 3
* eventual migration back to unprefixed method APIs when finally dropping
  Python 2.7 support at some point in the future

The view based APIs that were added to Python 2.7 don't actually help with
the transition process, as they don't exist in Python 3 and hence aren't
part of the common subset of Python 2 and Python 3, and also aren't supported
by most Python 2 mappings (including the collection ABCs).

This PEP proposes to just eliminate all that annoyance by making the iterator
based APIs work again in Python 3.5+. As with the restoration of Unicode
literals, it does add a bit of additional noise to the definition of Python
3, but it does so while bringing a significant benefit in increasing the size
of the common subset of Python 2 and Python 3 and so simplifying the process
of migrating to Python 3 for affected Python 2 users.

Acknowledgements
================

Thanks to the folks at the Twisted sprint table at PyCon for a very
vigorous discussion of this idea (and several other topics), and especially
to Hynek Schlawack for acting as a moderator when things got a little too
heated :)

Copyright
=========

This document has been placed in the public domain.

--

-- 
Nick Coghlan   |   ncoghlan <at> gmail.com   |   Brisbane, Australia
Jim J. Jewett | 18 Apr 23:46 2014
Picon

dict and required hashing

(1)  I believe the recent consensus was that the number of comparisons
made in a dict lookup is an implementation detail.  (Please correct me
if I am wrong.)

(2)  Is "the item will be hashed at least once" a language guarantee?

For small mappings, it might well be more efficient to just store the
2-3 key/value pairs and skip the bucket calculation.

On the other hand, if a key is not hashable, discovering that long
after it has already been added to the dict is suboptimal.

Of course, that sort of delayed exception can already happen if it is
the __eq__ method that is messed up ...

-jJ
Python tracker | 18 Apr 18:07 2014

Summary of Python tracker Issues


ACTIVITY SUMMARY (2014-04-11 - 2014-04-18)
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    4579 (+12)
  closed 28493 (+88)
  total  33072 (+100)

Open issues with patches: 2118 

Issues opened (68)
==================

#17160: test_urllib2net fails
http://bugs.python.org/issue17160  reopened by ddvento <at> ucar.edu

#17861: put opcode information in one place
http://bugs.python.org/issue17861  reopened by twouters

#21201: Uninformative error message in multiprocessing.Manager()
http://bugs.python.org/issue21201  opened by wojtekwalczak

#21202: Naming a file` io.py` causes cryptic error message
http://bugs.python.org/issue21202  opened by madison.may

#21204: multiprocessing example does not work on Windows
http://bugs.python.org/issue21204  opened by jmaki

#21205: Unable to make decorated generator object to inherit generator
http://bugs.python.org/issue21205  opened by SzieberthAdam

#21207: urandom persistent fd - not re-openned after fd close
http://bugs.python.org/issue21207  opened by kwirk

#21211: pkgutil.find_loader() raises ImportError instead of returning 
http://bugs.python.org/issue21211  opened by eric.snow

#21213: Memory bomb by incorrect custom serializer to json.dumps
http://bugs.python.org/issue21213  opened by saaj

#21216: getaddrinfo is wrongly considered thread safe on linux
http://bugs.python.org/issue21216  opened by Julien.Palard

#21217: inspect.getsourcelines finds wrong lines when lambda used argu
http://bugs.python.org/issue21217  opened by ballingt

#21220: Enhance obmalloc allocation strategy
http://bugs.python.org/issue21220  opened by kristjan.jonsson

#21221: Minor struct_time documentation bug
http://bugs.python.org/issue21221  opened by lurchman

#21224: BaseHTTPRequestHandler, update the protocol version to http 1.
http://bugs.python.org/issue21224  opened by matrixise

#21225: io.py: Improve docstrings for classes
http://bugs.python.org/issue21225  opened by akuchling

#21226: PyImport_ExecCodeModuleObject not setting module attributes
http://bugs.python.org/issue21226  opened by trevor3

#21227: Decimal class error messages for integer division aren't good
http://bugs.python.org/issue21227  opened by leewz

#21228: Missing enumeration of HTTPResponse Objects methods of urllib.
http://bugs.python.org/issue21228  opened by EvensF

#21230: imghdr does not accept adobe photoshop mime type
http://bugs.python.org/issue21230  opened by faiz

#21231: Issue a python 3 warning when old style classes are defined.
http://bugs.python.org/issue21231  opened by alex

#21232: Use of '1' instead of 'True' as 'splitlines' argument in diffl
http://bugs.python.org/issue21232  opened by jayanthkoushik

#21233: Add *Calloc functions to CPython memory allocation API
http://bugs.python.org/issue21233  opened by njs

#21235: importlib's spec module create algorithm is not exposed
http://bugs.python.org/issue21235  opened by aronacher

#21236: patch to use cabinet.lib instead of fci.lib (fixes build with 
http://bugs.python.org/issue21236  opened by mst

#21237: Update Python 2/3 porting HOWTO's suggestion for dealing with 
http://bugs.python.org/issue21237  opened by brett.cannon

#21240: Add an abstactmethod directive to the Python ReST domain
http://bugs.python.org/issue21240  opened by eric.snow

#21242: Generalize configure check for working Python executable
http://bugs.python.org/issue21242  opened by brett.cannon

#21243: Auto-generate exceptions.c from a Python file
http://bugs.python.org/issue21243  opened by brett.cannon

#21247: test_asyncio: test_subprocess_send_signal hangs on Fedora buil
http://bugs.python.org/issue21247  opened by opoplawski

#21249: removing pythonXY.zip from sys.path results in additional test
http://bugs.python.org/issue21249  opened by doko

#21250: sqlite3 doesn't have unit tests for 'insert or [algorithm]' fu
http://bugs.python.org/issue21250  opened by Alex.Lord

#21251: Standard library trace module crashes with exception
http://bugs.python.org/issue21251  opened by mkolman

#21252: Lib/asyncio/events.py has tons of docstrings which are just "X
http://bugs.python.org/issue21252  opened by alex

#21253: Difflib.compare() crashes when sequences contain little or no 
http://bugs.python.org/issue21253  opened by nnja

#21254: PropertyMock refuses to raise AttributeErrror as a side effect
http://bugs.python.org/issue21254  opened by michael.foord

#21255: Attaching a PropertyMock records calls
http://bugs.python.org/issue21255  opened by michael.foord

#21256: Sort keyword arguments in mock _format_call_signature
http://bugs.python.org/issue21256  opened by michael.foord

#21257: Document parse_headers function of http.client
http://bugs.python.org/issue21257  opened by orsenthil

#21258: Add __iter__ support for mock_open
http://bugs.python.org/issue21258  opened by michael.foord

#21259: replace "except: pass" by "except Exception: pass"
http://bugs.python.org/issue21259  opened by matrixise

#21261: Teach IDLE to Autocomplete dictionary keys
http://bugs.python.org/issue21261  opened by rhettinger

#21263: test_gdb failures on os x 10.9.2
http://bugs.python.org/issue21263  opened by sam.kimbrel

#21264: test_compileall fails to build in the installed location
http://bugs.python.org/issue21264  opened by doko

#21265: ConfigParser allows "get(*, raw=True), but no corresponding "s
http://bugs.python.org/issue21265  opened by metagriffin

#21266: test_zipfile fails to run in the installed location
http://bugs.python.org/issue21266  opened by doko

#21269: Provide args and kwargs attributes on mock call objects
http://bugs.python.org/issue21269  opened by michael.foord

#21270: unittest.mock.call object has inherited count method
http://bugs.python.org/issue21270  opened by michael.foord

#21271: reset_mock needs parameters to also reset return_value and sid
http://bugs.python.org/issue21271  opened by michael.foord

#21272: use _sysconfigdata to itinialize distutils.sysconfig
http://bugs.python.org/issue21272  opened by doko

#21273: don't defined socket constants which are not implemented for G
http://bugs.python.org/issue21273  opened by doko

#21277: don't try to link _ctypes with a ffi_convenience library
http://bugs.python.org/issue21277  opened by doko

#21278: Running the test suite with -v makes the test_ctypes and the t
http://bugs.python.org/issue21278  opened by ddvento <at> ucar.edu

#21279: str.translate documentation incomplete
http://bugs.python.org/issue21279  opened by bgailer

#21280: shutil.make_archive() with default "root_dir" parameter raises
http://bugs.python.org/issue21280  opened by vadmium

#21281: DEBUGGING: Simultaneous stopping of all threads on breakpoint 
http://bugs.python.org/issue21281  opened by azyr

#21282: setup.py: More informative error msg for modules which built b
http://bugs.python.org/issue21282  opened by Lukas.Vacek

#21284: IDLE reformat tests fail in presence of non-default FormatPara
http://bugs.python.org/issue21284  opened by rhettinger

#21287: Better support for AF_PACKET on opensolaris (illumos)
http://bugs.python.org/issue21287  opened by igor.pashev

#21288: hashlib.pbkdf2_hmac Hash Constructor
http://bugs.python.org/issue21288  opened by aronacher

#21289: make.bat not building documentation
http://bugs.python.org/issue21289  opened by dsawyer

#21291: subprocess Popen objects are not thread safe w.r.t. wait() and
http://bugs.python.org/issue21291  opened by gregory.p.smith

#21292: C API in debug fails
http://bugs.python.org/issue21292  opened by Banger

#21293: Remove "capsule hack" from object.c?
http://bugs.python.org/issue21293  opened by larry

#21295: Python 3.4 gives wrong col_offset for Call nodes returned from
http://bugs.python.org/issue21295  opened by Aivar.Annamaa

#21296: smtplib Sends Commands in Lower-Case
http://bugs.python.org/issue21296  opened by luiji

#21297: skipinitialspace in the csv module only skips spaces, not "whi
http://bugs.python.org/issue21297  opened by Daniel.Andersson

#21298: Cheese shop registration stopped working for me recently
http://bugs.python.org/issue21298  opened by tlevine

#21300: Docs (incorrectly) suggest email.policy.default is the default
http://bugs.python.org/issue21300  opened by valhallasw

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

#21300: Docs (incorrectly) suggest email.policy.default is the default
http://bugs.python.org/issue21300

#21298: Cheese shop registration stopped working for me recently
http://bugs.python.org/issue21298

#21297: skipinitialspace in the csv module only skips spaces, not "whi
http://bugs.python.org/issue21297

#21296: smtplib Sends Commands in Lower-Case
http://bugs.python.org/issue21296

#21293: Remove "capsule hack" from object.c?
http://bugs.python.org/issue21293

#21287: Better support for AF_PACKET on opensolaris (illumos)
http://bugs.python.org/issue21287

#21284: IDLE reformat tests fail in presence of non-default FormatPara
http://bugs.python.org/issue21284

#21282: setup.py: More informative error msg for modules which built b
http://bugs.python.org/issue21282

#21281: DEBUGGING: Simultaneous stopping of all threads on breakpoint 
http://bugs.python.org/issue21281

#21280: shutil.make_archive() with default "root_dir" parameter raises
http://bugs.python.org/issue21280

#21278: Running the test suite with -v makes the test_ctypes and the t
http://bugs.python.org/issue21278

#21271: reset_mock needs parameters to also reset return_value and sid
http://bugs.python.org/issue21271

#21270: unittest.mock.call object has inherited count method
http://bugs.python.org/issue21270

#21269: Provide args and kwargs attributes on mock call objects
http://bugs.python.org/issue21269

#21266: test_zipfile fails to run in the installed location
http://bugs.python.org/issue21266

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

#21300: Docs (incorrectly) suggest email.policy.default is the default
http://bugs.python.org/issue21300

#21293: Remove "capsule hack" from object.c?
http://bugs.python.org/issue21293

#21291: subprocess Popen objects are not thread safe w.r.t. wait() and
http://bugs.python.org/issue21291

#21289: make.bat not building documentation
http://bugs.python.org/issue21289

#21287: Better support for AF_PACKET on opensolaris (illumos)
http://bugs.python.org/issue21287

#21279: str.translate documentation incomplete
http://bugs.python.org/issue21279

#21273: don't defined socket constants which are not implemented for G
http://bugs.python.org/issue21273

#21272: use _sysconfigdata to itinialize distutils.sysconfig
http://bugs.python.org/issue21272

#21265: ConfigParser allows "get(*, raw=True), but no corresponding "s
http://bugs.python.org/issue21265

#21259: replace "except: pass" by "except Exception: pass"
http://bugs.python.org/issue21259

#21258: Add __iter__ support for mock_open
http://bugs.python.org/issue21258

#21256: Sort keyword arguments in mock _format_call_signature
http://bugs.python.org/issue21256

#21249: removing pythonXY.zip from sys.path results in additional test
http://bugs.python.org/issue21249

#21240: Add an abstactmethod directive to the Python ReST domain
http://bugs.python.org/issue21240

#21233: Add *Calloc functions to CPython memory allocation API
http://bugs.python.org/issue21233

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

#12916: Add inspect.splitdoc
http://bugs.python.org/issue12916  21 msgs

#21233: Add *Calloc functions to CPython memory allocation API
http://bugs.python.org/issue21233  20 msgs

#20438: inspect: Deprecate getfullargspec?
http://bugs.python.org/issue20438  14 msgs

#21199: Python on 64-bit Windows uses signed 32-bit type for read leng
http://bugs.python.org/issue21199  14 msgs

#21259: replace "except: pass" by "except Exception: pass"
http://bugs.python.org/issue21259  14 msgs

#21227: Decimal class error messages for integer division aren't good
http://bugs.python.org/issue21227  11 msgs

#20434: Fix error handler of _PyString_Resize() on allocation failure
http://bugs.python.org/issue20434  10 msgs

#20578: BufferedIOBase.readinto1 is missing
http://bugs.python.org/issue20578  10 msgs

#17861: put opcode information in one place
http://bugs.python.org/issue17861   9 msgs

#21220: Enhance obmalloc allocation strategy
http://bugs.python.org/issue21220   9 msgs

Issues closed (81)
==================

#5420: Queue deprecation warning patch
http://bugs.python.org/issue5420  closed by rhettinger

#6490: os.popen documentation is probably wrong
http://bugs.python.org/issue6490  closed by akuchling

#6727: ImportError when package is symlinked on Windows
http://bugs.python.org/issue6727  closed by r.david.murray

#8060: PEP 3101 string formatting missing engineering presentation ty
http://bugs.python.org/issue8060  closed by eric.smith

#8931: '#' has no effect with 'c' type
http://bugs.python.org/issue8931  closed by eric.smith

#10224: Build 3.x documentation using python3.x
http://bugs.python.org/issue10224  closed by georg.brandl

#10481: subprocess PIPEs are byte streams
http://bugs.python.org/issue10481  closed by akuchling

#10983: Errors in http.client.HTTPConnection class (python3)
http://bugs.python.org/issue10983  closed by orsenthil

#11316: RFC822 header parsing API inconsistencies between httplib.HTTP
http://bugs.python.org/issue11316  closed by r.david.murray

#12546: builtin __format__ methods cannot fill with \x00 char
http://bugs.python.org/issue12546  closed by eric.smith

#13244: WebSocket schemes in urllib.parse
http://bugs.python.org/issue13244  closed by orsenthil

#14216: ImportError: No module named binascii
http://bugs.python.org/issue14216  closed by akuchling

#15234: avoid runtime library path for extensions found in system dire
http://bugs.python.org/issue15234  closed by doko

#15370: test_runpy should include namespace package tests
http://bugs.python.org/issue15370  closed by akuchling

#15840: Ambiguity with regard to the effect of accessing a closed IOBa
http://bugs.python.org/issue15840  closed by akuchling

#15916: change doctest DocTestSuite not to raise ValueError if no docs
http://bugs.python.org/issue15916  closed by r.david.murray

#16236: Doc/Makefile should have $PYTHON=python2
http://bugs.python.org/issue16236  closed by berker.peksag

#17009: "Thread Programming With Python" should be removed
http://bugs.python.org/issue17009  closed by r.david.murray

#17498: error responses from server are masked in smtplib when server 
http://bugs.python.org/issue17498  closed by r.david.murray

#17660: mock.patch could whitelist builtins to not need create=True
http://bugs.python.org/issue17660  closed by python-dev

#17826: Setting a side_effect on mock from create_autospec doesn't wor
http://bugs.python.org/issue17826  closed by michael.foord

#18321: Multivolume support in tarfile module
http://bugs.python.org/issue18321  closed by lars.gustaebel

#18566: In unittest.TestCase docs for setUp() and tearDown() don't men
http://bugs.python.org/issue18566  closed by terry.reedy

#18628: Better index entry for encoding declarations
http://bugs.python.org/issue18628  closed by r.david.murray

#18650: intermittent test_pydoc failure on 3.4.0a1
http://bugs.python.org/issue18650  closed by ned.deily

#20103: Documentation of itertools.accumulate is confused
http://bugs.python.org/issue20103  closed by akuchling

#20307: Android's failure to expose SYS_* system call constants causes
http://bugs.python.org/issue20307  closed by gregory.p.smith

#20480: Add ipaddress property to get name of reverse DNS PTR record
http://bugs.python.org/issue20480  closed by eric.smith

#20624: Clarify recommendation to inherit from Exception
http://bugs.python.org/issue20624  closed by mark.dickinson

#20636: Better repr for tkinter widgets
http://bugs.python.org/issue20636  closed by serhiy.storchaka

#20701: warning in compileall.rst
http://bugs.python.org/issue20701  closed by Arfrever

#20874: Tutorial section on starting python is out of date
http://bugs.python.org/issue20874  closed by r.david.murray

#20904: HAVE_PY_SET_53BIT_PRECISION for m68k
http://bugs.python.org/issue20904  closed by python-dev

#20956: tokenize module claims tokenize.tokenize returns namedtuple, b
http://bugs.python.org/issue20956  closed by python-dev

#20968: mock.MagicMock does not mock __truediv__
http://bugs.python.org/issue20968  closed by michael.foord

#21028: ElementTree objects should support all the same methods as Ele
http://bugs.python.org/issue21028  closed by rhettinger

#21164: print unicode in Windows console
http://bugs.python.org/issue21164  closed by terry.reedy

#21169: getpass.getpass() fails with non-ASCII characters in prompt
http://bugs.python.org/issue21169  closed by serhiy.storchaka

#21170: Incorrect signature for unittest.TestResult.startTestRun(), .s
http://bugs.python.org/issue21170  closed by terry.reedy

#21171: Outdated usage str.encode('rot-13') in rot13 codec
http://bugs.python.org/issue21171  closed by benjamin.peterson

#21177: ValueError: byte must be in range(0, 256)
http://bugs.python.org/issue21177  closed by pitrou

#21188: Broken link
http://bugs.python.org/issue21188  closed by loewis

#21193: pow(a, b, c) should not raise TypeError when b is negative and
http://bugs.python.org/issue21193  closed by mark.dickinson

#21194: json.dumps with ensure_ascii=False doesn't escape control char
http://bugs.python.org/issue21194  closed by ned.deily

#21197: venv does not create lib64 directory and appropriate symlinks
http://bugs.python.org/issue21197  closed by python-dev

#21203: logging configurators ignoring documented options
http://bugs.python.org/issue21203  closed by python-dev

#21206: Provide legit HTTPS certificate for http://bugs.python.org/, r
http://bugs.python.org/issue21206  closed by ned.deily

#21208: Change default behavior of arguments with type bool when optio
http://bugs.python.org/issue21208  closed by r.david.murray

#21209: q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1
http://bugs.python.org/issue21209  closed by python-dev

#21210: Warnings in Doc/library/json.rst
http://bugs.python.org/issue21210  closed by python-dev

#21212: Documentation of octal representation
http://bugs.python.org/issue21212  closed by python-dev

#21214: PEP8 doesn't verifies last line.
http://bugs.python.org/issue21214  closed by mark.dickinson

#21215: build-deps instructions for Ubuntu
http://bugs.python.org/issue21215  closed by r.david.murray

#21218: Test failure for test_ssl.test_default_ecdh_curve on OS X
http://bugs.python.org/issue21218  closed by ned.deily

#21219: WARNING: Inline literal start-string without end-string.
http://bugs.python.org/issue21219  closed by orsenthil

#21222: Mock create_autospec with name argument fails
http://bugs.python.org/issue21222  closed by python-dev

#21223: fix test_site/test_startup_imports when some of the extensions
http://bugs.python.org/issue21223  closed by doko

#21229: Path used for HTTP PUT request doesn't match the description
http://bugs.python.org/issue21229  closed by python-dev

#21234: __contains__ and friends should check "is" for all elements fi
http://bugs.python.org/issue21234  closed by rhettinger

#21238: unittest.mock.Mock should not allow you to use non-existent as
http://bugs.python.org/issue21238  closed by python-dev

#21239: unittest.mock.patch.stopall intermittently doesn't work when t
http://bugs.python.org/issue21239  closed by python-dev

#21241: Variable name with number causes interactive console to crash
http://bugs.python.org/issue21241  closed by ned.deily

#21244: distutils fails to build C extensions with XCode 5.1 and OS X 
http://bugs.python.org/issue21244  closed by ned.deily

#21245: Logging Logger.exception documentation
http://bugs.python.org/issue21245  closed by python-dev

#21246: test_ssl handshake failure
http://bugs.python.org/issue21246  closed by pitrou

#21248: BROWSER env var described inaccurately in webbrowser docs
http://bugs.python.org/issue21248  closed by python-dev

#21260: python malloc mach_vm_map failed
http://bugs.python.org/issue21260  closed by ned.deily

#21262: assert_not_called method for mocks
http://bugs.python.org/issue21262  closed by python-dev

#21267: mktime_tz may return wrong result for past dates before Python
http://bugs.python.org/issue21267  closed by akira

#21268: Update pydoc module docstring
http://bugs.python.org/issue21268  closed by eric.araujo

#21274: define PATH_MAX for GNU/Hurd in Python/pythonrun.c
http://bugs.python.org/issue21274  closed by doko

#21275: fix a socket test on KFreeBSD
http://bugs.python.org/issue21275  closed by doko

#21276: don't define USE_XATTRS on kfreebsd and the Hurd
http://bugs.python.org/issue21276  closed by doko

#21283: A escape character is used when a REGEXP is an argument of "st
http://bugs.python.org/issue21283  closed by eric.smith

#21285: refactor and fix curses configure checks
http://bugs.python.org/issue21285  closed by doko

#21286: Refcounting information missing in docs for Python 3.4 and abo
http://bugs.python.org/issue21286  closed by python-dev

#21290: imaplib.error when importing email package
http://bugs.python.org/issue21290  closed by r.david.murray

#21294: len wrong help
http://bugs.python.org/issue21294  closed by python-dev

#21299: Spam
http://bugs.python.org/issue21299  closed by berker.peksag

#984870: curses: getmaxyx() breaks when the window shrinks
http://bugs.python.org/issue984870  closed by akuchling

#1521196: smtplib login fails with aol smtp server
http://bugs.python.org/issue1521196  closed by r.david.murray
Nick Coghlan | 18 Apr 17:58 2014
Picon

Software integrators vs end users (was Re: Language Summit notes)

On 16 Apr 2014 21:03, "R. David Murray" <rdmurray <at> bitdance.com> wrote:
> There is an 'Installing Python on Windows' link further down the google
> results that links to a fairly good page from python-guide.org, whose
> first link lets you download the 2.7.6 msi.  I guess that's the 32
> bit version.  But it then tells you go to python.org to make sure you
> get the latest release, and tells you to click on a link that doesn't
> exist any more (the "windows installer" link).
>
> So, yeah.
>
> Usability.

As part of thrashing out the respective distribution ecosystem roles
of pip and conda (still a work in progress), we're at least converging
on the notion that there are actually now *two* main ways of consuming
Python: as a "software integrator" (the way most of us have
traditionally consumed it, and the way that dominates most project
documentation outside the scientific Python community) and as an "end
user" (the way Linux system administrators have long consumed it, and
the way scientists, financial analysts and folks just learning Python
are likely best off consuming it).

Making these different personas explicit is a process that has barely
begun (this email is mostly based on some conversations I had in
person at PyCon and via email during the sprints), but here's the gist
(based on listing examples):

Software integrators:

* Linux distributions and other operating system vendors
* Sumo redistributions (commercial or otherwise)
* "Python based environments" (PTVS, Enthought Canopy, wakari.io,
Python Anywhere, etc)
* Software-as-a-Service developers
* Device manufacturers
* PC OEMs
* creators of corporate "Standard Operating Environment" definitions
* System integrators (IBM, Boeing et al)
* Application developers (from simple CLI tools to OpenStack)

End users:
* system administrators
* scientists (whether in academia or corporations)
* financial analysts
* engineers
* data miners
* graphic artists
* animation designers
* <<< Folks trying out Python for the first time >>>

For end users, Python is likely consumed as *part of something else*.
For Linux admins, it's a way of scripting the system, for graphic
artists and animators, it's likely embedded as part of a tool like
Blender or Maya, for scientists, financial analysts, engineers and
data miners, it likely makes sense to use it as part of a larger
visualisation environment like IPython Notebook, Python (x, y),
Enthought Canopy, or a hosted system like Wakari or Python Anywhere.

Folks just learning Python are also in the latter list, and we
currently ask them (on the python.org download pages) to jump straight
into the "software integrator" role to get their environment set up,
rather than setting out to impress them by recommending one of the
pre-integrated sumo distributions that offers quick and easy access to
powerful visualisation and data analysis tools. While providing access
to the CPython default interactive prompt in the browser is cool, it's
less impressive as the default experience we provide after someone has
downloaded and installed the interpreter. Instead, we likely want to
*really* impress them by making it easy for them to explore the full
power of things like IPython Notebooks. My own current preferred
approach for that is the fully open source "Anaconda" distribution
from Continuum Analytics, specifically because it *is* fully open
source, and you can "pip install conda" to bootstrap their package
manager in other contexts. And, importantly, because conda
environments can *manage the Python runtime itself*, it is able to
work more consistently across different platforms than the upstream
tools by reliably isolating itself from the system Python on POSIX
platforms. It should even by possible to get conda to manage alternate
Python implementations like Stackless, PyPy, Jython, IronPython, etc
(although I don't believe anyone is using it that way as yet).

However, conda *isn't* optimised for the software integrator use case
- the additional work it does to improve cross platform consistency
actually *gets in the way*, when you're trying to integrate Python
closely with a larger system (like a Linux distribution), and "a large
set of automatically provided libraries" isn't actually a feature in
that context. While conda does offer some options (like miniconda) to
make that kind of integration task easier, I strongly believe that
realm is better handled by consuming CPython and the standard library,
along with pip and related tools, directly, and accepting the
additional platform specific details that come along with that.

Making this "software integrator" and "end user" split deliberately
and consciously, and pushing the former toward consuming things in a
more DIY fashion, and the latter towards a pre-assembled sumo
distribution should help greatly in allowing us to better balance the
starkly different needs of the two groups, and provide an extremely
high quality "out of the box" experience for new users, while still
allowing software integrators to dive in and customise things to suit
their own needs.

From a Python 2->3 migration perspective, blessing at least one sumo
distribution also provides a way to make it easy to gain ready access
to backports from the Python 3 standard library (for example, Anaconda
currently includes at least the backports.ssl_match_hostname module).

Regards,
Nick.

Gmane