[Python-Dev] 128 bit integer support

2013-12-04 Thread Fil Mackay
I have been doing some research on getting "int128_t" supported in Python,
and have hit a snag:

I've found that libffi does support this type, but sadly ctypes and cffi do
not. Adding to ctypes does not seem to be trivial, since the description of
an integer type is limited to a single character ("q" in the case of long
long). "q" is considered to be a length of 8, whereas what I really want is
the integer type "ll" which is correctly considered length of 16.

These musings are on OSX.

Can anyone give me some pointers as to why this has not been added to date,
and the best line of attack?

Regards, Fil.
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] 128 bit integer support

2013-12-04 Thread Antoine Pitrou

Hi Fil,

On Wed, 4 Dec 2013 23:17:11 +1100
Fil Mackay  wrote:
> 
> I've found that libffi does support this type, but sadly ctypes and cffi do
> not. Adding to ctypes does not seem to be trivial, since the description of
> an integer type is limited to a single character ("q" in the case of long
> long). "q" is considered to be a length of 8, whereas what I really want is
> the integer type "ll" which is correctly considered length of 16.

Aren't you talking about the struct module? In ctypes, it seems it
would be sufficient to add a "c_int128" type (and/or "c_uint128").

> These musings are on OSX.
> 
> Can anyone give me some pointers as to why this has not been added to date,
> and the best line of attack?

Probably because noone needed it until now?

We have a comprehensive guide if you want to contribute a patch:
http://docs.python.org/devguide/

The first step would be to open an enhancement request on the
issue tracker, the discussion will then move on there:
http://bugs.python.org/

(if you want to enhance both the ctypes and struct modules, please open
a separate issue for each)

Regards

Antoine.


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


[Python-Dev] Python 3 is five years old

2013-12-04 Thread Brett Cannon
On 2008-12-03, Python 3.0.0 was released by Barry. I was actually on IRC
the night when it happened, with Guido leaving his office across the hall
from mine. We gave each other a high-five and then we both went home. Not
exactly a party, but I know I at least breathed a sigh of relief that
Python 3 was finally real.

On this anniversary I just wanted to thank everyone who contributed to
making Python 3 happen. Thanks to the core devs who worked hard to make
Python better for everyone, even in the face of people yelling at us that
we were crazy, killing Python, etc. Thanks to those in the community who
stuck by the dev team and had faith we knew what we were doing and have
continued to help everyone move forward and off of Python 2 to realize how
much more pleasant Python 3 is to work with.

At this point I'm willing to say I'm happy with how Python 3 has turned out
and how the community has supported it. Python 3.3 was a great release and
I think Python 3.4 will be as well. I see no reason to think that the
language and community's forward momentum will not continue, leading to a
day where Python 2 only exists for people stuck on RHEL. =)
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Running the unit test as root/administrator

2013-12-04 Thread Brian Curtin
On Tue, Dec 3, 2013 at 8:14 PM, Ryan Gonzalez  wrote:

> Just don't run it on Windows...
>

Not helpful.

I'm in meetings/training/traveling all week, but I'll get another Windows
build slave up within the next few days. I used to have a spare desktop box
that ran a build slave as admin so it would exercise the os.symlink code,
but I moved, then the box died, etc.
___
Python-Dev mailing list
[email protected]
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 3 is five years old

2013-12-04 Thread Nick Coghlan
On 5 Dec 2013 00:41, "Brett Cannon"  wrote:
>
> On 2008-12-03, Python 3.0.0 was released by Barry. I was actually on IRC
the night when it happened, with Guido leaving his office across the hall
from mine. We gave each other a high-five and then we both went home. Not
exactly a party, but I know I at least breathed a sigh of relief that
Python 3 was finally real.
>
> On this anniversary I just wanted to thank everyone who contributed to
making Python 3 happen. Thanks to the core devs who worked hard to make
Python better for everyone, even in the face of people yelling at us that
we were crazy, killing Python, etc. Thanks to those in the community who
stuck by the dev team and had faith we knew what we were doing and have
continued to help everyone move forward and off of Python 2 to realize how
much more pleasant Python 3 is to work with.
>
> At this point I'm willing to say I'm happy with how Python 3 has turned
out and how the community has supported it. Python 3.3 was a great release
and I think Python 3.4 will be as well. I see no reason to think that the
language and community's forward momentum will not continue, leading to a
day where Python 2 only exists for people stuck on RHEL. =)

Red Hat Software Collections (which includes a Red Hat supported Python 3.3
release) hit general availability in September, so even RHEL users have a
fully supported migration option these days.

It's still going to be a while before the RHEL system Python gets upgraded,
but Fedora at least has a plan for that now :)

Cheers,
Nick.

>
> ___
> Python-Dev mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com
>
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Running the unit test as root/administrator

2013-12-04 Thread Vajrasky Kok
On Thu, Dec 5, 2013 at 7:07 AM, Brian Curtin  wrote:
>
> Not helpful.
>
> I'm in meetings/training/traveling all week, but I'll get another Windows
> build slave up within the next few days. I used to have a spare desktop box
> that ran a build slave as admin so it would exercise the os.symlink code,
> but I moved, then the box died, etc.
>
>

Cool. What about Linux/Unix/BSD with root account? If we have
something similar, I may plan to write unit test for spwd module.

--Vajrasky
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com