Comments (3)
Description changed:
---
+++
@@ -1,4 +1,6 @@
-{{{To: "Kyle Schalm" <[email protected]>, [email protected]
+
+```
+To: "Kyle Schalm" <[email protected]>, [email protected]
Subject: Re: [SAGEdev] long string parsing bug in 1.3.2.2
The SAGE pre-parser currently works on single lines only -- it doesn't
@@ -6,14 +8,12 @@
not-implemented-error than a bug. Many thanks for sending this email
though, since it's an excellent test case:
mm.sage:
-
----
+---------------------
"""
load with
sage: load "/Users/kyle/Documents/math/scripts/mm.sage"
"""
+---------------------
+```
----
-}}}
-
from sage.
I can't find this mm.sage example any more. Moreover, the preparser does work
on multiple lines, so won't fix until get a proper bug report.
from sage.
I found that loading files with triple quoted multiline strings would break.
Now fixed:
# HG changeset patch
# User William Stein <[email protected]>
# Date 1169354692 28800
# Node ID 9b38891949ca0db4e3df5592611a741f8b58568d
# Parent 19cc21de721be8ea5985cf1319582e1ab7dc2820
Finally fixed multiline preparser issue for command line.
diff -r 19cc21de721b -r 9b38891949ca sage/misc/interpreter.py
--- a/sage/misc/interpreter.py Fri Jan 19 22:49:10 2007 -0800
+++ b/sage/misc/interpreter.py Sat Jan 20 20:44:52 2007 -0800
@@ -248,7 +248,7 @@ def do_prefilter_paste(line, continuatio
ipmagic(L)
L = ''
else:
- L = preparser_ipython.preparse_ipython(L)
+ L = preparser_ipython.preparse_ipython(L, not continuation)
__IPYTHON__.input_hist.append(L)
__IPYTHON__.push(L)
log.offset += 1
@@ -343,7 +343,7 @@ def do_prefilter_paste(line, continuatio
else:
raise ImportError, "Attaching of '%s' not implemented (load .py, .spyx, and .sage files)"%name
if len(line) > 0:
- line = preparser_ipython.preparse_ipython(line)
+ line = preparser_ipython.preparse_ipython(line, not continuation)
return line
def load_sagex(name):
from sage.
Related Issues (20)
- /usr/bin/time should be a pre-req HOT 8
- PolynomialSequence_gf2.coefficients_monomials is broken HOT 1
- restricting Flint version should be conditional on installing Singular HOT 1
- Using run_doctests within Sage breaks REPL
- FreeAlgebra doesn't reduce using ideal relations HOT 2
- weil_polynomials
- RuntimeWarning: networkx backend defined more than once: nx-loopback HOT 6
- Sage/Maxima produces an incorrect result for an inequality when certain assumptions are applied
- sage_numerical_backends_cplex package does not compile HOT 1
- `FreeModule`, `FiniteDimensionalModulesWithBasis` disagree on what 'left' and 'right' mean
- implement `valuation()` function for Factorization objects
- Installing Sage's python3 spkg produces some untracked files
- cpdef functions using noexcept HOT 1
- Fix cdef functions with unraisable exceptions HOT 1
- Doctests failures in sage/doctest/control.py when sagemath-meataxe is installed HOT 4
- Wrong result for computing dual lattice HOT 1
- Determinant over AA extraordinary slow for certain (random) matrices with 20+ dimensions HOT 3
- Bug in computing hypergeometric traces HOT 2
- gosper_sum does not return the expected result HOT 1
- Dual of a ToricLattice_sublattice is not treated as a ToricLattice
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sage.