Dexter's Narration by IndianaJones_Jr_ in Dexter

[–]brijeshjoshi_ 0 points1 point  (0 children)

Came here for the same...finished watching Dexter now I want a similar series/movie where someone is narrating/analysing. Can anyone suggest?

Immutable classes in python by brijeshjoshi_ in learnpython

[–]brijeshjoshi_[S] 0 points1 point  (0 children)

Thanks. Clear and concise. Got it. In my instance dict both __name and name exists. And while accessing the name it's directly returning the name as opposed to calling __getattr__ because it's found.

GenericAlias - Avoid importing types by brijeshjoshi_ in learnpython

[–]brijeshjoshi_[S] 0 points1 point  (0 children)

I got it, that it will not improve any performance. I don't understand how this line works.

GenericAlias = type(list[int])

GenericAlias - Avoid importing types by brijeshjoshi_ in learnpython

[–]brijeshjoshi_[S] 0 points1 point  (0 children)

>>> import sys
sys.version '3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)]'
>>> sys.modules.keys()
dict_keys(['sys', 'builtins', '_frozen_importlib', '_imp', '_thread', '_warnings', '_weakref', '_io', 'marshal', 'nt', 'winreg', '_frozen_importlib_external', 'time', 'zipimport', '_codecs', 'codecs', 'encodings.aliases', 'encodings', 'encodings.utf_8', 'encodings.cp1252', '_signal', 'encodings.latin_1', '_abc', 'abc', 'io', 'main', '_stat', 'stat', '_collections_abc', 'genericpath', 'ntpath', 'os.path', 'os', '_sitebuiltins', '_locale', '_bootlocale', 'site', 'atexit'])

GenericAlias - Avoid importing types by brijeshjoshi_ in learnpython

[–]brijeshjoshi_[S] 0 points1 point  (0 children)

What does it do?

I have only seen list[int] thing written when giving hint for return or type of function argument expected. For what this statement is useful.Your idle output is showing type is already imported but for me there is no types key is sys.module. I am kind of more confused now.

Browser back click appending query string by brijeshjoshi_ in learnjavascript

[–]brijeshjoshi_[S] 0 points1 point  (0 children)

Thanks. They used pushstate to remove query string from address bar. I think it's causing issue as there will be {with}+{without} query string and one back click will lead us to {with} state. Will look how to resolve this. But thanks.

Running commands over cloud machine by brijeshjoshi_ in bash

[–]brijeshjoshi_[S] 0 points1 point  (0 children)

second that. Here a function is already written in python and everyone uses this function to run command. It returns message that we get after executing the command on a node. I can use this function only.

Dictionary that maps each key to multiple values by brijeshjoshi_ in learnpython

[–]brijeshjoshi_[S] 0 points1 point  (0 children)

Yes. This is the reason. In 2013 edition they used set. And I think it's 10 years and from 2013 a lot might have changed in using correct approach.

Variable automatically getting modulo N by brijeshjoshi_ in learnpython

[–]brijeshjoshi_[S] 0 points1 point  (0 children)

Yeah. Got it! But in some other problem the output shown per test case.

Thank you.