Re: [Tutor] ftp socket.error

2015-09-11 Thread Reuben
Check if the ftp server ip is pinging Sent from my iPhone > On 11-Sep-2015, at 9:30 pm, richard kappler wrote: > > I can connect via ftp, but when I try to send a file, I get a no route to > host error, I don't understand. > > code: > import ftplib from ftplib import FTP fBOT =

[Tutor] File operation query

2015-10-15 Thread Reuben
Hi All, I need some clarification for below code. In line 2 of below code snippet, I have provided read and write permission. Assuming I have provided some string input as requested in line 1 - when I try to open "check.txt" file after running the script, it is always empty - it does not display t

Re: [Tutor] File operation query

2015-10-16 Thread Reuben
Thanks everyone for the suggestion. At the moment, file.flush() resolves the problem - but I will also give a thought to suggestions provided by other members in this email chain. Regards, RD On Thu, Oct 15, 2015 at 11:05 PM, Alan Gauld wrote: > On 15/10/15 17:00, Reuben wrote: > &g

Re: [Tutor] Class attribute error

2013-11-17 Thread Reuben
Hi, Thanks for correcting me. The solutions mentioned by Dominik and Alan have simplified the concept to me now. Regards, Reuben On Sun, Nov 17, 2013 at 5:25 AM, Dominik George wrote: > On Sat, Nov 16, 2013 at 09:13:13AM -0800, reutest wrote: > > class myclass(): > > > >

[Tutor] Link required for difference between class and object

2013-11-17 Thread Reuben
Hi All, It would be nice if someone could forward a link which explains classes and object. I am still struggling to understand classes and objects better. Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

[Tutor] minor display issue with python dictionaries

2013-11-24 Thread Reuben
gt;>> # >From the above output, I see key 'c' is at third position during input, but while displaying the output it is displayed at second position Although, I dont see any impact of it since we mainly refer to dictionary values only u

[Tutor] Usefulness of classes and necessity of inheriting classes

2013-11-25 Thread Reuben
question May be an example to make me understand would be useful. Or may be answering the question should be rephrased as "Why not use modules instead of classes?" Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] Usefulness of classes and necessity of inheriting classes

2013-11-25 Thread Reuben
Thanks to Alan and Dominik for their explanation and valuable time to provide their inputs. On Mon, Nov 25, 2013 at 4:41 PM, Alan Gauld wrote: > On 25/11/13 06:37, Reuben wrote: > > Question no 1: >> -- >> I would like to know why do we actually inheri

[Tutor] How to set variables inside a class()

2013-11-26 Thread Reuben
'__main__': test = Animal('boxer') test.flag = False test.walk() # My question is: 1)Inside the Animal class(), How can I set the variable 'flag' to FALSE? Regards, Reuben __

Re: [Tutor] How to set variables inside a class()

2013-11-26 Thread Reuben
Yes! I got my answer now. Thanks all @Dominick: sorry about my explanation. On 26-Nov-2013 4:24 PM, "Alan Gauld" wrote: > On 26/11/13 07:30, Reuben wrote: > >> Hi, >> >> Following is my code: >> # >

[Tutor] Occurrence of number 2 in a range from 1 to 100

2013-12-01 Thread Reuben
Hi, How can we write a logic for detecting the number 2 in range from 1 to 100 Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Occurrence of number 2 in a range from 1 to 100

2013-12-01 Thread Reuben
I tried it with the python interpreter as mentioned below: test@test-Inspiron-1564:~/learn$ python Python 2.7.4 (default, Apr 19 2013, 18:28:01) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> >>> >>> On Sun, Dec 1, 2013 at 7:50 PM, Steven D'Apra

[Tutor] Hash map and dictionaries

2013-12-01 Thread Reuben
said that in a list of may be 10,000 elements(specifically integers), hash maps would be a better option to find the occurrence of repetitive integers How can this be implemented using dictionaries for a list of 10,000 integer elements? Regards, Reuben

Re: [Tutor] Occurrence of number 2 in a range from 1 to 100

2013-12-01 Thread Reuben
01, 2013 at 11:20:02AM +0530, Reuben wrote: > > Hi, > > > > How can we write a logic for detecting the number 2 in range from 1 to > 100 > > 2 in range(1, 101) > > > -- > Steven > ___ > Tutor maillist - T

Re: [Tutor] Occurrence of number 2 in a range from 1 to 100

2013-12-01 Thread Reuben
t;>> wrote: >>> >>>> On Sun, Dec 01, 2013 at 02:57:33PM +0530, Reuben wrote: >>>> >>>>> I mean occurrence of 2 from numbers 1 to 100. The number could be the >>>>> first digit or second digit in a two digit number..for e.g. In num

Re: [Tutor] No module named '_tkinter'

2013-12-08 Thread Reuben
Can you try importing the module '_tkinter' On 09-Dec-2013 6:43 AM, "pierre dagenais" wrote: > Hi, > I'm running Ubuntu 10.04 and I've installed python 3.3.3 from the > tarball at http://python.org/ftp/python/3.3.3/Python-3.3.3.tar.xz > > Here is the error I get when trying to run tkinter. > > pi

[Tutor] Subprocess communications query

2013-12-10 Thread Reuben
if yes, an example would help Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Subprocess communications query

2013-12-10 Thread Reuben
I want to implement a python script on machine A to do telnet/ssh into machine B (this might be easy)and then run the Test.py (this is challenging) On 11-Dec-2013 1:05 AM, "Danny Yoo" wrote: > On Tue, Dec 10, 2013 at 11:28 AM, Reuben wrote: > > Hi, > > > > There

[Tutor] Logging script output

2013-12-15 Thread Reuben
Hi, What is the best way to log the output of a python script execution. Do we need to use the logging module of python? Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org

Re: [Tutor] Logging script output

2013-12-15 Thread Reuben
Thanks everyone - your posts helped me. On 16-Dec-2013 2:22 AM, "Alan Gauld" wrote: > On 15/12/13 18:01, Tobias M. wrote: > > Yes, I think the logging module is the best way to do it. >> And it's pretty easy, see this minimal example: >> >> import logging >> >> logging.basicConfig(filename="foo.

Re: [Tutor] Saving files in Python, IDE's & editors

2013-12-18 Thread Reuben
Keep caution while using geany. It causes indentation problems On 18-Dec-2013 10:34 PM, "Ken G." wrote: > For what it may be worth, I use Geany on my Ubuntu > OS, 12.04 LTS. I also have IDLE installed and I > can use the Terminal Window in running Command > Line. > > Ken > > On 12/17/2013 09:28

[Tutor] python query

2014-01-11 Thread Reuben
Hi All, I would like to know the difference between GUI programming v/s web designing...To be more specific lets compare Django(used for web programming) v/s Tkinter(used for GUI programming) I wish to have a more clear difference regarding this. Regards, Reuben

[Tutor] Understanding Decorators

2014-01-18 Thread Reuben
Hi, I tried reading information regarding decorators - but not able to get a good grip around it. Kindly point me to some good links along with examples Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

[Tutor] Project directory structure

2014-01-29 Thread Reuben
Hi, Do we need to follow any particular directory structure for creating any New projects or could we just randomly create a folder containing the script of interest? Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] mixing 64 bit and 32 bit

2014-03-19 Thread Reuben
Hi John, The generated bytecodes will be different - but both version can run same code without issues Regards, Reuben On 19-Mar-2014 11:28 PM, "John Fabiani" wrote: > Hi, > > At my office we have a mix of XP (32bit) and Window 7 (64 bit). I > installed python 64 bit on

[Tutor] How to test mobile apps using python

2014-06-13 Thread Reuben
Hi, I would like to know how we could test android mobile apps using python. Lets say I want to test my skype app. How can we go about? Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https

Re: [Tutor] How to test mobile apps using python

2014-06-13 Thread Reuben
These apps are native android apps downloaded from google play. Skype being an example. As far as I am aware all these apps are written in Java. But my problem statement requires that we test this app using python script. Regards, Reuben On Fri, Jun 13, 2014 at 1:32 AM, Alan Gauld wrote

[Tutor] Python for linux

2015-01-27 Thread Reuben
mentioned operations Any specific pointers to help me with this task? Thanks Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor