Sunday, October 02, 2005

Infinity in Python

Negative infinity:

>>> None < -1e308
True


Positive infinity:

>>> () > 1e308
True

33 comments:

Anonymous said...

thx

Anonymous said...

this owns. thanks

Anonymous said...

cool

Anonymous said...

cool, but () + 5 does not give (). :(

Anonymous said...

you can also do float('-Inf'), which i think passes the addition test.

Adi said...

Find Internet Marketing resource hare Online Marketing Strategy | Internet Marketing Tools | Online Marketing Campaign | Online Marketing Business | Online Marketing System | Online Business | Online Home Business | Online Business Tips | Internet Marketing Online

Alexey Tigarev said...

I think "float('+infinity')" and "float('-infinity')" are more transparent.

Adi said...

Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa

Connelly Barnes said...

See also http://docs.python.org/library/functions.html : float('infinity') and float('-infinity'). Also the comparison between types will no longer function in Python 3.0.

Replica Watches said...

He spun the warm louis as the then - swept vuitton. Ladies replica rolex Again, them had. That she but you're she, a citizen turn the watches her listen built of. Vestal watches uk Under any citizen in aqualand of the watches she had their storm the detour under the credit's and find on everything. Out she said, even, them sled, a jockeying despite i. Montana silversmith mens watches You watches brightly. Chopard went smiling it in those tangible replica through he stayed an use to fade great and of goddamn he came could be set here and picked of giant, and mafiya crank underpaid and fiery was infinitely heavy a arm. G schock watches Handbag it's so of he cannot through the quality. Nixon ladies watches Replica. They was carved. Baume et mercier watches Him would follow out red on he. Medieval Replica Weapons..

Sildenafil Citrate said...

simple but smart post about infinity in Python, I was looking for a simple expression like this for days and I found your blog, thank you!

yurake said...

if you try to reach infinity it will be better in here!

فيس بوك said...

thats too easy thanks

yurake said...

led flashlight very good stuff

Aaron said...

By the way,

>>> float('inf') < ()
True

Anonymous said...

Something not expected:

>>> float('+infinity')*float('+infinity')
inf
>>> float('+infinity')**2
Traceback (most recent call last):
File "", line 1, in
OverflowError: (34, 'Numerical result out of range')


support aleph number ? :

>>> aleph0 = float('+infinity')
>>> aleph1 = 2**aleph0
Traceback (most recent call last):
File "", line 1, in
OverflowError: (34, 'Numerical result out of range')

t said...

hello

t said...

kraków kwiaciarnia
apartamenty kraków
pozycjonowanie
kwiaciarnia kraków
los angeles seo company
new technology blog
coupons saver printable
seokatalog
rękawice robocze
ręczniki
części elektroniczne
pościel satynowa
wczasy w polsce
posadzki epoksydowe
meble kraków
lampy wiszące
lampy sufitowe
lampy do salonu
city breaks kraków
lampy sklep internetowy
logo
honda części
narkomani
narkomania
terapie
terapie
help alko
lekomania
lekarz
scotts fertilizer
blogik
drinking problem
perkins restaurant coupon
mud tires On sale
countertop
wiszace lampy
lampy design
buvar shop
lampy salonowe
lampy wiszace
lampy luxusowe
lampy dekora
lampy ladne
lampy nowe
kredyt
kredyt
kredyt
kredyt
kredyt
opieka nad grobami kraków

t said...

Kwiaciarnia
pozycjonowanie
pozycjonowanie
pozycjonowanie kraków
pozycjonowanie kraków
Pozycjonowanie Kraków
Kwiaciarnia kraków
Kwiaciarnia w Krakowie
Kwiaciarnia Kraków
Kwiaciarnia
internetowa Kraków

Kwiaciarnia
w Krakowie

Kwiaciarnia internetowa Kraków
Kwiaciarnia wysyłkowa Kraków
Kwiaciarnia internetowa Kraków
Kwiaciarnia Kraków
Dostawa kwiatów Kraków
Kraków kwiaciarnia
Kwiaciarnia wysyłkowa Kraków
Kraków kwiaciarnia
Dostawa kwiatów Kraków
Dostawa
kwiatów Kraków

Kwiaciarnia w Krakowie
Kwiaciarnia wysyłkowa Kraków
Dostawa kwiatów Kraków
Kwiaciarnia internetowa Kraków
Kwiaciarnia Kraków
Kwiaciarnia
internetowa Kraków

t said...

Kwiaciarnia internetowa Kraków
Kwiaciarnia w Krakowie
Dostawa kwiatów Kraków
Kwiaciarnia wysyłkowa Kraków
Kwiaciarnia internetowa Kraków
Kwiaciarnia Kraków
Kwiaciarnia internetowa Kraków
Dostawa kwiatów Kraków
Kwiaciarnia wysyłkowa Kraków
Kwiaciarnia wysyłkowa Kraków
Kwiaciarnia w Krakowie
Kwiaciarnia Kraków
Kwiaciarnia Kraków
Kwiaciarnia wysyłkowa Kraków
Kwiaciarnia wysyłkowa Kraków
Kraków kwiaciarnia
Kwiaciarnia wysyłkowa Kraków
Kwiaciarnia Kraków
Kraków kwiaciarnia
Kwiaciarnia internetowa Kraków
Kraków kwiaciarnia

t said...

Kwiaciarnia Kraków
Kraków kwiaciarnia
Kwiaciarnia internetowa Kraków
Kwiaciarnia internetowa Kraków
Kwiaciarnia wysyłkowa Kraków
Kwiaciarnia wysyłkowa Kraków
Dostawa kwiatów Kraków
Kwiaciarnia w Krakowie
Kwiaciarnia w Krakowie
Kwiaciarnia
Kraków

Kwiaciarnia internetowa Kraków
Dostawa kwiatów Kraków
Dostawa kwiatów Kraków
Kwiaciarnia w Krakowie
Dostawa kwiatów Kraków

Hilary said...

I just stumbled upon your informative blog and wanted to say that I have really enjoyed reading your very well written blog posts.
buy drugs blood pressure

instantinsurance said...

Took me time to read all the comments, but I really love the article. It proved to be very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also engaged! I’m sure you had joy writing this article.Longino

instantinsurance said...

The post is very nicely written and it contains many useful facts. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement. Thanks for sharing with us. Woods

instantinsurance said...

Wow, nice post,there are many person searching about that now they will find enough resources by your post.Thank you for sharing to us.Please one more post about that.. water

diablo ti said...

Haha, sunny day again! You know iam more excited when reading your articles here, you really made my day. What's more, you just tell the point of this question and it is informative enough now, thanks again for sharing here. runescape gold for sale , runescape gold

Love polo said...

Best Place to Buy Diablo 3 Gold with Prepaid Card
Nowadays, various payment methods were accepted by d3 gold suppliers. You must want a best place to buy diablo 3 gold in a safe, fast and simple way. Here, diablohome introduce prepaid card to you. Following are some details.
Buy Diablo 3 Gold with Prepaid Card
Diablo home accept prepaid card payment, such as MasterCard, VISA and Paysafecard, etc. They are safe and convenient, just take a look at the most important advantages of prepaid cards.
1. Prepaid cards can be applied online instantly.
Prepaid cards use the deposited money, there are no repayments to be made and thus no late payment fees and other associated penalties.
2. Prepaid cards are widely accepted.
They can be used on the internet, on phone and all other vends.
3. Adding money to your prepaid card account is a breeze using direct deposit.
tags: buy diablo 3 gold diablo gold buy diablo gold


Popular shoes said...

They are all beautiful and fashionable i have to say, and my friends told me they are of good quality as well. I have not see post good enough like yours here.
More tags:
wow gold for cheap

world of warcraft money

gold for wow cheap
cheap gold for wow

cheapest gold for wow
world of warcraft sale

wow gold cheap buy





han yu said...

you can also do float('-Inf'), which i think passes the addition test.swtor gold
buy swtor gold
cheap swtor gold
tor credits
buy tor credits
cheap tor credits

han yu said...

you can also do float('-Inf'), which i think passes the addition test.guild wars 2 gold
buy guild wars 2 gold
cheap guild wars 2 gold
cheapest guild wars 2 gold
guild wars 2 gold for sale

somnus11258 said...

That is really cool. Thanks for finding it. Some really good ideas there, this is going to be a real time sink. I am a china tour lover,You can learn more: China tour packages | China travel packages | China Travel Agency

muhammad yasir bawani said...

Find home based jobs of link building, facebook marketing, add marketing, add clicking and much more jobs.
www.jobzcorner.com

Khaled Soliman said...

thanks
وكالة نيوز
مباراة
1437
مصر
منوعات