Skip to content

Problem: TOP_DIR_x are global - #112

Open
gotcha wants to merge 2 commits into
dropbox:masterfrom
gotcha:no-global-top-dir
Open

Problem: TOP_DIR_x are global#112
gotcha wants to merge 2 commits into
dropbox:masterfrom
gotcha:no-global-top-dir

Conversation

@gotcha

@gotchagotcha commented Mar 24, 2021

Copy link
Copy Markdown
Contributor

In the context of @gvanrossum comment on #111, I looked a bit closer to the globals TOP_DIR_x.

IMHO, it is not needed to keep them global.

This PR would replace #111. (Nevertheless, I fixed#111 in order to let you decide which one you prefer.)

The code in this PR enables customizing the default_filter_filenametop_dirwith the following code:

top_filter = collect_types.configure_default_filter_top_dir(top_dir)
collect_types.init_types_collection(filter_filename=top_filter)

@gotchagotcha changed the title Problem: TOP_DIR_x are globalWIP Problem: TOP_DIR_x are globalMar 24, 2021
Solution: allow it to fail, following gvanrossum recommendation
to stop supporting 3.5
Solution: make an API that avoids globals
@gotchagotcha changed the title WIP Problem: TOP_DIR_x are globalProblem: TOP_DIR_x are globalMar 25, 2021
@CLAassistant

CLAassistant commented Apr 16, 2022

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@gotcha@CLAassistant