why does this work? "while p" = "while p != 0" ? 1 is True and 0 is
false in python but other numbers have no boolean value so why doesnt
it abort.
>>> p=16
>>> p
16
>>> while p:
print p
p -= 1
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
>>>
i can also do:
>>> k=[]
>>> while k:
Marcus,
You should probably contact the Malaysian Public Sector Open Source
Competency Centre (OSCC) in Cyberjaya. http://www.oscc.org.my
HTH,
Tim
On Mon, 2008-07-14 at 10:57 +0800, Marcus.CM wrote:
> Hi,
>
> I am thinking of promoting Python for the local developers here in
> Malaysia, vi
Hi,
I have some question about Stackless Python.
What is main tasklet?
Usually we call stackless.run() to mainloop all the schedule tasklets. But if
we just call sometaklet.channel.send(None) in main thread after all the
necessary tasklets are created, what would happen?
Thanks in adva
hi
there is a .pyd file present in the same folder as the script abc.py
by the name foo.pyd .I don't have foo.py .In the script abc.py I try
import foo
Error i get is
ImportError: DLL load failed: The specified module could not be found.
I have tried placing .pyd under C:\python25\DLLs but it d
http://snipr.com/PracticalDjango
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 13, 6:31 pm, Miles <[EMAIL PROTECTED]> wrote:
> On Sun, Jul 13, 2008 at 8:35 PM, bukzor <[EMAIL PROTECTED]> wrote:
> > The problem only manifests about 1 in 20 runs. Below there's code for
> > a client that shows the problem 100% of the time.
>
> > The two URL's that I seem to be "confused"
On Jul 13, 6:53 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > bukzor:
> >> You need to use two dictionaries. Here's a class that someone's
> >> written that wraps it up into a single dict-like object for you:
> >>http://www.faqts.com/knowledge_base/view.phtml/aid/4376
>
maestro wrote:
why does this work? "while p" = "while p != 0" ? 1 is True and 0 is
false in python but other numbers have no boolean value so why doesnt
it abort.
p=16
p
16
while p:
print p
p -= 1
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
i can also do:
k=[]
while k:
patrol wrote:
> On 7月13日, 下午10时26分, Larry Bates <[EMAIL PROTECTED]> wrote:
>> patrol wrote:
>>> I want to prevent some process from running. The code is in the
>>> following. I encounter some unexpected troubles.
>>> Probelm1: This program cannot terminate "scrcons.exe" and
>>> "FNPLicensingServic
On Sun, 13 Jul 2008 18:51:19 -0700, Yosifov Pavel wrote:
>> Well, I think Python's iterators, especially the generators, are beautiful.
>> More importantly, I think there is no general way to make iterators
>> copyable, regardless of the programming language. The problem is that most
>> of the use
maestro <[EMAIL PROTECTED]> wrote:
>
>why does this work? "while p" = "while p != 0" ? 1 is True and 0 is
>false in python but other numbers have no boolean value so why doesnt
>it abort.
Because your statement is incorrect. Everything has a boolean value in
Python. 0, None, False, '' (empty st
Hi guys,
My group and I will be working on our final year project, the scope to
do a program/web-based application similar areas of functionalities
like the PyLint and PyChecker; a Python syntax checker. We have no
Python background, equipped only with some knowledge of Java and Dot
net.
We did s
On Jul 13, 8:33 am, Sparky <[EMAIL PROTECTED]> wrote:
> It seems strange, but I can't find a list of operating systems which
> support / don't support threading in Python. Can anyone point me in
> the right direction?
>
> Thanks,
> Sam
Here is the list (from Python documentation of thread module):
101 - 113 of 113 matches
Mail list logo