"Joe Strout" <[EMAIL PROTECTED]> wrote:
> 4. You now see how a mutating an object within a function tells you
> NOTHING about how the reference to that object was passed.
> 5. You see that the first three languages above are passing a
> reference by value and using that to mutate and object, ye
On Wed, 05 Nov 2008 08:35:23 +0200, 3000 billg <[EMAIL PROTECTED]>
wrote:
Hi Senior,
Hi
There was a case for web site that will be public to Internet for me. I
like
python so I do not consider the use of Ruby on Rails.
Excellent choice :)
I searched more web framework of python from G
Hi,
I need to extract a frame from a wmv file and save it as a jpg. In fact
I need to extract a frame from each one of a collection of several
thousand wmv files, but that's beside the point.
I've actually written a script that does exactly this using the pyglet
module. But while it works fi
Martin wrote:
I need to extract a frame from a wmv file and save it as a jpg. In fact
I need to extract a frame from each one of a collection of several
thousand wmv files, but that's beside the point.
I've actually written a script that does exactly this using the pyglet
module. But while it
On Wed, 05 Nov 2008 14:39:36 +1100, Ben Finney wrote:
> Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes:
>
>> On Wed, 05 Nov 2008 13:18:27 +1100, Ben Finney wrote:
>>
>> > Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes:
>> >
>> > Your example shows only that they're important for group
Hi all,
I believe that this is a *nix question, but since I'm developing in
python, I'm here.
I have a code that execute into a "Popen" a command (ssh). I need that,
if the python process die, the parent pid (PPID) of the child don't
become 1 (like I can seen on /proc/$pid$/status ), but it has t
On Tue, 04 Nov 2008 15:36:23 -0600, Larry Bates <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>> tmallen:
>>> I'm parsing some text files, and I want to strip blank lines in the
>>> process. Is there a simpler way to do this than what I have here?
>>> lines = filter(lambda line: len(line.st
I've discovered that since glibc 2.3.2, getaddrinfo(3) supports a
useful flag called AI_ADDRCONFIG. It turns off lookups if
the machine isn't configured for IPv6 (and similarly for IPv4,
theoretically). This is especially important when behind gateways
whose DNS forwarder silently filter AA
Ben Finney:
> Is there a later PEP that I've missed which
> finally makes ‘bool’ a type independent from ‘int’?
In a tidy language like an ObjectPascal or Java bools and integers are
different types.
In Python if bools become distinct from integers you have to rewrite
things like:
sum(el == val f
Prateek:
> How do I make a dictionary which has distinct key-value pairs for 0,
> False, 1 and True.
Why do you have to do that? What's the problem you have to solve?
Maybe (probably) there are better or more clean alternative solutions.
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/
Tim Golden wrote:
Martin wrote:
I need to extract a frame from a wmv file and save it as a jpg. In
fact I need to extract a frame from each one of a collection of
several thousand wmv files, but that's beside the point.
I've actually written a script that does exactly this using the pyglet
m
Martin wrote:
I've looked at Pymedia but I have to admit I couldn't work it out.
Commandline might be good, but I'm really hoping someone can point me in
the right direction, as this is not my area of expertise.
Nor mine :) Just so people can help you out, can you
be more precise in your req
On Nov 4, 3:48 pm, Prateek <[EMAIL PROTECTED]> wrote:
> I've been using Python for a while (4 years) so I feel like a moron
> writing this post because I think I should know the answer to this
> question:
>
> How do I make a dictionary which has distinct key-value pairs for 0,
> False, 1 and True.
Hi ,
Could anybody please point to any available Red Hat 32 bit RPM for python
2.4 or greater version on Net. I searched a lot but could find for other
flavour and not Red hat.
Thanks in advance,
James
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
I have a question concerning the use of array.array inside of C++ code I
wrote.
I am working with _big_ data files but some entries in these files are
usually bounded say between -5 to 40. Returning a Python list makes no
sense. In Python I always work with the array.array module which
On Nov 2, 11:19 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Push-style though enhances the risk of mixing program logic with
> presentation-logic (as simple print-statements do), and makes it a
> precondition that anybody who's supposed to tinker with the softare
> needs to be knowledgable
On Wed, 05 Nov 2008 04:22:32 -0800, bearophileHUGS wrote:
> In Python if bools become distinct from integers you have to rewrite
> things like:
> sum(el == val for el in iterable)
> as:
> sum(1 for el in iterable if el == val)
I would expect that you can still "cast" `bool`\s to `int`\s then.
S
> So you have a classic (especially for COBOL and older FORTRAN) fixed
> field record layout, no?
Exactly, I believe COBOL. It is a daily reconciliation with an
exchange and our system's orders. One of the problems of dealing with
these old legacy systems that never seem to go away
>
[ Please consider posting to the capi-sig list, which is dedicated to
answering questions like yours.
http://mail.python.org/mailman/listinfo/capi-sig ]
Fabio <[EMAIL PROTECTED]> writes:
> Consider the object
>
> array.array('c',[40,40,40])
>
> Can I create such an object from within the C++
On Nov 5, 2:29 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
[snip]
> So you have a classic (especially for COBOL and older FORTRAN) fixed
> field record layout, no?
>
> I presume the entire file is of a single layout? That would mean
> only one splitting format is needed...
>
[s
Hi,
I'm trying to use raw sockets in python for a dhcp client. I write this code :
soc = socket.socket(socket.PF_PACKET, socket.SOCK_RAW)
soc.bind(("eth0",0x0800))
data = soc.recv(1024)
print len(data)
It seems to work correctly when interface is up, but when network interface is
down I get this
On Nov 5, 12:29 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Tue, 04 Nov 2008 21:58:17 -0500, [EMAIL PROTECTED] declaimed
> the following in comp.lang.python:
>
> > Python depends upon Sqlite... which is weird... but it is what I
> > discovered...
>
> Not really (weird). Python,
In article <[EMAIL PROTECTED]>,
Akira Kitada <[EMAIL PROTECTED]> wrote:
>
>I'm running Python 2.5 on FreeBSD 4.
>pthread on FreeBSD 4 has some problems so I would like to build
>python with lthread (linuxthreads) instead of BSD's pthread.
>So I looked at configure options but couldn't find any opti
On Nov 5, 8:37 pm, Mat <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to use raw sockets in python for a dhcp client. I write this code :
>
> soc = socket.socket(socket.PF_PACKET, socket.SOCK_RAW)
> soc.bind(("eth0",0x0800))
> data = soc.recv(1024)
> print len(data)
>
> It seems to work correctly
On Nov 5, 5:12 pm, Michele Petrazzo <[EMAIL PROTECTED]>
wrote:
> Hi all,
> I believe that this is a *nix question, but since I'm developing in
> python, I'm here.
>
> I have a code that execute into a "Popen" a command (ssh). I need that,
> if the python process die, the parent pid (PPID) of the ch
This is all useful and interesting stuff, but I don't think any of it
addresses the original poster's problem, which is that he has no root
access to a Linux or Unix box, and wants to get pysqlite2 working in
his home directory. I have exactly the same problem. I have tried the
"python setup.py ins
On Nov 4, 7:11 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Nov 5, 9:18 am, BL <[EMAIL PROTECTED]> wrote:
>
> > I am very new to python. I am installing it as part of a bazzar
> > version control installation.
> > I have installed the Crypto, paramiko and cElementTree modules. I am
> > running
I work with tab-delimited files for a living. Because of the same need
you have, I created a Python script to do this. It has usage
information that is easy to follow (just run it without any
arguments).
I hope someone else finds this useful. I have, and use it every month.
It can be easily modifi
On Nov 5, 9:22 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote:
> This is all useful and interesting stuff, but I don't think any of it
> addresses the original poster's problem, which is that he has no root
> access to a Linux or Unix box, and wants to get pysqlite2 working in
> his home directory.
On Wed, Nov 5, 2008 at 11:58 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> On Nov 5, 9:22 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote:
>> This is all useful and interesting stuff, but I don't think any of it
>> addresses the original poster's problem, which is that he has no root
>> access
On Wed, 5 Nov 2008 08:19:34 -0800 (PST), [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> On Nov 5, 5:12 pm, Michele Petrazzo <[EMAIL PROTECTED]>
> wrote:
>> Hi all,
>> I believe that this is a *nix question, but since I'm developing in
>> python, I'm here.
>>
>> I have a code that execute into a "P
On Nov 5, 10:07 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote:
> On Wed, Nov 5, 2008 at 11:58 AM, [EMAIL PROTECTED]
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > On Nov 5, 9:22 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote:
> >> This is all useful and interesting stuff, but I don't think any of it
> >>
On Wed, 05 Nov 2008 17:42:43 +1300, Lawrence D'Oliveiro <[EMAIL PROTECTED]>
wrote:
> In message <[EMAIL PROTECTED]>, Chris
> Jones wrote:
>
>> I wrote this in bash and although it's worked w/o a glitch for the last
>> couple of months .. I'm not comfortable with .. "the look & feel of it".
>
> Eng
James Prav wrote:
> Hi ,
>
> Could anybody please point to any available Red Hat 32 bit RPM for python
> 2.4 or greater version on Net. I searched a lot but could find for other
> flavour and not Red hat.
RPMS are distro-specific. What distribution are you looking for? Since
python is an integr
On Tue, 04 Nov 2008 22:11:37 -0500, Chris Jones <[EMAIL PROTECTED]> wrote:
> I wrote a trivial backup script that does the following:
>
> If tonight is the first day of the month:
>
> save last month's archive
> do a full backup of the system
>
> else:
>
> save last night's differential
>> Thanks, but either I'm missing something or you're missing something.
>> I can't do any of what you describe on the machine I want to use
>> sqlite on.
>>
>> I have downloaded the binary sqlite3 file from sqlite's Web site, and
>
> The linux binary will not work. You need the headers and the
> l
On Wed, 05 Nov 2008 17:12:08 +, Jorgen Grahn wrote:
> On Wed, 05 Nov 2008 17:42:43 +1300, Lawrence D'Oliveiro
>
>> Engineering rule #1: if it works, don't fix it.
>
> Especially if it handles your backups ;-)
Well, if it handles your backups it doesn't work. It just pretends until
you real
Hi guys,
Testing some older versions of Python. 2.2.3 compiled and runs just
fine on same machine. I get this error during 2.3.7 make:
case $MAKEFLAGS in \
*-s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-
DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q
b
On approximately 11/4/2008 5:31 PM, came the following characters from
the keyboard of Marc 'BlackJack' Rintsch:
On Tue, 04 Nov 2008 16:52:17 -0800, 一首诗 wrote:
Now I'm using the upack function of 'struct' module, but it's really
annoying to write fmt strings for complicated structures.
What
Hi,
I have been searching for a way to fetch the originating function object
from a generator. I would also like to get all the arguments and keyword
arguments that were used when calling the function that created the
generator. I checked the inspect module, but it doesn't seem to provide that
dat
一首诗 wrote:
Hi all,
Recently I am writing a small network application with python.
The protocol is binary based and defined in c header files.
Now I'm using the upack function of 'struct' module, but it's really
annoying to write fmt strings for complicated structures.
What will be your choice
Hi,
I have a problem with this piece of code:
class NoteSet(OrderedSet):
def has_pitch(self):
pass
def has_note(self):
pass
class Scale(NoteSet):
def __init__(self, root, type):
self.append(root)
self.type = type
ScaleType(scale=self)
OrderedS
Hi everyone.
What I'm trying to do is a Python script that reads a txt file with the
following structure:
> AI_Tactic.dat
> NO_AI
> 1
>
> Animation.dat
> Intro
> 2
>
> Areas.dat
> Start
> 8
Then asks for a user input on what line containing one of those filenames
the script should read, sh
Mr.SpOOn wrote:
> Hi,
> I have a problem with this piece of code:
>
>
> class NoteSet(OrderedSet):
> def has_pitch(self):
> pass
> def has_note(self):
> pass
>
> class Scale(NoteSet):
> def __init__(self, root, type):
> self.append(root)
> self.type =
Hello,
I'm trying to add some better error handling to an async_chat client.
What I want is to retry or terminate gracefully if the connection to
the server doesn't succeed. Here's what I have:
import asyncore, asynchat, socket
class http_client(asynchat.async_chat):
def __init__(self, host
Dennis Lee Bieber wrote:
I'm sure all the programmers using FORTRAN for the last 50 years
will be very surprised to hear that it uses call-by-value!
That should be 'last 31 years'. Fortran IV *was* call-by-value, as
least for scalars. I remember spending a couple of hours tracking d
2008/11/5 L V <[EMAIL PROTECTED]>:
> Why don't range and xrange threat floats as floats?
> Is there any good reason range and xrange don't threat floats as floats but
> as integers?
> When I enter float arguments in a range, the floats are treated as integers.
> (+ some warning)
>
> This is how I t
python 2.5
Since it was an indirect suggestion, I thought it belonged here.
What should python-list and python-dev both be used for?
I know there is an alternative, but why not make it easier?
From: Matthieu Brucher <[EMAIL PROTECTED]>
To: L V <[EMAIL PROTECTED]
Rui Jorge Rei wrote:
I have been searching for a way to fetch the originating function object
from a generator.
Futile, I believe.
I would also like to get all the arguments and keyword
arguments that were used when calling the function that created the
generator.
The arguments to a genera
On Wed, Nov 5, 2008 at 6:59 PM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> You need to call the __init__ of NoteSet inside Scale, as otherwise the
> instance isn't properly initialized.
Thanks, solved.
--
http://mail.python.org/mailman/listinfo/python-list
* Shawn Milochik (Wed, 5 Nov 2008 12:28:46 -0500)
> >> Thanks, but either I'm missing something or you're missing
> >> something. I can't do any of what you describe on the machine I
> >> want to use sqlite on.
> >>
> >> I have downloaded the binary sqlite3 file from sqlite's Web site,
> >> and
> >
Artur Sousa wrote:
Hi everyone.
What I'm trying to do is a Python script that reads a txt file with the
following structure:
...
I've already started some programming, but I'm stuck.
You started from the bottom up. Now also try from the top down. What
should be the main structure of your
Matthieu Brucher wrote:
> 2008/11/5 L V <[EMAIL PROTECTED]>:
>> Why don't range and xrange threat floats as floats?
>> Is there any good reason range and xrange don't threat floats as floats but
>> as integers?
>> When I enter float arguments in a range, the floats are treated as integers.
>> (+ so
hello,
I can't find any good documentation or examples of packages,
so I'm not sure if this is good / correct way, although it seems to work.
root
/ dir1
/ file1.py
/ general.py
/ dir2
/ file2.py
/ general_root.py
Now I want to be able to use functions of file2 in file1,
and vice-
The discussion's gone a bit off topic so I don't know if it is a good
idea to continue here. I'll try.
My first question was about a way to order a python set. Someone
suggested to try this module:
http://code.activestate.com/recipes/528878/
It seemed pretty good, but I've tried it just today an
Greetings,
I have a dictionary that seems to be misbehaving on a membership
check. This test code:
1: import types
2: assert myDict.__class__ is types.DictionaryType
3: assert (key in myDict.keys()) == (key in myDict)
raises AssertionError on line three. The dictionary items are all of
type (str
On Nov 4, 10:59 am, sturlamolden <[EMAIL PROTECTED]> wrote:
> On Nov 4, 4:27 pm, "Andy O'Meara" <[EMAIL PROTECTED]> wrote:
>
> > People
> > in the scientific and academic communities have to understand that the
> > dynamics in commercial software are can be *very* different needs and
> > have to sh
On Nov 5, 2:14 pm, Stef Mientki <[EMAIL PROTECTED]> wrote:
> Now I want to be able to use functions of file2 in file1,
> and vice-versa.
It sounds like __all__ in __init__.py would work:
http://www.python.org/doc/2.5.2/tut/node8.html#SECTION00840
If not, then pkgutil might of use
Sorry everyone, I found the bug in my code shortly after posting here.
For the curious:
I was using a QString (pyqt) inadvertently in the lookup. I guess the
behavior then would be would be that QStrings hash differently than
strings which accounts for the membership check failure, but lists do
a
On Wed, Nov 5, 2008 at 1:55 PM, Thorsten Kampe
<[EMAIL PROTECTED]> wrote:
> * Shawn Milochik (Wed, 5 Nov 2008 12:28:46 -0500)
>> >> Thanks, but either I'm missing something or you're missing
>> >> something. I can't do any of what you describe on the machine I
>> >> want to use sqlite on.
>> >>
>>
Hello,
I am attempting to use Popen() in a Windows service. I have a small
Win32 .exe that I normally run through the os.popen2() function. I've
written a class to work with the input and output parameters that are
passed and captured from this exe. When I use the class outside of a
service using
On Nov 5, 6:03 am, lkcl <[EMAIL PROTECTED]> wrote:
>
> * pyjamas (http://pyjs.org) - this is treating the web page and the
wow. I had never heard of it, but it is _damned_ impressive. THANK
YOU. I'm joining the club for my next webdev project!
rock on.
--
http://mail.python.org/mailman/listinfo/
Tim Golden wrote:
Martin wrote:
I've looked at Pymedia but I have to admit I couldn't work it out.
Commandline might be good, but I'm really hoping someone can point me
in the right direction, as this is not my area of expertise.
Nor mine :) Just so people can help you out, can you
be more
Hi,
I cannot get the following code to work
import win32com.client
import time
engine = win32com.client.Dispatch("DAO.DBEngine.36")
db=engine.OpenDatabase(r"testdate2.mdb")
access = db.OpenRecordset("select * from test")
access.AddNew()
access.Fields("test").value=time.strptime('10:00AM', '%I:%M
> 1) mimic glibc default behavior, i.e. if flags is unspecified or
>None, treat it as the default value of AI_V4MAPPED |
>AI_ADDRCONFIG).
Unfortunately, that contradicts with RFC 3493, which says
# If hints is a null pointer, the behavior
# shall be as if it referred to a structure co
Zac Burns wrote:
> Greetings,
>
> I have a dictionary that seems to be misbehaving on a membership
> check. This test code:
>
> 1: import types
> 2: assert myDict.__class__ is types.DictionaryType
[...]
For the record, it would be much simpler and more readable to say
assert type(myDict) is
On Nov 6, 3:21 am, BL <[EMAIL PROTECTED]> wrote:
> On Nov 4, 7:11 pm, John Machin <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Nov 5, 9:18 am, BL <[EMAIL PROTECTED]> wrote:
>
> > > I am very new to python. I am installing it as part of a bazzar
> > > version control installation.
> > > I have installed
Why do I feel like the coding style in Lutz' "Programming Python" is
very far from idiomatic Python? The content feels dated, and I find
that most answers that I get for Python questions use a different
style from the sort of code I see in this book.
Thomas
On Nov 5, 7:15 am, Jorgen Grahn <[EMAIL
Mr.SpOOn <[EMAIL PROTECTED]> writes:
> The discussion's gone a bit off topic so I don't know if it is a good
> idea to continue here. I'll try.
>
> My first question was about a way to order a python set. Someone
> suggested to try this module:
>
> http://code.activestate.com/recipes/528878/
>
> I
On Nov 4, 9:33 am, Joe Strout <[EMAIL PROTECTED]> wrote:
> On Nov 3, 2008, at 5:27 PM, Marc 'BlackJack' Rintsch wrote:
>
> > Maybe this is a surprise for you, because we haven't discussed this in
> > much detail in this group lately, but it applies to Python which does
> > call-by-object or call-by
On Nov 5, 4:56 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Wed, 05 Nov 2008 14:39:36 +1100, Ben Finney wrote:
> > Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes:
>
> >> On Wed, 05 Nov 2008 13:18:27 +1100, Ben Finney wrote:
>
> >> > Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]>
Lie <[EMAIL PROTECTED]> writes:
> What makes a generator expression is " for in
> ".
>
> Parenthesis is generally required because without it, it's almost
> impossible to differentiate it with the surrounding. But it is not
> part of the formally required syntax.
... But *every* generator express
[EMAIL PROTECTED] wrote:
> Hi,
> I cannot get the following code to work
>
> import win32com.client
> import time
>
> engine = win32com.client.Dispatch("DAO.DBEngine.36")
> db=engine.OpenDatabase(r"testdate2.mdb")
> access = db.OpenRecordset("select * from test")
>
> access.AddNew()
> access.Fi
On Wed, 05 Nov 2008 21:23:57 +, Arnaud Delobelle wrote:
> Lie <[EMAIL PROTECTED]> writes:
>> What makes a generator expression is " for in
>> ".
>>
>> Parenthesis is generally required because without it, it's almost
>> impossible to differentiate it with the surrounding. But it is not part
>
Arnaud Delobelle wrote:
> Lie <[EMAIL PROTECTED]> writes:
>> What makes a generator expression is " for in
>> ".
>>
>> Parenthesis is generally required because without it, it's almost
>> impossible to differentiate it with the surrounding. But it is not
>> part of the formally required syntax.
>
On 5 Nov, 20:44, "Andy O'Meara" <[EMAIL PROTECTED]> wrote:
> On Nov 4, 10:59 am, sturlamolden <[EMAIL PROTECTED]> wrote:
>
> > For Christ sake, researchers
> > write global climate models using MPI. And you think a toy problem
> > like 'real-time video processing' is a show stopper for using multip
Ben Finney wrote:
> Falcolas writes:
>
>> Using the surrounding parentheses creates a generator object
>
> No. Using the generator expression syntax creates a generator object.
>
> Parentheses are irrelevant to whether the expression is a generator
> expression. The parentheses merely group the exp
Stef Mientki wrote:
hello,
I can't find any good documentation or examples of packages,
so I'm not sure if this is good / correct way, although it seems to work.
root
/ dir1
/ file1.py
/ general.py
/ dir2
/ file2.py
/ general_root.py
Now I want to be able to use functions of file
Python List,
We have a setup where we have implemented NIS Netgroups through LDAP.
I'm looking to query this information through python. We don't have a
nis domain or nis server so I don't think the nis module is
appropriate, what I think I'm looking for is python bindings for nss
(name switching
logFileName = 'log.txt'
logfile = open(logFileName, "a")
class MyUDPServer(SocketServer.UDPServer):
def server_bind(self):
self.socket.setsockopt(socket.SOL_SOCKET,
socket.SO_RCVBUF, 8388608)
self.socket.bind(self.serve
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> I'm surprised that nobody yet has RTFM:
> http://docs.python.org/reference/expressions.html
>
> generator_expression ::= "(" expression genexpr_for ")"
> ...
> The parentheses can be omitted on calls with only one argument.
It's a fair cop. Thanks f
On Tue, Nov 04, 2008 at 11:11:17PM EST, Ben Finney wrote:
> Chris Jones <[EMAIL PROTECTED]> writes:
>
> > I am thinking of rewriting it in python using OOP tactics/strategy.
> >
> > Please advise.
>
> I advise you not to have the object-oriented programming hammer as
> your only tool, because it
On Thu, Nov 6, 2008 at 9:53 AM, <[EMAIL PROTECTED]> wrote:
> logFileName = 'log.txt'
>logfile = open(logFileName, "a")
>class MyUDPServer(SocketServer.UDPServer):
>def server_bind(self):
>self.socket.setsockopt(socket.SOL_SOCKET,
> socket.SO_
2008/11/6 Chris Jones <[EMAIL PROTECTED]>:
> Begs the question .. how do I tell what is an object-oriented vs. a
> procedural problem?
Practice, largely, so you're doing the right thing (provided you don't
trust your /real/ backup data to a tutorial program). If you find that
the program is at it
In message <[EMAIL PROTECTED]>, Tim Golden
wrote:
> Alternatively, you might be able to commandline control
> mencoder or ffmpeg itself to do this. Not sure, but there
> must be *something* among those millions of command-line
> options!
FFmpeg--yes!
--
http://mail.python.org/mailman/listinfo/pyt
hi,
this is how i do it:
from subprocess import Popen, PIPE, call, check_call
if sys.platform == 'win32':
net.processWithoutGui = Popen(
['python', self.temporaryFilename,'-w'],
shell=False, cwd=lNetworkDir)
In message <[EMAIL PROTECTED]>, Michele Petrazzo wrote:
> I have a code that execute into a "Popen" a command (ssh). I need that,
> if the python process die, the parent pid (PPID) of the child don't
> become 1 (like I can seen on /proc/$pid$/status ), but it has to die,
> following it's parent
>
Hi,
I have the following small problem. I run Python interactively. In the
beginning of the run I import many functions from many modules. Than I
execute some commands and notice that one of the imported functions
contains a mistake. I open another terminal in which I open the file
with the proble
On Nov 5, 1:55 pm, Thorsten Kampe <[EMAIL PROTECTED]> wrote:
>
> You (and Kurda) keep on talking the wrong stuff. First: you don't need
> pysqlite2. SQLite support is included in the latest Python as module
> sqlite3.
>
By the way, I think the above statement is very helpfull. I tried to
install t
Hi there,
I've been looking for a snippet manager and found PySnippet but it
requires PyGTK. Do you know any other option that doesn't need much?
I'm sort of new to python and user interfaces seem a bit far for me
right now, that's why I thought having to install PyGTK was
unnecessary.
Would yo
Kurda Yon <[EMAIL PROTECTED]> writes:
> Is there a way to force Python to re-import the function, i.e. to
> force it to use the new version of the function?
A Python ‘import’ is conceptually two steps: execute the module, then
bind the objects that were created to names in a namespace.
The impor
In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch
wrote:
> Well, if it handles your backups it doesn't work. It just pretends until
> you really *need* the backed up data. ;-)
That's why a backup system needs to be absolutely simple as possible. Avoid
complicated formats, a straightforwa
In message <[EMAIL PROTECTED]>, Chris
Jones wrote:
> But then I started thinking .. what if for instance I had to scale my
> effort from my single system to a large "data center" with hundred of
> hosts .. with different backup policies .. what if I had to take into
> account time slots where th
On Wed, Nov 5, 2008 at 8:52 PM, Kurda Yon <[EMAIL PROTECTED]> wrote:
> By the where can I find a simle tutorial about the work with the
> "sqlite" from the Python?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Once you get the connection, you can pretty much just do whatever if
you
On Nov 4, 9:56 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
> On Nov 4, 1:34 pm, George Sakkis <[EMAIL PROTECTED]> wrote:
>
>
>
> > Is there any package that parses regular expressions and returns an
> > AST ? Something like:
>
> > >>> parse_rx(r'i (love|hate) h(is|er) (cat|dog)s?\s*!+')
>
> > Regex
Hi,
I apologize if this is not the place to do this.
A python user group for malaysia is currently being formed , so if you
are in malaysia, feel free to join us at : www.python.my
Marcus.CM.
--
http://mail.python.org/mailman/listinfo/python-list
+1
--
Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo
On Mon, 03 Nov 2008 16:05:13 +0200, r <[EMAIL PROTECTED]> wrote:
Hey, go sell your stupid watch somewhere else.
i am tired of the message boards clogged with these stupid ads.
Nobody here cares about your cheap rolex watches
gaurav kashyap wrote:
> What i want to do is open another terminal window from already opened
> terminal window.
>
Why?
> Can this be achieved.If yes,please provide a tested solution
>
How about GNU Screen
http://coding.derkeiler.com/Archive/Python/comp.lang.python/2008-09/msg01932.html
--
HI all:
imagine something like this:
class father:
pass
class son( father ):
pass
I need to know the son ancestor class how can i know this.
Thanks
---
Red Telematica de Salud - Cuba
CNICM - Infomed
--
http://mail.python.org/mailman/li
I'm pretty sure all of the spam is automated, so your message won't get
through to anyone.
On Mon, Nov 3, 2008 at 9:05 AM, r <[EMAIL PROTECTED]> wrote:
> Hey, go sell your stupid watch somewhere else.
> i am tired of the message boards clogged with these stupid ads.
> Nobody here cares about your
1 - 100 of 119 matches
Mail list logo