Skip to main content

All Questions

Tagged with
-3 votes
1 answer
342 views

Why do people keep reusing superclass names in their subclasses?

In my project, I found one of the project's classes reusing the same name as an official one. For example: from django.db import models class Model(models.Model): class Meta: abstract = ...
Sarit's user avatar
  • 97
20 votes
2 answers
16k views

How should I name functions that return values in Python?

I'm confused about choosing names for my functions in Python. Sometimes Python built-in functions are imperative such as: print function and string method find. Sometimes they aren't such as: len its ...
Mahmood Muhammad Nageeb's user avatar