Hi all,
I'm happy to introduce the first release of bridge. A general purpose
XML library for Python and IronPython (and ultimately Jython).
bridge is very simple and light. It basically let you load an XML
document via a set of different parsers (xml.dom, Amara, lxml,
System.Xml) and creates a
=== What is PyPE? ===
PyPE (Python Programmers' Editor) was written in order to offer a
lightweight but powerful editor for those who think emacs is too much
and idle is too little. Syntax highlighting is included out of the box,
as is multiple open documents via tabs.
Beyond the basic
Fredrik Lundh wrote:
Frederic Rentsch wrote:
And here's the proof I am being perceived as a nuisance. I apologize,
keeping to myself that I don't care.
since you're constantly targeting newbies, and are hawking your stuff
also for things for which there are simple and efficient
[EMAIL PROTECTED] wrote:
Klaas i do not know about intern construct, i will have look, but
when googling
the description in the documentation is pretty concise, I think:
http://effbot.org/pyref/intern
/F
--
http://mail.python.org/mailman/listinfo/python-list
Klaas wrote:
Benchmarks?
There is one (fixed in a succesive post) in the original thread I was
referring to:
http://groups.google.com/group/it.comp.lang.python/browse_thread/thread/aff60c644969f9b/
If you want I can give more of them (and a bit less silly, with strings
too, etc).
def ddict(n):
Hi,
I am looking for a small python script, which starts a small
web server with python cgi support on a linux machine.
I tried:
#!/usr/bin/env python
import sys
from CGIHTTPServer import CGIHTTPRequestHandler
import BaseHTTPServer
class MyRequestHandler(CGIHTTPRequestHandler):
Gerard Flanagan wrote:
py # the following is probably the trickiest, should it return a Table
py # should it be illegal?
py # should t['Last'] be the way to take the slice and get the col?
py t[None, 'Last'] # 1d slice returns list (2nd dim. explicit)
['Barker', 'Burnet', 'Danson',
RobJ wrote:
Hi! My Name is Rob Johnson and I am a graduate student at The Richard
Stockton College of NJ. To make a long story short, I'm working on my
Masters project in the MAIT program (Masters of Arts in Instructional
Technology). I have written a proposal to put together a free on-line
Fabian Braennstroem wrote:
Hi,
I am looking for a small python script, which starts a small
web server with python cgi support on a linux machine.
I tried:
#!/usr/bin/env python
import sys
from CGIHTTPServer import CGIHTTPRequestHandler
import BaseHTTPServer
class
Paul Rubin http wrote:
is there a good way to know how much ram is used directly from
python (or should i rely on 'top' and other unix command?
I think try resource.getrusage()
That should work (under BSD anyway) but unfortunately doesn't under
linux :-(
From the man page
CONFORMING
Hi,
* ArdPy [EMAIL PROTECTED] wrote:
Fabian Braennstroem wrote:
Hi,
I am looking for a small python script, which starts a small
web server with python cgi support on a linux machine.
I tried:
#!/usr/bin/env python
import sys
from CGIHTTPServer import CGIHTTPRequestHandler
James Stroud wrote:
Gerard Flanagan wrote:
py # the following is probably the trickiest, should it return a Table
py # should it be illegal?
py # should t['Last'] be the way to take the slice and get the col?
py t[None, 'Last'] # 1d slice returns list (2nd dim. explicit)
['Barker',
Gerard Flanagan wrote:
What about symmetric 'load' and 'iterrows' methods for the Table class:
t2 = Table()
t2.load( t1.iterrows(LastName, Age) )
def load(self, iterable):
'''expecting tuples'''
for lname, age in iterable:
self.append( lname, age )
def
Sorry I wasn't able to be more specific on my topic but I really do not
know how to classify my problem, I mean that I can't understand if it's
a python
or a twisted
or a Qt4
problem
I'm trying to run a simple application with Twisted and Qt4.
To do this I downloaded this:
Fabian Braennstroem wrote:
[...]
Maybe, I understood something wrong, but I thought that the
above 'webserver' script would replace apache in my case; at
least I hoped!?
It does. The 'ServerRoot' and 'DocumentRoot' directories are the
directories you are starting your webserver in.
Create
Thomas Heller wrote:
Larry Bates schrieb:
Doug Stell wrote:
I have 2 questions about py2exe or any similar utility.
1. Is it possible to create a single Windows executable that does not
blow out to a folder full of files and can be called from scripts
using command line arguments?
2. If
Fabian Braennstroem wrote:
Hi,
* ArdPy [EMAIL PROTECTED] wrote:
Fabian Braennstroem wrote:
Hi,
I am looking for a small python script, which starts a small
web server with python cgi support on a linux machine.
I tried:
#!/usr/bin/env python
import sys
from
Martin v. Löwis wrote:
robert schrieb:
in combination with some simple locking (anyway necessary) I don't see a
problem in ref-counting.
In the current implementation, simple locking isn't necessary.
The refcounter can be modified freely since the code modifying
it will always hold the
IloChab wrote:
Sorry I wasn't able to be more specific on my topic but I really do not
know how to classify my problem, I mean that I can't understand if it's
a python
or a twisted
or a Qt4
problem
I'm trying to run a simple application with Twisted and Qt4.
To do this I downloaded this:
Fredrik Lundh schrieb:
If your installation directory is C:\Python25, then look in
C:\Python25\lib\encodings
that's only the glue code. the actual data sets are provided by a bunch
of built-in modules:
import sys
sys.builtin_module_names
('__builtin__', '__main__', '_ast',
robert,
Interprocess communication is tedious and out of questio
[...]
I expect to be able to directly push around Python Object-Trees between the 2
(or more) interpreters by doing some careful locking.
Please do yourself a favour and have a look at pyro. pyro makes
InterComputer and
so it has worked :) and last 12h4:56, 15 dicts with 1133755 keys, i do
not know how much ram was used as i was not always monitoring it.
thanks for all replies, i'm going to study intern and others
suggestions, hope also someone will bring a pythonic way to know memory
usage :)
best.
--
The McMillan (sp?) Python Installer has recently been resurrected as
well, though now, it is just called PyInstaller and can be found at
http://pyinstaller.python-hosting.com/
It allows you to create a one file distributable without the need to go
back to Python2.3.
Despite what everyone is
On 11/3/06, tobiah [EMAIL PROTECTED] wrote:
Is WSDL the right answer for in house communication
between programs written in different languages, or
is it more for publishing interfaces for use by parties
outside your own company?
at work we use webservices (which is a better name) a lot for
Jerry wrote:
Despite what everyone is saying though, I believe that any and all
solutions will require that the byte-code be extracted to some
directory before being run.
the Python interpreter doesn't really care what you believe, though;
it's perfectly capable of executing byte code that's
Hi I know many people here blog so sorry for the OT.
Currently I have a wordpress install and went I wanted to post some
code I notice how painfull it is. I'm still in shock that programmers
forgot about posting code on their own engine, but oohh well they are
php :D
anyway I'll like to know
Paul Rubin wrote:
robert [EMAIL PROTECTED] writes:
I don't want to discourage you but what about reference
counting/memory
management for shared objects? Doesn't seem fun for me.
in combination with some simple locking (anyway necessary) I don't
see a problem in ref-counting.
If at least
In [EMAIL PROTECTED], Jorge Vargas
wrote:
and please please don't go to corba we need to kill that.
Have you real reasons or is this a religious thing? As I see it Corba is
much better supported by Python libs than SOAP is.
Ciao,
Marc 'BlackJack' Rintsch
--
GHUM wrote:
robert,
Interprocess communication is tedious and out of questio
[...]
I expect to be able to directly push around Python Object-Trees between the
2 (or more) interpreters by doing some careful locking.
Please do yourself a favour and have a look at pyro. pyro makes
On 11/2/06, Karlo Lozovina [EMAIL PROTECTED] wrote:
Are there any forum or bulletin board systems written entirely in Python?
I got sick of PhpBB, mostly because I can't tweak and fiddle with the
code, since I really don't like PHP and don't know it that well.
I thought of writting my own
On 11/4/06, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
In [EMAIL PROTECTED], Jorge Vargas
wrote:
and please please don't go to corba we need to kill that.
Have you real reasons or is this a religious thing? As I see it Corba is
much better supported by Python libs than SOAP is.
I
In [EMAIL PROTECTED], Jerry wrote:
Despite what everyone is saying though, I believe that any and all
solutions will require that the byte-code be extracted to some
directory before being run.
It's not Python bytecode. The problem is native libraries which are hard
to run from memory without
kath wrote:
hi everyone.
I have a task, I have fragmented the task into subtask. I have planned
to create a class to each subclass and one parent class to handle the
sub tasks. Each subclass are saved in seperate file and all my
subclasses and parent class are placed in the same
Jorge Vargas wrote:
On 11/4/06, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
In [EMAIL PROTECTED], Jorge Vargas
wrote:
and please please don't go to corba we need to kill that.
Have you real reasons or is this a religious thing? As I see it Corba is
much better supported by Python libs
Hi Norbert,
* Norbert Kaufmann [EMAIL PROTECTED] wrote:
Fabian Braennstroem wrote:
[...]
Maybe, I understood something wrong, but I thought that the
above 'webserver' script would replace apache in my case; at
least I hoped!?
It does. The 'ServerRoot' and 'DocumentRoot' directories are
Hi,
I uploaded my application on our production server running FreeBSD and
I found it crashing at startup.
Problem is in connecting to my Firebird database:
kinterbasdb.connect(with either good or wrong arguments) is resolving
in:
python in free(): error: junk pointer, too high to make sense
robert schrieb:
PS: Besides: what are speed costs of LOCK INC mem ?
That very much depends on the implementation. In
http://gcc.gnu.org/ml/java/2001-03/msg00132.html
Hans Boehm claims it's 15 cycles. The LOCK prefix
itself asserts the lock# bus signal for the entire
operation, meaning that the
Thanks James and Steve for the feedback I have made the appropriate
changes and republished the survey at the following URL:
http://killersurvey.com/answer_survey.php?id=490
Rob J
James Stroud wrote:
RobJ wrote:
Hi! My Name is Rob Johnson and I am a graduate student at The Richard
RobJ wrote:
Hi! My Name is Rob Johnson and I am a graduate student at The Richard
Stockton College of NJ. To make a long story short, I'm working on my
Masters project in the MAIT program (Masters of Arts in Instructional
Technology). I have written a proposal to put together a free on-line
On 11/4/06, Steve Holden [EMAIL PROTECTED] wrote:
Jorge Vargas wrote:
On 11/4/06, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
In [EMAIL PROTECTED], Jorge Vargas
wrote:
and please please don't go to corba we need to kill that.
Have you real reasons or is this a religious thing?
just to be sure about intern, it is used as :
d, f = {}, {}
s = this is a string
d[intern(s)] = 1
f[intern(s)] = 1
so actually the key in d and f are a pointer on an the same intern-ed
string? if so it can be interesting,
print intern.__doc__
intern(string) - string
``Intern'' the given
Was prompted to ask these questions when reading the following link:
http://effbot.org/zone/element-infoset.htm#mixed-content
provides a clear explanation of what the tail member is in the
elementtree package.
Questions:
1) In the xml world, is the text between an element's end tag and the
next
Interesting idea. Just realized that I am the first person who took the
republished survey. :-)
I suggest that you also post this message to various Python web
framework's m-list.
RobJ 写道:
Thanks James and Steve for the feedback I have made the appropriate
changes and republished the survey at
Back in this post, I attempted to make a label look like a button:
Dustan wrote:
Back in this post, I attempted to make a label look like a button:
I have been using Tkinter for several years now. Recently I have been
thinking about switching to something else that may have a sharper
appearance. However I'm not sure what that may be, and if that
something else is *that* much better than what I'm already using.
Does everyone agree that
anyone have code that allows me to post files direct to sharepoint from
python?
any pointers, FAQ, etc, appreciated!
thanks,
craig
--
http://mail.python.org/mailman/listinfo/python-list
On 4 Nov 2006 08:23:40 -0800, Mudcat [EMAIL PROTECTED] wrote:
I have been using Tkinter for several years now. Recently I have been
thinking about switching to something else that may have a sharper
appearance. However I'm not sure what that may be, and if that
something else is *that* much
Mudcat wrote:
I have been using Tkinter for several years now. Recently I have been
thinking about switching to something else that may have a sharper
appearance. However I'm not sure what that may be, and if that
something else is *that* much better than what I'm already using.
Tk 8.5 isn't
I've trouble compiling win32all. VC98 and latest SDK installed (otherwise with
original SDK it won't even compile).
It tells that uuid.lib(cguid_i.obj) : fatal error LNK1103: debug info is
destroyed. This lib file is in the SDK file tree. What should I do?
( a cguid_i.* file is not in this SDK
Marc 'BlackJack' Rintsch schrieb:
In [EMAIL PROTECTED], Jerry wrote:
Despite what everyone is saying though, I believe that any and all
solutions will require that the byte-code be extracted to some
directory before being run.
It's not Python bytecode. The problem is native libraries
Martin v. Löwis [EMAIL PROTECTED] writes:
PS: Besides: what are speed costs of LOCK INC mem ?
That very much depends on the implementation. In
http://gcc.gnu.org/ml/java/2001-03/msg00132.html
Hans Boehm claims it's 15 cycles.
I think that has to be on a single processor, or at most a dual
Jorge Vargas wrote:
[quotefest trimmed]
I have to disagree WSDL is a great standard and SOAP is great for
transfering data from point a to point b. and it's very usefull for
giving an interface for people to use like all those web2.0 api's out
there.
Well, unless you're dealing with some
On Sat, 04 Nov 2006 13:02:26 +0100, IloChab wrote:
If I run this:
#
import qt4reactor
import sys
from PyQt4 import QtGui
from winIum import Window
def creApp():
app = QtGui.QApplication(sys.argv)
qt4reactor.install(app)
retrun app
This is not actually the code you are
I'm not sure how to perform this operation in Python. The difficulty is
in knowing the size of the output buffer: if it is too small, I get an
insufficient buffer exception; too large, and I get an end of file
exception. In neither case is any partial data available.
I'd rather not resort to a
Jim schrieb:
I'm not sure how to perform this operation in Python. The difficulty is
in knowing the size of the output buffer: if it is too small, I get an
insufficient buffer exception; too large, and I get an end of file
exception. In neither case is any partial data available.
What
Mea culpa: files with *no* clusters return the end-of-file error.
--
http://mail.python.org/mailman/listinfo/python-list
Dear Rob,
On 4 Nov 2006 06:43:19 -0800, RobJ [EMAIL PROTECTED] wrote:
Thanks James and Steve for the feedback I have made the appropriate
changes and republished the survey at the following URL:
http://killersurvey.com/answer_survey.php?id=490
Thanks for the update. However, a whole bunch
In [EMAIL PROTECTED], mirandacascade
wrote:
2) None of the xml documents to which I've had exposure (a very, very
small set) have had text between an element's end tag and the next tag,
hence the following question: are there some 'best practices' advice
available to help one decide when it's
I am pleased to release version 0.3 of Scribes. Scribes is a text
editor that uniquely balances simplicity with power. This release is a
significant milestone in providing you with an enjoyable text editing
experience. Bugs were squashed, new features implemented, countless
enhancements made and
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
2) None of the xml documents to which I've had exposure (a very, very
small set) have had text between an element's end tag and the next tag,
Text elements are not limited to printed/visible text. If you parsed a
formatted XML string,
On Saturday 04 November 2006 11:03, Dustan wrote:
Back in this post, I attempted to make a label
look like a button:
http://groups.google.com/group/comp.lang.python
/browse_thread/thread/a83195d3970a6851/2053cbaec
1bc1f19?auth=DQAAAHkMDAWnhNnzpuKlwOKZUwAGUTt
Steve Holden wrote:
Don't worry. It's sometimes difficult for the effbot to remember we
aren't all as fearsomely intelligent as it is. I think it does a
remarkably complete emulation of a human being:
http://www.flickr.com/photos/[EMAIL PROTECTED]/152495923/
For what it's worth it's
I have this script that I want to use weekly to send me email with
information regarding disk space and available upgrades for my system.
This script is actually a learning tool for me as I learn Python. The
problem I've run into has me stumped and I need some help. What happens
is when the
dear all,
i've just finished a program which sets up an initial population
consisting of four different phenotypes, allows them to evolve over
time and graphs the output at the end, displaying what is in effect the
evolutionary steady state for the system.
i'm no authority on evolutionary game
I have Works 8.0 and you can SAVE AS to dBase IV format. Not sure for other
versions.
Regards,
Ian
Michael B. Trausch mike$#at^nospam!%trauschus wrote in message
news:[EMAIL PROTECTED]
I was wondering if anyone has had any experience with this. Someone I
know is trying to move away from
Can someone steer me to scripts / modules etc on webscraping please???
Ultimately I would like someone to write a script for me.
However i am still searching for documentation on this subject
Thanks Graham
--
http://mail.python.org/mailman/listinfo/python-list
Chris Pearl [EMAIL PROTECTED] wrote:
Are there Python tools to help webmasters manage static websites?
I'm talking about regenerating an entire static website - all the HTML
files in their appropriate directories and sub-directories. Each page
has some fixed parts (navigation menu, header,
Jorge Vargas wrote:
Hi I know many people here blog so sorry for the OT.
Currently I have a wordpress install and went I wanted to post some
code I notice how painfull it is.
Indeed :-) I'm using the iG:Syntax Hiliter over on
http://blog.tkbe.org after I got some comments about the lack of
Doug Stell wrote:
I have 2 questions about py2exe or any similar utility.
1. Is it possible to create a single Windows executable that does not
blow out to a folder full of files and can be called from scripts
using command line arguments?
py2exe can most certainly do this.
2. If the
On Saturday 04 November 2006 11:03, Dustan wrote:
Back in this post, I attempted to make a label
look like a button:
http://groups.google.com/group/comp.lang.python
/browse_thread/thread/a83195d3970a6851/2053cbaec
1bc1f19?auth=DQAAAHkMDAWnhNnzpuKlwOKZUwAGUTt
[EMAIL PROTECTED] wrote:
Klaas wrote:
Benchmarks?
There is one (fixed in a succesive post) in the original thread I was
referring to:
http://groups.google.com/group/it.comp.lang.python/browse_thread/thread/aff60c644969f9b/
If you want I can give more of them (and a bit less silly, with
robert wrote:
I've trouble compiling win32all. VC98 and latest SDK installed
(otherwise with original SDK it won't even compile).
It tells that uuid.lib(cguid_i.obj) : fatal error LNK1103: debug info
is destroyed.
The library isn't compatable with the compiler you're using. You'll
need to
CORBA may work fine in an intranet environment, where you can control
the server and the client, but it clearly failed to be a popular choice
on the internet: have you seen any company offering webservices with a
CORBA interface??
The main 2 choices that companies offering webservices seem to have
I have both, but the IDE I use every day is SPE, which is shareware. I'm
not savvy enough to enumerate a feature comparison, but I do find SPE
extremely friendly and intuitive.
Gerry
--
http://mail.python.org/mailman/listinfo/python-list
I've tried both and find WingIDE much faster than Komodo and the layout
is very well thought out. I love the way you can collapse all the
differnet panes with a few keystrokes. I also like their autocomplete
functionality.
Wing is developed by a small company, focussed on python development,
vj wrote:
I've tried both and find WingIDE much faster than Komodo and the layout
is very well thought out. I love the way you can collapse all the
differnet panes with a few keystrokes. I also like their autocomplete
functionality.
+1
I use Wing and enjoy its auto-completion.
Fuzzyman
On Sat, 04 Nov 2006 13:09:10 -0800, sam wrote:
i've just finished a program which sets up an initial population
consisting of four different phenotypes, allows them to evolve over
time and graphs the output at the end, displaying what is in effect the
evolutionary steady state for the system.
On Sun, 05 Nov 2006 08:09:52 +1000, Graham Feeley wrote:
Can someone steer me to scripts / modules etc on webscraping please???
The definitive documentation on the built-in Python modules can be found
here: http://docs.python.org/modindex.html
The ActiveState Python cookbook should be useful,
Hi all,
At work I'm considering proposing a solution for our distributed
processing system (a web based shopping cart that feeds an actual
printing production line) based on Pyro. I've done some minor
experiments with this and Pyro looks interesting and like a good
implementation of what I want.
Sebastian Busch [EMAIL PROTECTED] writes:
The task is:
Remove the first two lines that don't begin with @ from a file.
How would you do it with sed?
Why a sed solution in a python group?
sed '/^@/!{G;/\n\n\n/{P;d;};s/[^\n]*//;h;d;}' data
--
John Savage (my news address is
Paul Rubin schrieb:
Martin v. Löwis [EMAIL PROTECTED] writes:
PS: Besides: what are speed costs of LOCK INC mem ?
That very much depends on the implementation. In
http://gcc.gnu.org/ml/java/2001-03/msg00132.html
Hans Boehm claims it's 15 cycles.
I think that has to be on a single
On Sun, 2006-11-05 at 13:40 +1100, Steven D'Aprano wrote:
On Sun, 05 Nov 2006 08:09:52 +1000, Graham Feeley wrote:
Can someone steer me to scripts / modules etc on webscraping please???
The definitive documentation on the built-in Python modules can be found
here:
Mudcat wrote:
I have been using Tkinter for several years now. Recently I have been
thinking about switching to something else that may have a sharper
appearance. However I'm not sure what that may be, and if that
something else is *that* much better than what I'm already using.
Does
When you say far better widgets, do you mean that it has a greater
number of widgets to choose from, or that the types of widgets are
basically the same but have a greater amount of flexibility in them?
Personally I find programming in Tkinter fairly simple and
straight-forward. I'm sure a lot of
Forgot to mention WING's file search and replace is pretty cool and
powerful. It keeps checking changes in a different thread. If you want
to change yyy in say 100 files you would:
1. specify yyy in the search window
2. A list of files get displayed with matching yyy
3. As you fix replace yyy in
Mudcat [EMAIL PROTECTED] writes:
When you say far better widgets, do you mean that it has a greater
number of widgets to choose from, or that the types of widgets are
basically the same but have a greater amount of flexibility in them?
There's a lot more and they look a lot better. Tk widgets
This might be of help to you.
http://phlik.ishpeck.net/index.php?P=a1141076600phlik
http://phlik.ishpeck.net/index.php?P=b1134168973phlik
Graham Feeley wrote:
Can someone steer me to scripts / modules etc on webscraping please???
Ultimately I would like someone to write a script for me.
Bugs item #1589480, was opened at 2006-11-02 12:10
Message generated for change (Settings changed) made by drfarina
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1589480group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1589480, was opened at 2006-11-02 12:10
Message generated for change (Comment added) made by drfarina
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1589480group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1588287, was opened at 2006-10-31 15:05
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1588287group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1590036, was opened at 2006-11-03 08:44
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1590036group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1590592, was opened at 2006-11-04 19:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1590592group_id=5470
Please note that this message will contain a full copy of
Bugs item #1589480, was opened at 2006-11-02 12:10
Message generated for change (Comment added) made by drfarina
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1589480group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1590036, was opened at 2006-11-03 10:44
Message generated for change (Comment added) made by ferringb
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1590036group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1574217, was opened at 2006-10-09 21:55
Message generated for change (Comment added) made by ferringb
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1574217group_id=5470
Please note that this message will contain a full copy of the comment
96 matches
Mail list logo