It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming Python Forum

what is python

what is python

Postby bishi on Mon Jan 31, 2005 12:56 pm

hi!i want to know what is python..
and i work in PHP HOW I LEARNS THAT PYTHON
bishi
 
Posts: 2
Joined: Mon Jan 31, 2005 7:51 am
Location: Islamabad

Postby webmaster on Mon Jan 31, 2005 5:40 pm

Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java.

Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac, MFC). New built-in modules are easily written in C or C++. Python is also usable as an extension language for applications that need a programmable interface.

The Python implementation is portable: it runs on many brands of UNIX, on Windows, OS/2, Mac, Amiga, and many other platforms. If your favorite system isn't listed here, it may still be supported, if there's a C compiler for it. Ask around on news:comp.lang.python -- or just try compiling Python yourself.


And welcome to DEVPPL
User avatar
webmaster
Site Admin
 
Posts: 2558
Joined: Tue Aug 17, 2004 2:07 pm
Location: Sweden

Postby Kotik on Thu Feb 03, 2005 12:33 am

A question while im moving my data to my new hdd. What is an object oriented lang?
DEVPPL : News Publisher
User avatar
Kotik
1000+ Club
 
Posts: 1086
Joined: Mon Aug 23, 2004 1:25 am
Location: Sweden

Postby Malcolm on Thu Feb 03, 2005 1:04 am

He's a page that explains it better then I eve could:
http://java.sun.com/docs/books/tutorial/java/concepts/
Image
User avatar
Malcolm
100+ Club
 
Posts: 198
Joined: Thu Oct 07, 2004 10:53 pm
Location: Ontario, Canada

Re: what is python

Postby davidbeckam on Mon Aug 31, 2009 8:20 am

I'm mainly a PHP programmer however I've been dabbling in Python and absolutely love how simple everything is. I wrote a email filter to catch certain mail in about 30 minutes and now I have this new script which logs me into my campus' BlueSocket WIFI automatically.... Basically I was just wondering are there any ways I could have cut this down a bit more (maybe how I dealt with the gateway handling?)

Code:

#!/usr/bin/python
import urllib2, urllib, socket
username = 'USERNAME'
password = 'PASWORD'
ip = socket.gethostbyname(socket.gethostname())
gateway = ip.split('.')
gateway[3]='1'
gatewayip = gateway[0:4]
gate_ip = ".".join(gatewayip)
gatesip = "http://",gate_ip,"/login.pl"
g = "".join(gatesip)
login = urllib.urlencode({'customlogin': 1, '_FORM_SUBMIT': 1, 'which_form': 'reg', 'destination': '', 'error': '', 'source': '128.186.232.83','SUBMIT': 'Log In', 'bs_name': username, 'bs_password': password});
e = urllib2.urlopen(g, login)
print "Tried...",g
print "Logged in!"

Thanks in advance.



web development services
davidbeckam
 
Posts: 1
Joined: Wed Aug 26, 2009 7:21 am


Return to Python Forum

Who is online

Users browsing this forum: No registered users and 0 guests