Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS: Use of python 2 print statement in documentation #1556

Closed
geo7 opened this issue Mar 23, 2023 · 1 comment
Closed

DOCS: Use of python 2 print statement in documentation #1556

geo7 opened this issue Mar 23, 2023 · 1 comment

Comments

@geo7
Copy link

geo7 commented Mar 23, 2023

There might be a good reason for this - just adding in case it's of use.

From #1198 and setup.py it seems python 2 isn't supported, but documentation here : https://www.psycopg.org/docs/advanced.html#asynchronous-notifications still uses print instead of print( ... )

The following remain in doc/:

src/usage.rst
198:attack to database servers. Before continuing, please print `this page`__ as a
410:    >>> print u, type(u)
421:    >>> print conn.encoding
426:    >>> print x, type(x), repr(x)
433:    >>> print type(x), repr(x)
445:    >>> print x, type(x), repr(x)

src/cursor.rst
295:            ...     print record

src/module.rst
171:        >>> print e.pgerror

src/advanced.rst
229:    >>> print type(point), point.x, point.y
287:    print "Waiting for notifications on channel 'test'"
290:            print "Timeout"
295:                print "Got NOTIFY:", notify.pid, notify.channel, notify.payload
@dvarrazzo
Copy link
Member

Fixed, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants