Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-43950: Implement fine grained error locations for interactive mode#92827

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@thatbirdguythatuknownot
Copy link
Contributor

@thatbirdguythatuknownotthatbirdguythatuknownot commentedMay 15, 2022
edited
Loading

Original issue number:#88116
Most of the implementation comes from#27117. Changes include new fields in thecompiler struct (.c_source) and thePyCodeObject object (.co_source) to overcome the problem in the old PR by storing the source locally instead of globally. A newsource argument was also added to_PyAST_Compile() to pass the source from the parser to the compiler.

@pablogsal
Copy link
Member

I'm confused. The original PR#27117 is still open, even if it is a draft and the original design questions already remain. Why have you opened another PR? Have you contacted@isidentical first to take his code/approach?

We still need to decide if this is a good idea because this has drawbacks, which is one of the reasons we didn't pursue this originally.

@thatbirdguythatuknownot
Copy link
ContributorAuthor

thatbirdguythatuknownot commentedMay 16, 2022
edited
Loading

I'm confused. The original PR#27117 is still open, even if it is a draft and the original design questions already remain. Why have you opened another PR? Have you contacted@isidentical first to take his code/approach?

We still need to decide if this is a good idea because this has drawbacks, which is one of the reasons we didn't pursue this originally.

Alright, so I have to close this one?

@pablogsal
Copy link
Member

Alright, so I have to close this one?

Well, you don'thave to but the aspects and questions I have mentioned still stand. Particularly and most importantly, if you have taken code directly from#27117 then you need first to have the author's permission, otherwise, we won't be able to merge this even if we wanted.

@isidentical
Copy link
Member

My PR can be used as a baseline, no worries on that end (though I have some reservations about the implementation, especially the new code field).

@pablogsal
Copy link
Member

I have some reservations about the implementation, especially the new code field).

Yeah, that's what I dislike the most and I think this may make it a no-go. At the end of the day the reason we left it there was because the extra overhead and complexity was not worth the advantages as other reprls like Ipython will not even benefit from it.

isidentical reacted with thumbs up emoji

@pablogsal
Copy link
Member

After thinking about this I am -1 as the complexity introduced by this is quite high to just cover interactive mode. Unless@isidentical think otherwise, we should close this PR.

Thanks@thatbirdguythatuknownot for the prototype and for persuing the idea. Unfortunately this is one of the cases where the complexity introduced unfortunately doesn't balance well with the feature.

I think we could probably do it better in the future implementing interactive mode over temporary files

isidentical reacted with thumbs up emoji

@thatbirdguythatuknownot
Copy link
ContributorAuthor

Alright, I'll close this PR.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@pablogsalpablogsalAwaiting requested review from pablogsalpablogsal is a code owner

@lysnikolaoulysnikolaouAwaiting requested review from lysnikolaoulysnikolaou is a code owner

@iritkatrieliritkatrielAwaiting requested review from iritkatrieliritkatriel is a code owner

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@thatbirdguythatuknownot@pablogsal@isidentical@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp