Comments (4)
Therefore, split tuples into suitable and unsuitable, and use existing code generation for unsuitable.
Don't we do that already with the is_literal
and is_partly_literal
flags?
from cython.
Don't we do that already with the
is_literal
andis_partly_literal
flags?
Possibly? I think that is_partly_literal
is about the multiplication factor.
What I was worried about was if you'd managed to make a tuple that contained another literal initialized at the same time (like slice
for example), which would work now because things are processed in order, but not if we did tuples before slices. I'm not sure it's possible to get a slice literal into a tuple though, but I don't know that it isn't.
Either way - it's a detail of a rough outline for later
from cython.
Slices can hold any object whatsoever, obj[(1,2):3, 4]
works fine. Though Iβve never heard of that being used for anything, probably better to just bail to regular generated code in those cases. Itβd make more sense to do tuples after slices, since array[1:2, 3:4]
would be common in Numpy etc code.
from cython.
Yes, you can have tuples with slices and slices with tuples. Difficult to map this to a table then.
from cython.
Related Issues (20)
- [BUG] Multi-line f-string literals do not adhere to """\ syntax HOT 1
- [bug] issues with "cppclass overloadable methods" HOT 1
- [ENH] Improve Cython install speed from source HOT 4
- [ENH] Reproducible output
- [ENH] Implement __Pyx_PyObject_LengthHint properly on the limited API HOT 1
- [BUG] 'except?' started failing in 3.0.10 HOT 16
- [BUG] New string::replace in Cython 3.0.9 feature overrides the bytes.replace method HOT 5
- [ENH] Can Cython support match statement in Python? HOT 1
- [ENH] Restrict instance methods on extension types to the actual type HOT 2
- [ENH] Allow customization of cpdef enum to Py conversions
- [ENH] Compilation does not support importing cython module from another module HOT 4
- [ENH/BUG?] Enum as C array index value: Invalid index type 'Test' HOT 1
- [BUG] 3.0.10: test suite fails in `End-to-end coverage_cmd_src_pkg_layout` unit with `coverage` 7.4.4
- [BUG] Passing argument into `__cinit__` with no argument raises nothing? HOT 4
- [BUG] Posix `time_t` isn't always `long` HOT 8
- [BUG] C Macro not populating value! HOT 7
- Pickling Error for Pyspark UDF function while using decorator. HOT 4
- [BUG] rshift overflow
- [BUG] Can't debug
- [ENH] Fix test failures and crashes in the nogil python build. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cython.