hi,
i have a prog. and i want diving the code in different files.
there will be one mail file which will call modules or
variables(global) from differnet files
how can i do this.
code is very big and i it's getting difficult to manage in same file.
thanx in advance
--
http://mail.python.org/mai
On 18 Sep 2006 00:19:20 -0700, JyotiC <[EMAIL PROTECTED]> wrote:
> hi,
>
> i have a prog. and i want diving the code in different files.
> there will be one mail file which will call modules or
> variables(global) from differnet files
> how can i do this.
> code is very big and i it's getting diffi
I have a small C program that restarts a python based server
application if the exit value of the
system("python -m pythonscript arg1 arg2 ...")
is greater than 127 (using WEXITSTATUS on the result of system(..))
If the server really needs to stop I exit with
sys.exit(0)
but if I just want it
[EMAIL PROTECTED] wrote:
>
> That's why I have started a collaborative project to make a user
> contributed Python documentation. The wiki is online here:
> http://www.pythondocs.info
Frankly I'm tired of these yet-another-wiki announcements!
Who is supposed to fill them with content?
If you hav
Guy Fawkes schrieb:
> I don't want my program to
> be open-source and so far all the Python programs I've seen included the
> source code.
That's one of the great freedoms of Python and its licence: You are
free to chose the licence for your product. No GPLish "you must be as
free as we", more BS
> 1) is this change of behaviour documented somewhere and did I miss
> that, or has this not been documented (yet)
> 2) Is there a build-in way to set the exit value for Python in case an
> exception is raised that is uncaught and causes python to terminate? (I
> have now implemented something usin
The Key ID that the kgpg shows. I tried to paste the key returned by
the quiery on the keyserver. but it also doesn't work. I tried
everything that has any connection with the key, but everything fails.
By the way the key is: 6A61E3AD
Richard Jones wrote:
> [EMAIL PROTECTED] wrote:
> > I tried to
[EMAIL PROTECTED] wrote:
> Wildemar Wildenburger wrote:
>> [EMAIL PROTECTED] wrote:
>>> I have read many messages of people complaining about the documentation,
>>> it's lack of examples and the use of complicated sentences that you
>>> need to read 10 times before understanding what it means.
>>
theju wrote:
> Well here are some self explanatory functions that I've written for
> displaying the text vertically and from right to left. As for rotation
> gimme some more time and i'll come back to you. Also I don't guarantee
> that this is the best method(cos I myself am a newbie), but I can
>
Hello NG,
I tried to run PythonCad on window and
got follwoing traceback:
Traceback (most recent call last):
File "C:\temp\PythonCAD-DS1-R34\PythonCad.py", line 45, in ?
import PythonCAD.Interface.Cocoa.ImageDocument
File "C:\temp\PythonCAD-DS1-R34\PythonCAD\Interface\Cocoa\ImageDocument.
Franz Steinhaeusler wrote:
> Hello NG,
>
> I tried to run PythonCad on window and
> got follwoing traceback:
>
> Traceback (most recent call last):
> File "C:\temp\PythonCAD-DS1-R34\PythonCad.py", line 45, in ?
> import PythonCAD.Interface.Cocoa.ImageDocument
> File
> "C:\temp\PythonCA
Peter Otten wrote:
> Franz Steinhaeusler wrote:
>
>> Hello NG,
>>
>> I tried to run PythonCad on window and
>> got follwoing traceback:
>>
>> Traceback (most recent call last):
>> File "C:\temp\PythonCAD-DS1-R34\PythonCad.py", line 45, in ?
>> import PythonCAD.Interface.Cocoa.ImageDocument
Diez B. Roggisch wrote:
> > 1) is this change of behaviour documented somewhere and did I miss
> > that, or has this not been documented (yet)
> > 2) Is there a build-in way to set the exit value for Python in case an
> > exception is raised that is uncaught and causes python to terminate? (I
> >
Franz Steinhaeusler wrote:
>> The .../Cocoa/... part in the paths suggests that PythonCAD assumes it is
>> running on a Mac. The missing module is rather a symptom than the cause
>> of the bug.
> On the homepage,
> http://www.pythoncad.org/
> there is the text:
>
>
> "PythonCAD does run on Wind
"GHUM" <[EMAIL PROTECTED]> writes:
> That's one of the great freedoms of Python and its licence: You are
> free to chose the licence for your product. No GPLish "you must be
> as free as we", more BSDish: "Do what you want, do not come crying"
This has nothing to do with the license of Python. Wh
[EMAIL PROTECTED] wrote:
> Hi
>
> I am trying to get webware for python running on Apache. I want to get
> it working with mod_webkit, but for the life of me i can't find a
> webpage where i can download a source for it or maybe an rpm. If
> anyone knows the download page, i'd greatly appreciate
Peter Otten wrote:
> Franz Steinhaeusler wrote:
>
>>> The .../Cocoa/... part in the paths suggests that PythonCAD assumes it is
>>> running on a Mac. The missing module is rather a symptom than the cause
>>> of the bug.
>
>> On the homepage,
>> http://www.pythoncad.org/
>> there is the text:
>>
>
Ilias Lazaridis wrote:
> Damjan wrote:
>
I understand that I can use __metaclass__ to create a class which
modifies the behaviour of another class.
How can I add this metaclass to *all* classes in the system?
(In ruby I would alter the "Class" class)
>>>
>>>You'd have to
malibu wrote:
> tadchem wrote:
> > "Protocols of the Elders of Zion" was a fraud
> > http://en.wikipedia.org/wiki/The_Protocols_of_the_Elders_of_Zion
> > http://ddickerson.igc.org/protocols.html
> > http://www.straightdope.com/mailbag/mzionprotocol.html
> > http://www.museumofhoaxes.com/hoaxorum/h
"Calvin Spealman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 17 Sep 2006 09:22:16 -0700, Ilias Lazaridis <[EMAIL PROTECTED]>
> wrote:
>> I understand that I can use __metaclass__ to create a class which
>> modifies the behaviour of another class.
>>
>> How can I add this met
On the PIL website I read:
The current free version is PIL 1.1.5, which has been tested with
Python 1.5.2 and newer, including 2.3 and 2.5.
but in downloads I cannot see any binaries for windows and Python 2.5
Are they somewhere available?
Best wishes,
Harald
--
http://mail.python.org/mailma
GHUM schrieb:
> On the PIL website I read:
>
> The current free version is PIL 1.1.5, which has been tested with
> Python 1.5.2 and newer, including 2.3 and 2.5.
>
> but in downloads I cannot see any binaries for windows and Python 2.5
>
> Are they somewhere available?
>
> Best wishes,
>
> Har
Here is a problem I am trying to solve; I am sure there must be an easy
way to do it and I just don't know how.
I have a rather large application that I am writing. To make it easy for
the user to run I have them run a startup.py script. This script will
try to load each of the third party libr
Chaz Ginger wrote:
> Here is a problem I am trying to solve; I am sure there must be an easy
> way to do it and I just don't know how.
>
> I have a rather large application that I am writing. To make it easy for
> the user to run I have them run a startup.py script. This script will
> try to load
Chaz Ginger wrote:
> Here is a problem I am trying to solve; I am sure there must be an easy
> way to do it and I just don't know how.
>
> I have a rather large application that I am writing. To make it easy for
> the user to run I have them run a startup.py script. This script will
> try to load
Hi all. I would like to know if there's some python framework able to
interact with system command prompt (cmd.exe or /bin/sh, depending on
the system) from python.
I need something that supports key/path auto completion by pressing TAB
button and the possibility to use interactive programs like ft
billie wrote:
> Hi all. I would like to know if there's some python framework able to
> interact with system command prompt (cmd.exe or /bin/sh, depending on
> the system) from python.
> I need something that supports key/path auto completion by pressing TAB
> button and the possibility to use int
Diez B. Roggisch ha scritto:
> billie wrote:
>
> > Hi all. I would like to know if there's some python framework able to
> > interact with system command prompt (cmd.exe or /bin/sh, depending on
> > the system) from python.
> > I need something that supports key/path auto completion by pressing T
Hello,
I have written a chess client using python which is a graphic
interface to play chess. It is at present a two player version,
players move their peices by clicking two squares on the board as
in any other chess clients.
Now i want to interface my program with the already avai
Ben Finney wrote:
> So long as you're not distributing some or all of Python itself, or a
> derivative work, the license for Python has no legal effect on what
> license you choose for your own work.
How many Python programs use nothing from the standard library?
--
http://mail.python.org/mailman
dear all i have the following code that keeps on pinging several sites infinitely i was wondering if anyone could help me out in how to make the results for each set of loops of the pings to be displayed in an excel file? i need to use the maximum and minimum delay for my project. thank
Hi all,
Code Golf's 12th challenge has just been added to the site. It asks you
to calculate the first 1,000 digits of Pi - Something I'm sure most of
you have thought about, but never done. You can see the challenge at :
http://codegolf.com/1000-digits-of-pi
For those who haven't heard o
Uhm... It seems that IPython got some problems:
http://ipython.scipy.org/doc/manual/node12.html
In details:
>Note that this does not make IPython a full-fledged system shell. In
>particular, it has >no job control, so if you type Ctrl-Z (under Unix), you'll
>suspend pysh itself, not the >proces
Leif K-Brooks wrote:
> Ben Finney wrote:
>
>>So long as you're not distributing some or all of Python itself, or a
>>derivative work, the license for Python has no legal effect on what
>>license you choose for your own work.
>
>
> How many Python programs use nothing from the standard library?
Fransiska M Argasetya wrote:
> dear all
>
> i have the following code that keeps on pinging several sites infinitely
>
> i was wondering if anyone could help me out in how to make the results
> for each set of loops of the pings to be displayed in an excel file? i
> need to use the maximum an
Steve Holden wrote:
> Leif K-Brooks wrote:
>> Ben Finney wrote:
>>
>>> So long as you're not distributing some or all of Python itself, or a
>>> derivative work, the license for Python has no legal effect on what
>>> license you choose for your own work.
>>
>>
>> How many Python programs use nothin
Hi!
I have embedded Python in an C++ App.
The Python-Interpreter is running in its own
Thread (I'm using PThreads).
I use PyRun_SimpleString to run Python-Code that the user entered
in an editorwindow.
I want the user to be able to stop the execution of
Python-Code (e.g. using a Cancel-Button).
U
Hi,
I'm encountering an issue where the InvokeTypes method is returning
None and I'm unable to Dispatch a particular COM object from
DMCoreAutomation.dll. Everything works fine except for method
GetItemFields.
Using Python 2.4.2, pywin32 build 209.
Here is some example code (I can provide full s
billie wrote:
> Uhm... It seems that IPython got some problems:
> http://ipython.scipy.org/doc/manual/node12.html
>
> In details:
>
>>Note that this does not make IPython a full-fledged system shell. In
>>particular, it has >no job control, so if you type Ctrl-Z (under Unix),
>>you'll suspend py
Hi,
I am looking for a library that takes an XML file that specifies a
table structure, and generates the CREATE/DROP/ALTER SQL statements to
create the tables in the database.
In particular, I am trying to port a PHP application that currently
uses the AdoDB XML schema:
> http://phplens.com/len
Samuel wrote:
> Hi,
>
> I am looking for a library that takes an XML file that specifies a
> table structure, and generates the CREATE/DROP/ALTER SQL statements to
> create the tables in the database.
>
> In particular, I am trying to port a PHP application that currently
> uses the AdoDB XML sch
Rakotomandimby (R12y) wrote:
> On Sat, 16 Sep 2006 22:43:41 +0200, Daniel Nogradi wrote:
>> Then how about running your site on python and not php?
>
> PHP has "better" documentation... ;-)
> More seriously, I can provide a CPS hosting to nicolasfr if he wants.
Alert ! Unusable undocumented monst
Paul Rubin wrote:
> "mystilleef" <[EMAIL PROTECTED]> writes:
> > I use D-Bus (Python). I recommend it. I don't know how cross platform
> > it is. However, it supports message passing of most built-in (strings,
> > ints, lists, dictionaries etc) Python objects accross processes. You
> > can mimick c
Paul Rubin wrote:
> "mystilleef" <[EMAIL PROTECTED]> writes:
> > I use D-Bus (Python). I recommend it. I don't know how cross platform
> > it is. However, it supports message passing of most built-in (strings,
> > ints, lists, dictionaries etc) Python objects accross processes. You
> > can mimick
Rrajal wrote:
> Hi there, I am new in this subject so could you please tell me from
> where I can get help (or good e-book) of python?
>
Some books that helped me:
Python Bible by Dave Brueck and Stephen Tanner
Python Cookbook by Alex Martelli, Anna Martelli Revenscroft &
David Ascher
Python pro
Varun Hiremath wrote:
> Hello,
>I have written a chess client using python which is a graphic
>interface to play chess. It is at present a two player version,
>players move their peices by clicking two squares on the board as
>in any other chess clients.
>Now i want to interfac
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am a bit disapointed with the current Python online documentation. I
> have read many messages of people complaining about the documentation,
> it's lack of examples and the use of complicated sentences that you
> need to read 10 times before understanding wha
Carl Drinkwater wrote:
> Hi all,
>
> Code Golf's 12th challenge has just been added to the site. It asks you
> to calculate the first 1,000 digits of Pi - Something I'm sure most of
> you have thought about, but never done. You can see the challenge at :
>
>http://codegolf.com/1000-digits-of
I have yet to find a language/community with better online
documentation. I taught myself with the Python tutorial found at
http://docs.python.org/tut/tut.html. I would look there first. If you
are new to programming altogether I think Python may still be a good
choice, but that may not be the _bes
Hi,
I am new to Python. I am trying to build MySQLdb for my PowerPC
PowerMac.
I just downloaded the source last week and tried to build it.
But I got the error messages as follow. I checked and there is no such
files as
mysql_config
mysql.h
my_config.h
...
Did I download the wrong source?
pytho
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am a bit disapointed with the current Python online documentation. I
> have read many messages of people complaining about the documentation,
> it's lack of examples and the use of complicated sentences that you
> need to read 10 times before understanding wha
> FWIW, there's a Python port of adodb:
> http://phplens.com/lens/adodb/adodb-py-docs.htm
>
> and parsing XML in Python is quite easy. So you could as well port the
> AdoDB XML to Python too.
That is exactly what I am trying to avoid. While implementing the
parser might be easy, you have to transl
Hi all!
The next PyPy sprint will be held in the Computer Science department of
Heinrich-Heine Universitaet Duesseldorf from the 30th of October to the
5th of November 2006.
Topics and goals
The topics of the sprints are not fixed yet. We will progress on the
subjects that we a
Carl Drinkwater wrote:
> For those who haven't heard of codegolf.com, it can be described as
> "allowing you to show off your code-fu by trying to solve coding
> problems using the least number of keystrokes."
Is having good 'code-fu' worthwhile? It may be trivial to score but do
the results show
Rrajal wrote:
> Hi there, I am new in this subject so could you please tell me from
> where I can get help (or good e-book) of python?
You don't provide much info about where you are in your learning cycle.
New to programming? New to Python? Both?
If you do use the Tutorial, use the newest versio
Matimus wrote:
>> Hi there, I am new in this subject so could you please tell me from
>> where I can get help (or good e-book) of python?
>
http://www.diveintopython.org/
That did the trick for me. It is, however, "a Python book for
experienced programmers" (quoted from website). Not too tough, b
Ted Zeng schrieb:
> Hi,
>
> I am new to Python. I am trying to build MySQLdb for my PowerPC
> PowerMac.
> I just downloaded the source last week and tried to build it.
> But I got the error messages as follow. I checked and there is no such
> files as
> mysql_config
> mysql.h
> my_config.h
> ...
Suppose x and y are ints in moduleA.
If I put
from __future__ import division
in moduleA then x/y will produce the truediv result.
If I put
from __future__ import division
in moduleB
and
from moduleB import *
in module A
then x/y will NOT produce the truediv result
(in moduleA).
Why?
And is ther
Paddy:
> Is having good 'code-fu' worthwhile? It may be trivial to score but do
> the results show who iss the better programmer?
With Python you can't win, because Perl and Ruby allow for shorter
programs.
Beside the language, you win if you can invent more tricks, that you
have to avoid in real
Hi all, I was just wondering if someone here had any experience with
some of these implementations of the snmp protocol?
pysnmp, libsnmp, snmpy.
Does anybody know of another implementation?
thanks in advance!!!
--
miya
--
http://mail.python.org/mailman/listinfo/python-list
Running the example from the excellent PIL handbook gives an error,
after these two lines:
ps.setfont("HelveticaNarrow-Bold", 36)
w, h, b = ps.textsize(title)
AttributeError: PSDraw instance has no attribute 'textsize'
Can someone tell me what's wrong, this error occurred on my Linux and on
my Win
David Isaac wrote:
> Suppose x and y are ints in moduleA.
>
> If I put
> from __future__ import division
> in moduleA then x/y will produce the truediv result.
>
> If I put
> from __future__ import division
> in moduleB
> and
> from moduleB import *
> in module A
> then x/y will NOT produce the tru
I think I read a suggestion somewhere to wrap the code where a Python
script starts in a main() function, so one has
def main():
print "hi"
main()
instead of
print "hi"
What are the advantages of doing this?
--
http://mail.python.org/mailman/listinfo/python-list
A dictionary that can be shared across processes without being
marshaled?
Is there such a thing already for python?
If not is there one for C maybe?
I was just thinking how useful such a thing could be. It's a great way
to share things between processes. For example I use a cache that
subclasses
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Paddy:
>> Is having good 'code-fu' worthwhile? It may be trivial to score but do
>> the results show who iss the better programmer?
>
> With Python you can't win, because Perl and Ruby allow for shorter
> programs.
> Beside the language
I'm attempting to write a faily simple threaded app that fires off a
thread to select() on a FIFO while the main loop handles data read from
that pipe and a few other tasks. For some reason, calls to
time.sleep() seem to block until the first time data is dumped into the
pipe. Clearly, I could wo
[EMAIL PROTECTED] wrote:
> I think I read a suggestion somewhere to wrap the code where a Python
> script starts in a main() function, so one has
>
> def main():
> print "hi"
>
> main()
>
> instead of
>
> print "hi"
>
> What are the advantages of doing this?
I'm sure there are other reasons,
> Alan Isaac wrote:
> > Suppose x and y are ints in moduleA.
> >
> > If I put
> > from __future__ import division
> > in moduleA then x/y will produce the truediv result.
> >
> > If I put
> > from __future__ import division
> > in moduleB
> > and
> > from moduleB import *
> > in module A
> > then x
"Sandra-24" <[EMAIL PROTECTED]> writes:
> A dictionary that can be shared across processes without being
> marshaled?
>
> Is there such a thing already for python?
Check this out:
http://poshmodule.sourceforge.net/
--
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
On 18 Sep 2006 12:44:32 -0700, Sandra-24 <[EMAIL PROTECTED]> wrote:
> A dictionary that can be shared across processes without being
> marshaled?
>
> Is there such a thing already for python?
>
> If not is there one for C maybe?
>
> I was just thinking how useful such a thing could be. It's a great
On 18 Sep 2006 12:40:00 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I think I read a suggestion somewhere to wrap the code where a Python
> script starts in a main() function, so one has
>
> def main():
> print "hi"
>
> main()
>
> instead of
>
> print "hi"
>
> What are the advantages
[EMAIL PROTECTED] wrote:
> I think I read a suggestion somewhere to wrap the code where a Python
> script starts in a main() function, so one has
>
> def main():
> print "hi"
>
> main()
>
> instead of
>
> print "hi"
>
> What are the advantages of doing this?
Refine this to:
def main():
Hi
If I use len() on a string containing unicode letters I get the number
of bytes the string uses. This means that len() can report size 6 when
the unicode string only contains 3 characters (that one would write by
hand or see on the screen). Is there a way to calculate in characters
and not in b
In <[EMAIL PROTECTED]>,
Preben Randhol wrote:
> If I use len() on a string containing unicode letters I get the number
> of bytes the string uses. This means that len() can report size 6 when
> the unicode string only contains 3 characters (that one would write by
> hand or see on the screen). Is
are you sure you're using unicode objects?
len(u'\u') == 1
the encodings module should help you turn '\xff\xff' into u'\u'.
Preben Randhol wrote:
> Hi
>
> If I use len() on a string containing unicode letters I get the number
> of bytes the string uses. This means that len() can report siz
> PS Any news on when true division will be the default?
Python 3.0 (aka P3K). It is the release that can break backwards
compatibility.
http://www.python.org/dev/peps/pep-3000/
casevh
--
http://mail.python.org/mailman/listinfo/python-list
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>> PS Any news on when true division will be the default?
>
> Python 3.0 (aka P3K). It is the release that can break backwards
> compatibility.
>
> http://www.python.org/dev/peps/pep-3000/
>
> casevh
>
Yes, Break Backwards Compatibilit
[EMAIL PROTECTED] wrote:
> I think I read a suggestion somewhere to wrap the code where a Python
> script starts in a main() function, so one has
>
> def main():
> print "hi"
>
> main()
>
> instead of
>
> print "hi"
>
> What are the advantages of doing this?
>
Guido van Rossum himself can
Paul McGuire wrote:
> Success lies in the journey, not the destination.
>
> or in Yoda-speak:
>
> In the journey success lies, in the destination not.
>
> -- Paul
Ah, I always wondered what lemmings thought , before splat!!! :-)
- Pad.
--
http://mail.python.org/mailman/listinfo/python-list
In <[EMAIL PROTECTED]>, Paul McGuire wrote:
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>>
>>> PS Any news on when true division will be the default?
>>
>> Python 3.0 (aka P3K). It is the release that can break backwards
>> compatibility.
>>
>> http://www.python.org/dev/peps/p
Others have already told you the most important things.
There is another secondary advantage: the code inside a function runs
faster (something related is true for C programs too). Usually this
isn't important, but for certain programs they can go 20%+ faster.
Bye,
bearophile
--
http://mail.pyt
Samuel a écrit :
>>FWIW, there's a Python port of adodb:
>>http://phplens.com/lens/adodb/adodb-py-docs.htm
>>
>>and parsing XML in Python is quite easy. So you could as well port the
>>AdoDB XML to Python too.
>
>
> That is exactly what I am trying to avoid. While implementing the
> parser might
[EMAIL PROTECTED] writes:
> With Python you can't win, because Perl and Ruby allow for shorter
> programs.
Python has native bignums, which should simplify a program like this
enormously. I don't know if Ruby has them. Perl doesn't, and if you
use some CPAN library that simulates them, that shou
Paul Rubin wrote:
> [EMAIL PROTECTED] writes:
> > With Python you can't win, because Perl and Ruby allow for shorter
> > programs.
>
> Python has native bignums, which should simplify a program like this
> enormously. I don't know if Ruby has them. Perl doesn't, and if you
> use some CPAN librar
I must be overlooking something since I can't find a simple way to
calculate which date it will be over, say, 9 days. I checked the
datetime, time and calendar modules, but none of them seem to have a
function to calculate the time offset.
--
http://mail.python.org/mailman/listinfo/python-list
On 9/18/06, Carl Drinkwater <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Code Golf's 12th challenge has just been added to the site. It asks you
> to calculate the first 1,000 digits of Pi - Something I'm sure most of
> you have thought about, but never done. You can see the challenge at :
>
>htt
[EMAIL PROTECTED] wrote:
> The Key ID that the kgpg shows. I tried to paste the key returned by
> the quiery on the keyserver. but it also doesn't work. I tried
> everything that has any connection with the key, but everything fails.
>
> By the way the key is: 6A61E3AD
Here is the code that could
On 9/18/06, Edward Waugh <[EMAIL PROTECTED]> wrote:
> I quickly glanced at Guido's paper of new-style classes and I am puzzled
> because the definition of a new-style class looks exactly the same as that
> for the classic classes: class []: the class>.
>
> How do I define new-style classes?
>
> -
09-18-2006
Announcing Zenoss Version 0.22.3
All,
Version 0.22.3 of Zenoss is available for download. Version 0.22.3 is
a dot release of version 0.22.0, which added several new features,
including:
* Support for Nagios Plugins (zenagios)
* Addition of a GUI for the selection of Alerting Rule
cyberco wrote:
> I must be overlooking something since I can't find a simple way to
> calculate which date it will be over, say, 9 days. I checked the
> datetime, time and calendar modules, but none of them seem to have a
> function to calculate the time offset.
I suppose that it depends on your t
Am I correct in assuming that I can use the gnome module to minimize
all windows (aka show desktop)? If so, how?
--
http://mail.python.org/mailman/listinfo/python-list
Richard Jones wrote:
> [EMAIL PROTECTED] wrote:
> > The Key ID that the kgpg shows. I tried to paste the key returned by
> > the quiery on the keyserver. but it also doesn't work. I tried
> > everything that has any connection with the key, but everything fails.
> >
> > By the way the key is: 6A61
Hello all:
I have a list AAA = [1, 2, 3] and would like to subtract one from list
AAA
so AAA' = [0, 1, 2]
What should I do?
Thank you
-Daniel
--
http://mail.python.org/mailman/listinfo/python-list
> I have a list AAA = [1, 2, 3] and would like to subtract one from list
> AAA
> so AAA' = [0, 1, 2]
>
> What should I do?
Sounds like a list comprehension to me:
>>> a = [1,2,3]
>>> a_prime = [x-1 for x in a]
>>> a_prime
[0, 1, 2]
-tkc
--
http://mail.python.org/mailman/listinfo/python-
import pygtk, gtk, gobject, ...
class MyEntry(gtk.Entry):
def __init__(self, is_OK):
gtk.Entry.__init__(self)
self.is_OK=is_OK
self.add_events(gtk.gdk.FOCUS_CHANGE)
self.focus_out_id=self.connect('focus-out-event',
se
Paul Rubin wrote:
> "Ramon Diaz-Uriarte" <[EMAIL PROTECTED]> writes:
> > You might also want to check
> > http://www.lindaspaces.com/products/NWS_overview.html
> > by the guys who "invented" Linda.
>
> Cool, I guess.
>
> > (The Oz language/Mozart system is a good example of a different and
> > very
I looked at posh, and read the report on it, it's very interesting, but
it will not work for me. Posh requires that it forks the processes, but
in mod_python the processes were forked by apache and use different
interpreters.
Calvin Spealman wrote:
> Maybe what you want is something like memcache
Calvin Spealman wrote:
> Just once, I would like to see a programming contest that was judged
> on the quality of your code, not the number of bytes you managed to
> incomprehensively hack it down to.
Unfortunately, quality is not as easy to judge as number of bytes. Such
contest would be as craz
Hi!!
I'm a beginner in python and I'm trying to use the files from a
"folder" as a list. What I want to do is read each one as a list, but
just the name of the file, the data inside doesn't matter. How can I do
it? I was trying using a list, but I don't know how "convert" the
elements (files) to
Hi!!
I'm a beginner in python and I'm trying to use the files from a
"folder" as a list. What I want to do is read each one as a list, but
just the name of the file, the data inside doesn't matter. How can I do
it? I was trying using a list, but I don't know how "convert" the
elements (files) to
1 - 100 of 131 matches
Mail list logo