DAGDA SEARCH | Back to results | Support

Message 332144 - Python tracker

Source: https://bugs.python.org/msg332144

homepage

Message332144 ➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Никита Сиргиенко
Recipients Никита Сиргиенко
Date 2018-12-19.14:54:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545231260.91.0.788709270274.issue35536@psf.upfronthosting.co.za>
In-reply-to
Content
System:
  Distributor ID: Ubuntu
  Description:    Ubuntu 18.04.1 LTS
  Release:        18.04
  Codename:       bionic
  Arch:           x86_64

Compilier:
  g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0

Python versions:
  Python 3.6.7-1
  Python 2.7.15rc1

Description:
  This C++ code:

    PyObject* pBuiltin = PyImport_ImportModule("builtins");
    PyObject* py_globals_fun = PyObject_GetAttrString(pBuiltin,"locals");
    PyObject* globals = PyObject_CallObject(py_globals_fun, NULL);

  produces "SystemError: frame does not exist".
  For function "globals" output is "SystemError: returned NULL without 
  setting an error". For python2 this code produces similar errors (descriptions
  of error little different).

  Another functions with arguments, like "abs", works fine.
  And calling function with optional argument, like "int", "float" 
  works with this code (with null parameter) without problem.
History
Date User Action Args
2018-12-19 14:54:21Никита Сиргиенкоsetrecipients: + Никита Сиргиенко
2018-12-19 14:54:20Никита Сиргиенкоsetmessageid: <1545231260.91.0.788709270274.issue35536@psf.upfronthosting.co.za>
2018-12-19 14:54:20Никита Сиргиенкоlinkissue35536 messages
2018-12-19 14:54:20Никита Сиргиенкоcreate
Supported by The Python Software Foundation,
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements