On 13/06/2024 02:20, Rob Cliffe wrote:
The os.path.commonprefix function basically returns the common initial
characters (if any) shared by a sequence of strings, e.g.
os.path.commonprefix(("Python is great!", "Python is not bad",
"Python helps")) # returns
The os.path.commonprefix function basically returns the common initial
characters (if any) shared by a sequence of strings, e.g.
os.path.commonprefix(("Python is great!", "Python is not bad",
"Python helps")) # returns "Python "
The following was w
The os.path.commonprefix function basically returns the common initial
characters (if any) shared by a sequence of strings, e.g.
os.path.commonprefix(("Python is great!", "Python is not bad",
"Python helps")) # returns "Python "
This is purely a str
On 12/23/23 09:51, Chris Angelico wrote:
On Sat, 23 Dec 2023 at 07:13, DL Neil via Python-ideas
wrote:
On 12/23/23 02:09, Eric V. Smith via Python-ideas wrote:
On 12/21/2023 4:38 PM, Steve Jorgensen wrote:
I am finding that it would be useful to be able to define a dataclass that is
an
not the best tool for the job!)
* web.refs of possible interest:
https://docs.python.org/3/library/abc.html [noting the >=v3.3 use of
properties (cf "field")
https://stackoverflow.com/questions/51079503/dataclasses-and-property-decorator
https://florimond.dev/en/posts/2018/10/reconciling-da
On 12/23/23 02:09, Eric V. Smith via Python-ideas wrote:
On 12/21/2023 4:38 PM, Steve Jorgensen wrote:
I am finding that it would be useful to be able to define a dataclass that is
an abstract base class and define some of its field as abstract.
As I am typing this, I realize that I could
st is basically dead.
And when you do post over there, please provide an example. It's not
clear what would happen in the generated code if abstract=True.
Eric
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an emai
o the user_name variable will only have the name 'person_name',
but not user_name, as the field objects need to know their names on the
model (and their names on the views/forms).
-- Original Message --
From: "Rene Nejsum"
To: python-ideas@python.org
Sent: Saturday,
nt line.
Eric
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-i
On 19/10/2023 20.43, Dom Grigonis wrote:
On 19 Oct 2023, at 10:27, dn via Python-ideas wrote:
On 19/10/2023 19.50, Dom Grigonis wrote:
Thank you,
Good information, thank you. Was not aware of __set_name__.
IIRC that was one of the updates/improvements. Thanks to whomsoever...!
The
, but it is
significantly easier to understand than what we had to do 'before'.
Another surprise, and I've assumed you're asking in the context of
[Custom] Descriptors, is in how many places/functions Python makes use
of a descriptor/descriptor protocol. Yet few of us seem
On 19/10/2023 18.29, Dom Grigonis wrote:
def __get__(self, instance, owner):
def __set__(self, instance, value):
Is there a reason why `__set__` does not have owner in it’s arguments
while `__get__` does?
Is this a Python Idea?
You may have only given us a couple of lines, when the scope
ent.
As Stephen says, Python often adds new features conservatively, then
extends them later if/when it seems desirable. This happened with the
'@' decorater: originally it came with all manner of restrictions, but
eventually they were removed. IMO this was a good thing because it made
*puts on contributor hat*
Well all right then! Filed https://github.com/python/cpython/issues/109849,
recapping this and asking some questions about the specifics. I'll try to
put together a PR.
On Mon, Sep 25, 2023 at 3:49 AM Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.j
on that supports.
Peace,
-Sam
_______
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/p
On Sep 23, 2023, at 5:37 PM, Dom Grigonis wrote:It seems that my guess was correct. There was a commit, when only the first part was working:https://github.com/python/cpython/pull/13123/commits/67977672360659f203664d23cfc52b5e07e4381aSince I wrote that commit: no one is saying it’s impossible
nt("Your variable name is "+ variable_name)
it does "work", but it doesn't make much sense with Python's semantics.
You could have two identifiers bound to the same object; which one you
got hold of would be essentially random.
Puzzled.
Rob Cliffe__
710
variable_names = [k for k, v in locals().items() if v is 710]
Depending on the Python implementation, variable_names may be ['var1',
'var2'] or it may be empty (depending on whether 710 is interned). It
could also in theory contain one of 'var1', 'var2
large memory footprint that is only
needed temporarily.
Best wishes
Rob Cliffe___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python
large memory footprint that is only
needed temporarily.
Best wishes
Rob Cliffe
PS Ooh, not quite true. I have used it to delete a variable that should
no longer be needed to detect accidental illegitimate use of said variable.
RC___
Python-ideas
ch in the right
direction.
Will continue discussing in this context.
> Matthias Görgens hat am 31.08.2023 11:29 CEST
> geschrieben:
>
>
> Seems nice. Just write a library and upload it to one of the usual places?
>
___________
Py
The standard pattern to create a sentinel in Python is
>>> Unset = object()
While this is often good enough, it has some shortcomings:
- repr(Unset) is unhelpful:
- copy/deepcopy create a copy of the sentinel object, which can lead to
surprising results such as:
>>>
})
return cls()
> Tim Hoffmann hat am 31.08.2023 10:44 CEST
> geschrieben:
>
>
> The standard pattern to create a sentinel in Python is
>
> >>> Unset = object()
>
> While this is often good enough, it has some shortcomings:
>
> - repr(Uns
On 04/08/2023 14:02, Niktar Lirik via Python-ideas wrote:
Hi Daniil.
Yes, you can do almost same:
tt = 5
while tt := tt - 1:
print(tt)
"almost" is right. The OP's version, as far as I can tell, wants to do
post-decrement (test tt, then decrement it)
r
3-question poll.
https://q5yitzu62.supersurvey.com
Would be interesting to see if my preference is an outlier or not really.
Kind regards,
D. Grigonis
___
Python-ideas mailing list --python-ideas@python.org
To unsubscribe send an email topy
Hi Daniil.
Yes, you can do almost same:
tt = 5
while tt := tt - 1:
print(tt)
04.08.2023 9:18, daniil.arashkev...@gmail.com пишет:
Currently in Python we have construction like this:
tt = 5
while t:
# do something
tt -= 1
It would be great if in Python we have
how a new feature would improve realistic code patterns helps to defend
to proposal.
Ronald
—
Twitter / micro.blog: @ronaldoussoren
Mastodon: @ron...@blog.ronaldoussoren.net.
Blog: https://blog.ronaldoussoren.net/
_______
Python-ideas mailing list -- pyt
On Sun, Jul 9, 2023, 23:35 Christopher Barker wrote:
> On Sun, Jul 9, 2023 at 8:37 AM James Addison via Python-ideas <
> python-ideas@python.org> wrote:
>
>> ISTM the primary use cases advanced here have been for "naive" users.
>>>> Likely they won'
ll then no parser is clever
enough to diagnose all possible side effects of calling bar() twice, or
even detect that bar can be cached, so it will always be called twice.
In Python then a better way might be
result = temp := bar() if temp else default
This way only bar() and default are evaluated a
On Thu, Jul 20, 2023, 01:19 Rob Cliffe via Python-ideas <
python-ideas@python.org> wrote:
>
>
> On 15/07/2023 21:08, Dom Grigonis wrote:
>
> Just to add. I haven’t thought about evaluation. Thus, to prevent
> evaluation of unnecessary code, introduction of C-style expres
solutions to
several proposals.
Well, default is only evaluated if needed; bar is always evaluated.
What is wrong with the Python equivalent
result = default if bar is None else bar
or if you prefer
result = bar if bar is not None else default
Perhaps you didn't know about this construction?
It
On Sun, Jul 9, 2023, 16:25 Paul Moore wrote:
>
>
> On Sun, 9 Jul 2023 at 15:56, Stephen J. Turnbull <
> turnbull.stephen...@u.tsukuba.ac.jp> wrote:
>
>> James Addison via Python-ideas writes:
>>
>> > The implementation of such a system could either be c
I didn't really address your point there; indirectly mine was to reaffirm a
sense that not all participants may want to read the opinions of others
while learning technologies, and that's why I am skeptical of the
suggestions to include subjective user ratings of any kind within Python
On Sun, Jul 9, 2023, 15:52 Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.jp> wrote:
> James Addison via Python-ideas writes:
>
> > The implementation of such a system could either be centralized or
> > distributed; the trust signals that human users infer from
On Sun, Jul 9, 2023, 09:13 Chris Angelico wrote:
> On Sun, 9 Jul 2023 at 18:06, James Addison via Python-ideas
> wrote:
> >
> > On Sun, 9 Jul 2023 at 02:11, Cameron Simpson wrote:
> > > I have always thought that any community scoring system should allow
> > &g
gnore their (apparent) gaming of the
> ratings but not good for a swarm of robots.
Hi Cameron,
That sounds to me like the basis of a distributed trust network, and
could be useful.
Some thoughts from experience working with Python (and other
ecosystem) packages: after getting to know the usern
hird party module on a UEFI
>> interface.
>>
>> On Thu, Jul 6, 2023 at 9:11 AM James Addison via Python-ideas <
>> python-ideas@python.org> wrote:
>>
>>> On Wed, Jul 5, 2023, 19:06 Chris Angelico wrote:
>>>
>>>> On Thu, 6 Jul 2023
ty use cases.
>
> I don’t want to load a hash table to load a third party module on a UEFI
> interface.
>
> On Thu, Jul 6, 2023 at 9:11 AM James Addison via Python-ideas <
> python-ideas@python.org> wrote:
>
>> On Wed, Jul 5, 2023, 19:06 Chris Angelico wrote:
>>
On Wed, Jul 5, 2023, 19:06 Chris Angelico wrote:
> On Thu, 6 Jul 2023 at 03:57, James Addison via Python-ideas
> wrote:
> > I also agree with a later reply about avoiding the murkier side of
> blockchains / etc. That said, it seems to me (again, sample size one
> anecdata) th
topic, and I don't *think* I ever wrote "someone
> should", and I certainly didn't write "PyPa should".
>
> But whatever I or anyone else wrote, my intention was to discuss what
> might be done to address what I think is a real problem/limitation in the
>
But without knowing the use case, it's hard to say.
Eric
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
http
ld attribute.
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python
I'd love to stay and improve the points you mentioned, but to be honest I
started regretting this thread when the first reply was a counter-example that
didn't work. And then Chris' messages started rolling in. If anybody wants to
take the idea forward, be my guest.
___
Sorry, I'm new to the list and was not aware the burden of proof was so high.
Can you point me to one or two successful posts in Python-ideas where I can
learn how to show there's a real need for a feature?
On Tue, Jun 13, 2023, at 11:25 PM, Chris Angelico wrote:
> On Wed, 14 Jun
> In close to 10 years of experience with python I have never encountered
> anything like this.
Here's a small selection of the StackOverflow questions from people who
encountered this exact issue:
https://stackoverflow.com/questions/25336726/why-cant-i-iterate-twice-over-the-same-i
would already be helpful, like
Go's race condition detector.
--
BoppreH___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
http
via Python-ideas wrote:
> > Also the OP's request was for generators, not for any iterator.
>
> IMO it would be a bad idea to make generators behave differently
> from other iterators in this regard. And it's far too late to
> redefine the iterator protocol in general, becaus
ou do, seems like a good
solution. It means *you* control what meaning it has in the contexts
where it appears.
Best wishes
Rob Cliffe
On 07/06/2023 17:43, Dom Grigonis wrote:
This has been bugging me for a long time. It seems that python doesn’t
have a convention for “Undefined” type.
When I st
On 12/06/2023 21:11, Barry wrote:
On 12 Jun 2023, at 16:55, BoppreH via Python-ideas
wrote:
Then the empty list creates hard-to-track bugs. I'm familiar with the iterator
protocol and why the behavior above happens, but couldn't it be prevented?
I don’t think so. It is not al
empty list.
BoppreH
On Mon, Jun 12, 2023, at 10:11 PM, Barry wrote:
>
>
> > On 12 Jun 2023, at 16:55, BoppreH via Python-ideas
> > wrote:
> >
> > Then the empty list creates hard-to-track bugs. I'm familiar with the
> > iterator protocol and why the
This is my first post to this list, apologies in advance if this is the wrong
place or it's a known topic that my search failed to find.
As a Python user since 2.6, I make stupid mistakes with exhausted generators
more often than I'd like to admit:
numbers = (i for i in range(5))
as
Sorry, -1.
Is this really worth the hassle when you can write (more explicitly)
def my_fun():
raise NotImplementedError # todo
Python has grown steadily more complicated in its lifetime. Usually for
good reasons. But each additional feature adds to the learning curve
and the maintenance
parameter `color`
Is there any reason you can't write
pfr =r"\mathjax{{color}}{{text}}".replace("{color}", "blue")
result =r"\mathjax{{color}}{{text}}".replace("{text}", "Spanish") Best wishes
Rob Cliffe
Dear All
Python is a "glue" language, its dynamic nature has programming advantage and
performance disadvantage.
The best way to use Python is write Python code for high-level stuff and use
native programming language like C, Rust, Zig, V for low level stuff.
Currently, there is li
should
make it much easier to use "partial" in the future.
Thanks for your consideration.
_______
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3
Hi Richard,
On Tue, 4 Apr 2023 at 12:49, Richard Hajek wrote:
>
> I encountered that Enum having a len hid a mistake on my part. If len(Enum)
> raised, my mistake would be immediately apparent, however at the end of the
> day, my mistake was easily found.
Can any Python linting to
t; object.__mro__
(,)
Best wishes
Rob Cliffe_______
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived
uivalent solution is easier to understand and
to write, and will lead to way less confusion about what join()
actually does.
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail
Though this has been discussed before, the last detailed discussion appears to
have been roughly 9 years ago.
YAML is a technical standard widely used in various projects and at least two
major ones (Ansible and containers).
Though PyYAML has become ubiquitous as the primary Python solution to
or s in middle),
last.lstrip()))
What is harder is to be sure that this would be the expected behaviour
when using a `&` operator on strings.
Why `' a' & 'b'` would produce `'a b'` and `' ' & 'b'` produce `'
b'` for exam
it is trickier still.
As it is so easy to get these things wrong, perhaps having it built in
is not such a terrible idea?😁
Best wishes
Rob Cliffe
In any case I recommend reaching out for a library like Rich
(https://github.com/Textualize/rich) if you care about formatting the output
On 09/03/2023 05:25, Bruce Leban wrote:
On Wed, Mar 8, 2023 at 4:34 PM Rob Cliffe via Python-ideas
wrote:
It seems to me that it would be useful to be able to make the
str.join()
function put separators, not only between the items of its
operand, but
also optionally at
;ascii') + b' ' + message]
lines = [b"HTTP/1.0" & str(code).encode('ascii') & message]
There are many examples (too many to list) where '&' could be used but
would not add a great deal of value and its use or non-use would be
l
27;\n' +
b''.join(self.lineBuffer))
Lib\site-packages\twisted\conch\client\knownhosts.py:547-549:
hostsFileObj.write(
b"\n".join([entry.toString() for entry in
self._added]) +
b"\n")
Lib\site-packag
You make a very powerful point, Bruce. Much more so IMO than anyone
else has so far.
Unless anyone else can find a convincing rebuttal, I withdraw my proposal.
Best wishes
Rob Cliffe
On 07/03/2023 21:49, Bruce Leban wrote:
On Sun, Mar 5, 2023 at 7:39 PM Rob Cliffe via Python-ideas
wrote
it, as Mr Berlier
helpfully informs us, less efficient 😁).
But I can imagine cases where the leftmost string starts with
indentation to start a paragraph (or to correctly indent Python code),
which you want to preserve.
Or perhaps even to make it start in the correct column of a table, ha-ha.
As
typing. Just sayin'.
Best wishes
Rob Cliffe
I admit that I use M-SPC (aka just-one-space) lot in Emacsen, but I
can't recall wanting it in a program in any language.
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send
tructing
human-readable output (e.g. log output, debug/error messages,
on-screen labels).
Cognitive burden:
This would of course be one more thing to learn.
But I suggest that it is fairly intuitive that
s1 + s2
s1 & s2
both suggest that two strings are being c
gards,
James
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python
Makes sense, will do so.
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org
I really appreciate the pointers, thank you. I will look into them.
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org
Thank you for your insight.
>I hope you are at least aware that over the years various multi-year attempts
>to create Python sandboxes ultimately failed to the point of being altogether
>abandoned.
Yes I am, I have looked at pysandbox and RestrictedPython and I believe my
approac
Have you looked at the diff? It's not "1000+" commits as you claim. It's 17
commits with most being README changes. The base is not the master branch but
the 3.11.0 release.
https://github.com/python/cpython/compare/3.11...R9295:cpython:policy
I do not see why you canno
__. code is not necessary but just pointers.
Thanks and regards,
Aarnav
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Mess
rting them.
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/p
With Python being a language heavily utilized in server and end-user
applications, I would take a different approach for both. I have to admit I
haven't thought much about the "normal user" in this case and focused primarily
on developers. Perhaps developers shipping an appli
Could you elaborate on how Python code can easily bypass that sort of
restriction?
>From my understanding, you can only do so with importlib by reading the raw
>source and evaluating it. In that case, I can just restrict importlib? Same
>with the open function which is from the
shell. A
command line argument parser library should not use network, ffi nor
filesystem. Deno, a runtime for Typescript contains an interesting
implementation of a permissions model for APIs.
I strongly think Python could benefit from such functionality and hacked
together a quick experiment
port A_UNIX_MODULE on ImportError
>>> try value = int(x[2]) but value = 0 on IndexError, ValueError
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/ma
tutorial on the distinction between bytes and strings
> and why it is important, when I saw the root cause. People coming from
> C, Perl, Python 2 and similar languages tend to misinterpret "\x90" for
> b"\x90" often. My idea is that Python could deprecate string literals
>
cisions, but it seems if this really is only a
couple of lines, and all the test cases pass this (or something very
similar) should be a considered for 3.12.
Thank you Noah,
-- Original Message --
From: "Noah Kim"
To: python-ideas@python.org
Sent: Saturday, 11 Feb, 23 At 00:
exactly-once while
the input is scanned (also iterated) exactly-once
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
tand
it, limited to at-most-one wildcard pattern per match (by sensible
design).
> I would prefer "one bite per call" partition
> to a partition at multiple points.
That does seem clearer - and clearer is, generally, probably better.
I suppose an analysis (that I don'
(rationale: that would allow
either proposal to advance without delaying the other -- bearing in
mind a hopefully-unlikely chance of merge conflicts if they reach
release-readiness implementation status in parallel)
_______
Python-ideas mailing list
("?", "#")'? would it return a tuple of length five?)
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archi
.partition('@', ':')
Beneficially for the caller, the number of tuple elements can be determined
based on the number of positional arguments. For n arguments, a tuple of length
2n + 1 will be returned.
Thank you for any and all feedback.
James
[1] - https://docs.python.org/3/li
ntax.
I do think that being able to reference other arguments is very useful in it's
own right and would go a long way in helping to solve the None check problem
brought up in PEP 505 even more cleanly.
_______
Python-ideas mailing list -- pyth
at: If you were subclassing str, you would probably want __str__ and
__repr__ (if you were not overriding them) to return plain strings.
Best wishes
Rob Cliffe
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-l
t;) and
then proceeds to cast the pointer and directly inspect its
members.
As such, I don't think UserString can ever truly be a str,
I had figured subclasses of str wouldn’t be full players in the C
code — but join() us pretty fundamental:-(
rn mystr(str(self).upper())
s = mystr("hello")
print(s.method()) # prints 1234
print(s.upper()) # prints HELLO
print(s.upper().method()) # prints 1234
Best wishes
Rob Cliffe_______
Python-ideas mailing list -- python-ideas@python.or
On 17/12/2022 16:07, e...@emilstenstrom.se wrote:
Python's currently supported string types are just single letter, so the
suggestion is to require tagged strings to be at least two letters.
Er, no:
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32
bit (Intel
everyone!
>
> I'm the maintainer of a small django library called django-components. I've
> run into a problem that I have a language-level solution (tagged strings) to,
> that I think would benefit the wider python community.
>
> *Problem*
> A component in my libra
> On Dec 17, 2022, at 10:08 AM, e...@emilstenstrom.se wrote:
>
> Bruce Leban wrote:
>>> Try googling "python-ideas string prefixes". Doing mimimal diligence is a
>>> reasonable expectation before writing up an idea.
>
> Thanks for the query "stri
mentation.
Ronald
—
Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/m
On 04/12/2022 17:08, Chris Angelico wrote:
On Mon, 5 Dec 2022 at 04:07, Rob Cliffe via Python-ideas
wrote:
On 30/11/2022 20:27, Anony Mous wrote:
Danceswithmice wrote:
The idea is that YOU write "local:", and the interpreter, without you
ever seeing it, promotes that int
exited. Again, this would be unexpected.
Best wishes
Rob Cliffe
_______
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message
the
effort.
That would be the beauty of 638: if it's important to one piece of code,
it could be just enabled there. Of course the implementing macro would
need to be either part of your application or become a dependency.
But I'm under no delusions that this PEP will ever get accept
Refer to PEP 3137 and PEP 358.
Bytes objects are for conveying binary data (or encoded strings). Such binary
data is customary specified in hex-dump or base64 format in source files.
It would be nice to introduce a way in python to do that 'natively' (at lexical
analysis time) using
Unpickler)
as sh:
squared = lambda x: x ** 2
sh['test_key'] = squared
I could easily solve this problem I had while using the Shelve module. I
believe that shelve module will be a more useful module by adding support for
custom unpickler and pickler.
Kindest regards,
Furkan Onder_
e". I'd rather look into
> ways of solving that problem instead - ways of taking a function
> signature, making specific changes to it (usually adding and/or
> removing args, but maybe other changes), and then making that your
> declared signature. At the moment, it's only po
1 - 100 of 1693 matches
Mail list logo