Mercurial > cpython-lru_cache-weakref
annotate Modules/ccpython.cc @ 19975:4e445a3e07c6 legacy-trunk
Enable two checks for comparing a complex to a complex subtype
instance.
Split a string comparison test in two halves, replacing "a==b==a" with
separate tests for a==b and b==a. (Reason: while experimenting, this
test failed, and I wanted to know if it was the first or the second ==
operator that failed.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 19 Sep 2001 01:16:16 +0000 |
| parents | 57aa277d7a00 |
| children |
| rev | line source |
|---|---|
|
11585
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
1 /* Minimal main program -- everything is loaded from the library */ |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
2 |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
3 #include "Python.h" |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
4 |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
5 extern "C" |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
6 DL_EXPORT(int) Py_Main( int argc, char *argv[] ); |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
7 |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
8 int main( int argc, char *argv[] ) |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
9 { |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
10 return Py_Main(argc, argv); |
|
57aa277d7a00
Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
11 } |
