Debugging on the Mac question.

2014-01-03 Thread Sean Murphy
Team, I am a Vision Impaired programmer on the Mac and Window platforms. I have started to learn Python. The biggest road block I have is the ability of debugging my simple scripts. The IDLE program does not work with the screen readers I use on the Mac or Windows. A screen reader is a

Re: Debugging on the Mac question.

2014-01-03 Thread Sean Murphy
PETER, thanks Peter, I have already found the PDB module and have had a play with it. It will do for now. On 03/01/2014, at 8:08 PM, Paul Rudin paul.nos...@rudin.co.uk wrote: Sean Murphy mhysnm1...@gmail.com writes: I am a Vision Impaired programmer on the Mac and Window platforms. I have

Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
Hello all. This is a newly question. But I wish to understand why the below code is providing different results. import os, sys if len(sys.argv) 2: filenames = sys.argv[1:] else print (no parameters provided\n) sys.edit() for filename in filenames: print (filename is: %s\n

Re: Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
assume would be . Any suggestions on this would be welcomed. Sean print a[ On 04/01/2014, at 4:38 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 04/01/2014 04:03, Sean Murphy wrote: Hello all. This is a newly question. But I wish to understand why the below code is providing different

Re: Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
Hi everyone. Worked out what I was doing wrong with the string splicing. The offset number was lower then the index number, so it was failing. E.G: On 04/01/2014, at 4:54 PM, Sean Murphy mhysnm1...@gmail.com wrote: Thanks everyone. Mark thanks for the correction on the ':'. Since I

Re: Strange behaviour with a for loop.

2014-01-04 Thread Sean Murphy
and config it. I have hundreds of other questions, if I don't find answers on the net before hand. Sean On 04/01/2014, at 6:52 PM, Cameron Simpson c...@zip.com.au wrote: On 04Jan2014 16:54, Sean Murphy mhysnm1...@gmail.com wrote: Thanks everyone. Mark thanks for the correction on the ':'. Since I

Dos cursor and input management.

2014-01-05 Thread Sean Murphy
Hi all. I am after a module that manages keyboard input. I am aware of raw_input for python 2.x and input for 3.x. They don't quite achieve what I want. I want to except a single key without printing it to the screen and then the key would perform an action. Sudo code: print line of text wait

Re: Dos cursor and input management.

2014-01-05 Thread Sean Murphy
Dennis, Loose terminology. The Command terminal within windows which the app will be executed in. Not native DOS. On 06/01/2014, at 3:48 AM, Denis McMahon denismfmcma...@gmail.com wrote: On Sun, 05 Jan 2014 20:25:11 +1100, Sean Murphy wrote: The module must work under dos for now

nested dictionaries and functions in data structures.

2014-01-07 Thread Sean Murphy
some of the examples I have seen appeared to use. I am aware of collection module. #! /usr/bin/env python # Identifying if memory leaks are occurring. # goal is to import output to Excel. # created on 28 Dec 2013 By Sean Murphy import os, sys from os.path import exists # main code begins

Re: nested dictionaries and functions in data structures.

2014-01-07 Thread Sean Murphy
2013 By Sean Murphy import os, sys from os.path import exists # main code begins if len(sys.argv) = 2: # storing file names into variable from command line. filenames = sys.argv[1:] else: filenames = os.listdir(os.getcwd()) #print (Error, must provide at least one file

Re: nested dictionaries and functions in data structures.

2014-01-09 Thread Sean Murphy
Thanks for that. I will have a play and see how I can apply your example. On 07/01/2014, at 11:19 PM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: - Original Message - Thanks for that. It resolved the issue and it was so simple compared to everything else I saw on the net.

Module depositary

2014-01-13 Thread Sean Murphy
Hi All. I am aware that active state python has a commercial module depositary which you can get modules from. Under PERL you had CPAN. Is there anything like this for Python? Sean -- https://mail.python.org/mailman/listinfo/python-list

Python and wireshark.

2014-07-01 Thread Sean Murphy
All. Is there any way to use python with Wireshark/Tshark? I am not able to use the GUI due to my vision impairment. So I am thinking of using Wireshark libraries and Python to provide a text console environment. Tshark does give you command line capability. I am more seeking for the ability

[issue28965] Multiprocessing spawn/forkserver fails to pass Queues

2016-12-13 Thread Sean Murphy
New submission from Sean Murphy: Python fails to pass a Queue when calling Process with multiprocessing.set_start_method set to "spawn" or "forkserver". Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.5/multiprocessing