You can use the built-in statement exec
(http://www.python.org/doc/2.4.1/ref/exec.html) :
# Blob = ['Var1', 'Var2', 'vAR3']
# i = 5
# for listitems in Blob:
# i += 1
# exec('%s = i' %listitems)
#
# print Var1, Var2, vAR3
Regards,
Pierre
--
http://mail.python.org/mailman/listinfo/python-li
"Xah Lee" <[EMAIL PROTECTED]> wrote:
> Why is that some of my files written out by
>outF.write(outtext.encode('utf-8'))
> has ascii 10 as EOL, while others has ascii 13 as EOL?
>outF = open(tempName,'wb')
>outF.write(outtext.encode('utf-8'))
>outF.close()
UTF-8 is not a binary fo
I found the problem now. (after some one hour debug time) Python
didn't have problem. Emacs does.
If you open a file in emacs, it will open fine regardless whether the
EOL is ascii 10 or 13. (unix or mac) This is a nice feature. However,
the what-cursor-position which is used to show cursor posit
Hi,
Google is good, but not perfect.
CollaborativeRank takes Google rankings as a starting point but allows
users to tweak them in a collaborative way to achieve something even
better.
Perhaps some people in this group might be interested in producing even
better rankings for python related quer
Hi,
is it possibile, in python, to check for an already running instance of an
application?
My problem is that, if my program i running and the user relaunch it, i
don't want to open a new instance and have to instances of the same program
running togheter...
Can someone help me on this?
Fabio P.
George Sakkis <[EMAIL PROTECTED]> wrote:
> 1. There is a (single inheritance) hierarchy of domain classes, say
> A<-B<-..<-Z (arrows point to the parent in the inheritance tree).
> 2. This hierarchy evolved over time to different versions for each
> class. So for example, version's 1 hierarchy wou
Derek Basch wrote:
> ooops you are right. Should have been:
>
> pets = ["cat", "dog", "bird"]
> num_pets = 0
> for i in pets:
>num_pets += 1
>print "pet" + "#" + num_pets
Traceback (most recent call last):
File "example.py", line 5, in ?
print "pet" + "#" + num_pets
TypeError: canno
I haven't tested this. There is probably a better way of doing this
looking at process information. I use a lock file to mark that the
program is already running. The problem is that for an abrupt shutdown
the file might not be removed.
import atexit
if os.path.exists(lockfile):
print "there is
On Sat, 09 Apr 2005 02:22:45 -0400, Steve Holden <[EMAIL PROTECTED]>
wrote:
>Ron_Adam wrote:
>> On Fri, 08 Apr 2005 05:15:23 -0400, vegetax <[EMAIL PROTECTED]>
>> wrote:
>>
>>
>>>Are those issues being considered right now? i cant find any PEP addressing
>>>the issue especifically, at least cook
George Sakkis wrote:
I'm not sure if it was clear to you, but my problem is the dummy
WorldModel_v1.MovableObject class. It doesn't do anything by itself,
but it has to be in the inheritance chain to make its descendants work
properly.
George,
since you explicit allowed metaprogramming hacks :-),
Dear All
In Php we can find in_array() function
which function is mainly useful to check
whether a specific value is exist in the array
or not.
But In python In cannot find any function
like that. I want to check a list have specific
value or not. So If any one know regarding this
mail me
praba kar wrote:
Dear All
In Php we can find in_array() function
which function is mainly useful to check
whether a specific value is exist in the array
or not.
But In python In cannot find any function
like that. I want to check a list have specific
value or not. So If any one know regard
Dear All,
In Php strtotime() will change a date
string into timestamp. I want to know which
python function will change a date string
into timestamp.
Date string format is below
Fri, 8 Apr 2005 09:22:14 +0900
regards
Prabahar
__
praba kar wrote:
In Php strtotime() will change a date
string into timestamp. I want to know which
python function will change a date string
into timestamp.
What do you mean by "a timestamp?"
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
Am Samstag, 9. April 2005 11:37 schrieb Michael Spencer:
> praba kar wrote:
> > I want to check a list have specific
> > value or not. So If any one know regarding this
> > mail me
> A minute of two experimenting, would then lead you to:
> >>> l = [1,2,3,4,5]
> >>> l.index(3)
>
> 2
Or, if it
praba kar wrote:
In Php we can find in_array() function
which function is mainly useful to check
whether a specific value is exist in the array
or not.
But In python In cannot find any function
like that.
If you just want a boolean result you can use x in l:
>>> l = range(5)
>>> l
[0, 1, 2, 3, 4]
>
--- Michael Hoffman <[EMAIL PROTECTED]> wrote:
> praba kar wrote:
>
> > In Php strtotime() will change a date
> > string into timestamp. I want to know which
> > python function will change a date string
> > into timestamp.
>
> What do you mean by "a timestamp?"
> --
Time stamp means datestr
Hi Prabha,
if 3 in [1, 2, 3, 4]:
print "yes"
Python is an amazing language if you understand that it is actually
quite a bit different from php. The python tutorial is pretty good, I
suggest you go through it.
On Apr 9, 2005 3:07 PM, Michael Spencer <[EMAIL PROTECTED]> wrote:
> praba kar w
Am Samstag, 9. April 2005 11:38 schrieb praba kar:
> In Php strtotime() will change a date
> string into timestamp. I want to know which
> python function will change a date string
> into timestamp.
You want the standard library function strptime from the time module (in case
it's a timesta
"Martin v. Löwis" skrev:
> You need to do locale.setlocale(locale.LC_ALL, "") to get
> locale-specific upper-casing.
That makes a lot of sense. Thank you.
>>> 'før'.upper()
'F\xf8R'
>>> 'FØR'
'F\xd8R'
>>> import locale
>>> locale.setlocale(locale.LC_ALL, "")
'no_NO'
>>> 'før'.upper()
'F\xd8R'
>>
"praba kar" wrote:
> In Php strtotime() will change a date
> string into timestamp. I want to know which
> python function will change a date string
> into timestamp.
you might save yourself (and everyone else) some time by looking for
things in the documentation before you post...
> Time stam
linenums = [i for i in range(len(lines)) if lines[i].find(searchstring) >=0]
-Original Message-
From: Joshua Ginsberg [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 4:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Equivalent string.find method for a list of strings
try:
filter(lambda
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> "Cactus" wrote:
>
> > If I got a list is it possible to declare a variable from the items in that
> > list?
> >
> > Code Sample:
> > Blob = ['Var1', 'Var2', 'vAR3']
> > i = 5
> > for listitems in Blob:
> >i +=
"Michael Spencer" <[EMAIL PROTECTED]> wrote:
>
> George,
>
> since you explicit allowed metaprogramming hacks :-), how about
something like
> this (not tested beyond what you see):
>
> [snipped]
>
Nice try, but ideally all boilerplate classes would rather be avoided
(at least being written explici
Uwe Mayer wrote:
> How do you suggest dealing with this:
> - is calling /usr/bin/python2.3 in the bang-line problematic?
> - installing into both python2.3 and python2.4
> - rebuilding (re- ./configure, make, make install) the app solves the
> problem
>
> Whats the usual way to deal with this?
P
vegetax wrote:
> Why does people have to put wrappers around about half of the standart
> library modules? i have wrappers for urllib,urllib2, [... many more ...]
>
> I mean is this normal?
Not sure what "this" is :-) Is it normal that people write wrappers
around libraries? Yes, most certainly s
anthony hornby wrote:
> Can anyone point out some good "Python & Unicode" and "Python & Text
> processing" resources on the net to get me started? Any good book
> recommendations?
As a quick Unicode tutorial, I'd recommend
http://www.jorendorff.com/articles/unicode/python.html
http://www.egenix.c
David Jones wrote:
> Both the C++ executable and python module were linked from the same
> object files, and linked with the same options. The only difference is
> that the Python module is linked with -shared, and the C++ code is not.
[...]
> Some potential causes of my problems:
>
> - linking t
On 8 Apr 2005 23:35:57 -0700, "lotmr" <[EMAIL PROTECTED]> wrote:
>Is there any way that I could compile or optimize the my program and/or its
>memory usage?
... and ideally, if we could also reduce the size of the DLL, so that
it would only include the widgets actually used, it'd be even nicer.
I'm no expert on internals, but I seem to recall that in the past, the
string module could be implemented in either C or Python and I think there
is a strop module that is related to all this. Could it be that on the Mac,
your string processing is using interpreted Python byte code while linux
use
Am Samstag, 9. April 2005 12:10 schrieb Fredrik Lundh:
> >>> from email.Utils import parsedate_tz
> >>> parsedate_tz(formatdate(x, localtime=1))
>
> (2005, 4, 8, 14, 22, 14, 0, 1, 0, 7200)
Very cool! Learning something new every day!
--
--- Heiko.
listening to: Pearl Jam - Dissident
see you at
You can use some date/time modules as:
time built in module
datetime
wxDatetime from wx
just take a look in the documentation... they are very simple to use.
F.P.
"praba kar" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Dear All,
>
> In Php strtotime() will change a
> praba kar wrote:
>
> > In Php strtotime() will change a date
> > string into timestamp. I want to know which
> > python function will change a date string
> > into timestamp.
>
To convert a date-string *to* a timestamp (as you asked):
>>> import time, calendar
>>> date_string = time.strfti
Jack Diederich wrote:
On Fri, Apr 08, 2005 at 10:14:52PM -0400, David Jones wrote:
I am trying to hunt down the difference in performance between some raw
C++ code and calling the C++ code from Python. My goal is to use Python
to control a bunch of number crunching code, and I need to show that
Hi,
i create my GUIs mainly via wxGlade. However when you start of to
program and want to do some rearranging to the gui, wxglade overwrites
your file and you've got to put your own code back in.
I think i can work around that (at least a bit) by making a second file
that imports the gui genera
Sells, Fred wrote:
I'm no expert on internals, but I seem to recall that in the past, the
string module could be implemented in either C or Python and I think there
is a strop module that is related to all this. Could it be that on the Mac,
your string processing is using interpreted Python byte c
Benedict,
Best to hand-code your code ;-) -- even GUI. This is kind of why I like
Tkinter so much. Good luck.
Harlin Seritt
--
http://mail.python.org/mailman/listinfo/python-list
Hello!
> from decorate import decorate # see today thread on decorators for this
Gives me an ImportError: No module named decorate. I've got to donwload
that? (python 2.4)
Thanks,
AXEL.
--
"Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in
http://www.informatik-forum.at/showpost.ph
* Edward Diener wrote:
> I need python to be python2.3 else many utilities no longer work.
Then leave your 2.3 installation exactly as it is (so that python is a
link to python2.3) and run python2.4 where needed.
To specifically use python 2.4 to run IDLE, simply type in a shell:
[user]$ python2
Hi
I'd like to announce the pyvmbench benchmark suite which is designed
to evaluate different python implementations, different versions of
the same implementation and different compilers/compilation flags for
the same version of a python implementation (same). If you want,
you can of course bench
Like C, Python seems to insist I declare functions before calling
them - rather than, say, scanning to the end of the current script
when it can't immediately find what function I'm referring to.
C lets you predeclare functions to allow for the existence of
functions with circular dependencies.
D
Look at the comment in the code! I have posted the "decorate" module in
the this
decorator thread:
http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/60f22ed33af5dbcb/b7239b45da6a67ab#b7239b45da6a67ab
--
http://mail.python.org/mailman/listinfo/python-list
George Sakkis wrote:
Nice try, but ideally all boilerplate classes would rather be avoided
(at least being written explicitly).
It depends on how much magic you are prepared to accept; this goal is somewhat
in conflict with the next one...
Also, it is not obvious in your
solution why and which p
Tim Tyler wrote:
Like C, Python seems to insist I declare functions before calling
them - rather than, say, scanning to the end of the current script
when it can't immediately find what function I'm referring to.
Yes and no. Yes, they have to exist before you can use them (that only makes
sense),
Tim Tyler wrote:
Like C, Python seems to insist I declare functions before calling
them - rather than, say, scanning to the end of the current script
when it can't immediately find what function I'm referring to.
C lets you predeclare functions to allow for the existence of
functions with circular
You should avoid the "a" + "b" + "c" -kind of concatenation. As strings
at immutable in Python you actually makes copies all the time and it's
slow!
The alternative used in Steven Bethard's example is preferable.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 9 Apr 2005 15:57:15 GMT,
Tim Tyler <[EMAIL PROTECTED]> wrote:
> Like C, Python seems to insist I declare functions before calling them
> - rather than, say, scanning to the end of the current script when it
> can't immediately find what function I'm referring to.
Python has no such restr
The Southern California Python Interest Group (SoCal Piggies) will meet
Tuesday April 12 @ 7:30 PM, at the Kerckhoff Marine Lab in Newport
Beach. If you're a Pythonista in the area and you're interested in
participating, please e-mail socal-piggies at lists.idyll.org and
request more info.
Thanks,
Tim Tyler <[EMAIL PROTECTED]> wrote or quoted:
> Like C, Python seems to insist I declare functions before calling
> them - rather than, say, scanning to the end of the current script
> when it can't immediately find what function I'm referring to.
>
> C lets you predeclare functions to allow for
Harlin Seritt wrote:
> Benedict,
>
> Best to hand-code your code ;-) -- even GUI. This is kind of why I like
> Tkinter so much. Good luck.
Have to disagree strongly.
It's evil anyway (for more complex applications) to put GUI construction
in your code. GUI should be described appropriately in da
Reinhold Birkenfeld wrote:
> It's evil anyway (for more complex applications) to put GUI construction
> in your code. GUI should be described appropriately in data files.
why use data files when you have an extremely powerful programming
language in your toolbox? the advantage of building UI's i
Reinhold Birkenfeld wrote:
Have to disagree strongly.
It's evil anyway (for more complex applications) to put GUI construction
in your code. GUI should be described appropriately in data files.
Glade does this very good, and with pygtk it's no problem to use the XML files.
Reinhold
So the GUI shoul
Dirk Thierbach <[EMAIL PROTECTED]> wrote:
> Ok. Multiple inheritance can often select priority for conflicting
> methods. If you can specify yhat tou want "column priority" for
> each class, you're fine.
On second thought, I had doubts. Consider the following scenario:
A2 | f <- A3
^
Hey folks,
I need to talk to my modem through a terminal, so I can send commands
and get the answers. Does anybody here know what can I do?
I've tried to use pty.py, but I'm lost...
Regards,
[]'s!
--
Adriano Monteiro Marques
www.gopython.com.br
[EMAIL PROTECTED]
I'm FREE... Are you?
(PYTHON p
It may be useful to separate the code into version-independent part and
version-dependent part. Also, one can try to implement the higher-level
logic directly in the class definition of A, B, etc., and then use the
version objects only as patches for the details. That is, one can use
place-holder c
On 2005-04-09, Adriano Monteiro <[EMAIL PROTECTED]> wrote:
> I need to talk to my modem through a terminal, so I can send
> commands and get the answers.
Through a terminal? Just type on the keyboard and look at the
display.
> Does anybody here know what can I do?
Not unless you can clearly de
I started having some problems running python programs (python 2.3) from
the Win2k command line. I would get crashes with an NTVDM error. Even
just executing python would cause it. I upgraded to python 2.3.5, and
no difference. When I rearranged my path to move cygwin and a bunch of
other s
> why use data files when you have an extremely powerful programming
> language in your toolbox? the advantage of building UI's in Python is
> that you can quickly create "domain specific UI languages", and use them
> to generate the interfaces for you. UI editors may be useful for trivial
> appl
The reason some people don't know for sure
if they are going to Heaven when they die
is because they just don't know.
The good news is that you can know for
sure that you are going to Heaven which is
described in the Holy Bible as a beautiful
place with no death, sorrow, sickness or
pain.
God t
runes wrote:
> You should avoid the "a" + "b" + "c" -kind of concatenation. As strings
> at immutable in Python you actually makes copies all the time and it's
> slow!
The OP wrote
print "pet" + "#" + num_pets
(properly str(num_pets) )
You recommended the "alternative used in Steven Bethard
> On second thought, I had doubts. Consider the following scenario:
>
>A2 | f <- A3
>^ ^
>| |
>B2 | f <- B3
>^ ^
>| |
>C2 <- C3 | g
>
> Assume g calls f. Since f is defined in B version 2, it should taken
>
[EMAIL PROTECTED] wrote:
The reason some people don't know for sure
if they are going to Heaven when they die
is because they just don't know.
SATAN RULEZ!!
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 09 Apr 2005 11:00:08 -0700, Al Christians wrote:
> I started having some problems running python programs (python 2.3) from
> the Win2k command line. I would get crashes with an NTVDM error.
Windows tries to execute the cygwin symbolic link and fails.
Correcting your path works (as you
Here's some more info on this:
When I use the Win2k feature to search for files, it turns up python.exe
in the \cygwin\bin directory. The file size is shown as 24 bytes.
Mighty small for an executable. The file is hidden. This is evidently
the guy who was caussing the problem.
Why does cygw
> Have you considered a 'macro' solution composing source? If I were
handling so
> many versions, I would want a complete class definition for each
version rather
> than having to scan many sources for each implementation.
Can you elaborate on this a little ? You mean something like a
template-ba
Hello all, I'm new to this list.
How can I detect if a file is a directory or not?
Thanks
César
--
http://mail.python.org/mailman/listinfo/python-list
César Leonardo Blum Silveira wrote:
> Hello all, I'm new to this list.
>
> How can I detect if a file is a directory or not?
>
> Thanks
>
> César
The os module contains many helpful tools for working with files,
directories, links and so forth. Check out the docs and marvel. The
following snip
Hi George,
it's a nice little puzzle and it is more fun to solve it if one is not
a student anymore :)
Filling the gaps in the lattice is somehow necessary but it is not
necessary to create all the classes.
Ansatz:
We can consider two matrices: one is filled with nodes ( class names )
the other
[EMAIL PROTECTED] wrote:
Is there a video module so that I can write a Linux Python script to
record video coming over USB video cams?
http://videocapture.sourceforge.net/
HTH
T
--
http://mail.python.org/mailman/listinfo/python-list
"The Holy Bible descibes Hell as a place of
eternal torment, suffering, pain and agony
for all those who have rejected Jesus Christ. "
Sounds like the USA 2005.
--
http://mail.python.org/mailman/listinfo/python-list
"David Isaac" <[EMAIL PROTECTED]> writes:
> "Alan Isaac" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> I'd like to try personal financial management using Python.
>> I just found PyCheckbook, but it does not support check printing.
>> Is there a Python check printing application
On Thu, 2005-03-03 at 16:43, Steve Holden wrote:
> Earl Eiland wrote:
> On Thu, 2005-03-03 at 15:11, Steve Holden wrote:
>
> Earl Eiland wrote:
>
> I'm writing my first program where I call custom modules. The
'global'
> command doesn't seem to apply, so how do I change a variable
internally
> i
On Apr 09, 2005, at 21:16, Soy Bomb wrote:
Sounds like the USA 2005.
http://images.ucomics.com/comics/nq/2005/nq050329.gif
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/
--
http://mail.python.org/mailman/listinfo/python-list
Soy Bomb wrote:
"The Holy Bible descibes Hell as a place of
eternal torment, suffering, pain and agony
for all those who have rejected Jesus Christ. "
Sounds like the USA 2005.
Down in the Tsunami many nauts from here
hangin 250K
Tsunami Safaris
Surf City
Indian Ocean
--
http://mail.python.org/ma
[EMAIL PROTECTED] (Aahz) writes:
> Use vim. 80% of the power of emacs at 20% of the learning curve.
Hmm. Can I read mail/news/web pages in vim? I can in emacs.
Emacs is a computing environment. I read mail and news in it, so I
don't have to worry about learning some applications custom editor
(
Hello
I have this function :
import sys
import win32com.client
import win32api
def close_softawre("name")
shell = win32com.client.Dispatch("WScript.Shell")
shell.AppActivate ("name")
win32api.Sleep(100)
shell.SendKeys ("%{F4
George Sakkis wrote:
Have you considered a 'macro' solution composing source?
Can you elaborate on this a little ? You mean something like a
template-based code generating script that creates all the boilerplate
code for each version before you start customising it ?
I was thinking more along the
Thats not what Jack Chick says >=(
http://www.chick.com/catalog/tractlist.asp
--
http://mail.python.org/mailman/listinfo/python-list
Hello!
I'm new-comer in Python.
I want to install few Python modules (4Suite, RDFLib, Twisted and Racoon)
in my home directory, since Python installation is already installed in the
system
and I'm NOT its admin.
I cannot install pyvm (portable binary python machine) - have no such big
quota.
Any i
Hi,
I'm writing a small script that generates email and I've noticed that:
1) one should add the 'To' and 'CC' headers to the email message
2) one needs to specify the recipients in the smtplib sendmail() method
Can someone explain how these are related?
Thanks,
Mark
--
http://mail.python.org
Alexander Schremmer wrote:
Windows tries to execute the cygwin symbolic link and fails.
Correcting your path works (as you said).
One thing about that: I re-installed python (ie upgraded to python
2.3.5) and it did not solve the error. I assume that the python 2.3.5
installer is so well-mannered
On Sat, 09 Apr 2005 19:59:18 +0200, Diez B. Roggisch wrote:
>> why use data files when you have an extremely powerful programming
>> language in your toolbox? the advantage of building UI's in Python is
>> that you can quickly create "domain specific UI languages", and use them
>> to generate the
hi.
if i have a single program file, different class instances can share
information in (at least) two fashions:
1. using instance variables:
class AClass:
def __init__(self):
self.att_1 = 42
self.att_2 = "Hello!"
class AnotherClass:
def __init__(self):
self.att_1 = anInstanceOfAC
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> Hi,
>
> I'm writing a small script that generates email and I've noticed that:
>
> 1) one should add the 'To' and 'CC' headers to the email message
> 2) one needs to specify the recipients in the smtplib sendmail() method
>
> Can someone explain ho
"max(01)*" <[EMAIL PROTECTED]> writes:
> hi.
>
> if i have a single program file, different class instances can share
> information in (at least) two fashions:
>
> 1. using instance variables:
>
> class AClass:
>def __init__(self):
> self.att_1 = 42
> self.att_2 = "Hello!"
>
> class
John Ridley wrote:
* Edward Diener wrote:
I need python to be python2.3 else many utilities no longer work.
Then leave your 2.3 installation exactly as it is (so that python is a
link to python2.3) and run python2.4 where needed.
To specifically use python 2.4 to run IDLE, simply type in a shell:
hi.
i tried to serialize a list of StringVar's, but i got a pickle error.
this got me to thinking that tkinter objects are not picklable (in general).
would somebody confirm and/or give examples?
thanks
macs
--
http://mail.python.org/mailman/listinfo/python-list
hello.
i wrote a very simple tkinter demo program that uses menus, buttons,
labels, entries, frames and secondary toplevels.
it is a python version of a java program made by a colleague.
the user can create ("Scrivi") a record with his second name, first name
and date of birth, save ("Salva") th
Ar an naoià là de mà AibrÃan, scrÃobh Xah Lee:
> If you open a file in emacs, it will open fine regardless whether the
> EOL is ascii 10 or 13. (unix or mac) This is a nice feature. However,
> the what-cursor-position which is used to show cursor position and the
> char's ascii code, says t
Thanks :-)
On Apr 9, 2005 3:55 PM, Tim Jarman <[EMAIL PROTECTED]> wrote:
> César Leonardo Blum Silveira wrote:
>
> > Hello all, I'm new to this list.
> >
> > How can I detect if a file is a directory or not?
> >
> > Thanks
> >
> > César
>
> The os module contains many helpful tools for working w
set the PYTHON_PATH to include your home directory
--
http://mail.python.org/mailman/listinfo/python-list
Jeremy Bowers wrote:
Domain-specific abstractions do that *faster* than GUI designers, not
slower. And better, too, since every iteration tends to be fully
functional and not just a "let's see what this looks like" prototype.
Heck, switch 'em out dynamically based on what day of the week it is and
Andrew Dalke wrote:
"pet#%i" % (i+1)
(NOTE: most times that's written %d instead of %i)
Any reason to prefer %d over %i? The library reference seems to suggest
that they're the same thing[1]. I've typically used %i since I can
remember it from the int type, like I can remember %f from the floa
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] (Aahz) writes:
>>
>> Use vim. 80% of the power of emacs at 20% of the learning curve.
>
>Hmm. Can I read mail/news/web pages in vim? I can in emacs.
Yup, that's why emacs stands for Eighty Megabytes And Cons
In <[EMAIL PROTECTED]>, Tim Tyler wrote:
> Like C, Python seems to insist I declare functions before calling
> them - rather than, say, scanning to the end of the current script
> when it can't immediately find what function I'm referring to.
They don't have to be declared but to be *defined* in
Since AppActivate returns a boolean, you should be able
to do something like this:
while not shell.AppActivate(name):
win32api.Sleep(100)
Roger
"David Josty" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello
>
> I have this function :
> --
No, the greatest news ever would be that Usenet spammers are being
riveted to trees.
--
http://mail.python.org/mailman/listinfo/python-list
Dirk wrote:
> So I dug through the documentation and found that new-style classes
> compute a monotonic linearization of the inheritance graph, observing
>local precedence order, using the algorithm also used in Dylan
> described here:
>http://www.webcom.com/haahr/dylan/linearization-oopsla96.html
I thought 'The Greatest News Ever' might mean something serious like
transfer of the classic Beatles albums to SACD.
But no, it's just religious crap. Now that the Pope's dead, do you
think we could declare christianity officially extinct? Please?
--
http://mail.python.org/mailman/listinfo/python-
I can not get it to run.
S
"max(01)*" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hello.
>
> i wrote a very simple tkinter demo program that uses menus, buttons,
> labels, entries, frames and secondary toplevels.
>
> it is a python version of a java program made by a colleague.
1 - 100 of 104 matches
Mail list logo