ython code here or provide a link to code posted elsewhere for
additional help.
Good luck.
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
ate of other people's resources and a better web citizen.
It is also much easier to program.
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
In article ,
Michael Torrie wrote:
> On 02/04/2014 08:21 AM, wxjmfa...@gmail.com wrote:
> >
> > Useless and really ugly.
>
> How do you recommend we discover the anchor links for linking to?
Use the Table Of Contents panel on the left?
--
Jim Gibson
--
https://ma
done this in the past, but not recently. This should work for
Python (os.system("gnuplot gnuplot.cmd") or Perl (system("gnuplot
gnuplot.cmd") with suitable commands to execute external programs.
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
/products/bbedit/>
<http://www.barebones.com/products/textwrangler/>
<http://code.google.com/p/macvim/>
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
c 85
> x ef 123
> w de 33
>
> Regards../ omps
Interestingly, somebody named "Om Prakash Singh" asked the identical
question on the perl beginners list, except with the word "perl"
substituted for "python". Is this a homework problem? Are you unsure
about which language to use? Are you comparison shopping?
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
ow gather code solutions in ruby, python, C, Java, here:
>
> A Example of Mathematica's Expressiveness
> http://xahlee.org/UnixResource_dir/writ/Mathematica_expressiveness.html
>
> now lacking is perl, elisp, which i can do well in a condensed way.
> It'd be int
On Nov 19, 11:03 am, Stefan Behnel <[EMAIL PROTECTED]> wrote:
>
> Use iterparse() instead of parsing the file into memory completely.
>
> *stuff*
>
> Stefan
That worked wonders. Thanks a lot, Stefan.
So, iterparse() uses an iterate -> parse method instead of parse() and
iter()'s parse -> iterate
I'm attempting to do the following:
A) Read/scan/iterate/etc. through a semi-large XML file (about 135 mb)
B) Grab specific fields and output to a tab-delimited text file
The only problem I'm having is that the tab-delimited text file
requires a different order of values than which appear in the X
"Beliavsky" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mar 26, 10:16 am, [EMAIL PROTECTED] (Cameron Laird) wrote:
>> In article
>> <[EMAIL PROTECTED]>,[EMAIL PROTECTED]
>> <[EMAIL PROTECTED]> wrote:
>
>> >Is there a mac version??
>> >Thanks
>> >Chris
>>
>> Yes.
>>
>> Sever
ly N times. The sort can then use
these pre-computed keys to sort the objects. See, for example:
http://en.wikipedia.org/wiki/Schwartzian_transform
--
Jim Gibson
Posted Via Usenet.com Premium Usenet Newsgroup Services
--
** SPEED
>
>
> import os
> def test_file(filename, maxread=1024):
>if os.path.isdir(filename):
> return 'directory'
>afile = open(filename) # open as text
>for achar in afile.read(maxread):
> if ord(achar) > 127:
>return 'binary'
>return 'text'
>
>
Pefect, thanks!
--
Is there an equivalent to the unix 'file' command?
[mark tmp]$ file min.txt
min.txt: ASCII text
[mark tmp]$ file trunk
trunk: directory
[mark tmp]$ file compliance.tgz
compliance.tgz: gzip compressed data, from Unix
What I really want to do is determine if a file is 1) a directory, 2) a
text fil
13 matches
Mail list logo