Login
Remember
Register
Questions
Unanswered
Tags
Categories
Ask a Question
MS Bing Quiz
Ask a Question
How to create a minimal class in Python
+2
votes
asked
Mar 5, 2020
in
Programming Languages
by
pythonuser
(
28.1k
points)
How to declare a minimal class in Python that will do nothing?
python
class
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 5, 2020
by
pkumar81
(
48.7k
points)
pass
statement can be used for creating minimal classes:
class AnEmptyClass:
pass
Please
log in
or
register
to add a comment.
Related questions
+4
votes
1
answer
How can I check if some method is present in an object/class in Python
asked
Dec 15, 2021
in
Machine Learning
by
kush
(
14.5k
points)
python
class
object
+4
votes
1
answer
How to create a 2D array/matrix of same values in Python
asked
Dec 14, 2021
in
Programming Languages
by
kush
(
14.5k
points)
python
array
matrix
+2
votes
1
answer
How to create a new empty dictionary in Python?
asked
Mar 8, 2020
in
Programming Languages
by
pythonuser
(
28.1k
points)
python
dictionary
+2
votes
1
answer
How to create a spreadsheet (xls/xlsx file) in Python
asked
Nov 29, 2018
in
Programming Languages
by
pythonuser
(
28.1k
points)
spreadsheet
python
xlsx
xls
+2
votes
1
answer
How to create directory with subdirectory in Python
asked
Oct 16, 2019
in
Programming Languages
by
pythonuser
(
28.1k
points)
python
dictionary
subdirectory
Categories
All categories
Programming Languages
(586)
Machine Learning
(31)
Operating Systems
(100)
Databases
(62)
Web & Google
(72)
CMS Tips
(26)
General IT Tips
(40)
GK Quiz QA
(33)
Most popular tags
python
list
array
numpy
dataframe
pandas
r
linux
ubuntu
php
string
file
command
dictionary
postgresql
apache
csr_matrix
bing quiz
mysql
matrix
vps
directory
vector
column
sort
...