[Python-Dev] Summary of Python tracker Issues

2016-01-15 Thread Python tracker
ACTIVITY SUMMARY (2016-01-08 - 2016-01-15) 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: open5387 (+16) closed 32496 (+60) total 37883 (+76) Open issues

[Python-Dev] Boolean value of an Enum member

2016-01-15 Thread Ethan Furman
When Enum was being designed one of the questions considered was where to start autonumbering: zero or one. As I remember the discussion we chose not to start with zero because we didn't want an enum member to be False by default, and having a member with value 0 be True was discordant. So

Re: [Python-Dev] [Python-ideas] Boolean value of an Enum member

2016-01-15 Thread Guido van Rossum
Honestly I think it's too late to change. The proposal to change plain Enums to False when their value is zero (or falsey) would be a huge backward incompatibility. I don't think there's a reasonable path forward, and also don't think there's a big reason to regret the current semantics. On Fri,

Re: [Python-Dev] Boolean value of an Enum member

2016-01-15 Thread Barry Warsaw
On Jan 15, 2016, at 10:22 AM, Ethan Furman wrote: >So the question now is: for a standard Enum (meaning no other type besides >Enum is involved) should __bool__ look to the value of the Enum member to >determine True/False, or should we always be True by default and make the >Enum creator add

[Python-Dev] 2.7.11 Windows Installer issues on Win2008R2

2016-01-15 Thread Rader, David
Problem 1: The .manifest information for the VC runtime dll's has been changed in the recent versions of the 2.7.x 64-bit installers for Windows. Python fails to run on a clean Win2008R2 install after running the Python installer to install "Just for me". The installation succeeds if "Install for

Re: [Python-Dev] 2.7.11 Windows Installer issues on Win2008R2

2016-01-15 Thread Terry Reedy
On 1/15/2016 5:13 PM, Rader, David wrote: [description of problems] Please register at bugs.python.org and open a new issue for Versions 2.7, Components: Installation, with 'benjamin.peterson' and 'loewis' on the Nosy List. Copy what you wrote in the Comment: box. -- Terry Jan Reedy

[Python-Dev] C struct for Str( )

2016-01-15 Thread Eddy Quicksall
I want to fill an Str() string from a C function. But I think I am using the wrong structure (PyBytesObject). I have written a C function to dump the Python class but as you can see the structure I'm using does not match the data in the class. Can someone please tell me the correct structure:

Re: [Python-Dev] C struct for Str( )

2016-01-15 Thread Brett Cannon
I don't quite see what this has to do with has to do with the development of Python, Eddy. You can always reference the C API at https://docs.python.org/3/c-api/index.html . And `PyBytesObject` is an instance of `bytes` in Python. On Fri, 15 Jan 2016 at 15:33 Eddy Quicksall

Re: [Python-Dev] C struct for Str( )

2016-01-15 Thread Eddy Quicksall
Sorry, I must be on the wrong list. Can you please give me the correct list? Eddy From: Brett Cannon [mailto:br...@python.org] Sent: Friday, January 15, 2016 6:58 PM To: Eddy Quicksall; python-dev@python.org Subject: Re: [Python-Dev] C struct for Str( ) I don't quite see what this has to

Re: [Python-Dev] C struct for Str( )

2016-01-15 Thread Victor Pantoja
Hi Eddy You can try some of the lists in https://mail.python.org/mailman/listinfo. Best, victor 2016-01-15 22:23 GMT-02:00 Eddy Quicksall : > Sorry, I must be on the wrong list. Can you please give me the correct > list? > > > > Eddy > > > > *From:* Brett Cannon