Re: [Tutor] Python 3: string to decimal conversion

2016-05-24 Thread Peter Otten
c...@zip.com.au wrote: > On 23May2016 12:18, Saidov wrote: >>Thanks everyone for all your help. This solved my problem with >>parenthesis and $ signs in the data: >> >>if not row[4]: >>pass >>else: >>try: >>expenses[t

Re: [Tutor] Getting started in testing

2016-05-24 Thread Terry Carroll
Thanks to Alan, Danny, Albert-Jan and Ben for their suggestions. I've now gotten my feet wet in unittest and have gone from not quite knowing where to start to making substantial progress, with a small suite of tests up and running. ___ Tutor maillist

[Tutor] Learning Regular Expressions

2016-05-24 Thread Terry--gmail
Running Linux Mint The YouTube Sentdex Video tutor I am following. He is working in Python3.4 and I am running Python3.4.3 He's demonstrating some Regular Expressions which I wanted to test out. On these test scripts, for future referrence, I have been putting my notes in Tripple Quotes and nam

Re: [Tutor] Web Page Scraping

2016-05-24 Thread Walter Prins
Hi, On 24 May 2016 at 04:17, Crusier wrote: > > Dear All, > > I am trying to scrape a web site using Beautiful Soup. However, BS > doesn't show any of the data. I am just wondering if it is Javascript > or some other feature which hides all the data. > > I have the following questions: > > 1) Pl

Re: [Tutor] Learning Regular Expressions

2016-05-24 Thread boB Stepp
On Mon, May 23, 2016 at 5:08 PM, Terry--gmail wrote: > Running Linux Mint > The YouTube Sentdex Video tutor I am following. > He is working in Python3.4 and I am running Python3.4.3 > > He's demonstrating some Regular Expressions which I wanted to test out. On > these test scripts, for future refe

Re: [Tutor] Web Page Scraping

2016-05-24 Thread Walter Prins
On 24 May 2016 at 15:37, Walter Prins wrote: > print(name1.encode(sys.stdout.encoding, "backslashreplace")) # I forgot to mention, you might want to read the following documentation page: https://docs.python.org/3/howto/unicode.html (good luck.) W __

[Tutor] I've subscribed to your service, no confirmation yet. I'm looking for a tutor and I need help with some code.

2016-05-24 Thread Angelia Spencer via Tutor
 I'm trying to telnet to my box. When I do this in DOS it's simple, I even have a blinking cursor for me to type in commands for each response. Not so for python. I have a dictionary "user_acct" which has the username and password in it. My box is interactive, I must be able to type in commands

Re: [Tutor] I've subscribed to your service, no confirmation yet. I'm looking for a tutor and I need help with some code.

2016-05-24 Thread Alan Gauld via Tutor
Re your subject... This is a mailing list. You subscribe and you should receive mails sent to the list. If you have a question send it to the list (like you did here) and one or more of the list members will hopefully respond. The more specific your question the more precise will be the response. T

Re: [Tutor] Learning Regular Expressions

2016-05-24 Thread Alan Gauld via Tutor
On 23/05/16 23:08, Terry--gmail wrote: > scripted worked great without the notes! I'd like to know what it is in > the below Tripple-Quoted section that is causing me this problem...if > anyone recognizes. In IDLE's script file..._it's all colored green_, > which I thought meant Python was goi

[Tutor] Fwd: Re: I've subscribed to your service, no confirmation yet. I'm looking for a tutor and I need help with some code.

2016-05-24 Thread Alan Gauld via Tutor
Forwarding to list... Forwarded Message The box is my controller with and IP address, I'm doing all this from my windows 7 PC. As I said I can type telnet 10.35.56.90 in the dos cmd prompt and get to my controller. I wrote a python script with the user_acct dictionary. I do

[Tutor] Fwd: Re: I've subscribed to your service, no confirmation yet. I'm looking for a tutor and I need help with some code.

2016-05-24 Thread Alan Gauld via Tutor
Forwarding to the list. Please use reply-all to respond to list messages. Also please use plain text as HTML messages often result in code listings being corrupted, especially the spacing, which is very important in Python. Forwarded Message > I just opened the python IDLE 3.5

Re: [Tutor] Getting started in testing

2016-05-24 Thread Ben Finney
Terry Carroll writes: > Thanks to Alan, Danny, Albert-Jan and Ben for their suggestions. I've > now gotten my feet wet in unittest and have gone from not quite > knowing where to start to making substantial progress, with a small > suite of tests up and running. Great start! Do keep in mind tha

Re: [Tutor] Web Page Scraping

2016-05-24 Thread Crusier
Hi Walter, Thank you for taking your time to do all the explanation. Have a great day. Cheers, Hank On Tue, May 24, 2016 at 10:45 PM, Walter Prins wrote: > On 24 May 2016 at 15:37, Walter Prins wrote: >> print(name1.encode(sys.stdout.encoding, "backslashreplace")) >> # > > I