[issue8538] Add FlagAction to argparse

2018-12-27 Thread Yaniv Aknin
Change by Yaniv Aknin : -- nosy: -Yaniv.Aknin ___ Python tracker <https://bugs.python.org/issue8538> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3445] Ignore missing attributes in functools.update_wrapper

2012-02-25 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: Shouldn't this be fixed in 2.7 as well? It's a bug, it's in the wild, and it's causing people to do ugly (and maybe not 100% reliable) things like https://code.djangoproject.com/browser/django/trunk/django/utils/decorators.py#L68

[issue4106] multiprocessing occasionally spits out exception during shutdown

2012-01-13 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: Ugh. Not 100% sure it's related, but I've been getting a similar traceback when running pip's test suite (python setup.py test) on OSX 10.6.8 with Python 2.7.2. Traceback (most recent call last): File /usr/local/Cellar/python/2.7.2

[issue8874] py3k documentation mentions deprecated opcode LOAD_LOCALS

2010-06-01 Thread Yaniv Aknin
New submission from Yaniv Aknin yaniv.ak...@gmail.com: The documentation of the dis module mentions LOAD_LOCALS, which used to exist in Python 2.x and I believe was removed from py3k (doesn't appear in recent Include/opcode.h). The exact offending section is: http://docs.python.org/py3k

[issue8749] Cruft in object.c: PyObject_GenericGetAttr

2010-05-18 Thread Yaniv Aknin
New submission from Yaniv Aknin yaniv.ak...@gmail.com: While reading the source I saw that recent py3k has this in Objects/object.c (reasonably recent trunk has it as well): #if 0 /* XXX this is not quite _PyType_Lookup anymore */ /* Inline _PyType_Lookup */ { ... removed

[issue8749] Cruft in object.c: PyObject_GenericGetAttr

2010-05-18 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: Oops, of course I meant r59944, off by one. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8749

[issue6610] Subprocess descriptor debacle

2010-05-14 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: I think if the test is conducted without closing stderr, it will only check that stdin/stdout are handled correctly (you could assume that if one handled stdin/stdout correctly, they did the same with stderr). However, since I've used

[issue7978] SocketServer doesn't handle syscall interruption

2010-05-12 Thread Yaniv Aknin
Changes by Yaniv Aknin yaniv.ak...@gmail.com: Removed file: http://bugs.python.org/file16841/socketserver_eintr_py3k.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7978

[issue7978] SocketServer doesn't handle syscall interruption

2010-05-12 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: While bda's usecase is indeed fixed is recent versions, I want to point out the issue still exists in a recent py3k checkout. I've updated my patch to apply cleanly against recent py3k (and made less structural changes

[issue8538] Add ConfigureAction to argparse

2010-05-12 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: I'm looking into making a patch from this for py3k, and have the following observations: 1. I agree with merwok, at the moment the monolithic ConfigureAction is a bit excessive for most uses (other than maybe emulating ./Configure...). I

[issue8538] Add ConfigureAction to argparse

2010-05-02 Thread Yaniv Aknin
Changes by Yaniv Aknin yaniv.ak...@gmail.com: -- nosy: +Yaniv.Aknin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8538 ___ ___ Python-bugs-list

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-09 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: pitrou, re. test code: I actually started with the test code, so that part is done. I opted to use a forked SocketServer rather than threads. I'm not an expert on the low-level details of a multi-threaded process receiving threads

[issue2824] zipfile to handle duplicate files in archive

2010-04-09 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: Attached is the addition of the 'low_level' parameter to ZipFile. Included are the parameter, a global switch controlling whether the parameter will raise an Exception or trigger a DeprecationWarning (the latter, for now), updated tests

[issue6457] subprocess.Popen.communicate can lose data from output/error streams when broken input pipe occures

2010-04-09 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: I've updated the sample code to run with Python 3 and tested on Ubuntu 9.10 with and without setting subprocess._has_poll = False. As expected, when using poll() the sample runs correctly. When not using poll() the sample breaks (sometimes

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-08 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: First, let me cast my vote in favour of leaving select() itself alone, it's excessive to fix this issue with changing select(). Second, while exarkun's comments are accurate, I understand where pitrou is coming from. EINTR

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-04-07 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: I've zero experience with programming bluetooth (to be honest, I only tackled this bug because I'm learning how to contribute to Python and it seemed ultra-easy), so I'm not an authoritative source on whether such a 'loopback' test

[issue6610] Subprocess descriptor debacle

2010-04-07 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: It seems to me that subprocess is protected against this flaw. Python 2.x has a pure-Python implementation of the child logic (which is susceptible to an unrelated issue). Python 3.x has a C implementation which falls back to pure-Python

[issue2824] zipfile to handle duplicate files in archive

2010-04-07 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: This affect 3.x as well. Regardless of the exact version this will come out in, I think the only proper solution is one with which we eventually, maybe in two versions' time, end up with a behaviour that raises an exception upon double

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-04-06 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: I wouldn't mind producing the patch, if Mathew is OK with this. -- nosy: +Yaniv.Aknin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7834