On Tue, Aug 30, 2016 at 11:03 PM, Guido van Rossum <gu...@python.org> wrote:
> On Tue, Aug 30, 2016 at 7:44 PM, Jack Diederich <jackd...@gmail.com>
> wrote:
> > +0. We should try and be consistent even if this is a thing I don't want.
> > And trust me, I don't!
+0. We should try and be consistent even if this is a thing I don't
want. And trust me, I don't!
That said, as long as pro-mypy people are willing to make everyone else pay
a mypy reading tax for code let's try and reduce the cognitive burden.
* Duplicate type annotations should be a syntax
Twelve years ago a wise man said to me I suggest that you also propose a
new name for the resulting language
I talked with many of you at PyCon about the costs of PEP 484. There are
plenty of people who have done a fine job promoting the benefits.
* It is not optional. Please stop saying that.
2012/3/13 Kristján Valur Jónsson krist...@ccpgames.com:
http://bugs.python.org/issue14288
In my opinion, any objects that have simple and obvious pickle semantics
should be picklable. Iterators are just regular objects with some state.
They are not file pointers or sockets or database
On Thu, Jan 12, 2012 at 9:57 PM, Guido van Rossum gu...@python.org wrote:
Hm... I started out as a big fan of the randomized hash, but thinking more
about it, I actually believe that the chances of some legitimate app having
1000 collisions are way smaller than the chances that somebody's code
On Sun, May 29, 2011 at 6:47 PM, Benjamin Peterson benja...@python.org wrote:
2.7.2 is the second in bugfix release for the Python 2.7 series. 2.7 is the
last
major verison of the 2.x line and will be receiving bug fixes while new
feature
development focuses on 3.x.
2.7 includes many
On Sat, Mar 5, 2011 at 1:00 AM, Nick Coghlan ncogh...@gmail.com wrote:
On Sat, Mar 5, 2011 at 10:40 AM, Guido van Rossum gu...@python.org wrote:
That's how I felt 20 years ago. But since then I've come to appreciate
they as a much better alternative to either he or she or he. Just
get used to
Much thanks.
On Mon, Feb 28, 2011 at 7:41 PM, antoine.pitrou
python-check...@python.org wrote:
Author: antoine.pitrou
Date: Tue Mar 1 01:41:10 2011
New Revision: 88691
Log:
Endly, fix UnboundLocalError in telnetlib
Modified:
python/branches/py3k/Lib/test/test_telnetlib.py
On Mon, Feb 21, 2011 at 10:02 PM, wen heping wenhep...@gmail.com wrote:
Hi,
I found 2 changes in python-3.2 compared to previous python version:
i) Demo directory removed
ii) lib/libpython3.2.so.1 changed to lib/libpython3.2mu.so.1
Would someone tell me why ?
The demo directory
On Fri, Oct 29, 2010 at 8:35 PM, Brett Cannon br...@python.org wrote:
For those of you who have not noticed, Antoine committed a patch that
raises a ResourceWarning under a pydebug build if a file or socket is
closed through garbage collection instead of being explicitly closed.
Just yesterday
On Sat, Oct 30, 2010 at 3:06 PM, Glyph Lefkowitz
gl...@twistedmatrix.com wrote:
On Oct 30, 2010, at 2:39 PM, Jack Diederich wrote:
On Fri, Oct 29, 2010 at 8:35 PM, Brett Cannon br...@python.org wrote:
For those of you who have not noticed, Antoine committed a patch that
raises
I will say something snarky now and (hopefully) something useful tomorrow.
When ABCs went in I was +0 because, like annotations, I was told I
wouldn't have to care about them. That said; I do actually care about
the set interface and what set-y-ness means for regular duck typing
reasons. What
On Wed, Sep 22, 2010 at 11:46 PM, Raymond Hettinger
raymond.hettin...@gmail.com wrote:
On Sep 22, 2010, at 6:24 PM, R. David Murray wrote:
On Wed, 22 Sep 2010 19:18:35 -0400, Terry Reedy tjre...@udel.edu wrote:
deputed tracker authority/ies. Not everyone has the same idea about how
to
On Tue, Sep 21, 2010 at 7:58 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
I'm rather sad to have been sacked, but such is life. I won't be doing any
more work on the bug tracker for obvious reasons, but hope that you who have
managed to keep your voluntary jobs manage to keep Python going.
On Sun, Jul 25, 2010 at 2:26 PM, Jesse Noller jnol...@gmail.com wrote:
On Sat, Jul 24, 2010 at 10:08 AM, Guido van Rossum gu...@python.org wrote:
- After seeing Raymond's talk about monocle (search for it on PyPI) I
am getting excited again about PEP 380 (yield from, return values from
On Tue, Jul 13, 2010 at 1:57 PM, Benjamin Peterson benja...@python.org wrote:
2010/7/13 Alexander Belopolsky alexander.belopol...@gmail.com:
On Tue, Jul 13, 2010 at 11:34 AM, Antoine Pitrou solip...@pitrou.net wrote:
On Tue, 13 Jul 2010 11:25:23 -0400
..
Only for top-level modules:
On Sat, Mar 13, 2010 at 12:24 PM, gregory dudek du...@cim.mcgill.ca wrote:
The Telnet module telnetlib.py can be
very slow -- unusably slow -- for large automated data transfers. There are
typically done in raw mode.
The attached patch greatly increased the speed of telnet interactions in
On Mon, Jan 25, 2010 at 6:59 AM, Lennart Regebro lrege...@jarn.com wrote:
[snip]
If class A returns NotImplemented when compared to class B, and class
B implements the recipe above, then we get infinite recursion, because
1. A() B() will call A.__lt__(B) which will return NotImplemented.
2.
On Wed, Jan 20, 2010 at 5:27 PM, Collin Winter collinwin...@google.com wrote:
[big snip]
In order to support hardware and software platforms where LLVM's JIT does not
work, Unladen Swallow provides a ``./configure --without-llvm`` option. This
flag carves out any part of Unladen Swallow that
Good lord, did this make it past other people's spam filters too? I
especially liked the reference to REGION -2,0 ; Rlyeh. Ph'nglui
mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn to you too sir.
-Jack
2010/1/16 Christian Heimes li...@cheimes.de:
ERESSEA Lord evzp24
; TIMESTAMP 1263675732032
;
On Mon, Jan 11, 2010 at 7:11 PM, Barry Warsaw ba...@python.org wrote:
As an example, the one library I've already ported used a metaclass. I don't
see any way to specify that the metaclass should be used in a portable way.
In Python 2.6 it's:
class Foo:
__metaclass__ = Meta
and in
+1. There are no compelling language changes on the horizon (yield
from is nice but not necessary). I see the main benefit of a
moratorium as social rather than technical by encouraging people to
work on the lib instead of the language. Plus, I'd gladly proxy my
vote to any one of the three PEP
On Fri, Apr 10, 2009 at 9:58 PM, Harry (Thiago Leucz Astrizi)
thiagoha...@riseup.net wrote:
Hello everybody. My name is Thiago and currently I'm working as a
teacher in a high school in Brazil. I have plans to offer in the
school a programming course to the students, but I had some problems
On Fri, Apr 10, 2009 at 4:38 PM, C. Titus Brown c...@msu.edu wrote:
[megasnip]
roundup VCS integration / build tools to support core development --
a single student proposed both of these and has received some
support. See http://slexy.org/view/s2pFgWxufI for details.
From the
On Wed, Apr 8, 2009 at 12:09 AM, Michele Simionato
michele.simion...@gmail.com wrote:
On Tue, Apr 7, 2009 at 11:04 PM, Terry Reedy tjre...@udel.edu wrote:
This probably should have gone to the python-ideas list. In any case, I
think it needs to start with a clear offer from Michele (directly
On Wed, Apr 8, 2009 at 2:44 AM, Mark Dickinson dicki...@gmail.com wrote:
On Wed, Apr 8, 2009 at 7:13 AM, John Barham jbar...@gmail.com wrote:
If you play around a bit it becomes clear that what set.pop() returns
is independent of the insertion order:
It might look like that, but I don't think
I committed some new telnetlib tests yesterday to the trunk and I can
see they are failing on Neal's setup but not what the failures are.
Ideally I like to get the information out of the buildbots but they
all seem to be hanging on stdio tests and quiting out.
Ideas? TIA,
-Jack
On Sun, Apr 5, 2009 at 10:50 PM, s...@pobox.com wrote:
Barry Someone asked me at Pycon about stripping out Demos and Tools.
Matthias +1, but please for 2.7 and 3.1 only.
Is there a list of other demos or tools which should be deleted? If
possible the list should be publicized so that
On Thu, Apr 2, 2009 at 4:25 PM, Benjamin Peterson benja...@python.org wrote:
2009/4/2 Gustavo Carneiro gjcarne...@gmail.com:
Apologies if this has already been discussed.
I don't believe it has ever been discussed to be implemented.
Apparently no one has bothered yet to turn OSError + errno
We can't backport the __prepare__ syntax without requiring metaclass
definition on the 'class' line. Because the __metaclass__ definition
can be at the end of the class in 2.6 we can't find it until after we
execute the class and that is too late to use a custom dictionary.
I wish I had thought
On Fri, May 18, 2007 at 10:23:46AM -0500, Jeff Rush wrote:
Time is short and I'm still looking for answers to some questions about
cPython, so that it makes a good showing in the Forrester survey.
[snip]
4) How many committers to the cPython core are there?
I don't have the necessary
On Wed, Mar 21, 2007 at 03:37:02PM -0500, Collin Winter wrote:
Is there any reason for test_bool to contain assertions like these?
self.assertIs({}.has_key(1), False)
self.assertIs({1:1}.has_key(1), True)
A significant portion of the file is devoted to making sure various
things return
On Wed, Jan 10, 2007 at 06:04:05PM -0800, Raymond Hettinger wrote:
[Anthony Baxter]
I've had a number of people say that this is something they would
really, really like to see - the idea is both to let people migrate
more easily, and provide reassurance that it won't be that bad to
The python binary is out of step with the test_itertools.py version.
You can generate this same error on your own box by reverting the
change to itertoolsmodule.c but leaving the new test in test_itertools.py
I don't know why this only happened on that OSX buildslave
On Thu, Sep 21, 2006 at
On Thu, Sep 21, 2006 at 03:28:04PM -0700, Grig Gheorghiu wrote:
On 9/21/06, Jack Diederich [EMAIL PROTECTED] wrote:
The python binary is out of step with the test_itertools.py version.
You can generate this same error on your own box by reverting the
change to itertoolsmodule.c but leaving
On Fri, Sep 22, 2006 at 06:09:41AM +0200, Martin v. L?wis wrote:
Jack Diederich schrieb:
Faced with the choice of believing in a really strange platform specific
bug in a commonly used routine that resulted in exactly the failure caused
by one of the two files being updated or believing
On Sat, Aug 19, 2006 at 04:34:16AM +0100, Steve Holden wrote:
Scott Dial wrote:
Guido van Rossum wrote:
I just got a report from a Windows user that os.spawnlp() is missing
from Python 2.4, despite being mentioned in the docs. Can someone
confirm this? My Windows box is resting. :-)
On Sat, Aug 19, 2006 at 05:19:40AM -0400, Tim Peters wrote:
[Steve Holden]
Reasonable enough, but I suspect that Thomas' suggestion might save us
from raising false hopes. I'd suggest that the final release
announcement point out that this is the first release containing
specific support
On Thu, Aug 17, 2006 at 09:07:53PM +0200, Georg Brandl wrote:
Jack Diederich wrote:
Looks good to me. While you are on that page do you want to change
l = PyList_New(3);
x = PyInt_FromLong(1L);
PySequence_SetItem(l, 0, x); Py_DECREF(x);
x = PyInt_FromLong(2L);
PySequence_SetItem
On Tue, Jun 27, 2006 at 02:09:19PM -0400, Alexander Belopolsky wrote:
Setobject code allocates several internal objects on the heap that are
cleaned up by the PySet_Fini function. This is a fine design choice,
but it often makes debugging applications with embedded python more
difficult.
I
On Wed, May 31, 2006 at 09:10:47PM -0400, Tim Peters wrote:
[Martin Blais]
I'm still looking for a benchmark that is not amazingly uninformative
and crappy. I've been looking around all day, I even looked under the
bed, I cannot find it. I've also been looking around all day as well,
On Wed, Mar 29, 2006 at 01:11:06AM -0500, Fred L. Drake, Jr. wrote:
On Wednesday 29 March 2006 00:48, Fred L. Drake, Jr. wrote:
I think the existing usage for classes is perfectly readable. The
@-syntax works well for functions as well.
On re-reading what I wrote, I don't think I
On Wed, Mar 29, 2006 at 07:23:03PM -0500, Phillip J. Eby wrote:
At 11:07 AM 3/29/2006 -0800, Guido van Rossum wrote:
On 3/28/06, Phillip J. Eby [EMAIL PROTECTED] wrote:
If we're using Zope 3 as an example, I personally find that:
class Foo:
Docstring here, blah blah
[promted by Phillip Eby's post, but not in response so content snipped]
I think we both want class decorators as a more fine grained substitute
for __metaclass__ (fine grained as in declared per-class-instance instead
of this-class-and-all-its-children). I can think of three ways class
On Tue, Mar 28, 2006 at 10:16:01AM -0800, Neal Norwitz wrote:
On 3/28/06, Guido van Rossum [EMAIL PROTECTED] wrote:
I propose that someone start writing a Py3k PEP for class decorators.
I don't think it's fair to the 2.5 release team to want to push this
into 2.5 though; how about 2.6?
On Mon, Mar 06, 2006, Guido van Rossum wrote:
On 3/6/06, Raymond Hettinger [EMAIL PROTECTED] wrote:
[Neil Schemenauer]
I occasionally need dictionaries or sets that use object identity
rather than __hash__ to store items. Would it be appropriate to add
these to the collections module?
On Wed, Mar 01, 2006 Brett Cannon wrote:
On 2/28/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
Thomas Wouters wrote:
I added webstats for all subsites of python.org:
http://www.python.org/webstats/
what's that Java/1.4.2_03 user agent doing? (it's responsible for
10% of all hits
On Thu, Feb 16, 2006 at 01:11:49PM -0800, Guido van Rossum wrote:
[snip]
Google has an internal data type called a DefaultDict which gets
passed a default value upon construction. Its __getitem__ method,
instead of raising KeyError, inserts a shallow copy (!) of the given
default value into
On Fri, Feb 17, 2006 at 03:03:06PM -0500, Fred L. Drake, Jr. wrote:
On Friday 17 February 2006 14:51, Ian Bicking wrote:
and in the process breaking an important
quality of good Python code, that attribute and getitem access not have
noticeable side effects.
I'm not sure that's quite
On Thu, Feb 16, 2006 at 06:13:53PM +0100, Fredrik Lundh wrote:
Barry Warsaw wrote:
We know at least there will never be a 2.10, so I think we still have
time.
because there's no way to count to 10 if you only have one digit?
we used to think that back when the gas price was just below
[Raymond Hettinger]
[Armin Rigo]
BTW the reason I'm looking at this is that I'm considering adding
another undocumented internal-use-only method, maybe __getitem_cue__(),
that would try to guess what the nth item to be returned will be. This
would allow the repr of some iterators to
On Tue, Jan 17, 2006 at 04:02:43PM -0800, Guido van Rossum wrote:
On 1/17/06, Adam Olsen [EMAIL PROTECTED] wrote:
In-favour-of-%2b-ly y'rs,
My only opposition to this is that the byte type may want to use it.
I'd rather wait until byte is fully defined, implemented, and released
in a
On Tue, Jan 17, 2006 at 06:11:36PM -0800, Bob Ippolito wrote:
On Jan 17, 2006, at 5:01 PM, Jack Diederich wrote:
On Tue, Jan 17, 2006 at 04:02:43PM -0800, Guido van Rossum wrote:
On 1/17/06, Adam Olsen [EMAIL PROTECTED] wrote:
In-favour-of-%2b-ly y'rs,
My only opposition
On Fri, Oct 07, 2005 at 12:15:04PM -0700, Martin Maly wrote:
Hello Python-Dev,
My name is Martin Maly and I am a developer at Microsoft, working on the
IronPython project with Jim Hugunin. I am spending lot of time making
IronPython compatible with Python to the extent possible.
I came
On Tue, Sep 20, 2005 at 10:20:44AM -0700, Josiah Carlson wrote:
Try using the code I offered. It allows the cross of an aribitrary
number of restartable iterables, in the same order as an equivalent list
comprehension or generator expression.
list(cross([1,2], [3,4], [5,6]))
[(1, 3, 5),
On Tue, Sep 20, 2005 at 09:04:53AM -0700, Guido van Rossum wrote:
On 9/20/05, Michael Hudson [EMAIL PROTECTED] wrote:
Guido van Rossum [EMAIL PROTECTED] writes:
On 9/19/05, Raymond Hettinger [EMAIL PROTECTED] wrote:
I propose that in Py3.0, the and and or operators be simplified to
On Thu, Sep 01, 2005 at 07:58:40PM +0200, Paolino wrote:
Working on a tree library I've found myself writing
itertools.chain(*[child.method() for child in self]).
Well this happened after I tried instinctively
itertools.chain(child.method() for child in self).
Is there a reason for this
On Thu, Sep 01, 2005 at 02:46:13PM -0600, Charles Cazabon wrote:
Bill Janssen [EMAIL PROTECTED] wrote:
I don't use print myself much, but for the occasional 3-line script.
But I think the user-friendliness of it is a good point, and makes up
for the weirdness of it all. There's something
On Thu, Sep 01, 2005 at 11:12:57PM +0200, Fredrik Lundh wrote:
Charles Cazabon wrote:
in fact, it does nothing for the program but merely has the interesting
side-effect of writing to stdout.
yeah, real programmers don't generate output.
I'd say:
yeah, real programmers don't generate
On Tue, Aug 16, 2005 at 10:08:26PM +1000, Anthony Baxter wrote:
On Tuesday 16 August 2005 21:42, Michael Hudson wrote:
I want svn, I think. I'm open to more sophisticated approaches but am
not sure that any of them are really mature enough yet. Probably will
be soon, but not soon enough
On Tue, Aug 09, 2005 at 12:28:08AM -0600, Steven Bethard wrote:
Raymond Hettinger wrote:
If the PEP can't resist the urge to create new intermediate groupings,
then start by grepping through tons of Python code to find-out which
exceptions are typically caught on the same line. That would
On Thu, Jul 07, 2005 at 03:03:35PM -0400, Phillip J. Eby wrote:
At 02:48 PM 7/7/2005 -0400, Tim Peters wrote:
[Guido, on {for,while}/else]
...
The question remains whether Python would be easier to learn without
them. And if so, the question would remain whether that's offset by
their
On Mon, May 16, 2005 at 06:24:59PM +1200, Greg Ewing wrote:
Brett C. wrote:
Nick's was obviously directly against looping, but, with no offense to Nick,
how many other people were against it looping? It never felt like it was a
screaming mass with pitchforks but more of a I don't love
On Mon, May 16, 2005 at 08:09:54PM -0500, Ka-Ping Yee wrote:
On Mon, 16 May 2005, Aahz wrote:
I'll comment here in hopes of staving off responses from multiple
people: I don't think these should be double-underscore attributes. The
currently undocumented ``args`` attribute isn't
On Tue, Apr 19, 2005 at 01:33:15PM -0700, Guido van Rossum wrote:
@acquire(myLock):
code
code
code
It would certainly solve the problem of which keyword to use! :-) And
I think the syntax isn't even ambiguous -- the trailing colon
distinguishes this from the function
On Sun, Apr 17, 2005 at 11:53:31AM -0400, Jack Diederich wrote:
On Sat, Apr 16, 2005 at 07:24:27PM -0400, Barry Warsaw wrote:
On Thu, 2005-04-14 at 23:46, Barry Warsaw wrote:
I've noticed an apparent inconsistency in the exception thrown for
read-only properties for C extension types vs
On Sat, Mar 26, 2005 at 12:36:08PM -0800, Josiah Carlson wrote:
Eric Nieuwland [EMAIL PROTECTED] wrote:
Given the ideas so far, would it possible to:
def meta(cls):
...
@meta
class X(...):
...
It is not implemented in Python 2.4. From what I understand, making
On Thu, Mar 10, 2005 at 10:22:45PM -0500, Raymond Hettinger wrote:
[Bill Janssen]
I think I'd want them to be:
def any(S):
for x in S:
if x:
return x
return S[-1]
def all(S):
for x in S:
if not x:
return x
return S[-1]
Or perhaps these
On Tue, Jan 04, 2005 at 10:28:03AM -0800, Guido van Rossum wrote:
In my blog I wrote:
Let's get rid of unbound methods. When class C defines a method f, C.f
should just return the function object, not an unbound method that
behaves almost, but not quite, the same as that function object. The
69 matches
Mail list logo