Skip to content

Refactor ApplicationFactory#64

Open
angelsanzn wants to merge 3 commits into
nestorsalceda:masterfrom
angelsanzn:refactor-application-factory
Open

Refactor ApplicationFactory#64
angelsanzn wants to merge 3 commits into
nestorsalceda:masterfrom
angelsanzn:refactor-application-factory

Conversation

@angelsanzn

Copy link
Copy Markdown
Contributor

Here are some minor changes that occurred to me when reading the code.

I understand that you might not like the "namespaced import" (from mamba.settings ...) because it differentiates between importing settings and importing almost everything else, and because the importing style through the code mostly avoids "namespaced imports", in favour of explicit attribute lookup in the imported names.

I personally prefer importing only what I need from my own modules (but usually not from buillt-in modules), especially when most modules are actually exposing a single class or two.

Anyway, tell me what you think 😉

Ángel Sanz added 3 commits December 3, 2015 13:56
…tings_`

This uses a namespaced import to avoid creating a local
variable 'settings' with the import statement, which was
the reason why a trailing slash was used to avoid shadowing
that variable.
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.

1 participant