Re: [Python-ideas] Enhancing Zipapp

2020-01-07 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius On Wed, Jan 8, 2020 at 2:20 AM Barry wrote: > > You are offing up a competitor against python wheels > This proposal proposes to inlcude python wheels in

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-07 Thread Christopher Barker
On Mon, Jan 6, 2020 at 10:50 PM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > - More metadata > good idea, and simple. > - Integrity check with hashing > - Protecting the meta data > This could be a big challenge -- and I'm not expert, so have no idea what the issues are. > - Bu

Re: Floating point overflow and underflow

2020-01-07 Thread Shashank Tiwari
Oh, thanks. Didn't think of that. On Tue, Jan 7, 2020, 7:53 PM Michael Torrie wrote: > On 1/7/20 8:46 PM, Shashank Tiwari wrote: > > Yes, I tried this and it worked. I was wondering if I could use the > output > > of pow (or math.pow). > > Sure: > > pow(Decimal('2.2'), Decimal('0.45')) > > -- >

Re: Floating point overflow and underflow

2020-01-07 Thread Michael Torrie
On 1/7/20 8:46 PM, Shashank Tiwari wrote: > Yes, I tried this and it worked. I was wondering if I could use the output > of pow (or math.pow). Sure: pow(Decimal('2.2'), Decimal('0.45')) -- https://mail.python.org/mailman/listinfo/python-list

Re: Floating point overflow and underflow

2020-01-07 Thread Shashank Tiwari
Thanks everyone. Much appreciated. On Tue, Jan 7, 2020, 7:46 PM Shashank Tiwari wrote: > Yes, I tried this and it worked. I was wondering if I could use the output > of pow (or math.pow). > > On Tue, Jan 7, 2020, 7:41 PM Michael Torrie wrote: > >> On 1/7/20 8:18 PM, Shashank Tiwari wrote: >> >

Re: Floating point overflow and underflow

2020-01-07 Thread Shashank Tiwari
Yes, I tried this and it worked. I was wondering if I could use the output of pow (or math.pow). On Tue, Jan 7, 2020, 7:41 PM Michael Torrie wrote: > On 1/7/20 8:18 PM, Shashank Tiwari wrote: > > Thanks Chris. What if it's pow(2.2,0.45)? > > Why not do some more experimentation: > > >>> import d

Re: Floating point overflow and underflow

2020-01-07 Thread Michael Torrie
On 1/7/20 8:18 PM, Shashank Tiwari wrote: > Thanks Chris. What if it's pow(2.2,0.45)? Why not do some more experimentation: >>> import decimal >>> a = decimal.Decimal('2.2') >>> b = decimal.Decimal('0.45') >>> a ** b Decimal('1.425903734234490793207619170') Is this what you mean? I'm sure there

Re: Floating point overflow and underflow

2020-01-07 Thread Chris Angelico
On Wed, Jan 8, 2020 at 2:18 PM Shashank Tiwari wrote: > > Thanks Chris. What if it's pow(2.2,0.45)? > Initialize your Decimals from strings, as you were already advised, and do the calculation in Decimals. Or just use floats, since it's likely to be at least as accurate. ChrisA -- https://mail

Re: Floating point overflow and underflow

2020-01-07 Thread Shashank Tiwari
Thanks Chris. What if it's pow(2.2,0.45)? On Tue, Jan 7, 2020, 6:40 PM Chris Angelico wrote: > On Wed, Jan 8, 2020 at 1:37 PM Shashank Tiwari > wrote: > > > > Thanks Rob. > > > > How would one initialize a Decimal with something like pow(2,256)? > > > > Easy, just initialize it with an integer:

Re: Floating point overflow and underflow

2020-01-07 Thread Chris Angelico
On Wed, Jan 8, 2020 at 1:37 PM Shashank Tiwari wrote: > > Thanks Rob. > > How would one initialize a Decimal with something like pow(2,256)? > Easy, just initialize it with an integer: >>> Decimal(2**256) Decimal('115792089237316195423570985008687907853269984665640564039457584007913129639936')

Re: Floating point overflow and underflow

2020-01-07 Thread Shashank Tiwari
Thanks Rob. How would one initialize a Decimal with something like pow(2,256)? On Tue, Jan 7, 2020 at 5:25 PM Rob Gaddi wrote: > On 1/7/20 3:47 PM, Shashank Tiwari wrote: > > In Python3 an operation as follows: > 10135.1941 * (10**8) > > gives the result: 101351941.0001 > > > > Similar

Re: Floating point overflow and underflow

2020-01-07 Thread Rob Gaddi
On 1/7/20 3:47 PM, Shashank Tiwari wrote: In Python3 an operation as follows: 10135.1941 * (10**8) gives the result: 101351941.0001 Similarly, using the pow function also gives the same overflow/underflow error. 10135.1941 * pow(10,8) 101351941.0001 Like multiplication, division of

Floating point overflow and underflow

2020-01-07 Thread Shashank Tiwari
In Python3 an operation as follows: >>> 10135.1941 * (10**8) gives the result: 101351941.0001 Similarly, using the pow function also gives the same overflow/underflow error. >>> 10135.1941 * pow(10,8) 101351941.0001 Like multiplication, division of large or very small floating point numbe

Re: [Python-ideas] Enhancing Zipapp

2020-01-07 Thread Barry
> On 7 Jan 2020, at 01:48, Abdur-Rahmaan Janhangeer > wrote: > >  > > >> On Tue, 7 Jan 2020, 01:57 Barry Scott, wrote: >> >> >> Please cover the pro's and con's of the alernatives that have been raised as >> comments >> on this idea, as is usually done for a PEP style document. > > >

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-07 Thread Barry
> On 7 Jan 2020, at 02:40, Christopher Barker wrote: > >  > I’m a bit unclear on how far this goes: is it just a bit more specific with > more meta-data standards? > > Or are you aiming for something that will run without a Python install? > > Other issues: > > Are you aiming for a bundle

Re: [Python-ideas] Enhancing Zipapp

2020-01-07 Thread Brett Cannon
Thanks for the ideas, Abdur-Rahmaan! Some feedback below. On Mon, Jan 6, 2020 at 11:35 AM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Note: draft simplified > > Abstract > == > > This extracts aims at proposing enhancements to the generated zipapp > executable > > Rationale > ==

Re: Removing reference to local installed package

2020-01-07 Thread DL Neil via Python-list
On 8/01/20 8:53 AM, Abdur-Rahmaan Janhangeer wrote: Greetings everybody, Salaam, I installed a local package using python -m pip install Now if you install the same package from pypi, it says requirements already satisfied pointing to the location of the local package folder instead of sit

Removing reference to local installed package

2020-01-07 Thread Abdur-Rahmaan Janhangeer
Greetings everybody, I installed a local package using python -m pip install Now if you install the same package from pypi, it says requirements already satisfied pointing to the location of the local package folder instead of site -package pip uninstall does not work as the package is not in

Re: PyInstaller needs Funding by your Company

2020-01-07 Thread Hartmut Goebel
Am 07.01.20 um 17:19 schrieb Christian Gollwitzer: > Am 07.01.20 um 15:09 schrieb Hartmut Goebel: >> Maintianing PyInstaller at a proper level requires about 4 to 5 days per >> month. Which means about 4,000 to 5,000 € per month and about 50,000 to >> 60,000 € per year. > > these numbers sound odd

Re: PyInstaller needs Funding by your Company

2020-01-07 Thread Christian Gollwitzer
Am 07.01.20 um 15:09 schrieb Hartmut Goebel: Maintianing PyInstaller at a proper level requires about 4 to 5 days per month. Which means about 4,000 to 5,000 € per month and about 50,000 to 60,000 € per year. these numbers sound odd to me. 4000€ - 5000€ per month or equivalently 60,000€ per ye

PyInstaller needs Funding by your Company

2020-01-07 Thread Hartmut Goebel
Hi, as some of you might already know: PyInstaller is in urgent need of funding. If you are working for a company using PyInstaller, please make them pay their share. For details see *If reasonable funding is not achieved until end of Janu