Python Forum
Should Python support i suffix for complex numbers as well as j ?
Poll: What prefix should complex numbers use?
You do not have permission to vote in this poll.
No, using j alone is fine.
100.00%
3 100.00%
Yes, we should support both i and j.
0%
0 0%
We should support i and deprecate using j.
0%
0 0%
What's a complex number?
0%
0 0%
What's a number?
0%
0 0%
Total 3 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Should Python support i suffix for complex numbers as well as j ?
#1
Python supports complex numbers written with the j suffix, e.g. 2.5j.

On Python's bug tracker, Guido is testing the waters to see if there is interest in also allowing the i suffix. What do people think?
Axel_Erfurt likes this post
Reply
#2
Why add useless complexity?
Reply
#3
@stevendaprano Speaking of modifying the Python language, have you tried my adddot extension that allows to write Python code without the dot . operator ? I'd dream of Guido removing the dot in Python...

Instead of
self.box.open()
one can just write
self box open()
It is a completely different look and feel.
Reply
#4
No, I've never tried it.

You should publish it on PyPI to make it easier for people to find.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is Python Support Graphical User Interface? ankitdixit 4 2,267 Apr-29-2022, 09:26 PM
Last Post: Axel_Erfurt
  cross-compiling python with zlib support michelebucca 5 5,886 Aug-25-2020, 08:19 PM
Last Post: carterb
  Python/winrt support for python 3.8 version pbvinoth 2 3,713 Jul-08-2020, 02:03 PM
Last Post: snippsat
  Improved Python support in SonarLint (PyCharm! Eclipse!) ganncamp 0 2,486 Apr-29-2020, 06:25 PM
Last Post: ganncamp
  SonarCloud, SonarQube support Python 3.8, add rules for method signature & visibility ganncamp 0 1,757 Mar-31-2020, 04:29 PM
Last Post: ganncamp
  Future of Jython now Python 2 support ended Wattletree 1 2,318 Mar-19-2020, 10:13 PM
Last Post: Larz60+
  Native support for Python in Excel buran 1 3,227 Dec-18-2017, 01:11 PM
Last Post: Larz60+
  Godot adds beta support for Python nilamo 0 2,657 Jul-12-2017, 03:35 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020