These are chat archives for pythonvietnam/Flask

7th
Feb 2017
malvin9000
@malvin9000
Feb 07 2017 00:19
It's Python's way of accessing your OS
The functions that the OS module provides allows you to interface with the underlying operating system that Python is running on – be that Windows, Mac or Linux.
Paul A. Aranguren
@Paulguren
Feb 07 2017 00:20
OK, makes sense.
Paul A. Aranguren
@Paulguren
Feb 07 2017 00:21
It seems obvious, but often many places use it, but never really bother to explain what it might be. And the Python Documentation is helpful, but often it goes in circles and its hard to get a simple answer that is "x == Fish".
Often those docs take 3 paragraphs to say what you just told me @malvin9000
So thank you
malvin9000
@malvin9000
Feb 07 2017 00:21
I love Python, but the Python documentation sucks
It's written by, and seemingly meant for, people with PhDs in CS
Paul A. Aranguren
@Paulguren
Feb 07 2017 00:23
Yes; I feel that for a language that is supposed to be so welcoming to beginners and supposed to be picked up by everyone, the documentation is written for veteran developers
@malvin9000 where are you from?
malvin9000
@malvin9000
Feb 07 2017 00:24
Yeah it's kind of ridiculous
malvin9000
@malvin9000
Feb 07 2017 01:13
@Paulguren New York, and you?
Paul A. Aranguren
@Paulguren
Feb 07 2017 05:32
@malvin9000 Miami
Paul A. Aranguren
@Paulguren
Feb 07 2017 18:07
Hey guys
Traceback (most recent call last):
File "db_create.py", line 8, in <module>
db.session.add(Task("Finish this tutorial", date(2016
, 9, 22), 10, 1))
TypeError: init() takes 1 positional argument but 5 w
ere given
This type of error, what is it really telling me?
specifically the type error line