jowj
cce022586b
- right now this is a fucking awful sync method; full copy each time - eventually i need to do something much more reasonable - probably will check gnu Stow - seriously this is garbage, but at least I can pull down a config now.
1721 lines
166 KiB
Plaintext
1721 lines
166 KiB
Plaintext
2019-07-05 13:54:04 --> zws (~blindidio@134.209.53.112) has joined #python
|
||
2019-07-05 13:54:04 -- Topic for #python is "Anything about Python is on-topic. Don't paste, use https://bpaste.net/+python | Be nice: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Local user groups: https://j.mp/1Mq06bF | #python-fr #python.de #python-uk #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu #python-dk"
|
||
2019-07-05 13:54:04 -- Topic set by nedbat (~nedbat@python/psf/nedbat) on Wed, 12 Jun 2019 05:08:05
|
||
2019-07-05 13:54:04 -- Channel #python: 1825 nicks (0 ops, 0 voices, 1825 normals)
|
||
2019-07-05 13:54:08 -- Channel created on Sun, 26 Nov 2006 00:42:41
|
||
2019-07-05 13:54:14 ikanobori You need bytes to go to hex.
|
||
2019-07-05 13:54:26 Wooble jamesson: presumably use codecs.decode the exact same way you're already using codecs.encode
|
||
2019-07-05 13:55:41 jamesson Wooble but, codecs.encode is throwing the error
|
||
2019-07-05 13:56:20 --> plexigras (plexigras@gateway/vpn/privateinternetaccess/plexigras) has joined #python
|
||
2019-07-05 13:56:38 <-- gelignite (~gelignite@55d4cd15.access.ecotel.net) has quit (Quit: Good fight, good night!)
|
||
2019-07-05 13:56:49 --> multifractal (~multifrac@85.211.236.175) has joined #python
|
||
2019-07-05 13:57:12 ikanobori jamesson: In that case pastebin the full traceback that belongs to that code.
|
||
2019-07-05 13:57:24 stealth_ jamesson, line:98 `text = text.encode()`
|
||
2019-07-05 13:57:24 ikanobori Not just the last line :)
|
||
2019-07-05 13:57:43 Wooble jamesson: what version of python?
|
||
2019-07-05 13:58:28 <-- dmh (uid189360@gateway/web/irccloud.com/x-cyltvqjcxdnwlrye) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-05 13:58:33 jamesson full traceback;
|
||
2019-07-05 13:58:35 jamesson https://bpaste.net/show/3Skz
|
||
2019-07-05 13:59:00 jamesson python v 3.7.1
|
||
2019-07-05 14:00:03 <-- kaffeetrauma (~Thunderbi@p200300CF371C4300EA2AEAFFFE805F93.dip0.t-ipconnect.de) has quit (Quit: kaffeetrauma)
|
||
2019-07-05 14:00:41 ikanobori Mrm weird, I'd have expected a typerror there.
|
||
2019-07-05 14:00:57 <-- traplord-7 (~pagrioca@gateway/tor-sasl/pagrioca) has quit (Remote host closed the connection)
|
||
2019-07-05 14:00:59 ikanobori encode_text is bytes?
|
||
2019-07-05 14:01:05 Wooble jamesson: I can't reproduce that; I kind of feel like whatever you're using to run that is lying in the traceback.
|
||
2019-07-05 14:01:33 jamesson Wooble: really! That means my python is sad.
|
||
2019-07-05 14:01:34 --> qlixed (~qlixed@190.2.28.97) has joined #python
|
||
2019-07-05 14:01:34 ikanobori Yea, codecs.encode(b"somebytes", encoding="hex") seems to work here as well.
|
||
2019-07-05 14:01:36 Wooble jamesson: that's the exact error if you actually try to .encode() on the string.
|
||
2019-07-05 14:01:46 Wooble jamesson: is this ipython? :/
|
||
2019-07-05 14:01:46 --> astronavt (~astronavt@unaffiliated/astronavt) has joined #python
|
||
2019-07-05 14:01:51 <-- valuemachine (~valuemach@216.15.114.90) has quit (Read error: Connection reset by peer)
|
||
2019-07-05 14:02:02 <-- cd (~none@gateway/tor-sasl/cd) has quit (Remote host closed the connection)
|
||
2019-07-05 14:02:36 ikanobori Ok so.
|
||
2019-07-05 14:02:46 ikanobori In your initial paste you're not importing codecs at all.
|
||
2019-07-05 14:02:46 --> cd (~none@gateway/tor-sasl/cd) has joined #python
|
||
2019-07-05 14:02:56 ikanobori Is that the code you're actually running?
|
||
2019-07-05 14:02:59 <-- Nozzzle (~Nozzzle@unaffiliated/nozzzle) has quit (Quit: Leaving)
|
||
2019-07-05 14:03:10 ikanobori I was going off the hunch that codecs might be a string :p
|
||
2019-07-05 14:03:19 <-- P1ro (~quassel@gentoo/user/p1ro) has quit (Ping timeout: 246 seconds)
|
||
2019-07-05 14:03:25 Wooble my hunch is a .pyc file.
|
||
2019-07-05 14:03:26 ikanobori But that'd be a different error still.
|
||
2019-07-05 14:03:31 --> Giant81 (uid174951@gateway/web/irccloud.com/x-ompwkjaflicugrcx) has joined #python
|
||
2019-07-05 14:03:45 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python
|
||
2019-07-05 14:04:10 Wooble I sure hope there's no way to actually get codecs.encode to tell you to use codecs.encode instead of what you're doing :)
|
||
2019-07-05 14:05:04 jamesson Oh no, it _is_ different now. How very odd.
|
||
2019-07-05 14:05:23 jamesson Wooble: it's from pypi, it's not my code
|
||
2019-07-05 14:05:43 Wooble well that's even weirder then.
|
||
2019-07-05 14:05:55 --> P1ro (~quassel@gentoo/user/p1ro) has joined #python
|
||
2019-07-05 14:05:55 jamesson updated traceback https://bpaste.net/show/OvvH
|
||
2019-07-05 14:06:08 --> s2s2s (~s@host86-147-96-153.range86-147.btcentralplus.com) has joined #python
|
||
2019-07-05 14:06:23 jamesson Wooble: what he was doing originally (I forget what it was) is for an older python
|
||
2019-07-05 14:06:39 jamesson Wooble: I just changed one line
|
||
2019-07-05 14:06:49 <-- Ergo (~ergo@91.238.59.144) has quit (Remote host closed the connection)
|
||
2019-07-05 14:07:55 Wooble looks like you're missing an import (and also probably don't edit installed stuff inside site-packages)
|
||
2019-07-05 14:08:05 <-- kindling (fk8wIYKz@unaffiliated/kindling) has quit (Quit: The cake is a lie!)
|
||
2019-07-05 14:08:13 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Ping timeout: 246 seconds)
|
||
2019-07-05 14:08:20 --> gloomy (~Gloomy@85.62-245-81.adsl-dyn.isp.belgacom.be) has joined #python
|
||
2019-07-05 14:08:44 Wooble did you use reload() or something?
|
||
2019-07-05 14:08:46 --> zahlman` (~zahlman@toroon4432w-lp130-07-76-70-105-28.dsl.bell.ca) has joined #python
|
||
2019-07-05 14:09:50 <-- s2s2s (~s@host86-147-96-153.range86-147.btcentralplus.com) has quit (Client Quit)
|
||
2019-07-05 14:10:17 jamesson Wooble: you mean, did I restart the interpreter? Yes, I always do
|
||
2019-07-05 14:10:29 --> s2s2s (~s@host86-147-96-153.range86-147.btcentralplus.com) has joined #python
|
||
2019-07-05 14:10:47 <-- Diggsey (uid120933@gateway/web/irccloud.com/x-dxaoparrvxtmqixi) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-05 14:11:02 <-- oatmealraisin (~ryan@2604:2000:14c5:c0d0:0:db61:c0e9:19a) has quit (Ping timeout: 252 seconds)
|
||
2019-07-05 14:11:39 --> awe00 (~awe00@unaffiliated/awe00) has joined #python
|
||
2019-07-05 14:11:50 --> Ariakenom (~Ariakenom@h-158-174-187-253.NA.cust.bahnhof.se) has joined #python
|
||
2019-07-05 14:12:08 <-- eusid (~logos@2601:6c0:c380:cbe:b4fd:3664:e0db:105e) has quit (Ping timeout: 252 seconds)
|
||
2019-07-05 14:13:09 jamesson Wooble: Yea, i tried to import codecs explicitly in the first few lines, same crap
|
||
2019-07-05 14:13:36 --> davo (~dave@cpe-172-113-116-246.socal.res.rr.com) has joined #python
|
||
2019-07-05 14:13:53 Wooble jamesson: if you're importing codecs and it's giving a NameError about codecs, it's not running the code you're writing
|
||
2019-07-05 14:14:58 --> purplex88 (~purplex88@unaffiliated/purplex88) has joined #python
|
||
2019-07-05 14:15:19 majuscul2 thanks ikanobori / jwhisnant !
|
||
2019-07-05 14:15:32 jamesson Wooble: drat, yea, you're right. I don't know why it keeps doing that :/
|
||
2019-07-05 14:15:37 --> djapo (~archie@unaffiliated/djapo) has joined #python
|
||
2019-07-05 14:15:53 <-- subho_ (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…)
|
||
2019-07-05 14:17:01 --> Haroune (~Thunderbi@154.121.24.157) has joined #python
|
||
2019-07-05 14:17:41 Wooble jamesson: how are you running this?
|
||
2019-07-05 14:17:44 <-- en7ropy (~en7ropy@unaffiliated/en7ropy) has quit (Read error: Connection timed out)
|
||
2019-07-05 14:17:56 jamesson Wooble: pyzo with cpython
|
||
2019-07-05 14:18:19 Wooble never heard of pyzo but it sounds buggy.
|
||
2019-07-05 14:18:44 jamesson Wooble: it's quite convenient, but I''l try to replace it
|
||
2019-07-05 14:19:18 jamesson Wooble: what's a popular ide around here?
|
||
2019-07-05 14:19:43 Wooble pycharm and vs code are both pretty popular.
|
||
2019-07-05 14:20:46 jamesson Wooble: Yea I've used vs code before, I'll transition to that as soon as I get this working
|
||
2019-07-05 14:23:00 --> sheepe1 (598edad1@BSN-142-218-209.dynamic.siol.net) has joined #python
|
||
2019-07-05 14:23:11 --> jepe (~jepe@72-47-3-174.plptcmtk01.com.sta.suddenlink.net) has joined #python
|
||
2019-07-05 14:23:14 sheepe1 Hi, does anyone have any experience on how to run unittests for wheels. I build wheels on CI servers, then I install them using `pip install *.whl` and I want to run my test suite. However, since the working directory still contains the package source code, that seems to take precedence over my installed wheel. Anybody have experience with this?
|
||
2019-07-05 14:23:24 --> indistylo (~aruns_@106.51.25.10) has joined #python
|
||
2019-07-05 14:23:45 --> cfoch (uid153227@gateway/web/irccloud.com/x-urftvukwfamzqrrq) has joined #python
|
||
2019-07-05 14:23:53 tos9 sheepe1: Well yes unfortunately a lot of testing tools are less helpful than they should be :)
|
||
2019-07-05 14:24:24 tos9 sheepe1: What test runner are you using
|
||
2019-07-05 14:24:40 <-- awe00 (~awe00@unaffiliated/awe00) has quit (Ping timeout: 246 seconds)
|
||
2019-07-05 14:24:53 Strogg Does using "python3 setup.py develop" in your python modules work the same in python3 as it used to in python2 ?
|
||
2019-07-05 14:24:58 <-- wreckingwalla (~wreckingw@158.38.221.148) has left #python ("Buhbye")
|
||
2019-07-05 14:25:13 sheepe1 tos9: I don't think this is really a test runner issue, I've tried both pytest and the regular unittest framework, but this seems like just how python handles importing modules
|
||
2019-07-05 14:25:14 tos9 Strogg: You should never run `python setup.py anything` pretty much
|
||
2019-07-05 14:25:19 Strogg I've got a module that I wrote that works in python2, but python3 can't seem to import it.
|
||
2019-07-05 14:25:22 <-- renlo (~lhoward@c-98-207-97-195.hsd1.ca.comcast.net) has quit (Ping timeout: 246 seconds)
|
||
2019-07-05 14:25:24 Strogg tos9: hrmm why not?
|
||
2019-07-05 14:25:29 tos9 sheepe1: It's a test runner issue :)
|
||
2019-07-05 14:25:31 Strogg tos9: what's the alternative?
|
||
2019-07-05 14:25:37 tos9 sheepe1: All of thsoe commands are deprecated. You want pip install -e .
|
||
2019-07-05 14:25:39 --> qwerty1793 (~qwerty179@90.194.189.222) has joined #python
|
||
2019-07-05 14:25:59 tos9 sheepe1: Anyways, if you have unittest-compatible test cases, what you should do (or at least a working combination) is to use trial, along with changedir in your tox.ini.
|
||
2019-07-05 14:26:05 --> day__ (~Unknown@unaffiliated/day) has joined #python
|
||
2019-07-05 14:26:06 --> xyxxyy (~xyxxyy@2806:10a6:13:3d8e:dc07:48ea:f79a:bef5) has joined #python
|
||
2019-07-05 14:26:23 qwerty1793 Hi, has py.test done something with their --duration=N option? I'm now getting the error "py.test: error: unrecognized arguments: --duration=20" when I run py.test --duration=20
|
||
2019-07-05 14:26:28 sheepe1 tos9: ok, but that will only install the source directory. That's very similar to `python setup.py develop`, right? I want to install wheels, which I guess `pip install -e .` won't do?
|
||
2019-07-05 14:26:33 qwerty1793 I couldn't see anything here https://docs.pytest.org/en/latest/deprecations.html
|
||
2019-07-05 14:26:38 tos9 sheepe1: That message was for Strogg
|
||
2019-07-05 14:26:39 <-- xyxxyy (~xyxxyy@2806:10a6:13:3d8e:dc07:48ea:f79a:bef5) has quit (Read error: Connection reset by peer)
|
||
2019-07-05 14:26:44 --> MmeQuignon (~matthieu@83.133.22.93.rev.sfr.net) has joined #python
|
||
2019-07-05 14:26:45 Strogg hrmmm.. this is going to be more work than I thought
|
||
2019-07-05 14:26:46 tos9 sheepe1: The second one was for you :)
|
||
2019-07-05 14:26:50 Strogg tos9: ok, thanks
|
||
2019-07-05 14:26:56 --> xyxxyy (~xyxxyy@189.165.150.76) has joined #python
|
||
2019-07-05 14:27:17 --> xa0s_ (xa0s@205.166.94.16) has joined #python
|
||
2019-07-05 14:27:45 --> dtux (~dmtucker@2601:646:c401:5751:640c:cc18:cfb9:f37d) has joined #python
|
||
2019-07-05 14:28:08 --> joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has joined #python
|
||
2019-07-05 14:28:12 <-- indistylo (~aruns_@106.51.25.10) has quit (Ping timeout: 272 seconds)
|
||
2019-07-05 14:28:50 sheepe1 tos9: Ah ok, I've never heard of trial, but looking at the homepage, there doesn't seem to be any motivation why I'd want to use that over pytest.
|
||
2019-07-05 14:28:56 cgi what is a fast way to pad a binary numpy array [1 0] --> with zeros on the left? [1,0] --> [0,0,0,0,0,0,1,0]
|
||
2019-07-05 14:29:10 <-- day (~Unknown@unaffiliated/day) has quit (Ping timeout: 244 seconds)
|
||
2019-07-05 14:29:10 -- day__ is now known as day
|
||
2019-07-05 14:29:22 --> gtristan (~tristanva@110.11.227.189) has joined #python
|
||
2019-07-05 14:29:39 tos9 sheepe1: Other than that I just told you how to fix your problem :)?
|
||
2019-07-05 14:30:09 --> c0ns (~c0ns@dslb-094-219-057-163.094.219.pools.vodafone-ip.de) has joined #python
|
||
2019-07-05 14:30:19 astronavt cgi, https://docs.scipy.org/doc/numpy/reference/generated/numpy.pad.html
|
||
2019-07-05 14:31:08 <-- joocain2 (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 260 seconds)
|
||
2019-07-05 14:31:47 --> forgottenone (~forgotten@176.88.100.202) has joined #python
|
||
2019-07-05 14:31:53 sheepe1 tos9: I'm sorry, I might be looing at the wrong thing. is it this thing? https://twistedmatrix.com/documents/15.2.0/core/howto/trial.html
|
||
2019-07-05 14:31:54 --> awe00 (~awe00@unaffiliated/awe00) has joined #python
|
||
2019-07-05 14:31:54 cgi astronavt, I was wondering if that is fast or a np.concatenate
|
||
2019-07-05 14:32:00 cgi just using np.concatenate for now
|
||
2019-07-05 14:32:17 tos9 sheepe1: It's that thing yes, it's just a unittest compatible test runner.
|
||
2019-07-05 14:32:18 <-- dtux (~dmtucker@2601:646:c401:5751:640c:cc18:cfb9:f37d) has quit (Ping timeout: 252 seconds)
|
||
2019-07-05 14:32:47 tos9 sheepe1: You might be able to get things working with pytest, but you asked for people with experience solving this before and I told you I'd done so and the tools and methods to do so :)
|
||
2019-07-05 14:32:59 astronavt cgi, benchmark it
|
||
2019-07-05 14:33:06 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python
|
||
2019-07-05 14:33:06 tos9 A key difference for example being that unlike most test runners, trial works the "rigth way" and discovers packages on your python path, not your filesystem.
|
||
2019-07-05 14:33:27 astronavt its possible that np.pad uses np.concatenate under the hood, or maybe its optimized somehow. you can read the source code for an idea but you have to benchmark to actually know
|
||
2019-07-05 14:33:37 <-- forgottenone (~forgotten@176.88.100.202) has quit (Client Quit)
|
||
2019-07-05 14:33:54 tos9 sheepe1: (that page is mostly about trial the *framework* though, the test runner is just a thing you get by running `trial foo` instead of running `python -m unittest discover foo`, and otherwise works the same way)
|
||
2019-07-05 14:33:54 --> forgottenone (~forgotten@176.88.100.202) has joined #python
|
||
2019-07-05 14:34:40 <-- forgottenone (~forgotten@176.88.100.202) has quit (Client Quit)
|
||
2019-07-05 14:35:08 --> AbleBacon (~AbleBacon@unaffiliated/ablebacon) has joined #python
|
||
2019-07-05 14:35:29 <-- colegatron (~colegatro@193.125.148.246) has quit (Ping timeout: 248 seconds)
|
||
2019-07-05 14:35:47 sheepe1 tos9: I see, it seems very quick to test this out
|
||
2019-07-05 14:35:49 --> forgottenone (~forgotten@176.88.100.202) has joined #python
|
||
2019-07-05 14:36:00 tos9 sheepe1: Yep it's about 10 seconds :)
|
||
2019-07-05 14:36:41 --> day__ (~Unknown@unaffiliated/day) has joined #python
|
||
2019-07-05 14:37:18 <-- isokee (~isokee@unaffiliated/isokee) has quit (Quit: WeeChat 2.3)
|
||
2019-07-05 14:37:30 <-- emsjessec (~emsjessec@96.56.225.51) has quit (Read error: Connection reset by peer)
|
||
2019-07-05 14:38:41 <-- day (~Unknown@unaffiliated/day) has quit (Ping timeout: 248 seconds)
|
||
2019-07-05 14:38:45 -- day__ is now known as day
|
||
2019-07-05 14:38:45 <-- nicodn (~nicodn@179.63.240.162) has quit (Quit: WeeChat 2.4)
|
||
2019-07-05 14:39:30 <-- gtristan (~tristanva@110.11.227.189) has quit (Ping timeout: 244 seconds)
|
||
2019-07-05 14:42:03 <-- panikovsky (~panikovsk@46.41.103.42) has quit (Remote host closed the connection)
|
||
2019-07-05 14:42:49 <-- Thermoriax (Thermoriax@unaffiliated/thermoriax) has quit (Quit: brb)
|
||
2019-07-05 14:44:31 <-- jamesson (6ca225eb@ool-6ca225eb.static.optonline.net) has quit (Ping timeout: 260 seconds)
|
||
2019-07-05 14:45:45 jfhbrook is there a way to set the metaclass when calling type('class name', bases, attrs) ?
|
||
2019-07-05 14:46:20 <-- xliiv (~xliiv@d89-168.icpnet.pl) has quit (Ping timeout: 258 seconds)
|
||
2019-07-05 14:46:23 <-- pro_z (~pro_z@37.214.49.10) has quit (Ping timeout: 268 seconds)
|
||
2019-07-05 14:46:59 sheepe1 tos9: I don't think trial is going to be much help. I've set up the CI to run this instead, and most of my previously passing tests are now failing for some reason... It's true that there's no error indicating that the cython extension wasn't found, but that may be just because it's obscured by all these other errors...
|
||
2019-07-05 14:47:13 <-- zahlman` (~zahlman@toroon4432w-lp130-07-76-70-105-28.dsl.bell.ca) has quit (Ping timeout: 248 seconds)
|
||
2019-07-05 14:47:16 astronavt jfhbrook, i wonder if you can pass __metaclass__ in dict=
|
||
2019-07-05 14:47:20 jfhbrook oh wait dang this isn't doing what I think it's doing haha
|
||
2019-07-05 14:47:32 jfhbrook or maybe it is 🤔
|
||
2019-07-05 14:47:36 jfhbrook but yeah maybe!
|
||
2019-07-05 14:47:47 sheepe1 tos9: it very much seems like trial doesn't respect `setUpClass`
|
||
2019-07-05 14:47:58 astronavt oh wait no
|
||
2019-07-05 14:48:02 jfhbrook trying a different strategy - I'm trying to dynamically generate marshmallow schemas and it does a lot of weird metaclass stuff so inheriting twice breaks them
|
||
2019-07-05 14:48:03 --> nomic (~nomic4@host86-184-200-83.range86-184.btcentralplus.com) has joined #python
|
||
2019-07-05 14:48:08 jfhbrook unless you manually set the schema
|
||
2019-07-05 14:48:12 astronavt jfhbrook, no the way to do it would be to call my_metaclass()
|
||
2019-07-05 14:48:17 <-- nichawla (~nichawla@27.34.247.33) has quit (Ping timeout: 244 seconds)
|
||
2019-07-05 14:48:22 --> Thermoriax (Thermoriax@unaffiliated/thermoriax) has joined #python
|
||
2019-07-05 14:48:25 astronavt type(name, bases, dict) creates a new instance of type
|
||
2019-07-05 14:48:30 <-- aaii (~aaii@unaffiliated/aaii) has quit (Remote host closed the connection)
|
||
2019-07-05 14:48:31 astronavt a metaclass is a subclass of type
|
||
2019-07-05 14:48:32 --> _honey_ (~androirc@106.198.222.16) has joined #python
|
||
2019-07-05 14:48:44 --> aaii (~aaii@unaffiliated/aaii) has joined #python
|
||
2019-07-05 14:48:48 <-- lacrymology (~lacrymolo@37.223.225.237) has quit (Ping timeout: 244 seconds)
|
||
2019-07-05 14:48:51 astronavt ergo if you want to create a new instance of the metaclass, you call the metaclass' constructor and not type()
|
||
2019-07-05 14:49:54 --> lacrymology (~lacrymolo@37.223.225.237) has joined #python
|
||
2019-07-05 14:50:03 <-- paraxial (~paraxial@cpc111133-wiga14-2-0-cust688.18-3.cable.virginm.net) has quit (Quit: The Lounge - https://thelounge.chat)
|
||
2019-07-05 14:50:27 --> paraxial (~paraxial@cpc111133-wiga14-2-0-cust688.18-3.cable.virginm.net) has joined #python
|
||
2019-07-05 14:50:35 <-- _honey_ (~androirc@106.198.222.16) has left #python ("Quit")
|
||
2019-07-05 14:50:46 tos9 sheepe1: It indeed does not (that's the one thing it deviates from, and for good reason, setUpClass is a very bad thing :)
|
||
2019-07-05 14:51:04 tos9 So yeah if you use it, you might very well not be able to use trial.
|
||
2019-07-05 14:51:16 --> renlo (~lhoward@c-98-207-97-195.hsd1.ca.comcast.net) has joined #python
|
||
2019-07-05 14:51:47 <-- nomic (~nomic4@host86-184-200-83.range86-184.btcentralplus.com) has quit (Client Quit)
|
||
2019-07-05 14:51:51 sheepe1 tos9: Why would it be a bad thing. If I have things that take a bit to set up, and I make sure to not change during the tests, than that seems like a much better idea than to have to set it up before each and every test.
|
||
2019-07-05 14:51:56 <-- Haroune (~Thunderbi@154.121.24.157) has quit (Quit: Haroune)
|
||
2019-07-05 14:52:10 --> zahlman` (~zahlman@toroon4432w-lp130-07-76-70-105-28.dsl.bell.ca) has joined #python
|
||
2019-07-05 14:52:18 --> fourier_mode (~user@140.221.10.165) has joined #python
|
||
2019-07-05 14:52:40 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python
|
||
2019-07-05 14:54:00 --> aaii-z (~aaii@unaffiliated/aaii) has joined #python
|
||
2019-07-05 14:54:51 <-- aaii (~aaii@unaffiliated/aaii) has quit (Read error: Connection reset by peer)
|
||
2019-07-05 14:55:33 --> valuemachine (~valuemach@216.15.114.90) has joined #python
|
||
2019-07-05 14:55:54 <-- renlo (~lhoward@c-98-207-97-195.hsd1.ca.comcast.net) has quit (Ping timeout: 258 seconds)
|
||
2019-07-05 14:56:21 --> bdw (bdw@ubuntu/member/bdw) has joined #python
|
||
2019-07-05 14:57:09 --> bomb-on (~bomb-on@139-142-17-89.fiber.hringdu.is) has joined #python
|
||
2019-07-05 14:57:19 --> superduperuser (~superdupe@107-141-125-214.lightspeed.hstntx.sbcglobal.net) has joined #python
|
||
2019-07-05 14:58:13 <-- ksft (~ksft@wikipedia/KSFT) has quit (Ping timeout: 258 seconds)
|
||
2019-07-05 14:59:03 <-- qwerty1793 (~qwerty179@90.194.189.222) has quit (Quit: Leaving)
|
||
2019-07-05 14:59:19 --> dale (~dale@unaffiliated/dale) has joined #python
|
||
2019-07-05 14:59:29 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 2.4)
|
||
2019-07-05 15:00:18 <-- staunch (~Staunch@nat.sierrabravo.net) has quit (Quit: Leaving.)
|
||
2019-07-05 15:01:43 runciter it breaks disttrial for one
|
||
2019-07-05 15:01:46 <-- sicelo (~sicelo@Maemo/community/ex-council/sicelo) has quit (Ping timeout: 246 seconds)
|
||
2019-07-05 15:03:05 runciter it also interacts badly with subclassing, which happens a lot with xunit
|
||
2019-07-05 15:03:06 <-- astronavt (~astronavt@unaffiliated/astronavt) has quit (Remote host closed the connection)
|
||
2019-07-05 15:03:25 runciter you can fake it with lazy initialization in setUp
|
||
2019-07-05 15:05:23 <-- olavx200 (~olavx200@ti0004q160-5288.bb.online.no) has quit (Quit: WeeChat 2.5)
|
||
2019-07-05 15:05:30 --> ksft (~ksft@wikipedia/KSFT) has joined #python
|
||
2019-07-05 15:05:54 --> renlo (~lhoward@c-98-207-97-195.hsd1.ca.comcast.net) has joined #python
|
||
2019-07-05 15:05:58 <-- xyxxyy (~xyxxyy@189.165.150.76) has quit (Read error: Connection reset by peer)
|
||
2019-07-05 15:06:10 --> xyxxyy (~xyxxyy@189.165.150.76) has joined #python
|
||
2019-07-05 15:06:13 runciter teardown is harder; i usually just let the thing live for the duration of a test process
|
||
2019-07-05 15:07:06 --> astronavt (~astronavt@unaffiliated/astronavt) has joined #python
|
||
2019-07-05 15:07:19 --> nedbat16 (4b684205@python/psf/nedbat) has joined #python
|
||
2019-07-05 15:07:32 <-- Cabanossi (~Cabanossi@ppp-88-217-66-152.dynamic.mnet-online.de) has quit (Ping timeout: 252 seconds)
|
||
2019-07-05 15:07:47 <-- bigjazzsound (~bigjazzso@38.104.183.170) has quit (Quit: WeeChat 1.9.1)
|
||
2019-07-05 15:08:53 <-- superduperuser (~superdupe@107-141-125-214.lightspeed.hstntx.sbcglobal.net) has quit (Remote host closed the connection)
|
||
2019-07-05 15:09:42 <-- Jerrynicki (~niklas@dslb-188-103-069-110.188.103.pools.vodafone-ip.de) has quit (Ping timeout: 258 seconds)
|
||
2019-07-05 15:11:01 -- nedbat16 is now known as nedbat__
|
||
2019-07-05 15:11:31 <-- Hasselsaurus (~broseidon@c-73-0-12-47.hsd1.fl.comcast.net) has quit (Quit: WeeChat 1.6)
|
||
2019-07-05 15:11:55 <-- lbalhar (~lbalhar@93.185.13.26) has quit (Ping timeout: 246 seconds)
|
||
2019-07-05 15:12:16 <-- Muzer (~muzer@tim32.org) has quit (Ping timeout: 252 seconds)
|
||
2019-07-05 15:13:14 --> Hasselsaurus (~broseidon@c-73-0-12-47.hsd1.fl.comcast.net) has joined #python
|
||
2019-07-05 15:13:28 --> nomic (~nomic4@host86-184-200-83.range86-184.btcentralplus.com) has joined #python
|
||
2019-07-05 15:14:02 <-- s2s2s (~s@host86-147-96-153.range86-147.btcentralplus.com) has quit (Quit: leaving)
|
||
2019-07-05 15:14:03 --> linux_dream (~isaac@unaffiliated/linux-dream/x-5839402) has joined #python
|
||
2019-07-05 15:15:03 <-- armyriad (armyriad@gateway/vpn/privateinternetaccess/armyriad) has quit (Ping timeout: 245 seconds)
|
||
2019-07-05 15:15:28 <-- italic (~italic@unaffiliated/italic/x-8958156) has quit (Ping timeout: 276 seconds)
|
||
2019-07-05 15:15:40 <-- lacrymology (~lacrymolo@37.223.225.237) has quit (Ping timeout: 244 seconds)
|
||
2019-07-05 15:15:54 --> armyriad (~armyriad@24-205-30-60.dhcp.nrwl.ca.charter.com) has joined #python
|
||
2019-07-05 15:16:13 <-- cd (~none@gateway/tor-sasl/cd) has quit (Changing host)
|
||
2019-07-05 15:16:13 --> cd (~none@unaffiliated/cd) has joined #python
|
||
2019-07-05 15:16:13 <-- cd (~none@unaffiliated/cd) has quit (Changing host)
|
||
2019-07-05 15:16:13 --> cd (~none@gateway/tor-sasl/cd) has joined #python
|
||
2019-07-05 15:16:28 --> lacrymology (~lacrymolo@37.223.225.237) has joined #python
|
||
2019-07-05 15:16:29 --> superduperuser (~superdupe@107-141-125-214.lightspeed.hstntx.sbcglobal.net) has joined #python
|
||
2019-07-05 15:17:22 --> nolsen (nolsen@gateway/shell/suchznc/x-zfxjiezjxqoryody) has joined #python
|
||
2019-07-05 15:18:12 <-- wafflehunter (~wafflehun@149.172.254.66) has quit (Quit: Leaving)
|
||
2019-07-05 15:18:12 <-- CyberX (~CyberX@unaffiliated/cyberx) has quit (Remote host closed the connection)
|
||
2019-07-05 15:18:44 --> Cabanossi (~Cabanossi@ppp-88-217-69-159.dynamic.mnet-online.de) has joined #python
|
||
2019-07-05 15:20:18 --> Xavkno (~Xavkno@dhcp-089-099-034-132.chello.nl) has joined #python
|
||
2019-07-05 15:20:42 <-- arptiw (~Thunderbi@2401:4900:2e96:594:d7e:b162:7c03:cb09) has quit (Ping timeout: 252 seconds)
|
||
2019-07-05 15:20:51 <-- sheepe1 (598edad1@BSN-142-218-209.dynamic.siol.net) has quit (Remote host closed the connection)
|
||
2019-07-05 15:21:07 <-- xyxxyy (~xyxxyy@189.165.150.76) has quit (Read error: Connection reset by peer)
|
||
2019-07-05 15:21:24 --> xyxxyy (~xyxxyy@189.165.150.76) has joined #python
|
||
2019-07-05 15:22:20 <-- yn (~yano@freenode/staff-emeritus/yano) has quit (Remote host closed the connection)
|
||
2019-07-05 15:22:49 --> yn (~yano@freenode/staff-emeritus/yano) has joined #python
|
||
2019-07-05 15:22:57 <-- multifractal (~multifrac@85.211.236.175) has quit (Ping timeout: 248 seconds)
|
||
2019-07-05 15:24:00 --> FreeFull (~freefull@defocus/sausage-lover) has joined #python
|
||
2019-07-05 15:24:00 <-- P1ro (~quassel@gentoo/user/p1ro) has quit (Ping timeout: 268 seconds)
|
||
2019-07-05 15:24:06 <-- nomic (~nomic4@host86-184-200-83.range86-184.btcentralplus.com) has quit (Quit: Leaving)
|
||
2019-07-05 15:24:14 <-- mnemonic (~semeion@unaffiliated/semeion) has quit (Read error: Connection reset by peer)
|
||
2019-07-05 15:24:18 <-- esro (~esro@user119-167.otvarta.com.pl) has quit (Quit: Leaving)
|
||
2019-07-05 15:24:58 <-- Xavkno (~Xavkno@dhcp-089-099-034-132.chello.nl) has quit (Ping timeout: 244 seconds)
|
||
2019-07-05 15:25:08 <-- valuemachine (~valuemach@216.15.114.90) has quit (Read error: Connection reset by peer)
|
||
2019-07-05 15:25:13 --> X230t (x13@gateway/shell/suchznc/x-kokfpruieojbazpv) has joined #python
|
||
2019-07-05 15:25:19 --> Muzer (~muzer@tim32.org) has joined #python
|
||
2019-07-05 15:25:19 --> mnemonic (~semeion@unaffiliated/semeion) has joined #python
|
||
2019-07-05 15:25:27 <-- superduperuser (~superdupe@107-141-125-214.lightspeed.hstntx.sbcglobal.net) has quit (Remote host closed the connection)
|
||
2019-07-05 15:27:41 --> sicelo_ (~sicelo@Maemo/community/ex-council/sicelo) has joined #python
|
||
2019-07-05 15:27:41 --> Lucas_Gray (~Wryhder@41.190.3.176) has joined #python
|
||
2019-07-05 15:28:11 --> joocain2 (~joocain2@gateway/tor-sasl/joocain2) has joined #python
|
||
2019-07-05 15:28:16 --> geekt (~geekt@2600:1702:2060:2910::7cf) has joined #python
|
||
2019-07-05 15:28:45 --> Narrat (~Narrat@p2E511D9F.dip0.t-ipconnect.de) has joined #python
|
||
2019-07-05 15:28:46 <-- nedbat__ (4b684205@python/psf/nedbat) has quit (Remote host closed the connection)
|
||
2019-07-05 15:29:02 <-- czart (~czart@acda167.neoplus.adsl.tpnet.pl) has quit (Read error: Connection reset by peer)
|
||
2019-07-05 15:29:11 --> xliiv (~xliiv@d89-168.icpnet.pl) has joined #python
|
||
2019-07-05 15:29:18 --> Rudolf (~rodolfo@unaffiliated/rudolf) has joined #python
|
||
2019-07-05 15:29:35 --> mithrison (602dc1ab@96.45.193.171) has joined #python
|
||
2019-07-05 15:29:48 mithrison how can I get wlan0 info from ifconfig using python?
|
||
2019-07-05 15:29:53 mithrison python3
|
||
2019-07-05 15:31:13 altendky mithrison: I forget how much but psutil has some networking stuff
|
||
2019-07-05 15:31:48 <-- joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 260 seconds)
|
||
2019-07-05 15:32:12 --> henninb (~henninb@63-226-185-83.mpls.qwest.net) has joined #python
|
||
2019-07-05 15:33:24 altendky jfhbrook: did you figure out the schema generation? I don't remember all of it but I've got it working in graham. Though I don't think I did multiple inheritance.
|
||
2019-07-05 15:33:37 <-- Kelzorz (~Kelzorz@162.104.220.155) has quit (Ping timeout: 248 seconds)
|
||
2019-07-05 15:33:43 purplex88 where can i find interface.rstrip() function? i get error interface not found
|
||
2019-07-05 15:33:57 <-- CookieM (~tomek@afbt188.neoplus.adsl.tpnet.pl) has quit (Quit: Leaving)
|
||
2019-07-05 15:34:12 Wooble purplex88: rstrip is a string method. where did you see "interface"?
|
||
2019-07-05 15:34:50 <-- RickDeckard (~tgburrin@pool-100-12-172-250.nycmny.fios.verizon.net) has quit (Quit: Leaving...)
|
||
2019-07-05 15:34:58 purplex88 let me see
|
||
2019-07-05 15:35:34 purplex88 ah yes i see
|
||
2019-07-05 15:35:42 purplex88 i saw it here: interface = popen('ifconfig | awk \'/eth0/ {print $1}\'').read()
|
||
2019-07-05 15:35:56 Wooble gross.
|
||
2019-07-05 15:36:02 <-- yn (~yano@freenode/staff-emeritus/yano) has quit (Quit: WeeChat, The Better IRC Client, https://weechat.org/)
|
||
2019-07-05 15:36:08 monoprotic my eyes
|
||
2019-07-05 15:36:17 purplex88 eyes?
|
||
2019-07-05 15:36:31 purplex88 you mean it is not good code?
|
||
2019-07-05 15:36:33 Wooble purplex88: where did you find this horrible code?
|
||
2019-07-05 15:36:56 purplex88 in file from web
|
||
2019-07-05 15:37:03 purplex88 does it use regex?
|
||
2019-07-05 15:37:23 purplex88 it does look complicated
|
||
2019-07-05 15:37:34 Wooble purplex88: I *think* /eth0/ there is treated as a regex; I don't really know awk.
|
||
2019-07-05 15:37:48 Wooble (or why someone would call awk in a python program. I don't know that at all.)
|
||
2019-07-05 15:38:17 waynew that's an atrocity is what that is :P
|
||
2019-07-05 15:38:26 purplex88 it seems linux only
|
||
2019-07-05 15:38:33 confluency purplex88: yes, that uses regex in awk. That awk program prints each line which matches that regex.
|
||
2019-07-05 15:39:04 purplex88 i think its bad way to get network interface
|
||
2019-07-05 15:39:08 Wooble grep would have been shorter. also just as dumb.
|
||
2019-07-05 15:39:12 purplex88 thats why horrible?
|
||
2019-07-05 15:39:17 confluency Well, it't not great, no/
|
||
2019-07-05 15:39:19 jwhisnant purplex88: there is a cross platform python module for this, dont remember name atm
|
||
2019-07-05 15:39:35 waynew because you can just read it into Python. Or, use a module that exists and is designed for the task
|
||
2019-07-05 15:39:45 <-- duckpuppy (~duckpuppy@h243.193.140.67.dynamic.ip.windstream.net) has quit (Quit: ZNC 1.7.4 - https://znc.in)
|
||
2019-07-05 15:39:51 purplex88 but it is horrible because of regex?
|
||
2019-07-05 15:39:58 monoprotic Wooble: awk also pulls out the first token there
|
||
2019-07-05 15:40:02 purplex88 of the way it is getting interface
|
||
2019-07-05 15:40:04 purplex88 or*
|
||
2019-07-05 15:40:24 <-- beastDiv_ (~beastDivi@2601:644:400:4041:980b:7c60:655b:2742) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
|
||
2019-07-05 15:40:29 jwhisnant purplex88: https://pypi.org/project/netifaces/ perhaps
|
||
2019-07-05 15:40:35 astronavt Wooble, yeah that awk program will print the first "field" of any line that contains "eth0" in it
|
||
2019-07-05 15:40:35 _habnabit what platform still stupports ifconfig?
|
||
2019-07-05 15:40:50 purplex88 _habnabit: linux
|
||
2019-07-05 15:41:01 astronavt Wooble, [line.split()[0] for line in output if re.search('eth0', line)]
|
||
2019-07-05 15:41:04 _habnabit purplex88, 'linux' isn't a platform. what userland?
|
||
2019-07-05 15:41:04 runciter purplex88, `ip -json link list`
|
||
2019-07-05 15:41:17 monoprotic astronavt: `if 'eth0' in line`
|
||
2019-07-05 15:41:26 purplex88 any linux based land i guess
|
||
2019-07-05 15:41:30 --> duckpuppy (~duckpuppy@h243.193.140.67.dynamic.ip.windstream.net) has joined #python
|
||
2019-07-05 15:41:30 --> nedbat93 (4b684205@python/psf/nedbat) has joined #python
|
||
2019-07-05 15:41:40 runciter you will almost certainly have iproute2, so you can use the `ip` suite, which can output json
|
||
2019-07-05 15:41:48 -- nedbat93 is now known as nedbat__
|
||
2019-07-05 15:41:48 astronavt monoprotic, well awk uses regex by default re.search would be more like what awk actually does
|
||
2019-07-05 15:42:07 <-- nibble_zero (~nibble_ze@94.250.182.222) has quit (Quit: nibble_zero)
|
||
2019-07-05 15:42:12 confluency Actually... I don't know what this is supposed to do. If the line matches eth0 it will print the first "field" in the line, which is... eth0, which you already know.
|
||
2019-07-05 15:42:53 nedbat__ ugh, I find myself in another bugs.python.org debate which I will likely lose: https://bugs.python.org/issue37500
|
||
2019-07-05 15:43:37 --> indistylo (~aruns_@106.51.25.10) has joined #python
|
||
2019-07-08 09:35:10 --> zws (~blindidio@134.209.53.112) has joined #python
|
||
2019-07-08 09:35:10 -- Topic for #python is "Anything about Python is on-topic. Don't paste, use https://bpaste.net/+python | Be nice: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Local user groups: https://j.mp/1Mq06bF | #python-fr #python.de #python-uk #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu #python-dk"
|
||
2019-07-08 09:35:10 -- Topic set by nedbat (~nedbat@python/psf/nedbat) on Wed, 12 Jun 2019 05:08:05
|
||
2019-07-08 09:35:11 -- Channel #python: 1856 nicks (0 ops, 0 voices, 1856 normals)
|
||
2019-07-08 09:35:15 -- Channel created on Sun, 26 Nov 2006 00:42:41
|
||
2019-07-08 09:35:16 <-- Deusdeorum (~Deusdeoru@unaffiliated/deusdeorum) has quit (Quit: Textual IRC Client: www.textualapp.com)
|
||
2019-07-08 09:35:18 <-- dab21 (~dab21@pistis.amyanddavid.net) has left #python
|
||
2019-07-08 09:35:21 blackswan in python 2.7, supposed i have this expression: lambda self: big_hairy_expression_involving_self_i_do_not_want_to_type_twice
|
||
2019-07-08 09:35:22 --> dab21 (~dab21@pistis.amyanddavid.net) has joined #python
|
||
2019-07-08 09:35:23 <-- jepe (~jepe@205-201-98-248.plptcmtk01.res.dyn.suddenlink.net) has quit (Remote host closed the connection)
|
||
2019-07-08 09:35:27 --> Jerrynicki (~niklas@dslb-178-008-177-046.178.008.pools.vodafone-ip.de) has joined #python
|
||
2019-07-08 09:35:34 --> sincorchetes (3e52226a@gateway/web/thelounge/ip.62.82.34.106) has joined #python
|
||
2019-07-08 09:35:41 -- chandankumar is now known as raukadah
|
||
2019-07-08 09:35:43 <-- Sylhouette (~johan@62.12.9.66) has quit (Remote host closed the connection)
|
||
2019-07-08 09:36:02 <-- toxync04 (~toxync04@223.72.93.195) has quit (Excess Flood)
|
||
2019-07-08 09:36:09 --> jepe (~jepe@205-201-98-248.plptcmtk01.res.dyn.suddenlink.net) has joined #python
|
||
2019-07-08 09:36:32 blackswan and would like to have lambda: self "replacement" if big_hairy_expression_involving_self_i_do_not_want_to_type_twice == "thing_to_replace" else big_hairy_expression_involving_self_i_do_not_want_to_type_twice
|
||
2019-07-08 09:36:33 --> isomari (~isomari@197.210.243.178) has joined #python
|
||
2019-07-08 09:36:57 --> parazyd (~parazyd@devuan/developer/parazyd) has joined #python
|
||
2019-07-08 09:37:02 sincorchetes Hello all, I have this problem. When I try to compress a directory in Windows likes C:\Users\sincorchetes\Downloads\example with this script https://paste.fedoraproject.org/paste/Q6QJqMjl44Cy3XYu0AERTQ. I get this error: https://paste.fedoraproject.org/paste/2p43NI8zp2g0Gyv1zsWu8Q . However, If I use "." like current directory, works fine. Why?
|
||
2019-07-08 09:37:09 blackswan is there some concise way to say this without typing big_hairy_expression_involving_self_i_do_not_want_to_type_twice twice?
|
||
2019-07-08 09:38:07 blackswan i.e., i effectively want to assign big_hairy_expression_involving_self_i_do_not_want_to_type_twice to a variable with a nice short name local to the lambda so i can then say "replacement" if nice_short_name else nice_shortname
|
||
2019-07-08 09:38:37 --> toxync04 (~toxync04@120.244.111.187) has joined #python
|
||
2019-07-08 09:38:38 blackswan but there seems to be no way to hide an assignment statement inside an expression.
|
||
2019-07-08 09:38:49 <-- RoseBus (~RoseBus@unaffiliated/rosebus) has quit (Read error: Connection reset by peer)
|
||
2019-07-08 09:38:54 --> abdulocracy (~abdulocra@87-206-70-87.dynamic.chello.pl) has joined #python
|
||
2019-07-08 09:39:00 --> gtristan (~tristanva@110.11.227.189) has joined #python
|
||
2019-07-08 09:39:09 --> joocain2 (~joocain2@gateway/tor-sasl/joocain2) has joined #python
|
||
2019-07-08 09:39:13 --> RoseBus (~RoseBus@unaffiliated/rosebus) has joined #python
|
||
2019-07-08 09:39:20 --> arinov (~arinov@85.203.13.84) has joined #python
|
||
2019-07-08 09:39:28 <-- lacrymology (~lacrymolo@112.red-193-153-13.dynamicip.rima-tde.net) has quit (Ping timeout: 246 seconds)
|
||
2019-07-08 09:40:10 sincorchetes My script works in Linux
|
||
2019-07-08 09:40:35 --> xliiv_ (~xliiv@public-gprs393941.centertel.pl) has joined #python
|
||
2019-07-08 09:40:35 sincorchetes And works if I introduce "." likes current dir in Windows, but not absolute path
|
||
2019-07-08 09:40:35 blackswan in c, i could use an assignment statement as an expression and use the comma operator, and have something like (tmp= big_hairy_expression_involving_self_i_do_not_want_to_type_twice, (tmp == "thing_to_replace ? "replacement" else tmp)
|
||
2019-07-08 09:40:45 <-- glguy (~glguy@freenode/staff/haskell.developer.glguy) has quit (Remote host closed the connection)
|
||
2019-07-08 09:40:50 --> CookieM (~tomek@affd124.neoplus.adsl.tpnet.pl) has joined #python
|
||
2019-07-08 09:40:53 --> abm (~abm@088156197168.unknown.vectranet.pl) has joined #python
|
||
2019-07-08 09:40:54 --> resoluti0n (resoluti0n@gateway/vpn/privateinternetaccess/resoluti0n) has joined #python
|
||
2019-07-08 09:41:18 <-- Jerrynicki (~niklas@dslb-178-008-177-046.178.008.pools.vodafone-ip.de) has quit (Ping timeout: 245 seconds)
|
||
2019-07-08 09:41:51 --> thunor (~thunor@unaffiliated/thunor) has joined #python
|
||
2019-07-08 09:41:55 tos9 benjwadams: Define a regular funciton.
|
||
2019-07-08 09:41:57 --> Chukk (~Chukk@p200300E41F32410189D256F742AAA6AC.dip0.t-ipconnect.de) has joined #python
|
||
2019-07-08 09:42:10 --> ksk (~ksk@gateway/tor-sasl/ksk) has joined #python
|
||
2019-07-08 09:42:15 ksk hola
|
||
2019-07-08 09:42:18 <-- thiras (~thiras@unaffiliated/thiras) has quit (Remote host closed the connection)
|
||
2019-07-08 09:42:23 blackswan so, am i correct in thinking there's no way to do an assignment to a temp variable in an expression?
|
||
2019-07-08 09:42:25 <-- etchi (~etchi@89-160-86-156.cust.bredband2.com) has quit (Quit: Leaving)
|
||
2019-07-08 09:42:29 han-solo ksk: hola
|
||
2019-07-08 09:42:34 CoolerZ what does this mean? TypeError: __int__ returned non-int (type NoneType)
|
||
2019-07-08 09:42:40 <-- joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 260 seconds)
|
||
2019-07-08 09:42:44 CoolerZ the input to int() was None ?
|
||
2019-07-08 09:42:44 cdunklau CoolerZ: means you probably misspelled __init__
|
||
2019-07-08 09:42:44 <-- jepe (~jepe@205-201-98-248.plptcmtk01.res.dyn.suddenlink.net) has quit (Ping timeout: 268 seconds)
|
||
2019-07-08 09:42:47 blackswan i'd have to define a function elsewhere to achieve this?
|
||
2019-07-08 09:42:51 CoolerZ cdunklau, no
|
||
2019-07-08 09:42:53 --> mikez (mikez@pronk/mikey) has joined #python
|
||
2019-07-08 09:42:57 <-- n1` (~root@91.139.14.162) has quit (Ping timeout: 245 seconds)
|
||
2019-07-08 09:43:11 cdunklau CoolerZ: then it means somewhere you have an __int__ method that didn't return an int
|
||
2019-07-08 09:43:13 SnoopJeDi CoolerZ, it means something called __int__() expecting to turn your object into an integer, and the function returned None
|
||
2019-07-08 09:43:23 <-- xliiv (~xliiv@d89-168.icpnet.pl) has quit (Ping timeout: 245 seconds)
|
||
2019-07-08 09:43:26 SnoopJeDi (or didn't explicitly return at all, which is the same thing)
|
||
2019-07-08 09:43:30 <-- sldr (~sldr@ip-sw-01.mentice.com) has quit (Read error: Connection reset by peer)
|
||
2019-07-08 09:43:36 han-solo # TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
|
||
2019-07-08 09:43:36 <-- AbedB__ (~AbedBhuty@bzq-79-179-42-221.red.bezeqint.net) has quit (Read error: Connection reset by peer)
|
||
2019-07-08 09:43:40 cdunklau blackswan: indeed
|
||
2019-07-08 09:43:43 --> glguy (~glguy@freenode/staff/haskell.developer.glguy) has joined #python
|
||
2019-07-08 09:43:46 --> rsrx (~rsrx@87.116.190.135) has joined #python
|
||
2019-07-08 09:43:59 --> asdfgh (~asdfgh@net-2-35-224-158.cust.vodafonedsl.it) has joined #python
|
||
2019-07-08 09:44:02 --> AbedB__ (~AbedBhuty@162.220.164.100) has joined #python
|
||
2019-07-08 09:44:03 asdfgh hello guys
|
||
2019-07-08 09:44:03 ksk I want to have a python application which gets data via API foo, and pushes that data to API bar - can you recommend something? (I know requests for example, is there anything more specific to my task maybe?)
|
||
2019-07-08 09:44:16 --> conor_f (~conor@79.97.132.36) has joined #python
|
||
2019-07-08 09:44:20 han-solo cdunklau: can `__init__` method return anything other than `None` ?
|
||
2019-07-08 09:44:29 ksk API being two restful HTTP APIs in that case.
|
||
2019-07-08 09:44:30 cdunklau han-solo: no
|
||
2019-07-08 09:44:46 han-solo # cdunklau> CoolerZ: then it means somewhere you have an __int__ method that didn't return an int # that confused me
|
||
2019-07-08 09:44:47 --> kylerbush (~kylerbush@ec2-54-86-88-147.compute-1.amazonaws.com) has joined #python
|
||
2019-07-08 09:44:52 CoolerZ -> 3345 logits = tf.reshape(output, [-1, int(output_shape[-1])])
|
||
2019-07-08 09:44:57 cdunklau han-solo: __int__ != __init__
|
||
2019-07-08 09:45:00 <-- yakiza (~yakiza@217.111.39.134) has quit (Quit: WeeChat 2.4)
|
||
2019-07-08 09:45:01 han-solo ah
|
||
2019-07-08 09:45:04 han-solo f..
|
||
2019-07-08 09:45:09 CoolerZ maybe the tuple was empty?
|
||
2019-07-08 09:45:17 blackswan ok, thx cdunklau. just checking. i use so many different languages it is sometimes difficult to keep track of what you can do how in which.
|
||
2019-07-08 09:45:19 --> kristian_ (~kristian_@212.51.152.242) has joined #python
|
||
2019-07-08 09:45:23 cdunklau CoolerZ: i'd expect an IndexError in that case
|
||
2019-07-08 09:45:23 Wooble blackswan: in py3.8 you could do it but also probably don't write lambdas that long. (or even short ones)
|
||
2019-07-08 09:45:42 --> AbedB_ (~AbedBhuty@bzq-79-179-42-221.red.bezeqint.net) has joined #python
|
||
2019-07-08 09:45:54 cdunklau CoolerZ: what's type(output_shape[-1]) say
|
||
2019-07-08 09:46:11 saml is datetime.date mutable? can I use it as default argument?
|
||
2019-07-08 09:46:15 conor_f Is there any way I can run a shell command and for each line of the output run a function?
|
||
2019-07-08 09:46:17 cdunklau saml: no, yes
|
||
2019-07-08 09:46:18 CoolerZ cdunklau, yeah
|
||
2019-07-08 09:46:19 blackswan thx, Wooble. i can't use 3.8 for this, afaik. something i'm using, i forget what, requires 2.7. i think.
|
||
2019-07-08 09:46:29 conor_f The output doesn't terminate, just runs indefinitely so will be on a Thread
|
||
2019-07-08 09:46:29 CoolerZ cdunklau, all of that is deep in library code
|
||
2019-07-08 09:46:34 CoolerZ i can't say for sure
|
||
2019-07-08 09:46:41 cdunklau CoolerZ: use a debugger?
|
||
2019-07-08 09:46:57 --> t2mkn (~t2mkn@43.226.2.65) has joined #python
|
||
2019-07-08 09:46:57 <-- gat0r (~gat0r@96.70.0.178) has quit (Quit: This computer has gone to sleep)
|
||
2019-07-08 09:46:58 Wooble blackswan: 3.8 isn't even released yet so most people can't really use it in production unless they're really bleeding edge and don't mind being cut to ribbons :)
|
||
2019-07-08 09:47:01 saml thanks
|
||
2019-07-08 09:47:08 blackswan well, i meant 3.anything.
|
||
2019-07-08 09:47:09 --> codingthings (~codingthi@144.121.72.130) has joined #python
|
||
2019-07-08 09:47:24 cdunklau conor_f: subprocess.Popen, and loop over the returned object's .stdout
|
||
2019-07-08 09:48:05 <-- hampusw (~hampusw@81-231-86-53-no39.tbcn.telia.com) has quit (Remote host closed the connection)
|
||
2019-07-08 09:48:10 CoolerZ cdunklau, how does that work anyway
|
||
2019-07-08 09:48:21 blackswan in this particular project i have so many dependencies i'm not even sure if i'm legally allowed to run it due to license conflicts...
|
||
2019-07-08 09:48:21 asdfgh pardon guys for the stupid question, should i "define" an empty method with "pass" if i always use that method from the class that inherits First class http://paste.arn-fai.net/?2911353
|
||
2019-07-08 09:48:22 cdunklau CoolerZ: how does what work
|
||
2019-07-08 09:48:37 cdunklau asdfgh: ideally you wouldn't use inheritance at all
|
||
2019-07-08 09:48:38 asdfgh from line 2 to 3, makes any sense?
|
||
2019-07-08 09:48:45 asdfgh cdunklau, why ?
|
||
2019-07-08 09:48:45 CoolerZ cdunklau, a debugger in jupyter notebook
|
||
2019-07-08 09:48:46 --> indistylo (~aruns_@2401:4900:3314:15d9:8068:d18c:3796:b170) has joined #python
|
||
2019-07-08 09:48:49 <-- AbedB__ (~AbedBhuty@162.220.164.100) has quit (Read error: Connection reset by peer)
|
||
2019-07-08 09:48:51 cdunklau CoolerZ: i dunno
|
||
2019-07-08 09:49:10 cdunklau asdfgh: that link 500s for me
|
||
2019-07-08 09:49:12 <-- toxync04 (~toxync04@120.244.111.187) has quit (Ping timeout: 245 seconds)
|
||
2019-07-08 09:49:17 <-- roryrjb (roryrjb@gateway/vpn/privateinternetaccess/roryrjb) has quit (Remote host closed the connection)
|
||
2019-07-08 09:49:24 asdfgh http://paste.arn-fai.net/?2911353 cdunklau ?
|
||
2019-07-08 09:49:31 asdfgh can't open it ?
|
||
2019-07-08 09:49:36 --> roryrjb (roryrjb@gateway/vpn/privateinternetaccess/roryrjb) has joined #python
|
||
2019-07-08 09:49:38 cdunklau asdfgh: inheritance tends to be misuesd
|
||
2019-07-08 09:49:41 Wooble asdfgh: link doesn't work for me but the "correct" was is to make the method abstract with the abc module and the "more correct" way is to not do that :)
|
||
2019-07-08 09:49:42 cdunklau misused, even
|
||
2019-07-08 09:50:01 blackswan and the lambda just got so long for other reasons that it's no longer a lambda anyway
|
||
2019-07-08 09:50:03 <-- xliiv_ (~xliiv@public-gprs393941.centertel.pl) has quit (Quit: Leaving)
|
||
2019-07-08 09:50:11 han-solo oh, it got a 500 for me too
|
||
2019-07-08 09:50:18 han-solo but it works after i tried again
|
||
2019-07-08 09:50:22 asdfgh ok i will try to not use it :D
|
||
2019-07-08 09:50:25 asdfgh thanks guys
|
||
2019-07-08 09:50:31 --> littlepython (6a33e88a@106.51.232.138) has joined #python
|
||
2019-07-08 09:50:44 --> heyitsrama (~heyitsram@50-255-54-213-static.hfc.comcastbusiness.net) has joined #python
|
||
2019-07-08 09:50:52 --> led_dark_1 (~Thunderbi@217.66.160.14) has joined #python
|
||
2019-07-08 09:51:06 littlepython how can i find the top 5 process that consumes high cpu in python
|
||
2019-07-08 09:51:16 asdfgh han-solo, for security reason :D ahahah
|
||
2019-07-08 09:51:23 asdfgh i donot know
|
||
2019-07-08 09:51:24 <-- micisuta (~quassel@82.3.54.26) has quit (Ping timeout: 272 seconds)
|
||
2019-07-08 09:51:37 asdfgh i used a stupid nopaste service
|
||
2019-07-08 09:51:40 <-- heyitsrama (~heyitsram@50-255-54-213-static.hfc.comcastbusiness.net) has quit (Remote host closed the connection)
|
||
2019-07-08 09:51:45 littlepython for p in psutil.process_iter(): p.dict = p.as_dict(['name', 'cpu_percent'])
|
||
2019-07-08 09:52:05 littlepython would be great if someone could explain how to approach through a snippet
|
||
2019-07-08 09:52:50 <-- sandeepk (~sandeepk@2405:204:38a:3f29:6cbc:1a24:561d:c44e) has quit (Remote host closed the connection)
|
||
2019-07-08 09:53:03 --> heyitsrama (~heyitsram@50-255-54-213-static.hfc.comcastbusiness.net) has joined #python
|
||
2019-07-08 09:53:27 --> milker4202 (~milker420@216.163.24.50) has joined #python
|
||
2019-07-08 09:53:58 --> toxync04 (~toxync04@223.72.46.237) has joined #python
|
||
2019-07-08 09:54:10 <-- schne1der (~schneider@unaffiliated/schneider) has quit (Ping timeout: 246 seconds)
|
||
2019-07-08 09:54:45 <-- sword865 (uid208942@gateway/web/irccloud.com/x-rfvdhfbbqromjywb) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-08 09:54:46 <-- xcm (~xcm@ipa210.225.tellas.gr) has quit (Remote host closed the connection)
|
||
2019-07-08 09:55:26 <-- heyitsrama (~heyitsram@50-255-54-213-static.hfc.comcastbusiness.net) has quit (Remote host closed the connection)
|
||
2019-07-08 09:55:54 --> xcm (~xcm@ipa210.225.tellas.gr) has joined #python
|
||
2019-07-08 09:56:42 _ceb I'm not familiar with this
|
||
2019-07-08 09:56:54 --> heyitsrama (~heyitsram@50-255-54-213-static.hfc.comcastbusiness.net) has joined #python
|
||
2019-07-08 09:57:13 _ceb But can't you use list() and then sort() with key='cpu_percent'
|
||
2019-07-08 09:57:14 --> tkore4 (~tkore@unaffiliated/ardethian) has joined #python
|
||
2019-07-08 09:57:22 <-- bashfulshell (uid190567@gateway/web/irccloud.com/x-fhmbjmlphompeulx) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-08 09:57:32 SnoopJeDi littlepython, you probably want something like `sorted(process_iter(), key=lambda p: p.cpu_percent(), reverse=True)[:5]`
|
||
2019-07-08 09:57:49 <-- conor_f (~conor@79.97.132.36) has quit (Quit: leaving)
|
||
2019-07-08 09:57:59 mrtnt Which of those two approaches is cleaner or more elegant: https://paste.debian.net/plainh/b37ca40d vs https://paste.debian.net/plainh/13a90cb7 For me the second one looks better..
|
||
2019-07-08 09:58:18 <-- milker4202 (~milker420@216.163.24.50) has quit (Remote host closed the connection)
|
||
2019-07-08 09:58:18 <-- LtHummus (~lthummus@97-113-38-185.tukw.qwest.net) has quit (Read error: Connection reset by peer)
|
||
2019-07-08 09:58:44 --> Haroune (~Thunderbi@105.100.32.99) has joined #python
|
||
2019-07-08 09:58:46 --> tsglove (~tsglove@12.205.72.46) has joined #python
|
||
2019-07-08 09:58:59 cdunklau mrtnt: the latter
|
||
2019-07-08 09:59:07 --> paratox (~paratox@unaffiliated/paratox) has joined #python
|
||
2019-07-08 09:59:08 --> LtHummus (~lthummus@97-113-38-185.tukw.qwest.net) has joined #python
|
||
2019-07-08 09:59:13 --> ggnoredo (~ggnoredo@78.186.15.89) has joined #python
|
||
2019-07-08 09:59:16 cdunklau mrtnt: [''] * 7 is even better
|
||
2019-07-08 09:59:25 <-- Blankspace (~Blankspac@unaffiliated/blankspace) has quit (Remote host closed the connection)
|
||
2019-07-08 09:59:35 cdunklau (just don't do that if you actually have a mutable object instead of a string)
|
||
2019-07-08 09:59:43 --> Blankspace (~Blankspac@unaffiliated/blankspace) has joined #python
|
||
2019-07-08 10:00:30 mrtnt cdunklau: oh, I didn't know that "[''] * 7" is possible. Thanks!
|
||
2019-07-08 10:00:39 --> achen_ (~thefatma@bzq-79-183-3-1.red.bezeqint.net) has joined #python
|
||
2019-07-08 10:00:52 <-- ivanf (~ivan@unaffiliated/kferdous) has quit (Ping timeout: 244 seconds)
|
||
2019-07-08 10:01:23 --> Leonarbro (~Leonarbro@S01067824af93741c.cg.shawcable.net) has joined #python
|
||
2019-07-08 10:01:25 <-- mcsontos (mcsontos@nat/redhat/x-hheonyocnboyteef) has quit (Quit: Leaving)
|
||
2019-07-08 10:01:27 <-- mat001 (~mat001@c-71-202-208-146.hsd1.ca.comcast.net) has quit (Remote host closed the connection)
|
||
2019-07-08 10:01:43 <-- tkore4 (~tkore@unaffiliated/ardethian) has quit (Ping timeout: 245 seconds)
|
||
2019-07-08 10:01:51 <-- thefatma (~thefatma@37.142.171.130) has quit (Remote host closed the connection)
|
||
2019-07-08 10:01:54 <-- achen__ (~thefatma@37.142.171.130) has quit (Remote host closed the connection)
|
||
2019-07-08 10:02:04 <-- bpmedley (~bpm@2600:1700:eb20:6050:31ef:32f1:c702:6aa0) has quit (Ping timeout: 276 seconds)
|
||
2019-07-08 10:02:33 --> thefatma (~thefatma@bzq-79-183-3-1.red.bezeqint.net) has joined #python
|
||
2019-07-08 10:02:56 <-- roryrjb (roryrjb@gateway/vpn/privateinternetaccess/roryrjb) has quit (Remote host closed the connection)
|
||
2019-07-08 10:03:12 --> tkore4 (~tkore@unaffiliated/ardethian) has joined #python
|
||
2019-07-08 10:04:41 <-- ggnoredo (~ggnoredo@78.186.15.89) has quit (Quit: Mutter: www.mutterirc.com)
|
||
2019-07-08 10:04:47 <-- Noti (~steffan@185.2.243.3) has quit (Quit: Konversation terminated!)
|
||
2019-07-08 10:05:31 <-- kloudi (~kloudi@85.204.96.37) has quit (Ping timeout: 258 seconds)
|
||
2019-07-08 10:05:32 --> milker4202 (~milker420@216.163.24.50) has joined #python
|
||
2019-07-08 10:05:49 --> bpremo (~bpremo@2620:10d:c090:200::1:6040) has joined #python
|
||
2019-07-08 10:06:25 littlepython SnoopJeDi: i want to print top 5 process consuming high cpus
|
||
2019-07-08 10:06:43 tos9 mrtnt: Multiplying any built in sequence does the same thing.
|
||
2019-07-08 10:06:54 <-- Chukk (~Chukk@p200300E41F32410189D256F742AAA6AC.dip0.t-ipconnect.de) has left #python ("Leaving")
|
||
2019-07-08 10:07:06 littlepython as of now pids are printed in a ascending order from pid 1 to pid 5 , however it doesnt print cpu for that process
|
||
2019-07-08 10:07:25 littlepython or it doesnt print all the top 5 process consuming high cpus
|
||
2019-07-08 10:08:49 <-- reactormonk (~tass@185.85.220.196) has quit (Ping timeout: 248 seconds)
|
||
2019-07-08 10:09:15 <-- toxync04 (~toxync04@223.72.46.237) has quit (Excess Flood)
|
||
2019-07-08 10:09:24 --> sandeepk (~sandeepk@2402:3a80:136a:ce97:6cbc:1a24:561d:c44e) has joined #python
|
||
2019-07-08 10:09:37 <-- carl- (~carl-@h-213-136-53-77.NA.cust.bahnhof.se) has quit (Remote host closed the connection)
|
||
2019-07-08 10:09:48 --> CyberX (~CyberX@unaffiliated/cyberx) has joined #python
|
||
2019-07-08 10:09:49 --> toxync04 (~toxync04@223.72.93.201) has joined #python
|
||
2019-07-08 10:10:02 --> carl- (~carl-@h-213-136-53-77.NA.cust.bahnhof.se) has joined #python
|
||
2019-07-08 10:10:28 --> wafflehunter (~wafflehun@149.172.254.66) has joined #python
|
||
2019-07-08 10:10:48 --> garvin13 (~garvin13@4.7.153.41) has joined #python
|
||
2019-07-08 10:11:26 <-- Anticom (~Anticom@ip-178-202-98-139.hsi09.unitymediagroup.de) has quit (Quit: Leaving)
|
||
2019-07-08 10:11:58 --> lothar_m (~lothar_m@lisgw-mcu04.mspa.n-able.com) has joined #python
|
||
2019-07-08 10:12:33 --> olavx200 (~olavx200@ti0004q160-5288.bb.online.no) has joined #python
|
||
2019-07-08 10:12:48 --> Glorfindel2 (~Glorfinde@80.87.27.99) has joined #python
|
||
2019-07-08 10:13:25 <-- Haroune (~Thunderbi@105.100.32.99) has quit (Ping timeout: 246 seconds)
|
||
2019-07-08 10:13:27 <-- tr1l1ner (tr1l1ner@nat/redhat/x-kxfyomnrhmnhgnfd) has quit (Quit: Leaving)
|
||
2019-07-08 10:13:45 --> nixjdm (~nixjdm@50-248-224-169-static.hfc.comcastbusiness.net) has joined #python
|
||
2019-07-08 10:14:11 <-- heyitsrama (~heyitsram@50-255-54-213-static.hfc.comcastbusiness.net) has quit (Remote host closed the connection)
|
||
2019-07-08 10:14:23 --> jepe (~jepe@205-201-98-248.plptcmtk01.res.dyn.suddenlink.net) has joined #python
|
||
2019-07-08 10:14:42 <-- carl- (~carl-@h-213-136-53-77.NA.cust.bahnhof.se) has quit (Ping timeout: 258 seconds)
|
||
2019-07-08 10:15:50 Wooble littlepython: when you sort it by cpu_percent it's still in order by PID?
|
||
2019-07-08 10:15:52 foo Anyone in here use and love vscode IDE? I have a friend who raves about it.
|
||
2019-07-08 10:15:54 --> dtux (~dmtucker@2601:646:c401:5751:ece9:6c1b:1088:ba4b) has joined #python
|
||
2019-07-08 10:16:05 <-- garvin13 (~garvin13@4.7.153.41) has quit (Remote host closed the connection)
|
||
2019-07-08 10:16:23 grym foo: it's all down to personal preference, but vscode is certainly a very competent tool
|
||
2019-07-08 10:17:44 <-- sandeepk (~sandeepk@2402:3a80:136a:ce97:6cbc:1a24:561d:c44e) has quit (Remote host closed the connection)
|
||
2019-07-08 10:17:50 ssbr` VSCode's advantages are a lot less important as an editor for Python vs, say, Rust or C#.
|
||
2019-07-08 10:17:55 <-- tkore4 (~tkore@unaffiliated/ardethian) has quit (Ping timeout: 244 seconds)
|
||
2019-07-08 10:18:03 foo grym: yeah. I'm still stuck in vim. Old habits die hard, heh.
|
||
2019-07-08 10:18:07 foo ssbr`: huh, good to know - thanks.
|
||
2019-07-08 10:18:11 ssbr` aside from using Electron it's really good though.
|
||
2019-07-08 10:18:21 foo ssbr`: thanks for sharing.
|
||
2019-07-08 10:18:45 grym it's got the features i like; multi-caret support is fantastic
|
||
2019-07-08 10:18:54 grym as i learned from sublime
|
||
2019-07-08 10:18:55 foo grym: what's that?
|
||
2019-07-08 10:19:04 --> frostschutz (~frostschu@55d4492d.access.ecotel.net) has joined #python
|
||
2019-07-08 10:19:14 --> The-Croupier (~The-Croup@unaffiliated/thecroupier/x-363548) has joined #python
|
||
2019-07-08 10:19:16 foo grym: so you came from sublime, hmm. I'm tempted to recommend it to someone else currently on sublime 3
|
||
2019-07-08 10:19:29 <-- olavx200 (~olavx200@ti0004q160-5288.bb.online.no) has quit (Ping timeout: 248 seconds)
|
||
2019-07-08 10:19:29 <-- toxync04 (~toxync04@223.72.93.201) has quit (Ping timeout: 248 seconds)
|
||
2019-07-08 10:19:37 grym foo: repeatedly pressing C-d when you have some text highlighted adds a new caret at the next occurrence and you can edit them both simultaneously
|
||
2019-07-08 10:19:38 <-- Steenert (81c04a05@129.192.74.5) has quit (Remote host closed the connection)
|
||
2019-07-08 10:19:43 --> xliiv_ (~xliiv@d89-168.icpnet.pl) has joined #python
|
||
2019-07-08 10:19:52 grym foo: i came from emacs, and use vscode sparingly; i do a lot of my python work in pycharm
|
||
2019-07-08 10:20:04 grym though i've used full-blown VS extensively
|
||
2019-07-08 10:20:06 grym (for c#)
|
||
2019-07-08 10:20:13 -- whaley is now known as ustedes
|
||
2019-07-08 10:20:17 --> Elodin (~weechat@unaffiliated/padawan) has joined #python
|
||
2019-07-08 10:20:30 littlepython SnoopJeDi
|
||
2019-07-08 10:20:31 littlepython >>> sorted(psutil.process_iter(), key=lambda p: p.cpu_percent(), reverse=True)[:5][psutil.Process(pid=1, name='systemd', started='2019-06-21 06:07:01'), psutil.Process(pid=2, name='kthreadd', started='2019-06-21 06:07:01'), psutil.Process(pid=4, name='kworker/0:0H', started='2019-06-21 06:07:01'), psutil.Process(pid=6, name='mm_percpu_wq', started=
|
||
2019-07-08 10:20:31 littlepython '2019-06-21 06:07:01'), psutil.Process(pid=7, name='ksoftirqd/0', started='2019-06-21 06:07:01')]
|
||
2019-07-08 10:20:33 <-- dtux (~dmtucker@2601:646:c401:5751:ece9:6c1b:1088:ba4b) has quit (Ping timeout: 250 seconds)
|
||
2019-07-08 10:20:36 <-- Natalie (~Natalie@unaffiliated/nfearnley) has left #python ("Leaving")
|
||
2019-07-08 10:21:01 foo grym: thanks for sharing!
|
||
2019-07-08 10:21:20 <-- t2mkn (~t2mkn@43.226.2.65) has quit (Quit: ZZZzzz…)
|
||
2019-07-08 10:21:26 ssbr` Is there a tool for systematically deleting bits of python code to boil down something into a minimal reproducing example?
|
||
2019-07-08 10:21:31 ssbr` I know D and Rust have things like that.
|
||
2019-07-08 10:21:43 --> heyitsrama (~heyitsram@64-79-126-93.static.wiline.com) has joined #python
|
||
2019-07-08 10:21:53 --> thiras (~thiras@unaffiliated/thiras) has joined #python
|
||
2019-07-08 10:22:00 --> Edico (~fenrir@unaffiliated/edico) has joined #python
|
||
2019-07-08 10:22:03 --> rosmarus (~rosmarus@gateway/tor-sasl/rosmarus) has joined #python
|
||
2019-07-08 10:22:08 <-- twobitsprite (~isaac@8.42.18.10) has quit (Ping timeout: 245 seconds)
|
||
2019-07-08 10:22:14 yitz We got a tool at work that tells you if changing/deleting a line causes a unit test to fail
|
||
2019-07-08 10:22:17 --> tkore4 (~tkore@unaffiliated/ardethian) has joined #python
|
||
2019-07-08 10:22:17 --> aalmazan (uid180785@gateway/web/irccloud.com/x-ruxwmcnzwpaojotd) has joined #python
|
||
2019-07-08 10:22:26 --> white_shadow (9d24c03c@unaffiliated/whiteshadow/x-9072) has joined #python
|
||
2019-07-08 10:23:10 --> arunkumar413_ (~arunkumar@45.117.66.2) has joined #python
|
||
2019-07-08 10:23:18 <-- dullin (~dullin@219.ip-144-217-83.net) has quit (Read error: Connection reset by peer)
|
||
2019-07-08 10:23:42 --> dtux (~dmtucker@2601:646:c401:5751:691d:c915:623d:4c3a) has joined #python
|
||
2019-07-08 10:24:07 --> dullin (~dullin@219.ip-144-217-83.net) has joined #python
|
||
2019-07-08 10:24:13 <-- qrvpzvb (~otto@ppp037153148231.access.hol.gr) has quit (Ping timeout: 245 seconds)
|
||
2019-07-08 10:24:29 <-- indistylo (~aruns_@2401:4900:3314:15d9:8068:d18c:3796:b170) has quit (Remote host closed the connection)
|
||
2019-07-08 10:24:49 <-- andreas303 (~andreas@gateway/tor-sasl/andreas303) has quit (Remote host closed the connection)
|
||
2019-07-08 10:24:58 <-- arunkumar413 (~arunkumar@45.117.66.2) has quit (Ping timeout: 246 seconds)
|
||
2019-07-08 10:25:45 <-- Diemuzi (~diemuzi@unaffiliated/diemuzi) has quit (Quit: See you on the flip side.)
|
||
2019-07-08 10:25:53 --> zuckonit (~zuckonit@engg-3.engg.uregina.ca) has joined #python
|
||
2019-07-08 10:26:21 <-- jepe (~jepe@205-201-98-248.plptcmtk01.res.dyn.suddenlink.net) has quit (Remote host closed the connection)
|
||
2019-07-08 10:26:43 --> jepe (~jepe@205-201-98-248.plptcmtk01.res.dyn.suddenlink.net) has joined #python
|
||
2019-07-08 10:27:02 --> Haroune (~Thunderbi@105.100.48.218) has joined #python
|
||
2019-07-08 10:27:04 <-- hadifarnoud (~textual@h88-150-135-9.host.redstation.co.uk) has quit (Quit: My Mac has gone to sleep. ZZZzzz…)
|
||
2019-07-08 10:27:07 tos9 ssbr`: there are fuzzers
|
||
2019-07-08 10:27:17 tos9 I want to say nedbat wrote an article about them at one point
|
||
2019-07-08 10:27:27 tos9 but... the one we always try to remember the name of is called... pirate something
|
||
2019-07-08 10:27:28 <-- Ergo (~ergo@91.238.59.144) has quit (Quit: WeeChat 2.4)
|
||
2019-07-08 10:27:38 tos9 and jester. I think that's another -- or pester, I think is the python one
|
||
2019-07-08 10:27:46 ssbr` tos9: I don't want to fuzz it, I just want to get rid of unnecessary code
|
||
2019-07-08 10:27:52 --> tompaw (~tompaw@tompaw.xxx) has joined #python
|
||
2019-07-08 10:27:53 --> andreas303 (~andreas@gateway/tor-sasl/andreas303) has joined #python
|
||
2019-07-08 10:27:53 tos9 ssbr`: There's also hypothesis's shrinking which I'm sure you know of
|
||
2019-07-08 10:27:55 ssbr` I have a complex failure where manually trying to reproduce it causes it to not fail
|
||
2019-07-08 10:27:57 --> fofy (~fofy@195-159-203-206.customer.powertech.no) has joined #python
|
||
2019-07-08 10:28:09 ssbr` tos9: I want to shrink the code, not the input data
|
||
2019-07-08 10:28:22 <-- luxeve (~luxeve@1.157.207.54) has quit (Ping timeout: 268 seconds)
|
||
2019-07-08 10:28:28 tos9 ssbr`: right ok, so mutation testing
|
||
2019-07-08 10:28:31 <-- asdfgh (~asdfgh@net-2-35-224-158.cust.vodafonedsl.it) has quit (Ping timeout: 258 seconds)
|
||
2019-07-08 10:28:41 ssbr` no, not mutation testing at all
|
||
2019-07-08 10:28:44 ssbr` it's more like bisect
|
||
2019-07-08 10:28:53 tos9 ...
|
||
2019-07-08 10:28:59 <-- tkore4 (~tkore@unaffiliated/ardethian) has quit (Ping timeout: 268 seconds)
|
||
2019-07-08 10:29:13 ssbr` tos9: I want to delete half the file, see if the failure still reproduces, etc.
|
||
2019-07-08 10:29:17 <-- RickDeckard (~tgburrin@152.179.78.138) has quit (Ping timeout: 258 seconds)
|
||
2019-07-08 10:29:18 tos9 ssbr`: Right.
|
||
2019-07-08 10:29:21 tos9 ssbr`: E.g.: https://cosmic-ray.readthedocs.io/en/latest/
|
||
2019-07-08 10:29:22 --> twobitsprite (~isaac@8.42.18.10) has joined #python
|
||
2019-07-08 10:29:39 ssbr` tos9: like I said, not mutation testing
|
||
2019-07-08 10:29:47 ssbr` mutation testing checks if the code still passes if you alter it slightly
|
||
2019-07-08 10:29:54 ssbr` still passes tests*
|
||
2019-07-08 10:30:04 ssbr` e.g. replacing if ... with if True:
|
||
2019-07-08 10:30:29 tos9 Ahhh right, because you want minimal reproducers, soryr.
|
||
2019-07-08 10:30:36 ssbr` I'm just gonna try to find the Rust thing and link that so that we are sure to be talking about the same thing
|
||
2019-07-08 10:30:40 <-- blallo (~Blallo@104.167.103.80) has quit (Ping timeout: 272 seconds)
|
||
2019-07-08 10:31:45 <-- Singmyr (~Singmyr@c83-253-123-62.bredband.comhem.se) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
|
||
2019-07-08 10:31:45 <-- kepler (~kepler@unaffiliated/kepler) has quit (Ping timeout: 248 seconds)
|
||
2019-07-08 10:32:28 ssbr` I found the D thing instead: https://github.com/CyberShadow/DustMite/wiki
|
||
2019-07-08 10:33:00 --> qrvpzvb (~otto@ppp037153148231.access.hol.gr) has joined #python
|
||
2019-07-08 10:33:05 <-- SwiftMatt (~Objective@2601:282:4300:3e:95de:2e51:1dd1:60fe) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
|
||
2019-07-08 10:33:23 <-- Haroune (~Thunderbi@105.100.48.218) has quit (Ping timeout: 245 seconds)
|
||
2019-07-08 10:33:25 <-- jay-m (~jay-m@41.205.30.141) has quit (Ping timeout: 244 seconds)
|
||
2019-07-08 10:34:07 --> tkore4 (~tkore@unaffiliated/ardethian) has joined #python
|
||
2019-07-08 10:34:17 <-- kaffeetrauma (~Thunderbi@n37.informatik.fh-dortmund.de) has quit (Quit: kaffeetrauma)
|
||
2019-07-08 10:34:19 <-- white_shadow (9d24c03c@unaffiliated/whiteshadow/x-9072) has quit (Ping timeout: 260 seconds)
|
||
2019-07-08 10:34:37 --> Beanzilla (~Beanzilla@unaffiliated/beanzilla) has joined #python
|
||
2019-07-08 10:34:50 tshirtman i don't know if there is something like afl+ for python, would be nice
|
||
2019-07-08 10:34:57 <-- chele_ (~chele@2a02:8106:1:f900:faca:b8ff:fe2f:8499) has quit (Quit: Leaving)
|
||
2019-07-08 10:35:09 tshirtman http://lcamtuf.coredump.cx/afl/
|
||
2019-07-08 10:35:34 --> indistylo (~aruns_@2401:4900:3314:15d9:8068:d18c:3796:b170) has joined #python
|
||
2019-07-08 10:35:43 tshirtman well, there is hypothesis that is remotely related
|
||
2019-07-08 10:35:56 <-- Py_mona (~Mona@unaffiliated/kumudini) has quit (Quit: Konversation terminated!)
|
||
2019-07-08 10:36:53 --> MmeQuignon (~matthieu@136.134.22.93.rev.sfr.net) has joined #python
|
||
2019-07-08 10:37:14 --> sidetracking (~ty@104-15-89-181.lightspeed.rcsntx.sbcglobal.net) has joined #python
|
||
2019-07-08 10:37:40 --> seoul_man (~meh@wilug/newlug/seoul-man) has joined #python
|
||
2019-07-08 10:37:48 --> smieszek (~plebbit@2a02:a317:e140:7800:e53f:6677:da1e:6a3b) has joined #python
|
||
2019-07-08 10:38:03 <-- smieszek (~plebbit@2a02:a317:e140:7800:e53f:6677:da1e:6a3b) has quit (Client Quit)
|
||
2019-07-08 10:38:12 <-- vassie (uid19804@gateway/web/irccloud.com/x-bkpwjkyliwzkvdyk) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-08 10:38:18 <-- alkhatib (2d490b3a@modemcable058.11-73-45.static.videotron.ca) has quit (Remote host closed the connection)
|
||
2019-07-08 10:38:50 --> toxync04 (~toxync04@223.72.93.195) has joined #python
|
||
2019-07-08 10:38:52 --> stoiss (~stoiss@91.101.23.22.generic-hostname.arrownet.dk) has joined #python
|
||
2019-07-08 10:38:55 <-- m1sosoup (~m1sosoup@62.23.209.50) has quit (Quit: Leaving)
|
||
2019-07-08 10:39:21 --> joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has joined #python
|
||
2019-07-08 10:39:32 <-- pkapp (~pkapp@2601:58c:c500:5fc0:68b4:d00a:c9a6:b2ed) has quit (Ping timeout: 252 seconds)
|
||
2019-07-08 10:39:40 --> edd_lc (~edd_lc@151.236.17.150) has joined #python
|
||
2019-07-08 10:40:42 --> L72g5sSq (~L72g5sSq@ec2-54-183-68-210.us-west-1.compute.amazonaws.com) has joined #python
|
||
2019-07-08 10:41:10 <-- tkore4 (~tkore@unaffiliated/ardethian) has quit (Ping timeout: 244 seconds)
|
||
2019-07-08 10:41:27 <-- suuuper (~suuuper@ns1.babel.it) has quit
|
||
2019-07-08 10:41:31 <-- indistylo (~aruns_@2401:4900:3314:15d9:8068:d18c:3796:b170) has quit (Remote host closed the connection)
|
||
2019-07-08 10:41:35 ssbr` tshirtman: again, not a fuzzer
|
||
2019-07-08 10:41:38 ssbr` screw it I'm writing it myself
|
||
2019-07-08 10:42:52 <-- joocain2 (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 260 seconds)
|
||
2019-07-08 10:43:32 <-- linatl (~linatl@84-105-51-185.cable.dynamic.v4.ziggo.nl) has quit (Quit: Leaving)
|
||
2019-07-08 10:43:44 --> pknull (~pooky@184.103.52.229) has joined #python
|
||
2019-07-08 10:43:45 --> tkore4 (~tkore@unaffiliated/ardethian) has joined #python
|
||
2019-07-08 10:44:03 <-- pknull (~pooky@184.103.52.229) has quit (Max SendQ exceeded)
|
||
2019-07-08 10:45:01 --> linatl (~linatl@84-105-51-185.cable.dynamic.v4.ziggo.nl) has joined #python
|
||
2019-07-08 10:45:09 --> kts (~kts@103.73.237.92) has joined #python
|
||
2019-07-08 10:45:38 <-- rrman (~randomac@unaffiliated/rrman) has quit (Ping timeout: 268 seconds)
|
||
2019-07-08 10:45:50 --> pradhvan (~pradhvan@2405:204:348e:fce5:858:e64e:9cb7:a916) has joined #python
|
||
2019-07-08 10:46:09 <-- linatl (~linatl@84-105-51-185.cable.dynamic.v4.ziggo.nl) has quit (Client Quit)
|
||
2019-07-08 10:46:19 --> pknull (~pooky@184.103.52.229) has joined #python
|
||
2019-07-08 10:46:20 --> indistylo (~aruns_@2401:4900:3314:15d9:8068:d18c:3796:b170) has joined #python
|
||
2019-07-08 10:46:30 <-- Cabanossi (~Cabanossi@ppp-88-217-71-242.dynamic.mnet-online.de) has quit (Ping timeout: 252 seconds)
|
||
2019-07-08 10:46:34 <-- tesseract (~tesseract@49.105.136.77.rev.sfr.net) has quit (Remote host closed the connection)
|
||
2019-07-08 10:47:05 <-- pradhvan (~pradhvan@2405:204:348e:fce5:858:e64e:9cb7:a916) has quit (Client Quit)
|
||
2019-07-08 10:48:11 --> tesseract (~tesseract@49.105.136.77.rev.sfr.net) has joined #python
|
||
2019-07-08 10:48:43 <-- tkore4 (~tkore@unaffiliated/ardethian) has quit (Ping timeout: 268 seconds)
|
||
2019-07-08 10:49:02 <-- milker4202 (~milker420@216.163.24.50) has quit (Ping timeout: 272 seconds)
|
||
2019-07-08 10:50:28 <-- AbleBacon (~AbleBacon@unaffiliated/ablebacon) has quit (Ping timeout: 244 seconds)
|
||
2019-07-08 10:50:41 --> rippa (~rippa@ppp-vpdn-37.1.85.157.yarnet.ru) has joined #python
|
||
2019-07-08 10:51:28 <-- indistylo (~aruns_@2401:4900:3314:15d9:8068:d18c:3796:b170) has quit (Ping timeout: 276 seconds)
|
||
2019-07-08 10:51:42 --> edrocks (~ed@096-059-219-229.res.spectrum.com) has joined #python
|
||
2019-07-08 10:51:49 <-- janco (~janco@2001:981:618f:2:36bf:2386:7f5c:dd54) has quit (Quit: janco)
|
||
2019-07-08 10:52:50 <-- fofy (~fofy@195-159-203-206.customer.powertech.no) has quit (Ping timeout: 272 seconds)
|
||
2019-07-08 10:53:12 --> milker4202 (~milker420@216.163.24.50) has joined #python
|
||
2019-07-08 10:55:00 --> Cabanossi (~Cabanossi@ppp-88-217-72-250.dynamic.mnet-online.de) has joined #python
|
||
2019-07-08 10:55:18 --> AbleBacon (~AbleBacon@unaffiliated/ablebacon) has joined #python
|
||
2019-07-08 10:55:25 <-- ciccio2000 (~fbeninca@84.88.185.62) has left #python
|
||
2019-07-08 10:55:27 twainwek abstract matplotlib.funcanimation question. in my update function i update a two Line2D objects using `set_data` and rendering slows down quit a bit as it progresses. i have `blit` set to false, but i don't suspect that can be the reason behind it. anyone have any idea why its slowing down, and/or how i can speed it up?
|
||
2019-07-08 10:55:28 <-- joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 260 seconds)
|
||
2019-07-08 10:55:36 --> reactormonk (~tass@p54B96464.dip0.t-ipconnect.de) has joined #python
|
||
2019-07-08 10:56:10 --> micisuta (~quassel@2.27.246.171) has joined #python
|
||
2019-07-08 10:56:32 --> rrman (~randomac@unaffiliated/rrman) has joined #python
|
||
2019-07-08 10:57:12 --> joocain2 (~joocain2@gateway/tor-sasl/joocain2) has joined #python
|
||
2019-07-08 10:57:17 <-- deekej (~deekej@62.84.155.101) has quit (Remote host closed the connection)
|
||
2019-07-08 10:57:36 --> mmarconm (~mmarconm@unaffiliated/mmarconm) has joined #python
|
||
2019-07-08 10:58:13 <-- ssbr` (~scorchsab@python/site-packages/ssbr) has quit (Ping timeout: 244 seconds)
|
||
2019-07-08 10:58:51 <-- mmarconm (~mmarconm@unaffiliated/mmarconm) has quit (Remote host closed the connection)
|
||
2019-07-08 10:59:16 --> mmarconm (~mmarconm@unaffiliated/mmarconm) has joined #python
|
||
2019-07-08 10:59:20 --> xXxxxXx (~orange.nl@178.128.124.129) has joined #python
|
||
2019-07-08 11:00:01 --> Rollabunna (~Rollabunn@c-67-161-39-214.hsd1.ca.comcast.net) has joined #python
|
||
2019-07-08 11:00:12 --> djapo (~archie@unaffiliated/djapo) has joined #python
|
||
2019-07-08 11:00:21 --> tdy (~tdy@unaffiliated/tdy) has joined #python
|
||
2019-07-08 11:00:29 -- irc: disconnected from server
|
||
2019-07-08 11:05:46 -- #python: Cannot join channel (+r) - you need to be identified with services - see https://freenode.net/kb/answer/registration
|
||
2019-07-08 11:05:49 -- #python: Cannot join channel (+r) - you need to be identified with services - see https://freenode.net/kb/answer/registration
|
||
2019-07-08 11:12:32 -- irc: disconnected from server
|
||
2019-07-08 11:15:01 -- irc: disconnected from server
|
||
2019-07-08 11:16:39 -- irc: disconnected from server
|
||
2019-07-09 13:29:04 --> zws (~blindidio@134.209.53.112) has joined #python
|
||
2019-07-09 13:29:04 -- Topic for #python is "Anything about Python is on-topic. Don't paste, use https://bpaste.net/+python | Be nice: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Local user groups: https://j.mp/1Mq06bF | #python-fr #python.de #python-uk #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu #python-dk"
|
||
2019-07-09 13:29:04 -- Topic set by nedbat (~nedbat@python/psf/nedbat) on Wed, 12 Jun 2019 05:08:05
|
||
2019-07-09 13:29:04 -- Channel #python: 1851 nicks (0 ops, 0 voices, 1851 normals)
|
||
2019-07-09 13:29:07 -- Channel created on Sun, 26 Nov 2006 00:42:41
|
||
2019-07-09 13:29:38 --> xliiv_ (~xliiv@d89-168.icpnet.pl) has joined #python
|
||
2019-07-09 13:29:38 tourjin hi is somebody here? can I ask a question?
|
||
2019-07-09 13:29:39 <-- andreas31 (~andreas@gateway/tor-sasl/andreas303) has quit (Remote host closed the connection)
|
||
2019-07-09 13:29:52 Wooble tourjin: sure; don't ask to ask.
|
||
2019-07-09 13:32:35 --> subopt (~subopt@199.255.45.4) has joined #python
|
||
2019-07-09 13:32:55 --> linux_dream (~isaac@unaffiliated/linux-dream/x-5839402) has joined #python
|
||
2019-07-09 13:33:54 <-- v01d4lph4 (~v01d4lph4@106.51.22.56) has quit (Remote host closed the connection)
|
||
2019-07-09 13:34:22 <-- qlixed (~qlixed@2800:810:471:4f0::1000) has quit (Ping timeout: 252 seconds)
|
||
2019-07-09 13:34:35 <-- Kartha (67d22af3@unaffiliated/kartha) has quit (Ping timeout: 260 seconds)
|
||
2019-07-09 13:34:45 --> lapsang (~g@gateway/tor-sasl/gaiwan) has joined #python
|
||
2019-07-09 13:34:57 --> fuze (uid76888@gateway/web/irccloud.com/x-firnqeqvamdjsoih) has joined #python
|
||
2019-07-09 13:35:07 fuze can this script run on windows? https://github.com/khaudio/mc-stock
|
||
2019-07-09 13:35:48 <-- ponyofdeath (~vladi@2600:1700:89c0:a210::49) has quit (Quit: WeeChat 2.5)
|
||
2019-07-09 13:36:41 fuze when it says "instantiate a Clerk" is that a python thing or specific to the script?
|
||
2019-07-09 13:37:45 --> Icedream (~icedream@unaffiliated/icedream2k9) has joined #python
|
||
2019-07-09 13:37:58 <-- seaglass (~seaglass@unaffiliated/seaglass) has quit (Quit: WeeChat 2.5)
|
||
2019-07-09 13:38:14 tourjin AttributeError: module 'oauth' has no attribute 'OAuthConsumer' I have this error message. I googled it they say i should import oauth2 as oauth. but i think i don't have correct oauth2 module.
|
||
2019-07-09 13:38:17 tshirtman fuze: it's from the lib https://github.com/khaudio/mc-stock/blob/master/mcstock/mcstock.py#L230
|
||
2019-07-09 13:38:37 --> tdy1 (~tdy@unaffiliated/tdy) has joined #python
|
||
2019-07-09 13:38:47 fuze tshirtman: I don'
|
||
2019-07-09 13:39:02 tourjin python3-oauth2client/bionic,now 4.1.2-3 all [installed] this is what i get from 'apt list |grep 'oauth2'
|
||
2019-07-09 13:39:03 fuze tshirtman: I don't have much experience with python, should I start by running the setup.py?
|
||
2019-07-09 13:39:04 dantelocke tourjin, are you sure you
|
||
2019-07-09 13:39:09 --> bongfrog (~bongfrog@c-98-245-70-205.hsd1.co.comcast.net) has joined #python
|
||
2019-07-09 13:39:13 <-- Haroune (~Thunderbi@129.45.47.49) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 13:39:17 --> v01d4lph4 (~v01d4lph4@106.51.22.56) has joined #python
|
||
2019-07-09 13:39:22 dantelocke re not mixing up python2 and 3?
|
||
2019-07-09 13:39:28 tshirtman fuze: setup.py is there to install the program in your local python library
|
||
2019-07-09 13:39:29 --> ponyofdeath (~vladi@2600:1700:89c0:a210::49) has joined #python
|
||
2019-07-09 13:39:32 tshirtman (site-packages)
|
||
2019-07-09 13:39:34 <-- tesseract (~tesseract@49.105.136.77.rev.sfr.net) has quit (Remote host closed the connection)
|
||
2019-07-09 13:39:51 tshirtman it can be useful if you want to use that lib from other scripts
|
||
2019-07-09 13:40:01 <-- Secret-Fire (~Secret-Fi@97.115.205.62) has quit (Remote host closed the connection)
|
||
2019-07-09 13:40:23 tourjin I have only python3 installed.
|
||
2019-07-09 13:40:25 tshirtman you can do `python setup.py install --user` to install it for your user, or if you made a virtualenv (you'll know if you did), you can remove the --user part
|
||
2019-07-09 13:40:29 tshirtman fuze
|
||
2019-07-09 13:41:00 fuze tshirtman: How do I install module 'aiohttp'
|
||
2019-07-09 13:41:25 tshirtman use `pip install --user -r requirements.txt` to install all the required modules in your site packages
|
||
2019-07-09 13:41:30 --> clearcasting_ (~clearcast@203.221.89.69) has joined #python
|
||
2019-07-09 13:41:37 <-- tdy (~tdy@unaffiliated/tdy) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 13:41:44 tshirtman (including aiohttp)
|
||
2019-07-09 13:42:02 <-- tdy1 (~tdy@unaffiliated/tdy) has quit (Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac)
|
||
2019-07-09 13:42:08 <-- clearcasting (~clearcast@203.221.89.69) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 13:42:13 --> Secret-Fire (~Secret-Fi@97.115.205.62) has joined #python
|
||
2019-07-09 13:42:24 <-- Zachary_DuBois (~Zachary_D@yukimorikawa.zacharydubois.net) has quit (Ping timeout: 252 seconds)
|
||
2019-07-09 13:42:54 <-- folkrav (~folkrav@mtl.cossette.com) has quit (Quit: WeeChat 2.5)
|
||
2019-07-09 13:43:05 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Quit: thorre)
|
||
2019-07-09 13:43:11 --> folkrav (~folkrav@mtl.cossette.com) has joined #python
|
||
2019-07-09 13:43:16 <-- Secret-Fire (~Secret-Fi@97.115.205.62) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 13:43:19 --> Zachary_DuBois (~Zachary_D@yukimorikawa.zacharydubois.net) has joined #python
|
||
2019-07-09 13:43:37 tourjin I see only one item relative with oauth2 . python3-oauth2client . it's installed . but I can't import oauth2 in interpreter.
|
||
2019-07-09 13:43:45 <-- v01d4lph4 (~v01d4lph4@106.51.22.56) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 13:43:47 fuze tshirtman: I think I might have made a virtualenv when I first installed python a while back. Will it fail with --user if i dont have one?
|
||
2019-07-09 13:43:51 --> Secret-Fire (~Secret-Fi@97.115.205.62) has joined #python
|
||
2019-07-09 13:44:16 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python
|
||
2019-07-09 13:45:05 tourjin i'm using wsl. python3
|
||
2019-07-09 13:45:05 -- pr100 is now known as pr100|afk
|
||
2019-07-09 13:45:55 tshirtman fuze: if the virtualenv is not active, it's not an issue, if it fails telling you you are in a virtualenv, just remove the --user, it won't cause any trouble
|
||
2019-07-09 13:46:21 tourjin what should i check more to load oauth2 ? >>> import oauth2
|
||
2019-07-09 13:46:21 tourjin Traceback (most recent call last):
|
||
2019-07-09 13:46:21 tourjin File "<stdin>", line 1, in <module>
|
||
2019-07-09 13:46:21 tourjin ModuleNotFoundError: No module named 'oauth2'
|
||
2019-07-09 13:46:44 RoseBus tourjin, pip install oauth2
|
||
2019-07-09 13:46:52 <-- joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 260 seconds)
|
||
2019-07-09 13:47:18 --> baldpope (~baldpope@unaffiliated/baldpope) has joined #python
|
||
2019-07-09 13:47:20 fuze tshirtman https://www.irccloud.com/pastebin/Fu2ccRke/
|
||
2019-07-09 13:47:53 tourjin apt does not work? i don't have pip installed.
|
||
2019-07-09 13:48:10 --> Beanzilla (~Beanzilla@unaffiliated/beanzilla) has joined #python
|
||
2019-07-09 13:48:16 <-- asphyxia (~user@121.210.68.241) has quit (Ping timeout: 252 seconds)
|
||
2019-07-09 13:48:30 fuze tshirtman: does that mean brlapi is not supported on windows for that version
|
||
2019-07-09 13:48:30 baldpope I have a list of IPs, some of them are duplicates, I want to filter/sort the list to end up with a list of IPs that are unique (dotted / CIDR form) -
|
||
2019-07-09 13:48:34 <-- jcbitter (~weechat@40.64.73.34.bc.googleusercontent.com) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 13:48:34 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Client Quit)
|
||
2019-07-09 13:48:56 --> Ariakenom (~Ariakenom@h-158-174-187-253.NA.cust.bahnhof.se) has joined #python
|
||
2019-07-09 13:48:56 <-- staunch (~Staunch@nat.sierrabravo.net) has quit (Quit: Leaving.)
|
||
2019-07-09 13:49:05 --> andreas303 (~andreas@gateway/tor-sasl/andreas303) has joined #python
|
||
2019-07-09 13:49:07 <-- andreas303 (~andreas@gateway/tor-sasl/andreas303) has quit (Client Quit)
|
||
2019-07-09 13:49:10 grym baldpope: list(set(my_ip_list))
|
||
2019-07-09 13:49:10 baldpope any suggestions on filtering/sorting a list and removing duplicates?
|
||
2019-07-09 13:49:17 acresearch people what dies this syntax mean? if i % (k+1) == 0:
|
||
2019-07-09 13:49:23 --> andreas303 (~andreas@gateway/tor-sasl/andreas303) has joined #python
|
||
2019-07-09 13:49:27 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python
|
||
2019-07-09 13:49:28 acresearch i is an integer from a for loop
|
||
2019-07-09 13:49:31 --> joocain2 (~joocain2@gateway/tor-sasl/joocain2) has joined #python
|
||
2019-07-09 13:49:34 grym acresearch: "if i is evenly divisible by k+1"
|
||
2019-07-09 13:49:40 acresearch grym: ah
|
||
2019-07-09 13:49:45 tshirtman fuze: i don't know brlapi, seems to be a braille interface, not sure why it's needed by that package
|
||
2019-07-09 13:49:46 deniska acresearch: % is modulo
|
||
2019-07-09 13:49:51 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Client Quit)
|
||
2019-07-09 13:49:53 deniska (basically, remainder)
|
||
2019-07-09 13:49:57 acresearch i see
|
||
2019-07-09 13:50:04 roxfan can a number be oddly divisible?
|
||
2019-07-09 13:50:04 tshirtman maybe try to remove that line from requirements.txt if you think it can work without it
|
||
2019-07-09 13:50:08 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python
|
||
2019-07-09 13:50:11 tshirtman fuze:
|
||
2019-07-09 13:50:11 grym roxfan: sure, then you have a remainder
|
||
2019-07-09 13:50:17 grym roxfan: or a non-integer result
|
||
2019-07-09 13:50:22 <-- silva (c9eef11a@201.238.241.26) has quit (Remote host closed the connection)
|
||
2019-07-09 13:50:23 --> Bahrouz (~Bahrouz@unaffiliated/bahrouz) has joined #python
|
||
2019-07-09 13:51:05 roxfan i think "divisible" already implies no remainder
|
||
2019-07-09 13:51:06 fuze tshirtman: same error with cupshelpers
|
||
2019-07-09 13:51:12 --> hussar (hussar@gateway/vpn/protonvpn/hussar) has joined #python
|
||
2019-07-09 13:51:13 acresearch i am trying setup a for loop where every 3 loop some printout comes
|
||
2019-07-09 13:51:19 tshirtman fuze: i don't think this one is neede either
|
||
2019-07-09 13:51:22 tshirtman needed*
|
||
2019-07-09 13:51:24 tshirtman it's for printing
|
||
2019-07-09 13:51:45 <-- bongfrog (~bongfrog@c-98-245-70-205.hsd1.co.comcast.net) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 13:51:56 --> IndomiTek (~IndomiTek@104-56-123-65.lightspeed.jcsnms.sbcglobal.net) has joined #python
|
||
2019-07-09 13:52:05 tshirtman i think the author just put everything they had installed in their environment and put it in that file, just to be sure nothing was missing :/
|
||
2019-07-09 13:52:09 --> staunch (~Staunch@nat.sierrabravo.net) has joined #python
|
||
2019-07-09 13:52:11 grym acresearch: `for i, value in enumerate(mylist):; if i%3==0:print('every third')`
|
||
2019-07-09 13:52:20 fuze tshirtman: Yea it seems like it. cups is physical printer drivers right?
|
||
2019-07-09 13:52:38 --> The-Croupier (~The-Croup@unaffiliated/thecroupier/x-363548) has joined #python
|
||
2019-07-09 13:52:45 <-- Beanzilla (~Beanzilla@unaffiliated/beanzilla) has quit (Client Quit)
|
||
2019-07-09 13:52:51 <-- mobidyc (~mobidyc@2a01cb0805e9d700c36c316f73d769a1.ipv6.abo.wanadoo.fr) has quit (Quit: mobidyc)
|
||
2019-07-09 13:52:56 tshirtman it's to interface with the common unix printing system, used to print on linux and osx
|
||
2019-07-09 13:53:03 --> mattfly (~matheus@201.62.51.4) has joined #python
|
||
2019-07-09 13:53:04 <-- vassie (uid19804@gateway/web/irccloud.com/x-jatfmsynukwtjluv) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-09 13:53:11 tshirtman there are many things in that requirements.txt that don't seem useful
|
||
2019-07-09 13:53:23 baldpope thanks grym - that looks like it'll do nicely
|
||
2019-07-09 13:53:41 --> n1` (~root@ip-78-45-15-249.net.upcbroadband.cz) has joined #python
|
||
2019-07-09 13:53:41 tshirtman i guess forget about the requirements.txt, run the program, see what's missing when it crashes, and use pip install to install it
|
||
2019-07-09 13:53:54 tshirtman (no -r, just --user and the package name)
|
||
2019-07-09 13:54:44 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Client Quit)
|
||
2019-07-09 13:54:55 <-- bashfulshell (uid190567@gateway/web/irccloud.com/x-bshsroiblpqzcufu) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-09 13:55:01 fuze tshirtman: lol all it needed was aiohttp
|
||
2019-07-09 13:55:04 tshirtman (kivy, tornado, promptoolkit, jupyter, pyserial, pyinstaller, lol all these things don't make any sense together)
|
||
2019-07-09 13:55:04 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python
|
||
2019-07-09 13:55:30 --> themsay (~themsay@149.254.235.25) has joined #python
|
||
2019-07-09 13:55:44 tshirtman great, hope the code is better quality than the packaging :D
|
||
2019-07-09 13:56:00 * tshirtman back to fighting javascript/flow
|
||
2019-07-09 13:56:01 tshirtman :'(
|
||
2019-07-09 13:56:08 kapsh At least something will work, you know.
|
||
2019-07-09 13:56:10 --> dviola (~diego@unaffiliated/dviola) has joined #python
|
||
2019-07-09 13:56:21 --> thunor (~thunor@unaffiliated/thunor) has joined #python
|
||
2019-07-09 13:56:25 <-- staunch (~Staunch@nat.sierrabravo.net) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 13:56:43 kapsh That reminds me.
|
||
2019-07-09 13:56:45 stiv2k_ is it possible to read a text file by tokens instead of by lines
|
||
2019-07-09 13:56:58 kapsh How can I convince my colleagues to install work project into virtualenv?
|
||
2019-07-09 13:57:01 grym stiv2k_: what's a token
|
||
2019-07-09 13:57:03 _habnabit stiv2k_, text files don't read by tokens or lines. but what's a token?
|
||
2019-07-09 13:57:10 kapsh Or, at least, don't use sudo pip install?
|
||
2019-07-09 13:57:15 acresearch grym: http://paste.debian.net/1090976/ but i don't get what i expect
|
||
2019-07-09 13:57:18 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Client Quit)
|
||
2019-07-09 13:57:49 stiv2k_ grym: _habnabit: anything that is not whitespace
|
||
2019-07-09 13:57:53 tshirtman kapsh: tells them everybody including the pip maintainers and linux distro maintainers are horrified when somebody does that, and that it'll break their machine
|
||
2019-07-09 13:57:54 stiv2k_ or line ending
|
||
2019-07-09 13:58:12 --> cdown_ (~cdown@199.201.66.0) has joined #python
|
||
2019-07-09 13:58:19 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python
|
||
2019-07-09 13:58:23 Wooble stiv2k_: line endings are whitespace so you were fine with the first definition although that's an odd definition.
|
||
2019-07-09 13:58:25 stiv2k_ for example i was reading line by line and then using line.Split() to break it up into tokens
|
||
2019-07-09 13:58:26 tshirtman --user is kind of an easy and cleaner replacement to sudo pip install, as it won't hurt the system as much
|
||
2019-07-09 13:58:32 tshirtman if they don't want to care about virtualenv
|
||
2019-07-09 13:58:39 stiv2k_ but i'd like to do away with the line by line part and just do token by token
|
||
2019-07-09 13:58:46 --> courrier (~yoan@2pl44-h01-176-136-159-243.dsl.sta.abo.bbox.fr) has joined #python
|
||
2019-07-09 13:59:04 _habnabit stiv2k_, iterating by line and then splitting each sounds fine to me
|
||
2019-07-09 13:59:05 grym acresearch: that's correct behavior, what's the problem
|
||
2019-07-09 13:59:09 --> staunch (~Staunch@nat.sierrabravo.net) has joined #python
|
||
2019-07-09 13:59:14 kapsh tshirtman, that I tried. They kinda still thinks "this way it will SURE work".
|
||
2019-07-09 13:59:30 --> clearcasting (~clearcast@203.221.89.69) has joined #python
|
||
2019-07-09 13:59:30 acresearch grym: i get 1 zero for every 3 ones i want the opposite
|
||
2019-07-09 13:59:32 _habnabit stiv2k_, you might make your own generator function if you want the interface to be iterating over tokens directly
|
||
2019-07-09 13:59:42 grym kapsh: `export PIP_REQUIRE_VIRTUALENV=1` and stuff it into system shell rc :)
|
||
2019-07-09 13:59:42 stiv2k_ _habnabit: hmmm
|
||
2019-07-09 13:59:50 grym acresearch: ok, so invert what you print
|
||
2019-07-09 13:59:52 _habnabit acresearch, so swap the if and else branches?
|
||
2019-07-09 14:00:17 <-- clearcasting_ (~clearcast@203.221.89.69) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 14:00:23 --> Wobbler (~root@178.157.249.46) has joined #python
|
||
2019-07-09 14:00:27 <-- cdown (~cdown@89.32.122.5) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 14:00:29 tshirtman kapsh: well, i guess the only option left is to change coworkers
|
||
2019-07-09 14:00:31 acresearch _habnabit: no i mean this is an example the code is long, i need to fix the if statement
|
||
2019-07-09 14:00:33 -- cdown_ is now known as cdown
|
||
2019-07-09 14:00:36 <-- jarthur (~jarthur@207.114.244.5) has quit
|
||
2019-07-09 14:00:47 grym acresearch: the usual confusion about modular division is that it's one of the things in the world where 0 means True
|
||
2019-07-09 14:00:48 _habnabit acresearch, do you know how to invert == ?
|
||
2019-07-09 14:00:49 <-- kpoman_ (~kpoman@189.6.104.141) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 14:00:56 --> owenc (~owen@79-65-116-41.host.pobb.as13285.net) has joined #python
|
||
2019-07-09 14:01:02 acresearch _habnabit: no how?
|
||
2019-07-09 14:01:06 _habnabit acresearch, !=
|
||
2019-07-09 14:01:07 acresearch != ?
|
||
2019-07-09 14:01:09 <-- jupart (~coolp_jim@unaffiliated/coolp-jim/x-7942062) has quit (Quit: WeeChat 2.5)
|
||
2019-07-09 14:01:10 acresearch aahhhh i ok
|
||
2019-07-09 14:01:13 --> kpoman (~kpoman@189.6.104.141) has joined #python
|
||
2019-07-09 14:01:17 kapsh grym, wow that's something I didn't know. Thanks.
|
||
2019-07-09 14:01:25 grym kapsh: it's rude but effective :)
|
||
2019-07-09 14:01:42 Wooble grym: only if they sudo -e
|
||
2019-07-09 14:01:55 grym (i mean, you can override it easily, but it'll be annoying )
|
||
2019-07-09 14:02:12 --> jcbitter (~weechat@40.64.73.34.bc.googleusercontent.com) has joined #python
|
||
2019-07-09 14:02:31 --> RickDeckard (~tgburrin@108.60.152.194) has joined #python
|
||
2019-07-09 14:02:43 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Client Quit)
|
||
2019-07-09 14:03:02 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python
|
||
2019-07-09 14:03:14 kapsh tshirtman, grym well I'm trying to advice them to use their own environments on personal PC effective. For infrastructure thing I did constant virtualenv trick already.
|
||
2019-07-09 14:03:18 tourjin pip install oauth2
|
||
2019-07-09 14:03:21 tourjin Installing collected packages: httplib2, oauth2
|
||
2019-07-09 14:03:21 tourjin Successfully installed httplib2-0.13.0 oauth2-1.9.0.post1
|
||
2019-07-09 14:03:29 --> fphilipe (~phil@81.6.34.65) has joined #python
|
||
2019-07-09 14:03:29 <-- achen_ (~thefatma@bzq-218-125-177.red.bezeqint.net) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 14:03:29 <-- thefatma (~thefatma@bzq-218-125-177.red.bezeqint.net) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 14:03:30 _habnabit tourjin, please don't paste here
|
||
2019-07-09 14:03:31 tourjin but still cant load oauth2
|
||
2019-07-09 14:03:35 kapsh Hm, perhaps just bruteforce their passwords?
|
||
2019-07-09 14:03:40 tourjin ok sorry
|
||
2019-07-09 14:03:47 <-- ksft (~ksft@wikipedia/KSFT) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 14:04:14 tshirtman kapsh: tell them that other people like me learned the lesson the hard way when tools from the system using requests started to fail because some pip install had installed a newer version
|
||
2019-07-09 14:04:18 <-- squelch (~squelch@vpn-234-186.bulk.ucr.edu) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 14:04:24 tshirtman it was a pretty unfun situation to get out of
|
||
2019-07-09 14:04:39 Wooble tourjin: are you sure `pip` is for the same python you're actually running? are you using a virtualenv?
|
||
2019-07-09 14:04:55 tourjin wsl
|
||
2019-07-09 14:04:59 <-- gumol (~gumol@ip47-32-173-82.adsl2.static.versatel.nl) has quit (Remote host closed the connection)
|
||
2019-07-09 14:05:07 fuze tshirtman: thanks, seems to be working
|
||
2019-07-09 14:05:42 kapsh tshirtman, nice rationale, I will try it.
|
||
2019-07-09 14:06:06 tourjin wsl ubuntu . I don't know what virtualenv is.
|
||
2019-07-09 14:06:10 stiv2k_ _habnabit: basically i feel like it would make my life easier if i can just request the next X tokens regardless of how many lines they span
|
||
2019-07-09 14:06:22 Wooble tourjin: are you running pip as root?
|
||
2019-07-09 14:06:34 grym kapsh: you can lead a horse to water... you can't make them drink, but you also can make them fix their own broken systems and refuse to help until they learn :-P
|
||
2019-07-09 14:06:41 <-- CrypticSquared (~CrypticS_@unaffiliated/crypticsquared) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 14:06:42 stiv2k_ instead of having to go to the end of the line, count how many tokens it was, then go to the next line, count more tokens, until i get to the one i want
|
||
2019-07-09 14:06:45 --> wyclif (~daniel@unaffiliated/wyclif) has joined #python
|
||
2019-07-09 14:06:56 --> gumol (~gumol@ip47-32-173-82.adsl2.static.versatel.nl) has joined #python
|
||
2019-07-09 14:07:07 _habnabit stiv2k_, so make your own iterator over tokens
|
||
2019-07-09 14:07:28 stiv2k_ _habnabit: as a python n00b, that sounds intimidating
|
||
2019-07-09 14:07:28 <-- xliiv_ (~xliiv@d89-168.icpnet.pl) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 14:07:37 _habnabit stiv2k_, it's super easy
|
||
2019-07-09 14:08:00 tshirtman kapsh: do you help them when their env is broken? if you do, and that's why you ask them to stop breaking it, i'd say stop helping, or at least tell them you'll stop.
|
||
2019-07-09 14:08:05 <-- cdown (~cdown@199.201.66.0) has quit (Read error: Connection timed out)
|
||
2019-07-09 14:08:06 <-- forgottenone (~forgotten@176.88.102.125) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 14:08:06 <-- jcbitter (~weechat@40.64.73.34.bc.googleusercontent.com) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 14:08:06 --> CrypticSquared (~CrypticS_@unaffiliated/crypticsquared) has joined #python
|
||
2019-07-09 14:08:22 --> cdown (~cdown@199.201.66.0) has joined #python
|
||
2019-07-09 14:08:31 <-- fphilipe (~phil@81.6.34.65) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 14:08:35 --> jcbitter (~weechat@40.64.73.34.bc.googleusercontent.com) has joined #python
|
||
2019-07-09 14:08:40 stiv2k_ _habnabit: link to where i can learn more about it?
|
||
2019-07-09 14:08:40 _habnabit infobob, redent stiv2k_ def iter_tokens(yourfile): for line in yourfile: yield from line.split()
|
||
2019-07-09 14:08:41 infobob stiv2k_, https://bpaste.net/show/aWt1
|
||
2019-07-09 14:08:48 --> forgottenone (~forgotten@176.88.102.125) has joined #python
|
||
2019-07-09 14:08:57 --> indistylo (~aruns_@106.51.25.10) has joined #python
|
||
2019-07-09 14:09:05 tourjin sudo pip install oauth2
|
||
2019-07-09 14:09:15 --> dakudos (~dakudos@c-73-217-33-206.hsd1.co.comcast.net) has joined #python
|
||
2019-07-09 14:09:20 tourjin uccessfully installed oauth2-1.9.0.post1
|
||
2019-07-09 14:09:34 Wooble tourjin: well at least you'll only break your WSL install and not your entire machine, but still don't run pip as root.
|
||
2019-07-09 14:09:40 --> FreeFull (~freefull@defocus/sausage-lover) has joined #python
|
||
2019-07-09 14:09:43 <-- indistylo (~aruns_@106.51.25.10) has quit (Remote host closed the connection)
|
||
2019-07-09 14:10:18 <-- iderik (~weechat@h-162-65.A147.priv.bahnhof.se) has quit (Quit: iderik)
|
||
2019-07-09 14:10:37 <-- clearcasting (~clearcast@203.221.89.69) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 14:10:38 Wooble tourjin: compare the output of pip -V and python -m site and see if you're installing for the wrong python.
|
||
2019-07-09 14:10:57 --> clearcasting (~clearcast@203.221.89.69) has joined #python
|
||
2019-07-09 14:11:00 -- salt__ is now known as _salt
|
||
2019-07-09 14:11:27 --> bongfrog (~bongfrog@c-98-245-70-205.hsd1.co.comcast.net) has joined #python
|
||
2019-07-09 14:11:33 tourjin yes i get it but i tried both. pip install oauth2 as user and as root .. uninstall reinstall
|
||
2019-07-09 14:12:01 _habnabit tourjin, don't just run commands to see what works
|
||
2019-07-09 14:12:22 <-- multifractal (~multifrac@host-2-103-14-221.as13285.net) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 14:13:31 tourjin ok thanks.
|
||
2019-07-09 14:13:33 kapsh tshirtman, my only help was writing virtualenv instruction (we're not software devs here), but refusing to help was fun only first couple of times. Now I'm just annoyed by people who don't want to change their habits.
|
||
2019-07-09 14:13:33 saml in psycopg2, cursor.execute(...); cursor.rowcount; cursor.rowcount; accessing cursor.rowcount multiple times would change its value?
|
||
2019-07-09 14:13:43 kapsh But I will remember your recommendations, thank you both.
|
||
2019-07-09 14:13:50 <-- Wobbler (~root@178.157.249.46) has quit (Remote host closed the connection)
|
||
2019-07-09 14:13:59 <-- owenc (~owen@79-65-116-41.host.pobb.as13285.net) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 14:14:57 _habnabit saml, uhhh it shouldn't change
|
||
2019-07-09 14:15:08 tourjin i'm using wsl ubuntu. is'nt pip debian package? can I use it on my wsl?
|
||
2019-07-09 14:15:41 <-- travmi (~travmi@h66-173-58-68.mdtnwi.dedicated.static.tds.net) has quit (Quit: Leaving)
|
||
2019-07-09 14:15:54 tshirtman tourjin: it's in ubuntu (which is a debian derivative), you can install it with apt install python-pip
|
||
2019-07-09 14:15:54 --> ezd (~zed@h57.9.19.98.dynamic.ip.windstream.net) has joined #python
|
||
2019-07-09 14:15:55 Wooble tourjin: you need to run the pip that belongs to the python you're running. if you're using /usr/bin/python and installed "python-pip" they're probably the same but you should check with pip -V and python -m site
|
||
2019-07-09 14:16:08 tshirtman or python3-pip if you want it for python3
|
||
2019-07-09 14:16:13 saml hrm so weird. _log.info('deleted: %s', cursor.rowcount); statsd.gauge('deleted', cursor.rowcount) in log, it says deleted: 1000; but statsd reports 5000
|
||
2019-07-09 14:16:29 stiv2k_ _habnabit: hold while i study this
|
||
2019-07-09 14:16:31 tshirtman in case of doubt, you can always use `python -m pip` just like you would use `pip`
|
||
2019-07-09 14:16:40 tshirtman (works with python3 too of course)
|
||
2019-07-09 14:16:43 saml i guess statsd agent or something could be summing up gague
|
||
2019-07-09 14:16:51 <-- lucasb (uid333435@gateway/web/irccloud.com/x-yvejslazudoalyzc) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-09 14:16:57 saml if multiple processes write to the agent
|
||
2019-07-09 14:16:58 <-- iliv (~iliv@93.77.147.152) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 14:17:03 stiv2k_ _habnabit: 'yield' is new to me
|
||
2019-07-09 14:17:14 tourjin yes I installed python-pip .. ah.. then I should use python-pip rather than pip.. right?
|
||
2019-07-09 14:17:21 <-- asdfgh (~asdfgh@net-2-35-224-158.cust.vodafonedsl.it) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 14:17:26 _habnabit saml, it's 100% not changing
|
||
2019-07-09 14:17:32 <-- SmashShock (~SmashShoc@131.202.255.236) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 14:17:36 --> iliv (~iliv@93.77.147.152) has joined #python
|
||
2019-07-09 14:17:40 _habnabit saml, statsd is doing something you didn't expect
|
||
2019-07-09 14:17:50 _habnabit stiv2k_, yield is how you make iterators
|
||
2019-07-09 14:17:57 --> cd (~none@unaffiliated/cd) has joined #python
|
||
2019-07-09 14:18:10 stiv2k_ _habnabit: interesting.... ok so instead of using yourfile i should put fp.readline()
|
||
2019-07-09 14:18:13 --> Haroune (~Thunderbi@129.45.47.49) has joined #python
|
||
2019-07-09 14:18:26 stiv2k_ or in the caller i will say iter_tokens(fp.readline())
|
||
2019-07-09 14:18:43 _habnabit stiv2k_, no. `for token in iter_tokens(fp):`
|
||
2019-07-09 14:18:48 --> awe00 (~awe00@unaffiliated/awe00) has joined #python
|
||
2019-07-09 14:18:49 stiv2k_ oh
|
||
2019-07-09 14:19:00 stiv2k_ so i dont need to call readline at all ?
|
||
2019-07-09 14:19:06 _habnabit stiv2k_, iterating already does
|
||
2019-07-09 14:19:12 stiv2k_ okay, even better
|
||
2019-07-09 14:19:13 --> noln (~boy@151.70.44.221) has joined #python
|
||
2019-07-09 14:19:16 stiv2k_ let me give it a try
|
||
2019-07-09 14:19:24 <-- Edico (~fenrir@unaffiliated/edico) has left #python
|
||
2019-07-09 14:19:58 <-- JujuBee (ad267542@173.38.117.66) has quit (Remote host closed the connection)
|
||
2019-07-09 14:20:13 kapsh tourjin, no you don't, python-pip contains pip binary (will work for python 2.7) and python3-pip should have pip3 (let me check my wsl for exact version).
|
||
2019-07-09 14:20:15 --> JordiGH (jordi@octave/developer/JordiGH) has joined #python
|
||
2019-07-09 14:20:24 <-- rafael (~ok@unaffiliated/rafael-cunha/x-5167236) has quit (Remote host closed the connection)
|
||
2019-07-09 14:20:28 JordiGH Wow, this is maddening. I'm experiencing a bug that only happens in a particular gunicorn process.
|
||
2019-07-09 14:20:37 JordiGH A Django bug.
|
||
2019-07-09 14:20:52 ikanobori Heh?
|
||
2019-07-09 14:21:02 JordiGH I can use gdb to grab that gunicorn process but I can't get past the gunicorn code.
|
||
2019-07-09 14:21:08 JordiGH And it's a worker process.
|
||
2019-07-09 14:21:18 JordiGH If I stop it too long with gdb, the supervisor kills my debugged process.
|
||
2019-07-09 14:21:21 --> manuelschneid3r (~manuelsch@p200300E2472C4C00F1F637EA3E460DE3.dip0.t-ipconnect.de) has joined #python
|
||
2019-07-09 14:21:25 JordiGH And I haven't been able to repro this without gunicorn.
|
||
2019-07-09 14:21:41 ikanobori Aha, what is the actual bug?
|
||
2019-07-09 14:21:45 ikanobori As in, what does it do.
|
||
2019-07-09 14:21:53 tourjin hmm. there is python-pip installed. but there is no python-pip command. only pip command.
|
||
2019-07-09 14:22:02 JordiGH The actual bug is that one of my Django widgets sometimes renders as "None" instead of the actual HTML ("<select >...</select>").
|
||
2019-07-09 14:22:14 ikanobori That sounds... unlikely to be gunicorn related?
|
||
2019-07-09 14:22:21 ikanobori How did you come to the conclusion that it's that?
|
||
2019-07-09 14:22:21 JordiGH It's process-related.
|
||
2019-07-09 14:22:26 TML tourjin: your distro names the Python pacakge "thing" as "python-thing"
|
||
2019-07-09 14:22:26 JordiGH Only happens in a certain process
|
||
2019-07-09 14:22:35 JordiGH I can't repro it otherwise.
|
||
2019-07-09 14:22:46 TML tourjin: so what your distro vendor calls "python-pip", we call "pip"
|
||
2019-07-09 14:22:48 --> dtux (~dmtucker@2601:646:c401:5751:cc2:39de:2cf2:15dc) has joined #python
|
||
2019-07-09 14:22:53 JordiGH And the only kind of process I've been able to repro it in is the ones created by gunicorn.
|
||
2019-07-09 14:23:09 ikanobori So you mean 'when I run my django application through gunicorn sometimes something is None'?
|
||
2019-07-09 14:23:17 JordiGH If I pay attention to which gunicorn process is serving the page, only one process produces None instead of the HTML.
|
||
2019-07-09 14:23:29 ikanobori Ok so; how do you normally run your Django?
|
||
2019-07-09 14:23:30 stiv2k_ _habnabit: was the function supopsed to say 'yield from line.split()' or 'yield line.split()'
|
||
2019-07-09 14:23:33 tourjin thanks i think i installed wrong pip
|
||
2019-07-09 14:23:35 JordiGH With gunicorn.
|
||
2019-07-09 14:23:35 tourjin pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
|
||
2019-07-09 14:23:36 _habnabit stiv2k_, former
|
||
2019-07-09 14:23:43 <-- gelignite (~gelignite@55d4504d.access.ecotel.net) has quit (Quit: Good fight, good night!)
|
||
2019-07-09 14:23:45 tourjin i have python3
|
||
2019-07-09 14:23:52 ikanobori JordiGH: Ok but you said this only happens in gunicorn, what did you use to determine that it doesn't happen with other wsgi servers?
|
||
2019-07-09 14:23:52 stiv2k_ _habnabit: it says invalid syntax.... python 2.7
|
||
2019-07-09 14:23:54 TML tourjin: apt install python3-pip
|
||
2019-07-09 14:23:56 JordiGH But if I try to remove gunicorn, (using Django's test server, `manage.py. runserver`), I can't see this.
|
||
2019-07-09 14:24:16 --> alexband (~alexband@222.209.153.125) has joined #python
|
||
2019-07-09 14:24:26 ikanobori Ok so, I'd say it's more likely that there's some sort of race condition with something and because gunicorn runs multiple processes there's no multiple processes using the same backend.
|
||
2019-07-09 14:24:33 JordiGH And it doesn't always happen with gunicorn; some gunicorn process gets poisoned somehow and starts serving the wrong thing.
|
||
2019-07-09 14:24:34 ikanobori And then somehow some state gets silly.
|
||
2019-07-09 14:24:45 ikanobori Because Django's runserver is a single process.
|
||
2019-07-09 14:24:49 ikanobori (with a few threads I guess)
|
||
2019-07-09 14:24:56 <-- alexband (~alexband@222.209.153.125) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 14:25:16 JordiGH It's obviously some per-process globalish variable that's getting poisoned.
|
||
2019-07-09 14:25:26 JordiGH But the only process I've been able to see this is in gunicorn.
|
||
2019-07-09 14:25:35 JordiGH I don't know what whoever is doing to poison the process.
|
||
2019-07-09 14:25:38 ikanobori You've only tried gunicorn with multiple processes.
|
||
2019-07-09 14:25:40 _habnabit infobob, redent stiv2k_ def iter_tokens(yourfile): for line in yourfile: for token in line.split(): yield token
|
||
2019-07-09 14:25:40 infobob stiv2k_, https://bpaste.net/show/u1Ve
|
||
2019-07-09 14:25:40 ikanobori Right?
|
||
2019-07-09 14:25:42 kapsh tourjin, python3-pip is pip for python 3.6 if you have ubuntu 18.04 there.
|
||
2019-07-09 14:25:49 --> ksft (~ksft@wikipedia/KSFT) has joined #python
|
||
2019-07-09 14:26:26 --> justanotheruser (justanothe@gateway/vpn/nordvpn/justanotheruser) has joined #python
|
||
2019-07-09 14:26:30 --> jsarver (uid27336@gateway/web/irccloud.com/x-tcbduxspglfjyxnm) has joined #python
|
||
2019-07-09 14:26:37 JordiGH ikanobori: Yeah, it's probably not got anything to do with multiprocessing.
|
||
2019-07-09 14:26:45 ikanobori JordiGH: multiprocessing??
|
||
2019-07-09 14:26:53 JordiGH multianything
|
||
2019-07-09 14:26:55 JordiGH It's not a race.
|
||
2019-07-09 14:26:56 <-- Singmyr (~Singmyr@c83-253-123-62.bredband.comhem.se) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
|
||
2019-07-09 14:26:59 JordiGH I'm pretty sure of that.
|
||
2019-07-09 14:27:03 ikanobori multiprocessing is a Python built-in module, are you using it?
|
||
2019-07-09 14:27:08 <-- dtux (~dmtucker@2601:646:c401:5751:cc2:39de:2cf2:15dc) has quit (Ping timeout: 252 seconds)
|
||
2019-07-09 14:27:17 JordiGH No no, forget that name, just "more than one thing running at the same time".
|
||
2019-07-09 14:27:24 JordiGH My point is, it's probably not related to that.
|
||
2019-07-09 14:27:35 ikanobori Ah ok well, then you can easily remove that bit by making gunicorn only start one process and see if it still occurs.
|
||
2019-07-09 14:27:45 JordiGH The only thing is that the only place I've seen it is in gunicorn processes, because that's what my users are doing.
|
||
2019-07-09 14:27:57 JordiGH I can't repro it otherwise because I don't know what my users are doing.
|
||
2019-07-09 14:28:10 ikanobori It's not really a gunicorn-like thing to make something a None in some processes.
|
||
2019-07-09 14:28:11 JordiGH They don't know what they do either, they just come to me and say "halp broken"
|
||
2019-07-09 14:28:25 JordiGH So I wish I could debug the actual gunicorn process that is already running!
|
||
2019-07-09 14:28:28 ikanobori And I think you can't debug this at all before you know steps to get it to reproduce semi-reliable.
|
||
2019-07-09 14:28:30 JordiGH If I restart the process, the bug goes away.
|
||
2019-07-09 14:28:42 JordiGH Well, I *could* debug this if I could hook up gdb into the process!
|
||
2019-07-09 14:28:48 JordiGH I feel like I'm 30% there.
|
||
2019-07-09 14:29:00 JordiGH But I don't know how to tell gdb, "now break when you hit this Python code".
|
||
2019-07-09 14:29:30 ikanobori You'd need the gdb python extensions but doing that on live processes that aren't triggering the bug or doing it after that value is already None won't tell you much.
|
||
2019-07-09 14:29:36 JordiGH You can inspect a lot of Python code with gdb, it's kind of nice nowadays.
|
||
2019-07-09 14:29:51 <-- emsjessec (~emsjessec@96.56.225.51) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 14:30:03 JordiGH What I'd really like is to hook up pdb to a running process but that's not possible afaict.
|
||
2019-07-09 14:30:59 <-- ali1234 (~ali1234@2a01:4f8:210:2026::2) has quit (Remote host closed the connection)
|
||
2019-07-09 14:31:05 --> djapo (~archie@unaffiliated/djapo) has joined #python
|
||
2019-07-09 14:31:36 ikanobori JordiGH: remote-pdb probably exists.
|
||
2019-07-09 14:31:47 altendky i might be about to embed with cffi into a .dll, maybe. is there a common method of packaging python up with the .dll for distribution? like pyinstaller for when you want to create a .exe.
|
||
2019-07-09 14:31:47 JordiGH Hmmm... https://stackoverflow.com/questions/7412708/debugging-stepping-through-python-script-using-gdb
|
||
2019-07-09 14:31:51 --> panikovsky_ (~panikovsk@188.114.41.19) has joined #python
|
||
2019-07-09 14:32:04 <-- dakudos (~dakudos@c-73-217-33-206.hsd1.co.comcast.net) has quit (Remote host closed the connection)
|
||
2019-07-09 14:32:11 --> GothAlice (~amcgregor@unaffiliated/gothalice) has joined #python
|
||
2019-07-09 14:32:15 <-- Haroune (~Thunderbi@129.45.47.49) has quit (Quit: Haroune)
|
||
2019-07-09 14:32:17 ikanobori JordiGH: I think you're probably overcomplicating a bit here; I'd start by joining #django and figuring out why a call to render (?) might return a None.
|
||
2019-07-09 14:32:26 JordiGH I don't think remote-pdb does ptrace().
|
||
2019-07-09 14:32:27 <-- GothAlice (~amcgregor@unaffiliated/gothalice) has left #python ("Quitting.")
|
||
2019-07-09 14:32:29 stiv2k_ _habnabit: nice.... i think its working
|
||
2019-07-09 14:32:30 ikanobori Maybe something else entirely is causing it say, some sort of caching.
|
||
2019-07-09 14:32:33 ikanobori JordiGH: Do you need it?
|
||
2019-07-09 14:32:39 JordiGH Well, it's obviously caching.
|
||
2019-07-09 14:32:42 ikanobori You just want a shell in the environment whn the bug happens.
|
||
2019-07-09 14:32:53 ikanobori JordiGH: And what happens when the cache gets corrupted or somehow a None ends up in the cache?
|
||
2019-07-09 14:33:01 JordiGH What cache?
|
||
2019-07-09 14:33:04 JordiGH I don't know!
|
||
2019-07-09 14:33:18 ikanobori Oh, you just said "it's obviously caching" so I thought it was.
|
||
2019-07-09 14:33:30 JordiGH It's obviously a per-process globalish variable getting poisoned.
|
||
2019-07-09 14:33:35 JordiGH So some kind of cache.
|
||
2019-07-09 14:33:37 --> neoncontrails (~kz@rrcs-173-197-167-2.west.biz.rr.com) has joined #python
|
||
2019-07-09 14:33:42 ikanobori JordiGH: And that makes the render of one specific widget return None?
|
||
2019-07-09 14:33:43 <-- Bahrouz (~Bahrouz@unaffiliated/bahrouz) has quit (Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/)
|
||
2019-07-09 14:33:50 JordiGH Yep, just one widget.
|
||
2019-07-09 14:34:10 JordiGH And I can't see anything in the code that makes this widget special.
|
||
2019-07-09 14:34:31 JordiGH I really just want to step through the rendering code to see where the None is coming from.
|
||
2019-07-09 14:34:38 JordiGH I just did that for a happy path.
|
||
2019-07-09 14:35:27 ikanobori Your initial problem was that you can't stop the process for long enough to go through it with gdb right?
|
||
2019-07-09 14:35:29 <-- ggRSA (~ggrsa@5.165.20.31) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 14:35:29 <-- panikovsky (~panikovsk@31.23.134.117) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 14:35:37 ikanobori gunicorn takes a timeout argument (-t) that you can set higher.
|
||
2019-07-09 14:35:46 ikanobori That should give you more time to attach and step into the interpreter.
|
||
2019-07-09 14:35:50 JordiGH If I restart gunicorn the bug goes away.
|
||
2019-07-09 14:35:56 JordiGH And it's hard to repro.
|
||
2019-07-09 14:35:58 ikanobori Ok, but I assume it happens more than once?
|
||
2019-07-09 14:36:00 JordiGH I don't know what my users are doing.
|
||
2019-07-09 14:36:07 JordiGH It's happened twice past two weeks.
|
||
2019-07-09 14:36:07 acresearch people, is there a forum for machine learning Q&A?
|
||
2019-07-09 14:36:09 <-- tijensse (tim_jensse@nat/qt/x-ubrbtnthxqggyipk) has quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
|
||
2019-07-09 14:36:11 acresearch that is active?
|
||
2019-07-09 14:36:27 ikanobori JordiGH: So restart gunicorn with a higher timeout, wait for the bug to occur, find the process, attach to it.
|
||
2019-07-09 14:36:34 JordiGH And then...?
|
||
2019-07-09 14:36:39 ikanobori Step through your render call.
|
||
2019-07-09 14:36:45 JordiGH How do you step through Python code with gdb?
|
||
2019-07-09 14:38:18 ikanobori Oh I thought you knew that bit since you were trying gdb in the first place.
|
||
2019-07-09 14:38:31 ikanobori Maybe you can take a look at pyrasite, it'll insert a python shell into a running python process.
|
||
2019-07-09 14:38:49 JordiGH gdb can also do that.
|
||
2019-07-09 14:38:55 JordiGH Just `python-interactive` in gdb.
|
||
2019-07-09 14:38:59 ikanobori Ok...
|
||
2019-07-09 14:39:07 JordiGH But I don't know how to insert a python *debugger*.
|
||
2019-07-09 14:39:11 <-- Fusl (fusl@opennic/fusl) has quit (Max SendQ exceeded)
|
||
2019-07-09 14:39:30 JordiGH Hmmmm... unless... can I...?
|
||
2019-07-09 14:40:10 neoncontrails I was mulling over the problem of inadvertently breaking downstream dependencies by, e.g., forgetting to bump the version of a pypi package after introducing a (possibly breaking) change
|
||
2019-07-09 14:40:10 --> Fusl (fusl@opennic/fusl) has joined #python
|
||
2019-07-09 14:40:42 tourjin now I installed python3-pip . but I can't run pip or python3-pip command...
|
||
2019-07-09 14:40:52 <-- Fusl (fusl@opennic/fusl) has quit (Max SendQ exceeded)
|
||
2019-07-09 14:40:56 neoncontrails What I'm imagining is a similar concept to this "incremental" package I found, to make versioning a little more automatic: https://github.com/twisted/incremental
|
||
2019-07-09 14:41:01 <-- spare_ (~user@unaffiliated/spareproject) has quit (Quit: leaving)
|
||
2019-07-09 14:41:01 altendky tourjin: you shouldn't run the system pip anyways. bit.ly/py-env
|
||
2019-07-09 14:41:06 --> tdy2 (~tdy@unaffiliated/tdy) has joined #python
|
||
2019-07-09 14:41:07 <-- clearcasting (~clearcast@203.221.89.69) has quit (Ping timeout: 268 seconds)
|
||
2019-07-09 14:41:18 --> jupart (~coolp_jim@unaffiliated/coolp-jim/x-7942062) has joined #python
|
||
2019-07-09 14:41:30 --> coexist (coexist@gateway/vpn/privateinternetaccess/coexist) has joined #python
|
||
2019-07-09 14:41:33 neoncontrails But I'm curious. How necessary is it, really, to require a developer to specify the version number at all?
|
||
2019-07-09 14:41:36 altendky neoncontrails: i use versioneer to pull the version from the git tags
|
||
2019-07-09 14:42:13 altendky neoncontrails: fair warning, some very respectable people disagree with this approach.
|
||
2019-07-09 14:42:29 neoncontrails Shouldn't it be possible to collect the function signatures and bump the major version if any one of them changes?
|
||
2019-07-09 14:42:55 <-- pro_z (~pro_z@178.121.88.201) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 14:42:57 altendky neoncontrails: that's not the only possible breaking change i would think
|
||
2019-07-09 14:43:09 --> Fusl (fusl@opennic/fusl) has joined #python
|
||
2019-07-09 14:43:10 altendky neoncontrails: even including type hinting on them
|
||
2019-07-09 14:43:38 <-- Fusl (fusl@opennic/fusl) has quit (Max SendQ exceeded)
|
||
2019-07-09 14:43:51 Wooble tourjin: what happens when you try?
|
||
2019-07-09 14:43:52 <-- drymer (~drymer@unaffiliated/drymer) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 14:43:57 --> joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has joined #python
|
||
2019-07-09 14:44:00 neoncontrails altendky: I can imagine it's a more complex problem than I fully appreciate, but I feel like the alternative is just anarchy
|
||
2019-07-09 14:44:15 altendky Wooble: wouldn't it be pip3?
|
||
2019-07-09 14:44:37 --> Fusl (fusl@opennic/fusl) has joined #python
|
||
2019-07-09 14:44:51 tourjin venv? I'm reading docs. Wooble
|
||
2019-07-09 14:44:53 Wooble altendky: well installing python3-pip alongside python-pip shouldn't break /usr/bin/pip although it's a debian so...
|
||
2019-07-09 14:44:54 altendky neoncontrails: the alternative is that if you really care about breaking changes you realize when you are making one (or at least your reviewer does).
|
||
2019-07-09 14:45:05 neoncontrails I feel like there are very reasonable heuristics for at least suggesting a version number based on hashes, signatures, module dependencies, etc.
|
||
2019-07-09 14:45:22 --> bachibuzuk (~user@176.187.70.135) has joined #python
|
||
2019-07-09 14:45:23 <-- panikovsky_ (~panikovsk@188.114.41.19) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 14:45:26 <-- strive (~strive@unaffiliated/strive/x-8457361) has quit (Quit: = "")
|
||
2019-07-09 14:45:28 --> drymer (~drymer@unaffiliated/drymer) has joined #python
|
||
2019-07-09 14:45:30 altendky Wooble: latest ubuntu anyways doesn't have py2, does it have /usr/bin/pip?
|
||
2019-07-09 14:45:56 tourjin oh pip3 was the command name
|
||
2019-07-09 14:46:10 Wooble altendky: well they had pip earlier.
|
||
2019-07-09 14:46:37 altendky tourjin: especially don't run it as root, such as with sudo. that can really break stuff. even with --user isn't great even if you can only break stuff for that particular user.
|
||
2019-07-09 14:46:46 altendky Wooble: gotcha
|
||
2019-07-09 14:46:50 <-- CyberX (~CyberX@unaffiliated/cyberx) has quit (Remote host closed the connection)
|
||
2019-07-09 14:46:57 tourjin ok thanks
|
||
2019-07-09 14:47:04 <-- joocain2 (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 260 seconds)
|
||
2019-07-09 14:47:12 <-- Ergo (~ergo@91.238.59.144) has quit (Remote host closed the connection)
|
||
2019-07-09 14:47:17 <-- subopt (~subopt@199.255.45.4) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
|
||
2019-07-09 14:48:01 neoncontrails altendky: your memory must be a lot sharper than my own, I've only recently started maintaining a PyPi package and already I'm finding it difficult to rely on it for production code due to accidental versioning mistakes
|
||
2019-07-09 14:48:09 tourjin wow import oauth2 has no error message . great guys. u must be thousand kilometers away. but u can look into my laptop better than me.
|
||
2019-07-09 14:48:21 tourjin great . thanks guys
|
||
2019-07-09 14:49:27 <-- Whir (~Whir@HSI-KBW-217-008-061-067.hsi.kabelbw.de) has quit (Remote host closed the connection)
|
||
2019-07-09 14:49:28 <-- confluency (~quassel@static.119.197.46.78.clients.your-server.de) has quit (*.net *.split)
|
||
2019-07-09 14:49:28 <-- lebster (sid17131@gateway/web/irccloud.com/x-imgpivbpfsmfmipq) has quit (*.net *.split)
|
||
2019-07-09 14:49:28 <-- tshirtman (~tshirtman@unaffiliated/tshirtman) has quit (*.net *.split)
|
||
2019-07-09 14:49:28 <-- roboo (~roboo@95.85.33.84) has quit (*.net *.split)
|
||
2019-07-09 14:49:28 <-- jerichowasahoax (~lavacano@unaffiliated/jerichowasahoax) has quit (*.net *.split)
|
||
2019-07-09 14:49:28 <-- sparr (~sparr@pdpc/supporter/active/sparr) has quit (*.net *.split)
|
||
2019-07-09 14:49:28 <-- DistantStar_ (~DistantSt@unaffiliated/distantstar) has quit (*.net *.split)
|
||
2019-07-09 14:49:29 <-- gurki (~gurki@62-210-251-229.rev.poneytelecom.eu) has quit (*.net *.split)
|
||
2019-07-09 14:49:29 <-- zwamkat (~zwamkat@pdpc/supporter/student/zwamkat) has quit (*.net *.split)
|
||
2019-07-09 14:49:29 <-- diarpi (~diarpi@ec2-35-157-38-10.eu-central-1.compute.amazonaws.com) has quit (*.net *.split)
|
||
2019-07-09 14:49:29 <-- TooLmaN (~TooLmaN@159.203.132.32) has quit (*.net *.split)
|
||
2019-07-09 14:49:29 <-- jb21 (uMoeBwJrRX@gateway/shell/xzibition.com/x-ymgvukimnkdszorb) has quit (*.net *.split)
|
||
2019-07-09 14:49:29 <-- militia (~militia@163.ip-51-254-203.eu) has quit (*.net *.split)
|
||
2019-07-09 14:49:29 <-- MapMan (mapman@unaffiliated/mapman) has quit (*.net *.split)
|
||
2019-07-09 14:49:29 <-- SunDwarf (~Sun@WiseOS/Founder/Eyes) has quit (*.net *.split)
|
||
2019-07-09 14:49:35 --> zwamkat (~zwamkat@pdpc/supporter/student/zwamkat) has joined #python
|
||
2019-07-09 14:50:01 --> TooLmaN (~TooLmaN@159.203.132.32) has joined #python
|
||
2019-07-09 14:50:01 --> Eyess (~Sun@WiseOS/Founder/Eyes) has joined #python
|
||
2019-07-09 14:50:01 --> jerichowasahoax (~lavacano@unaffiliated/jerichowasahoax) has joined #python
|
||
2019-07-09 14:50:01 --> lebster (sid17131@gateway/web/irccloud.com/x-pvpyyhjhlcbthxgc) has joined #python
|
||
2019-07-09 14:50:01 --> diarpi (~diarpi@ec2-35-157-38-10.eu-central-1.compute.amazonaws.com) has joined #python
|
||
2019-07-09 14:50:01 <-- KOR_Solidarity (~zergrager@1.231.93.107) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 14:50:01 altendky neoncontrails: i didn't make my real point i think. _when_ you decide to make a breaking change... it's not about memory so much. you don't remember 'oh yeah i broke stuff' instead you need to store record of the break when you are making it. maybe towncrier or similar helps with this.
|
||
2019-07-09 14:50:06 --> subopt (~subopt@199.255.45.4) has joined #python
|
||
2019-07-09 14:51:03 JordiGH Woo, I repro'ed without gunicorn!
|
||
2019-07-09 14:51:08 JordiGH QA works!
|
||
2019-07-09 14:51:36 ikanobori JordiGH: Hah, so it isn't gunicorn. This should be a lot easier to debug then :)
|
||
2019-07-09 14:51:45 JordiGH I was pretty sure it wasn't gunicorn.
|
||
2019-07-09 14:51:47 ikanobori Now you can also just use pdb.set_trace
|
||
2019-07-09 14:52:09 JordiGH I had the QA lead come over and sit next to me and she did have repeatable steps.
|
||
2019-07-09 14:52:16 <-- Secret-Fire (~Secret-Fi@97.115.205.62) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 14:52:24 JordiGH I just didn't understand them from the description.
|
||
2019-07-09 14:52:29 altendky neoncontrails: but sure, it seems there could be (might be?) a tool that could check for some breaks. also, perhaps this would be an integration test suite? run the last release against the new code to see if it's broken?
|
||
2019-07-09 14:52:52 --> pvtpetey (~pvtpetey@174.253.199.146.dyn.plus.net) has joined #python
|
||
2019-07-09 14:54:09 --> Soo_Slow (Soo_Slow@gateway/vpn/privateinternetaccess/sooslow/x-31376162) has joined #python
|
||
2019-07-09 14:54:31 --> Secret-Fire (~Secret-Fi@97.115.203.166) has joined #python
|
||
2019-07-09 14:54:43 Soo_Slow is there any library to work with gamepads, that isnt part of pygame?
|
||
2019-07-09 14:54:59 ironfroggy why "isnt part of pygame"?
|
||
2019-07-09 14:55:12 ironfroggy "I want a library to do this, but not the most popular library that does it"
|
||
2019-07-09 14:55:28 <-- kosh (~kosh@65.114.164.32) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 14:56:10 --> clearcasting (~clearcast@203.221.89.69) has joined #python
|
||
2019-07-09 14:56:21 <-- sb35 (~sb35@23.111.78.46) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 14:56:46 neoncontrails altendky: this is helpful feedback, thanks. What I'm imagining is basically: a version number `x.y.z` is returned, where x increments in the event of a modified signature (excluding type annotations), y increments if the hash of all the function signatures nonetheless changes (e.g., an added feature), and z increments if the hash of the module source code (defined how? Not sure...) changes
|
||
2019-07-09 14:57:16 --> impermanence (c01c0110@gateway/web/cgi-irc/kiwiirc.com/ip.192.28.1.16) has joined #python
|
||
2019-07-09 14:57:29 pvtpetey I'm currently trying to make a DJ application and i'm trying to figure out how to use librosa with it. Is there any way to 'play' a track and get librosa to listen to it?
|
||
2019-07-09 14:57:42 aslicedbanjo neoncontrails: an approach I've seen used for C++ is to generate an interface report for each version in a format that is easily diff'able. That was in a a job I had years ago. We used gccxml to "compile" the source to an XML description. I'm sure it would be easy enough to write something along those lines for Python which would at least help with changes like different numbers of arguments or function renames. It won
|
||
2019-07-09 14:57:42 aslicedbanjo our changes though, for which integration tests are good.
|
||
2019-07-09 14:57:45 impermanence What's the best "python to excel" library?
|
||
2019-07-09 14:57:54 Wooble Soo_Slow: https://pypi.org/project/inputs/ disclaimer never heard of it before just googled it
|
||
2019-07-09 14:57:56 --> Xaldafax (~Xaldafax@cpe-104-34-193-119.socal.res.rr.com) has joined #python
|
||
2019-07-09 14:58:02 --> saint_ (~saint_@unaffiliated/saint-/x-0540772) has joined #python
|
||
2019-07-09 14:58:06 impermanence just for very basic stuff
|
||
2019-07-09 14:58:08 Wooble impermanence: pandas, IMO
|
||
2019-07-09 14:58:16 aslicedbanjo Type annotations can help with those kinds of interface descriptions too.
|
||
2019-07-09 14:58:18 impermanence okay, gr8
|
||
2019-07-09 14:58:33 <-- awe00 (~awe00@unaffiliated/awe00) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 14:58:50 Wooble impermanence: (it uses other libraries to do the actual excel stuff, but I don't find their APIs that good when used directly)
|
||
2019-07-09 14:59:13 impermanence matplot and all that I suppose...
|
||
2019-07-09 14:59:24 Wooble impermanence: openpyxl I believe.
|
||
2019-07-09 14:59:40 Soo_Slow ironfroggy, because Im not using pygame?
|
||
2019-07-09 14:59:45 --> Jackneill (~Jackneill@unaffiliated/jackneill) has joined #python
|
||
2019-07-09 15:00:24 neoncontrails aslicedbanjo: reminds me a little bit of sphinx/autodoc... which, you're right, is partly what got me thinking about this
|
||
2019-07-09 15:00:40 <-- lsyoyom (~liny01@unaffiliated/lsyoyom) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 15:00:48 --> indistylo (~aruns_@106.51.25.10) has joined #python
|
||
2019-07-09 15:01:31 Wooble neoncontrails: what if all of my signatures are (*args, **kwargs)? :)
|
||
2019-07-09 15:01:35 <-- CorvetteZR1 (~quassel@dynip-204.mtl.dmtel.ca) has quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
|
||
2019-07-09 15:02:24 <-- hussar (hussar@gateway/vpn/protonvpn/hussar) has quit (Quit: WeeChat 2.3)
|
||
2019-07-09 15:02:25 neoncontrails If it's possible to generate informative digests of a package's API, it should also be possible (imho) to prevent 99% of versioning headaches by deferring the decision of an update's nominative version number to an automated tool
|
||
2019-07-09 15:02:31 <-- RedAero (~RedAero@5401D6EB.dsl.pool.telekom.hu) has quit (Quit: Away from consciousness)
|
||
2019-07-09 15:02:51 <-- coexist (coexist@gateway/vpn/privateinternetaccess/coexist) has quit (Quit: Leaving)
|
||
2019-07-09 15:03:14 aslicedbanjo You could probably even train a neural network to bump versions for you following rules like semantic versioning ;)
|
||
2019-07-09 15:04:24 --> The-Croupier-1 (~The-Croup@unaffiliated/thecroupier/x-363548) has joined #python
|
||
2019-07-09 15:04:27 Wooble neoncontrails: I feel like it's probably a harder problem in a dynamic language than in, say, Elm (which does enforce semver in the compiler) but sure, it may be possible for someone someday to write such a tool.
|
||
2019-07-09 15:04:33 <-- tdy2 (~tdy@unaffiliated/tdy) has quit (Ping timeout: 268 seconds)
|
||
2019-07-09 15:05:13 <-- indistylo (~aruns_@106.51.25.10) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 15:05:32 Wooble (hilariously elm itself uses zerover)
|
||
2019-07-09 15:05:47 --> Haroune (~Thunderbi@129.45.47.49) has joined #python
|
||
2019-07-09 15:06:01 <-- italic (~italic@unaffiliated/italic/x-8958156) has quit (Ping timeout: 276 seconds)
|
||
2019-07-09 15:06:17 --> awe00 (~awe00@unaffiliated/awe00) has joined #python
|
||
2019-07-09 15:06:41 --> RedAero (~RedAero@5401D6EB.dsl.pool.telekom.hu) has joined #python
|
||
2019-07-09 15:07:00 <-- abdulocracy (~abdulocra@87-206-70-87.dynamic.chello.pl) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 15:07:50 --> abdulocracy (~abdulocra@87-206-70-87.dynamic.chello.pl) has joined #python
|
||
2019-07-09 15:08:01 <-- The-Croupier (~The-Croup@unaffiliated/thecroupier/x-363548) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 15:08:05 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Remote host closed the connection)
|
||
2019-07-09 15:08:25 --> tdy2 (~tdy@unaffiliated/tdy) has joined #python
|
||
2019-07-09 15:08:38 --> drincruz (~drincruz@ool-44c7491c.dyn.optonline.net) has joined #python
|
||
2019-07-09 15:08:57 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python
|
||
2019-07-09 15:09:37 <-- RickDeckard (~tgburrin@108.60.152.194) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 15:10:14 --> AbedB (~AbedBhuty@162.220.164.100) has joined #python
|
||
2019-07-09 15:10:36 <-- The-Croupier-1 (~The-Croup@unaffiliated/thecroupier/x-363548) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 15:10:48 --> plexigras (plexigras@gateway/vpn/privateinternetaccess/plexigras) has joined #python
|
||
2019-07-09 15:10:53 <-- ironfroggy (~ironfrogg@python/site-packages/ironfroggy) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 15:11:00 --> The-Croupier-1 (~The-Croup@unaffiliated/thecroupier/x-363548) has joined #python
|
||
2019-07-09 15:11:23 --> n3wborn (n3wborn@gateway/vpn/privateinternetaccess/n3wborn) has joined #python
|
||
2019-07-09 15:11:36 <-- subopt (~subopt@199.255.45.4) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
|
||
2019-07-09 15:12:01 <-- sdoherty (sdoherty@nat/redhat/x-xxdrffghdhqkhrvv) has quit (Remote host closed the connection)
|
||
2019-07-09 15:13:27 <-- Stultus_Verus_t (~Stultus_V@hpcs-gw.cs.tsukuba.ac.jp) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 15:13:37 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Remote host closed the connection)
|
||
2019-07-09 15:13:41 --> CyberX (~CyberX@unaffiliated/cyberx) has joined #python
|
||
2019-07-09 15:13:51 --> Stultus_Verus_t (~Stultus_V@hpcs-gw.cs.tsukuba.ac.jp) has joined #python
|
||
2019-07-09 15:14:20 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python
|
||
2019-07-09 15:15:22 <-- mirth (~mirth@72-48-250-221.dyn.grandenetworks.net) has quit (Quit: WeeChat 2.5)
|
||
2019-07-09 15:15:37 <-- BestSteve (~weechat@gateway/tor-sasl/beststeve) has quit (Quit: WeeChat 2.5)
|
||
2019-07-09 15:15:43 <-- nichawla_ (~nichawla@27.34.247.33) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 15:16:14 <-- gumol (~gumol@ip47-32-173-82.adsl2.static.versatel.nl) has quit (Remote host closed the connection)
|
||
2019-07-09 15:16:16 <-- zerotech1 (~zerotech@BSN-210-224-122.dynamic.siol.net) has quit (Ping timeout: 268 seconds)
|
||
2019-07-09 15:16:23 --> mirth (~mirth@72-48-250-221.dyn.grandenetworks.net) has joined #python
|
||
2019-07-09 15:16:36 --> gumol (~gumol@ip47-32-173-82.adsl2.static.versatel.nl) has joined #python
|
||
2019-07-09 15:17:56 --> Rollabunna (~Rollabunn@c-67-161-39-214.hsd1.ca.comcast.net) has joined #python
|
||
2019-07-09 15:17:57 <-- awe00 (~awe00@unaffiliated/awe00) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 15:18:50 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Remote host closed the connection)
|
||
2019-07-09 15:19:28 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python
|
||
2019-07-09 15:20:44 --> indistylo (~aruns_@106.51.25.10) has joined #python
|
||
2019-07-09 15:21:35 Soo_Slow Wooble, thanks
|
||
2019-07-09 15:21:56 <-- gloomy (~Gloomy@85.62-245-81.adsl-dyn.isp.belgacom.be) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
|
||
2019-07-09 15:21:57 <-- MenschZwoNull (~MenschZwo@185.66.195.93) has quit (Remote host closed the connection)
|
||
2019-07-09 15:22:39 mirth /buffer 2
|
||
2019-07-09 15:22:42 mirth oops
|
||
2019-07-09 15:23:03 <-- Rollabunna (~Rollabunn@c-67-161-39-214.hsd1.ca.comcast.net) has quit (Ping timeout: 268 seconds)
|
||
2019-07-09 15:23:44 <-- Soo_Slow (Soo_Slow@gateway/vpn/privateinternetaccess/sooslow/x-31376162) has quit (Remote host closed the connection)
|
||
2019-07-09 15:24:16 --> Lucas_Gray (~Wryhder@41.190.31.76) has joined #python
|
||
2019-07-09 15:25:23 <-- indistylo (~aruns_@106.51.25.10) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 15:26:08 --> MenschZwoNull (~MenschZwo@2a03:2260:200c:400:4908:525b:4e4f:7a87) has joined #python
|
||
2019-07-09 15:26:11 --> lsyoyom (~liny01@unaffiliated/lsyoyom) has joined #python
|
||
2019-07-09 15:26:23 jayjo I'm trying to add some authorization & authentication to a python app with a jwt token. Should I also use redis to keep track of a blacklist/whitelist of the tokens? Is that a best practice?
|
||
2019-07-09 15:26:39 --> awe00 (~awe00@unaffiliated/awe00) has joined #python
|
||
2019-07-09 15:26:43 --> vegas123 (uid359788@gateway/web/irccloud.com/x-nuqgpxjvixtmvylx) has joined #python
|
||
2019-07-09 15:26:44 --> csotelo (~csotelo@132.191.2.244) has joined #python
|
||
2019-07-09 15:26:57 jimender2 so I am trying to return a True in python 3 and it says that I have invalid syntax. The line of code is literally a tab and then return True
|
||
2019-07-09 15:27:11 nedbat jimender2: check the lines before
|
||
2019-07-09 15:27:12 _habnabit jimender2, it's a previous line; you forgot ) ] }
|
||
2019-07-09 15:27:13 jimender2 the arrow is pointing at the n in return
|
||
2019-07-09 15:27:26 <-- ezd (~zed@h57.9.19.98.dynamic.ip.windstream.net) has left #python ("leave")
|
||
2019-07-09 15:27:26 --> sydbarret (~sydbarret@unaffiliated/sydbarret) has joined #python
|
||
2019-07-09 15:27:28 Wooble jimender2: python is bad at pointing arrows at things.
|
||
2019-07-09 15:27:33 --> Singmyr (~Singmyr@c83-253-123-62.bredband.comhem.se) has joined #python
|
||
2019-07-09 15:27:43 --> Beerbaron23 (~Montreal@198-58-179-188.on.cable.ebox.net) has joined #python
|
||
2019-07-09 15:27:44 _habnabit (_man_ the cpython parser is so opaque to anyone unfamiliar with it)
|
||
2019-07-09 15:28:16 <-- MenschZwoNull (~MenschZwo@2a03:2260:200c:400:4908:525b:4e4f:7a87) has quit (Remote host closed the connection)
|
||
2019-07-09 15:28:27 Wooble if only it could say "expected ')' or T_PAAMAYIM_NEKUDOTAYIM"
|
||
2019-07-09 15:28:50 --> CaptainN (zelda@unaffiliated/captainn) has joined #python
|
||
2019-07-09 15:29:13 <-- dude-x (~dude-x@pool-173-70-106-3.nwrknj.fios.verizon.net) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 15:30:02 sydbarret any package for streak crm api?
|
||
2019-07-09 15:30:38 jimender2 Thank you all for that fix
|
||
2019-07-09 15:30:46 <-- jcbitter (~weechat@40.64.73.34.bc.googleusercontent.com) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 15:31:57 <-- MmeQuignon (~matthieu@150.39.22.93.rev.sfr.net) has quit (Quit: WeeChat 2.4)
|
||
2019-07-09 15:32:06 --> jcbitter (~weechat@40.64.73.34.bc.googleusercontent.com) has joined #python
|
||
2019-07-09 15:33:08 <-- The-Croupier-1 (~The-Croup@unaffiliated/thecroupier/x-363548) has quit (Quit: Leaving)
|
||
2019-07-09 15:34:18 _habnabit sydbarret, what's google say?
|
||
2019-07-09 15:34:27 JordiGH Oh boy, this bug is a fun one.
|
||
2019-07-09 15:34:36 JordiGH I'm gonna impress everyone with the explanation of this bug.
|
||
2019-07-09 15:34:57 JordiGH Men will envy me, women will swoon, bards will sing of my deeds.
|
||
2019-07-09 15:35:00 --> mathlover2 (~mathlover@cpe-66-66-101-206.rochester.res.rr.com) has joined #python
|
||
2019-07-09 15:35:00 sydbarret _habnabit https://github.com/gato-sabio/streak-crm-python
|
||
2019-07-09 15:35:15 tourjin is there a module urlparse not urllib.parse ?
|
||
2019-07-09 15:35:26 Wooble tourjin: in python 2, yes.
|
||
2019-07-09 15:35:35 tourjin python3
|
||
2019-07-09 15:35:56 Wooble tourjin: it was renamed to urllib.parse in python 3.
|
||
2019-07-09 15:36:08 tourjin ok thanks
|
||
2019-07-09 15:37:13 Eis to loop over an array or string which is faster for item in list or a while loop?
|
||
2019-07-09 15:37:28 _habnabit Eis, a for loop is much easier to write
|
||
2019-07-09 15:37:54 TML Eis: are you sure that kind of micro-optimization is valuable to you right now? It rarely is, in my experience.
|
||
2019-07-09 15:37:58 JordiGH Eis: They should be of almost equal speed.
|
||
2019-07-09 15:38:00 --> jay-m (~jay-m@129.0.205.174) has joined #python
|
||
2019-07-09 15:38:17 <-- RoseBus (~RoseBus@unaffiliated/rosebus) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 15:38:17 nedbat Eis: a for loop is also easier to read
|
||
2019-07-09 15:38:40 JordiGH Is a for loop just sugar for iterators?
|
||
2019-07-09 15:38:40 Eis I am doing some leetcode problems
|
||
2019-07-09 15:38:42 Eis so I wondered
|
||
2019-07-09 15:38:58 JordiGH Or are some for loops optimised in cpython?
|
||
2019-07-09 15:39:01 stiv2k_ _habnabit: is it possible for me to just request one more token by calling token = iter_tokens(fp) or does it have to be iterated over
|
||
2019-07-09 15:39:02 Eis I could try both
|
||
2019-07-09 15:39:20 JordiGH Eis: It would be weird if choosing one or the other is where you could pick up speed.
|
||
2019-07-09 15:39:32 _habnabit stiv2k_, don't call iter_tokens a second time but you'd be able to use next() to get another token
|
||
2019-07-09 15:39:39 JordiGH In Mercurial we do some micro-optimisations like avoiding function calls or method lookups inside loops.
|
||
2019-07-09 15:39:41 _habnabit Eis, don't guess about where your code is slow; measure
|
||
2019-07-09 15:40:10 Eis oh I haven't even started, usually speed comes from implementation
|
||
2019-07-09 15:40:17 <-- forgottenone (~forgotten@176.88.102.125) has quit (Quit: Konversation terminated!)
|
||
2019-07-09 15:40:20 JordiGH So we'll do something like `method = object.method` before the loop instead of `object.method(thing)` in the loop body.
|
||
2019-07-09 15:40:23 Eis a brute force solution is always slow
|
||
2019-07-09 15:40:27 _habnabit Eis, speed doesn't come from guessing about types of loops ;)
|
||
2019-07-09 15:40:36 --> snake (~fidasx@ppp-94-66-221-110.home.otenet.gr) has joined #python
|
||
2019-07-09 15:40:42 stiv2k_ _habnabit: like next(token) ?
|
||
2019-07-09 15:40:44 --> tdy3 (~tdy@unaffiliated/tdy) has joined #python
|
||
2019-07-09 15:40:46 Eis but if all the other factors have been taken care off..
|
||
2019-07-09 15:40:53 JordiGH Eis: You'll likely gain a lot more speed by other things than the type of loop.
|
||
2019-07-09 15:40:54 stiv2k_ where token was for token in iter_tokens(fp) ?
|
||
2019-07-09 15:41:00 -- snake is now known as Guest37834
|
||
2019-07-09 15:41:07 <-- shabius (~shabius@83.97.18.162) has quit (Quit: Leaving)
|
||
2019-07-09 15:41:43 _habnabit infobob, redent stiv2k_ tokens = iter_tokens(fp); for token in tokens: if token == 'onemore': next_token = next(tokens)
|
||
2019-07-09 15:41:44 infobob stiv2k_, https://bpaste.net/show/eH4x
|
||
2019-07-09 15:42:04 <-- nibble_zero (~nibble_ze@94.250.182.222) has quit (Quit: nibble_zero)
|
||
2019-07-09 15:42:10 --> MmeQuignon (~matthieu@150.39.22.93.rev.sfr.net) has joined #python
|
||
2019-07-09 15:42:11 <-- notfunk (~notfunk@209.6.52.185) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
|
||
2019-07-09 15:42:33 <-- tdy2 (~tdy@unaffiliated/tdy) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 15:42:36 --> BestSteve (~weechat@gateway/tor-sasl/beststeve) has joined #python
|
||
2019-07-09 15:42:51 _habnabit Eis, .. then you'd still measure, not guess
|
||
2019-07-09 15:42:52 <-- esro (~esro@91.231.45.1) has quit (Quit: Leaving)
|
||
2019-07-09 15:43:01 <-- fidasx (~fidasx@ppp-94-66-221-173.home.otenet.gr) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 15:43:09 <-- tdy3 (~tdy@unaffiliated/tdy) has quit (Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac)
|
||
2019-07-09 15:43:35 stiv2k_ _habnabit: i see
|
||
2019-07-09 15:43:35 --> jlf (~jlf@pdpc/supporter/active/jlf) has joined #python
|
||
2019-07-09 15:44:09 --> tdy3 (~tdy@unaffiliated/tdy) has joined #python
|
||
2019-07-09 15:44:20 --> vuoto (~vuoto@80.71.142.174) has joined #python
|
||
2019-07-09 15:44:31 --> joocain2 (~joocain2@gateway/tor-sasl/joocain2) has joined #python
|
||
2019-07-09 15:45:00 neoncontrails Wooble: sorry, got called away for a sec. Can you think of an example of a breaking (major version) update that doesn't modify a module's function signatures? My hunch is that even someone who signs everything to be a function of (*args, **kwargs) would still fail the hash comparison and get bumped up a minor version, which still at least shields downstream users of a package that use version pinning
|
||
2019-07-09 15:45:07 --> shabius (~shabius@2a07:241:1:1022::1000) has joined #python
|
||
2019-07-09 15:45:36 nedbat neoncontrails: some people update the major version when they drop support for a version of Python. No more 2.6? Major version bump.
|
||
2019-07-09 15:45:38 Eis _habnabit I'm not really sure how "for letter in string" works to measure it
|
||
2019-07-09 15:45:56 Eis thus I opted for asking someone who has done the measurements :P
|
||
2019-07-09 15:46:22 mat001 Doesn’t quite seem to visually fit there, though functionally it does.
|
||
2019-07-09 15:46:22 mat001 What would be a good alternative to put it in? Was thinking in another helper `module` or in __init__.py as in this case wouldn’t even need to import it.
|
||
2019-07-09 15:46:22 mat001 What’s a good practice in such case of a simple logger where you don’t use a separate logger module/class?
|
||
2019-07-09 15:46:37 _habnabit Eis, it doesn't matter if that one specific thing might be faster sometimes. the question is what is slow _in your program_
|
||
2019-07-09 15:46:51 <-- mirth (~mirth@72-48-250-221.dyn.grandenetworks.net) has quit (Quit: WeeChat 2.5)
|
||
2019-07-09 15:47:05 _habnabit Eis, it's extremely likely that something else is slower
|
||
2019-07-09 15:47:10 mat001 Sorry, ignore last three lines!
|
||
2019-07-09 15:47:19 <-- bachibuzuk (~user@176.187.70.135) has quit (Remote host closed the connection)
|
||
2019-07-09 15:47:25 mat001 I have a `basicConfig` logger declared in the module where the main function is. Doesn’t quite seem to visually fit there, though functionally it does. What would be a good alternative to put it in? Was thinking in another helper `module` or in __init__.py as in this case wouldn’t even need to import it. What’s a good practice in such case of a simple logger where you don’t use a separate logger module/class?
|
||
2019-07-09 15:47:37 --> bachibuzuk (~user@176.187.70.135) has joined #python
|
||
2019-07-09 15:47:44 <-- joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 260 seconds)
|
||
2019-07-09 15:47:58 <-- isokee (~isokee@unaffiliated/isokee) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 15:48:22 <-- linux_dream (~isaac@unaffiliated/linux-dream/x-5839402) has quit (Quit: WeeChat 2.5)
|
||
2019-07-09 15:48:24 stiv2k_ _habnabit: heh, next() doesnt seem to advance the pointer to the next token
|
||
2019-07-09 15:48:40 _habnabit stiv2k_, you'd have to show your code then
|
||
2019-07-09 15:49:14 kapsh mat001, is your basicconfig call in global scope or in the main function itself?
|
||
2019-07-09 15:49:26 stiv2k_ _habnabit: may i pm the pastebin link?
|
||
2019-07-09 15:49:56 _habnabit stiv2k_, put it to the channel, or make a test case that you are more comfortable with sharing
|
||
2019-07-09 15:50:08 stiv2k_ https://bpaste.net/show/P_hs
|
||
2019-07-09 15:51:15 mat001 kapsh: it's at the top of the odule where the main funciton is
|
||
2019-07-09 15:51:20 mat001 (module)
|
||
2019-07-09 15:52:18 stiv2k_ _habnabit: whats happening is the output is "Name: CHARACTERISTIC" instead of it skipping ahead and printing the actual characteristic name
|
||
2019-07-09 15:52:27 mat001 kapsh: It's picked up easily in other modules, I just need to imort logging and then `logging.error(...)`
|
||
2019-07-09 15:52:47 --> albertosottile (~albertoso@adsl-89-217-57-122.adslplus.ch) has joined #python
|
||
2019-07-09 15:52:55 stiv2k_ and the token stream looks like this: CHARACTERISTIC /* some comment */ characteristic_name_here
|
||
2019-07-09 15:53:05 --> superduperuser (~superdupe@107-141-125-214.lightspeed.hstntx.sbcglobal.net) has joined #python
|
||
2019-07-09 15:53:20 --> ssueepprer (~superdupe@107-141-125-214.lightspeed.hstntx.sbcglobal.net) has joined #python
|
||
2019-07-09 15:53:22 Wooble stiv2k_: is there another CHARACTERISTIC right after that? because you're actually skipping the name there.
|
||
2019-07-09 15:53:29 _habnabit stiv2k_, ok, so if you do something like `if (next(tokens) == "/*"):` then the token will be dropped on the floor entirely if it's not /*
|
||
2019-07-09 15:53:58 _habnabit stiv2k_, it's not really a great way to write a parser
|
||
2019-07-09 15:54:15 --> dude-x (~dude-x@pool-173-70-106-3.nwrknj.fios.verizon.net) has joined #python
|
||
2019-07-09 15:54:33 stiv2k_ Wooble: it's ASAP2 formatted file
|
||
2019-07-09 15:55:03 _habnabit stiv2k_, first result: https://github.com/christoph2/pyA2L
|
||
2019-07-09 15:55:07 tourjin unicode is not defined ... if isinstance(s, unicode): unicode is not a internal keyword?
|
||
2019-07-09 15:55:22 Wooble tourjin: again, that's a python 2 thing.
|
||
2019-07-09 15:55:28 stiv2k_ _habnabit: i'm already using pyA2L to read the file but does not support writing changes back, as far as i can tell
|
||
2019-07-09 15:55:36 Wooble tourjin: if you're trying to run python 2 code, use python 2.
|
||
2019-07-09 15:55:41 tourjin ha...ok thanks
|
||
2019-07-09 15:55:44 _habnabit stiv2k_, i see
|
||
2019-07-09 15:56:13 stiv2k_ im just trying to find a value in the file and change it to another value........ should be able to do it
|
||
2019-07-09 15:56:28 <-- Zachary_DuBois (~Zachary_D@yukimorikawa.zacharydubois.net) has quit (Ping timeout: 264 seconds)
|
||
2019-07-09 15:57:18 <-- Xiti (~Xiti-@unaffiliated/xiti) has quit (Quit: Xiti)
|
||
2019-07-09 15:57:23 --> asdfgh (~asdfgh@net-2-35-224-158.cust.vodafonedsl.it) has joined #python
|
||
2019-07-09 15:57:55 --> Zachary_DuBois (~Zachary_D@yukimorikawa.zacharydubois.net) has joined #python
|
||
2019-07-09 15:58:14 --> scoobertron (~tom@149.22.2.226) has joined #python
|
||
2019-07-09 15:58:21 <-- aakarsh (agopi@nat/redhat/x-aidjgmppioyzhbvs) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 15:58:43 TML stiv2k_: sed -e 's@FOO@BAR@' ? :)
|
||
2019-07-09 16:00:19 <-- mikez (mikez@pronk/mikey) has quit (Quit: <3)
|
||
2019-07-09 16:00:25 <-- miskatonic (~user@2a02:810d:9c80:2823:200:ff:fe00:1f) has quit (Remote host closed the connection)
|
||
2019-07-09 16:00:28 --> bashfulshell (uid190567@gateway/web/irccloud.com/x-sxhxvbozottvfang) has joined #python
|
||
2019-07-09 16:00:43 --> RickDeckard (~tgburrin@108.60.152.194) has joined #python
|
||
2019-07-09 16:00:52 <-- micisuta (~quassel@2.27.246.229) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 16:01:21 <-- borkr (~borkr@static243-215-65.mimer.net) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 16:01:58 <-- tdy3 (~tdy@unaffiliated/tdy) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 16:02:07 <-- jim (~jim@about/linux/staff/jim) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 16:02:21 --> isokee (~isokee@unaffiliated/isokee) has joined #python
|
||
2019-07-09 16:02:26 stiv2k_ TML: well the actual part im replacing is a few tokens after the 'foo' which i need to search for if that makes sense :)
|
||
2019-07-09 16:02:33 <-- folkrav (~folkrav@mtl.cossette.com) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 16:02:35 -- im0nde_ is now known as im0nde
|
||
2019-07-09 16:02:49 --> Newami (~Newami@ip174-68-64-138.sd.sd.cox.net) has joined #python
|
||
2019-07-09 16:02:55 TML I was kidding anyway :)
|
||
2019-07-09 16:03:11 --> mat001_ (~mat001@198.151.206.196) has joined #python
|
||
2019-07-09 16:04:02 kapsh mat001, putting executable things directly in the module scope is generally bad, they will run on every import. Caller importing your module would not expect that change his setting or output something. Scrictly speaking, basicconfig in your case won't change anything when root logger has handlers. But rule is rule.
|
||
2019-07-09 16:04:09 --> Xiti (~Xiti-@unaffiliated/xiti) has joined #python
|
||
2019-07-09 16:04:28 kapsh So put your logging initialisation in your main function, that will do.
|
||
2019-07-09 16:04:49 --> tdy3 (~tdy@unaffiliated/tdy) has joined #python
|
||
2019-07-09 16:05:01 <-- cdown (~cdown@199.201.66.0) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 16:05:03 --> fphilipe (~phil@81.6.34.65) has joined #python
|
||
2019-07-09 16:05:16 <-- foist (foist@gateway/vpn/nordvpn/foist) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 16:05:42 <-- Diggsey (uid120933@gateway/web/irccloud.com/x-eptbiruxkdqpqbxr) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-09 16:05:42 --> qlixed (~qlixed@190.172.215.85) has joined #python
|
||
2019-07-09 16:06:11 --> cdown (~cdown@89.32.122.5) has joined #python
|
||
2019-07-09 16:06:18 <-- mat001 (~mat001@198.151.206.196) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 16:07:32 <-- justanotheruser (justanothe@gateway/vpn/nordvpn/justanotheruser) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 16:09:51 <-- fphilipe (~phil@81.6.34.65) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 16:10:16 <-- im0nde- (~im0nde@2a0a-a546-a090-0-ba27-ebff-fe20-c671.ipv6dyn.netcologne.de) has quit (Ping timeout: 264 seconds)
|
||
2019-07-09 16:10:30 --> sla3k (~aman@unaffiliated/sla3k) has joined #python
|
||
2019-07-09 16:10:35 --> im0nde_ (~im0nde@2a0a-a546-ce10-0-ba27-ebff-fe20-c671.ipv6dyn.netcologne.de) has joined #python
|
||
2019-07-09 16:10:47 --> im0nde- (~im0nde@xdsl-89-0-184-31.nc.de) has joined #python
|
||
2019-07-09 16:10:58 --> dtux (~dmtucker@2601:646:c401:5751:75d6:9250:540f:c9d2) has joined #python
|
||
2019-07-09 16:11:03 <-- ssueepprer (~superdupe@107-141-125-214.lightspeed.hstntx.sbcglobal.net) has quit (Quit: Leaving)
|
||
2019-07-09 16:11:38 <-- im0nde (~im0nde@2a0a-a546-a090-0-2ad2-44ff-fe00-9395.ipv6dyn.netcologne.de) has quit (Ping timeout: 252 seconds)
|
||
2019-07-09 16:13:09 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 2.4)
|
||
2019-07-09 16:13:44 --> wildlander (~wildlande@unaffiliated/wildlander) has joined #python
|
||
2019-07-09 16:14:28 <-- bluesmonk (~diego@118.red-83-47-209.dynamicip.rima-tde.net) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 16:14:41 <-- npmccallum (npmccallum@nat/redhat/x-doqkjjgxkspkqrit) has quit (Quit: npmccallum)
|
||
2019-07-09 16:14:41 <-- Ariakenom (~Ariakenom@h-158-174-187-253.NA.cust.bahnhof.se) has quit (Quit: Leaving)
|
||
2019-07-09 16:14:41 --> jim (~jim@about/linux/staff/jim) has joined #python
|
||
2019-07-09 16:14:53 --> himcesjf_ (~cesjf@unaffiliated/himcesjf) has joined #python
|
||
2019-07-09 16:15:11 <-- isokee (~isokee@unaffiliated/isokee) has quit (Quit: WeeChat 2.3)
|
||
2019-07-09 16:15:18 <-- aslicedbanjo (~aslicedba@host86-160-16-7.range86-160.btcentralplus.com) has quit (Quit: Leaving.)
|
||
2019-07-09 16:15:18 <-- dtux (~dmtucker@2601:646:c401:5751:75d6:9250:540f:c9d2) has quit (Ping timeout: 252 seconds)
|
||
2019-07-09 16:15:33 --> fofy (~fofy@host-37-191-221-173.lynet.no) has joined #python
|
||
2019-07-09 16:15:34 <-- fofy (~fofy@host-37-191-221-173.lynet.no) has quit (Client Quit)
|
||
2019-07-09 16:15:38 --> Onionnion (uid114144@gateway/web/irccloud.com/x-nqgtshqxhcilntuy) has joined #python
|
||
2019-07-09 16:15:55 <-- him-cesjf (~cesjf@unaffiliated/himcesjf) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 16:17:41 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Remote host closed the connection)
|
||
2019-07-09 16:17:48 <-- Jackneill (~Jackneill@unaffiliated/jackneill) has quit (Remote host closed the connection)
|
||
2019-07-09 16:18:12 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python
|
||
2019-07-09 16:19:03 Onionnion Have a SQLAlchemy question if that's appropriate in here
|
||
2019-07-09 16:19:20 Onionnion Still figuring out how to use it, but does it build out the schemas and stuff if they don't already exist?
|
||
2019-07-09 16:19:36 Onionnion or do they need to be in there already
|
||
2019-07-09 16:19:48 --> cyp3d_ (~n0b0dy@unaffiliated/cyp3d) has joined #python
|
||
2019-07-09 16:19:55 Onionnion in the database*, like if it's other than SQLite
|
||
2019-07-09 16:20:02 altendky neoncontrails: you could add a markup for a functionality revision of the function and bump that when you do more than a refactor or bugfix. i kind of like the idea of tests though.
|
||
2019-07-09 16:20:02 <-- wafflehunter (~wafflehun@HSI-KBW-046-005-019-014.hsi8.kabel-badenwuerttemberg.de) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 16:20:03 <-- saml (~saml@unaffiliated/saml) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 16:20:06 --> garvin13 (~garvin13@rrcs-162-155-193-109.central.biz.rr.com) has joined #python
|
||
2019-07-09 16:20:07 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: vuoto)
|
||
2019-07-09 16:20:13 <-- cyp3d (~n0b0dy@unaffiliated/cyp3d) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 16:20:22 --> bongfrog_ (~bongfrog@c-98-245-70-205.hsd1.co.comcast.net) has joined #python
|
||
2019-07-09 16:20:36 <-- bongfrog (~bongfrog@c-98-245-70-205.hsd1.co.comcast.net) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 16:20:36 <-- tedski (~tedski@13.78.178.117) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 16:20:59 -- im0nde- is now known as im0nde
|
||
2019-07-09 16:21:25 --> tedski (~tedski@13.78.178.117) has joined #python
|
||
2019-07-09 16:21:35 <-- AbleBacon (~AbleBacon@unaffiliated/ablebacon) has quit (Quit: Leaving)
|
||
2019-07-09 16:21:47 <-- sgt_chuckles (~adempus@static-71-105-222-50.nycmny.fios.verizon.net) has quit (Quit: Leaving)
|
||
2019-07-09 16:22:41 <-- Lucas_Gray (~Wryhder@41.190.31.76) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 16:23:00 <-- jason_irl (~jason_irl@23-228-142-151.mci.googlefiber.net) has quit (Quit: Leaving)
|
||
2019-07-09 16:23:00 <-- nanobist (~luke@96-41-211-38.dhcp.elbg.wa.charter.com) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 16:23:28 --> afox (~afox@unaffiliated/afox) has joined #python
|
||
2019-07-09 16:24:36 <-- mojisun (~weechat@gateway/tor-sasl/mojisun) has quit (Ping timeout: 260 seconds)
|
||
2019-07-09 16:24:52 --> mintograde (~mintograd@47.201.169.32) has joined #python
|
||
2019-07-09 16:25:17 <-- csotelo (~csotelo@132.191.2.244) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 16:25:24 <-- discovered (~discovere@unaffiliated/discovered) has quit (Quit: Leaving)
|
||
2019-07-09 16:27:28 <-- L72g5sSq (~L72g5sSq@72.34.112.154) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 16:27:29 <-- jay-m (~jay-m@129.0.205.174) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 16:27:42 --> bomb-on (~bomb-on@139-142-17-89.fiber.hringdu.is) has joined #python
|
||
2019-07-09 16:27:49 <-- jlf (~jlf@pdpc/supporter/active/jlf) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 16:28:24 <-- scoobertron (~tom@149.22.2.226) has quit (Quit: leaving)
|
||
2019-07-09 16:28:39 <-- nixjdm (~nixjdm@50-248-224-169-static.hfc.comcastbusiness.net) has quit (Quit: Leaving)
|
||
2019-07-09 16:28:49 --> ConsoleFx (~ConsoleFx@unaffiliated/consolefx) has joined #python
|
||
2019-07-09 16:28:53 --> libertyprime (~libertypr@101.98.42.91) has joined #python
|
||
2019-07-09 16:29:08 <-- garvin13 (~garvin13@rrcs-162-155-193-109.central.biz.rr.com) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 16:30:16 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Remote host closed the connection)
|
||
2019-07-09 16:30:24 <-- mat001_ (~mat001@198.151.206.196) has quit (Remote host closed the connection)
|
||
2019-07-09 16:30:49 --> aakarsh (~agopi@cpe-2606-A000-1127-8623-0-0-0-418.dyn6.twc.com) has joined #python
|
||
2019-07-09 16:30:53 <-- TommyC (~TommyC@unaffiliated/sepulchralbloom) has quit (Ping timeout: 268 seconds)
|
||
2019-07-09 16:30:58 --> mat001 (~mat001@198.151.206.196) has joined #python
|
||
2019-07-09 16:31:06 <-- Trashlord (~trash@wikipedia/Sentient-Planet) has quit (Quit: leaving)
|
||
2019-07-09 16:31:20 <-- roxfan (roxfan@14.119-66-87.adsl-dyn.isp.belgacom.be) has quit (Ping timeout: 258 seconds)
|
||
2019-07-09 16:31:26 --> roxfan2 (roxfan@14.119-66-87.adsl-dyn.isp.belgacom.be) has joined #python
|
||
2019-07-09 16:32:03 --> mducharme (uid303982@gateway/web/irccloud.com/x-ugvcajetzbuqrkjm) has joined #python
|
||
2019-07-09 16:32:11 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python
|
||
2019-07-09 16:33:37 --> Anticom (~Anticom@ip-178-202-98-139.hsi09.unitymediagroup.de) has joined #python
|
||
2019-07-09 16:33:38 <-- RickDeckard (~tgburrin@108.60.152.194) has quit (Quit: Leaving...)
|
||
2019-07-09 16:34:50 <-- dastier (~dastier@37.214.81.74) has quit (Quit: Leaving)
|
||
2019-07-09 16:35:08 <-- heyitsrama (~heyitsram@eduroam-169-233-193-245.ucsc.edu) has quit (Remote host closed the connection)
|
||
2019-07-09 16:35:42 --> rosmarus (~rosmarus@gateway/tor-sasl/rosmarus) has joined #python
|
||
2019-07-09 16:35:49 <-- roxfan2 (roxfan@14.119-66-87.adsl-dyn.isp.belgacom.be) has quit (Remote host closed the connection)
|
||
2019-07-09 16:35:59 --> amazoniantoad (~amazon@pool-173-66-11-123.washdc.fios.verizon.net) has joined #python
|
||
2019-07-09 16:35:59 --> Hexeratops (~spartacus@xplr-208-114-128-10.xplornet.com) has joined #python
|
||
2019-07-09 16:36:38 amazoniantoad I'm trying to post data to login into quora using urllib and currently this is the code I have written: https://pastebin.com/smkSJRM5 but I'm getting an error that you can't concat a string and bytes
|
||
2019-07-09 16:36:39 infobob https://bpaste.net/show/CqZQ (repasted for amazoniantoad)
|
||
2019-07-09 16:36:52 amazoniantoad Can someone help me figure out how to post data using urllib?
|
||
2019-07-09 16:36:56 <-- vidarr (~vidr@unaffiliated/vidr) has quit (Quit: leaving)
|
||
2019-07-09 16:37:16 <-- Hexeratops (~spartacus@xplr-208-114-128-10.xplornet.com) has quit (Client Quit)
|
||
2019-07-09 16:37:41 --> newbiepython1 (84bc0017@132.188.0.23) has joined #python
|
||
2019-07-09 16:38:10 FunkyBob amazoniantoad: and the traceback? [I'd prefer you used something good, like dpaste.de, not pastebin.com
|
||
2019-07-09 16:38:22 --> roxfan (roxfan@14.119-66-87.adsl-dyn.isp.belgacom.be) has joined #python
|
||
2019-07-09 16:38:26 tos9 amazoniantoad: Use requests, urllib is not worth the hassle generally.
|
||
2019-07-09 16:38:31 newbiepython1 can someone help me how I can optimize or also clean my code and make it compact? https://pastebin.com/dzQB4Khb
|
||
2019-07-09 16:38:31 infobob https://bpaste.net/show/kTaH (repasted for newbiepython1)
|
||
2019-07-09 16:38:54 <-- bigjazzsound (~bigjazzso@38.104.183.170) has quit (Ping timeout: 268 seconds)
|
||
2019-07-09 16:39:07 <-- gat0r (~gat0r@96.70.0.178) has quit (Quit: This computer has gone to sleep)
|
||
2019-07-09 16:39:36 --> MenschZwoNull (~MenschZwo@2a03:2260:200c:400:34e0:8124:f37b:5a12) has joined #python
|
||
2019-07-09 16:39:38 --> zeka (~Zeka@178-223-50-179.dynamic.isp.telekom.rs) has joined #python
|
||
2019-07-09 16:39:41 <-- zahlman` (~zahlman@toroon4432w-lp130-07-76-70-105-28.dsl.bell.ca) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 16:39:49 <-- anthepro (~staljin@unaffiliated/anthepro) has quit (Remote host closed the connection)
|
||
2019-07-09 16:39:58 kapsh Onionnion, search for CreateSchema in sqlalchemy docs. Also I know people use some neat schema migration managers which keep track for models versions, like alembic (saw this used in a couple of flask projects).
|
||
2019-07-09 16:40:08 newbiepython1 can someone please help me
|
||
2019-07-09 16:40:28 <-- mithrison (461f686e@sngvon3902w-lp140-04-70-31-104-110.dsl.bell.ca) has quit (Remote host closed the connection)
|
||
2019-07-09 16:40:45 Onionnion Yup I just found flask_migrate which I think I'll use, thanks
|
||
2019-07-09 16:41:25 <-- JordiGH (jordi@octave/developer/JordiGH) has quit (Ping timeout: 250 seconds)
|
||
2019-07-09 16:41:27 <-- mathlover2 (~mathlover@cpe-66-66-101-206.rochester.res.rr.com) has quit (Quit: Leaving)
|
||
2019-07-09 16:41:36 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection)
|
||
2019-07-09 16:41:39 --> indistylo (~aruns_@106.51.25.10) has joined #python
|
||
2019-07-09 16:41:58 --> urodna (~urodna@unaffiliated/urodna) has joined #python
|
||
2019-07-09 16:42:12 <-- Icedream (~icedream@unaffiliated/icedream2k9) has quit (Quit: A lol made me boom.)
|
||
2019-07-09 16:43:47 --> mojisun (~weechat@gateway/tor-sasl/mojisun) has joined #python
|
||
2019-07-09 16:43:50 kapsh newbiepython1, your formatting is mostly fine. I'd say up to 90% fine and you can use automated tools to reach other 10%: black, isort, etc.
|
||
2019-07-09 16:43:57 --> TommyC (~TommyC@unaffiliated/sepulchralbloom) has joined #python
|
||
2019-07-09 16:44:35 --> joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has joined #python
|
||
2019-07-09 16:44:52 --> bigjazzsound (~bigjazzso@65.198.228.68) has joined #python
|
||
2019-07-09 16:45:04 <-- paul__ (~Rboreal_F@rcb-fwall-00-users.pmacs.upenn.edu) has quit (Ping timeout: 268 seconds)
|
||
2019-07-09 16:45:13 newbiepython1 kapsh , for _process_partition can I reduce the code or optimize it ?
|
||
2019-07-09 16:45:22 --> garvin13 (~garvin13@rrcs-162-155-193-109.central.biz.rr.com) has joined #python
|
||
2019-07-09 16:45:30 _habnabit newbiepython1, what does 'optimize' mean to you?
|
||
2019-07-09 16:45:51 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python
|
||
2019-07-09 16:45:54 newbiepython1 optimize as in not only more efficient but if I can make it more compact and fewer lines of code
|
||
2019-07-09 16:46:09 <-- indistylo (~aruns_@106.51.25.10) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 16:46:17 _habnabit newbiepython1, well.. those are very different concerns. you can't do both at the same time
|
||
2019-07-09 16:46:26 <-- tourjin (~jiny@58.140.209.195) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 16:46:33 amazoniantoad tos9, can you help me determine if my code actually logged me in? https://pastebin.com/AqXZ9TCA
|
||
2019-07-09 16:46:34 infobob https://bpaste.net/show/O89F (repasted for amazoniantoad)
|
||
2019-07-09 16:46:37 _habnabit newbiepython1, is this too many lines?
|
||
2019-07-09 16:46:41 --> zuckonit (~zuckonit@engg-3.engg.uregina.ca) has joined #python
|
||
2019-07-09 16:47:01 newbiepython1 _habnabit , do you think I can reduce number of lines in code or make it more compact?
|
||
2019-07-09 16:47:11 --> patientplatypus (~patientpl@ool-45779824.dyn.optonline.net) has joined #python
|
||
2019-07-09 16:47:19 _habnabit newbiepython1, is this too many lines?
|
||
2019-07-09 16:47:28 <-- joocain2 (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 260 seconds)
|
||
2019-07-09 16:47:56 <-- snatcher (~user@gateway/tor-sasl/snatcher) has quit (Ping timeout: 260 seconds)
|
||
2019-07-09 16:48:05 newbiepython1 yes
|
||
2019-07-09 16:48:28 <-- yht (~yht@115.178.203.73) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 16:48:32 _habnabit newbiepython1, ok. how are you measuring that? how will you know when there's few enough lines?
|
||
2019-07-09 16:48:43 <-- DammitJim (~DammitJim@173.227.148.6) has quit (Quit: Leaving)
|
||
2019-07-09 16:48:49 newbiepython1 ok leave it thanks for the help
|
||
2019-07-09 16:48:50 john2x missed opportunity to name isort as "impsort"
|
||
2019-07-09 16:49:19 kapsh newbiepython1, line count will be shorter if you collapse some statemetns making them more pythonic. raw_dt = row[1] etc. can be replaced to unpacking: raw_dt, tokens, *_ = row
|
||
2019-07-09 16:49:38 <-- stranac (~stranac@78-3-96-213.adsl.net.t-com.hr) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 16:50:14 kapsh And don't use % formatting, it will shoot your leg on tuples.
|
||
2019-07-09 16:50:25 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 16:50:27 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Ping timeout: 245 seconds)
|
||
2019-07-09 16:50:46 zuckonit lol
|
||
2019-07-09 16:51:00 <-- war9407 (war@2600:4040:4001:1e00::f7aa) has quit (Remote host closed the connection)
|
||
2019-07-09 16:51:10 nedbat john2x: nice
|
||
2019-07-09 16:51:20 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python
|
||
2019-07-09 16:51:53 <-- MenschZwoNull (~MenschZwo@2a03:2260:200c:400:34e0:8124:f37b:5a12) has quit (Remote host closed the connection)
|
||
2019-07-09 16:52:19 <-- MmeQuignon (~matthieu@150.39.22.93.rev.sfr.net) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 16:53:41 disi why is there no property for my logs? https://gist.github.com/tucked/155cbe534a09a9be214131320b806ef9
|
||
2019-07-09 16:53:48 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python
|
||
2019-07-09 16:54:13 --> MenschZwoNull (~MenschZwo@2a03:2260:200c:400:cc5c:f604:ff0f:15d8) has joined #python
|
||
2019-07-09 16:54:16 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Remote host closed the connection)
|
||
2019-07-09 16:54:26 <-- MenschZwoNull (~MenschZwo@2a03:2260:200c:400:cc5c:f604:ff0f:15d8) has quit (Remote host closed the connection)
|
||
2019-07-09 16:54:32 --> MmeQuignon (~matthieu@22.151.22.93.rev.sfr.net) has joined #python
|
||
2019-07-09 16:54:54 mat001 kapsh: thx. I don't really use the __main__ function. I have a cli.py module where the program starts. That's where I put the logger (well, I do have a main() function, but that's not __main__). So my basic config logger is at the top of the module. U saying I should create the __main__ function or leave the logger at the top of the module?. See here https://bpaste.net/show/6aue
|
||
2019-07-09 16:54:58 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python
|
||
2019-07-09 16:55:52 --> bongobrown_ (~bongobrow@2600:1700:e770:8b90:8f1:b7f6:98b2:5070) has joined #python
|
||
2019-07-09 16:56:09 --> mat001_ (~mat001@198.151.206.196) has joined #python
|
||
2019-07-09 16:56:18 <-- soxhlet (~soxhlet@i59F4B354.versanet.de) has quit (Quit: Ping timeout (120 seconds))
|
||
2019-07-09 16:56:37 kapsh mat001, I meant to put logging configuratoin exactly into main() that you have.
|
||
2019-07-09 16:58:13 --> MenschZwoNull (~MenschZwo@2a03:2260:200c:400:5047:4297:23a9:4c5a) has joined #python
|
||
2019-07-09 16:58:45 --> AbleBacon (~AbleBacon@unaffiliated/ablebacon) has joined #python
|
||
2019-07-09 16:58:57 --> soxhlet (~soxhlet@89.244.179.84) has joined #python
|
||
2019-07-09 16:59:07 <-- MenschZwoNull (~MenschZwo@2a03:2260:200c:400:5047:4297:23a9:4c5a) has quit (Remote host closed the connection)
|
||
2019-07-09 16:59:16 <-- rippa (~rippa@ppp-vpdn-37.1.85.157.yarnet.ru) has quit (Quit: {#`%${%&`+'${`%&NO CARRIER)
|
||
2019-07-09 16:59:22 kapsh mat001, this way you will always have desired logging when running your script (as I get it, cli:main is registered in entry_points).
|
||
2019-07-09 16:59:44 <-- mat001 (~mat001@198.151.206.196) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 16:59:58 <-- gaylordFocker (~gaylordFo@165.225.38.124) has quit (Quit: Leaving)
|
||
2019-07-09 17:00:01 <-- schne1der (~schneider@unaffiliated/schneider) has quit (Ping timeout: 248 seconds)
|
||
2019-07-09 17:00:50 kapsh john2x, wow this name is free on pypi. Forkers gonna fork.
|
||
2019-07-09 17:01:06 --> zahlman` (~zahlman@toroon4432w-lp130-07-76-70-105-28.dsl.bell.ca) has joined #python
|
||
2019-07-09 17:01:27 --> MenschZwoNull (~MenschZwo@2a03:2260:200c:400:6458:d2e3:3206:2a23) has joined #python
|
||
2019-07-09 17:01:40 --> aidanh_ (~aidanh@unaffiliated/aidanh) has joined #python
|
||
2019-07-09 17:01:57 --> L72g5sSq (~L72g5sSq@72.34.112.154) has joined #python
|
||
2019-07-09 17:02:21 jonfen i have a python application in docker, and i am trying to figure out the best dev workflow for debugging it. the application has multiple containers in a docker stack. can someone suggest a working tutorial for attaching and debugging a running container?
|
||
2019-07-09 17:02:32 jonfen or is there a better way?
|
||
2019-07-09 17:02:57 <-- cinux (~cinux@92.116.221.14) has quit (Ping timeout: 268 seconds)
|
||
2019-07-09 17:02:57 <-- aidanh (~aidanh@unaffiliated/aidanh) has quit (Ping timeout: 268 seconds)
|
||
2019-07-09 17:02:58 -- aidanh_ is now known as aidanh
|
||
2019-07-09 17:03:09 <-- winston_ (~winston_@ip4d14f9c6.dynamic.kabel-deutschland.de) has quit (Quit: Leaving)
|
||
2019-07-09 17:03:12 jonfen using vscode
|
||
2019-07-09 17:03:17 --> renlo (~lhoward@4.14.106.6) has joined #python
|
||
2019-07-09 17:03:26 <-- Guest37834 (~fidasx@ppp-94-66-221-110.home.otenet.gr) has quit (Remote host closed the connection)
|
||
2019-07-09 17:03:35 --> saml (~saml@unaffiliated/saml) has joined #python
|
||
2019-07-09 17:03:52 <-- fuze (uid76888@gateway/web/irccloud.com/x-firnqeqvamdjsoih) has quit (Quit: Connection closed for inactivity)
|
||
2019-07-09 17:04:47 --> jsownz (~jsownz@gateway/tor-sasl/jsownz) has joined #python
|
||
2019-07-09 17:06:31 <-- zeka (~Zeka@178-223-50-179.dynamic.isp.telekom.rs) has quit (Quit: Leaving)
|
||
2019-07-09 17:06:42 <-- L72g5sSq (~L72g5sSq@72.34.112.154) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 17:07:04 <-- Singmyr (~Singmyr@c83-253-123-62.bredband.comhem.se) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
|
||
2019-07-09 17:07:35 <-- semeion (~semeion@unaffiliated/semeion) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 17:08:05 amazoniantoad FunkyBob, Do you know anything about posting data? Currently I'm trying to post data to the server that has the following requirements https://dpaste.de/xTrm And I came up with the following solution https://bpaste.net/show/O89F
|
||
2019-07-09 17:08:25 <-- gumol (~gumol@ip47-32-173-82.adsl2.static.versatel.nl) has quit (Remote host closed the connection)
|
||
2019-07-09 17:08:32 <-- garvin13 (~garvin13@rrcs-162-155-193-109.central.biz.rr.com) has quit (Remote host closed the connection)
|
||
2019-07-09 17:09:07 <-- twobitsprite (~isaac@8.42.18.10) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 17:09:13 --> garvin13 (~garvin13@rrcs-162-155-193-105.central.biz.rr.com) has joined #python
|
||
2019-07-09 17:09:16 <-- Lorduncan (~Thunderbi@134.red-79-158-206.dynamicip.rima-tde.net) has quit (Quit: Lorduncan)
|
||
2019-07-09 17:09:43 FunkyBob amazoniantoad: sure, but usually I use requests... did yo uever paste the traceback for your str / bytes conflict?
|
||
2019-07-09 17:10:04 amazoniantoad FunkyBob, that's no longer an issue. Also using requests now
|
||
2019-07-09 17:10:14 --> codebrainz (~codebrain@S010634bdfa9ee795.vc.shawcable.net) has joined #python
|
||
2019-07-09 17:10:21 <-- CookieM (~tomek@afbg121.neoplus.adsl.tpnet.pl) has quit (Quit: Leaving)
|
||
2019-07-09 17:10:35 --> carc1n0gen (~carc1n0ge@CPE64777db324c3-CM64777db324c0.cpe.net.fido.ca) has joined #python
|
||
2019-07-09 17:11:14 <-- Durbley (~Durbley@c-73-53-243-19.hsd1.fl.comcast.net) has quit (Read error: Connection reset by peer)
|
||
2019-07-09 17:11:44 <-- mat001_ (~mat001@198.151.206.196) has quit (Remote host closed the connection)
|
||
2019-07-09 17:11:50 zuckonit for some reason im getting a unknown syntax (<unknown>) with pylent
|
||
2019-07-09 17:12:21 --> mat001 (~mat001@198.151.206.196) has joined #python
|
||
2019-07-09 17:12:22 zuckonit with the line print("Found file", os.path.join(root, file)):
|
||
2019-07-09 17:12:45 <-- bzdocha (~bzdocha__@bband-dyn92.178-40-213.t-com.sk) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 17:13:16 mat001 kapsh: thx. What are entry_points?
|
||
2019-07-09 17:13:46 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python
|
||
2019-07-09 17:13:52 bjs zuckonit: is there really a colon on the end of that line? what happens when you run it in Python itself?
|
||
2019-07-09 17:14:11 zuckonit i will try that
|
||
2019-07-09 17:14:37 bjs zuckonit: because probably pylint(?) is telling you unknown syntax because it's just not valid syntax and you'll find that out if you tried to actually run it
|
||
2019-07-09 17:14:40 mat001 kapsh: yes, I checked, cli.py is registered in entry_points in setup.py
|
||
2019-07-09 17:15:34 <-- plexigras (plexigras@gateway/vpn/privateinternetaccess/plexigras) has quit (Ping timeout: 272 seconds)
|
||
2019-07-09 17:15:59 zuckonit yeah removing the : fixed it bjs
|
||
2019-07-09 17:16:50 <-- sydbarret (~sydbarret@unaffiliated/sydbarret) has quit (Quit: Going offline, see ya! (www.adiirc.com))
|
||
2019-07-09 17:17:00 --> semeion (~semeion@unaffiliated/semeion) has joined #python
|
||
2019-07-09 17:17:39 --> mirth (~scott@72-48-250-221.dyn.grandenetworks.net) has joined #python
|
||
2019-07-09 17:18:26 <-- n1` (~root@ip-78-45-15-249.net.upcbroadband.cz) has quit (Ping timeout: 244 seconds)
|
||
2019-07-09 17:19:07 --> war9407 (war@2600:4040:4001:1e00::f7aa) has joined #python
|
||
2019-07-09 17:19:59 jayjo is it considered best practice to use a blacklist/whitelist when using JWT tokens for authorization?
|
||
2019-07-09 17:20:26 <-- pvtpetey (~pvtpetey@174.253.199.146.dyn.plus.net) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
|
||
2019-07-09 17:21:02 --> L72g5sSq (~L72g5sSq@72.34.112.154) has joined #python
|
||
2019-07-09 17:21:43 <-- Avaris (~Avaris@avar.is) has quit (Ping timeout: 246 seconds)
|
||
2019-07-09 17:22:26 --> Avaris (~Avaris@avar.is) has joined #python
|
||
2019-07-09 17:23:16 --> nomic (~nomic4@host86-184-200-83.range86-184.btcentralplus.com) has joined #python
|
||
2019-07-09 17:24:16 <-- Zachary_DuBois (~Zachary_D@yukimorikawa.zacharydubois.net) has quit (Ping timeout: 252 seconds)
|
||
2019-07-09 17:24:22 --> The-Croupier (~The-Croup@unaffiliated/thecroupier/x-363548) has joined #python
|
||
2019-07-09 17:24:27 FunkyBob jayjo: erm.. no?
|
||
2019-07-09 17:24:49 FunkyBob a large part of the appeal of a JWT is it can be validated in isolation... so a whitelist doesn't make sense
|