«最老 | «以前 | [1/1] | 以后» | 最新», 总共 41 条
- 2019-09-20
- #638566 | 2019-09-20 13:15:24, *13 | <jarthur@python> neildugan: check out https://...#spawning-subprocesses or https://docs.python.org/3/library/asyncio-subprocess.html for some good asynchronous communication options
- 2019-05-31
- #638360 | 2019-05-31 01:21:27, *97 | <jarthur@python> https://...#asyncio.Task.add_done_callback
- #638358 | 2019-05-31 01:17:35, *97 | <jarthur@python> And this one calls a handler callback whenever an XML element is encountered in parsing: https://...#xml.sax.parse
- #638357 | 2019-05-31 01:17:27, *97 | <jarthur@python> https://...#timeit.Timer.autorange
- 2019-05-30
- #638267 | 2019-05-30 04:56:39, *1 | <jarthur@python>
- 2019-03-21
- #629810 | 2019-03-21 01:49:36, *2 | <jarthur@python> tsaka__: right, so seeing more can help you determine which tasks are accumulating towards that 300 seconds. I also notice the only timeout you're setting in the code you originally pasted is the socket connect timeout. https://...#aiohttp.ClientTimeout total is probably what you want.
- #629803 | 2019-03-21 01:28:09, *2 | <jarthur@python> To get aiohttp to do its own resolution using aiodns and bypass your system resolver, you specify the nameserver manually: https://...#resolving-using-custom-nameservers you might want to use the one in your resolv.conf instead of Google's like in their example.
- 2019-02-09
- #628055 | 2019-02-09 05:40:49, *0 | <jarthur@python> energizer: it actually looks like with the time it takes to construct the initial set, doing a frozenset from a list or tuple literal may be faster - https://...
- 2019-02-08
- #627953 | 2019-02-08 13:43:09, *0 | <jarthur@python>
- 2019-02-02
- #627176 | 2019-02-02 03:24:37, *1 | <jarthur@python> norwood67: and if you need to run the python in a context of a virtualenv from systemd, it's pretty straightforward: https://...
- #627175 | 2019-02-02 03:18:01, *2 | <jarthur@python> norwood67: sure, here's a couple blog posts with simple examples: https://... - https://runnable.com/docker/python/dockerize-your-python-application
- 2019-01-31
- #626918 | 2019-01-31 03:08:09, *3 | <jarthur@python> Made a proof of concept multiprocessing lock that uses sockets instead of posix semaphores for synchronization if any of your are into that sort of thing: https://...
- 2019-01-26
- #626271 | 2019-01-26 06:09:56, *5 | <jarthur@python> https://... is one of my go-tos. It doesn't do anything too smart or deep in the Python interpreter. Simply asks the OS where things are at various points.
- 2019-01-19
- #625280 | 2019-01-19 01:53:23, *1 | <jarthur@python> retiredguy: in the last example you posted, you ended up storing bytes in x, so no encoding to bytes again is necessary. Here is the fixed version: https://...
- 2018-12-07
- #619640 | 2018-12-07 03:25:14, *1 | <jarthur@python> howudodat: assuming you're using pyserial, it looks like it's a bytes object, no matter the length - https://...#serial.Serial.read
- 2018-10-17
- #612746 | 2018-10-17 13:18:43, *1 | <jarthur@python> https://... for an example of the parent-passing pattern
- 2018-10-16
- #612496 | 2018-10-16 06:54:56, *4 | <jarthur@python> https://...#common-sequence-operations for more info on that
- 2018-09-21
- #608689 | 2018-09-21 12:18:07, *1 | <jarthur@python> https://... from Nathaniel on the trio team can make file i/o faster as well
- #608683 | 2018-09-21 11:16:49, *1 | <jarthur@python> Twisted way - https://...
- #608676 | 2018-09-21 10:00:19, *4 | <jarthur@python>
- #608675 | 2018-09-21 10:00:03, *1 | <jarthur@python>
- 2018-09-17
- #608130 | 2018-09-17 14:00:07, *1 | <jarthur@python>
- 2018-09-13
- #607551 | 2018-09-13 06:21:44, *1 | <jarthur@python> sla3k: this answer and the one below it both do some combination of open and regex replacement - https://...#4428373
- 2018-09-08
- #606859 | 2018-09-08 03:11:06, *2 | <jarthur@python> squirrel: he's on the aio-libs gitter sometimes. https://...
- 2018-08-31
- #605815 | 2018-08-31 05:28:14, *1 | <jarthur@python> Meteorite: for some more reading on generator expressions - https://... - this article starts with generators in general, then moves on to the expression syntax
- 2018-08-01
- #601559 | 2018-08-01 05:30:31, *1 | <jarthur@python> hsn: if you're trying to add a dict to a set, it just can't be done due to the nature of dicts. https://... for some hints on what else to do
- #601558 | 2018-08-01 05:11:41, *1 | <jarthur@python> _sfiguser: for twisted, the top echo server example does the same - https://...
- 2018-07-20
- #600089 | 2018-07-20 00:08:20, *1 | <jarthur@python> DadsRB: are you able to see the text if you browse to https://... in IE or Edge?
- 2018-06-08
- #594233 | 2018-06-08 02:33:42, *1 | <jarthur@python> BPL: according to this, it also needs a sort_by argument... may be ignored, I don't know - https://...
- 2018-04-12
- #586032 | 2018-04-12 03:04:30, *2 | <jarthur@python> kuter: for the cryptography library you can find public key-related sign/verify examples in the documentation here: https://...
- 2018-03-24
- #583358 | 2018-03-24 03:00:42, *3 | <jarthur@python>
- 2017-10-25
- #579275 | 2017-10-25 15:47:30, *0 | <jarthur@python> and more details: https://...#django.template.Template.render
- #579259 | 2017-10-25 13:37:56, *0 | <jarthur@python>
- 2017-10-18
- #577944 | 2017-10-18 07:08:01, *0 | <jarthur@python>
- 2017-07-10
- #565047 | 2017-07-10 23:53:49, *0 | <jarthur@python> iron_houzi: it's likely an internal data structure if http://... . Maybe to store predecessors.
- 2017-07-04
- #563888 | 2017-07-04 00:06:42, *0 | <jarthur@python> mandeepb: that is pretty much what the future.utils library provides with its compatibility helpers. e.g. http://...#migrating-from-python-3-to-the-common-subset-with-python-2-7
- 2017-06-01
- #559083 | 2017-06-01 06:19:23, *0 | <jarthur@python> tsukasa_: ooh, I just saw this, which you might like: http://... behaves more like a primitive interval than a range with intervals.
- 2017-05-31
- #558934 | 2017-05-31 06:15:43, *0 | <jarthur@python> cseder, if you're curious, this person benchmarked just about every approach we talked about: http://...
- #558916 | 2017-05-31 04:58:36, *2 | <jarthur@python> CrunchyChewie: You're welcome! You might find a cleverer way of object-ifying that output. You can see the hint in the doc for the Detail parameter, when it it says "In the JSON sense, an object" http://...#CloudWatchEvents.Client.put_events
- 2017-03-08
- #543391 | 2017-03-08 07:09:45, *0 | <jarthur@python> Looks like tensorflow prefers either virtualenv or their own docker image over using anaconda at the moment anyhow: https://...#determine_how_to_install_tensorflow
- 2017-02-08
- #537136 | 2017-02-08 14:23:48, *0 | <jarthur@python> stickperson: and if performance is a concern, you might also consider not using batches at all. https://...#.xlh8ujyp1
«最老 | «以前 | [1/1] | 以后» | 最新», 总共 41 条
最近八卦大师排名前 20
历史八卦大师排名前 10
最近最活跃房间前 20
历史最活跃房间前 10
- #python*105,254
- ##php*66,221
- #ubuntu-cn*53,833
- #linuxfire*53,477
- ##c++*36,473
- ##c*27,624
- #TLF_FILES*18,030
- #bitcoin*16,176
- #kde-cn*4,693
- #lighttpd*4,606