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
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.
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 objec
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 <[E
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
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 fail
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.
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
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/
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
___
Pyt
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
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
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
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://g
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
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
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
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
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
Aaron Gallagher 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 pickle
Aaron Gallagher 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.
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
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
<http://bugs.python.org/issue29
Changes by Aaron Gallagher :
--
pull_requests: +193
___
Python tracker
<http://bugs.python.org/issue29403>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
<http://bugs.python.org/is
Changes by Aaron Gallagher <_...@habnab.it>:
--
nosy: -habnabit
___
Python tracker
<http://bugs.python.org/issue3119>
___
___
Python-bugs-list mailing list
Aaron Gallagher added the comment:
Definitely not interested in pickle at all anymore.
--
___
Python tracker
<http://bugs.python.org/issue3119>
___
___
Python-bug
27 matches
Mail list logo