[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-04 Thread Jérôme
Jérôme added the comment: Hold on, this was the case with Python 3.8.2, but I just checked Github and the code is different! I'll have to check again with HEAD, and sorry if it was fixed! "Drop your panties sir William, I cannot wait till lunc

[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-04 Thread Jérôme
Jérôme added the comment: Hi, OK, I was looking at the wrong line numbers, the problem is still there and as follows. You might call me a perfectionist, but if HAVE_CLOCK_GETTIME is not defined, the function pytime_fromtimespec is taken out by the preprocessor, but still called

[issue40183] AC_COMPILE_IFELSE doesn't work in all cases

2020-04-04 Thread Jérôme
New submission from Jérôme : Just compiling the symbol sometimes gives a false positive (for example chroot compiles OK), but also linking properly detects the symbol is missing. -- components: Interpreter Core messages: 365781 nosy: jerome.hamm priority: normal severity: normal status

[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-04 Thread Jérôme
Jérôme added the comment: Hi, I think it is nice to inform the user that clock_gettime is mandatory (just like pthreads, see PR). Can be nice for someone trying to port it to a new platform. "It's no particularly silly, is it?" --

[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-05 Thread Jérôme
Jérôme added the comment: Yes, I get your meaning, and I totally agree with it, I was wondering what was the best way to do it, stay close to the cause, which would allow to more easily go along with changes, or put it in the configure file and warn the user as soon as possible

[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-03 Thread Jérôme
New submission from Jérôme : Hi, In the file Python/pytime.c (line 886 and others), functions and constants that I infer should be declared by HAVE_CLOCK_GETTIME are called without #ifdef. Best regards, Jérôme. -- components: Interpreter Core messages: 365703 nosy: jerome.hamm

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2011-01-31 Thread Jérôme Radix
Changes by Jérôme Radix jerome.ra...@gmail.com: -- nosy: +Jérôme Radix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792 ___ ___ Python-bugs-list

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2011-01-31 Thread Jérôme Radix
Jérôme Radix jerome.ra...@gmail.com added the comment: Could you please change the priority of this Issue to 'High' as this problem is a big annoyance for all Windows 64bits users which is a rather large niche of users (a niche getting larger and larger everyday), don't you think

[issue11319] Command line option -t (and -tt) does not work for a particular case

2011-02-25 Thread Jérôme Radix
New submission from Jérôme Radix jerome.ra...@gmail.com: The attached example mixes tabs and spaces but python does not report any warning when used with -t. Line 4 contains 1 tab. Lines after line 4 contains spaces. Tested using : Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-03-02 Thread Jérôme Radix
Changes by Jérôme Radix jerome.ra...@gmail.com: -- nosy: +jerome.radix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11375 ___ ___ Python-bugs

[issue11505] string.py increased test coverage

2011-03-16 Thread Jérôme Radix
Jérôme Radix jerome.ra...@gmail.com added the comment: There seems to be a small problem with parameters when calling _vformat. Your test is OK because _vformat raises an exception before using those parameters. See test_vformat_assert.patch for a correction proposal. -- nosy

[issue24072] xml.etree.ElementTree.Element does not catch text

2015-04-28 Thread Jérôme Laurens
New submission from Jérôme Laurens: text is not catcher in case 3 below INPUT import xml.etree.ElementTree as ET root1 = ET.fromstring('aTEXT/a') print(root1.text) root2 = ET.fromstring('aTEXTb//a') print(root2.text) root3 = ET.fromstring('ab/TEXT/a') print(root3.text) CURRENT OUTPUT TEXT

[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-04-30 Thread Jérôme Laurens
Jérôme Laurens added the comment: Since the text and tail notions seem tightly coupled, I would vote for a more detailed explanation in the text doc and a forward link in the tail documentation. text The text attribute holds the text between the element's begin tag and the next tag

[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-04-30 Thread Jérôme Laurens
Jérôme Laurens added the comment: Erratum def innertext(elt): return (elt.text or '') +''.join(innertext(e)+(e.tail or '') for e in elt) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24079

[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-04-30 Thread Jérôme Laurens
Jérôme Laurens added the comment: The totsstring(..., method='text') is not suitable for the inner text because it adds the tail of the top element. A proper implementation would be def innertext(elt): return (elt.text or '') +''.join(innertext(e)+e.tail for e in elt) that can

[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-04-29 Thread Jérôme Laurens
New submission from Jérôme Laurens: The documentation for xml.etree.ElementTree.Element.text reads If the element is created from an XML file the attribute will contain any text found between the element tags. import xml.etree.ElementTree as ET root3 = ET.fromstring('ab/TEXT/a') print(root3

[issue35957] Indentation explanation is unclear

2019-02-12 Thread Jérôme LAURENS
Jérôme LAURENS added the comment: To be more precise, consider code def f(x): \tx=0 # 7 spaces + one tab return x # 8 spaces In cpython, both indentation levels are 8 and no indentation error is reported (this is the case where both tab size and alt tab size are equal

[issue35957] Indentation explanation is unclear

2019-02-10 Thread Jérôme LAURENS
New submission from Jérôme LAURENS : https://docs.python.org/3/reference/lexical_analysis.html#indentation reads Point 1: "Tabs are replaced (from left to right) by one to eight spaces such that the total number of characters up to and including the replacement is a multiple of

[issue37514] french translation Spelling mistake on datetime python's library documentation online

2019-07-06 Thread Lanteri Jérôme
New submission from Lanteri Jérôme : "Un objet avisé est utilisé pour représenté un moment" corrected should be: "Un objet avisé est utilisé pour représenter un moment" Comment for help French translator: Vous pouvez tester en remplaçant le verbe suspecté par un verbe du tr

[issue38514] pathlib's mkdir documentation improvement

2019-10-18 Thread Jérôme Laurens
New submission from Jérôme Laurens : There are some inconsistencies in the actual documentation of path lib's mkdir doc. Here is the 3.7 version, annotated and followed by a change proposal Path.mkdir(mode=0o777, parents=False, exist_ok=False) Create a new directory at this given path

[issue42473] re.sub ignores flag re.M

2020-11-26 Thread Jérôme Laurens
New submission from Jérôme Laurens : Test code: ``` import re test='''012345678 012345678 ''' pattern = r'^\s+?$' m = re.search(pattern, test, re.M) if m: print(f'TEST FOUND "{m.span()}"') def replace(m): print(f'TEST REMOVE {m.span()}') return ''

[issue43922] Double dots in quopri transported emails

2021-04-23 Thread Jérôme Vanhaudenard
Change by Jérôme Vanhaudenard : -- nosy: +jev2 ___ Python tracker <https://bugs.python.org/issue43922> ___ ___ Python-bugs-list mailing list Unsubscribe: