473,513 Members | 2,519 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

functools possibilities

1. functools.partialpre: partialpre( f, x, y )( z )-f( z, x, y )
2. functools.pare: pare( f, 1 )( x, y )-f( y )
3. functools.parepre: parepre( f, 1 )( x, y )-f( x )
4. functools.calling_default: calling_default( f, a, DefaultA, b )->
f( a, <default 2rd arg, even if not None>, b )
Feb 2 '08 #1
1 1191
ca********@gmail.com wrote:
1. functools.partialpre: partialpre( f, x, y )( z )-f( z, x, y )
2. functools.pare: pare( f, 1 )( x, y )-f( y )
3. functools.parepre: parepre( f, 1 )( x, y )-f( x )
4. functools.calling_default: calling_default( f, a, DefaultA, b )->
f( a, <default 2rd arg, even if not None>, b )
There are lots of possibilities for functools. If you actually want
anything added, you'll need to back up your suggestions with use cases.
Unless something is currently in widespread use in existing Python
code, it's unlikely to be included in the standard library.

STeVe
Feb 2 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1988
by: Torsten Mohr | last post by:
Hi, i'd like to write an extension module and use PyArg_ParseTuple in that to parse the parameters. I have several questions related to this that i did not find in the documentation: 1....
25
1670
by: noe | last post by:
Hello, I'm writing a file system filter driver and I've found in an example this sentence: if (VALID_FAST_IO_DISPATCH_HANDLER( fastIoDispatch, FastIoRead )) { return...
7
1900
by: Hans Worst | last post by:
You know them brute force password crackers... Just give the min/max passwordlength and the character scope in which they have to search. min length: 1 max length: 7...
22
4850
by: MLH | last post by:
If 3 things can be in one of 2 states, the number of possible combinations is equal to 2^3. But if I have 3 things, 2 of which can be in 2 states and the other in 3 states, what's the simplest...
8
1687
by: Paul Rubin | last post by:
I just had to write some programs that crunched a lot of large files, both text and binary. As I use iterators more I find myself wishing for some maybe-obvious enhancements: 1. File iterator...
5
1948
by: Deano | last post by:
Perhaps this has been asked before but there might be some up to date thinking about this. I really need a better search function for my asset register. I allow assets to be entered and tracked...
11
1923
by: bugmenot2 | last post by:
I have some regex lists, and I need to print all possibilities from them. Like that: print abac that would print: abaca abaco
9
1931
by: gardnern | last post by:
We have X number of data sets, of Y length each. For example... Small, Medium, Large and Red, Green, Blue, Yellow We need to generate a list of all possibilities Small Red
2
2786
by: piotr.findeisen | last post by:
Hello! I wanted to use a decorator to wrap partially applied function like this: from functools import * def never_throw(f): @wraps(f) def wrapper(*args, **kwargs): try: return f(*args,...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.