Traceback
ڕێچکەی هەڵە
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
The report Python prints when an stops a program. It lists the that led to the error, with file names and line numbers, and its last line names the error and explains it. Read it from the bottom up.
ئەو ڕاپۆرتەیە کە Python چاپی دەکات کاتێک دەوەستێنێت. پیشان دەدات کە گەیاندیانە هەڵەکە، لەگەڵ ناوی فایل و ژمارەی دێڕ؛ دوایین دێڕەکەشی ناوی هەڵەکە دەڵێت و ڕوونی دەکاتەوە. لە خوارەوە بۆ سەرەوە بیخوێنەوە.
Exampleنموونە
Shortened traceback: line 4 called average(), and line 2 inside it failed with ZeroDivisionError.
ڕێچکەیەکی هەڵەی کورتکراوە: دێڕی 4 بانگی average()ـی کرد و دێڕی 2 لەناویدا بە ZeroDivisionError شکستی هێنا.
def average(total, count):
return total / count
print(average(10, 0))
# Traceback (most recent call last):
# File "main.py", line 4, in <module>
# File "main.py", line 2, in average
# ZeroDivisionError: division by zeroOther Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
تڕەیسباک، ڕێچکەی هەڵەکە، ڕێچکەیەکی هەڵە
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Descriptive coinage: ڕێچکە (track, trail) — the trail of calls that led to the error. Proposed.
Related termsزاراوە پەیوەندیدارەکان
Learn more inزیاتر فێربە لە
- Errors and Debuggingهەڵەکان و کرمەکوژی
- Handling Errors with try and exceptمامەڵەکردن لەگەڵ هەڵاوێردە بە try و except
- Stacks: Last In, First Outستاکەکان: دوایین هاتوو، یەکەم دەرچوو
- Project: A Word-Scramble Gameپڕۆژیلە: یاریی پیتە تێکەڵەکان
- Dart Basics: Variables, Types and Control Flowبنەماکانی Dart: گۆڕاوەکان، جۆرەکان و ڕێڕەوی کۆنترۆڵ
- Dart Functions and Collectionsکردارەکان و کۆکراوەکانی Dart
- Input and Outputنێوخستە و دەرخستە
- Defining and Calling Functionsناساندن و بانگکردنی کردارەکان
- Return Values and Noneنرخە گەڕاوەکان و None
- Recursionخۆبانگکردنەوە
- Reading and Writing Filesخوێندنەوە و نووسینی فایلەکان
- Meet Dartناسینی Dart