GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — BUG: concatenation of a numpy scalar with a namedtuple is broken on Python 3.15.0a7 · Issue #31088 · numpy/numpy Closed Closed Copy link DescriptionFound this while trying out astropy's test suite against Python 3.15 >>> import numpy as np >>> (1.,) + np.float64(2.) # just to demonstrate that this works array([3.]) >>> from typing import NamedTuple >>> class T(NamedTuple): ... x: float ... >>> T(x=1.) + np.float64(2.) Traceback (most recent call last): File "<stdin>", line 1, in <module> T(x=1.) + np.float64(2.) ~~~~~~~~^~~~~~~~~~~~~~~~ TypeError: can only concatenate tuple (not "numpy.float64") to tuple In Python 3.14 I get the same output from with a builtin tuple or a Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |