ime, to check the divsor, is not a big penalty.
--
Jeff Allen
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archive
rounded towards minus infinity", but I quite like decimal's. There seem
to be no regression tests for floor division of floats, and for modulus
only with finite arguments, perhaps intentionally.
--
Jeff Allen
___
Python-Dev mailing list
r descriptor is
always created from the function definition, then the slot is filled
from the available definitions by lookup. Defining __contains__ twice
would be impossible or an error. I think this has the semantics required
by Python, but we'll have to wait for proof.
-- Jeff Allen
_
seems to me that someone should swallow their
pride and let this thread drop once and for all, it's not bringing
anything useful or relevant.
Quite possibly. But I've offered a grown-up response in a separate post.
--
Jeff Allen
___
Pytho
On 28/05/2021 04:24, Ethan Furman wrote:
The flags RED, GREEN, and BLUE are all canonical, while PURPLE and
WHITE are aliases for certain flag combinations. But what if we have
something like:
class Color(Flag):
RED = 1 # 0001
BLUE = 4 # 0100
Yes, I got one from the same address today. Thanks for pointing out
these are individual peformances: it was annoying when I thought it was
spam to the list.
Although Hoi Lam Poon is a real (female) name, it may signify a
generated lampoon.
Jeff Allen
On 23/04/2021 16:38, Nathaniel Smith
On 30/04/2021 13:15, Steven D'Aprano wrote:
On Thu, Apr 29, 2021 at 09:52:14PM -0700, Larry Hastings wrote:
D'oh! I have a second draft already.
Your NEWS entry should be written in the /present tense,/ and should
start with a verb:
Without a subject of the sentence, that's not presen
n
that those tackling it here are using Python for data science.
Jeff Allen
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.o
there is some freedom, not interpretable as a boolean value. We are
warned that this should not be expected to work. Later docs (from v2.6)
refer explicitly to calling bool() as a definition of "interpretable".
bool() is there from v2.3.
Jeff Allen
__
a reasonable approach to take.
Sounds like you were doing roughly as Toshio recommends anyway (the
decent thing as I'd expect), but maybe explicit is better?
Jeff Allen
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an e
each descriptor (PyWrapperDescrObject) points to a
different C function (generated by the RICHCMP_WRAPPER macro). The
function summons the tp_richcompare slot function in the left object's
type, with arguments (left, right, op).
Simple (not).
Jeff Allen
___
Pyt
know or care about this, not having any
relevant rights over CPython, but I'm trying to adopt it in the projects
where I do.
Jeff Allen
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.or
ld have to change (unlike id()), may
not round-trip if __class__ were assigned there and back.
Jeff Allen
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mail
York -- I believe that's in the northern
part of the United States, otherwise known as "The North" or the side
that fought to end slavery.
E. B. White was educated at Cornell.
We should acknowledge that he famously showed an interest in web
development and invented a sort of
On 17/06/2020 19:28, Eric V. Smith wrote:
On 6/17/2020 12:07 PM, Jeff Allen wrote:
If (1) interpreters manage the life-cycle of objects, and (2) a race
condition arises when the life-cycle or state of an object is
accessed by the interpreter that did not create it, and (3) an object
will
point (function
call) where one may police object ownership, but that isn't why you need it.
Jeff Allen
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailma
On 06/05/2020 21:52, Eric Snow wrote:
On Wed, May 6, 2020 at 2:25 PM Jeff Allen wrote:
...
My reason for worrying about this is that, while the C-API has been there for some time,
it has not had heavy use in taxing cases AFAIK, and I think there is room for it to be
incorrect. I am thinking
nge I think is needed. It might not have a visible
effect on the PEP, but it's worth bearing in mind the risk of exposing a
thing you might shortly find you want to change.
Jeff Allen
___
Python-Dev mailing list -- python-dev@python.org
To unsub
elsewhere. (I'm not plugging ANTLR specifically as a solution.)
Jeff Allen
On 02/04/2020 19:10, Guido van Rossum wrote:
Since last fall's core sprint in London, Pablo Galindo Salgado,
Lysandros Nikolaou and myself have been working on a new parser for
CPython. We are now far enough alo
identity is
determined using the |id()| function" is a little misleading but it is
difficult to express the abstract concept of object identity.
Jeff Allen
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email
". Where
exactly is this wrapper applied, and how does it know when to dispatch
to __add__ or __radd__?
I *think* it is changed to contain slot_nb_add as defined by the macro.
I hope that is somewhere near accurate.
Jeff Allen
l__ method
(and how to avoid it)" to contain the advisory points being made?
In-lining advice here, on how to survive the infernal circles of
__del__, dilutes the scariness of the warning not to enter at all.
---
Jeff Allen
___
Python-De
On 19/08/2019 21:30, Terry Reedy wrote:
On 8/19/2019 3:19 PM, Jeff Allen wrote:
When one signs up to contribute code to the PSF, one is asked to
write on contributed software that it has been "Licensed to the PSF
under a Contributor Agreement" (see
https://www.python.org/psf/contr
one else's work
doesn't feel right. (The situation is clear for pristene code.) I have
wondered if it's an issue.
Jeff
Jeff Allen
On 19/08/2019 15:35, Guido van Rossum wrote:
The LICENSE file at the top level of the repo covers everything.
On Mon, Aug 19, 2019 at 7:33 AM mihae
with set demantics. Steven proposes (essentially)
list semantics, but isn't it surprising that equal dictionaries should
not have equal .values()?
Jeff Allen
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email t
Hiccups cured thanks to Mariatta and Carol
https://github.com/python/devguide/pull/484. (And my guess was wrong.)
Jeff Allen
On 14/05/2019 04:49, Brett Cannon wrote:
It's working for me, so it was probably just a hiccup.
On Sun, May 12, 2019 at 6:19 AM Jeff Allen <mailto:ja...@faro
Is it suspicious that in the detailed log we see:
'canonical_url': 'http://devguide.python.org/',
? I guess this comes from project admin configuration at RTD, additional
to your conf.py.
https://docs.readthedocs.io/en/stable/canonical.html
(Just guessing really.)
Cross-posting to jython-users for obvious reasons.
Jeff Allen
On 30/04/2019 10:26, Chris Withers wrote:
[resending to python-dev in case there are Jython users here...]
Hi All,
If you need Jython support in the mock backport, please shout now:
https://github.com/testing-cabal/mock/issues
mating this second idea.
There is no mechanism to reach the object itself from the result, since
it does not keep the object in existence, and worse, it may now be the
id of a different object. In defining id(), I think it is confusing to
imply that
elated to C-API have mnemonic value, though, in
translation. Maybe "static void PyFloat.pack4(double, ByteBuffer,
boolean)" would do the trick.
It makes sense for JyNI to supply it by the exact C API name, and all
other API that C extensions a
t, and a
different integer for any distinct object (distinct identity) with an
overlapping lifetime. We note that, in an implementation of Python where
objects are fixed in memory for life, a conformant id() may return the
object's address.
Jeff Allen
to do what CPython does. It's also
easier than keeping a record.
Rarely, we manage to exceed CPython (in consistency or coverage) by a
tiny amount.
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/list
On 30/04/2018 07:22, Greg Ewing wrote:
Jeff Allen wrote:
I speculate this all goes back to some pre-iteration version of
FORmula TRANslation, where to its inventors '=' was definition and
these really were "statements" in the normal sense of stating a truth.
Yeah, also
anyone learns algebra before programming.
I speculate this all goes back to some pre-iteration version of FORmula
TRANslation, where to its inventors '=' was definition and these really
were "statements" in the normal sense of stating a truth.
Jeff Allen
ine as x - x_base, and g, which ." etc.
That's good. It also makes it natural to expect only a simple name. One
can "define" a name, but assignment to a complex left-side expression is
not definition (binding).
Jeff Allen
___
Py
k users should be able
to rely on the semantics of call. Easier optimisation doesn't seem to me
a strong enough argument.
This leaves me at:
1: +1
2a, 2b: +0
3: -1
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
s, including arrays, implement the
methods of this class."
Either for me, but I feel I should draw attention to the spelling. (Java
is right.)
Ironically, the word derives from priesthood (hieratic), not from
inheritance (heir).
Jeff Allen
___
thedocs.io/en/latest/faq.html#i-want-to-use-the-blue-default-sphinx-theme
[8] https://github.com/python/devguide
Jeff Allen
On 03/12/2017 04:49, Wes Turner wrote:
Add pygments for ``.. code::`` directive PEP syntax highlighting #1206
https://github.com/python/pythondotorg/issues/1206
Syntax hi
ng Language, K&R 1978 (p197).
With these Python name spaces, you're really spoiling us, Mr BDFL.
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
your code.
Python-dev is about developing the language. Python-list is the place to
ask questions about using the language. However, good hunting!
Jeff Allen
On 14/12/2016 12:09, Sesha Narayanan Subbiah wrote:
Thanks Rob. I will try upgrade to 2.7.12. Any idea of this memory view
object that
unused space reaches some limit.
I think that should make it O(log N) on average to delete (or add) a
byte, at either end of a buffer of size N,. However, observations with
timeit() look constant up to the point I run out of heap.
Jeff Allen
___
Python
s a clue what a
user should do, but they would need some background, a helpful teacher,
or the Internet to sort it out.
Jeff Allen
On 15/11/2015 07:23, Stephen J. Turnbull wrote:
Steve Dower writes:
> Saying [UTF-16] is rarely used is rather exposing your own
> unawareness though
This feels like a jython-dev discussion. But anyway ...
On 17/09/2014 00:57, Stephen J. Turnbull wrote:
The CPython representation uses trailing surrogates only[1], so it's
never possible to interpret them as anything but non-characters -- as
soon as you encounter them you know that it's a lone
oine) if Jython supported PEP-383 byte smuggling, it
would have to do it the same way as CPython, as it is visible. It's not
impossible (I think), but is messy. Some are strongly against.
Jeff Allen
On 12/09/2014 16:37, Jim J. Jewett wrote:
On September 11, 2014, Jeff Allen wrote:
... &qu
On 12/09/2014 04:28, Stephen J. Turnbull wrote:
Jeff Allen writes:
> A welcome article. One correction should be made, I believe: the area of
> code point space used for the smuggling of bytes under PEP-383 is not a
> "Unicode Private Use Area", but a portion of the
A welcome article. One correction should be made, I believe: the area of
code point space used for the smuggling of bytes under PEP-383 is not a
"Unicode Private Use Area", but a portion of the trailing surrogate
range. This is a code violation, which I imagine is why
"surrogateescape" is an er
th making this O(1) universally. Like Steven, I understand
this to be a freedom afforded to implementers, rather than an issue of
conformity.
Jeff Allen
On 04/06/2014 02:17, Steven D'Aprano wrote:
There is a discussion over at MicroPython about the internal
representation of Unicode string
it best fits in the
documentation.
Jeff Allen
On 17/04/2014 20:49, Leandro Pereira de Lima e Silva wrote:
This looks like an issue to be addressed at PEP-8 since it looks like
a styling issue.
I haven't seen any other recommendations there on how to use a certain
data structure, though.
Cheer
well".
Clearly the Python repos represent complex work, but even accepting it
is all done well, are without much commentary. This is very good:
http://hgbook.red-bean.com/read/ , but there are hints it has not kept up.
This also: http://legacy.python.org/dev/peps/pep-0385/
Jeff Allen
Jason:
I get that too, now I try it. The place to report bugs is:
http://bugs.python.org/
However, please take a look at http://bugs.python.org/issue14512 before
you file a new one.
Jeff Allen
On 28/02/2014 17:05, Burgoon, Jason wrote:
Good day Python Dev Team --
One of our users has
27;m surprised to find others don't
also, as that's the (only?) pronunciation that makes the familiar
if-else and try-except constructs approximate English.
Isn't adding a new keyword (*then*) likely to be a big deal? There is
the odd example of its use as an iden
7;s
test facilities from this work. It was a while before I realised more
expressive methods were available.
Jeff
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
On 29/04/2013 15:42, Armin Rigo wrote:
On Sat, Apr 27, 2013 at 4:39 AM, Nikolaus Rath wrote:
It's indeed very informative, but it doesn't fully address the question
because of the _pyio module which certainly can't use any custom C code.
Does that mean that when I'm using x = _pyio.BufferedWrit
On 19/03/2013 08:03, Serhiy Storchaka wrote:
On 18.03.13 22:26, Jeff Allen wrote:
The puzzle is that it requires t.read() to succeed.
When I insert a check for bytes type in all the places it seems
necessary in my code, I pass the first two conditions, but since
t.read() also raises TypeError
read() intended to succeed? Why is this desired?
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
On 17/01/2013 13:02, Victor Stinner wrote:
2013/1/13 Jeff Allen:
I think io, meaning _io and _pyio really, would be amongst the impacted
modules, and should perhaps be in the examples. (I am currently working on
the Jython implementation of the _io module.) It seems to me that io.open,
and
ticed were minor, and I infer that they should wait
until principles are settled.
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/
lti-byte items, as
a way to export arrays of other types, makes no sense in Java where type
security is strict and a parallel but type-safe approach will be needed.
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mail
k there's a
lot to be said for cut and paste of actual titles on grounds of accuracy
and speed (and perhaps scriptability).
E.g. http://hg.python.org/jython/file/661a6baa10da/NEWS
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
ht
d. mbuf->master must not also keep a
reference, or it risks making a second call to DECREF(obj).
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/ma
7;s still to do, who's doing it, and where the gaps
are, which is probably what you're looking for. ... Frank?
Jeff Allen
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
- Summary:
The PEP, or sometimes just the documentation, definitely requires that
features not requested shall be NULL.
The API would benefit from:
a. stored flags that tell you the actual structural features.
b. requiring exporters to provide full information (e.g. strides =
{1}, fo
of course give you raw memory it thinks is one thing,
to treat as another, so this aspect is immature in my thinking. I got as
far as accommodating multi-byte items, but have no use for them as yet.
Thanks again for the chance to test my ideas.
Jeff Allen
___
PEP I can't simply give it the original
buffer since required fields (that the consumer will presumably not
access) are not NULL. In practice, I'd like to: what could possibly go
wrong?
Jeff Allen
___
Python-Dev mailing list
Python-Dev@
64 matches
Mail list logo