Created
February 28, 2012 08:22
-
-
Save Carreau/1930794 to your computer and use it in GitHub Desktop.
Minimal crashing example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PySide.QtCore import * | |
from PySide.QtGui import * | |
## | |
## ment to segfault in some condition on os-x | |
## see ipython/ipython #1407 | |
## | |
# Create a Qt application | |
app = QApplication(sys.argv) | |
# Create a Label and show it | |
s = u''' | |
sin(x[, out]) | |
Trigonometric sine, element-wise. | |
Parameters | |
---------- | |
x : array_like | |
Angle, in radians (:math:`2 \pi` rad equals 360 degrees). | |
Returns | |
------- | |
y : array_like | |
The sine of each element of x. | |
See Also | |
-------- | |
arcsin, sinh, cos | |
''' | |
print(len(s)); | |
g = s[1:12] | |
label = QLabel() | |
label.setText(s) | |
label.show() | |
# Enter Qt application main loop | |
app.exec_() | |
sys.exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment