How to write a new python module??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fordie1000
    New Member
    • Mar 2008
    • 32

    How to write a new python module??

    Hi,

    I am not new to python and I use it all the time but I was wondering how to
    create a brand spanking new module?? I know I could write it in python and
    import it etc. but I was wondering how the professionals do it?? I mean
    I assume they write the modules in C/C++ using their API's?? Could anyone maybe clear up the whole process for me?? Or point me to a good tutorial??

    Thanks,
  • Laharl
    Recognized Expert Contributor
    • Sep 2007
    • 849

    #2
    Depends. If it's something that has to run really quickly over and over, yes, it'd probably be done in C using that API. Otherwise? Just use Python. For tutorials, Google py2exe or py2app, maybe? I'm not quite sure here...

    Comment

    • fordie1000
      New Member
      • Mar 2008
      • 32

      #3
      yes .. speed of execution is the main thing that I'm interested to learn about.
      I've use py2app to build macosx applications before but they were all written in
      python using the pyobjc bridge.

      I am just keen to know if there is a good site/book/tutorial to show me the steps involved in writing a new python module in C.

      Thanks,

      Comment

      • Laharl
        Recognized Expert Contributor
        • Sep 2007
        • 849

        #4
        Here. Scroll down for the link you're looking for.

        Comment

        Working...