Samuel wote:
Thanks, however, turns out my specification of the problem was
incomplete: In addition, the variable names are not known at compilation
time.
I just did it that way, this looks fairly easy already:
---
import re
def variable_sub_cb(match):
On Jun 17, 8:51 pm, Squzer Crawler [EMAIL PROTECTED] wrote:
i am developing distributed environment in my college using Python. I
am using therads in client for downloading wepages. Even though i am
reusing the thread, memory usage get increased. I don know why.? I am
using BerkelyDB for
On Jun 18, 11:06 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On Jun 17, 8:51 pm, Squzer Crawler [EMAIL PROTECTED] wrote:
i am developing distributed environment in my college using Python. I
am using therads in client for downloading wepages. Even though i am
reusing the thread, memory
[EMAIL PROTECTED] wrote:
I'm currently using antiword to extract content from MS Word files.
Is there another way to do this without relying on any command prompt
application?
There is also wvware http://wvware.sourceforge.net/, but it is also
generally a command-line application. Either of
On 17 июн, 19:13, Xah Lee [EMAIL PROTECTED] wrote:
In the following, i describe some critical changes that are also very
easy to fix in emacs. If emacs officially adopt these changes, i think
it will make a lot people, at least programers, like emacs and choose
emacs as their text editor.
Josiah Carlson [EMAIL PROTECTED] wrote:
Samuel wrote:
On Sun, 17 Jun 2007 11:00:58 +, Duncan Booth wrote:
The elegant and lazy way would be to change your specification so
that $ characters are escaped by $$ not by backslashes. Then you can
write:
from string import Template
...
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
def __del__ (self):
try:
os.remove (self.name + '.old')
except:
pass
And setting:
sys.stderr = logger(...)
It seems my cleanup (__del__) is never called,
...
Mmm... If I read the
En Mon, 18 Jun 2007 00:25:25 -0300, [EMAIL PROTECTED] escribió:
I'm trying to serve up a simple XMLRPC server as a windows service. I
got it to run properly, I'm just not sure how to stop it properly.
Most of the documentation/examples I found for this was from forums,
so I'd love some links
sturlamolden wrote:
Use numpy: www.scipy.org
NumPy has a matrix type that overloads the * operator.
Just a tiny followup, which may be important unless you carefully read the
documentation. The * operator doesn't do matrix multiplication for normal
numpy arrays - you do need to use its
En Mon, 18 Jun 2007 01:45:38 -0300, [EMAIL PROTECTED]
[EMAIL PROTECTED] escribió:
I'm using PyRun_String with Py_single_input for a python interpreter
embedded in my application. I'm using Py_single_input. Py_single input
is what I want, but it seems to output to stdout. Before when I was
I am working with Python 2.5 and would like to use of a web service.
What shall I install on my setup (or import in my Python script)?
I read about Zolera Soap Infrastructure, which seems to be the
preferred Python web service framework (http://
pywebsvcs.sourceforge.net/). However, its
* Reduce the use of the word buffer in the emacs documentation.
Call it opened file or unsaved document.
As far as I understand the concept of buffer is much much wider than
of unsaved document or file. Should we call dired buffer as
unsaved document?
It is much wider, which is why
Daniel wrote:
# the next line causes a segfault - what's the right way to do this?
#GCS_RGB = cglib.kCGColorSpaceGenericRGB()
Usually, things in the OSX lib that start with k* are a constant - not a
function. As is this.
Diez
That's what I thought too. But when I try passing it
I think a better fix than the one I posted below is using the
HTTPConnection library, as opposed to the HTTP library from httplib.
A patch can be found below:
--- /sw/lib/python2.5/xmlrpclib.py 2006-11-29 02:46:38.0
+0100
+++ xmlrpclib.py2007-06-15 16:03:17.0 +0200
Josh Hill [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Sat, 16 Jun 2007 13:06:23 -, Milt
[EMAIL PROTECTED] wrote:
On Jun 15, 1:00?pm, [EMAIL PROTECTED] wrote:
This is a network of students. Find the people of your kind there
http://tinyurl.com/33uvla
Click and
On 2007-06-15, Ping [EMAIL PROTECTED] wrote:
sum(1 for i in a_list if a_callable(i))
--
Carsten Haesehttp://informixdb.sourceforge.net
This works nicely but not very intuitive or readable to me.
First of all, the generator expression makes sense only to
trained eyes. Secondly, using
On Jun 18, 7:55 pm, Alchemist [EMAIL PROTECTED] wrote:
I am working with Python 2.5 and would like to use of a web service.
What shall I install on my setup (or import in my Python script)?
I read about Zolera Soap Infrastructure, which seems to be the
preferred Python web service framework
I have a web service that I built and it requires using SSL. I have
found a few examples of clients using SSL but none that allow me to
change the client's certificate or the chain of certificates the client
will use to authenticate the server.
I was wondering if anyone knows of a good example
Hello list,
I'm thinking about a python script which fetch some text from the screen
independent of what application provides the text on the screen. In this
regard it should be similar to the babylon software: www.babylon.com
Here my thoughts:
1) getting the mouse position
2) calculate a
On Jun 18, 12:35 am, Matt Chisholm [EMAIL PROTECTED] wrote:
Hi. I was wondering if there had ever been an official decision on
the idea of adding labeled break and continue functionality to Python.
I've found a few places where the idea has come up, in the context of
named code blocks:
[EMAIL PROTECTED] wrote:
Hi,
Is there any direct function for matrix multiplication in Python or
any of its packages? or do we have to multiply element by element?
If you want a pure Python module for 4x4 matrices, then you may want to
look at Game Objects
On Jun 18, 6:07 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Daniel wrote:
# the next line causes a segfault - what's the right way to do this?
#GCS_RGB = cglib.kCGColorSpaceGenericRGB()
Usually, things in the OSX lib that start with k* are a constant - not a
function. As is this.
On 17/06/07, William Gill [EMAIL PROTECTED] wrote:
I have a (web) development computer w/o an SMTP server and want to test
form generated e-mail using a dummy SMTP server that delivers the mail
message to a file, or better yet, to a text editor instead of actually
sending it. Is it possible
I've defined a single method in Python using:
def funcAdjacents(inputWord, outputFile):
...
lots of boring stuff
...
and then called it using:
funcAdjacents(SampleWord,outputFile.file)
Which works OK in Python - I get the results I want. But what I'm
trying to do is get inputWord
DAC wrote:
I've defined a single method in Python using:
def funcAdjacents(inputWord, outputFile):
...
lots of boring stuff
...
and then called it using:
funcAdjacents(SampleWord,outputFile.file)
Which works OK in Python - I get the results I want. But what I'm
trying
Can python maky a binary code for exemple .hex for microcontrolor.
tks
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
So, I'm writing this to have your opinion on what tools I should use
to do this and what technique I should use.
Take a look at parsing example on this page:
http://wiki.python.org/moin/SimplePrograms
--
HTH,
Rob
--
On 18 Jun, 14:57, Diez B. Roggisch [EMAIL PROTECTED] wrote:
DAC wrote:
I've defined a single method in Python using:
def funcAdjacents(inputWord, outputFile):
...
lots of boring stuff
...
and then called it using:
funcAdjacents(SampleWord,outputFile.file)
Which works
Discover As Beginning Successful Business In Internet.
If you believed that to begin business in internet single era for
experts This very mistaken one!
Discover our system proven to begin business in Internet. Entering
RIGHT NOW
http://www.freedom.ws/pacovegavilla
Alone to visit our place
[EMAIL PROTECTED] wrote:
I work at this company and we are re-building our website: http://caslt.org/.
The new website will be built by an external firm (I could do it
myself, but since I'm just the summer student worker...). Anyways, to
help them, they first asked me to copy all the text from
Xah Lee [EMAIL PROTECTED] writes:
SIMPLE CHANGES
In the following, i describe some critical changes that are also very
easy to fix in emacs. If emacs officially adopt these changes, i think
it will make a lot people, at least programers, like emacs
On 2007-06-18, getgroup [EMAIL PROTECTED] wrote:
Can python maky a binary code for exemple .hex for microcontrolor.
Are you asking if a Python program can be compiled into a
binary executable which is to run on a microcontroller? The
answer to that is no.
Are you asking if a Python program can
Hello,
do you know of any way to copy locked / opened files under win xp?
I know there is something like Volume Shadow Copy but I don't know
how to use it.
Maybe someone already has a python solution?
Many thanks
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Alex Martelli wrote:
PL/1 is basically gone, but its legacy of take what you need and leave
the rest is unfortunately alive in other languages that are blind to
the enormous advantages of simplicity and uniformity.
Reminds me of RUP... No wonder Ivar Jacobson gave up and started all over.
--
On Jun 17, 9:16 am, mark carter [EMAIL PROTECTED] wrote:
Should I also explicitly close the cursor and connection, or is that
taken care of automagically?
Somebody correct me if I'm wrong, but I'm pretty sure that the Cursor
and Connection objects properly clean themselves up when deallocated
Hi,
I work at this company and we are re-building our website: http://caslt.org/.
The new website will be built by an external firm (I could do it
myself, but since I'm just the summer student worker...). Anyways, to
help them, they first asked me to copy all the text from all the pages
of the
On Jun 18, 11:01 am, Hyuga [EMAIL PROTECTED] wrote:
In fact, I have code in which references to a
db connection are passed around, so I have to be careful about
explicitly closing the connection, lest it be in use by some other
method somewhere.
Hate to reply to myself, but I should clarify
On 2007-06-18, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I work at this company and we are re-building our website: http://caslt.org/.
The new website will be built by an external firm (I could do it
myself, but since I'm just the summer student worker...). Anyways, to
help them, they first
Josh Hill wrote:
On Sat, 16 Jun 2007 13:06:23 -, Milt
[EMAIL PROTECTED] wrote:
On Jun 15, 1:00?pm, [EMAIL PROTECTED] wrote:
This is a network of students. Find the people of your kind there
http://tinyurl.com/33uvla
Click and register to access millions of students.
Your link
I have a (web) development computer w/o an SMTP server and want to test
form generated e-mail using a dummy SMTP server that delivers the mail
message to a file, or better yet, to a text editor instead of actually
sending it.
Here's a quick and dirty script I use this for email testing
I found a solution using sys.displayhook here:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/593cd28e568c32e1/1e0f930e7ac5ebb2?#1e0f930e7ac5ebb2
On Jun 18, 4:24 am, Gabriel Genellina [EMAIL PROTECTED]
wrote:
En Mon, 18 Jun 2007 01:45:38 -0300, [EMAIL PROTECTED]
[EMAIL
On Jun 15, 10:24 pm, Jens Thiede [EMAIL PROTECTED] wrote:
What is the best source code to read? Any tips; suggestions?
Thanks in advance
Jens Thiede
I would recommend reading the wxPython demo source code. Also, this
website has some custom widgets written in pure wxPython, some of
which are
is there a way to find out the size of an object in Python? e.g., how could
i get the size of a list or a tuple?
--
You're never too young to have a Vietnam flashback
--
http://mail.python.org/mailman/listinfo/python-list
Joel J. Adamson wrote:
people aware of it; as soon as I became aware of Emacs (from reading
Wikipedia, ironically), I began using it and I knew I was stuck with
it. It's not even important for the survival of Emacs that it be more
many others get stuck with a preferred editor/system/language;
On Jun 18, 11:07 am, filox [EMAIL PROTECTED] wrote:
is there a way to find out the size of an object in Python? e.g., how could
i get the size of a list or a tuple?
Size can mean a lot of things,
len(my_list)
len(my_tuple)
Although I have the feeling you mean how many bytes does this object
On Jun 18, 11:20 am, Jeremy Sanders jeremy
[EMAIL PROTECTED] wrote:
NumPy has a matrix type that overloads the * operator.
Just a tiny followup, which may be important unless you carefully read the
documentation. The * operator doesn't do matrix multiplication for normal
numpy arrays
Neil Cerutti wrote:
You could get good results, and save yourself some effort, using
links or lynx with the command line options to dump page text to
a file. Python would still be needed to automate calling links or
lynx on all your documents.
OP was looking for a way to parse out part of
Do you mean files marked in-use by the OS, like DLLs used by an open
application?
There shouldn't be anything preventing you from copying in-use files, or
even read-only files if that's what you meant:
import shutil
shutil.copy('C:\\my_application\\test.dll',
'C:\\new_folder\\test.dll')
It seems like
x = defaultdict(defaultdict(list))
should do the obvious, but it doesn't. This seems to work
y = defaultdict(lambda: defaultdict(list))
though is a bit uglier.
--
http://mail.python.org/mailman/listinfo/python-list
I wish to prevent a python script from running twice; it's an hourly job, but
can take too long.
My simplistic script looks like
...
def main():
fn = 'MARKER'
if os.path.isfile(fn):
log('%s: hourly job running already' % formatTime())
else:
f = open(fn,'w')
Jay Loden wrote:
Someone else mentioned lxml but as I understand it lxml will only work if
it's valid XHTML that they're working with.
No, it was meant as the OP requested. It even has a very good parser from
broken HTML.
http://codespeak.net/lxml/dev/parsing.html#parsing-html
Stefan
--
Hi Adam,
On 18 Jun., 18:41, Adam Pletcher [EMAIL PROTECTED] wrote:
Do you mean files marked in-use by the OS, like DLLs used by an open
application?
I dont know the exact name, but some programs totally lock the files,
like Visual Studio
shutil.copy('C:\\a\\test\\test.ncb','C:\\b\test.ncb')
On 6/18/07, Robin Becker [EMAIL PROTECTED] wrote:
I wish to prevent a python script from running twice; it's an hourly job, but
can take too long.
My simplistic script looks like
...
def main():
fn = 'MARKER'
if os.path.isfile(fn):
log('%s: hourly job running
Robin Becker wrote:
I wish to prevent a python script from running twice; it's an hourly job, but
can take too long.
[snip]
but it occurs to me that I might be killed with prejudice during the long
running work(). Is there a smart way to avoid running simultaneously.
Well I can think
On 18/06/07, Evan Klitzke [EMAIL PROTECTED] wrote:
On 6/18/07, Robin Becker [EMAIL PROTECTED] wrote:
I wish to prevent a python script from running twice; it's an hourly job,
but
can take too long.
My simplistic script looks like
...
def main():
fn = 'MARKER'
Stefan Behnel wrote:
Jay Loden wrote:
Someone else mentioned lxml but as I understand it lxml will only work if
it's valid XHTML that they're working with.
No, it was meant as the OP requested. It even has a very good parser from
broken HTML.
Stefan Behnel wrote:
Jay Loden wrote:
Someone else mentioned lxml but as I understand it lxml will only work if
it's valid XHTML that they're working with.
No, it was meant as the OP requested. It even has a very good parser from
broken HTML.
On 18/06/07, Wildemar Wildenburger [EMAIL PROTECTED] wrote:
Robin Becker wrote:
I wish to prevent a python script from running twice; it's an hourly job,
but
can take too long.
[snip]
but it occurs to me that I might be killed with prejudice during the long
running work(). Is there
Hi,
I patched Objects/listobject.c to support
L.count(value, cmp=None, key=None).
I tested it with the same script above by replacing slist
with built-in list. It worked correctly with this small
test. The patch is below (126 lines, I hope that's not
too big to be pasted here). This is the
Hello. I am trying to install version 2.5.1 for the first time on our
Solaris 10 server (64 bit). When I execute #./config as root user, I
get the following error:
checking gettaddrinfo bug... buggy
Fatal: You must get wroking getaddrinfo() function.
or you can specify
On 6/18/07, Tim Williams [EMAIL PROTECTED] wrote:
On 18/06/07, Evan Klitzke [EMAIL PROTECTED] wrote:
On 6/18/07, Robin Becker [EMAIL PROTECTED] wrote:
I wish to prevent a python script from running twice; it's an hourly job,
but
can take too long.
My simplistic script looks like
Adam Pletcher wrote:
Do you mean files marked in-use by the OS, like DLLs used by an open
application?
There shouldn't be anything preventing you from copying in-use files, or
even read-only files if that's what you meant:
import shutil
shutil.copy('C:\\my_application\\test.dll',
Evan Klitzke wrote:
Another method that you can use is to open up a socket on some
predetermined port (presumably above 1024), and then have your program
try to connect to that port and talk to the other program to
determine whether or not to run (or whether to do some of the
Ben Finney wrote:
Rostfrei [EMAIL PROTECTED] writes:
What is the news server for this
newsgroup.
Usenet newsgroups are redistributed over many servers worldwide.
URL:http://en.wikipedia.org/wiki/Usenet
If I ping comp.lang.python it is not resolved.
That's right. It's the name
All,
Mail messages should be wrapped at 78 characters (as suggested in RFC
2822). I want my python batch scripts/cron jobs to enforce this
behavior, and format the mail that is sent out so that newline
characters are inserted as appropriate to keep line lengths at 78
characters or less. I wrote a
I have a csv file containing lot of rows columns. I wanted to search thru the
heading for each column for a string and then print all the headings and the
corresponding rows if a match is found.
Any advise?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Joel J. Adamson wrote:
Xah Lee [EMAIL PROTECTED] writes:
SIMPLE CHANGES
In the following, i describe some critical changes that are also very
easy to fix in emacs. If emacs officially adopt these changes, i think
it will make a lot people, at
Wildemar Wildenburger wrote:
Robin Becker wrote:
Well I can think of a dumb way: create a temporary file during the
transaction and have your script check for that before running its main
body.
I think thats the most hassle free way of doing it.
/W
I looked at the temporary
Evan Klitzke wrote:
All,
Mail messages should be wrapped at 78 characters (as suggested in RFC
2822). I want my python batch scripts/cron jobs to enforce this
behavior, and format the mail that is sent out so that newline
characters are inserted as appropriate to keep line lengths at 78
On 6/18/07, TeroV [EMAIL PROTECTED] wrote:
Evan Klitzke wrote:
All,
Mail messages should be wrapped at 78 characters (as suggested in RFC
2822). I want my python batch scripts/cron jobs to enforce this
behavior, and format the mail that is sent out so that newline
characters are
I'm trying to extract something like this:
object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,19,0 width=640 height=400
param name=movie value=url
param name=quality value=highparam name=SCALE
I see there is a couple of tools I could use, and I also heard of
sgmllib and htmllib. So now there is lxml, Beautiful soup, sgmllib,
htmllib ...
Is there any of those tools that does the job I need to do more easily
and what should I use? Maybe a combination of those tools, which one
is better
In [EMAIL PROTECTED], gcmartijn
wrote:
I'm trying to extract something like this:
object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,19,0 width=640 height=400
param name=movie value=url
param
On 6/18/07, Robin Becker [EMAIL PROTECTED] wrote:
Evan Klitzke wrote:
Another method that you can use is to open up a socket on some
predetermined port (presumably above 1024), and then have your program
try to connect to that port and talk to the other program to
determine
In [EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
It seems like
x = defaultdict(defaultdict(list))
should do the obvious, but it doesn't.
It *does* the obvious. Parenthesis after a name means: call this object
*now*. Any other behavior wouldn't be obvious.
Ciao,
Marc
Thanks a lot... I guess I'll have to find another way for versions
before
2.5 ;-)
The original idea came from
http://www.majid.info/mylos/stories/2004/06/10/threadframe.html but it
uses a compiled C extension, yes. The code is really small and you should
not have problems compiling it...
[EMAIL PROTECTED] wrote:
I see there is a couple of tools I could use, and I also heard of
sgmllib and htmllib. So now there is lxml, Beautiful soup, sgmllib,
htmllib ...
Is there any of those tools that does the job I need to do more easily
and what should I use? Maybe a combination of
On 18/06/07, Robin Becker [EMAIL PROTECTED] wrote:
Wildemar Wildenburger wrote:
Robin Becker wrote:
.
Well I can think of a dumb way: create a temporary file during the
transaction and have your script check for that before running its main
body.
I think thats the most
Robin Becker wrote:
I wish to prevent a python script from running twice; it's an hourly job, but
can take too long.
My simplistic script looks like
...
def main():
fn = 'MARKER'
if os.path.isfile(fn):
log('%s: hourly job running already' % formatTime())
I patched Objects/listobject.c to support
L.count(value, cmp=None, key=None).
I tested it with the same script above by replacing slist
with built-in list. It worked correctly with this small
test. The patch is below (126 lines, I hope that's not
Great! If you want this change included
Tim Williams [EMAIL PROTECTED] wrote:
You can also do this by holding a file open in write mode until the
script has finished.
try:
open('lock.txt','w')
my_script()
except:
#print script is already running
That only works under windows
Robin Becker [EMAIL PROTECTED] wrote:
I looked at the temporary files idea, but I'm not certain about the exact
details. Normally your create a file and then remove it whilst keeping the
file
handle; that allows your program to write to it whilst guaranteeing that it
will
vanish
Hi,
Can someone explain me, what is wrong with this site ?
python linkExtractor3.py http://www.noticiasdeaveiro.pt test
HTMLParser.HTMLParseError: EOF in middle of construct, at line 1173,
column 1
at line 1173 of test file is perfectly normal .
I like to know what I have to clean up before
Squzer Crawler wrote:
On Jun 18, 11:06 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On Jun 17, 8:51 pm, Squzer Crawler [EMAIL PROTECTED] wrote:
i am developing distributed environment in my college using Python. I
am using therads in client for downloading wepages. Even though i am
reusing
Terry Reedy [EMAIL PROTECTED] writes:
|oug writes:
Scheme has a powerful syntax extension mechanism
I did not and do not see this as relevant to the main points of my
summary above. Python has powerful extension mechanisms too, but
comparing the two languages on this basis is a whole
On 18/06/07, Nick Craig-Wood [EMAIL PROTECTED] wrote:
Tim Williams [EMAIL PROTECTED] wrote:
You can also do this by holding a file open in write mode until the
script has finished.
try:
open('lock.txt','w')
my_script()
except:
Brett Hoerner [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Jun 18, 11:07 am, filox [EMAIL PROTECTED] wrote:
is there a way to find out the size of an object in Python? e.g., how
could
i get the size of a list or a tuple?
Size can mean a lot of things,
len(my_list)
On Jun 19, 4:12 am, [EMAIL PROTECTED] wrote:
I have a csv file containing lot of rows columns. I wanted to search thru
the
heading for each column for a string and then print all the headings and the
corresponding rows if a match is found.
Any advise?
1. Clarify your requirements:
Hello!
Just to ask, is it possible to make a static dictionary in python. So
that the keys in the dictionary cannot be removed, changed or new ones
added, but the value pairs can.
Is this possible with python?
thanks,
Ognjen.
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 2007-06-18 at 13:11 -0700, John Machin wrote:
On Jun 19, 4:12 am, [EMAIL PROTECTED] wrote:
I have a csv file containing lot of rows columns. I wanted to search thru
the
heading for each column for a string and then print all the headings and the
corresponding rows if a match is
On 6/18/07, Robin Becker [EMAIL PROTECTED] wrote:
Evan Klitzke wrote:
Another method that you can use is to open up a socket on some
predetermined port (presumably above 1024), and then have your program
try to connect to that port and talk to the other program to
determine whether or not
I've got a rather large log processing job here that has the same
requirement. I process and sort Apache logs from an 8-way cluster. I
sort and calculate statistics in 15-minute batch jobs. Only one copy
should run at once.
I open a file and lock it via something like this:
import fcntl
Note that in real life, the script exits cleanly if another copy is running...
On 6/18/07, Jeff McNeil [EMAIL PROTECTED] wrote:
I've got a rather large log processing job here that has the same
requirement. I process and sort Apache logs from an 8-way cluster. I
sort and calculate statistics
Great -- thanks! (and also to J. Ezequiel).
Mark T wrote:
Eric Spaulding [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is there an easy way to pass arguments to a handler class that is used by
the standard TCPServer?
normally -- srvr =SocketServer.TCPServer(('',port_num),
Chaz Ginger schrieb:
I have a web service that I built and it requires using SSL. I have
found a few examples of clients using SSL but none that allow me to
change the client's certificate or the chain of certificates the client
will use to authenticate the server.
I was wondering if anyone
Daniel wrote:
Thanks Diez. I'll try that if I decide to keep going with ctypes. I
got a bit further but had some problems with memory management (i.e.
retaining and releasing object references). It seemed like Python/
ctypes was accessing referenced objects after I had released them,
which
On Jun 18, 2:48 pm, filox [EMAIL PROTECTED] wrote:
is there a long answer? what i want is to find out the number of bytes the
object takes up in memory (during runtime). since python has a lot of
introspection mechanisms i thought that should be no problem...
There isn't an automatic way
On Jun 19, 5:17 am, BJörn Lindqvist [EMAIL PROTECTED] wrote:
persons.count(olle, key = attergetter(name))
is longer and just barely more readable than
sum(1 for x in persons if x.name == olle))
The OP's proposal seems to have a very narrow focus, whereas the
generator approach can
Jeff McNeil [EMAIL PROTECTED] wrote:
I've got a rather large log processing job here that has the same
requirement. I process and sort Apache logs from an 8-way cluster. I
sort and calculate statistics in 15-minute batch jobs. Only one copy
should run at once.
I open a file and lock
Tim Williams [EMAIL PROTECTED] wrote:
On 18/06/07, Nick Craig-Wood [EMAIL PROTECTED] wrote:
On Windows the open-a-file-for-writing method works well, but as *nix
doesn't work the same way then maybe the socket solution is the best
cross-platform option.
Actually you could combine your
1 - 100 of 139 matches
Mail list logo