This pattern is named "I am altering the deal, pray I don't alter it any further."
:rtype: bool|dict[str,Any]
#python
#Python
Some interview questions you can use:
What is this? #javascript
Does the self exist? #python
Do you understand me? #VBNET
Whoami? #unix
Yoda teaching #python - "There is no do-while, only try"
if not all(statement for statement in opinions(people)):
twitter_war()
else:
twitter_fight()
#python
#python
def why(self, **life):
if "meaning" not in life:
return
else: # ask
self.why()
#python For your entertainment, here's my windows batch build script. https://gist.github.com/matthewdeanmartin/e9a6a0f7bf5d5674751c Uses pywin, sphynx, nose, virtualenv & py2exe
#python "This probably means that Tcl wasn't installed properly." Well, it really means Tcl/tkinter is oblivious to virtual environments
# python PEP 8 dictates that the # be followed by one space. Please update your # hashtags (not #python)
def you_shall_not():
pass
#python
def leppard():
print("Oh, I get hysterical, hysteria\n"
"Oh can you feel it, do you believe it?")
#python
Tip-o-the-day. Unless you are doing data exchange w/a #python developer, don't file.write(pformat({"x":1})), instead use the csv.DictWriter
#python Ok my first hard to find bug for using fields and not real properties. Time to do some global search and fix.
I have to use TkInter. Should I (or anyone) learn Tcl? Well, this famous guy Richard Stallman, says no: http://vanderburg.org/OldPages/Tcl/war/0000.html #python
#monkey with monocle
def _():
pass
#python
Look at that, batteries, or at least a usable performance profiler, is included #python https://docs.python.org/2/library/profile.html
But first, let me register a self e... lambda e: event_handler(self, e)
#python
I had to type this and you could hear pycharm audible cry
self.r.g(f).w["a"]["b"].c["d"]
#python
Every time I branch on a method call, my #python code frowns at me):
B = 1000 # overdraft limit
b = int(input("balance"))
two = 2 # exchange rate
if 2*b < - 2*B:
sys.exit(-1)
#pythonquotes #python
assert len(country.can_do(for=you)) >= 0
assert len(you.can_do(for=country) > 0
#pythonquotes #python
I've seen hacks you wouldn't believe. Kludges to fix #python s 1 line lambdas. All those moments will be lost in time, like tears in rain.
Wow, does #python have anything like ruby's mutation testing? http://solnic.eu/2013/01/23/mutation-testing-with-mutant.html
@mistersql It does, so says google: https://pypi.python.org/pypi/MutPy/0.4.0
♡ 0 ↻ 0
So if you create a ronin TkInter widget, ie master=None, tkinter doesn't care, it will draw the frame anyhow. It will be unsinkable! #python
I keep calling .destroy() on tkinter and I'm still in a universe where the #python tkinter library exists.
Why won't this #tkinter frame sink? If the titanic was made of tkinter frames, it would be unskinkable. #python
Everything you need to know about #python s TKinter in 1/2 tweet: Try stuff at random. There is no reason or sense to it. The Zen of Tkinter
#python Question of the day: Which TkInter geometry manager is least painful to use?
#python localization-- in the midwest, it's dict.pop(). Everywhere its, it's dict.soda() https://docs.python.org/3.4/library/stdtypes.html#dict
#python You keep using that dict, I don't think it means what you think it means.
#python it has batteries, but no obvious way to add something to a dictionary. https://stackoverflow.com/questions/1024847/add-to-a-dictionary-in-python
#python Anyone an expert on PyCharm & Python Annotations? http://forum.jetbrains.com/thread/PyCharm-3198
#python [so five trillion characters later] was that a list or an expansion?
#python functional programming techniques with non-pure functions == non testable, dependency rats nest, cluster f*
So after adding annotation to my #python code it appears to all be strings, dict, list, which in turn can hold anything.
#python How do you annotate a function arg so that #pycharm knows it is a method pointer/lambda or the like? Tried to ask on #stackoverflow
Add a stray , to the end of a line in a #python file and watch the fun begin.
#python Let's put every single variable into a dict.We'll simulate complex types w/concatenated key strs. sort of a dict layer over __dict__
I want to a #stackoverflow clone but for stupid questions, like "are #python pickle files valid python code?" How do I know if it is stupid?