Re: [IronPython] Assertion failure in IPy 2.6 while running Django

2009-05-06 Thread Dino Viehland
Ahh, I see, we need to disable the fast path for functions w/ too many
parameters.  That'll be trivial to fix - but really, 20 parameters!?!? :)

> -Original Message-
> From: users-boun...@lists.ironpython.com [mailto:users-
> boun...@lists.ironpython.com] On Behalf Of Jeff Hardy
> Sent: Wednesday, May 06, 2009 4:37 PM
> To: Discussion of IronPython
> Subject: Re: [IronPython] Assertion failure in IPy 2.6 while running
> Django
> 
> On Sun, May 3, 2009 at 3:59 PM, Dino Viehland 
> wrote:
> > Do you happen to know what baseName is when the assertion is hit?
> >
> 
> Hit this again (different subclass of Field); baseName was Default20.
> 
> This might have something to do with the fact that Field.__init__ has
> 20(!) optional, defaulted parameters.
> 
> - Jeff
> ___
> Users mailing list
> Users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] Assertion failure in IPy 2.6 while running Django

2009-05-06 Thread Jeff Hardy
On Sun, May 3, 2009 at 3:59 PM, Dino Viehland  wrote:
> Do you happen to know what baseName is when the assertion is hit?
>

Hit this again (different subclass of Field); baseName was Default20.

This might have something to do with the fact that Field.__init__ has
20(!) optional, defaulted parameters.

- Jeff
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] Assertion failure in IPy 2.6 while running Django

2009-05-04 Thread Jeff Hardy
On Sun, May 3, 2009 at 3:59 PM, Dino Viehland  wrote:
> Do you happen to know what baseName is when the assertion is hit?

Default19, IIRC.

- Jeff

>
> -Original Message-
> From: users-boun...@lists.ironpython.com 
> [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jeff Hardy
> Sent: Sunday, May 03, 2009 1:19 PM
> To: Discussion of IronPython
> Subject: [IronPython] Assertion failure in IPy 2.6 while running Django
>
> The assertion is on line 91 of PythonFunction.Generated.cs (as of
> r49699, anyway): mi != null. Why mi is null I have no idea.
>
> The smallest repro I've found still requires Django (any recent
> checkout should do):
>
 from django.db import models
 message = models.TextField('message')
>
> If I had the following __init__ function to TextField the problem goes away:
> def __init__(self, *args, **kwargs):
>        Field.__init__(self, *args, **kwargs)
>
> - Jeff
> ___
> Users mailing list
> Users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> ___
> Users mailing list
> Users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] Assertion failure in IPy 2.6 while running Django

2009-05-03 Thread Dino Viehland
Do you happen to know what baseName is when the assertion is hit?

-Original Message-
From: users-boun...@lists.ironpython.com 
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Jeff Hardy
Sent: Sunday, May 03, 2009 1:19 PM
To: Discussion of IronPython
Subject: [IronPython] Assertion failure in IPy 2.6 while running Django

The assertion is on line 91 of PythonFunction.Generated.cs (as of
r49699, anyway): mi != null. Why mi is null I have no idea.

The smallest repro I've found still requires Django (any recent
checkout should do):

>>> from django.db import models
>>> message = models.TextField('message')

If I had the following __init__ function to TextField the problem goes away:
def __init__(self, *args, **kwargs):
Field.__init__(self, *args, **kwargs)

- Jeff
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com