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
[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
--
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', '
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
>
> c
Paul Rubin 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
CONFORMIN
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 C
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. expli
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 )
>
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:
http://twistedmatr
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.
Cre
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 arg
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
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
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 downloade
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__',
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 Inter
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.
--
http:/
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 sayin
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
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
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 your
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.
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
--
http://mail.python.org/m
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 make
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 o
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 S
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 wit
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 sam
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 su
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'
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
Abo
robert schrieb:
> PS: Besides: what are speed costs of LOCK INC ?
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 ot
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
> > S
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-lin
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 reaso
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
``In
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 a
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/2053cbaec1bc1f19?auth=DQAAAHkMDAWnhNnzpuKlwOKZUwAGUTtT2Ay-EAB7rCY6SnwfnDzZ98M37bZDW2Is0LrBVrr8XEgPfcuOkiUE-CrSsKbBSX-67voDUXfbATBd0eYNMClezby4
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/2053cbaec1bc1f19?auth=DQAAAHkMDAWnhNnzpuKlwOKZUwAGUTtT2Ay-EAB7rCY6SnwfnDzZ98M37bZDW2Is0LrBVrr8XEgPfcuOkiUE-CrSsKbBSX-67voDU
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 wxPytho
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* m
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 is
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 li
"Martin v. Löwis" <[EMAIL PROTECTED]> writes:
> > PS: Besides: what are speed costs of LOCK INC ?
>
> 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
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 so
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 ac
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 whol
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
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 nu
<[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 strin
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
>T2Ay-EAB7rCY6SnwfnDzZ98M37b
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 wort
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 scr
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 th
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
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, h
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 o
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 th
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
>T2Ay-EAB7rCY6SnwfnDzZ98M37b
[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, w
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,
while
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.
Fuzzyma
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 syst
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. I
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 add
Paul Rubin schrieb:
> "Martin v. Löwis" <[EMAIL PROTECTED]> writes:
>>> PS: Besides: what are speed costs of LOCK INC ?
>> 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 sin
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: http://docs.python
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 e
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 t
"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 w
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.
> How
86 matches
Mail list logo