473,498 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SystemError: ... cellobject.c:22: bad argument to internal ?

From the trace of a 2.3.5 software i got:

\'SystemError:
C:\\\\sf\\\\python\\\\dist23\\\\src\\\\Objects\\\\ cellobject.c:22: bad
argument to internal
function\\n\']
from the middle of normal function / or its call. What is this?

There is:

http://mail.python.org/pipermail/pyt...ry/260273.html

but seems to be something else. There is no dynamic addition of
class-method. But the last function called is a callback function in
3rd level inner function of class method like:

class X:
def a():
def b():
...
def c():... # breaks with systemerror
schedule_callback(c) # -> upon Windows WM_TIMER event
...
Will there be another bug-fix release of Python 2.3 ?

-robert
May 13 '06 #1
2 2633
robert wrote:
From the trace of a 2.3.5 software i got:

\'SystemError:
C:\\\\sf\\\\python\\\\dist23\\\\src\\\\Objects\\\\ cellobject.c:22: bad
argument to internal
function\\n\']
....
Will there be another bug-fix release of Python 2.3 ?


No, is this still a problem in 2.4? 2.4.4 is planned to be released
this summer. Can you post the entire code (that doesn't reference
anything outside the stdlib) that causes this problem?

n

May 13 '06 #2
nn******@gmail.com wrote:
robert wrote:
From the trace of a 2.3.5 software i got:

\'SystemError:
C:\\\\sf\\\\python\\\\dist23\\\\src\\\\Objects\\ \\cellobject.c:22: bad
argument to internal
function\\n\']

...

Will there be another bug-fix release of Python 2.3 ?

No, is this still a problem in 2.4? 2.4.4 is planned to be released


( Am bound to py2.3 for this app - as py2.4 more than doubled
distributable app sizes with MSVCRTL71, CJK codecs in core etc... )
this summer. Can you post the entire code (that doesn't reference
anything outside the stdlib) that causes this problem?


Solved - no Python error.

The bug turned out to be a refcount bug in PythonWin's
win32ui.HookMessage internals: the Python callback upon WM_TIMER didn't
INCREF the called function object itself. When the function removed
itself from the hook list (indirectly), the executing functions
closure/cells.. were recycled while the function was still executing.

https://sourceforge.net/tracker/inde...18&atid=551954

-robert
May 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3042
by: Gerrit Holl | last post by:
Hi, I found a cool way to trigger a SystemError: >>> exec CodeType(0,0,0,0,"",(),(),(),"","",0,"") XXX lineno: 0, opcode: 0 Traceback (most recent call last): File "<stdin>", line 1, in ?...
9
4131
by: alban.minassian | last post by:
(Sorry for my bad english ) I convert a php code to python. i have 10000 lines where i add and add and add string.... like var += "xxxxxx" And line 5139 i have SystemError: com_backpatch:...
1
3841
by: Newgene | last post by:
Hi, group, I am trying to dynamically add a method to class by following this post: ...
8
10631
by: Kevin Grigorenko | last post by:
Hello all, Okay, I've got a templated class that that takes an int and a char *, but when I try to instantiate an object of that template, VS.NET complains with: error C2975: 'S' : invalid...
0
2139
by: 356523600 | last post by:
HTML To PHP Converter 4.2.1.8 Free download Get more for less ... HTML To PHP Converter 4.2.1.8 Get more for less! With a new version of HTML To PHP Converter 4, we've dropped the price and given...
1
4203
by: Waitman Gobble | last post by:
Hello, I am new to Python. I am having trouble with zipfile.py. On a Linux machine with python 2.4.2 I have trouble opening a zipfile. Python is complaining about the bit where it does a...
6
2337
by: usenet1 | last post by:
I'm a newbie with hopefully an easy question. I'm trying to write some "C" code that will run a python script that can in turn call some "C" functions. However I'm having a problem getting...
11
10790
by: zefciu | last post by:
I am trying to embed a c function in my python script for a first time. When I try to call it I get an error SystemError: new style getargs format but argument is not a tuple Guido said on...
1
4626
by: max.aginaga | last post by:
Hi everyone I've come across the following problem: on two different linux machines, both running python 2.5 (r25:51908), I have the same file 'd.dat'. The md5 checksums are the same. Now, on...
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7381
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.