Steve Dower | 26 Sep 20:01 2014
Picon

Microsoft Visual C++ Compiler for Python 2.7

Hi all,

(This is advance notice since people on this list will be interested. Official announcements are coming
when setuptools makes their next release.)

Microsoft has released a compiler package targeting Python 2.7 (i.e. VC9). We've produced this package to
help library developers build wheels for Windows, but also to help users unblock themselves when they
need to build C extensions themselves.

The Microsoft Visual C++ Compiler for Python 2.7 is available from: http://aka.ms/vcpython27 

This package contains all the tools and headers required to build C extension modules for Python 2.7 32-bit
and 64-bit (note that some extension modules require 3rd party dependencies such as OpenSSL or libxml2
that are not included). Other versions of Python built with Visual C++ 2008 are also supported.

You can install the package without requiring administrative privileges and, with the latest version of
setuptools (when it releases), use tools such as pip, wheel, or a setup.py file to produce binaries on Windows.

Unfortunately, this package isn't necessarily going to help with building CPython 2.7 itself, as the
build process is complicated and Visual Studio 2008 is practically required. However, as most people
aren't building CPython on Windows, this isn't a huge issue. This compiler package should be sufficient
for most extension modules.

I should also point out that VC9 is no longer supported by Microsoft. This means there won't be any
improvements or bug fixes coming, and there's no official support offered. Feel free to contact me
directly <steve.dower <at> microsoft.com> if there are issues with the package.

Cheers,
Steve

(Continue reading)

Python tracker | 26 Sep 18:07 2014

Summary of Python tracker Issues


ACTIVITY SUMMARY (2014-09-19 - 2014-09-26)
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    4677 (+15)
  closed 29587 (+43)
  total  34264 (+58)

Open issues with patches: 2197 

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

#22444: Floor divide should return int
http://bugs.python.org/issue22444  opened by belopolsky

#22445: Memoryviews require more strict contiguous checks then necessa
http://bugs.python.org/issue22445  opened by seberg

#22449: SSLContext.load_verify_locations behavior on Windows and OSX
http://bugs.python.org/issue22449  opened by christian.heimes

#22450: urllib doesn't put Accept: */* in the headers
http://bugs.python.org/issue22450  opened by rhettinger

#22452: addTypeEqualityFunc is not used in assertListEqual
(Continue reading)

Donald Stufft | 26 Sep 15:57 2014

Re: 3.5 release schedule PEP


On Sep 26, 2014, at 9:53 AM, Paul Moore <p.f.moore <at> gmail.com> wrote:

On 26 September 2014 14:31, Donald Stufft <donald <at> stufft.io> wrote:
Yea, I think we throw an error when you use —user inside a virtual
   environment.

So if --user became the default, what would happen? I'd like pip
inside a virtualenv to install into the environment without needing a
--system flag. Is that the intention?

Paul

default = “—user” if not running_inside_virtualenv() else “—system"

---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

<div>
<br class=""><div><blockquote type="cite" class="">
<div class="">On Sep 26, 2014, at 9:53 AM, Paul Moore &lt;<a href="mailto:p.f.moore <at> gmail.com" class="">p.f.moore <at> gmail.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline"><div class="">On 26 September 2014 14:31, Donald Stufft &lt;<a href="mailto:donald <at> stufft.io" class="">donald <at> stufft.io</a>&gt; wrote:<br class=""><blockquote type="cite" class="">Yea, I think we throw an error when you use &mdash;user inside a virtual<br class=""> &nbsp;&nbsp;&nbsp;environment.<br class="">
</blockquote>
<br class="">So if --user became the default, what would happen? I'd like pip<br class="">inside a virtualenv to install into the environment without needing a<br class="">--system flag. Is that the intention?<br class=""><br class="">Paul<br class="">
</div>
</blockquote></div>
<div class=""><br class=""></div>
<div class="">default = &ldquo;&mdash;user&rdquo; if not running_inside_virtualenv() else &ldquo;&mdash;system"</div>
<div class=""><br class=""></div>
<div class="">
<div class=""><div class="">
<div class="">---</div>
<div class="">Donald Stufft</div>
<div class="">PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA</div>
</div></div>
</div>
<br class="">
</div>
Bob Hanson | 25 Sep 22:00 2014

Critical bash vulnerability CVE-2014-6271 may affect Python on *n*x and OSX

Critical bash vulnerability CVE-2014-6271 may affect Python on
*n*x and OSX:

<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271>

<http://arstechnica.com/security/2014/09/bug-in-bash-shell-creates-big-security-hole-on-anything-with-nix-in-it/>

<http://lcamtuf.blogspot.com/2014/09/quick-notes-about-bash-bug-its-impact.html>

<http://www.openwall.com/lists/oss-security/2014/09/24/17>

Also see <news:gmane.comp.security.fulldisclosure> for thread on
same being started today.

--Bob Hanson

Mike Miller | 24 Sep 15:16 2014
Picon

Re: 3.5 release schedule PEP

On 09/24/2014 10:00 PM, Nick Coghlan <ncoghlan <at> gmail.com> wrote:
> Subject: Re: [Python-Dev] 3.5 release schedule PEP
>
> On 24 Sep 2014 15:15, "Tim Golden" <mail <at> timgolden.me.uk> wrote:
>  >
>  > On 23/09/2014 18:05, Steve Dower wrote:
>  >> I'm also considering/experimenting with installing into "Program
>  >> Files" by default, but I suspect that isn't going to work out yet.
>  >
>  > I'd like to see that go forward: I think it's increasingly difficult to
> justify Python's position at c:\pythonxx. But it does run the risk of
>  > breaking All The Things.
>
> It might be better to offer that as a supported option in 3.5, and then make it
> the default in 3.6.
>
> That will offer a couple of years to work out the issues, rather than a few months.

Hi all,

ProgramFiles was the default in Python 1.X.

It has been a supported option for just shy of 15 years on 2.X...  most if not 
all the bugs (setuptools) were fixed a decade ago, and right now thousands, if 
not millions of people are running it under Program Files right now.  I can 
vouch for several thousand because a company I work for distributes Python and 
pip there for its customers all around the world w/o issue.

I've never once encountered a bug due to install to ProgramFiles, or heard of 
anyone who has, and have been using Python for everything since the year 2000. 
If any rare bugs happen to surface, they can likely be fixed or replaced with a 
line of code, or worked around by installing elsewhere.

The potential existence of such bugs isn't enough reason to stay stuck in 1990 
while leaving users vulnerable to tampering attacks for another few years.

-Mike
Carol Willing | 23 Sep 15:56 2014

Python 3.4.2rc1 Mac OS X

To all who contributed to Mac OS X improvements:

Thank you!

I downloaded and installed last night on Mavericks 10.9. It was quick, straightforward, and completed in seconds. For contrast, I talked several new users at an Intro to Python workshop this past weekend how to install 3.4.1; it took about 5 minutes to guide each user through installing 3.4.1. The new 3.4.2rc1 installer is a *big* improvement.

It also seems as if launching the interpreter from the command line is also faster now :)

--
Carol Willing
Developer | Willing Consulting
+1 760 456 9366 | https://willingconsulting.com
<div>
    To all who contributed to Mac OS X improvements:<br><br>
    Thank you!<br><br>
    I downloaded and installed last night on Mavericks 10.9. It was
    quick, straightforward, and completed in seconds. For contrast, I
    talked several new users at an Intro to Python workshop this past
    weekend how to install 3.4.1; it took about 5 minutes to guide each
    user through installing 3.4.1. The new 3.4.2rc1 installer is a *big*
    improvement.<br><br>
    It also seems as if launching the interpreter from the command line
    is also faster now :)<br><br><div class="moz-signature">-- <br>
        Carol Willing <br>
        Developer | Willing Consulting <br>
        +1 760 456 9366 | <a class="moz-txt-link-freetext" href="https://willingconsulting.com">https://willingconsulting.com</a> <br>
</div>
  </div>
Alex Gaynor | 19 Sep 18:53 2014
Picon

PEP476: Enabling certificate validation by default

Hi all,

I've just updated the PEP to reflect the API suggestions from Nick, and the
fact that the necessary changes to urllib were landed.

I think this is ready for pronouncement, Guido?

Cheers,
Alex

Python tracker | 19 Sep 18:07 2014

Summary of Python tracker Issues


ACTIVITY SUMMARY (2014-09-12 - 2014-09-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    4662 (+10)
  closed 29544 (+35)
  total  34206 (+45)

Open issues with patches: 2197 

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

#22166: test_codecs leaks references
http://bugs.python.org/issue22166  reopened by haypo

#22395: test_pathlib error for complex symlinks on Windows
http://bugs.python.org/issue22395  opened by jfoo

#22396: AIX posix_fadvise and posix_fallocate
http://bugs.python.org/issue22396  opened by David.Edelsohn

#22397: test_socket failure on AIX
http://bugs.python.org/issue22397  opened by David.Edelsohn

#22401: argparse: 'resolve' conflict handler damages the actions of th
http://bugs.python.org/issue22401  opened by paul.j3

#22406: uu-codec trailing garbage workaround is Python 2 code
http://bugs.python.org/issue22406  opened by vadmium

#22407: re.LOCALE is nonsensical for Unicode
http://bugs.python.org/issue22407  opened by serhiy.storchaka

#22408: Tkinter doesn't handle Unicode key events on Windows
http://bugs.python.org/issue22408  opened by Drekin

#22410: Locale dependent regexps on different locales
http://bugs.python.org/issue22410  opened by serhiy.storchaka

#22411: Embedding Python on Windows
http://bugs.python.org/issue22411  opened by Joakim.Karlsson

#22413: Bizarre StringIO(newline="\r\n") translation
http://bugs.python.org/issue22413  opened by vadmium

#22415: Fix re debugging output
http://bugs.python.org/issue22415  opened by serhiy.storchaka

#22417: PEP 476: verify HTTPS certificates by default
http://bugs.python.org/issue22417  opened by ncoghlan

#22418: ipaddress.py new IPv6 Method for Solicited Multicast Address
http://bugs.python.org/issue22418  opened by Jason.Nadeau

#22420: Use print(file=sys.stderr) instead of sys.stderr.write() in ID
http://bugs.python.org/issue22420  opened by serhiy.storchaka

#22422: IDLE closes all when in dropdown menu
http://bugs.python.org/issue22422  opened by mandolout

#22423: Errors in printing exceptions raised in a thread
http://bugs.python.org/issue22423  opened by serhiy.storchaka

#22425: 2to3 import fixer writes dotted_as_names into import_as_names
http://bugs.python.org/issue22425  opened by simonmweber

#22426: strptime accepts the wrong '2010-06-01 MSK' string but rejects
http://bugs.python.org/issue22426  opened by akira

#22427: TemporaryDirectory attempts to clean up twice
http://bugs.python.org/issue22427  opened by oconnor663

#22428: asyncio: KeyboardInterrupt inside a coroutine causes Attribute
http://bugs.python.org/issue22428  opened by oconnor663

#22429: asyncio: pending call to loop.stop() if a coroutine raises a B
http://bugs.python.org/issue22429  opened by haypo

#22430: Build failure if configure flags --prefix or --exec-prefix is 
http://bugs.python.org/issue22430  opened by diff.812

#22431: Change format of test runner output
http://bugs.python.org/issue22431  opened by googol

#22433: Argparse considers unknown optional arguments with spaces as a
http://bugs.python.org/issue22433  opened by DenKoren

#22434: Use named constants internally in the re module
http://bugs.python.org/issue22434  opened by serhiy.storchaka

#22435: socketserver.TCPSocket leaks socket to garbage collector if se
http://bugs.python.org/issue22435  opened by vadmium

#22437: re module: number of named groups is limited to 100 max
http://bugs.python.org/issue22437  opened by yselivanov

#22438: eventlet broke by python 2.7.x
http://bugs.python.org/issue22438  opened by alex

#22440: Setting SSLContext object's check_hostname manually might acci
http://bugs.python.org/issue22440  opened by orsenthil

#22441: Not all attributes of the console for a subprocess with creati
http://bugs.python.org/issue22441  opened by Sworddragon

#22442: subprocess.check_call hangs on large PIPEd data.
http://bugs.python.org/issue22442  opened by juj

#22443: read(1) blocks on unflushed output
http://bugs.python.org/issue22443  opened by Sworddragon

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

#22441: Not all attributes of the console for a subprocess with creati
http://bugs.python.org/issue22441

#22435: socketserver.TCPSocket leaks socket to garbage collector if se
http://bugs.python.org/issue22435

#22429: asyncio: pending call to loop.stop() if a coroutine raises a B
http://bugs.python.org/issue22429

#22425: 2to3 import fixer writes dotted_as_names into import_as_names
http://bugs.python.org/issue22425

#22423: Errors in printing exceptions raised in a thread
http://bugs.python.org/issue22423

#22422: IDLE closes all when in dropdown menu
http://bugs.python.org/issue22422

#22411: Embedding Python on Windows
http://bugs.python.org/issue22411

#22397: test_socket failure on AIX
http://bugs.python.org/issue22397

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

#22393: multiprocessing.Pool shouldn't hang forever if a worker proces
http://bugs.python.org/issue22393

#22392: Clarify documentation of __getinitargs__
http://bugs.python.org/issue22392

#22370: pathlib OS detection
http://bugs.python.org/issue22370

#22367: Please add F_OFD_SETLK, etc support to fcntl.lockf
http://bugs.python.org/issue22367

#22357: inspect module documentation makes no reference to __qualname_
http://bugs.python.org/issue22357

#22356: mention explicitly that stdlib assumes gmtime(0) epoch is 1970
http://bugs.python.org/issue22356

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

#22437: re module: number of named groups is limited to 100 max
http://bugs.python.org/issue22437

#22434: Use named constants internally in the re module
http://bugs.python.org/issue22434

#22433: Argparse considers unknown optional arguments with spaces as a
http://bugs.python.org/issue22433

#22427: TemporaryDirectory attempts to clean up twice
http://bugs.python.org/issue22427

#22423: Errors in printing exceptions raised in a thread
http://bugs.python.org/issue22423

#22420: Use print(file=sys.stderr) instead of sys.stderr.write() in ID
http://bugs.python.org/issue22420

#22418: ipaddress.py new IPv6 Method for Solicited Multicast Address
http://bugs.python.org/issue22418

#22417: PEP 476: verify HTTPS certificates by default
http://bugs.python.org/issue22417

#22415: Fix re debugging output
http://bugs.python.org/issue22415

#22410: Locale dependent regexps on different locales
http://bugs.python.org/issue22410

#22407: re.LOCALE is nonsensical for Unicode
http://bugs.python.org/issue22407

#22397: test_socket failure on AIX
http://bugs.python.org/issue22397

#22396: AIX posix_fadvise and posix_fallocate
http://bugs.python.org/issue22396

#22395: test_pathlib error for complex symlinks on Windows
http://bugs.python.org/issue22395

#22393: multiprocessing.Pool shouldn't hang forever if a worker proces
http://bugs.python.org/issue22393

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

#22410: Locale dependent regexps on different locales
http://bugs.python.org/issue22410   8 msgs

#22427: TemporaryDirectory attempts to clean up twice
http://bugs.python.org/issue22427   8 msgs

#22377: %Z in strptime doesn't match EST and others
http://bugs.python.org/issue22377   6 msgs

#22426: strptime accepts the wrong '2010-06-01 MSK' string but rejects
http://bugs.python.org/issue22426   6 msgs

#22434: Use named constants internally in the re module
http://bugs.python.org/issue22434   6 msgs

#21998: asyncio: a new self-pipe should be created in the child proces
http://bugs.python.org/issue21998   5 msgs

#22379: Empty exception message of str.join
http://bugs.python.org/issue22379   5 msgs

#22430: Build failure if configure flags --prefix or --exec-prefix is 
http://bugs.python.org/issue22430   5 msgs

#22437: re module: number of named groups is limited to 100 max
http://bugs.python.org/issue22437   5 msgs

#22253: ConfigParser does not handle files without sections
http://bugs.python.org/issue22253   4 msgs

Issues closed (32)
==================

#4180: warnings.simplefilter("always") does not make warnings always 
http://bugs.python.org/issue4180  closed by pitrou

#11471: If without else generates redundant jump
http://bugs.python.org/issue11471  closed by python-dev

#14824: reprlib documentation references string module
http://bugs.python.org/issue14824  closed by berker.peksag

#16827: Remove the relatively advanced content from section 2 in tutor
http://bugs.python.org/issue16827  closed by orsenthil

#18159: ConfigParser getters not available on SectionProxy
http://bugs.python.org/issue18159  closed by python-dev

#20537: logging exc_info parameter should accept exception instances
http://bugs.python.org/issue20537  closed by python-dev

#20678: re does not allow back references in {} matching operator
http://bugs.python.org/issue20678  closed by serhiy.storchaka

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

#21391: shutil uses both os.path.abspath and an 'import from' of abspa
http://bugs.python.org/issue21391  closed by berker.peksag

#21706: Add base for enumerations (Functional API)
http://bugs.python.org/issue21706  closed by python-dev

#21738: Enum docs claim replacing __new__ is not possible
http://bugs.python.org/issue21738  closed by ethan.furman

#22043: Use a monotonic clock to compute timeouts
http://bugs.python.org/issue22043  closed by haypo

#22168: Turtle Graphics RawTurtle problem
http://bugs.python.org/issue22168  closed by ned.deily

#22220: Ttk extensions test failure
http://bugs.python.org/issue22220  closed by serhiy.storchaka

#22326: tempfile.TemporaryFile fails on NFS v4 filesystems
http://bugs.python.org/issue22326  closed by haypo

#22339: Incorrect behavior when subclassing enum.Enum
http://bugs.python.org/issue22339  closed by ethan.furman

#22366: urllib.request.urlopen shoudl take a "context" (SSLContext) ar
http://bugs.python.org/issue22366  closed by orsenthil

#22378: SO_MARK support for Linux
http://bugs.python.org/issue22378  closed by neologix

#22384: Tk.report_callback_exception kills process when run with pytho
http://bugs.python.org/issue22384  closed by serhiy.storchaka

#22398: Tools/msi enhancements for 2.7
http://bugs.python.org/issue22398  closed by steve.dower

#22399: Doc: missing anchor for dict in library/functions.html
http://bugs.python.org/issue22399  closed by georg.brandl

#22400: Stable API broken on Windows for PyUnicode_*
http://bugs.python.org/issue22400  closed by jkloth

#22409: namedtuples bug between 3.3.2 and 3.4.1
http://bugs.python.org/issue22409  closed by binnisb

#22412: Towards an asyncio-enabled command line
http://bugs.python.org/issue22412  closed by gvanrossum

#22414: I'd like to add you to my professional network on LinkedIn
http://bugs.python.org/issue22414  closed by georg.brandl

#22416: Pickling compiled re patterns
http://bugs.python.org/issue22416  closed by gvanrossum

#22419: wsgiref request length
http://bugs.python.org/issue22419  closed by orsenthil

#22421: securing pydoc server
http://bugs.python.org/issue22421  closed by orsenthil

#22424: make: *** [Objects/unicodeobject.o] Error 1
http://bugs.python.org/issue22424  closed by haypo

#22432: function crypt not working on OSX
http://bugs.python.org/issue22432  closed by r.david.murray

#22436: logging geteffectivelevel does not document its return value
http://bugs.python.org/issue22436  closed by python-dev

#22439: subprocess.PIPE.stdin.flush() causes to hang while subprocess.
http://bugs.python.org/issue22439  closed by r.david.murray
Barry Warsaw | 19 Sep 16:31 2014

3.5 release schedule PEP

Hi Larry,

I think we need a Python 3.5 Release Schedule PEP.

Cheers,
-Barry
Hi Larry,

I think we need a Python 3.5 Release Schedule PEP.

Cheers,
-Barry
Bohuslav Kabrda | 19 Sep 09:31 2014
Picon

PEP 394 - Clarification of what "python" command should invoke

Hi,
as Fedora is getting closer to having python3 as a default, I'm being more and more asked by Fedora
users/contributors what'll "/usr/bin/python" invoke when we achieve this (Fedora 22 hopefully). So I
was rereading PEP 394 and I think I need a small clarification regarding two points in the PEP:
- "for the time being, all distributions should ensure that python refers to the same target as python2."
- "Similarly, the more general python command should be installed whenever any version of Python is
installed and should invoke the same version of Python as either python2 or python3."

The important word in the second point is, I think, *whenever*. Trying to apply these two points to Fedora 22
situation, I can think of several approaches:
- /usr/bin/python will always point to python3 (seems to go against the first mentioned PEP recommendation)
- /usr/bin/python will always point to python2 (seems to go against the second mentioned PEP
recommendation, there is no /usr/bin/python if python2 is not installed)
- /usr/bin/python will point to python3 if python2 is not installed, else it will point to python2
(inconsistent; also the user doesn't know he's running and what libraries he'll be able to import - the
system can have different sets of python2-* and python3-* extension modules installed)
- there will be no /usr/bin/python (goes against PEP and seems just wrong)

I'd really appreciate upstream guidance and perhaps a PEP clarification for distributions that ship both
python2 and python3, but can live without python2 (and are not Arch :)).

Thanks a lot!

--

-- 
Regards,
Slavek Kabrda
Ben Hoyt | 19 Sep 03:30 2014
Picon

Adding numbering to PEP 20, the Zen of Python

I was emailing someone today about implementing something (for PEP
471, as it happens) and wanted to link to the Zen of Python [1] and
note a particular clause (in this case "If the implementation is hard
to explain, it's a bad idea."). However, there are no clause numbers,
so you can't refer to specific phrases.

I know it's a short enough document that it probably doesn't matter.
And maybe numbering them would make it less Zen. Would be handy in
code reviews and the like, for example: "Not very Pythonic. See PEP 20
point 5." Is it just my pedantic self, or have others wanted to do
this too?

[1] http://legacy.python.org/dev/peps/pep-0020/

-Ben

Gmane