Re: [Python-Dev] Reviving restricted mode?

2014-08-14 Thread Nick Coghlan
On 14 August 2014 07:25, Victor Stinner wrote: > Hi, > > I heard that PyPy sandbox cannot be used out of the box. You have to write a > policy to allow syscalls. The complexity is moved to this policy which is > very hard to write, especially if you only use whitelists. > > Correct me if I'm wrong

Re: [Python-Dev] Documenting enum types

2014-08-14 Thread Victor Stinner
Hi, IMO we should not document enum types because Python implementations other than CPython may want to implement them differently (ex: not all Python implementations have an enum module currently). By experience, exposing too many things in the public API becomes a problem later when you want to

Re: [Python-Dev] Documenting enum types

2014-08-14 Thread Nick Coghlan
On 14 August 2014 19:25, Victor Stinner wrote: > Hi, > > IMO we should not document enum types because Python implementations other > than CPython may want to implement them differently (ex: not all Python > implementations have an enum module currently). By experience, exposing too > many things

Re: [Python-Dev] Documenting enum types

2014-08-14 Thread Guido van Rossum
The enemy must be documented and exported, since users will encounter them. On Aug 14, 2014 4:54 AM, "Nick Coghlan" wrote: > On 14 August 2014 19:25, Victor Stinner wrote: > > Hi, > > > > IMO we should not document enum types because Python implementations > other > > than CPython may want to im

Re: [Python-Dev] Documenting enum types

2014-08-14 Thread Ben Hoyt
> The enemy must be documented and exported, since users will encounter them. enum == enemy? Is that you, Raymond? ;-) -Ben ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.

Re: [Python-Dev] Documenting enum types

2014-08-14 Thread Ethan Furman
On 08/14/2014 08:51 AM, Ben Hoyt wrote: The enemy must be documented and exported, since users will encounter them. enum == enemy? Is that you, Raymond? ;-) ROFL! Thanks, I needed that! :D -- ~Ethan~ ___ Python-Dev mailing list Python-Dev@python.

Re: [Python-Dev] Documenting enum types

2014-08-14 Thread Mark Lawrence
On 14/08/2014 17:14, Ethan Furman wrote: On 08/14/2014 08:51 AM, Ben Hoyt wrote: The BDFL actually wrote:- The enemy must be documented and exported, since users will encounter them. QOTW. enum == enemy? Is that you, Raymond? ;-) ROFL! Thanks, I needed that! :D -- ~Ethan~ I'll be

[Python-Dev] PEP 467: Minor API improvements for bytes & bytearray

2014-08-14 Thread Nick Coghlan
I just posted an updated version of PEP 467 after recently finishing the updates to the Python 3.4+ binary sequence docs to decouple them from the str docs. Key points in the proposal: * deprecate passing integers to bytes() and bytearray() * add bytes.zeros() and bytearray.zeros() as a replaceme