[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2011-11-21 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

Make the output of a complex expression include spaces around the operator. So, 
for example, (1+2j) should be outputted as (1 + 2j). Make this happen in Python 
3.3.

--
nosy: +gvanrossum
resolution: wont fix - remind
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2011-11-21 Thread Eric V. Smith

Eric V. Smith e...@trueblade.com added the comment:

I'm -1 on this change. I think all the core devs who have commented on it here 
are -1 or -0. If you really want to lobby for this change, I suggest starting a 
discussion on python-dev.

My position is that I think it would indeed look nicer, but the breakage 
doesn't justify the small improvement.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2011-11-21 Thread Eric Snow

Eric Snow ericsnowcurren...@gmail.com added the comment:

@eric.smith: +1

@Retro: If you are intent on pushing this, please take it to 
python-id...@python.org.  However, judging from the response in this ticket and 
#10562, you won't get much traction.

--
nosy: +eric.snow

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2011-11-21 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

@Retro, stop reopening bugs. This is very much a matter of personal taste and 
the existing way is fine.

--
resolution: remind - rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2011-11-20 Thread Boštjan Mejak

Changes by Boštjan Mejak bostjan.me...@gmail.com:


--
resolution: wont fix - remind
status: closed - open
versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2011-11-20 Thread Boštjan Mejak

Changes by Boštjan Mejak bostjan.me...@gmail.com:


--
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2011-11-20 Thread Boštjan Mejak

Changes by Boštjan Mejak bostjan.me...@gmail.com:


--
versions: +Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2011-11-20 Thread Eric V. Smith

Eric V. Smith e...@trueblade.com added the comment:

I'm not sure why this is being reopened. Unless there's been a discussion I'm 
not aware of, the change is still not worth the disruption it would cause.

And in any event, it can only be addressed in new (as yet unreleased) versions 
of python. It would never be implemented in any release before 3.3.

--
resolution: remind - wont fix
status: open - closed
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Boštjan Mejak

New submission from Boštjan Mejak bostjan.me...@gmail.com:

Python interpreter should put spaces around operators in return values of 
complex numbers. If you give it
 1 + 2j
it should return
(1 + 2j)
and not the current
(1+2j)

My argument is that complex numbers are written like this, with spaces 
surrounding operators. Wikipedia has multiple instances of the complex number 
writren, and it's x + yi (in our world it's x + yj but you get the point and 
you can see that there are spaces around the operator). Please fix the 
tokenizer to do the right thing.

--
components: IO
messages: 123324
nosy: Retro
priority: normal
severity: normal
status: open
title:  1 + 2j -- (1 + 2j) and not (1+2j)
versions: Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

I suggest closing this as 'won't fix' (or even the apostrophetically-challenged 
'wont fix').  I'll leave it open for a while to allow others to comment.

I have some sympathy for the idea: I also think that the str/repr of a complex 
number would look better with spaces (and without parentheses (and with 'i' in 
place of 'j'))).  I've always appreciated the fact that lists are printed in 
the form '[1, 2, 3]' rather than the less readable '[1,2,3]'.

But there's a big difference between 'it might have been better if ...' and 
'it's worth changing this'.  Tinkering with minor details like this from 
release to release just isn't worth the potential difficulties (however minor) 
caused to users as they have to adapt their code.  The current behaviour is 
perfectly serviceable.

P.S.  What's the tokenizer got to do with this?

--
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

I agree. It would be nice, but the impact on existing code is too large. I can 
easily imagine someone parsing the output of print(somecomplexnumber) and not 
considering spaces.

For the record, it would require changing complex.__repr__  (which is also 
complex.__str__) and complex.__format__.

Now that I look at the code, it seems that complex_format is only called from 
one place (complex_repr), with fixed parameters. It could be moved into 
complex_repr for what I think is a small improvement in readability.

--
nosy: +eric.smith

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

Please do the move to complex_repr if everything then works the same (i.e.
nothing breaks the build) if the readability is in fact improved. Also,
change the docs and fix the tests. You know the drill.

P.S.: (1+2j) is worth changing to become (1 + 2j) in the future (in Python
3.3 if not sooner?). Is it very hard to do this? It's worth changing this.
Reasons like 'Readability counts.' come into mind...

--
Added file: http://bugs.python.org/file19937/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___divPlease do the move to complex_repr if everything then works the same (i.e. 
nothing breaks the build) if the readability is in fact improved. Also, change 
the docs and fix the tests. You know the drill./divdivbr/div
divP.S.: (1+2j) is worth changing to become (1 + 2j) in the future (in Python 
3.3 if not sooner?). Is it very hard to do this? It#39;s worth changing this. 
Reasons like #39;Readability counts.#39; come into mind.../div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

There are no tests or docs to fix: it's an internal (static) helper function.

It's not a particularly straightforward change, because you're inserting a 
space into the middle of the floating point imaginary string. There would be 
extra bookkeeping and memory management going on.

But even if it were easy, I disagree that it's worth breaking existing usages 
of complex.__str__, .__repr__, and .__format__.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Removed file: http://bugs.python.org/file19937/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

-1 on the change.

Retro: would you mind stop sending HTML email to this tracker?  It creates 
unnamed attachments that are distracting.  Thanks in advance.

--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Okay, closing as 'wont fix'.

--
resolution:  - wont fix
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
components: +Interpreter Core -IO
type:  - feature request

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

Do you ever fix anything?

--
Added file: http://bugs.python.org/file19940/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___Do you ever fix anything?
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


Removed file: http://bugs.python.org/file19940/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10621] 1 + 2j -- (1 + 2j) and not (1+2j)

2010-12-04 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Not much: 
http://bugs.python.org/issue?%40search_text=ignore=file%3Acontenttitle=%40columns=titleid=%40columns=idstage=creation=creator=activity=%40columns=activity%40sort=activityactor=nosy=type=components=versions=dependencies=assignee=keywords=priority=%40group=prioritystatus=2%40columns=statusresolution=3nosy_count=message_count=%40pagesize=50%40startwith=0%40queryname=%40old-queryname=%40action=search

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com