[issue39861] French doc __futur__: Bad URL

2020-03-06 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: The PR has already been merged. -- ___ Python tracker <https://bugs.python.org/issue39861> ___ ___ Python-bugs-list m

[issue39861] French doc __futur__: Bad URL

2020-03-05 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: I just opened a PR for that: https://github.com/python/python-docs-fr/pull/1176 -- nosy: +matheus.v.portela ___ Python tracker <https://bugs.python.org/issue39

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2017-07-28 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Agreed that we should attain to ISO 8601, as it solves two questions that occurred in this thread: - According to the specification, it is clear that a week must start on Monday and end on Sunday. Hence datetime.strptime('201726', '%Y%U') could

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2017-07-22 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Also, may I move this issue to a GitHub PR? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/iss

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2017-07-22 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: The patch is broken against Python 3.7. I'll try working on it. -- nosy: +matheus.v.portela Added file: http://bugs.python.org/file47032/issue1100942_20170722.patch ___ Python tracker <rep...@bugs.python.

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2017-07-22 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Therefore, should we implement the behavior of assuming the first day of the week if none is provided or not? -- nosy: +matheus.v.portela ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-03 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Applying review comments. Now, there is an internal link to the FAQ entry on multidimensional lists. -- Added file: http://bugs.python.org/file40337/issue23406_doc_stdtypes_and_faq.patch ___ Python tracker

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-02 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: I'm attaching a patch to update the stdtypes.rst documentation according to our discussion. I've replaced the table explanation to "equivalent to adding s to itself n times" and added a link to the FAQ entry. I'm not sure, however, wh

[issue23406] interning and list comprehension leads to unexpected behavior

2015-08-31 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Does anyone else think the note should be expanded? For me, it seems to be pretty accurate although it may indeed be confusing to beginners. If anything, I can work on rewriting it to be more explanatory. -- nosy: +matheus.v.portela

[issue18697] Unify arguments names in Unicode object C API documentation

2015-08-31 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Just checking, it would be required to update Objects/unicodeobject.c, Include/unicodeobject.h, and Doc/c-api/unicode.rst, right? As far as I saw, "unicode" means a Python object with unicode string, "u" is a UTF-8 encoded C

[issue23406] interning and list comprehension leads to unexpected behavior

2015-08-31 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: I was referring to the table of operations. So, what if I replace "n shallow copies of s concatenated" by "repeat s n times and concatenate (to create a multidimensional list, refer

[issue3548] subprocess.pipe function

2015-08-27 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Oh, I see... The pipes module uses os.system and os.popen to execute commands under a /bin/sh environment. So you are proposing to re-implement it with subprocess in order to execute commands without shell and, also, extend by accepting argv-style

[issue3548] subprocess.pipe function

2015-08-27 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Sure. I'll leave this issue for a while before others can emit their opinions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3548

[issue24789] ctypes doc string

2015-08-27 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Updated create_string_buffer docstring to create_string_buffer(aBytes, anInteger) - character array. -- keywords: +patch nosy: +matheus.v.portela Added file: http://bugs.python.org/file40279/issue24789_ctypes_doc_string.patch

[issue3548] subprocess.pipe function

2015-08-26 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Let me check whether I understood you suggestion... What you are saying is that it is already possible to pipeline shell commands through subprocess, such as in the following line? subprocess.call('ls -l | grep Music', shell=True) However

[issue3548] subprocess.pipe function

2015-08-25 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: I just found this open issue and I can work on it. What is left to do before closing it? -- nosy: +matheus.v.portela ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3548

[issue10415] readline.insert_text documentation incomplete

2014-03-11 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: I could get readline.insert_text() to work, ish, without calling startup_hook. The script is attached to this message. Apparently, there is some need to call readline.redisplay() to update what's on screen. However, I can't really understand what's

[issue809163] Can't add files with spaces

2014-03-08 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: As far as I noticed, in bdist_rpm.py, the _make_spec_file() method generates an .spec file for RPM build and attaches the install script to setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES. Later, the .spec refers to the record

[issue809163] Can't add files with spaces

2014-03-07 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: I tried to apply the last patch but it returned me and error of failing hunk. I think it was based on an old version of the test_bdist_rpm.py file. Hence, I made this updated version of the patch and could get the expected failure during the tests. I

[issue809163] Can't add files with spaces

2014-03-06 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Is this issue still going on? -- nosy: +matheus.v.portela ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue809163

[issue20799] Turn on all tests in test.test_importlib.source.test_file_loader

2014-03-05 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Apparently, the methods with leading underscore are being tested by two classes (SourceLoaderBadBytecodeTest and SourcelessLoaderBadBytecodeTest) that implement methods with similar names (but without the underscore). Simply removing the underscore