Leo 4.3 alpha 3 is now available at http://sourceforge.net/projects/leo/
Leo 4.3 is the culmination of more than five months of work. This alpha 3
release corrects various bugs in Leo's core and in plugins. This is the
first release that include an installer for MacOSX.
The defining features of
Text602 was a very popular word processor for IBM PC MS DOS
compatibles, used in Czechoslovakia. T602Parser provides a
simple class modelled after HTMLParser that can be used to
parse Text602 documents (MS DOS version, not Win602) and
to extract/convert data contained in them.
Version: 0.1
When I look at how classes are set up in other languages (e.g. C++), I
often observe the following patterns:
1) for each data member, the class will have an accessor member
function (a Getwhatever function)
2) for each data member, the class will have a mutator member function
(a Setwhatver
Thanks Jorgen!
I was reading the Tkinter tutorial (I was looking at this particular
page:
http://www.pythonware.com/library/tkinter/introduction/x5513-methods.htm)
and saw this for select_set():
select_set(index), select_set(first, last)
Add one or more items to the selection.
I think this
[EMAIL PROTECTED] wrote:
When I look at how classes are set up in other languages (e.g. C++), I
often observe the following patterns:
1) for each data member, the class will have an accessor member
function (a Getwhatever function)
2) for each data member, the class will have a mutator member
Raghul,
The second link Harlin gave is to the wxPython wiki - it has a variety
of pages with information about the toolkit including a number of
tutorial pages. The Getting Started document linked on the main page
is pretty thorough. Once you comfortable with some of the basic
concepts, I'd
I was inspired to enhance your code, and perform a critical bug-fix.
Your code would not have sent large files out to dialup users, because
it assumed all data was sent on the 'send' command. I added code to
check for the number of bytes sent, and loop until it's all gone.
Another solution
My questions are:
a) Are the three things above considered pythonic?
Python uses a function called 'property to achieve the same effect.
This example is taken from the documentation:
class C(object):
def __init__(self):
self.__x = 0
def getx(self):
On Thu, 24 Feb 2005 15:32:03 -0800, rumours say that Lowell Kirsh
[EMAIL PROTECTED] might have written:
It looks pretty good, but I'll have to take a better look later. Out of
curiosity, why did you convert the first spaces to pipes rather than add
the code as an attachment?
(As you probably
Hi Friends,
Department of Information Technology, Madras Institute of Technology,
Anna University, India is conducting a technical symposium, Samhita.
As a part of samhita, an
Online Programming Contest is scheduled on Sunday, 27 Feb 2005.
This is the first Online Programming Contest in India to
Hi Friends,
Department of Information Technology, Madras Institute of Technology,
Anna University, India
is conducting a technical symposium, Samhita. As a part of samhita, an
Online Programming Contest is scheduled on Sunday, 27 Feb 2005.
This is the first Online Programming Contest in India to
Hi Folks,
I have auto-completion set up in my python interpreter so that if I
hit the tab key it will complete a variable or a python command*. eg.
if I type
imp
and if I then hit the tab key, the interpreter will complete it to...
import
Now, I also use Matlab at the command line a lot and it
Raghul wrote:
hi,
I want to learn Wxpython to work in windows.Is there any
tutorials
available?Pls specify the link that will be easy to learn for
beginers
like me
I'm just learning wxPython, but rather than do it directly I'm using
wax. wax is another layer that sits on top of wxPython
On Fri, 25 Feb 2005 15:10:06 +0800, mep [EMAIL PROTECTED] wrote:
Try ANTLR with python code generation:
http://www.antlr.org/
And C++ grammers:
http://www.antlr.org/grammar/cpp
You can generate a c++ parser in python with the above.
Thank you, but it is too big.
Anyway:
I'm looking for some
My question is how should I use "property" which wraps up
(B__get_channel() and __set_channel()in the following program.
(BI tried the program that written below, and it worked. Then I tried:
(Bchannel = property(__get_channel,__set_channel) as in comment 1, 2,
(Band 3,
(B
(Bbut it
CONTEXT:
I am using Emacs to edit Python code and sometimes also Matlab code.
When I hit return in a loop of some sort, Emacs usually gets the
nesting indentation right, which is particularly important in Python.
To ensure this I have used python-mode.el and matlab.el modes in
emacs.
QUESTION:
If
Franz == Franz Steinhaeusler [EMAIL PROTECTED] writes:
Franz Thank you, but it is too big.
Franz Anyway:
Franz I'm looking for some (simple) rules to parse (regex) and
Franz try to implement myself, if nothing is available.
Check out
http://pyparsing.sourceforge.net/
Before
Hi Kamilche,
Aside from the 7bit confusion you should take a look at the 'struct'
module. I bet it will simplify your life considerably.
#two chars
import struct
struct.pack('cc','A','B')
'AB'
#unsigned short + two chars
struct.pack('Hcc',65535,'a','b')
'\xff\xffab'
Cheers
Lars
--
[EMAIL PROTECTED] (porterboy) writes:
CONTEXT:
I am using Emacs to edit Python code and sometimes also Matlab code.
When I hit return in a loop of some sort, Emacs usually gets the
nesting indentation right, which is particularly important in Python.
To ensure this I have used python-mode.el
On 25 Feb 2005 12:38:53 +0200, Ville Vainio [EMAIL PROTECTED] wrote:
Hello Ville,
Franz == Franz Steinhaeusler [EMAIL PROTECTED] writes:
Franz Thank you, but it is too big.
Franz Anyway:
Franz I'm looking for some (simple) rules to parse (regex) and
Franz try to implement
This is fun, so I will give my solution too (of course,
the effort here is to give the shortest solution, not the
more robust solution ;).
This is the server program, which just counts forever:
from threading import Thread
from CGIHTTPServer import test
import os
class Counter(Thread):
def
my question is i have parsed the xhtml data stream using c
i need to diplay the content present in the command prompt as the data
present in the webpage as links how it can be done?
--
http://mail.python.org/mailman/listinfo/python-list
Would this be for a GUI toolkit or maybe using a standard class scheme?
--
http://mail.python.org/mailman/listinfo/python-list
Franz == Franz Steinhaeusler [EMAIL PROTECTED] writes:
Franz On 25 Feb 2005 12:38:53 +0200, Ville Vainio [EMAIL PROTECTED]
wrote:
Franz Hello Ville,
Franz == Franz Steinhaeusler
[EMAIL PROTECTED] writes:
Franz Thank you, but it is too big.
Franz Anyway:
Tom == Tom Willis [EMAIL PROTECTED] writes:
Tom Pretty slick that python can have AOP-like features sort of
Tom out of the box.
One wonders if there will not be
pyimport AOP
in the pythonic future. These decorators could lead to byzantine
trees of @.
Now, if the decorators start writing
[EMAIL PROTECTED] wrote:
my question is i have parsed the xhtml data stream using c
That's not a question. And this is a language for discussing
Python, not C.
i need to diplay the content present in the command prompt as the data
present in the webpage as links how it can be done?
Leo 4.3 alpha 3 is now available at http://sourceforge.net/projects/leo/
Leo 4.3 is the culmination of more than five months of work. This alpha 3
release corrects various bugs in Leo's core and in plugins. This is the
first release that include an installer for MacOSX.
The defining features of
I really only posted this once to comp.lang.python. The duplicate appears
to be the work of the Department of Redundancy Department.
Edward
Edward K. Ream email: [EMAIL PROTECTED]
Leo: Literate Editor with Outlines
Leo:
Thomas Heller [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (porterboy) writes:
CONTEXT: I am using Emacs to edit Python code and sometimes
also Matlab code. When I hit return in a loop of some sort,
Emacs usually gets the nesting indentation right, which is
particularly
Alex Le Dain wrote:
Is there a generic tree module that can enable me to sort and use
trees (and nodes). Basically having methods such as .AddNode(),
.GetAllChildren(), .FindNode() etc.
Is this handled natively with any of the core modules?
cheers, Alex.
--
Poseidon Scientific
porterboy wrote:
Hi Folks,
I have auto-completion set up in my python interpreter so that if I
hit the tab key it will complete a variable or a python command*. eg.
if I type
imp
and if I then hit the tab key, the interpreter will complete it to...
import
Now, I also use Matlab at the
Alex Le Dain wrote:
Is there a generic tree module that can enable me to sort and use
trees (and nodes). Basically having methods such as .AddNode(),
.GetAllChildren(), .FindNode() etc.
No. Usually, one uses the built-in python datastructures for this. E.g.
('root', [('child1', None),
Raghul said the following on 2/25/2005 12:24 AM:
hi,
I want to learn Wxpython to work in windows.Is there any tutorials
available?Pls specify the link that will be easy to learn for beginers
like me
Raghul - If you have the patience, you can look at the demo source code.
A good thing about
[Alex Le Dain]
Is there a generic tree module that can enable me to sort and use
trees (and nodes). Basically having methods such as .AddNode(),
.GetAllChildren(), .FindNode() etc.
Is this handled natively with any of the core modules?
Using only standard Python, look at the suite of
try this: self.channel = choice
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I wrote this sample piece of code:
def main():
lambda x: 'ABC%s' % str(x)
for k in range(2): exec('print %s' % k)
main()
With the lambda line, I get this:
SyntaxError: unqualified exec is not allowed in function 'main'
it
QUESTION:
How do I split a directory string into a list in Python, eg.
'/foo/bar/beer/sex/cigarettes/drugs/alcohol/'
becomes
['foo','bar','beer','sex','cigarettes','drugs','alcohol']
I was looking at the os.path.split command, but it only seems to
separate the filename from the path (or am I
[EMAIL PROTECTED] wrote:
QUESTION:
How do I split a directory string into a list in Python, eg.
'/foo/bar/beer/sex/cigarettes/drugs/alcohol/'
becomes
['foo','bar','beer','sex','cigarettes','drugs','alcohol']
'/foo/bar/beer/sex/cigarettes/drugs/alcohol/'.strip('/').split('/')
['foo', 'bar',
[EMAIL PROTECTED] said the following on 2/25/2005 5:25 AM:
(B My question is how should I use "property" which wraps up
(B __get_channel() and __set_channel()in the following program.
(B I tried the program that written below, and it worked. Then I tried:
(B channel =
Could anyone recommend me a genetic algorithm package? So far I have found a
few, such as GAS, pyGP, Genetic, and of course scipy.ga
My problem is that most of the development of these packages seems to be
stalled, or that in scipy.ga's case, the module seems huge and somewhat
overly complicated.
In emacs matlab-mode, highlight a region then use indent-region:
C-M-\ runs the command indent-region
which is an interactive compiled Lisp function in `indent'.
(indent-region START END COLUMN)
Indent each nonblank line in the region.
With prefix no argument, indent each line using
I would start with something like this:
somestring = '/foo/bar/beer/sex/cigarettes/drugs/alcohol/'
somelist = somestring.split('/')
print somelist
This is close to what you seem to want. Good luck.
*gina*
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday,
Steve Holden wrote:
Consider that the OP might want to pass the C parser output to a Python
web-content generator, which would make a deal of sense.
You're welcome to guess what the OP wants to do, but I'm not going to.
If he or she asks a coherent question it will probably be answered.
--
On 25 Feb 2005, at 14:09, Harper, Gina wrote:
I would start with something like this:
somestring = '/foo/bar/beer/sex/cigarettes/drugs/alcohol/'
somelist = somestring.split('/')
print somelist
However - this will not work on Windows. It'd work on all the OS I
usually use though ;)
Michael
--
Not exactly on point, but this is what I use in many of my
programs to show progress on long running console apps.
Larry Bates
class progressbarClass:
def __init__(self, finalcount, progresschar=None):
import sys
self.finalcount=finalcount
self.blockcount=0
#
Text602 was a very popular word processor for IBM PC MS DOS
compatibles, used in Czechoslovakia. T602Parser provides a
simple class modelled after HTMLParser that can be used to
parse Text602 documents (MS DOS version, not Win602) and
to extract/convert data contained in them.
Version: 0.1
I'm doing some evil things in Python and I would find it useful to
determine which class a method is bound to when I'm given a method
pointer.
For example:
class Foo(object):
def somemeth(self):
return 42
class Bar(Foo):
def othermethod(self):
return 42
Is there some
[vic]
I'm doing some evil things in Python and I would find it useful to
determine which class a method is bound to when I'm given a method
pointer.
Here you go:
class Foo:
... def bar(self):
... pass
...
Foo.bar.im_class
class __main__.Foo at 0x008ED720
Foo().bar.im_class
class
Attila Szabo wrote:
Hi,
def main():
lambda x: 'ABC%s' % str(x)
for k in range(2): exec('print %s' % k)
OK, to no real effect, in main you define an unnamed function that
you can never reference. Pretty silly, but I'll bite.
Next you run run a loop with exec looking like you think
No - that doesn't work, im_class gives me the current class - in the
case of inheritance, I'd like to get the super class which provides
'bar'.
I suppose I could walk the __bases__ to find the method using the
search routine outlined in:
http://www.python.org/2.2/descrintro.html
but I was
Does anyone know of a site(s) that shows examples of what you can do
with Nevow? I'm not necessarily referring to code, but what it can do
over the web. (Something I can show my boss if needed.)
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
There was a request for nevow
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2
machine.
I have python in a non-standard place, but I'm using --prefix with the
configure script to point to where I have everything. The make install
in $WXDIR seemed to go fine. I have the libxw* libraries in my lib/
Michael Maibaum wrote:
On 25 Feb 2005, at 14:09, Harper, Gina wrote:
I would start with something like this:
somestring = '/foo/bar/beer/sex/cigarettes/drugs/alcohol/'
somelist = somestring.split('/')
print somelist
However - this will not work on Windows. It'd work on all the OS I
Victor Ng wrote:
I'm doing some evil things in Python and I would find it useful to
determine which class a method is bound to when I'm given a method
pointer.
For example:
class Foo(object):
def somemeth(self):
return 42
class Bar(Foo):
def othermethod(self):
Awesome! I didn't see the getmro function in inspect - that'll do the
trick for me. I should be able to just look up the methodname in each
of the class's __dict__ attributes.
vic
On Fri, 25 Feb 2005 16:29:25 +0100, Peter Otten [EMAIL PROTECTED] wrote:
Victor Ng wrote:
I'm doing some
Peter Otten wrote:
import inspect
class Foo(object):
... def foo(self): pass
...
class Bar(Foo):
... def bar(self): pass
...
def get_imp_class(method):
... return [t for t in inspect.classify_class_attrs(method.im_class)
if t[-1] is method.im_func][0][2]
...
If the class had two attributes--x and y--would the code look like
something lik this:
class C(object):
def __init__(self):
self.__x = 0
self.__y = 0
def getx(self):
return self.__x
def setx(self, x):
if x 0: x = 0
I have a large string containing lines of text separated by '\n'. I'm
currently using text.splitlines(True) to break the text into lines, and
I'm iterating over the resulting list.
This is very slow (when using 40 lines!). Other than dumping the
string to a file, and reading it back using the
Victor Ng wrote:
I'm doing some evil things in Python and I would find it useful to
determine which class a method is bound to when I'm given a method
pointer.
For example:
class Foo(object):
def somemeth(self):
return 42
class Bar(Foo):
def othermethod(self):
return 42
Is
In article [EMAIL PROTECTED],
Victor Ng [EMAIL PROTECTED] wrote:
I'm doing some evil things in Python and I would find it useful to
determine which class a method is bound to when I'm given a method
pointer.
I don't know where (or if) it's documented, but im_class seems to give
you what you
In article [EMAIL PROTECTED],
Victor Ng [EMAIL PROTECTED] wrote:
No - that doesn't work, im_class gives me the current class - in the
case of inheritance, I'd like to get the super class which provides
'bar'.
Oh my. You said you were doing something evil, but didn't say *how*
evil. What are
Because if so, does the term 'lazy evaluation' refer to the fact that
instead of:
No, it is a common technical term. It means that a value is computed the
time it is requested for the first time.
Like this:
class Foo(object):
def __init__(self):
self.__bar = None
def
Jeremy Sanders wrote:
I have a large string containing lines of text separated by '\n'. I'm
currently using text.splitlines(True) to break the text into lines, and
I'm iterating over the resulting list.
This is very slow (when using 40 lines!). Other than dumping the
string to a file,
On 25/02/2005 Dennis Lee Bieber wrote:
On Thu, 24 Feb 2005 23:10:48 +0100, Jonas Meurer [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
version used placeholders as well. anyway, i changed my code to resemble
resemble is the key... It is NOT the correct sample.
On Fri, 25 Feb 2005 17:14:24 +0100, Diez B. Roggisch wrote:
Maybe [c]StringIO can be of help. I don't know if it's iterator is lazy. But
at least it has one, so you can try and see if it improves performance :)
Excellent! I somehow missed that module. StringIO speeds up the iteration
by a
Jeremy,
How did you get the string in memory in the first place?
If you read it from a file, perhaps you should change to
reading it from the file a line at the time and use
file.readline as your iterator.
fp=file(inputfile, 'r')
for line in fp:
...do your processing...
fp.close()
I don't
I'm cpmpletely lost on fonts.
I'm using Tkinter
I do medarial = '-*-Arial-Bold-*-*--24-*-*-*-ISO8859-1
or Courier or Fixed in various sizes.
Works great on my RH 7.2
But a small embedded system Im working on, nothing seems to work,
almost everything falls back to a fixed 12
The X*4 fontpaths are
Michael Hoffman wrote:
Steve Holden wrote:
Consider that the OP might want to pass the C parser output to a
Python web-content generator, which would make a deal of sense.
You're welcome to guess what the OP wants to do, but I'm not going to.
If he or she asks a coherent question it will
On Fri, 25 Feb 2005 10:57:59 -0600, Larry Bates wrote:
How did you get the string in memory in the first place?
They're actually from a generated python script, acting as a saved file
format, something like:
interpret(
lots of lines
)
another_command()
Obviously this isn't the most efficient
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
When I look at how classes are set up in other languages (e.g. C++), I
often observe the following patterns:
1) for each data member, the class will have an accessor member
function (a Getwhatever function)
2) for each data member,
I do something more or less like your option b. I don't think there is any
orthodox structure to follow. You should use a style that fit your taste.
What I really want to bring up is your might want to look at refactoring
your module in the first place. 348 test cases for one module sounds
[EMAIL PROTECTED] wrote:
If the class had two attributes--x and y--would the code look like
something lik this:
class C(object):
def __init__(self):
self.__x = 0
self.__y = 0
def getx(self):
return self.__x
def setx(self, x):
I tend to write one test class per class, but that's
just the way I got started. My feeling is that the
methods in a test class should tell a story if you
read the names in the order they were written,
so I'd split the tests for a class into several
classes if they had different stories to tell.
Hi Duncan,
This should work reasonably reliably on Windows and Unix:
somestring = '/foo/bar/beer/sex/cigarettes/drugs/alcohol/'
os.path.normpath(somestring).split(os.path.sep)
['', 'foo', 'bar', 'beer', 'sex', 'cigarettes', 'drugs', 'alcohol']
However a better solution is probably to call
On 21 Feb 2005 15:01:05 -0800, John Machin [EMAIL PROTECTED]
wrote:
Steve M wrote:
John Machin wrote:
Steve M wrote:
I'm actually doing this as part of an exercise from a book. What
the
program
is supposed to do is be a word guessing game. The program
automaticly
randomly selects a
In article [EMAIL PROTECTED],
Jack Orenstein [EMAIL PROTECTED] wrote:
I am developing a Python program that submits a command to each node
of a cluster and consumes the stdout and stderr from each. I want all
the processes to run in parallel, so I start a thread for each
node. There could be
Attila Szabo [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I wrote this sample piece of code:
def main():
lambda x: 'ABC%s' % str(x)
for k in range(2): exec('print %s' % k)
main()
With the lambda line, I get this:
SyntaxError: unqualified exec is not
Can anyone guide me on how to spawn
simultaneously( or
pseudo simultaneously) running microthreads using
stackless.
Here is what i tried..
def gencars(num,origin,dest,speed):
global adjls
global cars
global juncls
for i in range(num):
I have a problem that I run into a lot with the 'legend' command's
default behavior. I've found a work-around but I wonder if there's a
better way.
For a simple example, take the following:
x= [1,2,3,4,5,6,7,8]
a= [5,3,2,4,6,5,8,7]
b=
What happens when you try to connect? Be sure to check /etc/hosts.allow
and .deny on the server, if your server is compiled with TCP wrapper
support.
--
http://mail.python.org/mailman/listinfo/python-list
You can look at the techniques and regular expressions in the
testgen.c.unit test module that is part of a generic test framework
called TestGen. TestGen uses a parser to automatically stub / copy
functions for testing purposes. The parser is capable of identifying
the function/method name as
Hans,
Thanks for the tip. I took a look at Beatiful Soup,
and it looked like it was a framework to parse HTML.
I'm not really interetsed in going through it tag by
tag - just to get it converted to ASCII. How can I do
this with B. Soup?
--Thanks
PS William - thanks for the reference to lynx,
aurora [EMAIL PROTECTED] writes:
What I really want to bring up is your might want to look at refactoring
your module in the first place. 348 test cases for one module sounds like a
large number. That reflects you have a fairly complex module to be tested
to start with. Often the biggest
John Roth [EMAIL PROTECTED] writes:
I tend to write one test class per class, but that's
just the way I got started. My feeling is that the
methods in a test class should tell a story if you
read the names in the order they were written,
so I'd split the tests for a class into several
Raghul wrote:
hi,
I want to learn Wxpython to work in windows.Is there any
tutorials
available?Pls specify the link that will be easy to learn for
beginers
like me
An approach that I find useful is to use an IDE to build the base
application structure, then examine the generated code.
Hallo!
I use Python mostly for CGI (using Apache). And now I habe a problem:
How can I handle the situation if a user clicks on ?abort? in the
browser?
It seems that a CGI-script is NOT stopped at this point. Is there any
signal send to the CGI-process if the user clicks on ?abort??
Thank you.
Hallo!
I use Python mostly for CGI (Apache). And now I habe a problem: How
can I handle the situation if a user clicks on abort in the browser?
It seems that a CGI-script is NOT stopped at this point. Is there any
signal send to the CGI-process if the user clicks on abort?
Thank you.
Best
gf gf wrote:
[wants to extract ASCII from badly-formed HTML and thinks BeautifulSoup is too complex]
You haven't specified what you mean by extracting ASCII, but I'll assume that
you want to start by eliminating html tags and comments, which is easy enough
with a couple of regular expressions:
In article [EMAIL PROTECTED],
Daniel Yoo [EMAIL PROTECTED] wrote:
gf gf [EMAIL PROTECTED] wrote:
.
.
.
: If not, how can I flush it manually? sys.stdout.flush() didn't
: seem to work.
H, that's odd. sys.stdout.flush()
Hi,
Using finditer in re module might help. I'm not sure it is lazy nor
performant. Here's an example :
=== BEGIN SNAP
import re
reLn = re.compile(r[^\n]*(\n|$))
sStr = \
This is a test string.
It is supposed to be big.
Oh well.
for oMatch in reLn.finditer(sStr):
print oMatch.group()
===
David Eppstein [EMAIL PROTECTED] writes:
In article [EMAIL PROTECTED],
Xah Lee [EMAIL PROTECTED] wrote:
parti(aList, equalFunc)
given a list aList of n elements, we want to return a list that is a
range of numbers from 1 to n, partition by the predicate function of
equivalence
Jubri Siji napisa(a):
Please i am new to python , whats the best IDE to start with
Vim, Emacs or jEdit.
--
Jarek Zgoda
http://jpa.berlios.de/ | http://www.zgodowie.org/
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 26 Jan 2005 18:25:09 -0500, Dan Perl [EMAIL PROTECTED] wrote:
rbt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is there an easy way to exclude binary files (I'm working on Windows XP)
from the file list returned by os.walk()?
Also, when reading files and you're unsure
Michael Spencer [EMAIL PROTECTED] writes:
gf gf wrote:
[wants to extract ASCII from badly-formed HTML and thinks BeautifulSoup is
too complex]
You haven't specified what you mean by extracting ASCII, but I'll
assume that you want to start by eliminating html tags and comments,
which is
Hi all,
I am looking for beta-testers for fdups.
fdups is a program to detect duplicate files on locally mounted
filesystems. Files are considered equal if their content is identical,
regardless of their filename. Also, fdups ignores symbolic links and is
able to detect and ignore hardlinks,
On Fri, 25 Feb 2005 10:51:47 -0800 (PST), gf gf [EMAIL PROTECTED] wrote:
Hans,
Thanks for the tip. I took a look at Beatiful Soup,
and it looked like it was a framework to parse HTML.
This is my understanding, too.
I'm not really interetsed in going through it tag by
tag - just to get
This will help in your code, but there is big pile of modules in stdlib
that are not unicode-friendly. From my daily practice come shlex
(tokenizer works only with encoded strings) and logging (you cann't
specify encoding for FileHandler).
You can, of course, pass in a stream opened using
On Tue, 22 Feb 2005 20:38:28 -0500, Tom Willis [EMAIL PROTECTED] wrote:
How are the expert pythoneers dealing with config files?
...
Any ideas?
How about writing them in Python?
I have no URL handy, but it would surprise me if there wasn't a lot written
about different techniques for doing
Jorgen Grahn wrote:
On Tue, 22 Feb 2005 20:38:28 -0500, Tom Willis [EMAIL PROTECTED] wrote:
How are the expert pythoneers dealing with config files?
...
Any ideas?
How about writing them in Python?
Depending on who will be editing the config files, this can be a great
approach.
At the simplest
By putting them into another file you can just use
.readline iterator on file object to solve your
problem. I would personally find it hard to work
on a program that had 400,000 lines of data hard
coded into a structure like this, but that's me.
-Larry
Jeremy Sanders wrote:
On Fri, 25 Feb
1 - 100 of 139 matches
Mail list logo