you take the perspective that the address is just a 32-bit
unsigned integer, then it makes perfect sense. I would argue it's likely
to be a source of bugs, but I can't say either way because I never
adopted using this library due to issues that are cataloged in the
mailing
.pyc and
.pyo files (using -O for the .pyo). Is it your expectation that such
platforms will still distribute -O only? Or also -OO? In my world, all
of the __pycache__ directories are owned by root.
--
Scott Dial
sc...@scottdial.com
___
Python-Dev mai
cert was wholly sufficient. The management tools use a
RESTful interface over HTTPS for control, but you are telling me this
will be broken by default now. What do I tell our developers (who often
adopt the latest and greatest versions of things to play with)?
--
Scott Dial
sc.
seem
to concede that bytes is the type you want to use for 7-bit ASCII
manipulations. If that is not what we want, then we are not doing a good
job communicating that to developers with the API. At the onset, the
bytes literal itself seems to be an attractive nuisance
ython 3.x? Of the 40% of people
who said they have never written Python 3.x, how many of them also said
they had dependencies keeping them on Python 2.x? Etc.
--
Scott Dial
sc...@scottdial.com
___
Python-Dev mailing list
Python-Dev@python.org
https://ma
g practice in this specific area too (e.g.,
XMLParser).
[1]
http://twistedmatrix.com/documents/13.1.0/api/twisted.protocols.ftp.IFinishableConsumer.html
--
Scott Dial
sc...@scottdial.com
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.pyth
and
allocations were 16 byte aligned, so there could never be a cache miss.
Nowadays, cache lines are still 64 bytes but pointers are 8 bytes, and
we still allocating on 16 byte alignment, so you have a 25% chance of a
cache miss now.
--
Scott Dia
eem
best that sizeof(block) == 64, so BLOCKLEN should be (64 -
2*sizeof(PyObject *)). Nevertheless, I am skeptical that any tuning of
this structure provides any meaningful performance improvement.
--
Scott Dial
sc...@scottdial.com
___
Python-Dev mail
ontext" id. This is then set
according to a global sys.memcontext variable, which the program will
modify according to what it is doing. This can then be used to track
memory usage by different parts of the program.
"""
--
Scott Dial
sc...@scottdial.com
___
;
PyMemBlockAllocator pymem_raw_allocator =
{.alloc=&_alloc_pymem_raw, .free=&_free_pymem};
PyMemBlockAllocator pyobject_allocator =
{.alloc=&_alloc_pyobject, .free=&_free_pyobject};
"""
And in the latter case, there is no extra
On 4/23/2013 11:58 AM, Guido van Rossum wrote:
> You seem to be mixing up classes and metaclasses.
I was trying to explain it in more plain terms, but maybe I made it even
more confusing.. Anyways, I agree with you that isinstance(Color.RED,
Color) should be True.
--
Scott Dial
other "things" that are not like "C". However, if you think of "C" as a
"class of things", then "C" having attributes that are instances of it's
type is completely natural.
Fundamentally, the question is whether an instance of Enum is a new t
m values that represent
states of a system get merged or renamed over time, and this one is a
great example of that.
[1]
http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Error-Codes.html#index-EAGAIN-97
--
Scott Dial
sc...@scottdial.com
___
ng with a repr that yields a dict-like string
"record(a=1, b=2, c=3)" with regard to testing and display?
--
Scott Dial
sc...@scottdial.com
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-de
In general, Hg's ignore files are more expressive (regex and globbing)
than Git's ignore files (globbing only). Our .hgignore file has regex
rules, but if someone was so inclined, they could expand those rules
based on their current HEAD.
I do not know if such a tool already exists
, you can either
commit the change to your clone, or you can put your ignores into
.git/info/exclude. No reason to be so sore about it, since Git lets you
have your own ignore file without requiring it be a tracked file.
--
Scott Dial
sc...@scot
ick like Nick's).
I think the PEP should enumerate what platforms that CPython supports
that will not benefit from a real monotonic clock. I think the number of
platforms will be such a minority that the emulation makes sense.
Practicality beats purity, and all.
--
Scott Dial
sc...@scottdia
you mean with "fill in the gap with an
> emulation". You would like to implement a monotonic clock based on the
> system clock?
If "time.monotonic()" is only sometimes available, then I don't see the
added clock being anything more than an amusement. (In th
In that case, I don't think time.try_monotonic() is really needed
because we can emulate "time.monotonic()" in software if the platform is
deficient. I can't imagine a scenario where you would ask for a
monotonic clock and would rather have an error than have Python fill in
the g
is an
exercise left to the reader..
--
Scott Dial
sc...@scottdial.com
___
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
cular use-case in mind and have settled
on calling that a "steady" clock despite how it belies its name.
[1]
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3128.html#time.clock.steady
"""
Objects of class steady_clock represent clocks for which values of
time_poi
nt-face to embed a font, we need to provide fallbacks.
--
Scott Dial
sc...@scottdial.com
___
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
ine has both
'Lucida Sans Unicode' and 'Lucida Sans' and it's a toss-up to me which
is better -- one is better than the other in certain contexts.
Presumably, the character coverage of the Unicode font makes it the
superior choice.
Personally, I would leave Tahoma out of the l
de
scripts = {base}/Scripts
data = {base}
[nt_user]
stdlib = {userbase}/Python{py_version_nodot}
platstdlib = {userbase}/Python{py_version_nodot}
purelib = {userbase}/Python{py_version_nodot}/site-packages
platlib = {userbase}/Python{py_version_nodot}/site-packages
include = {userbase}/Py
he API proposed in the PEP. As it
stands, I believe the authorship of ipaddr either decided that they were
not going to compromise their module or lost interest.
See Nick Coghlan's summary:
http://mail.python.org/pipermail//python-ideas/2011-August/011305.html
--
Sco
the end, these modules may not receive as wide of
visibility as the PEP suggests. I could very easily imagine the more
stable distributions refusing or patching anything that used __preview__
in order to eliminate difficulties.
--
Scott Dial
sc...
lame for the
conditional to the wrong author.
--
Scott Dial
sc...@scottdial.com
___
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
op the
optimization. Beyond that, I think nobody was willing to put in the
effort to change the optimization itself.
[1] http://gcc.gnu.org/ml/gcc/2002-10/msg01616.html
[2] http://gcc.gnu.org/ml/gcc/2003-04/msg00166.html
--
Scott Dial
sc...@scottdial.com
_
operators depending on
the context. If "n" is worth moving into a register, then "<0" will get
to use a "test" and it's fewer instruction bytes than a "cmp", but
otherwise, it is no better. So, there is a very special case where "<0"
is bett
On 8/24/2011 4:11 AM, Victor Stinner wrote:
> Le 24/08/2011 06:59, Scott Dial a écrit :
>> On 8/23/2011 6:38 PM, Victor Stinner wrote:
>>> Le mardi 23 août 2011 00:14:40, Antoine Pitrou a écrit :
>>>> - You could try to run stringbench, which can be found at
>>
rint "test_unicode " * 50'`
pep-393-wide-unicode.txt
real0m33.409s
cpython-wide-unicode.txt
real0m33.489s
Nothing in it for me.. except your system is obviously faster, in general.
--
Scott Dial
sc...@scottdial.com
___
Python-Dev mailin
program would need to be responsible and populate the mimetypes itself,
if it depended on them, otherwise, all bets are off about what types_map
contains from run-to-run of a program (because /etc/mime.types might
have changed).
--
Scott Dial
sc...@scottdial.com
___
to specific effort to add that one.
--
Scott Dial
sc...@scottdial.com
___
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
switch in MSVCRT version.
My understanding (but I haven't looked closely) was that the stable ABI
specifically excluded anything that would expose a problem due to a CRT
mismatch -- making this a moot point. I'm sure Martin will correct me if
I am wrong.
-Scott
--
Scott Di
rial.selenic.com/bts/ and
> http://mercurial.selenic.com/wiki/ContributingChanges
The hgweb interface is templated. You can already change it via "style"
in the hgweb.conf. There are several styles already available in the
templates folder of the install, a
x27;re right, any Python based solution will need to
> create a child process.
Why would that be true? Shouldn't this launcher just be a basic wrapper
that cobbles together the arguments for an eventual os.exec*() call?
What is there to do other than to exec the correct interpreter with (a
s
On 3/10/2011 3:07 AM, Paul Du Bois wrote:
> volatile considered harmful
http://www.kernel.org/doc/Documentation/volatile-considered-harmful.txt
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.
On 3/9/2011 3:15 AM, Scott Dial wrote:
> I wanted to draw attention to issue11450 [1]. In trying to using mq to
> work on patches for CPython, I found that I could no longer get regrtest
> to run.
Just to update this thread, thanks to the swift work of Nadeem Vawda and
Antoine for push
e cannot parse that truncated string.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
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
at it doesn't bother me (although I am
not sure the utility of that), but I would hesitate to say that is true
for using '-i'.
Otherwise, the functionality seems generally useful and it's on my list
of things to integrate into my application, and having it
lthough if you have TortoiseSVN, you can still use that as a patch tool.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail
don't think the development world aligns with your pedantry.
That's not to say this is a popularity contest, but then let's not cite
google hit counts as proof.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailin
arch is invalid. You hit things such as Latin1ClassModel which
> have no relevance to the issue at hand.
You get about the same ratio if you filter out only the quoted strings.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev
o, I am
already talking about a best-case scenario for caching. I'm not sure how
you could invalidate the cache without paying the cost of all the normal
syscalls that we are trying to avoid.
My finder/loader is not bug-free, but I'd be glad to make it available
to someone if they want t
ferencing the __class__ (as the other
replier mentioned). But, I didn't receive any responses then, so I think
not a lot of attention was put into these type of attributes on exceptions.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Pytho
ersion numbers that have no naming conflicts, so even if a single
version of Python was installed, it would not look out of place at all.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.or
race (from the
> OS mechanism) in that case.
Even if that doesn't work, things like the grsecurity patches to linux
use these signals to detect exploits and log them and do throttling.
Calling abort() effectively converts all of these faults into SIGABRT
terminations that are considered (more
or of large lists than the
overhead of the futures module. You should retry that experiment with
the list pre-allocated. Beyond that, the curve in that line is not
exactly a large amount of variance from a straight line.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
ly tried
> to shut up about it :).
At least I am in good company. ;)
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
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
ful
service to the community for much longer than Snakebite has for those
2.5 years.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
cluded the null-terminator in the byte count.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
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
n committers who use those tools
adding and maintaining these files. Seems akin to having
Misc/python-mode.el and Misc/Vim/python.vim. It's all in the spirit of
supporting the tools that people are actually using.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
--
Scott Dial
sc
codec can't encode character '\udcc2' in
position 0: surrogates not allowed
It seems like this hack is about making the 3.x unicode type more like
the 2.x string type, and I thought we decided that was a bad idea. How
will developers not have to ask the
On 9/26/2010 11:45 PM, R. David Murray wrote:
> On Sun, 26 Sep 2010 21:56:20 -0400, Scott Dial
> wrote:
>> On 9/26/2010 3:12 AM, Martin v. Loewis wrote:
>>> Preventing the browser from prompting the user on the chance they
>>> might want to enter an OpenID is not
ltra geeks" know their URIs (I have no idea what the
URI for a Google account is). But, I don't see this as being worthwhile
either; I just think it would be nice if the 401 page gave a quick way
to correct one's mistake that didn't involve the back button.
> And again, enjo
me still use my own.
Although, I think it would be nice if I didn't have to go to another
page to do that, but I may be biased by having such a short OpenID URI.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
ils on this list is generally the best way to have few look at your
patch. :-p Also, this seems more appropriate for python-ideas.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.pytho
o having had all of this discussed and explained on the
mailing list is certainly useful. I trust that yourself and the debuntu
python group will end up chasing down and taking care of any quirks that
this change might cause, so I am not worried about it. :D
--
Scott Dial
sc...@scottdial.com
sco
On 6/26/2010 4:06 PM, Matthias Klose wrote:
> On 25.06.2010 22:12, James Y Knight wrote:
>> On Jun 25, 2010, at 4:53 AM, Scott Dial wrote:
>>> Placing .so files together does not simplify that install process in any
>>> way. You will still have to handle such packages i
;re conflating what is being discussed with PEP 3147. That PEP is
> independent of this. PEP 3147 just empowered this work to be relevant.
Without a PEP (be it PEP 3147 or some other), what is the justification
for doing this? The burden should be on "you" to explain why this is a
On 6/24/2010 9:18 PM, Greg Ewing wrote:
> Scott Dial wrote:
>
>> But the only motivation for doing this with .pyc files is that the .py
>> files are able to be shared,
>
> In an application made up of a mixture of pure Python and
> extension modules, the .py file
On 6/24/2010 8:23 PM, James Y Knight wrote:
> On Jun 24, 2010, at 5:53 PM, Scott Dial wrote:
>> If the package has .so files that aren't compatible with other version
>> of python, then what is the motivation for placing that in a shared
>> location (since it can't a
build options you care about. Because the distro
> controls how Python is configured, this should be fairly easy to achieve.
For packages that have .so files, won't the distro already have to build
multiple copies of that package for all version of Python? So, why can't
it place th
g to wait
anyways. ISTM, it is much easier to get behavior #2 if you have behavior
#1, and it would also seem rather trivial to make ThreadPoolExecutor
take an optional argument specifying which behavior you want.
Your reference implementation does not actually implement the
spec
ing an object passed in, which is something that wouldn't be
addressed by your original complaint about exec (as in, modifying a
global data structure).
Instead of:
> if key in return_stuff and return_stuff[key] == context[key]:
Use:
> if key in return_stuff and return_st
is not
accepted, what happens to PEP 3148? After all, there was some complaints
about just calling it "futures", without putting it in a "concurrent"
namespace.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mai
ome people told me when I could scratch it and how
they'd like it scratched.. but I wasn't ignored or rejected despite the
lack of a maintainer. Thanks to RDM for giving my issue attention.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
far
>>>>> I have not seen that.
>>
>> Do you take your own poll seriously?
>>
> When was this ever a democracy?
Is consensus superficial?
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev
lack enough data points to reach statistical significance.
However, if the ".pyr" zip file is going to contain many versions of the
same module, then the performance impact could be more real, since you
would be forced to pull from disk *all* of the versions
0.302988: 1.0904x faster
Avg: 0.349153 -> 0.394819: 1.1308x slower
Not significant
Stddev: 0.01158 -> 0.35049: 30.2739x larger
Timeline: http://tinyurl.com/ylq8sef
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
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
ot; does not work
with; in fact, there is not even a "pop" operator -- all size changes of
a vector O(n) unless the implementation is playing games (like the one
you are proposing for the start and the one Python already uses for the
end of a list).
(And with this, clearly
on some systems, so
this function only returns a guess.
"""
I already know that this suggestion will not get any following because,
for most people, it just works. However: "In the face of ambiguity,
refuse the temptation to guess." Would it really be that unfortunate to
the GPL). We
suggest that you read the License[1] if further clarification is needed.
"""
"""
We have no plans to change the license of LLVM. If you have questions or
comments about the license, please contact the LLVM Oversight Group[2].
"""
[1]
; sense.
This has no relevance to the conversation since there are no Linux
binaries being distributed. The conversation on the expectations of
Windows end-users, who are the target of the download links.
[1] http://www.microsoft.com/servers/64bit/itanium/overview.mspx
--
Scott Dial
sc...@scott
eve.
PEP 386 versions can have an indefinite number of extradecimal versions.
Pedantically,
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Uns
-SSL:
http://bugs.python.org/issue5949
Title: IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo
(it just happens that certain pairwise versions are
related).
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.
haps better because of this, you need only call it once, and you can
cache the result for the life of your process.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/
x27;t have any
multi-core systems around to test it on, I'm still in the stone age.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
std dev: 0 ms.)
CPU threads=4: 0 ms. (std dev: 0 ms.)
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.
atform module. Until they are
critical to run-time performance, why not wait to add these extra things?
The only thing that has been indicated as needed is the identifier for
the python implementation. sys.vm or sys.implementation may very well
fully support the use cases given merely by being
ss of an opportunity.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
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/archiv
a hard time coexisting.
> Less political bickering, and the some of the technical results I
> hoped for all along are achieved. Yay, open source.
And yet, political bickering seems to be all you are good for in this case.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
_
Nick Coghlan wrote:
> Scott Dial wrote:
>> I would appreciate this bug being resolved before the next release as it
>> effects me on a daily basis. I have submitted a patch, which reflects my
>> local solution.
>
> Unfortunately, it's almost certainly too late to
Scott Dial wrote:
> While this code is present in
> older versions of python, it seems to have become a problem recently
> (2009-05-06 is the earliest report on the issue) perhaps due to a
> version bump of OpenSSL? I never noticed the problem in python2.5 even
> though the code is
daily basis. I have submitted a patch, which reflects my
local solution.
-Scott
[1] http://pyropus.ca/software/getmail/
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mail
However, I will *never* support a proposal that includes retaining the
host address. I believe I am not alone in that. However, Peter has made
it quite clear that he will *never* change that about the IPNetwork classes.
I would be quite glad to not have ipaddr included in the stdlib. As I
can only imagine
. If the IPNetwork didn't accept a non-zero host and instead
required a developer to use a helper to construct a IPNetwork with a
proper address, then there would be less confusion about what exactly a
IPNetwork is meant to represent. As it stands, it's purposes is muddled
by accepting
Sebastian Rittau wrote:
> On Tue, Sep 15, 2009 at 01:16:06PM -0400, Scott Dial wrote:
>>>>> net = ipaddr.IPNetwork("10.1.2.3/255.255.240.0")
>> But then, I was dumbfounded as to how I could get the gateway IP from
>> this IPNetwork object.
>
> W
work(addr, net))
I guess I am ok with this. It seems sub-optimal (why not just return a
IPv4AddressWithNetwork to begin with?) but I suppose it is no less
efficient since the same objects would be constructed.
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
__
hat can of worms. If indexing a
IPv4Network returned IPv4AddressWithNetwork, then that would remove that
oddity.
This would also solve the weirdness that Stephen brought up in another
branch of this discussion:
Stephen J. Turnbull wrote:
> Scott Dial writes:
> > ipaddr.IPv4Network('1
Peter Moody wrote:
> On Tue, Sep 15, 2009 at 10:16 AM, Scott Dial
> wrote:
>> In the end, I found the names IPNetwork/IPAddress and their
>> instantiations confusing. ISTM that IPNetwork is overloaded and plays
>> two roles of being an IPNetwork and being an IPAddressWit
n IPNetwork and being an IPAddressWithNetwork. And
finally, it's unclear to me why iterating over a IPNetwork would not
produce a sequence of IPNetwork(/IPAddressWithNetwork) objects.
ISTM that if I started with an IPNetwork object, the API should always
return IPNetwork objects. If I want ju
ient must support chunked transfer-encoding,
and apparently Tomcat/Coyote defaults to that unless it is either an
empty message, not a HTTP/1.1 client, or the request is not to be kept
alive ("Connection: close" or no more keep-alive slots on the server).
As Simon said, changing this to do
ion,
> the optimization doesn't help inner-loops in a function (where most of
> the time usually spent).
>
I fail to understand this crude logic. How often is the inner-loop
really going to solely call C code? Any call to Python in an inner-loop
is going to suffer this pe
ion,
> the optimization doesn't help inner-loops in a function (where most of
> the time usually spent).
>
I fail to understand this crude logic. How often is the inner-loop
really going to solely call C code? Any call to Python in an inner-loop
is going to suffer this pe
Greg Ewing wrote:
> Jason R. Coombs wrote:
>> I had a use case that was compelling enough that I thought there
>> should be something in functools to do what I wanted.
>
> I think this is one of those things that a small minority of
> people would use frequently, but everyone else would use
> very
ot; in the PEP become speculative.
Someone feel free to correct me if I am incorrect about the desired tone
and use of the document..
-Scott
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Python-Dev mailing list
Python-Dev@python.o
n be total ordered. We shouldn't be
patching the object base class because of legacy code that relied on
sorting tuples; this code should be updated to either use a key function.
-Scott
--
Scott Dial
sc...@scottdial.com
scod...@cs.indiana.edu
___
Pyt
return 2 # used internally
def f()
# squelch the runtime error
yield from self._f()
As Greg has said a number of times, we allow functions to return values
with them silently being ignored all the time.
--
Scott
1 - 100 of 198 matches
Mail list logo