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

WIP: Transform linenumber #2402

Closed
wants to merge 3 commits into from

Conversation

jasongrout
Copy link
Member

This pull request makes it possible to modify the transforms applied and also modifies the transformation code to pass the line numbers.

This isn't ready to be merged (I'm sure there are other places in the code that would need to be changed), but it does illustrate the sorts of changes that would be great for the Sage customizations.

See also http://mail.scipy.org/pipermail/ipython-dev/2012-September/010239.html

(WIP stands for Work in Progress...)

Jason Grout added 3 commits September 11, 2012 16:31
For backwards compatibility, we could also inspect the function to see if it takes 2 arguments, and if not, just pass in the line string.
@takluyver
Copy link
Member

Thanks - I'm not sure line number is quite the right way to do this, but I do have some kind of stateful transformers in mind. And I agree that we need to move the list of transformations out where it can be accessed.

(This falls under the heading of #2293, aka IPEP 2)

@takluyver
Copy link
Member

@jasongrout I'm going to close this one in favour of #2447 - I'm trying to bring our PR count down a bit. Do keep an eye on that one.

@takluyver takluyver closed this Oct 14, 2012
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

Successfully merging this pull request may close these issues.

None yet

2 participants