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

Implement __repr__ for classes in csv module #85052

Open
cool-RR mannequin opened this issue Jun 5, 2020 · 2 comments
Open

Implement __repr__ for classes in csv module #85052

cool-RR mannequin opened this issue Jun 5, 2020 · 2 comments
Labels
3.10 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@cool-RR
Copy link
Mannequin

cool-RR mannequin commented Jun 5, 2020

BPO 40875
Nosy @cool-RR

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2020-06-05.16:54:02.928>
labels = ['type-feature', 'library', '3.10']
title = 'Implement __repr__ for classes in csv module'
updated_at = <Date 2020-06-05.16:54:02.928>
user = 'https://github.com/cool-RR'

bugs.python.org fields:

activity = <Date 2020-06-05.16:54:02.928>
actor = 'cool-RR'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2020-06-05.16:54:02.928>
creator = 'cool-RR'
dependencies = []
files = []
hgrepos = []
issue_num = 40875
keywords = []
message_count = 1.0
messages = ['370768']
nosy_count = 1.0
nosy_names = ['cool-RR']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue40875'
versions = ['Python 3.10']

@cool-RR
Copy link
Mannequin Author

cool-RR mannequin commented Jun 5, 2020

Why see this:

<csv.DictReader object at 0x00000000029E51C0>

When you can see this:

<csv.DictReader name=satellite_data.csv columns=7>

It could show columns=? if they weren't read yet. Any other info would be good too.

This applies to all classes in the csv module.

@cool-RR cool-RR mannequin added 3.10 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jun 5, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
iqppfk added a commit to iqppfk/cpython that referenced this issue Jul 1, 2023
@iqppfk
Copy link

iqppfk commented Jul 2, 2023

Hi

I would like to contribute to the project by closing this issue that I found interesting. At this moment I already have some code that I'm experimenting with that will print the following for the DictReader class:

DictReader(<TextIOWrapper name = './PCBuild/amd64/test.csv'>, restkey = 'data', restval = 'N/A', dialect = 'unix')

Any suggestions on how to proceed with the implementation are greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
Status: No status
Development

No branches or pull requests

1 participant