Skip to main content
17 events
when toggle format what by license comment
Jul 7, 2024 at 16:04 history edited Reinderien
edited tags
Aug 31, 2023 at 2:41 review Suggested edits
Aug 31, 2023 at 11:57
Aug 30, 2023 at 15:31 answer added ToAskOrNotToAsk timeline score: 7
Aug 30, 2023 at 13:29 answer added Booboo timeline score: 4
Aug 30, 2023 at 12:11 comment added Booboo Leading underscores are used to name variables and attributes that are visible to the outside world but should be considered as "private." Examples would be certain global variables and class/instance attributes. Variables that are local to a function or method are not visible outside that function or method and therefore there is no need to suggest that they should be considered private (because they already are private).
Aug 30, 2023 at 7:53 comment added Toby Speight Welcome to Code Review! I changed the title so that it describes what the code does per site goals: "State what your code does in your title, not your main concerns about it.". Please check that I haven't misrepresented your code, and correct it if I have.
Aug 30, 2023 at 7:53 history edited Toby Speight CC BY-SA 4.0
Summarise the purpose, not the concerns, in the title
Aug 30, 2023 at 6:08 comment added Ben A @KhodeNima I think his gold python/python3.x badge earned over 3 years ago would say otherwise...
Aug 30, 2023 at 3:40 comment added KhodeNima @Linny Thanks for the hint sir , I'll keep that in mind
Aug 30, 2023 at 3:37 comment added KhodeNima @Reinderien Have a check on Paul Deitel book named : Python for programmer's. I assume you have not worked with python in your career sir.
Aug 30, 2023 at 3:34 comment added Reinderien That's a lot to unpack, and not particularly true, but I can't explain until tomorrow.
Aug 30, 2023 at 3:33 comment added KhodeNima @Reinderien We have no such thing called 'encapsulation' in python like there is in C# or... , But we do have a naming convention That is used to notify the code client or the own future self , That this function and all the component's inside it ( Variable , ETC ) are used for composition only ( Is-relationship reusage generally ) , And It should not be used in the global scope.
Aug 30, 2023 at 3:16 comment added Reinderien What's with the proliferation of leading underscores?
Aug 30, 2023 at 3:16 comment added Ben A Just a note: that type hint any isn't correct. You should from typing import Any, as the lowercase version is actually the built-in function any.
Aug 30, 2023 at 3:13 history edited Ben A CC BY-SA 4.0
added 2 characters in body
S Aug 30, 2023 at 3:04 review First questions
Aug 30, 2023 at 3:25
S Aug 30, 2023 at 3:04 history asked KhodeNima CC BY-SA 4.0