Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
cython
Commits
685dfc4979f6
Commit
685dfc4979f6
authored
12 years ago
by
Stefan Behnel
Browse files
Options
Downloads
Patches
Plain Diff
remove references to 'minierror' module from Shadow.py
parent
6b1938f0a619
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cython/Shadow.py
+10
-3
10 additions, 3 deletions
Cython/Shadow.py
with
10 additions
and
3 deletions
Cython/Shadow.py
+
10
−
3
View file @
685dfc49
# cython.* namespace for pure mode.
__version__
=
"
0.18b1
"
# Shamelessly copied from Cython/minivect/minitypes.py
# BEGIN shameless copy from Cython/minivect/minitypes.py
class
_ArrayType
(
object
):
...
...
@@ -26,6 +27,11 @@
return
"
%s[%s]
"
%
(
self
.
dtype
,
"
,
"
.
join
(
axes
))
class
InvalidTypeSpecification
(
Exception
):
pass
def
index_type
(
base_type
,
item
):
"""
Support array type creation by slicing, e.g. double[:, :] specifies
...
...
@@ -36,7 +42,7 @@
def
verify_slice
(
s
):
if
s
.
start
or
s
.
stop
or
s
.
step
not
in
(
None
,
1
):
raise
minierror
.
InvalidTypeSpecification
(
raise
InvalidTypeSpecification
(
"
Only a step of 1 may be provided to indicate C or
"
"
Fortran contiguity
"
)
...
...
@@ -45,7 +51,7 @@
for
idx
,
s
in
enumerate
(
item
):
verify_slice
(
s
)
if
s
.
step
and
(
step_idx
or
idx
not
in
(
0
,
len
(
item
)
-
1
)):
raise
minierror
.
InvalidTypeSpecification
(
raise
InvalidTypeSpecification
(
"
Step may only be provided once, and only in the
"
"
first or last dimension.
"
)
...
...
@@ -61,6 +67,7 @@
# END shameless copy
compiled
=
False
_Unspecified
=
object
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment