Re: List of All Error Menssages

2020-10-02 Thread Luis Gustavo Araujo
Hi Kyle,

Thanks!

Att,


Livre
de vírus. www.avast.com
.
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Em sex., 2 de out. de 2020 às 18:03, Kyle Stanley 
escreveu:

> Hi Luis,
>
> There is not a maintained list of every possible combination of exception
> type and message because they're continuously being added within the Python
> standard library, and exception messages are considered an implementation
> detail that are subject to change. While there are many that have remained
> the same for many years and likely will continue to, we do periodically
> adjust some to add additional information, make formatting fixes, and/or
> improve grammar. Documenting exception messages formally would essentially
> remove them from being implementation details (meaning that they can't as
> easily be adjusted); not to mention the long term cost of continuously
> updating that list each time a new exception message is written somewhere
> within the standard library. It would not be very sustainable, even more so
> if you consider that CPython development is mostly volunteer-driven efforts.
>
> Regards,
> Kyle Stanley
>
> On Thu, Oct 1, 2020 at 3:18 PM Luis Gustavo Araujo <
> luisaraujo.i...@gmail.com> wrote:
>
>>   Hi,
>> Is it possible to get the list of all error messages that display in
>> Python? I want the full message -> type error: additional message.
>>
>> Examples:
>> NameError: name 'x' is not defined
>> IndentationError: unindent does not match any outer indentation level
>>
>> In this webpage (ttps://docs.python.org/3/library/exceptions.html) I only
>> can check the type error.
>>
>> []s
>>
>>
>> Em qui., 1 de out. de 2020 às 15:59, Luis Gustavo Araujo <
>> luisaraujo.i...@gmail.com> escreveu:
>>
>> > Hi,
>> > Is it possible to get the list of all error messages that display in
>> > Python? I want the full message -> type error: additional message.
>> >
>> > Examples:
>> > NameError: name 'x' is not defined
>> > IndentationError: unindent does not match any outer indentation level
>> >
>> > In this webpage (ttps://docs.python.org/3/library/exceptions.html) I
>> only
>> > can check the type error.
>> >
>> > []s
>> >
>> >
>> > --
>> >
>> > [image: Prefeitura Municipal de Amélia Rodrigues]
>> > 
>> >
>> > LUIS GUSTAVO ARAUJO
>> > *Amélia Rodrigues Prefecture - Brazil  (*
>> >
>> > *Teacher of Computer Science) UNIFACS - Laureate International
>> > Universities (Professor Assistant I)*
>> >
>> > Degree in Computer Science (IFBA) - 2015
>> > Master Degrees in Computer Applied (UEFS) - 2018
>> > PhD  Student in Computer Science (UFBA)
>> > *http://dgp.cnpq.br/dgp/espelhorh/8431672735528634
>> > *
>> >
>> > [image: Twitter]   [image:
>> Facebook]
>> >  [image: Github]
>> > 
>> >
>> >
>> >
>> >
>> > <
>> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
>> Livre
>> > de vírus. www.avast.com
>> > <
>> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail
>> >.
>> > <#m_-2814426795322638799_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>> >
>>
>>
>> --
>>
>> [image: Prefeitura Municipal de Amélia Rodrigues]
>> 
>>
>> LUIS GUSTAVO ARAUJO
>> *Amélia Rodrigues Prefecture - Brazil  (*
>>
>> *Teacher of Computer Science) UNIFACS - Laureate International
>> Universities
>> (Professor Assistant I)*
>>
>> Degree in Computer Science (IFBA) - 2015
>> Master Degrees in Computer Applied (UEFS) - 2018
>> PhD  Student in Computer Science (UFBA)
>> *http://dgp.cnpq.br/dgp/espelhorh/8431672735528634
>> *
>>
>> [image: Twitter]   [image: Facebook]
>>  [image: Github]
>> 
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
>

-- 

[image: Prefeitura Municipal de Amélia Rodrigues]


LUIS GUSTAVO ARAUJO
*Amélia Rodrigues Prefecture - Brazil  (*

*Teacher of Computer Science) UNIFACS - Laureate International Universities
(Professor Assistant I)*

Degree in Computer Science (IFBA) - 2015
Master Degrees in Computer Applied (UEFS) - 2018
PhD  Student in Computer Science (UFBA)
*http://dgp.cnpq.br/dgp/espelhorh/8431672735528634
*

[image: Twitter]   [image: Facebook]
 [image: Github]






Re: List of All Error Menssages

2020-10-02 Thread Kyle Stanley
Hi Luis,

There is not a maintained list of every possible combination of exception
type and message because they're continuously being added within the Python
standard library, and exception messages are considered an implementation
detail that are subject to change. While there are many that have remained
the same for many years and likely will continue to, we do periodically
adjust some to add additional information, make formatting fixes, and/or
improve grammar. Documenting exception messages formally would essentially
remove them from being implementation details (meaning that they can't as
easily be adjusted); not to mention the long term cost of continuously
updating that list each time a new exception message is written somewhere
within the standard library. It would not be very sustainable, even more so
if you consider that CPython development is mostly volunteer-driven efforts.

Regards,
Kyle Stanley

On Thu, Oct 1, 2020 at 3:18 PM Luis Gustavo Araujo <
luisaraujo.i...@gmail.com> wrote:

>   Hi,
> Is it possible to get the list of all error messages that display in
> Python? I want the full message -> type error: additional message.
>
> Examples:
> NameError: name 'x' is not defined
> IndentationError: unindent does not match any outer indentation level
>
> In this webpage (ttps://docs.python.org/3/library/exceptions.html) I only
> can check the type error.
>
> []s
>
>
> Em qui., 1 de out. de 2020 às 15:59, Luis Gustavo Araujo <
> luisaraujo.i...@gmail.com> escreveu:
>
> > Hi,
> > Is it possible to get the list of all error messages that display in
> > Python? I want the full message -> type error: additional message.
> >
> > Examples:
> > NameError: name 'x' is not defined
> > IndentationError: unindent does not match any outer indentation level
> >
> > In this webpage (ttps://docs.python.org/3/library/exceptions.html) I
> only
> > can check the type error.
> >
> > []s
> >
> >
> > --
> >
> > [image: Prefeitura Municipal de Amélia Rodrigues]
> > 
> >
> > LUIS GUSTAVO ARAUJO
> > *Amélia Rodrigues Prefecture - Brazil  (*
> >
> > *Teacher of Computer Science) UNIFACS - Laureate International
> > Universities (Professor Assistant I)*
> >
> > Degree in Computer Science (IFBA) - 2015
> > Master Degrees in Computer Applied (UEFS) - 2018
> > PhD  Student in Computer Science (UFBA)
> > *http://dgp.cnpq.br/dgp/espelhorh/8431672735528634
> > *
> >
> > [image: Twitter]   [image: Facebook]
> >  [image: Github]
> > 
> >
> >
> >
> >
> > <
> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
> Livre
> > de vírus. www.avast.com
> > <
> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail
> >.
> > <#m_-2814426795322638799_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
>
>
> --
>
> [image: Prefeitura Municipal de Amélia Rodrigues]
> 
>
> LUIS GUSTAVO ARAUJO
> *Amélia Rodrigues Prefecture - Brazil  (*
>
> *Teacher of Computer Science) UNIFACS - Laureate International Universities
> (Professor Assistant I)*
>
> Degree in Computer Science (IFBA) - 2015
> Master Degrees in Computer Applied (UEFS) - 2018
> PhD  Student in Computer Science (UFBA)
> *http://dgp.cnpq.br/dgp/espelhorh/8431672735528634
> *
>
> [image: Twitter]   [image: Facebook]
>  [image: Github]
> 
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: List of All Error Menssages

2020-10-02 Thread Dieter Maurer
Luis Gustavo Araujo wrote at 2020-10-1 16:06 -0300:
>Is it possible to get the list of all error messages that display in
>Python? I want the full message -> type error: additional message.
>
>Examples:
>NameError: name 'x' is not defined
>IndentationError: unindent does not match any outer indentation level

Some systems indicates errors with an error code (often a number).
If they in addition do not include an error description, you
need a list mapping codes to description.

Python indicates errors via exceptions, documented in the Python
documentation (as far as used by Python; applications may define/derive
further exceptions). In addition, error reports are usually
made descriptive.
An example is `NameError: name 'x' is not defined`: it informs
you about a problem with the name `x`. In addition, you usually
get a traceback - which tells you where in the code the problem
was detected and the (function call) context that led to the problem.
This wealth of direct information removes the need to have
an error list.

In addition: the additional information (beside the exception type)
depends on the concrete situation: it is impossible to list
it beforehand.

>In this webpage (https://docs.python.org/3/library/exceptions.html) I only
>can check the type error.

`exceptions.html` describes Python's exception type hierarchy
(note: Python is object oriented and exceptions are organized into
a class hierarchy) and the exception types used by Python itself.

As you have found out, this describes only the exception types.
When an exception occurs, the type is usally enhanced by
a speaking error description, often including information
about your application entities involved in the exception,
e.g.
>>> open("abc")
Traceback (most recent call last):
  File "", line 1, in 
FileNotFoundError: [Errno 2] No such file or directory: 'abc'
```
It tells you clearly (and without the need for any list):
the problem was that a file could not have been opened
and that this file was named 'abc'.

Read error messages carefully -- they are usually "speaking".
Should you get a message you do not understand, ask here.
Otherwise, forget about lists of error messages.


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: List of All Error Menssages

2020-10-01 Thread Luis Gustavo Araujo
  Hi,
Is it possible to get the list of all error messages that display in
Python? I want the full message -> type error: additional message.

Examples:
NameError: name 'x' is not defined
IndentationError: unindent does not match any outer indentation level

In this webpage (ttps://docs.python.org/3/library/exceptions.html) I only
can check the type error.

[]s


Em qui., 1 de out. de 2020 às 15:59, Luis Gustavo Araujo <
luisaraujo.i...@gmail.com> escreveu:

> Hi,
> Is it possible to get the list of all error messages that display in
> Python? I want the full message -> type error: additional message.
>
> Examples:
> NameError: name 'x' is not defined
> IndentationError: unindent does not match any outer indentation level
>
> In this webpage (ttps://docs.python.org/3/library/exceptions.html) I only
> can check the type error.
>
> []s
>
>
> --
>
> [image: Prefeitura Municipal de Amélia Rodrigues]
> 
>
> LUIS GUSTAVO ARAUJO
> *Amélia Rodrigues Prefecture - Brazil  (*
>
> *Teacher of Computer Science) UNIFACS - Laureate International
> Universities (Professor Assistant I)*
>
> Degree in Computer Science (IFBA) - 2015
> Master Degrees in Computer Applied (UEFS) - 2018
> PhD  Student in Computer Science (UFBA)
> *http://dgp.cnpq.br/dgp/espelhorh/8431672735528634
> *
>
> [image: Twitter]   [image: Facebook]
>  [image: Github]
> 
>
>
>
>
> 
>  Livre
> de vírus. www.avast.com
> .
> <#m_-2814426795322638799_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>


-- 

[image: Prefeitura Municipal de Amélia Rodrigues]


LUIS GUSTAVO ARAUJO
*Amélia Rodrigues Prefecture - Brazil  (*

*Teacher of Computer Science) UNIFACS - Laureate International Universities
(Professor Assistant I)*

Degree in Computer Science (IFBA) - 2015
Master Degrees in Computer Applied (UEFS) - 2018
PhD  Student in Computer Science (UFBA)
*http://dgp.cnpq.br/dgp/espelhorh/8431672735528634
*

[image: Twitter]   [image: Facebook]
 [image: Github]

-- 
https://mail.python.org/mailman/listinfo/python-list