question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

some LaTeX variable names point to same content/have same identity

See original GitHub issue

With the LaTeX like replacement in the ipython console it is possible to use greek letters as variable names as well. However, in contrast to e.g. julia, python/ipython maps \varphi[tab] and \phi[tab] to the same data.

Python:

φ = 12
ϕ = 2
print(φ) # returns 2
print(ϕ) # returns 2

e.g. Julia:

φ = 12
ϕ = 2
println(φ) # returns 12
println(ϕ) # returns 2

(Please be aware that depending on your font, \varphi and \phi, might look very similar)

Tested with:

Python 3.6.5
IPython 6.4.0

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
PrometheusPicommented, Oct 28, 2019

I reported the bug on the python issue tracker. It has the ID: issue38612. https://bugs.python.org/issue38612

1reaction
dhirschfeldcommented, Oct 18, 2019

I didn’t believe it, but I can confirm on my system using spyder;:

Python 3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 7.8.0 -- An enhanced Interactive Python.

In [1]: ϕ = 2

In [2]: φ = 12

In [3]: print(ϕ)
12

In [4]: print(φ)
12
Read more comments on GitHub >

github_iconTop Results From Across the Web

tug.ctan.org/systems/doc/pdftex/NEWS
The new primitives below support more granular output tweaks with the same intent. - if the environment variable SOURCE_DATE_EPOCH_TEX_PRIMITIVES is set to ...
Read more >
smc-public/sage_server.py at master - GitHub
function sage_server.uuidsha1). Any two files with the same content have the. same Sha1 hash. """ filename = unicode8(filename).
Read more >
A User's Guide to Proper Names
1 Outlining the Field and. Introducing Some of the Players. 9. 1.1 What Should a Theory of Reference of Proper Names. Do For...
Read more >
4.6 Text-level semantics - HTML 5
The DOM attributes href , ping , target , rel , media , hreflang , and type , must reflect the respective content...
Read more >
Gnuplot In Action - FSU Hadronic Physics
The plot command requires the name of the data file as argument in quotes. The rest ... The same weekend when 2,000 runners...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found