[Tutor] String Problem

2015-07-06 Thread Crusier
Dear All, I have used the urllib.request and download some of the information from a site. I am currently using Python 3.4. My program is as follows: import urllib.request response = urllib.request.urlopen(' http://www.hkex.com.hk/eng/ddp/Contract_Details.asp?PId=175') saveFile =

Re: [Tutor] String Problem

2015-07-06 Thread Cameron Simpson
On 06Jul2015 15:44, Crusier crus...@gmail.com wrote: Dear All, I have used the urllib.request and download some of the information from a site. I am currently using Python 3.4. My program is as follows: import urllib.request response = urllib.request.urlopen('

Re: [Tutor] String Problem

2015-07-06 Thread Mark Lawrence
On 06/07/2015 08:44, Crusier wrote: Dear All, I have used the urllib.request and download some of the information from a site. I am currently using Python 3.4. My program is as follows: import urllib.request response = urllib.request.urlopen('

[Tutor] python help

2015-07-06 Thread Cary Developer
I am looking for help on getting started with Python. This link says it all: http://raleigh.craigslist.org/cpg/5108772711.html Any help (and response to the CL post) would be truly appreciated. Thanks. -Roger ___ Tutor maillist -

Re: [Tutor] python help

2015-07-06 Thread Mark Lawrence
On 06/07/2015 15:24, Cary Developer wrote: Welcome. I am looking for help on getting started with Python. You've come to the right place, that's always a good start. This link says it all: http://raleigh.craigslist.org/cpg/5108772711.html Any help (and response to the CL post) would be

[Tutor] Variable reference

2015-07-06 Thread Suresh Nagulavancha
Hello everyone I want to know about the variables dereference Code is in python 27 Let my variable be foo=hello python Print foo del foo What del command here actually doing , is it dereferencing or deleting the variable along with value it stored? Thank you Suresh Nagulavancha

Re: [Tutor] python help

2015-07-06 Thread Alan Gauld
On 06/07/15 15:24, Cary Developer wrote: I am looking for help on getting started with Python. This link says it all: http://raleigh.craigslist.org/cpg/5108772711.html It would be more helpful to post the content of the query, not all mail subscribers can access web pages at the time of

Re: [Tutor] Variable reference

2015-07-06 Thread Alan Gauld
On 06/07/15 14:55, Suresh Nagulavancha wrote: Hello everyone I want to know about the variables dereference Code is in python 27 Let my variable be foo=hello python Print foo del foo What del command here actually doing Python variables are stored internally in a dictionary. del removes the

Re: [Tutor] Variable reference

2015-07-06 Thread Danny Yoo
I'd also add that the 'del' statement has near-zero utility. 'del' is a language blemish. It should not be used by beginners, because it asks them to try to manually manage the lifetime of their variable names. That's an unreasonable and ridiculous burden. Functions have local variables for a

Re: [Tutor] python help

2015-07-06 Thread Matt Williams
Personally I would start with Python 2.7, and start with simple scripts. The standard library in Python is very wide, and having a good understanding of what is already there is very useful. As to GUI/ Web/ etc. - I think it depends on what you want to do. However, you will need the basics

Re: [Tutor] python help

2015-07-06 Thread Mark Lawrence
On 06/07/2015 22:09, Matt Williams wrote: Personally I would start with Python 2.7, and start with simple scripts. I think it makes much more sense to learn Python 3 and if you need code to run on both 2 and 3 take the advice here https://docs.python.org/3/howto/pyporting.html By the way,

Re: [Tutor] Variable reference

2015-07-06 Thread Alan Gauld
On 07/07/15 01:18, Danny Yoo wrote: I'd also add that the 'del' statement has near-zero utility. 'del' is a language blemish. It should not be used by beginners, because it asks them to try to manually manage the lifetime of their variable names. That's an unreasonable and ridiculous burden.

Re: [Tutor] Variable reference

2015-07-06 Thread Steven D'Aprano
On Mon, Jul 06, 2015 at 05:18:16PM -0700, Danny Yoo wrote: I'd also add that the 'del' statement has near-zero utility. 'del' is a language blemish. It should not be used by beginners, because it asks them to try to manually manage the lifetime of their variable names. That's an

Re: [Tutor] Variable reference

2015-07-06 Thread Steven D'Aprano
On Mon, Jul 06, 2015 at 07:25:10PM +0530, Suresh Nagulavancha wrote: Hello everyone I want to know about the variables dereference First you need to know how variables reference. When you assign a value to a variable, we say that we bind the value to the variable's name: spam = 42 tells