Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-mode patch for ipython support #36831

Closed
aschmolck mannequin opened this issue Jun 30, 2002 · 2 comments
Closed

python-mode patch for ipython support #36831

aschmolck mannequin opened this issue Jun 30, 2002 · 2 comments
Assignees

Comments

@aschmolck
Copy link
Mannequin

aschmolck mannequin commented Jun 30, 2002

BPO 575774
Nosy @smontanaro, @warsaw
Files
  • PatchAndIpython-el.tgz: archive with patch and ipthon.el to show why of patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/warsaw'
    closed_at = <Date 2003-08-05.03:27:01.000>
    created_at = <Date 2002-06-30.22:28:38.000>
    labels = []
    title = 'python-mode patch for ipython support'
    updated_at = <Date 2003-08-05.03:27:01.000>
    user = 'https://bugs.python.org/aschmolck'

    bugs.python.org fields:

    activity = <Date 2003-08-05.03:27:01.000>
    actor = 'skip.montanaro'
    assignee = 'barry'
    closed = True
    closed_date = None
    closer = None
    components = ['Demos and Tools']
    creation = <Date 2002-06-30.22:28:38.000>
    creator = 'aschmolck'
    dependencies = []
    files = ['4390']
    hgrepos = []
    issue_num = 575774
    keywords = ['patch']
    message_count = 2.0
    messages = ['40453', '40454']
    nosy_count = 3.0
    nosy_names = ['skip.montanaro', 'barry', 'aschmolck']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue575774'
    versions = []

    @aschmolck
    Copy link
    Mannequin Author

    aschmolck mannequin commented Jun 30, 2002

    This patch makes the prompt and traceback recognition
    mechanisms a bit more flexible to allow easy adaptation
    for ipython (in lieu of the normal python shell). The
    seperate file ipython.el (which I assume will end up in
    the ipython distribution) then enables
    py-execute-region, py-up-exception etc. to work just as
    well for ipython (which means ipython works just as
    well under python mode as the standard python shell). I
    also added something to ipython.el to convert ipython
    session bits to something that looks like normal
    interactive session bits. This, together with ipython's
    ability to directly execute such strings (by
    auto-removing leading '>>>'s) should make for very
    convinient doctest development (I had orginally planned
    to patch python-mode to incorporate such functionality
    because I found the manual reediting a bit tiresome).

    Slightly off-topic, I also have a feature request:
    executing a whole file ends up creating a temporary
    file which is instead executed. I think it would be
    much nicer if the actual file itself where executed
    with execfile, because otherwise pdb ends up pointing
    to the "wrong" (i.e. the temporary) buffer. It is
    really easy to forget about this and edit this
    temporary file during a debugging session and as a
    consequence inadvertenly loose changes. This situation
    crops up quite often, if one uses ipython's really
    nifty feature to toggle pdb activation on exceptions
    (or hacks up something equivalent for python), which is
    an extremely efficient way to quickly debug and test
    one's program. I would have added a patch, but some
    restructuring seemed necessary, and it wasn't
    immediately clear to me in which way this should be done.

    alex

    @aschmolck aschmolck mannequin closed this as completed Jun 30, 2002
    @aschmolck aschmolck mannequin assigned warsaw Jun 30, 2002
    @aschmolck aschmolck mannequin closed this as completed Jun 30, 2002
    @aschmolck aschmolck mannequin assigned warsaw Jun 30, 2002
    @smontanaro
    Copy link
    Contributor

    Logged In: YES
    user_id=44345

    migrated to new python-mode project. follow it here:

    https://sourceforge.net/tracker/
    index.php?func=detail&aid=783254&group_id=86916&ati
    d=581351

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants