A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-December/050276.html below:

[Python-Dev] [Python 2.4] PyInt_FromLong returning NULL

[Python-Dev] [Python 2.4] PyInt_FromLong returning NULL [Python-Dev] [Python 2.4] PyInt_FromLong returning NULLAndreas Jung lists at andreas-jung.com
Tue Dec 7 19:34:32 CET 2004
Sorry, false alarm :-(  There assignment of the NULL occurs in the 
if-clause of the
corresponding code (I have overseen the ASSIGN call):

                    if (! PyInt_Check(p))
                      {
                        if (PyDict_Check(p))
                          {
                            if (PyString_Check(name) || 
PyUnicode_Check(name))
                              {
                                ASSIGN(p, PyObject_GetItem(p, name));
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

                                if (p == NULL) {
                                    puts("PyObject returned NULL");
                                  PyErr_Clear();
                                }
                              }
                            else
                              p = PyInt_FromLong((long)1);

...doing some further investigations on that.

-aj






More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4