Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9397
| References | <bf9cd288-c187-402f-b444-b605a2a91572@glegroupsg2000goo.googlegroups.com> |
|---|---|
| Date | 2011-07-14 00:21 +1000 |
| Subject | Re: What is the difference between PyPy and Python? are there lot of differences? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.981.1310566877.1164.python-list@python.org> (permalink) |
On Thu, Jul 14, 2011 at 12:06 AM, ArrC <justmailnaveen@gmail.com> wrote: > So, i want to know what are the core diff btw PyPy and Python ? Python is a language; PyPy is one implementation of that language. The "classic" implementation of Python is CPython, not to be confused with Cython; there are a few others as well. If you talk of "installing Python", it probably means CPython. > And they also talked about the lack of type check in python. > > So, how does it help (strongly typed) in debugging? Sloppy but brief explanation: Python's variables are typeless; its objects are strongly typed. Longer explanation: Every piece of data in Python is an object. Objects can be referenced by names; one object can have more than one name pointing to it. Any name can point to any value, which is somewhat the opposite of "strongly-typed variables" in other languages. For instance: a = "Hello" # a points to or "holds" a string a = 234 # a now points to an integer a = 1.0 # a now points to a float a = [1,2,3] # a now has a list (array) In debugging, all you generally care about is "what does this object point to". I guess whether or not this makes things easier or harder depends a lot on what sort of bugs you're tracking down. Hope that helps! Chris Angelico
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What is the difference between PyPy and Python? are there lot of differences? ArrC <justmailnaveen@gmail.com> - 2011-07-13 07:06 -0700 Re: What is the difference between PyPy and Python? are there lot of differences? Chris Angelico <rosuav@gmail.com> - 2011-07-14 00:21 +1000 Re: What is the difference between PyPy and Python? are there lot of differences? sturlamolden <sturlamolden@yahoo.no> - 2011-07-13 08:03 -0700 Re: What is the difference between PyPy and Python? are there lot of differences? Ian Kelly <ian.g.kelly@gmail.com> - 2011-07-13 09:18 -0600 Re: What is the difference between PyPy and Python? are there lot of differences? Terry Reedy <tjreedy@udel.edu> - 2011-07-13 12:31 -0400
csiph-web