to
build with bento
- Improved documentation
- 2.4 - 2.7 support, tested on linux/windows/mac os x
You can download bento on github: http://github.com/cournape/Bento,
discussion on bento design/features happens on numpy mailing list
cheers,
David
--
http://mail.python.org
er.createfilehandler functionality
but it does not work :(
TIA
--
David Santiago
--
http://mail.python.org/mailman/listinfo/python-list
returned exit code: can’t copy c:\Python24\Lib\sit
I am running on Windows XP with distribution 2.4.2 and executing the
setup.py from Pythonwin Build 204
I downloaded py2exe from sourceforge the version of py2exe for Python 2.4
Can anyone suggest what may be wrong?
Thanks in advance
David
David wrote:
I am unable to use py2exe to create an executable, even on the simple
sample that comes with the package. There seems to be a problem when it
is copying files. The ‘build’ and ‘dist’ directories are created and
populated, but there is no executable created. The error message
that installed with my version, [ Python 2.4.1. ] yielded
nothing on the subject of either timing or parallel port.
Id be thankful for any help.
David KG2LI
--
http://mail.python.org/mailman/listinfo/python-list
hi:
The file can be PDF or Word format. Any help?
thx
--
http://mail.python.org/mailman/listinfo/python-list
Hello Tim:
Thanks for your reply!
I want to compare PDF-PDF files and WORD-WORD files.
It seems that the right way is :
First, extract text from PDF file or Word file.
Then, use Difflib to compare these text files.
Would you please give me some more information about the external diff
tools?
Hello Tim:
One more thing:
There some Python scripts that can extract text from PDF or WORD file?
Thx
--
http://mail.python.org/mailman/listinfo/python-list
Hello Tim:
One more thing:
There some Python scripts that can extract text from PDF or WORD file?
Thx
--
http://mail.python.org/mailman/listinfo/python-list
Hello Tim:
One more thing:
There some Python scripts that can extract text from PDF or WORD file?
Thx
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the quick replies!
So if I want to use these tools: antiword,pdf2text, can I pack these
tools and python script into a windows EXE file? I know there is open
source tool which can pack python script and libs and generate the
windows EXE file.
Yes, this approach can't handle the
Thanks Tim!
I will have a try,maybe this weekend and let you know the result.
--
http://mail.python.org/mailman/listinfo/python-list
linuxfreak wrote:
Which is a better python IDE SPE or WingIDE in terms of features
You might want to look at a review of Python IDEs at
http://spyced.blogspot.com/2005/09/review-of-6-python-ides.html
david lees
--
http://mail.python.org/mailman/listinfo/python-list
. Is there any particular
reason for this?
Thanks,
David
--
http://mail.python.org/mailman/listinfo/python-list
way to display results? I guess I could issue shell commands
to a graphics display package such as IrfanView, but I thought there
might be a cleaner method.
david lees
--
http://mail.python.org/mailman/listinfo/python-list
Download Unlimited Free Music Click Here!
--
http://mail.python.org/mailman/listinfo/python-list
I've looked all over the place for an answer, and the only one I can
find doesn't mean anything to me. The end of line issue with writting
it in Windows and then uploading it doesn't help me since I'm doing
this all from Linux. I've been trying to get python cgi scripts to
work, and I always end
Svien and Michel,
Thanks for your help. Much appreciated.
David Lees
--
http://mail.python.org/mailman/listinfo/python-list
if there's some sort of memory limitation the
Python interpreter imposes on the C code it calls that I might be
running into, and if so, any ways to increase it?
Thanks,
David
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I've had a quick look but cannot find a module that will let me authenticate
against Kerberos. There appears to be a krb5 module that hasn't been
updated for a long time and I can't find much on it except the pages at
starship.python.net.
I don't need to do anything except authenticate and
:
print colors[colorIndex++ % colors.length]
^
SyntaxError: invalid syntax
The syntax error comes from your use of the ++ operator not the modulo
operator. The ++ operator is not valid in python.
david lees
--
http://mail.python.org/mailman/listinfo/python-list
? If you
want to see the fortran code just email me.
David
--
http://mail.python.org/mailman/listinfo/python-list
]
I think its just wonderful now, but if you got any other suggestions,
Please do tell. Thanks everyone.
David
--
http://mail.python.org/mailman/listinfo/python-list
Hmm don't know what happened. I guess the formatting got all chewed up.
--
http://mail.python.org/mailman/listinfo/python-list
-2.3.5/Include -L /usr/local/src/Python-2.3.5 -
shared -fPIC -l libpython2.3 -o file.so
Running on Fedora Core 3 - 1.7.0
made the following steps in compiling and installing Python :
./configure
make
make install
make libpython2.3.so
Compiling on windows 2k is fine.
Thanks for any input.
David
init function (initutm)
but the initutm function is there.
Running on Fedora Core 3.
Thanx
David
P.S Other question is there a command to know what export symbols a .so library
has ?
Relevant files below.
utmmodule.c
--
#include Python.h
#include utm.h
PyMODINIT_FUNC initutm
at Beautiful Soup?
http://www.crummy.com/software/BeautifulSoup/
David.
--
http://mail.python.org/mailman/listinfo/python-list
What is the collision of spheres? Is it the melding of a sphere of
influence and cosmic sphere? What does it mean to say that such a
collision doesn't work? The sphere is the optimal solid for storing
the maximum volume in the minimum area. A sphere can retain the most
heat, with
Today I found myself once again defining two functions that I use all
the time: nsplit and iterable. These little helper functions of mine
get used all the time when I work. Im sick of having to define them
(but am very good at it these days, less than 1 typo per function!).
It leads me
On Tue, Apr 15, 2008 at 10:36 PM, Tobiah [EMAIL PROTECTED] wrote:
I am not sure how to capture the output of a command
using subprocess without creating a temp file. I was
trying this:
import StringIO
import subprocess
file = StringIO.StringIO()
subprocess.call(ls, stdout = file)
uses real
file handles), rather than in a python library (for which StringIO
would probably work).
David.
--
http://mail.python.org/mailman/listinfo/python-list
the newline types seen.
'U' cannot be combined with 'w' or '+' mode.
Note: open() is an alias for file().
Also, comparison of a value with True is redundant in an if statement.
Rather use 'if f.read():'
David.
--
http://mail.python.org/mailman/listinfo/python-list
import os
print os.lstat(friends.txt)[6]
I prefer os.lstat(friends.txt).st_size
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Apr 20, 2008 at 6:55 AM, Banibrata Dutta
[EMAIL PROTECTED] wrote:
Hi,
Wanted to check if there is any known, reliable, FOSS/Libre -- Obfurscator
for Python 2.5 code.
What might work is to put all your code in python modules, generate
.pyc, and then only distribute those. But you have
side).
Doesn't come with the nice online docs. But you can find those in
other places (eg Google Cache).
David.
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 22, 2008 at 6:21 PM, sophie_newbie [EMAIL PROTECTED] wrote:
Does anyone know how to do this? I can't seem to make it work.
I'm using:
c = Cookie.SimpleCookie()
c['data'] = unamepwordwhatever
c.expires = time.time() + 300
print c
This doesn't seem to work, so I'm
that the Cookie module author wanted to represent http state
as a python dictionary, but chose an unfortunate name for the class.
Also, the example page doesn't go into detail about setting
attributes.
David.
--
http://mail.python.org/mailman/listinfo/python-list
besides F: (C: is a good start)
* Try using other directories under F: drive in your program and see
when you start hitting the problem.
David.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Apr 26, 2008 at 4:41 AM, [EMAIL PROTECTED] wrote:
I'm looking for a way to implement desktop notifications (much like an
instant messaging program or a mail notifier) within my Python
application, on Windows only (no Gtk/Galago, please). I need no more
than a simple text-based
there
wasn't a and in your message ID, so it tried to parse it as an
article number instead.
I couldn't check your example because newsclip.ap.org requires a login.
David.
--
http://mail.python.org/mailman/listinfo/python-list
DOS.
Try this instead:
dir f:\code\python\pgmgallery\*.*
David.
--
http://mail.python.org/mailman/listinfo/python-list
want a better performance. Is there
any alternative out there?
You could try a defaultdict containing queues, one queue per message ID.
Or you could implement your own thread-safe LookAheadQueue class.
David
--
http://mail.python.org/mailman/listinfo/python-list
1) The data for the race about to start updates every (say) 15
seconds, and the data for earlier and later races updates only every
(say) 5 minutes. There is no point for me to be hammering the server
with requests every 15 seconds for data for races after the upcoming
Try using an HTTP
in the webpy
online docs. Maybe it's possible to bolt on support with Python's
Cookie module.
David.
--
http://mail.python.org/mailman/listinfo/python-list
an intelligent PutMsg function), and the consumer
threads pull from the queues they're interested in and ignore the
others.
If your apps are heavily threaded you might take a look at Stackless
Python: http://www.stackless.com/
David.
--
http://mail.python.org/mailman/listinfo/python-list
of the XML (GET request with a
range header), and check the timestamp you mentinoed. If that changed
then re-request the doc (a download resume is risky, the XML might
change between your 2 requests).
David.
--
http://mail.python.org/mailman/listinfo/python-list
executions? (eg: if
you restart it, does it need to have a fully populated UI, or can it
start from an empty UI and start updating as it downloads new XML
updates).
How you answer the above questionss determines what kind of algorithm
will work best.
David.
PS: I suggest that you contact
to 1 horse. 1 of these per
horse per combination.
- bet - Represents a bet. Has foreign relationship with combination
(and other tables, eg: better, race)
With a structure like the above you don't need hudreds of database columns :-)
David.
--
http://mail.python.org/mailman/listinfo/python-list
to the
#! line instead of the command line.
Something for you to try: Making a temporary copy of the project, and
then cut out all the code except the import lines. See if that fails,
then start commenting out imports until the error goes away.
David.
--
http://mail.python.org/mailman/listinfo/python
what you
want from Google.
David.
--
http://mail.python.org/mailman/listinfo/python-list
There's plenty of results. Be more specific if you can't get what you
want from Google.
You'll probably find what you're looking for here:
http://wiki.python.org/moin/FiniteStateMachine
David.
--
http://mail.python.org/mailman/listinfo/python-list
objects only contain a tree of
sub-operations (slices, concatenations, references to original
sequences, etc).
This shouldn't be too hard to implement. Does anyone know of an
already-existing 'rope' module?
David.
--
http://mail.python.org/mailman/listinfo/python-list
you send it to the list as an attachment?
David.
--
http://mail.python.org/mailman/listinfo/python-list
/view/python/trunk/Modules/itertoolsmodule.c?rev=61634view=markup
David.
--
http://mail.python.org/mailman/listinfo/python-list
Forwarding back to the list.
-- Forwarded message --
From: lev [EMAIL PROTECTED]
Date: Sun, May 4, 2008 at 10:21 AM
Subject: Re: Script Optimization
To: David [EMAIL PROTECTED]
On May 4, 12:32 am, David [EMAIL PROTECTED] wrote:
It's too long to post here (160 lines) so
levels, etc).
David.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, May 4, 2008 at 12:01 PM, [EMAIL PROTECTED] wrote:
Is there a way to open a file that is inside of an ISO in python?
Say I have an ISO file, danikars.iso and on the iso there is a file
called information.txt
I want to be able to do something like this.
[code]
iso_h =
() because rename() shadows a function
imported from os.
* Rename vars shadowing imported names
* Improve logic for checking when to print help
* Create emtpy md5 listing file if one doesn't exist
* Add a comment for a dodgy-looking section
David.
--
http://mail.python.org/mailman/listinfo/python-list
'
print \n\tChecksums Verified\n
def rename_md5(newdirname, checksums):
dict_ = md5format(checksums)
# David [EMAIL PROTECTED]:
# What's going on here? Looks like you assume there are always
# 4 files (001string 1, 0001string 2, etc), which you rename to
# string1, string2
long sequences in when you need to (the same way that STL
has it separate to the string class, even though the string class has
a lot of other optimizations (internal ref counts, etc, to avoid
unnecessary copies)). Do you know one?
David.
--
http://mail.python.org/mailman/listinfo/python-list
.
David.
--
http://mail.python.org/mailman/listinfo/python-list
opensource/free SDK doing the same? As it is a hobby
project, I don't like to spend money on the SDK.
I Googled a bit and found this:
http://jocr.sourceforge.net/index.html
According to the docs it should be able to scan bar codes.
David.
--
http://mail.python.org/mailman/listinfo/python-list
/
David.
--
http://mail.python.org/mailman/listinfo/python-list
is now (until
they release the mouse button).
Another way would be to listen to all events sent through X, and act
based on the mouse events. VNC does something similar.
A good starting point would be the Python xlib libraries:
http://python-xlib.sourceforge.net/
David.
--
http://mail.python.org
Another way would be to listen to all events sent through X, and act
based on the mouse events. VNC does something similar.
See the 'record_demo.py' example that comes with python-xlib.
--
http://mail.python.org/mailman/listinfo/python-list
.
All this would be in the docs for the Python x/gtk/wx/qt/etc libs.
Where is the difficulty?
David.
--
http://mail.python.org/mailman/listinfo/python-list
writing
it, and continue writing as it plays.
Have you tried the MIDI libraries listed on this page?
http://wiki.python.org/moin/PythonInMusic
David.
--
http://mail.python.org/mailman/listinfo/python-list
a wrapper function
which captures the HTTPError exception, extracts the code, and returns
it to the caller.
David.
--
http://mail.python.org/mailman/listinfo/python-list
better).
But again, it looks like this limits me to 1 language.
If what I want to do is very hard, I'll output html instead and view
it in a web browser. But I'd prefer to use the terminal instead if
possible :-)
Thanks in advance.
David.
--
http://mail.python.org/mailman/listinfo/python-list
Thank you very much for your comprehensive answer and detailed informations,
David; I really appreciate it!
You're welcome.
As for the number of items, there would be approx. 34 000 calls of execute()
in my present code, in the final version probably more; I think executmany
is more
;-)
David.
--
http://mail.python.org/mailman/listinfo/python-list
a en_ZA.utf8
update-locale LANG=en_ZA.utf8
(And then rebooted, but I don't know if that was necessary).
I can now print mixed language unicode to the console from Python.
Thanks for your help.
David.
--
http://mail.python.org/mailman/listinfo/python-list
try this and let me know how well it works?
David
--
http://mail.python.org/mailman/listinfo/python-list
this?
David.
--
http://mail.python.org/mailman/listinfo/python-list
not tried this myself), use the Java Memory usage profiling/debugging tools.
Thanks for your post. I didn't think of Googling for python memory
profiling. That search returns a lot of results.
I'll check a few of those results and post to the list if I find something good.
David.
--
http
I'll check a few of those results and post to the list if I find something
good.
It looks like Heapy, part of the Guppy project can do this:
http://guppy-pe.sourceforge.net/#Heapy
David.
David.
--
http://mail.python.org/mailman/listinfo/python-list
-backup (Python backup tool for Linux) - it's
using 2 GB of memory (1GB ram, 1GB swap) on a backup server at work.
I'll use your method to find out why this is happening. Even if it
doesn't give me exact details, it should be enough info to go by.
David
--
http://mail.python.org/mailman/listinfo
tell.
Google for overlapping markup and python overlapping markup for
more information. Here's one interesting page I found:
http://www.wilmott.ca/python/xmlparser.html#OVERLAPPED
It discusses the issue in detail, and comes with a Python
implementation (I haven't checked it).
David.
--
http
with millions of files.
A memory leak seems more likely.
Thanks for your input. In case you're interested here's a link to my
post to a local Linux user group:
http://lists.clug.org.za/pipermail/clug-tech/2008-May/040532.html
David.
--
http://mail.python.org/mailman/listinfo/python-list
://www.lmnl.org/wiki/index.php/Main_Page
Another, related markup is Creole:
http://www.lmnl.org/wiki/index.php/Creole
David.
--
http://mail.python.org/mailman/listinfo/python-list
#!/usr/bin/env perl
#chgit script
$^I = '';
while() {
s/mike/dave/g;
print;
}
#!/usr/bin/python
import sys
lines = open(sys.argv[1]).readlines()
open(sys.argv[1], 'w').writelines([line.replace('mike', 'dave') for
line in lines])
--
http://mail.python.org/mailman/listinfo/python-list
of the Zen of Python:
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
You might find a variable like that in Ruby, which has strong Perl influences.
David.
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, May 8, 2008 at 2:53 PM, Aspersieman [EMAIL PROTECTED] wrote:
Hi
I have a python script that parses email headers to extract information
from them. I need to get the _last_ messageid in the 'References' field
(http://cr.yp.to/immhf/thread.html) to create a threaded view of these
.*(.*?)
Doesn't work if there is only one e-mail address:
Here's another one:
[^]+$
--
http://mail.python.org/mailman/listinfo/python-list
-in-funcs.html
David.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, May 10, 2008 at 8:38 AM, Joseph Turian [EMAIL PROTECTED] wrote:
Is it possible to coax python to find more than one error at once?
Thanks,
Joseph
--
http://mail.python.org/mailman/listinfo/python-list
Sounds like you want to catch and log exceptions.
--
app calls queue.interrupt_get(), all threads
currently locking on a queue.get() will continue, but with a
GetInterrupted exception thrown.
Perhaps there is some other Python threading idiom I should be using
in this case. Any suggestions?
David.
--
http://mail.python.org/mailman/listinfo/python
size=15 class=form-text required /
/div
input type=submit name=op id=edit-submit-2 value=Log in
class=form-submit /
[snip]
Here are some guides I used;
http://code.activestate.com/recipes/267255/
http://drupal.org/node/87711
thanks,
-david
--
Powered by Gentoo GNU/Linux
http
Il Wed, 1 Oct 2008 09:53:48 -0700 (PDT), [EMAIL PROTECTED] ha scritto:
Is there an interactive Python shell on Windows that supports:
- easy copy-pasting to/from an editor? (as opposed to the cumbersome
mark, copy and then paste sequence that any terminal on Windows
seems forced to adopt)
gaurav kashyap wrote:
What i want to do is open another terminal window from already opened
terminal window.
Why?
Can this be achieved.If yes,please provide a tested solution
How about GNU Screen
http://coding.derkeiler.com/Archive/Python/comp.lang.python/2008-09/msg01932.html
--
testing. Won't raise all possible
exceptions in a given piece of code, but at least you can check if
all lines get run once.
David.
--
http://mail.python.org/mailman/listinfo/python-list
write and test (complete) unit tests?
4) Any other comments?
Thanks for your time.
David.
--
http://mail.python.org/mailman/listinfo/python-list
misconceptions.
David.
--
http://mail.python.org/mailman/listinfo/python-list
.
Thanks for your informative reply. I've learned a bit from this thread
and will definitely look more into TDD :-)
David.
--
http://mail.python.org/mailman/listinfo/python-list
, but they
are a poor substitute. If the customer is happy with the first
version, you can improve it, fix bugs, and add more unit tests later.
David
PS: To people following this thread: I don't mean to be argumentative.
This is a subject I find interesting and I enjoy the debate. I'm
playing devil's advocate
be to update the event loop to enable unit
testing. eg only iterate once if a 'being_tested' variable is set
somewhere.
None of the above are ideal. What is a good way to unit test event loops?
David.
--
http://mail.python.org/mailman/listinfo/python-list
lucky to work on
smaller projects most of the time.
David.
--
http://mail.python.org/mailman/listinfo/python-list
:
A.__call__() will run B()
A.__cmp__(C) will run cmp(B, C)
etc.
In other words python code which runs A() will be running the
equivalent of A.B(), where A can do other things besides calling B()
if it wants to.
David.
--
http://mail.python.org/mailman/listinfo/python-list
: http://smstools3.kekekasvi.com/
Debian installer: http://packages.debian.org/sid/smstools
David.
--
http://mail.python.org/mailman/listinfo/python-list
text-processing utils, and Python for the
longer, more complicated scripts which you have to maintain.
David.
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 17927 matches
Mail list logo