Skip to content

[mypyc] Implement builtins.len primitive for list #9271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove size_t_to_short_int
  • Loading branch information
TH3CHARLie committed Aug 7, 2020
commit 19a8bba39507a3e4c2df1c82c24954f0ae0e752d
8 changes: 1 addition & 7 deletions mypyc/primitives/int_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from mypyc.ir.ops import ERR_NEVER, ERR_MAGIC, BinaryIntOp
from mypyc.ir.rtypes import (
int_rprimitive, bool_rprimitive, float_rprimitive, object_rprimitive, short_int_rprimitive,
str_rprimitive, RType, c_pyssize_t_rprimitive
str_rprimitive, RType
)
from mypyc.primitives.registry import (
name_ref_op, binary_op, custom_op, simple_emit, name_emit,
Expand Down Expand Up @@ -70,12 +70,6 @@
error_kind=ERR_MAGIC,
priority=3)

size_t_to_short_int = c_custom_op(
arg_types=[c_pyssize_t_rprimitive],
return_type=short_int_rprimitive,
c_function_name='CPyTagged_ShortFromSsize_t',
error_kind=ERR_NEVER)


def int_binary_op(name: str, c_function_name: str,
return_type: RType = int_rprimitive,
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy