return boolean from functions

Dinu C. Gherman gherman at darwin.in-berlin.de
Thu Nov 4 07:01:18 EST 1999


a_olme at my-deja.com wrote:
> 
> Is it possible to return booelan from functions other than 
> return 1==1 for true or return 1==2 for false?

There is no such thing like Booleans in Python. What you 
describe is simply the use of Python integers as Booleans,
in this case 1 and 0, respectively.

Real-booleans-are-not-bad-but-few-people-advocate-them'ly,

Dinu

-- 
Dinu C. Gherman
................................................................
Food for Echelon: Delta Force, SEAL, virtual, WASS, WID, Dolch,
secure shell, screws, Black-Ops, O/S, Area51, SABC, basement, 
ISWG, $@, data-haven, NSDD, black-bag, rack, TEMPEST, Goodwin, 
rebels, ID, MD5, IDEA, garbage, market, beef, Stego, ISAF, NARF, 
Manfurov, Kvashnin, Marx, Abdurahmon, snullen, Pseudonyms, MITM, 
Gray Data, VLSI, Leitrim... -- Visit http://www.hacktivism.org




More information about the Python-list mailing list