Да в общем-то тем-же людям которым были нужны и раньше. Глупо думать что десктопы не подорожают. У нас в Украине железо пока не делают, всё импорт. А импорт это доллар. Что творится с долларом вы я думаю уже видели.
> Но закупали их по 4.8 — 5 грн за бакс, а теперь пишут курс — 7.9грн за бакс. То есть — цена на ровном месте
> выросла в два раза.
дело в том что если они их продадут вам по 5 грн за бакс, то продадут себе в минус, ибо новый товар за эти деньги уже не купишь.
Note that functions (built-in and user-defined) are pickled by ``fully qualified'' name reference, not by value. This means that only the function name is pickled, along with the name of module the function is defined in. Neither the function's code, nor any of its function attributes are pickled. Thus the defining module must be importable in the unpickling environment, and the module must contain the named object, otherwise an exception will be raised3.6.
Similarly, classes are pickled by named reference, so the same restrictions in the unpickling environment apply. Note that none of the class's code or data is pickled, so in the following example the class attribute attr is not restored in the unpickling environment:
class Foo:
attr = 'a class attr'
picklestring = pickle.dumps(Foo)
These restrictions are why picklable functions and classes must be defined in the top level of a module.
Similarly, when class instances are pickled, their class's code and data are not pickled along with them. Only the instance data are pickled. This is done on purpose, so you can fix bugs in a class or add methods to the class and still load objects that were created with an earlier version of the class. If you plan to have long-lived objects that will see many versions of a class, it may be worthwhile to put a version number in the objects so that suitable conversions can be made by the class's __setstate__() method.
Аргументы примерно те-же. Нет срача в /usr/bin, быстро работает, легко разворачивать репозитории, Python
> выросла в два раза.
дело в том что если они их продадут вам по 5 грн за бакс, то продадут себе в минус, ибо новый товар за эти деньги уже не купишь.
кризис ;)
почитайте про stackless. очень интересный подход.
интересует что-то конкретное, или в целом обзор того как это делается?
Similarly, classes are pickled by named reference, so the same restrictions in the unpickling environment apply. Note that none of the class's code or data is pickled, so in the following example the class attribute attr is not restored in the unpickling environment:
class Foo:
attr = 'a class attr'
picklestring = pickle.dumps(Foo)
These restrictions are why picklable functions and classes must be defined in the top level of a module.
Similarly, when class instances are pickled, their class's code and data are not pickled along with them. Only the instance data are pickled. This is done on purpose, so you can fix bugs in a class or add methods to the class and still load objects that were created with an earlier version of the class. If you plan to have long-lived objects that will see many versions of a class, it may be worthwhile to put a version number in the objects so that suitable conversions can be made by the class's __setstate__() method.
много в общем вопросов за кадром осталось.
статья о консервации объектов и ни слова не сказано про pickle protocol.
у нас объекты это только dict?
написал свой форматтер к Pygments который в в том числе выдаёт <font>0</font> как <font>0& shy;</font>. помогло