[Tutor] 180MB

2008-05-27 Thread Switanek, Nick
I'm running windows XP. Judging from the Add/Remove programs interface, it appears that many python packages I've installed over the years are each taking up right around 180MB. This includes pyreadline, winpdb, pywordnet, numarray, numpy, and many others besides. It seems an uncanny coincidence th

Re: [Tutor] PyCrust IDE/Shell

2007-06-01 Thread Switanek, Nick
of python installed, so maybe there is some confusion there? If so, I'd be grateful for help understanding what I need to do to resolve it. Thanks, Nick From: Grant Hagstrom [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 4:33 PM To: Switanek,

Re: [Tutor] PyCrust IDE/Shell

2007-06-01 Thread Switanek, Nick
Hi Alan, Thanks for the path. I find a .py, .pyc, and an icon file name PyCrust, but no .pyw. Any ideas? Thanks, Nick ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] PyCrust IDE/Shell

2007-06-01 Thread Switanek, Nick
y and CreateMacScripts.py, which creates the MS-DOS batch files from the extension-less files), so how should I run pycrust? Thanks in advance for any further help you can provide. Nick -Original Message- From: Hiếu Hoàng [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 3:42

Re: [Tutor] PyCrust IDE/Shell

2007-06-01 Thread Switanek, Nick
Hi Alan, Your excitement for the PyCrust IDE made me want to check it out, but after downloading wxPython and the "Docs and Demos" at http://www.wxpython.org/download.php#prerequisites I've not been able to find an IDE to launch. Can you explain what I need to do? Thanks, Nick ___

[Tutor] sys.path, managing modules and packages

2007-04-25 Thread Switanek, Nick
Can someone help me better understand how I ought to manage the modules and packages that I download? I often find that I can't use the code I've just downloaded, despite putting it into Lib/site-packages. Often I've added the subdirectory path via sys.path.append, but this seems to go only one lev

[Tutor] python internet archive API?

2007-04-25 Thread Switanek, Nick
I'm a novice Python programmer, and I've been looking for a way to collect archived web pages. I would like to use the data on Internet Archive, via the "Wayback Machine". Look, for example, at http://web.archive.org/web/*/http://www.python.org .

Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Switanek, Nick
Alan, Please let us know when you have a draft of your tutorial on Beautiful Soup and such. I'd be eager to have a look! Thanks, Nick ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] fine in interpreter, hangs in batch

2007-03-19 Thread Switanek, Nick
yLucene would help create frequency dictionaries, but I can't figure it out from the online material available. Any suggestions? Thanks, Nick -Original Message- From: Jerry Hill [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 12:52 PM To: Switanek, Nick Cc: tutor@python.org

[Tutor] fine in interpreter, hangs in batch

2007-03-16 Thread Switanek, Nick
Hi, After creating a list of words ('wordlist'), I can run the following code in the interactive window of PythonWin in about ten seconds. If I run the script containing the code, the script seems to hang on the loop. I'd be grateful for help as to why; I often seem to have something that works in

[Tutor] index swap?

2007-02-23 Thread Switanek, Nick
Hi, I'm trying to subset a large dataset (too many rows for Excel, currently too ragged for Access), and I am mystified by the behavior of a seemingly simple script I've written. Please help me understand what I'm overlooking. data = file(inpath).readlines() data = [line.rstrip() for line

[Tutor] converting tab-delimited text files to csv

2007-01-26 Thread Switanek, Nick
I have a long tab-delimited text file that I'd like to convert into csv format so I can read it into a statistics package. I've been using Excel to do the format conversion up till now, but now I have more rows than Excel can handle, and would like to avoid going through Excel if possible. I

[Tutor] setting lists

2007-01-10 Thread Switanek, Nick
I'd like to remove redundant items from a list, and have read that using set() is an effective way to do it. But I often get the following error, and I'd be glad for your help understanding what's wrong. >>> z = ['test','test',1,2,1] >>> set(z) set(['test', 1, 2]) >>> list(set(z))# Works a