Re: built-in pow() vs. math.pow()

2023-03-30 Thread Chris Angelico
On Fri, 31 Mar 2023 at 08:13, Oscar Benjamin wrote: > > On Thu, 30 Mar 2023 at 17:31, Andreas Eisele wrote: > > > > I sometimes make use of the fact that the built-in pow() function has an > > optional third argument for modulo calculation, which is handy when dealing > > with tasks from

Re: built-in pow() vs. math.pow()

2023-03-30 Thread Oscar Benjamin
On Thu, 30 Mar 2023 at 17:31, Andreas Eisele wrote: > > I sometimes make use of the fact that the built-in pow() function has an > optional third argument for modulo calculation, which is handy when dealing > with tasks from number theory, very large numbers, problems from Project > Euler,

RE: built-in pow() vs. math.pow()

2023-03-30 Thread avi.e.gross
Some questions are more reasonable than others. If the version of a function used in a package were IDENTICAL to the built-in, then why have it? There are many possible reasons a package may tune a function for their own preferences or re-use a name that ends up blocking the view of another

Re: built-in pow() vs. math.pow()

2023-03-30 Thread Dennis Lee Bieber
On Thu, 30 Mar 2023 19:22:53 +0200, Roel Schroeven declaimed the following: >Either import the things you need explicitly: "from math import sin, >cos, exp" (for example). >Or a plain import: "import math" combined with "math.sin", "math.cos". >Or use an abbreviation: "import math as m"

Re: built-in pow() vs. math.pow()

2023-03-30 Thread Grant Edwards
On 2023-03-30, Thomas Passin wrote: > On 3/30/2023 5:15 AM, Andreas Eisele wrote: >> [...] I was unpleasantly surprised that math.pow() does not have >> this feature, hence "from math import *" overwrites the built-in >> pow() function with a function that lacks functionality. [...] > > Not an

Re: Python not showing correct version

2023-03-30 Thread Thomas Passin
On 3/30/2023 10:17 AM, Sumeet Firodia wrote: Hi Team, I have installed Python 3.8 for Snowpark but when I check the version in command prompt it shows me Python 3.10.10. C:\Users\admin>python --version Python 3.10.10 Also when I try to uninstall 3.10 it says no such version is installed.

Re: built-in pow() vs. math.pow()

2023-03-30 Thread Thomas Passin
On 3/30/2023 5:15 AM, Andreas Eisele wrote: I sometimes make use of the fact that the built-in pow() function has an optional third argument for modulo calculation, which is handy when dealing with tasks from number theory, very large numbers, problems from Project Euler, etc. I was

Re: built-in pow() vs. math.pow()

2023-03-30 Thread Roel Schroeven
Andreas Eisele schreef op 30/03/2023 om 11:15: I sometimes make use of the fact that the built-in pow() function has an optional third argument for modulo calculation, which is handy when dealing with tasks from number theory, very large numbers, problems from Project Euler, etc. I was

Re: built-in pow() vs. math.pow()

2023-03-30 Thread Barry Scott
> On 30 Mar 2023, at 18:11, Barry Scott wrote: > > > >> On 30 Mar 2023, at 10:15, Andreas Eisele wrote: >> >> I sometimes make use of the fact that the built-in pow() function has an >> optional third argument for modulo calculation, which is handy when dealing >> with tasks from number

Re: Python not showing correct version

2023-03-30 Thread Barry Scott
> On 30 Mar 2023, at 15:17, Sumeet Firodia wrote: > >> >> Hi Team, >> >> I have installed Python 3.8 for Snowpark but when I check the version in >> command prompt it shows me Python 3.10.10. >> >> C:\Users\admin>python --version >> Python 3.10.10 Try this: py -3.8 And this to list all

Re: built-in pow() vs. math.pow()

2023-03-30 Thread Barry Scott
> On 30 Mar 2023, at 10:15, Andreas Eisele wrote: > > I sometimes make use of the fact that the built-in pow() function has an > optional third argument for modulo calculation, which is handy when dealing > with tasks from number theory, very large numbers, problems from Project > Euler,

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread a a
On Thursday, 30 March 2023 at 13:19:51 UTC+2, a a wrote: > On Thursday, 30 March 2023 at 13:14:33 UTC+2, a a wrote: > > On Thursday, 30 March 2023 at 07:55:13 UTC+2, Christian Gollwitzer wrote: > > > Am 30.03.23 um 01:11 schrieb a a: > > > > On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread a a
On Thursday, 30 March 2023 at 13:14:33 UTC+2, a a wrote: > On Thursday, 30 March 2023 at 07:55:13 UTC+2, Christian Gollwitzer wrote: > > Am 30.03.23 um 01:11 schrieb a a: > > > On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: > > >> On 30/03/23 8:39 am, a a wrote: > > >>> How

built-in pow() vs. math.pow()

2023-03-30 Thread Andreas Eisele
I sometimes make use of the fact that the built-in pow() function has an optional third argument for modulo calculation, which is handy when dealing with tasks from number theory, very large numbers, problems from Project Euler, etc. I was unpleasantly surprised that math.pow() does not have

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread a a
On Thursday, 30 March 2023 at 07:55:13 UTC+2, Christian Gollwitzer wrote: > Am 30.03.23 um 01:11 schrieb a a: > > On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: > >> On 30/03/23 8:39 am, a a wrote: > >>> How to add clickable url links to the following 3D Matplotlib chart to >

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread Christian Gollwitzer
Am 30.03.23 um 01:11 schrieb a a: On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: On 30/03/23 8:39 am, a a wrote: How to add clickable url links to the following 3D Matplotlib chart to make it knowledge representation 3D chart, make of 1,000+ open Tabs in Firefox ? It seems

Re: Python file location

2023-03-30 Thread Loris Bennett
windhorn writes: > I have an older laptop I use for programming, particularly Python and > Octave, running a variety of Debian Linux, and I am curious if there > is a "standard" place in the file system to store this type of program > file. OK, I know they should go in a repository and be

Re: Python not showing correct version

2023-03-30 Thread Sumeet Firodia
> > Hi Team, > > I have installed Python 3.8 for Snowpark but when I check the version in > command prompt it shows me Python 3.10.10. > > C:\Users\admin>python --version > Python 3.10.10 > > Also when I try to uninstall 3.10 it says no such version is installed. > > C:\Users\admin>pip uninstall