=== Leipzig Python User Group ===
We will meet on Tuesday, Oktober 9 at 08:00pm at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).
Markus Zapke-Gründemann will present an example
application with Nevow.
Food and soft drinks are
http://www.redcanary.ca/view/top-programming
Dick Moores
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 6, 12:57 pm, Bruno Desthuilliers
Michele Simionato a écrit :
I looked at the source code and it seems fine to me, but I have
not used it directly, not stressed it. I need a
production-level WSGI session middleware and I wonder what the
players are (for instance how Beaker does
On Oct 6, 11:18 pm, goldtech [EMAIL PROTECTED] wrote:
I thought the DISABLED made it so I could not edit it. But it also
makes it so I can not scroll down. If you make the window smaller than
the content then try to put a cursor in there to use up/down arrow you
can't.
What I want is not to
Thanks Gabriel!
I get it now. With your help I was able to focus on the real problem.
Here is the correctly working example for the record:
import gc
class Test(object):
def __init__(self):
pass
gc.collect()
original_objects_id = [id(x) for x in gc.get_objects()]
#create object a
a
I'm happy to announce that I have just uploaded the latest release
(v1.4.8) of pyparsing. This release has a few new features and
corresponding demonstration examples. There are also a few minor
bug-fixes, and a performance speedup in the operatorPrecedence method.
Here are the notes:
- Added
Dick Moores [EMAIL PROTECTED] wrote
http://www.redcanary.ca/view/top-programming
Interesting, but I'm not sure what the criteria for top is.
Is it a measure of power, popularity, usage?
Scary that HTML/CSS should be so high though
given its not a programming language at all!
Alan G.
--
What are these stats based on?
On 10/7/07, Alan Gauld [EMAIL PROTECTED] wrote:
Dick Moores [EMAIL PROTECTED] wrote
http://www.redcanary.ca/view/top-programming
Interesting, but I'm not sure what the criteria for top is.
Is it a measure of power, popularity, usage?
Scary that HTML/CSS
On 10/5/07, timw.google [EMAIL PROTECTED] wrote:
Hi
I want to write a python script that runs rsync on a given directory
and host. I build the command line string, but when I try to run
subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=True),or
os.system(cmd), I get prompted for my
Typo.
Another method is to setup an ssh service on the server (perhaps in
Should be:
Another method is to setup an rsync service on the server (perhaps in
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
Andrey a écrit :
Hi
just a quick question about using MySQL module... are there any api /
class available to give a higher level in working with Mysql in python?
such as
db.fetch_array(),
db.fetch_rows(),
db.query(),
for eachrow in db.fetch_array():
On Oct 6, 2007, at 11:31 PM, goldtech wrote:
Can anyone link me or explain the following:
I open a file in a python script. I want the new file's location to be
on the user's desktop in a Windows XP environment. fileHandle = open
(., 'w' ) what I guess I'm looking for is an
Hi..
I want to set 30 second urllib.urlretrieve timeout..
Because if urllib.urlretrieve can't connect to page wait 1-2 hour...
I download the images to my server with urlretrieve if you know the
better way please help me.
I'm sorry my bad english..
--
On Oct 7, 8:35 am, Michele Simionato [EMAIL PROTECTED]
wrote:
On Oct 6, 12:57 pm, Bruno Desthuilliers
Michele Simionato a écrit :
I looked at the source code and it seems fine to me, but I have
not used it directly, not stressed it. I need a
production-level WSGI session middleware
Hi,
I get an error that I don't understand when using the subprocess module on
Windows.
I guess I'm missing out something very basic.
For instance, to execute and capture the output of the ms-dos dir command, I
tried the following:
from subprocess import *
p1 = Popen([dir], stdout=PIPE)
But the question is when will the cheap hosting company's start to host
normal python files!
On 10/7/07, genro [EMAIL PROTECTED] wrote:
On Oct 7, 8:35 am, Michele Simionato [EMAIL PROTECTED]
wrote:
On Oct 6, 12:57 pm, Bruno Desthuilliers
Michele Simionato a écrit :
I looked at the
On Oct 6, 4:21 am, Gabriel Genellina [EMAIL PROTECTED] wrote:
En Fri, 05 Oct 2007 04:55:55 -0300, exhuma.twn [EMAIL PROTECTED] escribi?:
[...] What I found
is that libshout is blocking, which should be fine as the whole
thing runs in it's separate thread. But the application hangs
Pyrex 0.9.6 is now available:
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
There is a *lot* of new stuff in this version, too much
to fit into this announcement. Read all about it here:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/changes-0.9.6.html
What is Pyrex?
Hi All,
I do not understand the packages system in python. I have read this
http://docs.python.org/tut/node8.html a 100 times and I can not get it
to work.
I make a test app like this:
***
Test/
__init__.py (a empty file)
apack/
__init__.py
www.space666.com
support!!!
--
http://mail.python.org/mailman/listinfo/python-list
You can scroll, but you can't see the cursor. Use
for x in range(30):
text.insert(END, %3d % x + i)
to check.
ED
I tried it w/the line numbers. On my system I see 0-23.
But there is no way to scroll. Still the same result.
--
http://mail.python.org/mailman/listinfo/python-list
I just delete what people say.. so.. no at all :D.
--
http://mail.python.org/mailman/listinfo/python-list
jorma kala wrote:
I get an error that I don't understand when using the subprocess module
on Windows.
I guess I'm missing out something very basic.
For instance, to execute and capture the output of the ms-dos dir
command, I tried the following:
from subprocess import *
p1 =
Alan Gauld wrote:
Dick Moores [EMAIL PROTECTED] wrote
http://www.redcanary.ca/view/top-programming
Interesting, but I'm not sure what the criteria for top is.
Is it a measure of power, popularity, usage?
Scary that HTML/CSS should be so high though
given its not a programming
This is really a Windows question, not a Python question. You should
have been able to figure it out yourself by examining existing
environment variables.
I agree, you're right. I learn more by figuring out the code myself.
After Google briefly: In a DOS box type: SET
This was too easy -
Lawrence Oluyede wrote:
Jorge Godoy [EMAIL PROTECTED] wrote:
What is good, since a lot of good things from Pylons will work with TG and a
lot of good TG things will remain (and possibly be compatible with Pylons).
If you take a better look at the next version, you'll also see that the
major
Matimus wrote:
On Oct 6, 8:31 pm, goldtech [EMAIL PROTECTED] wrote:
Can anyone link me or explain the following:
I open a file in a python script. I want the new file's location to be
on the user's desktop in a Windows XP environment. fileHandle = open
(., 'w' ) what I guess I'm
I'm not really sure how readline() works. Is there a way to iterate
through a file with multiple lines and then putting each line in a
variable in a loop?
--
http://mail.python.org/mailman/listinfo/python-list
Abandoned wrote:
Hi..
I want to set 30 second urllib.urlretrieve timeout..
Because if urllib.urlretrieve can't connect to page wait 1-2 hour...
I download the images to my server with urlretrieve if you know the
better way please help me.
I'm sorry my bad english..
import socket
James Matthews wrote:
What are these stats based on?
This survey here:
http://app.sgizmo.com/reports/4762/6895/QJK8UD9C9371P37EOQ7V8OIC1RP39O/
Now how was this survey advertised? Who was asked to participate?
Dunno. Clearly not MacFans, given the high number of 1 scores given to
Objective C
Vernon Wenberg III wrote:
I'm not really sure how readline() works. Is there a way to iterate
through a file with multiple lines and then putting each line in a
variable in a loop?
To know how something works you can always check the docs about this
specific functionality:
a = open('a')
MarkyMarc wrote:
Hi All,
I do not understand the packages system in python. I have read this
http://docs.python.org/tut/node8.html a 100 times and I can not get it
to work.
I make a test app like this:
***
Test/
__init__.py (a empty file)
apack/
I'm not really sure how readline() works. Is there a way to iterate
through a file with multiple lines and then putting each line in a
variable in a loop?
You can use readlines() to get the whole line (including the
newline):
lines = file('x.txt').readlines()
or you can iterate over the
Steve Holden a écrit :
Lawrence Oluyede wrote:
(snip)
We (Michele, myself and our colleagues) have a series of stuff we need
to stick to so the choosing of a web framework ain't that easy. Most of
the frameworks are a vision of the author of how to do things from
scratch but a framework (by
gardsted a écrit :
Bruno Desthuilliers wrote:
Andrey a écrit :
Hi
just a quick question about using MySQL module... are there any api /
class available to give a higher level in working with Mysql in python?
such as
db.fetch_array(),
db.fetch_rows(),
db.query(),
for eachrow in
On Oct 7, 8:36 am, Bruno Desthuilliers
Indeed. But AFAICT, Lawrence and Michele problems is not to port an
existing web application, but to choose a web framework that will play
well with their existing *system* (RDBMS, existing apps and libs etc).
Which is quite another problem, and may
On Sun, 07 Oct 2007 12:00:44 +, Vernon Wenberg III wrote:
I'm not really sure how readline() works. Is there a way to iterate
through a file with multiple lines and then putting each line in a
variable in a loop?
There are always more ways how to do it.. one of them is:
f =
Hi..
I find the picture color with:
im=Image.open(/%s %name)
color=im.mode #p=black beyaz rgb=color L=grey
This usually work true but in these pictures:
http://malatya.meb.gov.tr/images/alt/ilsis_logo.gif
http://malatya.meb.gov.tr/images/meb.gif
Say me P (blackwhite) but these pictures are
Wildemar Wildenburger [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
While I agree that the word free implies free of monetary cost to
many people societies, that is by no means set in stone (talk to native
americans, blacks, jews, palestinians, etc. about the word free, see
what they
On Oct 7, 2:16 pm, Steve Holden [EMAIL PROTECTED] wrote:
Would it hep to observe that the atest and btest submodules attemot to
import each other?
There is no reason I can see for apack and bpack to be subpackages. Why
not just rename atest.py as apack.py at the same level as the Test
Greg Ewing wrote:
Pyrex 0.9.6 is now available:
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
There is a *lot* of new stuff in this version, too much
to fit into this announcement. Read all about it here:
Is it possible to override 'and' and/or 'or'? I cannot find a special
method for it... __and__ and __rand__ and __or__ and __ror__ are for
binary manipulation... any proposals?
Have marvelous sunday,
Marco
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote:
Hi..
I find the picture color with:
im=Image.open(/%s %name)
color=im.mode #p=black beyaz rgb=color L=grey
This usually work true but in these pictures:
http://malatya.meb.gov.tr/images/alt/ilsis_logo.gif
Dekker [EMAIL PROTECTED] wrote:
Is it possible to override 'and' and/or 'or'? I cannot find a special
method for it... __and__ and __rand__ and __or__ and __ror__ are for
binary manipulation... any proposals?
If you want to customize the truth value testing you have to implement
__nonzero__
Dekker a écrit :
Is it possible to override 'and' and/or 'or'? I cannot find a special
method for it... __and__ and __rand__ and __or__ and __ror__ are for
binary manipulation... any proposals?
http://docs.python.org/ref/customization.html
__nonzero__(self)
Called to implement truth
On Sun, 07 Oct 2007 13:52:15 +, Dekker wrote:
Is it possible to override 'and' and/or 'or'?
Not without hacking the Python source code, in which case what you've got
is no longer Python.
Why do you want to do so?
--
Steven.
--
http://mail.python.org/mailman/listinfo/python-list
Dekker wrote:
Is it possible to override 'and' and/or 'or'? I cannot find a special
method for it... __and__ and __rand__ and __or__ and __ror__ are for
binary manipulation... any proposals?
Have marvelous sunday,
Marco
I guess you're looking for __nonzero__()
MarkyMarc a écrit :
(snip)
And the atest and btest, shouldn't they be able to import each
other??
import is a statement. It's executed, like any other top-level code,
when the module is imported (or the script loaded into the interpreter
if it's called directly). So if A.py imports B.py and
Wildemar Wildenburger wrote:
[whate everyone else wrote :(]
/W
Dangit! 4th of 4.
Gotta type quicker.
/W
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 7, 4:24 pm, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
MarkyMarc a écrit :
(snip)
And the atest and btest, shouldn't they be able to import each
other??
import is a statement. It's executed, like any other top-level code,
when the module is imported (or the script loaded
On Sun, 07 Oct 2007 16:24:35 +0200, Wildemar Wildenburger wrote:
Wildemar Wildenburger wrote:
[whate everyone else wrote :(]
/W
Dangit! 4th of 4.
Gotta type quicker.
That's okay, in two weeks time there will be 139 messages in this thread,
it will have devolved into an argument about
On 7 Okt., 16:19, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Sun, 07 Oct 2007 13:52:15 +, Dekker wrote:
Is it possible to override 'and' and/or 'or'?
Not without hacking the Python source code, in which case what you've got
is no longer Python.
Why do you want to do
Hi.
I have a problem with weak refs and bound methods. The best explanation for the
problem is a short bit of code. I have the three classes Wrapper, Foo and Bar:
import weakref
class Wrapper(object):
def __init__(self,x):
self.x = weakref.ref(x)
def
When I change the class Wrapper to following, the class Foo works:
class Wrapper(object):
def __init__(self,x):
self.func_name = x.func_name
self.x = weakref.ref(x.im_self)
def __call__(self,*args,**kwargs):
x = self.x()
On Oct 6, 11:18 pm, goldtech [EMAIL PROTECTED] wrote:
I thought the DISABLED made it so I could not edit it. But it also
makes it so I can not scroll down. If you make the window smaller than
the content then try to put a cursor in there to use up/down arrow you
can't.
What I want is not to
MarkyMarc wrote:
On Oct 7, 4:24 pm, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
MarkyMarc a écrit :
import is a statement. It's executed, like any other top-level code,
when the module is imported (or the script loaded into the interpreter
if it's called directly). So if A.py imports
Dekker wrote:
Well... I have to live with the (binary) __and__, __or__ option and
the user has to write:
SqlValueInt(4) SqlValueInt(5) -- SqlOpAnd(SqlValueInt(4),
SqlValueInt(5))
Thanks for your input, but __nonzero__ is not of any help in this
case... I want to abuse the magic
IMO this is not as much a framework comparison rather than an
evaluation of the individual components that make up Pylons.
The framework is the sum of all its parts. Programmers should not need
to know that that a package named Beaker is used for sessions, Routes
for url mapping, PasteDeploy for
On Oct 7, 5:22 pm, Wildemar Wildenburger
[EMAIL PROTECTED] wrote:
MarkyMarc wrote:
On Oct 7, 4:24 pm, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
MarkyMarc a écrit :
import is a statement. It's executed, like any other top-level code,
when the module is imported (or the script
On Oct 7, 4:48 pm, Dekker [EMAIL PROTECTED] wrote:
On 7 Okt., 16:19, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Sun, 07 Oct 2007 13:52:15 +, Dekker wrote:
Is it possible to override 'and' and/or 'or'?
Not without hacking the Python source code, in which case what
Steven D'Aprano a écrit :
On Sun, 07 Oct 2007 16:24:35 +0200, Wildemar Wildenburger wrote:
Wildemar Wildenburger wrote:
[whate everyone else wrote :(]
/W
Dangit! 4th of 4.
Gotta type quicker.
That's okay, in two weeks time there will be 139 messages in this thread,
it will have
On Oct 7, 8:05 am, Dick Moores [EMAIL PROTECTED] wrote:
http://www.redcanary.ca/view/top-programming
Dick Moores
Despite my doubts that Ajax and .NET will be programming languages in
2013 a more interesting question is: what could push Python forward
s.t. it eats such a large piece of the PL
MarkyMarc wrote:
***
atest.py:
def printA():
print This is Atest from Apack
***
btest.py:
from Test.apack import atest
def printB():
print This is Btest from Bpack
def printatest():
print
Colin J. Williams schrieb:
Greg Ewing wrote:
Pyrex 0.9.6 is now available:
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
There is a *lot* of new stuff in this version, too much
to fit into this announcement. Read all about it here:
Kay Schluehr wrote:
On Oct 7, 8:05 am, Dick Moores [EMAIL PROTECTED] wrote:
http://www.redcanary.ca/view/top-programming
Dick Moores
Despite my doubts that Ajax and .NET will be programming languages in
2013 a more interesting question is: what could push Python forward
s.t. it eats such
[EMAIL PROTECTED] wrote:
Wildemar Wildenburger [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
While I agree that the word free implies free of monetary cost to
many people societies, that is by no means set in stone (talk to native
americans, blacks, jews, palestinians, etc. about
Kay Schluehr schrieb:
On Oct 7, 4:48 pm, Dekker [EMAIL PROTECTED] wrote:
On 7 Okt., 16:19, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Sun, 07 Oct 2007 13:52:15 +, Dekker wrote:
Is it possible to override 'and' and/or 'or'?
Not without hacking the Python source code,
On Oct 7, 5:49 pm, Wildemar Wildenburger
[EMAIL PROTECTED] wrote:
MarkyMarc wrote:
***
atest.py:
def printA():
print This is Atest from Apack
***
btest.py:
from Test.apack import atest
def printB():
print
On Oct 7, 11:54 am, Wildemar Wildenburger
[EMAIL PROTECTED] wrote:
Kay Schluehr wrote:
On Oct 7, 8:05 am, Dick Moores [EMAIL PROTECTED] wrote:
http://www.redcanary.ca/view/top-programming
Dick Moores
Despite my doubts that Ajax and .NET will be programming languages in
2013 a more
On Oct 7, 4:47 pm, Michal Bozon [EMAIL PROTECTED] wrote:
On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote:
Hi..
I find the picture color with:
im=Image.open(/%s %name)
color=im.mode #p=black beyaz rgb=color L=grey
This usually work true but in these pictures:
MarkyMarc a écrit :
(snip)
It was simply to make a point. But then lets say the to files looks
like this:
***
atest.py:
def printA():
print This is Atest from Apack
***
btest.py:
from Test.apack import atest
FWIW,
On Oct 7, 11:00?am, [EMAIL PROTECTED] wrote:
On Oct 7, 11:54 am, Wildemar Wildenburger
[EMAIL PROTECTED] wrote:
Kay Schluehr wrote:
On Oct 7, 8:05 am, Dick Moores [EMAIL PROTECTED] wrote:
http://www.redcanary.ca/view/top-programming
Dick Moores
Despite my doubts that Ajax
Hendrik van Rooyen wrote:
Kevin Walzer [EMAIL PROTECTED] wrote:
I find pack to be more flexible than grid, so I prefer it for
complex layouts. grid is better for simple layouts.
*does a double take* are you serious? - my experience is that
pack is only good for simple single row or
Kevin Walzer wrote:
Well, I guess it depends on your viewpoint. I find pack flexible
because it allows me to think in terms of top, bottom, right, and left
in terms of arranging UI elements--it's an elegant way to do it in my
view. I tend to use grid if I have, say, a window with several
On Oct 7, 6:04 pm, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
MarkyMarc a écrit :
(snip)
It was simply to make a point. But then lets say the to files looks
like this:
***
atest.py:
def printA():
print This is Atest from Apack
On Oct 7, 1:24 am, Scott David Daniels [EMAIL PROTECTED] wrote:
goldtech wrote:
... I want the new file's location to be on the user's desktop in
a Windows XP environment
How about:
import os.path
handle = open(os.path.expanduser(r'~\DeskTop\somefile.txt'), 'w')
...
On Oct 7, 11:31 am, Istvan Albert [EMAIL PROTECTED] wrote:
IMO this is not as much a framework comparison rather than an
evaluation of the individual components that make up Pylons.
More in general let's say that I am interested in the evaluation
of WSGI-compatible components.
The framework
On Sun, 07 Oct 2007 16:51:33 +0200, Mathias Panzenboeck wrote:
import weakref
class Wrapper(object):
def __init__(self,x):
self.x = weakref.ref(x)
def __call__(self,*args,**kwargs):
x = self.x()
if x is None:
Alan Gauld wrote:
Dick Moores [EMAIL PROTECTED] wrote
http://www.redcanary.ca/view/top-programming
Interesting, but I'm not sure what the criteria for top is.
Is it a measure of power, popularity, usage?
Scary that HTML/CSS should be so high though given its not a programming
On Sun, 2007-10-07 at 17:54 +0200, Wildemar Wildenburger wrote:
Kay Schluehr wrote:
On Oct 7, 8:05 am, Dick Moores [EMAIL PROTECTED] wrote:
http://www.redcanary.ca/view/top-programming
Dick Moores
Despite my doubts that Ajax and .NET will be programming languages in
2013 a more
Hi all,
I must wrap some c++ code in python with swig. I try the swig examples
for VC++ , but when I build the project
it gives me that error:
example fatal error LNK1181: cannot open input file 'C:\Programmi
\Python25\libs.obj'
Any idea?
thank you
w
--
On Oct 7, 12:26 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
Drop all those `__del__()` methods as they prevent the garbage collector
from collecting cycles.
I fully agree and I will add that __del__ methods are always
a bad idea. Also notice that recently Raymond Hetting said in
this
You are assuming the system is not localized, that won't work if you
distribute your applications internationally. In my system it is not
Desktop, it is Escritorio, and I guess it will vary with every
locale. Does someone know a way to find out what name does the desktop
have?
I believe you
Marc 'BlackJack' Rintsch wrote:
On Sun, 07 Oct 2007 16:51:33 +0200, Mathias Panzenboeck wrote:
import weakref
class Wrapper(object):
def __init__(self,x):
self.x = weakref.ref(x)
def __call__(self,*args,**kwargs):
x = self.x()
if x is
Marc 'BlackJack' Rintsch wrote:
``del b`` just deletes the name `b`. It does not delete the object.
There's still the name `_` bound to it in the interactive interpreter.
`_` stays bound to the last non-`None` result in the interpreter.
Actually I have the opposite problem. The reference
Now it works, the problem was in the project configuration of the
example, that
put the directory in Addictional Dependencies while it must be in
Addictional Library Directories
bye
w
n 7 Ott, 18:35, whatazor [EMAIL PROTECTED] wrote:
Hi all,
I must wrap some c++ code in python with swig. I
On Sun, 07 Oct 2007 16:38:23 +, Michele Simionato wrote:
On Oct 7, 12:26 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
Drop all those `__del__()` methods as they prevent the garbage
collector from collecting cycles.
I fully agree and I will add that __del__ methods are always
Mathias Panzenboeck wrote:
Marc 'BlackJack' Rintsch wrote:
``del b`` just deletes the name `b`. It does not delete the object.
There's still the name `_` bound to it in the interactive interpreter.
`_` stays bound to the last non-`None` result in the interpreter.
Actually I have the
Tim Chase wrote:
You are assuming the system is not localized, that won't work if you
distribute your applications internationally. In my system it is not
Desktop, it is Escritorio, and I guess it will vary with every
locale. Does someone know a way to find out what name does the desktop
Tim Chase wrote:
You are assuming the system is not localized, that won't work if you
distribute your applications internationally. In my system it is not
Desktop, it is Escritorio, and I guess it will vary with every
locale. Does someone know a way to find out what name does the desktop
On Sun, 07 Oct 2007 09:02:09 -0700, Abandoned wrote:
On Oct 7, 4:47 pm, Michal Bozon [EMAIL PROTECTED] wrote:
On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote:
Hi..
I find the picture color with:
im=Image.open(/%s %name)
color=im.mode #p=black beyaz rgb=color L=grey
This
On Oct 7, 1:14 pm, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Sun, 07 Oct 2007 16:38:23 +, Michele Simionato wrote:
On Oct 7, 12:26 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
Drop all those `__del__()` methods as they prevent the garbage
collector from
Byung-Hee HWANG wrote:
On Sun, 2007-10-07 at 17:54 +0200, Wildemar Wildenburger wrote:
import friends
import sex
try:
sex.have()
except ErrectionError, PrematureError:
pass
finally:
sex.brag(friends)
Good! But.
I think a kiss is elegant more
On 07/10/2007, Tim Chase [EMAIL PROTECTED] wrote:
I'm not really sure how readline() works. Is there a way to iterate
through a file with multiple lines and then putting each line in a
variable in a loop?
You can use readlines() to get the whole line (including the
newline):
lines =
timw.google wrote:
Hi
I want to write a python script that runs rsync on a given directory
and host. I build the command line string, but when I try to run
subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=True),or
os.system(cmd), I get prompted for my login password. I expected this,
MarkyMarc a écrit :
On Oct 7, 6:04 pm, Bruno Desthuilliers bruno.
(snip)
But how do I get this to work?
You failed to specify how your files are organized, and what is not
working.
But anyway, if
- atest.py is in wherever/Test/apack,
- both Test and apack have a __init__.py
- wherever is
Python is supposed to be readable, but after programming in Python for
a while I find my Python programs can be more obfuscated than their C/C
++ counterparts sometimes. Part of the reason is that with
heterogeneous lists/tuples at hand, I tend to stuff many things into
the list and *assume* a
Licheng Fang wrote:
Python is supposed to be readable, but after programming in Python for
a while I find my Python programs can be more obfuscated than their C/C
++ counterparts sometimes. Part of the reason is that with
heterogeneous lists/tuples at hand, I tend to stuff many things into
Licheng Fang a écrit :
Python is supposed to be readable, but after programming in Python for
a while I find my Python programs can be more obfuscated than their C/C
++ counterparts sometimes. Part of the reason is that with
heterogeneous lists/tuples at hand, I tend to stuff many things into
Licheng Fang wrote:
struct nameval {
char * name;
int val;
} a;
a.name = ...
a.val = ...
becomes cryptic
a[0] = ...
a[1] = ...
?!
(1)
a = {}
a[name] = ...
a[val] = ...
(2)
NAME = 0
VAL = 1
a=[]
a[NAME] = ...
a[VAL] = ...
Python Tutorial says an empty class can be used
1 - 100 of 162 matches
Mail list logo