Python tracker | 19 Dec 18:08 2014

Summary of Python tracker Issues


ACTIVITY SUMMARY (2014-12-12 - 2014-12-19)
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    4683 (+17)
  closed 30168 (+31)
  total  34851 (+48)

Open issues with patches: 2192 

Issues opened (34)
==================

#23042: Python 2.7.9 ctypes module doesn't build on FreeBSD x86
http://bugs.python.org/issue23042  opened by lemburg

#23043: doctest ignores "from __future__ import print_function"
http://bugs.python.org/issue23043  opened by fva

#23046: asyncio.BaseEventLoop is documented, but only exported via asy
http://bugs.python.org/issue23046  opened by vadmium

#23050: Add Japanese legacy encodings
http://bugs.python.org/issue23050  opened by t2y

#23051: multiprocessing.pool methods imap() and imap_unordered() cause
(Continue reading)

Chris Angelico | 18 Dec 22:19 2014
Picon

Re: [PEPs] Fwd: fixing broken link in pep 3

On Fri, Dec 19, 2014 at 5:39 AM, Guido van Rossum <guido <at> python.org> wrote:
>---------- Forwarded message ----------
> From: Victor Stinner <victor.stinner <at> gmail.com>
>
> Hi,
>
> Yes, the link is dead. It looks like the following link contains the same
> info:
> https://docs.python.org/devguide/triaging.html
>
> Dead page:
> https://web.archive.org/web/20090704040931/http://www.python.org/dev/workflow/
> "Core Development > Issue Workflow"
>
> Victor

Edits made to PEP 3, link now updated. Noticed along the way that the
next link down (for people _submitting_ bugs) is pointing to the /2/
section of the docs; should that be updated to send people to /3/, or
are the two kept in sync?

ChrisA
Maciej Fijalkowski | 18 Dec 20:13 2014
Picon

libffi embedded in CPython

After reading this http://bugs.python.org/issue23085 and remembering
struggling having our own patches into cpython's libffi (but not into
libffi itself), I wonder, is there any reason any more for libffi
being included in CPython?

Cheers,
fijal
Facundo Batista | 18 Dec 16:59 2014
Picon

Redirection of ar.pycon.org

Hi!

Don't remember where to ask for changing the redirection of that
domain name. Somebody knows?

I need for the redirection to be to pycon.python.org.ar (and we'll
take care of proper year-by-year redirection from there).

Thanks!

--

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
Twitter:  <at> facundobatista
Raymond Sanchez | 18 Dec 06:57 2014
Picon

fixing broken link in pep 3

Hello my name is Raymond and I would like to fix a broken link on pep 3. If you go to 
https://www.python.org/dev/peps/pep-0003/ and click on link http://www.python.org/dev/workflow/, it returns a 404.

What is the correct url? Should we also update the description "It has been replaced by the Issue Workflow"?After I'll get the correct answers, I will submit a patch.
Thanks for your help.
<div><div dir="ltr">
<div>Hello my name is Raymond and I would like to fix a broken link on pep 3. If you go to&nbsp;</div>
<a href="https://www.python.org/dev/peps/pep-0003/">https://www.python.org/dev/peps/pep-0003/</a> and click on link&nbsp;<a href="http://www.python.org/dev/workflow/">http://www.python.org/dev/workflow/</a>, it returns a 404.<div><br></div>
<div>What is the correct url? Should we also update the description <span>"It has been replaced by the Issue Workflow"?</span>After I'll get the correct answers, I will submit a patch.<br>Thanks for your help.<br>
</div>
</div></div>
Nick Coghlan | 17 Dec 21:57 2014
Picon

Proposal: Update PEP 1 to allow an explicit "Provisional" status for PEPs

Hi folks,

The recent release of setuptools 8.0 brought with it the migration to
the more explicit version handling semantics defined in PEP 440.

Some of the feedback on that release showed us that we could really
use the equivalent of PEP 411 for interoperability PEPs as well as for
standard library modules: a way to say "this is well defined enough
for us to publish a reference implementation in the default packaging
tools, but needs additional user feedback before we consider it
completely stable".

The reasons for this are mostly pragmatic: the kinds of tweaks we're
talking about are small (in this specific case, changing the
normalised form when publishing release candidates from 'c' to 'rc' ,
when installation tools are already required to accept either spelling
as valid), but updating hyperlinks, other documentation references,
etc means that spinning a full PEP revision just for that change would
be excessively expensive in contributor time and energy.

So over on distutils-sig, we're currently considering PEP 440
provisional until we're happy with the feedback we're receiving on
setuptools 8.x and the upcoming pip 6.0 release.

However, I'd be happier if we could communicate that status more
explicitly through the PEP process, especially as I think such a
capability would be useful more generally as we move towards
implementing metadata 2.0 and potentially other enhancements for pip
7+ next year.

If folks are OK with this idea, I'll go ahead and make the appropriate
changes to PEP 1 and the PEP index generator. I'm also happy to file a
tracker issue, or write a short PEP, if folks feel making such a
change requires a little more formality in its own right.

Regards,
Nick.

--

-- 
Nick Coghlan   |   ncoghlan <at> gmail.com   |   Brisbane, Australia
Tschijnmo Tschau | 17 Dec 08:37 2014
Picon

A metaclass for immutability

Hi all,

Recently when I am writing a computer algebra system for a very special purpose, it is found that being able to have objects of user-defined classes immutable can be very nice. It would greatly enhance the safety of the code. For example in the code that I were writing, objects hold a lot of references to other objects of user-defined class. If other parts of the code mutates the objects that is referenced, quite expected things could happen.

As a result, an initial tentative implementation of a metaclass for making objects of user-defined classes immutable is written and put into a Github repository https://github.com/tschijnmo/immutableclass. Since I am not a python expert yet, could you please help me

1. If such a metaclass is Pythonic? Is it considered a good practice to use such a metaclass in a code that needs frequent maintenance?

2. Is this metaclass of interest to other Python developers as well? I mean is it worth-while to try to put this, or something like this, into the standard Python library?

3. If the answer to the above questions are affirmative, is my current implementation Pythonic? Especially if it is better implemented as a class decorator rather than a metaclass?

Most of the code should be quite straightforward. It is mimicked after the named tuple in the collections library. Just for the initialization, basically what I did is to make a mutable proxy class for every immutable class. This proxy class is attempted to carry as much behaviour of the immutable class as possible, except it is mutable.Then the initializer defined by users are in fact called with self being an instance of the proxy class, then the actual immutable object is built out of it.

This is my first time posting to this list. Any feedback is greatly appreciated. Thank you!

Regards,

Jinmo
<div><div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi all,<br><br>
</div>Recently when I am writing a computer algebra system for a very special purpose, it is found that being able to have objects of user-defined classes immutable can be very nice. It would greatly enhance the safety of the code. For example in the code that I were writing, objects hold a lot of references to other objects of user-defined class. If other parts of the code mutates the objects that is referenced, quite expected things could happen.<br><br>
</div>As a result, an initial tentative implementation of a metaclass for making objects of user-defined classes immutable is written and put into a Github repository <a href="https://github.com/tschijnmo/immutableclass">https://github.com/tschijnmo/immutableclass</a>. Since I am not a python expert yet, could you please help me<br><br>
</div>1. If such a metaclass is Pythonic? Is it considered a good practice to use such a metaclass in a code that needs frequent maintenance?<br><br>
</div>2. Is this metaclass of interest to other Python developers as well? I mean is it worth-while to try to put this, or something like this, into the standard Python library?<br><br>
</div>3. If the answer to the above questions are affirmative, is my current implementation Pythonic? Especially if it is better implemented as a class decorator rather than a metaclass?<br><br>
</div>Most of the code should be quite straightforward. It is mimicked after the named tuple in the collections library. Just for the initialization, basically what I did is to make a mutable proxy class for every immutable class. This proxy class is attempted to carry as much behaviour of the immutable class as possible, except it is mutable.Then the initializer defined by users are in fact called with self being an instance of the proxy class, then the actual immutable object is built out of it.<br><br>
</div>This is my first time posting to this list. Any feedback is greatly appreciated. Thank you!<br><br>
</div>Regards,<br><br>
</div>Jinmo<br>
</div></div>
Matthew Braun | 16 Dec 16:49 2014

Python 3.4.2/ PyGame Registry

Good Morning,
I installed Python 3.4.2 on my work computer.  I was looking at the book "Head First Programming" which references download PYGAME. I downloaded what I believe to be the correct version and it tells me that I don't see the installer. I look in the registry and there is no:

HKEY_CURRENT_USER\Software\Python\

Did I do something wrong? This is all new to me. Any help would be greatly appreciated.
Thanks Matt




<div><div dir="ltr">
<div>Good Morning,</div>
<div>I installed Python 3.4.2 on my work computer.&nbsp; I was looking at the book "Head First Programming" which references download PYGAME. I downloaded what I believe to be the correct version and it tells me that I don't see the installer. I look in the registry and there is no:</div>
<div><br></div>
<div>
<span>HKEY_CURRENT_USER\Software\Python\</span><br>
</div>
<div><span><br></span></div>
<div><span>Did I do something wrong? This is all new to me. Any help would be greatly appreciated.</span></div>
<div><span>Thanks Matt</span></div>
<div><br></div>
<div><br></div>
<br clear="all"><div><div class="gmail_signature"><div dir="ltr"><br></div></div></div>
</div></div>
Steve Dower | 12 Dec 18:53 2014
Picon

Issue 22919: Update PCBuild for VS 2015

FYI, I've just committed these changes (http://bugs.python.org/issue22919).

There shouldn't be any immediate failures, as the updated projects will still build with VS 2010, but our
Windows developers/buildbots can migrate onto the later tools as they feel comfortable.

I know there are at least a few bugs coming out of the new compiler, so I'll be tracking those down and fixing
things. Feel free to nosy me (or Windows) on the issue tracker if you find anything.

Cheers,
Steve

Python tracker | 12 Dec 18:08 2014

Summary of Python tracker Issues


ACTIVITY SUMMARY (2014-12-05 - 2014-12-12)
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    4666 ( +0)
  closed 30137 (+42)
  total  34803 (+42)

Open issues with patches: 2173 

Issues opened (31)
==================

#9647: os.confstr() does not handle value changing length between cal
http://bugs.python.org/issue9647  reopened by haypo

#22866: ssl module in 2.7 should provide a way to configure default co
http://bugs.python.org/issue22866  reopened by lemburg

#22935: Disabling SSLv3 support
http://bugs.python.org/issue22935  reopened by ned.deily

#23001: Accept mutable bytes-like objects
http://bugs.python.org/issue23001  opened by serhiy.storchaka

#23003: traceback.{print_exc,print_exception,format_exc,format_excepti
http://bugs.python.org/issue23003  opened by Arfrever

#23004: mock_open() should allow reading binary data
http://bugs.python.org/issue23004  opened by jcea

#23008: pydoc enum.{,Int}Enum fails
http://bugs.python.org/issue23008  opened by Antony.Lee

#23010: "unclosed file" warning when defining unused logging FileHandl
http://bugs.python.org/issue23010  opened by wdoekes

#23011: Duplicate Paragraph in documentation for json module
http://bugs.python.org/issue23011  opened by berndca

#23012: RuntimeError: settrace/setprofile function gets lost
http://bugs.python.org/issue23012  opened by arigo

#23013: Tweak wording for importlib.util.LazyLoader in regards to Load
http://bugs.python.org/issue23013  opened by brett.cannon

#23014: Don't have importlib.abc.Loader.create_module() be optional
http://bugs.python.org/issue23014  opened by brett.cannon

#23015: Improve test_uuid
http://bugs.python.org/issue23015  opened by serhiy.storchaka

#23017: string.printable.isprintable() returns False
http://bugs.python.org/issue23017  opened by planet36

#23018: Add version info to python[w].exe
http://bugs.python.org/issue23018  opened by steve.dower

#23019: pyexpat.errors wrongly bound to message strings instead of mes
http://bugs.python.org/issue23019  opened by bkarge

#23020: New matmul operator crashes modules compiled with CPython3.4
http://bugs.python.org/issue23020  opened by amaury.forgeotdarc

#23021: Get rid of references to PyString in Modules/
http://bugs.python.org/issue23021  opened by berker.peksag

#23023: ./Modules/ld_so_aix not found on AIX during test_distutils
http://bugs.python.org/issue23023  opened by lemburg

#23025: ssl.RAND_bytes docs should mention os.urandom
http://bugs.python.org/issue23025  opened by alex

#23026: Winreg module doesn't support REG_QWORD, small DWORD doc updat
http://bugs.python.org/issue23026  opened by markgrandi

#23027: test_warnings fails with -Werror
http://bugs.python.org/issue23027  opened by serhiy.storchaka

#23028: CEnvironmentVariableTests and PyEnvironmentVariableTests test 
http://bugs.python.org/issue23028  opened by serhiy.storchaka

#23029: test_warnings produces extra output in quiet mode
http://bugs.python.org/issue23029  opened by serhiy.storchaka

#23030: lru_cache manual get/put
http://bugs.python.org/issue23030  opened by ConnyOnny

#23031: pdb crashes when jumping over "with" statement
http://bugs.python.org/issue23031  opened by DSP

#23033: Disallow support for a*.example.net, *a.example.net, and a*b.e
http://bugs.python.org/issue23033  opened by dstufft

#23034: Dynamically control debugging output
http://bugs.python.org/issue23034  opened by serhiy.storchaka

#23035: python -c: Line causing exception not shown for exceptions oth
http://bugs.python.org/issue23035  opened by Arfrever

#23040: Better documentation for the urlencode safe parameter
http://bugs.python.org/issue23040  opened by wrwrwr

#23041: csv needs more quoting rules
http://bugs.python.org/issue23041  opened by samwyse

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

#23029: test_warnings produces extra output in quiet mode
http://bugs.python.org/issue23029

#23028: CEnvironmentVariableTests and PyEnvironmentVariableTests test 
http://bugs.python.org/issue23028

#23027: test_warnings fails with -Werror
http://bugs.python.org/issue23027

#23026: Winreg module doesn't support REG_QWORD, small DWORD doc updat
http://bugs.python.org/issue23026

#23021: Get rid of references to PyString in Modules/
http://bugs.python.org/issue23021

#23015: Improve test_uuid
http://bugs.python.org/issue23015

#23013: Tweak wording for importlib.util.LazyLoader in regards to Load
http://bugs.python.org/issue23013

#23012: RuntimeError: settrace/setprofile function gets lost
http://bugs.python.org/issue23012

#23008: pydoc enum.{,Int}Enum fails
http://bugs.python.org/issue23008

#23004: mock_open() should allow reading binary data
http://bugs.python.org/issue23004

#23003: traceback.{print_exc,print_exception,format_exc,format_excepti
http://bugs.python.org/issue23003

#22990: bdist installation dialog
http://bugs.python.org/issue22990

#22981: Use CFLAGS when extracting multiarch
http://bugs.python.org/issue22981

#22970: Cancelling wait() after notification leaves Condition in an in
http://bugs.python.org/issue22970

#22969: Compile fails with --without-signal-module
http://bugs.python.org/issue22969

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

#23040: Better documentation for the urlencode safe parameter
http://bugs.python.org/issue23040

#23030: lru_cache manual get/put
http://bugs.python.org/issue23030

#23026: Winreg module doesn't support REG_QWORD, small DWORD doc updat
http://bugs.python.org/issue23026

#23025: ssl.RAND_bytes docs should mention os.urandom
http://bugs.python.org/issue23025

#23018: Add version info to python[w].exe
http://bugs.python.org/issue23018

#23017: string.printable.isprintable() returns False
http://bugs.python.org/issue23017

#23015: Improve test_uuid
http://bugs.python.org/issue23015

#23003: traceback.{print_exc,print_exception,format_exc,format_excepti
http://bugs.python.org/issue23003

#23001: Accept mutable bytes-like objects
http://bugs.python.org/issue23001

#22997: Minor improvements to "Functional API" section of Enum documen
http://bugs.python.org/issue22997

#22992: Adding a git developer's guide to Mercurial to devguide
http://bugs.python.org/issue22992

#22991: test_gdb leaves the terminal in raw mode with gdb 7.8.1
http://bugs.python.org/issue22991

#22986: Improved handling of __class__ assignment
http://bugs.python.org/issue22986

#22984: test_json.test_endless_recursion(): "Fatal Python error: Canno
http://bugs.python.org/issue22984

#22982: BOM incorrectly inserted before writing, after seeking in text
http://bugs.python.org/issue22982

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

#22935: Disabling SSLv3 support
http://bugs.python.org/issue22935  17 msgs

#22939: integer overflow in iterator object
http://bugs.python.org/issue22939  11 msgs

#22992: Adding a git developer's guide to Mercurial to devguide
http://bugs.python.org/issue22992  10 msgs

#18835: Add aligned memory variants to the suite of PyMem functions/ma
http://bugs.python.org/issue18835   8 msgs

#22823: Use set literals instead of creating a set from a list
http://bugs.python.org/issue22823   8 msgs

#22980: C extension naming doesn't take bitness into account
http://bugs.python.org/issue22980   8 msgs

#23014: Don't have importlib.abc.Loader.create_module() be optional
http://bugs.python.org/issue23014   8 msgs

#23020: New matmul operator crashes modules compiled with CPython3.4
http://bugs.python.org/issue23020   8 msgs

#22866: ssl module in 2.7 should provide a way to configure default co
http://bugs.python.org/issue22866   7 msgs

#21600: mock.patch.stopall doesn't work with patch.dict to sys.modules
http://bugs.python.org/issue21600   6 msgs

Issues closed (37)
==================

#12602: Missing cross-references in Doc/using
http://bugs.python.org/issue12602  closed by berker.peksag

#16041: poplib: unlimited readline() from connection
http://bugs.python.org/issue16041  closed by python-dev

#16042: smtplib: unlimited readline() from connection
http://bugs.python.org/issue16042  closed by python-dev

#16043: xmlrpc: gzip_decode has unlimited read()
http://bugs.python.org/issue16043  closed by python-dev

#18305: [patch] Fast sum() for non-numbers
http://bugs.python.org/issue18305  closed by gvanrossum

#19451: urlparse accepts invalid hostnames
http://bugs.python.org/issue19451  closed by terry.reedy

#20603: sys.path disappears at shutdown
http://bugs.python.org/issue20603  closed by brett.cannon

#20866: Crash in the libc fwrite() on SIGPIPE (segfault with os.popen 
http://bugs.python.org/issue20866  closed by terry.reedy

#20895: Add bytes.empty_buffer and deprecate bytes(17) for the same pu
http://bugs.python.org/issue20895  closed by ethan.furman

#21427: Windows installer: cannot register 64 bit component
http://bugs.python.org/issue21427  closed by terry.reedy

#21740: doctest doesn't allow duck-typing callables
http://bugs.python.org/issue21740  closed by yselivanov

#21775: shutil.copytree() crashes copying to VFAT on Linux: AttributeE
http://bugs.python.org/issue21775  closed by berker.peksag

#22095: Use of set_tunnel with default port results in incorrect post 
http://bugs.python.org/issue22095  closed by serhiy.storchaka

#22225: Add SQLite support to http.cookiejar
http://bugs.python.org/issue22225  closed by demian.brecht

#22394: Update documentation building to use venv and pip
http://bugs.python.org/issue22394  closed by brett.cannon

#22581: Other mentions of the buffer protocol
http://bugs.python.org/issue22581  closed by serhiy.storchaka

#22696: Add a function to know about interpreter shutdown
http://bugs.python.org/issue22696  closed by pitrou

#22918: Doc for __iter__ makes inexact comment about dict.__iter__
http://bugs.python.org/issue22918  closed by r.david.murray

#22959: http.client.HTTPSConnection checks hostname when SSL context h
http://bugs.python.org/issue22959  closed by benjamin.peterson

#22985: Segfault on time.sleep
http://bugs.python.org/issue22985  closed by haypo

#22998: inspect.Signature and default arguments
http://bugs.python.org/issue22998  closed by yselivanov

#23000: More support for Visual Studio users on Windows?
http://bugs.python.org/issue23000  closed by SilentGhost

#23002: Trackpad scrolling in tkinter doesn't work on some laptops
http://bugs.python.org/issue23002  closed by zach.ware

#23005: typos on heapq doc
http://bugs.python.org/issue23005  closed by rhettinger

#23006: Improve the doc and indexing of adict.__missing__.
http://bugs.python.org/issue23006  closed by terry.reedy

#23007: Unnecessary big intermediate result in Lib/bisect.py
http://bugs.python.org/issue23007  closed by mark.dickinson

#23009: selectors.EpollSelector.select raises exception when nothing t
http://bugs.python.org/issue23009  closed by yselivanov

#23016: uncaught exception in lib/warnings.py when executed with pytho
http://bugs.python.org/issue23016  closed by serhiy.storchaka

#23022: heap-use-after-free in find_maxchar_surrogates
http://bugs.python.org/issue23022  closed by haypo

#23024: Python Compile Error on Mac os X ld: unknown option: -export-d
http://bugs.python.org/issue23024  closed by berker.peksag

#23032: 2.7 OS X installer builds fail building OpenSSL on OS X 10.4 /
http://bugs.python.org/issue23032  closed by ned.deily

#23036: Crash Error?
http://bugs.python.org/issue23036  closed by haypo

#23037: cpu_count() unreliable on Windows
http://bugs.python.org/issue23037  closed by haypo

#23038: #python.web irc channel is dead
http://bugs.python.org/issue23038  closed by python-dev

#23039: File name restriction on Windows
http://bugs.python.org/issue23039  closed by tim.golden

#1218234: inspect.getsource doesn't update when a module is reloaded
http://bugs.python.org/issue1218234  closed by yselivanov

#1425127: os.remove OSError: [Errno 13] Permission denied
http://bugs.python.org/issue1425127  closed by terry.reedy
Bruno Cauet | 10 Dec 17:59 2014
Picon

Python 2.x and 3.x use survey, 2014 edition

Hi all,
Last year a survey was conducted on python 2 and 3 usage.
Here is the 2014 edition, slightly updated (from 9 to 11 questions).
It should not take you more than 1 minute to fill. I would be pleased if you took that time.

I'll publish the results around the end of the year.


Thank you
Bruno
<div><div dir="ltr">
<div>
<div>
<div>
<div>Hi all,<br>
</div>Last year a survey was conducted on python 2 and 3 usage.<br>
</div>Here is the 2014 edition, slightly updated (from 9 to 11 questions).<br>It should not take you more than 1 minute to fill. I would be pleased if you took that time.<br><br>
</div>
<div>Here's the url: <a href="http://goo.gl/forms/tDTcm8UzB3">http://goo.gl/forms/tDTcm8UzB3</a><br>
</div>
<div></div>I'll publish the results around the end of the year.<br><br>
</div>
<div>Last year results: <a href="https://wiki.python.org/moin/2.x-vs-3.x-survey">https://wiki.python.org/moin/2.x-vs-3.x-survey</a><br>
</div>
<div><br></div>Thank you<br>Bruno<br>
</div></div>

Gmane