Re: [PATCH] hg-to-git: add --verbose option

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] hg-to-git: add --verbose option

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:39

"Sverre Rabbelier" [off-list ref] writes:
On Mon, May 26, 2008 at 3:14 PM, Johannes Schindelin
[off-list ref] wrote:
quoted
Now, that is not even funny, as that was my initial version, and Python
complained about not knowing "false".
That is because in python the keyword is "False" (note the capital 'F').
I too write True/False in my recent Python code, but I vaguely recall they
were relatively new to the language.  I think it was 2.3 which is probably
5 years old by now, so if that is the case we probably are safe (and they
are used in p4import anyway).

I think I spotted a bug in Python documentation, by the way ;-)

http://docs.python.org/ref/ref.html does not even list "True" and "False"
in its section 2.4 (Literals) yet, and that document is for version 2.5.2.

Re: [PATCH] hg-to-git: add --verbose option

From: David Symonds <hidden>
Date: 2016-06-15 22:44:39

On Tue, May 27, 2008 at 3:19 AM, Junio C Hamano [off-list ref] wrote:
I think I spotted a bug in Python documentation, by the way ;-)

http://docs.python.org/ref/ref.html does not even list "True" and "False"
in its section 2.4 (Literals) yet, and that document is for version 2.5.2.
That's because they aren't literals. They are, in fact, objects, and
redefinable objects at that.

Try:

True=False
print True



Dave.

Re: [PATCH] hg-to-git: add --verbose option

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:39

Hi,

On Tue, 27 May 2008, David Symonds wrote:
On Tue, May 27, 2008 at 3:19 AM, Junio C Hamano [off-list ref] wrote:
quoted
I think I spotted a bug in Python documentation, by the way ;-)

http://docs.python.org/ref/ref.html does not even list "True" and 
"False" in its section 2.4 (Literals) yet, and that document is for 
version 2.5.2.
That's because they aren't literals. They are, in fact, objects, and 
redefinable objects at that.

Try:

True=False
print True
Hey, I said that I had to code in Python until I do not hate it anymore!

You just made that task harder.

Thanks,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help