Advanced Python or Understanding Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 121

  • @gJonii
    @gJonii 4 ปีที่แล้ว +2

    Fascinating how well this video has aged(30% in atm). I know only Python 3, with very basic understanding on how to convert python 2 to 3, and I kinda expected there to be things like, recommending coding patterns that are now discouraged, using bad tech, or just plain mistakes. Nah, this is still just really solid lecture.

  • @tetraphobie
    @tetraphobie 11 หลายเดือนก่อน

    Fantastic talk, very information dense. Had to pause and rewind multiple times to understand some bits. AFAIK, most of the content presented is still relevant in Python 3 (except for things like Unicode)

  • @SuperExplodingpenis
    @SuperExplodingpenis 12 ปีที่แล้ว

    You are to write a program that calculates the ascii numbers when given any decimal number between 0 and 255. The program is to contain a function call deciToAscii(number) that accepts the decimal argument and returns an ascii number as an eight character string.

  • @PengfeiXue
    @PengfeiXue 12 ปีที่แล้ว +2

    this is a great tech talk, help me review the basic parts in core python programming

  • @TechMetalPenguin
    @TechMetalPenguin 11 ปีที่แล้ว +17

    13:00 I was thinking... What about the nonlocal statement?! Then I realized this talk was in 2007 haha.

  • @frankcui
    @frankcui 7 ปีที่แล้ว +2

    finally understood all the concepts for real after 6 years :)

  • @noli-timere-crede-tantum
    @noli-timere-crede-tantum 3 ปีที่แล้ว +1

    Title of presentation: "advanced python".
    First slide: "what is python"

  • @BlackBlok
    @BlackBlok 12 ปีที่แล้ว +1

    well, you are probably right, its probably a pretty wicked kick ass programming language

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice Python is a nice little language when everything already has some kind of shape or form, however in order to message that data with python to prepare it to be processed python is a nightmare.
    Every little thing a module has to be imported, there has to be a regexp module imported a strings module imported.While its very nice that scope is enforced automatically in order to manipulate truly manipulate data you have to get comfortable with list comprehensions.

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice Whilst reading python code you happen across a function (ie func()) and if it isnt predefined in the code somewhere you have to hunt down its definition somewhere in the python module directory. It may be as easy as help(func) at the python prompt but you have to do is so often. Even then the python docs are crufty and crusty, too much is taken for granted. Something that python presumably was supposed to move away from when they copied elements of Perl.

  • @gerardus03
    @gerardus03 4 ปีที่แล้ว

    Just needed this video, thanks!!!

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    I was going to post a snippit from a standard module. a snippit that looks like keyboard barf. it literally looks like someone smashed there face along the number row....but i cant because it causes an error in the text handling in youtube.
    i can write 'readable' code in the whitespace language, but no one would claim it's readable or understandable. The language is ugly for it.
    Perl CAN be done in such a way that is clean and understandable. but it's EASY to make a cluster.

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    I've seen perl programs which look like someone banged there head on the keyboard. I've actually SEEN them. now you *can* violate python to make it do the same thing, I fully agree, but the language doesn't practically beg you to do it. older style perl did. the newer perl stuff doesn't but it's still not as nice as python, though I do enjoy lua for some of the similar work, but python is gaining ever more packages for my job so I fully expect it to be the way I continue on.

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว +1

    @addmoreice And leaves the parsing format up to the programmer. Handing control back to the programmer like that is beautiful.

  • @jthtx832yt
    @jthtx832yt 16 ปีที่แล้ว +1

    man im taking a intro to computer programming and we use python, just basics right now though. its pretty cool to learn how to program a little bit but i dont know how the s.a.p.p.ers can just sit in front of a computer all day and write code, but then i guess they would say the same thing about me if they had to learn about resistors,inductors,diodes,capacitators,osciliscopes,multimeters,functiongenerators, and had to build a multi-stage amplifier from scratch.

  • @rajdivecha
    @rajdivecha 11 ปีที่แล้ว +1

    Noticed how the audience burst out laughing when the instructor said everything in Python is simple (while he was explaining metaclasses)?
    That's exactly the problem with many books and instructors. They use a lot of jargons that were invented when the particular programming language was invented. They should rather explain things from a user's point of view. For example, if so and so is the behavior you want, this is what you have to do.

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice Even Mark Lutz admits that list comprehensions are ugly, frankly I'm quite fond of them. But again they only work when the data is nice and pretty and neat. Otherwise you have to labor under how python interprets the data and work with it in a very structured way. Additionally python does not have types, it has containers, types are an after thought. Containers take precedence over everything. Perl on the other hand was designed specifically with text processing in mind and

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    wonderful argument.
    I point out that perl can be easily abused...you ignore that.
    I point out that python can be abused as well...but usually isn't, even by newbies. You ignore this as well.
    My personal experience (which, I admit is purely anecdotal and so not worth much) also doesn't count at all.
    You ignore my point about packages (you could have brought up perls huge package listing but no, evidence is too hard), and finish it of with an ad hominem.
    I now MUST agree =-P

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    Yes, it is beautiful. Just as lisps 'data is code' paradigm is wonderfully both powerful and simple in concept and structure.
    It's also possible to be abused in ways that make me shudder considering how to debug/correct. Yes, it allows for wonderful nearly poetic constructs with simplicity and use.
    But when I'm programming my VCR I don't want Haiku. I want plain simple English. I *really* don't want *bad* Haiku when programming my VCR.

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    wtf? what version of python are you using? works fine on 2.2+

  • @MovieBoxOffice
    @MovieBoxOffice 15 ปีที่แล้ว

    watching this action video non-stop!

  • @Phatency
    @Phatency 9 ปีที่แล้ว

    In practice, bugfix-releases may also break your code 4:10

  • @FlashManinSpace
    @FlashManinSpace 10 ปีที่แล้ว

    Python is by far the most interesting language ever created! Sure there are high end langs like Scala and the Lisp family but Python is just soooo.... FUN! Is it wrong to have fun while working??

    • @PixelOutlaw
      @PixelOutlaw 10 ปีที่แล้ว +3

      Interesting that you mention Lisp. The basis for Lisp is lists but in many things the basis for Python seems to be a dictionary. Perhaps it is the central concept of container manipulation that makes these languages so flexible. Especially when the containers do not have to contain homogeneous items. When you can store non homogeneous things in the same container you have a basis for OOP and many other interesting things.

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @addmoreice
    If NO then you are arguing that 'more difficult' has no metric and is a meaningless term, in which case again go back to programming in binary.
    If YES then you agree that there IS some metric. One such metric is to take a moderately trained programmer (define this how ever you like) and ask them to program a moderately difficult task (again however you like).

  • @pacrii
    @pacrii 9 ปีที่แล้ว

    tape change? Google was still recording on tapes back then?

  • @BlackBlok
    @BlackBlok 12 ปีที่แล้ว

    at least the wiki for snake comes up first in google for me when i search.. when i search python I get the wiki for python programing language...
    and no knock on the actual language, I guess we all use it if we use linux...

  • @hrgwea
    @hrgwea 7 ปีที่แล้ว +1

    1:07:00 seven or eight bytes per character?
    That is non-sense.
    The farthest character in the Unicode table (0x10FFFF) can be encoded with just 4 bytes.

    • @TheJDen
      @TheJDen 3 ปีที่แล้ว

      That looks like 6?

    • @hrgwea
      @hrgwea 3 ปีที่แล้ว

      @@TheJDen That's hexadecinal notation. Each character represents 4 bits, making the whole number 24 bits (i.e. 3 bytes).
      UTF-8 needs 4 bytes to encode that 3-byte number.

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice And despite what you might have led yourself to believe all of the internet is based on text processing. At the core of data processing is text processing, hence perl has types and with those types you build your own containers. So based on these observations I've made I know that python is no more readable than perl and in many cases much less so. Which leads me to conclude that perl is not unreadable, you have a hard time reading. The problem is not perl it is you.

  • @deeps-n5y
    @deeps-n5y 7 ปีที่แล้ว

    Great video !

  • @moorsalin3
    @moorsalin3 13 ปีที่แล้ว

    @HOORVT why not get pissed that apples have been copyrighted, and so has the feeling of glee, or the humiliation of rick santorum
    and what about the monty python flying circus, which is what python programming is named after

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice No docs may be the noobs fault, they get 40-45% of the blame, the rest of the blame falls on their managers.

  • @sayan883
    @sayan883 7 ปีที่แล้ว

    are unbound methods similar to static methods?

  • @xxgeimxx
    @xxgeimxx 15 ปีที่แล้ว

    can someone make a video for setting up and using py2exe please
    im not sure how to use it

  • @ninjapirate123
    @ninjapirate123 2 ปีที่แล้ว

    Now I understand what python is

  • @Ep1cSh0rtz
    @Ep1cSh0rtz 16 ปีที่แล้ว

    awesome video thanks!

  • @BlackBlok
    @BlackBlok 13 ปีที่แล้ว

    @Alpeche21 yeah bad day that day :P im sure this pyhton program kicks ass in all aspects

  • @DarkShroom
    @DarkShroom 12 ปีที่แล้ว +1

    if you coded in Python you wouldn't be angry cos it's fucking awesome

  • @huanghst
    @huanghst 10 ปีที่แล้ว +1

    It's magic and it just works

  • @Stevokeef25
    @Stevokeef25 7 ปีที่แล้ว +3

    7:15 why the fuck is there a dog barking?

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    yup, just like perl. only readable.

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    "Again, the problem is not language the problem is *you*."
    Yes, in the discussion on 'is the language easy to abuse' part of the equation is the language, part is the user. Very good. here is a cookie.
    Is binary easier for a human being to understand then perl?
    If NO then go produce your programs in binary directly. tell me how well that works for you.
    If YES then you agree that language x can be more difficult for people then language Y.
    Now, are there ways to asses this?

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    Strange, you didn't address any of the core of my comments. You ignored the points I made about ease of use for both experienced and beginner programmers (providing a trade off on skills of employees), ignored my point about 3rd party issues...and then deleted a bunch of spurious ad hominem attacks. The only point you DID make I fully agreed with you on....and pointed out how it's an unusual circumstance (though a valid one).
    Joust at another windmill, tell me how that goes.

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice No its not. You only think it is because youve bought their little 'tag line.'
    Continue droning.

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    All executions happens in namespace, and the namespace is a dict. Wow. Just like perl. I mean *exactly* like perl.

  • @ManicEightBall
    @ManicEightBall 12 ปีที่แล้ว +1

    The word "python" hasn't been stolen. It's still right there in the dictionary where it always was. Calm down.

  • @jessehorne2796
    @jessehorne2796 11 ปีที่แล้ว

    *code for two hours while listening to this*
    *come back and see that the video has only been playing for 6 minutes*

  • @fatal510
    @fatal510 14 ปีที่แล้ว +1

    why is there a dog in a classroom?

  • @Squad2ND
    @Squad2ND 16 ปีที่แล้ว

    I would rather say POOR US, if we don't get the work done! :) Python and Jython in general, has saved my ass on a numerous occasations, and it KICK ASS for class interaction prototyping! And I actually begin to love indentation! :)

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @addmoreice
    Then simply ask these same groups of moderately trained programmers and ask them to modify those previous programs in whatever way you think is appropriate.
    How easy is it for any of those moderately trained programmers to read the resultant code and understand it? This would seem to be a meaningful (though fuzzy) metric of ease of language understanding.
    Perl bombs this test, and badly. Lots of bad perl, some good.
    I use perl, I've debugged 3rd party software in it. I know it.

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice or they dont. Your complaint keeps coming back to the fact that you are simply incapable of understanding any code that isnt your own. Perls or pythons readability have no bearing on your ability.
    You've never had to wade through 3rd party software written in python, so you cant definitively say that you know what youre talking about.

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    I repeated the salient points of the discussion yes....and notice your contribution has been 'nuh uh' and 'your stupid!' comments? I agreed where you where right, and showed the places where you where wrong with evidence.
    It's called an argument. try it some time.

  • @umarpazir
    @umarpazir 14 ปีที่แล้ว +1

    python nice language.................!!!!!!!!

  • @cubixthree3495
    @cubixthree3495 4 ปีที่แล้ว +1

    Python is a bunch of words that makes computers do stuff

  • @sandysandeep7227
    @sandysandeep7227 8 ปีที่แล้ว +2

    Is this tutorial outdated? I haven't watched it yet. I'm currently learning Python and wanted to learn some Advanced stuff. Since this video is made in 2007, I'm not sure how much is outdated. Can someone help me on this, please? Thanks.

    • @SHONNER
      @SHONNER 8 ปีที่แล้ว +1

      It's a history video.

    • @shanedooley5948
      @shanedooley5948 8 ปีที่แล้ว +5

      always something to be learned

    • @TheOlian04
      @TheOlian04 8 ปีที่แล้ว +2

      Sandy Sandeep it's not a tutorial.

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    My complaint deals with what I have to work around and fix every day, all day long. Not with how wonderful and detailed the structural constructs I can produce with this system will be. I would rather read a badly documented but clearly coded hack that takes up ten pages and gets the job done in a slow and plodding manor, then a ten line haiku that does things with wonder and panache....but also takes me 2 hours to dig through to find the misplaced '
    Noobs don't doc >.

  • @platypusmethod
    @platypusmethod 12 ปีที่แล้ว

    You sir, are very confused. You can still use the name Python in all kinds of contexts. Nothing has been stolen from the English language. You can open a Python Cafe, or launch a Python breakfast cereal, or start a Python political party. You just probably shouldn't start a new programming language and call it Python, case Guido already did that.

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice You clearly have not actually looked at third party software written in python. You can look at Django, Satchmo, any other number of 'plug ins' to find 'ugly code'.
    Again, the problem is you mistake style for substance.
    A more intelligent way to judge if something is 'ugly' is to first understand what is happening underneath the code. Something you are clearly are unable to do, with python everything is a guessing game. For example whilst

  • @hahaa678
    @hahaa678 6 ปีที่แล้ว

    Please anyone help. I lost my password to my ETH wallet and am trying to install/run this python program. When I try to click on the downloaded file with the python icon, it opens then quickly closes. When I try to run the file through python ver 3.0 (command line), i keep getting errors. Am I doing something wrong or is the file corrupted? Please someone help me will give you some ETH if I succeed in cracking my wallet. Here is the python file: github.com/Isaacdelly/Plutus

  • @AngusHollands
    @AngusHollands 11 ปีที่แล้ว +1

    Ironic that you use a web service powered by Python.

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @ThunderAppeal
    ad hominem ad hominem....
    I said, yes. perl is easier for parsing. i agree. but perl can look like keyboard headbang spam, python does not. perl makes it real easy for a new programmer to do a lot of damage. python less so.

  • @yotty97
    @yotty97 16 ปีที่แล้ว

    python is great, but ruby gives it a serious run for its money :)

  • @BlackBlok
    @BlackBlok 12 ปีที่แล้ว

    well "free" in that way

  • @addmoreice
    @addmoreice 14 ปีที่แล้ว

    @addmoreice
    Python doesn't do this perfectly by any means.
    The 'oh it's a script and lets add some more' problem is rampant in python (and perl, and bash scripts).
    But some of the many OTHER issues are far less.
    Your responses are pretty much devolving into Ad Hominem and false assertions my argument is based on some reasoning.
    Use the right tool for the right job. If you have to work with a lot of monkeys lean towards python. If you know YOU are doing it, use perl.

  • @MrSedamdeset
    @MrSedamdeset 12 ปีที่แล้ว

    Veeeeery nice, in addition dude looks like Lionel Messi :D

  • @TazG2000
    @TazG2000 11 ปีที่แล้ว

    It's remarkable how a failed google search a year ago keeps you raging about intellectual property to this day. What I don't understand is how you don't see the hypocrisy and contradiction. You say words are "free", yet want them to refer to only the one thing that you happened to be looking for.
    "early bird gets the worm" -- in other words, words are the early bird's property, not free. You curse "content creation controllers", yet you're the one advocating the elimination of derivative works.

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice But again, lets judge 'ugliness' and 'pretty' in terms of functionality. As I said before, with python, whitespaces and 'containers' reign supreme. To me that is ugly because data does not present itself in a pretty structured way. But thats the problem with computer 'scientists' today, they expect data to be pretty because they were trained in a data clinic. Where there are on surprises and data always shows up 'pre-fabbed'. Perl however takes data in and leaves the parsing up

  • @FreewillTutorials
    @FreewillTutorials 16 ปีที่แล้ว +1

    78:00

  • @philharis09
    @philharis09 12 ปีที่แล้ว

    Your not set out for it then

  • @RealPhix
    @RealPhix 13 ปีที่แล้ว

    @HOORVT LOL umad bro?

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice You continue to contradict yourself and at the same time pat yourself on the back for having made a 'strong argument' that backs up your position. The only thing you just barely rise up to the occasion for is that you admit that your personal experience are highly subjective. But thats all you say that is true, everything else are talking points du jour that you've been fed and have gobbled up.

  • @GOOB3000
    @GOOB3000 15 ปีที่แล้ว

    one hour?!!!

  • @vladblm
    @vladblm 12 ปีที่แล้ว

    you made me laugh :)). i feel your pain but you should append "snake" when you google python

  • @samann9
    @samann9 16 ปีที่แล้ว

    got scared of the mighty python after watching ... going back to my simple & humble php :)

  • @marshmalloney
    @marshmalloney 13 ปีที่แล้ว

    @HOORVT what so because your some weirdo who wants to look at pythons a long-standing highly powerful programming language is not allowed?

  • @justgivemethetruth
    @justgivemethetruth 8 ปีที่แล้ว +15

    Computer Science people really do not seem to get or learn the lessons of Computer Science. For example, this is an advanced Python talk ... so why does he waste time at the beginning explaining what Python is? We know or we would not be here or watching this. Everyone does this, so subtract 5 minutes from every talk ever done on every subject and realize what an insulting waste of time this is. People to do these talk for themselves. They want to be seen as knowing something, but they don't really want to get to the point, they just want the status. That's my hypothesis anyway. Just start in with an overview of what you are going to do ... and then get to it in an ordered manner.

    • @A.B.00007
      @A.B.00007 8 ปีที่แล้ว +3

      Google Tech Talks
      February 21, 2007
      it was fancy den!!! skip ahead if you're not interested..

  • @Squad2ND
    @Squad2ND 16 ปีที่แล้ว

    I try to write more mature, but I will try to reply to you, in your level... "Ay dog! You ain't shit without a book bout' Python programmi' man! You dig? Need to go to da bookstore man, or down' some nice ebook shit from da Net! You will' come up to da speed in no time, dog! And understand diz video! You dig, biatch ?" :)

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว

    @addmoreice Youre just repeating everything I told you earlier on. You dont even bother rereading any comments except your own.
    And now youve regurgitated everything I wrote to you.
    Please repeat yourself some more, I'm sure you feel proud of yourself when you do.

  • @moorsalin3
    @moorsalin3 13 ปีที่แล้ว

    @HOORVT python returns programming language
    pythons returns the snake and the flying circus

  • @ThunderAppeal
    @ThunderAppeal 14 ปีที่แล้ว +1

    @addmoreice "NameError: name 'strip' is not defined"
    Your ignorance is tedious, your abilities are mediocore.

  • @BlackBlok
    @BlackBlok 11 ปีที่แล้ว

    everyone uses python...

  • @TazG2000
    @TazG2000 11 ปีที่แล้ว

    No, you cursed the creators for "making it property". You're absolutely wrong, though, because "Python" is not copyrighted. It's an unregistered trademark, which is explicitly defined as NOT property.
    So, in our wonderful world, biologists, British comedy troupes, and Dutch programming language designers all have equal freedom to share the same name for their concepts.
    But then there's HOORVT, shitting all over their freedom and trying to give monopoly rights to snakes. Shame on you.

  • @TheHabboHax0r
    @TheHabboHax0r 14 ปีที่แล้ว

    *mind explodes*

  • @sminfosoft1
    @sminfosoft1 14 ปีที่แล้ว

    web solution..

  • @BlackBlok
    @BlackBlok 12 ปีที่แล้ว

    hehehe

  • @BlackBlok
    @BlackBlok 11 ปีที่แล้ว

    i have a big problem with charity!!!

  • @BlackBlok
    @BlackBlok 12 ปีที่แล้ว

    FU

  • @DizzyFoxkit
    @DizzyFoxkit 16 ปีที่แล้ว

    then again, you probbably didn't have to learn yourself..

  • @AngusHollands
    @AngusHollands 11 ปีที่แล้ว

    I don't see your point. "i want to learn about PYTHONS not fucking computer programing" Is irony, because it's nested. Think Inception, if you must. Some dislike the name, that's perfectly acceptable. But there is no logical motivation behind your post, and you lack of formal English begs me to question whether it is I that is struggling in the area of mental competence.

  • @samacumen
    @samacumen 11 ปีที่แล้ว

    Can you take a break please? You have the knowledge but you never stop speaking, do you??

    • @TheOlian04
      @TheOlian04 8 ปีที่แล้ว +3

      samacumen pause the video?

  • @yyttr4
    @yyttr4 14 ปีที่แล้ว

    @Testerer004
    Well, you see, most people don't wait till there 20 an in college to learn programming. I know most of my friends started learning C and creating games in middle school. So, I would say a lot of us are most likely extremely young.