For Creatives and Developers Only

2020-10-10 Thread Joe Mayami
We are recruiting Developers, and Creatives to join our community into building personal portfolios, personal development skills, work on Open Source Projects, Devops, Collaboration, User Testing and Supports. Community members include experts in product designs, python programming, data scienc

Re: Python's carbon guilt

2020-10-10 Thread Terry Reedy
On 10/10/2020 11:58 AM, Peter Pearson wrote: Python advocates might want to organize their thoughts on this subject before their bosses spring the suggestion: From https://www.sciencemag.org/news/2020/10/we-re-part-problem-astronomers-confront-their-role-and-vulnerability-climate-change :

Re: Truncation error

2020-10-10 Thread Grant Edwards
On 2020-10-10, Peter J. Holzer wrote: > On 2020-10-07 07:53:55 +0200, Marco Sulla wrote: >> If you want to avoid float problems, you can use Decimal: > > Decimal doesn't avoid floating point problems, because it is a floating > point format. For example: > [...] > >>> from decimal import

Re: Python's carbon guilt

2020-10-10 Thread Tim Daneliuk
On 10/10/20 2:35 PM, Marco Sulla wrote: > He should also calculate the carbon dioxide emitted by brains that > works in C++ only. I omit other sources. > yes, methane is an alleged greenhouse gas as well -- https://mail.python.org/mailman/listinfo/python-list

Re: Trying to Download PygameZero

2020-10-10 Thread Terry Reedy
On 10/10/2020 11:11 AM, Mats Wichmann wrote: On 10/10/20 12:22 AM, Tom Hedge via Python-list wrote: I am in a 8 grade coding class at the moment and my teacher asked me to download a script ... [on Windows according to file paths]... . The problem is the pygame developers have not released a

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-10 Thread Chris Angelico
On Sun, Oct 11, 2020 at 12:57 PM Cameron Simpson wrote: > Personally I strongly dislike using datetimes for computation or as the > basis for time record keeping, essentially because of the timezone issue > but also because the human calendar is a complex disaster of illfitting > units (days in a

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-10 Thread Cameron Simpson
On 10Oct2020 18:17, Steve wrote: >I would like to use the line: >HoursDiff = int((d2-d1).total_seconds()/3600) >to determine the difference in hours between two timedate entries. > >The variable d2 is from datetime.now() >and d1 is read from a text file. > >I can save d2 to the file only if I conv

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-10 Thread Peter Pearson
On Sat, 10 Oct 2020 18:17:26 -0400, Steve wrote: > I would like to use the line: > HoursDiff = int((d2-d1).total_seconds()/3600) > to determine the difference in hours between two timedate entries. > > The variable d2 is from datetime.now() > and d1 is read from a text file. > > I can save d2 to t

Problem saving datetime to file and reading it back for a calculation

2020-10-10 Thread Steve
I would like to use the line: HoursDiff = int((d2-d1).total_seconds()/3600) to determine the difference in hours between two timedate entries. The variable d2 is from datetime.now() and d1 is read from a text file. I can save d2 to the file only if I convert it to string and, at a later date, it

RE: Python's carbon guilt

2020-10-10 Thread Avi Gross via Python-list
People have a tendency to go too far in their religious zeal, Peter. We could go back to writing on chalkboards to do calculations then re-use the chalk dust when erasing to write again. Many computers do almost nothing 90+ percent of the time. Want to outlaw those or force them to accept random

Re: Python's carbon guilt

2020-10-10 Thread Marco Sulla
He should also calculate the carbon dioxide emitted by brains that works in C++ only. I omit other sources. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python's carbon guilt

2020-10-10 Thread Chris Angelico
On Sun, Oct 11, 2020 at 3:01 AM Peter Pearson wrote: > > Python advocates might want to organize their thoughts on > this subject before their bosses spring the suggestion: > > From > https://www.sciencemag.org/news/2020/10/we-re-part-problem-astronomers-confront-their-role-and-vulnerability-clim

Re: Python's carbon guilt

2020-10-10 Thread Peter J. Holzer
On 2020-10-10 15:58:18 +, Peter Pearson wrote: > Python advocates might want to organize their thoughts on > this subject before their bosses spring the suggestion: > > From > https://www.sciencemag.org/news/2020/10/we-re-part-problem-astronomers-confront-their-role-and-vulnerability-climate-

Re: Truncation error

2020-10-10 Thread Meghna Karkera
Thanks, the problem was I solved a covariance matrix manually, but my fellow mate using the covariance syntax. That's why there was difference in Matlab and python results. But now when I use the covariance syntax in python, matlab and python gives the same results. On Sat, Oct 10, 2020, 21:37 Pet

Re: Truncation error

2020-10-10 Thread Peter J. Holzer
On 2020-10-07 07:53:55 +0200, Marco Sulla wrote: > If you want to avoid float problems, you can use Decimal: Decimal doesn't avoid floating point problems, because it is a floating point format. For example: Python 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] on linux Type "help

Python's carbon guilt

2020-10-10 Thread Peter Pearson
Python advocates might want to organize their thoughts on this subject before their bosses spring the suggestion: >From >https://www.sciencemag.org/news/2020/10/we-re-part-problem-astronomers-confront-their-role-and-vulnerability-climate-change > : . . . Astronomers should also abandon popul

Re: Trying to Download PygameZero

2020-10-10 Thread Mats Wichmann
On 10/10/20 12:22 AM, Tom Hedge via Python-list wrote: > I am in a 8 grade coding class at the moment and my teacher asked me to > download a script called pgzero. I can not seem to download pgzer or pygame > when i try it shoots me a error message:  ERROR: Command errored out with > exit status

python

2020-10-10 Thread 수꿍이
import numpy as np import matplotlib.pylab as plt x = [1, -2 , 1]; h = [1 , 2 , -1 , 0 , 3 , 1]; nx = nx=[0,1,2]; nh =[0,1,2,3,4,5] y = np.convolve(x ,h) ny = np.arange(nx[0] + nh[0], nx[-1] + nx[-1]+1,nx[1]); print(ny,y) plt.subplot(1,1,1); plt.stem(y) plt.subplot(1,1,1); plt.stem( ny, y) ValueEr

Trying to Download PygameZero

2020-10-10 Thread Tom Hedge via Python-list
I am in a 8 grade coding class at the moment and my teacher asked me to download a script called pgzero. I can not seem to download pgzer or pygame when i try it shoots me a error message:  ERROR: Command errored out with exit status 1:     command: 'c:\program files\python39\python.exe' -c 'imp

Re: file to bits text and text containing bits to file

2020-10-10 Thread Harshit Sharma
On Saturday, October 10, 2020 at 1:43:09 AM UTC+5:30, dn wrote: > On 09/10/2020 19:27, Harshit Sharma wrote: > > I want to read bits data of all file of any extention in 0s and 1s. And > > also want to do back means means construct file from bits text data how to > > do that tell with proof plea