Skip to content

Instantly share code, notes, and snippets.

View ironpythonbot's full-sized avatar

ironpythonbot

View GitHub Profile
@ironpythonbot
ironpythonbot / install.log
Created September 28, 2013 07:03
CodePlex Issue #34199 Plain Text Attachments
ÿþ=== Logging started: 25/6/2013 9:34:14 ===
Action 9:34:14: INSTALL.
Action start 9:34:14: INSTALL.
Action 9:34:14: PrepareDlg.
Action start 9:34:14: PrepareDlg.
Info 2898.For WixUI_Font_Bigger textstyle, the system created a 'Tahoma' font, in 1 character set, of 19 pixels height.
Info 2898.For WixUI_Font_Normal textstyle, the system created a 'Tahoma' font, in 1 character set, of 13 pixels height.
Action 9:34:14: PrepareDlg. Dialog created
Action ended 9:34:14: PrepareDlg. Return value 1.
Actio
@ironpythonbot
ironpythonbot / excon1.py
Created September 28, 2013 07:03
CodePlex Issue #34186 Plain Text Attachments
def f(j):
raise Exception("test")
for j in range(1000):
try:
f(j)
except:
continue
print "finished"
@ironpythonbot
ironpythonbot / StackTrace.txt
Created September 28, 2013 07:02
CodePlex Issue #33892 Plain Text Attachments
StackTrace DropBox API:
CProgram Files (x86)IronPython 2.7ipy.exe CUsersEddiePycharmProjectsdropbox_connetcor_ipyauth.py
Traceback (most recent call last)
File CUsersEddiePycharmProjectsdropbox_connetcor_ipyauth.py, line 13, in module
File CUsersEddiePycharmProjectsdropbox_connetcor_ipydropbox_apisession.py, line 176, in obtain_request_token
File CUsersEddiePycharmProjectsdropbox_connetcor_ipydropbox_apirest.py, line 267, in POST
File CUsersEddiePycharmProjectsdropbox_connetcor_ipydropbox_apirest.py, line 213, in POST
File CUsersEddiePycharmProjectsdropbox_connetcor_ipydropbox_apirest.py, line 184, in request
dropbox_api.rest.RESTSocketError Error connecting to api.dropbox.com [Errno errors while validating certificate chain ] RemoteCertificateNameMismatch
@ironpythonbot
ironpythonbot / attach.py
Created September 28, 2013 07:02
CodePlex Issue #33838 Plain Text Attachments
csharp = '''
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Dynamic;
using System.Linq;
namespace TrySetMember {
public class MyDynamicObject : DynamicObject, INotifyPropertyChanged {
@ironpythonbot
ironpythonbot / 33663fix.diff
Created September 28, 2013 07:01
CodePlex Issue #33663 Plain Text Attachments
diff --git a/Languages/IronPython/IronPython/Runtime/Super.cs b/Languages/IronPython/IronPython/Runtime/Super.cs
index eddb18a..2bdbac3 100644
--- a/Languages/IronPython/IronPython/Runtime/Super.cs
+++ b/Languages/IronPython/IronPython/Runtime/Super.cs
@@ -170,8 +170,8 @@ namespace IronPython.Runtime {
private PythonType DescriptorContext {
get {
- if (!DynamicHelpers.GetPythonType(_self).IsSubclassOf(_thisClass)) {
- return _thisClass;
@ironpythonbot
ironpythonbot / socket.cs.patch
Created September 28, 2013 06:59
CodePlex Issue #33312 Plain Text Attachments
Index: IronPython.Modules/socket.cs
===================================================================
--- IronPython.Modules/socket.cs (revision 22123)
+++ IronPython.Modules/socket.cs (working copy)
@@ -250,13 +250,13 @@
}
[Documentation("close() -> None\n\nClose the socket. It cannot be used after being closed.")]
- public void close() {
+ public void close() {
@ironpythonbot
ironpythonbot / description.txt
Created September 28, 2013 07:00
CodePlex Issue #33341 Plain Text Attachments
I've found a problem that only seems to happen when importing from a pyc compiled assembly, but does not show when importing the script directly. Attached is as far as I have managed to reduce a simple test case to (I first came across this in SQLAlchemy).
Running directly (or, opening the repl and then importing manually):
$ ipy testipy.py
Works fine, but compiling with pyc (assuming you have an alias):
$ pyc /out:TestIPy testily.py
And then running the script:
import clr
@ironpythonbot
ironpythonbot / x2.py
Created September 28, 2013 06:59
CodePlex Issue #33185 Plain Text Attachments
class OldStyle:
def __init__(self, arg):
print "OldStyle"
class NewStyleWithInit1(OldStyle,object):
def __init__(self,arg):
print "NewStyleWithInit1"
class NewStyleWithInit2(object,OldStyle):
def __init__(self,arg):
@ironpythonbot
ironpythonbot / Program.cs
Created September 28, 2013 06:59
CodePlex Issue #33242 Plain Text Attachments
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using System.Security.Permissions;
using System.Security.Policy;
using IronPython.Compiler;
using IronPython.Hosting;
using IronPython.Runtime;
using Microsoft.Scripting.Hosting;
@ironpythonbot
ironpythonbot / SQLite-unsupported-type.diff
Created September 28, 2013 06:56
CodePlex Issue #32884 Plain Text Attachments
diff --git a/Languages/IronPython/IronPython.SQLite/Statement.cs b/Languages/IronPython/IronPython.SQLite/Statement.cs
index 2d0303a..a6febb9 100644
--- a/Languages/IronPython/IronPython.SQLite/Statement.cs
+++ b/Languages/IronPython/IronPython.SQLite/Statement.cs
@@ -185,6 +185,8 @@ namespace IronPython.SQLite
rc = Sqlite3.sqlite3_bind_int64(st, index, (long)arg);
else if(arg is Microsoft.Scripting.Math.BigInteger)
rc = Sqlite3.sqlite3_bind_int64(st, index, ((Microsoft.Scripting.Math.BigInteger)arg).ToInt64());
+ else if(arg is System.Numerics.BigInteger)
+ rc = Sqlite3.sqlite3_bind_int64(st, index, (long)((System.Numerics.BigInteger)arg));