On 2014-07-07, at 13:22 , Andreas Maier wrote:
> While discussing Python issue #12067
> (http://bugs.python.org/issue12067#msg222442), I learned that Python 3.4
> implements '==' and '!=' on the object type such that if no special equality
> test operations are implemented in derived classes,
On 2014-09-27, at 00:11 , Cameron Simpson wrote:
> On 26Sep2014 13:16, Antoine Pitrou wrote:
>> On Fri, 26 Sep 2014 01:10:53 -0700
>> Hasan Diwan wrote:
>>> On 26 September 2014 00:28, Matěj Cepl wrote:
>>> > Where does your faith that other /bin/sh implementations (dash,
>>> > busybox, etc.)
On 2014-11-08, at 16:46 , Ionel Cristian Mărieș wrote:
> Hello,
>
> In the current incarnation Pathlib is missing some key features I need in my
> usecases. I want to contribute them but i'd like a bit of feedback on the new
> api before jumping to implementation.
>
> The four things I need ar
On 2014-11-08, at 20:02 , Ionel Cristian Mărieș wrote:
> On Saturday, November 8, 2014, Xavier Morel wrote:
>
> Why would pathlib need to provide this when tempfile already does?
>
> with tempfile.NamedTemporaryFile(prefix='') as f:
> tmp = path
On 2015-07-14, at 14:39 , Nick Coghlan wrote:
> On 14 July 2015 at 22:06, Dima Tisnek wrote:
>> Thus the question, how far should Python go to detect possible
>> erroneous user behaviour?
>>
>> Granted it is in tests only, but why not detect assrte, sasert, saster
>> and assrat?
>
> Because "
On 2015-08-16, at 16:08 , Guido van Rossum wrote:
> I presume the issue here is that Hg is so complicated that everyone knows a
> different subset of the commands and semantics.
>
> I personally don't know what the commands for cherry-picking a revision would
> be.
graft
> I also don't know
On 2013-10-19, at 08:38 , Nick Coghlan wrote:
>> The above example, especially if extended beyond two files, begs to used in
>> a loop, like your 5 line version:
>>
>>
>> for name in ("somefile.tmp", "someotherfile.tmp"):
>> with suppress(FileNotFoundError):
>>os.remove(name
On 2013-11-20, at 17:09 , Guido van Rossum wrote:
> On Wed, Nov 20, 2013 at 6:01 AM, Ethan Furman wrote:
> On 11/20/2013 04:25 AM, Garth Bushell wrote:
>
> I'm also quite uneasy on the case insensitive comparison on Windows as the
> File system NTFS is case sensitive.
>
> No, it's case-preser
On 2014-01-04, at 17:24 , Chris Angelico wrote:
> On Sun, Jan 5, 2014 at 2:36 AM, Hugo G. Fierro wrote:
>> I am trying to download an HTML document. I get an HTTP 301 (Moved
>> Permanently) with a UTF-8 encoded Location header and http.client decodes it
>> as iso-8859-1. When there's a non-ASCI
On 2014-01-06, at 14:44 , Antoine Pitrou wrote:
>> Then,
>> the following points must be decided to define the complete list of
>> supported features (formatters):
>>
>> * Format integer to hexadecimal? ``%x`` and ``%X``
>> * Format integer to octal? ``%o``
>> * Format integer to binary? ``{!b}``
On 2014-03-06, at 16:52 , Antoine Pitrou wrote:
> Le 06/03/2014 16:03, Yury Selivanov a écrit :
>>
>> On 2014-03-06, 8:42 AM, Antoine Pitrou wrote:
>>> Le 05/03/2014 23:53, Nick Coghlan a écrit :
__traceback__ wouldn't change [...]
>>>
>>> Uh, really? If you want to suppress all refer
On 2014-03-06, at 19:32 , Guido van Rossum wrote:
> But inspect is in the stdlib. Surely changing inspect.py is less
> controversial than amending the semantics of frame objects.
I've no idea, I'm just giving a case where I could have used the ability
to create traceback objects even without the
On 2014-03-28, at 17:19 , Skip Montanaro wrote:
> (*) As an aside (that is, this belongs in a separate thread if you
> want to discuss it), in my opinion, attempting to support ISO 8601
> formatting is pointless without the presence of an anchor datetime.
> Otherwise how would you know how far bac
On 2014-04-02, at 15:04 , Skip Montanaro wrote:
> On Wed, Apr 2, 2014 at 7:52 AM, M.-A. Lemburg wrote:
> print now() + RelativeDateTime(months=+1, day=1)
>> 2014-05-01 14:49:05.83
>
> I find this sort date arithmetic unintuitive, though I'm at a loss to
> come up with better logic than you
> On 2019-02-28, at 12:56 , Antoine Pitrou wrote:
>
> On Thu, 28 Feb 2019 22:43:04 +1100
> Steven D'Aprano wrote:
>> On Wed, Feb 27, 2019 at 02:15:53PM -0800, Barry Warsaw wrote:
>>
>>> I’m just relaying a data point. Some Python folks I’ve worked with do
>>> make the connection between dict
On 2013-02-27, at 14:31 , Antoine Pitrou wrote:
> Le Wed, 27 Feb 2013 12:15:05 +1300,
> Greg Ewing a écrit :
>> Antoine Pitrou wrote:
>>> Or we'll go straight to 5.
>>> (or switch to date-based numbering :-))
>>
>> We could go the Apple route and start naming them after
>> species of snake.
>
>
On 2013-03-07, at 11:08 , Matej Cepl wrote:
> On 2013-03-06, 18:34 GMT, Victor Stinner wrote:
>> In short, Unicode was rewritten in Python 3.3 for the PEP 393. It's
>> not surprising that minor details like singleton differ. You should
>> not use "is" to compare strings in Python, or your program
On 2013-03-18, at 15:23 , Chris Angelico wrote:
> On Tue, Mar 19, 2013 at 12:50 AM, Neal Becker wrote:
>> def F(x):
>>return x
>>
>> x = 2
>> F(x) = 3
>>
>>F(x) = 3
>> SyntaxError: can't assign to function call
>>
>> Do we really need this restriction? There do exist other languages w
On 2013-03-20, at 20:38 , Barry Warsaw wrote:
> On Mar 20, 2013, at 12:31 PM, Guido van Rossum wrote:
>
>> Agreed that the "sync into stdlib" think should not happen, or should at
>> best be a temporary measure until we can remove idle from the source
>> tarball (maybe at the 3.4 release, otherwi
On 2013-03-20, at 20:59 , Brian Curtin wrote:
> On Wed, Mar 20, 2013 at 2:51 PM, Xavier Morel wrote:
>> That would be a blow to educators, but also Windows users: while the CLI
>> works very nicely in unices, that's not the case with the win32 console
>> which is as b
On 2013-03-20, at 21:14 , Eli Bendersky wrote:
>>> Agreed that the "sync into stdlib" think should not happen, or should at
>
best be a temporary measure until we can remove idle from the source
tarball (maybe at the 3.4 release, otherwise at 3.5).
>>>
>>> Right. Ultimately, I think
On 2013-04-03, at 19:46 , Barry Warsaw wrote:
> On Apr 04, 2013, at 03:04 AM, Steven D'Aprano wrote:
>
>> On 04/04/13 01:16, Barry Warsaw wrote:
>
>>> the other built-in types-as-functions, so int() calls __int__() which must
>>> return a concrete integer.
>
>> Why must it? I think that's the
On 2013-04-04, at 16:47 , Chris Angelico wrote:
> Sure, I could override __new__ to do stupid things
Or to do perfectly logical and sensible things, such as implementing
"cluster classes" or using the base class as a factory of sorts.
> in terms of logical expectations, I'd expect
> that Foo(x) w
On 2013-04-04, at 17:01 , Chris Angelico wrote:
> On Fri, Apr 5, 2013 at 1:59 AM, Guido van Rossum wrote:
>> On Thu, Apr 4, 2013 at 7:47 AM, Chris Angelico wrote:
>>> Is there any argument that I can pass to Foo() to get back a Bar()?
>>> Would anyone expect there to be one? Sure, I could overr
On 2013-04-25, at 11:25 , Antoine Pitrou wrote:
>
> Besides, I would consider a RFC more authoritative than a
> Wikipedia definition.
> Base encoding of data is used in many situations to store or transfer
> data in environments that, perhaps for legacy reasons, are restricted
> to US-ASCII [1] d
On 2013-05-07, at 17:03 , Nick Coghlan wrote:
>
> Specifically, what I'm talking about is some kind of implicit context
> similar to the approach the decimal module uses to control operations
> on Decimal instances.
Wouldn't it be a good occasion to add actual, full-fledged and correctly
implemen
On 2013-09-06, at 19:05 , Antoine Pitrou wrote:
> On Fri, 06 Sep 2013 18:14:26 +0200
> Jesus Cea wrote:
>>
>>> Right now, I agree with Charles-François: your patch is too
>>> intrusive.
>>
>> It is intrusive. Yes. I think it must be, by its own nature. Probably
>> room for improvement and code
On 2013-09-07, at 05:40 , Jesus Cea wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 06/09/13 20:33, Antoine Pitrou wrote:
>> On Fri, 06 Sep 2013 18:14:26 +0200 Jesus Cea wrote:
>>>
>>> It is intrusive. Yes. I think it must be, by its own nature.
>>> Probably room for improvemen
On 2013-09-19, at 23:17 , Nick Coghlan wrote:
> On 20 Sep 2013 07:04, "Joe Pinsonault" wrote:
>>
>> I think it's a great idea personally. It's explicit and obvious. "lamda"
> is too computer sciencey
>
> This suggestion has been made many times, occasionally with the associated
> "must be conta
On 2013-09-22, at 12:16 , Nick Coghlan wrote:
>
> It's a bit of a pain, and we do occasionally get bug reports where the
> docstrings get out of date, but it's the least bad of the currently
> available options.
Is it really less bad than allowing limited fine-grained use of autodoc?
Not necessar
> On 22 Sep 2013, at 05:25, Benjamin Peterson wrote:
>
> There's not really much to do but maintain them separately. Truncate
> the docstrings if it makes life easier.
Autodoc could be enabled and allowed in a limited manner.
___
Python-Dev mailing lis
On 2013-09-22, at 21:24 , Westley Martínez wrote:
>> From: gvanros...@gmail.com [mailto:gvanros...@gmail.com] On Behalf Of Guido
>> van Rossum
>> Sent: Sunday, September 22, 2013 11:35 AM
>>
>> You seem to misunderstand the use of "autogeneration". It refers to
>> generating
>> the .rst docs fr
On 2013-09-29, at 14:51 , 张佩佩 wrote:
> Hello:
> As far as I know, there is not a language support user defined operator
> overloading.
> Python3 can overloading belowed operators.
> - negated
> + unchanged
>
> - minus
> + add
> * multiplication
> / division
> //
On 2013-10-03, at 15:45 , Igor Vasilyev wrote:
> Hi.
>
> Example test.py:
>
> class A():
>def __add__(self, var):
>print("I'm in A class")
>return 5
> a = A()
> a+1
> 1+a
>
> Execution:
> python test.py
> I'm in A class
> Traceback (most recent call last):
> File "../../te
On 2013-10-06, at 12:37 , Stephen J. Turnbull wrote:
>
> For me, the point about string "+=" being efficient (sometimes) isn't
> that it is surprising compared to similar types, it's that it is
> surprising for any immutable sequence type.
It's clearly nitpicking, but ropes are immutable sequenc
On 2013-10-17, at 18:06 , Barry Warsaw wrote:
> On Oct 18, 2013, at 01:26 AM, Nick Coghlan wrote:
>> By contrast, suppress() and redirect_stdout() are the *first* general
>> purpose context managers added to contextlib since its incarnation in
>> Python 2.5 (although there have been many various do
On 2013-10-17, at 20:55 , Oscar Benjamin wrote:
> On 17 October 2013 19:40, Xavier Morel wrote:
>> I think there's already a significant split between context managers
>> which handle the lifecycle of a local resource (file, transaction) and
>> those which purport t
On 2013-10-17, at 22:11 , Ethan Furman wrote:
> On 10/17/2013 01:03 PM, Terry Reedy wrote:
>>
>> class suppress:
>> def __init__(self, *exceptions):
>> self.exceptions = exceptions
>> def __exit__(self, etype, eval, etrace):
>> return etype in self.exceptions
>
> This fails when etyp
> On 2016-06-15, at 08:40 , ninostephen mathew wrote:
>
> Respected Developer(s),
> while writing a database module for one of my applications in python I
> encountered something interesting. I had a username and password field in my
> table and only one entry which was "Admin" and "password"
> On 2016-10-10, at 11:05 , Devin Jeanpierre wrote:
> The term "borrowed" is supposed to imply a sensible scope during which you're
> free to use the object, and weakrefs don't have that (except for what is
> granted by the GIL), so this does sound wacky. I bet it was for performance.
Especial
> On 2017-05-24, at 20:07 , Ben Hoyt wrote:
>
> Hi folks,
>
> I was looking at some `dis` output today, and I was wondering if anyone has
> investigated optimizing Python (slightly) by adding special-case bytecodes
> for common expressions or statements involving constants?
Python 3.6 added
> On 2017-05-24, at 20:26 , Xavier Morel wrote:
>
>> On 2017-05-24, at 20:07 , Ben Hoyt wrote:
>>
>> Hi folks,
>>
>> I was looking at some `dis` output today, and I was wondering if anyone has
>> investigated optimizing Python (slightly) by ad
> On 16 Jun 2020, at 08:51, Greg Ewing wrote:
>
> On 16/06/20 12:20 pm, Steven D'Aprano wrote:
>> The whole point of the REPL is to evaluate an
>> expression and have the result printed. (That's the P in REPL :-)
>
> Still, it's a bit surprising that it prints results of
> expressions within a
On 5 Feb 2009, at 23:54 , Steven D'Aprano wrote:
Raymond Hettinger wrote:
The arguments for and against the patch could be brought against
partial()
itself, so I don't understand the -1's at all.
Quite so, but that doesn't justify adding more capabilities to
partial().
I concur with Coll
On 6 Aug 2009, at 00:22 , Jeff McAninch wrote:
I'm new to this list, so please excuse me if this topic has been
discussed, but I didn't
see anything similar in the archives.
I very often want something like a try-except conditional expression
similar
to the if-else conditional.
I fear this
On 8 Aug 2009, at 08:02 , Steven D'Aprano wrote:
On Fri, 7 Aug 2009 08:22:14 pm Kristján Valur Jónsson wrote:
Unless I am very much mistaken, this is the approach Ruby takes.
Everything is an expression. For example, the value of a block is
the value of The last expression in the block.
Copyi
On 14 Aug 2009, at 20:39 , Jason R. Coombs wrote:
I've heard it said that Python is not a functional language, but if
that
were really the case, then functools would not exist. In addition to
the
example described above, I've had multiple occasions where having a
general
purpose function co
On 17 Aug 2009, at 09:43 , Steven D'Aprano wrote:
On Mon, 17 Aug 2009 08:10:16 am Martin v. Löwis wrote:
I don't think he did. Comparing it to the one obvious solution (use
a lambda expression), his only reasoning was "it is much easier to
read". I truly cannot believe that a compose function w
On 1 Sep 2009, at 03:03 , Gregory P. Smith wrote:
On Mon, Aug 31, 2009 at 5:01 PM, Greg Ewing >wrote:
Antoine Pitrou wrote:
Did your coworker run any timings instead of basing his assumptions
on
bytecode
size?
In any case, what are you suggesting -- that the last value
returned by a fu
On 1 Sep 2009, at 02:01 , Greg Ewing wrote:
I don't think the unpredictability that would introduce
would be a good idea.
I fail to grasp the unpredictability of "the last expression evaluated
in the body of a function is its return value".
It couldn't work in Python because statements aren't
On 1 Sep 2009, at 15:25 , Antoine Pitrou wrote:
Le mardi 01 septembre 2009 à 15:09 +0200, Xavier Morel a écrit :
"We" are not Erlang, Smalltalk, OCaml or Haskell either, sadly.
Well, feel free to prefer an unreadable language if you want :)
Smalltalk or Haskell are hardly inherently
On 2 Sep 2009, at 00:10 , Greg Ewing wrote:
Le mardi 01 septembre 2009 à 15:09 +0200, Xavier Morel a écrit :
"We" are not Erlang, Smalltalk, OCaml or Haskell either, sadly.
IIRC, the default return value of a Smalltalk method is
self, not the last thing evaluated.
Methods yes (and
On 2 Sep 2009, at 12:15 , Rob Cliffe wrote:
@Identity(DecoList[0])# THIS WORKS
def foo():
pass
For what it's worth, you don't need an id function, you can simply write
@itemgetter(0)(decorators)
def foo():
'whatever'
or
@decorators.__getitem__(0)
def foo():
On 3 Sep 2009, at 23:33 , Greg Ewing wrote:
Xavier Morel wrote:
Methods yes (and that's one of the few Smalltalk design "features"
I consider truly dumb, considering it has message cascading)
Cascading is something different -- it's for sending
multiple messages to
On 11 Oct 2009, at 18:07 , MRAB wrote:
Didn't the iPhone also lack cut-and-paste?
It did, but given text selection is a near-mandatory requirement to
cutting text (and pasting isn't very useful if you can't put anything
into the clipboard) those were implied consequences of the lack of
s
On 13 Nov 2009, at 00:35 , Antoine Pitrou wrote:
> Masklinn masklinn.net> writes:
>>
>> And then user will probably ask why you're not answering the question since
>> you're here anyway, or might go
>> as far as telling you that if you're not going to help you might as well not
>> answer.
> As I
On 13 Nov 2009, at 00:34 , Jesse Noller wrote:
> That's because as an author/maintainer - we have methods of giving
> feedback and communication. Why not rate ( or auto-rate) packages on
> objective criteria?
>
> E.g.: tests and test coverage, docs, installs on python version X, Y,
> Z, works on w
On 26 Jan 2010, at 17:09 , Glenn Linderman wrote:
>
>>> Why can't we just be like the rest of the universe and have one
>>> icon type for packages and one icon type for applications.
>>>
>>> Double click them and they get filed in the right place.
>>>
>>
>> What platform files things in the rig
I don't believe argparse's action specification scheme is bad either, but
On 6 Mar 2010, at 13:50 , Nick Coghlan wrote:
>
> you wouldn't get the static name checking that is
> the primary benefit of using named constants in less dynamic languages.
There are quite a few tools which do handle stat
On 8 Mar 2010, at 16:53 , David Stanek wrote:
>
> On Mon, Mar 8, 2010 at 10:40 AM, Steven Bethard
> wrote:
>>
>> In argparse, unlike optparse, actions are actually defined by objects
>> with a particular API, and the string is just a shorthand for
>> referring to that. So:
>>
>> parser.add_arg
On 26 Mar 2010, at 18:40 , Casey Duncan wrote:
>
>
> On Mar 25, 2010, at 7:19 PM, P.J. Eby wrote:
>
>> At 11:57 AM 3/26/2010 +1100, Steven D'Aprano wrote:
>>> But they're not -- they're *signals* for "your calculation has gone screwy
>>> and the result you get is garbage", so to speak. You shou
On 16 Apr 2010, at 23:31 , Guido van Rossum wrote:
>
> +1.
>
> Apparently dict(x, **y) is going around as "cool hack" for "call
> x.update(y) and return x". Personally I find it more despicable than
> cool.
This description doesn't make sense since `dict(x, **y)` returns not
an updated `x` but a
On 2010-07-22, at 14:45 , Simon Brunning wrote:
> On 22 July 2010 15:04, Bartosz Tarnowski
> wrote:
>> What should I do then, when the attribute is a reserver word?
>
> You would use elem.getattr('param'). That's what it's for.
getattr(elem, 'param') I believe, rather than elem.getattr('param'
On 2010-09-29, at 11:50 , Antoine Pitrou wrote:
> On Wed, 29 Sep 2010 09:03:29 +0200
> Dirkjan Ochtman wrote:
>>
>> Anyway, I don't think using Bitbucket buys us much. It could be nice
>> to keep a mirror there for redundancy and because it might make
>> contributing slightly easier for non-commi
On 2010-09-29, at 15:26 , Tarek Ziadé wrote:
> On Wed, Sep 29, 2010 at 2:36 PM, wrote:
>> On 01:13 am, st...@holdenweb.com wrote:
>>> I see that Atlassian have just taken over BitBucket, the Mercurial
>>> hosting company. IIRC Atlassian offered to host our issue tracking on
>>> JIRA, but in the e
On 2010-10-04, at 05:04 , Eviatar Bach wrote:
> Hello,
>
> I have a proposal of making the range() function inclusive; that is,
> range(3) would generate 0, 1, 2, and 3, as opposed to 0, 1, and 2. Not only
> is it more intuitive, it also seems to be used often, with coders often
> writing range(0,
On 2010-10-11, at 07:56 , Carl M. Johnson wrote:
> On Sun, Oct 10, 2010 at 2:55 PM, Zac Burns wrote:
>> This could be generalized and placed into itertools if we create a function
>> (say, apply for lack of a better name at the moment) that takes in an
>> iterable and creates new iterables that yi
On 2011-01-25, at 04:26 , Toshio Kuratomi wrote:
>
> * If you can pick a set of encodings that are valid (utf-8 for Linux and
> MacOS
HFS+ uses UTF-16 in NFD (actually in an Apple-specific variant of NFD). Right
here you've already broken Python modules on OSX.
And as far as I know, Linux soft
On 2011-02-10, at 21:47 , Éric Araujo wrote:
> Ideas are usually discussed first on python-ideas to assess usefulness,
> get the pulse of the community, beat the API into shape and such things
> before coming up to python-dev. (A number of core devs are on both lists.)
>
> You may want to search
On 2011-02-22, at 21:55 , Antoine Pitrou wrote:
> On Tue, 22 Feb 2011 21:48:51 +0100
> Stefan Behnel wrote:
>> Reid Kleckner, 22.02.2011 21:21:
>>> On Tue, Feb 22, 2011 at 2:09 PM, Eric Smith wrote:
Also changing it now would be a giant hassle, leading to so-called "const
poisoning" wher
On 2011-02-23, at 12:30 , Hrvoje Niksic wrote:
> On 02/22/2011 11:03 PM, Antoine Pitrou wrote:
>> I think there are many people still finding %-style more practical for
>> simple uses,
>
> It's also a clash of cultures. People coming from a C/Unix background
> typically find %-style format obviou
On 2011-03-25, at 10:22 , Simon Cross wrote:
> On Fri, Mar 25, 2011 at 1:25 AM, Nick Coghlan wrote:
>> As an example of the last point, perhaps rather than modifying all the
>> *clients* of the socket module, it may make more sense to have tools
>> in the socket module itself to temporarily custom
On 2011-04-16, at 16:52 , Antoine Pitrou wrote:
> Le samedi 16 avril 2011 à 16:42 +0200, Dirkjan Ochtman a écrit :
>> On Sat, Apr 16, 2011 at 16:19, Antoine Pitrou wrote:
>>> What you're proposing doesn't address the question of who is going to
>>> do the ongoing maintenance. Bob apparently isn't
On 2011-04-16, at 17:25 , Antoine Pitrou wrote:
> Le samedi 16 avril 2011 à 17:07 +0200, Xavier Morel a écrit :
>> On 2011-04-16, at 16:52 , Antoine Pitrou wrote:
>>> Le samedi 16 avril 2011 à 16:42 +0200, Dirkjan Ochtman a écrit :
>>>> On Sat, Apr 16, 2011 a
On 2011-05-07, at 03:39 , Glyph Lefkowitz wrote:
>
> I don't know if there's a programming language and runtime with a real-time,
> VM-cooperating garbage collector that actually exists today which has all the
> bells and whistles required to implement an OS kernel, so I wouldn't give the
> Lin
On 2011-05-19, at 07:28 , Georg Brandl wrote:
> On 19.05.2011 00:39, Greg Ewing wrote:
>> Ethan Furman wrote:
>>
>>> some_var[3] == b'd'
>>>
>>> 1) a check to see if the bytes instance is length 1
>>> 2) a check to see if
>>> i) the other object is an int, and
>>> 2) 0 <= other_obj < 256
>>>
On 2011-05-19, at 09:49 , Nick Coghlan wrote:
> On Thu, May 19, 2011 at 5:10 AM, Eric Smith wrote:
>> On 05/18/2011 12:16 PM, Stephen J. Turnbull wrote:
>>> Robert Collins writes:
>>>
>>> > Its probably too late to change, but please don't try to argue that
>>> > its correct: the continued conf
On 2011-05-19, at 11:25 , Łukasz Langa wrote:
> Wiadomość napisana przez Stefan Behnel w dniu 2011-05-19, o godz. 10:37:
>
>>> But why wouldn't "they" expect `b'de' + 1` to work as well in this case? If
>>> a 1-byte bytes is equivalent to an integer, why not an arbitrary one as
>>> well?
>>
>>
On 22 Jan 2009, at 12:42 , Nick Coghlan wrote:
Tino Wildenhain wrote:
g=(i for i in xrange(1000))[2:5]
g.next() # wrapper would now step 2 times w/o yield and 1 with
yield
2
g.next()
3
g.next()
4
g.next()
Traceback (most recent call last):
File "", line 1, in
StopIteration
as expecte
On 2011-08-12, at 12:58 , Antoine Pitrou wrote:
> Current protocol versions export object sizes for various built-in types
> (str, bytes) as 32-bit ints. This forbids serialization of large data
> [1]_. New opcodes are required to support very large bytes and str
> objects.
How about changing obje
On 2011-08-11, at 21:11 , Sturla Molden wrote:
>
> (b) another threading model (e.g. one interpreter per thread, as in Tcl,
> Erlang, or .NET app domains).
Nitpick: this is not correct re. erlang.
While it is correct that it uses "another threading model" (one could even say
"no threading model
On 2011-08-12, at 20:59 , Sturla Molden wrote:
> Den 12.08.2011 18:51, skrev Xavier Morel:
>> * Erlang uses "erlang processes", which are very cheap preempted *processes*
>> (no shared memory). There have always been tens to thousands to millions of
>> erlang p
On 2011-08-23, at 10:55 , Martin v. Löwis wrote:
>> - “The UTF-8 decoding fast path for ASCII only characters was removed
>> and replaced with a memcpy if the entire string is ASCII.”
>> The fast path would still be useful for mostly-ASCII strings, which
>> are extremely common (unless UTF-8 ha
On 2011-09-23, at 20:23 , Guido van Rossum wrote:
> Also, Ethan, I hope you're familiar with the reason why there is no
> range() support for floats currently? (Briefly, things like range(0.0,
> 0.8, step=0.1) could include or exclude the end point depending on
> rounding, which makes for troubleso
On 2011-09-28, at 13:24 , mar...@v.loewis.de wrote:
> The gcc that Apple ships with the Lion SDK (not sure what Xcode version that
> is)
Xcode 4.1
> I'm not aware of a work-around in the code. My work-around is to use gcc-4.0,
> which is still available on my system from an earlier Xcode installa
On 2011-09-28, at 19:49 , Martin v. Löwis wrote:
>
> Thanks for the advise - I didn't expect that Apple ships thhree compilers…
Yeah I can understand that, they're in the middle of the transition but Clang
is not quite there yet so...
___
Python-Dev mai
On 2011-09-29, at 12:07 , Victor Stinner wrote:
>
> * I disabled the merge GUI: I lose a lot of work because I'm unable to use a
> GUI to do merge, I don't understand what are the 3 versions of the same file
> (which one is the merged version!?)
Generally none. By default, mercurial (and most si
On 2011-09-29, at 12:50 , Victor Stinner wrote:
> Le 29/09/2011 12:34, Xavier Morel a écrit :
>> Generally none. By default, mercurial (and most similar tools) sets up
>> LOCAL, BASE and OTHER. BASE is the...
>
> Sorry, but I'm unable to remember the meaning of LOCAL,
On 2011-11-12, at 10:24 , Georg Brandl wrote:
> Am 12.11.2011 08:03, schrieb Stephen J. Turnbull:
>> Eli Bendersky writes:
>>
>>> special locale. It makes me wonder whether it's possible to have a
>>> contradiction in the ordering, i.e. have a set of names that just
>>> can't be sorted in any orde
On 2011-11-22, at 17:41 , Stephen J. Turnbull wrote:
> Barry Warsaw writes:
>> Hopefully, we're going to be making a dent in that in the next version of
>> Ubuntu.
>
> This is still a big mess in Gentoo and MacPorts, though. MacPorts
> hasn't done anything about ceating a transition infrastructur
On 2011-11-23, at 04:51 , Stephen J. Turnbull wrote:
> Xavier Morel writes:
>> On 2011-11-22, at 17:41 , Stephen J. Turnbull wrote:
>>> Barry Warsaw writes:
>
>>>> Hopefully, we're going to be making a dent in that in the next version of
>>>> Ubu
On 2011-11-24, at 21:55 , Nick Coghlan wrote:
> I've never been able to get the Create Patch button to work reliably with
> my BitBucket repo, so I still just run "hg diff -r default" locally and
> upload the patch directly.
Wouldn't it be simpler to just use MQ and upload the patch(es) from the se
On 2011-11-28, at 10:30 , Raymond Hettinger wrote:
> On Oct 24, 2011, at 5:58 AM, Ezio Melotti wrote:
> How about we agree that actually removing things is usually bad for users.
> It will be best if the core devs had a strong aversion to removal.
> Instead, it is best to mark APIs as obsolete with
On 2011-11-28, at 13:06 , Nick Coghlan wrote:
> On Mon, Nov 28, 2011 at 7:53 PM, Xavier Morel wrote:
>> Not being too eager to kill APIs is good, but giving rise to this kind of
>> living-dead APIs is no better in my opinion, even more so since Python has
>> lost one of th
On 2011-12-09, at 09:41 , Martin v. Löwis wrote:
>> a) The stdlib documentation should help users to choose the right tool
>> right from the start. Instead of using the totally misleading wording
>> that it uses now, it should be honest about the performance
>> characteristics of MiniDOM and should
On 2011-12-09, at 19:15 , Bill Janssen wrote:
> I use ElementTree for parsing valid XML, but minidom for producing it.
Could you expand on your reasons to use minidom for producing XML?
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.
On 2011-12-09, at 21:26 , Cedric Sodhi wrote:
> IF YOU THINK YOU MUST REPLY SOMETHING WITTY, ITERATE THAT THIS HAD BEEN
> DISCUSSED BEFORE, REPLY THAT "IT'S SIMPLY NOT GO'NNA HAPPEN", THAT "WHO
> DOESN'T LIKE IT IS FREE TO CHOOSE ANOTHER LANGUAGE" OR SOMETHING
> SIMILAR, JUST DON'T.
>
> Otherwise,
On 2011-12-10, at 12:14 , francis wrote:
>
> (I thing that 'go' has some
> autoformater or a standard way of formatting).
`gofmt` yes, it simply reformats all the code to match the style
decided by the core go team, it does not provide support formatting-
independent edition.
Think of it as pep8.
On 2011-12-11, at 23:03 , Martin v. Löwis wrote:
> People are still using PyXML, despite it's not being maintained anymore.
> Telling them to replace 4DOM with minidom is much more appropriate than
> telling them to rewrite in ET.
>From my understanding, Stefan's suggestion is mostly aimed at "new
On 2011-12-14, at 20:41 , Stefan Behnel wrote:
> I meant: "lack of interest in improving them". It's clear from the discussion
> that there are still users and that new code is still being written that uses
> MiniDOM. However, I would argue that this cannot possibly be performance
> critical cod
1 - 100 of 132 matches
Mail list logo