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
-2
votes
1 answer

python library/function which splits an integer to a set of integers(whole numbers) based on a discrete distribution

I am looking for a python library/function which splits an integer to a set of integers(whole numbers) based on a discrete distribution eg: 10 with distribution [0.2, 0.3 and 0.5] should result in [2, 3, 5] 14 with same distribution should…
Suba Selvandran
  • 304
  • 2
  • 16
-2
votes
1 answer

Built-in variable to get current function

I have a lot of functions like the following, which recursively call themselves to get one or many returns depending on the type of the argument: def get_data_sensor(self, sensorname): if isinstance(sensorname, list): return…
Vincent Bénet
  • 1,212
  • 6
  • 20
-2
votes
1 answer

Can I disable/delete class in PyQt5 (i.e. QEvent.KeyPress)?

I am working on a PyQt5 based app. My GUI shows 21 buttons: letters from A to Z, I use them as input for the main algorithm. I would like to be able to input the letters from the keyboard too. So far following Get printable name of any QKeyEvent key…
pippo1980
  • 2,181
  • 3
  • 14
  • 30
-2
votes
1 answer

When we call a function from a module, there is only comments inside the function, so how exactly the function realize its functionalitly?

Where is the real place store the code for the realization of the functionality?
Ming
  • 1
-2
votes
4 answers

What is the easiest and/or "approved" way to replace a built-in PHP function?

Possible Duplicate: Redefine Built in PHP Functions Howdy! As my servers do not have a locally available "sendmail" command, and I have written an api-compatible replacement mail() function, how do I actually go about replacing PHP's built-in…
amcgregor
  • 1,228
  • 12
  • 29
-2
votes
1 answer

Bash with few commands, whitelisting few built-in commands

Trying to open a bash shell with limited command capability. Tried command line options like -r restriction but doesn't give intended result. Also tried shopt & unset commands. bash --noprofile --noediting --verbose --version --init-file…
Kunal G
  • 1
  • 3
-2
votes
1 answer

Does python all() function iterate over all elements?

I'm wondering if the all() Python function iterates over all elements of the iterable passed by param.
Dos
  • 2,250
  • 1
  • 29
  • 39
-2
votes
1 answer

How to get all the parameters(arguments) and their respective values including the optional ones, if any, of a built-in function in PHP?

I'm using PHP 7.2.10 I am using a built-in PHP function htmlspecialchars() Following is my code : Test", ENT_QUOTES); echo $new; ?> I want to pass all the parameters(arguments) of the function…
PHPLover
  • 1
  • 51
  • 158
  • 311
-2
votes
1 answer

Implementation for read_term_from_atom/3 in prolog

I want to know what the implementation code would look like for this built in predicate read_term_from_atom/3 so that I can recreate the predicate myself.
Sam
  • 1,765
  • 11
  • 82
  • 176
-2
votes
2 answers

Practical Application of divmod() function in python, or how can we use divmod() other than just calculating / and %?

I just want to know how can we use divmod() function for some practical application other than just calculating / and %. I want to know if yes, then how can we use divmod function to prove if a number is prime or not. This would be a perfect…
-2
votes
2 answers

Why in some Python built-in functions we using variables like string

For example class c: var = 15 getattr(c, 'var') or i = 0 globals()['i'] = 25 why here our variable writing like string type. I saw this in some built-in functions and in Django and i think this make code much difficulty for understanding…
Hman
  • 11
  • 6
-2
votes
2 answers

Python: Is There a builtin that works similar but opposite to .index()?

Just a forewarning: I just recently started programming and Python is my first language and only language so far. Is there a builtin that works in the opposite way of .index()? I'm looking for this because I made a bool function where I have a list…
-2
votes
2 answers

C++11 equivalent to Python's all() function

Is there an equivalent function to Python's all() built-in function? In other words: Does a C++11 function exist that returns true when all of the elements of an iterable meet a certain condition and false otherwise?
SCGH
  • 887
  • 8
  • 13
-2
votes
1 answer

Is there a built-in in Python 3 that checks whether a character is a "basic" algebraic symbol?

I know the string methods str.isdigit, str.isdecimal and str.isnumeric. I'm looking for a built-in method that checks if a character is algebraic, meaning that it can be found in a declaration of a decimal number. The above mentioned methods return…
uzumaki
  • 1,743
  • 17
  • 32
-2
votes
1 answer

Where does Laravel 5.1 store acl permissions?

I'm trying to follow the documentation on authorization, but am having some problems grasping how it will work in the end. Where does it store the permissions? And does it work with roles? If it does work with roles, how do you apply a role to a…
davejal
  • 6,009
  • 10
  • 39
  • 82