[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

2018-10-29 Thread Vincent Michel
Change by Vincent Michel : -- pull_requests: +9528 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35065> ___ ___ Python-bugs-list mai

[issue18209] Bytearray type not supported as a mutable object in the fcntl.ioctl function

2013-06-14 Thread Vincent Michel
New submission from Vincent Michel: The Bytearray type is a mutable object that support the read-write buffer interface. The fcntl.ioctl() function is supposed to handle mutable object (such as array.array) for the system calls in order to pass object that are more than 1024 bytes long. The

[issue15240] ctype Structure keeps reference to function pointers

2012-07-02 Thread Vincent Pelletier
New submission from Vincent Pelletier : When storing a ctype function pointer in a ctype structure field, a reference remains even when that field is overwritten with some values: - None - None cast into a function pointer But the reference is somehow removed when overwriting the field with a

[issue15240] ctype Structure keeps reference to function pointers

2012-07-02 Thread Vincent Pelletier
Vincent Pelletier added the comment: Trying to generate a graph on several python and several uncommented lines, I see that my test case is incomplete. Time to review my copy. -- resolution: -> invalid status: open -> closed ___ Python t

[issue15253] xmlrpclib.ServerProxy does not support 2-tuple value for uri parameter

2012-07-05 Thread Vincent Pelletier
New submission from Vincent Pelletier : SafeTransport class supports a 2-tuple as uri, in order to pass x509 parameters to httplib.HTTPSConnection . xmlrpclib.ServerProxy.__init__ fails when given such tuple, because it calls: urllib.splittype(uri) without checking uri type first. Minimal

[issue15253] xmlrpclib.ServerProxy does not support 2-tuple value for uri parameter

2012-07-05 Thread Vincent Pelletier
Vincent Pelletier added the comment: Then I guess SafeTransport should be cleaned to remove its dead code (tuple host handling), and the class you link to should be included (in spirit if not verbatim) in xmlrpclib. Also, sorry, I realized after posting that this bug is a dupe of #1581. But

[issue21814] object.__setattr__ or super(...).__setattr__?

2014-06-20 Thread Vincent Besanceney
New submission from Vincent Besanceney: In: https://docs.python.org/2.7/reference/datamodel.html#customizing-attribute-access Regarding the description of __setattr__ method: "For new-style classes, rather than accessing the instance dictionary, it should call the base class method wit

[issue21814] object.__setattr__ or super(...).__setattr__?

2014-06-21 Thread Vincent Besanceney
Vincent Besanceney added the comment: If I understand it right, in a simple case like this: class Foo(object): def __setattr__(self, name, value): # some logic, then... super(Foo, self).__setattr__(name, value) calling super is equivalent to calling object.__setattr__, but

[issue6619] Remove duplicated function in Lib/inspect.py

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The isgenerator() function looks duplicated, remove the one with the shortest docstring -- components: Library (Lib) files: py3k-inspect.py-remove-duplicated-func.patch keywords: patch messages: 91172 nosy: vincele severity: normal status: open title

[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The last_interval variable could potentially be used before being first assigned a value. -- components: Library (Lib) files: py3k-locale.py-use-before-assignment.patch keywords: patch messages: 91173 nosy: vincele severity: normal status: open title

[issue6621] [RFC] Remove leftover use of Carbon module from Lib/binhex.py

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The binhex module still has uses of the deprecated and now now removed Carbon module. The attached patch 'fix' this by removing the code, something else may be required, but I don't know what. So this is only a RFC to start discussion --

[issue6622] [RFC] wrong variable used in Lib/poplib.py

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The poplib modules use the 'secret' variable during its creation, this may be a mistake. Perhaps the intention was to use the 'password' instead... -- components: Library (Lib) files: py3k-poplib.py-use-wrong-variable.patch keyw

[issue6623] Lib/ftplib.py

2009-08-01 Thread Vincent Legoll
Changes by Vincent Legoll : -- components: Library (Lib) nosy: vincele severity: normal status: open title: Lib/ftplib.py versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue6

[issue6623] Lib/ftplib.py netrc class parsing problem

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The 'macro_lines' list should probably be emptied upon leaving macro parsing mode. Simplify code by using the 'macro_name' variable as the boolean for macro parsing mode. Deprecated code probably should be fixed until completely removed

[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-04 Thread Vincent Legoll
Vincent Legoll added the comment: Yes it does -- ___ Python tracker <http://bugs.python.org/issue6620> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6622] [RFC] wrong variable used in Lib/poplib.py

2009-08-04 Thread Vincent Legoll
Vincent Legoll added the comment: Could someone ensure the attached unittest does the job, I blindly copied from above... I don't know how to launch an unittest with the svn 'Lib', it takes the system one and just messing with PYTHONPATH won't work either.

[issue6623] Lib/ftplib.py netrc class parsing problem

2009-08-04 Thread Vincent Legoll
Vincent Legoll added the comment: If the macro_lines is not emptied upon end of parsing a macro definition, if there's another macro definiton it will 'inherit' the lines from the previous one, which could very well be uncool. The use before definition should also be fixed. Ple

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-10 Thread Vincent Legoll
New submission from Vincent Legoll : As per the blog entry http://www.logilab.org/blogentry/17873 I think the tempfile.mkstemp() documentation could be more helpful by suggesting the use of os.close() appropriately. If some native english speaker could give a review of the language I used in

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-10 Thread Vincent Legoll
Vincent Legoll added the comment: Or a review of the markup I used -- ___ Python tracker <http://bugs.python.org/issue6875> ___ ___ Python-bugs-list mailin

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-12 Thread Vincent Legoll
Vincent Legoll added the comment: The real question I had is why mkstemp return an os-level opened file descriptor instead of a python file object... -- ___ Python tracker <http://bugs.python.org/issue6

[issue3687] Popen() object stdout attribute reassignment behaviour

2010-06-16 Thread Legoll Vincent
Legoll Vincent added the comment: On Thu, Jun 17, 2010 at 2:34 AM, Terry J. Reedy wrote: > While it could be argued that it is 'obvious' What is obvious for someone maybe is not for others, if I tried to modify it, that was on the (false) assumption that it will do what I wan

[issue9253] optional subparsers

2010-07-13 Thread Vincent Driessen
New submission from Vincent Driessen : **NOTE**: This is a re-post of http://code.google.com/p/argparse/issues/detail?id=47 What steps will reproduce the problem? parser = argparse.ArgumentParser() sub = parser.add_subparsers() sub.add_parser("info") parser.add_argum

[issue9253] argparse: optional subparsers

2010-07-13 Thread Vincent Driessen
Vincent Driessen added the comment: Changed the title, so it shows that the feature request is for argparse. -- title: optional subparsers -> argparse: optional subparsers ___ Python tracker <http://bugs.python.org/iss

[issue9253] argparse: optional subparsers

2010-07-14 Thread Vincent Driessen
Vincent Driessen added the comment: Actually, this is a rather common concept. Broadly used tools like for example Git use this kind of subcommand handling. This command shows all remotes: git remote(i.e. is like git remote list) Showing/removing remotes is done using

[issue29404] "TypeError: 'int' does not have the buffer interface" on memoryview over bytearray

2017-01-31 Thread Vincent Pelletier
New submission from Vincent Pelletier: Quoting a github gist[1] (not mine, I found it while googling for this error) clearly illustrating the issue: # Python 2 >>> b = bytearray(8) >>> v = memoryview(b) >>> v[0] = 42 Traceback (most recent call last): File &quo

[issue29404] "TypeError: 'int' does not have the buffer interface" on memoryview over bytearray

2017-02-02 Thread Vincent Pelletier
Vincent Pelletier added the comment: My original point of view was that: - python3 is right to only accept integers, consistently with "str != bytes" - python2 is rather right to accept str, consistently with "str == bytes" - maybe the bug is that python2 should not reject

[issue15933] flaky test in test_datetime

2015-01-02 Thread Vincent Davis
Vincent Davis added the comment: Rather than dealing with the time delta how about getting the time twice and checking that we are between and at least once we have the same day. i.e. ts1 = time() today = self.theclass.today() ts2 = time() todayagain1 = self.theclass.fromtimestamp(ts1

[issue20544] Use specific asserts in operator tests

2015-01-02 Thread Vincent Davis
Vincent Davis added the comment: Looks like this is ready to be applied and closed or just closed. -- nosy: +Vincentdavis ___ Python tracker <http://bugs.python.org/issue20

[issue18983] Specify time unit for timeit CLI

2015-01-02 Thread Vincent Davis
Vincent Davis added the comment: Anything else need to be done on this patch? -- nosy: +Vincentdavis ___ Python tracker <http://bugs.python.org/issue18

[issue21360] mailbox.Maildir should ignore files named with a leading dot

2015-01-02 Thread Vincent Davis
Changes by Vincent Davis : -- nosy: +Vincentdavis ___ Python tracker <http://bugs.python.org/issue21360> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24525] [doc] missing word

2015-06-29 Thread Vincent Legoll
New submission from Vincent Legoll: Here is a patch to fix a missing word in the urllib doc -- assignee: docs@python components: Documentation files: python-doc-fix.hgpatch messages: 245927 nosy: docs@python, vincent-legoll priority: normal severity: normal status: open title: [doc

[issue25072] CGI large POST data string truncated

2015-09-11 Thread Vincent Caloone
New submission from Vincent Caloone: For "large" POST request (> 25 ko), cgi.FieldStorage() doesn't contains all field in the html form. When we trace the root of the issue, it is located in file server.py : if self.command.lower() == "post" and nbytes > 0:

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-04 Thread Vincent Michel
Vincent Michel added the comment: While I was working on the documentation update, I realized that what we called `run_coroutine_threadsafe` is actually a thread-safe version of `ensure_future`. What about renaming it to `ensure_future_threadsafe`? It might be a bit late since

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-05 Thread Vincent Michel
Vincent Michel added the comment: I attached the first version of the documentation for `run_coroutine_threadsafe`. The `Concurrency and multithreading` section also needs to be updated but I could already use some feedback. Also, I think we should add a `try-except` in the callback function

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-05 Thread Vincent Michel
Vincent Michel added the comment: > The docs look good. Should I add a note to explain why the loop argument has to be explicitly passed? (there is a note at the beginning of the `task functions` section stating "In the functions below, the optional loop argument ...") > Wha

[issue25304] Add run_coroutine_threadsafe() to asyncio

2015-10-05 Thread Vincent Michel
Vincent Michel added the comment: I attached a patch that should sum up all the points we discussed. I replaced the `call_soon_threadsafe` example with: loop.call_soon_threadsafe(callback, *args) cause I couldn't find a simple specific usage. Let me know if you think of a better ex

[issue25989] documentation version switcher is broken fro 2.6, 3.2, 3.3

2016-01-01 Thread Vincent Davis
New submission from Vincent Davis: >From the documentation pages for python 2.7 and 3.4, 3.5, 3.6 it is possible >to select another python version in the breadcrumb at the top left of the >page. This is not available for python 2.6, 3.2 and 3.3. See related issue which is clos

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-04 Thread Vincent Legoll
Changes by Vincent Legoll : -- nosy: +vincent-legoll ___ Python tracker <http://bugs.python.org/issue25940> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-08 Thread Vincent Legoll
Vincent Legoll added the comment: Maybe if the server change is not approved you can still push the part of the patch that un-hardwire that server name everywhere... -- ___ Python tracker <http://bugs.python.org/issue25

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-23 Thread Vincent Michel
Vincent Michel added the comment: I agree with Yury's ideas about the implementation of this feature. However, it is a bit confusing to have `asyncio.get_event_loop` defined as: def get_event_loop(): policy = get_event_loop_policy() return policy.get_running_loop

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-04-13 Thread Vincent Alquier
Vincent Alquier added the comment: Another issue should be addressed by patch... When trying to guess the content-length, here is the code you find... try: thelen = str(len(body)) except TypeError as te: [...] The call to `len` will raise a `TypeError

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-04-14 Thread Vincent Alquier
Vincent Alquier added the comment: Martin: You're right, it's the same issue, and only related to python2's old style classes. Sorry for the useless noise. Demian: My problem is `len(obj)` raises an Using AttributeError in python2 (with obj being old style class instance).

[issue28262] Header folder folds incorrectly causing MissingHeaderBodySeparatorDefect

2016-09-23 Thread Vincent Vanlaer
New submission from Vincent Vanlaer: Example: X-Report-Abuse: =?us-ascii?q?=3Chttps=3A=2F=2Fwww=2Emailitapp=2Ecom=2Freport=5Fabuse=2Ephp=3Fmid=3Dxxx-xxx-?= =?us-ascii?q?=3D=3D-xxx-xx-xx=3E?= When this header is parsed and reencoded as bytes using policy.default, the

[issue12995] Different behaviours with between v3.1.2 and v3.2.2

2011-09-16 Thread Vincent Vande Vyvre
New submission from Vincent Vande Vyvre : Hi, Trying this code: -- # -*- coding: utf-8 -*- import os import sys import platform print('\nPython version: ', sys.version.split()[0]) print(platform.platform()) paths = ['/home/vincent/image.jpg&#

[issue45557] Issue 42914

2021-10-21 Thread Jean-Philippe VINCENT
New submission from Jean-Philippe VINCENT : Hello, I just tried the new attribute underscore_numbers with pprint, it doesn't work for me. I'm working on Windows. [cid:8779885d-01bf-4162-9427-a44de152f7ac] Best regards, Jean-Philippe -- files: image.png messages: 4

[issue45557] pprint -> underscore_numbers argument not working

2021-10-21 Thread Jean-Philippe VINCENT
Change by Jean-Philippe VINCENT : -- title: Issue 42914 -> pprint -> underscore_numbers argument not working ___ Python tracker <https://bugs.python.org/i

[issue41214] -O0: Segmentation fault in _PyArg_UnpackStack

2020-07-05 Thread Vincent LE GARREC
New submission from Vincent LE GARREC : In Gentoo, I compile my system with -O0 When I compile Apache Serf, python 3.7.8 crashes. When I compile python 3.7 with -O2, python don't crash when compiling Serf. It's the first time that -O0 causes program crash. I run test suite, I don&

[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-08 Thread Louis-Vincent Boudreault
Louis-Vincent Boudreault added the comment: Path.__new__ should not call _from_parts because it breaks the specialization by directly using object.__new__. This is why `_from_parts` has to be duplicated in each subclass's `__new__`. My suggestion (first draft) is to do the parsi

[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-13 Thread Louis-Vincent Boudreault
Louis-Vincent Boudreault added the comment: This is not true, because the classmethod use the library shortcuts the class mro order, to prevent infinite loop inthe __new__. However, it was using __init__ before hand, we would Not have this issue Le jeu. 13 août 2020 à 15:27, Jeffrey Kintscher

[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-13 Thread Louis-Vincent Boudreault
Louis-Vincent Boudreault added the comment: This is not true, because the classmethod used the library shortcuts the class mro order, this is to prevent infinite loop inthe __new__. However, If it was using __init__ before hand, we would Not have this issue Le jeu. 13 août 2020 à 15:31, Louis

[issue41214] -O0: Segmentation fault in _PyArg_UnpackStack

2020-10-25 Thread LE GARREC Vincent
LE GARREC Vincent added the comment: I still have the problem with python 3.7.9 but not with python 3.8.6. Since I migrated my system to python 3.8, it's not a problem anymore. I still have python 3.7 installed so if you want, I still can do some tests. -- nosy: +ban

<    1   2