You cannot post messages because only members can post, and you are not currently a member.
Description:
a mirror of the python-ideas@python.org mailing list for the general public
|
|
|
Expose Linux-specific APIs in resource module
|
| |
...currently not exposed by resource module:
RLIMIT_MSGQUEUE
RLIMIT_NICE
RLIMIT_RTPRIO
RLIMIT_RTTIME
RLIMIT_SIGPENDING
Also, we have prlimit(), which is useful to get/set resources in a
per-process fashion based on process PID.
If desirable I can submit a patch for this.
--- Giampaolo... more »
|
|
Adding list.pluck()
|
| |
Hello All,
pluck() is a beautiful function which is in underscore.js library.
Described as "A convenient version of what is perhaps the most common
use-case for map: extracting a list of property values."
[link]
What about it implementing for python lists? And maybe for other iterables?... more »
|
|
setprofile and settrace inconsistency
|
| |
Hi,
When setting a trace function with settrace, the trace function when called
with a new scope can return another trace function or None, indicating the
inner scope should not be traced.
I used settrace for some time but calling the trace function for every line
of code is a performance killer.... more »
|
|
FormatRepr in reprlib for declaring simple repr functions easily
|
| |
Hi,
i consider my utility class FormatRepr finished,
its currently availiable in
( [link] )
it supplies a descriptor that allows to simply declare __repr__ methods based on object attributes.
i think it greatly enhances readability for those things,
as its DRY and focuses on the parts *i* consider important... more »
|
|
PEP for Python folder structure
|
| |
Hi,
I would like to write a PEP about folder structure in python projects.
You will think that there is no need for that, because everything is
documented (package, module, setuptools). But it should contain
something like [0].
If you aren't into those concepts, never have pushed some package to... more »
|
|
stdlib crowdsourcing
|
| |
The problem with stdlib - it is all damn subjective. There is no
process to add functions and modules if you're not well-behaved and
skilled in public debates and don't have really a lot of time to be a
champion of your module/function. In other words - it is hard (if not
impossible for 80% of Python Earth population). So, many people and... more »
|
|
Reimplementing collections.deque as a dynamic array
|
| |
I've occasionally had a need for a container with constant-time append
to both ends without sacrificing constant-time indexing in the middle.
collections.deque will in these cases narrowly miss the target due to
linear indexing (with the current use case being for two deques
storing the lines of text surrounding the cursor in a text editor... more »
|
|
from foo import bar.baz
|
| |
Has it irritated anyone else that this syntax is invalid? I've wanted
it a couple of times, to be equivalent to:
import foo.bar.baz
from foo import bar
del foo # but only if we didn't import foo already before"
The idea being that one wants access to foo.bar.baz under the name
bar.baz , for readability purposes or what have you.... more »
|
|
pmap, preduce, pmapreduce?
|
| |
Another crazy idea that may not be possible, based on my finally
getting around to watching Guy Steele's talks about what he's up to
these days ([link]).
Given a function that takes a list (or a container class which len
doesn't consume) and a function, and then applies that function to the... more »
|
|
Minimal built-ins (+ tiny doc suggestion)
|
| |
Hi,
Built-ins:
In an effort to keep the core language as small as possible (to keep it
"brain sized":-) would it be reasonable to deprecate filter() and map()
and to move them to the standard library as happened with reduce()?
After all, don't people mostly use list comprehensions and generator... more »
|
|
|