Re: Correct traceback for multiline chain of method calling

2021-07-09 Thread Artem Komendantian
> That line is already there: ># File "/home/komendart/temp/script.py", line 6, in fail ># raise RuntimeError('fail') Probably I should rewrite more concretely. I have such traceback ending for python3.7 # File "script.py", line 15, in main # .fail(True) # File "script.py",

Re: Correct traceback for multiline chain of method calling

2021-07-09 Thread Cameron Simpson
On 09Jul2021 18:29, Артем Комендантян wrote: >There is a code https://pastebin.com/0NLsHuLa. >It has a multiline chain of method calling, when some method fails. In >python3.7 it fails in a row which corresponds to the failing method, in >python3.9 it corresponds to the very first line. > >Another

Re: Verify independence and uniform distribution of discrete values in Python?

2021-07-09 Thread Ethan Furman
From Tim Peters: > `secrets` is just a wrapper around `random.SystemRandom`, so the > presence or absence of `secrets` doesn't matter. > > As to SystemRandom, all answers depend on the quality of the platform > os.urandom(), which Python has no control over. See my answer here, > and the comments

Re: i just moved from bottleframework to flask. I changes what needed to be altered to convert the code and when i run it i just get "Internal server error" Running tail -f ../logs/error_log i get no

2021-07-09 Thread vergos....@gmail.com
Στις Παρασκευή, 9 Ιουλίου 2021 στις 11:48:43 μ.μ. UTC+3, ο χρήστης Menno Holscher έγραψε: > Op 09-07-2021 om 15:01 schreef vergos@gmail.com: > > please tell me what i need to do to be able to see error messages in > > browser and not only via console: > > > > app = Flask(__name__) > > app.

Re: i just moved from bottleframework to flask. I changes what needed to be altered to convert the code and when i run it i just get "Internal server error" Running tail -f ../logs/error_log i get no

2021-07-09 Thread Menno Holscher
Op 09-07-2021 om 15:01 schreef vergos@gmail.com: please tell me what i need to do to be able to see error messages in browser and not only via console: app = Flask(__name__) app.debug = True application = app The above only displays error via console into the error_log, having to open it

Verify independence and uniform distribution of discrete values in Python?

2021-07-09 Thread Dan Stromberg
I've posted a question about CPython 3.[0-9]'s random.SystemRandom().choice(list_) at https://stackoverflow.com/questions/68319071/verify-independence-and-uniform-distribution-of-discrete-values-in-python In short, we need to be able to support CPython's a little older than the secrets module goes

Correct traceback for multiline chain of method calling

2021-07-09 Thread Артем Комендантян
Hello! There is a code https://pastebin.com/0NLsHuLa. It has a multiline chain of method calling, when some method fails. In python3.7 it fails in a row which corresponds to the failing method, in python3.9 it corresponds to the very first line. Another similar example is https://pastebin.com/2P9

Re: i just moved from bottleframework to flask. I changes what needed to be altered to convert the code and when i run it i just get "Internal server error" Running tail -f ../logs/error_log i get no

2021-07-09 Thread vergos....@gmail.com
Στις Παρασκευή, 9 Ιουλίου 2021 στις 4:10:29 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Fri, Jul 9, 2021 at 11:07 PM vergos@gmail.com > wrote: > > please tell me what i need to do to be able to see error messages in > > browser and not only via console: > > > > app = Flask(__name__

Re: i just moved from bottleframework to flask. I changes what needed to be altered to convert the code and when i run it i just get "Internal server error" Running tail -f ../logs/error_log i get no

2021-07-09 Thread vergos....@gmail.com
Στις Παρασκευή, 9 Ιουλίου 2021 στις 4:10:29 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Fri, Jul 9, 2021 at 11:07 PM vergos@gmail.com > wrote: > > please tell me what i need to do to be able to see error messages in > > browser and not only via console: > > > > app = Flask(__name__

Re: i just moved from bottleframework to flask. I changes what needed to be altered to convert the code and when i run it i just get "Internal server error" Running tail -f ../logs/error_log i get no

2021-07-09 Thread Chris Angelico
On Fri, Jul 9, 2021 at 11:07 PM vergos@gmail.com wrote: > please tell me what i need to do to be able to see error messages in browser > and not only via console: > > app = Flask(__name__) > app.debug = True > application = app > > The above only displays error via console into the error_log,

Re: i just moved from bottleframework to flask. I changes what needed to be altered to convert the code and when i run it i just get "Internal server error" Running tail -f ../logs/error_log i get no

2021-07-09 Thread vergos....@gmail.com
Στις Παρασκευή, 9 Ιουλίου 2021 στις 3:57:11 μ.μ. UTC+3, ο χρήστης Menno Holscher έγραψε: > Op 09-07-2021 om 08:14 schreef vergos@gmail.com: > > Στις Παρασκευή, 9 Ιουλίου 2021 στις 12:03:00 π.μ. UTC+3, ο χρήστης Menno > > Holscher έγραψε: > >> Op 08-07-2021 om 15:42 schreef vergos@gmail.c

Re: i just moved from bottleframework to flask. I changes what needed to be altered to convert the code and when i run it i just get "Internal server error" Running tail -f ../logs/error_log i get no

2021-07-09 Thread Menno Holscher
Op 09-07-2021 om 08:14 schreef vergos@gmail.com: Στις Παρασκευή, 9 Ιουλίου 2021 στις 12:03:00 π.μ. UTC+3, ο χρήστης Menno Holscher έγραψε: Op 08-07-2021 om 15:42 schreef vergos@gmail.com: import flask dir(flask) ['Blueprint', 'Config', 'Flask', 'Markup', 'Request', 'Response', 'Sessio