[issue46507] enabling cProfile to profile code given as an argument "à la" timeit

2022-01-24 Thread julien tayon
Change by julien tayon : -- nosy: +matrixise ___ Python tracker <https://bugs.python.org/issue46507> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46507] enabling cProfile to profile code given as an argument "à la" timeit

2022-01-24 Thread julien tayon
New submission from julien tayon : well, you want to use python3 -mcProfile -othis.prof 'oneliner in python to test something' And weirdly enough this normally expected behaviour does not work. It's because last argument is expected to be the path of the script name to profil

[issue16670] [docs] class Point in collections.namedtuples may be not that good example

2012-12-12 Thread julien tayon
New submission from julien tayon: Priority: low Keywords: documentation After watching http://www.youtube.com/watch?v=o9pEzgHorH0 (Stop writing classes by diedrich) I think the class Point example for the named tuples may be a wrong practice: http://docs.python.org/2/library/collections.html

[issue16249] unicode name accepts a punctuation glyph

2012-10-16 Thread julien tayon
julien tayon added the comment: http://www.fileformat.info/info/unicode/char/b7/index.htm the unicode category is Po (Ponctuation). Empirically, it cannot start a variable name so according to the rules given in the lexical analyser it should be one of : Mn, Mc, Nd, Pc Which is not the case

[issue16249] unicode name accepts a punctuation glyph

2012-10-16 Thread julien tayon
New submission from julien tayon: I guess unicode variable names are restricted to letters, and that symbols and punctuation shoud be ignored (except _). I have tested other dots (punctuation) they dont work. Only http://www.fileformat.info/info/unicode/char/00b7/index.htm oddly enough has