Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Compression


  • Please log in to reply
2 replies to this topic

#1 Sionofdarkness

Sionofdarkness

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 370 posts

Posted 29 July 2006 - 02:38 PM

I know (a little) about how compression is done in other programming languages, but I don't think it's done the same way with Python. With other languages, they are compressed when they are compiled, correct? But Python is interpreted (I believe), so how does Python do it?
  • 0

#2 Guest_Kaabi_*

Guest_Kaabi_*
  • Guest

Posted 29 July 2006 - 03:32 PM

I'm not sure, and I've fiddled with Python before. Of course, I didn't get very far with it, so no wonder I don't know the answer. Sorry.
  • 0

#3 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 30 July 2006 - 12:06 PM

I believe Java's .jar files are also compressed. All that needs to happen is for the interpreter to decompress the file into memory, and then interpret the code. Whether it actually happens that way in Python or not, I don't know, but it's how I'd probably do it.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download