Opened 5 years ago

Closed 2 years ago

#16704 closed defect (wontfix)

reset removes `exit` from namespace

Reported by: kcrisman Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: user interface Keywords:
Cc: Merged in:
Authors: Steven Trogdon Reviewers: Steven Trogdon
Report Upstream: N/A Work issues: resolved as duplicate
Branch: Commit:
Dependencies: Stopgaps:

Description

This SO question reports

[matthew@tera ~]$ /usr/local/sage/sage-6.2-x86_64-Linux/sage
┌────────────────────────────────────────────────────────────────────┐
│ Sage Version 6.2, Release Date: 2014-05-06                         │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: exit
Exiting Sage (CPU time 0m0.14s, Wall time 0m4.70s).
[matthew@tera ~]$
[matthew@tera ~]$ /usr/local/sage/sage-6.2-x86_64-Linux/sage
┌────────────────────────────────────────────────────────────────────┐
│ Sage Version 6.2, Release Date: 2014-05-06                         │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: reset()
sage: exit
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/usr/local/sage/sage-6.2-x86_64-Linux/local/lib/python2.7/site-packages /sage/all_cmdline.py in <module>()
----> 1 exit

NameError: name 'exit' is not defined
sage:

I can confirm this removes exit from the namespace. If this isn't a bug, it seems pretty odd to remove Ipython built-ins.

Change History (6)

comment:1 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:2 Changed 3 years ago by zimmerma

see also #22529 (same issue for quit).

comment:3 Changed 3 years ago by strogdon

  • Authors set to Steven Trogdon
  • Status changed from new to needs_review
  • Work issues set to resolved as duplicate

comment:4 Changed 3 years ago by strogdon

  • Reviewers set to Steven Trogdon
  • Status changed from needs_review to positive_review

comment:5 Changed 3 years ago by jhpalmieri

  • Milestone changed from sage-6.4 to sage-duplicate/invalid/wontfix

comment:6 Changed 2 years ago by embray

  • Resolution set to wontfix
  • Status changed from positive_review to closed

Closing tickets in the sage-duplicate/invalid/wontfix module with positive_review (i.e. someone has confirmed they should be closed).

Note: See TracTickets for help on using tickets.