Yeah, I did a lot of python work for my high school's Senior Project
(so, spring 2007); hadn't coded much since then, was rusty on the
"pritn stattements for debugging" part.
And I was trying to look at the code mentioned in the traceback, but
due to my own mistake, I hadn't detected the pr
On Thu, Aug 28, 2008 at 11:49 AM, Alan Gilfoy <[EMAIL PROTECTED]> wrote:
> The booster pack generator (my use of random.sample as described in a
> previous message) is working as intended now.
>
> There was a rather stupid typo in my code that was causing it to go wonky.
>
> Y'all still helped, tho
The booster pack generator (my use of random.sample as described in a
previous message) is working as intended now.
There was a rather stupid typo in my code that was causing it to go wonky.
Y'all still helped, though. A few people replied, but a bit of advice
from: W W <[EMAIL PROTECTED]> p
Quoting W W <[EMAIL PROTECTED]>:
The number of items I want from a list is smaller than the population
(number of items) in the list, so it should work.
In this specific case, I'm asking for one item from a five-item list.
Are you sure?
change this:
for card in random.sample(SpecialA, SA):
"Yang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello,
I am trying to print out the hole unicode char list in window! form
0-65535.
I use the winxp in simple chinese LOCAL! the ascii form 0-127 and CJK
chars form
0X4E00-0X9FA4 can be print out! Other ucode chars case th
Hi there.
I'm trying to find some info about starting a program from python. I just
want to start it and move on. The program will not end until reboot.
Any clues?
Med venlig hilsen/Kind regards
Michael B. Arp Sørensen
Programmør / BOFH
"Ride out and meet them."
___
Message: 8
Date: Thu, 31 Jul 2008 20:16:54 -0700 (PDT)
From: Angela Yang <[EMAIL PROTECTED]>
Subject: [Tutor] how do I create a lists of values associated with a
key?
To: tutor@python.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
> That did not work bec
>
> > Just for the sake of argument, here's the principle I'm working
> from:
> >
> > #
> lst = range(10)
> iterlst = iter(lst)
> iterlst.next()
> > 0
> for x in iterlst:
> > ... if x < 5:
> > ... print x
> > ... else:
> > ... break
> > ...
> > 1
> > 2
> > 3
>
Hi again.
Aparantly it was as simple as:
os.system("nohup /code/daemon.py &")
I know it's more correct to write a real deamon startet from a runlevel, but
that will have to wait until later. :-)
Med venlig hilsen/Kind regards
Michael B. Arp Sørensen
Programmør / BOFH
"Ride out and meet them."
On Wed, Aug 27, 2008 at 9:59 PM, Yang <[EMAIL PROTECTED]> wrote:
> Hello,
>I am trying to print out the hole unicode char list in window! form
> 0-65535.
> I use the winxp in simple chinese LOCAL! the ascii form 0-127 and CJK chars
> form
> 0X4E00-0X9FA4 can be print out! Other ucode chars ca
Well, on my linux box (ubuntu) it had no problem with this:
for i in range(0, 65536):
uchar=unicode("\u%04X"%i,"unicode-escape")
print uchar
So my guess is you're missing some character in your set, but I'm not sure.
HTH
-Wayne
On Wed, Aug 27, 2008 at 8:59 PM, Yang <[EMAIL PROTECTED]> w
On Thu, Aug 28, 2008 at 1:33 AM, Alan Gilfoy <[EMAIL PROTECTED]>wrote:
>
> The number of items I want from a list is smaller than the population
> (number of items) in the list, so it should work.
>
> In this specific case, I'm asking for one item from a five-item list.
Are you sure?
change thi
I finally got my iterator-based version working, only to discover that
it's nearly four times slower than the brute-force multiple-loops
version I started with! Then I tried just adding an incrementing index
to the loop, so that each loop only ran through
self.events[last_index:], but that
13 matches
Mail list logo