Re: [Tutor] table to dictionary and then analysis

2012-05-17 Thread Russel Winder
On Wed, 2012-05-16 at 12:57 -0400, Joel Goldstick wrote: [...] > I think the OP is just learning and this thread may have gotten of track. I didn't realize discussion of immediate side issues and alternatives, and allowing people to exchange information was OT in this mailing list. Also of course,

Re: [Tutor] table to dictionary and then analysis

2012-05-17 Thread Russel Winder
On Wed, 2012-05-16 at 16:03 +0100, Alan Gauld wrote: [...] > I agree, but in this case SQL seemed like the most likely fit of the > ones I knew. however: Which raises the point that the best design of a given problem in a given context is the one that is most comprehensible to the people directly

Re: [Tutor] table to dictionary and then analysis

2012-05-17 Thread Alan Gauld
On 17/05/12 08:39, Russel Winder wrote: Interesting, or not, the "Big Data" people are rapidly realizing that data mining and SQL are mutually incompatible. After many years working with big data mining teams/apps my considered opinion is use SAS or one of its peers! It costs money but it wor

Re: [Tutor] table to dictionary and then analysis

2012-05-17 Thread Steven D'Aprano
On Thu, May 17, 2012 at 08:27:07AM +0100, Russel Winder wrote: > Should we be promoting use of the format method in strings rather than > the % operator? % is deprecated now. It most certainly is not. There are no plans to deprecate the string % operator any time in the foreseeable future. It m

Re: [Tutor] ssh socks proxy

2012-05-17 Thread Adam Gold
Many thanks Kushal (it's always the silly things one has to look for!). The answer to your question is I don't have shell access to the proxy server, I can only access it for the purpose of setting up a socks proxy. Btw, I'm probably pushing my luck here but any idea what the same script would

[Tutor] How to read blog posts in python

2012-05-17 Thread Surya K
Hi, I want to write a python code which read blog's RSS/ Atom feeds and gives us the all post's content of blog... I am currently trying to use FeedParser (Universal Feed Parser). I am able to get all post's titles and URL's but not a content.. I tried to use certain functions mentioned in docum

[Tutor] shutil.rmtree clarification

2012-05-17 Thread Garry Willgoose
I'm trying to remove a directory that has within it a directory tree structure and files and thought the following would work (the online docs seem to suggest it will remove the underlying directory tree and included files) shutil.rmtree('test_directory') but I got back an error (Python 2.7 on

Re: [Tutor] table to dictionary and then analysis

2012-05-17 Thread bob gailer
On 5/17/2012 3:27 AM, Russel Winder wrote: Should we be promoting use of the format method in strings rather than the % operator? % is deprecated now. I for one do not like seeing % deprecated. Why? It is not broken, and IMHO the easiest to use of all formatting options. -- Bob Gailer 919-636-

Re: [Tutor] shutil.rmtree clarification

2012-05-17 Thread Glen Zangirolami
Garry, It should be able to remove the tree. I am not able to replicate this on OSX .. yet. What are the contents of the directory and the permissions of the directories/files? Although it should throw an exception if it is a symbolic link or a file it can't remove. On Thu, May 17, 2012 at 8:32

Re: [Tutor] table to dictionary and then analysis

2012-05-17 Thread Mark Lawrence
On 17/05/2012 10:35, Steven D'Aprano wrote: On Thu, May 17, 2012 at 08:27:07AM +0100, Russel Winder wrote: Should we be promoting use of the format method in strings rather than the % operator? % is deprecated now. It most certainly is not. There are no plans to deprecate the string % operat

[Tutor] shutil.rmtree clarification

2012-05-17 Thread Garry Willgoose
I'm trying to remove a directory that has within it a directory tree structure and files and thought the following would work (the online docs seem to suggest it will remove the underlying directory tree and included files) shutil.rmtree('test_directory') but I got back an error (Python 2.7 on

[Tutor] shutil.rmtree clarification

2012-05-17 Thread Garry Willgoose
I'm trying to remove a directory that has within it a directory tree structure and files and thought the following would work (the online docs seem to suggest it will remove the underlying directory tree and included files) shutil.rmtree('test_directory') but I got back an error (Python 2.7 on

[Tutor] How to create self contained Windows executables (.exe files) from python scripts

2012-05-17 Thread Brad Hudson
Can someone point me to information on how to create Windows .exe files from python 2.7.3? The py2exe method (www.py2exe.org) appears to only be available for python 2.6 from the sites I've seen. Thanks in advance. ___ Tutor maillist - Tutor@python.org

Re: [Tutor] How to read blog posts in python

2012-05-17 Thread Brian van den Broek
On 17 May 2012 16:31, "Surya K" wrote: > > Hi, > > I want to write a python code which read blog's RSS/ Atom feeds and gives us the all post's content of blog... > > I am currently trying to use FeedParser (Universal Feed Parser). I am able to get all post's titles and URL's but not a content.. >

Re: [Tutor] How to create self contained Windows executables (.exe files) from python scripts

2012-05-17 Thread Alan Gauld
On 18/05/12 00:02, Brad Hudson wrote: Can someone point me to information on how to create Windows .exe files from python 2.7.3? The py2exe method (www.py2exe.org ) appears to only be available for python 2.6 from the sites I've seen. You can try PyInstaller: http://www

[Tutor] Installing graphics module on python 2.7

2012-05-17 Thread Emeka
Hello All, I would like to install graphics. So that I can do this: import graphics Please help me. I tried "pip install graphics" nothing came out of it. Regards, \Janus -- *Satajanus Nig. Ltd * ___ Tutor maillist - Tutor@python.org To unsubsc

[Tutor] New to Python

2012-05-17 Thread Jeremy Traurig
Hello, I very new to python and have been playing around with some simple code that I would eventually use in the real word. Below is the code I have created. I want the code to read data from a file called SIL633.txt and then output that data into another file called test.txt. below is my code: