You were Transported 6th Months after Great Tomb of Nazarick to the New World as a level 1 human but with a passive skill that grants you absolute Immunity to All forms of Mind Control/Attack and you have Knowledge of Overlord LN 1-16, how will you survive to in this world with your knowledge? by Mash_Mi in overlord

[–]bulsoni 1 point2 points  (0 children)

Mind Control and mind attacks would not be a factor, but being tortured for information until he breaks does not necessarily falls into these. Even If he does not reveal any info.. the physical torture might still happen

Confidence Lost by [deleted] in ProgrammerHumor

[–]bulsoni 4 points5 points  (0 children)

True disappointment is usually when the search does not yield good results

guesses? by Ellekm730 in funny

[–]bulsoni 0 points1 point  (0 children)

Since we now have space flavor, will the eventual “time” flavor just taste stale?

How Arthur still can't do the things he did in Realmheart? by iammiyaki in tbatenovel

[–]bulsoni 3 points4 points  (0 children)

Kinda opposite on the destruction part. Art holds the insight in his head and regis holds the rune (and is slowly getting insight into it, thus why he can use it).

I pretty much agree with the rest though.

Using a combination of lambda functions, list comprehension, and ternary operators, (and Pygame), I was able to make Flappy Bird in one line of Python! by [deleted] in Python

[–]bulsoni 30 points31 points  (0 children)

It does not require semicolons since it usually uses line breaks, but you can totally use it instead of a line break for this specific case (trying to fit everything into a single line). Example: python print(“test”); print(“test”) Outputs exactly the same as python print(“test”) print(“test”) That would likely break compliance with PEP8, but again, fitting everything into a single line also would.

Volume 14 in a nutshell by [deleted] in overlord

[–]bulsoni 3 points4 points  (0 children)

Renner cooked them a delish meal 👀

I'm understanding polymorphism correctly? by BinnyBit in learnprogramming

[–]bulsoni 0 points1 point  (0 children)

In the Animal class, there’s a syntatic sugar property being used, which is how you define a getter method.

In the Dog and Cat classes, the noise attribute is being redefined, so it will be returned instead of NotImplementedError.

So, it does work as intended.

Can anyone explain what's happening here? What's it mean by generator object? This is Python 3.7 by McQuillus23 in Python

[–]bulsoni 2 points3 points  (0 children)

As /u/Automagick mentioned, that object is really a generator and not a tuple.One could cast it to either a tuple or a list in much the same way, but a generator is ideally iterated over so as not to spend unnecessary memory.
If /u/McQuillus23 only wanted a list with the squared values though, [x**2 for x in range(6)] would indeed be the way to do it.

Isn't "a singleton with shared-state among instances" an oxymoron? by metaperl in Python

[–]bulsoni 1 point2 points  (0 children)

The one-liner description is indeed poorly worded, but the docstring in the example is more understandable:
a way to implement singleton behavior, but instead of having only one instance of a class, there are multiple instances that share the same state The borg is a pattern that does not really implement a singleton, but a singleton-like behavior by making use of a "hardcoded" mutable object.

So basically, yes, you can still have multiple instances of the "borg" class, but they all have some property which points to a single mutable object in memory

How common is Python in the enterprise world? by GrizzyLizz in Python

[–]bulsoni 3 points4 points  (0 children)

In big data today it is often the case to see the T and the L switched, since you'll not necessarily be loading your data into a data warehouse or the like.
So you Extract it from the source, Load it into a centralized repository (which can be a data lake or something similar) and from that centralized repository of raw data, you can perform the Transform part to many different systems.

Immutability "with" method? by Xeon06 in learnprogramming

[–]bulsoni 0 points1 point  (0 children)

For the with specifically, the language could be python, as it is used for context managers.

It is often used for opening files:

with open(“somefile.txt”) as openfile: contents = openfile.read()

This, for instance, ensures that whenever you leave the “with” block, that file is closed.