Thursday, September 14th at 7:00 PM
See www.seapig.org for more info.
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
in parallel to Mark's week-long Python seminar (Nov 6-10), we are
offering an alternative session focusing only on advanced topics. it is
3-days long (Nov 8-10) and will be held in San Francisco.
course description:
http://roadkill.com/~wesc/cyberweb/pp2dsc.html
general information:
QOTW: Regexps are a brittle tool, best tolerated in small doses. - Tim Peters
Simplicity is prerequisite for reliability - Edsger W. Dijkstra
eval(repr(var)) sometimes works for serialization but don't count on it.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On behalf of the GNU Mailman development team, I'm please to announce
Mailman 2.1.9. This is primarily a security and bug fix release and
it is highly recommended that all sites upgrade to this version.
Mailman 2.1.9 also contains support for
[EMAIL PROTECTED] wrote:
The following program does not work if you uncomment #lis =
[xmms2] + list(args)
Evidently Python is opting for the nullary constructor list() as
opposed to the other one which takes a sequence. But no newcomer would know
this.
Are you using the nullary
In [EMAIL PROTECTED], Nemesis wrote:
Mentre io pensavo ad una intro simpatica Franz Steinhaeusler
scriveva:
There is no progress bar or other info, if I subscribe one list.
There is a little in the lower left corner, but if a lot of headers
and bodies are received, the program seems to
Tempo wrote:
Thanks for all of the help. It all has been very useful to an new
python programmer. I agree that I should fix the error/bug instead of
handeling it with a try/etc. However, I do not know why
range(sh.nrows) never gets the right amount of rows right. For
example, if the Excel
On 09/15/2006 Lad wrote:
How can be HTTP_X_FORWARDED_FOR easily spoofed? I thought that IP
address is not possible change.
Because it is a header that is added by the proxy. This header has (or
should have) no role in the proces of relaying the request by the proxy.
It is just politely added
Hi everyone,
Maybe these questions will sound strange to you, but I sometime have a
hard time switching from Java to Python ;-)
Let's say I have a function like this :
def show_lines(file):
for next_line in file:
...
What can I do to be sure that the input argument is
This is probably more of a networking question than a Python one, but
it would be nice to know if someone has done this with Python's socket
module. And besides one usually gets more information from c.l.py than
anywhere else :)
I have a server with a static public IP and a client behind a NAT. I
In [EMAIL PROTECTED], sc_wizard29
wrote:
Maybe these questions will sound strange to you, but I sometime have a
hard time switching from Java to Python ;-)
Let's say I have a function like this :
def show_lines(file):
for next_line in file:
...
What can I do to be
On 15 Sep 2006 00:18:14 -0700, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi everyone,
Maybe these questions will sound strange to you, but I sometime have a
hard time switching from Java to Python ;-)
Let's say I have a function like this :
def show_lines(file):
for next_line in
On 9/15/06, David J. Braden [EMAIL PROTECTED] wrote:
Wildemar Wildenburger wrote:
(...)
jEdit is extensible though java, and with the jython plugin also through
python.
Thanks. That helps me get a sense of the landscape.
As an emacs user, this is a clear plus for JEdit (and for vim, for
Marc 'BlackJack' Rintsch a ecrit :
And what do you do if you check for `file` and it isn't such an instance?
Raise an exception? A no, that's something you don't like. So what else?
;-)
Well, I prefer the idea of raising my *own* exception to the idea of
having an unknown behavior occur
Bryan Olson schrieb:
Diez B. Roggisch wrote:
bmearns schrieb:
Is it possible to specify which port to use as the outbound port on a
connection?
[...]
Specifically, I'm trying to write an FTP host, and I'm trying to
implement the PORT command.
AFAIK you neither can't do that nor need it.
[EMAIL PROTECTED] wrote:
Marc 'BlackJack' Rintsch a ecrit :
And what do you do if you check for `file` and it isn't such an instance?
Raise an exception? A no, that's something you don't like. So what
else? ;-)
Well, I prefer the idea of raising my *own* exception to the idea of
I would like to perform an addition without carrying of two integers...
I've got no idea how to do this in python, although I've been using it
for web/cgi/db work for a few years now.
Any help would be great.
Hugh
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for your help peter !
--
http://mail.python.org/mailman/listinfo/python-list
Janto Dreijer a écrit :
This is probably more of a networking question than a Python one, but
it would be nice to know if someone has done this with Python's socket
module. And besides one usually gets more information from c.l.py than
anywhere else :)
I have a server with a static public
Marc 'BlackJack' Rintsch wrote:
XPN is monothreaded, so when it is downloading the headers (it is a
monolotic job) the progress bar can't be updated.
Why? I guess there's a loop involved. Can't you update the GUI after
each message?
If you use the Donwload New Headers function XPN will
Georg Brandl wrote:
Georg Brandl wrote:
...
Please open a bug in the tracker at http://www.sf.net/projects/python.
Wait, don't bother - just fixed it myself.
Nice one, cheers!
--
http://mail.python.org/mailman/listinfo/python-list
In [EMAIL PROTECTED], Hugh wrote:
I would like to perform an addition without carrying of two integers...
I've got no idea how to do this in python, although I've been using it
for web/cgi/db work for a few years now.
Your description is a bit vague. What is `without carrying`? Do you want
Hugh wrote:
I would like to perform an addition without carrying of two integers...
I've got no idea how to do this in python, although I've been using it
for web/cgi/db work for a few years now.
In multiword addition in assembly language, one uses a normal ADD
instruction on the
Title: Message
Hello!
I have problem ofusing a exe file (it did well to makethe exe
filewith py2exe) with the bltto make gui programs with graphics with
windows.It seems to work well on my computer, but when running the
.exe file on another computer I got the message:
Exception in Tkinter
Sorry, here's an example...
5+7=12
added without carrying, 5+7=2
i.e the result is always less than 10
I've been thinking some more about this and my brain is starting to
work something out... I just wondered if there was a function in python
math to do this automatically...
Hugh
--
Hugh wrote:
Sorry, here's an example...
5+7=12
added without carrying, 5+7=2
i.e the result is always less than 10
def add(a, b, c=10):
an = a + b
if an = c:
an -= c
return an
add(5, 7) # = 2
?
Regards,
Jordan
--
http://mail.python.org/mailman/listinfo/python-list
Hugh wrote:
Sorry, here's an example...
5+7=12
added without carrying, 5+7=2
i.e the result is always less than 10
Are you looking for bitwise exclusive or? In Python it's
the '^' operator. For example:
print 5 ^ 7
--
--Bryan
--
Thankyou everyone this gives me something to work with.
Hugh
--
http://mail.python.org/mailman/listinfo/python-list
Peter,
That was what I was thinking along the lines of, It's been two years
since I finished my CS degree and working in mechanical engineering
means I've nearly forgotten it all! :(
Thanks, I'll write a function in my app to handle this...
Hugh
(5 + 7) % 10
2
In this context '%' is
On Thu, 14 Sep 2006 19:36:01 GMT, Nemesis [EMAIL PROTECTED]
wrote:
Mentre io pensavo ad una intro simpatica Franz Steinhaeusler
scriveva:
XPN (X Python Newsreader) is a multi-platform newsreader with Unicode
[...]
Hello Nemesis,
Hello Nemesis,
that is a great program, thank you.
Thanks.
Hugh wrote:
Sorry, here's an example...
5+7=12
added without carrying, 5+7=2
i.e the result is always less than 10
I've been thinking some more about this and my brain is starting to
work something out...
No need to think too long to come up with the most possibly QD solution:
res
John Machin wrote:
[EMAIL PROTECTED] wrote:
The following program does not work if you uncomment #lis =
[xmms2] + list(args)
Evidently Python is opting for the nullary constructor list() as
opposed to the other one which takes a sequence. But no newcomer would know
this.
Are
David J. Braden wrote:
I've come to sense, in the last (many) threads and topics brought up
that I have read in the last 3 weeks, that this NG attracts folks who
are very much into the web-app interface potential and usefulness of
Python, as you yourself seem to be (see following), and
Ramon Diaz-Uriarte wrote:
- I was referring to executing arbitrary sections of a Python file in
a Python interpreter in an integrated way. When I tried JEdit, I
think that Jython was the way to go. (And I think this was also the
case for a while, at least to judge from D. Metrz's review
Bruno Desthuilliers wrote:
Bryan Olson wrote:
Hugh wrote:
Sorry, here's an example...
5+7=12
added without carrying, 5+7=2
i.e the result is always less than 10
Are you looking for bitwise exclusive or? In Python it's
the '^' operator. For example:
print 5 ^ 7
10 ^ 21
31
diffuser This site and webpage in particular doesn't open. I tried that
diffuser too before posting my question.
Well, it is SourceForge. They are known for flakiness. Just keep trying.
If you never fail to open the tutorial, drop me a note and I'll send you a
copy.
Skip
--
A software house based in Bristol, UK require an experienced developer to
maintain and progress our Enterprise Management software suite. The suite
is a group of applications used to monitor, manage and alert on all aspects
of the enterprise infrastructure from the network to application
In article [EMAIL PROTECTED], Bruno Desthuilliers wrote:
Hugh wrote:
Sorry, here's an example...
5+7=12
added without carrying, 5+7=2
i.e the result is always less than 10
I've been thinking some more about this and my brain is starting to
work something out...
No need to think
Christophe wrote:
Bruno Desthuilliers a écrit :
Bryan Olson wrote:
Hugh wrote:
Sorry, here's an example...
5+7=12
added without carrying, 5+7=2
i.e the result is always less than 10
Are you looking for bitwise exclusive or? In Python it's
the '^' operator. For example:
print 5 ^
[EMAIL PROTECTED] wrote:
Hi everyone,
Maybe these questions will sound strange to you, but I sometime have a
hard time switching from Java to Python ;-)
Let's say I have a function like this :
def show_lines(file):
for next_line in file:
...
OT : this will shadow
[EMAIL PROTECTED] wrote:
Marc 'BlackJack' Rintsch a ecrit :
And what do you do if you check for `file` and it isn't such an instance?
Raise an exception? A no, that's something you don't like. So what else?
;-)
Well, I prefer the idea of raising my *own* exception to the idea of
[EMAIL PROTECTED] wrote:
Hi everyone,
Maybe these questions will sound strange to you, but I sometime have a
hard time switching from Java to Python ;-)
Let's say I have a function like this :
def show_lines(file):
for next_line in file:
...
What can I do to be
In article [EMAIL PROTECTED],
Ben Kovitz [EMAIL PROTECTED] wrote:
Maybe this is a better question for me to ask: *How* did you get
Python 2.4 running with Tkinter on OS X?
Ben Kovitz
Hi Ben
I am by no means a Python expert, but finding my way slowly. There is a
lot of documentation, but
Franz Steinhaeusler wrote:
A few other notes (or should I post into the feature requests on
sourceforge?)
To be honest I do not check sourceforge forums very often. If you want
you can also send me an email (the email is written in the readme
file).
little point: I find it superfluos on the
Gleb Rybkin wrote:
I searched online, but couldn't really find a standard package for
working with Python and XML -- everybody seems to suggest different
ones.
Is there a standard xml package for Python? Preferably high-level, fast
and that can parse in-file, not in-memory since I have to
On 9/15/06, Wildemar Wildenburger [EMAIL PROTECTED] wrote:
Ramon Diaz-Uriarte wrote:
- I was referring to executing arbitrary sections of a Python file in
a Python interpreter in an integrated way. When I tried JEdit, I
think that Jython was the way to go. (And I think this was also the
Hello all,
I have a piece of code I could use some help optimizing. What I'm
attempting to do is periodically grab a screenshot, and search for 2D
patterns of black pixels in it. I don't care about any color other
than black. Here's some simple code that simulates my worst-case
scenario,
On Fri, 01 Sep 2006 21:43:46 +0530
Ritesh Raj Sarraf [EMAIL PROTECTED] wrote:
Hi,
I have a small application, written in Python, that uses threads.
The application uses function foo() to download files from the web. As it
reads
data from the web server, it runs a progress bar by calling
Now that OIDs have been deprecated in PostgreSQL, how do you find the key of
a newly inserted record?
I've tried three Python client libraries, including psycopg2, and where they
support cursor attribute 'lastrowid' (Python DB API 2.0), it is always
zero.
Anyone figured this out?
Thanks.
--
Diez B. Roggisch wrote:
Gleb Rybkin wrote:
I searched online, but couldn't really find a standard package for
working with Python and XML -- everybody seems to suggest different
ones.
Is there a standard xml package for Python? Preferably high-level, fast
and that can parse in-file, not
Awesome! I haven't tested it on the actual server but I think it works.
Thanks!
I prefer a TCP connection solution and will post one if it works.
server.py
from socket import *
print listening
UDPSock = socket(AF_INET, SOCK_DGRAM)
UDPSock.bind((localhost, 1234)) # visibility to outside
On 2006-09-15, Christophe [EMAIL PROTECTED] wrote:
Initiate an UDP connection from the client to the server and
have the server send back the UDP packets to the address you
get in the recvfrom result.
There's no such thing as a UDP connection, so I don't
understand what you're suggesting.
--
On 2006-09-15, Janto Dreijer [EMAIL PROTECTED] wrote:
I have a server with a static public IP and a client behind a NAT. I
would like to send UDP packets from the server to the client. So what I
need to do is open up a hole in the NAT and let the server know the
target IP and port of the
On 2006-09-15, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Is it possible to specify which port to use as the outbound port on a
connection?
[...]
Specifically, I'm trying to write an FTP host, and I'm trying to
implement the PORT command.
AFAIK you neither can't do that nor need it.
I'm trying to structure a Python script that streams output over a pipe.
Here is my code:
import os
cmd = os.popen('echo foo | sudo -S /usr/sbin/tcpdump -en1')
cmd.read()
This returns output of . I'm expecting the standard output of tcpdump
-en1. How does one read unbuffered output over a pipe
Paul McNett wrote:
Tempo wrote:
Hello. I am getting an error and it has gotten me stuck. I think the
best thing I can do is post my code and the error message and thank
everybody in advanced for any help that you give this issue. Thank you.
#
Here's the code:
Oops. That second UDPSock = socket(...) in the server.py shouldn't be
there.
Janto Dreijer wrote:
Awesome! I haven't tested it on the actual server but I think it works.
Thanks!
I prefer a TCP connection solution and will post one if it works.
server.py
from socket import *
print
Jason wrote:
Jon Ribbens wrote:
In article [EMAIL PROTECTED], Bruno Desthuilliers wrote:
No need to think too long to come up with the most possibly QD solution:
res = int(str(5 + 7)[-1])
Am I missing something subtle in the question or is there some reason
that nobody has
Grant Edwards wrote:
On 2006-09-15, Christophe [EMAIL PROTECTED] wrote:
Initiate an UDP connection from the client to the server and
have the server send back the UDP packets to the address you
get in the recvfrom result.
There's no such thing as a UDP connection, so I don't
understand
Jerry Hill [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello all,
I have a piece of code I could use some help optimizing. What I'm
attempting to do is periodically grab a screenshot, and search for 2D
patterns of black pixels in it. I don't care about any color other
than
Grant Edwards wrote:
On 2006-09-15, Janto Dreijer [EMAIL PROTECTED] wrote:
...
Would it be a reasonable solution to initiate a TCP connection
from the client to the server and somehow (?) let the server
figure out how the client is connecting? And then send UDP to
client over the same
Hi,
Is there a way to tell an executing python script where to look for
dynamically-loaded libraries?
My situation is that that I am developing python wrappers for a large
software project. I create python wrappers with swig, and those
extension modules link against dynamic libraries from
Paul McGuire wrote:
Jerry Hill [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello all,
I have a piece of code I could use some help optimizing. What I'm
attempting to do is periodically grab a screenshot, and search for 2D
patterns of black pixels in it. I don't care
I need to use XML-RPC call with Basic Authorization in HTTP headers. I found
xmlrpclibBasicAuth.py, and it can be used as follows:
from xmlrpclibBasicAuth import Server
s=Server(http://www.example.com/rpc.php,user,pwd;)
print s.system.listMethods()
Is this possible in plain xmlrpclib, without
I perform a XML-RPC call by calling xmlrpclibBasicAuth which in turn calls
xmlrpclib. This call of course sends a HTTP request with correct HTTP
headers. The response is correctly parsed by xmlrpclib, and I get my desired
values.
However, I also need to get the raw HTTP headers from the HTTP
Okay, thanks!
Steven Bethard wrote:
Diez B. Roggisch wrote:
Gleb Rybkin wrote:
I searched online, but couldn't really find a standard package for
working with Python and XML -- everybody seems to suggest different
ones.
Is there a standard xml package for Python? Preferably
Bill Spotz wrote:
Hi,
Is there a way to tell an executing python script where to look for
dynamically-loaded libraries?
My situation is that that I am developing python wrappers for a large
software project. I create python wrappers with swig, and those
extension modules link
On 15 Sep 2006 00:32:49 -0700, Janto Dreijer [EMAIL PROTECTED] wrote:
This is probably more of a networking question than a Python one, but
it would be nice to know if someone has done this with Python's socket
module. And besides one usually gets more information from c.l.py than
anywhere else :)
hi
I've started learning python. I was typing from a tutorial,
and I fail to indent on an inner loop.
I got an error and all my previous typed lines are gone.
is there a way to prevent this.
i don't mind editing the last line, but to lose all the previous lines
are too much.
(since it has history
Grant Edwards [EMAIL PROTECTED] writes:
On 2006-09-15, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Is it possible to specify which port to use as the outbound port on a
connection?
[...]
Specifically, I'm trying to write an FTP host, and I'm trying to
implement the PORT command.
AFAIK
[EMAIL PROTECTED] wrote:
I've started learning python. I was typing from a tutorial,
and I fail to indent on an inner loop.
I got an error and all my previous typed lines are gone.
is there a way to prevent this.
i don't mind editing the last line, but to lose all the previous lines
are too
On 15 Sep 2006 08:16:41 -0700, John Machin [EMAIL PROTECTED] wrote:
C:\junkpython -mtimeit -sBLACK=(0,0,0);rgb=(1,1,1) rgb==BLACK
100 loops, best of 3: 0.129 usec per loop
C:\junkpython -mtimeit -srgb=(1,1,1) rgb==(0,0,0)
100 loops, best of 3: 0.127 usec per loop
Surprisingly (to
Jerry Hill wrote:
Hello all,
I have a piece of code I could use some help optimizing. What I'm
attempting to do is periodically grab a screenshot, and search for 2D
patterns of black pixels in it. I don't care about any color other
than black. Here's some simple code that simulates my
Dale Strickland-Clark wrote:
Now that OIDs have been deprecated in PostgreSQL, how do you find the key of
a newly inserted record?
I've tried three Python client libraries, including psycopg2, and where they
support cursor attribute 'lastrowid' (Python DB API 2.0), it is always
zero.
Jerry Hill wrote:
Hello all,
I have a piece of code I could use some help optimizing. What I'm
attempting to do is periodically grab a screenshot, and search for 2D
patterns of black pixels in it. I don't care about any color other
than black. Here's some simple code that simulates my
On 2006-09-15, Sergei Organov [EMAIL PROTECTED] wrote:
It's not the issue here, but to specify the outgoing port
call bind(('', portnum)) before connect().
It's an interesting thing to know, but I've been doing TCP
stuff for many years and never run across a situation where
it's something I
Hi Gleb,
Gleb Rybkin wrote:
I searched online, but couldn't really find a standard package for
working with Python and XML -- everybody seems to suggest different
ones.
Is there a standard xml package for Python? Preferably high-level, fast
and that can parse in-file, not in-memory since I
I want to code what would be nested for loops in C, but I don't know the
most elegant way of doing the same thing in python. So I need to learn how
from you folks. Here's what I need to do: build a database table of 180
rows. Each row contains 31 columns: the first is an automatically
Robert,
Thanks to you and everyone else for the help. The s.split('\x00',
1)[0] solved the problem.
Thanks again,
MDM
Robert Kern wrote:
Michael wrote:
I guess, I still don't see how this will work. I'm receiving a C
zero-terminated string in my Python program as a 1K byte block (UDP
Hi,
I have encountered
the same problem so you can try the following :
- Be sure your
%PYTHONPATH% is set
- open a DOS console
and type : "python C:\Python23\Lib\idlelib\idle.py"
- this will
launch the IDLE
- then choose
"configure IDLE" in Options menu
- in the menu
"Highlighting" on
On 2006-09-15, Dennis Lee Bieber [EMAIL PROTECTED] wrote:
On 14 Sep 2006 04:54:48 -0700, billie [EMAIL PROTECTED] declaimed the
following in comp.lang.python:
Hi all. I'm writing a TCP-based application that I will use to trasfer
binary files through the network. This piece of code represents
[EMAIL PROTECTED] wrote:
Kevin D. Smith wrote:
I've written a simple Python extension for UNIX, but I need to get it
working on Windows now. I'm having some difficulties figuring out how
to do this. I've seen web pages that say that MS Visual Studio is
required, and other that say
Dale,
Now that OIDs have been deprecated in PostgreSQL, how do you find the key of
a newly inserted record?
using OIDs as primary key was no good idea for some PostgreSQL versions
allready ... i.e. they really make dump restore much more
challenging.
So usually us have something along:
John Machin thanks for all of your help, and I take responsibility for
the way I worded my sentences in my last reply to this topic. So in an
effort to say sorry, I want to make it clear to everybody that it seems
as though errors in my code and use of external programs (Excel in
particular) are
Rich Shepard wrote:
I want to code what would be nested for loops in C, but I don't know
the
most elegant way of doing the same thing in python. So I need to learn how
from you folks. Here's what I need to do: build a database table of 180
rows. Each row contains 31 columns: the first
On Fri, 15 Sep 2006, Peter Otten wrote:
It's not clear to me why you would use dictionaries, especially as they
are unordered; I used lists instead:
Peter,
Because the data comes via a serial port as sequences of two bytes from an
OMR reader, and the byte pairs need to be converted into
Rich Shepard wrote:
On Fri, 15 Sep 2006, Peter Otten wrote:
It's not clear to me why you would use dictionaries, especially
as they are unordered; I used lists instead:
Because the data comes via a serial port as sequences of two
bytes from an
OMR reader, and the byte pairs need to
Disclaimer: I am not an expert in python, or even programming, for that
matter
In any case, option #2 sounds like the most theoretically sound. It
sounds like you are using Excel as a database, and your worker thread
as a transaction queue.
Something to consider: do you really need to modify
Grant Edwards wrote:
On 2006-09-15, Dennis Lee Bieber [EMAIL PROTECTED] wrote:
On 14 Sep 2006 04:54:48 -0700, billie [EMAIL PROTECTED] declaimed the
following in comp.lang.python:
Hi all. I'm writing a TCP-based application that I will use to trasfer
binary files through the network. This
I have some code...
import array
a = array.array('d')
f = open('file.raw')
a.fromfile(f, 10)
now I need to convert them into floats (32 bit...) what do i do?
--
http://mail.python.org/mailman/listinfo/python-list
Hi Partners,
Please check the following project details. If you are comfortable with
the requirement. Please send me your resume with the following details
asap.
Name of the Consultant
- Phone Number
- Email
- Rate / Salary
- Availability
- Location
Location:
Grant Edwards wrote:
On 2006-09-15, Sergei Organov [EMAIL PROTECTED] wrote:
It's not the issue here, but to specify the outgoing port
call bind(('', portnum)) before connect().
It's an interesting thing to know, but I've been doing TCP
stuff for many years and never run across a situation
John Machin wrote:
[...]
[1] There's a possibility that the package's author reads this
newsgroup, and I've heard tell that he's a cranky old so-and-so; you
wouldn't want him to take umbrage, would you?
Cranks doesn't even *begin* to describe it ...
regards
Steve
--
Steve Holden
SpreadTooThin schrieb:
I have some code...
import array
a = array.array('d')
f = open('file.raw')
a.fromfile(f, 10)
now I need to convert them into floats (32 bit...) what do i do?
I guess module struct is your friend.
Something like this:
struct.pack(f * len(a), *a)
Diez
--
In [EMAIL PROTECTED], SpreadTooThin
wrote:
I have some code...
import array
a = array.array('d')
f = open('file.raw')
a.fromfile(f, 10)
now I need to convert them into floats (32 bit...) what do i do?
What about:
b = array.array('f', a)
Ciao,
Marc 'BlackJack' Rintsch
--
Hi Harald
Thanks for that, somewhat comprehensive, answer.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Marc 'BlackJack' Rintsch schrieb:
In [EMAIL PROTECTED], SpreadTooThin
wrote:
I have some code...
import array
a = array.array('d')
f = open('file.raw')
a.fromfile(f, 10)
now I need to convert them into floats (32 bit...) what do i do?
What about:
b = array.array('f', a)
AFAIK d
Janto Dreijer wrote:
Grant Edwards wrote:
On 2006-09-15, Janto Dreijer [EMAIL PROTECTED] wrote:
Would it be a reasonable solution to initiate a TCP connection
from the client to the server and somehow (?) let the server
figure out how the client is connecting? And then send UDP to
Tim N. van der Leeuw wrote:
Hi,
select lastval();
Thanks, that was useful.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Kevin Walzer wrote:
I'm trying to structure a Python script that streams output over a pipe.
Here is my code:
import os
cmd = os.popen('echo foo | sudo -S /usr/sbin/tcpdump -en1')
cmd.read()
This returns output of . I'm expecting the standard output of tcpdump
-en1. How does one
1 - 100 of 173 matches
Mail list logo