Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > what's the point of pow()?

Reply
Thread Tools

what's the point of pow()?

 
 
richyjsm@gmail.com
Guest
Posts: n/a
 
      08-09-2007
it's a serious question: why does the builtin pow function exist?

for two argument pow we've got **. there's no add() for + or mul()
for *....

and three argument pow-with-modulo seems like specilaist usage that
belongs in the standard lib, not in the core. I know about crypto and
number theory uses. are there others?

it's obviously useful for something or else it would be slated for
removal in python 3000, surely?

Richard

 
Reply With Quote
 
 
 
 
Paul Rubin
Guest
Posts: n/a
 
      08-09-2007
writes:
> it's a serious question: why does the builtin pow function exist?
> for two argument pow we've got **. there's no add() for + or mul()
> for *....


They are in the operator module and maybe pow could go there too.

Actually there's a math.pow function that works differently from
the builtin function. Some cleanup might be in order.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
Scenario 5: IS-IS routing on Frame Relay Multi-point and Point-to-Point David Sudjiman Cisco 0 06-08-2006 09:11 AM
point to point protocol Gopi VHDL 1 07-13-2004 02:37 PM
simulate point-to-point with 2620's np Cisco 11 03-04-2004 01:44 AM
help, please!! cisco 827H point per point configuration javi Cisco 1 10-16-2003 07:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57