Re: [Tutor] Question about Python being object oriented
On 05/09/10 02:19, Tino Dai wrote: > Hi Everybody, > > My friend and I were having a disagreement about Python. Has Python > always been an OO language or was it at one point a procedural language like > C? Thanks! AFAIK Python has always been a mixed paradigm language. You can write fully OO code if you want, as well as procedural-style or imperative-style code (especially handy for quickie-scripts[1]). But as Bob Gailer pointed out, most OOP languages are build on top of procedural base, which is itself is build on top of imperative base. [1] compare to Java, a simple "hello world" must contain a class declaration, then a 'public stupi^B^B^Batic main', etc. Even C must have "public main". ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] An interesting situation befalls me
On Sun, 9 May 2010 07:31:15 am Kirk Z Bailey wrote: > An instructor of mine is about to teach the FIRST EVER class in > Python at Saint Petersburg College; knowing I am a snakecharmer, he > asked me for referrals to online resources. > > Oh my. > > So I sent back this: [...] > And you can swim into it at diveintopython: >http://diveintopython.org/toc/index.html Here's a counter-opinion: Dive Into Python must die! http://oppugn.us/posts/1272050135.html And a few more suggestions: http://inventwithpython.com Learn Python the Hard Way: http://learnpythonthehardway.com/index -- Steven D'Aprano ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Question about Python being object oriented
On 5/8/2010 12:19 PM, Tino Dai wrote: Hi Everybody, My friend and I were having a disagreement about Python. Has Python always been an OO language or was it at one point a procedural language like C? Thanks! OO and procedural are not mutually exclusive! From http://en.wikipedia.org/wiki/Imperative_programming: "Procedural programming is imperative programming in which the program is built from one or more procedures (also known as subroutines or functions). The terms are often used as synonyms, but the use of procedures has a dramatic effect on how imperative programs appear and how they are constructed. Heavily procedural programming, in which state changes are localized to procedures or restricted to explicit arguments and returns from procedures, is known as structured programming. From the 1960s onwards, structured programming and modular programming in general, have been promoted as techniques to improve the maintainability and overall quality of imperative programs. Object-oriented programming extends this approach." -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] An interesting situation befalls me
An instructor of mine is about to teach the FIRST EVER class in Python at Saint Petersburg College; knowing I am a snakecharmer, he asked me for referrals to online resources. Oh my. So I sent back this: " Ah, python., my fav obsession. First, the language website itself: http://www.python.org/ Natch, they offer a tutorial: http://docs.python.org/tutorial/ But this one is better for rank beginniners: http://wiki.python.org/moin/BeginnersGuide/NonProgrammers And there's another one here: http://www.sthurlow.com/python/ And a nice writeup on wikipedia: http://en.wikipedia.org/wiki/Python_%28programming_language%29 You may care to go teleport to planet python: http://planet.python.org/ And you can swim into it at diveintopython: http://diveintopython.org/toc/index.html " Now here is a chance to help influence this getting off on the right foot. I can use reccomendations for texts for use in an introduction to Python class, and I will condense it down and provide them to the good doctor. -- end Very Truly yours, - Kirk Bailey, Largo Florida kniht +-+ | BOX | +-+ think ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Question about Python being object oriented
On Saturday May 8 2010 18:19:53 Tino Dai wrote: > Hi Everybody, > > My friend and I were having a disagreement about Python. Has Python > always been an OO language or was it at one point a procedural language > like C? Thanks! The Wikipedia article states: Yes, it was always an object oriented language. http://en.wikipedia.org/wiki/History_of_Python However Python has a predecessor, the ABC language, which is not object oriented. http://en.wikipedia.org/wiki/ABC_programming_language Eike. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Question about Python being object oriented
Hi Everybody, My friend and I were having a disagreement about Python. Has Python always been an OO language or was it at one point a procedural language like C? Thanks! -Tino ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor