Le mercredi 30 avril 2014 20:48:48 UTC+2, Tim Chase a écrit :
On 2014-04-30 00:06, wxjmfa...@gmail.com wrote:
@ Time Chase
I'm perfectly aware about what I'm doing.
Apparently, you're quite adept at appending superfluous characters to
sensible strings...did you benchmark
Terry Reedy wrote:
For the most part, there are no bears within a mile of the North Pole
either. they are rare north of 88° (ie, 140 miles from pole).
https://en.wikipedia.org/wiki/Polar_bears
They mostly hunt in or near open water, near the coastlines.
The way things are going, the coastline
2014-05-01 3:57 GMT+02:00 Chris Angelico ros...@gmail.com:
On Thu, May 1, 2014 at 9:46 AM, Ian Kelly ian.g.ke...@gmail.com wrote:
It also works if your starting point is (precisely) the north pole. I
believe that's the canonical answer to the riddle, since there are no
bears in Antarctica.
In article ljsghc$65b$1...@speranza.aioe.org,
Mark H Harris harrismh...@gmail.com wrote:
Absolutely, snort. I still have my KE (Keuffel Esser Co. N.Y.);
made of wood... (when ships were wood, and men were steel, and sheep ran
scared) ... to get to the S L T scales I have to pull the
Hi:
I am trying to run the simple helloworld script from the IDLE shell. I want to
pass it arguments. Please can you give me the syntax to do it?
Thanks, Sam
--
https://mail.python.org/mailman/listinfo/python-list
On 5/1/14 10:34 AM, s71murfy wrote:
I am trying to run the simple helloworld script from the IDLE shell. I want to
pass it arguments. Please can you give me the syntax to do it?
There are several ways to do this, depending on your preferences and
goals. Is the helloworld script the tk
On 5/1/14 11:02 AM, Mark H Harris wrote:
file hello.py===
def Hello(parms list):
whatever
whatever
From IDLE:
import hello
hello.Hello([1, 2, 3, 4])
Sorry, almost forgot, if you 'run' the module hello.py (with the IDLE
run dropdown) then the 'hello'
On 04/30/2014 11:21 AM, Grant Edwards wrote:
On 2014-04-29, emile em...@fenx.com wrote:
On 04/29/2014 01:16 PM, Adam Funk wrote:
A man pitches his tent, walks 1 km south, walks 1 km east, kills a
bear, walks 1 km north, where he's back at his tent. What color is
the bear? ;-)
From how
On Thu, 01 May 2014 09:34:35 -0700, emile wrote:
On 04/30/2014 11:21 AM, Grant Edwards wrote:
On 2014-04-29, emile em...@fenx.com wrote:
On 04/29/2014 01:16 PM, Adam Funk wrote:
A man pitches his tent, walks 1 km south, walks 1 km east, kills a
bear, walks 1 km north, where he's back at
On Mon, Apr 28, 2014, at 4:57, wxjmfa...@gmail.com wrote:
Python 3:
- It missed the unicode shift.
- Covering the whole unicode range will not make
Python a unicode compliant product.
Please cite exactly what portion of the unicode standard requires
operations with all characters to be
On Thursday, May 1, 2014 10:30:43 AM UTC+5:30, Steven D'Aprano wrote:
On Tue, 29 Apr 2014 21:53:22 -0700, Rustom Mody wrote:
On Tuesday, April 29, 2014 11:29:23 PM UTC+5:30, Tim Chase wrote:
While I dislike feeding the troll, what I see here is:
Since its Unicode-troll time, here's my
Maybe something like this?
to_num = lambda array: np.sum(array * 2**np.arange(len(array)-1, -1,
-1))
to_num(np.array([1,0,1,0]))
10
2014-04-29 17:42 GMT+02:00 Tom P werot...@freent.dd:
On 28.04.2014 15:04, mboyd02...@gmail.com wrote:
I have a numpy array consisting of 1s and zeros for
On May 1, 2014, at 12:16 AM, Mark H Harris harrismh...@gmail.com wrote:
On 4/30/14 10:56 PM, Paul Rubin wrote:
There is a nice Javascript simulation of the N4-ES here:
http://www.antiquark.com/sliderule/sim/n4es/virtual-n4es.html
Thank you!
The N4-ES and the N4-T (mine) are
On 01/05/2014 02:50, Steven D'Aprano wrote:
On Thu, 01 May 2014 01:49:25 +0100, Steve Simmons wrote:
html
head
meta content=text/html; charset=UTF-8 http-equiv=Content-Type
/head
body bgcolor=#FF text=#00
br
div class=moz-cite-prefixOn 30/04/2014 23:49, Fabio
Hello,
I am trying to use python (2.6.6) to read a jar file that contains python
files. I'm simply setting PYTHONPATH=
spark-assembly-1.0.0-SNAPSHOT-hadoop2.4.0.jar. Unfortunately it fails to read
the python files from the jar file and if run in verbose mode just shows:
import zipimport #
On 05/01/2014 05:56 AM, Roy Smith wrote:
In article ljsghc$65b$1...@speranza.aioe.org,
Mark H Harris harrismh...@gmail.com wrote:
Absolutely, snort. I still have my KE (Keuffel Esser Co. N.Y.);
made of wood... (when ships were wood, and men were steel, and sheep ran
scared) ... to get
On 2014-05-01, Terry Reedy wrote:
On 4/30/2014 7:46 PM, Ian Kelly wrote:
It also works if your starting point is (precisely) the north pole. I
believe that's the canonical answer to the riddle, since there are no
bears in Antarctica.
For the most part, there are no bears within a mile of
On 2014-05-01, Dennis Lee Bieber wrote:
On Tue, 29 Apr 2014 20:42:33 -0400, Roy Smith r...@panix.com declaimed the
following:
In article mailman.9594.1398818045.18130.python-l...@python.org,
Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
(one reason slide-rules were acceptable for so long
On 2014-04-30, Ethan Furman wrote:
Wow. It's amazing how writing something down, wrongly (I originally had
north and south reversed), correcting it,
letting some time pass (enough to post the message so one can be properly
embarrassed ;), and then rereading it later
can make something
On 2014-05-01, Larry Hudson wrote:
On 05/01/2014 05:56 AM, Roy Smith wrote:
For those who have no idea what we're talking about, take a look at
http://www.ted.com/talks/clifford_stoll_on_everything. If you just want
to see what you do with a slide rule, fast forward to 14:20, but you
On 01/05/2014 21:57, Adam Funk wrote:
On 2014-05-01, Terry Reedy wrote:
On 4/30/2014 7:46 PM, Ian Kelly wrote:
It also works if your starting point is (precisely) the north pole. I
believe that's the canonical answer to the riddle, since there are no
bears in Antarctica.
For the most
On 5/1/2014 2:04 PM, Rustom Mody wrote:
Since its Unicode-troll time, here's my contribution
http://blog.languager.org/2014/04/unicode-and-unix-assumption.html
I will not comment on the Unix-assumption part, but I think you go wrong
with this: Unicode is a Headache. The major headache is
On 5/1/2014 3:49 PM, Tom Graves wrote:
Hello,
I am trying to use python (2.6.6) to read a jar file that contains
python files. I'm simply setting
PYTHONPATH=spark-assembly-1.0.0-SNAPSHOT-hadoop2.4.0.jar.
Unfortunately it fails to read the python files from the jar file and
if run in verbose
On 2014-05-01 23:38, Terry Reedy wrote:
On 5/1/2014 2:04 PM, Rustom Mody wrote:
Since its Unicode-troll time, here's my contribution
http://blog.languager.org/2014/04/unicode-and-unix-assumption.html
I will not comment on the Unix-assumption part, but I think you go wrong
with this: Unicode
Our project is using setuptools to compile. I noticed that by default
python setup.py build
will create .pyc files which I assume are archived into the egg file. I do not
know yet how to verify what is in the egg file.
I tried using
python setup.py build_py -O1
python setup.py install --user
On Friday, May 2, 2014 5:03:21 AM UTC+5:30, MRAB wrote:
On 2014-05-01 23:38, Terry Reedy wrote:
On 5/1/2014 2:04 PM, Rustom Mody wrote:
Since its Unicode-troll time, here's my contribution
http://blog.languager.org/2014/04/unicode-and-unix-assumption.html
I will not comment on the
On Friday, May 2, 2014 4:08:35 AM UTC+5:30, Terry Reedy wrote:
On 5/1/2014 2:04 PM, Rustom Mody wrote:
Since its Unicode-troll time, here's my contribution
http://blog.languager.org/2014/04/unicode-and-unix-assumption.html
I will not comment on the Unix-assumption part, but I think you go
Rustom Mody rustompm...@gmail.com writes:
Yes, the headaches go a little further back than Unicode.
Okay, so can you change your article to reflect the fact that the
headaches both pre-date Unicode, and are made much easier by Unicode?
There is a certain large old book...
Ah yes, the
On Friday, May 2, 2014 7:59:55 AM UTC+5:30, Rustom Mody wrote:
Why should I pay more for a EURO sign than a $ sign?
A unicode 'headache' there:
I typed the Euro sign (trying again € ) not EURO
Somebody -- I guess its GG in overhelpful mode -- converted it
And made my post:
Content-Type:
On Friday, May 2, 2014 8:09:44 AM UTC+5:30, Ben Finney wrote:
Rustom Mody writes:
Yes, the headaches go a little further back than Unicode.
Okay, so can you change your article to reflect the fact that the
headaches both pre-date Unicode, and are made much easier by Unicode?
Predate: Yes
On Fri, May 2, 2014 at 12:29 PM, Rustom Mody rustompm...@gmail.com wrote:
Here is an instance of someone who would like a certain optimization to be
dis-able-able
https://mail.python.org/pipermail/python-list/2014-February/667169.html
To the best of my knowledge its nothing to do with
On Thu, 01 May 2014 18:38:35 -0400, Terry Reedy wrote:
strange beasties like python's FSR
Have you really let yourself be poisoned by JMF's bizarre rants? The FSR
is an *internal optimization* that benefits most unicode operations that
people actually perform. It uses UTF-32 by default but
On Friday, May 2, 2014 8:31:56 AM UTC+5:30, Chris Angelico wrote:
On Fri, May 2, 2014 at 12:29 PM, Rustom Mody wrote:
Here is an instance of someone who would like a certain optimization to be
dis-able-able
https://mail.python.org/pipermail/python-list/2014-February/667169.html
To the
Can't help but feed the troll... forgive me.
On 04/28/2014 02:57 AM, wxjmfa...@gmail.com wrote:
Python 2.7 + cp1252:
- Solid and coherent system (nothing to do with the Euro).
Except that cp1252 is not unicode. Perhaps some subset of unicode can
be encoded into bytes using cp1252. But if it
On 5/1/2014 7:33 PM, MRAB wrote:
On 2014-05-01 23:38, Terry Reedy wrote:
On 5/1/2014 2:04 PM, Rustom Mody wrote:
Since its Unicode-troll time, here's my contribution
http://blog.languager.org/2014/04/unicode-and-unix-assumption.html
I will not comment on the Unix-assumption part, but I
On Friday, May 2, 2014 9:46:36 AM UTC+5:30, Terry Reedy wrote:
On 5/1/2014 7:33 PM, MRAB wrote:
On 2014-05-01 23:38, Terry Reedy wrote:
On 5/1/2014 2:04 PM, Rustom Mody wrote:
Since its Unicode-troll time, here's my contribution
On Fri, May 2, 2014 at 2:42 PM, Rustom Mody rustompm...@gmail.com wrote:
Unicode consortium's going from old BMP to current (6.0) SMPs to
who-knows-what
in the future is similar.
Unicode 1.0: Let's make a single universal character set that can
represent all the world's scripts. We'll define
On 5/1/2014 10:29 PM, Rustom Mody wrote:
Here is an instance of someone who would like a certain optimization to be
dis-able-able
https://mail.python.org/pipermail/python-list/2014-February/667169.html
To the best of my knowledge its nothing to do with unicode or with jmf.
Right. Ned has an
Stefan Behnel added the comment:
Works for me in 3.2 and 3.4, fails in 2.7, as reported.
I'll leave it to Eli to decide if this should get fixed in 2.7. In Py2, ET and
cET were different modules, so this could also be considered a missing feature
in cET. Given that it leads to a serialisation
Stefan Behnel added the comment:
Ah, sorry, actually, it does not work in Py3.2:
import xml.etree.cElementTree as cET
root = cET.Element('root', attrib={'Name':'Root'})
child = cET.SubElement(root, 'child', attrib={'Name':'Child'})
cET.tostring(root)
b'root attrib={\'Name\': \'Root\'}child
Stefan Behnel added the comment:
According to issue 1572710, this is not a bug. The attrib argument is
supposed to be a positional argument, not a keyword argument. This makes sense,
given that arbitrary keyword arguments are accepted for additional XML
attributes.
--
New submission from Roman Inflianskas:
It's really useful that python 3 allows me to use some Unicode symbols (as
specified in
https://docs.python.org/3.4/reference/lexical_analysis.html#identifiers),
especially Greek symbols for mathematical programs. But when I write
mathematical program
STINNER Victor added the comment:
Never rely on the GC. Avoid cycles by using the weakref module.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21351
___
akira added the comment:
I've changed test_newlines to work also with Python io implementation.
I've updated the patch.
Note: tests use 10 seconds timeouts: I don't know how long it should take to
read back a line from a subprocess so that the timeout would indicate a
deadlock.
--
akira added the comment:
I've uploaded the patch that makes C implementation behave according
to the docs like Python implementation with the corresponding tests.
Issue #21332 is a dependency for this issue: subprocess'
test_universal_newlines needs to be updated to work with Python version.
Jesús Cea Avión added the comment:
OK, you did your homework.
I checked PyObject_Is_True() function and I agree. This actually looks like a
leak when True/False were added to Python. Python3 is inheriting it :-).
OK.
I see three issues in the code:
a) You are getting a key from the
Yinon Ehrlich added the comment:
Use the 'abspath' shortcut instead of 'os.path.abspath'
See the attached patch (sorry, forgot to attach before)
--
keywords: +patch
Added file: http://bugs.python.org/file35126/shutil.patch
___
Python tracker
Steven D'Aprano added the comment:
3.1, 3.2, 3.3 and 3.4 are all in feature-freeze, so this is only an option for
3.5.
A very tentative +1 on this feature. But I fear it may need to be discussed on
python-ideas first.
--
nosy: +steven.daprano
type: - enhancement
versions: -Python
Eric V. Smith added the comment:
Wouldn't it be better to switch uses of abspath to be os.path.abspath? os.path
is used elsewhere in the file, after all.
Brett added from os.path import abspath in
http://hg.python.org/cpython/rev/686e5d38be42 but I think that import should be
deleted and
Changes by Eric V. Smith e...@trueblade.com:
--
stage: - patch review
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21391
___
Antoine Pitrou added the comment:
Actually, the test hangs after one of the threads crashes:
test__all__ (test.test_poplib.TestPOP3_SSLClass) ... Exception in thread
Thread-23:
Traceback (most recent call last):
File /home/antoine/cpython/default/Lib/threading.py, line 920, in
Lars Gustäbel added the comment:
Let me present for discussion a proposal (and a patch with documentation) with
an approach that is a little different, but in my opinion the most effective. I
hope that it will appeal to all involved.
My proposal consists of a new class SafeTarFile, that is a
New submission from Antoine Pitrou:
Many constants in the socket module, are not int enums. Examples are
socket.CAN_BCM, socket.BTPROTO_RFCOMM, etc.
For example when creating a bluetooth socket, you may get the following repr():
socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM,
Antoine Pitrou added the comment:
I think python-dev or python-ideas should indeed be consulted before.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21405
___
Lars Gustäbel added the comment:
tarfile.open() actually supports a compress_level argument for gzip and bzip2
and a preset argument for lzma compression.
--
nosy: +lars.gustaebel
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Thanks! The latest patch looks fine to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21377
___
___
Roundup Robot added the comment:
New changeset 4ed1b6c7e2f3 by Antoine Pitrou in branch 'default':
Issue #21377: PyBytes_Concat() now tries to concatenate in-place when the first
argument has a reference count of 1.
http://hg.python.org/cpython/rev/4ed1b6c7e2f3
--
nosy: +python-dev
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21377
___
Roman Inflianskas added the comment:
I'm sorry, I didn't now that bugtracker is not for features discussing. I'll
wrote the letter to the python-ideas:
https://groups.google.com/forum/#!topic/python-ideas/yjR7j9TSFeE
--
___
Python tracker
Changes by Stefan Krah stefan-use...@bytereef.org:
--
assignee: skrah
components: Extension Modules
nosy: skrah
priority: normal
severity: normal
status: open
title: Add function signatures to _decimal
type: enhancement
versions: Python 3.5
___
New submission from Roundup Robot:
New changeset 40b06a75d1c6 by Stefan Krah in branch 'default':
Issue #21407: _decimal now supports function signatures.
http://hg.python.org/cpython/rev/40b06a75d1c6
--
nosy: +python-dev
___
Python tracker
Stefan Krah added the comment:
Okay, thanks. I've used $cls for Decimal.from_float in 40b06a75d1c6,
and it appears to work already.
Feel free to close the issue (I don't know whether AC emits $cls or
if it should).
--
___
Python tracker
Changes by Stefan Krah stefan-use...@bytereef.org:
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21407
___
New submission from Jean-Paul Calderone:
$ ~/Projects/cpython/3.4/python -c '
class Foo(object):
def __ne__(self, other):
return yup
def __eq__(self, other):
return nope
class Bar(object):
pass
print(object() != Foo(), object() == Foo())
print(Bar() !=
Benjamin Peterson added the comment:
That's because the implicit default __ne__ on Bar returns the opposite of
__eq__.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21408
Changes by Brett Cannon br...@python.org:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21400
___
___
Python-bugs-list
Brett Cannon added the comment:
Unfortunately it's impossible to warn against this in Python 2 since the bytes
type is just another name for the str type:
str == bytes
True
type(b'1')
type 'str'
What we could potentially do, though, is change things such that -3 does what
you are after
Sworddragon added the comment:
Could it be that compress_level is not documented?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21404
___
___
Lars Gustäbel added the comment:
That's right. But it is there.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21404
___
___
Python-bugs-list
Sworddragon added the comment:
Then this one is easy: The documentation needs just an update. But then there
is still zipfile that doesn't provide (or at least document) a compression
level.
--
___
Python tracker rep...@bugs.python.org
Joshua J Cogliati added the comment:
Hm. That is a good point. Possibly it could only be done when
from __future__ import unicode_literals
has been used. For example:
python2 -3
Python 2.7.5 snip
Type help, copyright, credits or license for more information.
type(ba) == type(a)
True
from
Santoso Wijaya added the comment:
There is still a matter of inconsistency between the two implementations and
between 2.7 and 3.x. IMO, the Python-based ElementTree implementation is more
graceful at handling the attrib argument.
The signature of the factory function Element (and SubElement)
Santoso Wijaya added the comment:
Quoting dabrahams in issue 1572710:
On second thought, I see what effbot is trying to say... but it's still a bug.
Given the way the interface is declared and the behavior of regular python
functions:
Element(tag, attrib={}, **extra)
indicates that I can
Stefan Behnel added the comment:
Note that this has been fixed in Py3 already (Py3.3, I guess). The only
question is whether the behaviour will be changed in Py2.7.
--
components: -XML
___
Python tracker rep...@bugs.python.org
Eli Bendersky added the comment:
Note that this has been fixed in Py3 already (Py3.3, I guess). The only
question is whether the behaviour will be changed in Py2.7.
I don't think this issue is acute enough to warrant fixes in 2.7; however,
a documentation patch would be welcome.
--
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Devguide
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21400
___
___
Charles-François Natali added the comment:
Enum are for, well, enumerated values, so for values within a finite
and known range (like days, cards, etc).
OTOH, I'm not sure all socket constants could be categorized like this.
It makes sense for address families, especially since they're used so
David Watson added the comment:
On Mon 28 Apr 2014, Jim Jewett wrote:
pinging David Watson: What is the status? If I understand correctly, (and I
may well not), you have already opened other issues for parts of this, and
(only) the final patch is ready for patch (and hopefully) commit
R. David Murray added the comment:
This is why we should have had named constants and not Enums :)
But no, nothing in the python Enum implementation restricts it to a value
*range*. It is really a collection of named constants.
--
nosy: +r.david.murray
Charles-François Natali added the comment:
But no, nothing in the python Enum implementation restricts it to a value
*range*. It is really a collection of named constants.
I didn't say in the implementation, I said in spirit.
Would you describe all possible Unix PIDs are a Enum?
Also, the
Antoine Pitrou added the comment:
It makes sense for address families, especially since they're used so
much, but when it comes to e.g. SO_REUSEADDR or BTPROTO_RFCOMM,
Hmm, I was thinking mostly about protocol numbers. All the BTPROTO_* constants
should be part of a given enum
Charles-François Natali added the comment:
To put it slightly differently:
AF_XXX constant actually whome belong to the same namespace, the
socket address family namespace.
So we put them all in AddressFamily Enum.
Now, for many constants defined in system header files, it's not so
clear, e.g.
Antoine Pitrou added the comment:
Ah, I missed the fact that the family and type properties are re-computed
on the fly; I thought the enum values where stored on the socket object.
Then it makes it harder to do the same for proto, since there are
family-specific namespaces with colliding
New submission from Jeff Hinrichs:
python setup.py check
python setup.py check --restructuredtext
both incorrectly warn and don't Fail for things that will cause a failure
when uploading to pypi. This is wrong.
Additionally, they should return a non 0 exit code so they can be used as part
Jeff Hinrichs added the comment:
example:
(dhp)jlh@jlh-d520:~/Projects/dhp/src$ python setup.py check
running check
(dhp)jlh@jlh-d520:~/Projects/dhp/src$ python setup.py check --restructuredtext
running check
warning: check: Title underline too short. (line 2)
warning: check: Could not finish
New submission from Jeff Hinrichs:
if you run
setup.py check --restructuredtext
without docutils installed, it will appear to pass
if you add the -s flag, it will error and inform you that docutils is not
installed.
So nothing is reported and return results are the same as a passing
New submission from Zachary Ware:
Python 3.4 and 3.5 both compile without warnings on 32-bit Windows, so we
should turn on Treat Warning as Error (/WX option to cl.exe). Setting that
property in pyproject.props sets it for all projects, and the setting does not
affect Makefile projects so
New submission from John Beck:
I am porting Python 3.4.0 to Solaris 12. The Makefile I inherited from my
predecessor had --without-pymalloc as an option to be passed to configure.
Curious why, I removed this line, only to find that after python was built, it
core dumped:
Stefan Krah added the comment:
On SPARC/suncc the flags in http://bugs.python.org/issue15963#msg170661
appear to work.
Also, we have several Solaris build slaves that don't core dump.
Some are offline, but you can click through to the ./configure
steps of past builds to see the build flags.
Stefan Krah added the comment:
Hmm... perhaps Stefan would like to set something up?
Being a correctness tool hipster, of course I already have the latest toy. :)
The patch works on Debian 64-bit + clang.
I can set up a VM. We may have to react quickly to some of the issues.
Then again,
Yury Selivanov added the comment:
Yeah, I'm closing this issue.
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21399
___
Josh Rosenberg added the comment:
Why would an subclass of object that doesn't redefine either __eq__ or __ne__
have a different behavior for inequality than object itself? Bar never defined
__eq__, so it shouldn't have an implicit __ne__ any more than object itself
does...
Saying that Bar
Charles-François Natali added the comment:
Being a correctness tool hipster, of course I already have the latest toy. :)
The patch works on Debian 64-bit + clang.
Thanks for testing it.
I'll leave a few days more in case anyone has a comment, and I'll commit.
I can set up a VM.
That
Benjamin Peterson added the comment:
The reason ``object() != Foo()`` works is that Foo is a subtype of object(),
so the specialized __ne__ of Foo is called immediately without trying
object.__ne__.
I don't know whether it's a bug.
--
___
Python
R. David Murray added the comment:
I don't think it's a bug. The subclass-goes-first behavior is very
intentional. The implicit __ne__ returning the boolean inverse of __eq__ is
what fooled me when I looked at it.
Or did you mean that following the subclass rule in the case where object is
Benjamin Peterson added the comment:
The subclass behavior is a red herring.
I meant maybe object.__ne__ should check if the other object has a __ne__
method before falling back on ``not object.__eq__()``.
--
___
Python tracker
Changes by Shawn binarycrusa...@gmail.com:
--
nosy: +swalker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21412
___
___
Python-bugs-list mailing
R. David Murray added the comment:
Oh, I see. Yes, that would seem more consistent.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21408
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21412
___
___
Python-bugs-list mailing list
Jesús Cea Avión added the comment:
What compiler are you using?.
I compile fine on Solaris with GCC.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21412
___
1 - 100 of 115 matches
Mail list logo