Re: [Python-Dev] Why does PEP 7/8 explicitly suggest 2 spaces after a period?

2016-05-20 Thread Philip Jenvey
So is line breaks before or after operators . -- Philip Jenvey > On May 20, 2016, at 9:46 AM, Guido van Rossum wrote: > > ALso, in case anyone reading this didn't realize, this is a classic > internet debate that has been going on for decades (just not on > python-dev). Jus

Re: [Python-Dev] File system path PEP, 3rd draft

2016-05-13 Thread Philip Jenvey
> On May 13, 2016, at 11:37 AM, Brett Cannon wrote: > > Biggest changes since the second draft: > Resolve __fspath__() from the type, not the instance (for Guido) > if (PyObject_HasAttrString(path->ob_type, "__fspath__")) { > return PyObject_CallMethodObjArgs(path->ob_type,

Re: [Python-Dev] Bytes path

2016-04-20 Thread Philip Jenvey
://bugs.python.org/issue26754 <http://bugs.python.org/issue26754> http://bugs.python.org/issue26800 <http://bugs.python.org/issue26800> -- Philip Jenvey > On Apr 14, 2016, at 3:29 AM, Victor Stinner wrote: > > IMHO it's more a side effect of the implementation than a delibera

Re: [Python-Dev] speed.python.org (was: 2.7 is here until 2020, please don't call it a waste.)

2015-06-24 Thread Philip Jenvey
hg.python.org/benchmarks for CPython benchmarks, but it looks like > pypy/benchmarks has the necessary runner, so I suppose we'll be using > it for now. Is there interest from both sides to merge those > repositories? PyPy’s is a more extensive suite but it does not fully support Pyt

[Python-Dev] PyPy3 2.4.0 released

2014-10-21 Thread Philip Jenvey
= PyPy3 2.4 - Snow White = We're pleased to announce PyPy3 2.4, which contains significant performance enhancements and bug fixes. You can download the PyPy3 2.4.0 release here: http://pypy.org/do

[Python-Dev] PyPy3 2.3.1 released

2014-06-20 Thread Philip Jenvey
ypy documentation`: http://doc.pypy.org/en/latest/getting-started.html#installing-using-virtualenv .. _`virtualenv`: http://www.virtualenv.org/en/latest/ .. _`installation schemes`: http://doc.pypy.org/en/latest/getting-started.html#installing-pypy Cheers, the Py

Re: [Python-Dev] Python3 "complexity"

2014-01-10 Thread Philip Jenvey
other non-Latin > characters long before the Unicode Consortium existed. Really? Because PEP 383 doesn't support and discourages the use of some of these codecs as a locale. -- Philip Jenvey ___ Python-Dev mailing list Python-Dev@python.org ht

Re: [Python-Dev] Is pygettext.py deprecated?

2013-11-11 Thread Philip Jenvey
xgettext. Babel can extract gettext messages from Python code and also has has plugins for extracting from various popular Python templating languages. It's also easier to setup against Python projects using distutils/setuptools. -- Philip Jenvey

Re: [Python-Dev] PEP 428: Pathlib -> stat caching

2013-09-17 Thread Philip Jenvey
get_mtime(), etc.) to > cache the value too. It's not only about stat(). With the proposed rich stat object the convenience methods living on Path wouldn't result in much added convenience: p.is_dir() vs p.stat().is_dir() Why not move these methods from Path to a rich stat obj and not cach

[Python-Dev] PyPy3 2.1 beta 1 released

2013-07-30 Thread Philip Jenvey
PyPy3 2.1 beta 1 We're pleased to announce the first beta of the upcoming 2.1 release of PyPy3. This is the first release of PyPy which targets Python 3 (3.2.3) compatibility. We would like to thank all of the people who donated_ to the `py3k proposal`_ for suppo

Re: [Python-Dev] PEP 435 - requesting pronouncement

2013-05-05 Thread Philip Jenvey
des a functional API for free: import types types.new_class('Season', (Enum,), dict(values='spring summer autumn')) It's not convenient, but that doesn't matter because this usage is rare anyway. Certainly much rarer than declarations of auto-numbered enums. --

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-30 Thread Philip Jenvey
f the Solar System''' >> >> Not sure I like that. Ah well. > > The problem with this and similar proposals is that it puts things > inside string quotes that belong outside them. So does the convenience API outlined in the PEP, so this is just an alternative to t

Re: [Python-Dev] Enumeration item arguments?

2013-04-29 Thread Philip Jenvey
ses, like documentation, e.g.: class Protocol(Enum): HOPOPT = 0, "IPv6 Hop-by-Hop Option" ICMP = 1, "Internet Control Message" IGMP = 2, "Internet Group Management" @property def value(self): return self._value[0] @property def description(self): re

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-27 Thread Philip Jenvey
ed duplication of the name: class Point(namedtuple('Point', 'x y z')): """Planet location with Sun as etc""" (Raymond's even endorsed the former): http://bugs.python.org/msg111722 -- Philip Jenvey ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-23 Thread Philip Jenvey
Protocol(Enum): HOPOPT = 0, "IPv6 Hop-by-Hop Option" ICMP = 1, "Internet Control Message" IGMP = 2, "Internet Group Management" @property def value(self): return self._value[0] @property def description(self): return self._value[1] -- Philip

Re: [Python-Dev] A new webpage promoting Compiler technology for CPython

2013-02-15 Thread Philip Jenvey
o make Python code faster. PyPy is indeed a work in progress in this area, but that doesn't necessarily preclude it from being included. -- Philip Jenvey ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] cpython: utilize yield from

2012-10-01 Thread Philip Jenvey
On Oct 1, 2012, at 2:32 PM, Serhiy Storchaka wrote: > On 01.10.12 22:54, philip.jenvey wrote: >> http://hg.python.org/cpython/rev/fb90e2ff95b7 >> changeset: 79378:fb90e2ff95b7 >> user:Philip Jenvey >> date:Mon Oct 01 12:53:43 2012 -0700 >>

Re: [Python-Dev] making the import machinery explicit

2012-04-17 Thread Philip Jenvey
er_cache instead of > NullImporter): no finder is available for an entry on sys.path when None is > found. Isn't it more explicit to cache the NullImporter instead of None? -- Philip Jenvey ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] folding cElementTree behind ElementTree in 3.3

2012-02-15 Thread Philip Jenvey
precationWarning or warnings.simplefilter('error', DeprecationWarning)) -- Philip Jenvey ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PyPy 1.7 - widening the sweet spot

2011-11-23 Thread Philip Jenvey
On Nov 22, 2011, at 12:43 PM, Amaury Forgeot d'Arc wrote: > 2011/11/22 Philip Jenvey > One reason to target 3.2 for now is it's not a moving target. There's > overhead involved in managing modifications to the pure python standard lib > needed for PyPy, tracking 3.

Re: [Python-Dev] PyPy 1.7 - widening the sweet spot

2011-11-22 Thread Philip Jenvey
to target 3.2 for now is it's not a moving target. There's overhead involved in managing modifications to the pure python standard lib needed for PyPy, tracking 3.3 changes as they happen as well exacerbates this. The plans to split the standard lib into its own repo separate from core CPyt

Re: [Python-Dev] Hosting the Jython hg repo

2011-04-14 Thread Philip Jenvey
tain the Jython repo myself but if Georg or Philip > accepts to do it it's fine. > >> One option would be to grant a Jython developer >> control to account management - preferably a single person, who would >> then also approve/apply changes to the hooks. > > +1. Let&

Re: [Python-Dev] Hosting the Jython hg repo

2011-04-10 Thread Philip Jenvey
accept the load. One option would be to grant a Jython developer > control to account management - preferably a single person, who would > then also approve/apply changes to the hooks. That could be me. If this would mean creating an account for me on python.org

[Python-Dev] Hosting the Jython hg repo

2011-04-10 Thread Philip Jenvey
turn we like the idea of reciprocating commit rights to Jython back to cpython committers. -- Philip Jenvey ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/

Re: [Python-Dev] Are PyCFunctions supposed to invisibly consume self when used as a method?

2010-06-12 Thread Philip Jenvey
ork just as well. > > I'm going to make this my first request for what to change in Py4K. =) +1 on changing this, it's annoying for alternate implementations. They oftentimes implement functions in pure Python whereas user code might be ex

Re: [Python-Dev] What's New text on future maintenance

2010-05-07 Thread Philip Jenvey
o "default" (or "d") before running Python. Python code can also re-enable them by calling ``warnings.simplefilter('default')``. -- Philip Jenvey ___ Python-Dev mailing list Python-Dev@python.org http://mail.

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Philip Jenvey
rtualenv can create a "python" script that simply adds --prefix and > forwards all the arguments to the real python executable. > Or am I missing something? It couldn't be a shell script, as they wouldn't work as shebang line i

Re: [Python-Dev] Unladen cPickle speedups in 2.7 & 3.1

2010-01-09 Thread Philip Jenvey
ng list that not everything has been done yet. They've documented their upstream patches here: http://code.google.com/p/unladen-swallow/wiki/UpstreamPatches -- Philip Jenvey ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FORTHE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Philip Jenvey
ad of nicely reporting them and submitting patches on SourceForge ;-) FYI Python (Jython) is already used in production of the F-35. There was a talk @ PyCon '08 about it: http://us.pycon.org/2008/conference/schedule/event/27/ http://www.youtube.com/watch?v=zgE55z_RNgQ -- Phi