Thanks everyone; it has been very educational.
> Dave Angel:
> ...we'll find that two of the alternatives are not even equivalent.
That helped me realize (a,b) != (None, None) is not correct for the function.
It's a case where two parameters have None as the default argument. What I want
is to
> Do you actually want to check for arbitrary objects which may claim to
> equal None, or do you want to check for objects which are None?
Arbitrary objects are not a concern.
> if not (a is b is None): ...
>
> if a is not b is not None: ...
Thanks for the examples.
--
https://mail.python.o
if (a, b) != (None, None):
or
if a != None != b:
Preference? Pros? Cons? Alternatives?
:D
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
I'm very new to Python, and unsure how to handle this runtime error
below. Pointers in the right direction (RTFM here ... etc) most
appreciated.
I have an object, called article, that when printed has the following
structure:
{'title': 'wbk', 'entries': [('http://wbk.opendarwin.org/blog/?
I have tried several times to install wxPython on Fedora Core 2. The
installation seems to go fine (from sources), but when I try to import the
wx module I keep getting the following error:
=
Python 2.4.2 (#1, Sep 29 2005
Hi, this email address does not exist. Please go to the site and use the
correct form to send your message.
No one has seen this message.
Thanks
Matchfinder
--
http://mail.python.org/mailman/listinfo/python-list
Is it possible to persuade pydoc not to include documentation for
methods inherited from built-in classes? I have several classes that
inherit from dict, and don't really need documentation thousands of
lines long that consists mostly of dict's methods repeated multiple
times.
I'm sure I could qit
I'm trying to get mxDateTime working on a Mac so that I can use pyscopg
and cx_Oracle. The Egenix base package builds and installs quite
happily, but then when I try to import it I get
>> import mx.DateTime
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort
... any ideas?