Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Is my question a duplicate? What now?

+5
−0

As part of a general effort to produce basic Q&As for Python, recently I've been focused on issues related to starting up an interpreter and running the code - so, questions about setting up an environment with third-party libraries, figuring out an entry point for the code, and so forth.

In particular, I've just now written Understanding the if __name__ == '__main__': idiom, in my own style. But I completely forgot that we already have What is the purpose of if __name__ == '__main__'? (which in fact is one of the highest-rated questions in the tag currently).

There are some minor differences:

  • My question is a deliberately written self-answered attempt at a canonical; the other arose organically

  • My question is written with a consistent (I hope) editorial style to match the other Q&As I've been writing

  • The prior question was focused on understanding existing (seemingly useless) code, whereas mine supposes that the reader is also interested in using the same idiom in new code

Normally, these factors wouldn't hold me back: I'd consider my own question clearly a duplicate, and I wouldn't presume that my own work was such high quality as to justify closing the other question. But I wanted to get the community's opinion.

Should I close my own question as a duplicate of the other? Should I migrate my answer and adapt it for the details of the original question? (I'm not sure how I'd naturally fit all of the content in.) What else seems appropriate here?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Articles/Wikis (2 comments)

0 answers

Sign up to answer this question »