Skip to content

Conversation

gotcha
Copy link
Contributor

@gotcha gotcha commented Mar 24, 2021

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_filename top_dirwith the following code:

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

@gotcha gotcha force-pushed the no-global-top-dir branch from 289e7dc to 50fc378 Compare March 24, 2021 08:31
@gotcha gotcha changed the title Problem: TOP_DIR_x are global WIP Problem: TOP_DIR_x are global Mar 24, 2021
gotcha added 2 commits March 25, 2021 09:29
Solution: allow it to fail, following gvanrossum recommendation
to stop supporting 3.5
Solution: make an API that avoids globals
@gotcha gotcha force-pushed the no-global-top-dir branch from ce9d67c to 1a1ebe8 Compare March 25, 2021 08:29
@gotcha gotcha changed the title WIP Problem: TOP_DIR_x are global Problem: TOP_DIR_x are global Mar 25, 2021
@CLAassistant
Copy link

CLAassistant commented Apr 16, 2022

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants