[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Guido van Rossum
Guido van Rossum added the comment: This will not be fixed. For one thing, the letter 'i' or upper case 'I' look too much like digits. The way numbers are parsed either by the language parser (in source code) or by the built-in functions (int, float, complex) should not be localizable or conf

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Eric Snow
Eric Snow added the comment: @brian.curtin: +1 @Retro: as noted in #10621, please take this to python-id...@python.org -- nosy: +eric.snow ___ Python tracker ___ __

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Brian Curtin
Brian Curtin added the comment: Please stop re-opening this thread. The reasons it will not be fixed have been laid out. -- nosy: +brian.curtin -gvanrossum resolution: remind -> wont fix status: open -> closed ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Boštjan Mejak
Changes by Boštjan Mejak : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Boštjan Mejak
Changes by Boštjan Mejak : -- resolution: wont fix -> remind status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Boštjan Mejak
Boštjan Mejak added the comment: Please fix this in Python 3.3 and don't forget to fix the complex() function/method as well. -- ___ Python tracker ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: remind -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Boštjan Mejak
Boštjan Mejak added the comment: It's stupid that the imaginary unit in Python is denoted by a "j" just for ambiguity reasons that "i" can be mistaken with a "1" or an "l". It's true that "1" and "l" can look the same in some fonts, but that is *certainly not true* for the small letter "i".

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: While this thread was amusing to read, *changing* Python from the engineering notation to mathematical notation for imaginary numbers is not going to happen. 'i' has ambiguity problems relative to '1' and 'l' in too many fonts - 'j', on the other hand, almost a

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-20 Thread Boštjan Mejak
Boštjan Mejak added the comment: Come on, let's do this. -- resolution: wont fix -> remind status: closed -> open versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ __

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-20 Thread Boštjan Mejak
Boštjan Mejak added the comment: What's up with that now? Any interests in changing the imaginary unit from "j" to "i" ? -- ___ Python tracker ___ _

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-04 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file19929/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: -rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak added the comment: Parens are okay then. Still, put spaces around operators. If 1 + 2j let the output be (1 + 2j)Please!!! -- Added file: http://bugs.python.org/file19929/unnamed ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: mark.dickinson -> nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Eric Pruitt
Changes by Eric Pruitt : -- nosy: -ericpruitt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Adam Byrtek
Changes by Adam Byrtek : -- nosy: -adambyrtek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread James Eric Pruitt
James Eric Pruitt added the comment: > Also, why is the result put in parens? Without them, something like 'eval("100 * " + repr(imaginary))' would not work properly. -- nosy: +ericpruitt ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: -belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19928/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19927/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Alexander, is it possible to make an output like (1+2j) > be printed as (1 + 2j). Sure, and 'j' can be highlighted in red, but this is a job for a front-end or a custom display hook, not core python. You may want to take a look at ipython. > Also, wh

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak added the comment: Alexander, is it possible to make an output like (1+2j) be printed as (1 + 2j). Also, why is the result put in parens? -- Added file: http://bugs.python.org/file19928/unnamed ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Dec 3, 2010 at 11:57 AM, Boštjan Mejak wrote: .. > Indeed. There should be spaces around all the operators. Even in my posted > example. Aim higher: we obviously want Python output look beautiful in print, so operands should be surrounded by U+20

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak added the comment: Indeed. There should be spaces around all the operators. Even in my posted example. -- Added file: http://bugs.python.org/file19927/unnamed ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Adam Byrtek
Adam Byrtek added the comment: What happened with "there should be one-- and preferably only one --obvious way to do it"? -- nosy: +adambyrtek ___ Python tracker ___ __

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19925/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak added the comment: Please make the tokenizer surround spaces around operators. So the output would be like in the example below: (1 + 2j) (1 + 2j) -- Added file: http://bugs.python.org/file19925/unnamed ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file19923/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Éric Araujo
Éric Araujo added the comment: > I can't imagine what basis you'd have for calling either 1+2j or +1 a literal. Poor understanding of the parser/tokenizer/formal grammar. -- ___ Python tracker ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for that, Robert. Actually, I find those few results quite convincing as evidence that it would be useful to support 'i' (and 'I') on input. -- ___ Python tracker ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Robert Lehmann
Robert Lehmann added the comment: > I wonder whether there are many examples where scientific data is written in > a form that Python's complex() constructor couldn't currently read, but would > be able to read if it accepted 'i' in place of 'j'. I could not reproduce widespread real world is

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson added the comment: > > Maybe we need a complex analog to datetime.strptime: > > complex.strpcx('(3 + 4i)', '(%R + %Ii)') -> 3 + 4j That's a good idea. Perhaps we could also add a .strfcx() to do the formatting

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak added the comment: The result of 1 + 2j cannot be further broken down, so the result stays as 1 + 2j (note the spaces!). (1+2j) (1 + 2j) Following PEP 8 in this regard is also needed. Abandon the request of adding the i unit and rather fix this spacing issue. The complex() buil

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Georg Brandl
Georg Brandl added the comment: An imaginary basis maybe? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Mark Dickinson
Mark Dickinson added the comment: > Whether 1+2j is a literal or an expression is debatable. Really? I can't imagine what basis you'd have for calling either 1+2j or +1 a literal. -- ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- Removed message: http://bugs.python.org/msg123187 ___ Python tracker ___ ___ Python-bugs-list mai

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- Removed message: http://bugs.python.org/msg123186 ___ Python tracker ___ ___ Python-bugs-list mai

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: And of course, roundup ate my work. The tokenize incantation was >>> pprint(list(tokenize(iter([b'1+1j']).__next__))) -- ___ Python tracker ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Dec 2, 2010 at 11:49 PM, Éric Araujo wrote: .. > Whether 1+2j is a literal or an expression is debatable. > I think +1 is an expression but 1+2j is a literal; neither should have a >space. With respect to implementation there is no debate: [Tok

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Dec 2, 2010 at 11:49 PM, Éric Araujo wrote: .. > Whether 1+2j is a literal or an expression is debatable. > I think +1 is an expression but 1+2j is a literal; neither should have a >space. With respect to implementation there is no debate: [Tok

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: Whether 1+2j is a literal or an expression is debatable. I think +1 is an expression but 1+2j is a literal; neither should have a space. I’m not sure the language reference and the actual implementation are in agreement here (I have peephole optimizations in mi

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file19914/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: (7.8064-6j) According to PEP 8, the output in our example should be with spaces surrounding the subtraction operator, like this: >>> (1 + 2.56j) * (-1 - 3.44j) (7.8064 - 6j) -- Added file: http://bugs.python.org/file19914/unnamed _

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 02 décembre 2010 à 22:29 +, Mark Dickinson a écrit : > Mark Dickinson added the comment: > > Maybe we need a complex analog to datetime.strptime: > > complex.strpcx('(3 + 4i)', '(%R + %Ii)') -> 3 + 4j How about '3 + 4i'.transform('complex')?

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: Maybe we need a complex analog to datetime.strptime: complex.strpcx('(3 + 4i)', '(%R + %Ii)') -> 3 + 4j -- ___ Python tracker ___ __

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: That would be a good question for a numpy/scipy-related mailing list, I guess. -- ___ Python tracker ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: > Personally, I think it's more important to be able to read > scientific data easily without too many problems, then to be > able to write the processed data in exactly the same way it > was read. I wonder whether there are many examples where scientific data

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson added the comment: > > In all seriousness, the idea of accepting both 'i' and 'j' in complex() isn't > horrible. I'm personally -0.small on it, mostly because it seems likely to > lead to more objections about th

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: In all seriousness, the idea of accepting both 'i' and 'j' in complex() isn't horrible. I'm personally -0.small on it, mostly because it seems likely to lead to more objections about the complex str() and repr() *output* containing 'j's. I still think python

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson added the comment: > >> There should be an environment variable to make the symbol settable. > > That could work; it's a bit late to do this in 3.2, though. How about the > following transition strategy for the

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Can you now implement the letter 'i' to act as an > imaginary unit? Is that possible? Yes, it's possible; however, the developers do not think it is worthwhile. > If it's possible in MATLAB, why not have both 'j' and 'i' > in Python as well? Python doe

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: Sure. I have personally written software where i denotes, in effect, an electrical current. -- ___ Python tracker ___ _

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Brian Curtin
Brian Curtin added the comment: yes -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19912/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19911/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19910/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19908/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: "In electrical engineering and related fields, the imaginary unit is often denoted by *j* to avoid confusion with electrical current as a function of time, t

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: I heard that MathWorks has a patent on METHOD AND APPARATUS FOR IMAGINATORIAL FREEDOM, so if that's true we might not be allowed to implement it. -- ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: How did you implement the letter 'j' as the imaginary unit? Can you now implement the letter 'i' to act as an imaginary unit? Is that possible? If it's possible in MATLAB, why not have both 'j' and 'i' in Python as well? -- Added file: http://bugs.pytho

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Brian Curtin
Brian Curtin added the comment: Will PYTHONIMAGINARYPERMUTATIONDIR accept imaginary numbers? If so, we will also need PYTHONIMAGINARYPERMUTATIONDIRIMAGINARYIDENTIFIER. -- nosy: +brian.curtin ___ Python tracker __

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Since we have two distinct user groups (engineers and everyone else), it's clear that we should fork Python. That would let each group work with their on most-natural-representation and it would prevent unnecessary configuration challenges. Benjamin, cou

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Since the conventional mathematical symbols for the additional > imaginary units of quaternions are j and k, confusion is bound to > happen. > > My preferred solution is to limit PYTHONIMAGINARYSYMBOL values to "i", > "j" or "k" in Python 3.4. The two additi

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: We also should consider a good roadmap to account for the eventual support of quaternions in the language syntax. Since the conventional mathematical symbols for the additional imaginary units of quaternions are j and k, confusion is bound to happen. My prefer

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: That is acceptable, but way to slow for the 'j' imaginary unit to become extinct. It should happen sooner. -- Added file: http://bugs.python.org/file19910/unnamed ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: > There should be an environment variable to make the symbol settable. That could work; it's a bit late to do this in 3.2, though. How about the following transition strategy for the complex output. Python 3.3: Introduce PYTHONIMAGINARYSYMBOL environment va

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: If this change were important, the numpy/scipy guys would have requested it long ago. Any possible benefit would be slight and not at all worth the disruption. s.replace('j', 'i') -- nosy: +rhettinger ___ P

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: The imaginary unit 'i' should be equvivalent to the imaginary unit 'j'. The imaginary unit, however, should be used consistently in the source code. -- Added file: http://bugs.python.org/file19908/unnamed ___ Python

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file19860/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: (and perhaps a ResourceWarning if you choose something different from i and j) -- ___ Python tracker ___ __

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: There should be an environment variable to make the symbol settable. $ PYTHONIMAGINARYSYMBOL=i python -c "import cmath; print(cmath.sqrt(-1))" 1i -- nosy: +pitrou ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Boštjan Mejak
Boštjan Mejak added the comment: It would be great if the feature of having both j and i would exist in the interpreter core, as well as the built-in function complex() to accept i. -- Added file: http://bugs.python.org/file19860/unnamed ___ Python

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 28, 2010 at 3:58 PM, Mark Dickinson wrote: .. > I'd expect to allow complex('3 + 4i') as well. And with spaces surrounding '+' too. -- ___ Python tracker _

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Mark Dickinson
Mark Dickinson added the comment: > Why not allow complex('1i')? Indeed, if 4i were permitted as an imaginary literal, I'd expect to allow complex('3 + 4i') as well. (And possible just plain complex('i') too, since complex('j') is currently allowed. Grr.) -- __

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Mark Dickinson
Mark Dickinson added the comment: > It would be a welcome feature in Python if the programming language > would, like MATLAB, associate both i and j with the imaginary unit. I suggest taking this to the python-ideas mailing list. A working patch might increase the idea's chances. --

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Why not allow complex('1i')? (Tongue in cheek: I am really looking for arguments against lax parsing in number builtins. See issue 10557.) -- nosy: +belopolsky ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19858/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Boštjan Mejak
Boštjan Mejak added the comment: "The Python programming language also uses j to denote the imaginary unit. MATLAB associates both i and j with the imaginary unit." -Wikipedia It would be a welcome feature in Python if the prog

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Mark Dickinson
Mark Dickinson added the comment: Just to add my own thoughts: 'j' for *a* (not *the* ) square root of -1 has, as Michael points out, a history of use in engineering (particularly electrical engineering) and physics. Personally, I would have preferred 'i' to 'j' here, but changing it now wo

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Mark Dickinson
Mark Dickinson added the comment: Glad to oblige. :-) -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ P

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Michael Foord
Michael Foord added the comment: We follow engineering which uses j. (I was about to close this as wontfix but Antoine is particularly keen that Mark deals with this issue...) -- nosy: +michael.foord ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> mark.dickinson nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Boštjan Mejak
New submission from Boštjan Mejak : In Python, the letter 'j' denotes the imaginary unit. It would be great if we would follow mathematics in this regard and let the imaginary unit be denoted with an 'i'. -- components: Interpreter Core messages: 122662 nosy: Retro priority: normal sev