Martin Thoma

Results 446 comments of Martin Thoma

I could simplify it: ``` >>> parso.parse('rf"\{foobar:>3o}"', error_recovery=False) Traceback (most recent call last): File "/home/moose/.pyenv/versions/3.10.2/lib/python3.10/site-packages/parso/parser.py", line 180, in _add_token plan = stack[-1].dfa.transitions[transition] KeyError: ReservedString(}) During handling of the above exception,...

I highly recommend to install pre-commit: https://pre-commit.com/ pip install pre-commit Once you have it on your system, you can go in this repository (this branch) and execute "pre-commit install". The...

Also, I would recommend to drop Python 2 support. [Python 2 is outdated](https://pythonclock.org/). Two nice features you can use when you drop Python < 3.6 support: * f-strings * type...

Your decision :-) - the main point is that it puts more work on your side. This PR should not break Python 2 compatibility. Although I don't support Python 2...

I've just asked on SO for help: http://stackoverflow.com/q/24717275/562769

@davad No (see my comment / the edit of my question)

For the comments, https://disqus.com/ might be the easiest way.

Hi Andrej, Thank you for the quick response. I am working with neural networks for handwriting recognition (see http://martin-thoma.com/write-math/ if you are interested). I used a university-internal Python toolkit which...

Have a nice vacation! :palm_tree: :sun_with_face:

I came here via Google. The following works fine: ``` # Evaluate model score = model.evaluate(test_x, test_y) print('Test accuarcy: %0.4f%%' % (score[0] * 100)) # Run the model on one...