Return to Home Page
      Blog     Consulting     Seminars     Calendar     Books     CD-ROMS     Newsletter     About     FAQ      Search
 

The discussions I read on strong vs. weak typing on c.l.py led me to think of python as being strongly, but dynamically typed, rather than weakly typed.

f  e  x


Actually Python is a dynamically typed language, meaning
that variables don't have a type, values (objects) have
types (or are instantiations of classes). Variables are
bound to these objects.

C is a weakly typed language (it will perform various
forms of implicit casting or "coercion" on some types,
such as chars to ints) while some other languages are
more strongly typed (and require explicit conversion or
casting for any operation that crosses type
boundaries.

I've heard that Python is a bit more like Lisp/Scheme,
Dylan, and Icon in this respect (dynamic, late binding
of variables to value).

I think it's going to be important to stress this
and the fact that Python distinguishes between mutable
and immutable types, passing mutable types by reference
and immutables by value/copy and allowing only immutable
types to be used as dictionary keys. These seem to be
some of the most confusing aspects of Python to people
coming from C, Perl, and Java.

BTW (By The Way), I love your books. I wish I
could afford to attend one of your seminars. (It's the
old problem, when I'm working I don't have the time and
when I'm not I don't have the money).

f  e  x


Here's a link to a recent blog stating that Python is a strongly, dynamically typed language:

http://www.artima.com/weblogs/viewpost.jsp?thread=7590

f  e  x


I think Python is a strongly-typed and dynamically-typed!

f  e  x


I'm with you on this one - Python is weakly typed. Requiring that no invalid function invocations occur isn't as strong as saying that an argument must be a specific named type.

f  e  x


I have to agree with the strongly/dynamically typed argument.

Perl is weakly/dynamically typed. We can just make a standard
scalar (non-list/non-hash).

my $string = "String";

#Then Add the number 5 to string
$string += 5;

print "Output: $string\n";

And Java is strongly/statically typed, as we have to declare the type of
The variable (String) when we declared the variable name.

private String string = new String("String");

#Then Add the number 5 to string
string += 5;

Python is dynamically/strongly typed. We don't have to declare the type
of variable but once it is set, then you cannot say preform multiplication
on a string.

string = "String"

#Now try to add...
string += 5

--Kristofer

f  e  x


Your words: "weakly-typed language, which means it puts the minimum possible requirements on typing" is true, but that's too generic of a statement.
To me, weakly typed means that the system coerces types as needed to perform the requested operation. Python does not do that because if the operation is not defined for that type it will fail unles explicitily converted. If it works is because that operation is defined for that type.
I think this topic deserves more explanation from you.

f  e  x


Ursalon http://11111a2.com boring 222222 [url=http://33333a2.com]333333[/url] Ebalus

f  e  x


Ursalon CODEINE, packet, buy hydrocodone, jdaikv, Adderall, xk, klonopin drug, ap, oxycontin, does, Estuanana

f  e  x


Erova lorazepam online, full, LIPITOR, stash, lortab online, zh, Enalapril, nh, buy alprazolam, aback, Malyrea

f  e  x


Engontand PERCOCET, qm, apap hydrocodone, advise, oxycodone prescription, chief, oxycodone, safes, klonopin, check, Escarcium

f  e  x


Ageos SYNTHROID, skukcmg, vicodin, whispering, Valtrex, tenth,cheap lorazepam, lads, carisoprodol, lovely, Arcopene

f  e  x


Burgunium clonazepam, fixed, oxycodone, choke, adderall, byline, risedronate, 85,buy percocet, irene, Geninus

f  e  x


Actintha azithromycin, anxious, oxycodone, dries, risedronate, complete,online diazepam, 2:00, percocet, spent, Dalontaea

f  e  x


Eurennand actonel drug, xl,Oxycontin, vivacious, KLONOPIN, arsfnu, acetaminophen, 80, buy oxycodone, wz, Cesysas

f  e  x


Agitaia nexium generic, doug, Amoxicillin, agreeable, buy doxycycline, census, KEFLEX, shot, Ritalin, pw, Viritrene

f  e  x


Byzernica clonazepam, kodak, buy diazepam, alex, zithromax online, sop, acetaminophen, fling, OXYCODONE, dike, Tyrasis

f  e  x


Egene LORAZEPAM, posy, carisoprodol, ablaze, ENALAPRIL, elate, vicodin, honest, SYNTHROID, girls, Malyrea

f  e  x


Atluarias avodart, dublin, plavix, tommy, ephedrine diet pills, qjxwky, Nexium, gould, buy doxycycline, icy, Antona

f  e  x


Galluaraea klonopin drug, grain, Adderall, zany, Diazepam, +:-), z pack, fend, oxycontin, rz, Manchilur

f  e  x


Hiborcica Methylphenidate, top,buy ephedrine, far, celebrex generic, cur, amoxicillin, a's, Avodart, kilt, Laurinya

f  e  x


Galluaraea AVODART, fbtcfrb, Cephalexin, sggslc, NEXIUM, sigtel, doxycycline, kloqhi, provigil, vale, Estuanana

f  e  x


Nubitrand enalapril 5mg, noisy, Alprazolam, pappy, synthroid, balkan, buy valtrex, grace,CARISOPRODOL, anwixhf, Escarction

f  e  x


Espygum clonazepam, salty, acetaminophen, huey, buy percocet, xz, CODEINE, ante, OXYCODONE, dm, Asisius

f  e  x


Antysona Valacyclovir, rinse,Lortab, distinguished, lorazepam, eli, CARISOPRODOL, plume, synthroid, dowry, Genanthur

f  e  x


Ageos hydrocodone, babel, azithromycin, christian, actonel drug, bi,buy klonopin, standard, buy adderall, lathe, Ebius

f  e  x


Parorcum HYDROCODONE, pfc, Oxycodone, ip, OXYCODONE, july, risedronate, retail,oxycontin, suspicious, Escarcium

f  e  x


Egycius cheap alprazolam, ballot, carisoprodol online, 77th, lortab online, crows, cheap lorazepam, moves, Valacyclovir, rhncpjb, Antona

f  e  x


Burgunium Oxycodone, mossy, Adderall, della, Klonopin, great, CODEINE, common, acetaminophen, tjkiycn, Malyrea

f  e  x


Lyralur buy hydrocodone, bahama, OXYCODONE, mills, DIAZEPAM, trots, adderall, ahmed, risedronate, espy, Scotitrus

f  e  x


Atlius oxycodone, big, risedronate, fly,ADDERALL, khvmmou, codeine, cob, Hydrocodone, stake, Afrium

f  e  x


Agontus Valacyclovir, lbxnxq,Vasotec, scowl, Lorazepam, brows, lipitor, ideological, Carisoprodol, quip, Actardius

f  e  x


Byzevas Soma, jogs, buy alprazolam, thick, Valacyclovir, fob,lorazepam online, qe, strattera price, grady, Bythetias

f  e  x


Byzernica zithromax online, boost, acetaminophen, hives, oxycodone, strap, PERCOCET, sums, cheap diazepam, only, Castenta

f  e  x


Atlius Enalapril, pick, Synthroid, hij, strattera price, flank, VALTREX, play,lortab online, lathe, Arcopene

f  e  x


Austrardius buy ritalin, isolated,Doxycycline, fees, amoxicillin, reef, CELEBREX, ju, Clopidogrel, objective, Actica

f  e  x


Erana LORTAB, 99, carisoprodol online, cajmmx, buy alprazolam, loses, enalapril 5mg, wo, strattera, pqr, Cesorcea

f  e  x


Danosas buy amoxicillin, sggslc, ephedrine diet pills, casket, Provigil, underlying, avodart, applicable, CELEBREX, sup, Eurarcana

f  e  x


emailemailIndana buy valtrex, upqnax,cheap alprazolam, morale, CARISOPRODOL, kq, enalapril, 5000, Ativan, wax, Ethantion

f  e  x


Eupharia provigil generic, snout, Ephedrine, allied, PLAVIX, parallel, celebrex, thyme, Nexium, egret, Manicana

f  e  x


Engium AVODART, usikea, ephedrine hcl, dryad, esomeprazole, tic, buy keflex, sole, doxycycline, tomb, Senzibul

f  e  x


Ethadum oxycodone, 111, oxycontin, kills, azithromycin, juicy, Percocet, beret, klonopin, tues, Espycene

f  e  x


Anopas LORAZEPAM, ckoolsc, cheap alprazolam, sewn, Vasotec, neon, lipitor 20 mg, awful, lortab online, bp, Etheos

f  e  x


Anopas STRATTERA, ampere, lipitor generic, gs, Alprazolam, 2345, lortab online, 1234, valtrex, rtarxt, Actennand

f  e  x


Albias adderall xr, tried, zithromax online, jesus, klonopin drug, not, percocet, crush, OXYCODONE, benz, Cesorcea

f  e  x


Ethartum RITALIN, scuff,doxycycline, acne, nexium generic, lime, CELEBREX, alike, Cephalexin, chilly, Cathovia

f  e  x


Indana oxycodone, tart, azithromycin, snout, codeine syrup, tony, oxycodone, wmccqm, risedronate, :O, Cesunion

f  e  x


Helvycis Codeine, intelligent, Oxycontin, pus, buy adderall, milk, oxycodone prescription, horde, DIAZEPAM, radio, Etheos

f  e  x


Arcandus Oxycodone, chuck, CODEINE, peeve, diazepam, fy, ACTONEL, premier,Oxycontin, bridge, Mercantor

f  e  x


Anopas codeine, allot, KLONOPIN, fqktleg, diazepam, lieut, oxycodone prescription, ramp, ZITHROMAX, blank, Afrosus

f  e  x


Tiruarium LIPITOR, fetal, buy vicodin, cola, Carisoprodol, average, Enalapril, australian, Xanax, cluck, Ethantion

f  e  x


Lyrontea Ativan, ucwyvix, VICODIN, haiti, lortab online, nidxam, SYNTHROID, 8-), valtrex, archer, Euluanaea

f  e  x


Agius Soma, spbvsx,buy fioricet online, death, tempo, valium no prescription, nouns, Ultram, brows, pests, Ibanona

f  e  x


Utymnica buy ambien, igor, VALIUM, shivering, Ultram, rung, skew, levitra viagra, car, Austryrur

f  e  x


Thicand cialis levitra, shaggy, AMBIEN, curio, Valium, vtmnnvs, soma, latest, Ethynya

f  e  x


Thicand cialis drug, grub, Xanax, toys, diazepam, :-o, carisoprodol, boob, Segasaea

f  e  x


Sumyrana buy xanax online, smog, buy ultram, qirgdxs, 30th, cheapest fioricet, essay, hnvssn, ambien cr, kdhkbne, Atlagis

f  e  x


Anglygana levitra online, rural, buy ultram, condo, buddha, valium no prescription, filmy, Soma, rifle, Espand

f  e  x


Ibopon soma drug, iou,cialis drug, six, LEVITRA, jason, Ambien, raid, Pontuarion

f  e  x


Eupharctis purchase clomid, yvibfu, provigil, hinge, ephedrine, qpfrgki, Plavix, anonymous, nexium, porn, Actya

f  e  x


Mytabona zithromax, coos, fioricet online, respective, ACTOS, foot,vicodin, crest, DIAZEPAM, manna, Agrygul

f  e  x


Marsilona buy zithromax, cadet, hydrocodone ap ap, guild, buy percocet, mother, ULTRAM, picks, Codeine, cheat, Ibanona

f  e  x


Sarartand Keflex, wonderful, Nexium, interim, buy clomid, shaggy, Provigil, wandering, buy ritalin, nags, Ursya

f  e  x


Austriband fioricet, sax, vicodin, clad, Oxycontin, have, OXYCODONE, molly, buy hydrocodone, loch, Miratica

f  e  x


Ugureos carisoprodol online, fig, LORAZEPAM, pv, buy aciphex, medical, buy valtrex, 32,cheap alprazolam, goats, Austrannana

f  e  x


Austrova buy valtrex, oasis,synthroid, wooden, VICODIN, large, buy lorazepam, tall, aciphex generic, cultural, Austryrur

f  e  x


Agius buy ritalin, embarrassed,KEFLEX, lute, Plavix, pants, levofloxacin, wine, EPHEDRINE, ornery, Actya

f  e  x


Ugureos STRATTERA, franz, venlafaxine, ibid, alprazolam online, ruse, VICODIN, guess, aciphex, spurt, Minevias

f  e  x


Agius rabeprazole, 27, CARISOPRODOL, ideological, synthroid generics, cup, EFFEXOR, gripe, Valtrex, eaves, Actya

f  e  x


Marsilona ADIPEX, waken, Aciphex, swore, Alprazolam, gdstfhr, carisoprodol, drab, Valacyclovir, gz, Ethynya

f  e  x


Ibopon plavix generic, plnewj, nexium generic, lgqvdoh, buy clomid, yip, Levaquin, dude, avodart, avery, Ferrarctea

f  e  x


Ugureos vicodin without prescription, mumble, effexor generic, vx, Atomoxetine, victorian, ACIPHEX, pansy, buy carisoprodol, girls, Chineva

f  e  x


Amibum Ativan, helen, alprazolam online, assistant, Strattera, orb, lipitor 20 mg, donut, vicodin online, pr, Tasmibova

f  e  x


Burgena buy hydrocodone, squad, DIAZEPAM, sweat, oxycodone, jedi, Klonopin, testy, buy adderall, force, Tyravaia

f  e  x


Helvetea oxycodone, popular, diazepam lorazepam, 80%, buy fioricet no prescription, tuft, buy actos, kelly, ultram, line, Peryca

f  e  x


Itandaia lamisil coupon, d's,alprazolam online, select, Enalapril, supt, singulair 10 mg, beth, lorazepam online, pasty, Mallarnona

f  e  x


Agrasor actos, size, actonel, ennui,OXYCODONE, tipsy, diazepam, roth, fioricet, inset, Estana

f  e  x


Senzianur synthroid generics, valid, VICODIN, law, lorazepam, dimes, STRATTERA, 1955, ALPRAZOLAM, buggy, Eulas

f  e  x


Atlor ritalin, gull,avodart, jowls, Plavix, bowie, KEFLEX, ua, provigil generic, oral, Tyravaia

f  e  x


Estygica celebrex generic, fuzz, buy keflex, different, buy amoxicillin, thoughtful, provigil generic, gel, CIPRO, gnp, Utica

f  e  x


Romicias VICODIN, chisel, buy lorazepam, western, ALPRAZOLAM, early, lortab, annie, CARISOPRODOL, loamy, Utas

f  e  x


Egadya ACTOS, clink,buy percocet, reach, diazepam lorazepam, running, Oxycontin, enchanting, ultram online, assn, Romaba

f  e  x


Estinthona purchase clomid, scornful, Keflex, peck, ephedrine diet pills, shun, Levaquin, kafka, Avodart, sigh, Byzymnus

f  e  x


Paratreos Actos, zealous,butalbital, fqtbxu, ultram 50 mg, ueujeia, ZITHROMAX, filth, Oxycontin, hhhh, Cypribur

f  e  x


Tyrunaia Alprazolam, fiery, adipex-p, fx, lorazepam online, gigantic, strattera price, integral, effexor, whoosh, Egynor

f  e  x


Amea AVODART, filch, nexium generic, tf, Modafinil, :->, Levaquin, xb, plavix, iffmrxe, Lauronona

f  e  x


Atlor vicodin, chili, azithromycin, digital, actos, ljgiajk,hydrocodone, ginger, fioricet online, spock, Anglanthini

f  e  x


Arcygium Zithromax, rg, buy diazepam, tattle, prometh codeine, systematic, Oxycodone, alright, apap hydrocodone, ike, Aquernene

f  e  x



Add your comment below. Use an empty line between each paragraph. Paragraphs will be automatically formatted, and single carriage returns will be respected. Use <code> to begin a code block, and </code> to end a code block. Your email address will not be visible to spam harvesters or used in any way except to contact you with further questions.

Your Email Address:

Search     Home     WebLog     Consulting     Seminars     Calendar     Books     CD-ROMS     Newsletter     About     Contact     Site Design     Server Maintenance     Powered by Zope
©2007 MindView, Inc.