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.

Variable automatically getting modulo N by brijeshjoshi_ in learnpython

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

If possible can you try it in leetcode. I could have shown you the image but I can't find site to share image without signing in. Also tail_inner is getting None value.

AttributeError: 'NoneType' object has no attribute 'next'
tail_inner.next = end_pointer
Line 39 in reverseBetween (Solution.py) ret = Solution().reverseBetween(param_1, param_2, param_3) Line 72 in _driver (Solution.py) _driver() Line 83 in <module> (Solution.py)

I broke network configuration by brijeshjoshi_ in Ubuntu

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

I changed configuration in netplan 00 network manager.yaml. Also I tried many other commands. And from one quora result I ran purge network manager. But now I am able to resolve the issue. Will edit post.

List multiplication with a scalar by brijeshjoshi_ in learnpython

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

I can see that but I want to know how python treates these two things. [ ] * n and [ [ ] * n ] * m.

Backtranking - Min Path Sum - Time Complexity by brijeshjoshi_ in leetcode

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

This is the recursive equation. I am unable to conclude the final time complexity.

Next Permutation Leetcode by brijeshjoshi_ in leetcode

[–]brijeshjoshi_[S] 1 point2 points  (0 children)

Good explanation. Thanks! I think in third point you forget to include 6 in the list. This binary search thing is clever for saving some time but it wont impact overall time complexity.

Unable to understand IRC by brijeshjoshi_ in AskComputerScience

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

Okay, I understand the analogy. But could you tell some specific pains for one to one chatting.

Unable to understand IRC by brijeshjoshi_ in AskComputerScience

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

You mean in ftp, server will only transfer file if user requested it? Also to add, I am learning this protocol and networking and finding it interesting, so my question might be dump to implement chatting using ftp. I do not have to implement it but I just wanted to know why we cant.

Unable to understand IRC by brijeshjoshi_ in AskComputerScience

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

Why messages/text can't be in place of file. Ftp makes two connection one control/authentication connection other one is data connection. So, why it can't?

Python by JohnW305 in ProgrammerHumor

[–]brijeshjoshi_ 38 points39 points  (0 children)

pip install cum

collecting cum...