[issue3119] pickle.py is limited by python's call stack

2010-07-19 Thread Aaron Gallagher
Aaron Gallagher habna...@gmail.com added the comment: Here's a patch that fixes the unit tests. A new test was added that tried to test the C implementation of this though none exists. -- keywords: +patch Added file: http://bugs.python.org/file18073/pickle4.patch

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Aaron Gallagher
Aaron Gallagher [EMAIL PROTECTED] added the comment: I can't reproduce this on python 2.5.1, 2.5.2, or 2.6.0 on Mac OS 10.5.4. Both .read() and .readline() raise an EBADF IOError. 3.0.0 fails in the same way. -- nosy: +habnabit ___ Python tracker

[issue2573] Can't change the framework name on OS X builds

2008-04-07 Thread Aaron Gallagher
New submission from Aaron Gallagher [EMAIL PROTECTED]: There is currently no way in the configure script to specify an alternate name for Python.framework. If I want to completely separate versions of Python (e.g. for 3.0 alphas and/or Stackless), I have to manually edit configure.in

[issue2573] Can't change the framework name on OS X builds

2008-04-07 Thread Aaron Gallagher
Aaron Gallagher [EMAIL PROTECTED] added the comment: Here's a framework that implements the necessary change. I'm not very good at autoconf, so it might need to be touched up. -- keywords: +patch Added file: http://bugs.python.org/file9977/framework.patch

[issue2573] Can't change the framework name on OS X builds

2008-04-07 Thread Aaron Gallagher
Aaron Gallagher [EMAIL PROTECTED] added the comment: Okay, here's the same patch but now with Mac/Makefile.in patched. I changed all references to Python to the framework name, because I believe it won't work properly otherwise. Added file: http://bugs.python.org/file9979/framework2.patch

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2008-05-18 Thread Aaron Gallagher
New submission from Aaron Gallagher [EMAIL PROTECTED]: With the advent of collections.namedtuple, I thought that having a counterpart in the struct module would make having to deal with unpacked data much easier. Per suggestion, this extends the behavior of _struct.Struct rather than

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2008-05-18 Thread Aaron Gallagher
Aaron Gallagher [EMAIL PROTECTED] added the comment: Okay, here's a new version of my patch. Instead of replacing the default functionality of struct.Struct, this patch now adds the functionality to a separate class called NamedStruct, so as to not break backwards compatibility. The coding

[issue3119] pickle.py is limited by python's call stack

2008-06-15 Thread Aaron Gallagher
New submission from Aaron Gallagher [EMAIL PROTECTED]: Currently, pickle.py in the stdlib is limited by the python call stack. For deeply recursive data structures, the default recursion limit of 1000 is not enough. The patch attached modifies pickle.py to instead use a deque object as a call

[issue2480] eliminate recursion in pickling

2008-06-29 Thread Aaron Gallagher
Aaron Gallagher [EMAIL PROTECTED] added the comment: I've provided an alternate implementation of this that works with very minimal modification to pickle.py. See issue 3119 for the patch. -- nosy: +habnabit ___ Python tracker [EMAIL PROTECTED] http

[issue3119] pickle.py is limited by python's call stack

2008-07-02 Thread Aaron Gallagher
Aaron Gallagher [EMAIL PROTECTED] added the comment: Ah, I didn't know that a list would be as fast for appending and popping. I knew that lists were optimized for .append() and .pop(), but I didn't know that a list would be just as fast as a deque if it was just used as a stack. And I'll

[issue3119] pickle.py is limited by python's call stack

2008-08-19 Thread Aaron Gallagher
Aaron Gallagher [EMAIL PROTECTED] added the comment: Alright, sorry this took so long. Hopefully this can still be included in 3.0. Included is a patch that no longer uses collections.deque and also adds a test case to test/test_pickle.py. The test catches RuntimeError and fails the unittest

[issue16113] Add SHA-3 (Keccak) support

2013-06-26 Thread Aaron Gallagher
Aaron Gallagher added the comment: As long as the reference Keccak code is going to live in the python stdlib anyway, I would /greatly/ appreciate it if the Keccak sponge function was directly exposed instead of just the fixed parameters used for SHA-3. A Keccak sponge can have a much wider

[issue16113] Add SHA-3 (Keccak) support

2013-06-27 Thread Aaron Gallagher
Aaron Gallagher added the comment: https://pypi.python.org/pypi/cykeccak/ is what I've written to do this, for reference. Honestly I hope that the Keccak sponge is directly exposed in openssl (or any other SHA-3 implementation) because of its utility beyond SHA-3. If the source of some

[issue3119] pickle.py is limited by python's call stack

2009-04-08 Thread Aaron Gallagher
Aaron Gallagher habna...@gmail.com added the comment: Okay, here's a new version for the py3k trunk. I'm assuming that this is not going to make it into 2.x at all, because of the API changes. This patch only touches the python version of the code and adds a unit test for testing whether

[issue29403] mock's autospec's behavior on method-bound builtin functions is broken

2017-01-31 Thread Aaron Gallagher
New submission from Aaron Gallagher: Cython will, in the right circumstances, offer a MethodType instance where im_func is a builtin function. Any instance of MethodType is automatically assumed to be a python-defined function (more specifically, a function that has an inspectable signature

[issue29403] mock's autospec's behavior on method-bound builtin functions is broken

2017-01-31 Thread Aaron Gallagher
Aaron Gallagher added the comment: Patch adapted from https://github.com/testing-cabal/mock/pull/389 -- keywords: +patch Added file: http://bugs.python.org/file46468/mock.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue29403] mock's autospec's behavior on method-bound builtin functions is broken

2017-02-21 Thread Aaron Gallagher
Changes by Aaron Gallagher <habna...@google.com>: -- pull_requests: +193 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29403> ___

[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-08-21 Thread Aaron Gallagher
Aaron Gallagher added the comment: I'm not sure why one would pick and choose here—SHAKE is part of the NIST SHA-3 standard. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue3119] pickle.py is limited by python's call stack

2016-10-04 Thread Aaron Gallagher
Changes by Aaron Gallagher <_...@habnab.it>: -- nosy: -habnabit ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3119> ___ __

[issue3119] pickle.py is limited by python's call stack

2016-10-04 Thread Aaron Gallagher
Aaron Gallagher added the comment: Definitely not interested in pickle at all anymore. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-13 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: >Storing the marker attribute in __main__ [...] Can I request please not using __main__ for this? setuptools console_scripts are very common, which is a case where __main__ will be a generated (i.e. not user-controllable) fil

[issue14965] super() and property inheritance behavior

2021-05-17 Thread Aaron Gallagher
Change by Aaron Gallagher : -- nosy: +Aaron Gallagher nosy_count: 20.0 -> 21.0 pull_requests: +24811 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26194 ___ Python tracker <https://bugs.p

[issue14965] super() and property inheritance behavior

2021-05-17 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: @daniel.urban I'm attempting to move this patch along, but since the contributing process has changed in the years since your patch, you'll need to sign the CLA. Are you interested in picking this back up at all? I haven't been giv

[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2021-06-02 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: This is definitely not windows-specific. On macos: $ python3.9 Python 3.9.4 (default, Apr 5 2021, 01:47:16) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin Type "help", "copyright", "credits" or "lic

[issue14965] super() and property inheritance behavior

2021-05-28 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: @daniel.urban would you kindly resubmit your patch as a PR to the cpython repo? I've learned out-of-band from someone else that putting patches on bpo is considered obsolete. you can use the PR I've submitted (https://github.com/

[issue14965] super() and property inheritance behavior

2021-12-08 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: I will note, Raymond, that I’ve wanted this for years before discovering this bpo issue, and I found it because you linked it on Twitter. ;) On Wed, Dec 8, 2021 at 19:08 Raymond Hettinger wrote: > > Raymond Hettinger added

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-23 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: sigh.. adding myself to nosy here too in the hope that this gets any traction -- nosy: +habnabit ___ Python tracker <https://bugs.python.org/i