[Python-Dev] [RELEASE] Python 3.4.2 is now available

2014-10-08 Thread Larry Hastings



On behalf of the Python development community and the Python 3.4 release 
team, I'm pleased to announce the availability of Python 3.4.2. Python 
3.4.2 has many bugfixes and other small improvements over 3.4.1.  One 
new feature for Mac OS X users: the OS X installers are now distributed 
as signed installer package files compatible with the OS X Gatekeeper 
security feature.


You can download it here:

   https://www.python.org/download/releases/3.4.2


May the road rise up to meet you,


//arry/
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] shebang policy, and pip

2014-10-08 Thread Christian Tismer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Howdy,

this question is a bit about general policy which is not yet
covered in the python recommendations:

I see projects which do check-ins like "get rid of shebang lines"
and they remove those lines from non-script sources.

It is not always clear to me what to do, so I tend to leave those
lines in per default, in order not to waste time thinking about it,
but well, today I was confronted with that.

Digging a bit deeper shows the following:

python docs:
No mention of shebang, but for Windows.
https://docs.python.org/3/search.html?q=shebang&check_keywords=yes&area=default
https://docs.python.org/3/using/windows.html?highlight=shebang

Google's python style guide also says when a shebang is needed, but
does not forbid it.

Pep 394 explains how to use shebang, but still nothing about not using it.
http://legacy.python.org/dev/peps/pep-0394/

So is there anything officially preferred, and should that go into pep 8?


Special case with pip
- --

I was looking through my installed packages and wondered quite
much about pip:

Pip has a shebang in the __init__ file, but no shebang in the
__main__ file.

I guess this is wrong and should be in the executable file,
which is __main__ .

cheers - Chris


- -- 
Christian Tismer :^)   tis...@stackless.com
Software Consulting  : http://www.stackless.com/
Karl-Liebknecht-Str. 121 : http://www.pydica.net/
14482 Potsdam: GPG key -> 0xFB7BEE0E
phone +49 173 24 18 776  fax +49 (30) 700143-0023
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUNQ8FAAoJEOcwEVD7e+4Of5MH/13YyXRzPVXfsLDbfe/CRkFF
ORVAPkRB90OaEmbLTvBXPhFlAgEwcQnpdO+tmqigvlORd0cSXQKIxoPOiqq601gs
XV56aREqBCT26XMaKTuoPdu4DaW+TkwyWSn70eq4U/P7YjF3ZlNt8IkA5mteM7an
ycRYMnknEaIvP/xpZdGp+v4pq5LA42LWAY1awnBk4eMP04uDowSmcuLELpZrmSCr
iMkw6wPUdZxGVtQNwSses0mh3DuaQuwrubhHMnLoOKn/lqRjckG2Ii2BIHlWy9lQ
5X3y8IdWPh7awio8xaibNqsWaP+0DT97g2H7QZf8YIG7/DkHL/iacSr7NAPBXXQ=
=IODc
-END PGP SIGNATURE-


___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [python-committers] [RELEASE] Python 3.4.2 is now available

2014-10-08 Thread Victor Stinner
2014-10-08 10:57 GMT+02:00 Larry Hastings :
> You can download it here:
>
> https://www.python.org/download/releases/3.4.2

This page  redirect me to
https://www.python.org/download/releases/3.4.1 Maybe some web servers
of the CDN don't contain the latest version. I guess that the issue
will quickly disappears.

Victor
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [python-committers] [RELEASE] Python 3.4.2 is now available

2014-10-08 Thread Mark Lawrence

On 08/10/2014 11:21, Victor Stinner wrote:

2014-10-08 10:57 GMT+02:00 Larry Hastings :

You can download it here:

https://www.python.org/download/releases/3.4.2


This page  redirect me to
https://www.python.org/download/releases/3.4.1 Maybe some web servers
of the CDN don't contain the latest version. I guess that the issue
will quickly disappears.

Victor



Further if you navigate from 3.4.1 to 3.4.2 it says "Python 3.4.2rc1 was 
released on October 8th, 2014.".  The download itself is correct.


Thanks as always to everybody who has contributed, another great piece 
of work.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] shebang policy, and pip

2014-10-08 Thread Donald Stufft

> On Oct 8, 2014, at 6:16 AM, Christian Tismer  wrote:
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
> 
> Howdy,
> 
> this question is a bit about general policy which is not yet
> covered in the python recommendations:
> 
> I see projects which do check-ins like "get rid of shebang lines"
> and they remove those lines from non-script sources.
> 
> It is not always clear to me what to do, so I tend to leave those
> lines in per default, in order not to waste time thinking about it,
> but well, today I was confronted with that.
> 
> Digging a bit deeper shows the following:
> 
> python docs:
> No mention of shebang, but for Windows.
> https://docs.python.org/3/search.html?q=shebang&check_keywords=yes&area=default
> https://docs.python.org/3/using/windows.html?highlight=shebang
> 
> Google's python style guide also says when a shebang is needed, but
> does not forbid it.
> 
> Pep 394 explains how to use shebang, but still nothing about not using it.
> http://legacy.python.org/dev/peps/pep-0394/
> 
> So is there anything officially preferred, and should that go into pep 8?

Some editors can use shebang lines to control syntax highlighting or linting
(mine for example will lint different for python2 vs python3 shebangs).

> 
> 
> Special case with pip
> - --
> 
> I was looking through my installed packages and wondered quite
> much about pip:
> 
> Pip has a shebang in the __init__ file, but no shebang in the
> __main__ file.
> 
> I guess this is wrong and should be in the executable file,
> which is __main__ .
> 

*puts on pip developer hat*

I’m guessing that comes from when pip used to be a single file and from before
we dropped support for Pythons that didn’t support python -m. It’s probably
nonsense cruft that’s just been left over and hadn’t been managed to be deleted
now.

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

___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [RELEASE] Python 3.4.2 is now available

2014-10-08 Thread Geoffrey Spear
It looks like the Download dropdown on python.org has a blank button
(when accessed from Windows) has an empty button that's supposed to be
for the 3.4.2 release by just links back to the current page; the 2.7
button is working fine.

On Wed, Oct 8, 2014 at 4:57 AM, Larry Hastings  wrote:
>
>
> On behalf of the Python development community and the Python 3.4 release
> team, I'm pleased to announce the availability of Python 3.4.2.   Python
> 3.4.2 has many bugfixes and other small improvements over 3.4.1.  One new
> feature for Mac OS X users: the OS X installers are now distributed as
> signed installer package files compatible with the OS X Gatekeeper security
> feature.
>
> You can download it here:
>
> https://www.python.org/download/releases/3.4.2
>
>
> May the road rise up to meet you,
>
>
> /arry
>
> ___
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/geoffspear%40gmail.com
>
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [RELEASE] Python 3.4.2 is now available

2014-10-08 Thread Ned Deily
In article 
,
 Geoffrey Spear  wrote:
> It looks like the Download dropdown on python.org has a blank button
> (when accessed from Windows) has an empty button that's supposed to be
> for the 3.4.2 release by just links back to the current page; the 2.7
> button is working fine.

https://github.com/python/pythondotorg/issues/167

-- 
 Ned Deily,
 n...@acm.org

___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [python-committers] [RELEASE] Python 3.4.2 is now available

2014-10-08 Thread Ned Deily
In article ,
 Mark Lawrence  wrote:
> On 08/10/2014 11:21, Victor Stinner wrote:
> > This page  redirect me to
> > https://www.python.org/download/releases/3.4.1 Maybe some web servers
> > of the CDN don't contain the latest version. I guess that the issue
> > will quickly disappears.
> Further if you navigate from 3.4.1 to 3.4.2 it says "Python 3.4.2rc1 was 
> released on October 8th, 2014.".  The download itself is correct.

Those two problems should be gone now.  Thanks.

-- 
 Ned Deily,
 n...@acm.org

___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [python-committers] [RELEASE] Python 3.4.2 is now available

2014-10-08 Thread Daniel Pimentel (d4n1)
Good news :)

2014-10-08 15:35 GMT-03:00 Ned Deily :

> In article ,
>  Mark Lawrence  wrote:
> > On 08/10/2014 11:21, Victor Stinner wrote:
> > > This page  redirect me to
> > > https://www.python.org/download/releases/3.4.1 Maybe some web servers
> > > of the CDN don't contain the latest version. I guess that the issue
> > > will quickly disappears.
> > Further if you navigate from 3.4.1 to 3.4.2 it says "Python 3.4.2rc1 was
> > released on October 8th, 2014.".  The download itself is correct.
>
> Those two problems should be gone now.  Thanks.
>
> --
>  Ned Deily,
>  n...@acm.org
>
> ___
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/d4n1%40member.fsf.org
>



-- 
Msc. Daniel Pimentel (d4n1 )
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] shebang policy, and pip

2014-10-08 Thread Donald Stufft

> On Oct 8, 2014, at 3:36 PM, Wes Turner  wrote:
> 
> 
> On Oct 8, 2014 7:20 AM, "Donald Stufft"  > wrote:
> >
> >
> > > On Oct 8, 2014, at 6:16 AM, Christian Tismer  > > > wrote:
> > >
> > >
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA512
> > >
> > > Howdy,
> > >
> > > this question is a bit about general policy which is not yet
> > > covered in the python recommendations:
> > >
> > > I see projects which do check-ins like "get rid of shebang lines"
> > > and they remove those lines from non-script sources.
> > >
> > > It is not always clear to me what to do, so I tend to leave those
> > > lines in per default, in order not to waste time thinking about it,
> > > but well, today I was confronted with that.
> > >
> > > Digging a bit deeper shows the following:
> > >
> > > python docs:
> > > No mention of shebang, but for Windows.
> > > https://docs.python.org/3/search.html?q=shebang&check_keywords=yes&area=default
> > >  
> > > 
> > > https://docs.python.org/3/using/windows.html?highlight=shebang 
> > > 
> > >
> > > Google's python style guide also says when a shebang is needed, but
> > > does not forbid it.
> > >
> > > Pep 394 explains how to use shebang, but still nothing about not using it.
> > > http://legacy.python.org/dev/peps/pep-0394/ 
> > > 
> > >
> > > So is there anything officially preferred, and should that go into pep 8?
> >
> > Some editors can use shebang lines to control syntax highlighting or linting
> > (mine for example will lint different for python2 vs python3 shebangs).
> 
> Does it support shebang lines like:
> 
> #!/usr/bin/env python
> 
> ?
> 

Sure. Though it doesn’t resolve it to determine what that would actually 
execute,
it just uses the name of the python in the shebang as heuristics.

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

___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] shebang policy, and pip

2014-10-08 Thread Christian Tismer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 08.10.14 14:20, Donald Stufft wrote:
>
>> On Oct 8, 2014, at 6:16 AM, Christian Tismer 
wrote:
>>
>>
>> ...

>>
>> So is there anything officially preferred, and should that go into pep 8?
>
> Some editors can use shebang lines to control syntax highlighting or
linting
> (mine for example will lint different for python2 vs python3 shebangs).
>

Interesting use case, of course! At first sight, at least ;-)

But it becomes relatively awkward when virtualenv is used:
There is no textual distinction between python 2 and 3, and
the text editor would have to do more analysis to get things
right than to guess from the shebang line.

Which then makes it useless, and the editor would need to grab
the real python interpreter to find things out.

cheers - Chris

- -- 
Christian Tismer :^)   tis...@stackless.com
Software Consulting  : http://www.stackless.com/
Karl-Liebknecht-Str. 121 : http://www.pydica.net/
14482 Potsdam: GPG key -> 0xFB7BEE0E
phone +49 173 24 18 776  fax +49 (30) 700143-0023
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUNZV1AAoJEOcwEVD7e+4OlpcIAN3556PP4sBlFeDDPn4bq3fO
ScXRhB8tPkS3Ftgyux2swE91yxOZFSV8Zyae04wTB+GlzKZ6v9aXMKn5mt+b6sIr
aq1vfPxG7Qoz3q7zhaAfps8ErD9f1PriC7/4F2P4FOOko07eHt6/e8Sxg4qAgMPz
nADLj8/2MtvQYFiw3m4Zsqs31wjCTTICH52FnRgla9+u5IhStdQE7OFTiHZaPNK3
tsUohUoKqhMPIhwuB669JE7rwcRB9dA5Iatiy3uU0wqCYkekT3I4DwCtAS+DZkJX
Fe0wpLGGHOprwUTQu0SMFGQRxPX3HxL0RzTNLKjCcDNLDWRcwZRPOZ3K4DVoggQ=
=i5dg
-END PGP SIGNATURE-


___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] shebang policy, and pip

2014-10-08 Thread Wes Turner
On Oct 8, 2014 7:20 AM, "Donald Stufft"  wrote:
>
>
> > On Oct 8, 2014, at 6:16 AM, Christian Tismer 
wrote:
> >
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA512
> >
> > Howdy,
> >
> > this question is a bit about general policy which is not yet
> > covered in the python recommendations:
> >
> > I see projects which do check-ins like "get rid of shebang lines"
> > and they remove those lines from non-script sources.
> >
> > It is not always clear to me what to do, so I tend to leave those
> > lines in per default, in order not to waste time thinking about it,
> > but well, today I was confronted with that.
> >
> > Digging a bit deeper shows the following:
> >
> > python docs:
> > No mention of shebang, but for Windows.
> >
https://docs.python.org/3/search.html?q=shebang&check_keywords=yes&area=default
> > https://docs.python.org/3/using/windows.html?highlight=shebang
> >
> > Google's python style guide also says when a shebang is needed, but
> > does not forbid it.
> >
> > Pep 394 explains how to use shebang, but still nothing about not using
it.
> > http://legacy.python.org/dev/peps/pep-0394/
> >
> > So is there anything officially preferred, and should that go into pep
8?
>
> Some editors can use shebang lines to control syntax highlighting or
linting
> (mine for example will lint different for python2 vs python3 shebangs).

Does it support shebang lines like:

#!/usr/bin/env python

?
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] shebang policy, and pip

2014-10-08 Thread Barry Warsaw
On Oct 08, 2014, at 08:20 AM, Donald Stufft wrote:

>Some editors can use shebang lines to control syntax highlighting or linting
>(mine for example will lint different for python2 vs python3 shebangs).

Some editors can also use `# -*- foo -*-` comments to set up editing modes and
there are other ways to specify which version linters to use.

I generally avoid shebangs where they aren't needed, and between entry points
and -m they rarely are these days.  I find most uses are in smaller one-off
scripts and such.

Cheers,
-Barry


signature.asc
Description: PGP signature
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com