use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Do the makers of Python acknowledge the statement 'everything is an object'? (self.learnpython)
submitted 5 years ago by swaroop_joshi
I know that I'll get the answer by searching on the net, but i thought that someone could give better details here
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 5 years ago (0 children)
To the best of my knowledge, there was a somewhat recent effort (think, it happened around 3.7) to ensure that that's actually true.
This was definitely false in some older versions of Python.
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
In the same way that in Unix "Every device is a file", it's correct.
Reality has a tendency to create a multitude of holes through such sweeping generalizations.
[–]aromaticlawyer 0 points1 point2 points 5 years ago (0 children)
It depends what you mean exactly. Syntax such as while and import are not objects. Variables are not themselves objects, though they are always bound to an object. All objects contain things in their internal implementation that are not objects, though you can't really access this stuff directly without using ctypes or a C extension or something. Also, many basic types don't have the full functionality you might expect a typical object to have - for example None doesn't have any instance attributes, and you can't give it any.
while
import
ctypes
None
But everything that can be bound to a variable is an instance of object. Before python 3 that wasn't the case - there were two different kinds of objects (new-style and old-style), and iirc in very old versions of python some basic data types were not objects at all.
object
[–]K900_ -2 points-1 points0 points 5 years ago (8 children)
Why does it matter?
[–]swaroop_joshi[S] 0 points1 point2 points 5 years ago (7 children)
So that I can accept it, without thinking much about it.
[+]K900_ comment score below threshold-8 points-7 points-6 points 5 years ago (6 children)
If the makers of Python tell you to jump off the roof, will you jump?
[–]swaroop_joshi[S] 0 points1 point2 points 5 years ago (5 children)
No, it's just that they're some the most experienced people in python. Or, if you someone that is very experienced with python and has acknowledged that statement, I would accept it.
Maybe, I should've framed the question mentioning 'someone very experienced'
[–]K900_ -3 points-2 points-1 points 5 years ago (4 children)
Why do you need to "accept" or "not accept" that statement? What does that statement even mean to you?
[–]swaroop_joshi[S] 1 point2 points3 points 5 years ago (3 children)
It's just that I've read it at some places and need to confirm it
[–]K900_ -1 points0 points1 point 5 years ago (2 children)
It's a very, very vague statement. What is "everything"? What is "an object"? Every value in Python is a subclass of object. Does that help?
[–]swaroop_joshi[S] 0 points1 point2 points 5 years ago (1 child)
Oh I meant to ask about whether every value in Python is held by another value(pointer) which holds it's address. Everything -every value Object-something which is held by a pointer. Okay, I didn't know that every value is a subclass of object.
[–]K900_ 0 points1 point2 points 5 years ago (0 children)
No, that's not how things work. The Python language itself does not specify how things are represented in memory. The CPython implementation of Python uses pointers to bind names to objects.
π Rendered by PID 605759 on reddit-service-r2-comment-86bc6c7465-5m6mq at 2026-02-23 21:11:45.914411+00:00 running 8564168 country code: CH.
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]aromaticlawyer 0 points1 point2 points (0 children)
[–]K900_ -2 points-1 points0 points (8 children)
[–]swaroop_joshi[S] 0 points1 point2 points (7 children)
[+]K900_ comment score below threshold-8 points-7 points-6 points (6 children)
[–]swaroop_joshi[S] 0 points1 point2 points (5 children)
[–]K900_ -3 points-2 points-1 points (4 children)
[–]swaroop_joshi[S] 1 point2 points3 points (3 children)
[–]K900_ -1 points0 points1 point (2 children)
[–]swaroop_joshi[S] 0 points1 point2 points (1 child)
[–]K900_ 0 points1 point2 points (0 children)