Questions tagged [built-in]

Built-in functions, modules and classes are standard parts of a programming language or framework.

Built-in functions, modules and classes are standard parts of a programming language or framework.

Generally, all parts of a programming language or framework that don't require the installation of additional components are considered built-in.

1177 questions
-3
votes
1 answer

__add__ method to disallow duplicate items

I have created a new class under UserList called UList that overrides the __add__ method - it does not allow duplicate items to be added to a list. But when I try to run it, I don't get the expected results: from collections import UserList class…
kflaw
  • 424
  • 1
  • 10
  • 26
-3
votes
4 answers

php upper and lowercase without built in function

Hey guys i want to convert a string from lowercase to uppercase and vice versa without using any built in functions strtoupper or strtolower in php, can anyone help me please. edit: I can use some other functions to do the job, like substr(), ord(),…
zniz
  • 95
  • 1
  • 8
-4
votes
1 answer

where can i find builtin gcc memcpy?

In my program i use memcpy. Gcc generate code, that use __builtin___memcpy_chk. I have downloaded gcc source code https://github.com/gcc-mirror/gcc and do grep -A 10 -R "__builtin___memcpy_chk" . but i can't find implementation…
-5
votes
1 answer

C++ __builtin_* functions source codes

I want to learn how can I find source codes of __builtin functions like __builtin_cbrt() in C++. If you know, Can you help me?
Halit
  • 11
  • 3
-6
votes
2 answers

Built in function to compare strings in C++?

I need some built-in function to compare strings. For C-style strings I have strcmp(); But I need some function to deal with the string class. string name1; string name2;
-7
votes
1 answer

What does this `key=func` part mean in `max(a,b,c,key=func)` in Python?

What does this key=func part mean in max(a,b,c,key=func) here https://docs.python.org/2/library/functions.html#min? I know how does this function work in Python. But usually I see it used just simply as z = max(a, b, c) But in Python docs I've found…
-9
votes
3 answers

import java.io.*; won't work, no how, no way?

normally, i drag/drop any html file into (any) browser (on my macOS Catalina) and it runs javascript within the tags locally perfectly. now, progressing to importing module classes (import java.io.*;) the code gets hung up on the import statement…
1 2 3
78
79