Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Is sharing a link to your blog a violation of the rules?
Post: RE: Is sharing a link to your blog a violation of ...

No Comment
LadySvetlana Board 4 3,043 Mar-23-2019, 04:50 PM
    Thread: Is sharing a link to your blog a violation of the rules?
Post: Is sharing a link to your blog a violation of the ...

Nothing to see here.
LadySvetlana Board 4 3,043 Mar-23-2019, 03:31 PM
    Thread: Creating custom exceptions that co-operate
Post: RE: Creating custom exceptions that co-operate

(Mar-19-2019, 02:51 PM)DeaD_EyE Wrote: If you take as first the arguments and then keyword arguments, the Exception could be used like a normal exception. If you call the class with msg or err, you ...
LadySvetlana General Coding Help 4 3,080 Mar-19-2019, 04:24 PM
    Thread: Creating custom exceptions that co-operate
Post: RE: Creating custom exceptions that co-operate

(Mar-19-2019, 01:27 AM)micseydel Wrote: What's LSP? I have a degree in computer science and five years' experience with software engineering and I'm unfamiliar with the acronym.Liskov substitution p...
LadySvetlana General Coding Help 4 3,080 Mar-19-2019, 01:17 PM
    Thread: Creating custom exceptions that co-operate
Post: Creating custom exceptions that co-operate

The Python docs state: Quote:Programs may name their own exceptions by creating a new exception class (see Classes for more about Python classes). Exceptions should typically be derived from the Ex...
LadySvetlana General Coding Help 4 3,080 Mar-18-2019, 06:08 PM
    Thread: What is the correct type hint when you want to accept Iterable but not Dictionary
Post: RE: What is the correct type hint when you want to...

(Mar-05-2019, 05:42 PM)woooee Wrote: Quote:but I was given the advice that I should use the abstract version in this case Sequence Sounds like bad advice. Why did you take it. See the whole conver...
LadySvetlana General Coding Help 4 3,344 Mar-05-2019, 07:33 PM
    Thread: What is the correct type hint when you want to accept Iterable but not Dictionary
Post: RE: What is the correct type hint when you want to...

(Mar-05-2019, 11:01 AM)perfringo Wrote: What's wrong with List[int]? From casual reading of typing - Support for type hints I have impression that this will deliver desired result (hints that func...
LadySvetlana General Coding Help 4 3,344 Mar-05-2019, 02:20 PM
    Thread: What is the correct type hint when you want to accept Iterable but not Dictionary
Post: What is the correct type hint when you want to acc...

How would I indicate, using a type hint, that the function only works with a List type data structure containing only int? I researched a little deeper and from the documentation, I found: Quote:A...
LadySvetlana General Coding Help 4 3,344 Mar-05-2019, 03:39 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020