473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Fatal Python error: unknown scope for...

:map ,p :!python % <cr>
,p
#v+
C:\COMMAND.COM /c python items.py
Fatal Python error: unknown scope for super in __init__(14) in items.py
symbols: {'multirandrange': 264}
locals: {}
globals: {'multirandrange': True}
abnormal program termination
Hit any key to close this window...
#v-
(also have mp for PyChecker, which failed miserably with the same message)

I must have done something *really* bad, I said to myself. Yet IMHO I
didn't (just paste'n'run):

class Weapon(Item):
def __init__(self, name, category, rarity=COMMON, weight,
damdie = (1,6), tdamdie=(1,4), material=None, effects = (),
todam_f = lambda: multirandrange(-1,2,3)):
super(Weapon, self).__init__(name, weight, damdie, tdamdie, rarity,
material, effects, todam_f=todam_f)
self.category = category

Apparently, removing todam_f fixes the FPE, as well as making the code
syntactically correct (moving rarity after weight.) Seems like something
got overlooked in the parser?

Almost forgot: Python 2.3/win98

Pozdrawiam, Baczek
Jul 18 '05 #1
1 2204
On Wed, 06 Aug 2003 12:53:15 +1000, Mark Hammond wrote:
def g(a=None, b, c=lambda: None): g
"""Fatal Python error: unknown scope for g in g(1) in marek.py"""


Yep, I still get this with current CVS Python. You should open a bug.


Done.

Pozdrawiam, Baczek
Jul 18 '05 #2

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

Similar topics

4
by: Rafal Zawadzki | last post by:
Hello, I am using php5 and I've got this piece of code: include ('http://something.somewhere/file.php?a=act') PHP instead of including file five me: PHP Fatal error: Unknown: Security...
0
by: Vikram | last post by:
hi, i have a program which uses multiple threads and downloads pages using pycurl and processes these pages among other things. the program works fine with python 2.2 and pycurl 7.10.8 ; with...
6
by: o'seally | last post by:
solaris/linux admins/rookie_developers that battle with this error are probably all frustrated when it happens. i bet you're also somehow frustrated by this seemingly unsolvable error :-) ...take...
0
by: Davis Ming | last post by:
Hi All, I used Microsoft Liner (7.00.9210) with makefile to compile an existing project. It works well until I add "/PDBSTRIPPED" option in order to get public symbol files. The error message is...
1
by: R | last post by:
Hi All, I'm using PHP 5, my code fully separates code from content, my code throws exceptions (LIZException) when error occurs. but every time I throw exception I get this fatal error: ...
12
by: TristaSD | last post by:
Hi, Here's a nice footer I get inside every php page I write in wwwroot on my server. The code gets parsed just fine. I installed php5.2-win32 under W2K Server, IIS 5.0. I've installed php on...
3
by: RossettoeCioccolato | last post by:
I created a unicodedebug x64 build configuration using an existing win32 unicodedebug configuration as a template. I have done this before without problem but this time I get the following error:...
1
by: joe10001 | last post by:
Hi all, I just installed CRELoaded (oscommerce fork) on my server and all work fine except that I have a little message at the bottom of the main page : Fatal error: main() : Security alert:...
2
by: akhilesh.noida | last post by:
I am trying to compile glibc-2.5 for ARM based board. But I am getting errors while configuring it. Please check and give your inputs for resolving this. configure command : $...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.