Who's learning Python?

Chat about anything not covered in these forums, but keep it civil!

Post » Wed Jan 16, 2008 4:24 am

The reason they do this is if you were to pass an array to a function, it's faster to pass by reference than to duplicate the array.

But this is simply how Python is by design. It's a dynamically typed language, so everything is a reference to an object. Even primitive types like int, float, and string are objects. Even the types themselves are objects, which means you can do this:
arr = [int, float, str]
B
1
S
1
G
5
Posts: 8
Reputation: 1,391

Post » Thu Jan 17, 2008 12:09 pm

I'll be looking into this when i have some spare time. Looks fun and intuitive.
B
2
S
2
G
5
Posts: 448
Reputation: 2,546

Post » Thu Jan 17, 2008 6:21 pm

Phython is pretty easy. I readed some syntax on a internet page, and it's similar to VB and pretty easy. I used VB for like 5 years, I'm advantaged :D
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Previous

Return to Open Topic

Who is online

Users browsing this forum: anshulreejonia and 0 guests