Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in Python by (16.4k points)

In Python, what is a database "cursor" generally like? 

  1. A method within a class
  2. A Python dictionary
  3. A function
  4. A file handle

I have looked on the web yet I am not getting an appropriate defense of this inquiry.

1 Answer

0 votes
by (26.4k points)

As indicated by the PEP 249 (Python Database API Specification), it is an object which is relied upon to have certain attributes and techniques characterized. Alternatively, cursors can uphold an iteration protocol

This is however a spec, and, your database driver of a decision may not follow the API particular. Be that as it may, this is a pretty much broad response to the fairly broad inquiry.

Are you interested to learn the concepts of Python? Join the python training course fast!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...