Thanks for your prompt reply, Steve.
Just one suggestion, may be the startJVM method's implementation can itself
be changed to check for already existing JVM.
Of course this will also mean a change in shutdownJVM() semantics. If JVM
has been started earlier(not using startJVM()), shutdownJVM() shou
Thank you,
it works~~
On 6/29/05, Peter Szinek <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What about this:
>
> import os,zipfile
> from os.path import join
>
>
> zip = zipfile.ZipFile("myzipfile.zip", 'w')
> for root, dirs, files in os.walk('.'):
> for fileName in files:
> zip.write(jo
##Coin Flip: randomly flips 100 "coins" and prints results
##Original draft: june 27, 2005
##Chuck
import random
heads = 0
tails = 0
flips = 0
while flips < 99:
coin = random.randrange(0, 2)
if coin == 0:
heads = heads + 1
else:
tails = tails + 1
but the file is just stored,
and not compressed.
On 6/28/05, could ildg <[EMAIL PROTECTED]> wrote:
> Thank you,
> it works~~
>
> On 6/29/05, Peter Szinek <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > What about this:
> >
> > import os,zipfile
> > from os.path import join
> >
> >
> > zip = zipfile.Zi
[EMAIL PROTECTED] writes:
> When I save and run this "program", I get a DOS window that flashes at
> me and disappears. What's wrong with it?
You can't just click the file.py icon and expect a program like that
to do something reasonable. There are two ways to deal with it:
1) start a DOS box a
On Tue, 28 Jun 2005 00:23:30 -0700, ChuckDubya wrote:
> ##Coin Flip: randomly flips 100 "coins" and prints results
> ##Original draft: june 27, 2005
> ##Chuck
>
> import random
> heads = 0
> tails = 0
> flips = 0
> while flips < 99:
> coin = random.randrange(0, 2)
> if coin == 0:
could ildg said unto the world upon 28/06/2005 03:29:
> but the file is just stored,
> and not compressed.
>
> On 6/28/05, could ildg <[EMAIL PROTECTED]> wrote:
>
>>Thank you,
>>it works~~
>>
>>On 6/29/05, Peter Szinek <[EMAIL PROTECTED]> wrote:
>>
>>>Hi,
>>>
>>>What about this:
>>>
>>>import os,
Ivan Van Laningham wrote:
[...]
>
> Seriously, PostScript is a lot more fun to learn than Forth, and more
> directly useful. Since the rewards are so immediate, a kid's attention
> could be gained and kept pretty easily.
PostScript is easy, but I'm afraid some technical details could get in
the
Thanks to Brian van den Broek ,
I've just reached the doc, too.
I'm now very clear.
On 6/28/05, Brian van den Broek <[EMAIL PROTECTED]> wrote:
> could ildg said unto the world upon 28/06/2005 03:29:
> > but the file is just stored,
> > and not compressed.
> >
> > On 6/28/05, could ildg <[EMAIL PRO
Brian schrieb:
> Microsoft Visual Basic (.NET) would be your best bet for this type of
> software development. It allows you to create GUI apps that can work
> with a variety of database options, such as Access or MS SQL Server.
Maybe you're right with .net, but I'd go for C# when doing .net. B
Hello,
If you have enough money to buy a licence, Visual Basic seem a very good option.
(But you should learn how to use design patterns.)
Without knowing this language I was able to perform a graphical user interface to
interact with an automat, a mySQL database and many analogical sensors in le
[Jim]
> They did it with Gush: (I think)
>http://2entwine.com/
>
> It's a py program that embeds Flash very nice.
Very nice indeed! Does anyone know any details about the technology they
used for this? It appears to be closed source, and I couldn't see anything
on their site about the
BORT wrote:
> I told my son, who wants to learn how to compute probabilities, that we
> have to start with some boring stuff so we can learn how to do the cool
> stuff. Adding and subtracting aren't really fun, but figuring odds on
> rolling dice IS fun. Learning to program will be kind of like t
[EMAIL PROTECTED] wrote:
> List comprehensions, however, *are* the basic control flow; loops are
> much more verbose and they should be used only when necessary.
List comprehensions are probably a bad idea for entry level programmers:
- for and while loops are much easier to debug as you can inser
Visual Basic is a good option for small programs on Windows. It does
cost a lot of money depending on your needs. It's not a good choice for
large programs (or at least used to be). The older versions of VC++ are
very hard and difficult, the newer versions seem to be o.k. I used to
prefer Borland C
Fredrik Normann wrote:
> Hello,
>
> I'm trying to read the binary files under /var/spool/rwho/ so I'm
> wondering if anyone has done that before or could give me some clues on
> how to read those files. I've tried to use the binascii module without
> any luck.
A friend of mine made this C-prog
On 6/26/05, John Roth <[EMAIL PROTECTED]> wrote:
> What's being ignored is that type information is useful for other things
> than compile type checking. The major case in point is the way IDEs
> such as IntelliJ and Eclipse use type information to do refactoring, code
> completion and eventually n
On 6/27/05, Sakesun Roykiattisak <[EMAIL PROTECTED]> wrote:
> 1. Automatic refactoring never solve the readability issue.
Eclipse's refactorings are a great boon, I find. Refectoring is never
*fully* automatic, of course, but the ability to, for example, select
a chunk of code and have it extracte
Thanks very much for you reply.
I have indeed tried the msvcrt module but none of the examples given works
as described on a XP+SP2 box.
I have also looked at the twisted module but some functions there do not
work on windows too, and I was told by one of the devs that it would stay
that way fo
Christopher Subich wrote:
> Compling the source on cygwin (with -mno-cygwin) succeeds in
> compilation, but then attempting to install results in:
>
> \Python24\python.exe setup.py install
> running install
> running build
> running build_py
> creating build
> creating build\lib.win32-2.4
> copying
Hi,
About the error, you already got the answer from the "experts".
Beeing almost a newbie, I tried instead an elaboration of your example,
using lists.
Furthermore I timed the two methods and to my surprise the "list
method" takes longer:
# Head_Tail.py
import random, time
nStart= time.time()
#
The problem with all posts that say "Use Visual Basic, its easy for
small programs" is that small programs, seemingly inevitably, become
bigger programs (unless they become dead, unmaintained programs). If
your users - you, your boss, coworkers, whoever - find your software
useful, and you start to
Ivan Van Laningham <[EMAIL PROTECTED]> wrote:
> In which case, you should start with PostScript;-) I learned it by
> plugging a glass tty into the serial port on one of the very first
> AppleWriters and typing away.
Same here. I had the RedBook and remember reading it and not quite
believing it
In addition, for and while loops are pretty universally found in all
program languages. It is therefore an essential part of material
supposed to teach programming.
Adriaan Renting| Email: [EMAIL PROTECTED]
ASTRON | Phone: +31 521 595 217
P.O. Box 2 | GSM: +31
[[ This message was both posted and mailed: see
the 'To' and 'Newsgroups' headers for details. ]]
Clarifications:
1) Truth test simplified after a %) by Peter Otten - thanks. In reality the
"testit" methods will all be quite different as you might imagine (as will
the "doit" methods).
2) A
"Adriaan Renting" <[EMAIL PROTECTED]> wrote:
> In addition, for and while loops are pretty universally found in all
> program languages. It is therefore an essential part of material
> supposed to teach programming.
And, even if they're not called "for" or "while" (they might be "do",
"foreach",
Clarifications:
1) Truth test simplified after a %) by Peter Otten - thanks. In reality the
"testit" methods will all be quite different as you might imagine (as will
the "doit" methods).
2) A final subclass will always return True, so there will always be a valid
result.
[EMAIL PROTECTED] wrote:
> ##Coin Flip: randomly flips 100 "coins" and prints results
> ##Original draft: june 27, 2005
> ##Chuck
>
> import random
> heads = 0
> tails = 0
> flips = 0
> while flips < 99:
> coin = random.randrange(0, 2)
> if coin == 0:
> heads = heads +
On Tue, 28 Jun 2005 07:31:43 -0400, Chinook wrote
(in article <[EMAIL PROTECTED]>):
> [[ This message was both posted and mailed: see
>the 'To' and 'Newsgroups' headers for details. ]]
>
Sorry for the duplication. I'm trying Hogwasher on OS X and it seems I
better look around some more.
hi,
I've been searching long, and found some information, but still not
enough for me to actually make it happen. so, I ask here.
is it possible, in windows, to make PyQT application hide itself into
systray area?
I read,that you might have to use winEventFilter(), and do some magic
with WM_ mes
Brian van den Broek wrote:
> So, it would appear that compression requires a 3rd party module, not
> included in Python (and not present on my Windows box).
where did you get your Windows Python? afaik, the zlib module has been
included in all major Python binary distributions since 1.5.2 or so.
On 2005-06-28, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> hi,
>
> I've been searching long, and found some information, but still not
> enough for me to actually make it happen. so, I ask here.
>
> is it possible, in windows, to make PyQT application hide itself into
> systray area?
>
> I read,
On 27 Jun 2005 20:16:12 -0700, "BORT" <[EMAIL PROTECTED]>
wrote:
>Please forgive me if this is TOO newbie-ish.
>
>I am toying with the idea of teaching my ten year old a little about
>programming. I started my search with something like "best FREE
>programming language for kids." After MUCH clic
To make life easier for my users, I'd like to colour my prompt string (as
handed to raw_input()) a different colour to that produced by print. I'm
using Python 2.4.1 and IDLE 1.1.1 on Windows XP. Is it possible, and if so,
how?
tia,
Bill
--
http://mail.python.org/mailman/listinfo/pytho
[EMAIL PROTECTED] writes:
> Ivan Van Laningham wrote:
> [...]
>>
>> Seriously, PostScript is a lot more fun to learn than Forth, and more
>> directly useful. Since the rewards are so immediate, a kid's attention
>> could be gained and kept pretty easily.
>
> PostScript is easy, but I'm afraid som
On Thu, 23 Jun 2005 14:23:34 +0200, Eric Brunel <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I just found a problem in the xreadlines method/module when used with
> codecs.open: the codec specified in the open does not seem to be taken into
> account by xreadlines which also returns byte-strings ins
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 13 Jun 2005 20:27:46 -0400, rumours say that Roy Smith
<[EMAIL PROTECTED]> might have written:
>Andrea Griffini <[EMAIL PROTECTED]> wrote:
>> Hehehe... a large python string is a nice idea for modelling
>> memory.
>Actually, a Python string is only good for modelling ROM. If you want to
On Thu, 16 Jun 2005 14:29:49 +0100, rumours say that Tom Anderson
<[EMAIL PROTECTED]> might have written:
>At one point, a friend and i founded a university to give our recreational
>random hackery a bit more credibility (well, we called ourself a
>university, anyway; it was mostly a joke). We c
Hi all,
I have a programm. In this program i've made the restriction that only
one instance can run at the time. (done with mutex).
Now i'd like it to open the running (make visible) instance when
someone want's to open it a second time.
Does anybody know how to do this? I hope you all understand
Hi,
I am sorry to post this question again, but when I did it the other day, my
news reader got stucked downloading new messages, and it has been that way
for a few days. It still gets stucked if I try to download old messages.
Anyway, does anyone know of a Python module, API, etc. that allows
[DeRRudi]
| I have a programm. In this program i've made the restriction that only
| one instance can run at the time. (done with mutex).
| Now i'd like it to open the running (make visible) instance when
| someone want's to open it a second time.
| Does anybody know how to do this? I hope you all
On 27 Jun 2005 18:56:27 -0700, rumours say that "Inkiniteo"
<[EMAIL PROTECTED]> might have written:
>I see. So... what about sending HTML email? If i send HTML tagged text,
>the client will be able to read it as HTML?
I agree with the others that HTML is part of the web, not of the e-mail
system.
Isaac Rodriguez wrote:
> Hi,
>
> I am sorry to post this question again, but when I did it the other day, my
> news reader got stucked downloading new messages, and it has been that way
> for a few days. It still gets stucked if I try to download old messages.
Google is your friend.
http://gro
On 27 Jun 2005 20:13:41 -0700, rumours say that "Brett Hoerner"
<[EMAIL PROTECTED]> might have written:
>Christ, thanks. When you install Windows it should pop up first thing
>and ask if you want to be annoyed, Y/N.
When you agree to the EULA of Windows, you implicitly say yes to "do you
want to
If the environment variable:
os.environ['APPDATA']
is present on non-English Windows, you may be able to use that to get
what you need.
john
--
http://mail.python.org/mailman/listinfo/python-list
Eric Brunel wrote:
> I just found a problem in the xreadlines method/module when used with
> codecs.open: the codec specified in the open does not seem to be taken
> into account by xreadlines which also returns byte-strings instead of
> unicode strings.
> So f.xreadlines does not work, but xread
Hi, I'd like to know if it is possible to use the threading module to
benchmark a web server.
I'd like to write a python script which connect to a web server asking
for a page (like a php page querying a mysql db).
The script should launch many different queries to the web page at the
same time.
Th
whew!
tempFile.write(str(rec[0])) works!
printing rec[0].__class__ puts out pyPgSQL.PgSQL.PgBytea
Thanks for the help!
--
http://mail.python.org/mailman/listinfo/python-list
* Brett Hoerner (2005-06-28 03:44 +0100)
> Is there a different shell I can use (other than cmd.com) to run Python
> in [...]
Holy snake, are you running command.com?! Throw away your Windows 3.11
computer and start using cmd.exe.
> Another problem with cmd.com is when I run IPython, if I have a
It is a wxWindow app. It is a kind of datamanager. it is possible to
minimize it to the systray.
hmm.. i've thought of an solution using memorymapping. see if it
works.. don't know if it is the 'best' or 'safest' way.. but ok.
Greetz.
ps. I'm always willing to learn! :D
--
http://mail.python.o
"Eric Brunel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> Replying to myself. One more funny thing:
>
> >>> import codecs, xreadlines
> >>> f = codecs.open('foo.txt', 'r', 'utf-8', 'replace')
> >>> [l for l in xreadlines.xreadlines(f)]
> [u'\ufffd\ufffd']
You've specified utf-
Christos TZOTZIOY Georgiou wrote:
> and then, apart from t-shirts, the PSF could sell Python-branded
> shampoos named "poetry in lotion" etc.
Which will once and for all solve the dandruffs problem prevalent among the
snake community these days.
Not funny? know then that German has one term for
On Tue, 28 Jun 2005 10:47:04 +0100, Toby Dickenson <[EMAIL PROTECTED]> wrote:
>Im finding that Win32Reactor raises an exception on every iteration of the
>main loop if I exceed the limit of 64 WaitForMultipleObjects.
>
>I would prefer to avoid this fairly obvious denial-of-service problem by
>limit
Jorge Louis de Castro wrote:
> I have indeed tried the msvcrt module but none of the examples given works
> as described on a XP+SP2 box.
what examples? how did you run the examples?
(the keyboard interface functions in msvcrt only work if the program's attached
to
a Windows console. if you r
I'll 2nd the vote for Pychecker.
--
http://mail.python.org/mailman/listinfo/python-list
Lee,
Interesting idea, but I think the technique of "inherit from MF to
automatically add class to the test chain" is a gimmick that wont
scale.
Here are some things to consider:
- I'm not keen on the coupling of forcing your A,B,etc. classes to
inherit from MF. Especially in a duck-typing lang
Hello,
I'm using mod_python 3.1.3 with Apache 2.0.54 on a Debian box with the
publisher handler and the Clearsilver template engine, and from time to
time apache returns an 500 error code (Internal Server Error).
Apache errog.log file looks like :
[Tue Jun 28 14:42:12 2005] [error] [client 164.x
I am migrating a website from a UNIX based machine to an Windows
machine. In the logfiles I got from the old machine I mostly got domain
names and sometimes only IP addresses. The Windows machine seems to
produce only IP addresses.
Somehow I cannot find a windows solution to translate an IP add
I have a dictionary, and I want to convert it to a tuple,
that is, I want each key - value pair in the dictionary
to be a tuple in a tuple.
If this is the dictionary {1:'one',2:'two',3:'three'},
then I want this to be the resulting tuple:
((1,'one'),(2,'two'),(3,'three')).
I have been trying for
Odd-R. wrote:
> I have a dictionary, and I want to convert it to a tuple,
> that is, I want each key - value pair in the dictionary
> to be a tuple in a tuple.
>
> If this is the dictionary {1:'one',2:'two',3:'three'},
> then I want this to be the resulting tuple:
> ((1,'one'),(2,'two'),(3,'three'
It looks like you want tuple(d.iteritems())
>>> d = {1: 'one', 2: 'two', 3: 'three'}
>>> tuple(d.iteritems())
((1, 'one'), (2, 'two'), (3, 'three'))
You could also use tuple(d.items()). The result is essentially the
same. Only if the dictionary is extremely large does the difference
matter. (or
On 28 Jun 2005 14:45:19 GMT, Odd-R. <[EMAIL PROTECTED]> wrote:
> I have a dictionary, and I want to convert it to a tuple,
> that is, I want each key - value pair in the dictionary
> to be a tuple in a tuple.
>
> If this is the dictionary {1:'one',2:'two',3:'three'},
> then I want this to be the r
George Sakkis wrote:
> I'd love to see IPython replace the standard interpreter.
I dont.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list
Gerrit Muller <[EMAIL PROTECTED]> writes:
> I am migrating a website from a UNIX based machine to an Windows
> machine. In the logfiles I got from the old machine I mostly got
> domain names and sometimes only IP addresses. The Windows machine
> seems to produce only IP addresses.
>
> Somehow I ca
Tim Williams (gmail) wrote:
(snip)
d = {1:'one',2:'two',3:'three'}
t = tuple([(k,v) for k,v in d.iteritems()])
Err... don't you spot any useless code here ?-)
(tip: dict.items() already returns a list of (k,v) tuples...)
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-
Steven D'Aprano <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Can anyone think of some good, easy to understand examples of where
> Python's name/object model differs from the variable/value model?
a = b = [ 1 ]
a and b are _not_ two variables, each with [ 1 ] as value, but
Fredrik Lundh said unto the world upon 28/06/2005 08:04:
> Brian van den Broek wrote:
>
>
>>So, it would appear that compression requires a 3rd party module, not
>>included in Python (and not present on my Windows box).
>
>
> where did you get your Windows Python? afaik, the zlib module has be
[EMAIL PROTECTED] wrote:
> 1) http://mingw.org
> 2) python setup.py build --compiler=mingw32
> 3) python setup.py install
Thank you very much, it looks like this worked perfectly; it even picked
up on the cygwin-mingw32 libraries and compiled with the cygwin compiler
and -mno-cygwin.
--
http
bruno modulix wrote:
> Err... don't you spot any useless code here ?-)
>
> (tip: dict.items() already returns a list of (k,v) tuples...)
But it doesn't return a tuple of them. Which is what the tuple call
there does.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San
Hi !
I am trying to build python 2.4.1 from source on a Linux system.
Everything seems fine, but tkinter seems not to work.
The file _tkinter.pyd is missing.
How can tell configure to build all necessary components ?
Thanks
Andreas
--
http://mail.python.org/mailman/listinfo/python-list
Andreas Heiss wrote:
>Hi !
>I am trying to build python 2.4.1 from source on a Linux system.
>Everything seems fine, but tkinter seems not to work.
>The file _tkinter.pyd is missing.
>How can tell configure to build all necessary components ?
>
>Thanks
>Andreas
>
>
It looks to like Tcl/Tk is no
Erik Max Francis wrote:
> bruno modulix wrote:
>
>>Err... don't you spot any useless code here ?-)
>>
>>(tip: dict.items() already returns a list of (k,v) tuples...)
>
> But it doesn't return a tuple of them. Which is what the tuple call
> there does.
The useless code referred to was the list
> or use a custom subclass ...
I had considered extending radiobutton to add whatever properties
needed, but the net/net is the same, that property must be set using
methods that trigger on the rb command procedure, or an external (to the
rb) control variable value.
The radiobutton widget kno
John Abel wrote:
> Andreas Heiss wrote:
>
>>Hi !
>>I am trying to build python 2.4.1 from source on a Linux system.
>>Everything seems fine, but tkinter seems not to work.
>>The file _tkinter.pyd is missing.
>>How can tell configure to build all necessary components ?
>>
>>Thanks
>>Andreas
>>
Erik Max Francis wrote:
> But it doesn't return a tuple of them. Which is what the tuple call
> there does.
Yes, but I think he meant:
t = tuple(d.items())
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
Andreas Heiss wrote:
>John Abel wrote:
>
>
>
>>Andreas Heiss wrote:
>>
>>
>>
>>>Hi !
>>>I am trying to build python 2.4.1 from source on a Linux system.
>>>Everything seems fine, but tkinter seems not to work.
>>>The file _tkinter.pyd is missing.
>>>How can tell configure to build all neces
Andreas Heiss wrote:
> However, there are no tcl.h and tk.h header files. I haven't ssen those
> files since Tcl/Tk8.0
You may also need to install the development packages (tk-devel and
tcl-devel on Suse)
Peter
--
http://mail.python.org/mailman/listinfo/python-list
In message <[EMAIL PROTECTED]>, Simon
Brunning <[EMAIL PROTECTED]> writes
>Eclipse's refactorings are a great boon, I find. Refectoring is never
>*fully* automatic, of course, but the ability to, for example, select
>a chunk of code and have it extracted into a separate method with all
>needed arg
On Tue, 28 Jun 2005 15:46:01 +0300, rumours say that Christos "TZOTZIOY"
Georgiou <[EMAIL PROTECTED]> might have written:
>(kudos to Steve Holden for
>[EMAIL PROTECTED] where the term PIPO
>(Poetry In, Poetry Out) could be born)
oops! kudos to Michael Spencer (I never saw Michael's message on my
Peter Otten wrote:
> Christos TZOTZIOY Georgiou wrote:
>
>>and then, apart from t-shirts, the PSF could sell Python-branded
>>shampoos named "poetry in lotion" etc.
>
> Which will once and for all solve the dandruffs problem prevalent among the
> snake community these days.
And once again the P
"Christopher Subich" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> Bob Greschke wrote:
>> Does Text.delete(0.0, END) delete all of the tags too? Everything says
>> it does not delete marks, but nothing about tags.
>
> Note to everyone else: this is a TKinter question.
Oops. I m
Hi All,
PyDev - Python IDE (Python Development Enviroment for Eclipse) version
0.9.5 has just been released.
Check the homepage (http://pydev.sourceforge.net/) for more details.
Release Highlights:
- File encodings now follow the python convention
- Overview ruler now works
- Editor is synchro
Thanks Fabio,
I take this opportunity to ask what I could be doing wrong with pylint: my
PYTHONPATH is good (I think), my code compiles and passes pylint when I run
it by hand. Yet pylint in pydev does not seem to think the modules I
include and usually derive from exist.
Any clue ?
Regards,
Ph
>
> Theres even a version of Python for .NET, called IronPython. The major
> advantage of this is that you get to program in Python, which I can
> tell you from experience is a lot more enjoyable and pain-free than C,
> C++, Fortran, or Java (and, I would highly suspect, VB and C#). But
> apparen
William Gill wrote:
> The radiobutton widget knows if it is selected or unselected, or it
> wouldn't be able to display correctly, but based on what I'm seeing,
> that information is inaccessable to the app. Instead the app must
> evaluate an associated control variable. That doesn't make sence
Philippe C. Martin wrote:
> Hi,
>
> A couple links ...
>
>
> http://www.summerland.uku.co.uk/
> http://pylogo.org/
> http://www.python.org/sigs/edu-sig/
>
>
> BORT wrote:
>
>
>>Please forgive me if this is TOO newbie-ish.
>>
>>I am toying with the idea of teaching my ten year old a little ab
Hello again, I put the executable on the "virgin" PC today. I am using
the wmi(b) that you gave me. The error that I am receiving now is:
File "autoStart.pyc", line 241, in test
File "wmib.pyc", line 157, in ?
File "win32com\client\__init__.pyc", line 73, in GetObject
File "win32com\client\__ini
db wrote:
> On Tue, 28 Jun 2005 00:23:30 -0700, ChuckDubya wrote:
>>... if flips >= 99:
>>print "Heads: " + heads
>>print "Tails: " + tails
>>print "Total: " + flips + "flips"
>>raw_input("Press the enter key to exit.")...
>
> Your programm gives an error. You are trying to
> "bruno modulix" <[EMAIL PROTECTED]> wrote:
> George Sakkis wrote:
> > I'd love to see IPython replace the standard interpreter.
> I dont.
Care to say why ?
George
--
http://mail.python.org/mailman/listinfo/python-list
The alt-enter tip is handy, although I must say on multiple monitors
it's not so helpful. It full screens all of them (cloned across
screens), at least on my nVidia card. I'm sure you're all sympathizing
with my multiple monitor problem ;-)
--
http://mail.python.org/mailman/listinfo/python-list
phil wrote:
> You would be wise, if you choose Python to choose Tkinter or WxWindows
> and learn the properties of a radio button and how to trigger events.
> Writing simple GUIs is not that hard. Then after you know what is
> going on behind the scenes, a BOA Constructor will not be as
> mysteri
"phil" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> >
> > Theres even a version of Python for .NET, called IronPython. The major
> > advantage of this is that you get to program in Python, which I can
> > tell you from experience is a lot more enjoyable and pain-free than C,
> >
On Tue, 28 Jun 2005 10:22:59 -0400, Paul McGuire wrote
(in article <[EMAIL PROTECTED]>):
> Lee,
>
> Interesting idea, but I think the technique of "inherit from MF to
> automatically add class to the test chain" is a gimmick that wont
> scale.
>
> Here are some things to consider:
>
> - I'm not
On Tue, 27 Jun 2005, Brett Hoerner wrote:
> Rune Strand wrote:
>
> Christ, thanks. When you install Windows it should pop up first thing
> and ask if you want to be annoyed, Y/N.
What, and not install if you say no?
Perhaps your best way to get a proper shell on windows is just to install
a p
Hi,
Is there a program out there that would generate the C code to instantiate
objects and call them:
ex: miracle.exe -i mymodule.py -o module_internface.c ?
I seem to recall a _yes_ to that but I got a memory overflow :-)
Thanks,
Philippe
--
http://mail.python.org/mailman/listinfo/python-lis
hi people !
i got some trouble with regular expressions
i need to split a string like this on the ',' character :
mystring = ""\test1, test2\", test, 42"
i wanna get something (a list) like this (3 elements) :
"test1, test2"
test
42
but the only thing i get is a list like this (4 elements) :
"
Maybe, you need the csv module:
import csv
mystring = "\"test1, test2\", test, 42"
# The one argument to csv.reader is an iterable object
# You could use a file here...
csv_reader = csv.reader([mystring])
for line in csv_reader:
print line
['test1, test2', ' test', ' 42']
hth,
jw
On 6
Doh - please note that csv.reader takes more than one argument - the
FIRST one is an iterable object.
jw
On 6/28/05, Jaime Wyant <[EMAIL PROTECTED]> wrote:
> Maybe, you need the csv module:
>
> import csv
> mystring = "\"test1, test2\", test, 42"
>
> # The one argument to csv.reader is an itera
>
> You are quite correct to point out how much better it is to know what is
> going on behind the scenes. But heck, once you know how to extract square
> roots - you need to let the computer do it!
>
> GUI interfaces should be the same deal!
> Thomas Bartkus
>
I think I pretty much agree. I es
1 - 100 of 220 matches
Mail list logo