Re: [Python-Dev] updating ensurepip to include wheel

2015-08-05 Thread Nick Coghlan
On 6 August 2015 at 09:29, Victor Stinner wrote: > Le 5 août 2015 17:12, "Nick Coghlan" a écrit : >> A hard dependency on wheel wouldn't fit into the same category - when >> folks are using a build pipeline to minimise the installation >> footprint on production systems, the wheel package itself

Re: [Python-Dev] updating ensurepip to include wheel

2015-08-05 Thread Victor Stinner
Le 5 août 2015 17:12, "Nick Coghlan" a écrit : > A hard dependency on wheel wouldn't fit into the same category - when > folks are using a build pipeline to minimise the installation > footprint on production systems, the wheel package itself has no > business being installed anywhere other than d

Re: [Python-Dev] PEP 447 (type.__getdescriptor__)

2015-08-05 Thread Ronald Oussoren
> On 26 Jul 2015, at 14:18, Mark Shannon wrote: > >> On 26 July 2015 at 10:41 Ronald Oussoren wrote: >> >> >> >>> On 26 Jul 2015, at 09:14, Ronald Oussoren wrote: >>> >>> On 25 Jul 2015, at 17:39, Mark Shannon >>> > wrote: Hi, On 22/07/15

Re: [Python-Dev] who must makes FOR loop quicker

2015-08-05 Thread Steven D'Aprano
On Wed, Aug 05, 2015 at 06:25:07PM +0300, John Doe wrote: > To pass by reference or by copy of - that is the question from hamlet. > ("hamlet" - a community of people smaller than a village python3.4-linux64) [snip question] John, you have already posted this same question to the tutor list, whe

Re: [Python-Dev] who must makes FOR loop quicker

2015-08-05 Thread Joe Jevnik
The iterator is not revaluated, instead, it is constructing a single iterator, in this case a list_iterator. The list_iterator looks at the underyling list to know how to iterate so when you mutate the underlying list, the list_iterator sees that. This does not mee the expression used to generate t

Re: [Python-Dev] who must makes FOR loop quicker

2015-08-05 Thread Chris Angelico
On Thu, Aug 6, 2015 at 1:25 AM, John Doe wrote: > To pass by reference or by copy of - that is the question from hamlet. > ("hamlet" - a community of people smaller than a village python3.4-linux64) > > xlist = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] > i = 0 > for x in xlist: > print(xlist) > p

[Python-Dev] who must makes FOR loop quicker

2015-08-05 Thread John Doe
To pass by reference or by copy of - that is the question from hamlet. ("hamlet" - a community of people smaller than a village python3.4-linux64) xlist = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i = 0 for x in xlist: print(xlist) print("\txlist[%d] = %d" % (i, x)) if x%2 == 0 : xl

Re: [Python-Dev] updating ensurepip to include wheel

2015-08-05 Thread Nick Coghlan
On 6 August 2015 at 00:10, Donald Stufft wrote: > Just a small correction, in general setuptools does blur that line, but > for pip itself setuptools is completely a build time dependency which > isn’t *technically* any different than our dependency on wheel. We work > perfectly fine without it in

Re: [Python-Dev] updating ensurepip to include wheel

2015-08-05 Thread Donald Stufft
On August 5, 2015 at 10:01:50 AM, Nick Coghlan (ncogh...@gmail.com) wrote: > > setuptools is in the situation where because it also includes > pkg_resources, it blurs the line between "build time" and "run time" > dependency. While it would be nice to split that and have a "just > pkg_resources" ru

Re: [Python-Dev] updating ensurepip to include wheel

2015-08-05 Thread Nick Coghlan
On 3 August 2015 at 11:06, Donald Stufft wrote: > > On August 2, 2015 at 8:47:46 PM, Robert Collins (robe...@robertcollins.net) > wrote: >> So, pip 7.0 depends on the wheel module for its automatic wheel >> building, and installing pip from get-pip.py, or the bundled copy in >> virtualenvs will a