Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

RCMorea Group Title

I recently asked a question about converting strings to lists. Turns out, there is a function that will do it for you. I'm wondering are those functions themselves written in python or something else? Would it be possible to get a look at them? I had been thinking of how to do it (write this function) myself, and it seemed like one of those things you can see is possible but you don't know how to do it. Would a freshly minted BS in Comp Sci be expected to be able to self-implement any given function in Python?

  • one year ago
  • one year ago

  • This Question is Closed
  1. bwCA Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    The purpose of the course is not to teach you the Python programming language - it is to teach you computer science and programming methods. They expect you to avail yourself to the wealth of help and documentation available for the language itself. The Tutorial in the Python documentation is a good place to start. I read through it numerous times (a little farther each time) while i was learning the language. I find the documentation installed on my computer (windows, F1 in IDLE) much easier to use than the online version.

    • one year ago
  2. TuringTest Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    You can also use the dir function to find the list of all operations on a given object type, for instance running dir('random string') will give you a list of all operations and class definitions for that object type, in this case a string. You can then use the help function for that particular operation, for instance if you want to know what the function pop does to a string, you can type help('random string'.pop) and you will get a description on IDLE of how the function works.

    • one year ago
  3. RCMorea Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Well, for now I probably should focus on the basics, but I'd just like to see the source code of those functions, to see how they did it. Anyway, though, I do appreciate all responses. This should be a long journey.

    • one year ago
  4. bwCA Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    ask the question in the pydev irc channel. i am sure the source is available. thingk the source for all the buitin functions and builtin datatypes is in c

    • one year ago
  5. bwCA Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    maybe in here: C:\Python27\include (windows install)

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.