Register   Login   About   Study   Enterprise   Share
Internet / AI Technology University (ITU/AITU)
Fast Login - available after registration







|

Top Links: >> 80. Technology >> Internet Technology Summit Program >> 9. AI with Python >> 9.1. The Python Tutorial Introduction >> 9.1.1. Python Docs, Lexicon, and Components >> 9.1.1.3. Python Internals
Current Topic: 9.1.1.3.61. Generator Objects
You have a privilege to create a quiz (QnA) related to this subject and obtain creativity score...

Generator objects are what Python uses to implement generator iterators. They are normally created by iterating over a function that yields values, rather than explicitly calling PyGen_New() or PyGen_NewWithQualName().




PyGenObject



The C structure used for generator objects.






PyTypeObject
PyGen_Type



The type object corresponding to generator objects.






int
PyGen_Check
(
PyObject
 *ob
)



Return true if ob is a generator object; ob must not be NULL.






int
PyGen_CheckExact
(
PyObject
 *ob
)
Was it clear so far?



Return true if ob's type is PyGen_Type; ob must not be NULL.






PyObject*
PyGen_New
(
PyFrameObject
 *frame
)



Return value: New reference.

Create and return a new generator object based on the frame object. A reference to frame is stolen by this function. The argument must not be NULL.






PyObject*
PyGen_NewWithQualName
(
PyFrameObject
 *frame,
PyObject
 *name,
PyObject
 *qualname
)



Return value: New reference.

Create and return a new generator object based on the frame object, with __name__ and __qualname__ set to name and qualname. A reference to frame is stolen by this function. The frame argument must not be NULL.








| Check Your Progress | Propose QnA | Have a question or comments for open discussion?

Have a suggestion? - shoot an email
Looking for something special? - Talk to me
Read: IT of the future: AI and Semantic Cloud Architecture | Fixing Education
Do you want to move from theory to practice and become a magician? Learn and work with us at Internet Technology University (ITU) - JavaSchool.com.

Technology that we offer and How this works: English | Spanish | Russian | French

Internet Technology University | JavaSchool.com | Copyrights © Since 1997 | All Rights Reserved
Patents: US10956676, US7032006, US7774751, US7966093, US8051026, US8863234
Including conversational semantic decision support systems (CSDS) and bringing us closer to The message from 2040
Privacy Policy