On 24/02/12 05:11, Elaina Ann Hyde wrote:
Ok, if I use awk I seperate the file into an edible 240MB chunk,
Why awk? Python is nearly always faster than awk...
Even nawk or gawk. awk is a great language but I rarely
use it nowadays other than for one liners because
perl/python/ruby are all gene
Did you try loadtxt() from numpy?
http://mail.scipy.org/pipermail/scipy-user/2010-August/026431.html
the poster above notes that 2.5 million lines and 10 columns takes 3
minutes to load.
Asokan Pichai
___
Tutor maillist - Tutor@python.org
To unsubsc
On Thu, Feb 23, 2012 at 9:07 PM, Alan Gauld wrote:
> On 23/02/12 01:55, Elaina Ann Hyde wrote:
> ns/7.2/lib/python2.7/site-**packages/asciitable-0.8.0-py2.**7.egg/asciitable/core.py",
>
>
>> line 158, in get_lines
>> lines = table.splitlines()
>> MemoryError
>> --
>> So thi
Wow, I screwed up. I meant docutils rather than distutils !! Sorry
for the crazy fingers.
On Thu, Feb 23, 2012 at 3:14 PM, Comer Duncan wrote:
> Hi,
>
> I have distutils 0.9 install under Python 2.7. I want to uninstall it.
> I am on a Macbook pro running Lion. The site-packages directory is i
Hi,
I have distutils 0.9 install under Python 2.7. I want to uninstall it.
I am on a Macbook pro running Lion. The site-packages directory is in
/Lib/Python/2.7/site-packages. There distutils exists along with a
lot of other stuff I have installed. I do not have pip installed and
in fact insta
> OK so I can solve the equation but now I am having trouble plotting the
> solution! I would like to produce a surface plot with colors defined by p and
> animate it. That is plot the value of p at all x and z, over time (t). My
> code to get p is below but I really have no idea how to plot th
OK so I can solve the equation but now I am having trouble plotting the
solution! I would like to produce a surface plot with colors defined by
p and animate it. That is plot the value of p at all x and z, over time
(t). My code to get p is below but I really have no idea how to plot
this. Any
On 2/23/2012 12:04 AM, Michael Lewis wrote:
Hi everyone,
I have a program where I open a file (recipe.txt), I read that file
and write it to another file. I am doing some multiplying of numbers
in between; however, my question is, when I name the file I am writing
to, the file extension is ch
On 23/02/2012 15:23, Jugurtha Hadjar wrote:
On 23/02/2012 02:00, Tamar Osher wrote:
Hi. I am still having trouble installing and using Python on my (new)
Windows 7 computer, but I plan to contact Microsoft forums and see if
they can help me, since this is a Windows problem and not a Python
probl
On 23/02/2012 16:46, Dave Angel wrote:
I'm not running Windows any more (except in a VirtualBox), but your
batch files could be improved:
Since you only have the one useful line in the batch file, just put
the @ on that line; no need to turn off echo for the whole file, when
the file is one
On 02/23/2012 10:23 AM, Jugurtha Hadjar wrote:
One last point: Having two versions of Python, here's what I did in
order to chose which version is used depending what I'm doing (If I'm
tinkering with Numpy, I must use Python26)
Python 2.6 is installed in C:\Python26
Python 3.2 is installed
Sorry for the formatting. Added return statements to both functions. Adding
return [x, y] to get_value func. That solved the problem. Thank you! :)
Saad
On Thursday, February 23, 2012, Alan Gauld wrote:
> On 23/02/12 00:59, Saad Javed wrote:
>
> [CODE]feed = urllib.urlopen(rssPage) #rssPage: ad
Hooray it works,
thanks
On 02/23/2012 01:39 PM, Ken Oliver wrote:
Do you really want dt = 1**-4 or would 10**-4 be better
-Original Message-
From: David Craig
Sent: Feb 23, 2012 7:57 AM
To: tutor@python.org
Subject: [Tutor] Solve wave equation
Hi,
I am trying to write some code that w
On 23/02/2012 02:00, Tamar Osher wrote:
Hi. I am still having trouble installing and using Python on my (new) Windows
7 computer, but I plan to contact Microsoft forums and see if they can help me,
since this is a Windows problem and not a Python problem.
My question: For the future, what typ
On 23/02/2012 09:00, Alan Gauld wrote:
By no means, one of Pythons strengths is that the same code can run on
many OS. But as Steven has mentioned many developers use Linux because
GNU/Linux is designed as a developer's OS and comes with oodles of
tools. Most of those are available for Windows to
David Craig wrote:
Hi,
I am trying to write some code that will solve the 2D wave equation by
the finite difference method, but it just returns an array full of zeros
and NaN's. Not sure where I am going wrong, the code is attached so if
could someone point me in the right direction I'd apprec
Hi,
I am trying to write some code that will solve the 2D wave equation by
the finite difference method, but it just returns an array full of zeros
and NaN's. Not sure where I am going wrong, the code is attached so if
could someone point me in the right direction I'd appreciate this.
Thanks
D
On 23/02/12 01:55, Elaina Ann Hyde wrote:
ns/7.2/lib/python2.7/site-packages/asciitable-0.8.0-py2.7.egg/asciitable/core.py",
line 158, in get_lines
lines = table.splitlines()
MemoryError
--
So this means I don't have enough memory to run through the large file?
Probab
On 23/02/12 01:00, Tamar Osher wrote:
Hi. I am still having trouble installing and using Python on my (new)
Windows 7 computer, but I plan to contact Microsoft forums and see if
they can help me, since this is a Windows problem and not a Python problem.
I doubt if you have any big issues.
You p
On 23/02/12 00:59, Saad Javed wrote:
[CODE]feed = urllib.urlopen(rssPage) #rssPage: address of xml feed
tree = etree.parse(feed)
x = tree.xpath("/rss/channel/item/title/text()")
x = str(x[0])
for tag in tags: #tags is a list of items like hdtv, xvid, 720p etc
x = re.sub(r'\b' + tag + r'\b', '',
Elaina Ann Hyde wrote:
> Thanks for all the helpful hints, I really like the idea of using
> distances
> instead of a limit. Walter was right that the 'i !=j' condition was
> causing problems. I think that Alan and Steven's use of the index
> separately was great as it makes this much easier to
21 matches
Mail list logo