jfry's recent timeline updates
jfry's repos on GitHub
Python · 126 watchers
carry
Python ETL(Extract-Transform-Load) tool / Data migration tool
Python · 55 watchers
tablereport
A python library for making table report.
Ruby · 3 watchers
incrcov
Incremental code coverage for Ruby between two Git commits
2 watchers
rubric
Python · 2 watchers
schema
Pythonic的对象验证器/生成器/转换器
Python · 1 watchers
comment-django
Python · 1 watchers
flyweight2
A variant of the Flyweight pattern that allows the object to be modified without affecting other objects, and automatically shares the memory if the modified object is the same as other objects
Python · 0 watchers
.py
0 watchers
A-Philosophy-of-Software-Design-zh
《软件设计的哲学》中文翻译 A Philosophy of Software Design
Python · 0 watchers
beaker
WSGI middleware for sessions and caching
0 watchers
go-glob
Basic string globs in golang
0 watchers
gota
Gota: DataFrames and data wrangling in Go (Golang)
Python · 0 watchers
homework
Python · 0 watchers
nautilus-dropbox
Dropbox Integration for Nautilus
Python · 0 watchers
python-patterns
A collection of design patterns/idioms in Python
Ruby · 0 watchers
snowflake-rb
snowflake ruby impl
0 watchers
spring-tutorial
本项目是我个人在编写Spring Boot系列博客的源代码,会持续不断更新。如果项目中的代码有错误,望大家一起勘正~。
HTML · 0 watchers
toaco.github.io
My personal blog
jfry

jfry

V2EX member #252480, joined on 2017-09-05 08:04:33 +08:00
希望认识更多有兴趣或者已经深入研究Python的伙伴
jfry's recent replies
我去试试。。。谢啦
真实,哈哈
@enenaaa @chenxytw 我是看了一个讲 Python3 GIL 的 PDF 之后做的这个实验,根据这个 PDF 中的描述,当两个线程 A,B 同时运行的时候,假如 A 正在运行,此时 B 会阻塞直到超时,然后设置 gil_drop_request 为 1,A 检测到之后就会释放 GIL 并且通过信号唤醒 B,因此我理解的是此时操作系统就会让 A 睡眠,然后调度 B .是我理解错了吗?
PDF 地址: http://www.dabeaz.com/python/NewGIL.pdf
@CSM 好想法,不过该方法有个局限是无法让消费者立刻收到消息.比如生产者有紧急的信息需要通知给消费者,但是队列里面仍然有许多未消费的内容,这样消费者只能在一段时间后才能收到紧急信息.
May 10, 2018
Replied to a topic by liuxun349 Python Python 操作 excel 的相关问题
建议用 openpyxl,而且如果需要制作报表的话可以看看 [toaco/tablereport: A python library for making table report.]( https://github.com/toaco/tablereport),完全兼容 openpyxl,哈哈,溜了溜了
通过生产者和消费者共享一个变量即可,这个模型之前我实现过一个,你可以看一下这里:https://github.com/toaco/carry/blob/6d46dd65f3539ba9767281637bb59ad96b0a4b97/carry/task.py#L381
381 行是生产者生产结束之后的逻辑
404 行是消费者等待的时候处理的逻辑
这里也实现了生产者发生异常后通知消费者让消费者自行推出的逻辑.有需要的话也可以参考一下.
项目地址都忘记贴了=.=: https://github.com/toaco/rubric
Jan 11, 2018
Replied to a topic by jfry Python 找小伙伴一起写个棒棒的 Python 数据迁移工具
@vimiix 看里面的#general channel
Jan 11, 2018
Replied to a topic by jfry Python 找小伙伴一起写个棒棒的 Python 数据迁移工具
@chi1st 点上面那个 slack 链接进来就行~
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2525 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 15:59 · PVG 23:59 · LAX 08:59 · JFK 11:59
♥ Do have faith in what you're doing.