Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Input parsing with %prun clobbers escapes #1302

Closed
wesm opened this Issue · 4 comments

3 participants

@wesm

Running this command, where foo.csv is a tab-separated file

In [3]: %prun -s cumulative table = read_table('foo.csv', sep="\t")

it blows up and I stepped up to the top level to see that sep has been passed as t and not \t

@ivanov
Owner

on it, another parse_options issue - removing the line parameter_s = parameter_s.replace('"',r'\"').replace("'",r"\'") in prun and adding posix=False to parse_options seems to solve it, writing test and looking for other places to apply the fix now

@ivanov ivanov referenced this issue from a commit in ivanov/ipython
@ivanov ivanov test for #1302 6a26692
@ivanov ivanov referenced this issue from a commit in ivanov/ipython
@ivanov ivanov fix prun parsing of escapes (closes #1302) 1f92833
@fperez
Owner

@wesm, I'm merging @ivanov's fix now, let us know if you notice any other issues.

@fperez fperez closed this in 6bc0f53
@wesm

That's wonderful, thank you guys for being so responsive

@fperez
Owner

Satisfaction guaranteed or your money back :)

@minrk minrk referenced this issue from a commit in minrk/ipython
@ivanov ivanov test for #1302 9e2f4a8
@minrk minrk referenced this issue from a commit in minrk/ipython
@ivanov ivanov fix prun parsing of escapes (closes #1302) 18ee009
@ivanov ivanov referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@ivanov ivanov referenced this issue from a commit
@ivanov ivanov test for #1302 6853978
@yarikoptic yarikoptic referenced this issue from a commit in yarikoptic/ipython
@ivanov ivanov fix prun parsing of escapes (closes #1302) 0712dda
@mattvonrocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
@ivanov ivanov test for #1302 19b1b35
@mattvonrocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
@ivanov ivanov fix prun parsing of escapes (closes #1302) dc09526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.