Re: Question about floating point

2018-08-31 Thread Steven D'Aprano
On Fri, 31 Aug 2018 18:45:16 +1200, Gregory Ewing wrote: > Steven D'Aprano wrote: >> The right way is to >> set the rounding mode at the start of your application, and then let >> the Decimal type round each calculation that needs rounding. > > It's not clear what you mean by "rounding mode" here

Looking for someone proficient in Python to update a website.

2018-08-31 Thread Stacy Brewer
Hello! I’m not sure if this is the right forum, but I am looking for someone proficient in Python software to update a website. I will pay well, and work in the Kansas City area. If this is not the correct way to find someone who can help, do you have any contacts in the Kansas City area who c

Re: bytes() or .encode() for encoding str's as bytes?

2018-08-31 Thread Cameron Simpson
On 31Aug2018 21:44, Marko Rauhamaa wrote: Malcolm Greene : Is there a benefit to using one of these techniques over the other? Is one approach more Pythonic and preferred over the other for style reasons? message = message.encode('UTF-8') message = bytes(message, 'UTF-8') I always use the for

Re: Verifying the integrity/lineage of a file

2018-08-31 Thread Malcolm Greene
Thanks for the replies! I'm going to investigate the use of python-gnupg [1] which is a Python wrapper for the GPG command line utility. This library is based on gpg.py written by Andrew Kuchling. I'm all ears if f anyone has any alternative recommendations or python-gnupg tips to share. BTW:

Re: bytes() or .encode() for encoding str's as bytes?

2018-08-31 Thread Marko Rauhamaa
Malcolm Greene : > Is there a benefit to using one of these techniques over the other? > Is one approach more Pythonic and preferred over the other for > style reasons? > message = message.encode('UTF-8') > message = bytes(message, 'UTF-8') I always use the former. I wonder why that is. I guess th

Re: Broken pip

2018-08-31 Thread Michael F. Stemper
On 2018-08-29 16:02, Thomas Jollans wrote: > On 08/29/2018 09:05 PM, Michael F. Stemper wrote: >>> Also, PLEASE use Python 3. Still using Python 2 today is like still >>> using Windows XP in early 2013. >> I'm using the default version for the current release of my >> OS (Ubuntu 16.04 LTS): >> My

Re: Verifying the integrity/lineage of a file

2018-08-31 Thread Peter Pearson
On Fri, 31 Aug 2018 08:36:52 -0600, Malcolm Greene wrote: > I have use case where I need to distribute binary files to customers and > want to provide a way for our customers to verify the > "integrity/lineage" (I know there's a better description, but can't > think of it) of these files, eg. to g

training materials and learning environment for teaching kids python available

2018-08-31 Thread Kent Tong
Hi all, This is a set of training materials I used to successfully teach Python to kids as little as 10 years old. It was a success because the kids didn't just finish the course, they independently completed most of the coding challenges by applying the knowledge they had learned. The first f

bytes() or .encode() for encoding str's as bytes?

2018-08-31 Thread Malcolm Greene
Is there a benefit to using one of these techniques over the other? Is one approach more Pythonic and preferred over the other for style reasons? message = message.encode('UTF-8') message = bytes(message, 'UTF-8') Thank you, Malcolm -- https://mail.python.org/mailman/listinfo/python-list

Re: Verifying the integrity/lineage of a file

2018-08-31 Thread Thomas Jollans
On 2018-08-31 16:36, Malcolm Greene wrote: > I have use case where I need to distribute binary files to customers and > want to provide a way for our customers to verify the > "integrity/lineage" (I know there's a better description, but can't > think of it) of these files, eg. to give them the con

Verifying the integrity/lineage of a file

2018-08-31 Thread Malcolm Greene
I have use case where I need to distribute binary files to customers and want to provide a way for our customers to verify the "integrity/lineage" (I know there's a better description, but can't think of it) of these files, eg. to give them the confidence that the files in question are from me and

Re: Shall I worry about python2/3 compatibility when using library?

2018-08-31 Thread Grant Edwards
On 2018-08-31, Terry Reedy wrote: > That said, some people will continue to use existing python 2 code for a > decade or more. People like me. I do a lot of serial and network protocol handling in Python, and the changes to the handling of bytes vs. strings in Python 3 means that sort of thing

EuroPython 2018: Videos for Thursday available

2018-08-31 Thread M.-A. Lemburg
We are pleased to announce the second batch of cut videos from EuroPython 2018 in Edinburgh, Scotland, UK. * EuroPython 2018 YouTube Playlist * https://www.youtube.com/watch?v=scum5a_mqBc&t=0s&index=84&list=PL8uoeex94UhFrNUV2m5MigREebUms39U5 In this batch, we have included all

Re: Shall I worry about python2/3 compatibility when using library?

2018-08-31 Thread Mark Lawrence
On 31/08/18 06:33, Stone Zhong wrote: On Thursday, August 30, 2018 at 10:19:34 PM UTC-7, Terry Reedy wrote: On 8/30/2018 10:27 PM, Stone Zhong wrote: Hi there, I think the fact is: - There are still considerable amount of people still using python2 - Python2 user will eventually upgrade to pyt

Re: Shall I worry about python2/3 compatibility when using library?

2018-08-31 Thread Thomas Jollans
On 31/08/18 04:27, Stone Zhong wrote: Hi there, I think the fact is: - There are still considerable amount of people still using python2 - Python2 user will eventually upgrade to python3 So any library not written in a compatible way will either break now for python2 user, or will break in the