ObjectUpdater.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:DownloaderForReddit 作者: MalloyDelacroix 项目源码 文件源码
def update_user(cls, user):
        """
        Creates a new User object with current methods and attributes and fills in the new users attributes with
        attributes from the old user object.
        :param user: The User object which is to be updated.
        :type user: User
        """
        new_user = User(__version__, user.name, user.save_path, user.post_limit, user.avoid_duplicates,
                        user.download_videos, user.download_images, user.name_downloads_by, user.user_added)
        cls.update_extras(user, new_user)
        return new_user
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号