Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

New answers tagged

3 votes
Accepted

Validating a web crawlers page visits with a decorator

assert There is misuse of assert. As eloquently said elsewhere: Asserts should be used to test conditions that should never happen. The purpose is to crash early ...
Kate's user avatar
  • 6,743
3 votes

Validating a web crawlers page visits with a decorator

name mangling def login(self): splash_page = self.__visit_splash_page() Not sure why you requested _ ...
J_H's user avatar
  • 27.4k
4 votes
Accepted

Generic container wrapper type with a default underlying buffer (2nd rev)

About API convenience […] I prefer not to use some features (e.g. inheritance, CRTP, etc.) and this may lead to slightly less convenient API which is fine (in my opinion). Making your ...
G. Sliepen's user avatar
  • 56.8k
5 votes
Accepted

Generic container wrapper type with a default underlying buffer

The container wrapper is pretty nice. There are quite a few cases where the ideal container is something like a static_vector or ...
G. Sliepen's user avatar
  • 56.8k
3 votes
Accepted

initializing a timezone database and getting all timezone names (before main())

The code looks correct and well presented. Most of my comments are matters of style. There are a lot of headers included, in a strange order. It would be easier to comprehend in alphabetical order. ...
Toby Speight's user avatar
  • 75.7k

Top 50 recent answers are included