Author serhiy.storchaka
Recipients barry, gregory.p.smith, gvanrossum, serhiy.storchaka, steven.daprano, terry.reedy, xiang.zhang
Date 2018-09-30.17:02:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538326930.23.0.545547206417.issue34850@psf.upfronthosting.co.za>
In-reply-to
Content
There is a large difference with the DeprecationWarning in the md5 and sha modules.

A SyntaxWarning is emitted when the compiler compiles Python sources to bytecode. Since bytecode is cached in pyc files, you will see it at most once at first run of the application. If the application compiles Python files at install time, warnings will be emitted at that time, and will be not emitted when run the application. If the application is distributed with precompiled pyc files, the user will not see warnings at all. If the developer installs dependencies that contain this error, his will see a warning only once, and can either ignore it (taking the current state), or report a bug. Warnings will not annoy him when he debug his code.

In contrary, the DeprecationWarning was emitted every time when you import the md5 or sha modules.

Professional applications likely already use checkers which caught this error. This warning will help non-professional applications distributed as a single script or handful of scripts. Users of such application often seat near its author. In many cases the only user is its author.
History
Date User Action Args
2018-09-30 17:02:10serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, barry, terry.reedy, gregory.p.smith, steven.daprano, xiang.zhang
2018-09-30 17:02:10serhiy.storchakasetmessageid: <1538326930.23.0.545547206417.issue34850@psf.upfronthosting.co.za>
2018-09-30 17:02:10serhiy.storchakalinkissue34850 messages
2018-09-30 17:02:10serhiy.storchakacreate