Change by Michael J. Sullivan :
--
keywords: +patch
pull_requests: +29517
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31367
___
Python tracker
<https://bugs.python.org/issu
New submission from Michael J. Sullivan :
class A:
def foo(self, cls): return 1
class B: pass
class B:
bar = classmethod(A().foo)
B.bar()
In Python 3.8 and prior, this worked. Since Python 3.9, it produces "TypeError:
A.foo() missing 1 required positional argument:
Michael J. added the comment:
This is a screenshot of the output I received when I ran index.py in a
terminal. As you can see, it imports the script OK, but then it tries to find
index as a package, and it fails and prints an error. (2/2)
--
Added file: https://bugs.python.org
Michael J. added the comment:
Attached I have a file containing the script for my program. It's obviously
incomplete, but it will work as a sample file for demonstrating the output and
behavior of the interpreter. (1/2)
--
Added file: https://bugs.python.org/file49254/ind
New submission from Michael J. :
Hello,
Earlier today, I was developing a program and I wanted to check its variables
after it finished running. Simply going into a terminal, entering my program's
directory, and executing "python3 index.py" would return control to the command
Michael J. Sullivan added the comment:
I believe that this is orthogonal to PEP 590.
PyObject_CallMethodObjArgs and friends take varargs which need to be copied
into an array one way or another. It is easy (and efficient) to prepend the
base while copying the function arguments into the
Change by Michael J. Sullivan :
--
nosy: +brett.cannon, serhiy.storchaka, vstinner, yselivanov
___
Python tracker
<https://bugs.python.org/issue37017>
___
___
Change by Michael J. Sullivan :
--
keywords: +patch
pull_requests: +13433
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue37017>
___
_
New submission from Michael J. Sullivan :
The different varieties of PyObject_CallMethod* routines all operate by doing a
PyObject_GetAttr to fetch an object to call. It seems likely to be worthwhile
to take advantage of the LOAD_METHOD optimization that avoids creating a bound
method object
Michael J. Sullivan added the comment:
I think this is done!
--
___
Python tracker
<https://bugs.python.org/issue36878>
___
___
Python-bugs-list mailin
Change by Michael J. Sullivan :
--
pull_requests: +13419
___
Python tracker
<https://bugs.python.org/issue36878>
___
___
Python-bugs-list mailing list
Unsub
New submission from Michael J:
Hello,
I'm using a Microsoft LifeCam with SimpleCV on the ipython interpreter(or
shell) on a Raspberry Pi 3 model B(with Raspbian, tell me if you need the exact
OS version as it's quite complicated).
I'm following the directions of a book: Raspbe
Michael J. Fromberger added the comment:
Thank you for setting me straight.
I see now that I misunderstood the scope of `CFUNCTYPE`, as I was using
it as a general wrapper when in fact it's only needed for callbacks.
Mistakenly, I inferred from reading section 16.15.2.4 of the c
Michael J. Fromberger added the comment:
I believe this error occurs because a pointer value is being truncated to
32 bits. The exception code is
KERN_INVALID_ADDRESS at 0x002fe020
If you add a diagnostic printout to the body of get_message(), you will
see that its return value is
Changes by Michael J. Fromberger :
Added file: http://bugs.python.org/file15155/crash-report.txt
___
Python tracker
<http://bugs.python.org/issue7160>
___
___
Python-bug
New submission from Michael J. Fromberger :
A segmentation fault is generated in _ctypes.so when calling a function that
returns a char pointer on a system
with 64-bit pointer types. The attached crash dump is from a Python 2.6.3
built from MacPorts ("port install
python26 +no_tk
Michael J. Fromberger added the comment:
Ned Deily writes:
> --enable-framework and --enable-shared are mutually exclusive options.
Aha, I did not realize that, though I suppose in retrospect it should have
been obvious. Removing "--enable-shared" from my build configuration do
Michael J. Fromberger added the comment:
Sorry, I managed to not copy the error message. It is:
i686-apple-darwin8-gcc-4.0.1: Python.framework/Versions/2.6/Python: No
such file or directory
make: *** [python.exe] Error 1
--
___
Python tracker
New submission from Michael J. Fromberger :
Checkout:
<http://svn.python.org/projects/python/tags/r262>
Configure:
env CFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" sh
./configure --enable-framework --enable-shared --enable-readline
Build:
make
The co
19 matches
Mail list logo