2021-05-12 22:21:13 --> wymillerlinux (~wyatt@096-042-164-072.res.spectrum.com) has joined #python 2021-05-12 22:21:13 -- Topic for #python is "Anything about Python is on-topic. Don't paste, use https://bpaste.net/+python | Be nice. The Python CoC applies: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops are at #python-ops | #python-fr #python.de #python-uk #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu" 2021-05-12 22:21:13 -- Topic set by nedbat (~nedbat@python/psf/nedbat) on Wed, 19 Aug 2020 16:18:59 2021-05-12 22:21:13 -- Channel #python: 1597 nicks (0 ops, 0 voices, 1597 normals) 2021-05-12 22:21:15 --> lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has joined #python 2021-05-12 22:21:17 -- Channel created on Sun, 26 Nov 2006 01:42:41 2021-05-12 22:21:39 ammar2 SnoopJ: marshal does support None objects theoretically, we were just trying to avoid it for some reason I don't recall https://discuss.python.org/t/pep-657-include-fine-grained-error-locations-in-tracebacks/8629/16?u=ammaraskar 2021-05-12 22:21:59 ammar2 so the idea would be to just make the column info array None when it's disabled 2021-05-12 22:22:00 <-- ayr-ton (~jeffry@unaffiliated/ayr-ton) has quit (Quit: EOF) 2021-05-12 22:22:08 --> Henry151 (~bishop@151.80.44.70) has joined #python 2021-05-12 22:22:23 --> court_jester (~jeffry@unaffiliated/ayr-ton) has joined #python 2021-05-12 22:22:58 <-- ewdwasright (~ewdwasrig@108.210.81.181) has quit (Quit: Leaving) 2021-05-12 22:23:45 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-12 22:24:09 SnoopJ I like those ^^^ quite a lot! 2021-05-12 22:24:23 <-- TroyMacLure79 (~TroyMacLu@63.127-180-91.adsl-dyn.isp.belgacom.be) has quit (Read error: Connection reset by peer) 2021-05-12 22:24:49 blackleitus https://stackoverflow.com/questions/67513173/how-can-i-fix-reverse-command-managment-between-client-server 2021-05-12 22:25:38 <-- leduyquang753 (~leduyquan@171.224.179.3) has quit (Ping timeout: 246 seconds) 2021-05-12 22:25:42 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-12 22:25:52 <-- lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has quit (Remote host closed the connection) 2021-05-12 22:26:09 --> FinnElija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-12 22:26:09 -- finn_elija is now known as Guest9973 2021-05-12 22:26:09 -- FinnElija is now known as finn_elija 2021-05-12 22:26:15 --> lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has joined #python 2021-05-12 22:26:49 SnoopJ oh, I *very* much like that it can tell you where the failure started in an expr like `d[a][b][c]` 2021-05-12 22:27:01 sartan Yeah, that's very nice 2021-05-12 22:27:03 <-- contingo (~textual@213.205.200.36) has quit (Quit: My supercomputing cluster has gone to sleep. ZZZzzz…) 2021-05-12 22:27:34 <-- tm (~sinnlos@unaffiliated/tm) has quit (Ping timeout: 252 seconds) 2021-05-12 22:27:39 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-12 22:27:43 --> leduyquang753 (~leduyquan@171.224.179.3) has joined #python 2021-05-12 22:27:51 sartan Wonder how something split over multiple lines would look 2021-05-12 22:28:10 stealth_ SnoopJ, you talking about 3.10 traceback improvements? 2021-05-12 22:28:12 sartan foo(a,b,c['z']['x'] \ ['y']... 2021-05-12 22:28:28 sartan stealth_: yeah that was the pep i was asking about 2021-05-12 22:28:30 ammar2 sartan: it'll just be ^^^^^^^ up to the end of the line in that case 2021-05-12 22:28:44 ammar2 sartan: because the traceback machinery doesn't print multiple lines ): 2021-05-12 22:29:07 <-- morgandark (~averydark@32.214.191.135) has quit (Quit: Leaving) 2021-05-12 22:29:23 sartan Yeah, I've got lots of #pylint:disable=ling-too-long simply so the tracebacks are readable in some places 2021-05-12 22:29:33 <-- Guest9973 (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Ping timeout: 240 seconds) 2021-05-12 22:29:37 stealth_ sartan, this is what i am talking about https://docs.python.org/3.10/whatsnew/3.10.html#better-error-messages 2021-05-12 22:29:58 SnoopJ stealth_, no, we are discussing PEP 657, which has Python-Version 3.11 2021-05-12 22:29:59 sartan yeah, isn't that PEP-657 that implements those error messages? 2021-05-12 22:30:06 sartan Or is that a different release? 2021-05-12 22:30:12 SnoopJ this is a draft 2021-05-12 22:30:13 ammar2 nah the 3.10 improvements are separate 2021-05-12 22:30:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-12 22:30:16 ammar2 and already in 2021-05-12 22:30:24 SnoopJ but it looks like there's a pretty good implementation already :) 2021-05-12 22:30:31 ammar2 this PEP is yet to be accepted though we already have a proof-of-concept 2021-05-12 22:30:43 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-12 22:30:51 <-- lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has quit (Remote host closed the connection) 2021-05-12 22:31:16 --> lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has joined #python 2021-05-12 22:31:26 stealth_ i for one welcome the new changes in 3.10+ traceback has been a pain so (at times) so far. 2021-05-12 22:31:58 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 252 seconds) 2021-05-12 22:32:04 <-- computeiro (~Wender@189.37.64.70) has quit (Quit: Leaving) 2021-05-12 22:32:46 <-- blackleitus (~blackleit@189.195.192.244) has quit (Ping timeout: 240 seconds) 2021-05-12 22:33:27 stealth_ ammar2, do you know off hand about the speed of pattern matching? you at one point said it would be slower then using if statements. 2021-05-12 22:33:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-12 22:33:53 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Remote host closed the connection) 2021-05-12 22:33:57 ammar2 uhh I don't recall saying that and sorry, I'm not sure about its performance 2021-05-12 22:34:30 stealth_ ammar2, its cool, maybe it was year or so ago :) 2021-05-12 22:35:16 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 252 seconds) 2021-05-12 22:35:52 <-- lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has quit (Remote host closed the connection) 2021-05-12 22:36:15 --> lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has joined #python 2021-05-12 22:36:45 --> Spinifera (~Spinifera@staff-wireless-204.eduroam.utas.edu.au) has joined #python 2021-05-12 22:37:07 <-- tin4iii (~tin4i@2600:1700:a5e0:35e0:2592:ca67:af7a:c1af) has quit (Ping timeout: 250 seconds) 2021-05-12 22:37:38 --> blackleitus (~blackleit@189.195.192.244) has joined #python 2021-05-12 22:37:41 <-- eht (~eht@unaffiliated/eht) has quit (Read error: Connection reset by peer) 2021-05-12 22:38:12 --> stree (~stree@68.36.8.116) has joined #python 2021-05-12 22:38:22 lmt hi, can anyone recommend any open source projects showcasing clean, idiomatic, modern, high quality Python code? 2021-05-12 22:38:50 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-12 22:39:58 lmt it can be your own project as long as you believe that description applies :P 2021-05-12 22:40:43 stealth_ lmt, everyone code is high quality code to them as they understand it better! 2021-05-12 22:40:51 <-- lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has quit (Remote host closed the connection) 2021-05-12 22:41:03 --> gpanders (~gpanders@c-73-26-133-58.hsd1.nm.comcast.net) has joined #python 2021-05-12 22:41:17 --> lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has joined #python 2021-05-12 22:41:25 blackleitus what am I doing wrong here? https://stackoverflow.com/questions/67513173/how-can-i-fix-reverse-command-managment-between-client-server?noredirect=1#comment119331948_67513173 2021-05-12 22:41:44 blackleitus it should controller gives command to client , and not client to server 2021-05-12 22:42:13 stealth_ blackleitus, you reinventing ssh? 2021-05-12 22:42:44 blackleitus just for learning , and how socketserver works 2021-05-12 22:43:12 <-- plutoniix (~q@node-uom.pool-125-24.dynamic.totinternet.net) has quit (Quit: Leaving) 2021-05-12 22:43:21 InPhase stealth_: As a good rule of thumb, regardless of how experienced you are, if you can't understand why at least half of the code you write is crap, then you're probably part of the quality problem. 2021-05-12 22:43:22 stealth_ blackleitus, better to use stuff like asyncio, trio, ... socketserver is outdate 2021-05-12 22:43:25 blackleitus +stealth_, and yeah. I need to simulate ssh or nc feature in python 2021-05-12 22:44:22 blackleitus sure, but this time socketserver. how can I reverse the commands? 2021-05-12 22:44:25 InPhase stealth_: That self-critique process is essential for progress. 2021-05-12 22:44:37 <-- nbao (~nbao@187.20.162.127) has quit (Quit: leaving) 2021-05-12 22:44:57 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-12 22:45:37 <-- vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has quit (Quit: vxvshnuj) 2021-05-12 22:45:38 <-- matsaman (~matsaman@unaffiliated/matsaman) has quit (Quit: leaving) 2021-05-12 22:45:52 <-- lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has quit (Remote host closed the connection) 2021-05-12 22:45:56 <-- nanobist (~nanobist@unaffiliated/nanobist) has quit (Ping timeout: 260 seconds) 2021-05-12 22:46:13 stealth_ InPhase, well that's when experience comes in play, you improve as you learn more/better way of doing things. 2021-05-12 22:46:15 --> lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has joined #python 2021-05-12 22:48:52 --> tm (~sinnlos@unaffiliated/tm) has joined #python 2021-05-12 22:49:23 stealth_ blackleitus, o, why do you have `os.popen` in there 2021-05-12 22:50:46 blackleitus for the command management 2021-05-12 22:50:51 <-- lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has quit (Remote host closed the connection) 2021-05-12 22:51:15 --> lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has joined #python 2021-05-12 22:53:23 <-- Agrius (~smeger1@c-69-180-77-174.hsd1.fl.comcast.net) has left #python ("Leaving") 2021-05-12 22:53:25 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-12 22:55:53 <-- lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has quit (Remote host closed the connection) 2021-05-12 22:56:14 --> lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has joined #python 2021-05-12 22:56:51 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-12 22:57:49 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Quit: Connection closed) 2021-05-12 23:00:11 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-12 23:00:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-12 23:01:41 <-- thomasross (~thomasros@dyn-pppoe-142-51-230-12.vianet.ca) has quit (Ping timeout: 260 seconds) 2021-05-12 23:02:09 SnoopJ stealth_, the bytecode emitted for a match looks pretty reasonable to me, but I'm not sure this is any indicator of performance. It looks pretty much like what I'd expect for an equivalent tree of if/elif, though. 2021-05-12 23:03:51 stealth_ SnoopJ, if that's the case, that cool. 2021-05-12 23:04:04 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-12 23:04:36 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 260 seconds) 2021-05-12 23:05:13 <-- cer-0 (~cer-0@189.228.159.74) has quit (Ping timeout: 240 seconds) 2021-05-12 23:05:34 stealth_ SnoopJ, isn't the whole point using match/cache in C to improve speed vs if/elif 2021-05-12 23:05:40 SnoopJ no 2021-05-12 23:07:13 SnoopJ stealth_, the point is to let you write programs with semantics that are nice to express that way, for example: https://bpaste.net/HENQ 2021-05-12 23:07:30 SnoopJ (oops, forgot to finish the module docstring) 2021-05-12 23:08:50 --> ralof_ (~ralof@dynamic-077-004-121-042.77.4.pool.telefonica.de) has joined #python 2021-05-12 23:09:08 stealth_ SnoopJ, well thats what is being implemented as in python. i was pretty sure in C they do consider it to be faster then if 2021-05-12 23:09:23 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-12 23:09:43 SnoopJ stealth_, C doesn't have pattern matching 2021-05-12 23:09:45 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-12 23:10:01 SnoopJ (they are not switch statements) 2021-05-12 23:10:09 stealth_ SnoopJ, ya i meant basic switch case 2021-05-12 23:10:53 <-- ezakimak (~ezakimak@c-174-52-132-123.hsd1.ut.comcast.net) has quit (Quit: ezakimak) 2021-05-12 23:11:46 <-- ralof (~ralof@dynamic-077-004-121-042.77.4.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-12 23:12:45 --> cer-0 (~cer-0@189.228.159.74) has joined #python 2021-05-12 23:12:49 deltab it depends on specifics like the processor architecture and the number of cases 2021-05-12 23:13:49 deltab a compiler can output a series of conditional branches or conditional other instructions, in some architectures, or a jump table 2021-05-12 23:14:33 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-12 23:14:37 --> Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has joined #python 2021-05-12 23:15:11 deltab in simpler compilers those would correspond to if and switch, but a smarter compiler can choose whichever implementation works best, regardless of whether you use switch or if or ? : 2021-05-12 23:15:31 <-- yuesbeez (uid458354@gateway/web/irccloud.com/x-qczloeykvmoasdxf) has quit (Quit: Connection closed for inactivity) 2021-05-12 23:15:41 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Ping timeout: 240 seconds) 2021-05-12 23:16:02 stealth_ that makes sense 2021-05-12 23:16:31 <-- def_jam (~eblip@unaffiliated/eblip) has quit (Ping timeout: 252 seconds) 2021-05-12 23:17:29 --> buntspecht (~buntspech@p5dd9db43.dip0.t-ipconnect.de) has joined #python 2021-05-12 23:17:32 <-- tacomaster (4c5560c7@cpe-76-85-96-199.tx.res.rr.com) has quit (Quit: Connection closed) 2021-05-12 23:18:31 <-- Aaron (~aaron@ubuntu/member/aaron) has quit (Quit: Leaving) 2021-05-12 23:18:36 buntspecht hi, i want to identify "keyword clusters" from a text. i learned that kmeans clustering might be a good starting point. i think its a pretty common task. are there any good libraries that i can build on without implementing this algo myself? 2021-05-12 23:19:11 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 260 seconds) 2021-05-12 23:19:36 <-- fb_ (~freebench@92.253.251.226) has quit (Ping timeout: 252 seconds) 2021-05-12 23:20:26 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-12 23:20:58 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-12 23:21:02 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-12 23:22:02 <-- braj (~textual@159.203.88.148) has quit (Quit: braj) 2021-05-12 23:22:25 SnoopJ stealth_, but again: pattern matching is *much* more expressive than a switch. You can't express something like `case Point(x, y) if x < y**2:` easily in a C switch, you'd have to run the test (and any others you want to branch on) and store the results in a bitmask or something. 2021-05-12 23:23:45 <-- Mechanismus (~LabMonkey@2602:306:cf62:e270:bddd:d81d:73a9:9cd0) has quit (Quit: Leaving) 2021-05-12 23:24:24 --> Masterphi (~Masterphi@unaffiliated/masterphi) has joined #python 2021-05-12 23:24:40 <-- siwica (~user@p200300f617079b0008433b86e09a952b.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-12 23:25:04 <-- emerent (~quassel@p200300cd57102494ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 276 seconds) 2021-05-12 23:25:35 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-12 23:25:36 sartan isn't there some sort of compiler optimization available for branch prediction on multiple if/then/else vs switch? 2021-05-12 23:25:57 sartan which is why it's so prevalant in c 2021-05-12 23:25:58 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-12 23:26:10 sartan it's syntaxical convienence is just a benefit 2021-05-12 23:26:13 sartan its* 2021-05-12 23:26:17 --> emerent (~quassel@p200300cd5710244dba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-12 23:26:21 sartan An extra benefit that is ^_^ 2021-05-12 23:26:39 stealth_ SnoopJ, my concern is, if it switch my code from using `if ... elif` to using `switch .. match` all of a sudden, i don't want lose speed, even if its using bitmask 2021-05-12 23:27:06 sartan switch in c is faster than if else 2021-05-12 23:27:39 leduyquang753 Talking about this reminds me about YanDev... 2021-05-12 23:27:41 parabolize I think the major push for pattern matching in high level languages is compile time type checks 2021-05-12 23:27:51 SnoopJ sartan, I think of it like an inverted goto: `switch(val){ case foo: whatever(); break; case bar: whatever(); break }` can be turned into "test `val` and jump to the right spot" 2021-05-12 23:28:42 Hash Hello the friends of python 2021-05-12 23:28:45 Hash https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py 2021-05-12 23:28:47 sartan when i think of pattern matching and branch optimization, there's always some sort of backreference that needs to happen; eg, some future match that negates the finding of previous matches 2021-05-12 23:28:54 sartan so it cannot be predicted 2021-05-12 23:29:00 Hash What do you make of this code here? 2021-05-12 23:29:05 --> gothedistance (~gothedist@2601:240:d700:e6b0:2d09:6ca7:b76f:c8f4) has joined #python 2021-05-12 23:29:09 Hash Please don't yell at me. 2021-05-12 23:30:07 SnoopJ it's basically a DSL for describing arbitrary checks: the pattern matcher goes through the cases until it finds a hit, and that is a very arbitrary amount of code 2021-05-12 23:30:28 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-12 23:31:00 stealth_ this person in ##C said "int10h ... one other thing: i'd be careful calling a switch a "match." Python has structural pattern matching coming out in a future version, and it has already confused a lot of people because syntactically, it kind of looks like a C-style switch statement, but in actuality, it works more like OCaml-style pattern matching, and those two things work totally differently! so just to avoid confusion in 2021-05-12 23:31:00 stealth_ this new confusing" 2021-05-12 23:31:23 Hash Is this a joke? 2021-05-12 23:31:24 ammar2 yup that's literally what SnoopJ said earilier 2021-05-12 23:31:35 Hash I don't... I'm not... why would someone take the time to code that? 2021-05-12 23:31:43 Hash Is this for real? 2021-05-12 23:31:44 --> def_jam (~eblip@unaffiliated/eblip) has joined #python 2021-05-12 23:31:52 Hash Or did I take too many mushrooms again. 2021-05-12 23:32:04 ammar2 Hash: read the README 2021-05-12 23:33:06 SnoopJ It's kind of an homage, I guess 2021-05-12 23:33:17 Hash Oh poor guy. 2021-05-12 23:33:21 Hash I feel bad for him. 2021-05-12 23:33:38 --> w0x12ef (~textual@125.33.91.118) has joined #python 2021-05-12 23:33:39 Hash I mean. The original student guy I mean in class who did the all nighter. 2021-05-12 23:33:49 <-- w0x12ef (~textual@125.33.91.118) has quit (Remote host closed the connection) 2021-05-12 23:33:54 Hash I dunno. Maybe I just feel bad for everyone all the time 2021-05-12 23:34:04 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-12 23:34:14 <-- average (uid473595@gateway/web/irccloud.com/x-zwuhgrijvanfrdyu) has quit (Quit: Connection closed for inactivity) 2021-05-12 23:34:27 Hash Poor guy. He thought this is how you do it. I don't even know why I feel bad for him. 2021-05-12 23:34:45 SnoopJ They clearly understand state machines, and that's something! 2021-05-12 23:35:11 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:496e:7e74:901b:a0cf) has quit (Ping timeout: 260 seconds) 2021-05-12 23:35:23 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-12 23:35:40 SnoopJ stealth_, the proposal for pattern matching mentions OCaml several times as a direct influence on its syntax, yes 2021-05-12 23:35:47 Hash Ok thanks dudes. 2021-05-12 23:35:49 Hash o/ 2021-05-12 23:36:29 stealth_ SnoopJ, i would have to read up on it. 2021-05-12 23:37:48 SnoopJ stealth_, PEP 636 is a pretty good tutorial: https://www.python.org/dev/peps/pep-0636/ 2021-05-12 23:39:07 sartan Hash: LOL just looked at that 2021-05-12 23:39:23 --> Ashburry (~Ashburry@184.69.89.188) has joined #python 2021-05-12 23:39:41 --> ezakimak (~ezakimak@c-174-52-132-123.hsd1.ut.comcast.net) has joined #python 2021-05-12 23:39:49 sartan TODO: add another 15 million lines to process numbers > 100k 2021-05-12 23:40:07 sartan the professor says developers are paid by lines of code 2021-05-12 23:41:18 yitz I've yet to see that happen 2021-05-12 23:41:34 yitz Though I did get a "badge" for deleting many lines of code. 2021-05-12 23:42:04 --> purplex88 (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-12 23:42:46 Ashburry My app is much faster now that I repaired the colour stripping code. I posted the code on StackOverflow. It was difficult but I strip the codes off perfectly with no errors even in strange formatting sequence 2021-05-12 23:43:11 <-- n000g (~NRG@unaffiliated/n000g) has quit (Ping timeout: 240 seconds) 2021-05-12 23:43:51 mike18 hi how can i measure the time and print in this format? start = timeit.default_timer() ... end = timeit.default_timer() logging.info("Duration: (hh:mm:ss.ms)".format(end - start)) 2021-05-12 23:44:42 Ashburry I think you need to use ctime 2021-05-12 23:44:58 mike18 i read people suggest timeit 2021-05-12 23:45:12 Ashburry you can use timeit but you also need ctime I think 2021-05-12 23:45:26 --> n000g (~NRG@unaffiliated/n000g) has joined #python 2021-05-12 23:47:27 Ashburry in mIRC it would be %start = $ctime, end = $ctime then $duration(%start - %end) 2021-05-12 23:47:33 Ashburry or something like that 2021-05-12 23:47:57 Ashburry %end - %start 2021-05-12 23:48:38 --> leloupnoir (~iskandar@141.255.153.84) has joined #python 2021-05-12 23:49:04 mike18 i need timeit and ctime - both? 2021-05-12 23:49:05 Ashburry maybe you just need a duration function 2021-05-12 23:49:45 --> n001g (~NRG@unaffiliated/n000g) has joined #python 2021-05-12 23:49:55 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Ping timeout: 250 seconds) 2021-05-12 23:50:04 <-- n000g (~NRG@unaffiliated/n000g) has quit (Ping timeout: 252 seconds) 2021-05-12 23:50:16 -- n001g is now known as n000g 2021-05-12 23:50:16 <-- Ashburry (~Ashburry@184.69.89.188) has quit (Remote host closed the connection) 2021-05-12 23:51:33 <-- leloupnoir (~iskandar@141.255.153.84) has left #python 2021-05-12 23:52:14 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-12 23:52:42 --> Ashburry (~Ashburry@184.69.89.188) has joined #python 2021-05-12 23:52:59 Ashburry that bug in my proxy has been crashing me for some time now. I finally just fixed it 2021-05-12 23:53:05 <-- Masterphi (~Masterphi@unaffiliated/masterphi) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-12 23:53:09 Ashburry evertime someone changed their nick my app crashed 2021-05-12 23:53:59 Ashburry it would be nice if I had some code coverage to find flaws like that one. concatinating a string to a list is easy to find for 3rd party tools I would think. 2021-05-12 23:55:01 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-12 23:55:48 --> Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has joined #python 2021-05-12 23:57:00 <-- horatiohb (~horatiohb@165.227.100.221) has quit (Ping timeout: 252 seconds) 2021-05-12 23:57:05 --> ffe4 (~ffe4@i577BCEB0.versanet.de) has joined #python 2021-05-12 23:58:43 --> RavinduL (~Ravindu@n110-22-125-76.sun3.vic.optusnet.com.au) has joined #python 2021-05-12 23:59:18 <-- bomb-on_ (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-12 23:59:19 <-- raxor2k (~raxor2k@7.221.181.62.in-addr.dgcsystems.net) has quit (Remote host closed the connection) 2021-05-12 23:59:45 RavinduL Hiya! What does a single asterisk mean as a function parameter in Python? e.g.: https://github.com/ros2/rclpy/blob/master/rclpy/rclpy/node.py#L1364 2021-05-13 00:00:08 yitz It forces everything after it to be a kwarg IIRC 2021-05-13 00:00:13 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 00:00:32 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-13 00:00:35 yitz https://www.python.org/dev/peps/pep-3102/ https://www.python.org/dev/peps/pep-0570/ 2021-05-13 00:00:49 SnoopJ RavinduL, what yitz said 2021-05-13 00:01:26 RavinduL wow thanks! I've gotta read up on this stuff 2021-05-13 00:01:33 yitz Erm. Second line only 2021-05-13 00:01:34 stealth_ SnoopJ, ya they are nothing alike, maybe python should have came up with different syntax to lesses confusion. 2021-05-13 00:01:38 RavinduL yitz, SnoopJ, thanks ^^ 2021-05-13 00:02:42 <-- brainium (~brainium@unaffiliated/brainium) has quit (Quit: Konversation terminated!) 2021-05-13 00:02:59 <-- RavinduL (~Ravindu@n110-22-125-76.sun3.vic.optusnet.com.au) has quit (Client Quit) 2021-05-13 00:03:29 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 00:03:53 SnoopJ stealth_, I have no idea what you mean 2021-05-13 00:04:31 <-- [SLB] (~slabua@unaffiliated/slabua) has quit (Ping timeout: 245 seconds) 2021-05-13 00:04:35 stealth_ SnoopJ, match switch 2021-05-13 00:05:01 SnoopJ stealth_, ...are already different keywords? 2021-05-13 00:05:03 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-13 00:05:19 stealth_ SnoopJ, i mean `match case` which is a lot like `switch case` thus ppl will assume they are same! 2021-05-13 00:05:52 stealth_ also that pep has error can that be corrected? 2021-05-13 00:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-13 00:06:25 SnoopJ https://www.python.org/dev/peps/pep-0001/#reporting-pep-bugs-or-submitting-pep-updates 2021-05-13 00:06:32 SnoopJ What's the error? 2021-05-13 00:06:40 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-13 00:06:42 --> phasetwo (~phasetwo@2601:602:8d80:4e50:496e:7e74:901b:a0cf) has joined #python 2021-05-13 00:07:08 Ashburry whats the single / mean as function argument in the docs? 2021-05-13 00:07:49 phy1729 things before it have to be positional parameters 2021-05-13 00:07:56 sartan did i just obsolete case switches? cases = { 'foo': fn_foo, 'bar': fn_bar}; cases.get(switch, lambda *args: None)() 2021-05-13 00:08:00 sartan I think i'm trolling, disregard 2021-05-13 00:08:24 phy1729 Ashburry: https://www.python.org/dev/peps/pep-0457/ 2021-05-13 00:08:27 --> [SLB] (~slabua@unaffiliated/slabua) has joined #python 2021-05-13 00:08:32 stealth_ SnoopJ, o, nm, my linter doesn't know of the new syntax yet, so its reporting error :) 2021-05-13 00:08:47 Ashburry phy1729, thank you 2021-05-13 00:09:38 <-- gothedistance (~gothedist@2601:240:d700:e6b0:2d09:6ca7:b76f:c8f4) has quit 2021-05-13 00:10:01 <-- Techcable (~Techcable@168.235.93.147) has quit (Quit: ZNC - https://znc.in) 2021-05-13 00:10:03 <-- sesser (~sesser@107.13.245.224) has quit (Ping timeout: 268 seconds) 2021-05-13 00:10:43 --> Techcable (~Techcable@168.235.93.147) has joined #python 2021-05-13 00:11:35 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:496e:7e74:901b:a0cf) has quit (Ping timeout: 260 seconds) 2021-05-13 00:11:50 --> ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has joined #python 2021-05-13 00:11:56 <-- shailangsa (~shailangs@host86-186-196-136.range86-186.btcentralplus.com) has quit 2021-05-13 00:12:17 stealth_ sartan, that was the reasoning why python didn't need `switch case` cause of how dict key (being hashed) worked. 2021-05-13 00:14:25 sartan interesting 2021-05-13 00:14:45 <-- korg815 (~korg815@unaffiliated/korg815) has quit (Quit: WeeChat 2.8) 2021-05-13 00:15:38 stealth_ sartan, the new feature being added is `match case` not `switch case` so something totally different. (though it was confusing me as well) 2021-05-13 00:15:59 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-13 00:16:07 jim hi, a few weeks ago, I tried to find out what @(someObjectHere) means, and google just doesnt know... what's this syntax connected with, and where is it documented? 2021-05-13 00:16:11 sartan maybe i need to pay more attention to the stuff chat is referring to because now i'm confused what those differences would even be 2021-05-13 00:16:14 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 246 seconds) 2021-05-13 00:16:40 stealth_ sartan, https://www.python.org/dev/peps/pep-0636/ 2021-05-13 00:16:44 KirkMcDonald jim: It's a decorator. 2021-05-13 00:17:39 jim ok, rather than ask what decorators do, where are they documented so I could read up? 2021-05-13 00:17:45 sartan stealth_: wow, that looks quite foreign to how i think case statements would be 2021-05-13 00:17:54 yitz Google "python decorator" 2021-05-13 00:17:55 stealth_ sartan, confusion come from other language having `switch case` so when python came out with `match case` thought it the same thing, but its NOT :) 2021-05-13 00:18:09 sartan yeah this is very different 2021-05-13 00:18:09 jim yitz, ok 2021-05-13 00:18:50 sartan its like sort of a mix of the walrus operator plus flow control 2021-05-13 00:18:58 stealth_ sartan, yes, but i can totally see myself using `match something.split(): case 'one': .. case 'two': ...` 2021-05-13 00:19:12 sartan right! 2021-05-13 00:19:39 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-13 00:20:07 --> shailangsa (~shailangs@host86-186-196-136.range86-186.btcentralplus.com) has joined #python 2021-05-13 00:20:09 jim found a RealPython page, titled 'Primer on Python Decorators', that any good? 2021-05-13 00:20:51 Ashburry I wouldn't mind having a 'goto newline' then having an ':newline' to go to 2021-05-13 00:20:52 yitz Yes 2021-05-13 00:20:52 <-- hexa- (~hexa-@juno.lossy.network) has quit (Read error: Connection reset by peer) 2021-05-13 00:21:07 <-- snowkidimd (~snowkidim@2001:44c8:4228:ed0a:38fa:25a6:c51f:1598) has quit (Ping timeout: 250 seconds) 2021-05-13 00:21:22 jim ok, I'll check it out; thanks 2021-05-13 00:21:31 Ashburry goto is not very pythonic though 2021-05-13 00:22:06 --> hexa- (~hexa-@juno.lossy.network) has joined #python 2021-05-13 00:22:15 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-13 00:23:04 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-13 00:23:39 --> Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has joined #python 2021-05-13 00:26:40 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Read error: Connection reset by peer) 2021-05-13 00:27:28 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 252 seconds) 2021-05-13 00:27:30 SnoopJ jim, seems pretty sane, although it takes a while to get to decorators themselves. 2021-05-13 00:29:35 <-- hexa- (~hexa-@juno.lossy.network) has quit (Quit: WeeChat 2.9) 2021-05-13 00:30:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 00:30:23 --> hexa- (~hexa-@juno.lossy.network) has joined #python 2021-05-13 00:30:41 sartan i think the way to learn decorators is try to implement one, with and without arguments, as they can behave pretty weirdly. Wrap some functions around som elog handlers or something and you'll start to sort of figure out how they work 2021-05-13 00:31:06 sartan I found when I first started getting into python, just reading about them was really hard to adapt and understand when they would be helpful or needed 2021-05-13 00:31:10 jim SnoopJ, thanks for the comment; this one happens to have a video, I've had success with those 2021-05-13 00:31:32 --> ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has joined #python 2021-05-13 00:31:49 SnoopJ jim, I've generally liked the articles on that site, and I just purchased the hardcopy book they're advertising, which I've been eagerly anticipating :) 2021-05-13 00:32:36 --> Wulf (~Wulf@unaffiliated/wulf) has joined #python 2021-05-13 00:33:38 <-- beatleboy07 (~beatleboy@c-24-17-50-149.hsd1.wa.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-13 00:33:38 stealth_ i guess you can't do `cache 'one':` you have to `case 'one',:` or `catch ['one']:` that is a bla 2021-05-13 00:33:56 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 00:34:08 stealth_ jim, https://www.pythonsheets.com/notes/python-func.html?highlight=decorator#decorator 2021-05-13 00:34:13 Ashburry Jim: I have four videos from PEARSON_PYTHON_SURVIVAL_SKILLS_CODE_LIKE_A_PRO_LIVELESSONS I can zip and send you if you would accept? 2021-05-13 00:36:26 Evidlo is there a better way to handle data from 3 streams at once? I've found that stream.setblocking(0) and catching the TimeoutError is too slow 2021-05-13 00:36:38 Ashburry You would have to have forwarding on your router because I can't do that on me end 2021-05-13 00:36:42 yitz async? 2021-05-13 00:37:13 Evidlo maybe it would be faster to try to check how many bytes are available, rather than wait for a TimeoutError? 2021-05-13 00:37:42 Ashburry Evidlo, try trio 2021-05-13 00:38:11 jim Ashburry, ok, thanks... one sec 2021-05-13 00:38:26 Ashburry trio.serve_tcp(handler,port) 2021-05-13 00:38:43 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-13 00:38:45 Ashburry its async so it is fast 2021-05-13 00:38:50 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-13 00:39:32 jim Ashburry, oops, had to abort the transfer, could you start it again? 2021-05-13 00:40:02 Mrbuck Ashburry: those videos 99$ lol pycon videos cover all of them for free on youtube 2021-05-13 00:40:10 Mrbuck 99$* 2021-05-13 00:40:16 --> tsaka__ (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) has joined #python 2021-05-13 00:40:18 Mrbuck 199$* 2021-05-13 00:40:53 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 240 seconds) 2021-05-13 00:41:20 Ashburry maybe HexChat is not compatable with mIRC for dcc send 2021-05-13 00:41:45 yitz Done properly, they should both be talking the same DCC protocol 2021-05-13 00:41:53 yitz That's sorta the purpose of having a protocol 2021-05-13 00:41:55 --> phasetwo (~phasetwo@2601:602:8d80:4e50:496e:7e74:901b:a0cf) has joined #python 2021-05-13 00:41:59 <-- bruvvha (~bruvvha@unaffiliated/bruvvha) has quit (Remote host closed the connection) 2021-05-13 00:42:30 Ashburry if you have a torrent client you can download PEARSON_PYTHON_SURVIVAL_SKILLS_CODE_LIKE_A_PRO_LIVELESSONS-iLLiTERATE 2021-05-13 00:42:34 Ashburry its 11GB though 2021-05-13 00:43:14 jim I probably do... I have to be doing something wrong with this transfer 2021-05-13 00:43:18 stealth_ if you can afford it, better to support the author 2021-05-13 00:43:54 <-- tjt263 (uid149471@gateway/web/irccloud.com/x-ujmavluyzdrltkqs) has quit (Quit: Connection closed for inactivity) 2021-05-13 00:44:22 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-13 00:45:14 sartan I can't learn from videos, they feel too slow. A good rendered sphinx doc is really the most ideal way imo 2021-05-13 00:45:32 Ashburry I agree, but there is no way I can afford to pay to watch 4 videos on Decorators. The rest of the videos are very basic, alot of number wrangling with lists and sets its difficult and very basic 2021-05-13 00:46:04 stealth_ Ashburry, https://www.pythonsheets.com/notes/python-func.html?highlight=decorator#decorator 2021-05-13 00:46:18 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:496e:7e74:901b:a0cf) has quit (Ping timeout: 246 seconds) 2021-05-13 00:46:25 sartan decorator summary: 'before you enter this function, enter this function first' 2021-05-13 00:46:30 <-- d3vyL (d3vyL@host-79-46-166-92.retail.telecomitalia.it) has quit (Ping timeout: 252 seconds) 2021-05-13 00:46:41 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-13 00:47:01 Evidlo is there a cross-platform way to check the number of bytes available on a stream? 2021-05-13 00:47:38 phy1729 I thought the PEP was a nice intro to decorators https://www.python.org/dev/peps/pep-0318/ 2021-05-13 00:48:24 jim I tell ya what, let's kill this transfer for now, I have a video that wants to explain decorators (it started by looking at functions; lets see where it goes from there); if I see use for them in my code, I might ask for the address for the videos... so it's moreorless idle curiousity right now, the video should show what can be done 2021-05-13 00:48:39 Ashburry sartan: cool cheat sheet. I don't know when I would use it though atm 2021-05-13 00:49:34 sartan Ashburry: the first project that really made decorators 'click' for me was one of my first flask apps implementing user authentication, and IMO this is a good practical application of decorators https://pythonprogramming.net/decorator-wrappers-flask-tutorial-login-required/ that isn't necessarily a 'decorator tutorial' but more on 'how when and why to use one' 2021-05-13 00:50:03 --> MrFixIt (~Sam@c-73-246-215-75.hsd1.il.comcast.net) has joined #python 2021-05-13 00:50:14 sartan Maybe not that page in specific, but flask decoration is a good practical use case 2021-05-13 00:50:53 deltab jim: yeah, it's one of those features that can seem pointless until you find you have a need for them 2021-05-13 00:51:48 <-- Abbott (~Abbott@unaffiliated/abbott) has left #python ("Quit") 2021-05-13 00:52:13 jim deltab, yeah, that's been my guess, as I've done a number of things without having to use (or understand) decorators 2021-05-13 00:52:31 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-13 00:52:59 Ashburry I like Flask decorators for mapping the urls to the webpage data. 2021-05-13 00:53:24 --> ram19890 (~ram@49.205.82.36) has joined #python 2021-05-13 00:53:32 ammar2 yeah you can often make pretty neat apis with decorators 2021-05-13 00:53:38 ammar2 attrs is also a good example 2021-05-13 00:53:55 sartan @app.route(url) instructs flask to install a blueprint uri path to that resource, with the callback being the function you are decorating. You don't want to try to insert your own app.add_url_rule('/url', homepage()). You can just @app.route('/url'); def homepage(). 2021-05-13 00:55:28 --> Masterphi (~Masterphi@unaffiliated/masterphi) has joined #python 2021-05-13 00:55:31 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 252 seconds) 2021-05-13 00:55:42 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Quit: Wr4i7h) 2021-05-13 00:55:46 sartan You want to add authentication? that's even less boilerplate. just drop @login_Required, which already handles session management, authentication page redirects, session keys, crsf stuff, etc. 2021-05-13 00:55:59 --> Mechanismus (~LabMonkey@2602:306:cf62:e270:1152:c003:915c:cb45) has joined #python 2021-05-13 00:56:03 sartan The atlernative would be a bunch of functions you write yourself and call them on every function that relates to every api endpoint you have 2021-05-13 00:57:49 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-13 00:58:32 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-22-184-145-153-244.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-13 00:59:33 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 01:00:03 <-- emerent (~quassel@p200300cd5710244dba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-13 01:00:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 01:00:41 --> dvx (~dvx@185.63.97.64) has joined #python 2021-05-13 01:02:15 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-13 01:03:40 --> stranac (~stranac@195.29.239.126) has joined #python 2021-05-13 01:04:03 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 01:04:22 --> emerent (~quassel@p200300cd5710244dba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-13 01:04:49 <-- azizLIGHT (~azizLIGHT@unaffiliated/azizlight) has quit (Ping timeout: 260 seconds) 2021-05-13 01:05:10 --> PeterPines (~simon@li227-215.members.linode.com) has joined #python 2021-05-13 01:05:52 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-13 01:07:44 <-- cer-0 (~cer-0@189.228.159.74) has quit (Quit: leaving) 2021-05-13 01:08:02 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 246 seconds) 2021-05-13 01:08:13 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Quit: Leaving) 2021-05-13 01:08:22 Ashburry I notice he makes the mistake of indenting his html by opening/closing blocks. that can bite you if your not careful 2021-05-13 01:09:16 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 252 seconds) 2021-05-13 01:09:41 --> Supbo (~kenan@li227-215.members.linode.com) has joined #python 2021-05-13 01:10:40 --> h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-13 01:10:49 --> h4rd3n3D1 (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-13 01:11:00 <-- Masterphi (~Masterphi@unaffiliated/masterphi) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-13 01:11:09 <-- Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has quit (Ping timeout: 240 seconds) 2021-05-13 01:11:33 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-13 01:12:06 SnoopJ jim, you can write quite a wide variety of programs that make absolutely no use of functions as first-class objects, but the fact that functions can be passed around as data enables some very neat tricks. 2021-05-13 01:12:25 <-- thinkofher0 (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-13 01:12:40 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-13 01:12:57 --> thinkofher0 (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-13 01:13:04 <-- CodeMouse92 (~JasonMc92@unaffiliated/codemouse) has quit (Quit: Oh freddled gruntbuggly | Thy micturations are to me | As plurdled gabbleblotchits | On a lurgid bee) 2021-05-13 01:13:57 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-13 01:13:57 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-13 01:14:09 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 260 seconds) 2021-05-13 01:14:44 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Quit: %bye mirc%) 2021-05-13 01:16:01 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-13 01:16:17 SnoopJ `click` is a great example of decorators put to good use: you put all the CLI information in the decoration of a command and get the commandline arguments/options as arguments in the decorated function. 2021-05-13 01:18:30 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-13 01:20:03 <-- ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has quit (Ping timeout: 250 seconds) 2021-05-13 01:20:11 <-- Spinifera (~Spinifera@staff-wireless-204.eduroam.utas.edu.au) has quit (Ping timeout: 240 seconds) 2021-05-13 01:21:00 audiofreeze can anyone help ? https://stackoverflow.com/questions/67514220/django-formset-model-not-being-created-correctly 2021-05-13 01:21:06 jim is click a metronome? 2021-05-13 01:21:43 jim I dunno that much about django... only took the demo 2021-05-13 01:22:55 SnoopJ jim, it's a library that makes creating commandline tools pretty simple, relying heavily on decorators: https://click.palletsprojects.com/en/8.0.x/# 2021-05-13 01:23:18 blackleitus why socketserver is out of date? 2021-05-13 01:24:40 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 252 seconds) 2021-05-13 01:25:01 --> thoros (~thoros@193-154-185-59.adsl.highway.telekom.at) has joined #python 2021-05-13 01:27:55 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-13 01:28:09 --> ralof (~ralof@dynamic-077-004-121-042.77.4.pool.telefonica.de) has joined #python 2021-05-13 01:29:28 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:29:45 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:30:07 --> GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has joined #python 2021-05-13 01:30:11 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:30:11 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 01:30:18 --> Hanii (~Hanii@2a00:23c5:c587:6d00:4c32:a21d:767f:761f) has joined #python 2021-05-13 01:30:59 --> ludo (ludo@unaffiliated/ludo) has joined #python 2021-05-13 01:31:16 <-- ralof_ (~ralof@dynamic-077-004-121-042.77.4.pool.telefonica.de) has quit (Ping timeout: 252 seconds) 2021-05-13 01:31:22 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:31:48 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:32:41 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 268 seconds) 2021-05-13 01:32:57 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:33:31 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:33:48 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 01:34:24 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:35:20 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:35:37 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-13 01:36:02 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 246 seconds) 2021-05-13 01:36:15 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:36:57 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:37:26 --> bazul (bazul@46.189.189.38) has joined #python 2021-05-13 01:38:06 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:38:31 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:38:48 --> plutoniix (~q@cm-119-76-33-155.revip17.asianet.co.th) has joined #python 2021-05-13 01:39:40 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:40:12 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:40:56 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:41:03 <-- llh (~coke@unaffiliated/llh) has quit (Remote host closed the connection) 2021-05-13 01:41:21 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:41:30 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-13 01:42:11 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:42:33 --> Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has joined #python 2021-05-13 01:44:17 --> __marco (~marco@195.218.6.205) has joined #python 2021-05-13 01:44:28 --> sauvin (sauvin@about/linux/staff/sauvin) has joined #python 2021-05-13 01:44:38 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:45:24 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:45:38 --> Spinifera (~Spinifera@staff-wireless-204.eduroam.utas.edu.au) has joined #python 2021-05-13 01:45:50 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:46:34 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:46:58 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:47:40 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:48:04 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:48:48 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:48:51 <-- Supbo (~kenan@li227-215.members.linode.com) has quit (Quit: leaving) 2021-05-13 01:49:06 --> obengdako (~obengdako@197.220.169.155) has joined #python 2021-05-13 01:49:20 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:50:01 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:50:24 <-- obengdako (~obengdako@197.220.169.155) has quit (Client Quit) 2021-05-13 01:50:26 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:50:31 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 252 seconds) 2021-05-13 01:50:56 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-13 01:51:20 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Read error: Connection reset by peer) 2021-05-13 01:51:41 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:52:18 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-13 01:52:32 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:52:38 --> obengdako (~obengdako@197.220.169.155) has joined #python 2021-05-13 01:53:00 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:53:31 --> kosh (~kosh@p200300d08f15f200ccf4e16698bcba1b.dip0.t-ipconnect.de) has joined #python 2021-05-13 01:53:44 Ashburry I just made protection against mIRC exploit in my proxy server @ https://github.com/ashburry/trio_ircproxy 2021-05-13 01:53:50 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:54:02 audiofreeze can anyone help ? https://stackoverflow.com/questions/67514220/django-formset-model-not-being-created-correctly 2021-05-13 01:54:15 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:54:26 Ashburry almost 1000 lines of code 2021-05-13 01:54:35 <-- mossman93_ (~quassel@unaffiliated/mossman93) has quit (Ping timeout: 246 seconds) 2021-05-13 01:54:44 audiofreeze Ashburry, cat 2021-05-13 01:54:50 audiofreeze just, cat. 2021-05-13 01:55:00 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:55:25 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:55:28 Ashburry what is cat? 2021-05-13 01:56:07 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:56:32 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:57:38 Ashburry do you mean just netcat for a client? lol 2021-05-13 01:57:38 --> mossman93 (~quassel@unaffiliated/mossman93) has joined #python 2021-05-13 01:57:42 Ashburry what is cat?!? 2021-05-13 01:57:44 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 01:58:08 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 01:58:20 Ashburry * sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) Quit (Max SendQ exceeded) 2021-05-13 01:59:59 --> frrs (uid130725@gateway/web/irccloud.com/x-cbsqjgcqyuvubrss) has joined #python 2021-05-13 02:00:03 <-- drymer (~drymer@unaffiliated/drymer) has quit (Read error: Connection reset by peer) 2021-05-13 02:00:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 02:00:20 <-- kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has quit (Quit: leaving) 2021-05-13 02:00:44 Ashburry /stats M is pretty iteresting 2021-05-13 02:01:49 <-- obengdako (~obengdako@197.220.169.155) has quit (Read error: Connection reset by peer) 2021-05-13 02:02:35 --> obengdako (~obengdako@197.220.169.155) has joined #python 2021-05-13 02:03:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 02:06:57 <-- maggotbrain (~maggotbra@c-73-254-248-250.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-05-13 02:07:02 --> Sunny93 (~Sunny93@119.28.16.11) has joined #python 2021-05-13 02:07:20 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Remote host closed the connection) 2021-05-13 02:07:40 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 02:08:02 --> maggotbrain (~maggotbra@c-73-254-248-250.hsd1.wa.comcast.net) has joined #python 2021-05-13 02:08:23 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Max SendQ exceeded) 2021-05-13 02:08:37 <-- mike18 (~geri@71-220-52-187.mpls.qwest.net) has quit (Remote host closed the connection) 2021-05-13 02:09:06 --> sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has joined #python 2021-05-13 02:09:46 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Quit: Gone to sleep...) 2021-05-13 02:09:50 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:b23b:54f3:809e:a743) has quit (Remote host closed the connection) 2021-05-13 02:10:15 <-- ircuser-1 (~Johnny@c-24-2-38-242.hsd1.ca.comcast.net) has quit (Quit: because) 2021-05-13 02:10:41 <-- dviola (~diego@unaffiliated/dviola) has quit (Ping timeout: 240 seconds) 2021-05-13 02:11:07 --> phasetwo (~phasetwo@2601:602:8d80:4e50:496e:7e74:901b:a0cf) has joined #python 2021-05-13 02:15:10 --> wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has joined #python 2021-05-13 02:15:49 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:496e:7e74:901b:a0cf) has quit (Ping timeout: 245 seconds) 2021-05-13 02:16:05 --> dviola (~diego@unaffiliated/dviola) has joined #python 2021-05-13 02:16:12 <-- Madda (~talkur@99.253.6.51.dyn.plus.net) has quit (Ping timeout: 240 seconds) 2021-05-13 02:16:39 <-- parabolize (~paraboliz@98.43.173.221) has quit (Quit: leaving) 2021-05-13 02:16:39 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-13 02:17:31 <-- seednode (~seednode@64-131-31-104.usfamily.net) has quit (Quit: Nihil supernum.) 2021-05-13 02:18:01 <-- blackleitus (~blackleit@189.195.192.244) has quit (Ping timeout: 252 seconds) 2021-05-13 02:18:13 --> seednode (~seednode@64-131-31-104.usfamily.net) has joined #python 2021-05-13 02:19:11 --> Rum (~Rum@unaffiliated/rum) has joined #python 2021-05-13 02:19:55 <-- swa_work (~swa_work@dhcp-108-168-59-19.cable.user.start.ca) has quit (Read error: Connection reset by peer) 2021-05-13 02:21:41 --> Madda (~talkur@99.253.6.51.dyn.plus.net) has joined #python 2021-05-13 02:22:06 --> swa_work (~swa_work@dhcp-108-168-59-19.cable.user.start.ca) has joined #python 2021-05-13 02:22:53 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-13 02:23:54 --> Mulugruntz (~Mulugrunt@2400:4152:2063:3100:70ce:1d2e:79b8:30a0) has joined #python 2021-05-13 02:25:17 <-- gvsa123 (~gvsa123@d50-93-30-240.abhsia.telus.net) has quit (Quit: Leaving) 2021-05-13 02:26:36 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-13 02:26:45 <-- lazyhaha (~w33chat@gateway/tor-sasl/spamgaga) has quit (Ping timeout: 240 seconds) 2021-05-13 02:27:34 --> monteh (~monteh@dyn-192-249-131-133.nexicom.net) has joined #python 2021-05-13 02:29:10 <-- LiftLeft (~googolple@216-26-118-34.dynamic.nelson.airstreamcomm.net) has quit (Ping timeout: 252 seconds) 2021-05-13 02:30:11 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 02:31:32 <-- dviola (~diego@unaffiliated/dviola) has quit (Ping timeout: 240 seconds) 2021-05-13 02:31:47 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-13 02:32:29 <-- dez (uid92154@fedora/deSouza) has quit (Quit: Connection closed for inactivity) 2021-05-13 02:34:12 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 02:34:57 <-- Ashburry (~Ashburry@184.69.89.188) has quit (Quit: Bauderr script https://ashburry.pythonanywhere.com/) 2021-05-13 02:35:19 --> Ashburry (~Ashburry@184.69.89.188) has joined #python 2021-05-13 02:36:08 Ashburry is it possible to have a proxy server with SSL connection to mIRC and an IRC Server when mirc only supports ssl to the irc server not the proxy server? 2021-05-13 02:36:44 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-13 02:37:14 Ashburry I wrapped the socket connected to mirc in an ssl wrapper but mirc did not accept the connection but the irc server did support an ssl connection using the same technique 2021-05-13 02:38:06 yitz You could pass non-SSL traffic over an SSL-encrypted tunnel. Does mIRC use a different protocol for connecting to IRC servers and proxy servers? 2021-05-13 02:38:43 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-13 02:38:57 <-- Betal (~Betal@unaffiliated/betal) has quit (Quit: WeeChat 3.1) 2021-05-13 02:39:04 Ashburry for proxy servers its just plain text 'connect server:ip http/1.0\r\n\r\n' 2021-05-13 02:39:13 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Quit: i love you BitchX chalupa boofa ZNC - https://znc.in) 2021-05-13 02:39:14 Ashburry then it switches to ssl 2021-05-13 02:39:34 --> Catatronic (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-13 02:41:23 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has quit (Ping timeout: 260 seconds) 2021-05-13 02:41:47 --> phasetwo (~phasetwo@2601:602:8d80:4e50:849e:23b8:47ac:d0fa) has joined #python 2021-05-13 02:42:07 <-- obengdako (~obengdako@197.220.169.155) has quit (Quit: This computer has gone to sleep) 2021-05-13 02:42:17 --> azizLIGHT (~azizLIGHT@unaffiliated/azizlight) has joined #python 2021-05-13 02:43:00 <-- bigRoo (~user@131.236.54.244) has quit (Remote host closed the connection) 2021-05-13 02:43:30 --> teut (b64537cb@unaffiliated/teut) has joined #python 2021-05-13 02:44:31 <-- seds (~seds@irc.seds.nl) has quit (Read error: Connection reset by peer) 2021-05-13 02:46:17 --> seds (~seds@irc.seds.nl) has joined #python 2021-05-13 02:46:44 --> Core3917 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-13 02:47:36 --> obengdako (~obengdako@102.176.94.162) has joined #python 2021-05-13 02:50:18 audiofreeze can anyone help? https://stackoverflow.com/questions/67514220/django-formset-model-not-being-created-correctly 2021-05-13 02:50:28 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-13 02:51:10 <-- MrMobius (~MrMobius@208.58.206.154) has quit (Read error: Connection reset by peer) 2021-05-13 02:51:33 <-- Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has quit (Ping timeout: 240 seconds) 2021-05-13 02:51:43 --> dviola (~diego@unaffiliated/dviola) has joined #python 2021-05-13 02:52:00 yitz If the program doesn't talk SSL then it doesn't talk SSL *shrugs* 2021-05-13 02:52:03 <-- maggotbrain (~maggotbra@c-73-254-248-250.hsd1.wa.comcast.net) has quit (Quit: Gone to Croatan...) 2021-05-13 02:52:12 yitz That's what tunnels are for 2021-05-13 02:52:37 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-13 02:53:22 --> Thanatos (~Thanatos@102.89.3.134) has joined #python 2021-05-13 02:53:44 teut audiofreeze , have you checked if it's entering the form_valid? 2021-05-13 02:54:02 Thanatos Hello everyone 2021-05-13 02:54:19 <-- nabil (~nabil@105.99.46.98) has quit (Ping timeout: 252 seconds) 2021-05-13 02:54:57 audiofreeze teut, "it" you mean the popup_form_set data? 2021-05-13 02:55:08 <-- hemstock (~hemstock@62-0-132.netrun.cytanet.com.cy) has quit (Ping timeout: 246 seconds) 2021-05-13 02:56:07 --> ryTri (0ec90fd2@14-201-15-210.tpgi.com.au) has joined #python 2021-05-13 02:56:42 teut where is that form which receives the youtube id and other stufff? 2021-05-13 02:56:51 --> nabil (~nabil@105.101.209.50) has joined #python 2021-05-13 02:57:12 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-13 02:57:44 teut oh ok, so its a CreateView modelform 2021-05-13 02:57:53 audiofreeze yes 2021-05-13 02:58:41 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-13 02:58:55 <-- obengdako (~obengdako@102.176.94.162) has quit (Quit: This computer has gone to sleep) 2021-05-13 02:59:54 teut self.get_success_url()    where is this? 2021-05-13 03:00:11 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 03:00:29 teut I only use   redirect("name"), if I m right that function does similar thing 2021-05-13 03:01:05 audiofreeze teut, that's on the model 2021-05-13 03:01:18 audiofreeze and that part works fine 2021-05-13 03:01:18 <-- rememberYou (~user@unaffiliated/rememberyou) has quit (Read error: Connection reset by peer) 2021-05-13 03:02:04 teut that was awkward since there is already the  get_success_url in the CreateView 2021-05-13 03:02:16 teut you should overwrite that method, not the models 2021-05-13 03:02:21 teut model's 2021-05-13 03:02:21 <-- jarthur (~jarthur@2603-8080-1540-002d-b10b-0a59-c5aa-9561.res6.spectrum.com) has quit (Quit: jarthur) 2021-05-13 03:02:24 audiofreeze teut, oh, sorry, on the model it's get_absolute_url 2021-05-13 03:02:26 --> obengdako (~obengdako@102.176.94.162) has joined #python 2021-05-13 03:02:53 audiofreeze teut, the current get_success_url works fine 2021-05-13 03:02:53 <-- Psyb3rN4ut (~psybernau@147.161.13.243) has quit (Read error: Connection reset by peer) 2021-05-13 03:02:57 --> ThanatosJ (~Thanatos@102.89.3.241) has joined #python 2021-05-13 03:02:59 teut  return HttpResponseRedirect(self.get_success_url())      , instead use     redirect("name") 2021-05-13 03:03:07 teut ok 2021-05-13 03:03:31 teut have to checked if that form_valid is being entered? 2021-05-13 03:03:46 <-- ram19890 (~ram@49.205.82.36) has quit (Ping timeout: 240 seconds) 2021-05-13 03:03:50 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 03:04:04 <-- obengdako (~obengdako@102.176.94.162) has quit (Client Quit) 2021-05-13 03:04:58 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-13 03:05:01 --> obengdako (~obengdako@102.176.94.162) has joined #python 2021-05-13 03:05:03 teut it looks like you are using that Youtube id data in another  view, so you need to use cookies 2021-05-13 03:06:20 --> nabil_ (~nabil@105.101.67.76) has joined #python 2021-05-13 03:06:26 --> BakaKuna (~Thunderbi@86-89-65-191.fixed.kpn.net) has joined #python 2021-05-13 03:06:32 <-- Thanatos (~Thanatos@102.89.3.134) has quit (Ping timeout: 240 seconds) 2021-05-13 03:06:53 audiofreeze teut, i changed it to `redirect`, same result. again, nothing was wrong with get_success_url 2021-05-13 03:06:59 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-13 03:07:41 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-13 03:07:45 <-- Petrushka (~devcon@deathstar.devconproductions.org) has quit (Remote host closed the connection) 2021-05-13 03:07:51 audiofreeze teut, so youtube_id is saving but the popups are not 2021-05-13 03:08:35 audiofreeze found out from printing `print(self.object)` in `form_valid` after the `popup_form_set.instance = self.object` line 2021-05-13 03:09:01 --> Petrushka (~devcon@deathstar.devconproductions.org) has joined #python 2021-05-13 03:09:30 <-- nabil (~nabil@105.101.209.50) has quit (Ping timeout: 268 seconds) 2021-05-13 03:09:31 <-- Guest20 (~textual@192.146.154.3) has quit (Read error: Connection reset by peer) 2021-05-13 03:10:01 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 03:10:11 <-- ThanatosJ (~Thanatos@102.89.3.241) has quit (Ping timeout: 260 seconds) 2021-05-13 03:10:19 --> Thanatos (~Thanatos@102.89.3.102) has joined #python 2021-05-13 03:10:37 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 03:11:25 --> nabil__ (~nabil@105.101.80.138) has joined #python 2021-05-13 03:11:34 <-- Ashburry (~Ashburry@184.69.89.188) has quit (Remote host closed the connection) 2021-05-13 03:12:06 Thanatos I want to perform an operation similar to rolling windows in pandas. I want to get the value of an adjacent row and use it to determine the value of the current row. https://i.imgur.com/bqzgH0H.png 2021-05-13 03:12:18 --> stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has joined #python 2021-05-13 03:12:40 <-- Guest10524 (crazyed@wrongplanet/CrazyEddy) has left #python 2021-05-13 03:13:04 teut hey why your livestream_create has the Popups? 2021-05-13 03:13:14 --> mcsontos (~mcsontos@95.82.132.201) has joined #python 2021-05-13 03:13:59 audiofreeze teut, client wants popup forum on the same page as the livestream form 2021-05-13 03:14:02 <-- nabil_ (~nabil@105.101.67.76) has quit (Ping timeout: 246 seconds) 2021-05-13 03:14:08 audiofreeze form* 2021-05-13 03:14:17 teut oh wait I have made something like that before 2021-05-13 03:14:32 audiofreeze great 2021-05-13 03:14:40 teut when you redirect, your form data is lost 2021-05-13 03:15:05 audiofreeze what about form.save()? it should be saved to the database... 2021-05-13 03:15:07 teut so when you get your youtube id etc, store it in cookies 2021-05-13 03:15:15 teut that's not needed 2021-05-13 03:15:21 audiofreeze yes it is 2021-05-13 03:15:21 teut let me find that code 2021-05-13 03:15:22 --> nabil_ (~nabil@105.100.20.39) has joined #python 2021-05-13 03:15:56 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 03:16:03 teut https://docs.djangoproject.com/en/3.2/topics/http/sessions/#django.contrib.sessions.serializers.JSONSerializer 2021-05-13 03:16:21 <-- sife (~sife@goettsch.xyz) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-13 03:16:48 --> sife (~sife@goettsch.xyz) has joined #python 2021-05-13 03:16:55 --> pi- (~Ohmu@node-3um.pool-1-0.dynamic.totinternet.net) has joined #python 2021-05-13 03:16:55 --> maxxe (~maxxe@unaffiliated/maxxe) has joined #python 2021-05-13 03:16:56 teut when the form  with youtube id  is validated and  form_valid is called     , store all your data in self.request.session 2021-05-13 03:17:02 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 03:17:41 <-- nabil__ (~nabil@105.101.80.138) has quit (Ping timeout: 240 seconds) 2021-05-13 03:17:52 pi- https://stackoverflow.com/questions/67515134/process-websocket-stream-while-downloading-multiple-files-using-aiohttp <-- Can anyone advise me how I might crack this nut? 2021-05-13 03:18:37 --> Psyb3rN4ut (~psybernau@147.161.13.243) has joined #python 2021-05-13 03:18:45 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-13 03:18:49 audiofreeze teut, why wouldn't i store it in the db? 2021-05-13 03:18:58 audiofreeze thats the whole point... 2021-05-13 03:19:06 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-13 03:19:18 teut when you redirect, your  form data is lost 2021-05-13 03:19:20 <-- stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-13 03:19:30 supakeen You can store the form data before you redirect. 2021-05-13 03:19:40 teut what what I said 2021-05-13 03:19:44 teut thats 2021-05-13 03:20:31 teut and then some nasty if else statement and checking if   request.session  contains that info 2021-05-13 03:20:40 <-- predmijat (~predmijat@mail.strogopro.com) has quit (Quit: bye) 2021-05-13 03:20:43 --> hypc (~Thunderbi@113.232.132.232) has joined #python 2021-05-13 03:20:44 <-- Rum (~Rum@unaffiliated/rum) has quit (Quit: WeeChat 3.1) 2021-05-13 03:20:54 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 03:20:56 audiofreeze teut, why wouldn't i store data in the db BEFORE the redirect 2021-05-13 03:21:09 teut you can you are free to do anything 2021-05-13 03:21:12 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 03:21:32 teut ok , so you are using the db instead, alright 2021-05-13 03:21:33 <-- mat001 (~mat001@c-69-181-152-207.hsd1.ca.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-13 03:22:15 --> predmijat (~predmijat@mail.strogopro.com) has joined #python 2021-05-13 03:22:21 audiofreeze why wouldnt you use the db 2021-05-13 03:22:35 summonner you can store it in several places, session is probably the best if it's transient, memcache or redis is next best but you still need a cookie to reference, and you should never do that without enforcing cookie security otherwise user data bleeds into other users's web pages 2021-05-13 03:22:48 supakeen You also might find more people familiar with django in #django than here. 2021-05-13 03:23:03 teut ArticleFormSet = formset_factory(ArticleForm, extra=2)   where is this line in your code? 2021-05-13 03:23:32 teut formset_factory creates the  form 2021-05-13 03:23:39 supakeen It's right there teut. 2021-05-13 03:24:20 audiofreeze teut, forms.py 2021-05-13 03:24:29 audiofreeze its in the SO post 2021-05-13 03:25:12 teut oh sorry , I have always put that line in views, so didnt try to find there 2021-05-13 03:26:14 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-13 03:26:39 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Quit: Leaving) 2021-05-13 03:26:41 <-- cgfbee (~bot@oc1.itim-cj.ro) has quit (Ping timeout: 240 seconds) 2021-05-13 03:27:41 --> rgr (~rgr@ip-109-42-114-18.web.vodafone.de) has joined #python 2021-05-13 03:28:04 <-- teut (b64537cb@unaffiliated/teut) has left #python 2021-05-13 03:30:09 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-13 03:30:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 03:31:39 --> Guest10524 (crazyed@wrongplanet/CrazyEddy) has joined #python 2021-05-13 03:32:07 --> nabil__ (~nabil@105.101.230.128) has joined #python 2021-05-13 03:32:36 Thanatos Anybody had a chance to look at this yet? https://i.imgur.com/bqzgH0H.png 2021-05-13 03:33:14 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 03:33:47 --> jokoon (~jokoon@unaffiliated/jokoon) has joined #python 2021-05-13 03:33:55 jokoon anybody using pyodide here? 2021-05-13 03:34:10 <-- obengdako (~obengdako@102.176.94.162) has quit (Ping timeout: 268 seconds) 2021-05-13 03:34:19 jokoon I'm looking at their doc and readme, seems like it's not trivial to use compared to brython 2021-05-13 03:34:23 --> cgfbee (~bot@oc1.itim-cj.ro) has joined #python 2021-05-13 03:34:31 --> obengdako (~obengdako@197.220.169.155) has joined #python 2021-05-13 03:34:37 <-- nabil_ (~nabil@105.100.20.39) has quit (Ping timeout: 260 seconds) 2021-05-13 03:35:43 --> nabil (~nabil@105.101.214.253) has joined #python 2021-05-13 03:37:04 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-13 03:37:26 <-- nabil__ (~nabil@105.101.230.128) has quit (Ping timeout: 240 seconds) 2021-05-13 03:37:45 --> nabil_ (~nabil@105.100.1.131) has joined #python 2021-05-13 03:38:12 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 03:38:13 --> SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has joined #python 2021-05-13 03:38:53 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-13 03:39:28 <-- maxxe (~maxxe@unaffiliated/maxxe) has quit (Quit: brb) 2021-05-13 03:39:42 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 03:40:40 <-- nabil (~nabil@105.101.214.253) has quit (Ping timeout: 252 seconds) 2021-05-13 03:40:50 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-13 03:40:52 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 03:41:56 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 03:42:03 --> mat001 (~mat001@c-69-181-152-207.hsd1.ca.comcast.net) has joined #python 2021-05-13 03:42:57 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-13 03:44:20 amo Thanatos, what about it? 2021-05-13 03:44:27 --> ThanatosJ (~Thanatos@102.89.3.134) has joined #python 2021-05-13 03:44:52 --> average (uid473595@gateway/web/irccloud.com/x-bevkpetcctmhduxy) has joined #python 2021-05-13 03:45:29 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-13 03:45:33 --> larkfisherman (~pasko@217.75.204.126) has joined #python 2021-05-13 03:46:01 <-- Core3917 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-13 03:46:32 <-- rgr (~rgr@ip-109-42-114-18.web.vodafone.de) has quit (Ping timeout: 240 seconds) 2021-05-13 03:47:42 --> nabil__ (~nabil@105.101.101.53) has joined #python 2021-05-13 03:48:06 <-- Thanatos (~Thanatos@102.89.3.102) has quit (Ping timeout: 240 seconds) 2021-05-13 03:50:12 --> yelhamer (~yelhamer@41.96.75.109) has joined #python 2021-05-13 03:50:20 <-- obengdako (~obengdako@197.220.169.155) has quit (Quit: This computer has gone to sleep) 2021-05-13 03:50:26 <-- nabil_ (~nabil@105.100.1.131) has quit (Ping timeout: 260 seconds) 2021-05-13 03:50:44 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-13 03:50:47 --> rgr (~rgr@ip-109-42-114-18.web.vodafone.de) has joined #python 2021-05-13 03:51:03 audiofreeze can anyone help ? https://stackoverflow.com/questions/67514220/django-formset-model-not-being-created-correctly 2021-05-13 03:53:27 --> ralof_ (~ralof@dynamic-077-004-121-042.77.4.pool.telefonica.de) has joined #python 2021-05-13 03:53:42 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-13 03:54:27 --> _ADN_ (~ADN@36.red-81-44-157.dynamicip.rima-tde.net) has joined #python 2021-05-13 03:54:36 <-- _ADN_ (~ADN@36.red-81-44-157.dynamicip.rima-tde.net) has quit (Remote host closed the connection) 2021-05-13 03:54:58 --> diegov_ (diegovmatr@gateway/shell/matrix.org/x-tbfboqndxjbqphcm) has joined #python 2021-05-13 03:55:43 --> s2013 (~textual@pool-71-105-44-156.nycmny.fios.verizon.net) has joined #python 2021-05-13 03:56:58 <-- ralof (~ralof@dynamic-077-004-121-042.77.4.pool.telefonica.de) has quit (Ping timeout: 265 seconds) 2021-05-13 03:58:16 --> securethemews (~securethe@2a00:23c4:1e98:8f00::4) has joined #python 2021-05-13 03:59:06 <-- bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has quit (Quit: bilb_ono) 2021-05-13 03:59:51 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-13 04:00:17 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 04:00:56 --> contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has joined #python 2021-05-13 04:01:00 --> Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has joined #python 2021-05-13 04:01:30 <-- Mulugruntz (~Mulugrunt@2400:4152:2063:3100:70ce:1d2e:79b8:30a0) has quit (Quit: ZZZzzz…) 2021-05-13 04:03:49 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 04:03:54 --> Mulugruntz (~Mulugrunt@2400:4152:2063:3100:855b:e3e0:d439:40f1) has joined #python 2021-05-13 04:04:24 --> AlexUK (AlexUK@cpc77395-ches6-2-0-cust359.9-1.cable.virginm.net) has joined #python 2021-05-13 04:05:16 <-- ThanatosJ (~Thanatos@102.89.3.134) has quit (Ping timeout: 252 seconds) 2021-05-13 04:05:19 --> Vornicus (~Vornicus@2603-8000-5d07-7ef0-bdeb-f0eb-955d-765c.res6.spectrum.com) has joined #python 2021-05-13 04:05:21 <-- rgr (~rgr@ip-109-42-114-18.web.vodafone.de) has quit (Quit: Leaving) 2021-05-13 04:06:45 <-- contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has quit (Quit: Leaving) 2021-05-13 04:07:20 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-13 04:07:38 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-13 04:07:45 --> fflori (~fflori@mob-194-230-155-245.cgn.sunrise.net) has joined #python 2021-05-13 04:09:33 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Ping timeout: 240 seconds) 2021-05-13 04:10:55 --> nabil_ (~nabil@105.100.80.2) has joined #python 2021-05-13 04:11:29 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-13 04:12:02 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-13 04:12:31 --> Ergo (~ergo@91.238.59.144) has joined #python 2021-05-13 04:12:41 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-13 04:12:59 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-13 04:13:49 <-- nabil__ (~nabil@105.101.101.53) has quit (Ping timeout: 260 seconds) 2021-05-13 04:14:12 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-13 04:14:30 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-13 04:15:42 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-13 04:15:45 <-- lmt (uid107697@gateway/web/irccloud.com/x-srqibghdzzyzshwu) has quit (Quit: Connection closed for inactivity) 2021-05-13 04:15:59 --> nabil__ (~nabil@105.99.36.212) has joined #python 2021-05-13 04:16:00 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-13 04:16:40 --> iflema (~ian@unaffiliated/iflema) has joined #python 2021-05-13 04:17:12 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-13 04:17:37 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-13 04:17:40 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-13 04:19:01 <-- nabil_ (~nabil@105.100.80.2) has quit (Ping timeout: 260 seconds) 2021-05-13 04:19:25 <-- frrs (uid130725@gateway/web/irccloud.com/x-cbsqjgcqyuvubrss) has quit (Quit: Connection closed for inactivity) 2021-05-13 04:19:51 --> aslicedbanjo (~aslicedba@host81-157-178-150.range81-157.btcentralplus.com) has joined #python 2021-05-13 04:19:58 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-13 04:20:57 --> greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has joined #python 2021-05-13 04:21:26 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 240 seconds) 2021-05-13 04:23:35 <-- cluelessperson (~cluelessp@unaffiliated/cluelessperson) has quit (Ping timeout: 260 seconds) 2021-05-13 04:23:45 <-- greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has quit (Remote host closed the connection) 2021-05-13 04:24:46 --> glosoli (~glosoli@unaffiliated/glosoli) has joined #python 2021-05-13 04:24:56 <-- LordRyan (~ryan@hashbang/bdfl) has quit (Max SendQ exceeded) 2021-05-13 04:24:58 --> greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has joined #python 2021-05-13 04:26:25 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Ping timeout: 260 seconds) 2021-05-13 04:26:33 --> Thanatos (~Thanatos@197.210.28.251) has joined #python 2021-05-13 04:26:41 --> LordRyan (~ryan@hashbang/bdfl) has joined #python 2021-05-13 04:30:13 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 04:31:51 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 260 seconds) 2021-05-13 04:32:47 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-13 04:33:24 --> Guddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-13 04:33:30 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-13 04:33:44 --> frtnx_ (~frtnx@unaffiliated/frtnx) has joined #python 2021-05-13 04:33:50 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-13 04:34:17 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 04:34:27 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-13 04:34:58 <-- BinaryVixen899 (~BinaryVix@75.172.189.47) has quit (Ping timeout: 252 seconds) 2021-05-13 04:35:31 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 252 seconds) 2021-05-13 04:36:11 <-- Thanatos (~Thanatos@197.210.28.251) has quit (Ping timeout: 240 seconds) 2021-05-13 04:39:19 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-13 04:42:09 --> carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-13 04:42:23 --> mcope (~mcope@88.98.90.199) has joined #python 2021-05-13 04:42:29 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-13 04:42:46 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-13 04:43:42 --> cluelessperson (~cluelessp@unaffiliated/cluelessperson) has joined #python 2021-05-13 04:44:51 <-- torandu (~sean@94.10.124.37) has quit (Quit: leaving) 2021-05-13 04:45:57 <-- Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has quit (Ping timeout: 240 seconds) 2021-05-13 04:46:29 <-- Spinifera (~Spinifera@staff-wireless-204.eduroam.utas.edu.au) has quit (Read error: Connection reset by peer) 2021-05-13 04:46:31 --> krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has joined #python 2021-05-13 04:48:43 <-- dirac1 (~trantor@108.61.86.23) has quit (Quit: ZNC 1.7.5 - https://znc.in) 2021-05-13 04:48:47 <-- malSet (~malSet@osmo.ga) has quit (Quit: Quit.) 2021-05-13 04:48:50 <-- owl (~owl@104.238.130.126) has quit (Quit: owl) 2021-05-13 04:48:51 <-- Zachary_DuBois (~Zachary_D@yukimorikawa.zacharydubois.net) has quit (Quit: 平和!(HTTP/2 503 Zachary is unavailable.)) 2021-05-13 04:49:12 --> Zachary_DuBois (~Zachary_D@yukimorikawa.zacharydubois.net) has joined #python 2021-05-13 04:49:15 --> malSet (~malSet@osmo.ga) has joined #python 2021-05-13 04:49:35 --> ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has joined #python 2021-05-13 04:49:42 --> owl (~owl@104.238.130.126) has joined #python 2021-05-13 04:49:53 <-- dvx (~dvx@185.63.97.64) has quit (Read error: Connection reset by peer) 2021-05-13 04:50:00 --> dirac1 (~trantor@108.61.86.23) has joined #python 2021-05-13 04:50:12 --> dvx (~dvx@185.63.97.64) has joined #python 2021-05-13 04:50:50 --> kpiyushlucky (6aca105f@106.202.16.95) has joined #python 2021-05-13 04:51:26 kpiyushlucky how to interpret this error: 2021-05-13 04:51:27 kpiyushlucky A value is trying to be set on a copy of a slice from a DataFrame 2021-05-13 04:51:28 kpiyushlucky See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy 2021-05-13 04:51:28 kpiyushlucky   return super().drop( 2021-05-13 04:52:16 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Ping timeout: 260 seconds) 2021-05-13 04:52:31 ryTri Is there any solution that helps with PyPy not supporting newer Python syntax, like type hints? I'd like to write with them for the nice Pylance/linting help, but PyPy can't handle it. If the type hints are erased at runtime anyway, is there anything along the lines of Babel that can transpile things down to a PyPy-compatible version? 2021-05-13 04:53:06 <-- nabil__ (~nabil@105.99.36.212) has quit (Read error: Connection reset by peer) 2021-05-13 04:53:10 --> Jerrynicki (~niklas@p200300f57705190004eaeba4aabc65c4.dip0.t-ipconnect.de) has joined #python 2021-05-13 04:53:31 --> nabil__ (~nabil@105.101.5.30) has joined #python 2021-05-13 04:53:42 Wulf ryTri: type hints aren't erased at runtime. In fact they can be used to build fancy things and are then required during runtime. 2021-05-13 04:54:01 --> nubonix (uid492751@gateway/web/irccloud.com/x-nyahawclxngvljfx) has joined #python 2021-05-13 04:54:01 --> Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has joined #python 2021-05-13 04:54:06 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-13 04:54:48 nubonix alright, so im experimenting with bscscan and im trying to understand whats going on.. so id like to get the balance of an address, which I have managed to do, but it shows the number in a string, without commas, and without decimals, so its making me thing that it is not reflecting the amount of a token suchas SWAMP, but something else associated with it. bscscan also does this for a token/coin suchas BNB 2021-05-13 04:54:48 nubonix https://bpa.st/S6WA 2021-05-13 04:55:33 nubonix a BNB address [found via a random google search] is used in the example i provided above 2021-05-13 04:55:39 Wulf ryTri: and I think that pypy *does* support type hints 2021-05-13 04:56:34 --> fb_ (~freebench@92.253.251.226) has joined #python 2021-05-13 04:57:37 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 04:58:17 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 04:59:13 ryTri Wulf: ah, damn, I wasn't aware of that. I've been under the impression that it's purely a linting feature. Maybe it's that PyPy just doesn't support the newer parts of type hinting then, like `tuple[int]` without having to import the module. 2021-05-13 05:00:05 --> Core7016 (~greyblue9@2600:381:4225:3b4a:155:e4c5:8f42:3b91) has joined #python 2021-05-13 05:00:10 --> ram19890 (~ram@49.205.82.36) has joined #python 2021-05-13 05:00:11 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 05:00:16 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-13 05:00:39 --> dvx_ (~dvx@185.63.97.64) has joined #python 2021-05-13 05:00:49 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-13 05:01:09 <-- dvx (~dvx@185.63.97.64) has quit (Read error: Connection reset by peer) 2021-05-13 05:01:14 --> ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has joined #python 2021-05-13 05:02:11 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-13 05:02:12 --> Core7495 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-13 05:02:26 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Ping timeout: 252 seconds) 2021-05-13 05:02:29 <-- Core7495 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-13 05:02:41 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-13 05:03:02 <-- indigaz (~indigaz@unaffiliated/indigaz) has quit (Quit: Ping timeout (120 seconds)) 2021-05-13 05:03:06 --> RhineDevil (~RhineDevi@gateway/tor-sasl/rhinedevil) has joined #python 2021-05-13 05:03:13 <-- zampano (~zampano@unaffiliated/zampano) has quit (Quit: leaving) 2021-05-13 05:03:26 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 05:03:32 --> Core9840 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-13 05:03:42 RhineDevil How could I tell yapf to ignore the pattern `return(myvar)` ? 2021-05-13 05:03:46 --> indigaz (~indigaz@unaffiliated/indigaz) has joined #python 2021-05-13 05:04:12 --> zampano (~zampano@unaffiliated/zampano) has joined #python 2021-05-13 05:04:31 <-- Core7016 (~greyblue9@2600:381:4225:3b4a:155:e4c5:8f42:3b91) has quit (Ping timeout: 250 seconds) 2021-05-13 05:06:03 --> Thanatos (~Thanatos@197.210.28.251) has joined #python 2021-05-13 05:06:07 stealth_ RhineDevil, hmm `return` is reserved keyword 2021-05-13 05:06:44 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-13 05:07:31 RhineDevil stealth_, what do you mean? I mean when yapf formats my files, it should avoid transforming `return(myvar)` into `return (myvar)` 2021-05-13 05:10:08 stealth_ RhineDevil, `return(myvar)` looks like you are calling a function 2021-05-13 05:10:28 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-13 05:11:03 <-- Myst (~Myst@wikipedia/myst) has quit (Quit: Bye!) 2021-05-13 05:11:04 --> d3sync|2 (~d3sync@unaffiliated/d3sync) has joined #python 2021-05-13 05:11:21 RhineDevil stealth_, yeah I'm not I still want yapf to not format it 2021-05-13 05:11:29 --> ThanatosJ (~Thanatos@102.89.1.80) has joined #python 2021-05-13 05:11:31 <-- d3sync (~d3sync@unaffiliated/d3sync) has quit (Ping timeout: 260 seconds) 2021-05-13 05:12:57 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 05:13:13 --> rgr (~rgr@ip-109-42-114-18.web.vodafone.de) has joined #python 2021-05-13 05:13:28 --> Thanattt (~Thanatos@102.89.2.59) has joined #python 2021-05-13 05:13:38 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 05:13:47 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 05:14:12 <-- Thanatos (~Thanatos@197.210.28.251) has quit (Ping timeout: 240 seconds) 2021-05-13 05:14:18 --> garFF (~garff@0x3e2c86d9.mobile.telia.dk) has joined #python 2021-05-13 05:14:27 <-- ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has quit (Ping timeout: 260 seconds) 2021-05-13 05:14:36 <-- dvx_ (~dvx@185.63.97.64) has quit (Quit: dvx_) 2021-05-13 05:14:45 --> Myst (~Myst@wikipedia/myst) has joined #python 2021-05-13 05:15:58 --> Thanatos (~Thanatos@197.210.70.253) has joined #python 2021-05-13 05:15:59 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-13 05:16:08 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 05:16:21 <-- ThanatosJ (~Thanatos@102.89.1.80) has quit (Ping timeout: 260 seconds) 2021-05-13 05:16:58 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 05:17:37 --> v01d4lph4 (~v01d4lph4@122.160.65.250) has joined #python 2021-05-13 05:17:41 <-- untakenstupidnic (~user@2a01:5ec0:1002:60b6:f1b4:7732:c969:23b2) has quit (Remote host closed the connection) 2021-05-13 05:17:56 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Ping timeout: 246 seconds) 2021-05-13 05:17:56 <-- Thanattt (~Thanatos@102.89.2.59) has quit (Ping timeout: 246 seconds) 2021-05-13 05:18:07 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-vqtfaztecimcwjkl) has quit (Quit: Connection closed for inactivity) 2021-05-13 05:21:09 nedbat ryTri: PyPy is up to 3.7. "tuple[int]" is a 3.9 feature (I think) 2021-05-13 05:21:29 --> vimal (~vimal@2a02:a210:9600:600:b2bb:d4af:62bd:3295) has joined #python 2021-05-13 05:21:31 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-13 05:23:01 <-- spiri (~spiri@unaffiliated/spiri) has quit (Remote host closed the connection) 2021-05-13 05:23:21 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-13 05:24:04 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 05:24:50 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-13 05:24:56 <-- samuelbernardo (~samuelber@194.210.119.252) has quit (Ping timeout: 246 seconds) 2021-05-13 05:26:40 <-- ffe4 (~ffe4@i577BCEB0.versanet.de) has quit (Ping timeout: 252 seconds) 2021-05-13 05:27:08 --> abraxxas (~abraxxas@p5b0d9f52.dip0.t-ipconnect.de) has joined #python 2021-05-13 05:27:09 --> fuho (~Thunderbi@88.103.239.148) has joined #python 2021-05-13 05:27:15 <-- abraxxas (~abraxxas@p5b0d9f52.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-13 05:27:27 --> obengdako (~obengdako@197.220.169.155) has joined #python 2021-05-13 05:27:37 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-13 05:27:39 --> LucaTM (~LucaTM@unaffiliated/lucatm) has joined #python 2021-05-13 05:27:52 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 05:28:01 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-13 05:28:11 <-- s2013 (~textual@pool-71-105-44-156.nycmny.fios.verizon.net) has quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2021-05-13 05:28:20 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-13 05:28:27 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 05:28:39 --> errorlin (~errorlin@45.63.23.239) has joined #python 2021-05-13 05:28:50 --> stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has joined #python 2021-05-13 05:28:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-13 05:28:57 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-13 05:29:25 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 252 seconds) 2021-05-13 05:29:36 <-- errorlin (~errorlin@45.63.23.239) has quit (Client Quit) 2021-05-13 05:30:05 pi- https://stackoverflow.com/questions/67515134/process-websocket-stream-while-downloading-multiple-files-using-aiohttp <-- Can anyone help me get started on this one? 2021-05-13 05:30:28 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 05:31:00 pi- I need to somehow do asynchronous downloads while listening on a websocket stream. 2021-05-13 05:31:31 IHasFinger Hi just wondering with sqlite how to get the next row when doing this https://bpa.st/L6AQ thank you 2021-05-13 05:31:31 --> ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has joined #python 2021-05-13 05:31:41 --> samuelbernardo (~samuelber@nata01.lip.pt) has joined #python 2021-05-13 05:31:42 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-13 05:33:11 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Ping timeout: 268 seconds) 2021-05-13 05:33:48 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 268 seconds) 2021-05-13 05:33:58 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 05:34:05 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-13 05:35:08 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 05:35:55 <-- ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-13 05:35:57 stealth_ IHasFinger, according to your code, you are already getting all the rows when you do `.fetchall()` 2021-05-13 05:37:17 <-- jpmh_ (uid445439@gateway/web/irccloud.com/x-zutqyvwtdxbnfour) has quit (Quit: Connection closed for inactivity) 2021-05-13 05:37:52 --> YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has joined #python 2021-05-13 05:37:58 <-- obengdako (~obengdako@197.220.169.155) has quit (Quit: This computer has gone to sleep) 2021-05-13 05:38:17 --> d3vyL (d3vyL@host-95-233-26-187.retail.telecomitalia.it) has joined #python 2021-05-13 05:39:31 --> frrs (uid130725@gateway/web/irccloud.com/x-havxwbqnrxpsfxtv) has joined #python 2021-05-13 05:39:41 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 240 seconds) 2021-05-13 05:40:04 <-- honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-13 05:40:36 --> lucad111 (~lucad111@linaro/lucad111) has joined #python 2021-05-13 05:41:44 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 05:41:57 <-- chowmeined (~chowmeine@unaffiliated/chowmeined) has quit (Quit: Leaving) 2021-05-13 05:42:06 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 05:42:24 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 05:43:03 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 05:44:32 --> mangold (~mangold@198.98.183.45) has joined #python 2021-05-13 05:44:35 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-13 05:44:38 <-- lauxley (~lauxley@2a01:e34:ec55:2700:69e3:2370:9bad:6343) has quit (Remote host closed the connection) 2021-05-13 05:45:02 <-- kpiyushlucky (6aca105f@106.202.16.95) has quit (Ping timeout: 240 seconds) 2021-05-13 05:45:46 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 05:45:57 --> nicoz (nicoz@nicoz.mooo.com) has joined #python 2021-05-13 05:46:05 --> rond_ (531cdf3e@bmd62.neoplus.adsl.tpnet.pl) has joined #python 2021-05-13 05:46:09 --> ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has joined #python 2021-05-13 05:47:39 <-- jjhoo (jahakala@dsl-trebng21-b048b5-171.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-05-13 05:47:46 --> cognemo (~cognemo@BNG-212-13-148-dsl.simobil.net) has joined #python 2021-05-13 05:48:33 <-- pi- (~Ohmu@node-3um.pool-1-0.dynamic.totinternet.net) has quit (Ping timeout: 260 seconds) 2021-05-13 05:48:46 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-13 05:50:26 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined #python 2021-05-13 05:50:49 <-- shokohsc68 (~shokohsc@161.88.195.77.rev.sfr.net) has quit (Read error: Connection reset by peer) 2021-05-13 05:51:06 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 05:51:26 --> jjhoo (~jahakala@dsl-trebng21-b048b5-171.dhcp.inet.fi) has joined #python 2021-05-13 05:51:48 --> bolovanos__ (~bolovanos@unaffiliated/bolovanos) has joined #python 2021-05-13 05:51:53 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-13 05:54:14 --> Alexander-47u (~Alexander@a44107.upc-a.chello.nl) has joined #python 2021-05-13 05:54:29 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-13 05:54:37 <-- mangold (~mangold@198.98.183.45) has quit (Ping timeout: 260 seconds) 2021-05-13 05:55:08 --> Spinifera (~Spinifera@1.129.106.100) has joined #python 2021-05-13 05:56:38 --> honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-13 05:56:48 <-- Spinifera (~Spinifera@1.129.106.100) has quit (Remote host closed the connection) 2021-05-13 05:57:27 <-- ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has quit (Ping timeout: 246 seconds) 2021-05-13 05:57:36 <-- gry (~test@unaffiliated/gryllida) has left #python ("bye") 2021-05-13 05:57:45 --> Spinifera (~Spinifera@1.129.106.100) has joined #python 2021-05-13 05:58:32 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 246 seconds) 2021-05-13 05:58:37 _habnabit ryTri, nedbat, tuple[int] is legal in python 3.7 with future __annotations__ 2021-05-13 05:58:56 nedbat _habnabit: i knew I would get the version wrong :) 2021-05-13 05:59:09 _habnabit ryTri, python has supported annotations since 3.0; there's no reason you can't use them in pypy 2021-05-13 06:00:00 --> shokohsc68 (~shokohsc@161.88.195.77.rev.sfr.net) has joined #python 2021-05-13 06:00:13 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 06:00:48 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-13 06:01:02 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 06:01:35 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Quit: = "") 2021-05-13 06:02:07 graingert pi-: should be pretty easy: 2021-05-13 06:02:07 graingert async with anyio.create_task_group() as tg: tg.start_soon(listen_ws); await download_file() 2021-05-13 06:03:29 --> Ashburry (~Ashburry@184.69.89.188) has joined #python 2021-05-13 06:03:49 --> kpiyushlucky (6aca52a7@106.202.82.167) has joined #python 2021-05-13 06:03:55 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-13 06:03:59 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 06:04:20 Ashburry is there a way to easily install all the python packages from python 3.9.2 over to python 3.9.5 so I don't have to reinstall them all manually? 2021-05-13 06:04:26 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Quit: Unfortunately time is always against us -- [Morpheus]) 2021-05-13 06:04:42 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-13 06:04:43 _habnabit Ashburry, normally i let poetry/pipx take care of that for me 2021-05-13 06:05:37 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-13 06:05:44 <-- shokohsc68 (~shokohsc@161.88.195.77.rev.sfr.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-13 06:05:44 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-13 06:05:50 <-- aaearon (aaearon@gateway/shell/xzibition.com/x-vptdcycqhfyjqcbb) has quit (Quit: ZNC - https://znc.in) 2021-05-13 06:05:54 Ashburry using pip is the same as manually installing. I mean, can I quick pip all my installations to the new python version? 2021-05-13 06:05:57 --> obengdako (~obengdako@197.220.169.155) has joined #python 2021-05-13 06:06:07 _habnabit Ashburry, no, pipx, not pip 2021-05-13 06:06:38 --> aaearon (aaearon@gateway/shell/xzibition.com/x-cpafvtvqezhddjsy) has joined #python 2021-05-13 06:06:43 Ashburry i haven't heard of it, i'm installing now 2021-05-13 06:06:59 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-13 06:09:01 <-- SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-13 06:09:10 IHasFinger stealth_, yes I am but i have added an if that says if the last_post is set not empty. I want it to get the next next row i dont know how to do this :( 2021-05-13 06:09:46 Ashburry looks like install of poetry either froze or is just *VERY* busy, like a hang busy 2021-05-13 06:09:46 <-- Spinifera (~Spinifera@1.129.106.100) has quit (Quit: Leaving) 2021-05-13 06:10:03 Ashburry no cpu noise coming from my box 2021-05-13 06:10:18 Ashburry *hard drive* 2021-05-13 06:10:34 <-- plutoniix (~q@cm-119-76-33-155.revip17.asianet.co.th) has quit (Quit: Leaving) 2021-05-13 06:11:07 IHasFinger stealth_, https://bpa.st/RNDA 2021-05-13 06:11:18 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-13 06:11:49 Ashburry i will see it comes back alive again in awhile 2021-05-13 06:11:49 stealth_ IHasFinger, do you have a column called "last_post" whats in it? 2021-05-13 06:12:27 Ashburry WARNING: The script poetry.exe is installed in 'C:\Users\420\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. 2021-05-13 06:12:40 Ashburry \Python38\ 2021-05-13 06:12:53 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-13 06:13:24 graingert RhineDevil: Use `return myvar` 2021-05-13 06:13:32 IHasFinger stealth_, yes I do. in the table, only 1 row can have true on it everything else is null 2021-05-13 06:13:50 --> ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has joined #python 2021-05-13 06:15:14 stealth_ IHasFinger, I don't have enough info on how the table is structured or what data is in it help you better 2021-05-13 06:15:25 --> shokohsc68 (~shokohsc@161.88.195.77.rev.sfr.net) has joined #python 2021-05-13 06:16:04 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-13 06:16:45 stealth_ IHasFinger, if you do `for result in results: print(result)` can't you see what next row + data look like and code it according to that? 2021-05-13 06:17:33 <-- kpiyushlucky (6aca52a7@106.202.82.167) has quit (Quit: Connection closed) 2021-05-13 06:18:16 <-- ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-13 06:18:23 --> inle (~commit@unaffiliated/commit) has joined #python 2021-05-13 06:19:14 IHasFinger stealth_, is they a website i can use to create a db online and share a link? 2021-05-13 06:19:56 stealth_ IHasFinger, i don't know of one 2021-05-13 06:20:06 IHasFinger 2 sec will ask the sql guys 2021-05-13 06:20:35 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 246 seconds) 2021-05-13 06:21:11 <-- Hal9k (~Hal9k@unaffiliated/kusanagi) has quit (Ping timeout: 240 seconds) 2021-05-13 06:21:21 --> yacin_ (~yelhamer@41.96.65.76) has joined #python 2021-05-13 06:21:40 <-- ryTri (0ec90fd2@14-201-15-210.tpgi.com.au) has quit (Quit: Connection closed) 2021-05-13 06:21:54 stealth_ IHasFinger, do you not have "id" column? like `result['id']` ? you want to know what the next 'id' is right? 2021-05-13 06:21:58 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 06:22:34 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 06:22:50 P1ckleRick IHasFinger - Why don't you just use a trial droplet (you can have full virtual server setup in minutes). 2021-05-13 06:23:13 Ashburry IHasFinger: i recommened CouchDB for database, it is has webserver built in. Most people who use a database shuold be using CouchDB 2021-05-13 06:23:27 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 06:24:15 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 06:24:52 <-- yelhamer (~yelhamer@41.96.75.109) has quit (Ping timeout: 265 seconds) 2021-05-13 06:25:08 P1ckleRick Ashburry: Why should most people use CouchDB? 2021-05-13 06:25:14 <-- djhankb (~djhankb@208.113.164.68) has quit (Read error: Connection reset by peer) 2021-05-13 06:25:35 Ashburry it uses key=value pairs and that is how people need to access their data. 2021-05-13 06:26:05 Ashburry javascript for map/reduce is very intuitive and works great 2021-05-13 06:26:06 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-13 06:26:26 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-13 06:26:32 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 06:26:49 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 06:27:36 Ashburry it uses a restful http server to interact with the databases 2021-05-13 06:27:53 P1ckleRick Mhmm from what I've read it's still pretty immature, libraries not well maintained and doesn't support joins? 2021-05-13 06:28:50 Ashburry I don't think you need joins 2021-05-13 06:29:08 -- yacin_ is now known as yelhamer 2021-05-13 06:29:42 P1ckleRick I do :P 2021-05-13 06:30:02 P1ckleRick <- Having a play with it now, just to be sure 2021-05-13 06:30:04 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 06:30:15 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-13 06:30:21 --> royo25 (~supergeek@gateway/tor-sasl/royo25) has joined #python 2021-05-13 06:31:28 Ashburry CouchOne 2021-05-13 06:33:42 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 06:33:49 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 06:33:54 <-- Adbray (~Adbray@2600:6c48:6f7f:d764:b27:7079:9305:e747) has quit (Quit: Ah! By Brain!) 2021-05-13 06:34:19 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 06:35:13 <-- inle (~commit@unaffiliated/commit) has quit (Read error: Connection reset by peer) 2021-05-13 06:35:17 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-13 06:35:26 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 06:35:29 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has left #python 2021-05-13 06:35:33 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-13 06:35:35 --> inle (~commit@unaffiliated/commit) has joined #python 2021-05-13 06:35:42 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 06:35:58 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 06:36:21 <-- inle (~commit@unaffiliated/commit) has quit (Max SendQ exceeded) 2021-05-13 06:36:35 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 06:36:52 --> inle (~commit@unaffiliated/commit) has joined #python 2021-05-13 06:38:24 <-- samuelbernardo (~samuelber@nata01.lip.pt) has quit (Ping timeout: 265 seconds) 2021-05-13 06:38:38 <-- inle (~commit@unaffiliated/commit) has quit (Remote host closed the connection) 2021-05-13 06:39:17 --> inle (~commit@unaffiliated/commit) has joined #python 2021-05-13 06:39:38 <-- inle (~commit@unaffiliated/commit) has quit (Remote host closed the connection) 2021-05-13 06:39:51 <-- rgr (~rgr@ip-109-42-114-18.web.vodafone.de) has quit (Quit: Leaving) 2021-05-13 06:41:04 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Ping timeout: 252 seconds) 2021-05-13 06:41:32 --> a6a45081-2b83 (~aditya@27.58.160.217) has joined #python 2021-05-13 06:41:45 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 06:42:45 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 06:43:41 --> lethu (~lethu@unaffiliated/lethu) has joined #python 2021-05-13 06:43:58 --> gelignite (~gelignite@55d4f9c4.access.ecotel.net) has joined #python 2021-05-13 06:46:02 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 06:46:32 <-- RhineDevil (~RhineDevi@gateway/tor-sasl/rhinedevil) has quit (Quit: Leaving) 2021-05-13 06:46:42 <-- jokoon (~jokoon@unaffiliated/jokoon) has left #python ("Leaving") 2021-05-13 06:46:47 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 250 seconds) 2021-05-13 06:46:58 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 06:47:27 <-- audioburn (~theology@unaffiliated/theology) has quit (Read error: Connection reset by peer) 2021-05-13 06:47:55 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-13 06:49:22 --> samuelbernardo (~samuelber@nata01.lip.pt) has joined #python 2021-05-13 06:50:01 --> ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has joined #python 2021-05-13 06:50:51 <-- fuho (~Thunderbi@88.103.239.148) has quit (Quit: fuho) 2021-05-13 06:53:22 --> russw_ (~russw@174.112.137.191) has joined #python 2021-05-13 06:54:09 <-- Jerrynicki (~niklas@p200300f57705190004eaeba4aabc65c4.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-13 06:54:34 <-- ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-13 06:56:27 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-13 06:56:37 --> Dr-007 (~Dr-007@ip-213-127-27-49.ip.prioritytelecom.net) has joined #python 2021-05-13 06:56:51 IHasFinger stealth_, https://bpa.st/6BRQ#2L1 please read the comment in line 1 and 2 please 2021-05-13 06:57:09 <-- russw (~russw@174.112.137.191) has quit (Ping timeout: 260 seconds) 2021-05-13 06:57:58 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 252 seconds) 2021-05-13 06:58:16 --> legola (~legola@unaffiliated/legola) has joined #python 2021-05-13 06:58:17 <-- MJ (~mjpieters@unaffiliated/mj) has quit (Ping timeout: 268 seconds) 2021-05-13 06:58:18 uhu hello, can someone help how I can replace the following in a file from source to target. it is group-title = "VOD Series - Germany" to "group-title =" Netflix Series Kingdom "", where Kingdom is the series title and occurs further back in the line https://bpa.st/6NWA 2021-05-13 06:58:56 --> MJ (~mjpieters@unaffiliated/mj) has joined #python 2021-05-13 06:59:01 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 260 seconds) 2021-05-13 07:00:06 <-- Elladan (~elladan@unaffiliated/elladan) has quit (Quit: ZNC - http://znc.in) 2021-05-13 07:00:06 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 07:01:18 --> rgr (~rgr@ip-109-42-114-18.web.vodafone.de) has joined #python 2021-05-13 07:01:40 stealth_ IHasFinger, do you wanting to rerun the loop again? 2021-05-13 07:02:13 <-- lacrymology (~lacrymolo@static-202-2-25-46.ipcom.comunitel.net) has quit (Ping timeout: 240 seconds) 2021-05-13 07:02:31 IHasFinger I just want to get the next one based on the sequence from the last_post 2021-05-13 07:02:38 IHasFinger not sure if i can do it with sql 2021-05-13 07:02:39 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 07:02:45 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 07:03:24 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 07:03:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 07:04:01 <-- legola (~legola@unaffiliated/legola) has quit (Ping timeout: 252 seconds) 2021-05-13 07:04:27 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 268 seconds) 2021-05-13 07:04:29 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-13 07:04:32 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-13 07:07:09 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-13 07:07:41 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 07:07:49 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 07:08:07 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 07:08:08 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 07:08:22 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 07:08:27 --> amahl (~amahl@dxv5skyg-wwnxw9y666zt-3.rev.dnainternet.fi) has joined #python 2021-05-13 07:08:45 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 07:09:24 --> legola (~legola@unaffiliated/legola) has joined #python 2021-05-13 07:10:03 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Read error: Connection reset by peer) 2021-05-13 07:11:11 stealth_ hmm did that person leave 2021-05-13 07:11:27 --> mangold (~mangold@198.98.183.142) has joined #python 2021-05-13 07:12:16 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-13 07:12:33 <-- cliluw (~cliluw@unaffiliated/cliluw) has quit (Ping timeout: 260 seconds) 2021-05-13 07:12:58 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Ping timeout: 252 seconds) 2021-05-13 07:13:22 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 07:13:41 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 07:13:52 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-13 07:14:19 <-- krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-13 07:14:20 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 07:14:38 <-- bolovanos__ (~bolovanos@unaffiliated/bolovanos) has quit (Read error: Connection reset by peer) 2021-05-13 07:14:39 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 07:14:43 <-- a6a45081-2b83 (~aditya@27.58.160.217) has quit (Quit: Konversation terminated!) 2021-05-13 07:15:12 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-13 07:16:02 <-- larkfisherman (~pasko@217.75.204.126) has left #python 2021-05-13 07:17:00 --> computeiro (~Wender@189.37.69.138) has joined #python 2021-05-13 07:17:04 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 07:17:48 --> hiroaki (~hiroaki@2a02:908:4b18:8c40:4cef:b6bf:385e:9b4c) has joined #python 2021-05-13 07:18:02 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 07:18:52 P1ckleRick IHasFinger: What are you trying to achieve 2021-05-13 07:19:33 IHasFinger got dc the last message i saw is "not sure if i can do it with sql" 2021-05-13 07:19:46 <-- obengdako (~obengdako@197.220.169.155) has quit (Quit: This computer has gone to sleep) 2021-05-13 07:19:47 IHasFinger P1ckleRick, no I am not doing something else 2021-05-13 07:20:53 --> obengdako (~obengdako@197.220.169.155) has joined #python 2021-05-13 07:21:02 --> e-i-k-e (~e-i-k-e@55d43d74.access.ecotel.net) has joined #python 2021-05-13 07:21:24 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 07:21:47 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-13 07:21:48 stealth_ IHasFinger, o hey 2021-05-13 07:22:15 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 07:22:17 stealth_ IHasFinger, https://bpa.st/GWNA is that want you want? 2021-05-13 07:24:54 --> contingo (~textual@213.205.200.36) has joined #python 2021-05-13 07:26:14 <-- ulif (~nick@gf6.gnufix.de) has quit (Remote host closed the connection) 2021-05-13 07:26:37 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 07:27:55 IHasFinger hi stealth_ looks like it i will try it out 2021-05-13 07:28:43 stealth_ IHasFinger, ok 2021-05-13 07:29:32 stealth_ IHasFinger, i just added multiple loop to show results so you can visualize whats happening. 2021-05-13 07:30:29 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 07:31:16 <-- obengdako (~obengdako@197.220.169.155) has quit (Quit: This computer has gone to sleep) 2021-05-13 07:32:17 --> IHasAnotherFinge (~baako@unaffiliated/baako) has joined #python 2021-05-13 07:32:17 --> ulif (~nick@gf6.gnufix.de) has joined #python 2021-05-13 07:32:21 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 07:32:42 --> Jerrynicki (~niklas@p200300f577051900085dbd56e308e2f9.dip0.t-ipconnect.de) has joined #python 2021-05-13 07:33:03 IHasAnotherFinge back i got DC 2021-05-13 07:33:23 -- IHasAnotherFinge is now known as IHadFinger 2021-05-13 07:33:29 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 07:33:30 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Ping timeout: 265 seconds) 2021-05-13 07:33:30 -- IHadFinger is now known as IHasFinger 2021-05-13 07:33:50 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 07:35:06 --> larkfisherman (~pasko@217.75.204.126) has joined #python 2021-05-13 07:35:14 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 07:35:47 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 07:35:55 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 252 seconds) 2021-05-13 07:36:05 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Quit: Ping timeout: 252 seconds) 2021-05-13 07:36:26 --> M1zuki (~iridium@unaffiliated/m1zuki) has joined #python 2021-05-13 07:40:04 <-- traumschule (~traumschu@mehl.schokokeks.org) has quit (Read error: Connection reset by peer) 2021-05-13 07:41:47 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 246 seconds) 2021-05-13 07:41:52 IHasFinger stealth_, thats okay, https://bpa.st/IOIA with this use case if they is no next, I want it to get the first one. because the sequence has finished so the next one is sequence number 1 2021-05-13 07:41:59 --> msandoy (~msandoy@telia-59082b-206.connect.netcom.no) has joined #python 2021-05-13 07:42:34 --> dvx (~dvx@185.63.97.64) has joined #python 2021-05-13 07:43:09 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-13 07:43:09 <-- Profound (Profound@unaffiliated/profound) has quit (*.net *.split) 2021-05-13 07:44:07 --> kek_ (~kek_@2a02:168:200f:1f10:410b:731a:6592:864d) has joined #python 2021-05-13 07:44:10 <-- mangold (~mangold@198.98.183.142) has quit (Ping timeout: 252 seconds) 2021-05-13 07:45:40 --> wender (~Wender@189.15.167.38) has joined #python 2021-05-13 07:45:44 IHasFinger stealth_, will sort it :) using len thank you 2021-05-13 07:45:50 stealth_ IHasFinger, you can just add a check `if len(results)-1 != index+1: print('fist post:', results[0])` 2021-05-13 07:46:37 stealth_ IHasFinger, maybe you don't need `-1` and `+1` but you get the idea. 2021-05-13 07:47:17 IHasFinger i was going to do if len(results) == index: print("we are at the end") 2021-05-13 07:47:26 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-13 07:47:52 stealth_ IHasFinger, whatever floats the boat. 2021-05-13 07:48:04 --> llh (~coke@unaffiliated/llh) has joined #python 2021-05-13 07:48:29 <-- computeiro (~Wender@189.37.69.138) has quit (Ping timeout: 265 seconds) 2021-05-13 07:49:37 IHasFinger stealth_, last question if results[index-1] give you the previous and results[index+1] the next one. How to get the very first? 2021-05-13 07:49:51 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 260 seconds) 2021-05-13 07:49:55 <-- lethu (~lethu@unaffiliated/lethu) has quit (Quit: Quit()) 2021-05-13 07:50:31 stealth_ IHasFinger, `result[0]` 2021-05-13 07:50:46 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-13 07:51:15 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-13 07:51:41 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-13 07:52:20 <-- random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Quit: random_yanek) 2021-05-13 07:52:56 --> mangold (~mangold@198.98.183.51) has joined #python 2021-05-13 07:53:21 stealth_ IHasFinger, `results[0]` typo 2021-05-13 07:54:16 <-- palooka-jock (~mike@45.126.44.146) has quit (Ping timeout: 260 seconds) 2021-05-13 07:54:37 --> computeiro (~Wender@189.37.69.138) has joined #python 2021-05-13 07:56:08 <-- wender (~Wender@189.15.167.38) has quit (Ping timeout: 246 seconds) 2021-05-13 07:56:21 --> random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-13 07:56:43 --> Hal9k (~Hal9k@unaffiliated/kusanagi) has joined #python 2021-05-13 07:57:30 <-- mangold (~mangold@198.98.183.51) has quit (Client Quit) 2021-05-13 07:57:38 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-13 07:57:45 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-13 07:57:53 --> palooka-jock (~mike@45.126.44.146) has joined #python 2021-05-13 07:58:05 --> mangold (~mangold@198.98.183.51) has joined #python 2021-05-13 07:58:54 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:849e:23b8:47ac:d0fa) has quit (Ping timeout: 246 seconds) 2021-05-13 07:59:31 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-13 07:59:32 --> obengdako (~obengdako@197.220.169.155) has joined #python 2021-05-13 07:59:39 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 260 seconds) 2021-05-13 08:00:05 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 08:01:06 <-- rond_ (531cdf3e@bmd62.neoplus.adsl.tpnet.pl) has quit (Quit: Connection closed) 2021-05-13 08:01:08 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-13 08:02:16 IronHEDGE Anyone aware of a flask facial recognition piece that doesn’t have to be trained? I’m wishing to use school photos to make an attendance system but the current and closes 1 I’ve tried takes a good 15 min to process and gets the faces wrong, although it does have 2,000 image to process. So I’m wondering if it’s even possible? I’m assuming so with the right algorithm? 2021-05-13 08:02:42 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-13 08:03:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 08:03:45 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 08:04:18 --> contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has joined #python 2021-05-13 08:04:35 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-13 08:04:50 --> stryek (uid332574@gateway/web/irccloud.com/x-weyvtklclsmgpdaz) has joined #python 2021-05-13 08:04:53 <-- obengdako (~obengdako@197.220.169.155) has quit (Ping timeout: 268 seconds) 2021-05-13 08:05:11 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Ping timeout: 240 seconds) 2021-05-13 08:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-13 08:06:18 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-13 08:06:37 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-13 08:07:44 --> Kobaz (~kobaz@its.kobaz.net) has joined #python 2021-05-13 08:08:50 --> rsx (~rsx@ppp-188-174-157-153.dynamic.mnet-online.de) has joined #python 2021-05-13 08:09:27 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 260 seconds) 2021-05-13 08:12:40 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-13 08:12:42 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-13 08:13:11 --> obengdako (~obengdako@102.176.94.155) has joined #python 2021-05-13 08:13:12 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-13 08:13:28 --> mariuszskon (~mariuszsk@82.102.25.12) has joined #python 2021-05-13 08:13:38 bancroft FastAPI vs Django, what do you think? 2021-05-13 08:13:52 IHasFinger stealth_, thanks :) 2021-05-13 08:13:57 IHasFinger bed time for me 2021-05-13 08:15:23 bancroft django has a pro, I don't really want to use alembic or sqlalchemy... FastAPI is more async ready ... 2021-05-13 08:16:15 bancroft I'm pretty torn up here 2021-05-13 08:16:38 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-13 08:17:30 <-- sesser (~sesser@107.13.245.224) has quit (Ping timeout: 252 seconds) 2021-05-13 08:17:31 <-- larkfisherman (~pasko@217.75.204.126) has quit (Remote host closed the connection) 2021-05-13 08:17:33 --> nabil_ (~nabil@105.99.10.74) has joined #python 2021-05-13 08:18:02 spiri i wrote a script for reading lines of a file starting from the end and without blowing up the memory -- https://gist.github.com/sspiri/ba89ff86bf6686e6683f5c8d8aa8e69a 2021-05-13 08:18:35 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 08:18:52 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-13 08:19:13 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 08:19:23 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 08:20:04 <-- nabil__ (~nabil@105.101.5.30) has quit (Ping timeout: 252 seconds) 2021-05-13 08:20:32 --> lmt (uid107697@gateway/web/irccloud.com/x-larivhqnfaeqxflf) has joined #python 2021-05-13 08:21:13 <-- EvilDMP (EvilDMP@django/moderator/EvilDMP) has quit (Quit: Bye) 2021-05-13 08:21:49 --> Profound (Profound@unaffiliated/profound) has joined #python 2021-05-13 08:22:01 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-13 08:22:36 --> MrMobius (~MrMobius@208.58.206.154) has joined #python 2021-05-13 08:23:15 --> EvilDMP (EvilDMP@django/moderator/EvilDMP) has joined #python 2021-05-13 08:24:00 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Ping timeout: 268 seconds) 2021-05-13 08:24:14 --> vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has joined #python 2021-05-13 08:24:29 astronavt bancroft: if you don't need an orm and/or one of the specific django middlewares, don't use django (imo) 2021-05-13 08:25:45 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-13 08:26:00 astronavt on the other hand, if you _do_ need an orm, it's hard to go wrong with django behind gunicorn. no reason to use async for the sake of async. 2021-05-13 08:26:56 bancroft astronavt: I don't need one, but I do think it's simpler to have one 2021-05-13 08:27:02 <-- leduyquang753 (~leduyquan@171.224.179.3) has quit (Ping timeout: 252 seconds) 2021-05-13 08:27:38 astronavt you could be a real hipster and use uvicorn + quart + one of the async orms 2021-05-13 08:28:03 astronavt but at that point maybe go with fastapi? im not sure how well it integrates with an orm 2021-05-13 08:28:13 astronavt and sqlalchemy does i believe support async now 2021-05-13 08:28:22 bancroft ᕕ(⌐■_■)ᕗ ♪♬ real hipster 2021-05-13 08:28:24 bancroft lol 2021-05-13 08:29:24 bancroft is it easy to integrate nodejs with fastapi? I'm planning on using node-red 2021-05-13 08:30:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 08:30:26 <-- mangold (~mangold@198.98.183.51) has quit (Quit: Leaving) 2021-05-13 08:31:36 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-13 08:31:53 --> cthulchu_ (~cthulchu@193.194.107.250) has joined #python 2021-05-13 08:33:13 <-- garFF (~garff@0x3e2c86d9.mobile.telia.dk) has quit (Remote host closed the connection) 2021-05-13 08:33:21 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 08:34:31 astronavt no idea about node-red 2021-05-13 08:34:56 astronavt if it helps, fastapi generates an openapi schema from your pydantic classes 2021-05-13 08:35:24 --> larkfisherman (~pasko@217.75.204.126) has joined #python 2021-05-13 08:36:58 <-- stealth_ (~stealth_@216-197-160-97.regn.static.sasknet.sk.ca) has quit (Quit: Leaving) 2021-05-13 08:37:13 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 08:38:50 --> ewdwasright (~ewdwasrig@108.210.81.181) has joined #python 2021-05-13 08:40:31 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-13 08:41:19 <-- v01d4lph4 (~v01d4lph4@122.160.65.250) has quit (Remote host closed the connection) 2021-05-13 08:42:42 --> tommy`` (~tommy``@unaffiliated/tommy/x-6566540) has joined #python 2021-05-13 08:42:49 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-13 08:45:10 --> fizzizist (~Thunderbi@108.162.133.99) has joined #python 2021-05-13 08:45:14 --> Lord_of_Life_ (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-13 08:45:51 --> mangold (~mangold@198.98.183.141) has joined #python 2021-05-13 08:46:11 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-13 08:47:46 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-13 08:47:56 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 252 seconds) 2021-05-13 08:48:17 -- Lord_of_Life_ is now known as Lord_of_Life 2021-05-13 08:48:29 <-- stranac (~stranac@195.29.239.126) has quit (Read error: Connection reset by peer) 2021-05-13 08:48:59 <-- TimeTrap (~TimeTrap@2601:44:c280:def:3dd2:18fb:684d:a007) has quit (Ping timeout: 250 seconds) 2021-05-13 08:49:46 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 08:50:22 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 08:50:51 --> ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has joined #python 2021-05-13 08:51:50 --> urodna (~urodna@unaffiliated/urodna) has joined #python 2021-05-13 08:54:32 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Ping timeout: 240 seconds) 2021-05-13 08:54:39 bancroft I am a fan of that :) 2021-05-13 08:55:39 <-- ffe4 (~ffe4@200116b82c4bf000d09e6905450db77a.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-13 08:57:20 <-- mangold (~mangold@198.98.183.141) has quit (Quit: Leaving) 2021-05-13 08:57:54 <-- ram19890 (~ram@49.205.82.36) has quit (Quit: Konversation terminated!) 2021-05-13 08:58:17 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-13 08:58:22 --> jackiiilong (~jackiiilo@111.63.14.116) has joined #python 2021-05-13 08:58:24 --> ram19890 (~ram@49.205.82.36) has joined #python 2021-05-13 08:58:37 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-13 08:59:10 <-- jackiiilong (~jackiiilo@111.63.14.116) has quit (Max SendQ exceeded) 2021-05-13 08:59:42 --> jackiiilong (~jackiiilo@111.63.14.116) has joined #python 2021-05-13 09:00:00 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-13 09:00:04 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 09:00:34 <-- jackiiilong (~jackiiilo@111.63.14.116) has quit (Max SendQ exceeded) 2021-05-13 09:00:47 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 260 seconds) 2021-05-13 09:00:51 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-13 09:01:03 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-13 09:01:07 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-13 09:01:21 <-- nekron (~nekron@noordsee.de) has quit (Remote host closed the connection) 2021-05-13 09:01:27 --> jackiiilong (~jackiiilo@111.63.14.116) has joined #python 2021-05-13 09:01:31 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 09:02:17 --> nekron (~nekron@noordsee.de) has joined #python 2021-05-13 09:02:27 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-13 09:02:36 hrobj hi, I have an object that Im passing to numpy.arctan2 -- it emulates numpy array in most part, so behaves well on most math operation with ndarray 2021-05-13 09:02:56 zumba_addict Good morning all. What would be the equivalent of NodeJS' Buffer.from in python? https://nodejs.org/api/buffer.html#buffer_static_method_buffer_from_array 2021-05-13 09:03:24 --> TimeTrap (~TimeTrap@2601:44:c280:def:3dd2:18fb:684d:a007) has joined #python 2021-05-13 09:03:26 hrobj however, when I use np.arctan2(myObj1, myObj2) ... it looks an attribute, AttributeError: 'compress' object has no attribute 'arctan2' 2021-05-13 09:03:34 <-- jackiiilong (~jackiiilo@111.63.14.116) has quit (Remote host closed the connection) 2021-05-13 09:03:46 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 09:04:04 hrobj this error is a little strange to me, because ndarrays do not seem to have such an attribute. 2021-05-13 09:04:20 --> jackiiilong (~jackiiilo@111.63.44.6) has joined #python 2021-05-13 09:04:33 hrobj I dont suppose, I could simply add this attribute or function to my "compress" class? 2021-05-13 09:05:53 Yhg1s zumba_addict: what Python type would you want this buffer to be? What would you want to do with it? 2021-05-13 09:06:19 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-13 09:06:53 zumba_addict the code in js that I'm trying to write in python is `Buffer.from("1337", "hex")` 2021-05-13 09:07:06 Yhg1s zumba_addict: okay, and what would you like that to produce? what do you want to then do with the buffer? 2021-05-13 09:07:27 KirkMcDonald zumba_addict: bytes.fromhex("1337") is a thing, for example. 2021-05-13 09:07:54 KirkMcDonald zumba_addict: Which will gives you a bytes object. I'm not clear on whether that is the thing that you want. 2021-05-13 09:08:04 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Remote host closed the connection) 2021-05-13 09:08:08 zumba_addict oh, got it 2021-05-13 09:08:42 --> Zy64Jw (~Zy64Jw@27.58.160.217) has joined #python 2021-05-13 09:08:59 zumba_addict I'll need to understand what buffer is for first so I can understand 2021-05-13 09:09:05 zumba_addict i'll do some reading 2021-05-13 09:09:22 zumba_addict i thought buffer was just like a storage 2021-05-13 09:09:39 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 260 seconds) 2021-05-13 09:10:09 <-- contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has quit (Ping timeout: 260 seconds) 2021-05-13 09:10:23 Yhg1s zumba_addict: the question is what you want to store. In Python there's a bunch of different ways to store things. 2021-05-13 09:10:44 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-13 09:11:16 zumba_addict gotcha. I'll do more reading first then I'll come back with a proper question 2021-05-13 09:12:31 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-13 09:12:47 <-- Zy64Jw (~Zy64Jw@27.58.160.217) has quit (Ping timeout: 246 seconds) 2021-05-13 09:13:38 hrobj zumba_addict, generally Buffer is for storing binary data in memory for example, and can help to stream read data... by passing around bufferred data you can make some things more efficient. 2021-05-13 09:13:54 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-13 09:14:13 --> contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has joined #python 2021-05-13 09:14:33 --> phage_33 (2fb88ed6@47.184.142.214) has joined #python 2021-05-13 09:15:30 --> leduyquang753 (~leduyquan@27.73.62.58) has joined #python 2021-05-13 09:16:04 <-- ezakimak (~ezakimak@c-174-52-132-123.hsd1.ut.comcast.net) has quit (Quit: ezakimak) 2021-05-13 09:16:12 --> testnode (bbc26dff@187.194.109.255) has joined #python 2021-05-13 09:17:07 --> ezakimak (~ezakimak@c-174-52-132-123.hsd1.ut.comcast.net) has joined #python 2021-05-13 09:19:09 --> borisrunak (~pkarpesis@static.188.65.46.78.clients.your-server.de) has joined #python 2021-05-13 09:19:10 borisrunak trying to install https://github.com/MagicStack/asyncpg on Ubuntu 20.04 on an rpi, I get https://paste.ubuntu.com/p/5j9YVDtn5k/ . Any ideas please ? 2021-05-13 09:20:08 phage_33 im back with more questions! im currently competing with someone else using a script that does hourly api requests for data from a video games trading system. for whatever reason, the other person is able to get their requests 2 to 4 seconds faster than they appear for me. i cant figure out why their response time for each server is faster across 2021-05-13 09:20:09 phage_33 every server. 2021-05-13 09:21:56 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-13 09:22:21 --> lauxley (~lauxley@2a01:e34:ec55:2700:d8a0:ee5:6aad:8394) has joined #python 2021-05-13 09:23:42 <-- obengdako (~obengdako@102.176.94.155) has quit (Read error: Connection reset by peer) 2021-05-13 09:24:16 --> obengdako (~obengdako@102.176.94.155) has joined #python 2021-05-13 09:25:25 --> p0a (~user@unaffiliated/p0a) has joined #python 2021-05-13 09:25:41 phy1729 If I have an object and a GenericAlias (say list[str]), how do I verify the object conforms to the type? isinstance of course doesn't work. Does the stdlib have something or not yet? 2021-05-13 09:25:43 p0a Hello I have a class that initializes from a string and has a method .from_file() to initialize from file contents 2021-05-13 09:26:10 p0a It was suggested to me that I turn from_file into a @classmethod; however both __init__ and from_file rely on a method I've called _populate(), which populates the class from the data (in the string or file) 2021-05-13 09:26:20 p0a How should I write this then? 2021-05-13 09:26:26 Yhg1s phy1729: the typing module isn't really meant for run-time type checking. There's nothing in the stdlib for it. 2021-05-13 09:26:33 Yhg1s phy1729: and it's not clear it ever will 2021-05-13 09:27:03 Yhg1s p0a: they would both call _populate(). 2021-05-13 09:27:25 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-13 09:27:25 <-- Hackerpcs (~user@unaffiliated/hackerpcs) has quit (Quit: Hackerpcs) 2021-05-13 09:27:45 p0a Yhg1s: but is _populate a classmethod? 2021-05-13 09:27:47 <-- hypc (~Thunderbi@113.232.132.232) has quit (Read error: Connection reset by peer) 2021-05-13 09:27:58 --> hypc (~Thunderbi@113.232.132.232) has joined #python 2021-05-13 09:28:00 Yhg1s p0a: it doesn't have to be. you could call it on the instance instead. It depends on what it does. 2021-05-13 09:28:09 p0a Yhg1s: `cls' is not an instance of the class though right? 2021-05-13 09:28:25 bjs p0a: but the classmethod would *create* an instance though? 2021-05-13 09:28:27 p0a __init__() has self and from_file has cls? 2021-05-13 09:28:27 Yhg1s p0a: well, 'cls' is just a parameter, but usually it's the class, not an instance of the class, yes. 2021-05-13 09:28:33 --> Hackerpcs (~user@unaffiliated/hackerpcs) has joined #python 2021-05-13 09:28:33 bjs and you'd call populate on that 2021-05-13 09:28:40 Yhg1s p0a: yes. the classmethod would instantiate the class. 2021-05-13 09:28:53 p0a I see, thank you 2021-05-13 09:28:54 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-13 09:29:00 p0a that means _populate needs to be a classmethod as well 2021-05-13 09:29:04 bjs p0a: no 2021-05-13 09:29:11 p0a Sorry, the opposite is what I meant to say 2021-05-13 09:29:20 p0a lol 2021-05-13 09:29:50 grym p0a: does your __init__ call _populate? 2021-05-13 09:30:07 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 09:30:10 <-- phage_33 (2fb88ed6@47.184.142.214) has quit (Quit: Connection closed) 2021-05-13 09:30:24 p0a grym: yeah 2021-05-13 09:30:32 p0a Do you indent @classmethod at the same level with `def' or not? 2021-05-13 09:30:38 bjs p0a: then why does from_file need to call _populate? 2021-05-13 09:30:42 bjs p0a: same level. 2021-05-13 09:30:47 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-13 09:30:54 p0a bjs: It does not -- it occured to me later 2021-05-13 09:30:59 bjs p0a: ah :) 2021-05-13 09:31:00 grym p0a: then cls(...) inside your classmethod will call _populate too 2021-05-13 09:31:08 p0a Yup, thank you :) 2021-05-13 09:31:17 grym (because it'll call __init__ to make your class) 2021-05-13 09:31:26 grym class _instance_ 2021-05-13 09:31:34 grym gotta watch muh p's and q's, here 2021-05-13 09:31:35 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 260 seconds) 2021-05-13 09:32:18 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Read error: Connection reset by peer) 2021-05-13 09:33:47 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 09:34:03 <-- obengdako (~obengdako@102.176.94.155) has quit (Quit: This computer has gone to sleep) 2021-05-13 09:34:17 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-13 09:34:53 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-13 09:35:06 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-13 09:35:18 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 265 seconds) 2021-05-13 09:36:15 <-- hiroaki (~hiroaki@2a02:908:4b18:8c40:4cef:b6bf:385e:9b4c) has quit (Ping timeout: 260 seconds) 2021-05-13 09:37:56 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 09:38:31 --> Croves (b164c18d@177.100.193.141) has joined #python 2021-05-13 09:39:00 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 09:39:23 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 246 seconds) 2021-05-13 09:39:38 --> chapuade (~alexander@81.6.34.22) has joined #python 2021-05-13 09:40:47 <-- jackiiilong (~jackiiilo@111.63.44.6) has quit (Ping timeout: 246 seconds) 2021-05-13 09:41:38 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: WeeChat 3.1) 2021-05-13 09:41:52 --> tm007 (uid287041@gateway/web/irccloud.com/x-ytxugvfwpuecbecy) has joined #python 2021-05-13 09:42:24 --> HaMsTeRs (~mx@49.130.66.230) has joined #python 2021-05-13 09:42:30 --> tans994 (a895af5a@gateway/web/cgi-irc/kiwiirc.com/ip.168.149.175.90) has joined #python 2021-05-13 09:42:40 --> sappheiros (~sappheiro@unaffiliated/dan1) has joined #python 2021-05-13 09:42:55 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-13 09:43:34 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-13 09:43:52 <-- Jerrynicki (~niklas@p200300f577051900085dbd56e308e2f9.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-13 09:44:19 --> Jerrynicki (~niklas@p200300f577051900e09ed9849bf65c9a.dip0.t-ipconnect.de) has joined #python 2021-05-13 09:44:53 --> Sheilong (uid293653@gateway/web/irccloud.com/x-rhpyeuwtpcwsiaqx) has joined #python 2021-05-13 09:46:50 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-13 09:47:03 --> vali (~cloudgeek@unaffiliated/vali) has joined #python 2021-05-13 09:48:03 <-- frtnx_ (~frtnx@unaffiliated/frtnx) has quit (Remote host closed the connection) 2021-05-13 09:48:04 <-- rgr (~rgr@ip-109-42-114-18.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-13 09:48:10 --> hiroaki (~hiroaki@2a02:908:4b18:8c40:c4d8:bb94:7495:fe3c) has joined #python 2021-05-13 09:49:26 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-13 09:49:42 <-- lowryder (~lowryder@2601:197:600:1210:44c5:3dff:1f0b:8b5b) has quit (Remote host closed the connection) 2021-05-13 09:49:48 <-- Croves (b164c18d@177.100.193.141) has left #python 2021-05-13 09:50:09 --> obengdako (~obengdako@102.176.94.155) has joined #python 2021-05-13 09:50:10 --> lowryder (~lowryder@2601:197:600:1210:da8:a2eb:912a:2e9f) has joined #python 2021-05-13 09:50:12 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Remote host closed the connection) 2021-05-13 09:50:27 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-13 09:50:27 <-- obengdako (~obengdako@102.176.94.155) has quit (Client Quit) 2021-05-13 09:53:03 <-- Guest20 (~textual@192.146.154.3) has quit (Read error: Connection reset by peer) 2021-05-13 09:54:11 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-13 09:54:57 --> Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has joined #python 2021-05-13 09:57:27 <-- kosh (~kosh@p200300d08f15f200ccf4e16698bcba1b.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-13 09:57:38 --> dez (uid92154@fedora/deSouza) has joined #python 2021-05-13 09:57:43 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 260 seconds) 2021-05-13 09:58:04 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Quit: WeeChat 3.0.1) 2021-05-13 09:58:27 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-13 09:59:15 --> brickfat (~brickfat@unaffiliated/brickfat) has joined #python 2021-05-13 10:00:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 10:00:37 <-- Guest20 (~textual@192.146.154.3) has quit (Read error: Connection reset by peer) 2021-05-13 10:01:23 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-13 10:01:25 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Quit: Anas__G) 2021-05-13 10:01:40 --> gitesh (uid423739@gateway/web/irccloud.com/x-hjydqtegdtckznmo) has joined #python 2021-05-13 10:01:46 <-- contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has quit (Quit: Leaving) 2021-05-13 10:02:53 <-- jordanm (~jordanm@pdpc/supporter/active/jordanm) has quit (Remote host closed the connection) 2021-05-13 10:03:15 --> jordanm (~jordanm@pdpc/supporter/active/jordanm) has joined #python 2021-05-13 10:03:20 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 10:06:21 --> cliluw (~cliluw@unaffiliated/cliluw) has joined #python 2021-05-13 10:07:02 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 246 seconds) 2021-05-13 10:07:05 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-13 10:07:23 petaflot hello: I would be quite happy if I could do sth like https://bpa.st/U4CQ : this code has the know issue that _kw_ is some indirection, and that it is AFAIK not possible to iterate in such a way over a dict whlie modifying it 2021-05-13 10:08:22 petaflot (can't iterate and pop in the iteration even if popping from a known keyword) 2021-05-13 10:09:31 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-13 10:09:43 --> cer-0 (~cer-0@189.228.159.74) has joined #python 2021-05-13 10:09:48 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-13 10:11:34 KirkMcDonald petaflot: The goal of this code is not clear to me. 2021-05-13 10:12:58 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-13 10:18:10 <-- cer-0 (~cer-0@189.228.159.74) has quit (Ping timeout: 252 seconds) 2021-05-13 10:18:10 <-- hypc (~Thunderbi@113.232.132.232) has quit (Read error: Connection reset by peer) 2021-05-13 10:18:21 --> hypc (~Thunderbi@113.232.132.232) has joined #python 2021-05-13 10:18:34 <-- hypc (~Thunderbi@113.232.132.232) has quit (Read error: Connection reset by peer) 2021-05-13 10:18:41 --> hypc1 (~Thunderbi@113.232.132.232) has joined #python 2021-05-13 10:19:39 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 260 seconds) 2021-05-13 10:19:44 <-- hypc1 (~Thunderbi@113.232.132.232) has quit (Read error: Connection reset by peer) 2021-05-13 10:19:56 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-13 10:19:56 --> hypc (~Thunderbi@113.232.132.232) has joined #python 2021-05-13 10:20:35 <-- p0a (~user@unaffiliated/p0a) has quit (Ping timeout: 260 seconds) 2021-05-13 10:21:23 <-- hypc (~Thunderbi@113.232.132.232) has quit (Read error: Connection reset by peer) 2021-05-13 10:21:30 --> hypc1 (~Thunderbi@113.232.132.232) has joined #python 2021-05-13 10:23:51 -- hypc1 is now known as hypc 2021-05-13 10:23:59 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 10:25:02 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-13 10:25:49 --> vidbina (~vid@dynamic-089-012-142-138.89.12.pool.telefonica.de) has joined #python 2021-05-13 10:26:43 --> phasetwo (~phasetwo@2601:602:8d80:4e50:849e:23b8:47ac:d0fa) has joined #python 2021-05-13 10:27:20 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 246 seconds) 2021-05-13 10:27:32 <-- chapuade (~alexander@81.6.34.22) has left #python 2021-05-13 10:28:25 --> stahl (~stahl@z35.anorg.net) has joined #python 2021-05-13 10:30:02 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 10:30:19 --> SYNTAXX-3RR0R (~SYNTAXX-3@41.144.76.105) has joined #python 2021-05-13 10:30:56 <-- brainium (~brainium@unaffiliated/brainium) has quit (Quit: Konversation terminated!) 2021-05-13 10:31:15 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:849e:23b8:47ac:d0fa) has quit (Ping timeout: 250 seconds) 2021-05-13 10:33:11 graingert phy1729: there's stuff like pydantic, cattrs, marshmallow, typeguard 2021-05-13 10:33:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 10:35:41 <-- mefistofeles (~mefistofe@unaffiliated/mefistofeles) has quit (Ping timeout: 240 seconds) 2021-05-13 10:35:51 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 260 seconds) 2021-05-13 10:36:28 phy1729 graingert: I'll take a look at thoses; thanks! 2021-05-13 10:36:45 --> CodeMouse92 (~JasonMc92@unaffiliated/codemouse) has joined #python 2021-05-13 10:37:20 --> kek_1 (~kek_@net-2001-067c-10ec-574f-8000-0000-0000-022f.v6.ethz.ch) has joined #python 2021-05-13 10:38:08 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 265 seconds) 2021-05-13 10:38:18 <-- drazan (~drazan@216.243.54.166) has quit (Remote host closed the connection) 2021-05-13 10:38:45 <-- Mulugruntz (~Mulugrunt@2400:4152:2063:3100:855b:e3e0:d439:40f1) has quit (Quit: ZZZzzz…) 2021-05-13 10:39:33 <-- kek_ (~kek_@2a02:168:200f:1f10:410b:731a:6592:864d) has quit (Ping timeout: 246 seconds) 2021-05-13 10:40:19 <-- leduyquang753 (~leduyquan@27.73.62.58) has quit (Quit: leaving) 2021-05-13 10:40:27 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 10:40:30 --> henri (~henri@191.35.140.144) has joined #python 2021-05-13 10:40:33 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-13 10:40:33 <-- yskapell (~masteryod@130.43.62.94.dsl.dyn.forthnet.gr) has quit (Ping timeout: 265 seconds) 2021-05-13 10:40:33 --> cer-0 (~cer-0@189.228.159.74) has joined #python 2021-05-13 10:40:37 <-- ram19890 (~ram@49.205.82.36) has quit (Quit: Konversation terminated!) 2021-05-13 10:40:53 --> CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has joined #python 2021-05-13 10:42:12 --> mefistofeles (~mefistofe@unaffiliated/mefistofeles) has joined #python 2021-05-13 10:42:40 --> Muimi (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-13 10:42:44 --> Sc0tty- (~Sc0tty-@host109-146-141-144.range109-146.btcentralplus.com) has joined #python 2021-05-13 10:43:47 <-- brickfat (~brickfat@unaffiliated/brickfat) has quit (Ping timeout: 246 seconds) 2021-05-13 10:43:47 --> drazan (~drazan@216.243.54.166) has joined #python 2021-05-13 10:44:42 <-- thinkofher0 (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-13 10:44:48 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 246 seconds) 2021-05-13 10:45:00 <-- schumaml (~schumaml@dslb-188-105-193-002.188.105.pools.vodafone-ip.de) has quit (Quit: WeeChat 3.0.1) 2021-05-13 10:45:07 --> thinkofher0 (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-13 10:45:09 <-- HaMsTeRs (~mx@49.130.66.230) has quit (Quit: Konversation terminated!) 2021-05-13 10:45:46 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-13 10:45:50 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-13 10:46:24 --> HaMsTeRs (~mx@49.130.66.230) has joined #python 2021-05-13 10:49:01 <-- Jerrynicki (~niklas@p200300f577051900e09ed9849bf65c9a.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-13 10:49:38 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-13 10:51:50 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-13 10:52:03 --> yskapell (~masteryod@77.49.74.60.dsl.dyn.forthnet.gr) has joined #python 2021-05-13 10:52:20 --> burakcank (~burakcank@159.146.43.66) has joined #python 2021-05-13 10:52:33 --> slurpyb (~slurpyb@2001:8003:8d0e:1000:ec24:5f2:a02f:e7a1) has joined #python 2021-05-13 10:52:48 --> gvsa123 (~gvsa123@d50-93-30-240.abhsia.telus.net) has joined #python 2021-05-13 10:53:03 <-- mcope (~mcope@88.98.90.199) has quit (Quit: Konversation terminated!) 2021-05-13 10:53:22 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-13 10:53:34 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-13 10:53:57 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-13 10:53:57 <-- whiteshadow (~whiteshad@gateway/tor-sasl/whiteshadow) has quit (Remote host closed the connection) 2021-05-13 10:54:04 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-13 10:54:42 --> whiteshadow (~whiteshad@gateway/tor-sasl/whiteshadow) has joined #python 2021-05-13 10:55:04 --> Masterphi (~Masterphi@unaffiliated/masterphi) has joined #python 2021-05-13 10:55:56 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 10:58:28 <-- sesser (~sesser@107.13.245.224) has quit (Ping timeout: 252 seconds) 2021-05-13 10:58:32 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-13 10:58:34 --> parabolize (~paraboliz@98.43.173.221) has joined #python 2021-05-13 10:58:45 <-- hypc (~Thunderbi@113.232.132.232) has quit (Read error: Connection reset by peer) 2021-05-13 10:58:51 petaflot KirkMcDonald: I want to empty the kwargs dict and save each {key for key in kwargs.keys()} as self.key = kwargs[key] 2021-05-13 10:58:51 --> hypc1 (~Thunderbi@113.232.132.232) has joined #python 2021-05-13 10:59:10 bancroft is there a modern way to pip the output of subprocess in realtime to a file? 2021-05-13 10:59:14 bancroft *pipe 2021-05-13 10:59:22 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 11:00:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 11:00:05 <-- diogenese (~diogenese@diogenese.velotech.net) has quit (Quit: Has anybody seen the bridge?) 2021-05-13 11:00:10 KirkMcDonald petaflot: As in, you want a set of the keys? 2021-05-13 11:00:22 --> diogenese (~diogenese@diogenese.velotech.net) has joined #python 2021-05-13 11:00:44 grym bancroft: yes, subprocess functions take a stdin/stdout/stderr kwarg that accepts a file object 2021-05-13 11:00:50 petaflot popping items from the dict helps for memory usage (or else, AFAIK, I need to save each key I've processed to a list and in a later loop pop each item from the kwargs dict so as to free the memory and prevent the keys/items to be used in a more-further loop 2021-05-13 11:00:55 grym bancroft: https://docs.python.org/3/library/subprocess.html#subprocess.Popen 2021-05-13 11:01:12 -- hypc1 is now known as hypc 2021-05-13 11:01:17 --> trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has joined #python 2021-05-13 11:02:06 KirkMcDonald petaflot: I would not worry about memory usage in this context. How many items are in this dict in the first place? 2021-05-13 11:02:07 <-- testnode (bbc26dff@187.194.109.255) has quit (Quit: Connection closed) 2021-05-13 11:02:12 bancroft grym: could I pass the same file to stderr/strout? 2021-05-13 11:02:16 bancroft *stdout 2021-05-13 11:02:28 --> nbro_ (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 11:03:02 grym bancroft: i do not know 2021-05-13 11:03:08 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-xmuefqwmfwgorphz) has joined #python 2021-05-13 11:03:18 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 11:03:19 grym bancroft: maybe? if you opened it with 'a'? i'm really not sure 2021-05-13 11:03:58 KirkMcDonald bancroft: You can, yes. 2021-05-13 11:04:27 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 260 seconds) 2021-05-13 11:04:44 KirkMcDonald bancroft: Same principle as using `2>&1` in a shell. 2021-05-13 11:05:19 --> mike18 (~geri@71-220-52-187.mpls.qwest.net) has joined #python 2021-05-13 11:05:51 petaflot KirkMcDonald: let me decompose the problem in two parts: the first being https://bpa.st/DPZQ and will result in "RuntimeError: dictionary changed size during iteration". note _quite_ a duplicate of using iteritems() https://stackoverflow.com/questions/6777485/modifying-a-python-dict-while-iterating-over-it because AFAIK iteritems() does not let me have the key 2021-05-13 11:06:44 --> senux (~senux@24.35.76.153) has joined #python 2021-05-13 11:07:03 KirkMcDonald iteritems() does not exist anymore. 2021-05-13 11:07:15 petaflot KirkMcDonald: there are a lot of items in the dict, so memory usage _is_ a problem. 2021-05-13 11:07:15 <-- nbro_ (~nbro@unaffiliated/nbro) has quit (Ping timeout: 260 seconds) 2021-05-13 11:07:38 <-- Masterphi (~Masterphi@unaffiliated/masterphi) has quit (Ping timeout: 252 seconds) 2021-05-13 11:08:00 petaflot KirkMcDonald: well I've never used iteritems() because the key information is lost (or I misunderstood sth) 2021-05-13 11:08:08 grym petaflot: `for key,val in mydict.items()` 2021-05-13 11:08:17 grym gives you each pair in turn 2021-05-13 11:08:23 KirkMcDonald petaflot: I am not sure what that means. 2021-05-13 11:08:35 Yhg1s petaflot: dict.iteritems() in Python 2 yielded (key, value) tuples, and in Python 3 you'd just use dict.items(). 2021-05-13 11:09:07 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 260 seconds) 2021-05-13 11:09:19 Yhg1s petaflot: in either case you can't modify the dict while you iterate over it. Don't modify the dict, or iterate over a copy of the keys/items. 2021-05-13 11:09:32 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-13 11:09:34 -- thinkofher0 is now known as thinkofher 2021-05-13 11:09:36 KirkMcDonald One option is something like: while d: key, value = d.popitem() 2021-05-13 11:09:45 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-13 11:09:56 KirkMcDonald Though note that this reverses the order of the dict, if that's something you care about. 2021-05-13 11:10:32 petaflot grym: this is correct and I remember seeing it (I should get used to using it). that does not change the problem that I now face, whic is popping items from the dict without first making a copy of the keys of the dict : I understand how this can be a problem when adding elements to the dict in the loop, now how it is a problem when merely removing/popping stuff from it 2021-05-13 11:10:43 <-- senux (~senux@24.35.76.153) has quit (Client Quit) 2021-05-13 11:10:52 Yhg1s petaflot: because it resizes the dict. 2021-05-13 11:11:18 --> senux (~senux@24.35.76.153) has joined #python 2021-05-13 11:12:33 <-- burakcank (~burakcank@159.146.43.66) has quit (Ping timeout: 240 seconds) 2021-05-13 11:12:39 --> ffe4 (~ffe4@200116b82c4bf000f1994f206a474870.dip.versatel-1u1.de) has joined #python 2021-05-13 11:13:26 <-- yacatuco (~yacatuco@188.127.185.72) has quit (Quit: Leaving) 2021-05-13 11:13:29 <-- trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-13 11:13:37 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-13 11:13:39 --> greentree47 (~greentree@unaffiliated/greentree47) has joined #python 2021-05-13 11:14:01 petaflot Yhg1s: I get this, but how come the interpreter cannot just "take the first element of the pile (index 0) if it matches some condition pop it out from the pile (keep index at zero) and let the pile `drop down so element1 takes the place of element0`, if it does not match take the second element of the pile (index1) and go on like this" 2021-05-13 11:14:20 KirkMcDonald "Just"? 2021-05-13 11:15:36 KirkMcDonald petaflot: This is not the way in which the dict type works. 2021-05-13 11:15:36 Yhg1s petaflot: because _other_ operations would be much less efficient to try and cope with those kinds of changes. The thing you're trying to do is not supported because it's rare, it's easily handled differently, and it's important that the most common operations are most efficient. 2021-05-13 11:15:52 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-13 11:16:29 --> Rapture (~Rapture@71.236.251.149) has joined #python 2021-05-13 11:16:29 greentree47 is python supposed to have memory problems? one of my private flask servers somehow went oom 2021-05-13 11:16:43 KirkMcDonald greentree47: Not inherently. 2021-05-13 11:16:52 greentree47 i cant really find much about it outside of an oom message in /var/log/syslog 2021-05-13 11:16:53 Yhg1s greentree47: you can certainly create programs that have memory problems. 2021-05-13 11:16:58 petaflot KirkMcDonald: yeah, "just". I can pile up some coins, start from the bottom of the pile and remove them sequentially if they are - ie. 20 cents coins - while leaving the others on the pile. _nothing_ prevents me (except from keeping track of the current position of the pile - and the size of the coin I last removed (!)) from iterating over the entire pile until I reach the top of it 2021-05-13 11:16:59 --> sazawal (~sazawal@2409:4043:2e1a:54c5:1c96:3ab7:d517:e7e6) has joined #python 2021-05-13 11:17:00 <-- ffe4 (~ffe4@200116b82c4bf000f1994f206a474870.dip.versatel-1u1.de) has quit (Ping timeout: 246 seconds) 2021-05-13 11:17:04 <-- sazawal (~sazawal@2409:4043:2e1a:54c5:1c96:3ab7:d517:e7e6) has quit (Client Quit) 2021-05-13 11:17:15 greentree47 it's not a huge flask app tbh, just a few routes to do some stuff and the application isnt like advertised to the world or anything lol 2021-05-13 11:17:27 greentree47 aside from like 5 people 2021-05-13 11:17:40 KirkMcDonald petaflot: Did you see my suggestion of several minutes ago? 2021-05-13 11:17:53 petaflot Yhg1s: uh... for me it's one of the most common operations. 2021-05-13 11:18:33 Yhg1s petaflot: I can guarantee you it's not. dicts are used _everywhere_. But even if it were, the dict type isn't written for your use-case :) 2021-05-13 11:18:39 petaflot KirkMcDonald: do you mean "for key,item in dict.items(): [...]" ? 2021-05-13 11:18:42 Yhg1s petaflot: so, either write your own type, or write different code. 2021-05-13 11:18:48 KirkMcDonald petaflot: That was not my suggestion, no. 2021-05-13 11:18:49 <-- HaMsTeRs (~mx@49.130.66.230) has quit (Quit: Konversation terminated!) 2021-05-13 11:18:56 Yhg1s petaflot: you were given like five different ways to do the basic thing. 2021-05-13 11:19:18 petaflot KirkMcDonald: you mean "while d: key, value = d.popitem()" ? I had not seen it 2021-05-13 11:19:24 KirkMcDonald That's the one. 2021-05-13 11:19:47 <-- SYNTAXX-3RR0R (~SYNTAXX-3@41.144.76.105) has quit (Quit: Lost terminal) 2021-05-13 11:19:51 KirkMcDonald petaflot: But, how many keys *are* we talking about? Thousands? Millions? Billions? 2021-05-13 11:20:09 --> gossie (~gossie@2a10:3781:328:1:e1d:50cc:c868:ca94) has joined #python 2021-05-13 11:20:17 petaflot lemme try sth... 2021-05-13 11:20:17 --> trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has joined #python 2021-05-13 11:20:19 --> __that__ (5684691c@host86-132-105-28.range86-132.btcentralplus.com) has joined #python 2021-05-13 11:20:19 --> gswallow (~gswallow@207.250.136.179) has joined #python 2021-05-13 11:20:37 --> death__ (~UserNick@unaffiliated/death916) has joined #python 2021-05-13 11:21:11 <-- Death916 (UserNick@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-13 11:21:12 -- death__ is now known as Death916 2021-05-13 11:21:31 <-- larkfisherman (~pasko@217.75.204.126) has left #python 2021-05-13 11:23:06 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 260 seconds) 2021-05-13 11:23:11 <-- rookayy (ricksanche@gateway/vpn/protonvpn/ricksanchez) has quit (Quit: Leaving) 2021-05-13 11:23:43 petaflot KirkMcDonald: https://bpa.st/X5OA loops forever, obviously. unless I copy write to a new dict (which is an acceptable but IMHO unpretty solution) 2021-05-13 11:23:55 --> cranberry (~cranberry@unaffiliated/cranberry) has joined #python 2021-05-13 11:24:01 KirkMcDonald ...? 2021-05-13 11:24:11 KirkMcDonald *What* was your goal again? 2021-05-13 11:24:11 Yhg1s petaflot: why are you removing the item if you're just going to add it back? 2021-05-13 11:24:30 --> ffe4 (~ffe4@200116b82c4bf000f1994f206a474870.dip.versatel-1u1.de) has joined #python 2021-05-13 11:24:30 petaflot Yhg1s: I want to leave it in for furthe rprocessing 2021-05-13 11:24:35 petaflot in another loop 2021-05-13 11:24:39 Yhg1s petaflot: okay, so don't remove it? 2021-05-13 11:24:48 Yhg1s petaflot: can you show your *actual* code instead? 2021-05-13 11:25:06 --> panikovsky (~panikovsk@46.61.106.129) has joined #python 2021-05-13 11:25:37 petaflot how can I _not_ remove it if I need "key, value = d.popitem()" to make a test on either the key or the value? 2021-05-13 11:26:02 cranberry Hi, sorry to interupt - is there a way to select a random key within a JSON array containing several ones? I am using pyjq like this: pyjq.first("." + category, json.load(file) and would like to only grab one of the comma seperated list of outputs 2021-05-13 11:26:06 Yhg1s petaflot: you don't need that at all. 2021-05-13 11:26:13 KirkMcDonald petaflot: Let's not get too far down that rabbit hole. What is the problem you are trying to solve? 2021-05-13 11:26:18 Yhg1s petaflot: you started by asking about modifying the dict during iteration. That's why KirkMcDonald suggested that alternative. 2021-05-13 11:26:31 petaflot Yhg1s: my code would get you crazy. really. I'll be glad to make a screencast very soon, because unless you see the things it can do you might very well get much confused 2021-05-13 11:26:46 Yhg1s petaflot: if you just want to loop over the dict, 'for k in d: v = d[k]' or 'for k, v in d.items(): ...'. 2021-05-13 11:27:03 Yhg1s petaflot: if you can't show us what you actually want to *do*, we can't really suggest good ways of doing it. 2021-05-13 11:27:11 petaflot I've been working on it for more than 15 years, before python3 came out (which I waited for with much impatience because of the way strings are handled) 2021-05-13 11:27:28 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-13 11:27:40 --> Stonefruit (~Stonefrui@d192-24-55-22.try.wideopenwest.com) has joined #python 2021-05-13 11:28:06 KirkMcDonald petaflot: Try us. 2021-05-13 11:28:15 rendar what about a fuzzy matching? e.g. i have a threshold, say 15%, if result is 16.5% is good too, because that's very close to 15%, best way to compute this in python? 2021-05-13 11:28:43 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-13 11:28:45 --> SpinTronix_ (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has joined #python 2021-05-13 11:28:49 petaflot KirkMcDonald: hey.. we're trying each other out. no offense : I know there is a lot of misunderanding 2021-05-13 11:29:15 KirkMcDonald petaflot: I mean: Don't assume we'll get confused. 2021-05-13 11:29:16 <-- tans994 (a895af5a@gateway/web/cgi-irc/kiwiirc.com/ip.168.149.175.90) has quit (Ping timeout: 252 seconds) 2021-05-13 11:29:29 petaflot KirkMcDonald: Yhg1s: I am building a "thing" to store/index data in a linear non-integer vectorial space 2021-05-13 11:29:46 --> ricksanchez (~ricksanch@35.143.255.39) has joined #python 2021-05-13 11:30:02 <-- Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-13 11:30:02 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 11:30:26 --> tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has joined #python 2021-05-13 11:30:26 petaflot sorry if I offended you. It was not my intention, just the result of trying to explain it to people around me 2021-05-13 11:30:37 _habnabit cranberry, is there a reason you need pyjq for this? indexing a dict isn't something you need a library for 2021-05-13 11:30:43 Stonefruit for benchmarking purposes I'd like to keep track of the memory usage of a python script. I can do this with "/usr/bin/time -v", but I think that once I start a multiprocessing Pool object, I think time loses track of the new processes. so: how can I keep track of memory usage of a multiprocessing-enabled script? 2021-05-13 11:30:56 _habnabit cranberry, and by 'random' do you mean 'arbitrary' or 'different every time, uniformly selected'? 2021-05-13 11:31:23 rendar any help? 2021-05-13 11:31:28 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-13 11:31:30 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-13 11:31:44 --> openBrain (~matt@193.57.125.102) has joined #python 2021-05-13 11:31:51 <-- yashi (~yashi@unaffiliated/yashi) has left #python 2021-05-13 11:31:54 cranberry hi _habnabit, I am not sure I need pyjq, it looked like an intuitive way of selecting a specific part of my JSON API 2021-05-13 11:32:41 KirkMcDonald petaflot: I still want to know about the scale of the dictionary. What sort of order of magnitude are we talking about? 2021-05-13 11:32:41 _habnabit cranberry, 'intuitive' isn't a word i'd ever use regarding programming, but no, indexing the dicts/lists the json module gives you is much easier in many cases 2021-05-13 11:32:45 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-13 11:32:47 <-- amahl (~amahl@dxv5skyg-wwnxw9y666zt-3.rev.dnainternet.fi) has quit (Ping timeout: 250 seconds) 2021-05-13 11:33:14 NoImNotNineVolt pyjq is nice but slow. 2021-05-13 11:33:42 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 11:33:47 <-- __that__ (5684691c@host86-132-105-28.range86-132.btcentralplus.com) has quit (Quit: Connection closed) 2021-05-13 11:33:48 KirkMcDonald rendar: As in, you have two strings, and want to know some percentage of how similar they are to each other? 2021-05-13 11:34:33 cranberry _habnabit: I am new to Python and being new to a language makes things that work easily and quickly look inuitive. I of course agree that does not always mean they actually are sustainably intuitive and would be grateful to be pointed in the right direction as to how else I can specify selectors to make use of the JSON API 2021-05-13 11:34:57 rendar KirkMcDonald: nope, that's just a threshold, 15% that i have to compare with a computation.. if that computation returns =<15% then it's ok, otherwise no, problem is acceptable values are also ok with "close" values, e.g. 16% 16.5% 2021-05-13 11:35:04 _habnabit cranberry, i mean.. it's a dict. `your_dict = json.load(..); your_dict[some_key]` 2021-05-13 11:35:08 NoImNotNineVolt we use pyjq to allow users to define custom logic, specifically to define the conditions during which user-defined custom rules will execute. however, iterating over a sequence of jq expressions to find the one which "matches" a given input, it's slow. 2021-05-13 11:35:59 petaflot KirkMcDonald: so far I am using dicts that are a few thousand elements long. it doesn't seem much, but with the overhead created by UI components it can get pretty slow and use a fairly large amount of RAM (I've seen my code use some 2GB of memory). It is possible that my coding style is unappropriate, but I somehow need something that "seems to work" on order to get funding to hire better-than-me 2021-05-13 11:35:59 KirkMcDonald rendar: In other words, the threshold is really slightly larger than 15%. 2021-05-13 11:36:05 petaflot developpers so as to scale the thing for a more general use (until then it won't be much more than a toy) 2021-05-13 11:36:17 <-- ricksanchez (~ricksanch@35.143.255.39) has quit (Ping timeout: 246 seconds) 2021-05-13 11:36:27 KirkMcDonald petaflot: A few thousand is not very large. Kilobytes. 2021-05-13 11:36:40 KirkMcDonald petaflot: I would not worry about making a temporary copy in this context. 2021-05-13 11:36:52 Yhg1s Although it's still not clear you *need* a temporary copy. 2021-05-13 11:36:59 KirkMcDonald Indeed. 2021-05-13 11:37:06 <-- openBrain (~matt@193.57.125.102) has left #python 2021-05-13 11:37:12 KirkMcDonald We still haven't heard what you're *doing* with the thing. 2021-05-13 11:37:32 petaflot well I guess I'm much lamer at coding than I thought I was. even though I started coding in ASM. or maybe there's some overhead somewhere in the chain that I'not clear about 2021-05-13 11:38:13 InPhase petaflot: Try changing your example to: for key in list(d.keys()): if not d[key]: d.pop(key) 2021-05-13 11:38:23 <-- markb1 (~mbiggers@2603-6080-6009-9ec0-047d-bdb6-9140-706e.res6.spectrum.com) has quit (Remote host closed the connection) 2021-05-13 11:38:29 Yhg1s InPhase: ... why? 2021-05-13 11:38:38 petaflot Yhg1s: it would not be a temporary copy. it would be like another pile in "Hanoi Towers". so mayybe I'm trying to solve the hanoi towers in a single pile 2021-05-13 11:38:49 InPhase Yhg1s: Because finite runtimes beat infinite runtimes? 2021-05-13 11:39:03 Yhg1s InPhase: they already said they didn't actually want to delete items from the dict. 2021-05-13 11:39:04 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-13 11:39:12 petaflot which is - kinda obviously - impossible 2021-05-13 11:39:19 Stonefruit rendar: I think I joined a bit late, but then why not just make a hard cutoff at 16.5%? 2021-05-13 11:39:24 InPhase I did not see that part. Then it was not a good example. 2021-05-13 11:39:47 rendar Stonefruit: maybe you're right 2021-05-13 11:39:48 KirkMcDonald petaflot: It is very difficult to make cogent suggestions without some actual information about the problem being solved. 2021-05-13 11:39:51 Yhg1s petaflot: the alernatives suggested to allow mutation of a dict you're iterating over include creating a temporary copy. I'm saying it's not clear you actually need to mutate the dict you're iteratin gover. 2021-05-13 11:40:58 <-- Socra (~Socra@88.202.177.174) has quit (Ping timeout: 265 seconds) 2021-05-13 11:41:01 Stonefruit rendar: I guess you could be fuzzy about it and accept it with some probability which vanishes past the boundary, e.g. exp(-(percent-15)/k) (though not quite because you probably want it to hit 0 at some point) 2021-05-13 11:41:13 <-- lucad111 (~lucad111@linaro/lucad111) has quit (Ping timeout: 252 seconds) 2021-05-13 11:41:26 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 240 seconds) 2021-05-13 11:41:46 --> lucad111 (~lucad111@linaro/lucad111) has joined #python 2021-05-13 11:42:01 bancroft KirkMcDonald grym thanks :) 2021-05-13 11:42:12 petaflot KirkMcDonald: so far my UI code uses kivy and is some 600 lines long. but unless you understand _what_ I'm trying to solve you won't get far by just reading it : it's like talking about the algorithm of solving a 24-faced rubik's cube without having ever seen one before 2021-05-13 11:42:13 --> Socra (~Socra@88.202.177.174) has joined #python 2021-05-13 11:42:44 --> n00b101 (uid448161@gateway/web/irccloud.com/x-jczlczuknndbpojn) has joined #python 2021-05-13 11:43:05 petaflot Yhg1s: I guess popping the data out of my dict and popping it into another - altough temporary dict - is the best solution so far 2021-05-13 11:43:27 KirkMcDonald petaflot: Why even pop it out of the first dict? 2021-05-13 11:43:46 --> jcarl43 (~jcarl@node-1w7jr9qqv3v3vu0rdouj0ru9w.ipv6.telus.net) has joined #python 2021-05-13 11:43:57 --> Jerrynicki (~niklas@p200300f5770519002a774d0b6da369b0.dip0.t-ipconnect.de) has joined #python 2021-05-13 11:44:02 InPhase petaflot: It doesn't need to be a description of the entire program, but you should skim over this. You are in an xy regime I think: https://xyproblem.info/ 2021-05-13 11:44:07 --> leitz (~LeamHall@c-174-56-144-2.hsd1.sc.comcast.net) has joined #python 2021-05-13 11:44:11 --> amahl (~amahl@dxv5skyc7q7-qtrd2229t-3.rev.dnainternet.fi) has joined #python 2021-05-13 11:44:23 <-- gpanders (~gpanders@c-73-26-133-58.hsd1.nm.comcast.net) has left #python ("WeeChat 3.1") 2021-05-13 11:45:41 KirkMcDonald petaflot: Also I have worked with vector spaces before. I'm undaunted. 2021-05-13 11:45:44 --> alexgr (~alexgr@unaffiliated/alexgr) has joined #python 2021-05-13 11:46:11 <-- adhawkins (~adhawkins@musicbrainz/user/adhawkins) has left #python ("The Lounge - https://thelounge.chat") 2021-05-13 11:46:15 petaflot InPhase: lol, not the first time someone sends me this link. My problem is _semantic_ ; afaik the (non-integer/fractal) space I'm adressing is wider than the scope of all human languages put together. as far as I'm concerned, I've only seen a tiny _part_ of if and I am not sure I will ever see the whole picture 2021-05-13 11:46:39 grym petaflot: it's pretty easy to make a honkin' big vector space 2021-05-13 11:46:46 grym efficiently navigating it is the fun bit 2021-05-13 11:47:27 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 11:47:28 petaflot remember we're talking about linear algebra in not 2-D, not 3-D, not 4-D, but sth like pi-D 2021-05-13 11:47:33 grym yeah; so what 2021-05-13 11:47:39 <-- Sc0tty- (~Sc0tty-@host109-146-141-144.range109-146.btcentralplus.com) has quit (Quit: Leaving) 2021-05-13 11:48:11 <-- insamniac (~sam@47.157.248.26) has quit (Ping timeout: 246 seconds) 2021-05-13 11:48:15 cranberry _habnabit: Thank you for the input, I attempted constructing it using your method, however think I'm either using it wrong or it is not liking (?) the data I feed in: " TypeError: newf() takes 4 positional arguments but 5 were given" 2021-05-13 11:48:18 grym it does make the ol' GPU plotz a bit, though :) 2021-05-13 11:48:21 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-13 11:48:27 KirkMcDonald petaflot: My concern is that I'm perceiving a contradiction here between the difficulty you're ascribing to the problem and the difficulty you're apparently experiencing with trivial dictionary operations. 2021-05-13 11:48:31 petaflot well I've gotten enough clues to keep on working at least 30 minutes ago 2021-05-13 11:48:36 _habnabit cranberry, pastebin your code and full traceback 2021-05-13 11:48:42 cranberry ok 2021-05-13 11:48:53 petaflot now I'm just answering your questions 2021-05-13 11:49:30 KirkMcDonald petaflot: Your question was how to write some code, and we still haven't seen the danged code. 2021-05-13 11:49:58 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 268 seconds) 2021-05-13 11:50:33 <-- greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has quit (Remote host closed the connection) 2021-05-13 11:50:35 <-- Thanatos (~Thanatos@197.210.70.253) has quit (Ping timeout: 268 seconds) 2021-05-13 11:50:37 --> ninjak (~ninjak@94-36-163-195.adsl-ull.clienti.tiscali.it) has joined #python 2021-05-13 11:50:47 --> greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has joined #python 2021-05-13 11:51:11 petaflot KirkMcDonald: there are _dozens_ of occurences of the code. 2021-05-13 11:51:51 _habnabit ("localized entirely on your computer? can we see any of them?" "no") 2021-05-13 11:52:57 ses1984 i'm trying to read from a zipfile that contains a few files, zipfile provides a read method that returns bytes, i know this is a text file, is there a way to read over this data line by line without getting it all into memory at once? 2021-05-13 11:53:19 <-- Nomad_ (~nomad@ipv6.rdlg.net) has quit (Remote host closed the connection) 2021-05-13 11:53:23 petaflot anyway I will keep on working. and you can be sure you will hear/read more about this later on: it might involve a specific "grammar" with runes or hangul (which I don't know about but simply like because it involves 24 distinct common symbols) 2021-05-13 11:53:31 --> contagious_meow (~contagiou@197.156.190.171) has joined #python 2021-05-13 11:53:31 --> Blankspace (~asddf@unaffiliated/blankspace) has joined #python 2021-05-13 11:53:52 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-13 11:54:37 <-- Blankspace (~asddf@unaffiliated/blankspace) has quit (Quit: why did you ban me) 2021-05-13 11:55:07 fb_ hey, can anyone advice on pytest. having a module named main.py that accepts args. The idea is to write a simple test to be run via pytest. The assertion to be made against the exec result of the main, 0 or 1. How to implement this ? 2021-05-13 11:55:11 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-13 11:55:14 --> Elladan (~elladan@unaffiliated/elladan) has joined #python 2021-05-13 11:55:24 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-13 11:55:33 _habnabit fb_, is there a reason your main.py doesn't define a function you could call instead? 2021-05-13 11:55:35 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-13 11:55:39 _habnabit fb_, that makes testing much easier 2021-05-13 11:55:45 petaflot KirkMcDonald: I realize I missed your message about the rabbit hole : in more than one way I feel like I'm trying to get _out_ of that hole <3 2021-05-13 11:56:11 <-- tm007 (uid287041@gateway/web/irccloud.com/x-ytxugvfwpuecbecy) has quit (Quit: Connection closed for inactivity) 2021-05-13 11:56:12 leitz if full_list and excluded are lists of strings, and I iterate with "for item in full_list:", i is set to a generator object. How do I get the string? 2021-05-13 11:56:15 leitz https://gist.github.com/LeamHall/118393cf980a75382ceeca1d3a36dcb4 2021-05-13 11:56:26 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-13 11:56:27 rendar is this invalid syntax?! https://bpa.st/LVEQ 2021-05-13 11:56:43 _habnabit leitz, 'the' string? what string? 2021-05-13 11:56:53 KirkMcDonald rendar: Looks valid. 2021-05-13 11:57:01 grym leitz: the string is `item` 2021-05-13 11:57:09 grym leitz: in the scope of that for loop 2021-05-13 11:57:24 rendar KirkMcDonald: but: https://bpa.st/VR4Q 2021-05-13 11:57:27 <-- hypc (~Thunderbi@113.232.132.232) has quit (Read error: Connection reset by peer) 2021-05-13 11:57:28 KirkMcDonald rendar: Though I'd probably use 'def' rather than 'lambda', since you're just assigning it to a name anyway. 2021-05-13 11:57:34 _habnabit rendar, you forgot a , 2021-05-13 11:57:52 KirkMcDonald Ah yes, a comma. 2021-05-13 11:57:53 fb_ _habnabit, this can be achieved by placing a code into some method main() in main.py for instance, but still don't know how to write a test that accepts *args in a way that simulates exec from the terminal, "$main argA 1" and how to assert against the exec result 2021-05-13 11:57:59 --> Nomad_ (~nomad@ipv6.rdlg.net) has joined #python 2021-05-13 11:58:23 leitz _habnabit, I'm trying to get the strings from full_list that don't start with any of the strings in excludes. 2021-05-13 11:58:31 _habnabit leitz, and do what with them? 2021-05-13 11:58:45 _habnabit fb_, it's common to do something like `def main(argv=None): if argv is None: argv = sys.argv` 2021-05-13 11:58:49 rendar _habnabit: oh right, thanks 2021-05-13 11:59:01 rendar KirkMcDonald: yep, maybe def is better here thanks 2021-05-13 11:59:01 _habnabit fb_, then you can call it whatever 2021-05-13 11:59:09 adder i just watched some video, are python dicts implemented as arrays containing linked lists which in turn contain values? 2021-05-13 11:59:16 leitz _habnabit, right now, just get the string. That's all I'm focussing on. 2021-05-13 11:59:18 _habnabit adder, no 2021-05-13 11:59:23 KirkMcDonald adder: Nope. 2021-05-13 11:59:23 --> pedahzur (~jkugler@216-67-98-32.static.acsalaska.net) has joined #python 2021-05-13 11:59:35 _habnabit leitz, what does it mean to 'get' it? 2021-05-13 11:59:58 grym adder: https://www.youtube.com/watch?v=npw4s1QTmPg 2021-05-13 12:00:06 grym adder: found that one? 2021-05-13 12:00:07 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 12:00:38 adder grym, oh nice. i'll look. no, i was just watching a video on some interview prep site 2021-05-13 12:00:57 KirkMcDonald adder: That is a common technique for hash tables, but it's not what Python's dict type uses. 2021-05-13 12:01:12 adder KirkMcDonald, i see, thanks 2021-05-13 12:01:27 InPhase leitz: [s for s in full_list if s[0] not in excludes] 2021-05-13 12:01:41 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-13 12:01:47 rendar KirkMcDonald: dict doesn't use hash tables?! 2021-05-13 12:01:58 Yhg1s rendar: it doesn't use *that kind* of hash table. 2021-05-13 12:02:03 rendar oh ok 2021-05-13 12:02:24 Yhg1s (Python's dicts are open addressing hash tables with a prime probe, mapping to integers in an array of values.) 2021-05-13 12:02:34 Yhg1s eh, mapping to indices in an array of values, rather. 2021-05-13 12:02:51 leitz InPhase, thanks. I'll have to work with startswith, since excludes can be longer strings. 2021-05-13 12:03:11 KirkMcDonald "Prime probe" basically meaning "linear probe with a twist." 2021-05-13 12:03:31 rendar python should use abseil hash tables, which use SSE* intructions to improve speed by A LOT, and they're very scalable 2021-05-13 12:03:34 <-- fflori (~fflori@mob-194-230-155-245.cgn.sunrise.net) has quit (Read error: Connection reset by peer) 2021-05-13 12:03:45 Yhg1s rendar: why do you think it would improve them? 2021-05-13 12:03:52 KirkMcDonald rendar: Consider the Python object model. 2021-05-13 12:03:54 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 12:04:20 rendar Yhg1s: that technique is a lot faster in retrieve keys, and with SSE it can check 16/32/64 keys at operation 2021-05-13 12:04:45 KirkMcDonald rendar: What is a key? 2021-05-13 12:04:47 InPhase leitz: Sure. 2021-05-13 12:04:59 rendar KirkMcDonald: huh? the dict's key.. 2021-05-13 12:05:05 KirkMcDonald rendar: But specifically. 2021-05-13 12:05:05 Yhg1s rendar: I understand it is faster for specific operations on specific data types. Why do you think they would make *Python dicts* faster? 2021-05-13 12:05:34 rendar Yhg1s: because it's a faster hash table for GENERAL strings keys, the exact data python dict uses 2021-05-13 12:05:37 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 265 seconds) 2021-05-13 12:05:44 Yhg1s rendar: Python dicts do not use string keys. 2021-05-13 12:05:52 <-- mekhami (~ldv@2605:a601:aaf2:ef00:383f:a991:12f0:4f28) has quit (Quit: WeeChat 1.9.1) 2021-05-13 12:06:09 kindlehl python is a good programming language 2021-05-13 12:06:14 rendar well, mostly yes! when they are not strings, they are pointers, where it excels too 2021-05-13 12:06:21 Yhg1s rendar: they're not pointers. 2021-05-13 12:06:30 rendar Yhg1s: what they are, then? 2021-05-13 12:06:32 Yhg1s rendar: they're *Python objects*. Different objects can compare and hash equal. you can't just pretend they're pointers. 2021-05-13 12:06:41 fb_ _habnabit, I use argparse, is it possible to pass sys.args to argparse in the method ? 2021-05-13 12:06:42 InPhase leitz: You can nest: [s for s in full_list if not any(s.startswith(e) for e in excludes)] 2021-05-13 12:06:49 <-- seednode (~seednode@64-131-31-104.usfamily.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-13 12:06:54 --> ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-13 12:07:03 rendar Yhg1s: ok but in the end, the pyhton C runtime will calculate an hash into some bytes of data, and here we go 2021-05-13 12:07:15 Yhg1s rendar: it may well be that abseil hashes can make Python dicts faster. I doubt it (someone would've tried it at work, where abseil hashes originated ;) but it's possible. You can't tell without trying, though. 2021-05-13 12:07:15 rendar Yhg1s: you can check yourself what i'm saying is true or false, btw 2021-05-13 12:07:16 _habnabit fb_, consider using https://click.palletsprojects.com/en/8.0.x/ instead if you can, but sure; argparse's parse_args method takes argv as an argument 2021-05-13 12:07:39 grym leitz: there's also probably a tidy way to express this with set operations, if list order isn't important 2021-05-13 12:07:39 Yhg1s rendar: there is a _lot_ more involved than just calculating the offset of a value in an array. 2021-05-13 12:07:39 leitz InPhase, nice! I'll give that a test. 2021-05-13 12:08:18 leitz grym, I'm trying for a set, but I don't have the skills yet. Order is irrelevant. 2021-05-13 12:08:20 supakeen Besides you can't just go "SSE SO FAST" when Python dicts already have a lot of optimization including cache line sizes. 2021-05-13 12:08:20 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-13 12:08:25 --> HaMsTeRs (~mx@49.130.122.18) has joined #python 2021-05-13 12:08:25 leitz grym, thanks! 2021-05-13 12:08:27 --> seednode (~seednode@64-131-31-104.usfamily.net) has joined #python 2021-05-13 12:08:36 Yhg1s rendar: if you want to learn about the dict implementation, performance considerations and boundary conditions, there's https://github.com/python/cpython/blob/main/Objects/dictnotes.txt 2021-05-13 12:08:41 rendar Yhg1s: i'm speaking of the lowest level result: even if you have PyObject's structure, the hash table is not even involved with them.. the hash table only get a key (char*,size) and an hash function.. 2021-05-13 12:08:51 rendar Yhg1s: ok, thanks, i'll read that 2021-05-13 12:08:52 Yhg1s rendar: again, there is not char*. 2021-05-13 12:09:22 rendar Yhg1s: so you're saying that python uses a special purpose hash table, which does low level operations on the entire data structure? 2021-05-13 12:09:33 supakeen rendar: I think you should read dict.c instead of being really adamant about how it works and being very wrong. 2021-05-13 12:09:43 rendar ok 2021-05-13 12:09:47 Yhg1s rendar: not even that! It asks objects for their hash value, and asks them to compare to each other. 2021-05-13 12:09:49 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 260 seconds) 2021-05-13 12:09:56 Yhg1s rendar: so it's _higher_ level, not lower level. 2021-05-13 12:10:02 supakeen * dictobject.c :) 2021-05-13 12:10:40 rendar Yhg1s: uhm, that the hash table asks the PyObject hash value, is ok, but.. asks them to compare to each other?! i can't get this, what you mean exactly?! 2021-05-13 12:10:55 bjs rendar: if they collide 2021-05-13 12:11:01 Yhg1s or if they don't collide. 2021-05-13 12:11:11 kindlehl can't you all just be happy to have python? Its so glorious, why squabble over meaningless things 2021-05-13 12:11:15 Yhg1s rendar: two keys are only the same if they compare equal. So they have to be compared. 2021-05-13 12:11:29 rendar but..that's what a normal hash tables does.. 2021-05-13 12:11:31 Yhg1s kindlehl: what makes you think we're not happy with it? :) 2021-05-13 12:11:59 kindlehl because you are doing that thing where you can't just let someone be wrong 2021-05-13 12:12:01 supakeen rendar: In this case the 'keys' themselves can decide how they compare to eachother. 2021-05-13 12:12:11 Yhg1s rendar: only for data types it knows about. How would the abseil hash table know how to compare Python objects? 2021-05-13 12:12:18 grym kindlehl: it's called "relaxing on IRC" :) 2021-05-13 12:12:20 <-- MrFixIt (~Sam@c-73-246-215-75.hsd1.il.comcast.net) has quit (Remote host closed the connection) 2021-05-13 12:12:27 rendar i see 2021-05-13 12:12:31 kindlehl you're trying to position yourself as better, like crabs in a bucket. Just relax and pound back some beers bro 2021-05-13 12:12:37 _habnabit rendar, do you know about __eq__? 2021-05-13 12:12:41 Yhg1s kindlehl: we're answering questions someone asked. That's what #python is for. 2021-05-13 12:12:43 bjs kindlehl: you're free to talk about Python if you want 2021-05-13 12:12:44 rendar Yhg1s: you can give your own compare function, btw 2021-05-13 12:12:45 --> Barones (~Barones@2804:48dc:8500:0:88fa:574a:6e9d:e639) has joined #python 2021-05-13 12:12:46 rendar _habnabit: yes 2021-05-13 12:12:47 nedbat kindlehl: what conversation are you talking about? 2021-05-13 12:12:50 kindlehl python is for fraternizing 2021-05-13 12:12:56 Yhg1s kindlehl: not #python, no. 2021-05-13 12:13:01 --> rdimeo (~rdimeo@151.95.190.137) has joined #python 2021-05-13 12:13:04 kindlehl drink motherfucker drink motherfucker drink motherfucker drink! 2021-05-13 12:13:08 bjs kindlehl: stop 2021-05-13 12:13:29 Yhg1s rendar: no, really, I'm quite aware of absl. It's a work product. 2021-05-13 12:13:39 -- Mode #python [+o supakeen] by ChanServ 2021-05-13 12:13:40 <-- NeuroWinter (~NeuroWint@107.172.219.233) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-13 12:13:41 -- Mode #python [+b *!*@unaffiliated/kindlehl/x-1813814] by supakeen 2021-05-13 12:13:43 <-- supakeen has kicked kindlehl (kindlehl) 2021-05-13 12:13:48 -- Mode #python [-o supakeen] by ChanServ 2021-05-13 12:14:13 rendar Yhg1s: huh? man.. with absl you can easily specify an hash function, and a compare function, like you can do easily in almost all C++ hash tables 2021-05-13 12:14:23 rendar in mine too 2021-05-13 12:14:36 --> NeuroWinter (~NeuroWint@107.172.219.233) has joined #python 2021-05-13 12:14:49 Yhg1s rendar: I don't know why you tihnk I don't know this. It's not about whether you *can* use absl's hash tables. It's about whether *it's faster*. 2021-05-13 12:14:52 <-- carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Ping timeout: 240 seconds) 2021-05-13 12:15:01 rendar yes 2021-05-13 12:15:10 Yhg1s rendar: the optimisations in absl hashes won't work for Python objects. 2021-05-13 12:15:15 rendar ok 2021-05-13 12:15:32 supakeen I have a sneaking suspicion with all the incorrectness you just told us that you have no idea or that you're basing that opinion on how you think things work, not how they're actually implemented. 2021-05-13 12:16:12 rdimeo Hi! I'm trying to create a package + subpackage using ModuleType, but I'm unable to get it to work with Python 3.4 (works in 3.7) https://www.pastery.net/xzpkew/ could anybody help? 2021-05-13 12:16:12 <-- Jormungandr89 (~brad@136.49.61.2) has quit (Ping timeout: 240 seconds) 2021-05-13 12:16:29 _habnabit rdimeo, 3.4 is.. quite old. do you really need to support it? 2021-05-13 12:16:33 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-13 12:16:35 Yhg1s rdimeo: by far the simplest thing is "don't do it". Why do you want to create actual ModuleTypes? 2021-05-13 12:16:45 rdimeo I hoped to be able to support as old as 3.2 to be honest... :( 2021-05-13 12:16:58 nanonyme rdimeo, everything beyond 3.5 is EOL 2021-05-13 12:17:00 _habnabit rdimeo, 3.2 is before python 3 was usable. nobody uses it 2021-05-13 12:17:00 Yhg1s rdimeo: just create a class that behaves like a module (however you want it to behave) and inject it into sys.modules. 2021-05-13 12:17:07 Yhg1s rdimeo: that said, for packages, you need to set the __path__ attribute. 2021-05-13 12:17:30 <-- securethemews (~securethe@2a00:23c4:1e98:8f00::4) has quit (Remote host closed the connection) 2021-05-13 12:17:33 Yhg1s rdimeo: oh, and in this case, set base_module.submodule to submodule. 2021-05-13 12:17:42 tos9 there's a thing in importlib to do this IIRC? 2021-05-13 12:17:48 tos9 but yeah hopefully the real answer is "don't do it" 2021-05-13 12:18:30 tos9 importlib.util.module_from_spec is I think the one I was recalling (though whether it's relevant depends on how you're getting your fake module) 2021-05-13 12:18:34 rdimeo Yhg1s: I have that already, I have the actual module, the problem is that 3.4 cannot find it (or this is what I undertand from my problem. I'm not sure) 2021-05-13 12:19:09 _habnabit rdimeo, do you have users on 3.4 or 3.2, or are you just trying to make the number as low as possible? 2021-05-13 12:19:09 <-- borisrunak (~pkarpesis@static.188.65.46.78.clients.your-server.de) has quit (Quit: Idle timeout reached: 10800s) 2021-05-13 12:19:20 rdimeo Yhg1s: sys.modules has already the base module and the submodule, but when I try "from base import submodule" I get a ImportError: cannot import name "submodule" 2021-05-13 12:19:32 rdimeo _habnabit: the second you said... 2021-05-13 12:19:39 --> kosh (~kosh@p200300d08f15f200e8a417165fdf8bf3.dip0.t-ipconnect.de) has joined #python 2021-05-13 12:19:55 Yhg1s rdimeo: I'm not sure what 'that' you mean. Do you have base_module.submodule assigned? You don't in your example. 2021-05-13 12:19:56 <-- pun84 (~pun84@pool-108-24-127-194.cmdnnj.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-05-13 12:20:02 rdimeo I'm trying to keep the requirements as broad as I can. I was aiming at 3.2 (the first Python version with a sane ABI) but alas, I have problems on linux 2021-05-13 12:20:07 nanonyme rdimeo, that's pointless. Don't intentionally make your life harder by supporting EOL versions 2021-05-13 12:20:15 Yhg1s rdimeo: there really is no point what so ever in supporting 3.2. 2021-05-13 12:20:16 --> ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has joined #python 2021-05-13 12:20:18 _habnabit rdimeo, i promise you: _nobody_ uses 3.2 2021-05-13 12:20:26 Yhg1s rdimeo: there's extremely little point in supporting anything before 3.6, really. 2021-05-13 12:20:29 _habnabit not even 'nobody who matters'. nobody. 2021-05-13 12:20:30 --> MrFixIt (~Sam@c-73-246-215-75.hsd1.il.comcast.net) has joined #python 2021-05-13 12:20:30 rdimeo Yhg1s: my bad, I misunderstood your suggestion, sorry 2021-05-13 12:21:07 rdimeo _habnabit, Yhg1s that's reassuring, thank you. I'll probably fix the problem *and* raise the requirements 2021-05-13 12:21:13 Yhg1s rdimeo: its' a different matter if you have existing code that already supports it, but for new packages, don't bother with anything before 3.6. 2021-05-13 12:21:29 KirkMcDonald 3.2 was still in the era of needing to convince people to move to Python 3. Things were still settling down. And it's way EOLed in any case. 2021-05-13 12:21:35 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-13 12:21:41 Yhg1s And severely limited in its compatibility. 2021-05-13 12:21:51 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-13 12:22:02 rdimeo I would honestly aim at 3.4. If not else not to raise the requirements too much since the last version of my feature 2021-05-13 12:22:15 rdimeo even though I *do understand* you are right 2021-05-13 12:22:27 grym rdimeo: how big is your user base 2021-05-13 12:22:33 rdimeo an "image thing", I would say 2021-05-13 12:22:47 ELFrederich There's got to be a better way to get the full string out of a re.match object. For instance, if I search "data" using re module and get a match object... data[slice(*match.span())] ... is there a better way to get the entire string of the match? 2021-05-13 12:22:49 rdimeo not sure, few people. Clients, though so... 2021-05-13 12:22:58 _habnabit ELFrederich, match.group(0) 2021-05-13 12:23:13 <-- dvx (~dvx@185.63.97.64) has quit (Quit: dvx) 2021-05-13 12:23:14 grym rdimeo: what is tying them to ancient versions? 2021-05-13 12:23:20 grym that's not a snarky question; there are legit reasons for it 2021-05-13 12:23:41 <-- ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-13 12:23:49 rdimeo grym: no, no: don't worry, I'm not on a defensive stance, it's just that I don't have prompt feedback from our clients 2021-05-13 12:23:53 <-- royo25 (~supergeek@gateway/tor-sasl/royo25) has quit (Quit: Bye) 2021-05-13 12:23:58 ELFrederich _habnabit, thanks. I was using findall and was given tuples, so I switched to finditer to got match objects. 2021-05-13 12:24:00 rdimeo I don't really think people are actually using 3.2 though 2021-05-13 12:24:20 rdimeo even my boss actually suggested we should drop the support, so I guess it's just me being stubborn 2021-05-13 12:24:24 grym rdimeo: before you go around torturing yourself supporting ancient history, then, i would do the business work of finding out if you have to 2021-05-13 12:24:31 --> hhcliff (~user@182.241.160.152) has joined #python 2021-05-13 12:24:44 nanonyme rdimeo, if your boss tells you that you should drop support for something, have a party 2021-05-13 12:24:50 rdimeo grym: amen to that. I think you are right. I guess it's a "old crazy hacker thing" 2021-05-13 12:24:57 rdimeo nanonyme: LOL 2021-05-13 12:24:59 nanonyme rdimeo, most of the time bosses will tell you that you have a business reason not to drop support 2021-05-13 12:25:03 grym rdimeo: yeah. pesky humans! 2021-05-13 12:25:11 --> LuxuryMode (uid91005@gateway/web/irccloud.com/x-jfrsjbqvkuacicsj) has joined #python 2021-05-13 12:25:25 rdimeo grym: you have no idea the patience it takes to be me, sometimes... xD 2021-05-13 12:25:45 LuxuryMode I never can seem to get the syntax correct. How can I flatten this into a list of the messages? `[[ValidationError(['Email cannot be empty for a non-minor Household Member.']), ValidationError(['Email cannot be empty for a Primary Contact.'])], [ValidationError(['Phone Number cannot be empty for a Primary Contact.'])]]` 2021-05-13 12:26:04 <-- hhcliff (~user@182.241.160.152) has quit (Remote host closed the connection) 2021-05-13 12:26:04 <-- Trashlord (~trash@wikipedia/Sentient-Planet) has quit (Quit: "True ignorance is not the absence of knowledge, but the refusal to acquire it.") 2021-05-13 12:26:06 rdimeo I'll put my pride aside and aim at 3.4, but still I wanted to knew why my code wasn't working (this is pretty legitimate) 2021-05-13 12:26:08 --> ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-13 12:26:14 nanonyme rdimeo, it is absolutely wrong to support more things than your company wants to 2021-05-13 12:26:17 leitz inPhase, this is what I have so far. i = [item for item in full_list if not any(item.startswith(e) for e in excludes)][0] 2021-05-13 12:26:18 rdimeo I'll try Yhg1s suggestion first and be back :) 2021-05-13 12:26:40 nanonyme rdimeo, especially since as said, 3.4 is *EOL* and majority of Python ecosystem has dropped support 2021-05-13 12:26:44 grym LuxuryMode: list(itertools.chain.from_iterable(thatlist)) is one way 2021-05-13 12:26:50 rdimeo nanonyme: it's my twisted idea of "caring" I guess... also we have some clients that proved to be "nitpicky" 2021-05-13 12:26:50 grym LuxuryMode: i can never remember the nested listcomp 2021-05-13 12:26:58 LuxuryMode haha yeah exactly 2021-05-13 12:27:22 leitz I realize [] makes a list, but I'm trying to just return a string. Still working on it. 2021-05-13 12:27:33 --> phasetwo (~phasetwo@2601:602:8d80:4e50:849e:23b8:47ac:d0fa) has joined #python 2021-05-13 12:27:33 rdimeo nanonyme: so in a (dumb) way, I was probably trying to anticipate some problems. Waste of effort I would think. 2021-05-13 12:27:34 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-13 12:28:08 LuxuryMode I'll give itertools a shot, thanks grym 2021-05-13 12:28:10 _habnabit leitz, so, what, you want the first match? 2021-05-13 12:28:19 grym LuxuryMode: it'll rip strings apart, so do be careful 2021-05-13 12:28:24 _habnabit leitz, how do you want to reduce a list of strings into one string? 2021-05-13 12:28:46 LuxuryMode As in split the strings themselves into an array? 2021-05-13 12:28:52 LuxuryMode grym: 2021-05-13 12:28:56 LuxuryMode ? 2021-05-13 12:29:02 grym LuxuryMode: yeah, `[['foo'],[2],'bar']` goes to `['foo', 2, 'b', 'a', 'r']` 2021-05-13 12:29:04 nanonyme rdimeo, keep in mind 3.5 is already end-of-life and its users are having issues using pip. 3.6 will be next, starting from next Winter 2021-05-13 12:29:13 grym LuxuryMode: which bites everyone every year or so at least 2021-05-13 12:29:23 LuxuryMode got it, yeah in my case I will only [['foo'], ['bar']] 2021-05-13 12:29:26 LuxuryMode thank you 2021-05-13 12:29:28 rdimeo nanonyme: good to know, I admit I didn't knew that 2021-05-13 12:29:28 grym nanonyme: september. 2021-05-13 12:29:28 InPhase leitz: That is only valid if: 1, there is always at least one match. 2, you never care about matches beyond the first one. 2021-05-13 12:29:52 nanonyme grym, the source I was reading claimed December. But okay 2021-05-13 12:29:58 rdimeo Yhg1s: adding "base_module.submodule = submodule" fixed the problem, thank you! I still don't know why it was working with 3.7, though... 2021-05-13 12:30:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 12:30:22 leitz InPhase, _habnabit, the original had a loop that was just one item at a time. Working on it now, and getting rid of the outer loop. 2021-05-13 12:30:24 <-- yelhamer (~yelhamer@41.96.65.76) has quit (Quit: Leaving) 2021-05-13 12:30:28 grym nanonyme: well i'll be; they updated it or i'm an idiot; https://devguide.python.org/#status-of-python-branches 2021-05-13 12:30:39 grym nanonyme: anyway, yes, christmas eve eve 2021-05-13 12:30:50 _habnabit leitz, this is why i kept asking you what it means to 'get' a string. i don't know what operation you're thinking of 2021-05-13 12:30:52 <-- contagious_meow (~contagiou@197.156.190.171) has quit (Ping timeout: 240 seconds) 2021-05-13 12:31:15 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-13 12:32:11 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:849e:23b8:47ac:d0fa) has quit (Ping timeout: 260 seconds) 2021-05-13 12:32:22 leitz Got it. _habnabit, sorry for not understanding the request. The goal was to remove anything from full_list if it started with anything in excludes. 2021-05-13 12:32:22 <-- flux__aeon (~textual@d-207-244-186-159.fl.cpe.atlanticbb.net) has quit (Ping timeout: 252 seconds) 2021-05-13 12:32:48 --> contagious_meow (~contagiou@102.166.234.241) has joined #python 2021-05-13 12:33:05 _habnabit leitz, full_list = [x for x in full_list if not sw(..)] 2021-05-13 12:33:06 <-- mcsontos (~mcsontos@95.82.132.201) has quit (Quit: Leaving) 2021-05-13 12:33:07 <-- atmx (~atmx@irc.atmx.cc) has quit (Ping timeout: 260 seconds) 2021-05-13 12:33:07 _habnabit leitz, done 2021-05-13 12:33:22 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-13 12:33:29 leitz _habnabit, nice. I'm just learning generators. 2021-05-13 12:33:39 _habnabit leitz, that's a list comprehension 2021-05-13 12:33:51 leitz Just learning those, too. ;) 2021-05-13 12:33:56 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 12:34:05 --> flux__aeon (~textual@d-207-244-186-159.fl.cpe.atlanticbb.net) has joined #python 2021-05-13 12:34:10 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-05-13 12:34:26 <-- henri (~henri@191.35.140.144) has quit (Remote host closed the connection) 2021-05-13 12:34:48 rdimeo Yhg1s, nanonyme, grym _habnabit you have been all very kind: thank you for your help! Have a good evening (or whatever time it is there)! :) 2021-05-13 12:35:07 grym cheers! 2021-05-13 12:35:07 <-- rdimeo (~rdimeo@151.95.190.137) has left #python ("Using Circe, the loveliest of all IRC clients") 2021-05-13 12:35:17 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-13 12:35:39 --> atmx (~atmx@irc.atmx.cc) has joined #python 2021-05-13 12:35:40 --> Abbott (~Abbott@unaffiliated/abbott) has joined #python 2021-05-13 12:36:09 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 12:36:30 grym (it's lunchtime is what time it is!) 2021-05-13 12:37:23 nanonyme Hammer time? 2021-05-13 12:38:15 ELFrederich trying to find where it's documented that iterating over a file object gives you lines. https://docs.python.org/3/glossary.html#term-file-object says the interface is defined in https://docs.python.org/3/library/io.html#module-io 2021-05-13 12:38:33 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-13 12:38:51 grym iirc file object docs are shotgunned over the document in an unfortunate way 2021-05-13 12:39:03 ELFrederich I saw __iter__ mentioned only once in there as a Mixin Method for IOBase, but nothing defining what it does or that it splits on newlines 2021-05-13 12:39:24 --> s2013 (~textual@pool-71-105-44-156.nycmny.fios.verizon.net) has joined #python 2021-05-13 12:40:05 --> nbro_ (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 12:40:09 ELFrederich ah... think I found it. https://docs.python.org/3/library/io.html#io.IOBase 2021-05-13 12:40:09 <-- nbro_ (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-13 12:40:29 --> nbro_ (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 12:41:03 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 260 seconds) 2021-05-13 12:41:37 <-- rsx (~rsx@ppp-188-174-157-153.dynamic.mnet-online.de) has quit (Quit: rsx) 2021-05-13 12:43:12 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-13 12:44:34 --> ricksanchez (~ricksanch@45.14.71.5) has joined #python 2021-05-13 12:44:53 --> markb1 (~mbiggers@2603-6080-6009-9ec0-4c70-0a02-e847-5794.res6.spectrum.com) has joined #python 2021-05-13 12:44:53 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 246 seconds) 2021-05-13 12:45:15 <-- rcz (znc@rcz.dk) has quit (Quit: cya) 2021-05-13 12:46:22 --> rcz (znc@rcz.dk) has joined #python 2021-05-13 12:46:22 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-13 12:46:25 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-13 12:46:39 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-13 12:46:41 <-- stahl (~stahl@z35.anorg.net) has quit (Ping timeout: 240 seconds) 2021-05-13 12:47:17 --> BinaryVixen899 (~BinaryVix@75.172.189.47) has joined #python 2021-05-13 12:49:10 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-13 12:50:42 Abbott I am trying to convert a python program distributed with ostree/flatpak to a package that is installable with just python using venv. the flatpak ships a python3.7/site-packages directory that has some modules that are already available on pip (e.g. requests, certifi, idna, PyQt5, etc) but then it has some dirs that are specifically for this program (e.g. launcher, gui, patcher). Would the best way 2021-05-13 12:50:42 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-13 12:50:44 Abbott to wrap these up be to make eggs for them? 2021-05-13 12:50:52 --> x7b (~ffe4@200116b82c4bf000bde28f8efb3f8c47.dip.versatel-1u1.de) has joined #python 2021-05-13 12:51:49 _habnabit Abbott, no. wheels are the usual distribution method for python binaries 2021-05-13 12:51:53 _habnabit Abbott, eggs haven't been in use for years 2021-05-13 12:52:24 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-13 12:52:36 --> bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-13 12:53:11 <-- ffe4 (~ffe4@200116b82c4bf000f1994f206a474870.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-13 12:53:40 --> seveg (~gabriel@2a02-ab04-0249-8d00-dea6-32ff-fe17-0993.dynamic.v6.chello.sk) has joined #python 2021-05-13 12:53:51 grym Abbott: wheels 2021-05-13 12:54:19 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-13 12:54:20 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-13 12:55:01 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-13 12:55:02 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-13 12:55:08 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-13 12:55:16 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 260 seconds) 2021-05-13 12:55:20 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-13 12:55:29 ksynwa Can anyone a good book on Python? Would like something that has information about relatively newer stuff like asyncio. 2021-05-13 12:55:37 ksynwa Can anyone recommend* 2021-05-13 12:56:33 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-13 12:58:57 <-- ponyofdeath (~vladi@2606:6000:cfc0:2b:1850:c071:a926:7ef5) has quit (Quit: WeeChat 3.1) 2021-05-13 12:59:33 <-- kupad (~kupad@pool-74-108-96-214.nycmny.fios.verizon.net) has quit (Ping timeout: 240 seconds) 2021-05-13 12:59:38 --> k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has joined #python 2021-05-13 12:59:39 --> Peyam (~Peyam@c83-250-236-236.bredband.tele2.se) has joined #python 2021-05-13 12:59:39 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 268 seconds) 2021-05-13 12:59:41 <-- HaMsTeRs (~mx@49.130.122.18) has quit (Quit: Konversation terminated!) 2021-05-13 12:59:46 astronavt ksynwa: i'm not sure about a comprehensive single book, but realpython has a lot of good information on "modern" python dev 2021-05-13 12:59:55 Peyam why no one speaks of Python cookbook? 2021-05-13 13:00:01 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 13:00:06 astronavt i'm not aware of it 2021-05-13 13:00:10 Peyam That book is awesome. 2021-05-13 13:00:11 ksynwa I was actually reading realpython right now and really liked it astronavt 2021-05-13 13:00:27 Peyam ksynwa, are you a beginner? 2021-05-13 13:00:30 --> phasetwo (~phasetwo@2601:602:8d80:4e50:849e:23b8:47ac:d0fa) has joined #python 2021-05-13 13:00:34 ksynwa The write up was very high quality not even considering it's free 2021-05-13 13:00:41 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 260 seconds) 2021-05-13 13:00:43 ksynwa Peyam: I'd say intermediate 2021-05-13 13:01:00 Peyam I recommend you python cookbook. 2021-05-13 13:01:06 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-13 13:01:09 <-- nbro_ (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-13 13:01:18 <-- shabius (~shabius@2a0e:1c80:2:1022::1003) has quit (Quit: Leaving) 2021-05-13 13:01:23 Peyam ksynwa, Python Cookbook: Recipes for Mastering Python 3 2021-05-13 13:01:31 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 13:01:36 ksynwa Thanks. Will give it a look. Peyam 2021-05-13 13:01:57 KirkMcDonald Hmm. The official tutorial doesn't seem to have anything to say about async features. That seems like a shortcoming. 2021-05-13 13:01:57 Peyam ksynwa, I really enjoyed reading it. simple to undrestand with lots of examples. 2021-05-13 13:02:21 Peyam KirkMcDonald, agree 2021-05-13 13:02:25 <-- aslicedbanjo (~aslicedba@host81-157-178-150.range81-157.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-13 13:02:25 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Quit: ayustae) 2021-05-13 13:03:03 <-- motte_ (~weechat@unaffiliated/motte) has quit (Quit: WeeChat 1.9.1) 2021-05-13 13:03:37 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 13:03:47 --> motte (~weechat@unaffiliated/motte) has joined #python 2021-05-13 13:03:48 --> sandlst (~sandlst@170.249.173.10) has joined #python 2021-05-13 13:04:29 <-- e-i-k-e (~e-i-k-e@55d43d74.access.ecotel.net) has quit (Ping timeout: 246 seconds) 2021-05-13 13:05:31 <-- xrogaan (~xrogaan@unaffiliated/xrogaan) has quit (Quit: Leaving) 2021-05-13 13:05:50 --> LiftLeft (~googolple@static.95.116.203.116.clients.your-server.de) has joined #python 2021-05-13 13:06:02 --> julius__ (~julius@2a02:8108:8100:18c4:a401:b1c0:ab66:b87b) has joined #python 2021-05-13 13:06:03 julius__ hi 2021-05-13 13:06:20 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 13:06:42 --> shabius (~shabius@2a0e:1c80:2:1021::1003) has joined #python 2021-05-13 13:07:08 julius__ if you watch a directory for changes, how do you make sure that a file that is transfered in that directory is "complete"? for example: code sees new file with size x, code checks 10 seconds later size is the same, file completely transfered? 2021-05-13 13:08:21 <-- sunrunner20_ (~sunrunner@unaffiliated/sunrunner20) has quit (Quit: So Long and Thanks for All the fish) 2021-05-13 13:08:26 mike18 hi how can i make this code faster - it uses pandas - is there a way to avoid recreating the dataframe? https://ideone.com/FRsqBQ 2021-05-13 13:08:52 --> sunrunner20 (~sunrunner@unaffiliated/sunrunner20) has joined #python 2021-05-13 13:09:38 <-- bbear (~bbear@2a01:e34:ec2b:d430:8e4:4602:4271:2789) has quit (Remote host closed the connection) 2021-05-13 13:09:52 --> bbear (~bbear@2a01:e34:ec2b:d430:45a4:9e4e:3c5e:dda1) has joined #python 2021-05-13 13:09:58 karlpinc julius__: The best way would be to have a data format in the file that you can use to confirm that the file is "whole". 2021-05-13 13:10:23 <-- legola (~legola@unaffiliated/legola) has quit (Remote host closed the connection) 2021-05-13 13:10:35 julius__ karlpinc, true, but cant change the format 2021-05-13 13:10:48 --> clarjon1 (~clarjon1@unaffiliated/clarjon1) has joined #python 2021-05-13 13:11:17 karlpinc julius__: Then make some OS call or another to see that nobody else has the file open. (Of course this would require permission to do so.) 2021-05-13 13:11:35 karlpinc julius__: Assuming that the file is only written to once. 2021-05-13 13:11:37 --> led1 (~Thunderbi@217.66.160.14) has joined #python 2021-05-13 13:11:46 <-- LiftLeft (~googolple@static.95.116.203.116.clients.your-server.de) has quit (Ping timeout: 240 seconds) 2021-05-13 13:11:56 --> legola (~legola@unaffiliated/legola) has joined #python 2021-05-13 13:12:08 <-- SteveG- (~steveg@pdpc/supporter/21for7/steveg) has quit (Quit: "Jayne, your mouth is talking. You might wanna look to that.") 2021-05-13 13:12:26 --> HaMsTeRs (~mx@49.130.13.118) has joined #python 2021-05-13 13:12:34 KirkMcDonald julius__: Can you perform the transfer in such a way that it is atomic? I.e. write to a *different* file, and then rename it when the transfer is complete? 2021-05-13 13:12:48 --> hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has joined #python 2021-05-13 13:12:58 astronavt iirc you can pay for courses on realpython too? its a great resource 2021-05-13 13:13:44 julius__ KirkMcDonald, i have to check with the receiving software, good idea 2021-05-13 13:14:01 julius__ karlpinc, yes the file is transfered only once and then maybe the next day 2021-05-13 13:14:23 --> irseeyou (8d62ff96@141.98.255.150) has joined #python 2021-05-13 13:15:36 irseeyou Anyone mind helping me out here? what am I doing wrong? https://bpa.st/DOAQ (3 lines) 2021-05-13 13:15:52 astronavt mike18: it looks like `round_cols` doesn't do anything, and `lambda p: str(p) + "%"` can be rewritten as `"{!s}%".format`, or better yet `"{:0.0f}%".format` or something like that 2021-05-13 13:16:13 <-- legola (~legola@unaffiliated/legola) has quit (Ping timeout: 240 seconds) 2021-05-13 13:16:20 astronavt this code also does not recreate the dataframe, it overwrites columns in it 2021-05-13 13:16:36 astronavt which i think is a pretty bad idea, overwriting numerical columns with strings.. 2021-05-13 13:16:40 <-- HaMsTeRs (~mx@49.130.13.118) has quit (Client Quit) 2021-05-13 13:17:15 --> NeilG (~NeilG@104.163.176.179) has joined #python 2021-05-13 13:17:28 NeilG https://www.python.org/dev/peps/pep-0647/ looks like it's accepted 2021-05-13 13:18:15 astronavt mike18, just write this: alloc_df = df[["performance_share"]].applymap(lambda p: format(p * 100, "0.0f")) 2021-05-13 13:18:23 <-- Dragon092 (~Dragon@business-24-134-108-65.pool2.vodafone-ip.de) has quit (Quit: Leaving) 2021-05-13 13:18:28 mike18 and return allo_df? 2021-05-13 13:18:30 mike18 alloc 2021-05-13 13:18:31 astronavt NeilG: i'm really excited for this new generation of "structurally typed functional python" 2021-05-13 13:18:41 NeilG astronavt: me too 2021-05-13 13:18:44 julius__ thx for the input guys 2021-05-13 13:18:46 astronavt mike18: it's not clear from your code what `alloc_df` is for 2021-05-13 13:19:00 --> cfoch (~fabian@118.red-88-22-152.staticip.rima-tde.net) has joined #python 2021-05-13 13:19:10 <-- fabs (~fabs@samba.ethz.ch) has quit (Remote host closed the connection) 2021-05-13 13:19:16 -- Batty is now known as Church- 2021-05-13 13:19:25 cfoch Hello, how can I get this `re.search('(.*)-(\d+\.\d+\.\d+)(\-.*)?', "FOO-0.0.0-BAR").groups()` to return ('FOO', '0.0.0', 'BAR') 2021-05-13 13:19:27 cfoch ? 2021-05-13 13:19:44 astronavt cfoch: use https://regex101.com :) 2021-05-13 13:20:10 julius__ cfoch, try (.*?) for the first paranthese 2021-05-13 13:20:11 astronavt you can use .split('-') on the matched result 2021-05-13 13:20:40 julius__ righ, split is even better 2021-05-13 13:20:52 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-13 13:20:56 KirkMcDonald cfoch: Move that second hyphen to outside of the group. 2021-05-13 13:21:29 cfoch because it can be "FOO-MAM-DUH_0.0.0-BAR-WHATEVER" 2021-05-13 13:21:52 cfoch _ 2021-05-13 13:21:59 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-13 13:22:00 KirkMcDonald cfoch: Well that underscore means that won't match that regex at all. 2021-05-13 13:22:12 mike18 astronavt: it for ExcelWriter: https://ideone.com/ 2021-05-13 13:22:41 mike18 https://ideone.com/e0NhRp 2021-05-13 13:22:43 sartan split is better; greedy regexes are less better. re.search(r'(?P\S+)-(?P\S+)-(?P\S+)', 'FOO-0.0.0-BAR').groupdict() 2021-05-13 13:22:56 sartan I personally prefer groupdict and naming capture groups for better debuggability down the line, but.. 2021-05-13 13:23:10 astronavt don't forget verbose mode regex (?x) 2021-05-13 13:23:21 cfoch sorry 2021-05-13 13:23:27 cfoch "FOO-MAM_DUH-0.0.0-BAR-WHATEVER" 2021-05-13 13:23:54 astronavt mike18: pd.concat the alloc_df with your original 2021-05-13 13:24:10 mike18 can you show? not sure what you mean 2021-05-13 13:24:13 KirkMcDonald cfoch: And the trailing part after the dotted numbers is optional? 2021-05-13 13:24:23 <-- irseeyou (8d62ff96@141.98.255.150) has quit (Quit: Connection closed) 2021-05-13 13:24:24 astronavt or copy the df and then overwrite the columns, just do you don't screw up a dataframe that someone else might want to use 2021-05-13 13:24:32 astronavt (someone meaning you, later in the code) 2021-05-13 13:24:38 KirkMcDonald cfoch: Which I ask because of the final question mark in your original regex. 2021-05-13 13:24:49 mike18 astronavt: i currently use: https://ideone.com/Cf21wr 2021-05-13 13:25:09 astronavt you only want to write that one column? 2021-05-13 13:25:14 <-- Ashburry (~Ashburry@184.69.89.188) has quit (Remote host closed the connection) 2021-05-13 13:25:20 mike18 yeah 2021-05-13 13:25:22 mike18 for excelwrite 2021-05-13 13:25:39 --> rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has joined #python 2021-05-13 13:25:42 --> LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has joined #python 2021-05-13 13:25:42 astronavt what's with the BytesIO? you are trying to create an excel file without saving it to disk? interesting 2021-05-13 13:25:58 mike18 it will be saved to s3 2021-05-13 13:26:02 mike18 using my s3 func 2021-05-13 13:26:07 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-13 13:26:10 astronavt makes sense 2021-05-13 13:26:22 mike18 is there a better way to add this col? 2021-05-13 13:26:32 mike18 i think it copies the entire df now? 2021-05-13 13:26:43 gswallow you may want to write that excel file to a temporary file in case you have to retry your S3 operation. 2021-05-13 13:26:44 astronavt no it does not copy the entire df. but you don't need to modify the df at all if you're just using one column 2021-05-13 13:27:27 mike18 how does temp file help - can have it in memory too for retry? 2021-05-13 13:27:30 --> blackleitus (~blackleit@189.195.192.244) has joined #python 2021-05-13 13:27:31 --> Blankspace (~asddf@unaffiliated/blankspace) has joined #python 2021-05-13 13:27:35 astronavt or do you want to write the entire df, but replacing this column with the percent version? 2021-05-13 13:27:44 gswallow uncaught errors? 2021-05-13 13:28:01 blackleitus is socketserver old? 2021-05-13 13:28:05 mike18 no i just want to take the dataframe and append the col 2021-05-13 13:28:07 <-- led1 (~Thunderbi@217.66.160.14) has quit (Quit: led1) 2021-05-13 13:28:39 mike18 astronavt: like that? https://ideone.com/Cf21wr 2021-05-13 13:30:05 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 13:30:13 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 240 seconds) 2021-05-13 13:30:31 cfoch sartan, yes, but the last suffix is optional 2021-05-13 13:30:42 --> goldfish (~goldfish@88.97.31.145) has joined #python 2021-05-13 13:31:03 mike18 do you know what exceptions pandas has? 2021-05-13 13:31:54 <-- contagious_meow (~contagiou@102.166.234.241) has quit (Read error: Connection reset by peer) 2021-05-13 13:32:02 cfoch KirkMcDonald, " Move that second hyphen to outside of the group." The thing is the last suffix "-FOO" is optional 2021-05-13 13:32:10 --> contagious_meow (~contagiou@197.156.190.151) has joined #python 2021-05-13 13:32:12 cfoch "-BAR" sorry 2021-05-13 13:32:16 cfoch it's optional 2021-05-13 13:33:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 13:33:14 astronavt mike18: fyi you can write directly to an s3 url https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.ExcelWriter.html 2021-05-13 13:33:27 mike18 yeah saw that 2021-05-13 13:33:37 mike18 but i would like to use my s3 layer i build 2021-05-13 13:34:37 sartan cfoch: you can just put a ? after the () 2021-05-13 13:34:39 sartan to make it optional 2021-05-13 13:34:52 sartan is the `-` before it also optional? 2021-05-13 13:35:17 --> SteveG (~steveg@pdpc/supporter/21for7/steveg) has joined #python 2021-05-13 13:35:31 sartan re.search(r'(?P\S+)-(?P\S+)(?:-)?(?P\S+)?', 'FOO-0.0.0-BAR').groupdict() this ought to do it 2021-05-13 13:35:52 sartan Although str.split('-')[2:] might be a lot easier and performant 2021-05-13 13:36:11 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-13 13:36:15 sartan really depends on what you want the return data type to look like and what you're interested in 2021-05-13 13:36:55 astronavt mike18: https://replit.com/@maximum__/pct-formatting-save 2021-05-13 13:37:03 <-- x7b (~ffe4@200116b82c4bf000bde28f8efb3f8c47.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-13 13:37:40 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-13 13:37:51 mike18 astronavt: code formatting? 2021-05-13 13:37:57 <-- SteveG (~steveg@pdpc/supporter/21for7/steveg) has quit (Client Quit) 2021-05-13 13:37:59 astronavt huh? 2021-05-13 13:38:03 mike18 the link 2021-05-13 13:38:06 <-- Alexander-47u (~Alexander@a44107.upc-a.chello.nl) has quit (Remote host closed the connection) 2021-05-13 13:38:08 mike18 pct formatting save 2021-05-13 13:38:16 astronavt yes, repl.it is like ideone 2021-05-13 13:38:22 mike18 oh ok 2021-05-13 13:38:24 astronavt its just the name i gave it 2021-05-13 13:38:33 mike18 ok thx 2021-05-13 13:38:33 cfoch sartan, no that does not work 2021-05-13 13:40:15 blackleitus is socketserver old? 2021-05-13 13:41:01 --> ponyofdeath (~vladi@2606:6000:cfc0:2b:1850:c071:a926:7ef5) has joined #python 2021-05-13 13:41:12 --> x7b (~ffe4@200116b82c4bf0003007f5d5629324ab.dip.versatel-1u1.de) has joined #python 2021-05-13 13:42:03 --> fabs (~fabs@samba.ethz.ch) has joined #python 2021-05-13 13:43:12 --> bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has joined #python 2021-05-13 13:43:18 --> SteveG (~steveg@pdpc/supporter/21for7/steveg) has joined #python 2021-05-13 13:43:49 <-- ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has quit (Remote host closed the connection) 2021-05-13 13:43:56 deniska blackleitus: well, I can find socketserver in docs for python 2.3 which means it appeared in 2003 or earlier 2021-05-13 13:44:53 <-- fran (~fran@unaffiliated/fran) has quit (Read error: Connection reset by peer) 2021-05-13 13:44:58 <-- cfoch (~fabian@118.red-88-22-152.staticip.rima-tde.net) has quit (Ping timeout: 252 seconds) 2021-05-13 13:45:48 blackleitus I can use socketserver in python3 too , but is real old? 2021-05-13 13:46:10 blackleitus https://docs.python.org/3/library/socketserver.html +deniska 2021-05-13 13:47:33 <-- sappheiros (~sappheiro@unaffiliated/dan1) has quit (Ping timeout: 250 seconds) 2021-05-13 13:47:34 <-- cer-0 (~cer-0@189.228.159.74) has quit (Quit: leaving) 2021-05-13 13:47:41 deniska blackleitus: it's an old module, and it's probably not really recommended, but for reasons beyond that it's just old, plenty of good things are old 2021-05-13 13:49:30 blackleitus it's but some cases it works just a simple threading like chat feature send <> recv data 2021-05-13 13:49:50 blackleitus what are the new version of this twisted? 2021-05-13 13:49:52 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-13 13:50:11 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 240 seconds) 2021-05-13 13:50:19 petaflot I was busy... and I'm back. the second part of the question is how to use (what I know as) indirection: https://bpa.st/Z7AQ 2021-05-13 13:50:26 <-- buntspecht (~buntspech@p5dd9db43.dip0.t-ipconnect.de) has quit (Quit: Nettalk6 - www.ntalk.de) 2021-05-13 13:50:34 meejah blackleitus: are you asking about Twisted, the networking framework? 2021-05-13 13:52:02 zumba_addict How do I convert this value to string? https://bpa.st/2EKQ 2021-05-13 13:52:03 deniska blackleitus: well, twisted is certainly one of the modules (and an old one at that) people reach for when building network stuff in python 2021-05-13 13:53:31 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-13 13:54:03 deniska zumba_addict: assuming array.array instance, there's .tobytes() method to convert it to `bytes` object, but the array you gave doesn't look like utf-8 or another common encoding 2021-05-13 13:54:07 petaflot if I'm not mistaken, php allows sth like this with $$: http://www.java2s.com/Tutorials/PHP/Language_Basics/Variable/Use_indirect_variable_reference_in_PHP.htm 2021-05-13 13:54:51 deniska petaflot: you might be looking for setattr 2021-05-13 13:55:10 deniska petaflot: but with great power comes great responsibility 2021-05-13 13:55:52 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-13 13:56:03 petaflot deniska: :-* 2021-05-13 13:56:04 zumba_addict deniska=> is it a bad format? 2021-05-13 13:56:11 <-- jess (jess@freenode/staff/jess) has quit 2021-05-13 13:56:27 grym petaflot: why are you defining a class whose instance attributes you don't already know 2021-05-13 13:56:30 _habnabit zumba_addict, what string do you want out? 2021-05-13 13:56:44 <-- SteveG (~steveg@pdpc/supporter/21for7/steveg) has quit (Quit: "Jayne, your mouth is talking. You might wanna look to that.") 2021-05-13 13:56:44 deniska zumba_addict: well, it's an array which represents arbitrary bytes, I'm not sure what these bytes are supposed to mean 2021-05-13 13:56:47 zumba_addict it's actually data that I extracted from a drone goggles 2021-05-13 13:57:10 deniska zumba_addict: they don't look like any *text* encoding I'm immediately familiar with. Maybe it's an image, or something compressed, I dunno 2021-05-13 13:57:11 petaflot grym: I know them. I'm just "lazy" (and I want the code to be short) 2021-05-13 13:57:12 --> SteveG (~steveg@pdpc/supporter/21for7/steveg) has joined #python 2021-05-13 13:57:23 grym petaflot: this is not lazy 2021-05-13 13:57:34 _habnabit petaflot, you might be looking for https://www.attrs.org/en/stable/examples.html 2021-05-13 13:57:38 grym petaflot: this is "i'm a masochistic refactorer" :) 2021-05-13 13:57:40 zumba_addict i'm using pyusb to read data from the usb port of the drone goggle 2021-05-13 13:58:07 zumba_addict I'm trying to figure out why my data is bad compared to the code that was written in NodeJS 2021-05-13 13:58:07 _habnabit zumba_addict, ok, so you don't know what string the data you got corresponds to? 2021-05-13 13:58:13 _habnabit zumba_addict, what's bad about it? 2021-05-13 13:58:20 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-13 13:58:30 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 252 seconds) 2021-05-13 13:58:43 petaflot _habnabit: whoo. much to read. I might not be awake enough for this atm. but I will read it in depth 2021-05-13 13:58:45 deniska also python already has a thing you can put arbitrary things on in a constructor: types.SimpleNamespace :) 2021-05-13 13:59:00 petaflot grym: well... I kinda figured out I was sorta masochist 2021-05-13 13:59:24 <-- frrs (uid130725@gateway/web/irccloud.com/x-havxwbqnrxpsfxtv) has quit (Quit: Connection closed for inactivity) 2021-05-13 13:59:41 grym petaflot: https://bpa.st/EKHQ that's short 2021-05-13 13:59:50 <-- blackleitus (~blackleit@189.195.192.244) has quit (Read error: Connection reset by peer) 2021-05-13 13:59:51 grym uh, i typoed it, but it's short ;) 2021-05-13 13:59:53 <-- sherlock (~sherlock@berlinger.unfiltered.seclab.cs.ucsb.edu) has quit (Quit: WeeChat 3.0) 2021-05-13 13:59:54 petaflot grym: if you knew what I was really working on you'd probably be convinced. but now is a little too early for me to show you ;-) 2021-05-13 14:00:06 --> blackleitus (~blackleit@189.195.192.244) has joined #python 2021-05-13 14:00:07 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 14:00:41 grym m y s t e r i o u s 2021-05-13 14:00:42 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 252 seconds) 2021-05-13 14:01:00 <-- SteveG (~steveg@pdpc/supporter/21for7/steveg) has quit (Client Quit) 2021-05-13 14:01:18 petaflot grym: oooh that attr.s decorator I don't remember seeing. something else I will dig intop 2021-05-13 14:01:31 grym petaflot: https://www.attrs.org/en/stable/why.html#hand-written-classes :) 2021-05-13 14:01:36 mike18 where can i see what exception pandas generates? 2021-05-13 14:01:41 <-- jcarl43 (~jcarl@node-1w7jr9qqv3v3vu0rdouj0ru9w.ipv6.telus.net) has quit (Quit: WeeChat 3.1) 2021-05-13 14:01:41 grym mike18: their docs, for a start 2021-05-13 14:02:01 <-- srji (~srji@h2791663.stratoserver.net) has quit (Quit: leaving) 2021-05-13 14:02:04 zumba_addict _habnabit=> when using the project voc-poc which is a nodejs app, it creates a bin file from data captured from usb port. I can use ffmpeg to convert the bin file to an mp4 format. I wrote the same application using python and pyusb. I displayed the output of addresses that was being used by nodejs. I used the same. However, my output stream is a little different from the one created by nodejs and cannot be converted by ffmpeg. 2021-05-13 14:02:05 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-13 14:02:29 _habnabit zumba_addict, 'a little different' in what way? 2021-05-13 14:02:30 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-13 14:02:39 mike18 grym: seems there are lots of exceptions 2021-05-13 14:02:50 mike18 maybe better to catch Exception in this case? 2021-05-13 14:02:54 --> srji (~srji@static.43.141.203.116.clients.your-server.de) has joined #python 2021-05-13 14:03:00 grym mike18: nope 2021-05-13 14:03:05 grym catch what you expect to be thrown 2021-05-13 14:03:06 zumba_addict some weird characters but the header looks fine 2021-05-13 14:03:23 zumba_addict let me create a screenshot of the 2 bin files 2021-05-13 14:03:26 _habnabit zumba_addict, could you show us an example instead of a summay? 2021-05-13 14:03:35 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:849e:23b8:47ac:d0fa) has quit (Ping timeout: 250 seconds) 2021-05-13 14:03:46 zumba_addict example of? 2021-05-13 14:03:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 14:03:57 <-- h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-13 14:03:59 _habnabit zumba_addict, whatever you're looking at for comparison 2021-05-13 14:04:06 <-- srji (~srji@static.43.141.203.116.clients.your-server.de) has quit (Client Quit) 2021-05-13 14:04:10 zumba_addict did you mean the 2 bin files? 2021-05-13 14:04:17 petaflot grym: damn, that last link blew my mind. I really need to look at it when my mind is clear. but I can already thank you 2021-05-13 14:04:33 <-- average (uid473595@gateway/web/irccloud.com/x-bevkpetcctmhduxy) has quit (Quit: Connection closed for inactivity) 2021-05-13 14:04:37 <-- PMT (~PMT@pool-100-33-2-176.nycmny.fios.verizon.net) has quit (Quit: leaving) 2021-05-13 14:04:49 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-13 14:05:02 --> Jormungandr89 (~brad@136.49.61.2) has joined #python 2021-05-13 14:06:28 grym petaflot: it's very nice 2021-05-13 14:06:29 zumba_addict https://i.imgur.com/1070Mor.png 2021-05-13 14:06:31 --> wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has joined #python 2021-05-13 14:06:42 zumba_addict rawvideo2.bin is the one my code created 2021-05-13 14:06:54 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-13 14:06:58 zumba_addict characters are weird and not being shown properly 2021-05-13 14:07:02 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-13 14:07:03 <-- Jerrynicki (~niklas@p200300f5770519002a774d0b6da369b0.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-13 14:07:11 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-13 14:07:13 zumba_addict right side is the one created by the nodejs voc-poc 2021-05-13 14:07:15 _habnabit zumba_addict, your hex editor seems to be a bit buggy 2021-05-13 14:07:22 --> h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-13 14:07:27 _habnabit zumba_addict, can you use a different one? 2021-05-13 14:07:28 zumba_addict i'll show you vi 2021-05-13 14:07:31 zumba_addict sure 2021-05-13 14:08:43 <-- NeilG (~NeilG@104.163.176.179) has quit 2021-05-13 14:09:01 --> SteveG (~steveg@pdpc/supporter/21for7/steveg) has joined #python 2021-05-13 14:10:55 zumba_addict _habnabit=> https://i.imgur.com/fala2dc.png 2021-05-13 14:10:59 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-13 14:11:10 ammar2 o_O 2021-05-13 14:11:28 --> Jerrynicki (~niklas@p200300f57705190090f3adaae62607f9.dip0.t-ipconnect.de) has joined #python 2021-05-13 14:11:56 purplex88 is using while(a or b): x+=1 with two condition with 'or' same as using two while loops right, i.e. while(a): x+=1 and then while(b): x+=1 ? 2021-05-13 14:12:43 zumba_addict _habnabit=> and here's the hex version - https://i.imgur.com/7QhjqzM.png 2021-05-13 14:13:17 --> dweeber (~dweeber@c-73-52-129-219.hsd1.ut.comcast.net) has joined #python 2021-05-13 14:13:21 ammar2 purplex88: what's the real code? 2021-05-13 14:14:00 <-- greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has quit (Remote host closed the connection) 2021-05-13 14:14:05 ammar2 because in that nothing actually updates `a` or `b` making the behavior effectively "infinite loop" or "no loop" 2021-05-13 14:14:13 --> greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has joined #python 2021-05-13 14:14:42 purplex88 yea well a and b also update 2021-05-13 14:14:46 zumba_addict _habnabit=> and this is the code I use to write the data I capture from usb port of the goggles using pyusb - https://bpa.st/4XJQ 2021-05-13 14:16:00 meejah purplex88: it's not necessarily the same, is the point (it might be .. but also might not be) 2021-05-13 14:16:13 _habnabit zumba_addict, oh. yes, this code is nonsense. you're doing a utf-8 conversion 2021-05-13 14:16:18 blackleitus socketserver vs twisted? 2021-05-13 14:16:40 _habnabit zumba_addict, with open('whatever', 'wb') as myfile: myfile.write(data) 2021-05-13 14:16:44 <-- greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has quit (Remote host closed the connection) 2021-05-13 14:16:45 --> DPA (~DPA@devuan/contributor/DPA) has joined #python 2021-05-13 14:16:46 purplex88 i might post some real code example 2021-05-13 14:16:48 zumba_addict what should I do? 2021-05-13 14:17:04 meejah purplex88: real code is good (please use a pastebin) 2021-05-13 14:17:05 _habnabit zumba_addict, delete the chr() line; it is nonsense 2021-05-13 14:17:18 zumba_addict k 2021-05-13 14:17:24 Peyam what is the different between importing a class in python and creating an object it? I mean you could just use a method inside the imported class instead of creating an instance. 2021-05-13 14:17:31 <-- philr (~phil@118.211.93.148) has quit (Ping timeout: 260 seconds) 2021-05-13 14:17:35 --> greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has joined #python 2021-05-13 14:17:39 --> srji (~srji@static.43.141.203.116.clients.your-server.de) has joined #python 2021-05-13 14:17:43 --> CNFANG (85fcfedd@133.252.254.221) has joined #python 2021-05-13 14:17:57 zumba_addict I remember encountering an error yesterday when I was writing data value the file 2021-05-13 14:17:57 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Quit: Connection closed) 2021-05-13 14:17:57 _habnabit Peyam, you can create as many instances as you want and they won't share data 2021-05-13 14:18:00 zumba_addict let me try again 2021-05-13 14:18:10 _habnabit zumba_addict, you probably didn't open the file in 'wb' mode 2021-05-13 14:18:11 zumba_addict oh, "wb"? 2021-05-13 14:18:15 zumba_addict yeah 2021-05-13 14:18:16 zumba_addict wow 2021-05-13 14:18:18 zumba_addict let me try 2021-05-13 14:18:22 zumba_addict I only used w 2021-05-13 14:18:41 zumba_addict give me few mins 2021-05-13 14:18:54 CNFANG .. 2021-05-13 14:19:46 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-13 14:20:01 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-13 14:20:26 zumba_addict _habnabit=> wow, it's looking better!!!!!!!!! :D 2021-05-13 14:20:41 zumba_addict you are the best!!!!!! 2021-05-13 14:20:44 zumba_addict woohoO!!! 2021-05-13 14:20:49 meejah zumba_addict: "w" is write, "b" is "binary" 2021-05-13 14:20:53 <-- Stonefruit (~Stonefrui@d192-24-55-22.try.wideopenwest.com) has quit (Quit: Leaving) 2021-05-13 14:21:17 zumba_addict OMG, I was able to convert it to MP4 2021-05-13 14:21:20 zumba_addict wooohoo!!!! 2021-05-13 14:21:23 _habnabit zumba_addict, yay 2021-05-13 14:21:26 zumba_addict you are amaazing!!!!!! 2021-05-13 14:21:40 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 268 seconds) 2021-05-13 14:21:48 zumba_addict thank you so much!!!!! 2021-05-13 14:22:21 _habnabit zumba_addict, make a donation to a charity for me 2021-05-13 14:22:22 --> frrs (uid130725@gateway/web/irccloud.com/x-tstdreqiyhdegofs) has joined #python 2021-05-13 14:22:24 _habnabit zumba_addict, can offer suggestions 2021-05-13 14:22:36 zumba_addict sure :D 2021-05-13 14:22:59 _habnabit zumba_addict, the okra project in .us is a good one 2021-05-13 14:23:07 <-- sauvin (sauvin@about/linux/staff/sauvin) has quit (Read error: Connection reset by peer) 2021-05-13 14:23:09 zumba_addict i'll google 2021-05-13 14:23:35 zumba_addict this? https://www.theokraproject.com/ 2021-05-13 14:23:42 _habnabit yep 2021-05-13 14:23:49 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Client Quit) 2021-05-13 14:23:52 zumba_addict nice! 2021-05-13 14:23:52 grym mmm, okra 2021-05-13 14:24:04 grym cronch cronch cronch 2021-05-13 14:24:14 _habnabit grym, they're too slimy to cronch 2021-05-13 14:24:23 purplex88 after writing real code, i found answer myself lol 2021-05-13 14:25:08 <-- lucad111 (~lucad111@linaro/lucad111) has quit (Quit: Leaving) 2021-05-13 14:26:28 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-13 14:27:11 DPA I have functions like R('a-d') -> 'abcd'. Is there some way to pre-evaluate them on startup? I mean, I could store the result in a global variable, but that can become unreadable pretty quickly when there are lot's of them. 2021-05-13 14:27:24 <-- ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has quit (Quit: Leaving) 2021-05-13 14:27:40 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Killed (beckett.freenode.net (Nickname regained by services))) 2021-05-13 14:27:49 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-13 14:28:06 --> ikus060 (~ikus060@173-246-15-25.qc.cable.ebox.net) has joined #python 2021-05-13 14:28:43 _habnabit DPA, that's not valid python syntax, so what would it mean to evaluate it? 2021-05-13 14:28:50 Peyam what is the difference between members and attributes? 2021-05-13 14:28:55 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-13 14:29:04 bjs Peyam: nothing, different languages call the same thing by different names 2021-05-13 14:30:00 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 14:31:55 <-- CNFANG (85fcfedd@133.252.254.221) has left #python 2021-05-13 14:31:56 --> salitos (~contagiou@197.156.190.245) has joined #python 2021-05-13 14:32:38 bjs Peyam: Python typically doesn't use the word "members", and when it does (e.g. in the docs), it's not very consistent. 2021-05-13 14:32:50 DPA _habnabit: It's not that important what the functions do, it's just that I call them in a lot of places, using constatant values, and get always the same constant result. 2021-05-13 14:32:51 DPA So I would like to pre-compute them without the code becoming an unreadable mess of global variables. 2021-05-13 14:33:03 Peyam bjs, you call them attributes? 2021-05-13 14:33:17 bjs Peyam: for `x.y` then yes, Python calls "y" the attribute of the object x 2021-05-13 14:33:56 blackleitus I have a question. I am working with socketserver , and I have self.data = self.request.recv(1024).decode() , if I send a 9000 chars over network, is going to split into 4 packets of 1024? 2021-05-13 14:34:05 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 14:34:26 _habnabit DPA, i mean.. can you show us what the code would look like that you dislike? 2021-05-13 14:34:33 <-- contagious_meow (~contagiou@197.156.190.151) has quit (Ping timeout: 240 seconds) 2021-05-13 14:34:38 _habnabit DPA, it's easier to offer a suggestion from there 2021-05-13 14:34:47 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-13 14:34:57 bjs Peyam: real languages are complicated, and words often don't have nice concise definitions. For example if you have x.y there are many ways Python looks up the "y" attribute, and the value can come from many places too 2021-05-13 14:35:18 Peyam thank bjs 2021-05-13 14:35:27 bjs and sometimes people use "attribute" for all of them, sometimes people only use "attribute" for some of those ways, and sometimes people use "members" (although, much less commonly with Python) 2021-05-13 14:35:47 <-- ninjak (~ninjak@94-36-163-195.adsl-ull.clienti.tiscali.it) has quit (Quit: Leaving) 2021-05-13 14:36:03 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Quit: Connection closed) 2021-05-13 14:36:03 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 14:36:11 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-13 14:37:05 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-13 14:37:17 <-- snatcher (~user@gateway/tor-sasl/snatcher) has quit (Remote host closed the connection) 2021-05-13 14:38:08 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-13 14:38:15 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-13 14:38:34 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-13 14:38:48 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Client Quit) 2021-05-13 14:38:48 --> snatcher (~user@gateway/tor-sasl/snatcher) has joined #python 2021-05-13 14:39:47 --> Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has joined #python 2021-05-13 14:40:51 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-13 14:43:53 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 240 seconds) 2021-05-13 14:44:35 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-13 14:44:52 <-- spiri (~spiri@unaffiliated/spiri) has quit (Quit: Leaving) 2021-05-13 14:45:38 DPA _habnabit: My code isn't functional yet, but to give an example: https://pastebin.com/BM5FcUz8 2021-05-13 14:45:38 DPA Basically, I want to keep the charrange function where I actually need the result, like in example A, so I see what I'm actually doing. But I want to evaluate it at startup, like in example B. 2021-05-13 14:45:39 infobob https://bpaste.net/CK5Q (repasted for DPA) 2021-05-13 14:45:40 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Read error: Connection reset by peer) 2021-05-13 14:46:00 squirrel blackleitus: you are limiting the bytes in recv() but asking about sending instead? and how the system is going to split 9000 bytes in 4 packets of 1024?.... 2021-05-13 14:46:15 <-- rendar (~rendar@unaffiliated/rendar) has quit 2021-05-13 14:46:27 Peyam is function in the super class is defined as public, is it possible to override it and make it static? 2021-05-13 14:46:54 blackleitus I did a test +squirrel I sent 9000 bytes and slipt into 4 packets of 1024 2021-05-13 14:46:57 ChrisWarrick Peyam: python has no “public” methods 2021-05-13 14:47:11 squirrel blackleitus: 4 * 1024 is less than 9000 2021-05-13 14:47:13 ChrisWarrick Peyam: and the answer, try it and see 2021-05-13 14:47:26 Peyam ChrisWarrick, I meant methods without `__` and `@static` 2021-05-13 14:47:35 ChrisWarrick Peyam: don’t use __ 2021-05-13 14:47:39 Peyam why not? 2021-05-13 14:47:44 Peyam I use it alot 2021-05-13 14:47:50 blackleitus +squirrel, yeah , but it split it 2021-05-13 14:48:10 Peyam ChrisWarrick, I use it even for `private` variables 2021-05-13 14:50:40 <-- hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has quit (Ping timeout: 276 seconds) 2021-05-13 14:52:45 --> carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-13 14:53:39 bjs Peyam: it doesn't make them private. 2021-05-13 14:53:58 bjs Peyam: infact, using __ totally messes up your overriding of methods. 2021-05-13 14:54:06 ammar2 __ mangles names 2021-05-13 14:54:24 Peyam bjs, I know that. so by that, no set and get is actually required in Python? 2021-05-13 14:54:32 bjs Peyam: uhm, set and get? 2021-05-13 14:54:35 ammar2 https://docs.python.org/3/tutorial/classes.html#private-variables 2021-05-13 14:54:50 KirkMcDonald Peyam: Accessors are not required, no. 2021-05-13 14:54:57 Peyam bjs, well if you have private variables in a class you want to get and set them but public functions. 2021-05-13 14:55:00 Peyam okej Thanks 2021-05-13 14:55:09 _habnabit Peyam, that's just a public variable 2021-05-13 14:55:14 bjs Peyam: well, you usually want set and get methods to do real work 2021-05-13 14:55:28 Peyam bjs, what do you mean? 2021-05-13 14:55:51 Peyam well yeah I know wha tyou mean bjs 2021-05-13 14:56:03 bjs Peyam: I mean, a method executes code. You want getter/setter methods to execute code to get the value and set the value (e.g. to perform checks). You don't see these in Python because of @property not because of lack of private variables. 2021-05-13 14:56:18 bjs (because @property means you can do work on attribute lookup when you need to) 2021-05-13 14:56:21 Helenah I want something like argparse that can be used for custom commands on some custom shell, I've wrote an async SSH server shell and for the commands I want the user to be able to pass flags. 2021-05-13 14:56:29 Peyam bjs, thank you 2021-05-13 14:57:17 --> sappheiros (~sappheiro@unaffiliated/dan1) has joined #python 2021-05-13 14:57:21 Helenah Sorry I struggled to explain, but rather than something like argparse be used on stdin, it's used over a socket instead. :3 2021-05-13 14:57:36 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-13 14:57:49 <-- ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has quit (Ping timeout: 260 seconds) 2021-05-13 14:57:51 <-- panikovsky (~panikovsk@46.61.106.129) has quit (Quit: Leaving) 2021-05-13 14:58:02 beatrice Helenah, you can use argparse directly by saying "parser.parse_args(args=[...])" instead of calling with no arguments, based on the docs. if you want shell-like splitting from a string into an argument list, try "shlex.split" 2021-05-13 14:58:41 Helenah Oh wow, nice didn't come across that! xD 2021-05-13 14:59:04 --> lucasb (uid333435@gateway/web/irccloud.com/x-ixpuodtaciqpqrwa) has joined #python 2021-05-13 14:59:32 <-- palasso (~palasso@unaffiliated/palasso) has quit (Read error: Connection reset by peer) 2021-05-13 14:59:59 <-- indigaz (~indigaz@unaffiliated/indigaz) has quit (Read error: Connection reset by peer) 2021-05-13 15:00:00 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 15:00:07 Helenah Oh wow nice! xD 2021-05-13 15:00:10 Helenah !!! 2021-05-13 15:00:16 Helenah beatrice, Thank you! :3 2021-05-13 15:00:23 beatrice no problem :) glad that helped 2021-05-13 15:00:41 --> indigaz (~indigaz@unaffiliated/indigaz) has joined #python 2021-05-13 15:00:47 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Read error: Connection reset by peer) 2021-05-13 15:02:52 <-- bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-13 15:03:27 <-- Hanii (~Hanii@2a00:23c5:c587:6d00:4c32:a21d:767f:761f) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-13 15:03:31 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 15:05:25 <-- indigaz (~indigaz@unaffiliated/indigaz) has quit (Ping timeout: 265 seconds) 2021-05-13 15:05:25 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-13 15:05:42 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Quit: Laa shay'a waqi'un moutlaq bale kouloun moumkine) 2021-05-13 15:05:50 --> aslicedbanjo (~aslicedba@host81-157-178-150.range81-157.btcentralplus.com) has joined #python 2021-05-13 15:06:27 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-13 15:08:02 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-13 15:08:04 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 15:08:05 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Read error: Connection reset by peer) 2021-05-13 15:09:02 --> kindablue_ (kindablue@gateway/vpn/protonvpn/kindablue) has joined #python 2021-05-13 15:09:46 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 265 seconds) 2021-05-13 15:09:46 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-13 15:09:47 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-13 15:10:01 <-- kindablue (kindablue@gateway/vpn/protonvpn/kindablue) has quit (Ping timeout: 260 seconds) 2021-05-13 15:11:20 --> legola (~legola@unaffiliated/legola) has joined #python 2021-05-13 15:12:01 <-- salitos (~contagiou@197.156.190.245) has quit (Read error: Connection reset by peer) 2021-05-13 15:12:13 <-- glik22 (~glik22@99-36-164-253.lightspeed.snjsca.sbcglobal.net) has quit (Remote host closed the connection) 2021-05-13 15:12:54 --> rudrab (~rudrab@2402:e280:2002:8188:3c40:b150:3397:9230) has joined #python 2021-05-13 15:13:14 --> salitos (~contagiou@197.156.190.233) has joined #python 2021-05-13 15:13:31 --> Perilla (~Perilla@221.11.39.217) has joined #python 2021-05-13 15:14:29 --> jwynn6528 (~jwynn6@c-73-0-144-199.hsd1.fl.comcast.net) has joined #python 2021-05-13 15:15:06 --> mangold (~mangold@198.98.183.138) has joined #python 2021-05-13 15:15:27 rudrab Hi, can anyone kindly suggest me a easy library to draw 3 d geometric objects in python? vpython is easy, but it is only creating the canvas on browser. I am bit confused with opengl. a google search is telling that opengl.(GL, GLU and GLUT) is deprecated. 2021-05-13 15:15:36 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-13 15:15:40 --> phasetwo (~phasetwo@2601:602:8d80:4e50:9d3e:38a2:3ed:cd9f) has joined #python 2021-05-13 15:16:14 <-- legola (~legola@unaffiliated/legola) has quit (Ping timeout: 252 seconds) 2021-05-13 15:16:32 <-- jwynn652 (~jwynn6@c-73-0-144-199.hsd1.fl.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-13 15:16:32 -- jwynn6528 is now known as jwynn652 2021-05-13 15:16:58 --> antonymcgreen (~Thunderbi@77.51.81.86) has joined #python 2021-05-13 15:17:00 <-- antonymcgreen (~Thunderbi@77.51.81.86) has quit (Client Quit) 2021-05-13 15:17:12 <-- monteh (~monteh@dyn-192-249-131-133.nexicom.net) has quit (Remote host closed the connection) 2021-05-13 15:17:32 <-- vidbina (~vid@dynamic-089-012-142-138.89.12.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-13 15:17:53 ELFrederich With poetry, when I do a "poetry update" it doesn't give me the latest version of click. They just released 8.0.0 the other day. Other than "poetry remove click && poetry add click", is there a way to get poetry to edit your pyproject.toml file to change something like "^7.1.2" to "^8.0.0" ? 2021-05-13 15:19:31 ELFrederich I realize "poetry update" will update with respect to what is in pyproject.toml, but poetry is the utility that created and added those lines to pyproject.toml in the first place. 2021-05-13 15:19:59 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Quit: Zzzzzz.....) 2021-05-13 15:20:17 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 250 seconds) 2021-05-13 15:20:54 --> waldo323 (~waldo323@d149-67-45-83.clv.wideopenwest.com) has joined #python 2021-05-13 15:21:55 --> _ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has joined #python 2021-05-13 15:22:10 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-13 15:22:16 <-- ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has quit (Remote host closed the connection) 2021-05-13 15:22:27 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 15:22:44 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-13 15:22:57 --> Syroth (~syroth@pool-96-244-212-50.bltmmd.fios.verizon.net) has joined #python 2021-05-13 15:23:03 --> kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has joined #python 2021-05-13 15:24:22 <-- veek (~veek@unaffiliated/veek) has quit (Quit: Leaving) 2021-05-13 15:24:37 <-- Mechanismus (~LabMonkey@2602:306:cf62:e270:1152:c003:915c:cb45) has quit (Ping timeout: 250 seconds) 2021-05-13 15:25:13 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Quit: Connection closed) 2021-05-13 15:25:32 Helenah beatrice, I'm confused, I've added an argument which is --add with parser.add_argument('-a', '--add') and then pasted my list into parser.parse_args() but the output is that the --add argument isn't recognised. 2021-05-13 15:25:42 <-- powerhouse (~powerhous@2604:3d09:b982:900::c4ad) has quit (Remote host closed the connection) 2021-05-13 15:26:03 --> juuandyy (~juuandyy@90.106.228.121) has joined #python 2021-05-13 15:26:10 --> powerhouse (~powerhous@2604:3d09:b982:900::1224) has joined #python 2021-05-13 15:26:29 --> ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has joined #python 2021-05-13 15:27:01 <-- rudrab (~rudrab@2402:e280:2002:8188:3c40:b150:3397:9230) has quit (Quit: rudrab) 2021-05-13 15:27:14 <-- _ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has quit (Remote host closed the connection) 2021-05-13 15:27:14 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 252 seconds) 2021-05-13 15:27:15 <-- tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has quit (Quit: Leaving) 2021-05-13 15:27:46 --> pi- (~Ohmu@118.175.158.213) has joined #python 2021-05-13 15:28:25 --> _ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has joined #python 2021-05-13 15:28:49 xikkub Helenah: >>> args = parser.parse_args(['--add','test']) 2021-05-13 15:28:49 xikkub >>> args 2021-05-13 15:28:49 xikkub Namespace(add='test') ? 2021-05-13 15:28:53 pi- Can someone help me get my head around an aiohttp problem? 2021-05-13 15:28:57 pi- https://stackoverflow.com/questions/67515134/process-websocket-stream-while-downloading-multiple-files-using-aiohttp 2021-05-13 15:29:48 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 252 seconds) 2021-05-13 15:30:08 pi- I need to background download files while picking up messages from a websocket stream. 2021-05-13 15:30:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 15:30:29 pi- And I can't see how to do it. 2021-05-13 15:30:48 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 15:30:53 <-- n00b101 (uid448161@gateway/web/irccloud.com/x-jczlczuknndbpojn) has quit (Quit: Connection closed for inactivity) 2021-05-13 15:31:31 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 265 seconds) 2021-05-13 15:31:36 <-- ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has quit (Ping timeout: 260 seconds) 2021-05-13 15:31:58 graingert pi-: async with anyio.create_task_group() as tg: 2021-05-13 15:32:11 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Ping timeout: 246 seconds) 2021-05-13 15:32:14 graingert pi-: tg.start_soon(download_snapshot, snaphot) 2021-05-13 15:32:18 --> yamz (~contagiou@102.167.254.184) has joined #python 2021-05-13 15:33:10 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 15:33:17 <-- powerhouse (~powerhous@2604:3d09:b982:900::1224) has quit (Ping timeout: 250 seconds) 2021-05-13 15:33:40 graingert pi-: presumably process_update should be async 2021-05-13 15:34:13 --> kek_2 (~kek_@2a02:168:200f:1f10:dcde:2774:1301:baad) has joined #python 2021-05-13 15:34:16 graingert or use a thread: await anyio.to_thread.run(process_update, symbol, J) 2021-05-13 15:34:57 <-- LuxuryMode (uid91005@gateway/web/irccloud.com/x-jfrsjbqvkuacicsj) has quit (Quit: Connection closed for inactivity) 2021-05-13 15:34:58 <-- salitos (~contagiou@197.156.190.233) has quit (Ping timeout: 252 seconds) 2021-05-13 15:36:27 --> ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has joined #python 2021-05-13 15:36:54 pi- graingert: Yes, I guess process_update should be async. Would my `async with aiohttp.ClientSession() as session` go inside the anyio.create_task_group block? 2021-05-13 15:37:16 graingert I'd put it outside 2021-05-13 15:37:28 <-- kek_1 (~kek_@net-2001-067c-10ec-574f-8000-0000-0000-022f.v6.ethz.ch) has quit (Ping timeout: 276 seconds) 2021-05-13 15:38:17 pi- yes, Because the download task also requires using the same session... 2021-05-13 15:39:53 --> Quietus (quasselcor@larch.ratcliffefamily.uk) has joined #python 2021-05-13 15:40:13 <-- Blankspace (~asddf@unaffiliated/blankspace) has quit (Ping timeout: 250 seconds) 2021-05-13 15:40:31 <-- ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-13 15:40:35 <-- Psyb3rN4ut (~psybernau@147.161.13.243) has quit (Read error: Connection reset by peer) 2021-05-13 15:41:00 <-- sappheiros (~sappheiro@unaffiliated/dan1) has quit (Quit: please pray for me) 2021-05-13 15:41:11 <-- mangold (~mangold@198.98.183.138) has quit (Ping timeout: 265 seconds) 2021-05-13 15:41:18 --> sappheiros (~sappheiro@unaffiliated/dan1) has joined #python 2021-05-13 15:41:48 pi- I don't know if there's any value of `await`ing process_update. It's some optimized (jit+numpy) code. I think I will be introducing inefficiency/overheads if I try simultaneously processing multiple messages. 2021-05-13 15:41:55 graingert pi-: https://www.irccloud.com/pastebin/MQ2nKB3m/foo.py 2021-05-13 15:42:03 --> ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has joined #python 2021-05-13 15:42:06 <-- aidanh (~aidanh@unaffiliated/aidanh) has quit (Ping timeout: 260 seconds) 2021-05-13 15:42:19 graingert pi-: if it will release the GIL then you should run it in a thread 2021-05-13 15:42:29 --> rgr (~rgr@p200300e4170c807e702ff3aad41c0b67.dip0.t-ipconnect.de) has joined #python 2021-05-13 15:42:37 <-- sandlst (~sandlst@170.249.173.10) has quit (Quit: sandlst) 2021-05-13 15:42:50 --> aidanh (~aidanh@unaffiliated/aidanh) has joined #python 2021-05-13 15:43:28 pi- 🙏 2021-05-13 15:43:44 graingert pi-: but also you're not doing it concurrently 2021-05-13 15:43:51 pi- Shouldn't line 17 have `await`? 2021-05-13 15:44:16 graingert pi-: no it starts the task in the background and it's awaited when you close the task group 2021-05-13 15:44:22 blackleitus send data from multiple clients to a central server , how would you do it? 2021-05-13 15:44:32 graingert blackleitus: trio 2021-05-13 15:44:41 <-- s00pcan (~chris@075-133-056-178.res.spectrum.com) has quit (Remote host closed the connection) 2021-05-13 15:45:09 blackleitus +graingert, production pipeline? 2021-05-13 15:45:19 graingert blackleitus: httpx clients? fastapi webserver/ 2021-05-13 15:45:25 graingert maybe django 2021-05-13 15:45:54 blackleitus django is my server, but I need to make a manager where it will recieve my data before sending to django 2021-05-13 15:45:56 --> mangold (~mangold@198.98.183.45) has joined #python 2021-05-13 15:46:00 blackleitus is this still trio? 2021-05-13 15:46:08 graingert a manager? what for? 2021-05-13 15:46:29 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-13 15:46:33 blackleitus send data from multiple clients to a central server where the incomming data it will be merged if its duplicated 2021-05-13 15:46:47 graingert you should detail your constraints first if you want an architecture designed for you :p 2021-05-13 15:47:06 <-- s2013 (~textual@pool-71-105-44-156.nycmny.fios.verizon.net) has quit (Remote host closed the connection) 2021-05-13 15:47:09 graingert blackleitus: the django web server can just use a table with a unique constraint 2021-05-13 15:47:18 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-13 15:47:33 <-- ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-13 15:47:56 blackleitus sure, but example if a client send the same data as clint B then checks both data if client a some data is missing it will be using some data of client B in order to complete it 2021-05-13 15:47:58 --> ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has joined #python 2021-05-13 15:48:29 <-- ikus060 (~ikus060@173-246-15-25.qc.cable.ebox.net) has quit (Quit: Leaving) 2021-05-13 15:48:40 graingert blackleitus: you can do that with a database and django 2021-05-13 15:48:47 graingert blackleitus: use get_or_create 2021-05-13 15:49:20 graingert blackleitus: https://docs.djangoproject.com/en/3.2/ref/models/querysets/#django.db.models.query.QuerySet.get_or_create 2021-05-13 15:50:01 <-- Ergo (~ergo@91.238.59.144) has quit (Remote host closed the connection) 2021-05-13 15:50:05 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Ping timeout: 260 seconds) 2021-05-13 15:50:17 blackleitus so instead of writing a manger . use get_or_create and send all raw data in django focus on updating values? 2021-05-13 15:50:26 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-13 15:50:54 <-- juuandyy (~juuandyy@90.106.228.121) has quit (Quit: Konversation terminated!) 2021-05-13 15:51:12 graingert yeah use a database with constraints and transactions first, then if the performance isn't good enough you can try another approach 2021-05-13 15:51:42 --> sandra_96 (~sandra_96@c-cbc2524e.05-114-6d6c6d5.bbcust.telenor.se) has joined #python 2021-05-13 15:52:04 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit 2021-05-13 15:52:11 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 240 seconds) 2021-05-13 15:53:14 blackleitus lets say. I Have two clients that pushes similar data . how would you setup sensors in order to run it each hour? celery two tasks? 2021-05-13 15:53:21 --> hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has joined #python 2021-05-13 15:53:27 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-13 15:53:35 graingert run what each hour? 2021-05-13 15:54:29 blackleitus the clients runs each hour 2021-05-13 15:54:54 <-- Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has quit (Remote host closed the connection) 2021-05-13 15:55:11 blackleitus in the case of trio. how can I send to a central server data from multiples clients , and sever only reply with recieved ? 2021-05-13 15:55:32 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python 2021-05-13 15:55:56 graingert blackleitus: ? 2021-05-13 15:56:26 graingert blackleitus: just make a django view that takes the data 2021-05-13 15:56:29 blackleitus lets start over, I want to send data from multiple clients to a central server , how would you do it? 2021-05-13 15:56:49 graingert and call it with httpx.post(that_url, data=your_data) 2021-05-13 15:57:48 blackleitus i dont use http import 2021-05-13 15:58:09 blackleitus so trio for managing multiples tcp clients and import data 2021-05-13 15:58:35 <-- pizzapants184 (~zachary@173-24-78-233.client.mchsi.com) has quit (Ping timeout: 265 seconds) 2021-05-13 15:59:56 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-13 16:00:04 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 16:00:34 --> monteh (~monteh@dyn-192-249-131-133.nexicom.net) has joined #python 2021-05-13 16:00:44 <-- fizzizist (~Thunderbi@108.162.133.99) has quit (Quit: fizzizist) 2021-05-13 16:00:53 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Read error: Connection reset by peer) 2021-05-13 16:00:56 graingert blackleitus: you have a django server right? 2021-05-13 16:01:23 graingert just make a view that accepts POST messages with the data from your client and saves a model 2021-05-13 16:01:34 graingert or updates that model if it already exists 2021-05-13 16:01:39 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-13 16:02:29 --> schumaml (~schumaml@p200300e2ef1d6f0053c1821a43d17d29.dip0.t-ipconnect.de) has joined #python 2021-05-13 16:03:03 blackleitus +graingert, I found this as you mention https://stackoverflow.com/q/55989610/15757438 , but I need to do the following client 1 pushs data to trio script, client 2 push data to trio , trio analize this data and merge duplicates , finally send fordward to django via orm 2021-05-13 16:03:26 graingert just send it directly from the clients to django 2021-05-13 16:03:47 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 16:04:26 blackleitus why not trio handle the duplicates? 2021-05-13 16:04:43 <-- DPA (~DPA@devuan/contributor/DPA) has left #python 2021-05-13 16:04:53 --> indigaz (~indigaz@unaffiliated/indigaz) has joined #python 2021-05-13 16:04:57 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-13 16:05:14 <-- Profound (Profound@unaffiliated/profound) has quit (Remote host closed the connection) 2021-05-13 16:05:32 --> Profound (Profound@unaffiliated/profound) has joined #python 2021-05-13 16:05:41 <-- ComputerTech (ComputerTe@unaffiliated/computertech) has left #python 2021-05-13 16:06:22 --> Psyb3rN4ut (~psybernau@147.161.13.147) has joined #python 2021-05-13 16:06:34 <-- Perilla (~Perilla@221.11.39.217) has left #python ("Leaving") 2021-05-13 16:06:35 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-13 16:06:53 --> jellyknight (~gelignite@55d41dc7.access.ecotel.net) has joined #python 2021-05-13 16:07:04 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-13 16:07:11 <-- GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has quit (Ping timeout: 260 seconds) 2021-05-13 16:07:30 <-- x7b (~ffe4@200116b82c4bf0003007f5d5629324ab.dip.versatel-1u1.de) has quit (Ping timeout: 246 seconds) 2021-05-13 16:08:42 --> magla (~gelignite@55d42ba0.access.ecotel.net) has joined #python 2021-05-13 16:09:24 <-- tuxd00d (sid401305@gateway/web/irccloud.com/x-jcojntylygktvxnv) has quit (*.net *.split) 2021-05-13 16:09:24 <-- raekye (~raekye@creatifcubed.com) has quit (*.net *.split) 2021-05-13 16:09:24 <-- rypervenche (~rypervenc@unaffiliated/rypervenche) has quit (*.net *.split) 2021-05-13 16:09:24 <-- koltrast (835aa8da@h77-53-57-114.cust.a3fiber.se) has quit (*.net *.split) 2021-05-13 16:09:24 <-- |aaron (~|aaron@damagingsound.com) has quit (*.net *.split) 2021-05-13 16:09:24 <-- mdk (~mdk@51.15.187.166) has quit (*.net *.split) 2021-05-13 16:09:24 <-- lpsmith (~lpsmith@unaffiliated/lpsmith) has quit (*.net *.split) 2021-05-13 16:09:24 <-- rookie101 (~rookie@207.154.204.166) has quit (*.net *.split) 2021-05-13 16:09:24 <-- Innominate (~Innominat@innomi.net) has quit (*.net *.split) 2021-05-13 16:09:24 <-- vlt (~dm@157.230.21.14) has quit (*.net *.split) 2021-05-13 16:09:24 <-- talin (~unknown@unaffiliated/talin) has quit (*.net *.split) 2021-05-13 16:09:24 <-- veloutin (~vvinet@75.127.14.76) has quit (*.net *.split) 2021-05-13 16:09:32 --> veloutin (~vvinet@75.127.14.76) has joined #python 2021-05-13 16:09:38 --> lpsmith (~lpsmith@unaffiliated/lpsmith) has joined #python 2021-05-13 16:09:38 --> tuxd00d (sid401305@gateway/web/irccloud.com/x-aqcosrnougqldbse) has joined #python 2021-05-13 16:09:46 --> raekye (~raekye@creatifcubed.com) has joined #python 2021-05-13 16:09:49 --> rypervenche (~rypervenc@unaffiliated/rypervenche) has joined #python 2021-05-13 16:09:55 --> Innominate (~Innominat@innomi.net) has joined #python 2021-05-13 16:10:02 --> therealfakemoot (~fakemoot@104.131.42.213) has joined #python 2021-05-13 16:10:11 <-- gelignite (~gelignite@55d4f9c4.access.ecotel.net) has quit (Ping timeout: 265 seconds) 2021-05-13 16:11:18 --> mdk (~mdk@51.15.187.166) has joined #python 2021-05-13 16:11:38 <-- thoros (~thoros@193-154-185-59.adsl.highway.telekom.at) has quit (Ping timeout: 265 seconds) 2021-05-13 16:11:41 <-- jellyknight (~gelignite@55d41dc7.access.ecotel.net) has quit (Ping timeout: 240 seconds) 2021-05-13 16:12:53 --> bsdbandit (~bwell@users.757.org) has joined #python 2021-05-13 16:13:11 <-- mat001 (~mat001@c-69-181-152-207.hsd1.ca.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-13 16:13:41 <-- magla (~gelignite@55d42ba0.access.ecotel.net) has quit (Ping timeout: 240 seconds) 2021-05-13 16:14:03 <-- mangold (~mangold@198.98.183.45) has quit (Ping timeout: 265 seconds) 2021-05-13 16:15:36 --> mat001 (~mat001@c-69-181-152-207.hsd1.ca.comcast.net) has joined #python 2021-05-13 16:16:59 --> srhm (~ascii@107-179-188-91.cpe.teksavvy.com) has joined #python 2021-05-13 16:18:58 --> edgimar (~edgimar@c-73-191-192-154.hsd1.mi.comcast.net) has joined #python 2021-05-13 16:19:22 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-13 16:20:56 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-13 16:21:25 edgimar I'm looking for a mostly-built-in solution to a disk-backed list. I could use shelve, but this is extremely slow. It's fine for the 'disk-backed-list' to be append-only (with random read access). Any suggestions or "off the shelf" options available? 2021-05-13 16:21:25 --> mangold (~mangold@198.98.183.54) has joined #python 2021-05-13 16:22:01 edgimar The list contains arbitrary python structures (mostly dictionaries that contains other lists, etc.). 2021-05-13 16:22:12 <-- mangold (~mangold@198.98.183.54) has quit (Max SendQ exceeded) 2021-05-13 16:22:48 --> kek_1 (~kek_@net-2001-067c-10ec-574f-8000-0000-0000-005b.v6.ethz.ch) has joined #python 2021-05-13 16:22:48 edgimar I could cobble something together with sqlite3 and pickle, but I have to imagine there is already something out there. 2021-05-13 16:22:51 --> mangold (~mangold@198.98.183.54) has joined #python 2021-05-13 16:23:03 <-- kek_1 (~kek_@net-2001-067c-10ec-574f-8000-0000-0000-005b.v6.ethz.ch) has quit (Remote host closed the connection) 2021-05-13 16:24:41 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Ping timeout: 260 seconds) 2021-05-13 16:25:10 --> dcimer (dcimer@ip72-219-122-237.oc.oc.cox.net) has joined #python 2021-05-13 16:25:31 <-- kek_2 (~kek_@2a02:168:200f:1f10:dcde:2774:1301:baad) has quit (Ping timeout: 260 seconds) 2021-05-13 16:26:03 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python 2021-05-13 16:26:16 --> Adbray (~Adbray@2600:6c48:6f7f:d764:821d:b6ce:de6a:b26a) has joined #python 2021-05-13 16:28:33 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 265 seconds) 2021-05-13 16:28:36 <-- ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-13 16:29:17 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Quit: real life interrupt) 2021-05-13 16:29:58 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 16:30:03 <-- slurpyb (~slurpyb@2001:8003:8d0e:1000:ec24:5f2:a02f:e7a1) has quit (Ping timeout: 250 seconds) 2021-05-13 16:30:11 <-- SpinTronix_ (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has quit (Ping timeout: 240 seconds) 2021-05-13 16:30:38 graingert blackleitus: yagn 2021-05-13 16:30:51 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit 2021-05-13 16:31:15 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-13 16:31:40 --> salitos (~contagiou@197.156.190.186) has joined #python 2021-05-13 16:32:44 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-13 16:33:15 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 16:34:23 <-- hiroaki (~hiroaki@2a02:908:4b18:8c40:c4d8:bb94:7495:fe3c) has quit (Ping timeout: 260 seconds) 2021-05-13 16:34:55 <-- yamz (~contagiou@102.167.254.184) has quit (Ping timeout: 252 seconds) 2021-05-13 16:36:14 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-13 16:36:39 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-13 16:37:05 --> SpinTronix_ (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has joined #python 2021-05-13 16:37:44 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-13 16:39:27 <-- Gerula (~Gerula@unaffiliated/gerula) has quit (Quit: Leaving) 2021-05-13 16:39:32 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-13 16:39:52 <-- mossman93 (~quassel@unaffiliated/mossman93) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-13 16:40:20 --> xhalc (~xhalc@p5dcafd9b.dip0.t-ipconnect.de) has joined #python 2021-05-13 16:41:21 --> Gerula (~Gerula@unaffiliated/gerula) has joined #python 2021-05-13 16:41:30 --> ComputerTech (ComputerTe@unaffiliated/computertech) has joined #python 2021-05-13 16:42:21 <-- Syroth (~syroth@pool-96-244-212-50.bltmmd.fios.verizon.net) has quit (Quit: Leaving) 2021-05-13 16:42:37 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Ping timeout: 252 seconds) 2021-05-13 16:42:44 <-- ldm (~ldm@hacksoc/member) has quit (Read error: Connection reset by peer) 2021-05-13 16:43:56 <-- OptimalSolid (~troll@cpe-174-104-103-207.neo.res.rr.com) has quit (Quit: leaving) 2021-05-13 16:44:22 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-13 16:44:36 --> mossman93 (~quassel@unaffiliated/mossman93) has joined #python 2021-05-13 16:44:47 --> ldm (~ldm@hacksoc/member) has joined #python 2021-05-13 16:44:53 <-- mangold (~mangold@198.98.183.54) has quit (Ping timeout: 240 seconds) 2021-05-13 16:45:09 <-- M1zuki (~iridium@unaffiliated/m1zuki) has quit (Quit: Leaving) 2021-05-13 16:46:12 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Remote host closed the connection) 2021-05-13 16:46:33 <-- SpinTronix_ (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has quit (Ping timeout: 260 seconds) 2021-05-13 16:47:30 pi- graingert: That's amazing. It seems to be working! 2021-05-13 16:47:39 --> hiroaki (~hiroaki@2a02:908:4b18:8c40:d44f:a626:bffa:9622) has joined #python 2021-05-13 16:47:44 pi- One problem: I can't CTRL-c out of my running code. 2021-05-13 16:48:01 graingert pi-: Uhh what happens when you do? 2021-05-13 16:48:03 --> lavendereyes (~lavendere@gateway/tor-sasl/lavendereyes) has joined #python 2021-05-13 16:48:32 <-- Rapture (~Rapture@71.236.251.149) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-13 16:48:57 --> rndm (8f3ba44f@143.59.164.79) has joined #python 2021-05-13 16:49:05 mike18 hi guys 2021-05-13 16:49:09 mike18 are you all using python:3.9.5? 2021-05-13 16:49:18 mike18 is it recommended to use this latest version? 2021-05-13 16:49:36 graingert mike18: I use a mix of various versions 2021-05-13 16:49:42 mike18 mix? 2021-05-13 16:49:47 graingert mike18: I tend to skip versions ending in .0 2021-05-13 16:49:50 Peyam when you inherit from a class do you have to import the super class? 2021-05-13 16:50:01 mike18 it had some security fixes 2021-05-13 16:50:01 graingert Peyam: no 2021-05-13 16:50:07 Peyam thanks 2021-05-13 16:50:08 rndm I have a kind of maybe dumb question. I am trying to implement a mixin that adds the builder pattern to something. In doing so I'd like to invoke the derived classes init method. Granted, this may be a bit of an anti-pattern, but is it possible? 2021-05-13 16:50:09 mike18 thats why i thoiught use 3.9.5 2021-05-13 16:50:21 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Quit: WeeChat 3.1) 2021-05-13 16:50:25 graingert mike18: what os? 2021-05-13 16:50:29 mike18 i run it in docker 2021-05-13 16:50:33 mike18 FROM python:3.9.5 2021-05-13 16:50:42 mike18 image 2021-05-13 16:50:53 graingert mike18: oh yeah you'll want the latest docker for 3.9 2021-05-13 16:51:18 grym mike18: many of my dependencies don't support >3.8 at this time 2021-05-13 16:51:28 mike18 ok 2021-05-13 16:51:37 mike18 why i should see if thats the case with my code? 2021-05-13 16:51:47 mike18 i just run it with 3.9.5 2021-05-13 16:51:49 graingert mike18: it's good practice 2021-05-13 16:51:50 mike18 didnt see issues 2021-05-13 16:52:04 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-13 16:52:11 graingert Probably fine then, do you have tests? 2021-05-13 16:52:19 graingert Do you run with DeprecationWarning enabled? 2021-05-13 16:52:24 mike18 not many tests yet 2021-05-13 16:52:30 --> mangold (~mangold@198.98.183.44) has joined #python 2021-05-13 16:52:31 mike18 adding it slowly 2021-05-13 16:52:40 mike18 i dont have DeprecationWarning enabled 2021-05-13 16:52:44 mike18 how to enable it? 2021-05-13 16:52:52 mike18 i run in docker: CMD [ "python", "app.py" ] 2021-05-13 16:53:02 pi- graingert: It won't break out of the message loop. I fixed it by setting a flag: https://bpa.st/LDTQ 2021-05-13 16:53:08 <-- wallacer (~quassel@2001:bc8:1824:9a:cafe:babe:b00b:aa01) has quit (Quit: No Ping reply in 180 seconds.) 2021-05-13 16:53:28 --> securethemews (~securethe@2a00:23c4:1e98:8f00::4) has joined #python 2021-05-13 16:54:22 mike18 import warnings 2021-05-13 16:54:22 mike18 >>> warnings.simplefilter('always', DeprecationWarning) 2021-05-13 16:54:23 mike18 ? 2021-05-13 16:54:42 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 16:55:09 pi- graingert: That code injection of yours was so helpful, I was completely stuck with the aio! It feels like I'm in a different language/universe when I'm using async tooling. Where I don't have enough context to 'figure it out(TM)'. 2021-05-13 16:55:21 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 16:56:09 pi- I imagine it would take several days (weeks?) of solid learning and test/practising to train up with it. 2021-05-13 16:56:13 -- _ELFrederich is now known as ELFrederich 2021-05-13 16:57:00 pi- Also there seem to be so many different solution paths for a given problem. 2021-05-13 16:57:11 pi- Hard to get traction. 2021-05-13 16:57:47 Peyam is it possible to override an instance's function? 2021-05-13 16:57:52 <-- monteh (~monteh@dyn-192-249-131-133.nexicom.net) has quit (Remote host closed the connection) 2021-05-13 16:57:56 <-- greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has quit (Remote host closed the connection) 2021-05-13 16:58:08 graingert pi-: You've got your code backwards - you should use anyio.run in your main function 2021-05-13 16:58:19 --> banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has joined #python 2021-05-13 16:58:22 graingert And use anyio.to_thread.run to run blocking code 2021-05-13 16:58:48 --> greedom (~greedom@2001:16b8:2e4b:3000:4d84:c333:fb30:da63) has joined #python 2021-05-13 16:58:51 <-- xhalc (~xhalc@p5dcafd9b.dip0.t-ipconnect.de) has quit (Quit: ()) 2021-05-13 16:58:58 graingert Peyam: it's a bit messy and depends case by case on the instance 2021-05-13 16:59:05 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-13 16:59:07 pi- graingert: Problem is I've got about 10 code components, and I don't have the bandwidth to rearchitect the entire project to use async. 2021-05-13 16:59:13 --> wallacer (~quassel@2001:bc8:1824:9a:cafe:babe:b00b:aa01) has joined #python 2021-05-13 16:59:39 graingert pi-: well use anyio.start_blocking_portal() if you have to use a thread 2021-05-13 17:00:30 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 17:00:36 graingert pi-: https://anyio.readthedocs.io/en/latest/threads.html#calling-asynchronous-code-from-an-external-thread 2021-05-13 17:00:42 --> d3sync (~d3sync@unaffiliated/d3sync) has joined #python 2021-05-13 17:00:43 pi- Is there some actual functional problem with my solution path? Or is it just clumsy... 2021-05-13 17:01:13 <-- d3sync|2 (~d3sync@unaffiliated/d3sync) has quit (Ping timeout: 240 seconds) 2021-05-13 17:01:16 pi- Because my code creates a thread... 2021-05-13 17:01:26 <-- k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has quit (Ping timeout: 246 seconds) 2021-05-13 17:02:12 --> jarthur (~jarthur@2603-8080-1540-002d-9865-15e8-db93-760e.res6.spectrum.com) has joined #python 2021-05-13 17:02:33 graingert pi-: means you can easily terminate it without polling a flag 2021-05-13 17:03:25 --> vlt (~dm@157.230.21.14) has joined #python 2021-05-13 17:03:42 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 17:04:46 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 252 seconds) 2021-05-13 17:06:13 -- shellscript_ is now known as shellscript 2021-05-13 17:07:13 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 265 seconds) 2021-05-13 17:08:29 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 17:09:03 <-- amahl (~amahl@dxv5skyc7q7-qtrd2229t-3.rev.dnainternet.fi) has quit (Ping timeout: 250 seconds) 2021-05-13 17:09:16 <-- rndm (8f3ba44f@143.59.164.79) has quit (Quit: Connection closed) 2021-05-13 17:09:36 --> bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-13 17:09:41 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 17:09:53 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-13 17:10:16 <-- Peyam (~Peyam@c83-250-236-236.bredband.tele2.se) has quit (Ping timeout: 252 seconds) 2021-05-13 17:10:27 --> peaceguy (~peaceguy@unaffiliated/peaceguy) has joined #python 2021-05-13 17:10:31 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 17:10:44 <-- aslicedbanjo (~aslicedba@host81-157-178-150.range81-157.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-13 17:11:26 graingert pi-: https://anyio.readthedocs.io/en/stable/api.html#anyio.abc.BlockingPortal.start_task_soon you can call .cancel() on the Future returned 2021-05-13 17:11:32 --> bolovanos (~bolovanos@unaffiliated/bolovanos) has joined #python 2021-05-13 17:11:55 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-13 17:12:02 <-- palasso (~palasso@unaffiliated/palasso) has quit (Remote host closed the connection) 2021-05-13 17:13:10 --> s00pcan (~chris@075-133-056-178.res.spectrum.com) has joined #python 2021-05-13 17:14:57 <-- banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has quit (Quit: Connection closed) 2021-05-13 17:14:59 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 245 seconds) 2021-05-13 17:15:34 <-- ld50 (~quassel@2a01:4f8:202:53d9::bad:deed) has quit (Read error: Connection reset by peer) 2021-05-13 17:16:05 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-13 17:16:49 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-13 17:16:55 <-- palasso (~palasso@unaffiliated/palasso) has quit (Remote host closed the connection) 2021-05-13 17:16:56 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-13 17:17:31 <-- akoana (~ah@unaffiliated/akoana) has left #python 2021-05-13 17:20:53 --> blackwidowmovie0 (uid471480@gateway/web/irccloud.com/x-brgiwgslnrygnuug) has joined #python 2021-05-13 17:22:38 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-13 17:23:07 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-13 17:23:56 --> ld50 (~quassel@2a01:4f8:202:53d9::bad:deed) has joined #python 2021-05-13 17:24:32 <-- AlexUK (AlexUK@cpc77395-ches6-2-0-cust359.9-1.cable.virginm.net) has quit (Ping timeout: 246 seconds) 2021-05-13 17:25:07 --> ekth0r (ekth0rmatr@gateway/shell/matrix.org/x-ibyxobbkjuryprgo) has joined #python 2021-05-13 17:26:09 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-13 17:26:12 <-- manti7 (~manti7@176.10.104.94) has quit (Quit: WeeChat 3.1) 2021-05-13 17:26:17 <-- Jerrynicki (~niklas@p200300f57705190090f3adaae62607f9.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-13 17:28:15 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 17:28:39 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Quit: WeeChat 3.1) 2021-05-13 17:28:51 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-13 17:29:19 --> tin4iii (~tin4i@2600:1700:a5e0:35e0:7dc7:6f87:13fc:2970) has joined #python 2021-05-13 17:29:48 <-- mike18 (~geri@71-220-52-187.mpls.qwest.net) has quit (Remote host closed the connection) 2021-05-13 17:30:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 17:30:07 <-- rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has quit (Quit: Connection closed) 2021-05-13 17:30:09 <-- ekth0r (ekth0rmatr@gateway/shell/matrix.org/x-ibyxobbkjuryprgo) has left #python ("User left") 2021-05-13 17:30:17 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Remote host closed the connection) 2021-05-13 17:30:34 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-13 17:30:36 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-13 17:31:27 <-- rgr (~rgr@p200300e4170c807e702ff3aad41c0b67.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-13 17:31:44 --> yamz (~contagiou@197.156.190.129) has joined #python 2021-05-13 17:32:43 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 260 seconds) 2021-05-13 17:33:14 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 17:33:17 --> icsdi (~icsdi@net-5-89-91-228.cust.vodafonedsl.it) has joined #python 2021-05-13 17:33:38 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-13 17:34:18 blackleitus https://stackoverflow.com/questions/67526492/how-do-i-allow-broadcast-back-message-to-the-client-sent-me-the-message 2021-05-13 17:35:05 <-- salitos (~contagiou@197.156.190.186) has quit (Ping timeout: 260 seconds) 2021-05-13 17:35:38 --> jinsun (~quassel@122.175.221.10) has joined #python 2021-05-13 17:35:42 <-- sappheiros (~sappheiro@unaffiliated/dan1) has quit (Quit: please pray for me) 2021-05-13 17:36:14 <-- icsdi (~icsdi@net-5-89-91-228.cust.vodafonedsl.it) has quit (Client Quit) 2021-05-13 17:36:28 --> rgr (~rgr@p200300e4170c807e702ff3aad41c0b67.dip0.t-ipconnect.de) has joined #python 2021-05-13 17:37:07 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-13 17:37:13 --> icsdi (~icsdi@net-5-89-91-228.cust.vodafonedsl.it) has joined #python 2021-05-13 17:38:47 <-- d3vyL (d3vyL@host-95-233-26-187.retail.telecomitalia.it) has quit 2021-05-13 17:39:15 --> emdev (2d83c14e@gateway/web/cgi-irc/kiwiirc.com/ip.45.131.193.78) has joined #python 2021-05-13 17:40:25 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-13 17:40:41 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 250 seconds) 2021-05-13 17:41:09 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-13 17:41:12 --> krux02 (~krux02@p4ff8bdd0.dip0.t-ipconnect.de) has joined #python 2021-05-13 17:41:13 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-13 17:43:10 <-- lavendereyes (~lavendere@gateway/tor-sasl/lavendereyes) has quit (Remote host closed the connection) 2021-05-13 17:43:25 --> lavendereyes (~lavendere@gateway/tor-sasl/lavendereyes) has joined #python 2021-05-13 17:43:32 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-13 17:43:39 --> AlexUK (AlexUK@cpc77395-ches6-2-0-cust359.9-1.cable.virginm.net) has joined #python 2021-05-13 17:43:40 <-- icsdi (~icsdi@net-5-89-91-228.cust.vodafonedsl.it) has quit (Quit: Leaving) 2021-05-13 17:44:00 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 17:44:33 --> ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has joined #python 2021-05-13 17:45:36 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-13 17:46:26 <-- mangold (~mangold@198.98.183.44) has quit (Ping timeout: 240 seconds) 2021-05-13 17:47:00 <-- jinsun (~quassel@122.175.221.10) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-13 17:47:05 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Excess Flood) 2021-05-13 17:47:09 --> jnewt (~jnewt@c-174-58-180-12.hsd1.ks.comcast.net) has joined #python 2021-05-13 17:47:22 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-13 17:47:31 <-- edgimar (~edgimar@c-73-191-192-154.hsd1.mi.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-13 17:49:36 ChrisWarrick blackleitus: #python isn’t meant for soliciting answers for SO questions 2021-05-13 17:50:01 --> ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has joined #python 2021-05-13 17:51:01 --> Blankspace (~asddf@unaffiliated/blankspace) has joined #python 2021-05-13 17:53:01 <-- SpinTronix (~SpinTroni@91.89.20.221) has quit (Ping timeout: 252 seconds) 2021-05-13 17:53:09 --> MikZyth (~MikZyth@188.65.243.2) has joined #python 2021-05-13 17:53:46 <-- gvsa123 (~gvsa123@d50-93-30-240.abhsia.telus.net) has quit (Quit: Leaving) 2021-05-13 17:54:10 <-- brainium (~brainium@unaffiliated/brainium) has quit (Remote host closed the connection) 2021-05-13 17:54:33 <-- kosh (~kosh@p200300d08f15f200e8a417165fdf8bf3.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-13 17:55:55 <-- Blankspace (~asddf@unaffiliated/blankspace) has quit (Ping timeout: 276 seconds) 2021-05-13 17:57:11 <-- AlexUK (AlexUK@cpc77395-ches6-2-0-cust359.9-1.cable.virginm.net) has quit 2021-05-13 17:57:19 <-- gswallow (~gswallow@207.250.136.179) has quit (Remote host closed the connection) 2021-05-13 17:57:32 <-- palasso (~palasso@unaffiliated/palasso) has quit (Quit: I am not a quitter!) 2021-05-13 17:57:41 <-- ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has quit (Quit: WeeChat 3.1) 2021-05-13 17:58:53 <-- pi- (~Ohmu@118.175.158.213) has quit (Ping timeout: 260 seconds) 2021-05-13 17:59:19 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-13 17:59:20 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Remote host closed the connection) 2021-05-13 17:59:38 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-13 18:00:15 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has quit (Ping timeout: 260 seconds) 2021-05-13 18:00:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 18:00:36 <-- brainium (~brainium@unaffiliated/brainium) has quit (Client Quit) 2021-05-13 18:01:06 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-13 18:01:14 --> monteh (~monteh@dyn-192-249-131-133.nexicom.net) has joined #python 2021-05-13 18:01:16 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-13 18:01:22 <-- zro (~zro@wikimedia/zro) has quit (Quit: WeeChat 3.1) 2021-05-13 18:03:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 18:04:33 <-- mawk (mawk@serveur.io) has quit (Ping timeout: 240 seconds) 2021-05-13 18:09:05 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 265 seconds) 2021-05-13 18:09:16 --> Rudd0 (~Rudd0@185.189.115.103) has joined #python 2021-05-13 18:09:29 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-13 18:09:46 <-- rgr (~rgr@p200300e4170c807e702ff3aad41c0b67.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-13 18:09:48 --> mawk (mawk@serveur.io) has joined #python 2021-05-13 18:11:49 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-13 18:12:14 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 18:13:32 <-- CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has quit (Quit: Leaving) 2021-05-13 18:14:04 --> freebench__ (~freebench@92.253.251.226) has joined #python 2021-05-13 18:14:06 <-- yamz (~contagiou@197.156.190.129) has quit (Ping timeout: 240 seconds) 2021-05-13 18:14:14 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Quit: Leaving) 2021-05-13 18:15:26 <-- Rudd0 (~Rudd0@185.189.115.103) has quit (Ping timeout: 240 seconds) 2021-05-13 18:15:53 <-- MikZyth (~MikZyth@188.65.243.2) has quit (Quit: WeeChat 3.1) 2021-05-13 18:16:41 <-- fb_ (~freebench@92.253.251.226) has quit (Ping timeout: 260 seconds) 2021-05-13 18:17:03 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 260 seconds) 2021-05-13 18:17:48 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-13 18:17:59 <-- Dr-007 (~Dr-007@ip-213-127-27-49.ip.prioritytelecom.net) has quit 2021-05-13 18:19:10 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-13 18:20:20 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: we've said goodbye to each other before, so it stands to reason we'll say hello again) 2021-05-13 18:21:31 <-- shokohsc68 (~shokohsc@161.88.195.77.rev.sfr.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-13 18:22:53 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-13 18:23:01 <-- msandoy (~msandoy@telia-59082b-206.connect.netcom.no) has quit (Remote host closed the connection) 2021-05-13 18:24:41 <-- ZeZu (null@140-211-168-73-openstack.osuosl.org) has quit (Ping timeout: 258 seconds) 2021-05-13 18:25:09 <-- akoana (~ah@unaffiliated/akoana) has left #python 2021-05-13 18:25:22 --> ZeZu (null@140-211-168-73-openstack.osuosl.org) has joined #python 2021-05-13 18:26:11 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Quit: Connection closed) 2021-05-13 18:27:06 --> DPA (~DPA@devuan/contributor/DPA) has joined #python 2021-05-13 18:27:21 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-13 18:27:41 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-13 18:30:04 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 18:32:08 <-- peaceguy (~peaceguy@unaffiliated/peaceguy) has quit (Quit: leaving) 2021-05-13 18:32:29 --> peaceguy (~peaceguy@unaffiliated/peaceguy) has joined #python 2021-05-13 18:32:57 <-- peaceguy (~peaceguy@unaffiliated/peaceguy) has quit (Client Quit) 2021-05-13 18:33:14 <-- Guddu (~Guddu@unaffiliated/guddu) has quit (Quit: Leaving) 2021-05-13 18:33:42 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 18:33:46 <-- saku (~saku@static.10.173.99.88.clients.your-server.de) has quit (Ping timeout: 240 seconds) 2021-05-13 18:34:18 --> kek_ (~kek_@net-2001-067c-10ec-574f-8000-0000-0000-005b.v6.ethz.ch) has joined #python 2021-05-13 18:34:36 kek_ hi where can I find the souce for the Py_Finalize() function https://docs.python.org/3/c-api/init.html#c.Py_Finalize ? 2021-05-13 18:34:55 Santzes Hmmh. Using rich to print Text() on the screen, I have multiple rows separated by \n. The rows are padded to same length with withspaces. using justify="center" on rich, it gets justified... without the whitespaces, as in without the padding, as in messed up 2021-05-13 18:34:58 <-- deltab (~deltab@95.154.230.49) has quit (Ping timeout: 252 seconds) 2021-05-13 18:35:09 <-- jabberwock (~jessy@unaffiliated/jfs) has quit (Quit: WeeChat 2.8) 2021-05-13 18:35:11 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Killed (rajaniemi.freenode.net (Nickname regained by services))) 2021-05-13 18:35:21 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-13 18:35:36 Santzes any ideas? I'd just implement my own alignment, but I'm having trouble getting the panel sizes from rich.. 2021-05-13 18:38:02 --> ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has joined #python 2021-05-13 18:38:13 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-13 18:38:25 <-- ttys000 (~ttys000@50.92.213.208) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-13 18:38:34 -- PJBoy is now known as Guest59576 2021-05-13 18:38:34 <-- Guest59576 (~PJBoy@unaffiliated/pjboy) has quit (Killed (rothfuss.freenode.net (Nickname regained by services))) 2021-05-13 18:38:36 --> shokohsc68 (~shokohsc@161.88.195.77.rev.sfr.net) has joined #python 2021-05-13 18:38:44 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-13 18:39:29 <-- s00pcan (~chris@075-133-056-178.res.spectrum.com) has quit (Ping timeout: 260 seconds) 2021-05-13 18:41:31 KirkMcDonald kek_: https://github.com/python/cpython/blob/main/Python/pylifecycle.c#L1837 2021-05-13 18:42:53 --> deltab (~deltab@95.154.230.49) has joined #python 2021-05-13 18:43:04 kek_ KirkMcDonald, thanks 2021-05-13 18:43:32 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-13 18:44:45 nedbat kek_: sounds like you are digging into something interesting. what's going on? 2021-05-13 18:45:11 --> banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has joined #python 2021-05-13 18:45:33 <-- bitblit (~bitblit@gateway/tor-sasl/bitblit) has quit (Ping timeout: 240 seconds) 2021-05-13 18:45:49 <-- SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has quit (Read error: Connection reset by peer) 2021-05-13 18:45:52 <-- bazul (bazul@46.189.189.38) has quit (Ping timeout: 240 seconds) 2021-05-13 18:46:23 <-- LucaTM (~LucaTM@unaffiliated/lucatm) has quit (Quit: To infinity and beyond...) 2021-05-13 18:46:54 kek_ nedbat, Basically https://github.com/lava/matplotlib-cpp/issues/248 with python3.9 I get a segfault, with python2.7 I don't. I saw that they call the deconstructor explicitly and inside the deconstructor Py_Finalize(). So Wanted to check Py_Finalize() to check out why it depends on the python version. 2021-05-13 18:46:59 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:9d3e:38a2:3ed:cd9f) has quit (Ping timeout: 250 seconds) 2021-05-13 18:48:43 <-- Smedles (~quassel@2403-5800-5100-f00-225-90ff-fe0e-3b40.ip6.aussiebb.net) has quit (Ping timeout: 250 seconds) 2021-05-13 18:48:57 --> Spinifera (~Spinifera@147.69.128.163) has joined #python 2021-05-13 18:49:27 nedbat kek_: seems thorny. good luck 2021-05-13 18:49:59 --> jabberwock (~jessy@unaffiliated/jfs) has joined #python 2021-05-13 18:50:21 <-- Spinifera (~Spinifera@147.69.128.163) has quit (Remote host closed the connection) 2021-05-13 18:50:46 <-- goldfish (~goldfish@88.97.31.145) has quit (Ping timeout: 240 seconds) 2021-05-13 18:51:11 <-- bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-13 18:52:02 --> ttys000 (~ttys000@50.92.213.208) has joined #python 2021-05-13 18:52:02 <-- blackleitus (~blackleit@189.195.192.244) has quit (Ping timeout: 246 seconds) 2021-05-13 18:55:40 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-13 18:55:56 --> p-i- (~Ohmu@node-i1h.pool-118-173.dynamic.totinternet.net) has joined #python 2021-05-13 18:56:16 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Quit: Ping timeout: 252 seconds) 2021-05-13 18:56:16 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 252 seconds) 2021-05-13 18:58:13 --> eicar_ (~eicar@29.sub-174-246-18.myvzw.com) has joined #python 2021-05-13 18:58:47 kek_ nedbat, thanks :P keeps me busy for sure 2021-05-13 18:59:05 <-- eicar (~eicar@c-73-59-52-210.hsd1.wa.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-13 18:59:12 --> altab (~altab@37.167.221.135) has joined #python 2021-05-13 18:59:14 -- eicar_ is now known as eicar 2021-05-13 18:59:46 --> gswallow (~gswallow@184.170.167.137) has joined #python 2021-05-13 19:00:00 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 19:00:06 --> s00pcan (~chris@075-133-056-178.res.spectrum.com) has joined #python 2021-05-13 19:01:06 <-- cthulchu_ (~cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-13 19:01:17 --> anarchism (~anarchism@43.252.113.184) has joined #python 2021-05-13 19:02:16 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-13 19:02:26 <-- anarchism (~anarchism@43.252.113.184) has left #python 2021-05-13 19:03:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 19:03:21 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-13 19:04:10 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Quit: WeeChat 3.0.1) 2021-05-13 19:04:18 <-- gswallow (~gswallow@184.170.167.137) has quit (Ping timeout: 252 seconds) 2021-05-13 19:04:31 <-- eicar (~eicar@29.sub-174-246-18.myvzw.com) has quit (Ping timeout: 252 seconds) 2021-05-13 19:04:42 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-13 19:05:25 <-- ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has quit (Quit: Leaving) 2021-05-13 19:05:37 <-- Asmodean (~Asmoedean@91.141.2.150.wireless.dyn.drei.com) has quit (Ping timeout: 260 seconds) 2021-05-13 19:05:44 --> eicar (~eicar@c-73-59-52-210.hsd1.wa.comcast.net) has joined #python 2021-05-13 19:06:22 --> phasetwo (~phasetwo@2601:602:8d80:4e50:9d3e:38a2:3ed:cd9f) has joined #python 2021-05-13 19:06:29 --> ravensoul (~raven@2a01:4b00:e057:fd00:d418:74b3:e903:daa9) has joined #python 2021-05-13 19:07:05 <-- __marco (~marco@195.218.6.205) has quit (Ping timeout: 246 seconds) 2021-05-13 19:07:33 --> Asmodean (~Asmoedean@77.119.130.34.wireless.dyn.drei.com) has joined #python 2021-05-13 19:07:52 <-- freyrd (~freyrd@13.94.154.161) has quit (Quit: Ping timeout (120 seconds)) 2021-05-13 19:07:56 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-13 19:08:25 --> freyrd (~freyrd@13.94.154.161) has joined #python 2021-05-13 19:08:55 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 252 seconds) 2021-05-13 19:10:15 <-- ravensoul (~raven@2a01:4b00:e057:fd00:d418:74b3:e903:daa9) has quit (Quit: Leaving...) 2021-05-13 19:11:41 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:9d3e:38a2:3ed:cd9f) has quit (Ping timeout: 250 seconds) 2021-05-13 19:14:26 <-- bolovanos (~bolovanos@unaffiliated/bolovanos) has quit (Ping timeout: 240 seconds) 2021-05-13 19:15:42 <-- stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-13 19:17:20 --> phasetwo (~phasetwo@2601:602:8d80:4e50:545c:be6c:b258:392d) has joined #python 2021-05-13 19:17:42 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-13 19:19:22 astronavt is it possible to simulate `await` from inside a PDB debugger session? 2021-05-13 19:20:00 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-13 19:20:52 <-- DPA (~DPA@devuan/contributor/DPA) has left #python 2021-05-13 19:21:51 <-- stryek (uid332574@gateway/web/irccloud.com/x-weyvtklclsmgpdaz) has quit (Quit: Connection closed for inactivity) 2021-05-13 19:25:32 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-13 19:27:37 graingert astronavt: I don't think so 2021-05-13 19:27:44 --> gswallow (~gswallow@184.170.167.137) has joined #python 2021-05-13 19:28:02 graingert you can create_task(v).add_done_callback 2021-05-13 19:28:02 <-- n000g (~NRG@unaffiliated/n000g) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-13 19:28:33 --> philr (~phil@118.211.93.148) has joined #python 2021-05-13 19:29:09 --> Smedles (~quassel@61-245-148-167.3df594.adl.nbn.aussiebb.net) has joined #python 2021-05-13 19:29:48 <-- computeiro (~Wender@189.37.69.138) has quit (Quit: Leaving) 2021-05-13 19:29:59 --> n000g (~NRG@unaffiliated/n000g) has joined #python 2021-05-13 19:29:59 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 19:30:38 <-- blackwidowmovie0 (uid471480@gateway/web/irccloud.com/x-brgiwgslnrygnuug) has quit (Quit: Connection closed for inactivity) 2021-05-13 19:32:04 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-13 19:33:37 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 19:37:06 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-13 19:37:22 <-- securethemews (~securethe@2a00:23c4:1e98:8f00::4) has quit (Remote host closed the connection) 2021-05-13 19:38:47 <-- ionface (~ionface@unaffiliated/ionface) has quit (Read error: Connection reset by peer) 2021-05-13 19:39:05 --> ionface (~ionface@unaffiliated/ionface) has joined #python 2021-05-13 19:39:28 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-13 19:41:32 graingert astronavt: https://bugs.python.org/issue42045 2021-05-13 19:42:11 graingert astronavt: Whenever you're writing code, just check to see if you're writing an async def, and if so don't write bugs 2021-05-13 19:42:21 astronavt lol 2021-05-13 19:43:38 <-- eacameron (uid256985@gateway/web/irccloud.com/x-zxawmwxofpaehxur) has quit (Quit: Connection closed for inactivity) 2021-05-13 19:44:27 <-- junktext (junktext@fsf/member/junktext) has quit (Remote host closed the connection) 2021-05-13 19:45:04 InPhase import nobugs 2021-05-13 19:45:39 SnoopJ InPhase, just crashes the interpreter I reckon 2021-05-13 19:45:54 astronavt i think ive spent 2/3 of my workday trying to figure out "why isnt this connecting to the damn mongo server" 2021-05-13 19:45:58 sartan from __future__ import fixed_bugs 2021-05-13 19:46:00 astronavt my brain is goo 2021-05-13 19:46:11 <-- hiroaki (~hiroaki@2a02:908:4b18:8c40:d44f:a626:bffa:9622) has quit (Ping timeout: 260 seconds) 2021-05-13 19:46:14 <-- greentree47 (~greentree@unaffiliated/greentree47) has quit (Quit: greentree47) 2021-05-13 19:48:17 <-- ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has quit (Quit: Leaving) 2021-05-13 19:48:42 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-13 19:48:50 astronavt omg WHAT. the order of command line flags matters in mongoexport???? 2021-05-13 19:50:23 <-- julius__ (~julius@2a02:8108:8100:18c4:a401:b1c0:ab66:b87b) has quit (Ping timeout: 260 seconds) 2021-05-13 19:50:29 astronavt no, i'm just stupid 2021-05-13 19:50:51 --> jarthur_ (~jarthur@2603-8080-1540-002d-b10b-0a59-c5aa-9561.res6.spectrum.com) has joined #python 2021-05-13 19:52:31 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-13 19:53:04 --> Dragon092 (~Dragon@business-24-134-108-65.pool2.vodafone-ip.de) has joined #python 2021-05-13 19:53:19 <-- jarthur (~jarthur@2603-8080-1540-002d-9865-15e8-db93-760e.res6.spectrum.com) has quit (Ping timeout: 245 seconds) 2021-05-13 19:53:31 <-- jnewt (~jnewt@c-174-58-180-12.hsd1.ks.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-13 19:57:12 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-13 19:59:43 <-- bbear (~bbear@2a01:e34:ec2b:d430:45a4:9e4e:3c5e:dda1) has quit (Ping timeout: 260 seconds) 2021-05-13 19:59:53 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-13 19:59:55 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-13 20:00:10 --> Mechanismus (~LabMonkey@2602:306:cf62:e270:1152:c003:915c:cb45) has joined #python 2021-05-13 20:00:33 <-- somis (~somis@149.56.153.185) has quit (Ping timeout: 240 seconds) 2021-05-13 20:01:05 <-- gitesh (uid423739@gateway/web/irccloud.com/x-hjydqtegdtckznmo) has quit (Quit: Connection closed for inactivity) 2021-05-13 20:01:33 <-- snatcher (~user@gateway/tor-sasl/snatcher) has quit (Ping timeout: 240 seconds) 2021-05-13 20:02:11 --> amogorkon (~amogorkon@port-92-196-118-85.dynamic.as20676.net) has joined #python 2021-05-13 20:03:13 --> d3sync|2 (~d3sync@unaffiliated/d3sync) has joined #python 2021-05-13 20:03:50 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-13 20:04:46 <-- amo (~amogorkon@port-83-236-39-87.dynamic.as20676.net) has quit (Ping timeout: 240 seconds) 2021-05-13 20:05:19 --> stree (~stree@68.36.8.116) has joined #python 2021-05-13 20:06:23 <-- d3sync (~d3sync@unaffiliated/d3sync) has quit (Ping timeout: 268 seconds) 2021-05-13 20:08:13 --> snatcher (~user@gateway/tor-sasl/snatcher) has joined #python 2021-05-13 20:08:40 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-13 20:09:41 <-- leitz (~LeamHall@c-174-56-144-2.hsd1.sc.comcast.net) has quit (Quit: nappy time) 2021-05-13 20:10:26 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-13 20:12:06 <-- edlou (uid413273@gateway/web/irccloud.com/x-weaznrlchrkrnopt) has quit (Quit: Connection closed for inactivity) 2021-05-13 20:13:08 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-13 20:14:14 <-- bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has quit (Quit: bilb_ono) 2021-05-13 20:14:14 <-- ricksanchez (~ricksanch@45.14.71.5) has quit (Quit: Leaving) 2021-05-13 20:15:36 <-- kek_ (~kek_@net-2001-067c-10ec-574f-8000-0000-0000-005b.v6.ethz.ch) has quit (Quit: Leaving) 2021-05-13 20:16:01 <-- predmijat (~predmijat@mail.strogopro.com) has quit (Quit: bye) 2021-05-13 20:16:15 --> kexec (55d89d92@unaffiliated/kexec) has joined #python 2021-05-13 20:16:34 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 252 seconds) 2021-05-13 20:17:25 --> leduyquang753 (~leduyquan@27.73.62.58) has joined #python 2021-05-13 20:17:27 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 260 seconds) 2021-05-13 20:17:30 --> predmijat (~predmijat@mail.strogopro.com) has joined #python 2021-05-13 20:17:43 --> ricksanchez (~ricksanch@103.125.235.18) has joined #python 2021-05-13 20:21:59 <-- llh (~coke@unaffiliated/llh) has quit (Ping timeout: 246 seconds) 2021-05-13 20:22:19 <-- gswallow (~gswallow@184.170.167.137) has quit (Remote host closed the connection) 2021-05-13 20:22:21 mawk when I do "raise SystemExit()" from a thread, it will close the whole process right? 2021-05-13 20:22:44 <-- p-i- (~Ohmu@node-i1h.pool-118-173.dynamic.totinternet.net) has quit (Remote host closed the connection) 2021-05-13 20:24:22 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-13 20:25:06 <-- mchlumsky (~mchlumsky@modemcable106.190-179-173.mc.videotron.ca) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-13 20:25:26 nedbat mawk: not sure, it might get swallowed by the thread runner 2021-05-13 20:25:39 mawk hmm 2021-05-13 20:26:04 mawk so I might spawn a new thread that does "sleep(5); os._exit()", then do the sys.exit() 2021-05-13 20:26:20 mawk if I had to do a dirty fix because I'm behind a deadline 2021-05-13 20:26:50 mawk the pretty fix would be to look where this is swallowed I suppose 2021-05-15 11:03:48 --> wymillerlinux (~wyatt@096-042-164-072.res.spectrum.com) has joined #python 2021-05-15 11:03:48 -- Topic for #python is "Anything about Python is on-topic. Don't paste, use https://bpaste.net/+python | Be nice. The Python CoC applies: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops are at #python-ops | #python-fr #python.de #python-uk #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu" 2021-05-15 11:03:48 -- Topic set by nedbat (~nedbat@python/psf/nedbat) on Wed, 19 Aug 2020 16:18:59 2021-05-15 11:03:48 -- Channel #python: 1629 nicks (0 ops, 0 voices, 1629 normals) 2021-05-15 11:03:53 -- Channel created on Sun, 26 Nov 2006 01:42:41 2021-05-15 11:04:00 c0mrade p0a, don't we agree that sorts are nLogn? or in case of example its a Log a. but thery're syaing it's not it's O(a*s log a) 2021-05-15 11:04:13 <-- spunk (~mm@ip2505fdb4.dynamic.kabel-deutschland.de) has left #python 2021-05-15 11:04:13 <-- leduyquang753 (~leduyquan@27.73.62.58) has quit (Quit: leaving) 2021-05-15 11:04:25 <-- herme5 (~mote@unaffiliated/codingkevin) has quit (Quit: WeeChat 3.1) 2021-05-15 11:04:32 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-15 11:05:12 c0mrade wait so the second sort is factoring in the length of the string with n Log n.... 2021-05-15 11:05:17 --> herme5 (~mote@unaffiliated/codingkevin) has joined #python 2021-05-15 11:05:36 --> banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has joined #python 2021-05-15 11:06:02 c0mrade You should take into account that you need to compare the strings, each string comparison takes O(s), still not quite getting it 2021-05-15 11:06:17 c0mrade I havent compared anything. 2021-05-15 11:06:37 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-15 11:07:07 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-15 11:07:15 --> jjakob (~quassel@2a01:260:8028:10f0::62) has joined #python 2021-05-15 11:07:18 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:8103:e87c:1983:ab0) has joined #python 2021-05-15 11:08:53 <-- Core9990 (~greyblue9@2600:381:4323:f8f4:c3ee:4547:ede3:640a) has quit (Ping timeout: 250 seconds) 2021-05-15 11:09:24 p0a Yhg1s: https://bpa.st/QJUQ 2021-05-15 11:09:44 p0a c0mrade: Okay first, one question is whether their analysis is correct or not; another question is what the actual problem we're trying to solve is 2021-05-15 11:10:20 c0mrade Their analysis is correct for sure. 2021-05-15 11:10:25 Yhg1s p0a: can you show the layout of files, by running something like 'tree'? 2021-05-15 11:10:29 Yhg1s (or 'find') 2021-05-15 11:10:38 c0mrade This is one of the most famous books. "Cracking the Coding Inteview" 2021-05-15 11:11:55 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:8103:e87c:1983:ab0) has quit (Ping timeout: 250 seconds) 2021-05-15 11:12:27 p0a Yhg1s: https://bpa.st/GFWQ 2021-05-15 11:13:00 Yhg1s p0a: tests/sids/ also needs an __init__.py file. 2021-05-15 11:13:07 --> sjoshi (~joshi_sun@2409:4050:e3e:2c83:7e01:33f1:f0c6:a16c) has joined #python 2021-05-15 11:13:15 --> stree (~stree@68.36.8.116) has joined #python 2021-05-15 11:13:43 p0a Yhg1s: same error 2021-05-15 11:14:06 <-- sqram (~resio@c-68-43-20-196.hsd1.mi.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-15 11:14:07 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-15 11:14:38 p0a c0mrade: Okay, what do you not understand exactly from the example? 2021-05-15 11:15:02 p0a c0mrade: I'm assuming you're taking an issue with something said after 'Now we can work through this in parts:'... 2021-05-15 11:15:34 c0mrade p0a, the second sort is a log a, am not getting why is it s * a log a 2021-05-15 11:15:48 p0a c0mrade: to be honest, I think the analysis is incorrect, unless there is more contextual information outside of what you've taken a picture of 2021-05-15 11:16:03 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-15 11:16:28 c0mrade No that's it. 2021-05-15 11:16:49 c0mrade Someone in the Python Discord channel replied to me like that: 2021-05-15 11:16:50 c0mrade Because sorting two strings could (in the worst case of identical strings) require you to iterate the entire length of the string. Ergo, s extra steps per iteration of a 2021-05-15 11:16:51 p0a c0mrade: or at least the parameters aren't named... `s' here is the maximum length of the strings involved, 2021-05-15 11:17:28 p0a c0mrade: a being the number of strings, so number_of_strings * sorting_worst_string is an upper bound 2021-05-15 11:17:30 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Quit: Leaving) 2021-05-15 11:17:35 Yhg1s p0a: hm, maybe I'm misunderstanding what should work with pytest. The usual recommendation (and it's a good one!) is to use tox or nox to run pytest in a virtualenv, instead. 2021-05-15 11:17:47 c0mrade Also someone else saying: 2021-05-15 11:17:48 c0mrade Sorting is n log n assuming that each comparison between items is constant time 2021-05-15 11:18:04 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-15 11:18:06 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-15 11:18:11 p0a Well they're pointing out what I also pointed out with the ["a...a", "a...ab"] example 2021-05-15 11:18:20 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Quit: Beddie bye-bye) 2021-05-15 11:18:46 <-- dab21 (~dab21@pistis.amyanddavid.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-15 11:18:57 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Quit: WeeChat 3.1) 2021-05-15 11:18:59 --> dab21 (david@pistis.amyanddavid.net) has joined #python 2021-05-15 11:19:09 p0a at the end of the big-O analysis you get a sum, which is two completely separate problems' complexities added. Which one are you taking an issue with? 2021-05-15 11:19:19 --> vidbina (~vid@dynamic-077-011-127-130.77.11.pool.telefonica.de) has joined #python 2021-05-15 11:19:34 --> LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has joined #python 2021-05-15 11:19:36 c0mrade What do you mean. 2021-05-15 11:19:47 c0mrade The end result is O(a*s(log a + log s)) 2021-05-15 11:20:17 p0a It's also equal to O(a*s*log a) + O(a*s*log s) 2021-05-15 11:20:31 p0a and each of the two summands is the result of big-O analysis of separate problems 2021-05-15 11:20:51 <-- dab21 (david@pistis.amyanddavid.net) has quit (Client Quit) 2021-05-15 11:21:00 --> Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has joined #python 2021-05-15 11:21:03 --> dab21 (~dab21@pistis.amyanddavid.net) has joined #python 2021-05-15 11:21:24 c0mrade I don't know. That's Example Number 8. There's no seperate problems. 2021-05-15 11:22:03 p0a Yeah the problem stated in Example 8 is split into two subproblems though 2021-05-15 11:22:05 <-- dab21 (~dab21@pistis.amyanddavid.net) has quit (Client Quit) 2021-05-15 11:22:12 <-- Elodin (~weechat@unaffiliated/padawan) has quit (Quit: WeeChat 3.1) 2021-05-15 11:22:28 --> dab21 (~dab21@pistis.amyanddavid.net) has joined #python 2021-05-15 11:22:30 very_sneaky does it factor that way? 2021-05-15 11:22:44 very_sneaky maybe it does 2021-05-15 11:22:56 very_sneaky it's also O(a*s*log(a)*log(s)) 2021-05-15 11:23:03 --> Elodin (~weechat@unaffiliated/padawan) has joined #python 2021-05-15 11:23:12 p0a That's not sharp though 2021-05-15 11:23:23 leitz nedbat, graingert, kim_bruning; thanks! I need to take a break, but the initial code is up: https://github.com/LeamHall/admin_tools/blob/master/build_pages.py 2021-05-15 11:23:24 <-- jayjo (~jayjo@unaffiliated/jayjo) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-15 11:23:43 --> jayjo (~jayjo@unaffiliated/jayjo) has joined #python 2021-05-15 11:24:31 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 252 seconds) 2021-05-15 11:25:40 kim_bruning leitz, neat! 2021-05-15 11:25:42 p0a very_sneaky: getting the length of two lists can be said to be O(N) + O(M) or O(N + M). You can also claim O(N * M) but it's not optimal. The reason why O factors through addition (and multiplication) is that 1. its definition 2. it is an equivalence class and + extends. 2021-05-15 11:26:22 <-- dab21 (~dab21@pistis.amyanddavid.net) has quit (Client Quit) 2021-05-15 11:26:32 very_sneaky i don't disagree 2021-05-15 11:26:54 very_sneaky i was just saying you don't need the addition because log laws 2021-05-15 11:27:11 --> dab21 (dab21@pistis.amyanddavid.net) has joined #python 2021-05-15 11:27:43 p0a I don't see the log law involved, what you wrote is not optimal 2021-05-15 11:28:11 p0a It's log(a*b) = log(a) + log(b) 2021-05-15 11:28:18 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-15 11:28:30 p0a Okay, so you meant to write O(a*s*log(a + s)) ... :) 2021-05-15 11:28:44 <-- Some_Person (someperson@2600:1700:d02:1c50:ce81:24dc:3854:f698) has quit (Ping timeout: 245 seconds) 2021-05-15 11:29:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 11:29:48 --> __marco (~marco@195.218.6.205) has joined #python 2021-05-15 11:29:48 <-- rgr (~rgr@p200300e4170c80a3265055158a9cb326.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-15 11:30:02 <-- hrobj (~hrobj@nova-157-097-016-171.cpe.novanet.is) has quit (Quit: Leaving) 2021-05-15 11:30:30 --> sec0x815 (~Thunderbi@cpc104854-sgyl39-2-0-cust199.18-2.cable.virginm.net) has joined #python 2021-05-15 11:31:03 DPA Can SortedSet from the sortedcontainers module handle the situation that all keys of SortedSet(key=lambda: job.min - self.offset & 0xFFFFFFFF) change due to self.offset changing, 2021-05-15 11:31:03 DPA but without changing the order of it's elements, because I remove all elements that would have become smaller than offset / wrapped around the ring space? 2021-05-15 11:31:13 --> paddymahoney (~paddymaho@cpe9050ca207f83-cm9050ca207f80.cpe.net.cable.rogers.com) has joined #python 2021-05-15 11:31:58 p0a Yhg1s: I think I was in the wrong .venv... whoops. Thank you 2021-05-15 11:32:05 very_sneaky p0a: ah, yes :P 2021-05-15 11:32:21 <-- bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-15 11:32:48 <-- blackleitus (~blackleit@189.195.192.244) has quit (Read error: Connection reset by peer) 2021-05-15 11:32:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 11:33:39 --> bbert (~hrobj@nova-157-097-016-171.cpe.novanet.is) has joined #python 2021-05-15 11:33:46 <-- MikZyth (~MikZyth@188.65.243.2) has quit (Quit: WeeChat 3.1) 2021-05-15 11:33:48 --> blackleitus (~blackleit@189.195.192.244) has joined #python 2021-05-15 11:34:42 bbert I have some 100x GB of data in a database Im building, the database is custom built using numpy arrays and memmaps to disk. 2021-05-15 11:35:21 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 265 seconds) 2021-05-15 11:35:22 bbert I have no experience with programming patters on writing databases, but I noticed I must be careful with number of open files, as my database is spread over many 1MB chunks on disk 2021-05-15 11:35:26 <-- rsx (~rsx@ppp-188-174-138-175.dynamic.mnet-online.de) has quit (Quit: rsx) 2021-05-15 11:35:32 bbert *patterns 2021-05-15 11:35:40 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-15 11:35:56 bbert I measured the open file time in python and found that its pretty much just about a millisecond... 2021-05-15 11:36:37 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Ping timeout: 252 seconds) 2021-05-15 11:36:39 bbert however Im a little worried if opening and closing database files at rapid rates on linux causes any OS bottlenecks or unexpected problems that I am not familiar with at all. 2021-05-15 11:37:27 bbert linux os has at least a limit on open files... 1024. 2021-05-15 11:39:18 p0a bbert: everything on linux is a file, I think rapid opening & closing of files is going to be handled well 2021-05-15 11:39:25 <-- p0a (~user@unaffiliated/p0a) has quit (Quit: bye) 2021-05-15 11:39:36 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-15 11:39:57 --> Jerrynicki (~niklas@p200300f57721c8008c9bc59633aa2bef.dip0.t-ipconnect.de) has joined #python 2021-05-15 11:40:14 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-15 11:40:14 amogorkon bbert, why do you have 1MB chunks on disk if you have numpy arrays? 2021-05-15 11:40:23 bbert p0a, I guess I should just check and see how it behaves :)... seems to work great so far. 2021-05-15 11:40:37 blackleitus is possible to make a io operation faster? 2021-05-15 11:40:40 bbert I keep a buffer of open file connections... only closing if need a new file. 2021-05-15 11:41:05 <-- sec0x815 (~Thunderbi@cpc104854-sgyl39-2-0-cust199.18-2.cable.virginm.net) has quit (Remote host closed the connection) 2021-05-15 11:41:23 bbert amogorkon, I suppose I could make the arrays bigger... the chunks are essentially flat np arrays 2021-05-15 11:41:36 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-15 11:41:47 amogorkon bbert, maybe i missed something, but if i had 100GB worth of numpy arrays, i'd use hdf5, not a db.. 2021-05-15 11:41:56 amogorkon or maybe a db in conjunction with hdf5 2021-05-15 11:42:06 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-15 11:42:21 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-15 11:42:42 amogorkon bbert, i don't really see the point in handling those chunks manually? 2021-05-15 11:42:42 bbert amogorkon, the data is yes spatial in reality and I use kdtree to handle indexing of lookup in the database 2021-05-15 11:43:32 bbert amogorkon, it would be great to find some library, like hdf5 that does that reliably. I ran into problems with xarray for example because it uses dask, and dask was causing people problems with load times... 2021-05-15 11:43:32 <-- Alexander-47u (~Alexander@85.203.20.78) has quit (Read error: Connection reset by peer) 2021-05-15 11:43:40 bbert I should check if hdf5 lib uses dask... 2021-05-15 11:43:57 amogorkon what has dask to do with hdf5? 2021-05-15 11:44:08 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-15 11:44:18 bbert hdf5 netcdf would be a good data storage indeed 2021-05-15 11:44:19 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-15 11:44:34 bbert amogorkon, but I want to quickly read from disk... only the data being asked for 2021-05-15 11:44:43 amogorkon hdf5 does that 2021-05-15 11:45:25 bbert amogorkon, ok I will look into it.... its one thing the file format... another thing the library that actually reads form the file. I ran into problems using xarray on hdf5 and netcdf. 2021-05-15 11:45:32 bbert but lower level libs might do the trick 2021-05-15 11:45:37 amogorkon comes with transparent compression and other fancy stuff 2021-05-15 11:45:58 amogorkon i can recommend reading the hdf5 book, if you want to go into detail 2021-05-15 11:46:22 bbert amogorkon, no you are right... hdf5 and netcdf are excellent data containers... do everything 2021-05-15 11:46:30 <-- jokoon (~jokoon@unaffiliated/jokoon) has quit (Quit: Leaving) 2021-05-15 11:46:49 amogorkon bbert, https://learning.oreilly.com/library/view/python-and-hdf5/9781491944981/ 2021-05-15 11:48:41 bbert cached reads with xarray on hdf5 were however a problem... and I found was coded into dask. It assumed I wanted cached reads :) killed performance. But if I check out hdf5 module, it will probably just do exactly what I want it to do. 2021-05-15 11:48:55 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-15 11:48:57 bbert if I say read this byte at this offset... just do that please... nothing else :) 2021-05-15 11:49:55 bbert the higher level the library the more potential problems thats all :) 2021-05-15 11:50:19 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-15 11:50:39 blackleitus is possible to make a io operation faster than using another processador? 2021-05-15 11:51:16 amogorkon bbert, not sure about caching, but hdf5 is good at reading only pieces from a mountain of data, that's the point in being "hierarchical" ^^ 2021-05-15 11:51:40 bbert amogorkon, yes :) agree 2021-05-15 11:52:00 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-15 11:52:02 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-15 11:52:29 <-- sgn (~sgn@27.75.102.31) has quit (Quit: WeeChat 3.1) 2021-05-15 11:52:43 bbert blackleitus, I dont understand the question, 2021-05-15 11:53:07 --> sgn (~sgn@27.75.102.31) has joined #python 2021-05-15 11:53:15 bbert blackleitus, you can use threads... if thats what you are asking 2021-05-15 11:53:52 blackleitus well. threads doesnt help since my code depends a lot of scrapping 2021-05-15 11:54:42 bbert blackleitus, scraping? or scrapping? 2021-05-15 11:55:02 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Excess Flood) 2021-05-15 11:55:50 graingert You can buy a faster network connection 2021-05-15 11:55:56 blackleitus `scraping` 2021-05-15 11:56:23 blackleitus +graingert, I notice vps makes the scrip a lot faster with 1TB network 2021-05-15 11:56:37 --> Lycurgus (~niemand@cpe-45-46-140-49.buffalo.res.rr.com) has joined #python 2021-05-15 11:56:58 graingert Buy an even faster network connection 2021-05-15 11:57:04 bbert blackleitus, scraping can be made very concurrent usually. 2021-05-15 11:57:45 bbert blackleitus, I think google search enginge bots do that, unless Im mistaken 2021-05-15 11:59:01 --> rgr (~rgr@p200300e4170c80a3265055158a9cb326.dip0.t-ipconnect.de) has joined #python 2021-05-15 11:59:06 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-15 11:59:07 bbert blackleitus, and as graingert said... maybe your internet speed is slow... where is your bottleneck? Downloading webpages, or is your CPU thread maxing out when processing the pages? 2021-05-15 11:59:12 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has joined #python 2021-05-15 11:59:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 11:59:46 --> eedgit (~textual@84.64.201.21) has joined #python 2021-05-15 12:00:29 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:8103:e87c:1983:ab0) has joined #python 2021-05-15 12:00:33 --> Rudd0 (~Rudd0@185.189.115.103) has joined #python 2021-05-15 12:00:36 blackleitus +bbert, it could be a both 2021-05-15 12:00:58 bbert blackleitus, it might not be your internet speed... usually the servers you fetch from are also limited... and dont respond immediatly or at full speed 2021-05-15 12:01:21 bbert blackleitus, I would think you would normally get huge improvements by running a few threads to fetch data online 2021-05-15 12:01:23 blackleitus sure, but why mine script on my local takes 2 days , and vps 30 min 2021-05-15 12:01:24 blackleitus ? 2021-05-15 12:01:32 blackleitus network + hardware? 2021-05-15 12:01:45 <-- TimeTrap (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has quit (Ping timeout: 250 seconds) 2021-05-15 12:01:49 bbert blackleitus, how big is the data... where are you getting the data from? 2021-05-15 12:02:54 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-15 12:02:58 bbert hm... ok VPS is faster huh? is it your own VPS or some service provider? 2021-05-15 12:03:10 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 12:03:19 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 245 seconds) 2021-05-15 12:03:37 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-15 12:04:15 --> Hariama (Hariama@gateway/vpn/airvpn/hariama) has joined #python 2021-05-15 12:04:25 bbert its not so unusual that you might get speedup based on location... and protocols... it can depend on so many things... e.g. your service provider might be limiting certain TCP ports, but not limiting VPN 2021-05-15 12:04:43 bbert or anyone along the route to the data could be limiting and optimizing 2021-05-15 12:05:37 <-- Hariama (Hariama@gateway/vpn/airvpn/hariama) has quit (Client Quit) 2021-05-15 12:05:41 bbert the server that provides the data... e.g. netflix or someone might be prioritizing speed towards certain ip addresses, in USA for example 2021-05-15 12:06:12 bbert when you join a VPN network your ip address and location looks different to the whole system.. 2021-05-15 12:06:28 blackleitus +bbert, the data comes from indeed and how much 22 countries with 400+ cities with 30+ job profiles . this gives me 4k+ requests 2021-05-15 12:06:52 <-- Seirdy (~Seirdy@206.217.205.65) has quit (Ping timeout: 252 seconds) 2021-05-15 12:07:13 --> Seirdy (~Seirdy@206.217.205.65) has joined #python 2021-05-15 12:08:08 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-15 12:08:32 bbert blackleitus, well yes there is nothing wrong with your internet connection... but your ISP, the server and servers along route are doing something based on your IP and/or protocol to slow you down. Im not sure you can easily figure that out though, what exactly their policy is. 2021-05-15 12:08:42 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-15 12:09:31 * nedbat uses "global" and won't apologize 2021-05-15 12:09:33 <-- vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-15 12:10:36 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-15 12:10:44 <-- zebrag (~inkbottle@aaubervilliers-654-1-87-61.w86-212.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-15 12:10:58 bbert blackleitus, you can set up your own VPN... if your ISP is causing issues.... also try running your program on an AWS instance in different regions, see what helps 2021-05-15 12:11:21 --> dub_a (~dub_a@2601:1c2:4e00:3b3::cb2) has joined #python 2021-05-15 12:11:26 <-- Seirdy (~Seirdy@206.217.205.65) has quit (Ping timeout: 240 seconds) 2021-05-15 12:11:33 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Client Quit) 2021-05-15 12:11:34 --> rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has joined #python 2021-05-15 12:11:47 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-15 12:12:01 <-- muhaha (5e7050c8@gateway/web/cgi-irc/kiwiirc.com/ip.94.112.80.200) has quit (Quit: Connection closed) 2021-05-15 12:12:02 bbert blackleitus, or just accept whatever your ISP and routing and target servers are doing... and run many threads instead fetching the data. 2021-05-15 12:12:15 --> Seirdy (~Seirdy@206.217.205.65) has joined #python 2021-05-15 12:12:38 <-- _till_ (~till@unaffiliated/till/x-7804721) has quit (Ping timeout: 268 seconds) 2021-05-15 12:13:15 bbert nedbat, I use globals mainly to set a configuration state in a module. Good for state pattern 2021-05-15 12:13:39 --> CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has joined #python 2021-05-15 12:13:46 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-15 12:13:57 bbert nedbat, also globals I use for buffers... keeping track of objects in a particular state. 2021-05-15 12:15:04 bbert nedbat, maybe many other non-global ways of doing it though :) 2021-05-15 12:15:22 nedbat bbert: there usually are! 2021-05-15 12:16:05 squirrel why did python decide against final variables? (names that can't be rebound) 2021-05-15 12:16:14 bbert nedbat, I think I goto was allowed, I might use that too lol 2021-05-15 12:17:27 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-15 12:17:54 <-- dub_a (~dub_a@2601:1c2:4e00:3b3::cb2) has quit (Ping timeout: 245 seconds) 2021-05-15 12:18:33 nedbat squirrel: there's very little in Python that means "you can't do that" 2021-05-15 12:18:55 --> _till_ (~till@unaffiliated/till/x-7804721) has joined #python 2021-05-15 12:19:20 --> stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has joined #python 2021-05-15 12:19:27 * JavaBean discovers he has a ping set up for when someone properly spells sq uirrel 2021-05-15 12:20:19 <-- ffe4 (~ffe4@200116b82c21bd0024f60ad415e21d8b.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-15 12:20:38 <-- Seirdy (~Seirdy@206.217.205.65) has quit (Ping timeout: 268 seconds) 2021-05-15 12:20:42 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-15 12:21:00 squirrel nedbat: the biggest point of final refernces is that they make code easier to reason about imo 2021-05-15 12:21:12 --> Seirdy (~Seirdy@206.217.205.65) has joined #python 2021-05-15 12:21:13 nedbat squirrel: there are definite advantages 2021-05-15 12:21:13 --> trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has joined #python 2021-05-15 12:21:34 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-15 12:21:35 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 246 seconds) 2021-05-15 12:21:42 nedbat squirrel: private/public also makes code easier to reason about. also, static types. 2021-05-15 12:22:17 --> ffe4 (~ffe4@200116b82c21bd0024f60ad415e21d8b.dip.versatel-1u1.de) has joined #python 2021-05-15 12:22:44 --> un1c0rrn (~dennisjun@p200300e72f23ea00a1c1dd35966c6e9e.dip0.t-ipconnect.de) has joined #python 2021-05-15 12:22:46 squirrel well, yes 2021-05-15 12:23:18 <-- haslo (uid390999@gateway/web/irccloud.com/x-dnwfezcgteulbkbh) has quit (Quit: Connection closed for inactivity) 2021-05-15 12:23:21 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 252 seconds) 2021-05-15 12:24:01 --> herbas (~herbas@88.118.170.138) has joined #python 2021-05-15 12:25:07 blackleitus +bbert, I did on DO with US servers and works pretty fine 2021-05-15 12:25:33 blackleitus my code is this https://github.com/SkyBulk/hunter/blob/master/hunter.py 2021-05-15 12:25:37 bbert squirrel, would final declaration not make python typed in some way? But then I see in JS, you can do something like that even though JS is considered ducktyped 2021-05-15 12:25:37 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Ping timeout: 265 seconds) 2021-05-15 12:25:49 blackleitus I think it need to refactor to asyncio 2021-05-15 12:25:54 <-- veek (~veek@unaffiliated/veek) has quit (Quit: Leaving) 2021-05-15 12:26:33 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-15 12:26:41 squirrel bbert: i don't think it would? it just says, you can't reassign to this name 2021-05-15 12:26:51 <-- ffe4 (~ffe4@200116b82c21bd0024f60ad415e21d8b.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-15 12:26:54 <-- Seirdy (~Seirdy@206.217.205.65) has quit (Ping timeout: 260 seconds) 2021-05-15 12:27:06 bbert squirrel, right, its not a type... just dont change this 2021-05-15 12:27:14 bbert * the ref that is 2021-05-15 12:27:18 --> Seirdy (~Seirdy@206.217.205.65) has joined #python 2021-05-15 12:28:09 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-15 12:28:11 <-- Seirdy (~Seirdy@206.217.205.65) has quit (Max SendQ exceeded) 2021-05-15 12:28:20 squirrel when i started writing in a language that has `val`/`var` i realized that i actually almost never need to rebing names. so i have my editor highlight mutable variable names in a special way. super useful 2021-05-15 12:28:35 --> Seirdy (~Seirdy@206.217.205.65) has joined #python 2021-05-15 12:28:55 bbert squirrel, also JS has control of scope with let and var 2021-05-15 12:29:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 12:31:18 bbert squirrel, JS const / final would maybe the most useful though for debugging, but Ive never found a bug that way... or very rare. Unit and integration testing most often by far most helpful 2021-05-15 12:31:24 --> ffe4 (~ffe4@200116b82c21bd0024f60ad415e21d8b.dip.versatel-1u1.de) has joined #python 2021-05-15 12:32:13 --> rnmhdn (~rnmhdn@unaffiliated/rnmhdn) has joined #python 2021-05-15 12:32:16 <-- Peyam (~Peyam@c83-250-236-236.bredband.tele2.se) has quit (Remote host closed the connection) 2021-05-15 12:32:18 blackleitus how can I refactor the following code https://github.com/SkyBulk/hunter/blob/master/hunter.py ? 2021-05-15 12:32:59 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 12:33:03 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-15 12:33:12 <-- _0x5eb_ (~seb@69.63.121.78.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-15 12:33:21 <-- parabolize (~paraboliz@98.43.173.221) has quit (Quit: leaving) 2021-05-15 12:33:33 nemo_ the biggest is problem is those god awful indents. 2021-05-15 12:34:51 bbert blackleitus, I think you can keep on using requests, there are a zillion tutorials on threads in python on youtube... begin with something simple. 2021-05-15 12:35:03 --> _0x5eb_ (~seb@69.63.121.78.rev.sfr.net) has joined #python 2021-05-15 12:35:17 ChrisWarrick a zillion tutorials, and a zillion of them have grave mistakes… 2021-05-15 12:35:36 --> Deep6 (~Deep6@fixed-187-191-36-13.totalplay.net) has joined #python 2021-05-15 12:36:03 bbert blackleitus, the code will be more verbose though... you could consider (depends what you are doing) running many instances of your program too 2021-05-15 12:36:18 <-- Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has quit (Quit: WeeChat 2.8) 2021-05-15 12:36:35 blackleitus +bbert, like rabbitmq ? 2021-05-15 12:37:10 bbert blackleitus, with threads you really need to look at a simple introduction... it will should show you how to sync up your threads... you need await your threads to finish if they depend on each other. 2021-05-15 12:37:13 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-15 12:37:47 --> gelignite (~gelignite@55d4591d.access.ecotel.net) has joined #python 2021-05-15 12:38:03 bbert blackleitus, in some cases... they are completely independent... and you need not sync anything up... then your code simple... or run many instances "workers" 2021-05-15 12:38:21 blackleitus I Have heard asyncio is better with slow io 2021-05-15 12:39:03 --> gisitis (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has joined #python 2021-05-15 12:39:03 <-- greedom (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has quit (Read error: Connection reset by peer) 2021-05-15 12:39:05 bbert rabbitmq is just that a message queue... can use for inter process communication... sorry can you tell me what do you do with the data once it is downloaded? 2021-05-15 12:39:46 bbert do you need to call another process / method to work on the data as a whole? ... e.g. do you scrape many sites... then somehow process the total result of many sites? 2021-05-15 12:39:53 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-15 12:40:26 --> MIF (~MIF@heb12/developer/nate) has joined #python 2021-05-15 12:40:30 <-- gisitis (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has quit (Remote host closed the connection) 2021-05-15 12:41:03 <-- stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-15 12:41:12 <-- pangpang (~pangpang@unaffiliated/pangpang) has quit (Remote host closed the connection) 2021-05-15 12:41:37 blackleitus I want to scrape jobs based on profiles, and then apply a second job AI to avoid searching for jobs 2021-05-15 12:41:46 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-15 12:41:53 blackleitus so the script it will give me matched jobs based on my resume 2021-05-15 12:43:06 bbert blackleitus, so you would be happy just filling up a directory with text files of job offers matching your CV? 2021-05-15 12:43:45 bbert each job you download, you just check... hey does this match my cv?... if TRUE write to folder? 2021-05-15 12:43:57 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-15 12:44:05 <-- torandu (~sean@94.10.124.37) has quit (Quit: leaving) 2021-05-15 12:44:41 <-- Rudd0 (~Rudd0@185.189.115.103) has quit (Ping timeout: 246 seconds) 2021-05-15 12:44:57 blackleitus +bbert, exactly 2021-05-15 12:45:14 blackleitus PDF + IMG + OCR + TEXT 2021-05-15 12:45:16 bbert then your scraping jobs are independent... they dont need comparison or anything... I would just skip threads... and fire up many instances of your program... 2021-05-15 12:45:41 blackleitus the scraper is the dataset to perform basic ML 2021-05-15 12:46:21 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-15 12:47:01 bbert hm.... ML on what? what are you trying to make your program learn? Do you tell the program hey... this one is good this one is bad... and the program learns how to match your CV? 2021-05-15 12:47:03 --> hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has joined #python 2021-05-15 12:47:28 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-15 12:47:43 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Read error: Connection reset by peer) 2021-05-15 12:47:45 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: No route to host) 2021-05-15 12:47:48 bbert blackleitus, btw... a fantastic program / service if you put it online :) 2021-05-15 12:47:50 --> Core6480 (~greyblue9@2600:381:221e:bf68:6149:f64f:a43a:640) has joined #python 2021-05-15 12:48:13 --> aslicedbanjo (~aslicedba@81.141.55.248) has joined #python 2021-05-15 12:48:23 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-15 12:49:37 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 268 seconds) 2021-05-15 12:49:40 blackleitus +bbert, I am so lazy xD to dig into multiples sites , and I code my boring stuff 2021-05-15 12:50:12 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-15 12:50:23 <-- Lycurgus (~niemand@cpe-45-46-140-49.buffalo.res.rr.com) has quit (Quit: Exeunt) 2021-05-15 12:50:33 blackleitus +bbert, the ml is only to check out which jobs based on summary fits to your resume based on the TD/TF keyword frequency 2021-05-15 12:50:34 bbert blackleitus, well take it in steps... dont try to do everything in one go... Im not convinced you need ML just yet... maybe you just need a list of keywords 2021-05-15 12:50:44 ChrisWarrick Can someone tell me why this spam site is on Planet Python? https://www.pythonpool.com/convert-list-to-set-python/ is just so wrong, and they have more of those… 2021-05-15 12:51:05 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-15 12:51:09 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has quit (Ping timeout: 250 seconds) 2021-05-15 12:51:16 <-- rgr (~rgr@p200300e4170c80a3265055158a9cb326.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-15 12:51:23 blackleitus https://github.com/Remus-Hack-n-Roll-2019/job-matcher it is done already +bbert 2021-05-15 12:51:43 blackleitus my project + this new from github fits to the right solution to put it online 2021-05-15 12:51:45 bbert blackleitus, well this all sounds like you can just fire up many instances... but keeping a check if you already fetched something, dont refetch stuff. 2021-05-15 12:51:49 <-- gswallow (~gswallow@184.170.167.137) has quit 2021-05-15 12:52:01 <-- Core6480 (~greyblue9@2600:381:221e:bf68:6149:f64f:a43a:640) has quit (Ping timeout: 250 seconds) 2021-05-15 12:52:14 bbert blackleitus, you could hash the job description you download.... and use that as a file name in your directory 2021-05-15 12:52:24 blackleitus maybe crawling indeed wasnt the right choice , but the api doesnt give me more than 100 jobs 2021-05-15 12:52:32 bbert blackleitus, hash the site URL for example 2021-05-15 12:52:41 <-- Mulugruntz (~Mulugrunt@2400:4152:2063:3100:b86c:51c5:28be:4f9e) has quit (Quit: ZZZzzz…) 2021-05-15 12:53:07 blackleitus so massive job finder supported with AI = job finder that match correct jobs 2021-05-15 12:53:23 --> wizzwizz4 (~wizzwizz4@host86-133-246-84.range86-133.btcentralplus.com) has joined #python 2021-05-15 12:53:55 <-- herbas (~herbas@88.118.170.138) has quit (Quit: herbas) 2021-05-15 12:54:34 <-- FastJack (~fastjack@b2b-78-94-22-14.unitymedia.biz) has quit (Ping timeout: 268 seconds) 2021-05-15 12:55:15 bbert blackleitus, hm... well ML normally means you are trying to learn from a human... what you think is great... I would not bother to make this hugely complicated though... just I would create keyword dictionary with scores and add up the scores... and keep tuning it 2021-05-15 12:55:46 bbert scores = { 'c++': 5, 'python': 10, 'machine learning': 10 ....} 2021-05-15 12:55:50 <-- denisse (~denisse@gateway/tor-sasl/alephzer0) has quit (Quit: ZNC - https://znc.in) 2021-05-15 12:56:13 --> denisse (~denisse@gateway/tor-sasl/alephzer0) has joined #python 2021-05-15 12:56:15 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 246 seconds) 2021-05-15 12:57:11 bbert my 2 cents... also I dont have time to apply for 1000 jobs :) ... but you have a great idea to filter through stuff and pick the best. 2021-05-15 12:57:56 --> Albori (~Albori@216-229-75-195.fidnet.com) has joined #python 2021-05-15 12:58:24 bbert just write a program that does this... downloads, checks keywords, adds up a score... save if score > some_number... 2021-05-15 12:58:32 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-15 12:58:43 bbert then run 5x of these in background if you want. 2021-05-15 12:59:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 12:59:37 bbert on linux / macos / bsd ... $ ./jobHunter.py & ./jobHunter.py & ./jobHunter.py & ./jobHunter.py & ... 2021-05-15 13:01:32 --> FastJack (~fastjack@b2b-78-94-22-14.unitymedia.biz) has joined #python 2021-05-15 13:01:43 bbert heck... good idea to put negative scores too { 'fortran': -10, 'R': -50 ... 2021-05-15 13:02:23 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-15 13:02:24 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-15 13:02:39 bbert { 'professor': -100, 'university': -100, 'research': -30 ... 2021-05-15 13:03:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 13:03:43 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:8103:e87c:1983:ab0) has quit (Ping timeout: 250 seconds) 2021-05-15 13:06:45 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-15 13:06:48 --> nichlas (uid374954@gateway/web/irccloud.com/x-colsiubqnjdiqufm) has joined #python 2021-05-15 13:07:04 --> zahlman (~zahlman@bras-base-toroon4432w-grc-04-174-93-62-159.dsl.bell.ca) has joined #python 2021-05-15 13:08:11 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-15 13:08:12 --> philh (~philh@88.130.152.88) has joined #python 2021-05-15 13:08:46 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-15 13:10:33 <-- rendar (~rendar@unaffiliated/rendar) has quit 2021-05-15 13:11:12 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-15 13:12:48 <-- Elodin (~weechat@unaffiliated/padawan) has quit (Quit: WeeChat 3.1) 2021-05-15 13:13:39 --> Elodin (~weechat@unaffiliated/padawan) has joined #python 2021-05-15 13:15:10 --> m1n10n (~georgeclo@cpe-76-184-204-251.tx.res.rr.com) has joined #python 2021-05-15 13:15:22 blackleitus +bbert, that's part of ML since translate to NLP 2021-05-15 13:15:50 <-- kilitary (~kilitary@kilitary.ru) has quit (Remote host closed the connection) 2021-05-15 13:16:17 blackleitus `NLP is a field in machine learning` < +bbert 2021-05-15 13:16:27 --> a6a45081-2b83 (~aditya@122.163.132.249) has joined #python 2021-05-15 13:17:02 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-15 13:17:13 bbert blackleitus, NLP then allows you to compare the meaning / content of job advert with your CV for example? 2021-05-15 13:17:46 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Quit: WeeChat 3.1) 2021-05-15 13:17:56 blackleitus exacttly NPL in this case is a keyword parser to match properly resumes to avoid workload from humans to search resumes 2021-05-15 13:18:12 bbert just seems like an overkill... Im not in this field, but sometimes read up on it... e.g. NLG I have done... and very clear computer programs cant express meaning 2021-05-15 13:18:32 blackleitus so we train descriptions , and resumes to match jobs 2021-05-15 13:18:57 bbert blackleitus, but if you do have a NLP that works, and can somehow give you a score... then use it yes. 2021-05-15 13:19:19 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-15 13:19:30 blackleitus at the end . I can have a bot(employee) that search jobs for me , and gives me the right data 2021-05-15 13:19:42 bbert in the end, whatever you do... doesnt seem like you need threads... if you dont want to use them... but threads are not hard in this case... but start simple 2021-05-15 13:20:43 <-- lucascastro (~lucascast@177-185-139-167.dynamic.isotelco.net.br) has quit (Ping timeout: 265 seconds) 2021-05-15 13:21:12 blackleitus sure, I dont think threads since it's io so the most thread or speed in the wold it wont work since bureaucracy 2021-05-15 13:21:12 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-15 13:21:13 bbert and threads are super useful anyway in programming, so why not use them in the project :) ... no awaits syncing to do 2021-05-15 13:21:46 blackleitus I will refactor to use asyncio so it's async 2021-05-15 13:21:47 --> vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has joined #python 2021-05-15 13:22:14 bbert blackleitus, well... you can write 200MB/s to your disk... you probably have 1Gbit internet speed... and only os many jobs to scrape... 2021-05-15 13:22:17 bbert *so 2021-05-15 13:22:53 blackleitus sure . I will trying to remove a lot of for's into mor readable , and avoid duplicates due for 2021-05-15 13:22:57 bbert your ISP or whatever is happening will probably speed up with many instances running or threads 2021-05-15 13:23:42 blackleitus by the way. the new vs create ` def __init__(self) -> None: 2021-05-15 13:23:43 blackleitus ` is this a new format? 2021-05-15 13:23:46 bbert + you know VPN cricumvents whatever your ISP is doing to you 2021-05-15 13:24:46 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-15 13:25:53 --> bbear (~bbear@2a01:e34:ec2b:d430:292c:fef7:dfd3:752e) has joined #python 2021-05-15 13:26:34 bbert blackleitus, I dont use that... but it just returns None. 2021-05-15 13:26:53 bbert it helps linters perhaps to see what you intend to return. 2021-05-15 13:27:10 bbert https://stackoverflow.com/questions/64933298/why-should-we-use-in-def-init-self-n-none 2021-05-15 13:28:03 bbert but greater python experts here can answer. 2021-05-15 13:28:05 --> philh_ (~philh@eth1-fw1-nbg6.eb.noris.de) has joined #python 2021-05-15 13:28:29 bbert Im not even sure when this feature was added. 2021-05-15 13:28:36 bbert python 3+? 2021-05-15 13:28:49 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 252 seconds) 2021-05-15 13:29:01 <-- rnmhdn (~rnmhdn@unaffiliated/rnmhdn) has quit (Quit: WeeChat 3.1) 2021-05-15 13:29:15 <-- PaulGit (~PaulGit@znc.paulg.it) has quit (Quit: ZNC 1.8.1 - https://znc.in) 2021-05-15 13:29:18 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 13:29:38 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-15 13:30:24 <-- philh (~philh@88.130.152.88) has quit (Ping timeout: 245 seconds) 2021-05-15 13:30:41 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-15 13:31:00 --> ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has joined #python 2021-05-15 13:31:01 <-- ooboyle (~ooboyle@modemcable042.178-70-69.static.videotron.ca) has quit (Ping timeout: 252 seconds) 2021-05-15 13:31:15 bbert someone says it came in 3.5+ and it helps annotation only, and linters. 2021-05-15 13:31:43 bbert when I try it... I can still return whatever i want in python shell.... so it has no impact. 2021-05-15 13:31:51 <-- sjoshi (~joshi_sun@2409:4050:e3e:2c83:7e01:33f1:f0c6:a16c) has quit (Quit: WeeChat 3.0-dev) 2021-05-15 13:33:11 --> kilitary (~kilitary@kilitary.ru) has joined #python 2021-05-15 13:33:27 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 13:34:48 --> stree (~stree@68.36.8.116) has joined #python 2021-05-15 13:34:53 bbert blackleitus, it doesnt actually return anything... its not some default, never used it myself. 2021-05-15 13:35:13 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 252 seconds) 2021-05-15 13:35:28 bbert blackleitus, just try def foo() -> "bla": pass 2021-05-15 13:35:34 <-- philh_ (~philh@eth1-fw1-nbg6.eb.noris.de) has quit (Remote host closed the connection) 2021-05-15 13:35:52 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-15 13:36:11 blackleitus when I see code like that. I think python becomes in C/C++ 2021-05-15 13:36:27 graingert it's 3.0 I think 2021-05-15 13:36:32 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-ecojzuipgicewyay) has joined #python 2021-05-15 13:36:34 bbert blackleitus, linters and mypy probably use it 2021-05-15 13:36:48 --> philh (~philh@eth1-fw1-nbg6.eb.noris.de) has joined #python 2021-05-15 13:36:51 <-- philh (~philh@eth1-fw1-nbg6.eb.noris.de) has quit (Remote host closed the connection) 2021-05-15 13:37:00 graingert mypy uses it 2021-05-15 13:37:14 bbert its like JS and Typescript except python syntax condones it 2021-05-15 13:37:15 --> PaulGit (~PaulGit@znc.paulg.it) has joined #python 2021-05-15 13:37:27 blackleitus how do I access to dict values without .value() 2021-05-15 13:37:30 graingert you don't need the `-> None:` if you have any other typed arguments on an `def __init__(self, etc: Etc): ...` 2021-05-15 13:37:35 graingert blackleitus: .items() ? 2021-05-15 13:38:25 bbert blackleitus, all the values or loop through it? 2021-05-15 13:38:41 bbert for x in myDict: print( myDict[x] ) 2021-05-15 13:38:55 graingert what's wrong with `.values()`? 2021-05-15 13:38:58 <-- teksimian (~teksimian@198-91-188-41.cpe.distributel.net) has quit (Ping timeout: 268 seconds) 2021-05-15 13:39:17 blackleitus https://dpaste.org/iEcq 2021-05-15 13:39:28 bbert graingert, nah its kewl too... depends though, few ways to loop dict 2021-05-15 13:39:45 blackleitus I need to return each cities to place it in another loop cities 2021-05-15 13:41:20 --> ashwanig (~ashwanig@103.101.212.238) has joined #python 2021-05-15 13:41:25 <-- ralderson (~textual@37.19.213.25) has quit (Ping timeout: 268 seconds) 2021-05-15 13:41:38 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-15 13:42:05 blackleitus https://github.com/SkyBulk/hunter/blob/master/hunter.py#L89 2021-05-15 13:42:21 <-- a6a45081-2b83 (~aditya@122.163.132.249) has quit (Remote host closed the connection) 2021-05-15 13:42:22 blackleitus I need to create a single value list containg all cities 2021-05-15 13:42:51 --> philh (~philh@eth1-fw1-nbg6.eb.noris.de) has joined #python 2021-05-15 13:43:21 bbert blackleitus, a list with unique values is called a set in python 2021-05-15 13:44:11 graingert https://www.irccloud.com/pastebin/Fpb1Gcgd/crawl.py 2021-05-15 13:44:17 graingert blackleitus: like this? 2021-05-15 13:44:27 bbert blackleitus, create a allCities=set()... loop through all your cities... and call allCities.add( city ) 2021-05-15 13:44:45 --> rgr (~rgr@p200300e4170c80a3265055158a9cb326.dip0.t-ipconnect.de) has joined #python 2021-05-15 13:44:50 blackleitus instead of having separate lists I need a list of cities a single one than having UA: cities, UK: cities 2021-05-15 13:44:51 bbert it will only add new city if its a unique city name 2021-05-15 13:45:18 bbert right... just loop 2021-05-15 13:45:58 bbert for reg in regions: for city in reg: citySet.add(city) ... 2021-05-15 13:46:01 bbert something like that 2021-05-15 13:46:06 bbert try it in a python terminal 2021-05-15 13:47:16 bbert a = [1,2,3,1,1,1]; s = set(); for x in a: s.add(x); print(s) 2021-05-15 13:47:18 blackleitus I need some kind of zip all dict values into a single list 2021-05-15 13:47:20 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-15 13:47:26 --> petan (~g@wikimedia/Petrb) has joined #python 2021-05-15 13:48:35 bbert blackleitus, ... with dicts you can get list of keys() or list of values() 2021-05-15 13:48:49 bbert just call myDict.values() ... you will get all values 2021-05-15 13:48:50 --> Abbott (~Abbott@unaffiliated/abbott) has joined #python 2021-05-15 13:49:12 bbert if you want them unique values... throw them into a set ... set( myDict.values() ) 2021-05-15 13:49:34 <-- ashwanig (~ashwanig@103.101.212.238) has quit (Ping timeout: 245 seconds) 2021-05-15 13:50:09 bbert blackleitus, try playing around with dicts and list and sets in a shell... it helps you do understand how this works... 2021-05-15 13:50:35 blackleitus sure, but `values` doesnt join them 2021-05-15 13:50:42 bbert blackleitus, learn how to loop lists and dicts before programming... these are like the most elementary data structures. 2021-05-15 13:50:49 <-- ffe4 (~ffe4@200116b82c21bd0024f60ad415e21d8b.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-15 13:50:51 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-15 13:50:54 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-15 13:52:18 bbert blackleitus, loop key and value in dict like this... for k, v in d.items(): print(k,v) 2021-05-15 13:52:38 bbert blackleitus, or just get the key value pairs... keyValPairs = myDict.items() 2021-05-15 13:53:27 blackleitus sure, but having to use items . translate to two loops one for values , and another for cities 2021-05-15 13:53:37 blackleitus can I translate this into a single loop merging all values? 2021-05-15 13:54:09 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit (Ping timeout: 245 seconds) 2021-05-15 13:55:11 --> ffe4 (~ffe4@200116b82c21bd0024f60ad415e21d8b.dip.versatel-1u1.de) has joined #python 2021-05-15 13:55:23 bbert ok you have something like {'US': [city1, city2, city3...], 'UK': [....], ...} 2021-05-15 13:56:45 bbert cities = []; for reg in regionCities: cities += regionsCities[reg]; 2021-05-15 13:57:29 redsh cities = [city for cc, cities in d.items() for city in cities] 2021-05-15 13:58:00 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-15 13:58:01 bbert yup... something like that too. 2021-05-15 13:58:27 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-15 13:58:42 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 268 seconds) 2021-05-15 13:59:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 13:59:56 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-15 14:00:22 --> Some_Person (someperson@23-118-229-174.lightspeed.hstntx.sbcglobal.net) has joined #python 2021-05-15 14:00:59 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 246 seconds) 2021-05-15 14:01:32 --> subho (~subho@fedora/subho) has joined #python 2021-05-15 14:01:37 blackleitus c = list(itertools.chain.from_iterable(zip(self.cities[city]))) # better. 2021-05-15 14:01:38 blackleitus I did this 2021-05-15 14:02:01 <-- clearcasting (~clearcast@167-179-182-7.a7b3b6.bne.nbn.aussiebb.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-15 14:02:23 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 14:02:34 blackleitus it should be in a single list https://dpaste.org/QofY#L61 2021-05-15 14:03:03 <-- vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-15 14:03:26 <-- psprint (~sg@91.245.82.2) has left #python ("WeeChat 1.6") 2021-05-15 14:03:56 <-- c0mrade (~c0mrade@unaffiliated/c0mrade) has quit (Quit: HydraIRC -> http://www.hydrairc.com <- Now with extra fish!) 2021-05-15 14:04:32 --> ashwanig (~ashwanig@103.101.212.238) has joined #python 2021-05-15 14:04:55 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-15 14:05:58 --> dudek (~dudek@185.150.236.112) has joined #python 2021-05-15 14:06:33 --> bariscant (~bariscant@78.173.77.179) has joined #python 2021-05-15 14:07:15 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: WeeChat 3.1) 2021-05-15 14:11:06 <-- bbert (~hrobj@nova-157-097-016-171.cpe.novanet.is) has quit (Quit: Leaving) 2021-05-15 14:11:40 <-- bariscant (~bariscant@78.173.77.179) has quit (Quit: Leaving) 2021-05-15 14:12:47 <-- ffe4 (~ffe4@200116b82c21bd0024f60ad415e21d8b.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-15 14:12:53 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 268 seconds) 2021-05-15 14:13:33 --> ffe4 (~ffe4@200116b82c21bd0024f60ad415e21d8b.dip.versatel-1u1.de) has joined #python 2021-05-15 14:13:33 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-15 14:13:52 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-15 14:15:50 <-- henninb (~henninb@63-226-190-31.mpls.qwest.net) has quit (Remote host closed the connection) 2021-05-15 14:16:03 <-- kim_bruning (~kim@2a02:8109:1440:176c:f90e:a60e:a810:2d23) has quit (Ping timeout: 260 seconds) 2021-05-15 14:16:26 --> stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has joined #python 2021-05-15 14:16:36 <-- xhalc (~xhalc@p5dcafd9b.dip0.t-ipconnect.de) has quit (Quit: ()) 2021-05-15 14:16:57 --> carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-15 14:17:17 <-- rpg (~rpg@162-219-230-90.fttp.usinternet.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-15 14:17:21 --> Kkeller (~Kkeller@2001:985:fef:1:4f9:6c11:ec90:45ac) has joined #python 2021-05-15 14:18:58 --> PoaB (~Thunderbi@134.3.91.178) has joined #python 2021-05-15 14:22:02 <-- nomic (~nomic@2a00:23c6:9910:1201:5c4e:8c0:354d:fad7) has quit (Quit: Leaving) 2021-05-15 14:22:26 --> korg815 (~korg815@unaffiliated/korg815) has joined #python 2021-05-15 14:24:30 --> vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has joined #python 2021-05-15 14:26:47 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-15 14:26:49 --> CaptainFuture (~Thunderbi@p5dedeb9d.dip0.t-ipconnect.de) has joined #python 2021-05-15 14:27:23 <-- vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has quit (Client Quit) 2021-05-15 14:28:44 --> mst (~matthewt@shadowcat/chainsaw-wielder/perl.gc) has joined #python 2021-05-15 14:28:46 <-- stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-15 14:28:52 mst ops around? (sorry) 2021-05-15 14:29:12 nedbat mst: #python-ops 2021-05-15 14:29:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 14:31:17 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit 2021-05-15 14:32:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 14:33:43 <-- Seirdy (~Seirdy@206.217.205.65) has quit (Ping timeout: 252 seconds) 2021-05-15 14:34:09 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-15 14:34:39 --> Seirdy (~Seirdy@206.217.205.65) has joined #python 2021-05-15 14:34:43 <-- stealth_ (~stealth_@216-197-160-97.regn.static.sasknet.sk.ca) has quit (Quit: Leaving) 2021-05-15 14:36:50 --> psprint (~sg@91.245.82.2) has joined #python 2021-05-15 14:37:06 <-- CaptainFuture (~Thunderbi@p5dedeb9d.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-15 14:37:59 --> CaptainFuture (~Thunderbi@p5dedeb9d.dip0.t-ipconnect.de) has joined #python 2021-05-15 14:38:15 <-- dub_a (~dub_a@192.252.212.45) has quit (Quit: WeeChat 3.1) 2021-05-15 14:39:10 --> yeyyeyyey (6d40f9bc@unaffiliated/db42) has joined #python 2021-05-15 14:39:10 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-15 14:39:39 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-15 14:40:11 <-- carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Ping timeout: 240 seconds) 2021-05-15 14:40:54 <-- yeyyeyyey (6d40f9bc@unaffiliated/db42) has quit (Client Quit) 2021-05-15 14:43:52 --> beatleboy07 (~beatleboy@c-24-17-50-149.hsd1.wa.comcast.net) has joined #python 2021-05-15 14:43:56 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-15 14:44:03 Pickchea Hey, I want to select a subset of a series by label. These options seem equivalent but which one is better style? `ser.loc[['a', 'b']]` or `ser.loc(axis=0)['a', 'b']`? 2021-05-15 14:47:12 <-- s00pcan (~chris@075-133-056-178.res.spectrum.com) has quit (Remote host closed the connection) 2021-05-15 14:47:17 --> vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has joined #python 2021-05-15 14:48:11 --> clearcasting (~clearcast@167-179-182-7.a7b3b6.bne.nbn.aussiebb.net) has joined #python 2021-05-15 14:49:49 --> tsaka__ (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) has joined #python 2021-05-15 14:50:01 --> Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has joined #python 2021-05-15 14:51:03 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Ping timeout: 246 seconds) 2021-05-15 14:51:47 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-15 14:51:58 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-15 14:52:55 --> p0a (~user@unaffiliated/p0a) has joined #python 2021-05-15 14:53:02 p0a how can I parse - with argparse? 2021-05-15 14:53:18 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-15 14:53:20 p0a things like `cat -', which read from stdin 2021-05-15 14:54:00 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-15 14:54:13 <-- vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-15 14:54:51 oprypin p0a, https://docs.python.org/3/library/argparse.html#argparse.FileType literally searched for '-' on the page 2021-05-15 14:56:02 <-- brainium (~brainium@unaffiliated/brainium) has quit (Quit: Konversation terminated!) 2021-05-15 14:56:06 <-- dub_a (~dub_a@192.252.212.45) has quit (Client Quit) 2021-05-15 14:56:29 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-15 14:56:36 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-15 14:56:52 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-15 14:57:08 --> greedom (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has joined #python 2021-05-15 14:57:27 ChrisWarrick searching for - without the quotes wouldn’t be very productive, and what if the page had used double quotes? 2021-05-15 14:57:36 --> wafflehunter (~wafflehun@ip-176-199-211-152.hsi06.unitymediagroup.de) has joined #python 2021-05-15 14:58:45 --> vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has joined #python 2021-05-15 14:59:19 BrenBarn then you could search for double quotes too 2021-05-15 14:59:20 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 14:59:23 p0a That was a good trick, to assume that there would be an example that contains '-' or "-", it did not occur to me. 2021-05-15 15:00:36 <-- CaptainFuture (~Thunderbi@p5dedeb9d.dip0.t-ipconnect.de) has quit (Ping timeout: 260 seconds) 2021-05-15 15:01:28 <-- vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has quit (Client Quit) 2021-05-15 15:03:03 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 15:04:39 --> brizz (~brizz@74.208.85.67) has joined #python 2021-05-15 15:05:31 <-- tsaka__ (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) has quit (Ping timeout: 260 seconds) 2021-05-15 15:06:18 brizz i was processing a very large list of data. there was an error that interrupted the script (It was processing for over 20+hours). Is there anyway I can resume at the spot it left off? I know a string that it stopped at. I'm just unsure how to do a for line in file, ...with an if--but still continue processing after finding the spot 2021-05-15 15:06:26 <-- Kkeller (~Kkeller@2001:985:fef:1:4f9:6c11:ec90:45ac) has quit (Read error: Connection reset by peer) 2021-05-15 15:06:36 <-- dub_a (~dub_a@192.252.212.45) has quit (Quit: WeeChat 3.1) 2021-05-15 15:06:48 _habnabit brizz, is the processing stateless? 2021-05-15 15:07:01 brizz not sure what that means 2021-05-15 15:07:09 brizz probably tho, ha 2021-05-15 15:07:09 _habnabit brizz, does it require knowledge of previous lines? 2021-05-15 15:07:18 brizz no it doesnt 2021-05-15 15:07:23 --> vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has joined #python 2021-05-15 15:07:25 _habnabit brizz, ok, then it's stateless 2021-05-15 15:07:31 _habnabit brizz, do you know about the `continue` statement 2021-05-15 15:07:33 <-- sartan (~sartan@unaffiliated/sartan) has quit (Quit: WeeChat 1.9.1) 2021-05-15 15:07:39 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-15 15:07:51 <-- vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has quit (Client Quit) 2021-05-15 15:07:55 brizz yes, ive tried doing that in my ide, and it shows that it wont continue on to the rest of my code 2021-05-15 15:08:02 redsh Add a cheeky little fd.seek(position), where position is the byte offset to where you want to go to. 2021-05-15 15:08:18 _habnabit brizz, huh? can you show us the code? 2021-05-15 15:08:22 brizz i was going to do an if data === 'my string': ...break, else: continue 2021-05-15 15:08:49 _habnabit brizz, `else: continue` is quite silly. just do `if not whatever: continue` and you don't need to add static nesting 2021-05-15 15:08:57 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-15 15:09:36 brizz so how would i do it with continue? was I thinking right with the if statement? 2021-05-15 15:09:37 redsh _habnabit: Static nesting? 2021-05-15 15:09:52 _habnabit redsh, anything that requires indenting a code block 2021-05-15 15:09:57 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-15 15:10:02 _habnabit brizz, `if not whatever: continue` at the top of your loop 2021-05-15 15:12:07 brizz that still continues processing the rest of my for loop--I dont want it to do that. I want it to skip processing (its database entries, but its 20hrs of it) 2021-05-15 15:12:32 --> barneygale (~barneygal@cpc93788-hari17-2-0-cust405.20-2.cable.virginm.net) has joined #python 2021-05-15 15:12:36 <-- Peetz0r (peetz0rgli@revspace/participant/peetz0r) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-15 15:13:09 <-- morket (~morket@51.154.42.99) has quit (Quit: Leaving) 2021-05-15 15:13:13 --> alexgr (~alexgr@unaffiliated/alexgr) has joined #python 2021-05-15 15:13:21 <-- alexgr (~alexgr@unaffiliated/alexgr) has quit (Client Quit) 2021-05-15 15:13:35 brizz wait maybe not 2021-05-15 15:13:47 altendky is there such a thing as a locale that will give you iso-8601 formatted dates? for %c or such. 2021-05-15 15:13:49 brizz i didnt put if not 'string' in f. forgot in f 2021-05-15 15:14:26 --> Peetz0r (peetz0rgli@revspace/participant/peetz0r) has joined #python 2021-05-15 15:14:35 <-- Trashlord (~trash@wikipedia/Sentient-Planet) has quit (Quit: "True ignorance is not the absence of knowledge, but the refusal to acquire it.") 2021-05-15 15:15:01 _habnabit brizz, `if 'string' not in f:` 2021-05-15 15:15:06 _habnabit brizz, so, problem solved? 2021-05-15 15:15:16 brizz yea its not doing what i want yet 2021-05-15 15:15:19 <-- ZeZu (null@140-211-168-73-openstack.osuosl.org) has quit (Ping timeout: 252 seconds) 2021-05-15 15:15:22 _habnabit brizz, so show us the code 2021-05-15 15:16:16 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-15 15:16:20 _habnabit brizz, it's easier for us to point out the problem than enumerate the infinite number of ways you could've made a mistake ;) 2021-05-15 15:17:02 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-15 15:17:30 <-- greedom (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has quit (Remote host closed the connection) 2021-05-15 15:18:03 brizz https://bpa.st/JRNQ 2021-05-15 15:18:14 --> greedom (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has joined #python 2021-05-15 15:18:35 <-- igeniNL (~textual@2a02-a44b-7568-1-419f-b66f-8e65-6d57.fixed6.kpn.net) has quit (Ping timeout: 260 seconds) 2021-05-15 15:18:41 --> ZeZu (null@140-211-168-73-openstack.osuosl.org) has joined #python 2021-05-15 15:18:53 brizz it just sits there. i think maybe because its end of chunk? i dont know 2021-05-15 15:19:05 brizz it does print chunk for a little bit, then stops 2021-05-15 15:19:06 _habnabit brizz, you are exhausting the iterator on L14 2021-05-15 15:19:31 <-- korg815 (~korg815@unaffiliated/korg815) has quit (Quit: WeeChat 2.8) 2021-05-15 15:19:56 _habnabit brizz, the if..continue should be inside the inner loop. maybe you meant `if 'user@domain.com' not in line:` 2021-05-15 15:20:05 brizz i know what that means, (im pretty sure), butI dont know why 2021-05-15 15:20:21 _habnabit brizz, i don't know why you're doing `in f` at all 2021-05-15 15:20:29 <-- greedom (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has quit (Remote host closed the connection) 2021-05-15 15:20:39 brizz welll i didnt at first, and said it wasnt working 2021-05-15 15:20:49 brizz then i said, oh nevermind, and thats when i tried in f 2021-05-15 15:21:03 _habnabit brizz, ok. but why `in f` and not `in line` ? 2021-05-15 15:21:14 --> greedom (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has joined #python 2021-05-15 15:22:25 brizz you mean why dont i do readline? 2021-05-15 15:22:39 _habnabit brizz, no, i meant what i said 2021-05-15 15:22:42 brizz i haven't defined 'line' yet I dont think, so thats why its in f 2021-05-15 15:22:56 _habnabit brizz, yes, that's why i said you should move the if 2021-05-15 15:23:07 brizz doing that now 2021-05-15 15:23:16 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-15 15:23:55 brizz side question 2021-05-15 15:24:11 brizz is if not user@domain in line the same as if user@domain not in line 2021-05-15 15:24:16 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-15 15:24:22 _habnabit brizz, yes, but the latter reads much better 2021-05-15 15:24:55 --> e-i-k-e (~e-i-k-e@55d4a783.access.ecotel.net) has joined #python 2021-05-15 15:25:46 brizz doing this now https://bpa.st/43JQ 2021-05-15 15:25:57 brizz same result, it prints some chunks then stops 2021-05-15 15:26:28 _habnabit brizz, ok, and what part of that is unexpected? 2021-05-15 15:26:48 brizz nvm 2021-05-15 15:26:50 <-- ldm (~ldm@hacksoc/member) has left #python ("The Lounge - https://thelounge.github.io") 2021-05-15 15:26:53 brizz im dumb 2021-05-15 15:26:55 brizz didnt save 2021-05-15 15:27:07 brizz well nvm 2021-05-15 15:27:08 brizz again 2021-05-15 15:27:16 _habnabit brizz, ..? 2021-05-15 15:28:41 brizz im going to mess with it. i thought it wasn't continuing (testing w/print)--but I think it is. ..also i think script finished but it happened much sooner than expected 2021-05-15 15:28:49 <-- banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has quit (Quit: Connection closed) 2021-05-15 15:29:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 15:29:37 _habnabit brizz, ok. well, do you understand what the difference is between what you had before and what i suggested? 2021-05-15 15:30:05 --> teut (b6453149@unaffiliated/teut) has joined #python 2021-05-15 15:30:39 teut https://dpaste.org/Od1Z#L10 2021-05-15 15:30:42 <-- un1c0rrn (~dennisjun@p200300e72f23ea00a1c1dd35966c6e9e.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-15 15:31:19 teut I want the user to type some equation in terms of  "w"  , but I do not want him to write   w = sm.symbols("omega") outside 2021-05-15 15:31:35 teut whats the way to do that? 2021-05-15 15:31:40 <-- mst (~matthewt@shadowcat/chainsaw-wielder/perl.gc) has left #python 2021-05-15 15:32:19 --> un1c0rrn (~dennisjun@p54890f15.dip0.t-ipconnect.de) has joined #python 2021-05-15 15:32:50 teut ComplexNum.w  just stuck me but that is too long to write 2021-05-15 15:32:55 teut struck* 2021-05-15 15:32:59 --> Chex (~Chex@sleepl.northnook.ca) has joined #python 2021-05-15 15:33:14 brizz is what you are saying different than the new code? 2021-05-15 15:33:22 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 15:33:25 brizz i understand now that it needs to be in inner loop 2021-05-15 15:33:27 _habnabit brizz, https://bpa.st/43JQ is fine 2021-05-15 15:34:20 brizz it is running now. I had thought before of doing this...but for some reason I have a hard time thinking through what would happen once the if statement works. i feel like it would mess up for subsequent loops through the for 2021-05-15 15:34:35 brizz i don't know why, and dont really know how to explain 2021-05-15 15:35:16 --> kenwoodfox (~quassel@c-66-31-255-121.hsd1.nh.comcast.net) has joined #python 2021-05-15 15:35:17 _habnabit brizz, this is why i asked if it's stateful or not. the only way that there could be any interference is if processing depended on an earlier iteration of the loop 2021-05-15 15:35:43 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-15 15:35:48 --> bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has joined #python 2021-05-15 15:35:55 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-15 15:36:29 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-15 15:36:33 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-15 15:37:08 brizz so if is only triggered once 2021-05-15 15:37:24 brizz and each iteration of loop is "new", right? 2021-05-15 15:37:44 _habnabit brizz, i'm not sure what you mean by 'once'. you reach the if on every iteration of the loop 2021-05-15 15:38:24 brizz once it hits that line tho, i want it to go past the if statement, thats the goal 2021-05-15 15:38:40 brizz or once it hits "user@domain.com" 2021-05-15 15:38:50 <-- teut (b6453149@unaffiliated/teut) has quit (Quit: Connection closed) 2021-05-15 15:39:12 _habnabit brizz, yes, that's how control flow works. if you didn't `continue` to jump to the next iteration, control flow will resume after the if inside the loop 2021-05-15 15:39:34 brizz it did finish, and either its the last line or it doesnt work 2021-05-15 15:39:44 _habnabit brizz, "it doesn't work"? 2021-05-15 15:39:46 brizz ill tail data file 2021-05-15 15:39:53 <-- Seirdy (~Seirdy@206.217.205.65) has quit (Ping timeout: 252 seconds) 2021-05-15 15:39:54 brizz ill paste result 2021-05-15 15:40:01 --> pulsar12_ (~quassel@a95-92-60-61.cpe.netcabo.pt) has joined #python 2021-05-15 15:40:26 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Quit: Zzzzzz.....) 2021-05-15 15:40:59 brizz either way, its progress, ha. it would ahve taken me almost a day to reach what just happened 2021-05-15 15:41:02 brizz https://bpa.st/OWYQ 2021-05-15 15:41:25 brizz thats what i expected...duplicate entry. ...but there aren't subsequent entries, script stops 2021-05-15 15:41:47 _habnabit brizz, i'm not sure what you're saying you expected to happen 2021-05-15 15:42:03 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-15 15:42:06 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 240 seconds) 2021-05-15 15:42:48 rond_ is it possible to provide a type for a variable declaration? 2021-05-15 15:42:56 _habnabit rond_, `x: y = z` 2021-05-15 15:42:57 rond_ (not only to function parameters?) 2021-05-15 15:43:14 _habnabit rond_, only in 3.7+ 2021-05-15 15:43:26 brizz it doesnt appear to be end of file 2021-05-15 15:43:32 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-15 15:43:36 rond_ _habnabit interesting, thanks! 2021-05-15 15:43:49 brizz i want it to continue processing what is past the if statement (which is inserting into database queries) 2021-05-15 15:44:16 _habnabit brizz, so, is what you're saying that you think the `continue` is halting the whole program? 2021-05-15 15:45:04 brizz i think its ending it ..yea, thats what it looks like. (the program does end when there is no more data to process) 2021-05-15 15:45:14 <-- Death916 (UserNick@unaffiliated/death916) has quit (Read error: Connection reset by peer) 2021-05-15 15:45:16 brizz running it again to confirm 2021-05-15 15:45:27 brizz well wait 2021-05-15 15:45:34 brizz i see it running now and it hit the line 2021-05-15 15:45:39 _habnabit brizz, ok. well, there's an easy way to test that: add more prints. put one in the `if` before the `continue`; on.. problem solved? 2021-05-15 15:46:08 brizz yea, really appreciate the help, this will have saved me a lot of time and I've learned something 2021-05-15 15:46:41 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 265 seconds) 2021-05-15 15:46:53 _habnabit brizz, adding a print is an easy way to demonstrate to yourself or someone else what the exact control flow is 2021-05-15 15:47:12 --> Sir_Andrei (~andrei@r186-54-78-219.dialup.adsl.anteldata.net.uy) has joined #python 2021-05-15 15:47:13 Sir_Andrei Hi 2021-05-15 15:47:26 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-15 15:47:26 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-15 15:47:36 Sir_Andrei People, I need to do a category table in pandas 2021-05-15 15:47:56 _habnabit brizz, if you think that `continue` is ending your program early, it's easy to prove that it isn't by adding more prints 2021-05-15 15:47:57 --> Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has joined #python 2021-05-15 15:48:09 Sir_Andrei Like, I have a table with columns, Value, Category. And I want a column for each category. And if the value is identified with that category, I need a binary value for that. 2021-05-15 15:48:32 Sir_Andrei Columns will end up being something like Value, Category1... Category2... CategoryN. 2021-05-15 15:48:48 Sir_Andrei Do someone knows an easy and straighforward way to do that with pandas itself? 2021-05-15 15:49:14 --> Seirdy (~Seirdy@206.217.205.65) has joined #python 2021-05-15 15:51:44 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-15 15:52:49 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-15 15:53:00 <-- Seirdy (~Seirdy@206.217.205.65) has quit (Excess Flood) 2021-05-15 15:53:21 --> Seirdy (~Seirdy@206.217.205.65) has joined #python 2021-05-15 15:53:21 <-- __marco (~marco@195.218.6.205) has quit (Ping timeout: 246 seconds) 2021-05-15 15:54:07 <-- Chex (~Chex@sleepl.northnook.ca) has quit (Quit: getting gdrive-ocam-fuse working on this VPS, gotta reboot!) 2021-05-15 15:54:18 <-- dub_a (~dub_a@192.252.212.45) has quit (Quit: WeeChat 3.1) 2021-05-15 15:55:49 --> stree (~stree@68.36.8.116) has joined #python 2021-05-15 15:56:02 brizz so i printed the result. thats the programming running to completion. it only prints that one line. after the if statement there would be duplicate data, and the program errored out trying to handle that data--it doesn't do that, so I dont think it is going past the if statement EXCEPT for user@domain.com 2021-05-15 15:56:05 brizz https://bpa.st/3S5A 2021-05-15 15:56:16 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Quit: Leaving) 2021-05-15 15:56:29 --> Fauve (~Fauve@unaffiliated/fauve) has joined #python 2021-05-15 15:57:01 brizz line 7 on..it will only be processed if that email address (oops) (user@domain.com) is found 2021-05-15 15:57:24 brizz by processed i mean line 7 reached 2021-05-15 15:57:48 <-- panikovsky (~panikovsk@46.61.10.27) has quit (Quit: Leaving) 2021-05-15 15:58:03 <-- ener2 (~quassel@188-175-76-2.client.rionet.cz) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-15 15:58:44 --> nacelle (~oO@wireguard/tunneler/nacelle) has joined #python 2021-05-15 15:58:51 brizz i basically want the if statement to be there until it triggers once, then i want it to disappear 2021-05-15 15:59:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 16:00:01 brizz which i guess gives me an idea 2021-05-15 16:00:02 blackleitus how do I deal with multiples jobs names with different url? 2021-05-15 16:01:25 --> Peyam (~Peyam@c83-250-236-236.bredband.tele2.se) has joined #python 2021-05-15 16:01:38 Peyam Why can't you say a = b if True else pass? 2021-05-15 16:01:40 --> bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-15 16:01:58 ChrisWarrick blackleitus: is it really a python question? 2021-05-15 16:02:04 <-- sappheiros (~sappheiro@unaffiliated/dan1) has quit (Ping timeout: 245 seconds) 2021-05-15 16:02:11 Peyam because then you cant assign a 2021-05-15 16:02:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 16:02:44 ChrisWarrick Peyam: the expression is a = (_ if _ else _), the `if` doesn’t have control over the assignment 2021-05-15 16:02:57 Peyam exactly 2021-05-15 16:03:07 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 265 seconds) 2021-05-15 16:03:19 ChrisWarrick Peyam: maybe-existing variables are a bad idea; if `a` already has a value, you can say `a = b if True else a` 2021-05-15 16:03:22 redsh Peyam: Because pass is not an expression, it's a statement. 2021-05-15 16:03:25 <-- fabs (~fabs@samba.ethz.ch) has quit (Remote host closed the connection) 2021-05-15 16:03:27 <-- rgr (~rgr@p200300e4170c80a3265055158a9cb326.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-15 16:03:55 adder this doesn't make much sense 2021-05-15 16:04:02 <-- bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Client Quit) 2021-05-15 16:04:05 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-15 16:05:10 blackleitus +ChrisWarrick, I am coding a crawler that scan resume , and returns all matched jobs from your resume 2021-05-15 16:05:11 ChrisWarrick blackleitus: perhaps you could just identify jobs by URL. Perhaps you could have some other mechanism to consider the pair (position name, company name) as the same job. That’s not something #Python can really help with though — it’s up to you to decide what’s best for your data. 2021-05-15 16:06:07 blackleitus example HR publish the same job across multiples urls , sites, so duplicates seems to be a problem 2021-05-15 16:06:07 <-- gelignite (~gelignite@55d4591d.access.ecotel.net) has quit (Read error: Connection reset by peer) 2021-05-15 16:06:24 --> gelignite (~gelignite@55d4591d.access.ecotel.net) has joined #python 2021-05-15 16:06:34 <-- trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-15 16:06:48 blackleitus at least if I validate job title with description in strict mode 2021-05-15 16:07:18 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:105:2945:cc71:8216) has joined #python 2021-05-15 16:07:29 --> vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has joined #python 2021-05-15 16:07:59 --> CaptainFuture (~Thunderbi@p5dedeb9d.dip0.t-ipconnect.de) has joined #python 2021-05-15 16:08:24 Peyam Are all python programmers working with back end development?? 2021-05-15 16:08:51 summonner not all 2021-05-15 16:09:01 ChrisWarrick blackleitus: #python can’t help you design your job-seeking system. (But I can provide useful advice: don’t automate job searching, that can backfire quite easily if you don’t look into the companies you send applications to.) 2021-05-15 16:09:26 <-- philh (~philh@eth1-fw1-nbg6.eb.noris.de) has quit (Read error: Connection reset by peer) 2021-05-15 16:09:34 --> g0d-byte (~g0d-byte@2001:b07:ae5:76d1:dfcf:6d24:6d09:4032) has joined #python 2021-05-15 16:10:07 --> philh (~philh@eth1-fw1-nbg6.eb.noris.de) has joined #python 2021-05-15 16:10:36 <-- vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has quit (Client Quit) 2021-05-15 16:10:43 summonner Peyam, I wrote a website for a company the other day. HTML+CSS+Python, no Javascript involved 2021-05-15 16:11:12 blackleitus +ChrisWarrick, I am not sending job applications , but if I can automate the process of finding jobs . it is a super awesome system that search jobs based on my resume , and my brain to perform ML 2021-05-15 16:11:30 <-- jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-15 16:11:38 blackleitus so basically my script becomes into my employeer 2021-05-15 16:11:40 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-15 16:11:41 <-- niv (~niv@limbo.cypherpunks.io) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-15 16:11:42 blackleitus employee* 2021-05-15 16:12:02 <-- PoaB (~Thunderbi@134.3.91.178) has quit (Quit: PoaB) 2021-05-15 16:12:10 Peyam summonner, so web application 2021-05-15 16:12:19 --> niv (~niv@limbo.cypherpunks.io) has joined #python 2021-05-15 16:12:29 --> jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has joined #python 2021-05-15 16:12:31 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-15 16:12:43 <-- Anthaas (~Anthaas@unaffiliated/anthaas) has quit (Ping timeout: 252 seconds) 2021-05-15 16:13:18 ChrisWarrick Peyam: web stuff is one of the areas in which python excels, the other one would be data science and such 2021-05-15 16:13:32 <-- niv (~niv@limbo.cypherpunks.io) has quit (Client Quit) 2021-05-15 16:13:34 Peyam yeah 2021-05-15 16:14:36 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Quit: good riddance) 2021-05-15 16:14:53 --> vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has joined #python 2021-05-15 16:14:59 <-- vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has quit (Client Quit) 2021-05-15 16:15:02 summonner Peyam, done DB query and extract data into report for different departments. done automated uploading of OTC trades to regulatory watchdog from traders working out of excel (Flask interface). Done python fuzzy matching on duplicated data (lost an employee from that; services no longer required) 2021-05-15 16:15:30 --> pikapika_lunar_a (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-15 16:15:31 --> trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has joined #python 2021-05-15 16:15:32 Peyam summonner, awesome. 2021-05-15 16:15:38 <-- civillian (~nick@203.214.34.163) has quit (Ping timeout: 240 seconds) 2021-05-15 16:16:01 --> Anthaas (~Anthaas@unaffiliated/anthaas) has joined #python 2021-05-15 16:16:37 summonner one of the corporate-changing scripts I wrote was to change a 90+ minute perl script (often it ran for 2 or 3 hours) 2021-05-15 16:16:41 <-- thoros (~thoros@193-154-185-59.adsl.highway.telekom.at) has quit (Ping timeout: 240 seconds) 2021-05-15 16:17:10 summonner into a 9-second python script. would hit hundreds of servers worldwide. after that, Python was finally taken seriously by management 2021-05-15 16:17:20 <-- Anthaas (~Anthaas@unaffiliated/anthaas) has quit (Read error: Connection reset by peer) 2021-05-15 16:17:44 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-15 16:17:54 --> yeticheese (~yetichees@185.240.244.190) has joined #python 2021-05-15 16:18:05 --> anthepro (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-15 16:18:16 summonner "corporate culture" I mean. huge company, 200,000 employees worldwide 2021-05-15 16:18:44 <-- jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has quit (Ping timeout: 245 seconds) 2021-05-15 16:19:00 summonner but the biggest aspect of Python which I talk about - 2021-05-15 16:19:09 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Ping timeout: 250 seconds) 2021-05-15 16:19:30 summonner is the ability to prototype so quickly. You have a working product (complex working product) in 3 months, which would take a year in C# to dev 2021-05-15 16:20:43 --> xa0s_ (~xa0s@mab.sdf.org) has joined #python 2021-05-15 16:20:58 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-15 16:21:11 --> Anthaas (~Anthaas@unaffiliated/anthaas) has joined #python 2021-05-15 16:21:27 --> vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has joined #python 2021-05-15 16:21:47 squirrel the last part is a bit surprising. i have no experience in c# but a year vs 3 months? 2021-05-15 16:21:48 --> cowona (~cowona@unaffiliated/cowona) has joined #python 2021-05-15 16:22:07 <-- vladoski (~vladoski@2001:b07:add:d406:4473:92f:f75d:9d8) has quit (Client Quit) 2021-05-15 16:22:17 summonner corporate dev 2021-05-15 16:22:18 <-- pikapika_lunar_a (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-15 16:22:42 rond_ summonner prototyping - sure. but when python becomes the core language - that's a sign of an approaching disaster 2021-05-15 16:22:46 squirrel what does that mean? 2021-05-15 16:22:59 <-- Death916 (UserNick@unaffiliated/death916) has quit (Ping timeout: 268 seconds) 2021-05-15 16:23:23 summonner I know it seems strange, but those numbers aren't crazy "at the end of the day". Most corporates I've worked in keep plugging away at a project and when they need to ask for more budget don't have anything to show for it... yet 2021-05-15 16:23:25 cowona spacex software engineers did an AMA on reddit today and they use python for a lot of things (not flight control, obviously): https://old.reddit.com/r/spacex/comments/ncj4vz/we_are_the_spacex_software_team_ask_us_anything/gy5bpvp/ 2021-05-15 16:23:56 cowona thought it was cool 2021-05-15 16:24:23 summonner rond_, well, that depends on the business and the customer requirements yeah? 2021-05-15 16:24:52 Sir_Andrei Hmm, is called One hot encoding. I found somethin in Google about it C: 2021-05-15 16:25:27 rond_ summonner I'm talking from the dev perspective 2021-05-15 16:25:42 <-- Mrbuck (~Mrbuck@gateway/tor-sasl/mrbuck) has quit (Remote host closed the connection) 2021-05-15 16:25:43 summonner if you're talking real-time airline from 10,000+ items feedback into a TACAS system for a commercial airliner, or more for a fire-control system on an F-16 doing a ground-bombing run... then you want something as close to the cpu as possible 2021-05-15 16:25:58 rond_ but Python has improved - with typing module I can live with more than 40 lines of code in it :) 2021-05-15 16:26:07 yeticheese I think python definitely is strictly fewer lines of code for the same functionality in general, but yeah it's also easy to get into a false sense of security with it, meaning if you don't anticipate that past a certain scale you may need something else then you can have architectural holes and things that make it ridiculously expensive to move off of it 2021-05-15 16:26:21 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 260 seconds) 2021-05-15 16:26:23 <-- e-i-k-e (~e-i-k-e@55d4a783.access.ecotel.net) has quit (Quit: Leaving) 2021-05-15 16:26:38 yeticheese or may i.e. the more rapidly you prototype the slower you stabilize and scale sometimes 2021-05-15 16:26:41 summonner i'm saying proof of concept 2021-05-15 16:26:43 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Ping timeout: 260 seconds) 2021-05-15 16:26:44 Peyam what is the best way of dividing a list of the size of 5*n to n lists? 2021-05-15 16:27:11 <-- ffe4 (~ffe4@200116b82c21bd0024f60ad415e21d8b.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-15 16:27:11 summonner if you can demo to a VC your app or idea you're already ahead of the crowd and likely to get several rounds of funding 2021-05-15 16:27:18 squirrel are you comparing proof of concept python projects vs properly made c# projects? 2021-05-15 16:27:36 yeticheese yeah for proof of concept at that stage it's undeniably good 2021-05-15 16:27:39 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-15 16:28:12 rond_ Peyam use slicing and list comprehension 2021-05-15 16:28:20 yeticheese it's just also too easy to fall into the trap of sticking with many parts of your POC when you build it for real, i.e. a lot of people might have something from their original POC like 7 years down the line 2021-05-15 16:28:29 yeticheese have seen that kinda stuff a few times 2021-05-15 16:28:34 hendursaga What would be an easy way to enter into a debugger when I hit Ctrl-C/send SIGINT? 2021-05-15 16:28:36 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-15 16:28:54 yeticheese so some caution is needed basically 2021-05-15 16:29:18 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 16:29:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-15 16:30:24 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 245 seconds) 2021-05-15 16:30:39 summonner never forget the lesson of the 737-MAX. Developers killed those people 2021-05-15 16:30:44 <-- wafflehunter (~wafflehun@ip-176-199-211-152.hsi06.unitymediagroup.de) has quit (Quit: Leaving) 2021-05-15 16:30:53 p0a hendursaga: capture SIGINT and call breakpoint() ? 2021-05-15 16:31:26 BtbN It's more like super rushed product development. They made software to correct for flawed design. And the software was flawed as well. 2021-05-15 16:31:43 BtbN Don't do that when you're making stuff that can kill people. 2021-05-15 16:31:45 Peyam rond_, can you give me an example? 2021-05-15 16:31:52 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-15 16:32:21 --> eia1x (bd67ada4@gateway/web/cgi-irc/kiwiirc.com/ip.189.103.173.164) has joined #python 2021-05-15 16:32:24 ChrisWarrick summonner: developers didn’t decide to produce a plane pretending to be a 737 that really wasn’t 2021-05-15 16:32:27 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-15 16:32:38 hendursaga p0a: But then what? Wouldn't it exit the program once I stepped through? 2021-05-15 16:32:57 summonner The NTSB highlighted many instances where emails pointed out the devs knew they were doing the wrong thing but no one stepped up. 2021-05-15 16:33:04 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 16:33:20 summonner ChrisWarrick, you mean in the sense that they moved the engines forward and no longer had an unpowered glider? 2021-05-15 16:34:15 --> pedahzur (~jkugler@156-38-237-24.gci.net) has joined #python 2021-05-15 16:34:25 ChrisWarrick summonner: yes, that’s not a software developer decision 2021-05-15 16:34:27 p0a hendursaga: why? 2021-05-15 16:34:28 rond_ Peyam something like  ` [L[5*i : 5*i+5] for i in range(len(L)//5)] ` assuimg that `len(L) % 5 == 0` 2021-05-15 16:34:39 summonner ChrisWarrick, I heard ya... this is not an unknown problem, prop-planes loading cargo have to deal with this issue all the time 2021-05-15 16:35:23 blackleitus how do I merge all results from a queue after complete? 2021-05-15 16:35:41 p0a hendursaga: https://docs.python.org/3/library/signal.html#signal.signal 2021-05-15 16:35:47 --> kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has joined #python 2021-05-15 16:36:23 eia1x Hi! I'd like to fill a column (status) with random 0 or 1, with only 10% of ones. Is there another way to do it (I've tried this: https://bpa.st/BTYA)? 2021-05-15 16:36:24 hendursaga p0a: Hmmm, I thought SIGINT was more commanding, OK.. 2021-05-15 16:38:21 --> fabs (~fabs@samba.ethz.ch) has joined #python 2021-05-15 16:39:03 rond_ Peyam  ` [L[5*i : 5*i+5] for i in range(len(L)/+/5)] ` 2021-05-15 16:39:35 rond_ Peyam  ` [L[5*i : 5*i+5] for i in range(len(L)+4//5)] `  and you'd have all of the elements, perhaps with the shorter list at the end if `len(L) % 5 != 0` 2021-05-15 16:40:12 <-- CaptainFuture (~Thunderbi@p5dedeb9d.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-05-15 16:40:26 brizz @_habnabit are you around? 2021-05-15 16:41:00 brizz i had idea to do f.tell() when i reached line, and then just edit file again and do f.seek() 2021-05-15 16:41:02 <-- SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has quit (Remote host closed the connection) 2021-05-15 16:41:17 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-15 16:41:29 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 252 seconds) 2021-05-15 16:41:33 brizz gettingn the error OSError: telling position disabled by next() call,---and i DID remove the chunked iterable part (after seeing error the first time) 2021-05-15 16:42:04 <-- rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has quit (Quit: Connection closed) 2021-05-15 16:42:10 --> SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-15 16:42:15 brizz so its just a for loop, why am I getting the error/is there anything I can do to fix/bypass to get what im wanting to do 2021-05-15 16:43:20 <-- Arwalk (~Arwalk@lfbn-dij-1-1334-228.w92-141.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-05-15 16:43:20 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-15 16:44:01 <-- rapier (~marcos@unaffiliated/novato-br/x-1551087) has quit (Read error: Connection reset by peer) 2021-05-15 16:44:57 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Network is unreachable) 2021-05-15 16:45:32 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 240 seconds) 2021-05-15 16:45:40 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-15 16:45:46 --> Arwalk (~Arwalk@lfbn-dij-1-1334-228.w92-141.abo.wanadoo.fr) has joined #python 2021-05-15 16:46:46 <-- qwerty1793 (~qwerty179@90.253.122.252) has quit (Ping timeout: 240 seconds) 2021-05-15 16:46:54 <-- Peyam (~Peyam@c83-250-236-236.bredband.tele2.se) has quit (Ping timeout: 246 seconds) 2021-05-15 16:46:59 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-15 16:47:04 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Ping timeout: 245 seconds) 2021-05-15 16:47:11 <-- junktext (junktext@fsf/member/junktext) has quit (Remote host closed the connection) 2021-05-15 16:47:14 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined #python 2021-05-15 16:47:20 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-15 16:47:32 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-15 16:47:57 --> c0mrade (~c0mrade@unaffiliated/c0mrade) has joined #python 2021-05-15 16:48:06 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Quit: %bye mirc%) 2021-05-15 16:48:40 c0mrade Can I convert this C++ code https://imgur.com/a/qmsgIqI to Python using a for loop? As I don't know how would I represent x*x <=n in the range. 2021-05-15 16:48:45 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-15 16:48:58 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-15 16:49:42 --> Chex (sss@sleepl.northnook.ca) has joined #python 2021-05-15 16:50:12 <-- katana (~katana@unaffiliated/katana) has quit (Ping timeout: 240 seconds) 2021-05-15 16:50:24 <-- philr (~phil@118.211.93.148) has quit (Ping timeout: 246 seconds) 2021-05-15 16:50:59 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-15 16:51:06 squirrel c0mrade: why not x <= sqrt(n) 2021-05-15 16:51:16 cowona you would probably want a while for that 2021-05-15 16:51:35 c0mrade A while would work, but can this be interpreted as a for loop? 2021-05-15 16:52:23 <-- DPA (~DPA@devuan/contributor/DPA) has left #python 2021-05-15 16:52:44 BtbN It is a for loop? Or what do you mean? 2021-05-15 16:53:09 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-15 16:53:58 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 252 seconds) 2021-05-15 16:54:27 <-- SirScott (~SirScott@c-67-176-100-163.hsd1.co.comcast.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-15 16:56:23 <-- Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has quit (Read error: Connection reset by peer) 2021-05-15 16:57:02 c0mrade I want to convert above code to python and use a for loop for python not while loop is that possible? 2021-05-15 16:57:25 BtbN Why? 2021-05-15 16:57:45 BtbN Pythons for loop works fundamentally different than in C. 2021-05-15 16:57:57 BtbN It's just a while with some syntax sugar there 2021-05-15 16:58:00 c0mrade Because I code in python, and I want compute the Big-O time complexity, it'll be easier for me. 2021-05-15 16:58:17 c0mrade Yeah I know, can we hack python and make a for loop similar to that one? 2021-05-15 16:58:18 BtbN ? 2021-05-15 16:58:21 BtbN no 2021-05-15 16:58:46 c0mrade What would it look like using a while loop? 2021-05-15 16:58:56 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-15 16:59:16 BtbN Pretty much the same as that for loop in C 2021-05-15 16:59:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 16:59:29 BtbN You just don't have initialization and step-increment in one line 2021-05-15 16:59:55 c0mrade This confuses me. 2021-05-15 17:00:04 supakeen `for _ in itertools.takewhile(lambda x: x*x < 10, itertools.count())` 2021-05-15 17:00:06 --> ricksanchez (~ricksanch@103.208.220.194) has joined #python 2021-05-15 17:00:21 <-- mnemonicj (~mnemonicj@208.110.121.49.ciktel-dhcp.cipherkey.net) has quit (Quit: bye!) 2021-05-15 17:00:50 c0mrade Wait c0mrade: why not x <= sqrt(n) 2021-05-15 17:00:58 BtbN sqrt is dirt slow 2021-05-15 17:01:05 <-- eia1x (bd67ada4@gateway/web/cgi-irc/kiwiirc.com/ip.189.103.173.164) has quit (Quit: Connection closed) 2021-05-15 17:01:17 c0mrade for i in range(2, sqrt(n+1)): 2021-05-15 17:01:21 c0mrade Isn't that the same? 2021-05-15 17:01:28 BtbN range to a non-integer? 2021-05-15 17:02:36 c0mrade for i in range(2, int(sqrt(n+1))): 2021-05-15 17:02:38 c0mrade hh 2021-05-15 17:02:44 <-- honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-15 17:02:53 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-15 17:02:54 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 17:03:11 c0mrade But yeah it seems that, using sqrt will yield different results no? 2021-05-15 17:03:59 --> jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has joined #python 2021-05-15 17:04:07 --> niv (~niv@limbo.cypherpunks.io) has joined #python 2021-05-15 17:04:07 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-15 17:04:12 <-- onizu (uid373383@gateway/web/irccloud.com/x-wfcneruckokztucp) has quit (Quit: Connection closed for inactivity) 2021-05-15 17:04:30 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 265 seconds) 2021-05-15 17:04:34 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 245 seconds) 2021-05-15 17:05:23 --> anthepro (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-15 17:05:27 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-15 17:05:41 --> Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has joined #python 2021-05-15 17:06:05 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-15 17:06:57 c0mrade WOuld that sqrt approach be write? 2021-05-15 17:07:35 --> SirScott (~SirScott@c-67-176-100-163.hsd1.co.comcast.net) has joined #python 2021-05-15 17:07:56 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-15 17:09:49 --> stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has joined #python 2021-05-15 17:10:46 <-- Guddu (~Guddu@unaffiliated/guddu) has quit (Quit: Leaving) 2021-05-15 17:11:25 ChrisWarrick c0mrade: right*, yes, sqrt is a valid way to optimize prime checking (by division) 2021-05-15 17:11:31 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-15 17:12:07 ChrisWarrick https://stackoverflow.com/questions/5811151/why-do-we-check-up-to-the-square-root-of-a-prime-number-to-determine-if-it-is-pr 2021-05-15 17:12:32 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 240 seconds) 2021-05-15 17:13:30 jarthur BTW if performance is a concern, I recommend isqrt(n+1) instead of int(sqrt(n+1)) 2021-05-15 17:13:55 jarthur Should be about twice as fast 2021-05-15 17:14:31 brizz is there a way to start processing at a certain line (not w/seek...go to a line number) 2021-05-15 17:15:41 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-15 17:16:06 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-15 17:16:14 jarthur brizz iterating and ignoring until you reach the target line is the only way I know. The OS is unlikely to have any shortcut tricks a specialized Python syntax could use to get there any faster 2021-05-15 17:16:31 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-15 17:18:13 <-- trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-15 17:19:43 --> DHARMAKAYA (~DHARMAKAY@187.252.205.253) has joined #python 2021-05-15 17:20:17 <-- manti7 (~manti7@176.10.104.94) has quit (Quit: WeeChat 3.1) 2021-05-15 17:20:22 bjs c0mrade: incrementing x until x*x <= n is the same as incrementing x until x <= sqrt(n). C/C++ "for" loops are probably closer to Python "while" loops 2021-05-15 17:20:51 c0mrade Yeah I just wrote the Python equivalent but using while. 2021-05-15 17:20:52 --> mnemonicj (~mnemonicj@208.110.121.49.ciktel-dhcp.cipherkey.net) has joined #python 2021-05-15 17:21:04 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-15 17:21:07 c0mrade Now checking what's the Big-O notation of it, like the Time Complexity. 2021-05-15 17:21:15 blackleitus I have a question. I need to merge all responses from each clients sent to manager , but based on this SO answer , and my code https://stackoverflow.com/a/63965617/15757438 , I need to do it in consumer https://gist.github.com/SkyBulk/0dd86a82262039e2a001d610a15c7187#file-async_sample-py-L45 2021-05-15 17:21:26 <-- stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-15 17:22:26 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-15 17:22:52 <-- SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has quit (Ping timeout: 265 seconds) 2021-05-15 17:23:31 jarthur brizz for line in islice(file, n, None): … might a nice syntactical way to make that jump, btw. https://docs.python.org/3/library/itertools.html#itertools.islice 2021-05-15 17:24:15 jarthur Where n is the line you want to start on 2021-05-15 17:25:14 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-15 17:25:37 <-- aslicedbanjo (~aslicedba@81.141.55.248) has quit (Quit: Leaving.) 2021-05-15 17:26:05 --> azed (~azed@196.225.157.140) has joined #python 2021-05-15 17:26:11 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-15 17:27:33 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-15 17:27:48 <-- NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Read error: Connection reset by peer) 2021-05-15 17:28:44 --> NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-15 17:29:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 17:29:21 <-- amahl (~amahl@dxv5skyf19yb2xm837ggt-3.rev.dnainternet.fi) has quit (Ping timeout: 250 seconds) 2021-05-15 17:30:40 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-15 17:31:20 --> mikkel (~mike@208.110.120.167) has joined #python 2021-05-15 17:33:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 17:33:19 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 245 seconds) 2021-05-15 17:34:33 --> Catatronic (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-15 17:35:35 <-- madsj (~mads@mail.stubnet.dk) has quit (Quit: leaving) 2021-05-15 17:35:57 c0mrade Damn it, I can't figure out the time complexity in terms of Big-O notation for this prime function as it looks random to me on the number it iterates....Any ideas? 2021-05-15 17:36:57 <-- cowona (~cowona@unaffiliated/cowona) has quit (Quit: Leaving.) 2021-05-15 17:37:23 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-15 17:39:04 <-- blink (~x@awknode.com) has quit (Ping timeout: 252 seconds) 2021-05-15 17:39:13 --> MikZyth (~MikZyth@188.65.243.2) has joined #python 2021-05-15 17:39:33 Habbie c0mrade, why would it be random if the increment is 1? 2021-05-15 17:39:52 c0mrade Habbie: What's the time complexit of it in Big-O then? 2021-05-15 17:40:07 c0mrade complexity* 2021-05-15 17:40:09 --> irc_user (uid423822@gateway/web/irccloud.com/x-wxpkzmbcxdmoaucz) has joined #python 2021-05-15 17:40:14 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-15 17:40:17 _habnabit c0mrade, of what? 2021-05-15 17:40:32 Habbie yes, do let's be clear of what exactly - all i looked at was your screenshot of C code 2021-05-15 17:40:42 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-15 17:41:22 --> blink (~x@awknode.com) has joined #python 2021-05-15 17:41:35 c0mrade It's a function that takes a number n as input and returns a boolean (true if its a prime number and false if not) https://pastebin.com/7tqDkz9q 2021-05-15 17:41:36 infobob https://bpaste.net/MTNQ (repasted for c0mrade) 2021-05-15 17:41:55 Habbie c0mrade, ok, so, let's figure this out 2021-05-15 17:42:15 Habbie for a given n, the body of the while loop runs how many times? 2021-05-15 17:42:44 c0mrade Habbie, well isn't it random? 2021-05-15 17:42:51 Habbie ah 2021-05-15 17:42:51 c0mrade Or there's a certain sequence? 2021-05-15 17:42:52 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Ping timeout: 240 seconds) 2021-05-15 17:42:54 c0mrade I don't know. 2021-05-15 17:42:56 Habbie it's not random, of course 2021-05-15 17:42:59 --> jimmyegg (~jimmyegg@pool-72-94-145-43.phlapa.fios.verizon.net) has joined #python 2021-05-15 17:43:01 Habbie but it certainly is bounded 2021-05-15 17:43:25 c0mrade How can I deduce how many times? Like bring a paper and pen and just see what's going on? 2021-05-15 17:43:57 Habbie yes 2021-05-15 17:44:02 Habbie it is a pen and paper exercise 2021-05-15 17:44:05 c0mrade Like for n = 13 it runs 2 times but for n = 56 ? 2021-05-15 17:44:13 --> sappheiros (~sappheiro@unaffiliated/dan1) has joined #python 2021-05-15 17:44:17 Habbie because 13 is prime 2021-05-15 17:44:29 Habbie and 4 squared is bigger than 13 2021-05-15 17:44:30 Habbie i see that 2021-05-15 17:44:37 <-- yemel (~yemel@unaffiliated/yemel) has quit (Quit: Goodbye!) 2021-05-15 17:44:41 c0mrade That's not the point. 2021-05-15 17:44:59 c0mrade I need to know the correlation between n and the number of times the while block is computing 2021-05-15 17:45:03 c0mrade to come up with Big-O 2021-05-15 17:45:17 p0a loop breaks when x*x > n. x is incremented by 1. that means the complexity is O(sqrt(n)) 2021-05-15 17:45:42 Habbie p0a, O(sqrt(n)) multiplied by the per-iteration cost 2021-05-15 17:45:50 p0a Yeah I did not account for that :) 2021-05-15 17:45:52 Habbie x*x is not free; n%x is not free 2021-05-15 17:46:01 Habbie but you've done the first step that i tried to get c0mrade to do :) 2021-05-15 17:46:30 c0mrade x*x is not free? n%x is not free? Wait these are just constants and we drop them no? 2021-05-15 17:46:37 Habbie how could they be constants? 2021-05-15 17:46:42 <-- akoana (~ah@unaffiliated/akoana) has left #python ("Leaving") 2021-05-15 17:46:59 Habbie multiplication is expensive; modulo (hidden under the blanket of division) is even more expensive 2021-05-15 17:47:08 --> __marco (~marco@195.218.6.205) has joined #python 2021-05-15 17:47:14 c0mrade in Big-O we don't care about these. 2021-05-15 17:47:19 _habnabit c0mrade, _coefficients_ drop out in big-O notation 2021-05-15 17:47:27 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 260 seconds) 2021-05-15 17:47:31 _habnabit c0mrade, you're mistaking arithmetic for asymptotic analysis 2021-05-15 17:47:37 Habbie c0mrade, can you please give your short definition of big-O? 2021-05-15 17:47:55 nedbat it's interesting to watch this discussion happen in two places at once... 2021-05-15 17:48:00 Habbie nedbat, same person? 2021-05-15 17:48:01 _habnabit nedbat, .. two? 2021-05-15 17:48:08 nedbat also Python Discord :) 2021-05-15 17:48:11 Habbie ok 2021-05-15 17:48:12 --> csevast (~csevast@2001:648:2800:18:29b7:b65c:38b7:e86c) has joined #python 2021-05-15 17:48:19 Habbie then i'm quitting, i'm not dealing with that kind of rudeness 2021-05-15 17:48:19 _habnabit is it the same person? 2021-05-15 17:48:37 nedbat how is that rude? 2021-05-15 17:48:44 c0mrade Habbie, in my definition it is how effecient an algorithm is. So 2021-05-15 17:49:02 _habnabit nedbat, haven't we had this discussion about crossposting before? 2021-05-15 17:49:09 Habbie nedbat, because people might spend time not seeing that in another place the same time and effort is spent by somebody else 2021-05-15 17:49:16 p0a nedbat: overuse of community resources 2021-05-15 17:49:23 Habbie that 2021-05-15 17:49:25 --> yemel (~yemel@unaffiliated/yemel) has joined #python 2021-05-15 17:50:25 c0mrade Habbie, so Big-O is an how is the run time of an algo affected depending on its input, 2021-05-15 17:50:27 nedbat i can see it's touched a nerve. I doubt the community is low on resources. I won't mention it again. 2021-05-15 17:51:03 Habbie is it, in the other place, the same user? 2021-05-15 17:51:32 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 240 seconds) 2021-05-15 17:52:15 --> xeelad (~xeelad@pool-151-202-31-166.nycmny.fios.verizon.net) has joined #python 2021-05-15 17:52:25 c0mrade Habbie, yeah I am on Discord not on IRC on the other place though. Also I have two mointors. One monitor for IRC and the other for discord. One of my eyes is looking on IRC and the other on Discord. 2021-05-15 17:52:29 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 245 seconds) 2021-05-15 17:52:29 <-- xeelad (~xeelad@pool-151-202-31-166.nycmny.fios.verizon.net) has quit (Max SendQ exceeded) 2021-05-15 17:52:44 Habbie c0mrade, and you're having a discussion about the same topic on the Discord, getting some help there too? 2021-05-15 17:52:57 nedbat Habbie: yes, you can stop talking if you want to. 2021-05-15 17:53:03 graingert in Discord they're talking about python 2021-05-15 17:53:18 graingert here everyone is fighting about a discussion in discord 2021-05-15 17:53:37 c0mrade lol 2021-05-15 17:54:32 <-- dcimer (dcimer@ip72-219-122-237.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-15 17:54:32 c0mrade I can't believe that I met the Big-O guy. 2021-05-15 17:54:34 c0mrade O.O 2021-05-15 17:54:45 nedbat c0mrade: sorry i seem to have stirred something up here. 2021-05-15 17:55:19 c0mrade nedbat, I still can't believe it's you.... LOL, the guy that I watched. 2021-05-15 17:55:24 <-- Spawns_Carpeting (~pi@184-14-215-171.dr03.chtn.wv.frontiernet.net) has quit (Ping timeout: 245 seconds) 2021-05-15 17:55:30 c0mrade One of the most interesting vids, 2021-05-15 17:55:40 Habbie nedbat, you've made us aware of c0mrade misconduct 2021-05-15 17:55:48 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-15 17:55:59 c0mrade I can't believe how good you presented this. 2021-05-15 17:56:08 c0mrade Presentation skills on the next level. 2021-05-15 17:56:28 nedbat Habbie: we can disagree about whether this is misconduct. You can choose whether you want to participate in the discussion. 2021-05-15 17:56:42 <-- SuperLag (~akulbe@unaffiliated/superlag) has quit (Ping timeout: 265 seconds) 2021-05-15 17:56:51 nedbat c0mrade: you're very kind 2021-05-15 17:56:56 c0mrade I can't think of myself, like getting on stage and presenting this and in a fun way and talk freely about it. The guy with the jars picture, damn that illustration was awesome. 2021-05-15 17:57:08 <-- palasso (~palasso@unaffiliated/palasso) has quit (Remote host closed the connection) 2021-05-15 17:57:46 graingert the guy with the jar...?! 2021-05-15 17:57:56 c0mrade Yeah. 2021-05-15 17:58:07 c0mrade Well he knows what am talking about lol. 2021-05-15 17:58:08 --> Spawns_Carpeting (~pi@184-14-215-171.dr03.chtn.wv.frontiernet.net) has joined #python 2021-05-15 17:58:09 --> SuperLag (~akulbe@unaffiliated/superlag) has joined #python 2021-05-15 17:58:38 c0mrade I liked the analogy. Like constant time is just simply buy the jars with labels on them. 2021-05-15 17:58:39 c0mrade Done. 2021-05-15 17:59:06 Habbie nedbat, agreed on both. I've made a choice. 2021-05-15 17:59:07 <-- Habbie (peter@lorentz.7bits.nl) has left #python ("WeeChat 1.6") 2021-05-15 17:59:09 graingert like commons-io.2.8.0.jar? 2021-05-15 17:59:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 17:59:29 c0mrade Nope. 2021-05-15 17:59:50 <-- ricksanchez (~ricksanch@103.208.220.194) has quit (Remote host closed the connection) 2021-05-15 17:59:53 nedbat graingert: https://nedbatchelder.com/text/bigo_pix/004.png 2021-05-15 18:00:31 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 260 seconds) 2021-05-15 18:00:52 c0mrade Yeah with the eyebrows looking like beans too. 2021-05-15 18:00:55 c0mrade OMG. I love this. 2021-05-15 18:01:00 <-- pulsar12_ (~quassel@a95-92-60-61.cpe.netcabo.pt) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-15 18:02:56 --> _ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has joined #python 2021-05-15 18:03:24 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 18:03:40 nedbat c0mrade: the key question for your function: if n were made 10 times larger, how much longer would the function likely take? 2021-05-15 18:03:42 <-- __ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has quit (Remote host closed the connection) 2021-05-15 18:03:44 <-- kosh (~kosh@p200300d08f4eb100ed0a7e96c1723a56.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-15 18:03:49 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-15 18:04:26 --> Rudd0 (~Rudd0@185.189.115.103) has joined #python 2021-05-15 18:04:33 --> xeelad (~xeelad@pool-151-202-31-166.nycmny.fios.verizon.net) has joined #python 2021-05-15 18:04:46 c0mrade nedbat, with that prime function it's bending my mind. I am use to seeing easy things, like O(N) and O(N^2) and even understand O(log N), but this prime function. Dude, I can't understand it. 2021-05-15 18:04:50 <-- DHARMAKAYA (~DHARMAKAY@187.252.205.253) has quit (Quit: Turning off a portion of this simulation.) 2021-05-15 18:05:05 <-- xeelad (~xeelad@pool-151-202-31-166.nycmny.fios.verizon.net) has quit (Max SendQ exceeded) 2021-05-15 18:05:06 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-15 18:05:34 <-- csevast (~csevast@2001:648:2800:18:29b7:b65c:38b7:e86c) has quit (Quit: IRC for eric6 IDE) 2021-05-15 18:05:39 nedbat c0mrade: the tricky part here is that you don't know how quickly it might find a divisor. I guess I would think about how long it take if the number is prime: it's proportional to sqrt(n) 2021-05-15 18:06:01 --> csevast (~csevast@2001:648:2800:18:29b7:b65c:38b7:e86c) has joined #python 2021-05-15 18:06:08 c0mrade nedbat, to answer your question... I mean how would I deduce that? In my thinking, I draw a large graph, put n = 15, x = 4 and then run step by step, do the same for n = 16 and put the results side by side and see how it grows, then try to find a sequence, but that's a lot of work. 2021-05-15 18:06:34 <-- wizzwizz4 (~wizzwizz4@host86-133-246-84.range86-133.btcentralplus.com) has quit (Ping timeout: 252 seconds) 2021-05-15 18:06:41 nedbat c0mrade: you can read the code to see how long the loop is 2021-05-15 18:06:58 --> xeelad (~xeelad@pool-151-202-31-166.nycmny.fios.verizon.net) has joined #python 2021-05-15 18:07:00 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-15 18:07:17 <-- xeelad (~xeelad@pool-151-202-31-166.nycmny.fios.verizon.net) has quit (Remote host closed the connection) 2021-05-15 18:07:51 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-15 18:08:21 <-- CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has quit (Quit: Leaving) 2021-05-15 18:08:53 c0mrade A lotta moving parts there. I mean yeah it'll keep executing as long as x*x <=n 2021-05-15 18:09:49 <-- Spawns_Carpeting (~pi@184-14-215-171.dr03.chtn.wv.frontiernet.net) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-15 18:10:19 <-- csevast (~csevast@2001:648:2800:18:29b7:b65c:38b7:e86c) has quit (Client Quit) 2021-05-15 18:10:28 --> Spawns_Carpeting (~pi@184-14-215-171.dr03.chtn.wv.frontiernet.net) has joined #python 2021-05-15 18:11:37 nedbat c0mrade: right, so if n is 10x larger, in the worst case, it will take sqrt(10) times longer 2021-05-15 18:12:30 --> vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has joined #python 2021-05-15 18:13:15 c0mrade And. [00:47] <_habnabit> c0mrade, you're mistaking arithmetic for asymptotic analysis I don't know if x*x and the modulu have to be included into the Big-O picture. 2021-05-15 18:13:19 c0mrade Cut that confuses me. 2021-05-15 18:13:58 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-15 18:14:19 nedbat c0mrade: full disclosure: i have a pragmatic rather than mathematical approach to this. someone else might have a different answer. 2021-05-15 18:15:09 c0mrade Well tech interviews go with pragmatic not mathematical. 2021-05-15 18:15:25 c0mrade For positions like SWE. 2021-05-15 18:15:27 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 246 seconds) 2021-05-15 18:15:51 --> DPA (~DPA@devuan/contributor/DPA) has joined #python 2021-05-15 18:16:43 --> stree (~stree@68.36.8.116) has joined #python 2021-05-15 18:16:45 <-- Jerrynicki (~niklas@p200300f57721c8008c9bc59633aa2bef.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-15 18:17:16 DPA In an async generator, how do I yield everything form another async generator? Is there a simpler solution than using an async for loop? 2021-05-15 18:17:32 graingert DPA: sadly there's no yield from 2021-05-15 18:17:33 <-- snatcher (~user@gateway/tor-sasl/snatcher) has quit (Ping timeout: 240 seconds) 2021-05-15 18:17:46 graingert DPA: it's also a pain because you need aclosing 2021-05-15 18:18:04 --> raxor2k (~raxor2k@7.221.181.62.in-addr.dgcsystems.net) has joined #python 2021-05-15 18:18:14 <-- c0mrade (~c0mrade@unaffiliated/c0mrade) has quit (Quit: HydraIRC -> http://www.hydrairc.com <- Nine out of ten l33t h4x0rz prefer it) 2021-05-15 18:18:22 DPA aclosing? 2021-05-15 18:18:41 graingert https://www.irccloud.com/pastebin/dOMjJx3V/wrapper_agen.py 2021-05-15 18:18:44 graingert DPA: ^ 2021-05-15 18:19:19 graingert the eventloop might not be running when one of the async generators gets GCd 2021-05-15 18:19:26 graingert so there's no way to aclose it safely 2021-05-15 18:19:56 graingert so you have to explicitly wrap it with `async with async_generator.aclosing(...):` 2021-05-15 18:21:28 <-- MikZyth (~MikZyth@188.65.243.2) has quit (Quit: WeeChat 3.1) 2021-05-15 18:21:52 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-15 18:21:53 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-15 18:22:26 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-15 18:22:56 DPA Oh, ok. Interesting. This makes things a lot more difficult... 2021-05-15 18:23:03 graingert soz 2021-05-15 18:25:36 DPA Anyway, thanks a lot. 2021-05-15 18:26:10 <-- leitz (~LeamHall@c-174-56-144-2.hsd1.sc.comcast.net) has quit (Quit: nappy time) 2021-05-15 18:27:09 <-- philh (~philh@eth1-fw1-nbg6.eb.noris.de) has quit (Remote host closed the connection) 2021-05-15 18:28:07 <-- dudek (~dudek@185.150.236.112) has quit (Quit: Leaving) 2021-05-15 18:29:27 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 18:30:58 <-- al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has quit (Read error: Connection reset by peer) 2021-05-15 18:31:50 blackleitus https://stackoverflow.com/questions/67551659/how-to-handle-incomming-data-to-later-merge-by-keys 2021-05-15 18:31:55 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-15 18:32:58 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 18:33:24 --> al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-15 18:33:33 <-- greedom (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has quit (Remote host closed the connection) 2021-05-15 18:33:48 --> greedom (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has joined #python 2021-05-15 18:34:35 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 260 seconds) 2021-05-15 18:35:35 <-- LordVan (~lordvan@gentoo/developer/LordVan) has quit (Ping timeout: 268 seconds) 2021-05-15 18:37:20 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-15 18:37:20 --> shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has joined #python 2021-05-15 18:37:22 -- def_jam is now known as eblip 2021-05-15 18:37:46 <-- raxor2k (~raxor2k@7.221.181.62.in-addr.dgcsystems.net) has left #python 2021-05-15 18:38:30 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-15 18:38:48 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-15 18:39:53 --> csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has joined #python 2021-05-15 18:40:00 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-15 18:40:11 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 240 seconds) 2021-05-15 18:40:18 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-15 18:40:18 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-15 18:40:31 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Ping timeout: 268 seconds) 2021-05-15 18:41:31 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-15 18:41:52 <-- csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has quit (Client Quit) 2021-05-15 18:43:35 --> melty (~melty@204.197.150.155) has joined #python 2021-05-15 18:44:54 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 260 seconds) 2021-05-15 18:45:29 <-- nichlas (uid374954@gateway/web/irccloud.com/x-colsiubqnjdiqufm) has quit (Quit: Connection closed for inactivity) 2021-05-15 18:47:27 <-- jhass (znc@ruby/staff/jhass) has quit (Quit: Bye) 2021-05-15 18:47:37 meejah is there "other stuff" that interacts with Hypothesis settings? (I'm trying to use @settings(max_examples=1) but it runs the test many times) 2021-05-15 18:49:23 --> gmaggior (~gmaggior_@host-79-47-177-110.retail.telecomitalia.it) has joined #python 2021-05-15 18:49:37 <-- melty (~melty@204.197.150.155) has left #python 2021-05-15 18:50:03 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-15 18:50:40 <-- clarjon1 (~clarjon1@unaffiliated/clarjon1) has quit (Read error: Connection reset by peer) 2021-05-15 18:51:36 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-15 18:53:14 --> mayhew (~jm@hlfxns017vw-47-55-124-51.dhcp-dynamic.fibreop.ns.bellaliant.net) has joined #python 2021-05-15 18:53:15 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-15 18:53:17 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Client Quit) 2021-05-15 18:53:35 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-15 18:54:32 --> snatcher (~user@gateway/tor-sasl/snatcher) has joined #python 2021-05-15 18:55:21 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: No Ping reply in 180 seconds.) 2021-05-15 18:56:49 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-15 18:56:59 <-- bbear (~bbear@2a01:e34:ec2b:d430:292c:fef7:dfd3:752e) has quit (Ping timeout: 260 seconds) 2021-05-15 18:57:00 SnoopJ meejah, the test gets run multiple times, or multiple examples are generated? 2021-05-15 18:57:06 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Ping timeout: 240 seconds) 2021-05-15 18:58:16 blackleitus https://stackoverflow.com/questions/67551659/how-to-handle-incomming-data-to-later-merge-by-keys 2021-05-15 18:59:14 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 18:59:39 --> tlab (~tlab@c-65-96-12-204.hsd1.ma.comcast.net) has joined #python 2021-05-15 19:00:48 <-- tlab (~tlab@c-65-96-12-204.hsd1.ma.comcast.net) has quit (Client Quit) 2021-05-15 19:00:52 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-15 19:01:21 meejah SnoopJ: how would I know the difference? 2021-05-15 19:01:34 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Quit: good riddance) 2021-05-15 19:01:39 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 245 seconds) 2021-05-15 19:01:54 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit 2021-05-15 19:02:35 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 19:03:21 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-15 19:03:41 meejah (a print("foo") at thet top of the test gets run multiple times .. with different examples) 2021-05-15 19:04:08 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-15 19:04:11 <-- ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-15 19:04:54 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-15 19:05:02 <-- LucaTM (~LucaTM@unaffiliated/lucatm) has quit (Quit: To infinity and beyond...) 2021-05-15 19:05:24 petaflot is there anything such as an async dict creation? 2021-05-15 19:05:29 SnoopJ meejah, ahh, yea I would've probably stuck in a print or something to confirm that there are multiple examples. Not sure what could be happening, do you have a reproduction? 2021-05-15 19:05:33 <-- jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has quit (Ping timeout: 250 seconds) 2021-05-15 19:05:41 <-- Asmodean (~Asmoedean@178.115.130.126.wireless.dyn.drei.com) has quit (Ping timeout: 240 seconds) 2021-05-15 19:05:45 <-- ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has quit (Quit: Leaving) 2021-05-15 19:05:49 <-- niv (~niv@limbo.cypherpunks.io) has quit (Ping timeout: 245 seconds) 2021-05-15 19:05:59 petaflot or "await return" or whatever that can be 2021-05-15 19:06:49 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-15 19:07:12 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 240 seconds) 2021-05-15 19:07:31 --> Asmodean (~Asmoedean@178.165.129.12.wireless.dyn.drei.com) has joined #python 2021-05-15 19:08:14 deltab petaflot: you can create a dict and add elements to it over time 2021-05-15 19:08:18 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-15 19:09:00 meejah SnoopJ: haven't tried simplifying yet (this is a bigger project with other stuff, and some global hypothesis profiles registered etc .. trying to figure out why it's running this lots instead of once) 2021-05-15 19:09:34 SnoopJ makes sense, given the question. I think your hunch is a solid one 2021-05-15 19:09:57 --> jhass (znc@ruby/staff/jhass) has joined #python 2021-05-15 19:10:06 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-15 19:10:43 <-- dez (uid92154@fedora/deSouza) has quit (Quit: Connection closed for inactivity) 2021-05-15 19:12:07 petaflot what?!? https://bpa.st/G5OQ 2021-05-15 19:12:29 <-- vidbina (~vid@dynamic-077-011-127-130.77.11.pool.telefonica.de) has quit (Ping timeout: 246 seconds) 2021-05-15 19:14:00 deltab petaflot: should there be an await there? 2021-05-15 19:15:20 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-15 19:15:20 blackleitus does anyone here uses airflow or kafka? 2021-05-15 19:15:39 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:105:2945:cc71:8216) has quit (Ping timeout: 260 seconds) 2021-05-15 19:19:09 graingert petaflot: You can use await in a dict comprehension 2021-05-15 19:19:45 petaflot https://bpa.st/GWJA 2021-05-15 19:20:43 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-15 19:21:08 graingert petaflot: What are you trying to do? 2021-05-15 19:21:39 <-- gmaggior (~gmaggior_@host-79-47-177-110.retail.telecomitalia.it) has quit (Quit: Leaving) 2021-05-15 19:22:09 petaflot I am trying to show it... :-s 2021-05-15 19:22:17 petaflot because it is too hard to explain 2021-05-15 19:22:38 graingert petaflot: you want to wait for a new key to arrive in that dict? 2021-05-15 19:22:47 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-15 19:23:25 petaflot it's some tool to index things (any type of..) in a non-integer vector space.. a hyper-toroidal kind of thing 2021-05-15 19:23:52 petaflot graingert: no.. I want too wait for the dict to be created 2021-05-15 19:23:58 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:548a:30b3:5f6d:c303) has joined #python 2021-05-15 19:23:59 petaflot ^too^to 2021-05-15 19:24:42 <-- esselfe (~steph@unaffiliated/esselfe) has quit (Quit: 1000‰ Linux) 2021-05-15 19:24:50 <-- gelignite (~gelignite@55d4591d.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-15 19:25:30 petaflot in the past I faced two "except" clauses in the same "try" statement to occur simultaneously 2021-05-15 19:25:59 graingert petaflot: So what's the code that changes allUuidTabs? 2021-05-15 19:27:41 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-15 19:28:50 --> nvz (~user@nvz.farted.online) has joined #python 2021-05-15 19:28:51 <-- p0a (~user@unaffiliated/p0a) has quit (Quit: bye) 2021-05-15 19:28:53 petaflot I'd have to send you about 700 lines of code.. and I really can't make it shorter at this point without making it impossible to see if it works of not. it's some highly recursive stuff. 2021-05-15 19:29:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 19:29:54 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-15 19:29:56 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-15 19:30:13 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-15 19:30:15 petaflot and somehow I just posted this he out of curiosity. because AFAIK it's some really weird and unusal thing happening. 2021-05-15 19:31:04 graingert petaflot: I'm guessing you want a condition 2021-05-15 19:33:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 19:33:19 <-- bolovanos (~bolovanos@unaffiliated/bolovanos) has quit (Ping timeout: 245 seconds) 2021-05-15 19:33:20 petaflot graingert: what do you mean? 2021-05-15 19:33:39 graingert So you do: https://www.irccloud.com/pastebin/lJaxisGD/foo.py 2021-05-15 19:34:04 graingert And in the code that mutates all_uuid_tabs you'd do: 2021-05-15 19:34:58 graingert https://www.irccloud.com/pastebin/yl3mgJEo/mut.py 2021-05-15 19:35:56 graingert petaflot: In your `def __init__` you'd assign: 2021-05-15 19:35:56 graingert self.all_uuid_tabs_cond = anyio.Condition() 2021-05-15 19:36:27 <-- greedom (~greedom@2001:16b8:2e0c:100:2298:1e7:b942:cbcb) has quit (Remote host closed the connection) 2021-05-15 19:36:36 graingert you could use trio.Condition or asyncio.Condition if you're sure what system you'll be using 2021-05-15 19:36:56 petaflot oh I thought := was only valid for python4. 2021-05-15 19:37:10 <-- Elodin (~weechat@unaffiliated/padawan) has quit (Ping timeout: 260 seconds) 2021-05-15 19:37:48 graingert It's 3.8 right? 2021-05-15 19:38:26 petaflot 3.9 2021-05-15 19:38:53 graingert as in := was in 3.8 and continues to exit in 3.9 2021-05-15 19:40:01 petaflot rotfl.. I just got https://bpa.st/QC7A on a ctrl+C 2021-05-15 19:40:16 petaflot graingert: cool 2021-05-15 19:40:58 --> lightbulbjim (~lightbulb@203-123-115-184.ip4.superloop.com) has joined #python 2021-05-15 19:41:03 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-15 19:41:04 graingert petaflot: Did you use a regular blocking time.sleep()? 2021-05-15 19:41:08 <-- lightbulbjim (~lightbulb@203-123-115-184.ip4.superloop.com) has quit (Client Quit) 2021-05-15 19:43:14 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Remote host closed the connection) 2021-05-15 19:44:06 <-- ashwanig (~ashwanig@103.101.212.238) has quit (Remote host closed the connection) 2021-05-15 19:44:30 --> ashwanig (~ashwanig@103.101.212.238) has joined #python 2021-05-15 19:44:45 petaflot yes, on purpose. check this out: https://bpa.st/CGYA 2021-05-15 19:45:01 <-- Rudd0 (~Rudd0@185.189.115.103) has quit (Ping timeout: 252 seconds) 2021-05-15 19:45:43 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-15 19:46:12 * petaflot must be really dumb in a way 2021-05-15 19:47:24 <-- LordRyan (~ryan@hashbang/bdfl) has quit (Max SendQ exceeded) 2021-05-15 19:47:30 graingert petaflot: Where's your `async with self.all_uuid_tabs_cond:`? 2021-05-15 19:48:15 --> LordRyan (~ryan@hashbang/bdfl) has joined #python 2021-05-15 19:48:48 petaflot I don't understand how to define it 2021-05-15 19:49:34 <-- dub_a (~dub_a@192.252.212.45) has quit (Ping timeout: 268 seconds) 2021-05-15 19:49:56 --> shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has joined #python 2021-05-15 19:50:19 graingert petaflot: Show your full code 2021-05-15 19:51:11 --> sqram (~resio@c-68-43-20-196.hsd1.mi.comcast.net) has joined #python 2021-05-15 19:52:47 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-15 19:53:52 graingert petaflot: please keep messages in the channel so everyone can help 2021-05-15 19:54:29 petaflot http://62.220.136.212/files/fsdgfsjkfasksdj.py 2021-05-15 19:54:33 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-15 19:55:07 * petaflot has a tendency for being paranoid 2021-05-15 19:56:00 graingert Can you just use a regular pastebin this won't open on my phone 2021-05-15 19:56:59 <-- __marco (~marco@195.218.6.205) has quit (Ping timeout: 268 seconds) 2021-05-15 19:59:00 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-15 19:59:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 19:59:48 <-- irc_user (uid423822@gateway/web/irccloud.com/x-wxpkzmbcxdmoaucz) has quit (Quit: Connection closed for inactivity) 2021-05-15 19:59:53 petaflot https://bpa.st/MYGQ 2021-05-15 20:00:36 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-15 20:01:10 <-- computeiro (~Wender@189.37.65.109) has quit (Remote host closed the connection) 2021-05-15 20:01:11 --> niv (~niv@limbo.cypherpunks.io) has joined #python 2021-05-15 20:01:18 <-- shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has quit (Quit: shibboleth) 2021-05-15 20:01:38 stormbytes why wouldn't this work? os.system(f"mkdir {dir} && cd {dir}" Executes the mkdir but not the cd command? 2021-05-15 20:01:45 --> anthepro (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-15 20:01:56 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-15 20:02:07 --> jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has joined #python 2021-05-15 20:02:26 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 20:02:48 nedbat stormbytes: the cd does work, but it works in the subshell spawned by os.system, and then the shell closes 2021-05-15 20:02:49 chilversc stormbytes: because && is handled by the shell, but that runs a standard os executable 2021-05-15 20:03:08 stormbytes nedbat that makes sense 2021-05-15 20:03:19 nedbat stormbytes: you can do these things without os.system. os.mkdir and os.chdir 2021-05-15 20:03:31 stormbytes oh 2021-05-15 20:03:34 stormbytes neat :) 2021-05-15 20:03:53 stormbytes will that accomplish what I'm wanting or still same issue? 2021-05-15 20:03:58 nedbat stormbytes: that will work 2021-05-15 20:04:04 --> ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has joined #python 2021-05-15 20:04:07 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-15 20:04:09 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 245 seconds) 2021-05-15 20:04:35 stormbytes purrrfect :) 2021-05-15 20:04:37 stormbytes ty 2021-05-15 20:04:48 graingert petaflot: You want to set a key here? https://bpa.st/MYGQ#1L682 2021-05-15 20:05:09 graingert But that won't run because the first KeyError handler will do it instead 2021-05-15 20:06:05 IHasFinger hi everyone. I have this unix timestamp 1621119002.0 i want to convert it to UTC I tried datetime.datetime.fromtimestamp(1621119002.0) but still the same 2021-05-15 20:06:07 <-- Spawns_Carpeting (~pi@184-14-215-171.dr03.chtn.wv.frontiernet.net) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-15 20:06:14 graingert petaflot Seems you just want to delete line 616-618 2021-05-15 20:06:15 --> Spawns_Carpetin- (~pi@184-14-215-171.dr03.chtn.wv.frontiernet.net) has joined #python 2021-05-15 20:06:15 IHasFinger its not in utc 2021-05-15 20:06:23 <-- Dotz0cat (~Dotz0cat@h40.173.40.162.dynamic.ip.windstream.net) has quit (Ping timeout: 246 seconds) 2021-05-15 20:06:42 stormbytes nedbat I tried 'os.mkdir(dir) and os.chdir(dir)', still does the same thing 2021-05-15 20:07:06 nedbat stormbytes: how are you determining that it isn't in the new directory? 2021-05-15 20:07:19 stormbytes i'm executing this script from the shell 2021-05-15 20:07:23 stormbytes ./script.py 2021-05-15 20:07:31 stormbytes terminal, rather 2021-05-15 20:07:35 petaflot graingert: remove the first KeyError handler.. and tada: https://bpa.st/K6YA 2021-05-15 20:08:06 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-15 20:08:23 stormbytes nedbat its fine, i just figured out what's going on. It will work perfectly for the script and operate in the child directory 2021-05-15 20:08:25 yeticheese IHasFinger: shouldn't that be utcfromtimestamp for utc? 2021-05-15 20:08:27 chilversc IHasFinger: what time is it supposed to be, and where did the timestamp come from? 2021-05-15 20:08:28 stormbytes ty 2021-05-15 20:08:45 IHasFinger yeticheese, i tried that also still the same 2021-05-15 20:08:59 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Client Quit) 2021-05-15 20:09:12 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-15 20:09:20 yeticheese really? I'm getting two different timestamps 2021-05-15 20:09:28 yeticheese what do we mean by "the same" in this context? 2021-05-15 20:09:45 graingert petaflot: you still haven't added the uuid key to that dict by line 630, and you didn't import kivy 2021-05-15 20:10:32 IHasFinger yeticheese, by same i mean the result is not the UTC time 2021-05-15 20:11:08 IHasFinger think i found the issue 2021-05-15 20:11:57 graingert petaflot: Add `import kivy.uix.widget` to the top of your program 2021-05-15 20:11:57 yeticheese hmm curious what it was. At least for the online unix -> UTC converter I used it matches 2021-05-15 20:12:28 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit 2021-05-15 20:13:03 --> armyriad (armyriad@gateway/vpn/privateinternetaccess/armyriad) has joined #python 2021-05-15 20:13:21 yeticheese e.g. this website https://www.browserling.com/tools/unix-to-utc seems to match the value that utcfromtimestamp returns 2021-05-15 20:14:30 <-- bazul (bazul@38.189.189.46.rev.vodafone.pt) has quit (Remote host closed the connection) 2021-05-15 20:16:02 <-- predmijat (~predmijat@mail.strogopro.com) has quit (Quit: bye) 2021-05-15 20:16:39 blackleitus hey guys. if I need to validate some data that is appened , first append then validate or can I validate then append? 2021-05-15 20:17:37 --> predmijat (~predmijat@mail.strogopro.com) has joined #python 2021-05-15 20:18:01 <-- freebench (~freebench@92.253.251.226) has quit (Ping timeout: 252 seconds) 2021-05-15 20:18:24 chilversc blackleitus: that really depends on what your doing and how the validation works 2021-05-15 20:18:26 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-15 20:18:34 <-- securethemews (~securethe@2a00:23c4:1e98:8f00::4) has quit (Quit: Leaving) 2021-05-15 20:19:02 blackleitus I need to check if some data is already on the dict to avoid appending again 2021-05-15 20:19:17 blackleitus so, should it be first append then validate? 2021-05-15 20:21:07 <-- vlm (~vlm@gateway/tor-sasl/vlm) has quit (Remote host closed the connection) 2021-05-15 20:22:32 deltab blackleitus: I thinkthat's too little information for use to know 2021-05-15 20:22:44 <-- ashwanig (~ashwanig@103.101.212.238) has quit (Remote host closed the connection) 2021-05-15 20:23:08 deltab e.g. are you validating the new data or the dict? 2021-05-15 20:23:44 blackleitus let me make a paste 2021-05-15 20:24:08 blackleitus https://dpaste.org/AH7h#L26,36 2021-05-15 20:24:10 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-15 20:24:37 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-15 20:24:49 blackleitus I need to validate duplicate jobs since I dont have any form of checking pagination . 2021-05-15 20:25:46 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-15 20:26:54 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-15 20:28:52 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-15 20:29:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 20:29:39 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-15 20:31:45 --> qpdb_ (~qpdb@unaffiliated/qpdb) has joined #python 2021-05-15 20:31:45 <-- qpdb (~qpdb@unaffiliated/qpdb) has quit (Killed (kornbluth.freenode.net (Nickname regained by services))) 2021-05-15 20:31:45 -- qpdb_ is now known as qpdb 2021-05-15 20:33:21 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 20:33:46 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-15 20:33:48 yeticheese is it the paste or does line 12 have the wrong indentation? 2021-05-15 20:34:25 yeticheese i.e. the country variable suggests the second for loop should be inside the first one 2021-05-15 20:34:34 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-15 20:35:41 yeticheese and then the first question might be what you want to consider "duplicate" 2021-05-15 20:36:17 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-15 20:36:32 chilversc also, I don't understand why you would append it, the validate if the whole point of the validation is to avoid appending duplicates? 2021-05-15 20:37:36 --> stree (~stree@68.36.8.116) has joined #python 2021-05-15 20:37:57 yeticheese yeah the high level answer should be validate before append I think, details of how to validate depend on a few things 2021-05-15 20:38:30 yeticheese seems like you may want like a "job" object somewhere that is hashable and then you can just use a hashset instead of a dictionary potentially or something 2021-05-15 20:38:33 yeticheese is one thought 2021-05-15 20:39:42 yeticheese or sorry that's an array nm, but yeah along those lines 2021-05-15 20:40:20 --> philr (~phil@118.211.93.148) has joined #python 2021-05-15 20:40:46 blackleitus it's an array of dict to be sure 2021-05-15 20:40:57 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-15 20:41:08 blackleitus +yeticheese, how should it be the looping? 2021-05-15 20:41:30 --> esselfe (~steph@unaffiliated/esselfe) has joined #python 2021-05-15 20:42:03 nedbat blackleitus: a list of dicts, right? 2021-05-15 20:42:29 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 265 seconds) 2021-05-15 20:42:58 petaflot graingert: thanks, I hade missed that one out. but now I have a variable that can be of two types.. I don't understand this trace: https://bpa.st/GCCQ 2021-05-15 20:43:48 blackleitus yes +nedbat , and if everyone more details , that's the format of datatables in order to ingest data 2021-05-15 20:44:08 <-- azed (~azed@196.225.157.140) has quit (Quit: WeeChat 3.1) 2021-05-15 20:45:34 --> dansan (~daniel@75.81.148.51) has joined #python 2021-05-15 20:46:23 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-15 20:47:29 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Ping timeout: 245 seconds) 2021-05-15 20:47:33 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-15 20:47:38 yeticheese blackleitus: you mean my comment about the for loop indentation? I didn't see a variable named "country" in scope on line 12 so seems like you may have wanted that whole for loop to be nested inside your other one is what I meant 2021-05-15 20:47:47 yeticheese also noticed flat_cities seems unused 2021-05-15 20:48:10 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-15 20:48:33 <-- Sheilong (uid293653@gateway/web/irccloud.com/x-pqabmrplvmbawjlf) has quit (Quit: Connection closed for inactivity) 2021-05-15 20:48:38 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-15 20:49:02 --> RageWireEsq (~Android@S0106f0f2493c5b83.cg.shawcable.net) has joined #python 2021-05-15 20:50:50 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-15 20:51:12 blackleitus yeah . since I was going to do the same as outside loop . in this case I did everything inside 2021-05-15 20:52:02 --> Soulcypher (~Soulcyphe@2601:280:c001:ffb0:50c6:5085:41d9:4825) has joined #python 2021-05-15 20:52:06 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-15 20:52:44 <-- g0d-byte (~g0d-byte@2001:b07:ae5:76d1:dfcf:6d24:6d09:4032) has quit (Quit: Leaving) 2021-05-15 20:52:52 --> leduyquang753 (~leduyquan@27.73.107.184) has joined #python 2021-05-15 20:52:59 yeticheese apparently country actually is still in scope, but it's probably not what you want 2021-05-15 20:53:04 yeticheese it's the last country from the first for loop 2021-05-15 20:54:27 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-15 20:54:40 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-15 20:55:25 yeticheese e.g. this example seems to have the same issue 2021-05-15 20:55:26 yeticheese https://dpaste.org/oZ2r 2021-05-15 20:55:43 yeticheese that just prints 'CA' 2021-05-15 20:56:36 yeticheese so in your code on line 12 country would always just be US I believe 2021-05-15 20:56:52 --> amo (~amogorkon@port-92-196-72-233.dynamic.as20676.net) has joined #python 2021-05-15 20:57:15 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-15 20:57:52 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Quit: real life interrupt) 2021-05-15 20:58:08 deltab petaflot: what is the anticipated AttributeError that that is meant to catch? 2021-05-15 20:58:09 --> korg815 (~korg815@unaffiliated/korg815) has joined #python 2021-05-15 20:59:03 deltab petaflot: because that seems to do something once, and only if it fails, do it again 2021-05-15 20:59:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 20:59:37 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 252 seconds) 2021-05-15 20:59:39 deltab wouldn't it just fail again for the same reason? 2021-05-15 21:00:24 <-- amogorkon (~amogorkon@port-92-196-107-178.dynamic.as20676.net) has quit (Ping timeout: 245 seconds) 2021-05-15 21:01:03 <-- bamdad (~bamdad@gateway/tor-sasl/bamdad) has quit (Remote host closed the connection) 2021-05-15 21:02:17 --> Dotz0cat (~Dotz0cat@h129.139.187.173.dynamic.ip.windstream.net) has joined #python 2021-05-15 21:02:25 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 21:03:12 --> bamdad (~bamdad@gateway/tor-sasl/bamdad) has joined #python 2021-05-15 21:04:21 <-- yeticheese (~yetichees@185.240.244.190) has quit 2021-05-15 21:05:28 petaflot deltab: yes it does. because: (repost) https://bpa.st/G5OQ 2021-05-15 21:06:40 <-- ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has quit (Quit: Leaving) 2021-05-15 21:07:20 deltab petaflot: that doesn't seem related to https://bpa.st/GCCQ 2021-05-15 21:07:32 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-15 21:07:47 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-15 21:08:17 deltab oh sorry, I misread 2021-05-15 21:09:07 deltab still, parts of that don't make sense to me 2021-05-15 21:10:00 --> RandomGuyOnIrc (~RandomGuy@159.203.179.249) has joined #python 2021-05-15 21:10:12 <-- RageWireEsq (~Android@S0106f0f2493c5b83.cg.shawcable.net) has quit (Quit: -a- IRC for Android 2.1.59) 2021-05-15 21:10:21 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 268 seconds) 2021-05-15 21:10:36 RandomGuyOnIrc I am writing an app to scrape tweets from twitter. Is tweepy a good library to use? 2021-05-15 21:10:53 RandomGuyOnIrc It is used in a tutorial "30 days of python" 2021-05-15 21:12:12 wyoung RandomGuyOnIrc: It's a starting point. 2021-05-15 21:12:35 wyoung Make a start, get something that works then tweak it / optimise it if needed in future iterations. 2021-05-15 21:12:40 BtbN The Twitter API is useless to scrape Twitter 2021-05-15 21:12:58 BtbN You can only access a very limited backlog of tweets. You need to literally scrape the website. 2021-05-15 21:13:54 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Quit: Leaving) 2021-05-15 21:14:00 RandomGuyOnIrc wyoung: BtbN: thanks 2021-05-15 21:14:17 RandomGuyOnIrc BtbN: I actually just want to scrape it in real time 2021-05-15 21:14:28 BtbN That should work okay enough 2021-05-15 21:15:59 RandomGuyOnIrc BtbN: how would one write a general web scraper to scrape their site? One needs to log in with a user name and password to see the stuff. Does the requests library support this somehow? 2021-05-15 21:16:20 BtbN No idea. But Tweets are public? 2021-05-15 21:16:25 <-- Raito_Bezarius (~Raito@unaffiliated/raito-bezarius/x-8764578) has quit (Ping timeout: 250 seconds) 2021-05-15 21:16:25 <-- AkechiShiro (~AkechiShi@2a01:e0a:5f9:9681:1473:3dff:fe42:56a9) has quit (Ping timeout: 250 seconds) 2021-05-15 21:17:26 RandomGuyOnIrc I will try from another machine where I am not logged into twitter, and see if it works 2021-05-15 21:17:54 <-- Fauve (~Fauve@unaffiliated/fauve) has quit (Quit: WeeChat 2.3) 2021-05-15 21:18:17 --> AkechiShiro (~AkechiShi@2a01:e0a:5f9:9681:5cef:ba41:cf1d:9b70) has joined #python 2021-05-15 21:18:33 --> Raito_Bezarius (~Raito@unaffiliated/raito-bezarius/x-8764578) has joined #python 2021-05-15 21:21:25 blackleitus https://dpaste.org/XUhM why is this? `TypeError: '<=' not supported between instances of 'int' and 'datetime.datetime'` 2021-05-15 21:22:10 <-- frrs (uid130725@gateway/web/irccloud.com/x-odrxqzirzmlboizm) has quit (Quit: Connection closed for inactivity) 2021-05-15 21:22:36 CordialCatto there's a twitter scraper called twint 2021-05-15 21:23:01 RandomGuyOnIrc CordialCatto: thanks 2021-05-15 21:23:35 mefistofeles blackleitus: last_update.day is an integer, there's not real way to compare that with datetime objects 2021-05-15 21:23:54 --> Fauve (~Fauve@unaffiliated/fauve) has joined #python 2021-05-15 21:24:14 blackleitus how can I compare timestamp with current day? 2021-05-15 21:25:24 <-- bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has quit (Quit: bilb_ono) 2021-05-15 21:25:34 deltab you need to turn one into the other, so that you have two values of the same type 2021-05-15 21:26:04 blackleitus `timedelta(days=7)` is possible to convert into timestamp 2021-05-15 21:26:11 --> pi- (~Ohmu@node-hzu.pool-118-173.dynamic.totinternet.net) has joined #python 2021-05-15 21:26:29 mefistofeles blackleitus: I guess you just want last_update there? Not .dat ? 2021-05-15 21:26:32 mefistofeles *.day 2021-05-15 21:26:57 <-- mns (~mns@devuan/community/mns) has quit (Ping timeout: 265 seconds) 2021-05-15 21:27:00 blackleitus if last_update.day <= int(datetime.now().timestamp()) - timedelta(days=7): 2021-05-15 21:27:21 blackleitus the last one `timedelta(days=7)` to timestamp 2021-05-15 21:27:55 pi- print(traceback.print_exc()) # Why do some traceback lines give full filepath, others just filename? https://bpa.st/32AA 2021-05-15 21:27:57 <-- brainium (~brainium@unaffiliated/brainium) has quit (Read error: Connection reset by peer) 2021-05-15 21:28:05 deltab last_update.day is the number 16 2021-05-15 21:28:24 deltab is the number 16 less than or equal to the date a week ago? 2021-05-15 21:28:29 mefistofeles blackleitus: I mean, just `last_update <= datetime.now() - timedelta(days=7)` 2021-05-15 21:28:46 pi- blackleitus: int( (datetime.now() - timedelta(days=7) ).timestamp()) 2021-05-15 21:29:15 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-15 21:29:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 21:29:39 blackleitus +pi-, one timestamp for all 2021-05-15 21:29:43 deltab pi-: presumably those are the names python used to load them 2021-05-15 21:30:00 blackleitus by the way , why one space betweeen multiples calls? 2021-05-15 21:30:06 blackleitus I have seen this pattern often 2021-05-15 21:30:34 deltab Server.py is in the current directory, so it didn't need to add any prefixes to find it 2021-05-15 21:31:16 <-- sappheiros (~sappheiro@unaffiliated/dan1) has quit (Quit: please pray for me) 2021-05-15 21:32:04 <-- Fauve (~Fauve@unaffiliated/fauve) has quit (Quit: WeeChat 2.3) 2021-05-15 21:32:12 <-- pedahzur (~jkugler@156-38-237-24.gci.net) has quit (Ping timeout: 240 seconds) 2021-05-15 21:32:13 <-- plutoniix (~q@node-ul6.pool-125-24.dynamic.totinternet.net) has quit (Quit: Leaving) 2021-05-15 21:32:29 <-- chewb (~chewb@91.230.98.1) has quit (Ping timeout: 246 seconds) 2021-05-15 21:32:59 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 21:32:59 <-- Samian (~sami@174.27.107.153) has quit (Quit: Leaving) 2021-05-15 21:34:14 --> katana (~katana@unaffiliated/katana) has joined #python 2021-05-15 21:35:04 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Quit: %bye mirc%) 2021-05-15 21:35:09 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-15 21:35:18 <-- SuperLag (~akulbe@unaffiliated/superlag) has quit (Remote host closed the connection) 2021-05-15 21:36:17 --> yeticheese (~yetichees@185.240.244.190) has joined #python 2021-05-15 21:37:32 --> hyskaru (~hyskaru@unaffiliated/hyskaru) has joined #python 2021-05-15 21:37:38 --> ralof_ (~ralof@dynamic-077-007-049-147.77.7.pool.telefonica.de) has joined #python 2021-05-15 21:37:58 <-- hyskaru (~hyskaru@unaffiliated/hyskaru) has quit (Client Quit) 2021-05-15 21:40:32 <-- ralof (~ralof@dynamic-077-009-007-226.77.9.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-15 21:43:55 blackleitus is okay to say if jobs are older than 7 days skip them? if last_update <= int( (datetime.now() - timedelta(days=7) ).timestamp()): 2021-05-15 21:44:44 --> pangpang (~pangpang@unaffiliated/pangpang) has joined #python 2021-05-15 21:44:58 pangpang hello, there is good tutorial for python? 2021-05-15 21:45:31 grym pangpang: several. first language, or are you already skilled in one or more? 2021-05-15 21:45:32 deltab pangpang: several. What previous programming experience do you have? 2021-05-15 21:45:33 --> Mechanismus (~LabMonkey@2602:306:cf62:e270:a5b7:8754:231b:5e70) has joined #python 2021-05-15 21:45:35 blackleitus +pangpang, codeacademy if pretty elemenal 2021-05-15 21:45:38 blackleitus elemental* 2021-05-15 21:45:40 grym deltab: jinx! 2021-05-15 21:46:03 <-- Ademan (~ademan@47.185.84.39) has quit (Quit: leaving) 2021-05-15 21:46:10 pangpang yeah i know python a bit, but i have no idea making class 2021-05-15 21:46:17 pangpang so i want to concentrate on class 2021-05-15 21:46:24 pangpang of python 2021-05-15 21:46:40 --> brainium_ (~brainium@unaffiliated/brainium) has joined #python 2021-05-15 21:46:40 <-- brainium (~brainium@unaffiliated/brainium) has quit (Read error: Connection reset by peer) 2021-05-15 21:47:09 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-15 21:47:19 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Ping timeout: 260 seconds) 2021-05-15 21:48:03 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Disconnected by services) 2021-05-15 21:48:09 --> Jigsy` (~Jigsy@unaffiliated/jigsy) has joined #python 2021-05-15 21:48:14 <-- PantelicGR (~PantelicG@unaffiliated/pantelicgr) has quit (Quit: Leaving) 2021-05-15 21:48:28 blackleitus +pangpang, go the project route 2021-05-15 21:48:46 pangpang project route? what do you mean? 2021-05-15 21:49:35 blackleitus build simple projects . example if you are easy to search jobs. build a script that automate job search , if you want to automate your google responses too , etc etc 2021-05-15 21:50:01 blink is it stupid to jump in more on ADA right now 2021-05-15 21:50:02 -- Jigsy` is now known as Jigsy 2021-05-15 21:50:05 pangpang blackleitus, but i want to read tutorial for class :( 2021-05-15 21:50:12 blink i already have tons of coin in ADA but its rocketing and im thinking of MORE lol 2021-05-15 21:50:41 blackleitus +pangpang, `class` as OOP or which kind of class? 2021-05-15 21:50:50 --> bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has joined #python 2021-05-15 21:50:51 blink nah ill wait itll crash 2021-05-15 21:50:53 pangpang yeah class of oop 2021-05-15 21:50:57 blink after every peak comes a major crash 2021-05-15 21:51:49 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-15 21:53:31 deltab pangpang: do you know how to make functions? 2021-05-15 21:53:55 pangpang deltab, yea i know it 2021-05-15 21:54:09 blackleitus +pangpang, you can go with https://realpython.com/python3-object-oriented-programming/ 2021-05-15 21:54:11 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 240 seconds) 2021-05-15 21:54:29 blackleitus or still go with codeacademy 2021-05-15 21:54:50 pangpang blackleitus, thanks :) 2021-05-15 21:55:05 <-- Vornicus (~Vornicus@2603-8000-5d07-7ef0-e87b-73c7-f320-de4b.res6.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-15 21:55:22 <-- Ublx (~Alex@ip4d15fc33.dynamic.kabel-deutschland.de) has quit (Ping timeout: 252 seconds) 2021-05-15 21:55:47 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-15 21:56:35 --> Ublx (~Alex@107.181.180.167) has joined #python 2021-05-15 21:56:44 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-15 21:57:23 --> Naan (~Naan@unaffiliated/naan) has joined #python 2021-05-15 21:58:02 <-- brainium_ (~brainium@unaffiliated/brainium) has quit (Quit: Konversation terminated!) 2021-05-15 21:59:13 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 21:59:45 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Read error: Connection reset by peer) 2021-05-15 21:59:54 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-15 22:00:05 pi- deltab: thanks! 2021-05-15 22:00:19 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-15 22:00:24 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 245 seconds) 2021-05-15 22:00:56 --> Core1401 (~greyblue9@2600:381:4217:30fc:488a:1376:72cd:66ce) has joined #python 2021-05-15 22:01:38 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-15 22:01:59 --> stree (~stree@68.36.8.116) has joined #python 2021-05-15 22:02:32 --> HolyFishPaste90 (HolyFishPa@gateway/vpn/protonvpn/holyfishpaste90) has joined #python 2021-05-15 22:02:41 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-15 22:02:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 22:05:15 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 268 seconds) 2021-05-15 22:06:07 <-- jarthur (~jarthur@2603-8080-1540-002d-ac4c-3d8c-c2f5-38a0.res6.spectrum.com) has quit (Quit: jarthur) 2021-05-15 22:07:23 --> kexec (55d89d92@unaffiliated/kexec) has joined #python 2021-05-15 22:09:06 --> thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has joined #python 2021-05-15 22:09:48 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.1) 2021-05-15 22:10:02 --> Fauve (~Fauve@unaffiliated/fauve) has joined #python 2021-05-15 22:10:06 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-15 22:10:48 --> parabolize (~paraboliz@98.43.173.221) has joined #python 2021-05-15 22:13:08 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-15 22:13:19 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:548a:30b3:5f6d:c303) has quit (Ping timeout: 245 seconds) 2021-05-15 22:17:38 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 246 seconds) 2021-05-15 22:18:38 <-- factor (~factor@ip174-67-28-62.ok.ok.cox.net) has quit (Quit: Leaving) 2021-05-15 22:19:04 --> RageWireEsq (~RageWireE@S0106f0f2493c5b83.cg.shawcable.net) has joined #python 2021-05-15 22:19:42 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-15 22:21:31 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-15 22:21:55 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-15 22:23:07 <-- tm (~sinnlos@unaffiliated/tm) has quit (Ping timeout: 268 seconds) 2021-05-15 22:23:47 <-- HannaM (~quassel@p54849510.dip0.t-ipconnect.de) has quit (Quit: HannaM) 2021-05-15 22:24:17 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Client Quit) 2021-05-15 22:24:23 --> FinnElija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-15 22:24:23 -- finn_elija is now known as Guest32020 2021-05-15 22:24:23 -- FinnElija is now known as finn_elija 2021-05-15 22:25:21 --> SuperLag (~akulbe@unaffiliated/superlag) has joined #python 2021-05-15 22:25:54 --> phasetwo_ (~phasetwo@c-67-168-62-122.hsd1.wa.comcast.net) has joined #python 2021-05-15 22:26:47 --> tm (~sinnlos@unaffiliated/tm) has joined #python 2021-05-15 22:27:57 <-- Guest32020 (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Ping timeout: 240 seconds) 2021-05-15 22:28:26 <-- jimmyegg (~jimmyegg@pool-72-94-145-43.phlapa.fios.verizon.net) has quit (Quit: Konversation terminated!) 2021-05-15 22:29:28 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 22:29:33 <-- chromis (sid150893@gateway/web/irccloud.com/x-bsafigfijcmfjcwi) has quit 2021-05-15 22:30:11 <-- ZeZu (null@140-211-168-73-openstack.osuosl.org) has quit (Ping timeout: 252 seconds) 2021-05-15 22:31:25 --> ZeZu (null@140-211-168-73-openstack.osuosl.org) has joined #python 2021-05-15 22:32:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 22:33:44 <-- SuperLag (~akulbe@unaffiliated/superlag) has quit (Remote host closed the connection) 2021-05-15 22:37:29 <-- vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has quit (Quit: vxvshnuj) 2021-05-15 22:39:36 --> auser0 (~hottie@41.44.123.106) has joined #python 2021-05-15 22:39:43 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 252 seconds) 2021-05-15 22:39:43 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-15 22:40:35 <-- armyriad (armyriad@gateway/vpn/privateinternetaccess/armyriad) has quit (Read error: Connection reset by peer) 2021-05-15 22:40:36 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-15 22:42:29 <-- Core1401 (~greyblue9@2600:381:4217:30fc:488a:1376:72cd:66ce) has quit (Ping timeout: 245 seconds) 2021-05-15 22:44:42 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Quit: Gone to sleep...) 2021-05-15 22:46:46 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-15 22:47:54 <-- Soulcypher (~Soulcyphe@2601:280:c001:ffb0:50c6:5085:41d9:4825) has quit (Ping timeout: 245 seconds) 2021-05-15 22:47:56 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-15 22:49:36 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Remote host closed the connection) 2021-05-15 22:50:02 --> nomic (~nomic@2a00:23c6:9910:1201:5c4e:8c0:354d:fad7) has joined #python 2021-05-15 22:50:03 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-15 22:51:09 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-15 22:51:44 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-15 22:51:46 <-- nomic (~nomic@2a00:23c6:9910:1201:5c4e:8c0:354d:fad7) has quit (Client Quit) 2021-05-15 22:51:52 <-- dhill (~dhill@modemcable250.73-201-24.mc.videotron.ca) has quit (Ping timeout: 240 seconds) 2021-05-15 22:52:54 <-- chachasmooth (~chachasmo@unaffiliated/chachasmooth) has quit (Ping timeout: 245 seconds) 2021-05-15 22:53:39 --> chachasmooth (~chachasmo@unaffiliated/chachasmooth) has joined #python 2021-05-15 22:54:24 <-- yeticheese (~yetichees@185.240.244.190) has quit 2021-05-15 22:55:19 --> neoweb (sid343200@makerslocal/webdawg) has joined #python 2021-05-15 22:55:48 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 268 seconds) 2021-05-15 22:58:20 <-- tabakhase (tabakhase@unaffiliated/tabakhase) has quit (Quit: ZNC - http://znc.in) 2021-05-15 22:59:30 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 23:00:01 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-15 23:01:31 --> Core7864 (~greyblue9@2600:381:421b:2484:a393:ca61:1df4:347e) has joined #python 2021-05-15 23:02:16 --> w0x12ef (~w0x12ef@111.63.44.6) has joined #python 2021-05-15 23:02:29 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 23:02:33 <-- w0x12ef (~w0x12ef@111.63.44.6) has quit (Max SendQ exceeded) 2021-05-15 23:02:51 --> vikas027 (~vikas027@119-18-3-135.771203.syd.nbn.aussiebb.net) has joined #python 2021-05-15 23:02:56 <-- chachasmooth (~chachasmo@unaffiliated/chachasmooth) has quit (Ping timeout: 245 seconds) 2021-05-15 23:03:09 <-- vikas027 (~vikas027@119-18-3-135.771203.syd.nbn.aussiebb.net) has quit (Client Quit) 2021-05-15 23:03:35 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-15 23:03:37 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-15 23:03:46 --> Core9724 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-15 23:03:56 --> tabakhase (tabakhase@unaffiliated/tabakhase) has joined #python 2021-05-15 23:04:13 --> a6a45081-2b83 (~aditya@171.76.17.86) has joined #python 2021-05-15 23:04:22 <-- yitz (~yitz@exercism/yitz) has quit (Ping timeout: 260 seconds) 2021-05-15 23:07:03 --> chachasmooth (~chachasmo@unaffiliated/chachasmooth) has joined #python 2021-05-15 23:07:47 <-- Core7864 (~greyblue9@2600:381:421b:2484:a393:ca61:1df4:347e) has quit (Ping timeout: 250 seconds) 2021-05-15 23:07:58 --> yitz (~yitz@exercism/yitz) has joined #python 2021-05-15 23:08:11 --> nomic (~nomic@2a00:23c6:9910:1201:5c4e:8c0:354d:fad7) has joined #python 2021-05-15 23:09:02 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-15 23:09:14 <-- RageWireEsq (~RageWireE@S0106f0f2493c5b83.cg.shawcable.net) has quit (Quit: -a- IRC for Android 2.1.59) 2021-05-15 23:12:12 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-15 23:12:27 <-- BUSY (~BUSY@unaffiliated/busy) has quit (Ping timeout: 268 seconds) 2021-05-15 23:13:19 <-- barneygale (~barneygal@cpc93788-hari17-2-0-cust405.20-2.cable.virginm.net) has quit (Ping timeout: 245 seconds) 2021-05-15 23:13:50 <-- Naan (~Naan@unaffiliated/naan) has quit (Read error: Connection reset by peer) 2021-05-15 23:16:09 <-- EGH (~EGH@185.25.195.104) has quit (Ping timeout: 268 seconds) 2021-05-15 23:16:32 --> Trashlord (~trash@wikipedia/Sentient-Planet) has joined #python 2021-05-15 23:17:57 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-15 23:26:13 <-- nomic (~nomic@2a00:23c6:9910:1201:5c4e:8c0:354d:fad7) has quit (Quit: Leaving) 2021-05-15 23:28:01 <-- very_sneaky (~very_snea@45.67.96.24) has quit (Quit: very_sneaky) 2021-05-15 23:29:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 23:32:02 --> greyblue9 (~greyblue9@2600:381:2223:47:8c3f:cd2e:35de:a477) has joined #python 2021-05-15 23:33:08 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-15 23:35:47 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-15 23:35:54 <-- Core9724 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 268 seconds) 2021-05-15 23:36:30 <-- Dotz0cat (~Dotz0cat@h129.139.187.173.dynamic.ip.windstream.net) has quit (Ping timeout: 268 seconds) 2021-05-15 23:37:31 --> nomic (~nomic@2a00:23c6:9910:1201:5c4e:8c0:354d:fad7) has joined #python 2021-05-15 23:39:35 --> Dotz0cat (~Dotz0cat@h192.71.213.151.dynamic.ip.windstream.net) has joined #python 2021-05-15 23:41:21 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-15 23:46:31 --> very_sneaky (~very_snea@45.67.96.24) has joined #python 2021-05-15 23:54:31 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Read error: Connection reset by peer) 2021-05-15 23:54:46 --> mns (~mns@devuan/community/mns) has joined #python 2021-05-15 23:54:49 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-15 23:56:11 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-15 23:56:11 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Read error: Connection reset by peer) 2021-05-15 23:57:23 --> sazawal (~sazawal@157.34.112.243) has joined #python 2021-05-15 23:58:00 <-- sazawal (~sazawal@157.34.112.243) has quit (Max SendQ exceeded) 2021-05-15 23:59:03 --> sazawal (~sazawal@157.34.112.243) has joined #python 2021-05-15 23:59:10 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-15 23:59:22 <-- kexec (55d89d92@unaffiliated/kexec) has quit (Quit: Connection closed) 2021-05-16 00:00:33 --> Rudd0 (~Rudd0@185.189.115.103) has joined #python 2021-05-16 00:00:44 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 00:01:14 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 245 seconds) 2021-05-16 00:02:46 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 00:05:06 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Ping timeout: 240 seconds) 2021-05-16 00:05:49 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 245 seconds) 2021-05-16 00:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-16 00:06:37 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-16 00:06:39 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 245 seconds) 2021-05-16 00:07:19 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-16 00:10:25 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-16 00:11:04 --> Wulf (~Wulf@unaffiliated/wulf) has joined #python 2021-05-16 00:17:38 <-- a6a45081-2b83 (~aditya@171.76.17.86) has quit (Remote host closed the connection) 2021-05-16 00:18:32 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Ping timeout: 265 seconds) 2021-05-16 00:18:41 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-16 00:18:59 --> Core1890 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-16 00:19:08 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-16 00:21:15 --> BUSY (~BUSY@unaffiliated/busy) has joined #python 2021-05-16 00:22:04 <-- greyblue9 (~greyblue9@2600:381:2223:47:8c3f:cd2e:35de:a477) has quit (Ping timeout: 245 seconds) 2021-05-16 00:23:03 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 00:23:19 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 252 seconds) 2021-05-16 00:23:41 <-- Core1890 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-16 00:23:56 --> greyblue9 (~greyblue9@2600:381:222a:f970:54d2:1647:e53f:2bcb) has joined #python 2021-05-16 00:24:28 --> Core5398 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-16 00:25:22 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-16 00:28:19 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-16 00:28:23 <-- greyblue9 (~greyblue9@2600:381:222a:f970:54d2:1647:e53f:2bcb) has quit (Ping timeout: 250 seconds) 2021-05-16 00:29:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 00:32:41 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 00:33:33 --> pinkisntwell___ (~pinkisntw@46.251.99.222) has joined #python 2021-05-16 00:33:48 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-16 00:34:07 --> greyblue9 (~greyblue9@2600:381:1013:c257:56b1:3f1e:adc2:d6) has joined #python 2021-05-16 00:36:25 <-- pinkisntwell__ (~pinkisntw@46.251.99.222) has quit (Ping timeout: 265 seconds) 2021-05-16 00:37:04 <-- Core5398 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 245 seconds) 2021-05-16 00:37:11 <-- phasetwo_ (~phasetwo@c-67-168-62-122.hsd1.wa.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-16 00:41:15 --> vdamewood (~vdamewood@unaffiliated/vdamewood) has joined #python 2021-05-16 00:41:43 --> Jantz (~IceChat95@2407:7000:8d04:100:9877:f362:4eeb:3282) has joined #python 2021-05-16 00:43:44 --> srikavin (~srikavin@096-058-214-140.res.spectrum.com) has joined #python 2021-05-16 00:45:09 <-- jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-16 00:45:33 --> jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has joined #python 2021-05-16 00:49:14 <-- isomari (~isomari@105.112.138.38) has quit (Quit: WeeChat 2.8) 2021-05-16 00:49:32 --> patr0clus (patr0clus@gateway/vpn/protonvpn/patr0clus) has joined #python 2021-05-16 00:50:49 <-- thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has quit (Ping timeout: 252 seconds) 2021-05-16 00:52:12 --> Core5838 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-16 00:52:12 <-- urodna (~urodna@unaffiliated/urodna) has quit (Quit: urodna) 2021-05-16 00:54:59 <-- greyblue9 (~greyblue9@2600:381:1013:c257:56b1:3f1e:adc2:d6) has quit (Ping timeout: 245 seconds) 2021-05-16 00:59:06 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 00:59:13 <-- nickodd_ (~nickodd_@unaffiliated/nickodd) has left #python 2021-05-16 00:59:22 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Read error: Connection reset by peer) 2021-05-16 01:01:54 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 01:01:59 --> subho (~subho@fedora/subho) has joined #python 2021-05-16 01:05:03 <-- patr0clus (patr0clus@gateway/vpn/protonvpn/patr0clus) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-16 01:05:46 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Read error: Connection reset by peer) 2021-05-16 01:06:06 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-16 01:06:19 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-16 01:06:20 --> guest_1778 (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has joined #python 2021-05-16 01:06:41 -- guest_1778 is now known as EmptyPackets 2021-05-16 01:08:19 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 265 seconds) 2021-05-16 01:09:26 <-- zro (~zro@wikimedia/zro) has quit (Ping timeout: 260 seconds) 2021-05-16 01:10:38 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-16 01:10:39 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-16 01:11:01 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-16 01:11:03 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-16 01:11:04 -- audioburn is now known as audiocat 2021-05-16 01:11:43 <-- ijens (~ijens@unaffiliated/ijens) has quit (Ping timeout: 252 seconds) 2021-05-16 01:12:02 <-- audiocat (~theology@unaffiliated/theology) has quit (Read error: Connection reset by peer) 2021-05-16 01:13:33 --> tm007 (uid287041@gateway/web/irccloud.com/x-bicxgjbrlgvviadu) has joined #python 2021-05-16 01:13:59 --> nickodd_ (~nickodd_@unaffiliated/nickodd) has joined #python 2021-05-16 01:14:55 --> theology (~theology@unaffiliated/theology) has joined #python 2021-05-16 01:16:25 <-- ralof_ (~ralof@dynamic-077-007-049-147.77.7.pool.telefonica.de) has quit (Ping timeout: 268 seconds) 2021-05-16 01:17:15 --> Jantz_ (~IceChat95@2407:7000:8d04:100:54ab:45df:2749:b3aa) has joined #python 2021-05-16 01:19:05 <-- Jantz (~IceChat95@2407:7000:8d04:100:9877:f362:4eeb:3282) has quit (Ping timeout: 250 seconds) 2021-05-16 01:20:46 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-16 01:20:59 --> gobuk (~gobuk@115.164.84.35) has joined #python 2021-05-16 01:22:23 --> synthetek (~synthetek@138.199.52.51) has joined #python 2021-05-16 01:23:25 <-- emerent (~quassel@p200300cd5710242aba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-16 01:23:40 <-- shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has quit (Quit: Connection closed) 2021-05-16 01:23:55 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-16 01:24:57 --> emerent (~quassel@p200300cd57102442ba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-16 01:26:38 --> Coldblackice (c@gateway/vpn/mullvad/coldblackice) has joined #python 2021-05-16 01:27:45 <-- Coldblackice (c@gateway/vpn/mullvad/coldblackice) has quit (Read error: Connection reset by peer) 2021-05-16 01:27:54 <-- sazawal (~sazawal@157.34.112.243) has quit (Ping timeout: 245 seconds) 2021-05-16 01:29:13 --> monteh (~monteh@dyn-192-249-131-133.nexicom.net) has joined #python 2021-05-16 01:29:13 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 01:29:58 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 01:30:13 <-- gobuk (~gobuk@115.164.84.35) has quit (Quit: Leaving) 2021-05-16 01:32:43 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 01:33:48 <-- vdamewood (~vdamewood@unaffiliated/vdamewood) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-16 01:41:39 --> yeticheese (~yetichees@185.240.244.190) has joined #python 2021-05-16 01:42:28 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-16 01:43:26 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 240 seconds) 2021-05-16 01:43:29 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-16 01:45:35 --> a6a45081-2b83 (~aditya@171.76.17.86) has joined #python 2021-05-16 01:45:47 <-- Jantz_ (~IceChat95@2407:7000:8d04:100:54ab:45df:2749:b3aa) has quit (Ping timeout: 260 seconds) 2021-05-16 01:46:27 --> vdamewood (~vdamewood@unaffiliated/vdamewood) has joined #python 2021-05-16 01:46:29 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-16 01:46:56 <-- un1c0rrn (~dennisjun@p54890f15.dip0.t-ipconnect.de) has quit (Ping timeout: 260 seconds) 2021-05-16 01:48:28 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 268 seconds) 2021-05-16 01:49:04 --> craigevil (craig@gateway/vpn/protonvpn/craigevil) has joined #python 2021-05-16 01:52:46 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-16 01:57:07 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 01:57:15 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-16 01:57:16 <-- fran (~fran@unaffiliated/fran) has quit (Read error: Connection reset by peer) 2021-05-16 01:57:18 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-16 01:57:58 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-16 01:58:52 --> ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has joined #python 2021-05-16 01:59:05 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 02:01:25 <-- Rudd0 (~Rudd0@185.189.115.103) has quit (Ping timeout: 268 seconds) 2021-05-16 02:01:37 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 02:02:11 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 02:02:19 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 252 seconds) 2021-05-16 02:02:37 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-16 02:02:47 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-16 02:03:25 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-16 02:03:44 <-- epony (epony@unaffiliated/epony) has quit (Quit: upgrade) 2021-05-16 02:03:50 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-16 02:05:35 --> epony (epony@unaffiliated/epony) has joined #python 2021-05-16 02:06:32 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 246 seconds) 2021-05-16 02:06:46 <-- dpreacher (~dpreacher@49.207.202.30) has quit (Ping timeout: 260 seconds) 2021-05-16 02:06:57 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 02:07:03 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-16 02:08:26 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:582f:15cf:818b:8c27) has joined #python 2021-05-16 02:08:40 --> __marco (~marco@195.218.6.205) has joined #python 2021-05-16 02:09:34 <-- pi- (~Ohmu@node-hzu.pool-118-173.dynamic.totinternet.net) has quit 2021-05-16 02:10:02 --> Ouranos (~Saturn@cpe-76-170-69-102.socal.res.rr.com) has joined #python 2021-05-16 02:10:09 Ouranos Good evening! 2021-05-16 02:11:18 wyclif Good evening all 2021-05-16 02:11:42 Wulf Good Morning! 2021-05-16 02:11:56 vdamewood Good time period. 2021-05-16 02:12:00 Ouranos I am trying to learn python and I just started. 2021-05-16 02:12:08 vdamewood Sounds good. 2021-05-16 02:12:31 Ouranos I'm on sololearn and I"m a bit of an idiot. 2021-05-16 02:12:54 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:582f:15cf:818b:8c27) has quit (Ping timeout: 245 seconds) 2021-05-16 02:13:12 vdamewood You should stop being a bit of an idiot then. 2021-05-16 02:13:29 Ouranos I'm trying to do a BMI calculator. I think I have enough commands to do this, but I can't figure this out rn... 2021-05-16 02:13:51 Wulf Ouranos: share your code: https://bpaste.net/+python 2021-05-16 02:14:17 Ouranos rn I don't have any code. I think with int and print I should be able to do it. 2021-05-16 02:14:22 Wulf Ouranos: know any other programming languages? 2021-05-16 02:14:29 Wulf what's "rn"? 2021-05-16 02:14:37 Ouranos Any resources other than solo learn to start learning from nothing? 2021-05-16 02:14:40 Ouranos rn is right now 2021-05-16 02:15:15 Wulf Ouranos: our channel topic got a few links 2021-05-16 02:15:42 Network2501 hi, not python specific but is there a workflow/mapping tool for an application process/flow anyone here recommends? 2021-05-16 02:16:17 <-- hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has quit (Ping timeout: 250 seconds) 2021-05-16 02:17:09 Ouranos I think it is best for me to restart these tutorials and take some notes. I see how I could do this but I'm not using the tools properly. 2021-05-16 02:17:34 <-- seednode (~seednode@64-131-31-104.usfamily.net) has quit (Quit: Nihil supernum.) 2021-05-16 02:17:42 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-16 02:18:22 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:64e4:b431:194e:6a14) has joined #python 2021-05-16 02:18:27 --> seednode (~seednode@64-131-31-104.usfamily.net) has joined #python 2021-05-16 02:19:08 Wulf Ouranos: if you need help with your BMI calculator, share your code and tell us where you're stuck. 2021-05-16 02:21:22 <-- Psyb3rN4ut (~psybernau@147.161.13.219) has quit (Read error: Connection reset by peer) 2021-05-16 02:22:18 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-16 02:24:07 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-16 02:24:26 --> Deyaa (uid190709@gateway/web/irccloud.com/x-ozzlbtusdcxrpego) has joined #python 2021-05-16 02:25:32 Deyaa I want to find a way to make a dynamic selection in admin 2021-05-16 02:25:49 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:64e4:b431:194e:6a14) has quit (Ping timeout: 250 seconds) 2021-05-16 02:26:41 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 240 seconds) 2021-05-16 02:27:41 Deyaa Like if I select A then b and c going to change to related values 2021-05-16 02:28:20 <-- parabolize (~paraboliz@98.43.173.221) has quit (Quit: leaving) 2021-05-16 02:28:20 Ouranos I'll review my work and report back here. 2021-05-16 02:29:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 02:30:28 --> pabs3 (~pabs3@unaffiliated/pabs3) has joined #python 2021-05-16 02:31:28 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-16 02:31:51 --> TheRAt_ (~TheRAt@110.77.217.26) has joined #python 2021-05-16 02:32:14 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-16 02:32:26 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 240 seconds) 2021-05-16 02:32:34 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-16 02:32:40 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 02:33:20 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-16 02:33:21 <-- Betal (~Betal@unaffiliated/betal) has quit (Quit: WeeChat 3.1) 2021-05-16 02:34:13 <-- TheRAt (~TheRAt@110.78.173.9) has quit (Ping timeout: 252 seconds) 2021-05-16 02:36:52 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-16 02:36:52 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Quit: Left...) 2021-05-16 02:37:41 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 240 seconds) 2021-05-16 02:37:59 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-16 02:38:51 <-- zahlman (~zahlman@bras-base-toroon4432w-grc-04-174-93-62-159.dsl.bell.ca) has quit (Ping timeout: 260 seconds) 2021-05-16 02:39:41 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-16 02:43:53 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 02:44:34 <-- seds (~seds@irc.seds.nl) has quit (Read error: Connection reset by peer) 2021-05-16 02:44:59 --> Mulugruntz (~Mulugrunt@2400:4152:2063:3100:39f5:311:ced:e0c) has joined #python 2021-05-16 02:46:05 <-- Fauve (~Fauve@unaffiliated/fauve) has quit (Ping timeout: 246 seconds) 2021-05-16 02:46:27 --> seds (~seds@irc.seds.nl) has joined #python 2021-05-16 02:47:12 --> Psyb3rN4ut (~psybernau@147.161.13.75) has joined #python 2021-05-16 02:48:27 --> purplex88 (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-16 02:48:56 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Quit: test) 2021-05-16 02:49:22 --> thoros (~thoros@193-154-185-59.adsl.highway.telekom.at) has joined #python 2021-05-16 02:50:33 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-16 02:50:38 --> SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has joined #python 2021-05-16 02:51:33 <-- Ouranos (~Saturn@cpe-76-170-69-102.socal.res.rr.com) has quit (Quit: Leaving) 2021-05-16 02:52:02 --> zahlman (~zahlman@bras-base-toroon4432w-grc-04-174-93-62-159.dsl.bell.ca) has joined #python 2021-05-16 02:54:44 --> samian (~sami@174.27.107.153) has joined #python 2021-05-16 02:55:40 samian Since vscode is used significantly by the python community, are vscode python ide questions allowed ? 2021-05-16 02:56:51 --> philh (~philh@mue-88-130-57-202.dsl.tropolys.de) has joined #python 2021-05-16 02:57:00 <-- philh (~philh@mue-88-130-57-202.dsl.tropolys.de) has quit (Remote host closed the connection) 2021-05-16 02:57:21 --> sazawal (~sazawal@2409:4043:2e13:7bc:4815:ecc8:e47:925a) has joined #python 2021-05-16 02:58:05 <-- sagax (~sagax_nb@213.138.71.146) has quit (Remote host closed the connection) 2021-05-16 02:58:25 <-- pabs3 (~pabs3@unaffiliated/pabs3) has left #python ("Don't rest until the streets are paved in poems.") 2021-05-16 02:59:07 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 02:59:20 --> philh (~philh@mue-88-130-57-202.dsl.tropolys.de) has joined #python 2021-05-16 03:00:21 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-16 03:01:31 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-16 03:01:52 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-16 03:02:10 <-- Heirlung (Heirlung@71.71.176.215) has quit (Quit: ZNC - http://znc.in) 2021-05-16 03:02:46 --> kosh (~kosh@p200300d08f43d1004066ba49ec251c0d.dip0.t-ipconnect.de) has joined #python 2021-05-16 03:03:16 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-16 03:03:30 --> kosh_ (~kosh@p200300d08f43d1004066ba49ec251c0d.dip0.t-ipconnect.de) has joined #python 2021-05-16 03:03:34 <-- Xiti (~Xiti-@unaffiliated/xiti) has quit (Read error: Connection reset by peer) 2021-05-16 03:03:37 --> Xiti` (~Xiti-@unaffiliated/xiti) has joined #python 2021-05-16 03:03:50 <-- Alina-malina (~Alina-mal@unaffiliated/alina-malina) has quit (Ping timeout: 265 seconds) 2021-05-16 03:03:51 --> roxfan2 (roxfan@11.121-64-87.adsl-dyn.isp.belgacom.be) has joined #python 2021-05-16 03:03:56 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 03:04:25 --> Jackneill (~Jackneill@unaffiliated/jackneill) has joined #python 2021-05-16 03:04:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 03:04:33 --> Heirlung (Heirlung@71.71.176.215) has joined #python 2021-05-16 03:04:37 <-- Marbug (~Marbug@94-226-144-213.access.telenet.be) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 03:04:41 <-- m1n10n (~georgeclo@cpe-76-184-204-251.tx.res.rr.com) has quit (Remote host closed the connection) 2021-05-16 03:04:54 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 03:05:11 --> Marbug (~Marbug@94-226-144-213.access.telenet.be) has joined #python 2021-05-16 03:05:25 <-- aidanh (~aidanh@unaffiliated/aidanh) has quit (Quit: ZNC 1.7.5 - https://znc.in) 2021-05-16 03:05:34 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-16 03:05:46 --> aidanh (~aidanh@unaffiliated/aidanh) has joined #python 2021-05-16 03:05:50 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Remote host closed the connection) 2021-05-16 03:06:06 <-- roxfan (roxfan@11.121-64-87.adsl-dyn.isp.belgacom.be) has quit (Ping timeout: 240 seconds) 2021-05-16 03:06:24 --> dpreacher (~dpreacher@49.207.219.149) has joined #python 2021-05-16 03:06:58 <-- Ionic (~ionic@home.ionic.de) has quit (Ping timeout: 240 seconds) 2021-05-16 03:10:05 Wulf samian: guess so. There is also ##vs-code, but there aren't many people there. 2021-05-16 03:10:26 <-- Sir_Andrei (~andrei@r186-54-78-219.dialup.adsl.anteldata.net.uy) has quit (Ping timeout: 240 seconds) 2021-05-16 03:11:10 <-- Arwalk (~Arwalk@lfbn-dij-1-1334-228.w92-141.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-05-16 03:13:34 --> Arwalk (~Arwalk@lfbn-dij-1-1334-228.w92-141.abo.wanadoo.fr) has joined #python 2021-05-16 03:15:12 <-- mixfix41 (~homefame@unaffiliated/mixfix41) has quit (Ping timeout: 240 seconds) 2021-05-16 03:17:03 --> mixfix41 (~homefame@unaffiliated/mixfix41) has joined #python 2021-05-16 03:17:09 --> n00b101 (uid448161@gateway/web/irccloud.com/x-vjkrignnjyptknkb) has joined #python 2021-05-16 03:18:28 <-- kosh_ (~kosh@p200300d08f43d1004066ba49ec251c0d.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-16 03:18:34 <-- kosh (~kosh@p200300d08f43d1004066ba49ec251c0d.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-16 03:18:44 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 245 seconds) 2021-05-16 03:19:28 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:64e4:b431:194e:6a14) has joined #python 2021-05-16 03:20:03 samian Is it possible to have project-wide macros in vscode ? 2021-05-16 03:20:09 samian This is for a python project 2021-05-16 03:21:07 samian macros or global variables 2021-05-16 03:21:19 --> kosh (~kosh@p200300d08f43d1004c3f412e57febaa9.dip0.t-ipconnect.de) has joined #python 2021-05-16 03:22:04 samian I'm not concerned with names or technicalities. I just want a way to have a DEBUG variable I can switch true or false that is used across multiple files 2021-05-16 03:24:56 --> masoudd (~masoudd@unaffiliated/masoudd) has joined #python 2021-05-16 03:26:06 --> frrs (uid130725@gateway/web/irccloud.com/x-ucfasxcfelivkpbf) has joined #python 2021-05-16 03:26:40 --> EGH (~EGH@185.25.195.104) has joined #python 2021-05-16 03:29:21 --> greyblue9 (~greyblue9@2600:381:2227:3a68:c9c6:30a3:b28b:809d) has joined #python 2021-05-16 03:29:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 03:32:05 --> Jerrynicki (~niklas@p200300f577304d009da3b38a436f6487.dip0.t-ipconnect.de) has joined #python 2021-05-16 03:32:14 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 03:32:41 <-- Core5838 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-16 03:33:04 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-16 03:35:31 --> Core3523 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-16 03:35:34 --> bazul (bazul@38.189.189.46.rev.vodafone.pt) has joined #python 2021-05-16 03:36:00 --> bolovanos (~bolovanos@unaffiliated/bolovanos) has joined #python 2021-05-16 03:37:38 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-16 03:38:09 <-- average (uid473595@gateway/web/irccloud.com/x-hbdocecfrmsufsjq) has quit (Quit: Connection closed for inactivity) 2021-05-16 03:38:11 <-- greyblue9 (~greyblue9@2600:381:2227:3a68:c9c6:30a3:b28b:809d) has quit (Ping timeout: 250 seconds) 2021-05-16 03:40:56 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Quit: thorre) 2021-05-16 03:41:18 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python 2021-05-16 03:42:29 <-- kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has quit (Quit: leaving) 2021-05-16 03:43:22 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 03:43:41 --> pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-16 03:44:22 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-16 03:46:59 --> Fr1nge_ (~Fr1nge@176.88.74.25) has joined #python 2021-05-16 03:49:05 <-- Fr1nge (~Fr1nge@176.88.74.25) has quit (Ping timeout: 246 seconds) 2021-05-16 03:49:07 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-16 03:49:42 <-- yeticheese (~yetichees@185.240.244.190) has quit 2021-05-16 03:50:17 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-16 03:52:08 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 03:56:07 -- samian is now known as Samian 2021-05-16 03:57:25 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 260 seconds) 2021-05-16 03:57:54 <-- dreamon_ (~dreamon@unaffiliated/dreamon) has quit (Remote host closed the connection) 2021-05-16 03:57:59 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 03:59:11 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 04:00:00 --> wafflehunter (~wafflehun@ip-176-199-211-232.hsi06.unitymediagroup.de) has joined #python 2021-05-16 04:01:42 <-- Fingel (fingel@unaffiliated/fingel) has quit (Max SendQ exceeded) 2021-05-16 04:02:16 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 260 seconds) 2021-05-16 04:02:19 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 04:02:54 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 245 seconds) 2021-05-16 04:02:55 --> Fingel (~fingel@unaffiliated/fingel) has joined #python 2021-05-16 04:04:16 --> Aaron (~World@ubuntu/member/aaron) has joined #python 2021-05-16 04:05:07 <-- lmt (uid107697@gateway/web/irccloud.com/x-hondsaeftylkbgce) has quit (Quit: Connection closed for inactivity) 2021-05-16 04:06:25 --> amahl (~amahl@dxv5skybqt2pqmn0mwyny-3.rev.dnainternet.fi) has joined #python 2021-05-16 04:07:25 --> hendursa1 (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-16 04:07:42 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-16 04:08:09 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 04:08:34 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 04:10:19 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 04:10:21 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Ping timeout: 240 seconds) 2021-05-16 04:10:32 --> fflori (~fflori@mob-194-230-155-245.cgn.sunrise.net) has joined #python 2021-05-16 04:10:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 04:11:36 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Read error: Connection reset by peer) 2021-05-16 04:12:04 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-16 04:12:11 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-16 04:12:20 --> un1c0rrn (~dennisjun@p200300e72f23ea00d01ad5d7d3b7b5a9.dip0.t-ipconnect.de) has joined #python 2021-05-16 04:13:13 <-- tm007 (uid287041@gateway/web/irccloud.com/x-bicxgjbrlgvviadu) has quit (Quit: Connection closed for inactivity) 2021-05-16 04:13:59 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-16 04:16:50 --> panikovsky (~panikovsk@109.165.59.140) has joined #python 2021-05-16 04:18:42 --> LucaTM (~LucaTM@unaffiliated/lucatm) has joined #python 2021-05-16 04:18:46 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-16 04:19:18 --> carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-16 04:19:37 --> tsujp (a32f386b@163.47.56.107) has joined #python 2021-05-16 04:21:40 <-- wafflehunter (~wafflehun@ip-176-199-211-232.hsi06.unitymediagroup.de) has quit (Quit: Leaving) 2021-05-16 04:22:35 tsujp how can I use `socket.select` and have a (non-blocking) countdown timer (say 10 seconds) depending on one of the sockets messages? So a socket sends me a message "A" and I start a countdown timer for 10 seconds without blocking any of the other sockets im listening to. If I just do time.sleep(10) when a new client joins it's not handled until that 2021-05-16 04:22:36 tsujp time.sleep(10) finishes 2021-05-16 04:24:29 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Quit: Leaving) 2021-05-16 04:26:53 nanonyme tsujp, why not use one of the existing event loops? 2021-05-16 04:27:10 nanonyme Sounds like you're trying to create your own directly on top of socket 2021-05-16 04:27:43 --> honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-16 04:27:56 tsujp Which existing event loops are there? 2021-05-16 04:28:06 tsujp asyncio? 2021-05-16 04:28:52 <-- carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Ping timeout: 240 seconds) 2021-05-16 04:29:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 04:29:51 --> average (uid473595@gateway/web/irccloud.com/x-bwswiedoossincji) has joined #python 2021-05-16 04:30:25 --> sjoshi (~joshi_sun@122.177.16.19) has joined #python 2021-05-16 04:32:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 04:32:54 <-- un1c0rrn (~dennisjun@p200300e72f23ea00d01ad5d7d3b7b5a9.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-16 04:33:04 --> rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has joined #python 2021-05-16 04:33:35 tsujp nanonyme 2021-05-16 04:34:25 <-- r3m (~launch@unaffiliated/r3m) has quit (Quit: WeeChat 3.2-dev) 2021-05-16 04:34:30 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 04:34:30 --> un1c0rrn (~dennisjun@p54890f15.dip0.t-ipconnect.de) has joined #python 2021-05-16 04:35:01 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 04:35:08 --> jmorris (uid433911@gateway/web/irccloud.com/x-oniytlmiffsthddz) has joined #python 2021-05-16 04:35:34 --> r3m (~launch@unaffiliated/r3m) has joined #python 2021-05-16 04:35:39 f8e4 how to parse this in utc? dt = datetime.strptime('2020-12-20 22:58:34', "%Y-%m-%d %H:%M:%S") 2021-05-16 04:36:06 <-- jmorris (uid433911@gateway/web/irccloud.com/x-oniytlmiffsthddz) has left #python 2021-05-16 04:36:22 --> pspace (~bountyx@157-131-169-3.fiber.dynamic.sonic.net) has joined #python 2021-05-16 04:37:48 * f8e4 figured 2021-05-16 04:39:15 <-- Psyb3rN4ut (~psybernau@147.161.13.75) has quit (Read error: Connection reset by peer) 2021-05-16 04:40:38 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-16 04:42:41 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-16 04:43:21 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-16 04:43:51 <-- Aaron (~World@ubuntu/member/aaron) has quit (Remote host closed the connection) 2021-05-16 04:44:47 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 04:45:40 <-- veek (~veek@unaffiliated/veek) has quit (Ping timeout: 252 seconds) 2021-05-16 04:45:50 --> pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-16 04:45:56 --> Gerula_ (~Gerula@unaffiliated/gerula) has joined #python 2021-05-16 04:45:56 <-- Gerula (~Gerula@unaffiliated/gerula) has quit (Killed (tolkien.freenode.net (Nickname regained by services))) 2021-05-16 04:45:57 -- Gerula_ is now known as Gerula 2021-05-16 04:46:38 --> pun84 (~pun84@pool-108-24-127-194.cmdnnj.fios.verizon.net) has joined #python 2021-05-16 04:47:44 IHasFinger Hi everyone, maybe this is a stupid question. But how do i turn this unix timestamp to utc unix timestamp 1621131608 2021-05-16 04:48:11 f8e4 every unix timestamp is utc 2021-05-16 04:48:55 --> aball (~aball@172.241.25.162) has joined #python 2021-05-16 04:49:11 <-- masoudd (~masoudd@unaffiliated/masoudd) has quit (Remote host closed the connection) 2021-05-16 04:49:41 --> masoudd (~masoudd@unaffiliated/masoudd) has joined #python 2021-05-16 04:49:44 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-16 04:51:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-16 04:52:18 --> Neomex (~Neomex@176-114-249-197.rychlydrat.cz) has joined #python 2021-05-16 04:52:22 <-- Neomex (~Neomex@176-114-249-197.rychlydrat.cz) has quit (Remote host closed the connection) 2021-05-16 04:53:49 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-16 04:53:50 <-- Deyaa (uid190709@gateway/web/irccloud.com/x-ozzlbtusdcxrpego) has quit (Quit: Connection closed for inactivity) 2021-05-16 04:54:49 gordonjcp IHasFinger: datetime has a variety of functions for mangling time and timestamps 2021-05-16 04:55:58 nanonyme tsujp, asyncio, Twisted, curio and whatnots. Most alternatives are better than rolling one's own 2021-05-16 04:59:31 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 05:00:18 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 05:00:19 --> SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-16 05:00:30 <-- eedgit (~textual@84.64.201.21) has quit (Remote host closed the connection) 2021-05-16 05:01:29 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 05:02:26 <-- SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has quit (Ping timeout: 240 seconds) 2021-05-16 05:02:29 <-- Arwalk (~Arwalk@lfbn-dij-1-1334-228.w92-141.abo.wanadoo.fr) has quit (Ping timeout: 245 seconds) 2021-05-16 05:02:46 <-- indigaz (~indigaz@unaffiliated/indigaz) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 05:02:50 --> stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has joined #python 2021-05-16 05:02:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 05:03:01 --> CaptainFuture (~Thunderbi@p5dedeb9d.dip0.t-ipconnect.de) has joined #python 2021-05-16 05:03:06 <-- KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has quit (Ping timeout: 240 seconds) 2021-05-16 05:03:12 <-- gpanders (~gpanders@c-73-26-133-58.hsd1.nm.comcast.net) has quit (Quit: ZNC - https://znc.in) 2021-05-16 05:03:17 --> Hanii (~Hanii@2a00:23c5:c587:6d00:dd6:77f4:84ed:4cae) has joined #python 2021-05-16 05:03:28 --> indigaz (~indigaz@unaffiliated/indigaz) has joined #python 2021-05-16 05:03:33 --> gpanders (~gpanders@c-73-26-133-58.hsd1.nm.comcast.net) has joined #python 2021-05-16 05:04:15 IHasFinger nanonyme, does pytz have a method to turn unix to readable datetime format? 2021-05-16 05:04:36 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 05:05:09 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 05:05:13 <-- nomic (~nomic@2a00:23c6:9910:1201:5c4e:8c0:354d:fad7) has quit (Quit: Leaving) 2021-05-16 05:05:28 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 252 seconds) 2021-05-16 05:05:44 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 05:05:59 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:64e4:b431:194e:6a14) has quit (Ping timeout: 260 seconds) 2021-05-16 05:06:14 <-- ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-16 05:06:39 <-- sjoshi (~joshi_sun@122.177.16.19) has quit (Ping timeout: 245 seconds) 2021-05-16 05:06:51 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 05:07:37 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 05:07:39 <-- pbnoxious (pbnoxious@piratenpartei/jupi/pbnoxious) has quit (Ping timeout: 252 seconds) 2021-05-16 05:08:04 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 05:08:24 --> arinov (~arinov@213.194.126.155) has joined #python 2021-05-16 05:08:44 --> xrogaan (~xrogaan@unaffiliated/xrogaan) has joined #python 2021-05-16 05:09:12 <-- BinaryVixen899 (~BinaryVix@75.172.189.47) has quit (Ping timeout: 240 seconds) 2021-05-16 05:09:33 --> ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has joined #python 2021-05-16 05:09:35 <-- katana (~katana@unaffiliated/katana) has quit (Ping timeout: 246 seconds) 2021-05-16 05:10:46 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-16 05:11:29 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-16 05:13:15 IHasFinger what I am trying to do is this. I have a timestamp like 1621155055 and I want to compare the utc time of now to that to see how many minutes ago it was. It has to always be in minutes. e.g. 5 minutes ago, 637 minutes ago how can I do this please? 2021-05-16 05:13:57 <-- ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-16 05:13:57 --> retrojeff (~Jeffery@d172-218-158-175.bchsia.telus.net) has joined #python 2021-05-16 05:14:07 gordonjcp IHasFinger: well, think about it 2021-05-16 05:14:13 gordonjcp you know what the UTC time is, now 2021-05-16 05:14:24 gordonjcp you know what the Unix timestamp time is now, too 2021-05-16 05:14:34 retrojeff i'm looking for a module called 'MORTIS' does anyone know where I can find it? 2021-05-16 05:14:40 --> Psyb3rN4ut (~psybernau@147.161.13.99) has joined #python 2021-05-16 05:14:59 gordonjcp IHasFinger: how would you work out the time difference between Unix time *now* and your timestamp? 2021-05-16 05:16:37 <-- SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has quit (Remote host closed the connection) 2021-05-16 05:16:52 ChrisWarrick retrojeff: (1) google (2) wherever you found out about this module existing? 2021-05-16 05:16:53 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 05:17:26 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 05:17:46 retrojeff google turned up nothing and I found the python script on a random github gist 2021-05-16 05:18:17 <-- zahlman (~zahlman@bras-base-toroon4432w-grc-04-174-93-62-159.dsl.bell.ca) has quit (Ping timeout: 252 seconds) 2021-05-16 05:18:18 --> SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-16 05:18:31 retrojeff its for a twitch formatter for hexchat irc client 2021-05-16 05:19:09 ChrisWarrick retrojeff: look around the poster’s github profile or something, or maybe it’s part of hexchat 2021-05-16 05:20:23 --> LKoen (~LKoen@2a01cb0407597a004d60e6b5637735bc.ipv6.abo.wanadoo.fr) has joined #python 2021-05-16 05:20:25 <-- audioburn (~theology@unaffiliated/theology) has quit (Read error: Connection reset by peer) 2021-05-16 05:20:35 IHasFinger gordonjcp, hi i did try this https://bpa.st/F6PA using the the result was way off so might have been an error from my part can you check if its correct? thank you 2021-05-16 05:20:42 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 05:21:03 retrojeff the person who posted the gist was active recently so they might provide it (crosses fingers) guessing they just forgot to provide it 2021-05-16 05:21:26 gordonjcp IHasFinger: why are you dividing anything by 1000? 2021-05-16 05:21:43 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 05:21:49 gordonjcp IHasFinger: you're overthinking it 2021-05-16 05:21:51 --> aslicedbanjo (~aslicedba@host86-134-28-65.range86-134.btcentralplus.com) has joined #python 2021-05-16 05:22:01 gordonjcp IHasFinger: how would you get the difference in time between now and your timestamp, in seconds? 2021-05-16 05:22:13 <-- Core3523 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: No route to host) 2021-05-16 05:22:16 --> sjoshi (~joshi_sun@2409:4050:e3e:2c83:e256:6336:647f:cf07) has joined #python 2021-05-16 05:23:02 very_sneaky IHasFinger: https://pypi.org/project/timeago/ ? 2021-05-16 05:23:22 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 05:23:56 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 05:24:14 <-- Fr1nge_ (~Fr1nge@176.88.74.25) has quit (Ping timeout: 260 seconds) 2021-05-16 05:24:34 <-- theology (~theology@unaffiliated/theology) has quit (Ping timeout: 245 seconds) 2021-05-16 05:25:02 very_sneaky IHasFinger: this will get you the conversion to a `datetime` object: https://stackoverflow.com/questions/3682748/converting-unix-timestamp-string-to-readable-date 2021-05-16 05:25:20 very_sneaky ah, you've already got it. 2021-05-16 05:25:20 IHasFinger gordonjcp, convert to seconds and takeaway? 2021-05-16 05:25:35 gordonjcp IHasFinger: convert what to seconds? 2021-05-16 05:25:42 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Quit: %bye mirc%) 2021-05-16 05:25:49 IHasFinger both unix 2021-05-16 05:25:50 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-16 05:25:51 gordonjcp IHasFinger: this is the Socratic Method, incidentally 2021-05-16 05:25:56 gordonjcp IHasFinger: I already know the answer 2021-05-16 05:26:07 gordonjcp IHasFinger: what does a Unix timestamp represent? 2021-05-16 05:27:29 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 245 seconds) 2021-05-16 05:28:10 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-16 05:28:49 --> KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has joined #python 2021-05-16 05:28:57 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-16 05:29:12 Samian is there a way to package python programs so a lay person (not a coder) can run the program? 2021-05-16 05:29:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 05:29:38 Samian I want to show the program I've made to the company's cofounder. He's not a coder, doesn't have python installed, and doesn't haveany of the packages installed 2021-05-16 05:30:01 gordonjcp if they don't have python installed you're going to have a less than enjoyable time 2021-05-16 05:30:13 very_sneaky Samian: you can create an executable, but it's rough from what i understand - i've never done it before 2021-05-16 05:30:18 Samian that stinks. I remember making qt programs and that was easy for anyone to run 2021-05-16 05:30:31 Samian qt c++ programs I mean 2021-05-16 05:30:44 gordonjcp what distro is he running that doesn't already have Python installed? 2021-05-16 05:30:58 Samian it was easy to create a folder containing everything the program needed to run. In fact, I could create a single file that contained the entire program with all dependencies in it 2021-05-16 05:31:05 Samian gordonjcp, no clue 2021-05-16 05:31:22 Samian He's on windows or osx likely 2021-05-16 05:31:24 gordonjcp I thought everything had Python installed by default these days 2021-05-16 05:31:29 very_sneaky for windows: https://www.py2exe.org/ 2021-05-16 05:31:32 gordonjcp OSX definitely has Python 2021-05-16 05:31:34 very_sneaky osx will come pre-installed with python 2021-05-16 05:31:39 gordonjcp what's Windows based on? 2021-05-16 05:31:45 Samian I can ask him what os he's on 2021-05-16 05:31:49 supakeen I mean, `pyinstaller` exist which will bundle everything together into a single executable with a Python interpreter. 2021-05-16 05:31:50 gordonjcp Looks KDEish? 2021-05-16 05:31:50 adder` osx will ditch python soon 2021-05-16 05:31:52 <-- aslicedbanjo (~aslicedba@host86-134-28-65.range86-134.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-16 05:31:55 supakeen But you'll need the platforms you run on. 2021-05-16 05:32:02 supakeen As it's no cross compiler. 2021-05-16 05:32:19 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 05:32:37 --> gitesh (uid423739@gateway/web/irccloud.com/x-scsfmaujxxmpjdbt) has joined #python 2021-05-16 05:33:58 emerent adder`: what does that mean? 2021-05-16 05:34:17 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Read error: Connection reset by peer) 2021-05-16 05:34:19 adder` it means that the users will have to install python on their own 2021-05-16 05:34:35 --> greedom (~greedom@2001:16b8:2e70:bb00:d0c0:b7fc:773:ba6f) has joined #python 2021-05-16 05:34:40 --> burakcank (~burakcank@159.146.41.74) has joined #python 2021-05-16 05:35:52 --> theology (~theology@unaffiliated/theology) has joined #python 2021-05-16 05:36:03 supakeen Or that it (like all of the development tools) will come with xcode. 2021-05-16 05:36:10 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 05:36:18 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-16 05:36:38 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-16 05:36:47 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-16 05:36:49 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined #python 2021-05-16 05:36:51 --> bpluly2 (~bpluly2@194.35.126.48) has joined #python 2021-05-16 05:37:11 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 05:37:59 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-16 05:38:28 --> ar3ac (~ar3ac@host-79-17-84-49.retail.telecomitalia.it) has joined #python 2021-05-16 05:41:14 rendar a quick way to get a list without the *penultimate* element? 2021-05-16 05:41:31 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 05:41:34 <-- CaptainFuture (~Thunderbi@p5dedeb9d.dip0.t-ipconnect.de) has quit (Ping timeout: 268 seconds) 2021-05-16 05:43:02 --> teut (b6453149@unaffiliated/teut) has joined #python 2021-05-16 05:43:48 emerent rendar: foo[:-2] + foo[-1:] 2021-05-16 05:43:48 teut [1, 2, 0, 6, 5, 3]  - > [[1, 0, 5], [2, 6, 3]]      whats the simple way to do this? 2021-05-16 05:44:06 rendar uhm, ok 2021-05-16 05:44:12 --> blyat-73 (~user@79.101.60.163) has joined #python 2021-05-16 05:44:20 teut two filters is only what I can think of 2021-05-16 05:44:29 rendar emerent: it's wrong 2021-05-16 05:44:47 rendar emerent: sorry, i was wrong, yours is ok 2021-05-16 05:45:35 --> ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has joined #python 2021-05-16 05:45:51 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 05:46:25 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 05:47:17 rendar emerent: and a[:1]+a[2:] to erase the 2nd element, right? 2021-05-16 05:47:49 <-- bpluly2 (~bpluly2@194.35.126.48) has quit (Ping timeout: 252 seconds) 2021-05-16 05:48:04 teut list(filter(lambda x, y: x%2 != 0,  enumerate(eq.all_coeffs())))   and how does this works? 2021-05-16 05:48:05 very_sneaky teut: [[x for x in foo if x%2 == 0], [x for x in foo if x%2 != 0]]? idk depends on the rule you're using to separate them. or you could slice it `[foo[::2], foo[1::2]]` 2021-05-16 05:48:06 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-16 05:48:24 very_sneaky the slice is probably the least verbose 2021-05-16 05:48:34 --> muhaha (5e7050c8@gateway/web/cgi-irc/kiwiirc.com/ip.94.112.80.200) has joined #python 2021-05-16 05:48:42 teut yes very_sneaky that can be done 2021-05-16 05:48:43 --> gelignite (~gelignite@55d4b9d7.access.ecotel.net) has joined #python 2021-05-16 05:49:26 teut ok then 2021-05-16 05:49:26 teut , I ll use the loops 2021-05-16 05:49:29 teut thanks 2021-05-16 05:49:36 --> pbnoxious (pbnoxious@piratenpartei/jupi/pbnoxious) has joined #python 2021-05-16 05:49:51 emerent rendar: sure 2021-05-16 05:49:51 teut oh yes that slicing is better, didnt trike me 2021-05-16 05:49:55 teut strike* 2021-05-16 05:50:03 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Remote host closed the connection) 2021-05-16 05:50:12 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-16 05:50:40 very_sneaky i just realised the list comprehensions don't get the right answer. you get the idea anyway 2021-05-16 05:51:05 teut yes that slicing was the apt solution 2021-05-16 05:51:16 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-16 05:51:26 teut didnt do that from quite some time so forgot that 2021-05-16 05:51:33 --> circuitbone (sid355934@gateway/web/irccloud.com/x-svhwykcxnngqeawl) has joined #python 2021-05-16 05:52:59 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 05:53:00 --> bpluly2 (~bpluly2@82-69-31-48.dsl.in-addr.zen.co.uk) has joined #python 2021-05-16 05:54:53 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 05:55:46 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 05:55:51 IHasFinger gordonjcp, i dont understand what you mean 2021-05-16 05:55:53 --> YuGiOhJCJ (~YuGiOhJCJ@gateway/tor-sasl/yugiohjcj) has joined #python 2021-05-16 05:56:10 --> CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has joined #python 2021-05-16 05:56:49 --> Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has joined #python 2021-05-16 05:57:33 <-- teut (b6453149@unaffiliated/teut) has quit (Quit: Connection closed) 2021-05-16 05:57:41 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-16 05:58:07 IHasFinger very_sneaky, i tried https://bpa.st/LVVA how said 6 minutes ago, it should be 66 minutes ago 2021-05-16 05:58:13 <-- al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 268 seconds) 2021-05-16 05:58:21 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 260 seconds) 2021-05-16 05:59:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 05:59:16 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-16 05:59:24 IHasFinger 1621155055 was generated 09:50 uk time which is 08:50 utc time 2021-05-16 05:59:36 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-16 06:00:35 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Remote host closed the connection) 2021-05-16 06:00:36 --> Rudd0 (~Rudd0@185.189.115.103) has joined #python 2021-05-16 06:01:29 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Remote host closed the connection) 2021-05-16 06:01:50 --> al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-16 06:02:02 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-16 06:02:27 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-16 06:02:34 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 06:03:10 <-- Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-05-16 06:03:26 <-- auser0 (~hottie@41.44.123.106) has quit (Ping timeout: 260 seconds) 2021-05-16 06:03:51 <-- sjoshi (~joshi_sun@2409:4050:e3e:2c83:e256:6336:647f:cf07) has quit (Ping timeout: 260 seconds) 2021-05-16 06:04:59 very_sneaky IHasFinger: how are you generating that timestamp? 2021-05-16 06:05:22 IHasFinger very_sneaky, I am getting it from telegram after i sent a message 2021-05-16 06:05:30 IHasFinger it is part of the json response 2021-05-16 06:05:51 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-ecojzuipgicewyay) has quit (Quit: Connection closed for inactivity) 2021-05-16 06:05:54 --> Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has joined #python 2021-05-16 06:06:29 very_sneaky IHasFinger: the problem i see is, datetime.fromtimestamp returns the local date corresponding to the POSIX timestamp: https://docs.python.org/3/library/datetime.html#datetime.date.fromtimestamp 2021-05-16 06:06:42 very_sneaky which means timezone info is already encoded in to your datetime object 2021-05-16 06:06:53 <-- Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-05-16 06:07:04 very_sneaky `ago = timeago.format(datetime.fromtimestamp(1621155055), datetime.now())` returns '1 hour ago' for me 2021-05-16 06:07:04 IHasFinger very_sneaky, yeah am guessing they is no way to say use utc instead? 2021-05-16 06:07:42 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-16 06:08:18 <-- a6a45081-2b83 (~aditya@171.76.17.86) has quit (Remote host closed the connection) 2021-05-16 06:08:34 very_sneaky IHasFinger: without researching more, i'm not sure. you might have to use pytz to convert it to UTC. i'm nto sure how the datetime library processes things under the hood 2021-05-16 06:10:05 --> Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has joined #python 2021-05-16 06:10:05 very_sneaky IHasFinger: actually, see: https://docs.python.org/3/library/datetime.html#datetime.datetime.fromtimestamp 2021-05-16 06:10:06 IHasFinger very_sneaky if i remember correctly when i looked at ptyz it still took in a timezome 2021-05-16 06:10:15 very_sneaky looks like it takes a timezone as an optional param 2021-05-16 06:10:34 IHasFinger else it default to your local one 2021-05-16 06:10:42 <-- Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-05-16 06:11:01 IHasFinger so it will still be off. Unless i do it the other way around. turn the unix to my timezome and do the maths 2021-05-16 06:11:05 very_sneaky `ago = timeago.format(datetime.utcfromtimestamp(1621155055), datetime.utcnow())` 2021-05-16 06:11:28 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-16 06:11:31 very_sneaky that will do it in utc - a good first step is probably just to read the documentation :) 2021-05-16 06:11:39 very_sneaky https://docs.python.org/3/library/datetime.html#datetime.datetime.utcfromtimestamp 2021-05-16 06:11:46 gordonjcp IHasFinger: unix timestamps are in seconds 2021-05-16 06:11:49 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-16 06:11:52 gordonjcp IHasFinger: specifically, seconds since 1/1/1970 2021-05-16 06:12:19 gordonjcp IHasFinger: if you subtract a timestamp from the timestamp *now* you'll always get "how many seconds ago" 2021-05-16 06:12:45 gordonjcp IHasFinger: if you don't specifically need wallclock time then you don't need to bugger about with converting to UTC or anything 2021-05-16 06:13:40 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 252 seconds) 2021-05-16 06:13:53 --> Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has joined #python 2021-05-16 06:14:34 <-- Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-05-16 06:15:58 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-16 06:17:40 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-16 06:18:05 --> Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has joined #python 2021-05-16 06:18:08 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 265 seconds) 2021-05-16 06:18:14 <-- Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-05-16 06:19:26 <-- retrojeff (~Jeffery@d172-218-158-175.bchsia.telus.net) has quit (Quit: Leaving) 2021-05-16 06:20:06 --> sjoshi (~joshi_sun@122.177.16.19) has joined #python 2021-05-16 06:20:43 IHasFinger gordonjcp, like this right? https://bpa.st/ZHIQ 2021-05-16 06:21:31 --> Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has joined #python 2021-05-16 06:22:29 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 245 seconds) 2021-05-16 06:23:27 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 265 seconds) 2021-05-16 06:23:50 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 06:23:59 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-16 06:24:12 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 06:24:19 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-16 06:24:32 --> frostschutz (~frostschu@2a01:c23:7c28:b400:ec21:8243:c062:cdbf) has joined #python 2021-05-16 06:24:32 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 06:24:57 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-16 06:25:06 <-- Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-05-16 06:25:46 gordonjcp IHasFinger: you don't really need to do that, you can just use time.time() 2021-05-16 06:28:15 --> Arwalk (~Arwalk@lfbn-dij-1-964-70.w90-125.abo.wanadoo.fr) has joined #python 2021-05-16 06:28:28 gordonjcp IHasFinger: import time; print(time.time()-past) would do it 2021-05-16 06:29:10 --> kpiyushlucky (6ee15494@110.225.84.148) has joined #python 2021-05-16 06:29:10 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 06:29:56 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-16 06:30:05 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-16 06:30:26 IHasFinger very_sneaky, https://bpa.st/5HCQ line 6 this shows the correct time for the "past" in line one, thank you. how gordonjcp in line 10 the 2166.844 seconds does not add to over 1 hour :) 2021-05-16 06:32:34 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 06:32:46 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 240 seconds) 2021-05-16 06:32:52 --> guriya (a0ee4ba0@unaffiliated/guriya) has joined #python 2021-05-16 06:32:53 <-- bpluly2 (~bpluly2@82-69-31-48.dsl.in-addr.zen.co.uk) has quit (Quit: bpluly2) 2021-05-16 06:33:56 <-- pspace (~bountyx@157-131-169-3.fiber.dynamic.sonic.net) has quit (Quit: Peace) 2021-05-16 06:34:33 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 252 seconds) 2021-05-16 06:34:59 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 06:35:55 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-16 06:39:05 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-16 06:40:13 --> Alina-malina (~Alina-mal@unaffiliated/alina-malina) has joined #python 2021-05-16 06:40:25 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-16 06:40:31 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 06:40:42 rond_ If I define a function inside another function, then will it be defined every time an outer function is called? (which would impose overhead...?) 2021-05-16 06:41:13 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-16 06:41:46 rond_ in other way: Does it pose efficiency threats to define inner functions and use them? 2021-05-16 06:42:16 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 252 seconds) 2021-05-16 06:42:52 --> juuandyy (~juuandyy@90.106.228.121) has joined #python 2021-05-16 06:43:00 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-16 06:43:39 <-- theology (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-16 06:43:57 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-16 06:45:35 --> viktor_ (~viktor@ppp-124-121-236-89.revip2.asianet.co.th) has joined #python 2021-05-16 06:47:36 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-16 06:48:10 ChrisWarrick rond_: yes, what use-case do you have for nested functions? 2021-05-16 06:48:12 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-16 06:48:47 rond_ code modularization 2021-05-16 06:48:53 ChrisWarrick rond_: that is? 2021-05-16 06:49:19 rond_ i want to define subprocedures for clarity 2021-05-16 06:50:01 ChrisWarrick rond_: why are they subprocedures and not just regular functions/methods on the same level? 2021-05-16 06:50:46 rond_ why would I clutter the namespace? 2021-05-16 06:50:52 rond_ the intentions are more clear with inner function 2021-05-16 06:51:10 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-16 06:51:34 ChrisWarrick rond_: you could start the function names with _ to signal they’re “private” (they’re not, but they aren’t meant to be used externally) 2021-05-16 06:51:50 rond_ so, the answer is: inner functions come with costs 2021-05-16 06:51:53 rond_ thanks! 2021-05-16 06:52:18 ChrisWarrick rond_: some libraries use from-imports in __init__.py for the public/most useful API and everything else is in modules 2021-05-16 06:52:21 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-16 06:53:16 <-- pyre (~pyre@crimeboss.nillas-power.com) has quit (Ping timeout: 252 seconds) 2021-05-16 06:53:57 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-16 06:55:15 <-- juuandyy (~juuandyy@90.106.228.121) has quit (Quit: Konversation terminated!) 2021-05-16 06:56:20 --> juuandyy (~juuandyy@90.106.228.121) has joined #python 2021-05-16 06:57:06 <-- KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 06:57:44 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 06:58:31 <-- Rudd0 (~Rudd0@185.189.115.103) has quit (Read error: Connection reset by peer) 2021-05-16 06:58:32 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-16 06:58:59 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 06:59:18 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 07:00:49 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-16 07:02:27 <-- viktor_ (~viktor@ppp-124-121-236-89.revip2.asianet.co.th) has left #python 2021-05-16 07:02:28 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 07:02:42 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 07:03:16 <-- spiri (~spiri@unaffiliated/spiri) has quit (Read error: Connection reset by peer) 2021-05-16 07:03:21 --> dbax (~dbax@61.5.193.1) has joined #python 2021-05-16 07:04:03 <-- guriya (a0ee4ba0@unaffiliated/guriya) has quit (Ping timeout: 240 seconds) 2021-05-16 07:04:28 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-16 07:04:47 dbax my script takes to args to run arg1=start_date and arg2=end_date and I want to set a cron job to run the scrip every monday 8AM and take the arg1 from the system which would be todays date. how can I do that? 2021-05-16 07:05:08 --> Scarecr0w (internot@gateway/shell/xshellz/x-dsmyuratefupzkau) has joined #python 2021-05-16 07:05:42 ChrisWarrick dbax: datetime.date.today() 2021-05-16 07:06:09 --> lejocelyn (~lejocelyn@2a02:8109:8880:10ec::295e) has joined #python 2021-05-16 07:06:46 <-- n00b101 (uid448161@gateway/web/irccloud.com/x-vjkrignnjyptknkb) has quit (Quit: Connection closed for inactivity) 2021-05-16 07:07:24 dbax ChrisWarrick: how do I pass datetime.date.today() as arg when running the script as python script.py arg1 arg2 ? 2021-05-16 07:07:34 --> vaq (43f73f69@vaq/unaffiliated) has joined #python 2021-05-16 07:07:43 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-16 07:07:48 --> pbrunier (~pbrunier@84-24-22-131.cable.dynamic.v4.ziggo.nl) has joined #python 2021-05-16 07:07:50 ChrisWarrick dbax: you don’t 2021-05-16 07:08:03 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Quit: cy) 2021-05-16 07:08:14 leduyquang753 You can give it a special value that makes the script get the current time maybe. 2021-05-16 07:08:15 ChrisWarrick dbax: you can rewrite your script to default to today if a date is not specified or if it has the value 'today', for example 2021-05-16 07:09:02 ChrisWarrick dbax: you could use the unix `date` command while calling the script (although I probably wouldn’t) 2021-05-16 07:09:41 dbax ChrisWarrick: yeah defaulting the value would be the perfect approach. Thanks 2021-05-16 07:10:00 vaq Hi, I have a pandas dataframe with 1000s of rows, one of the columns is pct. How do I make a new dataframe and rank all the rows in a score from 0-100 where 100 is the one with the highest pct, 99.99 the second and so on. 2021-05-16 07:10:15 --> ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has joined #python 2021-05-16 07:12:13 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 268 seconds) 2021-05-16 07:12:17 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-16 07:12:45 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-16 07:13:22 --> wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has joined #python 2021-05-16 07:13:22 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 07:13:44 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 07:15:26 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-16 07:15:41 <-- muhaha (5e7050c8@gateway/web/cgi-irc/kiwiirc.com/ip.94.112.80.200) has quit (Quit: Connection closed) 2021-05-16 07:16:09 <-- Jerrynicki (~niklas@p200300f577304d009da3b38a436f6487.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-16 07:16:11 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-16 07:16:43 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-16 07:16:48 --> Jerrynicki (~niklas@p200300f577304d0051106ef1f4d22600.dip0.t-ipconnect.de) has joined #python 2021-05-16 07:22:03 <-- pbrunier (~pbrunier@84-24-22-131.cable.dynamic.v4.ziggo.nl) has quit (Remote host closed the connection) 2021-05-16 07:25:45 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 07:25:52 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 07:26:05 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 07:26:19 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-16 07:26:32 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-16 07:27:13 <-- greedom (~greedom@2001:16b8:2e70:bb00:d0c0:b7fc:773:ba6f) has quit (Remote host closed the connection) 2021-05-16 07:29:00 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 07:29:17 <-- juuandyy (~juuandyy@90.106.228.121) has quit (Quit: Konversation terminated!) 2021-05-16 07:29:17 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 07:30:19 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 07:31:13 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 07:31:18 --> sagax (~sagax_nb@213.138.71.146) has joined #python 2021-05-16 07:33:48 <-- LKoen (~LKoen@2a01cb0407597a004d60e6b5637735bc.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-16 07:34:02 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-16 07:34:25 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-16 07:34:30 graingert rond_: very slight allocation costs though 2021-05-16 07:34:56 graingert rond_: the __code__ object is reused 2021-05-16 07:36:02 --> PoaB (~Thunderbi@134.3.91.178) has joined #python 2021-05-16 07:39:43 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-16 07:39:45 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-16 07:40:01 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 252 seconds) 2021-05-16 07:40:58 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-16 07:41:12 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-16 07:43:58 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 07:44:31 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 07:44:42 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-16 07:45:55 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-16 07:46:09 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 07:46:10 --> pyre (~pyre@crimeboss.nillas-power.com) has joined #python 2021-05-16 07:46:11 <-- dbax (~dbax@61.5.193.1) has quit (Ping timeout: 240 seconds) 2021-05-16 07:51:01 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 252 seconds) 2021-05-16 07:52:16 <-- gitesh (uid423739@gateway/web/irccloud.com/x-scsfmaujxxmpjdbt) has quit (Quit: Connection closed for inactivity) 2021-05-16 07:53:52 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 07:56:08 --> gmaggior (~gmaggior_@host-79-47-177-110.retail.telecomitalia.it) has joined #python 2021-05-16 07:56:33 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 07:56:53 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 07:57:23 <-- vaq (43f73f69@vaq/unaffiliated) has quit (Quit: Connection closed) 2021-05-16 07:58:28 <-- YuGiOhJCJ (~YuGiOhJCJ@gateway/tor-sasl/yugiohjcj) has quit (Quit: YuGiOhJCJ) 2021-05-16 07:58:36 --> aslicedbanjo (~aslicedba@host86-150-115-145.range86-150.btcentralplus.com) has joined #python 2021-05-16 07:58:56 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 07:59:09 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 260 seconds) 2021-05-16 07:59:43 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-16 08:00:19 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-16 08:00:42 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-16 08:02:40 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 08:02:40 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 08:03:45 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 08:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-16 08:06:40 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-16 08:07:03 <-- kpiyushlucky (6ee15494@110.225.84.148) has quit (Ping timeout: 240 seconds) 2021-05-16 08:10:32 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-16 08:11:39 --> securethemews (~securethe@2a00:23c4:1e98:8f00::4) has joined #python 2021-05-16 08:12:31 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Quit: ayustae) 2021-05-16 08:12:40 nedbat rond_: the costs you are talking about are microscopic, and the least reason for choosing or avoiding inner functions. 2021-05-16 08:16:25 redsh If it makes sense to have an inner function, like for a closure, go for it. If it doesn't, then it might be cleaner to not do it. 2021-05-16 08:19:32 <-- __marco (~marco@195.218.6.205) has quit (Ping timeout: 240 seconds) 2021-05-16 08:20:20 --> subho (~subho@fedora/subho) has joined #python 2021-05-16 08:21:26 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-16 08:24:13 amo i've used closures for "precomputing" stuff, works quite well 2021-05-16 08:26:15 amo if you have some heavy maths, you can factor out some things you need repeatedly, put it in the outer function so it's only calculated once 2021-05-16 08:26:49 amo return the inner function and reuse the precalculated values 2021-05-16 08:26:52 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-16 08:28:11 amo all wrapped up in a local namespace it's also cleaner than to have everything global 2021-05-16 08:28:19 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-16 08:28:41 --> guriya (a0ee4bc4@unaffiliated/guriya) has joined #python 2021-05-16 08:29:27 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 08:29:34 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-16 08:32:58 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 08:33:16 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 08:37:37 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 260 seconds) 2021-05-16 08:37:38 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-16 08:38:25 --> Catatronic (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-16 08:40:39 <-- Jerrynicki (~niklas@p200300f577304d0051106ef1f4d22600.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-16 08:41:03 rond_ thank you all! 2021-05-16 08:41:07 <-- rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has quit (Quit: Connection closed) 2021-05-16 08:45:49 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-16 08:47:56 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 08:48:01 <-- falkjet (~falkjet@ti0051a400-2175.bb.online.no) has quit (Ping timeout: 252 seconds) 2021-05-16 08:48:15 --> Lord_of_Life_ (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-16 08:49:12 --> Core3125 (~greyblue9@2600:381:4207:24df:631c:2f4b:cb07:29b) has joined #python 2021-05-16 08:49:52 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 240 seconds) 2021-05-16 08:50:08 graingert I'd love to see autocurrying syntax: `def foo(bar)(baz):` 2021-05-16 08:50:17 ChrisWarrick graingert: /join #scala 2021-05-16 08:50:26 graingert no u 2021-05-16 08:51:01 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-16 08:51:01 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 08:51:18 -- Lord_of_Life_ is now known as Lord_of_Life 2021-05-16 08:51:26 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-16 08:51:58 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Client Quit) 2021-05-16 08:52:01 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 08:54:02 stormbytes how do 'package' a python app? eg. in NodeJS all dependencies are contained in node_modules/ so if you invoke the app's entry piont (eg. app.js) it just works. With python, I've been developing with virtualenv. How does that work for deploying say a CLI ? 2021-05-16 08:54:13 --> alexgr (~alexgr@unaffiliated/alexgr) has joined #python 2021-05-16 08:54:17 <-- alexgr (~alexgr@unaffiliated/alexgr) has quit (Client Quit) 2021-05-16 08:54:23 --> falkjet (~falkjet@ti0051a400-2175.bb.online.no) has joined #python 2021-05-16 08:54:55 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-16 08:55:38 tsujp `[randint(0, 3) for p in range(0, 9)]` generates 3 random integers between 0 and 9, how can I enforce that each of the 3 integers it generates be unique? 2021-05-16 08:55:46 --> menace (~deknos@unaffiliated/menace) has joined #python 2021-05-16 08:55:48 tsujp i.e. `[1, 1, 3]` should be impossible for instance 2021-05-16 08:55:53 graingert stormbytes: https://chriswarrick.com/blog/2014/09/15/python-apps-the-right-way-entry_points-and-scripts/ 2021-05-16 08:55:57 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-16 08:55:59 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-16 08:56:21 graingert stormbytes: you can make a dist and upload it to pypi.org so that `pipx run your-dist-name` will execute your console script 2021-05-16 08:56:27 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Ping timeout: 252 seconds) 2021-05-16 08:56:38 ChrisWarrick stormbytes: (are JS apps really happy with running `node node_modules/whatever/app.js`?) 2021-05-16 08:56:41 <-- Deknos (~deknos@unaffiliated/menace) has quit (Ping timeout: 250 seconds) 2021-05-16 08:56:43 graingert tsujp: sample? 2021-05-16 08:56:54 tsujp graingert huh? 2021-05-16 08:57:15 --> s8548a_ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-16 08:57:26 stormbytes graingert i'm not being clear here. I'm developing the app with virtualenv (and all deps are stored there). Now that the app is already developed, I want to be able to RUN the app locally without having to use virtualenv 2021-05-16 08:57:29 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Ping timeout: 245 seconds) 2021-05-16 08:57:50 graingert stormbytes: like a shiv or zipapp? 2021-05-16 08:57:53 stormbytes in my case i'm developing a cli app 2021-05-16 08:57:55 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 252 seconds) 2021-05-16 08:57:59 <-- Core3125 (~greyblue9@2600:381:4207:24df:631c:2f4b:cb07:29b) has quit (Ping timeout: 250 seconds) 2021-05-16 08:58:07 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-16 08:58:17 <-- menace (~deknos@unaffiliated/menace) has quit (Remote host closed the connection) 2021-05-16 08:58:21 graingert tsujp: random.sample(range(0, 9), k=3) 2021-05-16 08:58:22 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 08:58:31 tsujp cheers graingert 2021-05-16 08:58:49 --> PantelicGR (~PantelicG@unaffiliated/pantelicgr) has joined #python 2021-05-16 08:58:49 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-16 08:59:05 tsujp I have on more question, I have a list of objects and each object has a property `id` how can I return all the ids in a list? 2021-05-16 08:59:05 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 08:59:08 graingert although it's a bit slow as it makes the range a list 2021-05-16 08:59:24 graingert tsujp: [v.id for v in vs] 2021-05-16 08:59:24 tsujp property `idd`* 2021-05-16 08:59:26 stormbytes Lets say I write a script that relies on the 'requests' module. The script is run from the command line using ./myscript.py. Is there some way to package dependencies (requests module, in this case) so that I can run my script without getting an error (and without running virtualenv) 2021-05-16 08:59:32 graingert tsujp: [v.idd for v in vs] 2021-05-16 08:59:32 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 240 seconds) 2021-05-16 08:59:49 graingert stormbytes: zipapp 2021-05-16 08:59:51 tsujp thank you again graingert 2021-05-16 08:59:56 --> pulsar12_ (~quassel@a95-92-60-61.cpe.netcabo.pt) has joined #python 2021-05-16 09:00:01 graingert stormbytes: https://docs.python.org/3/library/zipapp.html 2021-05-16 09:01:21 <-- pulsar12_ (~quassel@a95-92-60-61.cpe.netcabo.pt) has quit (Client Quit) 2021-05-16 09:01:23 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-16 09:01:24 <-- Brocker (~Web@vmi552115.contaboserver.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 09:01:26 graingert stormbytes: https://gist.github.com/lukassup/cf289fdd39124d5394513a169206631c 2021-05-16 09:01:38 stormbytes Looking at zipapp, ty 2021-05-16 09:01:54 nedbat graingert: does that manage the third-party dependencies? 2021-05-16 09:02:10 graingert nedbat: manage? 2021-05-16 09:02:13 stormbytes what i need is a way to package my app as a standalone app 2021-05-16 09:02:17 graingert as in takes the deps and puts them in a place 2021-05-16 09:02:28 --> pulsar12_ (~quassel@a95-92-60-61.cpe.netcabo.pt) has joined #python 2021-05-16 09:02:40 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 09:03:26 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 265 seconds) 2021-05-16 09:03:26 nedbat i see, the gist shows including your venv in the zip file. 2021-05-16 09:03:37 nedbat stormbytes: is this for you to run it, or for other people to run it? 2021-05-16 09:04:04 stormbytes nedbat in this case just me, but i don't see why that should matter 2021-05-16 09:04:04 --> katana (~katana@unaffiliated/katana) has joined #python 2021-05-16 09:04:33 nedbat stormbytes: well, it would matter if the other person might not have Python installed, or might not want to know it's a Python program. 2021-05-16 09:04:34 --> Harlin (~Harlin@2603:300b:663:e800:df1f:5064:3021:7fa0) has joined #python 2021-05-16 09:04:49 stormbytes nedbat oh i c 2021-05-16 09:05:04 graingert it doesn't actually use a virtualenv, there's a step where one is created and it's then ignored for the rest of the tutorial 2021-05-16 09:05:06 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-16 09:05:09 graingert it actually uses `pip install -t . -r requirements.txt` 2021-05-16 09:05:16 stormbytes nedbat from what I'm getting, it should simply be about installing app dependencies locally 2021-05-16 09:05:40 stormbytes graingert what's -t ? 2021-05-16 09:05:53 graingert to install to a directory that's not a virtual environment 2021-05-16 09:06:28 graingert https://www.irccloud.com/pastebin/0x7BH5K9/pip.man 2021-05-16 09:06:39 <-- ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-16 09:06:42 stormbytes ah 2021-05-16 09:06:55 --> SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has joined #python 2021-05-16 09:07:01 nedbat graingert: i haven't seen this before. What in this gist puts "app" into the sys.path? 2021-05-16 09:07:02 --> ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has joined #python 2021-05-16 09:08:27 --> noboruma (~noboruma@host-92-12-47-208.as13285.net) has joined #python 2021-05-16 09:08:30 nedbat graingert: i think maybe the file layout shown in the gist is a little wrong? There's a step of copying flaskr into app, but it's not in the directory picture later on. 2021-05-16 09:09:21 graingert nedbat: the zipapp machinary puts the .zip on the path 2021-05-16 09:09:46 graingert nedbat: it's here https://gist.github.com/lukassup/cf289fdd39124d5394513a169206631c#cleanup 2021-05-16 09:09:58 graingert and you can install it here: pip install -t . ../flaskr 2021-05-16 09:09:59 stormbytes once you install requirements locally (pip install -t . -r requirements.txt) the app size explodes 2021-05-16 09:10:10 graingert you want the deps in there or not lol 2021-05-16 09:10:20 --> sandra_96 (~sandra_96@c-cbc2524e.05-114-6d6c6d5.bbcust.telenor.se) has joined #python 2021-05-16 09:10:38 nedbat graingert: right, but that pip install step should put flaskr into the app directory, right? The picture in #cleanup doesn't show that. 2021-05-16 09:10:49 <-- blyat-73 (~user@79.101.60.163) has quit (Quit: Leaving) 2021-05-16 09:10:51 nedbat stormbytes: how many requirements do you have? 2021-05-16 09:11:01 stormbytes graingert Well yeah, but what's the point of the virtualenv then? Same exact thing could be accomplished the way node does it. The node_modules folder (which can be huge) is never distributed. 2021-05-16 09:11:14 graingert nedbat: oh you're right 2021-05-16 09:11:25 <-- ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-16 09:11:40 graingert stormbytes: so you can have multiple different versions of the same dist on the same machine 2021-05-16 09:11:49 nedbat stormbytes: then people using your code have to re-install the dependencies, yes? 2021-05-16 09:11:52 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 268 seconds) 2021-05-16 09:11:52 stormbytes nedbat I'm just sandboxing this right not many. Do all the import statements need to change to point to the local deps now? My app's not working anymore. 2021-05-16 09:11:57 graingert and so you can install packages without interfering with the OS python 2021-05-16 09:12:14 stormbytes nedbat: yep 2021-05-16 09:12:15 graingert stormbytes: no it should just work with the zipapp - what errors are you getting? 2021-05-16 09:12:37 stormbytes grainbert I haven't used zipapp, just that pip command you pasted 2021-05-16 09:12:44 nedbat stormbytes: ok, in Python the way to do that is to write a setup.cfg or setup.py and name your dependencies, and then people using your program install it with pip, which also installs the dependencies. 2021-05-16 09:13:15 nedbat stormbytes: graingert's gist shows a way to do things that is different than how npm typically does it. 2021-05-16 09:13:20 stormbytes nedbat... this is gonna be a steep learning curve 2021-05-16 09:13:28 graingert stormbytes: it's not really clear what you want? 2021-05-16 09:13:34 nedbat stormbytes: i recommend slowing down and clarifying your goals. 2021-05-16 09:13:36 --> abraxxas (~abraxxas@p5b0d9d2f.dip0.t-ipconnect.de) has joined #python 2021-05-16 09:13:42 graingert you wanted a way to distribute your app in a standalone way without using virtualenv? 2021-05-16 09:13:44 <-- abraxxas (~abraxxas@p5b0d9d2f.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-16 09:13:48 nedbat stormbytes: that's going to involve learning about how Python does things, that might be different than you expect. 2021-05-16 09:14:07 stormbytes nedbat no questions there 2021-05-16 09:14:20 nedbat stormbytes: sorry, no questions about what? 2021-05-16 09:14:31 redsh I'd expect just making something that sets up a virtualenv behind the scenes to be easier. 2021-05-16 09:14:38 stormbytes nedbat about needing to learn how python does things 2021-05-16 09:14:52 nedbat stormbytes: meaning, you are fully clear on how it works, or? 2021-05-16 09:15:04 --> ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has joined #python 2021-05-16 09:15:06 nedbat stormbytes: or you agree that we need to talk about how Python works? 2021-05-16 09:15:09 stormbytes grainbert I'm sandboxing an python script. I want to run it using ./myscript.py without having an active env 2021-05-16 09:15:42 graingert well you can't 2021-05-16 09:15:52 graingert what do you mean by sandbox? 2021-05-16 09:15:55 stormbytes nedbat: I'm starting out with python so not clear on anything at this point. It will take some time. 2021-05-16 09:16:12 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-16 09:16:22 stormbytes grainbert : "sandbox" means to 'whip something up, quick and dirty like" just to see it working 2021-05-16 09:16:33 graingert a zipapp is a kind of weak "sandbox", that's similar to a virtual environment which is another type of weak "sandbox" 2021-05-16 09:16:43 graingert oh to me sandbox is a type of isolation 2021-05-16 09:17:01 --> HannaM (~quassel@p54849510.dip0.t-ipconnect.de) has joined #python 2021-05-16 09:17:09 stormbytes grainbert we're talking 'hello world' here 2021-05-16 09:17:11 graingert you can just put the path of your virtual environment in your #! 2021-05-16 09:17:23 stormbytes ohhh 2021-05-16 09:17:27 stormbytes lol that's it?? 2021-05-16 09:17:40 graingert eg you can add #!/home/graingert/.virtualenvs/testing39/bin/python3 2021-05-16 09:17:50 stormbytes gonna try that 2021-05-16 09:17:53 graingert or wherever your python is 2021-05-16 09:18:08 graingert it won't work for other people because they'll have virtual environments in different locations 2021-05-16 09:18:24 graingert for my own use I'd use https://chriswarrick.com/blog/2014/09/15/python-apps-the-right-way-entry_points-and-scripts/ 2021-05-16 09:18:28 graingert the script I sent you 2021-05-16 09:18:52 graingert stormbytes: when you said "without virtualenv" I assumed you meant *conceptually* without virtualenv 2021-05-16 09:19:15 graingert the blog post I sent you* 2021-05-16 09:19:16 stormbytes grainbert I looked at that. Will have to revisit when I have more knowledge of python. It's a little confusing 2021-05-16 09:19:27 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 09:19:37 stormbytes grainbert You don't know how to be dumb :) 2021-05-16 09:19:59 stormbytes i'm really good at that sort of thing lol 2021-05-16 09:20:39 stormbytes can a shebang be a relative path? 2021-05-16 09:20:39 <-- Foxyloxy (~Foxyloxy@cpc151593-shef16-2-0-cust671.17-1.cable.virginm.net) has quit (Quit: This computer has gone to sleep) 2021-05-16 09:21:01 graingert I'm pretty sure you can't 2021-05-16 09:21:15 stormbytes k 2021-05-16 09:21:32 graingert maybe a poetry console script would be simpler? 2021-05-16 09:21:46 <-- guriya (a0ee4bc4@unaffiliated/guriya) has quit (Quit: Connection closed) 2021-05-16 09:21:51 --> otisolsen70 (~otisolsen@xd4ed80b5.cust.hiper.dk) has joined #python 2021-05-16 09:22:02 graingert https://python-poetry.org/docs/pyproject/#scripts 2021-05-16 09:22:04 stormbytes what happens if you have 2 shebang lines in a single file? 2021-05-16 09:22:37 graingert stormbytes: try it. The second one is just a comment 2021-05-16 09:22:45 stormbytes perfect! 2021-05-16 09:23:32 nedbat stormbytes: i'm curious why you want to avoid a virtualenv for quick and dirty work? 2021-05-16 09:23:51 nedbat stormbytes: i have one virtualenv which is just a garbage dump of random things I'm trying 2021-05-16 09:24:05 --> ralof (~ralof@dynamic-077-007-049-147.77.7.pool.telefonica.de) has joined #python 2021-05-16 09:24:26 stormbytes nedbat: i use virtualenv for development but i don't want to have to activate that every time just to run the script 2021-05-16 09:25:10 nedbat stormbytes: if you don't mind me asking, why did you ask about 2 shebangs? 2021-05-16 09:25:20 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-16 09:25:35 graingert ok that poetry entry is super confusing https://github.com/python-poetry/poetry/pull/4071/files 2021-05-16 09:25:47 stormbytes nedbat: well, because I wanted to keep the regular #! line for future reference 2021-05-16 09:26:15 graingert stormbytes: you don't just have `#!/usr/bin/env python3` living in your head rent free? 2021-05-16 09:26:30 stormbytes grainbert believe it or not! 2021-05-16 09:27:01 graingert btw you can tab complete nicks in IRC 2021-05-16 09:27:15 graingert eg type: grai[tab] 2021-05-16 09:28:22 --> rsx (~rsx@ppp-188-174-146-133.dynamic.mnet-online.de) has joined #python 2021-05-16 09:28:48 stormbytes Here's what I'm doing 2021-05-16 09:28:48 stormbytes https://bpa.st/E7JA 2021-05-16 09:28:56 stormbytes does not work without the virtualenv activated 2021-05-16 09:28:56 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 09:29:40 <-- NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Read error: Connection reset by peer) 2021-05-16 09:30:15 stormbytes I don't mind installing all my deps for all my projects into the global space if need be. Its just me using it. But its so inelegant 2021-05-16 09:30:49 nedbat stormbytes: you can use one virtualenv for that, instead of the global space. 2021-05-16 09:31:06 --> NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-16 09:31:12 stormbytes nedbat so then what? activate it from .zshrc? 2021-05-16 09:31:14 nedbat stormbytes: or you can use "pip install --user" if you like 2021-05-16 09:31:22 nedbat stormbytes: yes, you could activate it from .zshrc 2021-05-16 09:32:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 09:32:19 stormbytes i suppose i can do that 2021-05-16 09:33:42 stormbytes nedbat : why didn't grainbert's way work? 2021-05-16 09:33:45 --> lmt (uid107697@gateway/web/irccloud.com/x-vlipjjksrkafnnza) has joined #python 2021-05-16 09:34:01 stormbytes passing the virtualenv/python in the shebang 2021-05-16 09:34:12 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-16 09:34:51 stormbytes nedbat: nevermind... typo 2021-05-16 09:35:19 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 252 seconds) 2021-05-16 09:37:32 stormbytes grainbert fyi: relative paths work in #! lines (eg. #!env/bin/python3) 2021-05-16 09:37:49 stormbytes graingert fyi: relative paths work in #! lines (eg. #!env/bin/python3) 2021-05-16 09:38:13 stormbytes which solves my problem 2021-05-16 09:41:44 <-- esselfe (~steph@unaffiliated/esselfe) has quit (Quit: brb) 2021-05-16 09:43:05 --> urodna (~urodna@unaffiliated/urodna) has joined #python 2021-05-16 09:44:13 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-16 09:44:26 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 09:44:38 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-16 09:46:02 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-16 09:46:32 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-16 09:47:02 <-- cxl (~hey_its_m@unaffiliated/cxl) has quit (Quit: bye) 2021-05-16 09:47:15 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 09:47:18 --> cation21- (cation21@gateway/vpn/protonvpn/cation21) has joined #python 2021-05-16 09:47:48 --> cxl (~hey_its_m@unaffiliated/cxl) has joined #python 2021-05-16 09:47:49 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-16 09:48:53 <-- cation21 (cation21@gateway/vpn/protonvpn/cation21) has quit (Ping timeout: 252 seconds) 2021-05-16 09:49:18 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-16 09:49:52 --> Jerrynicki (~niklas@p200300f577304d004533f88d865abdb3.dip0.t-ipconnect.de) has joined #python 2021-05-16 09:49:53 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-16 09:50:15 astronavt stormbytes: i think that might be platform dependent. iirc ive had problems with doing that in the past 2021-05-16 09:50:40 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 09:50:43 stormbytes astronavt ah. works on a mac 2021-05-16 09:51:03 -- cation21- is now known as cation21 2021-05-16 09:51:15 --> Brocker (~Web@vmi552115.contaboserver.net) has joined #python 2021-05-16 09:51:37 --> Quasar_Wolf (~IceChat95@adsl-178-38-208-123.adslplus.ch) has joined #python 2021-05-16 09:51:41 --> Vornicus (~Vornicus@2603-8000-5d07-7ef0-316b-add4-c961-a02b.res6.spectrum.com) has joined #python 2021-05-16 09:51:48 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Client Quit) 2021-05-16 09:52:04 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-16 09:52:38 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 09:52:42 <-- rsx (~rsx@ppp-188-174-146-133.dynamic.mnet-online.de) has quit (Quit: rsx) 2021-05-16 09:53:05 astronavt stormbytes: apparently it at least works on all unixes https://unix.stackexchange.com/a/77584/73256. so if you always know the current directory of the process invoking the script, then i guess it's safe. 2021-05-16 09:53:12 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-16 09:53:40 stormbytes astronavt i don't plan on distributing this app 2021-05-16 09:53:52 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-16 09:54:01 <-- sphrak (~niclas@178.255.113.33) has quit (Ping timeout: 252 seconds) 2021-05-16 09:54:27 astronavt right, that's a pretty neat trick. put `#!venv/bin/python` at the top of your scripts. 2021-05-16 09:54:39 stormbytes yep 2021-05-16 09:54:45 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 252 seconds) 2021-05-16 09:54:45 stormbytes No need to activate any envs 2021-05-16 09:54:46 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 09:54:46 <-- PoaB (~Thunderbi@134.3.91.178) has quit (Quit: PoaB) 2021-05-16 09:55:03 stormbytes and all deps are already there 2021-05-16 09:56:02 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-16 09:56:25 <-- Quasar_Wolf (~IceChat95@adsl-178-38-208-123.adslplus.ch) has quit (Ping timeout: 252 seconds) 2021-05-16 09:57:02 nedbat stormbytes: you are always in the same directory when running this program? 2021-05-16 09:57:10 <-- zrhoffman (~zrhoffman@5.2.89.83) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 09:57:43 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-16 09:59:00 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 09:59:59 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 245 seconds) 2021-05-16 10:00:23 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Remote host closed the connection) 2021-05-16 10:00:33 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-16 10:01:18 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 10:01:33 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Client Quit) 2021-05-16 10:01:55 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 10:02:24 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 10:04:40 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-16 10:05:20 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-16 10:05:21 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 10:06:39 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-16 10:07:34 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-16 10:07:55 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-16 10:08:43 --> zrhoffman (~zrhoffman@5.2.89.83) has joined #python 2021-05-16 10:08:51 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:fb4d:5a47:92ec:2ac2) has quit (Ping timeout: 260 seconds) 2021-05-16 10:09:19 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-16 10:11:02 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-16 10:11:03 <-- bolovanos (~bolovanos@unaffiliated/bolovanos) has quit (Read error: Connection reset by peer) 2021-05-16 10:13:01 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-16 10:13:39 --> Deknos (~deknos@unaffiliated/menace) has joined #python 2021-05-16 10:14:04 --> Lycurgus (~niemand@cpe-45-46-140-49.buffalo.res.rr.com) has joined #python 2021-05-16 10:14:14 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-16 10:15:01 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 10:17:16 --> vamiry (~vamiry@145.37-191-143.fiber.lynet.no) has joined #python 2021-05-16 10:17:29 <-- Death916 (UserNick@unaffiliated/death916) has quit (Ping timeout: 252 seconds) 2021-05-16 10:17:55 astronavt nedbat: that's a typical assumption in a lot of "server-side" dev setups that i've seen 2021-05-16 10:18:00 astronavt (and i often rely on it myself) 2021-05-16 10:18:50 <-- gmaggior (~gmaggior_@host-79-47-177-110.retail.telecomitalia.it) has quit (Quit: Leaving) 2021-05-16 10:19:09 --> gmaggior (~gmaggior_@host-79-47-177-110.retail.telecomitalia.it) has joined #python 2021-05-16 10:19:11 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Client Quit) 2021-05-16 10:19:29 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-16 10:19:43 nedbat astronavt: i'm still trying to understand stormbytes' needs 2021-05-16 10:20:00 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 10:21:08 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-16 10:21:20 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-16 10:22:17 <-- thoros (~thoros@193-154-185-59.adsl.highway.telekom.at) has quit (Quit: WeeChat 3.0.1) 2021-05-16 10:23:19 <-- ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-16 10:23:40 --> ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has joined #python 2021-05-16 10:25:02 --> esselfe (~steph@unaffiliated/esselfe) has joined #python 2021-05-16 10:26:38 --> Sheilong (uid293653@gateway/web/irccloud.com/x-azmheisgydotdkpn) has joined #python 2021-05-16 10:26:39 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Ping timeout: 245 seconds) 2021-05-16 10:27:54 <-- ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-16 10:27:59 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-16 10:28:49 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 10:28:54 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 10:29:55 <-- ska (~ska@unaffiliated/ska) has quit (Quit: Leaving) 2021-05-16 10:30:08 stormbytes nedbat : nope, scripts are symlinked to /path/dir 2021-05-16 10:30:16 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-16 10:30:41 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-16 10:30:51 nedbat stormbytes: are you interested in learning more Python-native ways to solve these problems? 2021-05-16 10:30:57 nedbat stormbytes: this is feeling very ad-hoc 2021-05-16 10:31:00 --> PoaB (~Thunderbi@134.3.91.178) has joined #python 2021-05-16 10:31:05 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Remote host closed the connection) 2021-05-16 10:31:12 stormbytes nedbat : what's ad-hoc about it? 2021-05-16 10:32:13 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 10:32:49 stormbytes nedbat: (among other things) I write my own CLI apps. The apps are self-contained. The entry points are executable and symlinked to a folder in the path so they are accessible for anywhere in the file system. 2021-05-16 10:33:22 nedbat stormbytes: for example, if you wanted to share these with other people, it would require specialized directions from you. 2021-05-16 10:33:53 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-16 10:34:24 nedbat stormbytes: and your questions over the last few days have to trying to get things to work with Python. That might be easier in the long run if you use more typical mechanisms. 2021-05-16 10:34:26 stormbytes nedbat: I'm not building these to share with anyone 2021-05-16 10:34:33 <-- sandra_96 (~sandra_96@c-cbc2524e.05-114-6d6c6d5.bbcust.telenor.se) has quit (Quit: Leaving) 2021-05-16 10:35:14 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-16 10:35:31 stormbytes nedbat: I hope to stick with python and to learn the quirks and adapt. 2021-05-16 10:35:46 nedbat stormbytes: adapt meaning use more typical mechanisms? 2021-05-16 10:35:50 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-16 10:35:53 stormbytes nedbat : generally speaking, i'm a prototyper 2021-05-16 10:36:04 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 10:36:14 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-16 10:36:16 --> ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has joined #python 2021-05-16 10:36:30 stormbytes nedbat: yes, adapt = contemplate doing what I need in some python conventional way 2021-05-16 10:37:05 nedbat stormbytes: why not start now? :) 2021-05-16 10:37:09 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-16 10:38:18 --> led1 (~Thunderbi@217.66.160.14) has joined #python 2021-05-16 10:38:51 <-- led1 (~Thunderbi@217.66.160.14) has quit (Client Quit) 2021-05-16 10:38:51 stormbytes nedbat: Well, its not like there's any real starting point. It's learned empirically. I learn what I need. I've no intention of ever being a conventional programmer or working at such a job. 2021-05-16 10:39:01 --> duoi (~duoi@python-zero/core/duoi) has joined #python 2021-05-16 10:39:04 --> lucascastro (~lucascast@177-185-133-236.dynamic.isotelco.net.br) has joined #python 2021-05-16 10:39:17 <-- veek (~veek@unaffiliated/veek) has quit (Ping timeout: 246 seconds) 2021-05-16 10:39:27 stormbytes nedbat: that said, I still intend to acquire some conventional baseline understanding of python by following a course/reading a book 2021-05-16 10:39:44 Yhg1s stormbytes: it's not really about being conventional or doing what companies expect, it's about doing things in ways that the standard tooling expects, so you don't have to fight them :) 2021-05-16 10:39:46 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 240 seconds) 2021-05-16 10:40:11 --> greedom (~greedom@2001:16b8:2e70:bb00:d0c0:b7fc:773:ba6f) has joined #python 2021-05-16 10:40:48 stormbytes Yhg1s that's a valid point. I've no intention of swimming against the current. That would be silly. With CLI's my approach works fine for what I need. 2021-05-16 10:41:47 --> s8548a__ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-16 10:42:14 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-16 10:42:54 <-- s8548a_ (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 245 seconds) 2021-05-16 10:43:02 <-- s8548a__ (~s8548a@unaffiliated/s8548a) has quit (Max SendQ exceeded) 2021-05-16 10:43:07 <-- zeft (~zeft@128.199.135.148) has quit (Ping timeout: 268 seconds) 2021-05-16 10:43:08 <-- d_olex (~d_olex@159.65.12.243) has quit (Ping timeout: 268 seconds) 2021-05-16 10:43:40 --> s8548a__ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-16 10:43:43 <-- tsujp (a32f386b@163.47.56.107) has quit (Ping timeout: 240 seconds) 2021-05-16 10:43:44 --> zeft (~zeft@128.199.135.148) has joined #python 2021-05-16 10:44:25 --> lnxd9 (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-16 10:44:25 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-16 10:44:51 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 10:44:53 --> blyat-73 (~user@79.101.60.163) has joined #python 2021-05-16 10:44:54 <-- s8548a__ (~s8548a@unaffiliated/s8548a) has quit (Max SendQ exceeded) 2021-05-16 10:45:01 <-- creat (~creat@unaffiliated/creat) has quit (Ping timeout: 250 seconds) 2021-05-16 10:45:10 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 10:45:22 <-- vamiry (~vamiry@145.37-191-143.fiber.lynet.no) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-16 10:45:24 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Ping timeout: 245 seconds) 2021-05-16 10:45:24 -- lnxd9 is now known as lnxd 2021-05-16 10:45:26 --> s8548a__ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-16 10:45:53 --> eamanu (sid462779@gateway/web/irccloud.com/x-ptatkrrcukvflsrc) has joined #python 2021-05-16 10:46:11 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Ping timeout: 240 seconds) 2021-05-16 10:46:58 <-- Lycurgus (~niemand@cpe-45-46-140-49.buffalo.res.rr.com) has quit (Quit: Exeunt) 2021-05-16 10:47:33 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 252 seconds) 2021-05-16 10:48:59 --> vladoski (~vladoski@2001:b07:add:d406:a81d:de32:8d10:4426) has joined #python 2021-05-16 10:49:13 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-16 10:49:53 --> kopper (~mrbabar@unaffiliated/kopper) has joined #python 2021-05-16 10:49:53 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-16 10:51:42 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Ping timeout: 240 seconds) 2021-05-16 10:51:58 <-- philr (~phil@118.211.93.148) has quit (Ping timeout: 252 seconds) 2021-05-16 10:52:12 <-- radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-16 10:52:26 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-16 10:53:06 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-16 10:53:26 --> radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has joined #python 2021-05-16 10:53:51 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 10:54:41 <-- vladoski (~vladoski@2001:b07:add:d406:a81d:de32:8d10:4426) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-16 10:55:36 --> creat (~creat@unaffiliated/creat) has joined #python 2021-05-16 10:56:36 <-- vdamewood (~vdamewood@unaffiliated/vdamewood) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-16 10:57:04 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Client Quit) 2021-05-16 10:57:30 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Ping timeout: 246 seconds) 2021-05-16 10:58:26 <-- leduyquang753 (~leduyquan@27.73.107.184) has quit (Quit: leaving) 2021-05-16 10:58:58 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 10:59:02 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-16 10:59:07 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 10:59:13 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-16 10:59:41 flux__aeon def get_floor(room_number: int) -> int: this is the first time i've see a python function defined like this. is this a new feature? 2021-05-16 11:00:33 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-16 11:00:42 --> purplex88 (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-16 11:00:57 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-16 11:01:12 bjs flux__aeon: the syntax has existed for a while (since Python 3). It's just for documentation, and Python itself ignores it like it does comments and other documentation 2021-05-16 11:01:25 bjs flux__aeon: however recently they've become more popular with some tools (like mypy and pytype) that can read and use them. 2021-05-16 11:01:36 flux__aeon what's the formatting called? i'd like to read more about it 2021-05-16 11:01:44 bjs flux__aeon: type annotations, or type hinting 2021-05-16 11:01:49 flux__aeon awesome thank you 2021-05-16 11:02:06 nedbat flux__aeon: tl;dr: the annotations don't restrict anything at run-time. Use a typechecker like mypy to check them. 2021-05-16 11:02:23 bjs flux__aeon: the syntax for `def` is found at https://docs.python.org/3/reference/compound_stmts.html#function-definitions, it should talk about them and have some links to more details. 2021-05-16 11:02:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 11:02:50 bjs flux__aeon: (see the part starting "Parameters may have an annotation of the form ...") 2021-05-16 11:02:52 nedbat off-topic: is this draft blog post clear? https://nedbatchelder.com/blog/202105/cherrypicking_a_pull_request.html 2021-05-16 11:03:17 bjs nedbat: tut tut using #python to get feedback on something offtopic 2021-05-16 11:03:20 bjs you should be ashamed 2021-05-16 11:03:32 * nedbat is ashamed, and also hoping there is feedback :) 2021-05-16 11:03:51 nedbat I promise to never do it again until next time! 2021-05-16 11:04:04 --> __marco (~marco@195.218.6.205) has joined #python 2021-05-16 11:04:29 bjs nedbat: you say the feature branch starts from A but the arrows go from B, is that just a confusing way to express it 2021-05-16 11:04:32 bjs or am I missing something 2021-05-16 11:04:45 --> baltazar (~baltazar@91-82-31-223.pool.digikabel.hu) has joined #python 2021-05-16 11:04:47 nedbat bjs: yes, you missed that I changed the diagram without updating the text! Thanks :) 2021-05-16 11:05:58 flux__aeon in this: def headline(text: str, align: bool = True) -> str: is it saying that it should return a string? 2021-05-16 11:06:06 nedbat flux__aeon: yes 2021-05-16 11:06:09 flux__aeon awesome 2021-05-16 11:06:13 supakeen I am confused by the term pull request, I assume you mean 'branch'. 2021-05-16 11:06:22 flux__aeon but what if the return var could be a string or int or anything.. do you just not hint it? 2021-05-16 11:06:35 nedbat flux__aeon: you could hint it as "-> Any" 2021-05-16 11:06:41 flux__aeon :-) amazingggg 2021-05-16 11:06:44 flux__aeon thank you! i love this 2021-05-16 11:07:20 --> parabolize (~paraboliz@98.43.173.221) has joined #python 2021-05-16 11:07:22 bjs flux__aeon: note "-> object" might be a better annotation. There's subtlety here when it comes to annotating things. 2021-05-16 11:07:27 --> foo (~foo@unaffiliated/foo) has joined #python 2021-05-16 11:07:31 flux__aeon makes sense 2021-05-16 11:07:33 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 11:07:34 flux__aeon https://realpython.com/lessons/annotations/ 2021-05-16 11:07:36 nedbat supakeen: i see what you mean 2021-05-16 11:07:43 flux__aeon the very first example is exactly what i wanted 2021-05-16 11:08:01 foo The python shell started throwing "SyntaxError: multiple statements found while compiling a single statement"... whereas before when I pasted into the python shell, it would separate them into different statements. Anyone happen to know if this is an iTerm setting in OS X I changed or such? Not sure if the python shell changed or something in iTerm 2021-05-16 11:08:10 supakeen nedbat: From the title I thought this was going to be about how to cherry pick from the web interface of one-of-the-git-hosters. 2021-05-16 11:08:20 flux__aeon foo: might be line breaks / paste as tabs or spaces setting 2021-05-16 11:08:25 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Quit: reboot) 2021-05-16 11:08:31 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 11:08:32 bjs nedbat: so the premise is you have a pull request that fixes something that you want to merge into the release branch _as well as_ the main branch? 2021-05-16 11:08:33 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-16 11:08:37 nedbat supakeen: i'll have to think about how to make that clearer. In our case, our work is in GitHub pull requests 2021-05-16 11:08:52 nedbat bjs: it's already been merged to the main branch, but yes 2021-05-16 11:09:08 foo flux__aeon: thanks, I wonder where/how that's set 2021-05-16 11:09:21 <-- PoaB (~Thunderbi@134.3.91.178) has quit (Quit: PoaB) 2021-05-16 11:09:25 bjs nedbat: oh so you want to go back and say "merge PR #37 into release, but only that one and not all the stuff that was on main before it" 2021-05-16 11:09:40 flux__aeon paste it into cpy.pt and we can look 2021-05-16 11:09:46 nedbat bjs: right, which is why we use cherry-picking 2021-05-16 11:09:48 <-- honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-16 11:09:49 flux__aeon what editor do you use 2021-05-16 11:09:59 bjs nedbat: and why you can't merge 2021-05-16 11:10:03 nedbat bjs: right 2021-05-16 11:10:21 nedbat bjs, supakeen: this is very helpful, thanks 2021-05-16 11:10:36 bjs nedbat: the PR would've been some branch somewhere, so long as that branch survives somewhere you could rebase it 2021-05-16 11:10:58 bjs basically "replay" the PR merge 2021-05-16 11:11:06 nedbat bjs: but it could be in another fork. 2021-05-16 11:11:06 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 11:11:18 bjs nedbat: that's okay isn't it? 2021-05-16 11:11:45 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 11:11:50 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-16 11:11:52 nedbat bjs: to rebase a branch you need to know where it started from. Which surprisingly is something git doesn't track 2021-05-16 11:12:19 nedbat and in another fork, it could be a commit you don't have in your repo. 2021-05-16 11:12:38 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-16 11:12:45 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-16 11:12:45 nedbat and maybe we should move to -offtopic now :) 2021-05-16 11:14:12 <-- flux__aeon (~textual@d-207-244-186-159.fl.cpe.atlanticbb.net) has quit (Quit: flux__aeon) 2021-05-16 11:14:22 foo If I want to calculate the disk usage of a folder with pathlib, any two cents? Trying to count total files and disk usage of a folder. Something similar to du -sh folder/ 2021-05-16 11:14:47 <-- Mulugruntz (~Mulugrunt@2400:4152:2063:3100:39f5:311:ced:e0c) has quit (Quit: ZZZzzz…) 2021-05-16 11:15:35 <-- ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-16 11:16:02 baltazar hi! I have a decorator that takes any number of Callable[[Ctx, list[str]], T] as parameters, and expects the decorated function to take T1, T2, ..., Tn, which are the return types of the passed functions. Is there a way to tell this to a type checker? 2021-05-16 11:16:40 foo I could just call du -sh I suppose 2021-05-16 11:16:44 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-16 11:16:56 --> domhnall (domhnall@gateway/vpn/privateinternetaccess/domhnall) has joined #python 2021-05-16 11:17:41 foo Oh nevermind. This would make sense: sum(f.stat().st_size for f in root_directory.glob('**/*') if f.is_file()) 2021-05-16 11:18:10 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-16 11:18:36 --> esro (~esro@nat1.krakowskiinternet.pl) has joined #python 2021-05-16 11:18:52 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-16 11:19:33 <-- pangpang (~pangpang@unaffiliated/pangpang) has quit (Remote host closed the connection) 2021-05-16 11:19:57 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Quit: reboot) 2021-05-16 11:20:00 --> eedgit (~textual@84.64.201.21) has joined #python 2021-05-16 11:20:17 <-- diogenese (~diogenese@diogenese.velotech.net) has quit (Quit: Has anybody seen the bridge?) 2021-05-16 11:20:34 --> diogenese (~diogenese@diogenese.velotech.net) has joined #python 2021-05-16 11:22:45 --> ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has joined #python 2021-05-16 11:24:06 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 11:25:19 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 11:25:59 --> R24 (67c996d2@103.201.150.210) has joined #python 2021-05-16 11:26:01 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 11:26:19 <-- NitrousPG (~Nitrous@2a01:4f8:141:6006::2) has quit (Ping timeout: 260 seconds) 2021-05-16 11:26:20 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 11:27:57 <-- fflori (~fflori@mob-194-230-155-245.cgn.sunrise.net) has quit (Remote host closed the connection) 2021-05-16 11:28:33 <-- R24 (67c996d2@103.201.150.210) has quit (Quit: Connection closed) 2021-05-16 11:28:51 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 11:28:53 foo This'll do 2021-05-16 11:28:54 foo https://bpa.st/AASQ 2021-05-16 11:29:18 --> R24 (67c996d2@103.201.150.210) has joined #python 2021-05-16 11:29:44 <-- R24 (67c996d2@103.201.150.210) has quit (Client Quit) 2021-05-16 11:29:50 --> tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has joined #python 2021-05-16 11:29:55 <-- tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-16 11:30:34 --> tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has joined #python 2021-05-16 11:30:57 <-- Jerrynicki (~niklas@p200300f577304d004533f88d865abdb3.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-16 11:31:00 <-- tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-16 11:31:39 --> tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has joined #python 2021-05-16 11:32:00 <-- tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-16 11:32:40 --> tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has joined #python 2021-05-16 11:32:45 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 11:34:05 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-16 11:34:23 --> tungki (uid469991@gateway/web/irccloud.com/x-iqjqafzslgqupywk) has joined #python 2021-05-16 11:34:31 gloomy_desktop hey, is there any difference at all between returning two things vs. returning a tuple? 2021-05-16 11:34:36 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-16 11:34:46 <-- dub_a (~dub_a@192.252.212.45) has quit (Ping timeout: 260 seconds) 2021-05-16 11:34:47 gloomy_desktop as in `return a, b` vs `return (a,b)` 2021-05-16 11:34:58 --> tungki_ (uid469991@gateway/web/irccloud.com/x-xceaiesvmlpclmms) has joined #python 2021-05-16 11:35:21 --> scunc (~scunc@173-27-28-177.client.mchsi.com) has joined #python 2021-05-16 11:35:29 <-- tungki (uid469991@gateway/web/irccloud.com/x-iqjqafzslgqupywk) has quit (Client Quit) 2021-05-16 11:35:30 -- tungki_ is now known as tungki 2021-05-16 11:36:06 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-16 11:36:09 --> zahlman (~zahlman@bras-base-toroon4432w-grc-04-174-93-62-159.dsl.bell.ca) has joined #python 2021-05-16 11:36:11 foo gloomy_desktop: given this, my hunch is no: https://bpa.st/J26Q 2021-05-16 11:36:42 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 11:37:14 adder` gloomy_desktop, `return a, b` is equivalent to `return (a, b)` 2021-05-16 11:37:59 bjs gloomy_desktop: a, b is a tuple 2021-05-16 11:38:07 bjs gloomy_desktop: so `return a, b` and `return (a, b)` are the same thing. 2021-05-16 11:38:08 --> mat001_ (~mat001@c-69-181-152-207.hsd1.ca.comcast.net) has joined #python 2021-05-16 11:38:21 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 11:38:36 gloomy_desktop right, thanks :) 2021-05-16 11:38:39 --> tm007 (uid287041@gateway/web/irccloud.com/x-qjyirbmkuuoamkou) has joined #python 2021-05-16 11:39:03 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 11:39:22 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 11:39:52 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 240 seconds) 2021-05-16 11:41:05 <-- mat001 (~mat001@c-69-181-152-207.hsd1.ca.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-16 11:49:45 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-16 11:54:13 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 11:54:54 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 11:54:54 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-16 11:55:06 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-16 11:55:18 <-- _ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has quit (Remote host closed the connection) 2021-05-16 11:55:37 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 11:55:38 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 11:55:45 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Ping timeout: 252 seconds) 2021-05-16 11:55:49 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-16 11:56:29 <-- opsec (~opsec@opsec/opsec) has quit (Quit: Leaving) 2021-05-16 11:56:56 Gurkenglas torchviz is neat and by solving an np-hard graph problem in my head i can tell which node in a large graph corresponds to a given other tensor. Is there a way to attach variable names to the graph? 2021-05-16 11:58:12 krobzaur Quick question about pydantic. Is it an anti-pattern to extend data model classes with additional methods? Or would it be better to have a "bare bones" data model class with just data, and store that as an attribute on another class that does interesting things with the data 2021-05-16 11:58:55 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 11:58:55 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 11:59:15 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Quit: WeeChat 3.0.1) 2021-05-16 11:59:32 <-- spal (~spal@pdpc/supporter/active/spal) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-16 11:59:43 --> spal (~spal@pdpc/supporter/active/spal) has joined #python 2021-05-16 11:59:59 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 12:00:41 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-16 12:01:26 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 268 seconds) 2021-05-16 12:01:48 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 12:02:51 krobzaur So, I'm referring to the difference between the "ExtendedHotspotModel" and "HotspotModel + Hotspot" classes in this paste: https://bpa.st/3VFA 2021-05-16 12:02:55 --> AquaL1te (~AquaL1te@unaffiliated/aqual1te) has joined #python 2021-05-16 12:02:58 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-16 12:04:22 krobzaur My gut says it makes sense to break up the underlying data model class and the public facing "API" exposed by the Hotspot class that end users would consume. Breaking things up would be similar to what is done in this javascript SDK, which I'm trying to emulate in python: https://github.com/helium/helium-js/blob/master/packages/http/src/models/Hotspot.ts 2021-05-16 12:04:51 --> Jerrynicki (~niklas@p200300f577304d004e155dde8a46bd65.dip0.t-ipconnect.de) has joined #python 2021-05-16 12:04:59 --> ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has joined #python 2021-05-16 12:07:06 <-- pbnoxious (pbnoxious@piratenpartei/jupi/pbnoxious) has quit (Ping timeout: 265 seconds) 2021-05-16 12:07:29 <-- lejocelyn (~lejocelyn@2a02:8109:8880:10ec::295e) has left #python 2021-05-16 12:07:37 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 12:08:29 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-16 12:08:55 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-16 12:09:01 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 12:09:31 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 12:09:34 --> lejocelyn (~lejocelyn@2a02:8109:8880:10ec::295e) has joined #python 2021-05-16 12:12:40 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-16 12:13:10 <-- ar3ac (~ar3ac@host-79-17-84-49.retail.telecomitalia.it) has quit (Remote host closed the connection) 2021-05-16 12:13:31 <-- Trashlord (~trash@wikipedia/Sentient-Planet) has quit (Quit: "True ignorance is not the absence of knowledge, but the refusal to acquire it.") 2021-05-16 12:14:32 --> thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has joined #python 2021-05-16 12:14:34 <-- TheReverend403 (is@the.one.and.only.revthefox.co.uk) has quit (Ping timeout: 276 seconds) 2021-05-16 12:14:59 <-- Scarecr0w (internot@gateway/shell/xshellz/x-dsmyuratefupzkau) has quit (Ping timeout: 245 seconds) 2021-05-16 12:15:07 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:c2b0:caa:38f9:fe49) has joined #python 2021-05-16 12:15:47 <-- adema (~adema@2607:5300:60:632::1) has quit (Ping timeout: 260 seconds) 2021-05-16 12:15:54 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-16 12:16:05 --> adema (~adema@ns509503.ip-198-245-51.net) has joined #python 2021-05-16 12:16:15 <-- Neoon (~Neoon@2607:5300:60:23a5::1111) has quit (Ping timeout: 260 seconds) 2021-05-16 12:17:49 --> threwahway_ (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has joined #python 2021-05-16 12:17:49 --> czer0 (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-16 12:17:51 --> NomadJim_ (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-16 12:18:01 --> c4017w_ (~c4017@209.52.68.8) has joined #python 2021-05-16 12:18:03 --> dastier_ (~dastier@178.172.192.75) has joined #python 2021-05-16 12:18:08 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 12:18:12 --> sesser_ (~sesser@107.13.245.224) has joined #python 2021-05-16 12:18:13 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-16 12:18:21 --> c4017_ (~c4017@S010664777dab66f3.vf.shawcable.net) has joined #python 2021-05-16 12:18:27 --> senux_ (~senux@24.35.76.153) has joined #python 2021-05-16 12:18:27 --> runlevel7_ (runlevel7@gateway/vpn/privateinternetaccess/runlevel7) has joined #python 2021-05-16 12:18:34 --> adder`` (~adder@unaffiliated/adder) has joined #python 2021-05-16 12:18:56 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Read error: Connection reset by peer) 2021-05-16 12:18:56 <-- sesser (~sesser@107.13.245.224) has quit (Read error: Connection reset by peer) 2021-05-16 12:18:56 <-- lupulo (~lupulo@163.117.64.56) has quit (Remote host closed the connection) 2021-05-16 12:18:57 <-- Tier__ (~dastier@178.172.192.75) has quit (Read error: Connection reset by peer) 2021-05-16 12:18:57 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-16 12:18:57 <-- runlevel7 (runlevel7@gateway/vpn/privateinternetaccess/runlevel7) has quit (Read error: Connection reset by peer) 2021-05-16 12:19:04 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-16 12:19:04 --> kristijonas_ (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-16 12:19:05 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 12:19:07 --> lupulo (~lupulo@163.117.64.56) has joined #python 2021-05-16 12:19:08 <-- squirrel (~mj@unaffiliated/squirrel) has quit (Excess Flood) 2021-05-16 12:19:12 <-- traptrip (trip@brigaid.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-16 12:19:16 -- senux_ is now known as help 2021-05-16 12:19:24 --> squirrel (~mj@unaffiliated/squirrel) has joined #python 2021-05-16 12:19:24 --> Jantz (~IceChat95@2407:7000:8d04:100:d431:c209:4d46:d515) has joined #python 2021-05-16 12:19:27 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-16 12:19:47 -- help is now known as Guest79272 2021-05-16 12:19:49 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 12:19:58 --> moses (~moses@unaffiliated/madara) has joined #python 2021-05-16 12:20:09 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 265 seconds) 2021-05-16 12:20:38 <-- mawk (mawk@serveur.io) has quit (Ping timeout: 265 seconds) 2021-05-16 12:21:02 --> mawk (mawk@serveur.io) has joined #python 2021-05-16 12:21:07 <-- un1c0rrn (~dennisjun@p54890f15.dip0.t-ipconnect.de) has quit (Ping timeout: 265 seconds) 2021-05-16 12:21:07 <-- Aeon (~aeon@d205-250-188-61.bchsia.telus.net) has quit (Ping timeout: 265 seconds) 2021-05-16 12:21:07 <-- adder` (~adder@unaffiliated/adder) has quit (Ping timeout: 265 seconds) 2021-05-16 12:21:07 <-- threwahway (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-16 12:21:08 petaflot :'( https://bpa.st/4AMA 2021-05-16 12:21:12 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-16 12:21:12 <-- c4017 (~c4017@S010664777dab66f3.vf.shawcable.net) has quit (Ping timeout: 240 seconds) 2021-05-16 12:21:17 --> TheReverend403 (is@the.one.and.only.revthefox.co.uk) has joined #python 2021-05-16 12:21:28 <-- jess (jess@freenode/staff/jess) has quit 2021-05-16 12:21:36 --> traptrip (trip@brigaid.xs4all.nl) has joined #python 2021-05-16 12:21:36 <-- NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Ping timeout: 265 seconds) 2021-05-16 12:21:36 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 265 seconds) 2021-05-16 12:21:36 <-- senux (~senux@24.35.76.153) has quit (Ping timeout: 265 seconds) 2021-05-16 12:21:36 <-- c4017w (~c4017@209.52.68.8) has quit (Ping timeout: 265 seconds) 2021-05-16 12:21:46 --> jess (jess@freenode/staff/jess) has joined #python 2021-05-16 12:21:48 --> Neoon (~Neoon@2607:5300:60:23a5::1111) has joined #python 2021-05-16 12:21:56 -- Guest79272 is now known as senux 2021-05-16 12:24:22 <-- bookworm (~bookworm@wireguard/tunneler/bookworm) has quit 2021-05-16 12:24:23 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-16 12:25:05 --> bookworm (~bookworm@wireguard/tunneler/bookworm) has joined #python 2021-05-16 12:26:01 --> stealth_ (~stealth_@216-197-160-97.regn.static.sasknet.sk.ca) has joined #python 2021-05-16 12:26:30 stealth_ is there anything for running `@wrapper()` as async function? 2021-05-16 12:26:51 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 260 seconds) 2021-05-16 12:27:35 --> dr_luigi (~x@183.83.143.197) has joined #python 2021-05-16 12:27:46 --> padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has joined #python 2021-05-16 12:28:52 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 12:29:03 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-16 12:29:19 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-16 12:29:23 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-16 12:31:07 <-- HenryG (~quassel@2607:5300:201:3000::f63) has quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-16 12:31:41 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 240 seconds) 2021-05-16 12:32:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 12:32:45 --> HenryG (~quassel@2607:5300:201:3000::f63) has joined #python 2021-05-16 12:33:22 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-16 12:34:10 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-16 12:35:35 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-16 12:36:54 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-zqycblrpouaoefms) has joined #python 2021-05-16 12:37:02 --> n00b101 (uid448161@gateway/web/irccloud.com/x-fiiakdxrearwzvea) has joined #python 2021-05-16 12:39:52 --> maxwilli- (~maxwillia@gateway/tor-sasl/maxwilliamson) has joined #python 2021-05-16 12:40:21 <-- maxwilliamson (~maxwillia@gateway/tor-sasl/maxwilliamson) has quit (Ping timeout: 240 seconds) 2021-05-16 12:42:55 --> irc_user (uid423822@gateway/web/irccloud.com/x-yvitkxefbvxrtdup) has joined #python 2021-05-16 12:43:47 squirrel stealth_: i'm curious about the use case of this 2021-05-16 12:43:51 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 12:45:03 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 12:45:05 stealth_ squirrel, for a framework, you would need to open and read files for example, i want to read file in async 2021-05-16 12:45:45 <-- veek (~veek@unaffiliated/veek) has quit (Quit: Leaving) 2021-05-16 12:46:36 --> bonhoeffer (~tim@071-086-126-134.biz.spectrum.com) has joined #python 2021-05-16 12:46:59 squirrel stealth_: do you mean that you want to simply use the decorator on an async function, or do you want to run the decorator function itself in async context? 2021-05-16 12:47:19 --> bbear (~bbear@2a01:e34:ec2b:d430:8d2:b5f8:b461:7bc) has joined #python 2021-05-16 12:47:29 stealth_ squirrel, later 2021-05-16 12:47:36 bbear hello, I'm having issues with the asyncio api 2021-05-16 12:47:39 --> BinaryVixen899 (~BinaryVix@75.172.189.47) has joined #python 2021-05-16 12:47:45 bonhoeffer i'm moving past the basic script phase into writing python with multiple functions, is there a link to a good naming convention for the default, main, function, i'm still learning __main__ kinda syntax 2021-05-16 12:48:39 bonhoeffer https://www.python.org/dev/peps/pep-0008/#:~:text=Use%20the%20function%20naming%20rules,invoke%20Python's%20name%20mangling%20rules. is cool, but i would just love an example 2021-05-16 12:48:47 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Ping timeout: 246 seconds) 2021-05-16 12:49:49 --> john_johnk (~Thunderbi@112.54.140.77.rev.sfr.net) has joined #python 2021-05-16 12:49:50 <-- john_johnk (~Thunderbi@112.54.140.77.rev.sfr.net) has quit (Excess Flood) 2021-05-16 12:50:04 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-16 12:50:35 graingert bbear: Which issue, which API? 2021-05-16 12:50:49 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-16 12:51:00 bbear graingert, http://vpaste.net/r0ntu 2021-05-16 12:51:16 --> Fr1nge (~Fr1nge@176.33.138.133) has joined #python 2021-05-16 12:51:33 graingert bbear: There's no IO here 2021-05-16 12:51:38 <-- zrhoffman (~zrhoffman@5.2.89.83) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 12:51:51 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Ping timeout: 252 seconds) 2021-05-16 12:51:51 graingert bbear: you need to read from a socket or start a thread 2021-05-16 12:52:01 bbear really ? 2021-05-16 12:52:11 bbear I just can't run code asynchronously in this fashion ? 2021-05-16 12:53:16 <-- rifoerster (~rifo@p50995cae.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-16 12:53:39 squirrel stealth_: i understand that you can do just about anything in a decorator, but still curious about an actual real-life scenario where you'd want that 2021-05-16 12:53:51 BtbN async code explicitly does not use threads, so you are severely misunderstanding something 2021-05-16 12:54:00 BtbN The whole point is to run stuff asynchronous on a single thread 2021-05-16 12:54:02 ChrisWarrick bbear: asyncio in python requries you to be doing IO, typically used for network stuff. 2021-05-16 12:54:46 --> a6a45081-2b83 (~aditya@171.76.17.86) has joined #python 2021-05-16 12:55:04 --> zrhoffman (~zrhoffman@5.2.89.83) has joined #python 2021-05-16 12:55:10 bbear well I'm just running two subprocesses and wait for the return of them. 2021-05-16 12:55:22 bbear I would like to have them launched in parallel. 2021-05-16 12:55:52 stealth_ squirrel, i thought i just said that 2021-05-16 12:56:38 squirrel stealth_: why do you want to read a file in a decorator 2021-05-16 12:56:54 bbear how can I « await » this ? 2021-05-16 12:56:54 --> gitesh (uid423739@gateway/web/irccloud.com/x-lpugkrgrvdgphudw) has joined #python 2021-05-16 12:57:08 <-- greedom (~greedom@2001:16b8:2e70:bb00:d0c0:b7fc:773:ba6f) has quit (Read error: Connection reset by peer) 2021-05-16 12:57:13 graingert bbear: show your actual code 2021-05-16 12:57:21 stealth_ squirrel, hmm its for a framework, decorator can load a lot of files, and loading it in a sync its optimal 2021-05-16 12:57:38 bbear graingert, this is my actual code 2021-05-16 12:57:56 bbear there's no additional information required to answer my question 2021-05-16 12:57:56 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-16 12:58:10 graingert https://www.irccloud.com/pastebin/Alooc1TP/bbear.py 2021-05-16 12:58:15 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 260 seconds) 2021-05-16 12:58:15 --> hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has joined #python 2021-05-16 12:58:32 --> greedom (~greedom@2001:16b8:2e70:bb00:d0c0:b7fc:773:ba6f) has joined #python 2021-05-16 12:58:36 stealth_ squirrel, think of flask, django preparing links/template files on runtime 2021-05-16 12:58:39 graingert bbear: I don't see any subprocess use in your code 2021-05-16 12:58:56 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 12:58:58 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-16 12:59:24 bonhoeffer if you have a def main(): how do you run that so that function executes? 2021-05-16 12:59:41 bonhoeffer is it best practice to put main() at the bottom of the file? 2021-05-16 12:59:59 --> john_johnk (~Thunderbi@112.54.140.77.rev.sfr.net) has joined #python 2021-05-16 13:00:05 yitz bonhoeffer: if __name__ == "__main__": main() 2021-05-16 13:00:10 bonhoeffer or if __name__ == "__main__": 2021-05-16 13:00:10 bonhoeffer main() -- yeah - 2021-05-16 13:00:25 yitz That way you can import it without calling main() 2021-05-16 13:00:38 --> rupaul1337 (~Thunderbi@193.27.14.188) has joined #python 2021-05-16 13:00:41 -- amosbird_ is now known as amosbird 2021-05-16 13:00:41 yitz Useful for using it as a lib ... or unit tests 2021-05-16 13:01:01 bonhoeffer perfect, thanks! 2021-05-16 13:01:36 squirrel stealth_: a decorator is run typically only once isn't it? so to make some kind of real use of it, you'd have to be regenerating your classes 2021-05-16 13:01:50 --> bdonnahue1 (~bdonnahue@208.59.177.131) has joined #python 2021-05-16 13:02:04 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 13:02:08 squirrel doesn't sound like a good idea to me eh 2021-05-16 13:02:17 bbear graingert, http://vpaste.net/x4SSz 2021-05-16 13:02:27 stealth_ bbear, what you did there is pretty much a synchronous, async comes in play when/if `func_a` gets IO/Lock block and other task it handled at that point. maybe `func_b` if it was run in `.gather()` way 2021-05-16 13:03:11 <-- PSA9 (~113@ip-199-68-60-088.atvci.net) has quit (Quit: FUZION2020) 2021-05-16 13:03:18 graingert bbear: try async with anyio.create_task_group() and anyio.run_process 2021-05-16 13:03:33 --> PSA9 (~113@199.68.60.88) has joined #python 2021-05-16 13:03:43 stealth_ squirrel, well if it was async, it wouldn't waste time on IO 2021-05-16 13:04:08 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-16 13:05:14 squirrel stealth_: yeah but if it's only ever done once, the gain is minimal 2021-05-16 13:05:49 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has quit (Ping timeout: 245 seconds) 2021-05-16 13:05:49 bbear stealth, you mean it gets asynchronous as soon as I start reading/writing a file ? 2021-05-16 13:06:20 stealth_ squirrel, its not done only once, its more like wrapper * 100 files now the time adds up 2021-05-16 13:06:46 Tashtari Is it considered bad practice to raise an exception inside of a constructor? I feel like I read that somewhere but I'm not sure. 2021-05-16 13:07:27 --> tsujp (a32f386b@163.47.56.107) has joined #python 2021-05-16 13:07:28 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-16 13:07:43 stealth_ bbear, if you have 2 tasks running. task-1 gets blocked cause its waiting for something, now task-2 is run. if there is no blocking/waiting its pretty much synchronous 2021-05-16 13:07:50 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-16 13:07:51 squirrel stealth_: i mean, each decorator will only be run once 2021-05-16 13:08:04 <-- SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-16 13:08:12 tsujp I have a basic class with a few basic fields, a int, a string etc. I have a dictionary of objects of this class. How can I return the index of a particular object of this list of objects? 2021-05-16 13:08:13 bbear what about blocking until the process ends ? would it be actual blocking ? 2021-05-16 13:08:32 stealth_ Tashtari, once you raise pretty much everything is stopped! so what does it matter if it was starting an constructor or not. 2021-05-16 13:08:33 <-- arkalpha (~demo@185.21.216.196) has quit (Quit: Lost terminal) 2021-05-16 13:08:56 graingert Tashtari: I prefer to do only assignments in constructors and use @classmethods for validation and IO 2021-05-16 13:09:28 graingert bbear: did you try anyio.run_process yet? 2021-05-16 13:09:39 stealth_ squirrel, ya, each of those is opening 1+ file and reading. 2021-05-16 13:09:39 bbear mmh just trying to understand, so basically, my code would run I I used https://docs.python.org/3/library/asyncio-subprocess.html#creating-subprocesses instead of the plain subprocess version ? 2021-05-16 13:09:46 bbear @graingert, I looked at the doc 2021-05-16 13:09:56 <-- padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-16 13:10:06 graingert Yeah but the asyncio subprocess interface is pretty complicated 2021-05-16 13:10:33 --> Doxin (~Doxin@unaffiliated/doxin) has joined #python 2021-05-16 13:10:36 bbear yes, so that is when anyio kicks in, it has a nice API and is useful. 2021-05-16 13:10:38 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-16 13:10:42 bbear Thanks, I will try this 2021-05-16 13:10:55 <-- paddymahoney (~paddymaho@cpe9050ca207f83-cm9050ca207f80.cpe.net.cable.rogers.com) has quit (Ping timeout: 252 seconds) 2021-05-16 13:11:41 Tashtari graingert: Hm. Like having __init__ just do assignments of state and nothing else, and then having a @classmethod `new` or something that actually checks things? I sort of get that if the classmethod is doing I/O, but if the class's data members are never permitted to be something-or-other, isn't that something you might want to validate in __init__? 2021-05-16 13:11:48 Doxin So is it just me or is the documentation for DatagramTransport.sendto just plain wrong? contrary to what it claims here: https://docs.python.org/3/library/asyncio-protocol.html#asyncio.DatagramTransport.sendto I cannot for the life of me get that to work without passing an address. It steadfastly raises "TypeError: sendto(): AF_INET address must be tuple, not NoneType" when I try. 2021-05-16 13:12:04 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-16 13:12:16 --> Thanatos (~Thanatos@197.210.70.226) has joined #python 2021-05-16 13:12:23 --> pbnoxious (pbnoxious@piratenpartei/jupi/pbnoxious) has joined #python 2021-05-16 13:12:41 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-16 13:14:29 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-16 13:14:37 graingert Tashtari: I use @attr.frozen as much as possible 2021-05-16 13:14:59 stealth_ Doxin, `.sendto(data, (send_to_ip, port))` 2021-05-16 13:15:04 supakeen The documentation is a bit bad yes, are you passing a remote_addr to your create_datagram_endpoint? 2021-05-16 13:15:16 supakeen stealth_: It explicitly states that you can pass 'None'. 2021-05-16 13:15:19 stealth_ Doxin, you are doing `.sendto(data, None)` thus the error 2021-05-16 13:15:29 Tashtari graingert: This `attr` is not something in the standard library, I take it 2021-05-16 13:15:29 DPA I just noticed that python3 is perfectly fine with me looking up absolutely impossible ranges such as: b'test'[20:5] . Is there some way to make that throw? 2021-05-16 13:15:41 <-- sjoshi (~joshi_sun@122.177.16.19) has quit (Ping timeout: 252 seconds) 2021-05-16 13:15:57 <-- zrhoffman (~zrhoffman@5.2.89.83) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 13:16:01 bonhoeffer what does EOFError: Ran out of input mean when i load a pickle 2021-05-16 13:16:05 bonhoeffer too much data?? 2021-05-16 13:16:07 stealth_ supakeen, if it was within a class it would know the address 2021-05-16 13:16:22 stealth_ bonhoeffer, end of file error 2021-05-16 13:16:28 Tashtari DPA: If you define your own __getitem__ in a class that throws when it gets an invalid slice, you can. 2021-05-16 13:16:29 supakeen stealth_: The documentation doesn't say that, nor does it document how to pass that address. 2021-05-16 13:16:36 squirrel stealth_: well you don't need to be async to call into async machinery heh https://bpa.st/PLLA 2021-05-16 13:16:47 Tashtari (I suppose 'invalid' should be in scare quotes there) 2021-05-16 13:16:49 bonhoeffer stealth_, any tips on what i could do to fix it 2021-05-16 13:16:57 Doxin stealth_: the documentation clearly states that passing None is a valid thing to do 2021-05-16 13:17:00 supakeen bonhoeffer: Likely the file isn't what you expect to be in there. 2021-05-16 13:17:04 supakeen (is it empty?) 2021-05-16 13:17:13 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-16 13:17:30 <-- masoudd (~masoudd@unaffiliated/masoudd) has quit (Ping timeout: 246 seconds) 2021-05-16 13:17:30 <-- tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has quit (Quit: Leaving) 2021-05-16 13:17:35 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 13:17:43 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 252 seconds) 2021-05-16 13:17:51 stealth_ Doxin, depending on how you are using/calling it. then why would it raise that error? 2021-05-16 13:18:03 supakeen Doxin: Did you see my question? 2021-05-16 13:18:05 bonhoeffer supakeen, yep, its empty 2021-05-16 13:18:12 bonhoeffer at least the file is zero - thanks 2021-05-16 13:18:12 Doxin stealth_: that's the question I'm asking, isn't it? 2021-05-16 13:18:20 Doxin supakeen: I did not, lemme read up and find it 2021-05-16 13:18:34 Doxin supakeen: yeah, I am passing the remote_addr 2021-05-16 13:18:42 --> zrhoffman (~zrhoffman@5.2.89.83) has joined #python 2021-05-16 13:18:50 Doxin oh though actually 2021-05-16 13:19:03 Doxin supakeen: not on the server side obviously, that'll cause trouble I imagine :P 2021-05-16 13:19:30 liak hi I am trying to import a module from a parent's subdir as in from ../subdir_a/modules import something and I get 'attempted relative import with no known parent package'. I am doing that from subdir_b. What could be wrong? There is an __init__.py in ../subdir_a/modules/ 2021-05-16 13:19:46 stealth_ squirrel, i am talking about `async def decorator()`, not callback (wrapper) being async function 2021-05-16 13:20:10 liak what could be wrong? 2021-05-16 13:20:32 supakeen If you are doing UDP it's (best) to always explicitly pass the address tuple; it's likely throwing an error when you don't pass a remote_addr during instantiation and this isn't documented well, if that's not the case then maybe make a super small pastebin to reproduce. 2021-05-16 13:20:34 <-- esro (~esro@nat1.krakowskiinternet.pl) has quit (Quit: Leaving) 2021-05-16 13:21:12 Doxin supakeen: no that's definitely it. just puzzling how to deal with this in a nice way then. seems a bit pointless to pass the remote_addr when initializing the whole thing as-is 2021-05-16 13:21:12 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 13:21:49 Tashtari DPA: https://bpa.st/DX5Q 2021-05-16 13:21:54 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 13:22:05 stealth_ Doxin, if its a server you don't need to pass it, if its a client you do 2021-05-16 13:22:27 <-- rupaul1337 (~Thunderbi@193.27.14.188) has quit (Quit: rupaul1337) 2021-05-16 13:22:33 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-16 13:22:34 Doxin stealth_: I'm trying to keep the server and client implementation the same thing 2021-05-16 13:22:41 supakeen Doxin: You're probably thinking in terms of TCP where there's a connection you can respond to, that state isn't there with UDP. I'm guessing you want to 'reply' to a message. 2021-05-16 13:22:48 Doxin supakeen: I'm aware 2021-05-16 13:23:03 Doxin supakeen: I'm not new to networking, just to how asyncio deals with it :P 2021-05-16 13:23:13 supakeen asyncio definitely has its warts. 2021-05-16 13:23:27 <-- Spawns_Carpetin- (~pi@184-14-215-171.dr03.chtn.wv.frontiernet.net) has quit (Ping timeout: 268 seconds) 2021-05-16 13:23:38 Doxin having a "connection_made" callback when dealing with UDP is certainly... an interesting way to go about it 2021-05-16 13:23:39 stealth_ Doxin, i meant to say other way around. 2021-05-16 13:23:44 Doxin stealth_: yeah I figured 2021-05-16 13:23:48 squirrel stealth_: does it matter if that decorator can call async code anyway 2021-05-16 13:23:53 supakeen Exactly :> 2021-05-16 13:24:13 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has joined #python 2021-05-16 13:24:23 <-- gelignite (~gelignite@55d4b9d7.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-16 13:25:05 stealth_ squirrel, ya, inside `async def decorator(): await file.read()` 2021-05-16 13:25:23 --> tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has joined #python 2021-05-16 13:25:26 <-- tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-16 13:25:28 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-16 13:25:29 stealth_ squirrel, open+read but you get the point. 2021-05-16 13:25:38 squirrel stealth_: you can do it in `dummy` in my example, that is async 2021-05-16 13:26:07 --> tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has joined #python 2021-05-16 13:26:12 <-- Santzes (~Santzes@li2111-66.members.linode.com) has quit (Quit: WeeChat 3.1) 2021-05-16 13:26:30 stealth_ squirrel, @decorator would be outside of `main()` 2021-05-16 13:26:37 Thanatos Hello everyone 2021-05-16 13:27:11 <-- hendursa1 (~weechat@gateway/tor-sasl/hendursaga) has quit (Quit: hendursa1) 2021-05-16 13:27:18 squirrel stealth_: you can't have it outside of main() in a sane way, there's no async context outside of there 2021-05-16 13:27:53 --> Spawns_Carpeting (~pi@184.15.56.237) has joined #python 2021-05-16 13:28:07 DPA Tashtari: Awesome, Thanks! 2021-05-16 13:28:12 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-16 13:28:15 Tashtari _o> 2021-05-16 13:28:54 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 13:29:00 stealth_ squirrel, https://bpa.st/NOYA 2021-05-16 13:29:22 liak hi I am trying to import a module from a parent's subdir as in from ../subdir_a/modules import something and I get 'attempted relative import with no known parent package'. I am doing that from subdir_b. What could be wrong? There is an __init__.py in ../subdir_a/modules/. What could be wrong? 2021-05-16 13:29:34 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 245 seconds) 2021-05-16 13:29:36 kuhilas[m] I'm trying to add a signature to pdf so I looked here https://stackabuse.com/working-with-pdfs-in-python-adding-images-and-watermarks/ and have three solutions there for adding another pdf to a pdf. One of them allows me to add an image but I get errors and two other examples allow just adding pdf to pdf so is this what I should do? Wouldn't that mean that I would need to first make a pdf where I put the image of my 2021-05-16 13:29:36 kuhilas[m] signature and somehow manage to place it in the right spot so that when I merge it with the other pdg it goes to the right spot 2021-05-16 13:30:18 <-- Doxin (~Doxin@unaffiliated/doxin) has left #python ("Leaving") 2021-05-16 13:30:28 --> Santzes (~Santzes@2400:8901::f03c:92ff:fe49:47a6) has joined #python 2021-05-16 13:30:50 graingert liak: How are you running your code 2021-05-16 13:31:04 stealth_ squirrel, multiple `@decorator` would run before `main()` is called, thus wanting to run it in async way. 2021-05-16 13:31:30 --> sjoshi (~joshi_sun@2409:4050:e3e:2c83:cd09:3de6:e51:ddf7) has joined #python 2021-05-16 13:31:31 graingert liak: and show your code and full Traceback too 2021-05-16 13:31:45 liak graingert: it is a script. I have #!/usr/bin/env python3 directive on top. But it doesn't make a difference even from ipython 2021-05-16 13:31:59 graingert ... 2021-05-16 13:32:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 13:32:21 --> trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has joined #python 2021-05-16 13:33:11 --> ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has joined #python 2021-05-16 13:33:31 graingert liak: you need to run it with python3 -m parent_dir.subdir_b.module 2021-05-16 13:33:43 bonhoeffer if i have an array of dicts [{'a':1},{'b':5}] how do i get the value 'a' 2021-05-16 13:34:08 bonhoeffer array[0].keys()[0] 2021-05-16 13:34:19 bonhoeffer array[0].keys()[0] 2021-05-16 13:34:24 stealth_ `array[0]['a']` 2021-05-16 13:35:17 bonhoeffer that assumes i know 'a' -- i want to get an array ['a','b'] 2021-05-16 13:35:30 -- roxfan2 is now known as roxfan 2021-05-16 13:35:38 graingert next(iter(array[0].keys())) 2021-05-16 13:35:47 <-- lbalhar (~lbalhar@93.185.13.26) has quit (Ping timeout: 268 seconds) 2021-05-16 13:35:52 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-16 13:36:03 liak graingert: that means that i hvave to run the script from the first common parent directory which is not convenient. What if I want to run it like ./script? 2021-05-16 13:36:42 graingert liak: make a __main__.py in your top level package 2021-05-16 13:36:58 graingert And use sys.argv to dispatch different subcommands 2021-05-16 13:37:25 graingert Then you can use python -m parent_dir some_script 2021-05-16 13:37:50 bonhoeffer i can't get 'a' out of dict_keys(['a']) 2021-05-16 13:38:36 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:977:30cb:cdb8:2735) has joined #python 2021-05-16 13:38:41 nedbat bonhoeffer: you want a list of all of the keys in the dicts in that list? 2021-05-16 13:38:52 graingert bonhoeffer: next(iter(d.keys())) 2021-05-16 13:39:02 bonhoeffer nedbat, hey, ok I see, got it 2021-05-16 13:39:20 <-- tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has quit (Quit: Leaving) 2021-05-16 13:39:31 bonhoeffer sorry, was missing the lead there 2021-05-16 13:39:43 <-- ffe4 (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has quit (Read error: Connection reset by peer) 2021-05-16 13:39:44 bonhoeffer graingert, +1 (thanks) 2021-05-16 13:39:47 --> x7b (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has joined #python 2021-05-16 13:40:19 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-16 13:40:33 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 13:40:52 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Ping timeout: 265 seconds) 2021-05-16 13:40:59 <-- trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has quit (Read error: Connection reset by peer) 2021-05-16 13:41:29 squirrel stealth_: you can't do this in a sane way. while importing, there's no async context. there's no system that knows to run coroutines 2021-05-16 13:41:47 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-16 13:42:00 <-- tsujp (a32f386b@163.47.56.107) has quit (Quit: Connection closed) 2021-05-16 13:42:36 --> trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has joined #python 2021-05-16 13:42:42 stealth_ squirrel, looks like it, maybe i will have to invent something for it 2021-05-16 13:43:57 <-- tm007 (uid287041@gateway/web/irccloud.com/x-qjyirbmkuuoamkou) has quit (Quit: Connection closed for inactivity) 2021-05-16 13:44:47 <-- zrhoffman (~zrhoffman@5.2.89.83) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 13:46:11 <-- shailangsa (~shailangs@host217-35-224-205.range217-35.btcentralplus.com) has quit (Ping timeout: 240 seconds) 2021-05-16 13:47:11 --> yuesbeez (uid458354@gateway/web/irccloud.com/x-nbpzfpvsqahxyiou) has joined #python 2021-05-16 13:47:26 IHasFinger hi all, been playing with this for a while now and got to this https://bpa.st/UUUQ i basically want to convert 8:53:33 which is hours:minutes:seconds to be minutes. How to do it? thank you 2021-05-16 13:48:07 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Remote host closed the connection) 2021-05-16 13:49:36 <-- greedom (~greedom@2001:16b8:2e70:bb00:d0c0:b7fc:773:ba6f) has quit (Remote host closed the connection) 2021-05-16 13:50:24 --> greedom (~greedom@i5E86B33A.versanet.de) has joined #python 2021-05-16 13:50:29 <-- x7b (~ffe4@200116b82c275a00711ab28766640b11.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-16 13:50:49 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Read error: Connection reset by peer) 2021-05-16 13:51:21 ioxzev1z IHasFinger, (8*60) + 53 + (33 / 60) ? 2021-05-16 13:52:19 IHasFinger ioxzev1z, i dont get it 2021-05-16 13:52:29 ioxzev1z x:y:z = (x * 60) + y + (z / 60) 2021-05-16 13:53:46 --> zrhoffman (~zrhoffman@5.2.89.83) has joined #python 2021-05-16 13:54:19 --> x7b (~ffe4@i59F7FF6F.versanet.de) has joined #python 2021-05-16 13:55:11 <-- sjoshi (~joshi_sun@2409:4050:e3e:2c83:cd09:3de6:e51:ddf7) has quit (Ping timeout: 260 seconds) 2021-05-16 13:55:15 <-- Jantz (~IceChat95@2407:7000:8d04:100:d431:c209:4d46:d515) has quit (Ping timeout: 250 seconds) 2021-05-16 13:55:24 <-- yitz (~yitz@exercism/yitz) has quit (Ping timeout: 245 seconds) 2021-05-16 13:55:55 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-16 13:56:12 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-16 13:56:13 --> yeticheese (~yetichees@185.240.244.189) has joined #python 2021-05-16 13:56:29 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 13:56:30 ioxzev1z IHasFinger, or you can convert to seconds, then divide by 60 to get minutes. 2021-05-16 13:57:29 <-- bonhoeffer (~tim@071-086-126-134.biz.spectrum.com) has quit (Ping timeout: 245 seconds) 2021-05-16 13:57:31 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-16 13:57:31 IHasFinger ioxzev1z, alright just 2 question 1 does datetime have something to pass in the string of the hour mins and seconds and it will give you seconds? also i tried to split those up like this 2021-05-16 13:58:05 IHasFinger t1 =sum(i*j for i, j in zip(map(int, diff.split(':')), factors)) but got an error 2021-05-16 13:58:06 IHasFinger AttributeError: 'datetime.timedelta' object has no attribute 'split' 2021-05-16 13:58:10 IHasFinger factors = (60, 1, 1/60) 2021-05-16 13:58:16 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-16 13:58:41 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-16 13:58:53 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 13:59:03 <-- Santzes (~Santzes@2400:8901::f03c:92ff:fe49:47a6) has quit (Remote host closed the connection) 2021-05-16 13:59:05 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-16 13:59:14 --> Santzes (~Santzes@2400:8901::f03c:92ff:fe49:47a6) has joined #python 2021-05-16 14:00:45 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-16 14:00:53 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 246 seconds) 2021-05-16 14:01:36 <-- Hanii (~Hanii@2a00:23c5:c587:6d00:dd6:77f4:84ed:4cae) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-16 14:01:36 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-16 14:01:41 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-16 14:02:00 ioxzev1z Why not just diff.split(":"), assuming diff = "8:53:33", giving you a list 2021-05-16 14:02:08 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-16 14:02:22 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 14:02:51 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-16 14:02:54 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 14:03:03 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:977:30cb:cdb8:2735) has quit (Ping timeout: 250 seconds) 2021-05-16 14:03:04 <-- A-cat (~Alzadoua@unaffiliated/alzadoua) has quit (Read error: Connection reset by peer) 2021-05-16 14:03:23 --> shailangsa (~shailangs@host86-186-177-159.range86-186.btcentralplus.com) has joined #python 2021-05-16 14:03:47 IHasFinger ioxzev1z, actually comes out has ['8', '53', '33'] 2021-05-16 14:04:05 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 252 seconds) 2021-05-16 14:04:14 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-16 14:04:21 ioxzev1z Right, which is what you want, no? 2021-05-16 14:04:32 IHasFinger yes :) thank you 2021-05-16 14:04:46 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-16 14:04:54 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-16 14:04:56 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-16 14:05:41 ioxzev1z Then just do the math on that list to get minutes 2021-05-16 14:06:30 f8e4 how do you contract a 2d list floats into one sum? 2021-05-16 14:07:04 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 245 seconds) 2021-05-16 14:08:12 --> plutoniix (~q@node-ufy.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-16 14:08:51 IHasFinger ioxzev1z, this is what I have been trying to achieved seen morning, bare in mind I am still new to python. I basically have a utc unix timestamp. I wanted to find the different between that unix timestamp and the current utc time. https://bpa.st/6QAA this works but i feel like it can be improved much better 2021-05-16 14:09:38 --> yitz (~yitz@exercism/yitz) has joined #python 2021-05-16 14:10:35 --> vladoski (~vladoski@2001:b07:add:d406:a81d:de32:8d10:4426) has joined #python 2021-05-16 14:10:49 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 245 seconds) 2021-05-16 14:11:11 --> guriya (a0ee4bcd@unaffiliated/guriya) has joined #python 2021-05-16 14:11:26 <-- zrhoffman (~zrhoffman@5.2.89.83) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 14:11:33 --> sjoshi (~joshi_sun@122.177.16.19) has joined #python 2021-05-16 14:11:53 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Quit: reboot) 2021-05-16 14:15:39 --> wymillerlinux (~wyatt@096-042-164-072.res.spectrum.com) has joined #python 2021-05-16 14:15:39 -- Topic for #python is "Anything about Python is on-topic. Don't paste, use https://bpaste.net/+python | Be nice. The Python CoC applies: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops are at #python-ops | #python-fr #python.de #python-uk #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu" 2021-05-16 14:15:39 -- Topic set by nedbat (~nedbat@python/psf/nedbat) on Wed, 19 Aug 2020 16:18:59 2021-05-16 14:15:39 -- Channel #python: 1643 nicks (0 ops, 0 voices, 1643 normals) 2021-05-16 14:15:43 -- Channel created on Sun, 26 Nov 2006 01:42:41 2021-05-16 14:15:58 BrenBarn IHasFinger: no need to do all that, use `datetime.fromtimestamp()` (https://docs.python.org/3/library/datetime.html#datetime.datetime.fromtimestamp) 2021-05-16 14:16:01 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-16 14:16:12 <-- akoana (~ah@unaffiliated/akoana) has left #python ("Leaving") 2021-05-16 14:16:50 --> Nightwing52 (~Thunderbi@67.7.15.187) has joined #python 2021-05-16 14:17:00 --> Elodin (~weechat@unaffiliated/padawan) has joined #python 2021-05-16 14:18:08 IHasFinger BrenBarn, can you share an example please using my code. I think i tried that but had not luck with it. spend like 4 hours and have tried different things 2021-05-16 14:18:19 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 14:20:56 <-- qqqhhh (~qqqhhh@94.228.80.243) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-16 14:21:14 dr_luigi Hey guys is there any easy way to find the relevant commits/PRs for a PEP? 2021-05-16 14:21:30 * BrenBarn < https://matrix.org/_matrix/media/r0/download/matrix.org/qFABEElIKyQdLGXXJKkbdzvT/message.txt > 2021-05-16 14:21:35 --> sphrak (~niclas@178.255.113.33) has joined #python 2021-05-16 14:21:45 BrenBarn (include the timezone in the second one if you want) 2021-05-16 14:21:57 <-- finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Ping timeout: 240 seconds) 2021-05-16 14:23:12 <-- craigevil (craig@gateway/vpn/protonvpn/craigevil) has quit (Quit: leaving) 2021-05-16 14:24:21 --> finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-16 14:24:58 <-- scunc (~scunc@173-27-28-177.client.mchsi.com) has quit (Quit: Leaving) 2021-05-16 14:26:32 --> pyusr (6d40f9bc@unaffiliated/db42) has joined #python 2021-05-16 14:26:51 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-16 14:27:08 pyusr Python 3.9.4, why does work: ret: dict[tuple(int, int), str] = {} but this does not ? def f(grid: dict[tuple(int, int), str]) -> str: 2021-05-16 14:27:39 --> kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has joined #python 2021-05-16 14:27:40 phy1729 should be tuple[int, int] 2021-05-16 14:28:27 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 14:28:29 pyusr cool, why does the first statment work though ? 2021-05-16 14:28:44 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Quit: WeeChat 3.1) 2021-05-16 14:28:46 <-- Abbott (~Abbott@unaffiliated/abbott) has quit (Ping timeout: 260 seconds) 2021-05-16 14:28:53 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 14:29:15 phy1729 Not real clear, but I think annotations on internal variable matter less than annotations on arguments 2021-05-16 14:29:16 redsh Neither should. 2021-05-16 14:29:46 redsh It may, but it's incorrect. 2021-05-16 14:30:20 IHasFinger BrenBarn, i tried that like https://bpa.st/EODQ but got ValueError: invalid literal for int() with base 10: '16.964037' in line 6 which is where i was stuck 2021-05-16 14:30:37 pyusr redsh: so which is the correct one ? 2021-05-16 14:31:00 redsh The correct way to represent a tuple with two integers is tuple[int, int] 2021-05-16 14:31:16 redsh So, dict[tuple[int, int], str] 2021-05-16 14:31:31 pyusr ahh, k, tnx 2021-05-16 14:31:45 <-- Thanatos (~Thanatos@197.210.71.79) has quit (Read error: Connection reset by peer) 2021-05-16 14:32:11 <-- john_johnk (~Thunderbi@112.54.140.77.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-16 14:32:12 --> Thanatos (~Thanatos@197.210.71.184) has joined #python 2021-05-16 14:32:23 --> Abbott (~Abbott@unaffiliated/abbott) has joined #python 2021-05-16 14:32:25 redsh If it's tuple(foo), it is understood as you trying to convert an iterable foo into a tuple. If it's tuple[foo], it's understood to be a type annotation for a tuple with an element of type foo. 2021-05-16 14:32:25 pyusr welp, i'm going back to think why I need to pay 100$ to watch Pycon US 2021-05-16 14:32:36 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 14:33:17 redsh tuple(x, y) is not currently valid. 2021-05-16 14:33:21 BrenBarn IHasFinger: Then instead of your `map`, just take your `diff` object and do `diff.total_seconds()/60` 2021-05-16 14:34:05 --> craigevil (craig@gateway/vpn/protonvpn/craigevil) has joined #python 2021-05-16 14:34:06 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-16 14:35:49 <-- schumaml (~schumaml@p4ff91cbd.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-16 14:36:09 IHasFinger BrenBarn, brillant, thank you 2021-05-16 14:36:27 <-- dr_luigi (~x@183.83.143.197) has quit (Ping timeout: 265 seconds) 2021-05-16 14:36:46 <-- pyusr (6d40f9bc@unaffiliated/db42) has quit (Quit: Connection closed) 2021-05-16 14:38:44 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 245 seconds) 2021-05-16 14:38:52 <-- vladoski (~vladoski@2001:b07:add:d406:a81d:de32:8d10:4426) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-16 14:41:42 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-16 14:43:06 <-- s8548a__ (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 240 seconds) 2021-05-16 14:43:41 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 240 seconds) 2021-05-16 14:43:48 <-- Nightwing52 (~Thunderbi@67.7.15.187) has quit (Quit: Later!) 2021-05-16 14:44:02 --> Nightwing52 (~Thunderbi@67.7.15.187) has joined #python 2021-05-16 14:44:08 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-16 14:45:39 <-- Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has quit (Quit: Leaving) 2021-05-16 14:47:30 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-16 14:48:29 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 246 seconds) 2021-05-16 14:48:38 <-- zrhoffman (~zrhoffman@5.2.89.83) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 14:49:34 --> otisolsen70_ (~otisolsen@xd4ed80b5.cust.hiper.dk) has joined #python 2021-05-16 14:49:53 <-- otisolsen70_ (~otisolsen@xd4ed80b5.cust.hiper.dk) has quit (Remote host closed the connection) 2021-05-16 14:51:21 --> juuandyy (~juuandyy@90.106.228.121) has joined #python 2021-05-16 14:51:24 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-16 14:51:37 --> d42 (~root@87-207-121-133.dynamic.chello.pl) has joined #python 2021-05-16 14:52:24 --> ralof_ (~ralof@dynamic-077-007-049-147.77.7.pool.telefonica.de) has joined #python 2021-05-16 14:53:13 <-- otisolsen70 (~otisolsen@xd4ed80b5.cust.hiper.dk) has quit (Ping timeout: 252 seconds) 2021-05-16 14:53:26 <-- ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has quit (Quit: Leaving) 2021-05-16 14:53:59 --> zrhoffman (~zrhoffman@5.2.89.83) has joined #python 2021-05-16 14:54:03 --> abraxxas (~abraxxas@p5b0d9d2f.dip0.t-ipconnect.de) has joined #python 2021-05-16 14:54:06 <-- abraxxas (~abraxxas@p5b0d9d2f.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-16 14:54:29 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Quit: reboot) 2021-05-16 14:55:36 IHasFinger BrenBarn, now i remember why i did not use it 2021-05-16 14:55:37 <-- ralof (~ralof@dynamic-077-007-049-147.77.7.pool.telefonica.de) has quit (Ping timeout: 252 seconds) 2021-05-16 14:55:40 IHasFinger because it need to be utc 2021-05-16 14:55:41 <-- Thanatos (~Thanatos@197.210.71.184) has quit (Ping timeout: 240 seconds) 2021-05-16 14:55:56 --> Wafficus (~Wafficus@70.126.240.148) has joined #python 2021-05-16 14:55:57 IHasFinger datetime.fromtimestamp will use my local time 2021-05-16 14:56:10 guriya Can julia lang come close to python when it comes to data analysis? 2021-05-16 14:57:20 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 14:57:57 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-16 14:58:08 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 14:58:29 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-16 14:58:37 --> rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has joined #python 2021-05-16 14:58:52 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 14:59:08 <-- yeticheese (~yetichees@185.240.244.189) has quit 2021-05-16 14:59:44 <-- panikovsky (~panikovsk@109.165.59.140) has quit (Quit: Leaving) 2021-05-16 15:00:38 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-16 15:02:24 --> cer-0 (~cer-0@189.228.159.74) has joined #python 2021-05-16 15:02:31 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 15:02:52 dostoyevsky guriya: Atm it's mostly used by the mit people to teach simulations... so not much data analysis available, like scikit or the like 2021-05-16 15:03:07 <-- nbro (~nbro@unaffiliated/nbro) has quit 2021-05-16 15:03:19 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-16 15:03:19 <-- rendar (~rendar@unaffiliated/rendar) has quit 2021-05-16 15:03:25 dostoyevsky but the simulations are quite interesting and have no direct equivalent in python 2021-05-16 15:05:06 guriya dostoyevsky came here from MIT video https://video.odl.mit.edu/videos/6fd61898f9c841bfbf79c7163a2c960d/ 2021-05-16 15:05:31 dostoyevsky How come python has like four versions on debian, depending on whether I want distutils, gi, cheaders? Why can't those be part of the default install? Also will python-gi overwrite python-distutils? 2021-05-16 15:07:04 dostoyevsky guriya: yeah, some things are possible, but e.g. I cannot run some of the cookbooks anymore from spring 2020 from the lectures with julia 1.6.0 -- it's not stable ... they are currently working on that I think 2021-05-16 15:07:25 --> platvoeten (~platvoete@185.238.52.74) has joined #python 2021-05-16 15:07:41 --> tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has joined #python 2021-05-16 15:07:48 <-- tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-16 15:08:01 <-- zrhoffman (~zrhoffman@5.2.89.83) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 15:08:03 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: arrivederci) 2021-05-16 15:08:06 --> emet-selch (~quassel@2601:204:d880:6590:75f7:85b6:6266:2192) has joined #python 2021-05-16 15:08:16 <-- sjoshi (~joshi_sun@122.177.16.19) has quit (Ping timeout: 252 seconds) 2021-05-16 15:08:26 --> tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has joined #python 2021-05-16 15:08:29 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Quit: Leaving) 2021-05-16 15:08:36 guriya dostoyevsky (y) 2021-05-16 15:09:10 --> nanobist (~nanobist@unaffiliated/nanobist) has joined #python 2021-05-16 15:09:21 dostoyevsky in python it's very common to pin the versions of your packages in requirements.txt -- julia started doing something similar in the spring 21 lectures... I guess that might bring more stability ... but python has been doing that for a long time, and it works quite well 2021-05-16 15:09:42 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 15:09:57 dostoyevsky s/cookbooks/notebooks/ even 2021-05-16 15:10:19 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-16 15:10:19 --> Alzadoua (~Alzadoua@unaffiliated/alzadoua) has joined #python 2021-05-16 15:10:49 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 245 seconds) 2021-05-16 15:11:11 <-- spiri (~spiri@unaffiliated/spiri) has quit (Ping timeout: 252 seconds) 2021-05-16 15:11:17 <-- platvoeten (~platvoete@185.238.52.74) has quit (Remote host closed the connection) 2021-05-16 15:13:32 <-- tungki (uid469991@gateway/web/irccloud.com/x-xceaiesvmlpclmms) has quit (Quit: Connection closed for inactivity) 2021-05-16 15:13:35 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-16 15:14:36 bjs redsh: what's wrong with tuple[int, int] ? 2021-05-16 15:14:51 redsh bjs: Nothing, what do you mean? 2021-05-16 15:15:04 altendky working on either a start at or a workaround for https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1436. i feel like i'm overlooking something probably obvious. how do you get "the terminal width" in prompt_toolkit? in reality, the width of a specific window would probably be better, but maybe you get the idea. 2021-05-16 15:15:14 --> zrhoffman (~zrhoffman@5.2.89.83) has joined #python 2021-05-16 15:15:47 bjs redsh: oh maybe I misread 2021-05-16 15:16:22 bjs my mistake 2021-05-16 15:18:32 <-- cer-0 (~cer-0@189.228.159.74) has quit (Quit: leaving) 2021-05-16 15:19:39 -- TrillionEuroNote is now known as ManHoursPerTonne 2021-05-16 15:19:44 <-- rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has quit (Quit: Connection closed) 2021-05-16 15:20:36 <-- Ublx (~Alex@107.181.180.167) has quit (Max SendQ exceeded) 2021-05-16 15:21:06 --> vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has joined #python 2021-05-16 15:21:07 --> Ublx (~Alex@107.181.180.167) has joined #python 2021-05-16 15:22:51 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-16 15:24:08 <-- tiwula (~lane@c-98-202-91-238.hsd1.ut.comcast.net) has quit (Quit: Leaving) 2021-05-16 15:24:15 --> scampbell (~scampbell@mail.scampbell.net) has joined #python 2021-05-16 15:24:32 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 15:25:59 --> honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-16 15:26:38 <-- n00b101 (uid448161@gateway/web/irccloud.com/x-fiiakdxrearwzvea) has quit (Quit: Connection closed for inactivity) 2021-05-16 15:27:08 --> vamiry (~vamiry@145.37-191-143.fiber.lynet.no) has joined #python 2021-05-16 15:28:53 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 15:30:10 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 15:30:11 <-- Elodin (~weechat@unaffiliated/padawan) has quit (Ping timeout: 240 seconds) 2021-05-16 15:31:33 DPA I have an async generator function feeding me compressed data (gzip, compress, deflate, br) (I extract that from some HTTP traffic). 2021-05-16 15:31:33 DPA Now I need some decoder to feed that data to, and some way to get any decrypted data as soon possible, so I can yield the decoded data. 2021-05-16 15:31:33 DPA In other words, I want to make an async generator decoding and then returning stuff it got from another async generator. 2021-05-16 15:32:03 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 15:32:23 --> Elodin (~weechat@unaffiliated/padawan) has joined #python 2021-05-16 15:32:29 <-- zrhoffman (~zrhoffman@5.2.89.83) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 15:34:00 --> qqqhhh (~qqqhhh@94.228.80.243) has joined #python 2021-05-16 15:34:44 --> ranran888813 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 15:36:24 altendky looks like `application.output.get_size()` at least gets some numbers 2021-05-16 15:38:00 --> zrhoffman (~zrhoffman@5.2.89.83) has joined #python 2021-05-16 15:39:09 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 245 seconds) 2021-05-16 15:39:44 --> wymillerlinux (~wyatt@096-042-164-072.res.spectrum.com) has joined #python 2021-05-16 15:39:44 -- Topic for #python is "Anything about Python is on-topic. Don't paste, use https://bpaste.net/+python | Be nice. The Python CoC applies: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops are at #python-ops | #python-fr #python.de #python-uk #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu" 2021-05-16 15:39:44 -- Topic set by nedbat (~nedbat@python/psf/nedbat) on Wed, 19 Aug 2020 16:18:59 2021-05-16 15:39:44 -- Channel #python: 1643 nicks (0 ops, 0 voices, 1643 normals) 2021-05-16 15:39:48 -- Channel created on Sun, 26 Nov 2006 01:42:41 2021-05-16 15:39:54 --> pbrunier (~pbrunier@84-24-22-131.cable.dynamic.v4.ziggo.nl) has joined #python 2021-05-16 15:40:02 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-16 15:40:15 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 15:40:23 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-16 15:42:47 --> wymillerlinux (~wyatt@096-042-164-072.res.spectrum.com) has joined #python 2021-05-16 15:42:47 -- Topic for #python is "Anything about Python is on-topic. Don't paste, use https://bpaste.net/+python | Be nice. The Python CoC applies: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops are at #python-ops | #python-fr #python.de #python-uk #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu" 2021-05-16 15:42:47 -- Topic set by nedbat (~nedbat@python/psf/nedbat) on Wed, 19 Aug 2020 16:18:59 2021-05-16 15:42:47 -- Channel #python: 1645 nicks (0 ops, 0 voices, 1645 normals) 2021-05-16 15:42:51 -- Channel created on Sun, 26 Nov 2006 01:42:41 2021-05-16 15:43:23 <-- guriya (a0ee4bcd@unaffiliated/guriya) has quit (Quit: Connection closed) 2021-05-16 15:44:22 <-- Wafficus (~Wafficus@70.126.240.148) has quit (Quit: WeeChat 3.0.1) 2021-05-16 15:44:29 --> Deyaa (uid190709@gateway/web/irccloud.com/x-shrqukytimthphtj) has joined #python 2021-05-16 15:45:12 <-- zrhoffman (~zrhoffman@5.2.89.83) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 15:46:31 DPA I figured it out, it seams at least for gzip, compress and deflate, I can probably use zlib. 2021-05-16 15:48:33 --> zrhoffman (~zrhoffman@5.2.89.83) has joined #python 2021-05-16 15:48:40 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-16 15:49:33 --> voussoir (2f953252@47.149.50.82) has joined #python 2021-05-16 15:51:01 <-- ranran888813 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 15:51:18 <-- BinaryVixen899 (~BinaryVix@75.172.189.47) has quit (Remote host closed the connection) 2021-05-16 15:51:34 axisys how do I send a byte-like object? https://dpaste.org/uXOr/slim 2021-05-16 15:52:01 bjs axisys: s.send(request.encode("utf-8")) # for e.g. 2021-05-16 15:52:32 <-- irc_user (uid423822@gateway/web/irccloud.com/x-yvitkxefbvxrtdup) has quit (Quit: Connection closed for inactivity) 2021-05-16 15:52:40 axisys bjs: ok 2021-05-16 15:52:51 bjs axisys: some_str.encode(some_encoding) takes text (a str) and turns it into a `bytes` object, which things like sockets and files can read/write. 2021-05-16 15:53:18 --> BinaryVixen899 (~BinaryVix@75.172.189.47) has joined #python 2021-05-16 15:53:19 axisys bjs: thanks a lot! 2021-05-16 15:55:07 --> brickfat (~brickfat@unaffiliated/brickfat) has joined #python 2021-05-16 15:56:15 <-- voussoir (2f953252@47.149.50.82) has quit (Quit: Connection closed) 2021-05-16 15:56:36 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-16 15:57:00 <-- SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has quit (Ping timeout: 252 seconds) 2021-05-16 15:59:11 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 16:01:06 stealth_ axisys, `request = f"GET {path} HTTP/1.0\r\n\r\n".encode()` 2021-05-16 16:01:38 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-16 16:02:15 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-16 16:03:03 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 16:03:18 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-16 16:03:21 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 16:03:31 <-- Mechanismus (~LabMonkey@2602:306:cf62:e270:a5b7:8754:231b:5e70) has quit (Ping timeout: 250 seconds) 2021-05-16 16:05:20 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-16 16:06:01 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-16 16:06:10 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-16 16:07:56 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-16 16:10:03 <-- philh (~philh@mue-88-130-57-202.dsl.tropolys.de) has quit (Remote host closed the connection) 2021-05-16 16:11:08 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-16 16:12:47 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 16:12:56 --> ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has joined #python 2021-05-16 16:13:22 <-- monteh (~monteh@dyn-192-249-131-133.nexicom.net) has quit (Remote host closed the connection) 2021-05-16 16:14:59 --> won (4b540119@075-084-001-025.res.spectrum.com) has joined #python 2021-05-16 16:15:08 <-- Haxxa (~Haxxa@122-199-4-253.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-05-16 16:15:12 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 240 seconds) 2021-05-16 16:15:42 <-- won (4b540119@075-084-001-025.res.spectrum.com) has left #python 2021-05-16 16:16:17 <-- finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Remote host closed the connection) 2021-05-16 16:16:50 --> finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-16 16:17:11 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Ping timeout: 240 seconds) 2021-05-16 16:17:57 RandomGuyOnIrc I downloaded this code https://www.yahoo.com/news/t-talks-combine-content-assets-140611696.html, put in my own keys, and tried to run it. My cursor changes to a plus, +, and it seems to be waiting for my to highlight something. The code never executes. Can anyone suggest how I can get it to run the way it was originally described here: 2021-05-16 16:18:02 RandomGuyOnIrc https://medium.com/citrispolicylab/a-simple-guide-to-scrape-tweets-using-python-ba7c691b6efa It is supposed to create a csv file of tweets. If I ctrl-c to exit out, I get this error: https://medium.com/citrispolicylab/a-simple-guide-to-scrape-tweets-using-python-ba7c691b6efa 2021-05-16 16:18:38 <-- __marco (~marco@195.218.6.205) has quit (Ping timeout: 252 seconds) 2021-05-16 16:18:38 RandomGuyOnIrc ooops, this error: https://termbin.com/s1n2 2021-05-16 16:19:09 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Read error: Connection reset by peer) 2021-05-16 16:19:29 <-- Anarchic (~Anarchic@getlegit.co.uk) has quit (Quit: ZNC - http://znc.in) 2021-05-16 16:19:45 --> Anarchic (~Anarchic@getlegit.co.uk) has joined #python 2021-05-16 16:19:48 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 16:20:43 --> Guddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-16 16:21:34 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-16 16:21:49 <-- freebench (~freebench@92.253.251.226) has quit (Ping timeout: 265 seconds) 2021-05-16 16:22:02 --> Haxxa (~Haxxa@122-199-4-253.ip4.superloop.com) has joined #python 2021-05-16 16:22:48 --> daex_ (daex@gateway/vpn/protonvpn/daex) has joined #python 2021-05-16 16:22:49 <-- spiri (~spiri@unaffiliated/spiri) has quit (Quit: Leaving) 2021-05-16 16:23:17 nedbat RandomGuyOnIrc: can you link us to your actual code? 2021-05-16 16:23:37 <-- daex (daex@gateway/vpn/protonvpn/daex) has quit (Ping timeout: 252 seconds) 2021-05-16 16:24:02 Yhg1s RandomGuyOnIrc: you're running a .py file without a shebang line. It's not actually executing it as Python, but as shell, and 'import' is a command that does screen grabbing. 2021-05-16 16:24:40 Yhg1s RandomGuyOnIrc: add a shebang line to the .py file, or run it with 'python3 python_Twitter_scrap.py'. 2021-05-16 16:25:17 RandomGuyOnIrc Yhg1s: silly me. thanks 2021-05-16 16:25:35 RandomGuyOnIrc nedbat: that is my actual code, exept I have my keys in there 2021-05-16 16:25:59 --> Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has joined #python 2021-05-16 16:26:22 Yhg1s RandomGuyOnIrc: your 'this code' link is a Yahoo article on a merger of AT&T and Discovery. 2021-05-16 16:26:29 <-- gitesh (uid423739@gateway/web/irccloud.com/x-lpugkrgrvdgphudw) has quit (Quit: Connection closed for inactivity) 2021-05-16 16:27:21 --> padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has joined #python 2021-05-16 16:27:22 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Quit: Zzzzzz.....) 2021-05-16 16:27:26 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-16 16:27:44 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-16 16:28:09 RandomGuyOnIrc ooops 2021-05-16 16:28:13 RandomGuyOnIrc sigh 2021-05-16 16:28:30 RandomGuyOnIrc https://github.com/Nonnecke/ScrapingTweets/blob/master/python_Twitter_scrape 2021-05-16 16:28:34 RandomGuyOnIrc thaat is the code 2021-05-16 16:28:45 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 260 seconds) 2021-05-16 16:29:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 16:29:18 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-16 16:30:18 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Quit: Leaving) 2021-05-16 16:30:55 <-- Sheilong (uid293653@gateway/web/irccloud.com/x-azmheisgydotdkpn) has quit 2021-05-16 16:31:26 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 240 seconds) 2021-05-16 16:31:27 <-- NomadJim_ (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Quit: Leaving) 2021-05-16 16:32:01 <-- JavaBean (~JavaBean@178.sub-174-238-7.myvzw.com) has quit (Ping timeout: 260 seconds) 2021-05-16 16:32:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 16:32:34 <-- ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has quit (Ping timeout: 252 seconds) 2021-05-16 16:32:46 <-- aslicedbanjo (~aslicedba@host86-150-115-145.range86-150.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-16 16:33:23 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 260 seconds) 2021-05-16 16:33:34 <-- blip- (~blip-@unaffiliated/blip-) has quit (Quit: Leaving) 2021-05-16 16:34:04 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-16 16:36:39 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 245 seconds) 2021-05-16 16:36:48 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-16 16:39:09 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-16 16:39:41 <-- padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-16 16:40:32 --> NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-16 16:40:34 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-16 16:41:30 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Quit: jelmer) 2021-05-16 16:41:42 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-16 16:44:45 <-- juuandyy (~juuandyy@90.106.228.121) has quit (Quit: Konversation terminated!) 2021-05-16 16:45:18 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-16 16:45:34 <-- mossman93 (~quassel@unaffiliated/mossman93) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-16 16:45:39 <-- vamiry (~vamiry@145.37-191-143.fiber.lynet.no) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-16 16:45:46 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 16:45:50 --> JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has joined #python 2021-05-16 16:46:00 --> mossman93 (~quassel@unaffiliated/mossman93) has joined #python 2021-05-16 16:46:16 <-- JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has quit (Max SendQ exceeded) 2021-05-16 16:46:50 --> JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has joined #python 2021-05-16 16:47:16 <-- JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has quit (Max SendQ exceeded) 2021-05-16 16:47:53 --> JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has joined #python 2021-05-16 16:48:40 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-16 16:49:16 --> Ouranos (~Saturn@cpe-76-170-69-102.socal.res.rr.com) has joined #python 2021-05-16 16:49:24 <-- Jerrynicki (~niklas@p200300f577304d004e155dde8a46bd65.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-16 16:49:42 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 16:49:51 <-- x7b (~ffe4@i59F7FF6F.versanet.de) has quit (Ping timeout: 265 seconds) 2021-05-16 16:52:29 Ouranos hi! 2021-05-16 16:52:36 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 16:53:16 graingert RandomGuyOnIrc: there's no #! 2021-05-16 16:53:22 nedbat Ouranos: hi! 2021-05-16 16:53:43 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 16:53:57 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-16 16:53:59 Ouranos I started doing some python on sololearn and I think my weakness is that I don't have enough problems to solve as I learn code. 2021-05-16 16:54:10 Ouranos Any places where I can practice little problems and get feedback like on sololeanr? 2021-05-16 16:54:21 --> Hanii (~Hanii@2a00:23c5:c587:6d00:dd6:77f4:84ed:4cae) has joined #python 2021-05-16 16:55:05 <-- kosh (~kosh@p200300d08f43d1004c3f412e57febaa9.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-16 16:55:10 <-- gelignite (~gelignite@55d4b9d7.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-16 16:55:26 stormbytes is there really no one-line, simple way to convert a json string into a class-like object in python? 2021-05-16 16:55:48 stormbytes I'm thinking something like JSON.parse() 2021-05-16 16:55:48 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-16 16:56:03 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-16 16:57:01 <-- blackleitus (~blackleit@189.195.192.244) has quit (Read error: Connection reset by peer) 2021-05-16 16:57:12 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 16:57:34 phy1729 json.loads 2021-05-16 16:57:42 nedbat stormbytes: you can turn it into a list/dict structure with json.load or json.loads 2021-05-16 16:58:15 graingert stormbytes: cattrs, pydantic and marshmallow are good choices 2021-05-16 16:58:34 stormbytes I saw that, was looking for an object with attributes accessed through .notation 2021-05-16 16:58:55 nedbat stormbytes: graingert's answer has libraries that can help with that. 2021-05-16 16:58:55 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 16:59:00 graingert Yeah so make a class with @attr.frozen and cattrs can fill it in for you 2021-05-16 16:59:15 <-- xrogaan (~xrogaan@unaffiliated/xrogaan) has quit (Quit: Leaving) 2021-05-16 16:59:34 stormbytes graingert why would I need to make a class? 2021-05-16 16:59:47 graingert To populate it with unstructured data 2021-05-16 17:00:07 graingert Or semi-structured data 2021-05-16 17:00:20 --> tempate (~tempate@unaffiliated/tempate) has joined #python 2021-05-16 17:00:30 nedbat stormbytes: there are also libraries that make the dot access automatic, like https://pypi.org/project/dotmap/ 2021-05-16 17:00:41 <-- esselfe (~steph@unaffiliated/esselfe) has quit (Ping timeout: 240 seconds) 2021-05-16 17:01:18 graingert But it's not very idiomatic 2021-05-16 17:01:25 nedbat graingert: how do you mean? 2021-05-16 17:01:26 <-- emet-selch (~quassel@2601:204:d880:6590:75f7:85b6:6266:2192) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-16 17:01:32 stormbytes nedbat yeah like that, dotmap 2021-05-16 17:01:32 graingert And will confuse tooling and anyone reading the code 2021-05-16 17:01:48 stormbytes confuse the tooling? 2021-05-16 17:01:55 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 17:01:55 nedbat graingert: I think stormbytes is looking for ad-hoc loading of json, not populating defined classes. 2021-05-16 17:01:57 graingert People expect . lookups to work differently than object subscript 2021-05-16 17:02:20 stormbytes In this day and age not to have a way of converting json into a dot-accessible object seems a bit out of date 2021-05-16 17:02:25 graingert stormbytes: eg mypy and pylint 2021-05-16 17:02:34 nedbat stormbytes: let's please not go down this path. 2021-05-16 17:02:37 --> esselfe (~steph@unaffiliated/esselfe) has joined #python 2021-05-16 17:02:39 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 17:02:40 stormbytes ok 2021-05-16 17:02:45 graingert stormbytes: people have different expectations of what [ and . do 2021-05-16 17:02:48 nedbat stormbytes: there are definitely libraries that will do what you want. 2021-05-16 17:02:58 stormbytes that'll work 2021-05-16 17:03:12 nedbat stormbytes: JS treats [ and . the same. Python does not. 2021-05-16 17:03:25 graingert This is a feature not an impediment 2021-05-16 17:03:53 stormbytes look, i'm just wanting to get from point-a, to point b. 2021-05-16 17:04:00 graingert Yeah we know! 2021-05-16 17:04:03 nedbat stormbytes: JS has some pain because of their choice, and Python has some pain because of theirs 2021-05-16 17:04:14 stormbytes just seems like everything so far needs a 2 year comp-sci degree to appreciate. 2021-05-16 17:04:20 nedbat stormbytes: it turns out there will be some learning along the way from a to b. 2021-05-16 17:04:21 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-16 17:04:22 graingert But you will be subverting the expectations of the people reading your code 2021-05-16 17:04:26 stormbytes I'm more a whopper kind of guy 2021-05-16 17:04:36 nedbat stormbytes: whopper? 2021-05-16 17:04:44 stormbytes whopper = burger king 2021-05-16 17:04:51 nedbat stormbytes: burger flipper 2021-05-16 17:04:56 stormbytes lol no 2021-05-16 17:05:01 stormbytes i mean.. simple, cheap, quick and filling 2021-05-16 17:05:16 nedbat stormbytes: you learned JS at one point. You can learn Python 2021-05-16 17:05:31 stormbytes as opposed to getting dressed, tie and all, going to some fancy french place, can't even read the menu much less understand anything 2021-05-16 17:05:33 <-- stealth_ (~stealth_@216-197-160-97.regn.static.sasknet.sk.ca) has quit (Quit: Leaving) 2021-05-16 17:05:40 nedbat stormbytes: but we've said this before: it will be different. 2021-05-16 17:05:41 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 17:05:47 stormbytes nedbat I get it. 2021-05-16 17:05:55 graingert You think you want it but you don't 2021-05-16 17:05:55 stormbytes javascript isn't a real language anyway 2021-05-16 17:06:03 graingert JavaScript is pretty great tbh 2021-05-16 17:06:06 nedbat stormbytes: luckily we don't have to debate that. 2021-05-16 17:06:06 stormbytes its cobbled together 2021-05-16 17:06:13 stormbytes lol yeah 2021-05-16 17:06:35 graingert stormbytes: have a go at cattrs, I think you'll like it 2021-05-16 17:06:38 stormbytes I switched over for a couple of reasons: 1) no (usable) ORM in node 2021-05-16 17:06:42 <-- rainy-day (~ak@pool-108-29-193-102.nycmny.fios.verizon.net) has quit (Quit: rainy-day) 2021-05-16 17:06:50 graingert I like typeorm fwiw 2021-05-16 17:06:53 stormbytes 2) I hate-hate-hate-hate-hate the async model and never understood it 2021-05-16 17:07:11 graingert It's just callbacks 2021-05-16 17:07:15 graingert It's not that bad 2021-05-16 17:07:27 nedbat graingert: does cattrs have a way to create objects without defining the class first? That is, from ad-hoc JSON? 2021-05-16 17:07:42 stormbytes my brain can't process async. I don't understand how to structure the code, how to plan/see it. 2021-05-16 17:07:49 graingert No you need to define the classes 2021-05-16 17:08:08 stormbytes also js has no classes, not really at least 2021-05-16 17:08:12 nedbat graingert: this is the key distinction between what stormbytes is looking for, and what you are suggesting. 2021-05-16 17:08:26 graingert Right I know that 2021-05-16 17:08:32 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-16 17:08:46 nedbat graingert: ok, so you understand why they won't take your suggestion :) 2021-05-16 17:09:01 stormbytes nedbat I was looking for a magic function that turns {"a":"hello","b":"biden"} into foo.a = "hello", foo.b="biden" 2021-05-16 17:09:11 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 260 seconds) 2021-05-16 17:09:17 nedbat stormbytes: right, i know. 2021-05-16 17:09:20 graingert I just think stormbytes will have more fun with cattrs than dotmap 2021-05-16 17:09:21 phy1729 stormbytes: in general (at least while learning a new language) it is often best to conform to the language's conventions rather than forcing it to conform to yours 2021-05-16 17:09:37 --> rainy-day (~ak@pool-108-29-193-102.nycmny.fios.verizon.net) has joined #python 2021-05-16 17:09:54 stormbytes phy1729 that's a fair point, how would you suggest I go about turning a dictionary into a dottable class? 2021-05-16 17:10:18 BrenBarn Why do you need it to be dottable though? 2021-05-16 17:10:18 phy1729 I simply wouldn't and just use the dictionary notation 2021-05-16 17:10:23 <-- Elodin (~weechat@unaffiliated/padawan) has quit (Ping timeout: 268 seconds) 2021-05-16 17:10:27 stormbytes phy1729 I fully get that in the long run I'm not going to have much fun trying to bend python to whatever conventions I am used to. 2021-05-16 17:10:30 BrenBarn Like if you want to get from point A to point B, using dot notation is just a side road 2021-05-16 17:10:50 graingert stormbytes: There's also SimpleNamespace 2021-05-16 17:11:00 stormbytes phy1729 you know, that's probably simpler. 2021-05-16 17:11:06 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-16 17:11:12 stormbytes ok python. you win. 2021-05-16 17:11:19 graingert https://docs.python.org/3/library/types.html#types.SimpleNamespace 2021-05-16 17:11:28 stormbytes python is totally sugar-free, vegan. 2021-05-16 17:11:44 --> vladoski (~vladoski@2001:b07:add:d406:a81d:de32:8d10:4426) has joined #python 2021-05-16 17:11:48 nedbat stormbytes: dotmap does exactly what you want, so you have choices now. 2021-05-16 17:11:51 --> ranran888815 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 17:11:52 stormbytes i guess whatever i need to do, will just see how python wants me to go about it. 2021-05-16 17:11:52 graingert I don't really understand your attitude here stormbytes 2021-05-16 17:11:55 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Remote host closed the connection) 2021-05-16 17:12:06 graingert stormbytes: is that really so bad? 2021-05-16 17:12:09 stormbytes grainbert: ever code any ruby? 2021-05-16 17:12:16 stormbytes *graingert (sorry) 2021-05-16 17:12:18 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 17:12:19 graingert Yeah I'm not keen 2021-05-16 17:12:25 nedbat stormbytes: type this: g r a i 2021-05-16 17:12:38 graingert I don't like the module system 2021-05-16 17:12:45 stormbytes nedbat lol where were you 20 years ago!??!?! 2021-05-16 17:13:09 graingert Pretty sure I told you about tab completion today stormbytes 2021-05-16 17:13:11 stormbytes graingert ruby is just a pleasure to write. Its like using a Mac vs. Linux 2021-05-16 17:13:22 graingert I've been told that 2021-05-16 17:13:29 stormbytes graingert apologies, i must've missed that 2021-05-16 17:13:48 gordonjcp I don't get ruby at all 2021-05-16 17:14:05 gordonjcp I think I got put off trying to learn it for a RoR project where the documentation was terrible 2021-05-16 17:14:27 graingert The RoR docs aren't terrible, it's just that the Django tutorial is excellent 2021-05-16 17:14:33 gordonjcp stormbytes: is Ruby the one where the official documentation was some weirdass comic where a cartoon dog was sad about bad code? 2021-05-16 17:14:35 stormbytes gordonjcp its not about 'getting' ruby, its about the idea of a language that just flows. Its completely consistent, elegant and intuitive. 2021-05-16 17:14:49 stormbytes gordonjcp uhhhh mayeb? 2021-05-16 17:14:50 gordonjcp stormbytes: it's not in any way intuitive, otherwise it wouldn't need a manual 2021-05-16 17:14:58 gordonjcp "Why's Poignant Guide" that was it 2021-05-16 17:15:06 gordonjcp fucking stupid patronising shit 2021-05-16 17:15:22 stormbytes i'm sad that ruby fell out of fashion 2021-05-16 17:15:38 gordonjcp and it seemed like half the documentation was in the form of videos that you had to subscribe to some paid-for site to watch 2021-05-16 17:15:51 stormbytes ruby docs sucked :) 2021-05-16 17:15:54 stormbytes rdocs 2021-05-16 17:16:05 gordonjcp and what wasn't a stupid video of some guy yakking away in a thick accent, was basically unreadable 2021-05-16 17:16:11 stormbytes t'was mostly fueled by the rails craze back in the day 2021-05-16 17:16:26 gordonjcp still 2021-05-16 17:16:28 gordonjcp it's not Java 2021-05-16 17:16:39 gordonjcp so there's that 2021-05-16 17:16:55 stormbytes nedbat graingert i don't plan to swim upstream. Will just stick with dictionaries, but frankly i think dot-notation is more elegant and easier to type 2021-05-16 17:17:07 gordonjcp stormbytes: that's a C-ism 2021-05-16 17:17:15 stormbytes gordonjcp C-ism? 2021-05-16 17:17:18 stormbytes ohh 2021-05-16 17:17:22 stormbytes dot notaiton 2021-05-16 17:17:23 nedbat stormbytes: if you need to access a lot of elements, dot access is nicer, and I use it sometimes on that kind of data. 2021-05-16 17:17:24 gordonjcp stormbytes: if you can teach yourself to not write C code in Python like I do, you'll do okay 2021-05-16 17:17:31 BrenBarn the thing is that like people said before, it's not about elegant and easier, in Python dot and brackets are for different things 2021-05-16 17:17:56 graingert Right it's easier to type because it should be easier for the interpreter to execute. that's why it's harder to do object subscript 2021-05-16 17:18:20 BrenBarn there are libraries that can shunt between one and the other but it's not like JS where they're just different ways of expressing the same thing 2021-05-16 17:18:26 stormbytes BrenBarn I imagine there's a reason for everything. That doesn't take away form the value of elegant design 2021-05-16 17:19:08 BrenBarn Python is a pretty elegant design overall 2021-05-16 17:19:18 stormbytes graingert I'm not following what you're saying about object subscript 2021-05-16 17:19:35 BrenBarn I wouldn't say it's about being easier for the interpreter to execute 2021-05-16 17:19:44 graingert stormbytes: That's the fancy name for [ 2021-05-16 17:19:58 stormbytes ah 2021-05-16 17:20:03 <-- qwedfg (~qwedfg@194.177.28.161) has quit (Quit: ZNC - https://znc.in) 2021-05-16 17:20:21 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-16 17:20:57 --> i5um41ru (~i5um41ru@202.67.37.28) has joined #python 2021-05-16 17:20:59 stormbytes i started out with php some decades ago. Always found that clunky. When I moved to Ruby it felt like I just bought a mac :) 2021-05-16 17:21:02 BrenBarn it's more like `.` is for accessing names from a fixed, closed set (like method names), and `[]` is for accessing an open-ended world of names (like arbitrary data) 2021-05-16 17:21:27 --> qwedfg (~qwedfg@194.177.28.161) has joined #python 2021-05-16 17:22:05 <-- EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has quit (Remote host closed the connection) 2021-05-16 17:23:04 <-- scampbell (~scampbell@mail.scampbell.net) has quit (Quit: Leaving) 2021-05-16 17:23:04 --> EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has joined #python 2021-05-16 17:25:05 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-16 17:25:36 bjs graingert: I mean you know as well as anyone that attribute lookup in Python is more complicated than getitem 2021-05-16 17:26:11 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 17:26:21 --> bolovanos (~bolovanos@unaffiliated/bolovanos) has joined #python 2021-05-16 17:26:30 bjs and as you well know, dot access for method lookups are far from easy for Python to execute ... 2021-05-16 17:26:45 graingert bjs: Depends on the python interpreter 2021-05-16 17:26:45 bjs (as an example) 2021-05-16 17:27:06 graingert Also @attr.frozen which was the "alternative" I suggested is slotted 2021-05-16 17:28:36 <-- stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-16 17:29:08 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 246 seconds) 2021-05-16 17:29:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 17:29:55 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 17:30:35 <-- i5um41ru (~i5um41ru@202.67.37.28) has left #python 2021-05-16 17:30:46 --> peaceguy (~peaceguy@unaffiliated/peaceguy) has joined #python 2021-05-16 17:30:47 <-- Hanii (~Hanii@2a00:23c5:c587:6d00:dd6:77f4:84ed:4cae) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-16 17:30:59 bjs graingert: I'm referring to dot accessing being "easier for the interpreter to execute". If you only meant it with respect to __slots__, then perhaps that should have been more clear so as your comment didn't seem to be overgeneralizing the language? 2021-05-16 17:31:06 --> brutamontes (~brutamont@89.26.182.103) has joined #python 2021-05-16 17:31:17 brutamontes yo any1 avaiable to help me code a bit? 2021-05-16 17:31:35 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-16 17:31:54 peaceguy help you in what way? 2021-05-16 17:31:54 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-16 17:31:56 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-16 17:32:04 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 245 seconds) 2021-05-16 17:32:05 <-- manti7 (~manti7@176.10.104.94) has quit (Quit: WeeChat 3.1) 2021-05-16 17:32:29 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has quit (Ping timeout: 245 seconds) 2021-05-16 17:32:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 17:32:34 brutamontes in this code: https://bpa.st/VPIA 2021-05-16 17:32:49 brutamontes how do i make it do the request hello 2021-05-16 17:32:53 brutamontes on google 2021-05-16 17:33:34 amo {"request_info": {"success": false, "message": "Error whilst validating Search: 'q' parameter is required."}} 2021-05-16 17:33:57 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-16 17:33:59 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-16 17:34:05 brutamontes yeah i saw that 2021-05-16 17:34:09 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Ping timeout: 245 seconds) 2021-05-16 17:34:11 graingert brutamontes: You exposed your API key... 2021-05-16 17:34:16 amo there's your answer 2021-05-16 17:34:18 brutamontes i can change it 2021-05-16 17:34:19 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 265 seconds) 2021-05-16 17:34:20 graingert You should probably make a new one 2021-05-16 17:34:24 <-- al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has quit (Read error: Connection reset by peer) 2021-05-16 17:34:38 brutamontes i have no idea on how to implement the 1 parameter 2021-05-16 17:34:40 brutamontes q* 2021-05-16 17:35:29 brutamontes how can i do it? 2021-05-16 17:35:37 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 17:35:51 amo you could try with a "q": "how fast can a swallow fly" 2021-05-16 17:35:55 amo in your params 2021-05-16 17:36:45 brutamontes "q": "how fast can a swallow fly" 2021-05-16 17:36:45 brutamontes ^ 2021-05-16 17:36:45 brutamontes SyntaxError: invalid syntax 2021-05-16 17:36:52 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-16 17:37:38 amo try with a , at the end of the line 2021-05-16 17:37:42 amo before 2021-05-16 17:38:30 brutamontes thanks 2021-05-16 17:38:30 --> [_] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-16 17:38:34 amo welcome 2021-05-16 17:38:34 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 252 seconds) 2021-05-16 17:39:05 <-- pbrunier (~pbrunier@84-24-22-131.cable.dynamic.v4.ziggo.nl) has quit (Remote host closed the connection) 2021-05-16 17:39:06 --> rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has joined #python 2021-05-16 17:39:59 <-- eicar (~eicar@c-73-59-52-210.hsd1.wa.comcast.net) has quit (Ping timeout: 268 seconds) 2021-05-16 17:40:26 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Quit: Leaving) 2021-05-16 17:42:11 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Ping timeout: 240 seconds) 2021-05-16 17:44:57 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 265 seconds) 2021-05-16 17:45:09 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 17:45:34 <-- ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-16 17:48:11 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 240 seconds) 2021-05-16 17:48:32 --> al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-16 17:48:41 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-16 17:49:16 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-16 17:49:28 <-- ranran888815 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 17:50:52 --> vsantana (~vsantana@fttx-177136149162.usr.predialnet.com.br) has joined #python 2021-05-16 17:51:07 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-16 17:51:11 <-- brickfat (~brickfat@unaffiliated/brickfat) has quit (Ping timeout: 240 seconds) 2021-05-16 17:51:14 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 245 seconds) 2021-05-16 17:52:25 <-- vsantana (~vsantana@fttx-177136149162.usr.predialnet.com.br) has quit (Client Quit) 2021-05-16 17:53:09 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 250 seconds) 2021-05-16 17:53:12 <-- rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has quit (Quit: Connection closed) 2021-05-16 17:53:45 --> rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has joined #python 2021-05-16 17:53:50 <-- esselfe (~steph@unaffiliated/esselfe) has quit (Quit: brb) 2021-05-16 17:56:11 --> sandra_96 (~sandra_96@c-cbc2524e.05-114-6d6c6d5.bbcust.telenor.se) has joined #python 2021-05-16 17:57:05 <-- palasso (~palasso@unaffiliated/palasso) has quit (Remote host closed the connection) 2021-05-16 17:57:12 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 240 seconds) 2021-05-16 17:58:18 --> eicar (~eicar@c-73-59-52-210.hsd1.wa.comcast.net) has joined #python 2021-05-16 17:58:49 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 17:58:52 <-- vladoski (~vladoski@2001:b07:add:d406:a81d:de32:8d10:4426) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-16 18:00:20 CordialCatto what's a good way to deal with multiple options from argparse? is there a better way than using if/else? 2021-05-16 18:00:32 <-- EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has quit (Remote host closed the connection) 2021-05-16 18:00:34 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-16 18:01:23 --> EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has joined #python 2021-05-16 18:02:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 18:04:01 nedbat CordialCatto: what do you mean by multiple options 2021-05-16 18:04:06 <-- blip- (~blip-@unaffiliated/blip-) has quit (Ping timeout: 240 seconds) 2021-05-16 18:05:52 CordialCatto doing different things based on which commandline options are passed to the script/program 2021-05-16 18:06:24 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-16 18:06:43 CordialCatto easy to end up with multiple levels of nested if/else with only 2-3 arguments 2021-05-16 18:06:50 <-- greedom (~greedom@i5E86B33A.versanet.de) has quit (Remote host closed the connection) 2021-05-16 18:06:54 <-- denisse (~denisse@gateway/tor-sasl/alephzer0) has quit (Remote host closed the connection) 2021-05-16 18:06:56 graingert CordialCatto: show an example? 2021-05-16 18:07:13 --> denisse (~denisse@gateway/tor-sasl/alephzer0) has joined #python 2021-05-16 18:07:15 <-- JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has quit (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) 2021-05-16 18:07:21 <-- lakrass (~lakrass@5.18.84.94) has quit (Client Quit) 2021-05-16 18:08:33 CordialCatto let's say I pass three arguments - x, y, z - and each can have multiple values, say 0-4, and then I want my program to do different things based on these values and combinations 2021-05-16 18:08:44 graingert show your code? 2021-05-16 18:10:15 <-- CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has quit (Quit: Leaving) 2021-05-16 18:10:28 CordialCatto https://bpa.st/TMZQ 2021-05-16 18:10:54 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-16 18:10:55 --> ivan_ (~ivan18m@unaffiliated/ivan18m) has joined #python 2021-05-16 18:11:08 <-- [_] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Quit: Leaving) 2021-05-16 18:11:14 graingert CordialCatto: 2021-05-16 18:11:15 graingert https://refactoring.com/catalog/replaceNestedConditionalWithGuardClauses.html 2021-05-16 18:14:26 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:8486:520d:b4c0:4809) has joined #python 2021-05-16 18:14:34 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has quit (Ping timeout: 245 seconds) 2021-05-16 18:18:41 <-- finkata1 (~finkata@83.222.188.39) has quit (Ping timeout: 240 seconds) 2021-05-16 18:19:07 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 252 seconds) 2021-05-16 18:19:20 --> ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has joined #python 2021-05-16 18:19:24 --> Mechanismus (~LabMonkey@2602:306:cf62:e270:25ea:b4ff:3664:6d8d) has joined #python 2021-05-16 18:19:28 CordialCatto perhaps I can replace some for-loops with a list comprehension? [print(x) for x in y], but not sure how to simplify more 2021-05-16 18:19:47 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-16 18:20:18 --> yeticheese (~yetichees@185.240.244.190) has joined #python 2021-05-16 18:20:47 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-16 18:21:25 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-16 18:21:35 <-- rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has quit (Quit: Connection closed) 2021-05-16 18:21:50 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-16 18:22:32 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 18:22:43 --> NoTropical (uid500128@gateway/web/irccloud.com/x-frprtcalunkgtkgi) has joined #python 2021-05-16 18:22:56 amo which format do you prefer when adding metadata to single modules? __author__ var? epydoc style in module docstring? reStructuredText? 2021-05-16 18:23:13 --> jamea (~jak2000@177.239.80.39) has joined #python 2021-05-16 18:24:05 <-- trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-16 18:24:09 <-- al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 245 seconds) 2021-05-16 18:24:42 <-- Deyaa (uid190709@gateway/web/irccloud.com/x-shrqukytimthphtj) has quit (Quit: Connection closed for inactivity) 2021-05-16 18:26:02 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 265 seconds) 2021-05-16 18:26:04 --> al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-16 18:26:59 <-- LucaTM (~LucaTM@unaffiliated/lucatm) has quit (Quit: To infinity and beyond...) 2021-05-16 18:28:04 graingert amo: None of the above? 2021-05-16 18:28:31 graingert amo: PEP 621 metadata or bust 2021-05-16 18:28:43 graingert amo: the __version__ pep died 2021-05-16 18:28:53 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.1) 2021-05-16 18:28:53 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 18:28:59 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 18:29:04 graingert And technically you're not allowed to use __variables__ without explicit permission 2021-05-16 18:29:19 --> wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has joined #python 2021-05-16 18:30:09 brutamontes How to do a increment on the page value? so that each result is from page 2 - 3 - 4 2021-05-16 18:30:10 brutamontes tried these, neither worked: https://bpa.st/ZV2A - https://bpa.st/H2MA 2021-05-16 18:30:37 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 18:30:53 jamea hi all 2021-05-16 18:30:59 brutamontes hi 2021-05-16 18:31:04 --> schumaml (~schumaml@dslb-188-105-193-002.188.105.pools.vodafone-ip.de) has joined #python 2021-05-16 18:31:06 jamea i use kivy why: https://paste.debian.net/1197813/ return nothing? UrlRequest(link but requests.get(link) return the correct response? 2021-05-16 18:31:19 amo And technically you're not allowed to use __variables__ without explicit permission <- care to explain? 2021-05-16 18:31:43 jamea graingert any advice? 2021-05-16 18:31:58 --> Lindisfarne (~Lin@gateway/tor-sasl/lindisfarne) has joined #python 2021-05-16 18:32:14 brutamontes simple thing: How to do a increment on the page value? so that each result is from page 2 - 3 - 4 tried these, neither worked: https://bpa.st/ZV2A https://bpa.st/H2MA 2021-05-16 18:32:16 <-- sazawal (~sazawal@2409:4043:2e13:7bc:4815:ecc8:e47:925a) has quit (Quit: Leaving) 2021-05-16 18:32:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 18:32:32 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 18:32:43 amo also, i don't see how https://www.python.org/dev/peps/pep-0287/ has become obsolete only because of yet another metadata format 2021-05-16 18:34:04 amo plus, there's http://web.archive.org/web/20111010053227/http://jaynes.colorado.edu/PythonGuidelines.html#module_formatting 2021-05-16 18:34:12 Yhg1s graingert: 'technically' according to what? xD 2021-05-16 18:34:15 <-- gmaggior (~gmaggior_@host-79-47-177-110.retail.telecomitalia.it) has quit (Quit: Leaving) 2021-05-16 18:34:50 brutamontes any help? 2021-05-16 18:35:00 --> shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has joined #python 2021-05-16 18:35:06 CordialCatto brutamontes: add this to loop - params['page'] = lis[i], remove i += 2 2021-05-16 18:35:18 graingert > Any use of __*__ names, in any context, that does not follow explicitly documented use, is subject to breakage without warning. 2021-05-16 18:35:30 graingert https://docs.python.org/3/reference/lexical_analysis.html#reserved-classes-of-identifiers 2021-05-16 18:35:37 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-16 18:35:39 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has quit (Ping timeout: 260 seconds) 2021-05-16 18:36:28 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-16 18:36:46 --> nanobist3 (~nanobist@unaffiliated/nanobist) has joined #python 2021-05-16 18:36:54 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-16 18:37:02 graingert jamea: It's async so you only get the result in the callback, use httpx.AsyncClient for an async def interface 2021-05-16 18:37:13 graingert Yhg1s: ^ the docs 2021-05-16 18:38:14 graingert amo: https://www.python.org/dev/peps/pep-0396/ got rejected recently 2021-05-16 18:38:16 ammar2 huh, interesting 2021-05-16 18:38:20 <-- nanobist (~nanobist@unaffiliated/nanobist) has quit (Ping timeout: 252 seconds) 2021-05-16 18:38:21 -- nanobist3 is now known as nanobist 2021-05-16 18:38:28 <-- dub_a (~dub_a@192.252.212.45) has quit (Quit: WeeChat 3.1) 2021-05-16 18:38:32 ammar2 I wonder what sort of breakage could happen with custom dunder names 2021-05-16 18:38:39 <-- wallacer (~quassel@2001:bc8:1824:9a:cafe:babe:b00b:aa01) has quit (Read error: Connection reset by peer) 2021-05-16 18:39:06 graingert PEP8 implies existence of __version__ and __author__ but in actual fact they're reserved by the interpreter 2021-05-16 18:39:07 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-16 18:39:41 graingert PEP 621 is the way of defining metadata 2021-05-16 18:39:42 --> maxwilliamson (~maxwillia@gateway/tor-sasl/maxwilliamson) has joined #python 2021-05-16 18:39:52 --> wallacer (~quassel@2001:bc8:1824:9a:cafe:babe:b00b:aa01) has joined #python 2021-05-16 18:39:57 Yhg1s graingert: 'subject to breakage' isn't the same as 'you need permission 2021-05-16 18:40:16 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 18:40:21 <-- maxwilli- (~maxwillia@gateway/tor-sasl/maxwilliamson) has quit (Ping timeout: 240 seconds) 2021-05-16 18:40:39 amo sounds more like "if you use it and it breaks, it's your fault, not ours" 2021-05-16 18:40:39 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-16 18:40:52 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 18:41:02 graingert Right but it's literally inadvisable 2021-05-16 18:41:18 --> trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has joined #python 2021-05-16 18:42:05 <-- dub_a (~dub_a@192.252.212.45) has quit (Client Quit) 2021-05-16 18:42:19 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-16 18:42:29 graingert Imho cPython should document and acknowledge that __author__ and __version__ are old names used by old modules squatting names they had no right to but cPython won't ever break them 2021-05-16 18:43:08 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-16 18:43:11 graingert And __table_name__ 2021-05-16 18:43:17 <-- contingo (~textual@213.205.200.36) has quit (Quit: My supercomputing cluster has gone to sleep. ZZZzzz…) 2021-05-16 18:44:00 --> azed (~azed@196.230.0.52) has joined #python 2021-05-16 18:44:33 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Remote host closed the connection) 2021-05-16 18:45:21 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 268 seconds) 2021-05-16 18:46:17 <-- honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-16 18:46:36 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 260 seconds) 2021-05-16 18:46:52 graingert There should be a little dunder amnesty 2021-05-16 18:47:18 graingert And anyone can admit to their squatting and get them permitted, but after that no more 2021-05-16 18:47:57 <-- ivan_ (~ivan18m@unaffiliated/ivan18m) has quit (Remote host closed the connection) 2021-05-16 18:48:06 brutamontes CordialCatto: that only imcrements on the 2-3 run the 1 and 2 are the same 2021-05-16 18:48:26 <-- Vornicus (~Vornicus@2603-8000-5d07-7ef0-316b-add4-c961-a02b.res6.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-16 18:50:04 jamea graingert: you recommend use httpx.AsyncClient replacing : UrlRequest(link ? 2021-05-16 18:50:22 Yhg1s graingert: or, we'll just let everyone do whatever and if CPython has a need for something new, we pick something that doesn't cause problems in any well-known package.c 2021-05-16 18:50:56 graingert jamea: yes UrlRequest seems callback based? 2021-05-16 18:51:11 graingert jamea: and you're using async defs elsewhere? 2021-05-16 18:51:26 graingert Yhg1s: well the docs should be updated regardless 2021-05-16 18:51:27 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 18:51:46 --> esselfe (~steph@unaffiliated/esselfe) has joined #python 2021-05-16 18:52:11 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-16 18:52:37 CordialCatto brutamontes: https://bpa.st/S3XA, depends on if pages begin at 0 or 1, if 1 then add 1 to i 2021-05-16 18:54:08 --> contingo (~textual@213.205.200.36) has joined #python 2021-05-16 18:54:19 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Read error: Connection reset by peer) 2021-05-16 18:54:21 <-- finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Ping timeout: 240 seconds) 2021-05-16 18:55:29 graingert jamea: You could do: https://www.irccloud.com/pastebin/5zlsrR7R 2021-05-16 18:55:37 graingert But httpx seems easier to me 2021-05-16 18:55:55 <-- contingo (~textual@213.205.200.36) has quit (Quit: My supercomputing cluster has gone to sleep. ZZZzzz…) 2021-05-16 18:56:23 --> Nact (~l@host-85-27-120-35.dynamic.voo.be) has joined #python 2021-05-16 18:56:31 <-- LordRyan (~ryan@hashbang/bdfl) has quit (Ping timeout: 252 seconds) 2021-05-16 18:56:33 jamea ok, thanks 2021-05-16 18:57:04 <-- amahl (~amahl@dxv5skybqt2pqmn0mwyny-3.rev.dnainternet.fi) has quit (Ping timeout: 245 seconds) 2021-05-16 18:57:46 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-16 18:57:49 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 18:58:03 --> JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has joined #python 2021-05-16 18:58:04 --> finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-16 18:58:18 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 18:58:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 18:58:57 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-16 18:59:03 Samian anyone know of any good audio books for python? 2021-05-16 18:59:19 ranran8888 Strange problem if I run each one separately it works if I run them all I get the two graphs not good https://dpaste.org/32hb 2021-05-16 18:59:31 Samian "you can't have audio books for programming language books" I can already predict people thinking 2021-05-16 18:59:51 --> qomiter (~qomiter@pool-173-64-29-231.bflony.fios.verizon.net) has joined #python 2021-05-16 18:59:54 <-- Nightwing52 (~Thunderbi@67.7.15.187) has quit (Quit: Later!) 2021-05-16 19:00:11 Samian maybe you can't. but so what I like audio books. I like hearing full and complete sentence that form well written paragraphs that form well written chapters on computer science topics. 2021-05-16 19:02:00 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 19:02:45 amo Samian, try talk python to me and python bytes, those are almost as good as audio books 2021-05-16 19:03:10 <-- zfnmxt (~zfnmxt@unaffiliated/zfnmxt) has quit (Quit: Bye!) 2021-05-16 19:03:17 Samian talk python? 2021-05-16 19:03:18 ChrisWarrick Samian: I’d make a distinction between "python books" and "CS books" 2021-05-16 19:03:39 amo Samian, https://talkpython.fm/ 2021-05-16 19:03:52 Samian no podcasts please. podcasts contain language with umm uhh, stutter words, changing sentences mid sentences, etc. 2021-05-16 19:04:06 Samian it's inferior to correct complete sentences 2021-05-16 19:04:12 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-16 19:04:57 CordialCatto maybe use text-to-speech on a python book? :P 2021-05-16 19:05:15 Samian ChrisWarrick, maybe the distinction is appropriate, but it doesn't matter. i want to listen to an audio book on python 2021-05-16 19:05:40 <-- Asmodean (~Asmoedean@178.165.129.12.wireless.dyn.drei.com) has quit (Ping timeout: 265 seconds) 2021-05-16 19:05:47 <-- a6a45081-2b83 (~aditya@171.76.17.86) has quit (Quit: Konversation terminated!) 2021-05-16 19:06:02 ChrisWarrick the distinction is important, because I doubt many audio books on python exist. Audio books on general CS topics might exist, but they would omit any code examples, which would make them less useful than the text version. 2021-05-16 19:06:07 <-- Jormungandr89 (~brad@136.49.61.2) has quit (Quit: Konversation terminated!) 2021-05-16 19:07:11 --> Asmodean (~Asmoedean@77.119.129.93.wireless.dyn.drei.com) has joined #python 2021-05-16 19:07:22 Samian ChrisWarrick, on my blinkist app, I'm seeing 5 2021-05-16 19:08:11 brutamontes guys: the way it is, is will always do page=0 page=1 page=2, independently of the values on list, how do make it so that the page is the value in lis respectivaly? https://bpa.st/67KA 2021-05-16 19:08:27 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-16 19:08:41 brutamontes last thing* i promise 2021-05-16 19:09:23 CordialCatto brutamontes: first thing in the loop, look what it does 2021-05-16 19:09:38 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 19:09:38 <-- Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has quit (Quit: Leaving) 2021-05-16 19:09:43 brutamontes looks for the value in lis 2021-05-16 19:09:50 CordialCatto nope 2021-05-16 19:09:57 --> Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has joined #python 2021-05-16 19:10:02 brutamontes range len 2021-05-16 19:10:05 brutamontes » 2021-05-16 19:10:06 brutamontes ? 2021-05-16 19:10:08 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 19:10:10 --> LordRyan (~ryan@hashbang/bdfl) has joined #python 2021-05-16 19:10:12 CordialCatto below that 2021-05-16 19:10:19 brutamontes params['page'] = i 2021-05-16 19:10:30 <-- lejocelyn (~lejocelyn@2a02:8109:8880:10ec::295e) has quit (Quit: lejocelyn) 2021-05-16 19:10:50 --> oznt (~oznt@vmd62887.contaboserver.net) has joined #python 2021-05-16 19:11:18 brutamontes so the value in lis is discarted 2021-05-16 19:11:20 oznt Hi Guys, I have a problem with Python3.X in gentoo, which I find even hard to formulate. Python2 does not have the issue and Python3 on ubuntu also. Here is a paste: https://pastebin.com/uce4GFEb. Can you tell why am I getting * NameError: name 'E' is not defined in Python3 but not in Python2? 2021-05-16 19:11:22 infobob https://bpaste.net/NGPA (repasted for oznt) 2021-05-16 19:11:57 --> ranran888822 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 19:12:16 oznt just to make sure, it's not only an issue with Gentoo. I compiled Python3.9 from sources, and I have the same issue. I can't access the last variable in the Exception block 2021-05-16 19:12:25 --> Gudddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-16 19:13:04 graingert oznt: Python 3 deletes the exception 2021-05-16 19:13:06 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 240 seconds) 2021-05-16 19:13:24 <-- Gudddu (~Guddu@unaffiliated/guddu) has quit (Remote host closed the connection) 2021-05-16 19:13:26 <-- brutamontes (~brutamont@89.26.182.103) has quit (Remote host closed the connection) 2021-05-16 19:13:51 graingert https://www.irccloud.com/pastebin/aUCeTnUc/foo.py 2021-05-16 19:13:57 graingert oznt: ^ like that 2021-05-16 19:14:15 <-- bazul (bazul@38.189.189.46.rev.vodafone.pt) has quit (Remote host closed the connection) 2021-05-16 19:14:27 oznt https://stackoverflow.com/questions/38672560/why-cant-pdb-access-a-variable-containing-an-exception 2021-05-16 19:14:31 --> Gudddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-16 19:14:33 oznt found this too 2021-05-16 19:14:41 oznt that's a real new thing to me 2021-05-16 19:14:43 graingert oznt: Because e.__traceback__ would result in a cycle preventing GC 2021-05-16 19:14:54 <-- Gudddu (~Guddu@unaffiliated/guddu) has quit (Remote host closed the connection) 2021-05-16 19:14:56 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 19:15:20 graingert Not sure why pdb exits the block 2021-05-16 19:15:22 <-- Guddu (~Guddu@unaffiliated/guddu) has quit (Ping timeout: 252 seconds) 2021-05-16 19:15:26 --> Xano (~Xano@159.48.55.35) has joined #python 2021-05-16 19:15:33 --> Gudddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-16 19:15:40 oznt itesting to know that Ubunutu's Pdb does not behave like ... 2021-05-16 19:15:44 oznt itesting to know that Ubunutu's Pdb does not behave like this ... 2021-05-16 19:16:14 --> Guddddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-16 19:16:20 Samian Anyone know of a good interactive site for learning python? I want to literally memorize the python language. I'm tired of looking stuff up like, for example, writing a 2d array of numbers to a text file. I want to have memorized how to do that. 2021-05-16 19:16:54 Samian the difference in productivity will be like the difference between me trying to speak french looking each word up in a translation dictionary versus speaking french after learning to speak french fluently. I think my productivity will 10x 2021-05-16 19:16:56 oznt Samian, just write a lot of code. This will become natural 2021-05-16 19:17:44 --> cjb (~cjb@unaffiliated/cjbayliss) has joined #python 2021-05-16 19:17:53 Samian oznt, no I disagree. I think focusing on specific topics one at a time will cause me to memorize faster. 2021-05-16 19:18:03 <-- Deep6 (~Deep6@fixed-187-191-36-13.totalplay.net) has quit (Remote host closed the connection) 2021-05-16 19:18:03 Samian oznt, for example, specifically focusing on file i/o 2021-05-16 19:18:35 Samian write characters to file. write numbers to use. Use the "with" statement. Do it without using the with statement. use 'r'. use 'w' in the open statement. Write an example using every option 2021-05-16 19:18:59 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-16 19:19:11 Samian so a weekending focusing on nothing but file i/o will engrain it into my memory faster than disorganized look-it-up-as-I-need-it coding. 2021-05-16 19:19:59 <-- Gudddu (~Guddu@unaffiliated/guddu) has quit (Ping timeout: 245 seconds) 2021-05-16 19:20:08 <-- Guddddu (~Guddu@unaffiliated/guddu) has quit (Client Quit) 2021-05-16 19:20:08 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 19:20:32 ranran8888 Strange problem if I run each one separately it works if I run them all I get the two graphs not good https://dpaste.org/8CeX 2021-05-16 19:21:04 --> psichi (~psichi@149.233.40.129) has joined #python 2021-05-16 19:21:51 <-- vimal (~vimal@2a02:a210:9600:600:b2bb:d4af:62bd:3295) has quit (Ping timeout: 260 seconds) 2021-05-16 19:22:13 Ninpo https://bpa.st/RA4Q hey what's going on here? 2021-05-16 19:22:24 --> Guddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-16 19:23:03 Ninpo E is defined in Python 2.7.18 in pdb 2021-05-16 19:23:07 psichi Hello. I have a program written which plots multiple graphs and shows them in different figures at the end because of plt.show(). However I want to now save all the graphs instead of viewing them? How do I do this such that the program saves them to storage maybe by the title for each graph? Or even numbered would be fine 2021-05-16 19:23:19 <-- azed (~azed@196.230.0.52) has quit (Quit: WeeChat 3.1) 2021-05-16 19:23:23 <-- securethemews (~securethe@2a00:23c4:1e98:8f00::4) has quit (Quit: Leaving) 2021-05-16 19:23:50 <-- ranran888822 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 19:24:15 --> leduyquang753 (~leduyquan@27.73.107.184) has joined #python 2021-05-16 19:27:22 --> Wulf4 (~Wulf@unaffiliated/wulf) has joined #python 2021-05-16 19:27:28 <-- yeticheese (~yetichees@185.240.244.190) has quit (Ping timeout: 252 seconds) 2021-05-16 19:29:10 psichi https://bpa.st/RFZQ 2021-05-16 19:29:10 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 19:29:13 <-- peaceguy (~peaceguy@unaffiliated/peaceguy) has quit (Quit: leaving) 2021-05-16 19:29:49 psichi Is there something I can do like the plt.show() at the end which would save all the 12 figures instead of showing them? 2021-05-16 19:30:45 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 260 seconds) 2021-05-16 19:30:46 -- Wulf4 is now known as Wulf 2021-05-16 19:31:51 Samian Given what I said about creating a python-file-io minibootcamp for myself, how should I go about doing it? Should I create a git repo, and have a bunch of single-file python scripts at the top level? 2021-05-16 19:32:15 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 265 seconds) 2021-05-16 19:32:32 Samian should I perhaps have a single __main__ entry point, and make each program into a function I call? I comment/uncomment the functions I want to run? 2021-05-16 19:32:42 graingert Ninpo: 00:14:27 https://stackoverflow.com/questions/38672560/why-cant-pdb-access-a-variable-containing-an-exception 2021-05-16 19:32:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 19:34:48 --> vimal (~vimal@2a02:a210:9600:ae80:a455:1222:6963:5ed1) has joined #python 2021-05-16 19:34:50 --> voldial (~user@unaffiliated/voldial) has joined #python 2021-05-16 19:36:14 voldial anyone know of a project that parses part numbers? like page 6: https://www.mouser.com/datasheet/2/428/zseries-1022194.pdf 2021-05-16 19:36:57 <-- czer0 (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Read error: Connection reset by peer) 2021-05-16 19:38:53 --> easior (~easior@115.239.231.139) has joined #python 2021-05-16 19:39:03 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Read error: Connection reset by peer) 2021-05-16 19:39:27 --> philr (~phil@118.211.93.148) has joined #python 2021-05-16 19:40:47 --> belzelutte (~belzelutt@180.248.120.244) has joined #python 2021-05-16 19:42:13 <-- tempate (~tempate@unaffiliated/tempate) has left #python 2021-05-16 19:43:36 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 252 seconds) 2021-05-16 19:51:05 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 19:51:07 <-- Xano (~Xano@159.48.55.35) has quit (Quit: Leaving) 2021-05-16 19:54:29 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-16 19:54:50 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-16 19:56:36 <-- pulsar12_ (~quassel@a95-92-60-61.cpe.netcabo.pt) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-16 19:58:46 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 19:59:25 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has joined #python 2021-05-16 19:59:51 Evidlo can I use sys.stdout.flush() on Windows? 2021-05-16 20:00:02 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-16 20:00:09 <-- Guddu (~Guddu@unaffiliated/guddu) has quit (Read error: Connection reset by peer) 2021-05-16 20:00:14 ammar2 yeah 2021-05-16 20:00:19 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-16 20:00:57 --> easior_ (~easior@115.239.231.143) has joined #python 2021-05-16 20:01:02 <-- Spawns_Carpeting (~pi@184.15.56.237) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-16 20:01:36 <-- atk (~Arch-TK@ircpuzzles/staff/Arch-TK) has quit (Quit: Well this is unexpected.) 2021-05-16 20:01:41 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-16 20:01:49 --> Guddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-16 20:01:58 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 20:01:58 --> atk (~Arch-TK@ircpuzzles/staff/Arch-TK) has joined #python 2021-05-16 20:02:29 <-- psichi (~psichi@149.233.40.129) has quit (Ping timeout: 245 seconds) 2021-05-16 20:02:34 --> patr0clus (patr0clus@gateway/vpn/protonvpn/patr0clus) has joined #python 2021-05-16 20:02:52 --> Spawns_Carpeting (~pi@184.15.56.237) has joined #python 2021-05-16 20:04:01 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has quit (Ping timeout: 250 seconds) 2021-05-16 20:04:17 <-- easior (~easior@115.239.231.139) has quit (Ping timeout: 268 seconds) 2021-05-16 20:04:37 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 20:05:07 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 265 seconds) 2021-05-16 20:06:56 <-- tardisx_ (~tardisx@2400:8902::f03c:91ff:fe89:d107) has quit (Quit: ciao) 2021-05-16 20:08:11 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-16 20:08:14 <-- Guddu (~Guddu@unaffiliated/guddu) has quit (Quit: Leaving) 2021-05-16 20:08:30 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 265 seconds) 2021-05-16 20:09:01 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Quit: good riddance) 2021-05-16 20:09:02 <-- niv (~niv@limbo.cypherpunks.io) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-16 20:09:14 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-16 20:09:14 --> n1v (~niv@limbo.cypherpunks.io) has joined #python 2021-05-16 20:09:15 --> anthepro (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-16 20:09:17 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-16 20:09:38 -- n1v is now known as niv 2021-05-16 20:10:49 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 245 seconds) 2021-05-16 20:11:02 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-16 20:13:21 --> akk (~akk@97-123-110-96.albq.qwest.net) has joined #python 2021-05-16 20:13:40 <-- katana (~katana@unaffiliated/katana) has quit (Quit: Leaving) 2021-05-16 20:13:53 <-- easior_ (~easior@115.239.231.143) has quit (Read error: Connection reset by peer) 2021-05-16 20:15:26 <-- Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has quit (Read error: Connection reset by peer) 2021-05-16 20:16:02 <-- predmijat (~predmijat@mail.strogopro.com) has quit (Quit: bye) 2021-05-16 20:16:06 <-- wac (~wac@unaffiliated/wac) has quit (Ping timeout: 240 seconds) 2021-05-16 20:16:39 --> Lando-HoloNet (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-16 20:16:39 --> czer0 (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-16 20:16:57 <-- ralof_ (~ralof@dynamic-077-007-049-147.77.7.pool.telefonica.de) has quit (Ping timeout: 260 seconds) 2021-05-16 20:17:19 --> hwm4rgs1 (~hwm4rgs@unaffiliated/hwm4rgs) has joined #python 2021-05-16 20:17:22 <-- sandra_96 (~sandra_96@c-cbc2524e.05-114-6d6c6d5.bbcust.telenor.se) has quit (Read error: Connection reset by peer) 2021-05-16 20:17:22 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Read error: Connection reset by peer) 2021-05-16 20:17:22 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Read error: Connection reset by peer) 2021-05-16 20:17:22 <-- philipp64_ (~philipp64@174.27.25.243) has quit (Read error: Connection reset by peer) 2021-05-16 20:17:22 <-- hwm4rgs (~hwm4rgs@unaffiliated/hwm4rgs) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:22 <-- kelalaka (~fatih@unaffiliated/kelalaka) has quit (Quit: Connection closed) 2021-05-16 20:17:22 <-- cowsay (~quassel@47.188.41.16) has quit (Read error: Connection reset by peer) 2021-05-16 20:17:22 <-- Myst (~Myst@wikipedia/myst) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:22 <-- qqqhhh (~qqqhhh@94.228.80.243) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:22 <-- newdimension (~newdimens@unaffiliated/newdimension) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:22 -- hwm4rgs1 is now known as hwm4rgs 2021-05-16 20:17:23 <-- rickard (~rickard@66.ip-51-75-74.eu) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:23 <-- dongcarl (~dongcarl@unaffiliated/dongcarl) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:24 <-- Nact (~l@host-85-27-120-35.dynamic.voo.be) has quit (Excess Flood) 2021-05-16 20:17:25 --> NeverLoads1 (NeverLoad@freakshells.net) has joined #python 2021-05-16 20:17:26 <-- kristijonas_ (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-16 20:17:26 <-- wawb (~Adium@pool-96-241-147-73.washdc.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-05-16 20:17:26 <-- fluter (~fluter@unaffiliated/fluter) has quit (Read error: Connection reset by peer) 2021-05-16 20:17:26 <-- ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has quit (Read error: Connection reset by peer) 2021-05-16 20:17:26 <-- NeverLoads (NeverLoad@freakshells.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:26 <-- dabukalam (~dabukalam@unaffiliated/dabukalam) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:26 <-- argoneus (~argoneus@unaffiliated/argoneus) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:26 <-- escherial (~escherial@unaffiliated/escherial) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:26 <-- TVH7 (~tvh7@containerhost01.de01-nbg01.dev.ti-more.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:26 <-- mbrndtgn (~marc@undecidable.de) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:26 <-- Derailed (~tom@ec2-13-211-184-100.ap-southeast-2.compute.amazonaws.com) has quit (Quit: ZNC - https://znc.in) 2021-05-16 20:17:26 <-- notepad (~notepad@129.159.46.243) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:26 <-- sideeffex (~sideeffex@ec2-54-80-118-205.compute-1.amazonaws.com) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:26 <-- c0eos (~coeos@171.244.116.78.rev.sfr.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:26 <-- jhuizy (~jhuizy@static.241.188.216.95.clients.your-server.de) has quit (Quit: Ping timeout (120 seconds)) 2021-05-16 20:17:27 -- NeverLoads1 is now known as NeverLoads 2021-05-16 20:17:28 <-- d42 (~root@87-207-121-133.dynamic.chello.pl) has quit (Excess Flood) 2021-05-16 20:17:29 --> predmijat (~predmijat@mail.strogopro.com) has joined #python 2021-05-16 20:17:30 --> kelalaka- (~fatih@unaffiliated/kelalaka) has joined #python 2021-05-16 20:17:30 --> Myst (~Myst@wikipedia/myst) has joined #python 2021-05-16 20:17:31 --> fluter- (~fluter@unaffiliated/fluter) has joined #python 2021-05-16 20:17:31 --> cowsay (~quassel@47.188.41.16) has joined #python 2021-05-16 20:17:33 --> mbrndtgn3 (~marc@undecidable.de) has joined #python 2021-05-16 20:17:33 --> argoneus6 (~argoneus@unaffiliated/argoneus) has joined #python 2021-05-16 20:17:37 <-- [Tritium] (~tritium@toxin.sdamon.com) has quit (Remote host closed the connection) 2021-05-16 20:17:38 --> escherial9 (~escherial@unaffiliated/escherial) has joined #python 2021-05-16 20:17:39 --> notepad (~notepad@129.159.46.243) has joined #python 2021-05-16 20:17:40 --> sideeffex (~sideeffex@ec2-54-80-118-205.compute-1.amazonaws.com) has joined #python 2021-05-16 20:17:41 --> TVH7 (~tvh7@containerhost01.de01-nbg01.dev.ti-more.net) has joined #python 2021-05-16 20:17:41 --> Derailed (~tom@ec2-13-211-184-100.ap-southeast-2.compute.amazonaws.com) has joined #python 2021-05-16 20:17:42 --> jhuizy (~jhuizy@static.241.188.216.95.clients.your-server.de) has joined #python 2021-05-16 20:17:45 --> c0eos (~coeos@171.244.116.78.rev.sfr.net) has joined #python 2021-05-16 20:17:48 --> newdimension (~newdimens@unaffiliated/newdimension) has joined #python 2021-05-16 20:17:48 --> qqqhhh (~qqqhhh@94.228.80.243) has joined #python 2021-05-16 20:17:49 --> rickard (~rickard@66.ip-51-75-74.eu) has joined #python 2021-05-16 20:17:57 --> Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has joined #python 2021-05-16 20:17:59 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-16 20:18:07 --> dabukalam (~dabukalam@unaffiliated/dabukalam) has joined #python 2021-05-16 20:18:09 --> Nact (~l@host-85-27-120-35.dynamic.voo.be) has joined #python 2021-05-16 20:18:18 <-- dwt (~dwt@c-98-200-58-177.hsd1.tx.comcast.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-16 20:18:21 --> d42 (~root@87-207-121-133.dynamic.chello.pl) has joined #python 2021-05-16 20:18:23 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Quit: i love you BitchX chalupa boofa ZNC - https://znc.in) 2021-05-16 20:18:28 --> dongcarl (~dongcarl@unaffiliated/dongcarl) has joined #python 2021-05-16 20:18:29 -- czer0 is now known as ^Zer0^ 2021-05-16 20:18:35 --> ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has joined #python 2021-05-16 20:18:43 --> [Tritium] (~tritium@toxin.sdamon.com) has joined #python 2021-05-16 20:18:47 --> Catatronic (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-16 20:19:42 --> wac (~wac@unaffiliated/wac) has joined #python 2021-05-16 20:19:56 <-- Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) has quit (Ping timeout: 246 seconds) 2021-05-16 20:20:03 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has joined #python 2021-05-16 20:22:03 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-16 20:23:02 --> dhill (~dhill@modemcable250.73-201-24.mc.videotron.ca) has joined #python 2021-05-16 20:23:06 -- Lando-HoloNet is now known as Lando-SpacePimp 2021-05-16 20:23:19 --> ralof (~ralof@dynamic-077-007-049-147.77.7.pool.telefonica.de) has joined #python 2021-05-16 20:23:21 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-16 20:23:37 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 20:25:34 --> padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has joined #python 2021-05-16 20:27:10 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-16 20:27:31 --> Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) has joined #python 2021-05-16 20:28:59 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 20:30:54 --> bigRoo (~user@131.236.54.244) has joined #python 2021-05-16 20:31:41 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 20:32:41 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 20:32:54 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 245 seconds) 2021-05-16 20:33:23 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-16 20:36:11 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-16 20:36:45 --> _Ev (ev@gateway/vpn/airvpn/ev/x-69267913) has joined #python 2021-05-16 20:36:52 --> Spawns_Carpetin- (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has joined #python 2021-05-16 20:37:40 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-16 20:37:41 <-- Spawns_Carpeting (~pi@184.15.56.237) has quit (Ping timeout: 240 seconds) 2021-05-16 20:37:45 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-16 20:38:19 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has quit (Ping timeout: 245 seconds) 2021-05-16 20:38:32 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Read error: Connection reset by peer) 2021-05-16 20:40:11 <-- uKi` (~kochi@unaffiliated/uki/x-3643581) has quit (Ping timeout: 240 seconds) 2021-05-16 20:42:35 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 260 seconds) 2021-05-16 20:42:41 <-- ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has quit (Ping timeout: 240 seconds) 2021-05-16 20:42:51 --> dwt (~dwt@c-98-200-58-177.hsd1.tx.comcast.net) has joined #python 2021-05-16 20:43:13 --> ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has joined #python 2021-05-16 20:43:32 --> uKi` (~kochi@unaffiliated/uki/x-3643581) has joined #python 2021-05-16 20:43:48 Samian how can I make a project-wide global variable? I want a SAVE_DEBUG_DATA boolean I can use in any py file in my vscode project 2021-05-16 20:43:57 <-- man_in_shack (~chat@unaffiliated/man-in-shack/x-4279753) has quit (Quit: nope nope nope nope nope nope nope) 2021-05-16 20:44:19 --> man_in_shack (~chat@unaffiliated/man-in-shack/x-4279753) has joined #python 2021-05-16 20:45:16 InPhase Samian: Perhaps os.environ['SAVE_DEBUG_DATA'] 2021-05-16 20:45:36 Samian that may have to do 2021-05-16 20:45:40 Samian thanks InPhase ! 2021-05-16 20:46:16 Samian I was hoping for a shorter name 2021-05-16 20:46:27 InPhase Samian: Perhaps os.environ['SDD'] 2021-05-16 20:46:31 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Ping timeout: 252 seconds) 2021-05-16 20:46:32 InPhase ;) 2021-05-16 20:46:41 <-- uKi` (~kochi@unaffiliated/uki/x-3643581) has quit (Read error: Connection reset by peer) 2021-05-16 20:46:58 Samian I mean, I don't want it complicated. I was hoping for a single word 2021-05-16 20:46:59 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-16 20:47:15 Samian but okay, I guess that's not the python way :-( 2021-05-16 20:47:15 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Ping timeout: 260 seconds) 2021-05-16 20:47:53 InPhase Probably just import it at the top. Or, abandon trying to do it wth vscode, and create a config.py and from config import * 2021-05-16 20:48:01 InPhase s/wth/with/ 2021-05-16 20:48:13 Samian good idea 2021-05-16 20:48:29 jamea anyone here use weechat? 2021-05-16 20:48:36 --> uKi` (~kochi@unaffiliated/uki/x-3643581) has joined #python 2021-05-16 20:48:41 <-- dub_a (~dub_a@192.252.212.45) has quit (Quit: WeeChat 3.1) 2021-05-16 20:49:31 BrenBarn using `from config import *` won't work if you try to modify the variable 2021-05-16 20:49:46 BrenBarn as in assign a new value to it 2021-05-16 20:50:49 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:8486:520d:b4c0:4809) has quit (Ping timeout: 250 seconds) 2021-05-16 20:51:07 --> abesab (~abesab@172.103.140.96) has joined #python 2021-05-16 20:51:45 <-- frostschutz (~frostschu@2a01:c23:7c28:b400:ec21:8243:c062:cdbf) has quit (Remote host closed the connection) 2021-05-16 20:52:04 deltab you could import a module, and access an attribute of the module 2021-05-16 20:52:27 <-- Nact (~l@host-85-27-120-35.dynamic.voo.be) has quit (Quit: Konversation terminated!) 2021-05-16 20:56:07 --> Jormungandr89 (~brad@136.49.61.2) has joined #python 2021-05-16 20:56:22 --> cdown_ (~cdown@163.114.131.1) has joined #python 2021-05-16 20:56:51 <-- trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-16 20:57:01 --> amogorkon (~amogorkon@port-92-196-41-122.dynamic.as20676.net) has joined #python 2021-05-16 20:57:56 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 268 seconds) 2021-05-16 20:58:28 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-16 20:58:32 <-- cdown (~cdown@89.32.122.5) has quit (Ping timeout: 240 seconds) 2021-05-16 20:58:38 -- cdown_ is now known as cdown 2021-05-16 20:58:51 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 20:59:29 <-- amo (~amogorkon@port-92-196-72-233.dynamic.as20676.net) has quit (Ping timeout: 246 seconds) 2021-05-16 21:00:25 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-16 21:00:47 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:c2b0:caa:38f9:fe49) has quit (Ping timeout: 260 seconds) 2021-05-16 21:01:18 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-16 21:01:36 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Max SendQ exceeded) 2021-05-16 21:02:50 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 21:03:11 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-16 21:03:12 <-- HolyFishPaste90 (HolyFishPa@gateway/vpn/protonvpn/holyfishpaste90) has quit (Remote host closed the connection) 2021-05-16 21:03:19 <-- padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has quit (Quit: Konversation terminated!) 2021-05-16 21:03:44 --> HolyFishPaste90 (HolyFishPa@gateway/vpn/protonvpn/holyfishpaste90) has joined #python 2021-05-16 21:04:09 --> padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has joined #python 2021-05-16 21:06:01 <-- HolyFishPaste90 (HolyFishPa@gateway/vpn/protonvpn/holyfishpaste90) has quit (Client Quit) 2021-05-16 21:07:17 --> Hanii_ (~Hanii@2a00:23c5:c587:6d00:ad2d:37e:bef9:6e9b) has joined #python 2021-05-16 21:07:26 <-- meLon (~meLon@unaffiliated/earthmelon) has quit (Remote host closed the connection) 2021-05-16 21:07:40 Samian InPhase, it seems I can't use os.environ['SAVE_DEBUG_DATA'] but rather must use something like if os.environ['SAVE_DEBUG_DATA'] == 'True': 2021-05-16 21:09:27 <-- enochh (~WerbelPro@2601:188:c401:9c3f:4e3:c979:11a8:45b) has quit (Ping timeout: 250 seconds) 2021-05-16 21:10:16 <-- bolovanos (~bolovanos@unaffiliated/bolovanos) has quit (Ping timeout: 268 seconds) 2021-05-16 21:11:57 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-16 21:12:36 <-- Death916 (UserNick@unaffiliated/death916) has quit (Read error: Connection reset by peer) 2021-05-16 21:13:00 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:896b:c6c8:9998:8716) has joined #python 2021-05-16 21:13:34 greatgatsby Samian, you might want os.getenv("SAVE_DEBUG_DATA") which will default to None (falsey) if it doesn't exist. You can also provide an optional default, os.getenv("SAVE_DEBUG_DATA", False) 2021-05-16 21:15:16 <-- uKi` (~kochi@unaffiliated/uki/x-3643581) has quit (Remote host closed the connection) 2021-05-16 21:15:18 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-16 21:15:23 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-16 21:15:49 <-- frrs (uid130725@gateway/web/irccloud.com/x-ucfasxcfelivkpbf) has quit (Quit: Connection closed for inactivity) 2021-05-16 21:17:40 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 268 seconds) 2021-05-16 21:18:03 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:896b:c6c8:9998:8716) has quit (Ping timeout: 260 seconds) 2021-05-16 21:18:25 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-16 21:18:27 --> Elodin (~weechat@unaffiliated/padawan) has joined #python 2021-05-16 21:18:49 nedbat Samian: i wouldn't use an environment variable if this is data just for use in your program. 2021-05-16 21:20:07 <-- perrier-jouet (~perrier-j@modemcable012.251-130-66.mc.videotron.ca) has quit (Quit: WeeChat 3.1) 2021-05-16 21:20:36 --> perrier-jouet (~perrier-j@modemcable012.251-130-66.mc.videotron.ca) has joined #python 2021-05-16 21:21:52 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-16 21:22:44 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-16 21:24:52 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 265 seconds) 2021-05-16 21:25:24 <-- emerent (~quassel@p200300cd57102442ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-16 21:25:57 <-- odrling (~odrling@korone.aidoru.agency) has quit (Quit: see you tomorrow) 2021-05-16 21:27:11 --> emerent (~quassel@p200300cd571024beba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-16 21:27:15 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-16 21:27:38 --> trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has joined #python 2021-05-16 21:27:48 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Quit: Leaving) 2021-05-16 21:28:43 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 21:29:27 --> odrling (~odrling@korone.aidoru.agency) has joined #python 2021-05-16 21:30:26 <-- blyat-73 (~user@79.101.60.163) has quit (Quit: Leaving) 2021-05-16 21:31:01 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 21:31:44 --> uKi` (~kochi@unaffiliated/uki/x-3643581) has joined #python 2021-05-16 21:31:52 <-- perrier-jouet (~perrier-j@modemcable012.251-130-66.mc.videotron.ca) has quit (Quit: WeeChat 3.1) 2021-05-16 21:32:20 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 21:33:07 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-16 21:34:09 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:8486:520d:b4c0:4809) has joined #python 2021-05-16 21:34:17 <-- shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has quit (Quit: Connection closed) 2021-05-16 21:35:27 -- SallyAhaj_ is now known as SallyAhaj 2021-05-16 21:35:28 --> ralof_ (~ralof@dynamic-095-115-015-219.95.115.pool.telefonica.de) has joined #python 2021-05-16 21:38:11 <-- ralof (~ralof@dynamic-077-007-049-147.77.7.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-16 21:38:30 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 21:38:54 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 21:38:55 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:8486:520d:b4c0:4809) has quit (Ping timeout: 250 seconds) 2021-05-16 21:39:41 --> a6a45081-2b83 (~aditya@171.76.17.86) has joined #python 2021-05-16 21:39:44 <-- Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has quit (Remote host closed the connection) 2021-05-16 21:40:26 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-16 21:40:39 --> SuperLag (~akulbe@unaffiliated/superlag) has joined #python 2021-05-16 21:42:08 Guest20 https://pasteboard.co/K2eVnrC.png 2021-05-16 21:42:10 Guest20 hi there, 2021-05-16 21:42:11 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-16 21:42:19 Guest20 could someone tell me what needs to be done for the 2nd part 2021-05-16 21:42:39 akk I've been wrestling with a timezone problem. I have an unaware datetime (created by pyephem) that's actually UTC, but doesn't know it. 2021-05-16 21:43:00 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Quit: brb.) 2021-05-16 21:43:23 akk I want to convert that to an aware UTC datetime, and the only way I've found requires two steps: make it an aware local time then use replace(tzinfo) on it. 2021-05-16 21:43:31 akk Code showing that: https://bpa.st/65RA 2021-05-16 21:44:00 akk I'm just wondering if there's a single step way to do the same time, since i'll have to do that repeatedly. 2021-05-16 21:44:08 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:8486:520d:b4c0:4809) has joined #python 2021-05-16 21:45:27 jamea where is the page: is there a page that python can't do? 2021-05-16 21:46:37 --> x7b (~ffe4@200116b82c5c270080bb8865759a83f0.dip.versatel-1u1.de) has joined #python 2021-05-16 21:46:45 akk (^do the same thing, not same time, got time on the brain!) 2021-05-16 21:48:56 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python 2021-05-16 21:48:57 --> boB_K7IQ (~boB_K7IQ@73.109.61.0) has joined #python 2021-05-16 21:49:34 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 245 seconds) 2021-05-16 21:50:32 <-- ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has quit (Ping timeout: 240 seconds) 2021-05-16 21:51:07 --> ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has joined #python 2021-05-16 21:51:39 <-- x7b (~ffe4@200116b82c5c270080bb8865759a83f0.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-16 21:54:26 --> nosleep12345 (8e715f1d@bras-vprn-mltnon2526w-lp130-08-142-113-95-29.dsl.bell.ca) has joined #python 2021-05-16 21:55:54 --> refusenick (~user@2601:644:8502:d700::94c9) has joined #python 2021-05-16 21:56:27 refusenick Anyone else installed a language server via pipx? 2021-05-16 21:56:43 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-16 21:57:21 refusenick *pylsp::stderr* (in Emacs) reports "ERROR - pylsp.plugins.flake8_lint - Error while running flake8 '/home/refusenick/.pyenv/versions/3.9.5/bin/python: No module named flake8" 2021-05-16 21:57:41 refusenick even after I ran "pipx inject python-lsp-server flake8" and restarted the workspace 2021-05-16 21:58:58 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-16 21:58:59 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 22:01:36 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 265 seconds) 2021-05-16 22:02:31 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 22:02:37 grym refusenick: pipx install 'python-language-server[all]' is what works for me 2021-05-16 22:02:41 <-- bigRoo (~user@131.236.54.244) has quit (Ping timeout: 268 seconds) 2021-05-16 22:02:43 grym (you need the extra) 2021-05-16 22:02:44 --> s8548a__ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-16 22:02:59 grym and it has to be a string so the brackets don't confuse your shell 2021-05-16 22:03:54 refusenick grym: hmm I thought I did that... 2021-05-16 22:04:11 --> wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has joined #python 2021-05-16 22:04:36 grym refusenick: when i pipx list and look, it shows flake8 pre-injected 2021-05-16 22:04:38 refusenick grym: also, python-language-server (Palantir "pyls") isn't maintained anymore, right? 2021-05-16 22:04:44 deltab akk: isn't unaware.replace(tzinfo=timezone.utc) enough? 2021-05-16 22:04:53 refusenick That's why it got forked into python-lsp-server 2021-05-16 22:04:54 deltab storing the result, of course 2021-05-16 22:05:41 <-- boB_K7IQ (~boB_K7IQ@73.109.61.0) has quit (Ping timeout: 240 seconds) 2021-05-16 22:05:58 grym refusenick: oh, uh... maybe? there's also the msft one that i haven't used 2021-05-16 22:06:14 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 245 seconds) 2021-05-16 22:06:22 akk oh, hmm -- I thought I had tried that and got an error, but maybe I made some sort of typo. That does seem to work when I try it now. 2021-05-16 22:06:49 akk Thanks, deltab -- I probably made some silly error when I tried that before. 2021-05-16 22:07:03 refusenick grym: I only defaulted to pylsp now because lsp-mode comes with a client for it ¯\_(ツ)_/¯ 2021-05-16 22:07:11 <-- mayhew (~jm@hlfxns017vw-47-55-124-51.dhcp-dynamic.fibreop.ns.bellaliant.net) has quit (Quit: Konversation terminated!) 2021-05-16 22:07:19 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-16 22:08:28 <-- refusenick (~user@2601:644:8502:d700::94c9) has quit (Remote host closed the connection) 2021-05-16 22:08:38 --> threwahway (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has joined #python 2021-05-16 22:08:47 <-- threwahway_ (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-16 22:09:07 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-16 22:09:30 <-- Ninja3047 (~Ninja3047@3047.ninja) has quit (Quit: bye) 2021-05-16 22:10:03 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-16 22:10:07 --> Ninja3047 (~Ninja3047@3047.ninja) has joined #python 2021-05-16 22:10:25 --> refusenick (~user@2601:644:8502:d700::94c9) has joined #python 2021-05-16 22:11:09 <-- urodna (~urodna@unaffiliated/urodna) has quit (Quit: urodna) 2021-05-16 22:13:13 Guest20 https://pasteboard.co/K2eVnrC.png 2021-05-16 22:13:21 Guest20 could someone tell me what needs to be done for the 2nd part 2021-05-16 22:13:28 <-- qomiter (~qomiter@pool-173-64-29-231.bflony.fios.verizon.net) has quit (Remote host closed the connection) 2021-05-16 22:15:29 refusenick Guest20: "Image not found" in Firefox 2021-05-16 22:15:43 akk Guest20: It might help to make a text paste as specified in the topic, instead of an image on a site that requires javascript to show images. 2021-05-16 22:15:46 deltab Guest20: seems pretty clear; what don't you understand about it? 2021-05-16 22:16:20 Guest20 deltab can i use the requests module to query the output and display the result from service a? 2021-05-16 22:16:30 deltab refusenick: that site does something weird ocnverting fetched data into a blob for display 2021-05-16 22:17:31 deltab oh, you probably have something wrong in the URL 2021-05-16 22:17:49 deltab Guest20: yes 2021-05-16 22:18:44 <-- wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has quit (Ping timeout: 245 seconds) 2021-05-16 22:18:46 --> boB_K7IQ (~boB_K7IQ@73.109.61.116) has joined #python 2021-05-16 22:19:46 <-- tm (~sinnlos@unaffiliated/tm) has quit (Ping timeout: 240 seconds) 2021-05-16 22:19:57 <-- The-Compiler (~compiler@qutebrowser/dev/The-Compiler) has quit (Read error: Connection reset by peer) 2021-05-16 22:19:58 --> Trashlord (~trash@wikipedia/Sentient-Planet) has joined #python 2021-05-16 22:22:46 <-- bdonnahue1 (~bdonnahue@208.59.177.131) has quit (Ping timeout: 252 seconds) 2021-05-16 22:23:33 -- finn_elija is now known as Guest86616 2021-05-16 22:23:33 --> finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-16 22:24:06 --> tm (~sinnlos@unaffiliated/tm) has joined #python 2021-05-16 22:25:11 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 240 seconds) 2021-05-16 22:26:15 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-16 22:26:21 <-- Guest86616 (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Ping timeout: 240 seconds) 2021-05-16 22:28:46 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 22:30:02 amosbird Hello, can I stream out all the stdout/stderr of subprocess.check_output to terminal? 2021-05-16 22:30:23 <-- chachasmooth (~chachasmo@unaffiliated/chachasmooth) has quit (Ping timeout: 260 seconds) 2021-05-16 22:31:59 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-16 22:31:59 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-16 22:32:10 Ouranos !paste 2021-05-16 22:32:11 deltab amosbird: do you want your script to see the output too? 2021-05-16 22:32:23 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 22:33:11 --> chachasmooth (~chachasmo@unaffiliated/chachasmooth) has joined #python 2021-05-16 22:33:16 amosbird deltab: yes 2021-05-16 22:33:39 amosbird well, it's ok to just print the output 2021-05-16 22:34:07 Ouranos I can't get this piece of code to work. It's actually from sololearn.com and I can't get it to run at all! lol 2021-05-16 22:35:02 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 22:35:10 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-16 22:35:31 deltab amosbird: I think you'll need to use Popen and have your own loop reading from the pipe(s) 2021-05-16 22:36:02 deltab Ouranos: url? what happens? 2021-05-16 22:36:23 Ouranos I put the code here with the expected and actual results. https://paste.debian.net/1197827/ 2021-05-16 22:36:35 amosbird deltab: hmm, ok 2021-05-16 22:37:11 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-16 22:37:43 deltab amosbird: if by stream you mean displaying the output as its generated, not after the process has completed 2021-05-16 22:38:24 deltab check_output does the latter, as I understand it 2021-05-16 22:38:40 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-16 22:39:34 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 245 seconds) 2021-05-16 22:39:57 Ouranos the expected behavior is that I think I should get an input dialog box. That doesn't happen though. https://paste.debian.net 2021-05-16 22:40:55 <-- boB_K7IQ (~boB_K7IQ@73.109.61.116) has quit (Ping timeout: 268 seconds) 2021-05-16 22:41:39 deltab Ouranos: okay, where does it indicate the syntax error? 2021-05-16 22:42:03 Ouranos It doesn't... I see. It's just waiting for input and then it times out when it doesn't get it. 2021-05-16 22:43:00 Ouranos If I modify the code from name = input() to name = input("Enter name:") it prompts me instead of doing nothing and timing out.... 2021-05-16 22:43:44 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-16 22:44:11 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 22:44:49 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-16 22:44:52 deltab Ouranos: what does it say when it times out? 2021-05-16 22:45:12 --> vdamewood (~vdamewood@unaffiliated/vdamewood) has joined #python 2021-05-16 22:45:55 Ouranos It said kernel timeout. I think it has something to do with the interpreter. 2021-05-16 22:46:16 deltab oh, you're using jupyter or something? 2021-05-16 22:46:28 Ouranos https://www.online-python.com/online_python_compiler 2021-05-16 22:46:42 Ouranos I was using this to test something I'm doing on sololearn 2021-05-16 22:47:25 --> vinleod (~vdamewood@unaffiliated/vdamewood) has joined #python 2021-05-16 22:47:29 Ouranos Ultimately, I'm trying to write a BMI calculator. But, I forgot a bunch of stuff and so I'm reviewing all the lessons and making sure I have a firm grasp of the problem as I rethink and rewrite my code. 2021-05-16 22:47:58 deltab ah okay, that can work slightly differently from other ways to run python; I'm not familiar with it 2021-05-16 22:48:37 deltab generally input() will wait for you to type something and press enter 2021-05-16 22:48:51 --> eht (~eht@unaffiliated/eht) has joined #python 2021-05-16 22:48:58 -- vdamewood is now known as Guest13834 2021-05-16 22:48:58 <-- Guest13834 (~vdamewood@unaffiliated/vdamewood) has quit (Killed (egan.freenode.net (Nickname regained by services))) 2021-05-16 22:48:58 -- vinleod is now known as vdamewood 2021-05-16 22:49:08 deltab it doesn't output a prompt because you didn't tell it to, but otherwise it's still doing the same thing 2021-05-16 22:49:12 <-- plutoniix (~q@node-ufy.pool-125-24.dynamic.totinternet.net) has quit (Quit: Leaving) 2021-05-16 22:51:47 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Remote host closed the connection) 2021-05-16 22:51:57 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 22:52:22 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 22:53:34 <-- belzelutte (~belzelutt@180.248.120.244) has quit (Ping timeout: 252 seconds) 2021-05-16 22:53:55 deltab it doesn't display a dialog box; you are perhaps thinking of javascript in a web browser 2021-05-16 22:53:59 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 22:54:31 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit (Ping timeout: 260 seconds) 2021-05-16 22:56:07 <-- DarthGandalf (user@znc/developer/DarthGandalf) has quit (Quit: Bye) 2021-05-16 22:56:22 --> DarthGandalf (user@znc/developer/DarthGandalf) has joined #python 2021-05-16 22:57:10 Ouranos Yes, I think so.. 2021-05-16 22:58:38 <-- chachasmooth (~chachasmo@unaffiliated/chachasmooth) has quit (Ping timeout: 265 seconds) 2021-05-16 22:58:40 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 22:59:02 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-16 22:59:20 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-16 22:59:38 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:00:06 <-- thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has quit (Ping timeout: 240 seconds) 2021-05-16 23:00:11 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:01:09 --> chachasmooth (~chachasmo@unaffiliated/chachasmooth) has joined #python 2021-05-16 23:02:07 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 250 seconds) 2021-05-16 23:02:27 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-16 23:02:36 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:02:46 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 23:06:04 <-- akk (~akk@97-123-110-96.albq.qwest.net) has quit (Quit: +++) 2021-05-16 23:06:17 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:06:34 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:06:41 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:07:31 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-16 23:08:15 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:08:19 jamea xAccion = request.form["xAccion"] 2021-05-16 23:08:34 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:08:39 jamea werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand. 2021-05-16 23:08:53 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:08:59 jamea KeyError: 'xAccion' how to ask if request.form["xAccion"] is none or is null? 2021-05-16 23:09:03 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-16 23:09:10 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-16 23:10:10 <-- tabakhase (tabakhase@unaffiliated/tabakhase) has quit (Quit: ZNC - http://znc.in) 2021-05-16 23:10:40 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:11:32 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-16 23:12:06 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:12:35 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:12:37 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Client Quit) 2021-05-16 23:12:52 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-16 23:12:56 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-16 23:13:08 --> Silvard (~Silvard@181.37.55.135) has joined #python 2021-05-16 23:13:22 <-- Silvard (~Silvard@181.37.55.135) has quit (Max SendQ exceeded) 2021-05-16 23:13:30 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-16 23:13:48 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:13:53 --> Silvard (~Silvard@181.37.55.135) has joined #python 2021-05-16 23:14:18 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:14:18 <-- Silvard (~Silvard@181.37.55.135) has quit (Read error: Connection reset by peer) 2021-05-16 23:14:55 --> Silvard (~Silvard@181.37.55.135) has joined #python 2021-05-16 23:16:28 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-16 23:16:50 <-- yuesbeez (uid458354@gateway/web/irccloud.com/x-nbpzfpvsqahxyiou) has quit (Quit: Connection closed for inactivity) 2021-05-16 23:16:57 --> tabakhase (tabakhase@unaffiliated/tabakhase) has joined #python 2021-05-16 23:17:08 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-16 23:17:23 <-- cliluw (~cliluw@unaffiliated/cliluw) has quit (Ping timeout: 246 seconds) 2021-05-16 23:18:23 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:19:39 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:21:39 <-- Silvard (~Silvard@181.37.55.135) has quit (Ping timeout: 245 seconds) 2021-05-16 23:22:05 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-16 23:22:53 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 23:23:28 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 268 seconds) 2021-05-16 23:24:09 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 23:25:29 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:25:43 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:26:19 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:26:56 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-16 23:27:29 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-16 23:28:46 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 23:30:31 --> edge_eng (~edge_eng@unaffiliated/edge-eng/x-8536881) has joined #python 2021-05-16 23:31:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-16 23:32:07 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 23:32:21 <-- brainium (~brainium@unaffiliated/brainium) has quit (Quit: Konversation terminated!) 2021-05-16 23:32:30 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 23:32:51 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-16 23:33:48 --> xrogaan (~xrogaan@unaffiliated/xrogaan) has joined #python 2021-05-16 23:34:16 <-- psyxopompos (~psyxopomp@unaffiliated/psyxo) has quit (Remote host closed the connection) 2021-05-16 23:34:46 --> psyxopompos (~psyxopomp@unaffiliated/psyxo) has joined #python 2021-05-16 23:36:06 <-- psyxopompos (~psyxopomp@unaffiliated/psyxo) has quit (Remote host closed the connection) 2021-05-16 23:36:27 --> psyxopompos (~psyxopomp@unaffiliated/psyxo) has joined #python 2021-05-16 23:37:13 <-- psyxopompos (~psyxopomp@unaffiliated/psyxo) has quit (Client Quit) 2021-05-16 23:37:41 --> psyxopompos (~psyxopomp@unaffiliated/psyxo) has joined #python 2021-05-16 23:37:46 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-16 23:38:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-16 23:39:13 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 252 seconds) 2021-05-16 23:39:30 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-16 23:40:07 --> Catatronic (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-16 23:41:03 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-16 23:42:43 <-- padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has quit (Quit: Leaving.) 2021-05-16 23:43:19 <-- hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has quit (Ping timeout: 245 seconds) 2021-05-16 23:44:34 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Read error: Connection reset by peer) 2021-05-16 23:50:59 --> Coldblackice (c@gateway/vpn/mullvad/coldblackice) has joined #python 2021-05-16 23:52:06 --> rchavik (~rchavik@unaffiliated/rchavik) has joined #python 2021-05-16 23:52:09 --> stree (~stree@68.36.8.116) has joined #python 2021-05-16 23:53:00 <-- Abbott (~Abbott@unaffiliated/abbott) has quit (Read error: Connection reset by peer) 2021-05-16 23:54:00 <-- Guest20 (~textual@192.146.154.3) has quit (Quit: ZZZzzz…) 2021-05-16 23:54:43 --> aakashi2001 (~aakashi20@103.61.255.13) has joined #python 2021-05-16 23:54:46 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-16 23:55:46 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 260 seconds) 2021-05-16 23:57:27 <-- vdamewood (~vdamewood@unaffiliated/vdamewood) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-16 23:57:34 --> mozgalom (~mozgalom@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-16 23:57:35 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-16 23:58:38 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-16 23:59:50 --> Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has joined #python 2021-05-17 00:00:29 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Quit: Leaving) 2021-05-17 00:01:41 <-- mozgalom (~mozgalom@mobile-194-144-47-113.3G.internet.is) has quit (Ping timeout: 240 seconds) 2021-05-17 00:01:56 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 00:03:10 <-- Hackerpcs (~user@unaffiliated/hackerpcs) has quit (Quit: Hackerpcs) 2021-05-17 00:04:20 --> Hackerpcs (~user@unaffiliated/hackerpcs) has joined #python 2021-05-17 00:04:21 <-- Guest20 (~textual@192.146.154.3) has quit (Quit: ZZZzzz…) 2021-05-17 00:05:04 <-- psyxopompos (~psyxopomp@unaffiliated/psyxo) has quit (Remote host closed the connection) 2021-05-17 00:05:04 <-- ManHoursPerTonne (~user@81.171.62.10) has quit (Ping timeout: 252 seconds) 2021-05-17 00:05:22 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-17 00:05:27 --> psyxopompos (~psyxopomp@unaffiliated/psyxo) has joined #python 2021-05-17 00:06:01 <-- JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has quit (Ping timeout: 268 seconds) 2021-05-17 00:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-17 00:06:40 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-17 00:09:06 <-- patr0clus (patr0clus@gateway/vpn/protonvpn/patr0clus) has quit (Ping timeout: 268 seconds) 2021-05-17 00:09:15 --> JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has joined #python 2021-05-17 00:09:47 --> patr0clu_ (patr0clus@gateway/vpn/protonvpn/patr0clus) has joined #python 2021-05-17 00:11:53 <-- patr0clu_ (patr0clus@gateway/vpn/protonvpn/patr0clus) has quit (Client Quit) 2021-05-17 00:12:50 <-- JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has quit (Max SendQ exceeded) 2021-05-17 00:15:21 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:8486:520d:b4c0:4809) has quit (Ping timeout: 250 seconds) 2021-05-17 00:15:54 <-- psyxopompos (~psyxopomp@unaffiliated/psyxo) has quit (Quit: WeeChat 2.8) 2021-05-17 00:16:14 --> psyxopompos (~psyxopomp@unaffiliated/psyxo) has joined #python 2021-05-17 00:25:45 <-- veek (~veek@unaffiliated/veek) has quit (Ping timeout: 268 seconds) 2021-05-17 00:28:11 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 240 seconds) 2021-05-17 00:28:35 <-- psyxopompos (~psyxopomp@unaffiliated/psyxo) has quit (Remote host closed the connection) 2021-05-17 00:28:52 --> psyxopompos (~psyxopomp@unaffiliated/psyxo) has joined #python 2021-05-17 00:28:52 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 00:29:30 <-- psyxopompos (~psyxopomp@unaffiliated/psyxo) has quit (Remote host closed the connection) 2021-05-17 00:29:52 --> psyxopompos (~psyxopomp@unaffiliated/psyxo) has joined #python 2021-05-17 00:30:45 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-17 00:30:54 --> zenix_2k2 (~zenix@unaffiliated/zenix-2k2/x-8691202) has joined #python 2021-05-17 00:31:17 <-- ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has quit (Quit: Leaving) 2021-05-17 00:31:29 zenix_2k2 question, imagine if i have a string like "aaabccddd", is there any fast way i can just split it into ["aaa", "b", "cc", "ddd"].. and also speed is important in this so the fastest possible method is highly appreciated please 2021-05-17 00:31:54 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 00:32:10 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Quit: Gone to sleep...) 2021-05-17 00:32:12 leduyquang753 Just iterate through it. 2021-05-17 00:32:24 <-- eht (~eht@unaffiliated/eht) has quit (Ping timeout: 265 seconds) 2021-05-17 00:32:52 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 00:32:57 zenix_2k2 yea but that would make things slow, resulting in a time exceeds 2021-05-17 00:33:16 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 252 seconds) 2021-05-17 00:33:19 leduyquang753 There is no other way really, you have to iterate through it at least once. 2021-05-17 00:33:22 zenix_2k2 a challenge of mine which i have doing require all testcases to be executed within the range of 10 seconds 2021-05-17 00:33:25 zenix_2k2 if using python3 2021-05-17 00:33:42 zenix_2k2 well ok fine then 2021-05-17 00:33:51 zenix_2k2 just wondering if there is any standard library to get this done faster 2021-05-17 00:35:15 <-- aakashi2001 (~aakashi20@103.61.255.13) has quit (Remote host closed the connection) 2021-05-17 00:35:16 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-17 00:35:25 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-17 00:37:26 --> patr0clus (patr0clus@gateway/vpn/protonvpn/patr0clus) has joined #python 2021-05-17 00:37:31 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 252 seconds) 2021-05-17 00:37:41 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-17 00:38:46 --> ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has joined #python 2021-05-17 00:39:36 --> eht (~eht@unaffiliated/eht) has joined #python 2021-05-17 00:39:48 <-- psyxopompos (~psyxopomp@unaffiliated/psyxo) has quit (Quit: WeeChat 2.8) 2021-05-17 00:40:00 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-17 00:40:06 --> psyxopompos (~psyxopomp@unaffiliated/psyxo) has joined #python 2021-05-17 00:40:20 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Read error: Connection reset by peer) 2021-05-17 00:42:50 Wulf zenix_2k2: regex? 2021-05-17 00:43:00 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-17 00:43:15 zenix_2k2 yea thought of it as well but still trying to craft an expression 2021-05-17 00:44:08 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Quit: Leaving) 2021-05-17 00:44:41 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-17 00:44:49 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 00:45:11 <-- patr0clus (patr0clus@gateway/vpn/protonvpn/patr0clus) has quit (Ping timeout: 240 seconds) 2021-05-17 00:45:12 zenix_2k2 i mean if the string turns out to be "baab" or "aaabccddda" then it will be splitted into ["b", "aa", "b"] and ["aaa", "b", "cc", "ddd", "a"] 2021-05-17 00:46:56 Wulf re.findall(r"((.)\2*)", "aaabccddd") 2021-05-17 00:48:40 zenix_2k2 well that's... fast 2021-05-17 00:48:42 zenix_2k2 and thk 2021-05-17 00:48:52 <-- korg815 (~korg815@unaffiliated/korg815) has quit (Quit: WeeChat 2.8) 2021-05-17 00:50:08 Wulf zenix_2k2: is it actually faster than writing that in python? 2021-05-17 00:50:26 zenix_2k2 also is \2 pr \number a thing in regex ? i didn't find it in any cheatsheet online 2021-05-17 00:50:42 zenix_2k2 Wulf: writing what ? a real iteration ? 2021-05-17 00:51:04 Wulf zenix_2k2: https://docs.python.org/3/library/re.html#regular-expression-syntax \number 2021-05-17 00:56:44 --> ralof (~ralof@dynamic-095-115-015-219.95.115.pool.telefonica.de) has joined #python 2021-05-17 00:57:40 BrenBarn backslash + number is a backreference 2021-05-17 00:58:11 BrenBarn so it means "match what was already matched in parenthesized group number 2" 2021-05-17 00:58:47 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-17 00:58:47 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 00:59:34 <-- ralof_ (~ralof@dynamic-095-115-015-219.95.115.pool.telefonica.de) has quit (Ping timeout: 245 seconds) 2021-05-17 00:59:34 --> AlanMD (~alan@193.105.140.131) has joined #python 2021-05-17 00:59:41 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 240 seconds) 2021-05-17 01:00:33 jamea ACRUALIZAR_URL_MPEDIDO="http://localhost:8080/jQdl/servletExtraInfoPedidoBD?xAccion=MconsultaPedidosEnFecha&xFechaInicial=XXFF1&xFechaFinal=XXFF2" how to replace: XXFF2 = Actual date -8 days in format: yyyy/mm/dd ? 2021-05-17 01:01:31 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 01:03:01 <-- pbnoxious (pbnoxious@piratenpartei/jupi/pbnoxious) has quit (Ping timeout: 260 seconds) 2021-05-17 01:03:19 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 245 seconds) 2021-05-17 01:05:24 --> stranac (~stranac@195.29.239.126) has joined #python 2021-05-17 01:07:21 Wulf jamea: you should let your http library deal with url encodings 2021-05-17 01:07:46 jamea ye sunderstand but in this string how to replace.... 2021-05-17 01:07:48 Wulf jamea: (datetime.now() - timedelta(days=8)).strftime("%Y/%m/%d") 2021-05-17 01:07:54 zenix_2k2 BrenBarn: yea but within "aaabccddd", which is indicated as "group number 2" ? usually i would have to create two () in order to have two groups 2021-05-17 01:08:50 <-- Lindisfarne (~Lin@gateway/tor-sasl/lindisfarne) has quit (Remote host closed the connection) 2021-05-17 01:08:51 ksynwa Is there a better way to do this? `if any((num == 10 for num in numbers))` 2021-05-17 01:08:52 <-- craigevil (craig@gateway/vpn/protonvpn/craigevil) has quit (Quit: leaving) 2021-05-17 01:09:02 Wulf jamea: if possible don't use that date format as it's ambigious 2021-05-17 01:09:43 Wulf jamea: if you've really got that url as a string, split it first. urllib.parse got functions. 2021-05-17 01:09:59 Wulf ksynwa: yes, with only one () 2021-05-17 01:10:12 ksynwa Wulf: thanks 2021-05-17 01:10:18 Wulf ksynwa: or perhaps: 10 in numbers 2021-05-17 01:10:26 <-- blink (~x@awknode.com) has quit (Ping timeout: 240 seconds) 2021-05-17 01:10:37 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-17 01:10:37 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-17 01:10:53 --> craigevil (craig@gateway/vpn/protonvpn/craigevil) has joined #python 2021-05-17 01:11:08 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-17 01:11:16 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-17 01:11:52 Samian Hi Wulf 2021-05-17 01:12:05 Wulf Samian: Good Morning. 2021-05-17 01:12:30 <-- a6a45081-2b83 (~aditya@171.76.17.86) has quit (Remote host closed the connection) 2021-05-17 01:13:11 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-17 01:13:32 jamea today = date.today() today="2021-05-16" how to convert to: 2021/05/16 2021-05-17 01:13:42 Wulf jamea: see above. 2021-05-17 01:13:51 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 268 seconds) 2021-05-17 01:13:59 Samian From memory, do you know the difference and how to use the commands write(), writelines(), read(), readline(), readlines()? and the differences between open file arguments r, r+, w, w+, a, a+ ? I'm just curious if the best have this stuff all memorized 2021-05-17 01:14:50 --> Jerrynicki (~niklas@p549a996f.dip0.t-ipconnect.de) has joined #python 2021-05-17 01:15:04 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-17 01:15:25 Samian Wulf, I want to memorize python the same way people memorize english. The same way there's a Merriam Webster's Dictionary of Synonyms that explains the slight differences between synonyms, I want to know the differences between similar commands and when it's preferred to use one over the other 2021-05-17 01:15:25 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 265 seconds) 2021-05-17 01:15:29 jamea Wulf yes understand 2021-05-17 01:15:33 Wulf Samian: I guess if I thought about those for a while I should get all semantics right. 2021-05-17 01:15:35 jamea about url encodign 2021-05-17 01:16:03 --> theology (~theology@unaffiliated/theology) has joined #python 2021-05-17 01:16:11 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 240 seconds) 2021-05-17 01:16:39 Samian I'm starting a job at facebook first of next month. If everyone on my team has memorized all the bread-and-butter python commands and I'm looking up commands as I code, that will not be good. 2021-05-17 01:17:11 Wulf Samian: sorry to hear that. Why facebook? 2021-05-17 01:17:30 Wulf Samian: I lookup stuff all the time 2021-05-17 01:17:48 Samian Wulf, they offered me a job and facebook on my resume will solidify job security for me in the future 2021-05-17 01:18:43 --> bigRoo (~user@131.236.54.244) has joined #python 2021-05-17 01:18:58 Samian Wulf, I have just a bachelor's degree from a state university. No ivy league school. No masters. So this will be a big boost. 2021-05-17 01:19:18 <-- nosleep12345 (8e715f1d@bras-vprn-mltnon2526w-lp130-08-142-113-95-29.dsl.bell.ca) has quit (Quit: Connection closed) 2021-05-17 01:19:38 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-17 01:19:39 --> gitesh (uid423739@gateway/web/irccloud.com/x-wbypvgzpiqxmxlce) has joined #python 2021-05-17 01:20:49 jamea Wulf: https://bpa.st/EFQA not replaced why? 2021-05-17 01:22:08 Wulf Samian: well, good luck then :) 2021-05-17 01:22:12 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-17 01:22:45 Wulf Samian: about a+: "POSIX is silent on what the initial read position is when using this mode." Now I wonder what python does here. 2021-05-17 01:23:28 --> mihael (~marz@43.226.4.22) has joined #python 2021-05-17 01:23:42 KirkMcDonald I'd expect Python to defer to the system's behavior. 2021-05-17 01:23:42 Samian Wulf, I think I got the job out of the luck that there's low supply of people with 10+ years experience in CUDA and neural nets. 2021-05-17 01:23:43 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-17 01:24:02 mihael I'm writing files with suffix: .strftime("%Y%m%d_%H-%M-%S")). How do I get the most recent file? 2021-05-17 01:24:08 mihael or how do I sort them? 2021-05-17 01:24:25 KirkMcDonald mihael: That shouls sort lexicographically. 2021-05-17 01:24:28 KirkMcDonald should* 2021-05-17 01:24:37 KirkMcDonald mihael: I.e. just sort the strings. 2021-05-17 01:24:47 Samian Wulf, KirkMcDonald what do you guys use for global-wide variables, like a variable to turn on/off debug print variable values code ? 2021-05-17 01:24:48 KirkMcDonald mihael: Or at least, sort by that suffix. 2021-05-17 01:24:56 mihael I tried sorted(list), but it does not 2021-05-17 01:24:57 Wulf jamea: str.replace doesn't replace in-place. 2021-05-17 01:25:05 KirkMcDonald mihael: You'll need to slice out that suffix. 2021-05-17 01:25:09 <-- dustinm (~dustinm@static.38.6.217.95.clients.your-server.de) has quit (Quit: Leaving) 2021-05-17 01:25:28 <-- cjb (~cjb@unaffiliated/cjbayliss) has quit 2021-05-17 01:25:31 Samian I'm doing: if os.environ['SAVE_DEBUG_DATA'] == 'True': 2021-05-17 01:25:48 KirkMcDonald mihael: e.g. sorted(foo, key=lambda s: s[:-17]) 2021-05-17 01:26:08 Wulf Samian: environment variables are fine. Or you could use command line args or a config file. 2021-05-17 01:26:10 KirkMcDonald mihael: Though it would probably be wise to do something more meaningful than a magic number like that. 2021-05-17 01:26:57 KirkMcDonald Samian: It really depends on context. But a command-line argument is usually my first instinct for configuration of stuff. 2021-05-17 01:27:00 Samian Wulf, I just don't know the appropriate place to set the environment variable. I wish I could do it within the vscode config.json file 2021-05-17 01:27:26 jamea oo done: ACRUALIZAR_URL_MPEDIDO=ACRUALIZAR_URL_MPEDIDO.replace("XXFF2",today.strftime("%d/%m/%Y")) 2021-05-17 01:27:31 Samian hmm... I do recall many programs using --verbose 2021-05-17 01:27:42 mihael KirkMcDonald: what can you suggest? In the first place, I want to know when the file was created, hence, the timestamp 2021-05-17 01:27:45 * Samian goes with the flow and looks into creating --verbose 2021-05-17 01:27:59 ksynwa Wulf: How does `if any(num == 10 for num in nums)` work? I did double () because any takes one argument but what you said works as well. Just curious. 2021-05-17 01:28:07 ksynwa I mean why does it work 2021-05-17 01:28:11 ksynwa Sorry 2021-05-17 01:28:22 KirkMcDonald mihael: I mean, that timestamp is always going to be the same length. 2021-05-17 01:28:35 <-- infernix (~nix@unaffiliated/infernix) has quit (Ping timeout: 250 seconds) 2021-05-17 01:28:49 KirkMcDonald mihael: Also I got that slice backwards, oops: s[-17:] 2021-05-17 01:28:49 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 01:29:14 --> plutoniix (~q@ppp-58-8-148-189.revip2.asianet.co.th) has joined #python 2021-05-17 01:29:23 KirkMcDonald mihael: And of course you'll need to adjust that if there's a file extension in there or whatever. 2021-05-17 01:29:33 --> net| (~net|@unaffiliated/unit41) has joined #python 2021-05-17 01:30:20 Wulf ksynwa: https://docs.python.org/3/reference/expressions.html#grammar-token-call call takes (comprehension) which doesn't have parens. 2021-05-17 01:30:40 --> blink (~x@awknode.com) has joined #python 2021-05-17 01:31:39 <-- theology (~theology@unaffiliated/theology) has quit (Remote host closed the connection) 2021-05-17 01:31:56 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 01:31:59 --> lbalhar (~lbalhar@93.185.13.26) has joined #python 2021-05-17 01:32:00 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-17 01:32:04 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-17 01:32:05 --> theology (~theology@unaffiliated/theology) has joined #python 2021-05-17 01:32:14 net| any gamedev's in here ? 2021-05-17 01:32:24 <-- audioburn (~theology@unaffiliated/theology) has quit (Read error: Connection reset by peer) 2021-05-17 01:32:26 wyoung No 2021-05-17 01:33:07 net| https://github.com/netpipe/Luna/blob/master/media/frogger.pys this is what my frogger looks like but i need more dev's for project 2021-05-17 01:33:14 --> sazawal (~sazawal@2409:4043:2e13:7bc:c49c:fde5:6481:4d02) has joined #python 2021-05-17 01:33:35 <-- kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has quit (Quit: leaving) 2021-05-17 01:34:02 net| http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=35293&start=30 2021-05-17 01:35:43 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-17 01:36:07 --> dustinm (~dustinm@static.38.6.217.95.clients.your-server.de) has joined #python 2021-05-17 01:37:40 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-17 01:41:07 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-17 01:41:45 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Remote host closed the connection) 2021-05-17 01:41:59 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-17 01:42:04 Samian KirkMcDonald, Wulf, would it be bad to make the --verbose command line argument global scope via setting it to an os.environ key? 2021-05-17 01:42:16 --> infernix (nix@unaffiliated/infernix) has joined #python 2021-05-17 01:42:52 Samian I'm thinking to put logic in that goes "if --version is set, set os.environ[VERBOSE_MODE] to True" 2021-05-17 01:43:20 Samian then os.environ[VERBOSE_MODE] will be accessible with global scope 2021-05-17 01:43:25 --> Fischerfredl (~Thunderbi@193.124.137.161) has joined #python 2021-05-17 01:43:25 <-- Fischerfredl (~Thunderbi@193.124.137.161) has quit (Excess Flood) 2021-05-17 01:45:25 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-17 01:47:41 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 240 seconds) 2021-05-17 01:48:26 --> phasetwo_ (~phasetwo@2601:602:8d80:4e50:1cc6:e39e:85b1:35c5) has joined #python 2021-05-17 01:50:16 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-17 01:52:34 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit 2021-05-17 01:54:32 --> frrs (uid130725@gateway/web/irccloud.com/x-hjbahdjxgdjdusks) has joined #python 2021-05-17 01:55:35 --> IceMichael (~IceMichae@2.59.135.229) has joined #python 2021-05-17 01:57:16 <-- trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-17 01:57:26 <-- LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has quit (Ping timeout: 240 seconds) 2021-05-17 01:57:29 <-- theology (~theology@unaffiliated/theology) has quit (Ping timeout: 245 seconds) 2021-05-17 01:58:15 <-- Elodin (~weechat@unaffiliated/padawan) has quit (Ping timeout: 268 seconds) 2021-05-17 01:58:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 01:59:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-17 01:59:53 <-- quackgyver (uid11872@gateway/web/irccloud.com/x-owcwadnnwjlfzykw) has quit (Quit: Connection closed for inactivity) 2021-05-17 02:00:03 <-- drymer (~drymer@unaffiliated/drymer) has quit (Remote host closed the connection) 2021-05-17 02:01:05 <-- ravndal (~weechat@unaffiliated/ravndal) has quit (Quit: WeeChat 3.1) 2021-05-17 02:01:26 <-- parabolize (~paraboliz@98.43.173.221) has quit (Quit: leaving) 2021-05-17 02:02:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 02:02:19 <-- fran (~fran@unaffiliated/fran) has quit (Read error: Connection reset by peer) 2021-05-17 02:03:23 --> ravndal (~weechat@unaffiliated/ravndal) has joined #python 2021-05-17 02:06:10 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-17 02:06:34 --> yeticheese (~yetichees@185.240.244.189) has joined #python 2021-05-17 02:06:34 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 02:06:43 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-17 02:06:47 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-17 02:07:03 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 02:07:08 <-- cluelessperson (~cluelessp@unaffiliated/cluelessperson) has quit (Ping timeout: 246 seconds) 2021-05-17 02:07:34 --> SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has joined #python 2021-05-17 02:07:37 <-- eht (~eht@unaffiliated/eht) has quit (Ping timeout: 265 seconds) 2021-05-17 02:07:46 --> stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has joined #python 2021-05-17 02:08:14 --> Coldblackice_ (c@gateway/vpn/mullvad/coldblackice) has joined #python 2021-05-17 02:08:26 --> pbnoxious (pbnoxious@piratenpartei/jupi/pbnoxious) has joined #python 2021-05-17 02:08:35 <-- Coldblackice_ (c@gateway/vpn/mullvad/coldblackice) has quit (Client Quit) 2021-05-17 02:08:53 <-- phasetwo_ (~phasetwo@2601:602:8d80:4e50:1cc6:e39e:85b1:35c5) has quit (Ping timeout: 250 seconds) 2021-05-17 02:09:11 <-- lbalhar (~lbalhar@93.185.13.26) has quit (Ping timeout: 240 seconds) 2021-05-17 02:09:55 <-- jamea (~jak2000@177.239.80.39) has quit (Ping timeout: 252 seconds) 2021-05-17 02:10:12 --> eht (~eht@unaffiliated/eht) has joined #python 2021-05-17 02:11:23 --> dvx (~dvx@185.63.97.64) has joined #python 2021-05-17 02:11:40 --> cluelessperson (~cluelessp@unaffiliated/cluelessperson) has joined #python 2021-05-17 02:11:49 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-17 02:12:34 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-17 02:12:49 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-17 02:12:55 --> evagelos (~evangelos@80-100-166-138.ip.xs4all.nl) has joined #python 2021-05-17 02:13:07 --> SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has joined #python 2021-05-17 02:13:40 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 02:13:52 --> carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-17 02:14:21 --> kosh (~kosh@p200300d08f0e9f00a048f73090040474.dip0.t-ipconnect.de) has joined #python 2021-05-17 02:14:23 <-- SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has quit (Ping timeout: 265 seconds) 2021-05-17 02:14:33 --> bazul (bazul@38.189.189.46.rev.vodafone.pt) has joined #python 2021-05-17 02:15:39 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-17 02:16:34 --> philh (~philh@212.221.81.10) has joined #python 2021-05-17 02:17:15 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-17 02:17:30 <-- seednode (~seednode@64-131-31-104.usfamily.net) has quit (Quit: Nihil supernum.) 2021-05-17 02:18:16 --> seednode (~seednode@64-131-31-104.usfamily.net) has joined #python 2021-05-17 02:22:32 <-- rchavik (~rchavik@unaffiliated/rchavik) has quit (Ping timeout: 240 seconds) 2021-05-17 02:22:58 ksynwa Wulf: Thanks 2021-05-17 02:25:37 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-17 02:26:11 <-- uKi` (~kochi@unaffiliated/uki/x-3643581) has quit (Ping timeout: 240 seconds) 2021-05-17 02:28:39 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 02:32:14 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-17 02:32:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 02:32:41 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-17 02:33:44 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 02:34:00 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-17 02:34:10 --> swensson (9eaefc22@h-158-174-252-34.NA.cust.bahnhof.se) has joined #python 2021-05-17 02:34:21 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-17 02:35:25 --> carl-- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-17 02:36:46 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Quit: Left...) 2021-05-17 02:37:21 --> Nact (~l@host-85-27-120-35.dynamic.voo.be) has joined #python 2021-05-17 02:37:27 --> barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has joined #python 2021-05-17 02:37:54 <-- carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Ping timeout: 245 seconds) 2021-05-17 02:37:54 zenix_2k2 Wulf: also in your last regex, ((.)\2*), does the outside group counted as the second group or the inner one ? 2021-05-17 02:38:03 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-17 02:38:26 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-17 02:39:03 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 265 seconds) 2021-05-17 02:40:24 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 245 seconds) 2021-05-17 02:40:30 --> Core8837 (~greyblue9@2600:381:2213:a15d:cd22:e8b1:9426:4494) has joined #python 2021-05-17 02:40:49 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Ping timeout: 245 seconds) 2021-05-17 02:41:14 <-- Jerrynicki (~niklas@p549a996f.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-17 02:42:12 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-17 02:42:14 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:5e81:b1cb:3120:4542) has joined #python 2021-05-17 02:42:18 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: No route to host) 2021-05-17 02:42:52 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-17 02:44:27 <-- seds (~seds@irc.seds.nl) has quit (Read error: Connection reset by peer) 2021-05-17 02:44:28 --> stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-17 02:44:41 --> uKi` (~kochi@unaffiliated/uki/x-3643581) has joined #python 2021-05-17 02:44:51 <-- Core8837 (~greyblue9@2600:381:2213:a15d:cd22:e8b1:9426:4494) has quit (Ping timeout: 250 seconds) 2021-05-17 02:45:19 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-17 02:46:33 --> The-Compiler (~compiler@qutebrowser/dev/The-Compiler) has joined #python 2021-05-17 02:46:38 --> seds (~seds@irc.seds.nl) has joined #python 2021-05-17 02:47:03 --> Jerrynicki (~niklas@p549a996f.dip0.t-ipconnect.de) has joined #python 2021-05-17 02:47:04 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-17 02:48:12 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 268 seconds) 2021-05-17 02:49:44 _habnabit zenix_2k2, groups are enumerated by which ( appears first 2021-05-17 02:49:52 _habnabit zenix_2k2, so outer is 1, then inner is 2 2021-05-17 02:50:15 --> acresearch (~acresearc@unaffiliated/acresearch) has joined #python 2021-05-17 02:51:36 acresearch people, i am trying to draw a 3D cube, I want to try and corner angles and side lengths and view this change, how can i accomplish this in python? what setup/library should i read about? 2021-05-17 02:52:06 _habnabit acresearch, i hear pygame 2 has good GL support 2021-05-17 02:52:30 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-17 02:52:42 acresearch _habnabit: ok let me read about it 2021-05-17 02:52:52 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-17 02:53:13 --> kristijonas_ (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-17 02:53:30 --> x7b (~ffe4@200116b82cf6c1004420e9848f568b02.dip.versatel-1u1.de) has joined #python 2021-05-17 02:53:33 --> patr0clus (patr0clus@gateway/vpn/protonvpn/patr0clus) has joined #python 2021-05-17 02:53:40 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Read error: Connection reset by peer) 2021-05-17 02:54:11 zenix_2k2 ok then, the regex is starting to make sense now 2021-05-17 02:57:18 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-17 02:57:32 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-17 02:58:51 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 02:59:39 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-17 03:00:15 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-17 03:00:45 <-- yeticheese (~yetichees@185.240.244.189) has quit 2021-05-17 03:01:24 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-17 03:01:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 03:02:36 <-- eedgit (~textual@84.64.201.21) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-17 03:04:23 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-17 03:04:52 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-17 03:05:36 --> eedgit (~textual@84.64.201.21) has joined #python 2021-05-17 03:06:04 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-17 03:08:09 <-- stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-17 03:08:13 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-17 03:08:53 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-17 03:09:22 --> herbas (~herbas@88.118.170.138) has joined #python 2021-05-17 03:10:43 zenix_2k2 also about regex in python, is there any method of re which i can use to extract the unmatched part of the regex instead of itertating through the matched parts ? 2021-05-17 03:11:37 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-17 03:11:41 zenix_2k2 like r"(\w)\1" of "aaabccdddzzzbaaaba" will result in "aa", "cc", "dd", "zz", "aa", but i want those like "ab", "d", "z", "ba", ... 2021-05-17 03:12:07 zenix_2k2 the previous regex was ok but i come up with a new algorithm and regex, just wondering if there is any method of the re module 2021-05-17 03:12:22 --> chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has joined #python 2021-05-17 03:12:45 <-- denisse (~denisse@gateway/tor-sasl/alephzer0) has quit (Ping timeout: 240 seconds) 2021-05-17 03:13:38 --> denisse (~denisse@gateway/tor-sasl/alephzer0) has joined #python 2021-05-17 03:14:14 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-17 03:15:41 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-17 03:16:15 <-- dvx (~dvx@185.63.97.64) has quit (Read error: Connection reset by peer) 2021-05-17 03:16:16 --> dvx_ (~dvx@185.63.97.64) has joined #python 2021-05-17 03:16:32 --> lbalhar (~lbalhar@spsei.osanet.cz) has joined #python 2021-05-17 03:17:28 --> Zy64Jw (~Zy64Jw@171.76.17.86) has joined #python 2021-05-17 03:18:29 --> fb_ (~freebench@92.253.251.226) has joined #python 2021-05-17 03:18:32 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 246 seconds) 2021-05-17 03:19:37 --> ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has joined #python 2021-05-17 03:20:42 _habnabit zenix_2k2, re.split? 2021-05-17 03:21:30 <-- freebench (~freebench@92.253.251.226) has quit (Ping timeout: 268 seconds) 2021-05-17 03:21:59 kuhilas[m] I want to sign a pdf and I found signpdf which doesn't work with python3 it seems. Now I am trying to install venv on python2 but I don't have pip2. What should I do next 2021-05-17 03:22:51 <-- Zy64Jw (~Zy64Jw@171.76.17.86) has quit (Remote host closed the connection) 2021-05-17 03:23:19 _habnabit kuhilas[m], did you make a virtualenv already? or is that what you're struggling with 2021-05-17 03:23:26 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 260 seconds) 2021-05-17 03:25:11 kuhilas[m] yeah, struggling to make it 2021-05-17 03:25:44 _habnabit kuhilas[m], what OS? 2021-05-17 03:25:53 kuhilas[m] arch linux 2021-05-17 03:26:01 _habnabit kuhilas[m], ok, and how did you install python 2? 2021-05-17 03:26:17 kuhilas[m] I don't remember. It's long ago 2021-05-17 03:26:25 _habnabit kuhilas[m], what's `which python2` ? 2021-05-17 03:26:26 kuhilas[m] I don't remember installing it expclicitly 2021-05-17 03:26:39 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 245 seconds) 2021-05-17 03:26:44 kuhilas[m] `/usr/bin/python2` 2021-05-17 03:27:06 _habnabit kuhilas[m], ok. and what about `python2 -mvirtualenv` ? 2021-05-17 03:27:24 ChrisWarrick kuhilas[m]: I googled "python sign pdf" and got https://pypi.org/project/endesive/ — maybe you want that instead? 2021-05-17 03:27:26 --> n00b101 (uid448161@gateway/web/irccloud.com/x-tngcftbxlttzlepm) has joined #python 2021-05-17 03:27:27 kuhilas[m] `/usr/bin/python2: No module named virtualenv` 2021-05-17 03:27:34 _habnabit kuhilas[m], and `python2 -mpip` ? 2021-05-17 03:28:21 <-- bigRoo (~user@131.236.54.244) has quit (Remote host closed the connection) 2021-05-17 03:28:27 kuhilas[m] at quick glance that endesive is about certificates, I just want a simple attaching of image to pdf and keep pdf editable with text fields 2021-05-17 03:28:29 --> Zy64Jw (~Zy64Jw@171.76.17.86) has joined #python 2021-05-17 03:28:42 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 03:28:49 kuhilas[m] `/usr/bin/python2: No module named pip` 2021-05-17 03:29:29 _habnabit kuhilas[m], and `python2 -mensurepip` ? 2021-05-17 03:30:08 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-17 03:30:32 --> mcsontos (~mcsontos@95.82.134.89) has joined #python 2021-05-17 03:30:56 ChrisWarrick kuhilas[m]: there are tons of pdf editing libaries that work with modern python 2021-05-17 03:30:59 <-- barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has quit (Quit: barph) 2021-05-17 03:31:08 kuhilas[m] http://sprunge.us/gLxZJu 2021-05-17 03:31:16 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 03:31:26 kuhilas[m] https://unix.stackexchange.com/questions/85873/how-can-i-add-a-signature-png-to-a-pdf-in-linux 2021-05-17 03:31:31 ChrisWarrick kuhilas[m]: sudo pacman -S python2-pip 2021-05-17 03:31:36 kuhilas[m] I have gone through that thread, and I still want to try python2 signpdf 2021-05-17 03:31:43 --> mozgalom (~mozgalom@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-17 03:31:50 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 252 seconds) 2021-05-17 03:31:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 03:32:20 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-17 03:32:57 <-- patr0clus (patr0clus@gateway/vpn/protonvpn/patr0clus) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-17 03:32:58 <-- lmt (uid107697@gateway/web/irccloud.com/x-vlipjjksrkafnnza) has quit (Quit: Connection closed for inactivity) 2021-05-17 03:33:06 _habnabit kuhilas[m], aha. `python2 -mensurepip --user && ~/.local/bin/pip install --user virtualenv` 2021-05-17 03:33:35 --> k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has joined #python 2021-05-17 03:34:14 --> barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has joined #python 2021-05-17 03:34:16 kuhilas[m] http://sprunge.us/sYLH6L 2021-05-17 03:34:52 kuhilas[m] I installed python2-pip and then I ran that one command from elsewhere, and then I tried running `python2 -mensurepip --user && ~/.local/bin/pip install --user virtualenv` but now that came 2021-05-17 03:35:10 _habnabit kuhilas[m], is there a ~/.local/bin/virtualenv ? 2021-05-17 03:36:05 kuhilas[m] yup 2021-05-17 03:36:17 _habnabit kuhilas[m], well, there you go 2021-05-17 03:36:29 ChrisWarrick (perhaps it would be faster to use the zipapp: https://virtualenv.pypa.io/en/latest/installation.html#via-zipapp ) 2021-05-17 03:36:29 _habnabit kuhilas[m], you might want ~/.local/bin on your $PATH, as the output says 2021-05-17 03:36:33 <-- mozgalom (~mozgalom@mobile-194-144-47-113.3G.internet.is) has quit (Ping timeout: 265 seconds) 2021-05-17 03:37:07 kuhilas[m] ~/.local/bin/virtualenv -p /usr/bin/python2 venv or run this? Am I not specifying the venv dir when I create one with python2 2021-05-17 03:37:22 _habnabit kuhilas[m], virtualenv takes a directory name yes 2021-05-17 03:37:41 <-- zenix_2k2 (~zenix@unaffiliated/zenix-2k2/x-8691202) has quit (Ping timeout: 240 seconds) 2021-05-17 03:38:37 kuhilas[m] seems to have worked thanks 2021-05-17 03:41:14 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 245 seconds) 2021-05-17 03:42:03 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 250 seconds) 2021-05-17 03:42:37 kuhilas[m] d'oh. I thought this signer tool wouldn't screw up the text fields. Seems like after attaching an image to it, I can't edit the text fields anymore 2021-05-17 03:43:31 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-17 03:44:05 kuhilas[m] Guess I have to try some other method 2021-05-17 03:47:16 --> zenix_2k2 (~zenix@unaffiliated/zenix-2k2/x-8691202) has joined #python 2021-05-17 03:47:44 <-- cd (~cd@unaffiliated/cd) has quit (Quit: cd) 2021-05-17 03:47:52 --> jonascj (b9138502@gateway/web/cgi-irc/kiwiirc.com/ip.185.19.133.2) has joined #python 2021-05-17 03:47:55 kuhilas[m] I don't get it. This signpdf is supposed to preserve the texfield according to its readme. Wel lI can click and start editing the text field, but when I click elsewhere it's not saved with evince. Oh well, I guess this is off-topic now 2021-05-17 03:48:26 zenix_2k2 _habnabit: not really, for example : re.split(r"(\w)\1", "aaabccddd"), what i expected was ["a", "b", "d"] because that regex will specify a couple of letters such as ["aa", "cc", "dd"] ( AAabCCDDd ) 2021-05-17 03:48:26 --> guriya (a0ee4af6@unaffiliated/guriya) has joined #python 2021-05-17 03:48:36 zenix_2k2 the capitalized part is the selected part of that regex 2021-05-17 03:50:29 <-- finkata1 (~finkata@83.222.188.39) has quit (Ping timeout: 268 seconds) 2021-05-17 03:50:42 --> Mulugruntz (~Mulugrunt@2400:4152:2063:3100:644a:f31a:8b68:9eea) has joined #python 2021-05-17 03:51:00 --> sec0x815 (~Thunderbi@cpc104854-sgyl39-2-0-cust199.18-2.cable.virginm.net) has joined #python 2021-05-17 03:51:41 <-- Nact (~l@host-85-27-120-35.dynamic.voo.be) has quit (Ping timeout: 240 seconds) 2021-05-17 03:52:03 --> kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has joined #python 2021-05-17 03:52:19 <-- kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has quit (Client Quit) 2021-05-17 03:52:50 <-- herbas (~herbas@88.118.170.138) has quit (Quit: herbas) 2021-05-17 03:53:38 --> Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has joined #python 2021-05-17 03:53:47 <-- guriya (a0ee4af6@unaffiliated/guriya) has quit (Quit: Connection closed) 2021-05-17 03:55:39 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-17 03:56:22 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 03:56:29 --> ac_slater (~weechat@c-73-221-75-91.hsd1.wa.comcast.net) has joined #python 2021-05-17 03:57:11 <-- sec0x815 (~Thunderbi@cpc104854-sgyl39-2-0-cust199.18-2.cable.virginm.net) has quit (Quit: sec0x815) 2021-05-17 03:57:29 ac_slater hey guys sorry to bother. I have a weird dir layout of a large project. `{repo}/modules/{m}/python/{company_name}/{package}`. Should I make a large meta package or each package unique? 2021-05-17 03:57:32 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 240 seconds) 2021-05-17 03:58:40 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 03:59:18 ac_slater I guess my goal is a single setup.py that can pull in all of the `python/{company_name}/{package}` heirarchies 2021-05-17 03:59:19 ac_slater idk 2021-05-17 03:59:41 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 04:00:09 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 04:02:18 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 04:02:53 --> duszek (~duszek@adld244.neoplus.adsl.tpnet.pl) has joined #python 2021-05-17 04:03:26 <-- guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-17 04:03:27 duszek how can I make ammo/reload in my game? exactly the same way it works in counter-strike, fortnite or overwatch 2021-05-17 04:03:33 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Ping timeout: 240 seconds) 2021-05-17 04:03:35 ac_slater wtf 2021-05-17 04:03:37 duszek you know how if you ever played CS 2021-05-17 04:03:47 ac_slater what the hell man 2021-05-17 04:03:55 ac_slater what is ammo? what is "your game" 2021-05-17 04:03:58 --> fflori (~fflori@mob-194-230-155-245.cgn.sunrise.net) has joined #python 2021-05-17 04:04:01 <-- mdk (~mdk@51.15.187.166) has quit (Quit: WeeChat 3.0) 2021-05-17 04:04:03 ac_slater how are we supposed to know that 2021-05-17 04:04:04 <-- Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-17 04:04:16 duszek ac_slater: it's a shooter game 2021-05-17 04:04:29 barometz duszek: your question is impossibly high-perspective to answer 2021-05-17 04:04:32 duszek ac_slater: if you ever played Counter-Strike, you have a magazine 2021-05-17 04:04:37 barometz at least within the scope of this channel 2021-05-17 04:04:39 duszek and you can reload ammo by pressing R 2021-05-17 04:04:42 --> mdk (~mdk@51.15.187.166) has joined #python 2021-05-17 04:04:49 ac_slater please go to #pygame or whatever 2021-05-17 04:05:03 barometz the answer to that is a whole architecture 2021-05-17 04:05:27 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-17 04:05:53 --> aslicedbanjo (~aslicedba@host86-150-115-118.range86-150.btcentralplus.com) has joined #python 2021-05-17 04:06:14 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 245 seconds) 2021-05-17 04:06:15 --> bitdex (~bitdex@gateway/tor-sasl/bitdex) has joined #python 2021-05-17 04:06:49 --> Johann_Petrak (5473e6b2@84-115-230-178.cable.dynamic.surfer.at) has joined #python 2021-05-17 04:07:44 <-- ac_slater (~weechat@c-73-221-75-91.hsd1.wa.comcast.net) has left #python ("WeeChat 3.1") 2021-05-17 04:09:41 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-17 04:09:57 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Ping timeout: 240 seconds) 2021-05-17 04:10:49 <-- refusenick (~user@2601:644:8502:d700::94c9) has quit (Ping timeout: 245 seconds) 2021-05-17 04:11:21 --> tsujp (a32f386b@163.47.56.107) has joined #python 2021-05-17 04:12:02 tsujp I have a list `theList = []` which contains objects `Foo` and `Foo` has a property `client` which is another object `Bar` and finally `Bar` has a field `idd`, how can I list all `idd` in this list in a comprehension way? 2021-05-17 04:12:11 <-- Codaraxis_ (~Codaraxis@ip68-5-90-227.oc.oc.cox.net) has quit (Quit: Leaving) 2021-05-17 04:12:36 leduyquang753 e.client.idd for e in theList 2021-05-17 04:12:44 <-- Zy64Jw (~Zy64Jw@171.76.17.86) has quit 2021-05-17 04:13:08 --> vamiry (~vamiry@145.37-191-143.fiber.lynet.no) has joined #python 2021-05-17 04:13:45 tsujp Oh true, i was trying to be too clever lol 2021-05-17 04:13:55 tsujp I had a double comprehension non-working piece of spaghetti 2021-05-17 04:14:00 tsujp Thank you leduyquang753 2021-05-17 04:14:03 <-- duszek (~duszek@adld244.neoplus.adsl.tpnet.pl) has quit (Read error: Connection reset by peer) 2021-05-17 04:14:03 <-- vamiry (~vamiry@145.37-191-143.fiber.lynet.no) has quit (Client Quit) 2021-05-17 04:15:00 --> omenius (~omenius@2001:2003:f58c:a000:ccaa:875e:3c95:e0af) has joined #python 2021-05-17 04:15:12 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-17 04:15:23 <-- dvx_ (~dvx@185.63.97.64) has quit (Read error: Connection reset by peer) 2021-05-17 04:20:16 --> refusenick (~user@2601:644:8502:d700::94c9) has joined #python 2021-05-17 04:21:28 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined #python 2021-05-17 04:21:49 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-17 04:22:27 --> lejocelyn (~lejocelyn@ip5f5bd552.dynamic.kabel-deutschland.de) has joined #python 2021-05-17 04:25:12 <-- s8548a__ (~s8548a@unaffiliated/s8548a) has quit (Read error: Connection reset by peer) 2021-05-17 04:26:36 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 04:26:49 --> mcope (~mcope@88.98.90.199) has joined #python 2021-05-17 04:27:07 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 04:27:21 --> theology (~theology@unaffiliated/theology) has joined #python 2021-05-17 04:28:43 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 04:29:21 --> securethemews (~securethe@2a00:23c4:1e98:8f00::4) has joined #python 2021-05-17 04:30:53 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined #python 2021-05-17 04:30:55 --> podeni (~podeni@188.27.130.55) has joined #python 2021-05-17 04:31:01 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-17 04:31:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 04:32:19 podeni Hi everyone. In Python 3 how would you go about turning a list of strings into a valid standard CSV line (with everything that needs escaping escaped)? All the examples Google came up with want me to write a file on disk, which is not what I want to do. 2021-05-17 04:32:59 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 04:33:25 <-- refusenick (~user@2601:644:8502:d700::94c9) has left #python ("ERC (IRC client for Emacs 27.2)") 2021-05-17 04:33:34 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 04:34:41 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 04:34:48 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-17 04:35:15 KirkMcDonald podeni: The csv module wants to work on a file object, but it doesn't have to be an *actual* file. 2021-05-17 04:35:25 deniska podeni: you can use csv module passing io.StringIO to it 2021-05-17 04:35:36 KirkMcDonald Yeah, that. 2021-05-17 04:36:43 --> Paimon (~P41M0N@45.12.223.84) has joined #python 2021-05-17 04:37:13 deniska "standard CSV" isn't really a thing though :P 2021-05-17 04:41:02 --> LHao (~Thunderbi@2001:da8:c800:ba0f:3072:1f32:1dac:8ab4) has joined #python 2021-05-17 04:44:16 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 04:44:24 --> LucaTM (~LucaTM@unaffiliated/lucatm) has joined #python 2021-05-17 04:44:30 podeni Thanks, I managed to do it with io.StringIO 2021-05-17 04:44:51 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 04:45:07 --> YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has joined #python 2021-05-17 04:45:48 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 04:46:19 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 04:47:14 <-- vidbina (~vid@45.139.215.53) has quit (Quit: vidbina) 2021-05-17 04:47:57 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-17 04:49:03 <-- jonascj (b9138502@gateway/web/cgi-irc/kiwiirc.com/ip.185.19.133.2) has quit (Quit: Connection closed) 2021-05-17 04:50:50 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Quit: Left...) 2021-05-17 04:51:35 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-17 04:52:03 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-17 04:52:32 --> burakcank (~burakcank@159.146.41.74) has joined #python 2021-05-17 04:53:00 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 04:53:19 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-17 04:54:06 --> tm007 (uid287041@gateway/web/irccloud.com/x-kwozcmbphdyynggy) has joined #python 2021-05-17 04:56:58 --> mozgalom (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has joined #python 2021-05-17 04:57:45 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 265 seconds) 2021-05-17 04:58:59 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 04:59:04 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-17 05:00:16 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-17 05:00:22 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-17 05:00:53 --> swj (~swj@2409:8928:5c:17d:954b:2b27:8d77:ec9c) has joined #python 2021-05-17 05:01:05 stevieh hmm... I wanted to install pikepdf and it wante to build it. After upgrading pip it gets the wheel. Why is that? 2021-05-17 05:01:26 <-- SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has quit (Ping timeout: 240 seconds) 2021-05-17 05:01:54 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 05:02:24 swj AttributeError: 'WebDriver' object has no attribute 'execute_cdp_cmd' =-O 2021-05-17 05:02:35 swj help~ 2021-05-17 05:02:54 <-- noboruma (~noboruma@host-92-12-47-208.as13285.net) has quit (Ping timeout: 245 seconds) 2021-05-17 05:04:45 <-- vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has quit (Ping timeout: 240 seconds) 2021-05-17 05:05:22 --> carduus (~carduus@134.245.44.85) has joined #python 2021-05-17 05:05:34 <-- tsujp (a32f386b@163.47.56.107) has quit (Quit: Connection closed) 2021-05-17 05:05:44 swj I don't know why there is such a mistake, it can't be solved 2021-05-17 05:05:52 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-zqycblrpouaoefms) has quit (Quit: Connection closed for inactivity) 2021-05-17 05:06:09 <-- carduus (~carduus@134.245.44.85) has quit (Client Quit) 2021-05-17 05:06:38 --> amahl (~amahl@dxv5skyd2s8j3yvv5jnly-3.rev.dnainternet.fi) has joined #python 2021-05-17 05:06:45 swj Does anyone know 2021-05-17 05:07:41 --> carduus (~carduus@134.245.44.85) has joined #python 2021-05-17 05:07:44 <-- carduus (~carduus@134.245.44.85) has quit (Client Quit) 2021-05-17 05:09:03 swj https://stackoverflow.com/questions/66817547/attributeerror-webdriver-object-has-no-attribute-execute-cdp-cmd |It's the same problem 2021-05-17 05:09:18 --> carduus (~carduus@134.245.44.85) has joined #python 2021-05-17 05:09:39 --> honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-17 05:09:41 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 240 seconds) 2021-05-17 05:10:44 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 05:11:17 <-- lejocelyn (~lejocelyn@ip5f5bd552.dynamic.kabel-deutschland.de) has quit (Ping timeout: 265 seconds) 2021-05-17 05:11:25 <-- drogas (c251df42@gateway/web/cgi-irc/kiwiirc.com/ip.194.81.223.66) has quit (Quit: Ping timeout (120 seconds)) 2021-05-17 05:12:05 --> burakcank (~burakcank@88.243.153.79) has joined #python 2021-05-17 05:12:18 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 252 seconds) 2021-05-17 05:12:59 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-17 05:14:37 --> tocka (uid198544@gateway/web/irccloud.com/x-sttxrvhzalyxgfly) has joined #python 2021-05-17 05:15:34 ChrisWarrick stevieh: pikepdf has wheels on pypi for all platforms, and so pip will default to using them 2021-05-17 05:15:39 <-- acresearch (~acresearc@unaffiliated/acresearch) has quit (Ping timeout: 250 seconds) 2021-05-17 05:15:41 <-- hschmale (~hschmale@mab.sdf.org) has quit (Ping timeout: 240 seconds) 2021-05-17 05:16:13 <-- Karyon (~Karyon@unaffiliated/karyon) has quit (Quit: Good bye) 2021-05-17 05:16:24 --> Karyon (~Karyon@unaffiliated/karyon) has joined #python 2021-05-17 05:16:36 <-- xa0s_ (~xa0s@mab.sdf.org) has quit (Ping timeout: 265 seconds) 2021-05-17 05:16:37 <-- sazawal (~sazawal@2409:4043:2e13:7bc:c49c:fde5:6481:4d02) has quit (Quit: Leaving) 2021-05-17 05:16:41 ChrisWarrick swj: are you sure that this method exists in the selenium version you’re using? 2021-05-17 05:17:33 --> sz0 (uid110435@gateway/web/irccloud.com/x-fpfeimeqtceiorln) has joined #python 2021-05-17 05:17:35 --> vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has joined #python 2021-05-17 05:17:44 --> hschmale (~hschmale@mab.sdf.org) has joined #python 2021-05-17 05:17:51 <-- Johann_Petrak (5473e6b2@84-115-230-178.cable.dynamic.surfer.at) has quit (Quit: Connection closed) 2021-05-17 05:18:25 --> symptom (~symptom@elenagb.nos-oignons.net) has joined #python 2021-05-17 05:18:33 --> c4017w__ (~c4017@209.52.68.8) has joined #python 2021-05-17 05:18:35 --> Johann_Petrak (~johann@2a02:8388:2740:3d00:841b:6448:2f3e:281f) has joined #python 2021-05-17 05:18:36 -- d42 is now known as d42_ 2021-05-17 05:18:37 -- d42_ is now known as d42__ 2021-05-17 05:18:43 -- d42__ is now known as d42_ 2021-05-17 05:18:45 -- d42_ is now known as d42 2021-05-17 05:18:50 --> symptom_ (~symptom@elenagb.nos-oignons.net) has joined #python 2021-05-17 05:18:51 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 05:18:56 IHasFinger Hi guys, basic maths, if you want to subtract a number, the largest number takes away from the smallest number. In python if you have something like X - Y = XYZ bear in mind you do not know which one is the largest numbers. If you do something like print( decimal.Decimal(5.91) - decimal.Decimal(100.98) ) you will get -95.07000000000000383693077310 2 things(1) I do not want the negative(-) in front and (2) the way I am thinking is that to remove the 2021-05-17 05:18:56 IHasFinger negative you need to know if x or y is the largest number, any easy way to do it without if and else? or is they another way? 2021-05-17 05:18:57 <-- symptom_ (~symptom@elenagb.nos-oignons.net) has quit (Remote host closed the connection) 2021-05-17 05:19:04 swj ChrisWarrick: I'm not sure, but I want to use it:-D 2021-05-17 05:19:26 <-- Paimon (~P41M0N@45.12.223.84) has quit (Quit: Leaving) 2021-05-17 05:19:27 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-17 05:19:31 ChrisWarrick swj: well, you’ll need to read the docs. Why do you want to use that method? 2021-05-17 05:19:39 <-- symptom (~symptom@elenagb.nos-oignons.net) has quit (Client Quit) 2021-05-17 05:19:44 amogorkon IHasFinger, do you mean abs(difference) 2021-05-17 05:19:53 --> symptom (~symptom@elenagb.nos-oignons.net) has joined #python 2021-05-17 05:19:54 ChrisWarrick IHasFinger: also, decimal.Decimal(float) will give you nonsense results 2021-05-17 05:20:06 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 05:20:16 swj Bypass the detection property of webdriver 2021-05-17 05:20:27 amogorkon you could also do sqrt((a - b)**2) 2021-05-17 05:20:55 ChrisWarrick swj: read the docs and try to find a different solution for that 2021-05-17 05:21:11 amogorkon or max(a,b) - min(a,b) 2021-05-17 05:21:13 amogorkon or.. 2021-05-17 05:21:14 swj ok 2021-05-17 05:21:27 IHasFinger amogorkon, not heard of abs(difference) 2021-05-17 05:21:39 amogorkon abs(a-b) is fairly useful 2021-05-17 05:21:45 --> radkos (~radkos@213.91.182.188) has joined #python 2021-05-17 05:21:50 amogorkon i use it quite often 2021-05-17 05:21:51 <-- c4017w_ (~c4017@209.52.68.8) has quit (Ping timeout: 260 seconds) 2021-05-17 05:21:52 _habnabit IHasFinger, don't call Decimal on a float 2021-05-17 05:22:59 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 268 seconds) 2021-05-17 05:23:33 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-17 05:23:33 <-- vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has quit (Ping timeout: 240 seconds) 2021-05-17 05:24:10 --> uniquerockrz (~Saurav@103.17.85.191) has joined #python 2021-05-17 05:24:12 stevieh ChrisWarrick: I used a clean buster. python3 -m pip install --upgrade pikepdf wants to build it, after pip3 install --upgrade pip everything works fine. 2021-05-17 05:24:17 <-- Johann_Petrak (~johann@2a02:8388:2740:3d00:841b:6448:2f3e:281f) has left #python ("Konversation terminated!") 2021-05-17 05:24:24 --> SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-17 05:24:32 IHasFinger _habnabit, i like decimal because if its a whole number like 12345 it will keep the 12345 whereas with float it will add .00 its important i keep the value how it is without adding any extra bits :) 2021-05-17 05:24:34 stevieh this confuses my understanding of pip as a package manager... 2021-05-17 05:24:35 --> sTKs (~weechat@2001:818:e634:e700:f45f:5e52:c83e:e942) has joined #python 2021-05-17 05:24:55 _habnabit IHasFinger, sure. i didn't say "don't use Decimal". call Decimal only on strings or ints, but never floats 2021-05-17 05:24:55 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 05:25:02 ChrisWarrick stevieh: Debian buster is ancient and it ships with an ancient pip that likely does not recognize manylinux2010 wheels. 2021-05-17 05:25:06 --> HaMsTeRs (~mx@182.153.54.247) has joined #python 2021-05-17 05:25:15 _habnabit IHasFinger, calling it on a float will only give you bad results 2021-05-17 05:25:18 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 05:25:23 ChrisWarrick stevieh: Always use a venv, and always do `venv/bin/pip install -U pip setuptools wheel` right after you create it 2021-05-17 05:25:24 IHasFinger _habnabit, got an example? 2021-05-17 05:25:34 _habnabit IHasFinger, Decimal(1), Decimal('1.1') 2021-05-17 05:26:12 amogorkon _habnabit, i don't use really use Decimal, can you give me an example of how it messes up if used with floats? 2021-05-17 05:26:23 amogorkon -use 2021-05-17 05:26:26 _habnabit amogorkon, try seeing the bad result from Decimal(1.1) 2021-05-17 05:26:27 ChrisWarrick amogorkon: print(Decimal(0.1) + Decimal(0.2)) 2021-05-17 05:26:32 ChrisWarrick amogorkon: print(Decimal('0.1') + Decimal('0.2')) 2021-05-17 05:26:33 --> Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has joined #python 2021-05-17 05:26:36 amogorkon hmm 2021-05-17 05:27:16 --> lucad111 (~lucad111@linaro/lucad111) has joined #python 2021-05-17 05:27:35 IHasFinger ChrisWarrick, and _habnabit same with float print(float(0.1) + float(0.2)) 2021-05-17 05:27:42 IHasFinger 0.3000000000000000166533453694 2021-05-17 05:27:51 IHasFinger with decimal it is 95.07000000000000383693077310 2021-05-17 05:28:01 amogorkon _habnabit, wow, that's strange 2021-05-17 05:28:02 IHasFinger ignore that last message 2021-05-17 05:28:17 IHasFinger decimal it is like this 0.3000000000000000166533453694 2021-05-17 05:28:25 _habnabit amogorkon, what's strange about it? Decimal is converting the imprecise float to a precise Decimal that captures its exact value 2021-05-17 05:28:37 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 05:29:05 amogorkon well, it's strange to see the uglyness of float conversion up close.. you know what they say about sausages and politics 2021-05-17 05:29:37 --> Core6041 (~greyblue9@2600:381:2213:a15d:a6a:cdb9:cbf4:f6cd) has joined #python 2021-05-17 05:29:55 amogorkon why isn't there a warning of some kind or outright refusal on trying to convert float to decimal? 2021-05-17 05:30:13 KirkMcDonald amogorkon: An excellent question. Ideally, it should be a separate classmethod. 2021-05-17 05:30:14 _habnabit amogorkon, i do wish that Decimal raised a TypeError if passed a float 2021-05-17 05:30:18 KirkMcDonald But so it goes. 2021-05-17 05:30:29 KirkMcDonald https://qntm.org/notpointthree 2021-05-17 05:30:29 amogorkon trying to add decimal and float at least results in an exception 2021-05-17 05:31:20 KirkMcDonald IHasFinger: But please tell me you see the difference between Decimal(0.1) and Decimal('0.1') 2021-05-17 05:32:16 <-- zenix_2k2 (~zenix@unaffiliated/zenix-2k2/x-8691202) has quit (Quit: Leaving) 2021-05-17 05:32:18 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 05:32:38 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-17 05:33:11 IHasFinger print(Decimal("0.1")) = 0.1 2021-05-17 05:33:20 IHasFinger print(Decimal(0.1)) = 0.1000000000000000055511151231257827021181583404541015625 2021-05-17 05:33:29 amogorkon what if float to decimal conversion would use the repr of the float instead? 2021-05-17 05:33:35 IHasFinger basicaly use f"{}" which is what I am doing :) 2021-05-17 05:33:53 IHasFinger convert it to string and then do the maths 2021-05-17 05:33:53 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 05:34:00 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-17 05:34:08 KirkMcDonald amogorkon: This sound terrifying. 2021-05-17 05:34:11 KirkMcDonald sounds* 2021-05-17 05:34:24 amogorkon it does, doesn't it.. but at least it might be correct? 2021-05-17 05:34:47 KirkMcDonald "Correct," as a word, is doing a lot of work there. 2021-05-17 05:35:23 amogorkon correct as in "results in some less unexpected result" :p 2021-05-17 05:35:41 KirkMcDonald What if I expect floats to behave as I understand floats to behave? 2021-05-17 05:35:53 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 05:35:59 amogorkon you might be alien 2021-05-17 05:36:11 <-- pbnoxious (pbnoxious@piratenpartei/jupi/pbnoxious) has quit (Ping timeout: 240 seconds) 2021-05-17 05:36:17 KirkMcDonald Really I've just been using floats for way too long. 2021-05-17 05:36:37 <-- Karyon (~Karyon@unaffiliated/karyon) has quit (Quit: Good bye) 2021-05-17 05:36:40 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 05:37:01 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 05:37:18 --> nichlas (uid374954@gateway/web/irccloud.com/x-axodirqdvcjnblnh) has joined #python 2021-05-17 05:37:39 * deniska may have used round(x, 3) this week 2021-05-17 05:39:09 KirkMcDonald The horror. 2021-05-17 05:39:10 amogorkon is there any usecase outside of finances for decimal? 2021-05-17 05:39:29 KirkMcDonald Calculator. 2021-05-17 05:39:29 amogorkon just wondering 2021-05-17 05:39:37 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 05:40:13 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-17 05:40:16 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 05:40:22 deniska there're ~4 common formats of writing betting odds, and converting between them involves operations like 1/x :( 2021-05-17 05:40:27 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 05:40:43 KirkMcDonald That sounds more like fractions. 2021-05-17 05:40:53 _habnabit deniska, there's a whole fractions module 2021-05-17 05:41:10 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 05:41:21 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 05:41:37 --> SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-17 05:42:07 --> cdown_ (~cdown@163.114.131.1) has joined #python 2021-05-17 05:42:50 <-- mcope (~mcope@88.98.90.199) has quit (Remote host closed the connection) 2021-05-17 05:42:58 amogorkon i wonder how decimal vs. fraction compare performance-wise 2021-05-17 05:43:01 --> ogo (~ogo@gateway/tor-sasl/ogo) has joined #python 2021-05-17 05:43:11 <-- SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has quit (Ping timeout: 265 seconds) 2021-05-17 05:43:13 --> mcope (~mcope@88.98.90.199) has joined #python 2021-05-17 05:43:20 amogorkon both should be arbitrary-precision, no? 2021-05-17 05:43:21 --> ManHoursPerTonne (~user@81.171.62.4) has joined #python 2021-05-17 05:44:11 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 240 seconds) 2021-05-17 05:44:20 --> cdown__ (~cdown@163.114.131.1) has joined #python 2021-05-17 05:44:24 -- cdown__ is now known as cdown 2021-05-17 05:44:38 deniska the calculation involves 1/x, but the result is represented as a decimal number with a certain amount of decimal places, so I used decimal module for that 2021-05-17 05:45:00 --> sazawal (~sazawal@2409:4043:2e13:7bc:c49c:fde5:6481:4d02) has joined #python 2021-05-17 05:46:02 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 252 seconds) 2021-05-17 05:46:17 --> drogas (c251df42@gateway/web/cgi-irc/kiwiirc.com/ip.194.81.223.66) has joined #python 2021-05-17 05:46:30 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 05:46:46 amogorkon and doesn't decimal also build on top of ints.. 2021-05-17 05:47:03 <-- cdown_ (~cdown@163.114.131.1) has quit (Ping timeout: 265 seconds) 2021-05-17 05:47:09 --> Ergo (~ergo@91.238.59.144) has joined #python 2021-05-17 05:47:11 nedbat amogorkon: there's a thread from last week in Python-Ideas about making int division produce fractions instead of floats 2021-05-17 05:47:28 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 05:47:29 <-- HaMsTeRs (~mx@182.153.54.247) has quit (Ping timeout: 245 seconds) 2021-05-17 05:47:29 amogorkon oh. 2021-05-17 05:47:46 amogorkon i'm not sure if i'm pro or contra on that 2021-05-17 05:48:01 deniska https://bpa.st/OUVQ maybe there's a better way of doing that, but the results were consistent with the data provided by another service :) 2021-05-17 05:48:23 amogorkon it sounds like a horrible idea for backwards compatibility but a nice idea in general 2021-05-17 05:49:46 deniska What we actually need instead is an ability to monkey patch builtin types :P 2021-05-17 05:49:59 amogorkon heh 2021-05-17 05:50:11 --> stahl (~stahl@z35.anorg.net) has joined #python 2021-05-17 05:50:14 amogorkon i was more thinking of a new operator, but that works too :p 2021-05-17 05:50:32 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 05:50:55 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 260 seconds) 2021-05-17 05:51:00 --> Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has joined #python 2021-05-17 05:51:24 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 05:51:34 deniska or, what would be arguably more sane, an ability to redefine literal evaluation on a per-module basis :) 2021-05-17 05:51:50 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 05:52:35 <-- burakcank (~burakcank@88.243.153.79) has quit (Ping timeout: 268 seconds) 2021-05-17 05:52:54 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 05:53:12 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Ping timeout: 268 seconds) 2021-05-17 05:53:20 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 05:53:20 amogorkon actually, i'm tending towards the pro side now, thinking that real, most performance-relevant floating point stuff is done in numpy or some other specialized lib 2021-05-17 05:54:14 --> Karyon (~Karyon@unaffiliated/karyon) has joined #python 2021-05-17 05:54:22 <-- ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has quit (Quit: Leaving) 2021-05-17 05:54:24 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 05:54:28 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 05:54:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 05:54:50 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 05:55:54 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 05:56:17 --> computeiro (~Wender@189.37.64.88) has joined #python 2021-05-17 05:56:17 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 05:56:44 amogorkon it somewhat reminds me of the bytes vs. strings concept 2021-05-17 05:56:58 <-- n00b101 (uid448161@gateway/web/irccloud.com/x-tngcftbxlttzlepm) has quit (Quit: Connection closed for inactivity) 2021-05-17 05:57:13 --> ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has joined #python 2021-05-17 05:57:24 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 05:57:37 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 252 seconds) 2021-05-17 05:57:50 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 05:58:38 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 05:58:40 amogorkon one would probably need to draw some systems boundaries to keep things reasonably clear 2021-05-17 05:58:54 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 05:59:17 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 05:59:51 <-- swj (~swj@2409:8928:5c:17d:954b:2b27:8d77:ec9c) has quit (Ping timeout: 250 seconds) 2021-05-17 06:00:24 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 06:00:31 --> wender (~Wender@189.15.174.134) has joined #python 2021-05-17 06:00:46 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 06:01:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 06:01:53 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 06:02:16 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 06:02:27 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-17 06:03:07 <-- computeiro (~Wender@189.37.64.88) has quit (Ping timeout: 252 seconds) 2021-05-17 06:03:16 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-17 06:03:23 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 06:03:50 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 06:04:06 <-- Allegretto_ (~allegrett@91-83-4-183.pool.digikabel.hu) has quit (Ping timeout: 240 seconds) 2021-05-17 06:04:46 --> computeiro (~Wender@189.37.64.88) has joined #python 2021-05-17 06:04:54 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 06:04:57 <-- Allegretto (~allegrett@91-83-4-183.pool.digikabel.hu) has quit (Ping timeout: 260 seconds) 2021-05-17 06:04:59 <-- Core6041 (~greyblue9@2600:381:2213:a15d:a6a:cdb9:cbf4:f6cd) has quit (Ping timeout: 245 seconds) 2021-05-17 06:05:16 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 06:05:30 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-17 06:06:12 <-- wender (~Wender@189.15.174.134) has quit (Ping timeout: 240 seconds) 2021-05-17 06:10:52 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 240 seconds) 2021-05-17 06:11:57 --> runlevel7 (runlevel7@gateway/vpn/privateinternetaccess/runlevel7) has joined #python 2021-05-17 06:12:16 kosh I would not want int/int to give a fraction instead of a float 2021-05-17 06:12:31 kosh I already had to fix things from 2.x to 3.x and this would be another breaking change 2021-05-17 06:13:36 <-- LHao (~Thunderbi@2001:da8:c800:ba0f:3072:1f32:1dac:8ab4) has quit (Quit: LHao) 2021-05-17 06:14:10 <-- runlevel7_ (runlevel7@gateway/vpn/privateinternetaccess/runlevel7) has quit (Ping timeout: 268 seconds) 2021-05-17 06:14:15 --> n00b101 (uid448161@gateway/web/irccloud.com/x-yqueghwnxoqkmpie) has joined #python 2021-05-17 06:15:13 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-17 06:15:31 <-- Jerrynicki (~niklas@p549a996f.dip0.t-ipconnect.de) has quit (Ping timeout: 260 seconds) 2021-05-17 06:16:47 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 06:16:52 --> Allegretto_ (~allegrett@78-131-46-146.pool.digikabel.hu) has joined #python 2021-05-17 06:16:53 --> gulzar (~gulzar@223.235.1.247) has joined #python 2021-05-17 06:17:24 --> Allegretto (~allegrett@78-131-46-146.pool.digikabel.hu) has joined #python 2021-05-17 06:18:32 nedbat kosh: i think the idea is a non-starter because of compatibility concerns, and the thread on Python-Ideas is about whether it would be a good idea even without those concerns. 2021-05-17 06:19:27 kosh ah ok 2021-05-17 06:19:34 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 245 seconds) 2021-05-17 06:20:01 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-17 06:20:58 <-- uniquerockrz (~Saurav@103.17.85.191) has quit (Quit: Leaving) 2021-05-17 06:21:55 bjs imagine you could go back in time and make it so int/int was a fraction 2021-05-17 06:22:04 bjs or that 1.23 was a Decimal object 2021-05-17 06:22:06 <-- R0b0t1 (~R0b0t1@unaffiliated/r0b0t1) has quit (Ping timeout: 240 seconds) 2021-05-17 06:22:11 gulzar Hi. I have a pandas dataframe with same rows and columns (15,4 == 4,15) and their values as distances between them (calculated using cdist from scipy) . Now I need to create K-mers (let's say 5 mer) based on distances. So let's say dist_cutoff is 5.0 starting from any one point find 2nd point within 5.0 . From this 2nd find 3rd within 5.0 and so on . There maybe multiple points within cutoff, then split and create N K-mers. Once we have 5-mers for 2021-05-17 06:22:13 gulzar 1st. Take 2nd and find its's 5 mers, then with 3rd and so on till last. Any suggetsions? 2021-05-17 06:22:38 kosh bjs, I wonder if that would have made python so slow that it wouldn't get adopted 2021-05-17 06:23:14 --> DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has joined #python 2021-05-17 06:23:54 graingert nedbat: they should make fractions support pathlib.Path too 2021-05-17 06:24:35 bjs kosh: I don't think anyone expects such a proposal to be accepted into modern Python 2021-05-17 06:27:40 --> r_hector (~richard@2406:e001:8:a900:6e62:6dff:fe05:ae29) has joined #python 2021-05-17 06:28:09 r_hector hi - I'm trying to understand (some of) what's going on here: https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/vars/host_group_vars.py 2021-05-17 06:28:13 <-- cation21 (cation21@gateway/vpn/protonvpn/cation21) has quit (K-Lined) 2021-05-17 06:28:36 --> acresearch (~acresearc@unaffiliated/acresearch) has joined #python 2021-05-17 06:28:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 06:29:31 r_hector with a view to writing a plugin of my own. In the function get_vars, I see it calls super(VarsModule, self).get_vars() - but my understanding is that that should return a dictionary, and I don't see it getting stored anywhere 2021-05-17 06:29:58 r_hector (I'm new to python, especially OO python, as is probably obvious :-) 2021-05-17 06:30:04 graingert https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/vars/host_group_vars.py#L19 what does this do? 2021-05-17 06:30:47 --> rsx (~rsx@ppp-188-174-158-77.dynamic.mnet-online.de) has joined #python 2021-05-17 06:31:01 r_hector __metaclass__ = type? I have no idea :-) 2021-05-17 06:31:26 nichlas to get python 2 do python 3 behavior instead 2021-05-17 06:31:29 * r_hector searches 2021-05-17 06:31:32 nichlas https://stackoverflow.com/questions/18554525/what-is-the-purpose-of-metaclass-type 2021-05-17 06:32:05 --> jaziz1 (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-17 06:32:15 nichlas or, "new-style classes" instead of "old-style classes" 2021-05-17 06:32:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 06:32:34 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-17 06:33:16 r_hector so I guess it gets ignored when run with python 3? 2021-05-17 06:33:30 graingert Wtf 2021-05-17 06:33:42 graingert Today I learned 2021-05-17 06:34:05 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 250 seconds) 2021-05-17 06:34:30 r_hector but I also assume it has nothing to do with my question :-) 2021-05-17 06:34:36 Yhg1s r_hector: it doesn't. 2021-05-17 06:34:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 06:34:55 bjs graingert: https://docs.python.org/2/reference/datamodel.html#customizing-class-creation "Otherwise, if a global variable named __metaclass__ exists, it is used." 2021-05-17 06:34:56 Yhg1s r_hector: the subclass apparently doesn't care what the baseclass get_vars returns, and it's only calling it for side-effects. Or, calling it by mistake. 2021-05-17 06:35:11 r_hector hmm, ok 2021-05-17 06:35:47 r_hector so if my class does need it, I can assign the return value to something and carry on. 2021-05-17 06:36:23 --> Baumfinder (~Baumfinde@p2003000651c7a08d3c63a3ad1adcca02.dip0.t-ipconnect.de) has joined #python 2021-05-17 06:36:38 Yhg1s r_hector: yes. 2021-05-17 06:36:44 <-- Baumfinder (~Baumfinde@p2003000651c7a08d3c63a3ad1adcca02.dip0.t-ipconnect.de) has left #python ("Leaving") 2021-05-17 06:37:17 Yhg1s r_hector: FWIW, I wouldn't write code like this. calling the method that would have been called had this class not imlpemented the method and then *ignoring the result* is a peculiar thing to do. 2021-05-17 06:37:21 rendar `-> (float, float)` is the annotation of a function which returns a couple of floats, but what about that function can also return None? should i note that into annotations or not? If so, how? 2021-05-17 06:37:31 Yhg1s At the very least it deserves a lengthy comment about why it should be ignored. 2021-05-17 06:37:46 Yhg1s rendar: that's what typing.Optional is for. 2021-05-17 06:38:46 rendar Yhg1s: i have to import a library for that? :( 2021-05-17 06:39:01 --> vladoski (~vladoski@2001:b07:add:d406:adc6:fa40:84a7:bbc0) has joined #python 2021-05-17 06:39:02 Yhg1s rendar: if you're doing type annotations, you will frequently need the typing module. 2021-05-17 06:39:10 Yhg1s rendar: why are you afraid of importing modules? 2021-05-17 06:39:34 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 252 seconds) 2021-05-17 06:39:37 bjs rendar: also shouldn't that be tuple[float, float] not (float, float) 2021-05-17 06:39:50 vladoski what's the point of having else in a try except block? 2021-05-17 06:39:59 bjs vladoski: to do things in the event there was no exception 2021-05-17 06:40:02 Yhg1s vladoski: it's what gets executed if no exception gets raised. 2021-05-17 06:40:03 rendar bjs: tuple[float, float]? that's the correct one? 2021-05-17 06:40:05 r_hector huh. So it apparently doesn't return a dict after all; it returns a 'NoneType' 2021-05-17 06:40:08 bjs _Ev: yes 2021-05-17 06:40:11 bjs oops 2021-05-17 06:40:12 bjs rendar: yes 2021-05-17 06:40:14 Yhg1s r_hector: taht would be None. 2021-05-17 06:40:17 --> Thanatos (~Thanatos@197.210.71.197) has joined #python 2021-05-17 06:40:18 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Quit: = "") 2021-05-17 06:40:21 rendar bjs: why not tuple(float, float) ? 2021-05-17 06:40:28 bjs rendar: because.. that's just not what it is 2021-05-17 06:40:43 vladoski Yhg1s, okay even if that exception is not catched by some excepts? 2021-05-17 06:40:46 bjs rendar: a[b] is not the same as a(b) is not the same as a.b 2021-05-17 06:40:47 Yhg1s rendar: the typing language is a subset of Python. tuple(float, float) has a different meaning in Python. 2021-05-17 06:40:58 rendar i see, ok 2021-05-17 06:40:59 Yhg1s vladoski: no, if *no* exception is raised. 2021-05-17 06:41:26 vladoski okok 2021-05-17 06:41:38 <-- c0eos (~coeos@171.244.116.78.rev.sfr.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-17 06:41:58 --> c0eos (~coeos@171.244.116.78.rev.sfr.net) has joined #python 2021-05-17 06:43:07 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-17 06:43:11 --> jaziz3 (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-17 06:43:30 --> TFKyle (~kyle@64.201.205.70) has joined #python 2021-05-17 06:43:49 bjs vladoski: see https://bpa.st/R2NQ 2021-05-17 06:43:54 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-17 06:45:03 --> enoq (~textual@194-208-146-143.lampert.tv) has joined #python 2021-05-17 06:45:29 bjs vladoski: note that the first call executed the `else` block, but didn't execute after the try. Also note the second call did *not* execute the `else` block, because an exception was raised (even if was ZeroDivsionError, not ValueError) 2021-05-17 06:46:00 --> kek_ (~kek_@2a02:168:200f:1f10:410b:731a:6592:864d) has joined #python 2021-05-17 06:46:39 <-- jaziz1 (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 245 seconds) 2021-05-17 06:47:29 <-- jaziz3 (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 245 seconds) 2021-05-17 06:47:42 rendar `-> tuple[float, float]:` gives: TypeError: 'type' object is not subscriptable 2021-05-17 06:47:45 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: Bin weg.) 2021-05-17 06:48:09 bjs rendar: typing.Tuple then 2021-05-17 06:48:13 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 252 seconds) 2021-05-17 06:48:31 kek_ hi, are python-debugsymbols part of the normal python source found at https://www.python.org/ftp/python/3.9.5/ ? 2021-05-17 06:48:47 <-- symptom (~symptom@elenagb.nos-oignons.net) has quit (Ping timeout: 260 seconds) 2021-05-17 06:49:03 Thanatos Hello everyone 2021-05-17 06:50:26 Thanatos I want to dynamically get attributes on a class based on a condition. i.e x.v will actually return the value of x.a if x.v doesn't exist else it will return its normal expected value 2021-05-17 06:51:01 Yhg1s kek_: I'm not sure what you're asking. 'python-debugsymbols' sounds like a package name in some package system. The source doesn't contain "symbols" at all, because it's the *source*. Debug symbols are an artifact of compiled libraries or binaries. 2021-05-17 06:51:05 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-17 06:51:46 --> cation21 (cation21@gateway/vpn/protonvpn/cation21) has joined #python 2021-05-17 06:51:52 Yhg1s Thanatos: sounds like you may want to use a property for x.a? Or perhaps you're looking for the three-argument form of getattr(): getattr(x, 'v', x.a) 2021-05-17 06:52:00 Yhg1s eh, a property for x.v rather. 2021-05-17 06:52:21 podeni If I wanted to pipe XML content to a python script, what library could I use to parse it that wouldn't try to load the whole string? (I'd want to stream the data) 2021-05-17 06:52:27 --> mosasaur (~mosasaur@unaffiliated/mosasaur) has joined #python 2021-05-17 06:52:53 Yhg1s podeni: lxml.etree and xml.etree.ElementTree have ways of doing that. They're also pretty good ways of parsing XML (especially lxml.etree) 2021-05-17 06:53:15 Thanatos well, yes, the problem is that I may want x.y or x.z tomorrow and I want to cover those cases without littering my class definition with property attributes 2021-05-17 06:53:32 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 240 seconds) 2021-05-17 06:53:35 Yhg1s Thanatos: it's difficult to suggest a good solution without more detail 2021-05-17 06:53:55 Thanatos Yhg1s, can I use the three atttribute method in the class defifnition 2021-05-17 06:54:17 podeni Thanks Y4kuzi, I'm trying xml.etree now, but the following command seems to wait for data to load instead of processing it as it comes: for row in tree.iterfind('./database/table_data/row'): 2021-05-17 06:54:29 podeni (context: I'm trying to parse the output of mysqldump --xml) 2021-05-17 06:54:45 <-- predmijat (~predmijat@mail.strogopro.com) has quit (Quit: bye) 2021-05-17 06:55:10 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Quit: Beddie bye-bye) 2021-05-17 06:55:17 <-- mcope (~mcope@88.98.90.199) has quit (Quit: Konversation terminated!) 2021-05-17 06:55:30 Yhg1s podeni: yes, to stream-parse the XML you have to use xml.etree.ElementTree.iterparse (or lxml.etree.iterparse, which will be faster) 2021-05-17 06:55:41 kek_ Yhg1s, yeah I want to debug something using gdb but I don't have labels for the symbols and apparently people use an extra package to get them but turns out, it's probably just python compiled with py_debug flag. thanks though 2021-05-17 06:56:04 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 06:56:35 Yhg1s podeni: to avoid storing everything in memory as you parse it, you have to decide what to throw away; see https://lxml.de/parsing.html#modifying-the-tree for example. 2021-05-17 06:56:52 Thanatos Yhg1s, I'm wrote a script to read and catalogue data from a Postgres database, my times in the script I access columns using the Table.column syntax. This works as expected. Another database I'm working with has the same schema BUT some of the table names as well as columns are capitalized and SQLalchemy says my lowercase class attributes don't exits anymore. 2021-05-17 06:57:27 Yhg1s kek_: if you need debug symbols for a specific binary package, they need to be *that binary package's debug symbols*. You can't create them after the fact. 2021-05-17 06:57:48 --> predmijat (~predmijat@mail.strogopro.com) has joined #python 2021-05-17 06:57:50 Thanatos so normally, User.email works but now I need to call User.EMAIL. 2021-05-17 06:57:53 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Remote host closed the connection) 2021-05-17 06:58:16 <-- al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has quit (Read error: Connection reset by peer) 2021-05-17 06:58:19 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-17 06:58:25 kek_ Yhg1s, As I said, I need the symbols for the c api and from what I saw one needs to compile python with Py_debug to see them e.g. in gdb. 2021-05-17 06:58:26 --> z8z (~x@122x212x11x242.ap122.ftth.ucom.ne.jp) has joined #python 2021-05-17 06:58:38 <-- adder`` (~adder@unaffiliated/adder) has quit (Remote host closed the connection) 2021-05-17 06:58:38 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 06:58:53 Thanatos Yhg1s, I want a call to User.email to check for User.email, if attribute error, check User.EMAIL. 2021-05-17 06:59:04 --> adder`` (~adder@unaffiliated/adder) has joined #python 2021-05-17 06:59:10 <-- adder (~adder@unaffiliated/adder) has quit (Remote host closed the connection) 2021-05-17 06:59:35 --> adder (~adder@unaffiliated/adder) has joined #python 2021-05-17 07:00:08 --> jangid (~user@2405:201:5c06:70a7:2d3f:6fa7:cfe9:5b8f) has joined #python 2021-05-17 07:00:38 --> bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has joined #python 2021-05-17 07:00:41 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-17 07:01:18 <-- TobiasFella (tobiasfell@gateway/shell/kde/matrix/x-edseczidhpgnuhnr) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-17 07:01:39 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 07:01:41 Yhg1s Thanatos: ok; as far as I know SQLAlchemy should handle this automatically, if your column names are all lowercase (in your schema). 2021-05-17 07:02:38 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 07:03:01 --> TobiasFella (tobiasfell@gateway/shell/kde/matrix/x-mlgqsvrngdjhynio) has joined #python 2021-05-17 07:03:10 --> ralderson (~textual@cpe-74-139-45-84.kya.res.rr.com) has joined #python 2021-05-17 07:03:39 Yhg1s Thanatos: but if it were actually different (or if SQLAlchemy can't handle it in that specific case for other reasons, like there being words that *have* to be quoted regardless of case sensitivity), I would provide a different schema or in some way pass the different column names to SQLAlchemy, rather than try to change what attribute gets fetched. 2021-05-17 07:03:48 Yhg1s kek_: that's not the cdase, no. 2021-05-17 07:04:24 Yhg1s kek_: you can get debug symbols just fine in a regular Python build. It's just that they are often stripped after the build process, in the packaging process (for whatever packaging system you're using) 2021-05-17 07:04:31 -- Alzadoua is now known as A-cat 2021-05-17 07:04:46 Thanatos Yhg1s, I'm reflecting or automapping the database 2021-05-17 07:04:52 IHasFinger is they a method in python which can turn something like 551269514 to 551,269,514 . 10000 to 10,000 etc? 2021-05-17 07:05:14 FunkyBob IHasFinger: am sure string formatting has something 2021-05-17 07:05:16 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Remote host closed the connection) 2021-05-17 07:05:26 Thanatos Is thera setting I might mistakenly turned on to make column and table lookups case sensitive 2021-05-17 07:05:36 <-- deniska (~denis@unaffiliated/deniska) has quit (Remote host closed the connection) 2021-05-17 07:05:48 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-17 07:06:01 Yhg1s IHasFinger: f'{551269514:,}' 2021-05-17 07:06:15 Yhg1s Thanatos: you could be setting quote=True somewhere, I guess. 2021-05-17 07:06:37 Yhg1s Thanatos: but also providing names with uppercase characters in them will make SQLAlchemy quote by default (which means case sensitivity in SQL) 2021-05-17 07:06:58 --> YuGiOhJCJ (~YuGiOhJCJ@gateway/tor-sasl/yugiohjcj) has joined #python 2021-05-17 07:07:54 <-- theology (~theology@unaffiliated/theology) has quit (Ping timeout: 245 seconds) 2021-05-17 07:08:01 IHasFinger FunkyBob, and Yhg1s thank you 2021-05-17 07:08:18 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-17 07:08:36 Thanatos The current database MS SQL Server, has column and tables names in uppercase. When I used Table.column, it claims the column doesn't exist bit works with Table.COLUMN 2021-05-17 07:09:35 Thanatos Yhg1s, I'vre grepped the project folder, quote = True isn't used. 2021-05-17 07:10:12 faceface morning 2021-05-17 07:10:21 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-17 07:10:45 faceface I've been trying to write pythonic and clear code, but I always end up stuck going round design choices 2021-05-17 07:11:35 podeni Thanks Y4kuzi the following worked: for event, elem in lxml.etree.iterparse(sys.stdin.buffer, events=("start", "end")): 2021-05-17 07:11:52 faceface I have 131 lines of code that are more or less my entire application here: https://gist.github.com/CholoTook/2eaed8009e48e65bc1b1b65111320a59 ... Does anything jump out as rong^{TM} from a pythonistas perspective? 2021-05-17 07:12:36 faceface I'd be hugely grateful for tips on how to be more pythonic... Ah... I should pep8 that 2021-05-17 07:13:51 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-17 07:14:26 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-17 07:14:39 <-- sesser_ (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-17 07:14:43 nedbat faceface: the only thing i see is that you don't need line 40 2021-05-17 07:15:01 Thanatos Yhg1s, I've resulted to using a model mixin and overloading __getattribute__ and __getattr__. but it's not working 2021-05-17 07:15:21 bjs faceface: not reading it in too much detail, i notice a few things: the `return None` at the end of functions is redundant and doesn't seem to add anything; in get_sample_genotypes you don't seem to use the sample_id, perhaps that function can be simplified?; in gpl_to_marker_dict why not just call snp_string_to_dict directly in the comprehension?; for snp_string_to_dict why not just make it a dict literal? 2021-05-17 07:15:28 <-- sTKs (~weechat@2001:818:e634:e700:f45f:5e52:c83e:e942) has quit (Quit: WeeChat 1.9.1) 2021-05-17 07:15:36 bjs faceface: like `return {"AA": ..., "BB": ..., ...}` 2021-05-17 07:15:57 kek_ Yhg1s, so are you saying I'm not missing the symbols names because of python being compiled without the debug flag? 2021-05-17 07:16:07 kek_ Yhg1s, no idea what a "regular build" is. 2021-05-17 07:16:35 bjs faceface: and line35 / the update_sample_genotype function, it's nicer if it *either* mutates the underlying dict, *or* returns a new dict. I'd remove the `return` and on line35 not re-assign 2021-05-17 07:16:50 Yhg1s Thanatos: yeah, I wouldn't expect that to work. How about overriding the column names instead? Or, reflecting once and recording the result, so the API doesn't change depending on case? Or, failing that, wrapping the SQLAlchemy classes in an API-normalizing class. 2021-05-17 07:17:03 <-- Tas-sos (~Tas-sos@snf-709504.vm.okeanos.grnet.gr) has quit (Quit: leaving) 2021-05-17 07:17:07 --> wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has joined #python 2021-05-17 07:17:12 Yhg1s kek_: yes, the reason you're missing debug symbols isn't that Python was being compiled without Py_DEBUG. It's because your particular build was stripped of debug symbols. 2021-05-17 07:17:22 Yhg1s kek_: a regular build is a build without Py_DEBIG. 2021-05-17 07:17:31 --> Tas-sos (~Tas-sos@snf-709504.vm.okeanos.grnet.gr) has joined #python 2021-05-17 07:18:27 faceface OK pep8'ed 2021-05-17 07:18:29 kek_ Yhg1s, so how do I get the symbol names/function names in gdb then? 2021-05-17 07:19:10 Yhg1s kek_: you need the debug symbols for the Python binary you're using. You need to ask whatever gave you the Python binary to also give you the debug symbols. Or, you need a new build of Python that includes the debug symbols. 2021-05-17 07:19:38 Thanatos Yhg1s, Although I'm calling quite a number of columns, it's doable but fells quite menial and not dynamic 2021-05-17 07:19:49 Thanatos *feels 2021-05-17 07:20:24 Thanatos And it means, every column I want to call has to have its own overloaded property attribute 2021-05-17 07:20:49 faceface nedbat: thanks 2021-05-17 07:21:01 faceface bjs: thanks, I'll have to think about those in detail :-) 2021-05-17 07:21:15 Yhg1s Thanatos: I don't know what you mean by 'it' there. The last objection in particular doesn't seem to apply to any of my suggestions. 2021-05-17 07:21:35 kek_ Yhg1s, how do I hceck if my build includes the debug symbols? 2021-05-17 07:21:37 --> deniska (~denis@unaffiliated/deniska) has joined #python 2021-05-17 07:22:27 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-17 07:22:46 Yhg1s kek_: well, if gdb can't find them, they're not included. They can be part of the binary, or they can live in a separate set of files somewhere gdb knows to find them (which isn't a static place), so it's hard to give a simple answer. 2021-05-17 07:22:59 Thanatos Yhg1s, You said to override column names, I was replying to that. 2021-05-17 07:23:02 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 07:23:02 Yhg1s kek_: they are sometimes available as a separate package in your packaging system, though. 2021-05-17 07:23:17 faceface OK, I'll go over those suggestions and see if I can understand them Seem to make sense at first glance, but not 100% sure I understand dict comprehension point... may be clearer that way 2021-05-17 07:23:38 kek_ Yhg1s, isn't there a wiki page, man page or some other kind of documentation about this? 2021-05-17 07:23:50 faceface I have three 'test_*.py' files... If I do create classes for Sample and SampleGenotype, do I put my tests for those methods within the class? 2021-05-17 07:23:51 Yhg1s Thanatos: by 'overloading column names' I meant while reflecting the database. You can override things like table and column names when you do that. 2021-05-17 07:23:56 Yhg1s Thanatos: I did not mean overloading properties. 2021-05-17 07:24:10 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 07:24:10 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-17 07:24:18 Thanatos Yhg1s, I'm sorry. I wasn't aware 2021-05-17 07:24:29 Yhg1s kek_: maybe! It depends on what package you're actually talking about. Is this an OS package, or pyenv, or something else? How did you get the python you're trying to get the symbols of? 2021-05-17 07:24:29 bjs faceface: usually people put tests separately 2021-05-17 07:24:38 avu kek_: it depends on how/where you got your Python, if you used a Linux package manager for example, there is likely to be a package with -dbg or -debug at the end 2021-05-17 07:24:48 bjs faceface: like in a separate tests/ directory, which has files which import the classes and test them. But there's no hard rule. 2021-05-17 07:25:44 faceface bjs: cool, thanks again 2021-05-17 07:26:01 faceface I tried to be of the mindset that, 'if I can't test this easily, I'm doin it rong' 2021-05-17 07:28:38 --> henninb (~henninb@63-226-190-31.mpls.qwest.net) has joined #python 2021-05-17 07:28:39 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 07:29:01 bjs faceface: it's not always wrong, I mean testing is hard and some things are just harder to test than others. But you should definitely try make it easier to test 2021-05-17 07:29:10 --> Jantz (~IceChat95@2407:7000:8d04:100:cc3c:789f:b4d9:54aa) has joined #python 2021-05-17 07:29:28 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 07:29:28 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 07:29:39 bjs I've noticed that people put some fixed effort into testing, and if testing is harder than that then people just stop writing tests. So making testing easy is good. 2021-05-17 07:29:59 <-- henninb (~henninb@63-226-190-31.mpls.qwest.net) has quit (Client Quit) 2021-05-17 07:30:26 --> urodna (~urodna@unaffiliated/urodna) has joined #python 2021-05-17 07:30:35 --> henninb (~henninb@63-226-190-31.mpls.qwest.net) has joined #python 2021-05-17 07:30:38 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 07:30:44 --> Elodin (~weechat@unaffiliated/padawan) has joined #python 2021-05-17 07:30:46 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-17 07:31:35 kek_ Yhg1s, no idea what pyenv is and what you mean by package. If you are refering to python itself then I'm using the python package from the arch repo. I have some code that gives me problems which I want to debug using gdb but I miss the symbol names. avu yeah there's an AUR package that might give me that but that's out of date so useless. I'm trying to figure out how I'd manually download those debug symbols and include it manually, 2021-05-17 07:31:35 kek_ buuild it form source or whatever but I somehow can't find the documentation for it. 2021-05-17 07:31:39 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 07:31:45 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-17 07:31:54 --> lejocelyn (~lejocelyn@ip5f5bd552.dynamic.kabel-deutschland.de) has joined #python 2021-05-17 07:31:58 faceface bjs: "in gpl_to_marker_dict why not just call snp_string_to_dict directly in the comprehension"... I guess my ability to easily read a dict comprehension is shakey, so I thought it was clearer to do the function call in a separate loop 2021-05-17 07:32:41 bjs faceface: ah, I was thinking something like `return {marker_table.at[i, 'ID']: snp_string_to_dict(marker_table.at[i, 'SNP']) for ...}` 2021-05-17 07:32:49 avu kek_: if the debug symbols are not included with the package directly, there's probably some package in the same repo with the symbols. I don't know what convention Arch uses to name those, most distributions use either a suffix of either -dbg or -debug I think 2021-05-17 07:34:02 Yhg1s kek_: sounds like https://wiki.archlinux.org/title/Debug_-_Getting_Traces is the wiki page you're asking for then. This isn't about Python as such, it's about how the Arch package built Python. You can't download the symbols from anywhere if Arch doesn't provide the specific debug symbols for the package. 2021-05-17 07:34:03 faceface I see... super 'lite' code... 2021-05-17 07:34:04 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 07:34:09 avu kek_: https://wiki.archlinux.org/title/Debug_-_Getting_Traces seems to imply they don't ship such packages and you have to build them on your own 2021-05-17 07:34:20 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 268 seconds) 2021-05-17 07:34:52 bjs faceface: these style things are always personal preference of course. 2021-05-17 07:34:54 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 07:34:56 faceface bjs: same question for your next comment, "for snp_string_to_dict why not just make it a dict literal" ... Again, I think I used several lines to make it clearer 2021-05-17 07:34:58 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 252 seconds) 2021-05-17 07:35:06 bjs faceface: the dict literal can be on several lines too 2021-05-17 07:35:10 faceface bjs: OK, so long as it isn't 'terrible python' 2021-05-17 07:35:11 bjs with comments between the lines just like here 2021-05-17 07:35:26 <-- bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has quit (Ping timeout: 260 seconds) 2021-05-17 07:35:28 kek_ avu, Yhg1s thanks, sometimes I get lost since I'm still not too comfortable in this kind of space. Thanks for your help. :) 2021-05-17 07:35:29 faceface OK... but there is no inherent advantage? 2021-05-17 07:35:30 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-17 07:35:34 faceface other than style? 2021-05-17 07:35:40 --> dntreou (~yakiza@vpn1.datalogix.com) has joined #python 2021-05-17 07:35:54 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 07:35:57 faceface I guess it's pretty neat 2021-05-17 07:36:02 faceface and perhaps easier to read 2021-05-17 07:36:06 bjs faceface: no but PEP8 and everything related is entirely style 2021-05-17 07:36:13 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 07:36:28 --> boxr (~boxr@panopticon.cybergaraget.org) has joined #python 2021-05-17 07:36:29 faceface cool 2021-05-17 07:36:31 bjs keeping a consistent style is also good because it makes spotting things that are wrong easier 2021-05-17 07:37:15 bjs faceface: like your update_sample_genotype which both mutates and returns. This is unusual in Python. It's not "wrong", it's just Python programmers usually don't do that. 2021-05-17 07:37:19 faceface I'm wondering about my '''storage class''' ... if I make classes for Sample and SampleGenotype, would I give those their own 'store' methods? I get very shakey when it comes to composing objects 2021-05-17 07:37:33 faceface bjs: right, I hadn't got to that one yet 2021-05-17 07:37:53 faceface I'm happy to either return or mutate... not sure which yet ;-) 2021-05-17 07:38:15 bjs faceface: you see both in Python a lot, you just don't often see them both in the same function :) 2021-05-17 07:38:15 faceface I guess it's cleaner not to mutate 2021-05-17 07:38:21 faceface cool 2021-05-17 07:38:35 bjs faceface: mutating is fine, if you choose to return something new instead of mutating then I recommend changing the name though 2021-05-17 07:38:43 bjs (as "update" would imply some kind of mutation to me) 2021-05-17 07:38:56 bjs something effectful anyway 2021-05-17 07:39:37 faceface Now I remember I was a bit hesitant to change a dicts values while looping through the dict... 2021-05-17 07:40:07 bjs faceface: that's okay, you just can't add or remove things from the dict when you do it 2021-05-17 07:41:21 --> legola (~legola@unaffiliated/legola) has joined #python 2021-05-17 07:42:09 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-17 07:42:32 --> theology (~theology@unaffiliated/theology) has joined #python 2021-05-17 07:42:59 --> otisolsen70 (~otisolsen@xd4ed80b5.cust.hiper.dk) has joined #python 2021-05-17 07:43:14 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-17 07:43:59 <-- mjh4386 (~mjh4386@165.22.53.231) has quit (Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in) 2021-05-17 07:44:27 faceface ye 2021-05-17 07:44:31 faceface huge thanks. 2021-05-17 07:45:54 bjs faceface: one final thing, that moves very much into "preference" now; but I tend to prefer naming things like "dict_from_snp_string" rather than "snp_string_to_dict" as the latter can sometimes sound more like an effect/update than a creation 2021-05-17 07:45:59 --> Baumfinder (~Baumfinde@p2003000651c7a08d3c63a3ad1adcca02.dip0.t-ipconnect.de) has joined #python 2021-05-17 07:46:12 <-- Baumfinder (~Baumfinde@p2003000651c7a08d3c63a3ad1adcca02.dip0.t-ipconnect.de) has left #python 2021-05-17 07:47:34 <-- jangid (~user@2405:201:5c06:70a7:2d3f:6fa7:cfe9:5b8f) has quit (Quit: break) 2021-05-17 07:47:52 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-17 07:49:22 <-- sesser (~sesser@107.13.245.224) has quit 2021-05-17 07:49:47 --> R0b0t1 (~R0b0t1@unaffiliated/r0b0t1) has joined #python 2021-05-17 07:50:06 --> dez (uid92154@fedora/deSouza) has joined #python 2021-05-17 07:50:22 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 252 seconds) 2021-05-17 07:51:20 --> al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-17 07:51:38 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 07:52:19 <-- irrgit (~ch33se@192.241.175.183) has quit (Remote host closed the connection) 2021-05-17 07:52:29 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 245 seconds) 2021-05-17 07:52:29 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 07:53:31 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-17 07:53:44 --> Haudegen (~quassel@91.114.49.10) has joined #python 2021-05-17 07:53:45 <-- carduus (~carduus@134.245.44.85) has quit (Quit: leaving) 2021-05-17 07:54:41 --> Suwacc (~textual@45.248.77.100) has joined #python 2021-05-17 07:54:42 --> irrgit (~ch33se@192.241.175.183) has joined #python 2021-05-17 07:55:00 --> zaki (~zaki@2601:403:4280:3a60::bc69) has joined #python 2021-05-17 07:57:09 <-- zaki (~zaki@2601:403:4280:3a60::bc69) has quit (Client Quit) 2021-05-17 07:57:55 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-17 07:58:03 --> symptom (~symptom@46.7.21.148) has joined #python 2021-05-17 07:59:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 07:59:18 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-17 07:59:20 --> mjh4386 (~mjh4386@165.22.53.231) has joined #python 2021-05-17 07:59:22 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-17 07:59:38 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 07:59:44 --> quackgyver (uid11872@gateway/web/irccloud.com/x-wtstqinufefgfahc) has joined #python 2021-05-17 07:59:55 <-- drazan (~drazan@216.243.54.166) has quit (Remote host closed the connection) 2021-05-17 08:00:25 --> TimeTrap_ (~TimeTrap@c-68-82-53-117.hsd1.pa.comcast.net) has joined #python 2021-05-17 08:00:59 --> zaki (~zaki@2601:403:4280:3a60::bc69) has joined #python 2021-05-17 08:01:34 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 08:01:38 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-17 08:04:03 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:307b:b58:d925:5dd5) has joined #python 2021-05-17 08:04:31 --> Air15 (678fa846@103.143.168.70) has joined #python 2021-05-17 08:04:38 --> drazan (~drazan@216.243.54.166) has joined #python 2021-05-17 08:05:04 --> Jerrynicki (~niklas@p549a996f.dip0.t-ipconnect.de) has joined #python 2021-05-17 08:05:08 --> iptable (~iptable@host86-139-28-5.range86-139.btcentralplus.com) has joined #python 2021-05-17 08:05:28 <-- iptable (~iptable@host86-139-28-5.range86-139.btcentralplus.com) has quit (Read error: Connection reset by peer) 2021-05-17 08:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-17 08:06:02 <-- plutoniix (~q@ppp-58-8-148-189.revip2.asianet.co.th) has quit (Quit: Leaving) 2021-05-17 08:06:15 <-- Suwacc (~textual@45.248.77.100) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-17 08:06:39 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-17 08:06:58 --> Guddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-17 08:07:51 <-- z8z (~x@122x212x11x242.ap122.ftth.ucom.ne.jp) has quit (Quit: Quitting) 2021-05-17 08:07:55 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-17 08:07:55 --> iptable (~iptable@host86-139-28-5.range86-139.btcentralplus.com) has joined #python 2021-05-17 08:07:57 <-- symptom (~symptom@46.7.21.148) has quit (Quit: Leaving) 2021-05-17 08:08:15 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 08:09:15 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 08:09:24 Air15 How to ignore python logger level inherit if level NOTSET? https://bpa.st/LOXQ 2021-05-17 08:09:51 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 08:10:22 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-17 08:11:31 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-17 08:11:35 <-- theology (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-17 08:11:57 --> guriya (a0ee4a50@unaffiliated/guriya) has joined #python 2021-05-17 08:12:22 <-- lbalhar (~lbalhar@spsei.osanet.cz) has quit (Ping timeout: 252 seconds) 2021-05-17 08:12:22 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-17 08:12:40 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 08:13:08 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 08:13:11 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-17 08:13:48 --> barneygale (~barneygal@cpc93788-hari17-2-0-cust405.20-2.cable.virginm.net) has joined #python 2021-05-17 08:15:35 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-17 08:16:06 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-17 08:16:18 Air15 How to ignore python logger level inherit if level NOTSET? https://bpa.st/LOXQ 2021-05-17 08:16:42 --> ewdwasright (~ewdwasrig@108.210.81.181) has joined #python 2021-05-17 08:17:10 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 08:17:30 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 08:18:07 --> debnet (sid330295@gateway/web/irccloud.com/x-fxslzvemwgnnicoj) has joined #python 2021-05-17 08:18:17 --> pbnoxious (pbnoxious@piratenpartei/jupi/pbnoxious) has joined #python 2021-05-17 08:20:15 <-- zaki (~zaki@2601:403:4280:3a60::bc69) has quit (Ping timeout: 250 seconds) 2021-05-17 08:20:41 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 250 seconds) 2021-05-17 08:24:15 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 08:24:44 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 08:24:51 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 08:25:01 --> ralof_ (~ralof@dynamic-095-115-015-219.95.115.pool.telefonica.de) has joined #python 2021-05-17 08:25:11 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 08:25:28 --> Suwacc (~textual@45.248.77.132) has joined #python 2021-05-17 08:27:19 supakeen No need to repeat the question, if someone knows the answer (and has time to explain) they'll respond :) 2021-05-17 08:27:39 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-17 08:28:11 <-- ralof (~ralof@dynamic-095-115-015-219.95.115.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-17 08:28:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 08:29:24 -- kelalaka- is now known as kelalaka 2021-05-17 08:29:33 --> JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has joined #python 2021-05-17 08:30:21 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-17 08:30:42 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-17 08:30:44 <-- gulzar (~gulzar@223.235.1.247) has quit (Quit: Konversation terminated!) 2021-05-17 08:31:01 --> fizzizist (~Thunderbi@108.162.133.99) has joined #python 2021-05-17 08:32:13 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 08:33:51 <-- tm007 (uid287041@gateway/web/irccloud.com/x-kwozcmbphdyynggy) has quit (Quit: Connection closed for inactivity) 2021-05-17 08:36:15 <-- Air15 (678fa846@103.143.168.70) has quit (Quit: Connection closed) 2021-05-17 08:37:03 --> vali (~vali@unaffiliated/vali) has joined #python 2021-05-17 08:37:24 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-17 08:38:10 --> stealth_ (~stealth_@216-197-160-97.regn.static.sasknet.sk.ca) has joined #python 2021-05-17 08:39:02 <-- gitesh (uid423739@gateway/web/irccloud.com/x-wbypvgzpiqxmxlce) has quit (Quit: Connection closed for inactivity) 2021-05-17 08:39:40 --> xsx (~x@unaffiliated/bxsx) has joined #python 2021-05-17 08:40:02 --> py_dev (d57f26ce@ip-213-127-38-206.ip.prioritytelecom.net) has joined #python 2021-05-17 08:40:03 <-- vali (~vali@unaffiliated/vali) has quit (Client Quit) 2021-05-17 08:40:27 --> gitesh (uid423739@gateway/web/irccloud.com/x-yqjanboycmiqeuoe) has joined #python 2021-05-17 08:40:48 --> vali (~vali@unaffiliated/vali) has joined #python 2021-05-17 08:40:58 --> symptom (~symptom@46.7.21.148) has joined #python 2021-05-17 08:41:41 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 240 seconds) 2021-05-17 08:42:26 <-- sesser (~sesser@107.13.245.224) has quit (Ping timeout: 240 seconds) 2021-05-17 08:42:35 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 08:43:12 --> tm007 (uid287041@gateway/web/irccloud.com/x-moiiugrbetdlqeqv) has joined #python 2021-05-17 08:43:26 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-17 08:43:28 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 08:43:57 <-- stranac (~stranac@195.29.239.126) has quit (Read error: Connection reset by peer) 2021-05-17 08:44:29 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 260 seconds) 2021-05-17 08:44:29 <-- Jantz (~IceChat95@2407:7000:8d04:100:cc3c:789f:b4d9:54aa) has quit (Ping timeout: 260 seconds) 2021-05-17 08:45:01 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 260 seconds) 2021-05-17 08:46:22 <-- guriya (a0ee4a50@unaffiliated/guriya) has quit (Ping timeout: 240 seconds) 2021-05-17 08:46:43 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-17 08:47:42 <-- symptom (~symptom@46.7.21.148) has quit (Quit: Leaving) 2021-05-17 08:47:43 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-17 08:48:25 <-- iptable (~iptable@host86-139-28-5.range86-139.btcentralplus.com) has quit (Read error: Connection reset by peer) 2021-05-17 08:49:06 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 240 seconds) 2021-05-17 08:49:48 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-17 08:53:10 --> iptable (~iptable@host86-139-28-5.range86-139.btcentralplus.com) has joined #python 2021-05-17 08:53:10 <-- YuGiOhJCJ (~YuGiOhJCJ@gateway/tor-sasl/yugiohjcj) has quit (Quit: YuGiOhJCJ) 2021-05-17 08:53:25 --> symptom (~symptom@46.7.21.148) has joined #python 2021-05-17 08:54:05 <-- Mulugruntz (~Mulugrunt@2400:4152:2063:3100:644a:f31a:8b68:9eea) has quit (Quit: ZZZzzz…) 2021-05-17 08:54:15 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-17 08:54:34 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-17 08:55:18 <-- symptom (~symptom@46.7.21.148) has quit (Client Quit) 2021-05-17 08:55:40 --> sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has joined #python 2021-05-17 08:55:50 <-- PantelicGR (~PantelicG@unaffiliated/pantelicgr) has quit (Quit: Leaving) 2021-05-17 08:56:08 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-17 08:56:37 <-- blip- (~blip-@unaffiliated/blip-) has quit (Quit: Leaving) 2021-05-17 08:57:08 Gurkenglas Is there a mode in which I can run torch that is blazingly fast but has nan in every entry of every tensor, so I can check how much memory my hyperparameter settings would use if my gpu had that much memory? 2021-05-17 08:58:27 --> lmt (uid107697@gateway/web/irccloud.com/x-hhtymfkwjeyuucbx) has joined #python 2021-05-17 08:58:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 08:58:45 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-17 09:01:06 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-17 09:01:08 --> qj (~qj@unaffiliated/qj) has joined #python 2021-05-17 09:01:44 --> sinanislekdemir (~sinan@dsl-hkibng42-5673ca-177.dhcp.inet.fi) has joined #python 2021-05-17 09:02:02 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-17 09:02:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 09:02:47 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-17 09:04:06 <-- vali (~vali@unaffiliated/vali) has quit (Ping timeout: 240 seconds) 2021-05-17 09:04:06 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 09:04:38 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-17 09:04:42 <-- henninb (~henninb@63-226-190-31.mpls.qwest.net) has quit (Quit: Lost terminal) 2021-05-17 09:04:59 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 09:05:02 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-17 09:06:58 <-- n00b101 (uid448161@gateway/web/irccloud.com/x-yqueghwnxoqkmpie) has quit (Quit: Connection closed for inactivity) 2021-05-17 09:07:23 <-- mjh4386 (~mjh4386@165.22.53.231) has quit (Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in) 2021-05-17 09:07:55 --> mjh4386 (~mjh4386@165.22.53.231) has joined #python 2021-05-17 09:08:05 nomic i gather you can't detect what the encoding of a string is 2021-05-17 09:08:44 --> deekej (~deekej@ip4-95-82-164-84.cust.nbox.cz) has joined #python 2021-05-17 09:08:59 nomic of course not 2021-05-17 09:09:01 bjs nomic: strings (a str) does not have an encoding. Bytes could be in any encoding and there's no way to know 2021-05-17 09:09:15 bjs you can guess and see if the output is readable, but it's out-of-band information 2021-05-17 09:09:20 nomic bytes. 2021-05-17 09:09:25 nomic i meant encoding of bytes, right 2021-05-17 09:09:32 nomic and i understand that there is no way to detect that 2021-05-17 09:10:48 bjs nomic: and of course, bytes could just be a random jumble of numbers with no text and no encoding at all 2021-05-17 09:10:52 Kingsy is it possible to have custom class attributes on a defined exception? So when I raise it, then catch. I could do a pprint(err.some_custom_value) ? this is my exception -> https://bpa.st/CDCQ <- is that valid? 2021-05-17 09:10:58 nomic understood 2021-05-17 09:11:00 bjs nomic: there are libraries (like chardet, although it's old i don't know how well it works) that tries to guess 2021-05-17 09:11:15 bjs nomic: although hopefully for most modern things you can guess utf-8 and it'll "work" 2021-05-17 09:11:27 bjs Kingsy: yes 2021-05-17 09:11:31 Wulf Kingsy: try it and see? 2021-05-17 09:11:36 Kingsy sorry thanks 2021-05-17 09:11:50 * bjs Kingsy: the tutorial has some examples of doing just that https://docs.python.org/3/tutorial/errors.html#user-defined-exceptions 2021-05-17 09:12:13 Wulf Kingsy: exceptions are not really special in python. They're classes/objects like any other. 2021-05-17 09:13:50 --> Ammar__ (~Ammar@unaffiliated/ammar/x-9582159) has joined #python 2021-05-17 09:14:42 Kingsy thankyou 2021-05-17 09:15:18 Ammar__ Hi, does python automatically merge spaces when added to a string like 's ' + ' ' == 's ' is True? 2021-05-17 09:15:41 bjs Ammar__: no 2021-05-17 09:15:46 Ammar__ Hmm interesting 2021-05-17 09:15:57 <-- eht (~eht@unaffiliated/eht) has quit (Quit: Lost terminal) 2021-05-17 09:15:59 bjs Ammar__: print('s ' + ' ' == 's ') prints False 2021-05-17 09:16:10 bjs Ammar__: interesting? 2021-05-17 09:16:10 --> ikus060 (~ikus060@173-246-15-25.qc.cable.ebox.net) has joined #python 2021-05-17 09:16:54 Ammar__ Okay this is more like a puzzle than an actual question because I kept trying to figure out why Im not getting the intended result turns out python is possibly eating a space without telling 2021-05-17 09:16:56 Ammar__ XD 2021-05-17 09:17:00 Ammar__ I could be wrong though 2021-05-17 09:17:08 Ammar__ I will double check first 2021-05-17 09:17:09 bjs Ammar__: that sounds like a total guess :) 2021-05-17 09:17:14 leduyquang753 "s " + " " = "s ". 2021-05-17 09:17:17 bjs Ammar__: maybe you can share the code and the output? 2021-05-17 09:17:17 Ammar__ Yep 2021-05-17 09:17:24 Ammar__ certainly 2021-05-17 09:17:32 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 09:17:48 Ammar__ it's a simple transposition cipher encrypt and decrypt 2021-05-17 09:18:13 leduyquang753 A space is like any other normal character. 2021-05-17 09:18:58 faceface bjs: roger 2021-05-17 09:19:13 Ammar__ It's probably me bein low on sugar. I will double check then share the code to save you time and me embarassement XD 2021-05-17 09:19:27 * CrtxReavr baffles 2021-05-17 09:19:32 CrtxReavr You're comparing one space to two spaces. 2021-05-17 09:19:39 <-- Profound (Profound@unaffiliated/profound) has quit (Remote host closed the connection) 2021-05-17 09:19:45 <-- iptable (~iptable@host86-139-28-5.range86-139.btcentralplus.com) has quit (Read error: Connection reset by peer) 2021-05-17 09:20:05 <-- _till_ (~till@unaffiliated/till/x-7804721) has quit (Ping timeout: 246 seconds) 2021-05-17 09:20:08 --> Profound (Profound@unaffiliated/profound) has joined #python 2021-05-17 09:21:14 <-- esselfe (~steph@unaffiliated/esselfe) has quit (Quit: brb) 2021-05-17 09:21:16 Ammar__ Hmm join() could be the culprit does't it merge spaces? the code https://bpa.st/U6IA 2021-05-17 09:21:37 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-17 09:21:46 bjs Ammar__: no, join does not merge spaces 2021-05-17 09:21:51 --> _till_ (~till@unaffiliated/till/x-7804721) has joined #python 2021-05-17 09:21:51 bjs Ammar__: (are you guessing again?) 2021-05-17 09:21:59 --> iptable (~iptable@host86-139-28-5.range86-139.btcentralplus.com) has joined #python 2021-05-17 09:22:08 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 265 seconds) 2021-05-17 09:22:10 bjs Ammar__: "stripNonAscii" sounds like something that throws away spaces though 2021-05-17 09:22:36 Ammar__ It's not being used. At least not in decrypt 2021-05-17 09:22:42 Ammar__ you can comment it out 2021-05-17 09:22:51 --> endiruna (~endiendir@46.101.187.207) has joined #python 2021-05-17 09:23:10 bjs Ammar__: do you have an example input/output that shows the spaces being stripped? 2021-05-17 09:23:11 bjs so we can try 2021-05-17 09:23:11 Ammar__ but my problem is that the message from encrypt should be fed to decrypt along the key and give me back the initial one 2021-05-17 09:23:17 Ammar__ yes 2021-05-17 09:23:21 <-- sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-17 09:23:26 Ammar__ 'common sense is no so common' 2021-05-17 09:23:31 Ammar__ was the sentence I used 2021-05-17 09:23:37 Ammar__ and I got this 2021-05-17 09:23:56 stealth_ Ammar__, `print(repr(something))` to see what is actually being outputting, don't just assume 2021-05-17 09:24:20 bjs Ammar__: but if you're using encrypt, which *does* use stripNonAscii, then won't it strip the spaces away 2021-05-17 09:24:25 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-17 09:24:28 bjs Ammar__: before you ever get to decrypting? 2021-05-17 09:25:08 Ammar__ cenoonommstmme oo snnio s s c| << is the encrypted message but there should be two spaces betweeb the last 's s' 2021-05-17 09:25:40 bjs Ammar__: yes but you take 'common sense is no so common', then you encrypt it. The first thing your encryptMessage() function does is stripNonAscii(message) 2021-05-17 09:25:44 bjs Ammar__: which removes the spaces. 2021-05-17 09:25:58 bjs that's why the encrypted message doesn't have spaces, because your stripNonAscii function removed them. 2021-05-17 09:26:05 Ammar__ No, I commented it out. Still the same 2021-05-17 09:27:25 bjs Ammar__: what's an example message/key to try then? 2021-05-17 09:28:03 Ammar__ wait. I will hard code it and share again to you trouble 2021-05-17 09:28:09 Ammar__ save you* 2021-05-17 09:28:37 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 09:28:46 <-- baltazar (~baltazar@91-82-31-223.pool.digikabel.hu) has quit (Ping timeout: 240 seconds) 2021-05-17 09:29:05 --> ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has joined #python 2021-05-17 09:29:42 <-- swensson (9eaefc22@h-158-174-252-34.NA.cust.bahnhof.se) has quit (Ping timeout: 240 seconds) 2021-05-17 09:30:49 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-17 09:31:45 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 09:32:25 <-- otisolsen70 (~otisolsen@xd4ed80b5.cust.hiper.dk) has quit (Quit: Leaving) 2021-05-17 09:32:39 phy1729 I think encrypt boils down to return ''.join(message[i::key] for i in range(key) but for a key of 8 I get cenmonomms omesno oni scs o 2021-05-17 09:33:31 --> ooboyle (~ooboyle@modemcable042.178-70-69.static.videotron.ca) has joined #python 2021-05-17 09:35:34 --> sandra_96 (~sandra_96@c-cbc2524e.05-114-6d6c6d5.bbcust.telenor.se) has joined #python 2021-05-17 09:35:51 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-17 09:36:18 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-17 09:36:56 --> emptynine (tkk@68.235.41.75) has joined #python 2021-05-17 09:37:00 --> swensson (9eaefc22@h-158-174-252-34.NA.cust.bahnhof.se) has joined #python 2021-05-17 09:39:51 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Quit: WeeChat 3.0.1) 2021-05-17 09:39:51 Ammar__ bjs, https://bpa.st/H5BQ now all you need is type encrypt and decrypt 2021-05-17 09:40:22 Ammar__ To see what Im talking about 2021-05-17 09:40:35 --> Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has joined #python 2021-05-17 09:41:06 xsx is it normal to receive this via sys.exc_info()? my app.py contains only `breakpoint()`: (, AttributeError("'Pdb' object has no attribute 'do_sys'"), ) 2021-05-17 09:42:46 --> swj (~swj@39.170.41.112) has joined #python 2021-05-17 09:42:50 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-17 09:42:51 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 260 seconds) 2021-05-17 09:44:36 bjs Ammar__: the obvious question is, is it really anything to do with spaces? 2021-05-17 09:45:04 Ammar__ bjs, the answer is no. Because I tasted with stars instead and it's the same result 2021-05-17 09:45:22 bjs Ammar__: okay, so now it just sounds like your encrypt or decrypt functions are broken 2021-05-17 09:45:42 --> baltazar (~baltazar@85-238-69-218.pool.digikabel.hu) has joined #python 2021-05-17 09:47:09 <-- NorthwestVegan (~Northwest@gateway/tor-sasl/northwestvegan) has quit (Ping timeout: 240 seconds) 2021-05-17 09:47:17 Gurkenglas Can I say "evaluate a = foo(2) and when a.bar.baz is written to, pause" to the debugger? 2021-05-17 09:47:28 --> krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has joined #python 2021-05-17 09:47:32 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-17 09:48:29 --> cliluw (~cliluw@unaffiliated/cliluw) has joined #python 2021-05-17 09:48:30 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-17 09:49:31 amogorkon i sense a syntax error 2021-05-17 09:49:57 <-- goncalomb (~goncalomb@gateway/tor-sasl/goncalomb) has quit (Ping timeout: 240 seconds) 2021-05-17 09:50:02 <-- mwichmann (~mats@209-188-119-117.taosnet.com) has quit (Quit: Leaving) 2021-05-17 09:50:06 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-17 09:50:08 --> Gudddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-17 09:50:11 <-- sagax (~sagax_nb@213.138.71.146) has quit (Ping timeout: 246 seconds) 2021-05-17 09:51:24 Ammar__ but but it shouldn't :'( when you do this with pen and paper there should be two spaces between S S *sighs* I need to run it in my head step by step 2021-05-17 09:51:38 --> NorthwestVegan (~Northwest@gateway/tor-sasl/northwestvegan) has joined #python 2021-05-17 09:51:53 bjs Ammar__: maybe you can shrink it down to a smaller example that fails that makes it easier to see what happened 2021-05-17 09:52:01 bjs it's quite a big example to run through on paper 2021-05-17 09:52:19 <-- Adbray (~Adbray@2600:6c48:6f7f:d764:821d:b6ce:de6a:b26a) has quit (Quit: Ah! By Brain!) 2021-05-17 09:52:29 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-17 09:52:47 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:307b:b58:d925:5dd5) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-17 09:52:56 --> gregor2 (~user0@91-115-74-217.adsl.highway.telekom.at) has joined #python 2021-05-17 09:53:00 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-17 09:53:06 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-17 09:53:26 <-- Guddu (~Guddu@unaffiliated/guddu) has quit (Ping timeout: 240 seconds) 2021-05-17 09:53:58 amogorkon Ammar__, did you try using a debugger like thonny to see what it does? 2021-05-17 09:54:01 stealth_ Ammar__, you need to print each variable to see what is being outputting so you can narrow down where the flaw is happening. running it in your head isn't going to cut it. 2021-05-17 09:54:04 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-17 09:54:20 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:12d:9755:5f8:e054) has joined #python 2021-05-17 09:54:43 Ammar__ amogorkon, thanks I will try it out 2021-05-17 09:54:51 Ammar__ stealth_ you are right :( 2021-05-17 09:55:03 --> mwichmann (~mats@209-188-119-117.taosnet.com) has joined #python 2021-05-17 09:55:40 --> theology (~theology@unaffiliated/theology) has joined #python 2021-05-17 09:57:39 --> hypercube (~hypercube@2603-6011-f901-9e5b-78b5-8b2f-cdb2-4171.res6.spectrum.com) has joined #python 2021-05-17 09:58:34 <-- kek_ (~kek_@2a02:168:200f:1f10:410b:731a:6592:864d) has quit (Quit: Leaving) 2021-05-17 09:58:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 09:58:46 mrtnt Let's say, that I have an function named info_cleanup() which takes a list as an argument, modifies the elements in a list and returns the modified list. Is it fine to call this function like this: "info_list = info_cleanup(info_list)"? Or should one assign the modified list to a variable with a different name, e.g "info_list_modified = info_cleanup(info_list)"? 2021-05-17 09:59:31 sinanislekdemir lists are passed as reference. so in-place list modifications are already applied, no need to return it 2021-05-17 09:59:37 tos9 mrtnt: usually one should try not to have such a function 2021-05-17 09:59:40 <-- themadmaxboy (~themadmax@unaffiliated/themadmaxboy) has quit (Quit: Ping timeout (120 seconds)) 2021-05-17 10:00:02 --> themadmaxboy (~themadmax@unaffiliated/themadmaxboy) has joined #python 2021-05-17 10:00:03 tos9 mrtnt: but if you do, don't assign its result 2021-05-17 10:00:06 --> st8less (~st8less@2603:a060:11fd:0:475f:7ec2:20c6:ac2c) has joined #python 2021-05-17 10:00:08 tos9 sinanislekdemir: (all Python objects are passed the same way) 2021-05-17 10:00:22 tos9 mrtnt: just call it as `info_cleanup(info_list)` and then keep using info_list 2021-05-17 10:00:45 mrtnt thanks! 2021-05-17 10:00:58 --> zro (~zro@wikimedia/zro) has joined #python 2021-05-17 10:01:06 SnoopJ "by object reference" is a slightly better way to describe it: https://web.archive.org/web/20200605011650/https://effbot.org/zone/call-by-object.htm 2021-05-17 10:01:38 --> rpg (~rpg@162-219-230-90.fttp.usinternet.com) has joined #python 2021-05-17 10:02:10 --> Vornicus (~Vornicus@2603-8000-5d07-7ef0-ad4d-036f-cacb-93dc.res6.spectrum.com) has joined #python 2021-05-17 10:02:11 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-17 10:02:12 <-- gregor2 (~user0@91-115-74-217.adsl.highway.telekom.at) has quit (Quit: leaving) 2021-05-17 10:02:29 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 10:03:25 sinanislekdemir mrtnt: that pattern can lead to unwanted behaviors and can be dangerous tho. so as @tos9 mentioned, try to avoid it unless you really know what you are doing. I only used that pattern in micro-python to avoid unnecessary memory usage 2021-05-17 10:03:41 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-17 10:03:56 --> ener2 (~quassel@188-175-76-2.client.rionet.cz) has joined #python 2021-05-17 10:04:09 --> Sheilong (uid293653@gateway/web/irccloud.com/x-pmhdkeusnrjysucn) has joined #python 2021-05-17 10:05:32 --> nindustries (5ee1b1f7@unaffiliated/nindustries) has joined #python 2021-05-17 10:06:28 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-17 10:06:31 nindustries Hi! I have a python application in a Docker container based on debian minimal that's suddenly crashing with: free(): invalid pointer. Any ideas? 2021-05-17 10:06:40 amogorkon mrtnt, if you return something, the user usually assumes it is a new object to be used without side-effects. if you really want to work with side-effects, you should be explicit about them by not returning the thing 2021-05-17 10:06:46 --> rwcom60280385034 (~rwcom@117.60.183.91) has joined #python 2021-05-17 10:07:17 --> trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has joined #python 2021-05-17 10:07:20 amogorkon it's basically the distinction between sorted(thing) and thing.sort() 2021-05-17 10:07:54 nindustries strace: https://pastebin.com/raw/ucJZYuMG 2021-05-17 10:07:56 infobob https://bpaste.net/PNTQ (repasted for nindustries) 2021-05-17 10:07:57 mrtnt tos9, sinanislekdemir: this function checks if the list element matches a certain pattern and if it does, then removes this element from the list. I'm not sure if this can cause any side-effects or not.. 2021-05-17 10:08:26 Ammar__ I found the problem ^^ the message should be padded to match columns * rows 2021-05-17 10:08:30 <-- r_hector (~richard@2406:e001:8:a900:6e62:6dff:fe05:ae29) has quit (Quit: Leaving.) 2021-05-17 10:08:34 amogorkon Ammar__, how did you find it? 2021-05-17 10:08:44 <-- sgn (~sgn@27.75.102.31) has quit (Ping timeout: 245 seconds) 2021-05-17 10:08:51 --> fcjsx (~fcjsx_@2800:a4:813:900:f47f:913a:7adf:36b) has joined #python 2021-05-17 10:09:09 <-- Naan (~naan@unaffiliated/naan) has quit (Read error: Connection reset by peer) 2021-05-17 10:09:14 sinanislekdemir mrtnt: if I were reading a code review, I'd personally expect to see a `filter(` call instead of that pattern. sounds better matching for the scenario + readability but you are the code owner and you know the details better :) 2021-05-17 10:09:23 Ammar__ amogorkon, I printed each step out and checked it manually why the second space isn't being added 2021-05-17 10:09:34 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-17 10:09:36 <-- _till_ (~till@unaffiliated/till/x-7804721) has quit (Remote host closed the connection) 2021-05-17 10:09:38 <-- fcjsx (~fcjsx_@2800:a4:813:900:f47f:913a:7adf:36b) has quit (Client Quit) 2021-05-17 10:09:42 amogorkon Ammar__, did you try with thonny? ;) 2021-05-17 10:09:48 --> sgn (~sgn@171.239.147.129) has joined #python 2021-05-17 10:10:00 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-17 10:10:46 Ammar__ running windows xp I was worried it may not run on it. So I got lazy and didn't check it out yet. But I will 2021-05-17 10:10:54 amogorkon ;) 2021-05-17 10:11:19 <-- TimeTrap_ (~TimeTrap@c-68-82-53-117.hsd1.pa.comcast.net) has quit (Remote host closed the connection) 2021-05-17 10:11:33 mrtnt sinanislekdemir: thanks! I wasn't aware of filter(). I'll use that. 2021-05-17 10:11:43 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has joined #python 2021-05-17 10:12:13 <-- Naan (~naan@unaffiliated/naan) has quit (Read error: Connection reset by peer) 2021-05-17 10:12:32 phy1729 Ammar__: it doesn't need to be padded 2021-05-17 10:13:07 --> vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has joined #python 2021-05-17 10:13:11 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 240 seconds) 2021-05-17 10:13:13 sinanislekdemir mrtnt: filter, map and reduce methods are quite handy and much better performing than interpreted loops :) 2021-05-17 10:13:15 Ammar__ phy1729, but it will get to the next letter and ignore the space if not padded 2021-05-17 10:13:31 --> lbalhar (~lbalhar@93.185.13.26) has joined #python 2021-05-17 10:13:48 --> CaptainDrewBoy (~CaptainDr@cpc121736-barn9-2-0-cust74.17-1.cable.virginm.net) has joined #python 2021-05-17 10:14:36 phy1729 encode: ''.join(message[i::key] for i in range(key)) decode: skips=[(len(message) + key - 1 - i)//key for i in range(key)]; ''.join(message[i + sum(skips[:j])] for i in range(max(skips)) for j in range(key) if i < skips[j]) 2021-05-17 10:14:53 SnoopJ nindustries, I'm not great at reading strace output, but my top suspect there would be some misbehavior in grpc's memory management. I'd be reaching for gdb to figure out exactly what it's trying to free(). 2021-05-17 10:14:56 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-17 10:15:33 <-- Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has quit (Ping timeout: 240 seconds) 2021-05-17 10:16:04 -- chandankumar is now known as raukadah 2021-05-17 10:16:26 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-17 10:16:48 nindustries hmm, you'd think it would occur in 2021-05-17 10:16:54 nindustries  /lib/aarch64-linux-gnu/librt.so.1 2021-05-17 10:17:16 <-- _Ev (ev@gateway/vpn/airvpn/ev/x-69267913) has quit (Quit: Leaving.) 2021-05-17 10:18:29 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-17 10:19:01 --> oliverwiegers (~oliverwie@p57ab4df0.dip0.t-ipconnect.de) has joined #python 2021-05-17 10:19:19 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Client Quit) 2021-05-17 10:19:51 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-17 10:20:05 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-17 10:20:22 Yhg1s sinanislekdemir: they don't actually perform better except in very specific cases (when calling a pre-existing function written in C) 2021-05-17 10:20:25 SnoopJ nindustries, I see what you mean and agree: grpc may not actually be performing the offending free(). The problem isn't going to show up in an strace because the logic responsible for calling free() when it makes sense to do so is before any syscalls 2021-05-17 10:20:35 --> user0 (~user0@91-115-74-217.adsl.highway.telekom.at) has joined #python 2021-05-17 10:21:22 Yhg1s nindustries: strace is also limited because it's only tracing system calls. lltrace does a little better, but not as well as an actual debugger. 2021-05-17 10:21:47 <-- swj (~swj@39.170.41.112) has quit (Quit: Leaving.) 2021-05-17 10:21:52 --> _till_ (~till@unaffiliated/till/x-7804721) has joined #python 2021-05-17 10:22:00 nindustries I might need to admit I'm only capable of doing the occasional strace:D   Very odd it doesn't happen with a regular `docker run`, but it does with Docker for Mac Kubernetes. 2021-05-17 10:22:40 nindustries I wonder if it has to do with a LD_PRELOAD env variable or so. 2021-05-17 10:22:48 --> nosleep12345 (8e715f1d@bras-vprn-mltnon2526w-lp130-08-142-113-95-29.dsl.bell.ca) has joined #python 2021-05-17 10:23:02 SnoopJ seems unlikely unless you're patching one of these libraries specifically 2021-05-17 10:23:05 Yhg1s nindustries: it certainly could, if you're setting one. 2021-05-17 10:23:42 nindustries Well I'm not setting one FWIW 2021-05-17 10:23:54 nindustries But could be that there's no longer one set if running on the user defined by Kubernetes 2021-05-17 10:23:55 SnoopJ hmm, actually upon review, the free() could originate in something else loaded earlier I guess. the problem with strace is that you're only seeing the syscall boundary, you're not learning much about the program's guts 2021-05-17 10:24:11 <-- theology (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-17 10:24:20 <-- treefrob (~treefrob@p57a969ef.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-17 10:24:33 <-- de-facto (~de-facto@gateway/tor-sasl/de-facto) has left #python ("Leaving 💤") 2021-05-17 10:24:40 -- user0 is now known as gregor2 2021-05-17 10:24:49 nindustries Hmm, no LD_PRELOAD set 2021-05-17 10:25:14 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-17 10:25:26 <-- oliverwiegers (~oliverwie@p57ab4df0.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-05-17 10:25:33 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-17 10:25:42 SnoopJ nindustries, are you comfortable with using gdb in a case like this? It really does report quite a lot more contextual information in the case of a failure like this (e.g. the stack trace) 2021-05-17 10:26:10 nindustries I've only used the occasional strace tbh 2021-05-17 10:26:41 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 10:26:56 <-- rwcom60280385034 (~rwcom@117.60.183.91) has quit (Ping timeout: 246 seconds) 2021-05-17 10:27:13 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 10:27:24 --> Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has joined #python 2021-05-17 10:27:41 --> treefrob (~treefrob@p57a969ef.dip0.t-ipconnect.de) has joined #python 2021-05-17 10:28:07 <-- Karyon (~Karyon@unaffiliated/karyon) has quit (Quit: Good bye) 2021-05-17 10:28:18 --> Karyon (~Karyon@unaffiliated/karyon) has joined #python 2021-05-17 10:28:37 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 10:28:46 enrh I'm looking to test my syslog ingestion process with generating some messages with Python and sending via UDP syslog. I wanted go with UDP so I could forge/spoof the IP, since my syslog ingestion keys off of that. Perhaps I could spoof, or I could actually create real IPs but on my local loopback and specify that to the Python socket method. However the former would be simpler to maintain, but is 2021-05-17 10:28:47 enrh it possible? 2021-05-17 10:28:56 SnoopJ nindustries, okay, let's back up a step or two, then: Does this happen pretty much right when you run your program, or does it happen some time after startup? Is it reliably reproducible? 2021-05-17 10:29:47 --> esselfe (~steph@unaffiliated/esselfe) has joined #python 2021-05-17 10:29:47 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 10:29:54 --> banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has joined #python 2021-05-17 10:30:00 --> kpiyushlucky (6ee156b3@110.225.86.179) has joined #python 2021-05-17 10:31:58 --> Rapture (~Rapture@71.236.251.149) has joined #python 2021-05-17 10:32:13 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 10:32:34 Ammar__ phy1729, you are a magician! and it's beautiful :') 2021-05-17 10:32:42 Ammar__ It worked like charm. 2021-05-17 10:32:49 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 260 seconds) 2021-05-17 10:33:46 Ammar__ Now I need to break it down and understand that serpent of a code. Python is beautiful, not just efficient. 2021-05-17 10:33:49 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-17 10:33:52 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-17 10:33:59 nindustries Oh wow. I've ruled out that it's only the case if I add-in my configuration. Interesting. 2021-05-17 10:34:45 * SnoopJ is skeptical about "only" but that does sound like more information 2021-05-17 10:35:50 <-- sandra_96 (~sandra_96@c-cbc2524e.05-114-6d6c6d5.bbcust.telenor.se) has quit (Quit: Leaving) 2021-05-17 10:35:55 --> DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has joined #python 2021-05-17 10:37:32 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 240 seconds) 2021-05-17 10:37:56 amogorkon if i wanted to normalize 1D data ranging from -1400 to 3000 per point onto [0,1] with min(data) => 0 and max(data) => 1 but also 0 => 0.5? 2021-05-17 10:38:15 <-- gpanders (~gpanders@c-73-26-133-58.hsd1.nm.comcast.net) has left #python ("WeeChat 3.1") 2021-05-17 10:38:23 amogorkon how to go about it? 2021-05-17 10:38:26 <-- Jerrynicki (~niklas@p549a996f.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-05-17 10:38:50 SnoopJ amogorkon, what does "0 => 0.5" mean? You want the datum 0 mapped to the middle of the unit interval? 2021-05-17 10:38:51 <-- barneygale (~barneygal@cpc93788-hari17-2-0-cust405.20-2.cable.virginm.net) has quit (Remote host closed the connection) 2021-05-17 10:38:57 amogorkon yes 2021-05-17 10:39:05 phy1729 That depends on what you want. You can't use a single linear transformation, but you could do something piecewise or quadratic 2021-05-17 10:39:09 nindustries WOW. So it's caused by `from google.cloud import pubsub_v1` 2021-05-17 10:39:23 nindustries Odd. 2021-05-17 10:39:23 SnoopJ you don't need anything that sophisticated, an affine transformation should do 2021-05-17 10:39:50 phy1729 SnoopJ: not with 3 fixed points 2021-05-17 10:40:01 <-- bongfrog (~bongfrog@c-98-245-70-205.hsd1.co.comcast.net) has quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-17 10:40:07 --> lpapp (~lpapp@kde/lpapp) has joined #python 2021-05-17 10:40:24 lpapp hi, a=[1,2,3]; -> can I get a[0:2] as two arguments to pass to a function? 2021-05-17 10:41:15 SnoopJ phy1729, hmm, I guess you're right, it'd be overconstrained with only two parameters 2021-05-17 10:42:12 amogorkon phy1729, how would it work with a quadratic? 2021-05-17 10:42:51 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-17 10:43:41 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-17 10:44:10 <-- endiruna (~endiendir@46.101.187.207) has quit (Ping timeout: 252 seconds) 2021-05-17 10:44:35 --> bongfrog (~bongfrog@c-98-245-70-205.hsd1.co.comcast.net) has joined #python 2021-05-17 10:44:43 --> purplex88_ (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-17 10:44:49 --> gobby252 (~gobby252@178.239.173.200) has joined #python 2021-05-17 10:45:05 stealth_ lpapp, `function(*a[0:2])` 2021-05-17 10:45:36 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-17 10:46:34 --> PantelicGR (~PantelicG@unaffiliated/pantelicgr) has joined #python 2021-05-17 10:46:46 lpapp yep, googled in the meantime, thanks! 2021-05-17 10:46:47 <-- lpapp (~lpapp@kde/lpapp) has left #python 2021-05-17 10:47:21 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Ping timeout: 260 seconds) 2021-05-17 10:47:25 --> parabolize (~paraboliz@98.43.173.221) has joined #python 2021-05-17 10:47:26 -- purplex88_ is now known as purplex88 2021-05-17 10:48:06 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-17 10:48:59 --> sappheiros (~sappheiro@unaffiliated/dan1) has joined #python 2021-05-17 10:49:47 <-- ener2 (~quassel@188-175-76-2.client.rionet.cz) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-17 10:50:31 phy1729 Really more of a ##math question, but (-1400, 0), (0, 0.5), (3000, 1) specifies the curve 0.5 (x+1400)(x-3000)/((1400)(-3000)) + 1 (x+1400)(x)/((3000+1400)(3000)) (assuming I did that right) https://en.wikipedia.org/wiki/Lagrange_polynomial 2021-05-17 10:50:50 --> Muimi (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-17 10:50:57 amogorkon phy1729, thanks 2021-05-17 10:51:10 amogorkon well, given i'm working with numpy, it 2021-05-17 10:51:30 --> killer (cbd65902@203.214.89.2) has joined #python 2021-05-17 10:51:36 killer hey, i have a get call coming, which has array in it, so it comes like 'value' or 'value1,value2' , first case has only one item in array while second one has two items in array 2021-05-17 10:51:51 amogorkon may be sufficiently ontopic ^^ 2021-05-17 10:51:54 killer So, my question is how can i convert 'value1,value2' to ' "value1", "value2" ', that is i want to put double quotes arounf it 2021-05-17 10:52:20 --> Pseudo-Coffee (~Pseudo-Co@41.144.67.136) has joined #python 2021-05-17 10:52:25 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-17 10:52:28 SnoopJ amogorkon, I'd probably introduce a third parameter into the system here to shift the domain so that it's balanced around 0, then rescale it to [-0.5, 0.5] and shift up by 0.5 2021-05-17 10:52:35 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-17 10:52:40 xsx https://bpa.st/FBPA - decorator for D(C) doesn't work as "expected" as line 14 i called 2 times: first (desired) and the for already wrapped C.__init__ that overrides pkg.x value to the same as for C class. 2021-05-17 10:52:58 SnoopJ I think the solution I proposed earlier is fine if the domain is already symmetrical, and making it that way is the extra step 2021-05-17 10:52:58 xsx s/\bi\b/is 2021-05-17 10:53:22 _habnabit killer, is this csv? 2021-05-17 10:53:28 killer no 2021-05-17 10:53:42 killer so a get call is passing them as value1,value2 2021-05-17 10:53:48 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Quit: cy) 2021-05-17 10:54:06 killer so something like a = 'value1,value2' 2021-05-17 10:54:19 _habnabit xsx, you're not wrapping __init__ 2021-05-17 10:54:23 killer I wanna put double quotes around it _habnabit 2021-05-17 10:54:31 _habnabit xsx, class decorators wrap the class, not any method 2021-05-17 10:54:42 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-17 10:54:58 xsx _habnabit: please see line no 8 2021-05-17 10:55:58 _habnabit xsx, oh. sure.. if you're doing that and you don't define __init__ on class D, python doesn't synthesize one for you 2021-05-17 10:56:13 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:12d:9755:5f8:e054) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-17 10:56:48 stealth_ killer, `', '.join([f'"{i}"' for i in a.split(',')])` 2021-05-17 10:57:03 stealth_ killer, `', '.join(f'"{i}"' for i in a.split(','))` 2021-05-17 10:57:06 --> stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-17 10:57:15 _habnabit xsx, if that's the behavior you want, you can make your own dummy __init__ 2021-05-17 10:57:22 xsx _habnabit: true, and this is why i'm looking for better approach. i don't want to redefine D.__init__, in this case it's exactly same C.__init__ 2021-05-17 10:57:25 stealth_ killer, also can't you code such solution yourself? beats the fun of coding 2021-05-17 10:57:44 _habnabit xsx, clearly it isn't exactly the same: you want to change its behvior 2021-05-17 10:58:06 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-17 10:58:13 SnoopJ stealth_, if it's not fun to help, it's not obligatory 2021-05-17 10:58:27 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-17 10:58:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 10:58:47 _habnabit xsx, you can check if the class decorated has its own __init__ and make a dummy one that does nothing but upcall 2021-05-17 10:59:05 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 10:59:27 xsx _habnabit: mmmmm tricky, let me try it 2021-05-17 10:59:41 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-17 11:00:00 killer i googled but i didnt know which way to go 2021-05-17 11:00:04 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 11:00:15 killer  'VIC,HELLO '.join(f'"{i}"' for i in a.split(',')), it just puts paranthesis around "VIC" 2021-05-17 11:00:39 _habnabit killer, programming involves knowing how to synthesize your own solutions. it's very rare you'll be able to search for a pre-packaged solution to any problem 2021-05-17 11:01:29 xsx _habnabit: uhm, but in this way i will lose the actual inherited __init__ (before wrapping it), that I still want to use for the inherited class 2021-05-17 11:01:45 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 260 seconds) 2021-05-17 11:01:47 _habnabit xsx, i'm not sure what you mean 2021-05-17 11:02:19 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 252 seconds) 2021-05-17 11:02:24 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 11:02:36 xsx D.__init__ should be equal to C.__init__ (before decoration), using dummy __init__ would not allow to reuse original C.__init__, right? 2021-05-17 11:02:45 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-17 11:02:48 _habnabit xsx, that's why i said "does nothing but upcall" 2021-05-17 11:02:52 stealth_ killer, if you `a += ',VIC,HELLO'` and run the previous code 2021-05-17 11:03:09 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 11:03:36 _habnabit xsx, you'd still put e.g. `super(D, self).__init__(*a, **kw)` in it if the class you wrapped ever lacked __init__ 2021-05-17 11:03:40 <-- philh (~philh@212.221.81.10) has quit (Remote host closed the connection) 2021-05-17 11:03:45 <-- Ammar__ (~Ammar@unaffiliated/ammar/x-9582159) has quit (Read error: Connection reset by peer) 2021-05-17 11:03:51 _habnabit xsx, or `super(obj, self)` since you're calling the class obj 2021-05-17 11:03:56 <-- diogenese (~diogenese@diogenese.velotech.net) has quit (Quit: Has anybody seen the bridge?) 2021-05-17 11:04:11 --> diogenese (~diogenese@diogenese.velotech.net) has joined #python 2021-05-17 11:04:16 xsx _habnabit: yeah, but then super() is already decorated C class, so we are back to the starting point 2021-05-17 11:04:17 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 11:04:18 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 252 seconds) 2021-05-17 11:04:31 _habnabit xsx, ..? i don't understand 2021-05-17 11:04:55 _habnabit xsx, you want to avoid calling the wrapped method on the parent class? just call its un-wrapped version? 2021-05-17 11:05:01 <-- Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has quit (Ping timeout: 260 seconds) 2021-05-17 11:05:02 xsx _habnabit: yes 2021-05-17 11:05:12 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-17 11:05:12 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-17 11:05:14 <-- envex (~envex@cpe-173-91-189-33.neo.res.rr.com) has quit (Ping timeout: 268 seconds) 2021-05-17 11:05:20 SnoopJ that's starting to sound like attrs levels of metaprogramming magick 2021-05-17 11:05:36 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 11:05:44 _habnabit xsx, yeah, that's not possible if the way you want to do this is replace __init__. but.. your example here is idempotent anyway, so why would that matter? 2021-05-17 11:06:00 <-- Pseudo-Coffee (~Pseudo-Co@41.144.67.136) has quit (Remote host closed the connection) 2021-05-17 11:06:02 <-- nindustries (5ee1b1f7@unaffiliated/nindustries) has quit (Ping timeout: 240 seconds) 2021-05-17 11:06:26 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-17 11:06:30 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-ojoifoaughrtbavv) has joined #python 2021-05-17 11:06:44 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Remote host closed the connection) 2021-05-17 11:06:47 --> Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has joined #python 2021-05-17 11:07:06 --> sec^nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-17 11:07:50 --> alt0id (~nutz0@80.74.169.173) has joined #python 2021-05-17 11:08:26 alt0id hey is there a python package that allows me to view changes on a web page 2021-05-17 11:10:24 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 265 seconds) 2021-05-17 11:10:40 SnoopJ alt0id, difflib might be useful. What kind of changes are you interested in? 2021-05-17 11:10:41 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-17 11:10:41 <-- k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has quit (Ping timeout: 260 seconds) 2021-05-17 11:10:53 <-- leduyquang753 (~leduyquan@27.73.107.184) has quit (Quit: leaving) 2021-05-17 11:12:01 <-- Thanatos (~Thanatos@197.210.71.197) has quit (Ping timeout: 260 seconds) 2021-05-17 11:12:25 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Quit: thorre) 2021-05-17 11:12:43 xsx _habnabit: i'm ok to not to replace __init__, it was just my idea. here is more extended example, that shows the reason why I wanted to wrap __init__: https://bpa.st/DHAQ 2021-05-17 11:12:50 <-- killer (cbd65902@203.214.89.2) has quit (Quit: Connection closed) 2021-05-17 11:13:13 --> g0d-byte (~g0d-byte@2001:b07:ae5:76d1:dfcf:6d24:6d09:4032) has joined #python 2021-05-17 11:13:16 alt0id SnoopJ: events like being able to press "accept" in case that happens to be available 2021-05-17 11:13:53 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python 2021-05-17 11:14:22 _habnabit xsx, looks like you're reinventing https://gather.readthedocs.io/en/latest/ (or its underlying venusian) 2021-05-17 11:14:34 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 245 seconds) 2021-05-17 11:15:11 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 240 seconds) 2021-05-17 11:15:36 xsx hmm, yeah, looks quite similar 2021-05-17 11:16:03 --> rudrab (~rudrab@2402:e280:2002:8188:3c40:b150:3397:9230) has joined #python 2021-05-17 11:16:25 _habnabit xsx, gather is quite good for this kind of marking/scanning 2021-05-17 11:17:25 CustosLimen Is this accurate: https://github.com/RDFLib/rdflib/pull/1213/files#r633624221 2021-05-17 11:17:26 xsx _habnabit: i bet, but i can't use it here, so i need to work on my own 2021-05-17 11:17:30 _habnabit xsx, why not 2021-05-17 11:17:45 xsx _habnabit: i can't go out of stdlib 2021-05-17 11:17:53 --> unluckyshrubber- (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-17 11:17:59 _habnabit xsx, yuck. who's imposing that requirement? 2021-05-17 11:18:02 CustosLimen Or rather, let me ask directly, will this result in inifinite recursion: def __repr__(): return f"Namespace({self!r})" 2021-05-17 11:18:07 _habnabit CustosLimen, yes 2021-05-17 11:18:11 <-- philr (~phil@118.211.93.148) has quit (Ping timeout: 268 seconds) 2021-05-17 11:18:15 xsx _habnabit: the person who owns my money ;) 2021-05-17 11:18:17 CustosLimen thanks 2021-05-17 11:18:21 <-- jlf (~user@pdpc/supporter/active/jlf) has quit (Ping timeout: 250 seconds) 2021-05-17 11:18:33 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Ping timeout: 260 seconds) 2021-05-17 11:18:35 _habnabit xsx, can you pretend like you wrote it and sneak it in anyway? it's permissively licensed 2021-05-17 11:18:38 SnoopJ alt0id, ah. This is for browser automation, then? If you're using Selenium, it seems like they've introduced a way to do this in version 4: https://www.selenium.dev/documentation/en/webdriver/bidi_apis/ 2021-05-17 11:18:40 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-17 11:18:54 SnoopJ I'm not sure what it would look like if the DOM were changed to insert *new* elements, though. 2021-05-17 11:18:57 <-- hoshi (~hoshi@vps-9ee2e9ea.vps.ovh.net) has quit (Quit: ZNC 1.7.5+deb4 - https://znc.in) 2021-05-17 11:19:02 <-- gitesh (uid423739@gateway/web/irccloud.com/x-yqjanboycmiqeuoe) has quit (Quit: Connection closed for inactivity) 2021-05-17 11:19:29 alt0id SnoopJ: hmmm, will look into it 2021-05-17 11:20:05 --> hoshi (~hoshi@vps-9ee2e9ea.vps.ovh.net) has joined #python 2021-05-17 11:20:06 <-- olspookishmagus (~pookie@snf-137798.vm.okeanos.grnet.gr) has quit (Ping timeout: 240 seconds) 2021-05-17 11:21:02 <-- Hackerpcs (~user@unaffiliated/hackerpcs) has quit (Ping timeout: 265 seconds) 2021-05-17 11:21:04 --> Elliria (~littlegir@66.24.84.219) has joined #python 2021-05-17 11:21:22 --> panikovsky (~panikovsk@87.117.48.120) has joined #python 2021-05-17 11:22:06 --> Hackerpcs (~user@unaffiliated/hackerpcs) has joined #python 2021-05-17 11:22:52 --> CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has joined #python 2021-05-17 11:22:58 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Read error: Connection reset by peer) 2021-05-17 11:23:09 <-- lbalhar (~lbalhar@93.185.13.26) has quit (Quit: Leaving) 2021-05-17 11:24:28 Yhg1s 2021-05-17 11:27:08 --> ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has joined #python 2021-05-17 11:27:19 <-- mihael (~marz@43.226.4.22) has quit (Ping timeout: 265 seconds) 2021-05-17 11:27:31 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-17 11:27:58 krobzaur 2021-05-17 11:28:03 CustosLimen If I have 3 classes, class ClsA(str): pass; class ClsB(ClsB); pass; - what would super().__new__ for ClsB do? call ClsA.__new__ or str.__new__? I guess it will call ClsA.__new__? Not sure where in docs this is said exactly 2021-05-17 11:28:37 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 11:28:47 --> jlf (~user@pdpc/supporter/active/jlf) has joined #python 2021-05-17 11:28:54 _habnabit CustosLimen, i don't think you can use 0-arg super in __new__. it's a very weird method. i don't recommend using it 2021-05-17 11:29:12 _habnabit CustosLimen, .. subclassing str is itself also quite strange 2021-05-17 11:29:16 --> rwcom60280385034 (~rwcom@58.208.160.248) has joined #python 2021-05-17 11:29:37 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:12d:9755:5f8:e054) has joined #python 2021-05-17 11:29:48 stealth_ also how does `ClsB(ClsB)` that work! 2021-05-17 11:29:52 <-- Elliria (~littlegir@66.24.84.219) has quit (Quit: *POOF*) 2021-05-17 11:29:58 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-17 11:30:02 <-- Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-17 11:30:05 CustosLimen stealth_: typo, I meant ClsB(ClsA) 2021-05-17 11:30:18 <-- evagelos (~evangelos@80-100-166-138.ip.xs4all.nl) has quit (Quit: WeeChat 2.8) 2021-05-17 11:30:36 CustosLimen _habnabit: okay, thanks, still reviewing that PR, will maybe test or ask for tests 2021-05-17 11:30:46 <-- Karyon (~Karyon@unaffiliated/karyon) has quit (Quit: Good bye) 2021-05-17 11:30:46 <-- barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has quit (Quit: barph) 2021-05-17 11:30:51 stealth_ CustosLimen, `super` goes up 1 level/class 2021-05-17 11:30:57 --> Karyon (~Karyon@unaffiliated/karyon) has joined #python 2021-05-17 11:31:14 _habnabit stealth_, no. super visits the next class on the MRO 2021-05-17 11:31:17 --> plutoniix (~q@node-uls.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-17 11:31:29 CustosLimen yeah, so if it works as in __init__, then it would bee ClsA if called in ClsB, not str 2021-05-17 11:31:39 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-17 11:31:51 stealth_ _habnabit, mro? 2021-05-17 11:32:12 --> burakcank (~burakcank@88.243.153.79) has joined #python 2021-05-17 11:32:28 _habnabit CustosLimen, incorrect. super calls the next defined method, which would skip ClsA and go to str if it isn't defined in ClsA 2021-05-17 11:32:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 11:32:43 <-- trinityblade (~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-17 11:32:47 CustosLimen _habnabit: okay but if it was defined in ClsA 2021-05-17 11:32:47 stealth_ _habnabit, well ya 2021-05-17 11:33:03 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-17 11:33:10 _habnabit CustosLimen, then it would go to ClsA 2021-05-17 11:33:16 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-17 11:33:18 _habnabit CustosLimen, wherever the method is defined next 2021-05-17 11:33:45 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-17 11:35:44 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-17 11:35:58 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-17 11:36:15 <-- DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has quit (Quit: Leaving) 2021-05-17 11:36:46 <-- Gudddu (~Guddu@unaffiliated/guddu) has quit (Killed (Sigyn (Spam is off topic on freenode.))) 2021-05-17 11:38:17 <-- Suwacc (~textual@45.248.77.132) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-17 11:38:59 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:12d:9755:5f8:e054) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-17 11:40:15 --> Wafficus (~Wafficus@70.126.240.148) has joined #python 2021-05-17 11:40:16 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 252 seconds) 2021-05-17 11:40:16 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 252 seconds) 2021-05-17 11:40:18 Gurkenglas Can I specify code for pytorch to run every time a tensor is created? 2021-05-17 11:42:07 <-- alt0id (~nutz0@80.74.169.173) has quit (Read error: No route to host) 2021-05-17 11:42:47 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-17 11:43:02 <-- kpiyushlucky (6ee156b3@110.225.86.179) has quit (Ping timeout: 240 seconds) 2021-05-17 11:44:10 --> mangold (~mangold@198.98.183.147) has joined #python 2021-05-17 11:44:21 P1ckleRick Gurkenglas: anything is possible :) 2021-05-17 11:44:24 xsx _habnabit: how about this: https://bpa.st/UVNQ ? 2021-05-17 11:45:37 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-17 11:46:14 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 11:46:38 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 11:46:52 <-- Haudegen (~quassel@91.114.49.10) has quit (Quit: Bin weg.) 2021-05-17 11:48:44 <-- Fusl (fusl@opennic/fusl) has quit (Quit: K-Lined) 2021-05-17 11:50:24 <-- jlf (~user@pdpc/supporter/active/jlf) has quit (Ping timeout: 245 seconds) 2021-05-17 11:50:52 --> irc_user (uid423822@gateway/web/irccloud.com/x-cllxvzudxyxsbabc) has joined #python 2021-05-17 11:51:00 <-- craigevil (craig@gateway/vpn/protonvpn/craigevil) has quit (Ping timeout: 265 seconds) 2021-05-17 11:51:59 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 246 seconds) 2021-05-17 11:52:50 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-17 11:53:29 --> craigevil (craig@gateway/vpn/protonvpn/craigevil) has joined #python 2021-05-17 11:53:31 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-17 11:53:44 --> melkor (~mbs@pat-pool-138.crick.ac.uk) has joined #python 2021-05-17 11:53:52 <-- tm007 (uid287041@gateway/web/irccloud.com/x-moiiugrbetdlqeqv) has quit (Quit: Connection closed for inactivity) 2021-05-17 11:54:34 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 268 seconds) 2021-05-17 11:55:39 --> jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has joined #python 2021-05-17 11:56:53 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-17 11:58:42 --> stcg (~stcg@194-024-128-083.dynamic.caiway.nl) has joined #python 2021-05-17 11:58:43 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 12:00:00 <-- rudrab (~rudrab@2402:e280:2002:8188:3c40:b150:3397:9230) has quit (Quit: rudrab) 2021-05-17 12:00:01 --> hyskaru (~hyskaru@unaffiliated/hyskaru) has joined #python 2021-05-17 12:00:13 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-17 12:00:19 <-- Wafficus (~Wafficus@70.126.240.148) has quit (Quit: WeeChat 3.0.1) 2021-05-17 12:00:20 <-- nichlas (uid374954@gateway/web/irccloud.com/x-axodirqdvcjnblnh) has quit (Quit: Connection closed for inactivity) 2021-05-17 12:00:30 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-17 12:00:53 <-- Trashlord (~trash@wikipedia/Sentient-Planet) has quit (Quit: "True ignorance is not the absence of knowledge, but the refusal to acquire it.") 2021-05-17 12:01:04 --> todda7 (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) has joined #python 2021-05-17 12:01:15 <-- arza (~arza@qutebrowser/dev/arza) has quit (Quit: Quit) 2021-05-17 12:01:21 todda7 given the type Set, can I create a set() ?? 2021-05-17 12:02:27 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 12:02:34 mdk todda7: why would you do this? 2021-05-17 12:02:35 --> arza (arza@qutebrowser/dev/arza) has joined #python 2021-05-17 12:02:59 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-17 12:04:04 <-- fflam (~mdt@ip70-179-20-127.sd.sd.cox.net) has quit (Quit: WeeChat 3.1) 2021-05-17 12:04:09 --> SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has joined #python 2021-05-17 12:04:58 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-17 12:05:30 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 265 seconds) 2021-05-17 12:05:39 --> Wafficus (~Wafficus@70.126.240.148) has joined #python 2021-05-17 12:05:58 stealth_ todda7, `type(set())('abc')` 2021-05-17 12:06:28 mdk stealth_: I think he ask about typing.Set 2021-05-17 12:06:43 --> LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has joined #python 2021-05-17 12:06:53 todda7 mdk: yes 2021-05-17 12:07:32 --> acovrig129 (~acovrig@host-108-174-105-157.JENOLT4.epbfi.com) has joined #python 2021-05-17 12:07:38 mdk Everything's possible but ... I suspect an XY problem. 2021-05-17 12:07:54 --> johnch (~CloudNine@195.213.86.91) has joined #python 2021-05-17 12:08:12 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Remote host closed the connection) 2021-05-17 12:08:50 <-- radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-17 12:10:02 --> radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has joined #python 2021-05-17 12:10:02 --> fflam (~mdt@ip70-179-20-127.sd.sd.cox.net) has joined #python 2021-05-17 12:10:34 -- acovrig129 is now known as acovrig 2021-05-17 12:10:42 stealth_ mdk, `a = getattr(builtins, 'set')` 2021-05-17 12:11:05 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-17 12:11:31 mdk todda7: have you missed my question or are you not replying on purpose? 2021-05-17 12:12:53 --> cthu| (~cthulchu@193.194.107.250) has joined #python 2021-05-17 12:13:01 --> fcjsx (~fcjsx_@2800:a4:813:900:f47f:913a:7adf:36b) has joined #python 2021-05-17 12:13:29 <-- g0d-byte (~g0d-byte@2001:b07:ae5:76d1:dfcf:6d24:6d09:4032) has quit (Quit: Leaving) 2021-05-17 12:13:31 <-- fcjsx (~fcjsx_@2800:a4:813:900:f47f:913a:7adf:36b) has quit (Client Quit) 2021-05-17 12:14:13 <-- SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-17 12:14:31 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-17 12:16:12 stealth_ todda7, `a = getattr(builtins, typing.Set._name.lower())('abc')` :D 2021-05-17 12:16:41 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 240 seconds) 2021-05-17 12:17:11 <-- burakcank (~burakcank@88.243.153.79) has quit (Ping timeout: 240 seconds) 2021-05-17 12:17:34 --> Barones (~Barones@2804:48dc:8500:0:2428:23e8:468d:9063) has joined #python 2021-05-17 12:17:43 <-- omenius (~omenius@2001:2003:f58c:a000:ccaa:875e:3c95:e0af) has quit (Ping timeout: 250 seconds) 2021-05-17 12:17:47 --> omenius1337 (~omenius@2001:2003:f58c:a000:d1ae:433d:4e57:9e26) has joined #python 2021-05-17 12:18:14 --> powerhouse (~powerhous@S0106383fb3e542f6.vc.shawcable.net) has joined #python 2021-05-17 12:19:39 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-17 12:19:56 <-- adder`` (~adder@unaffiliated/adder) has quit (Remote host closed the connection) 2021-05-17 12:20:01 mdk Nooooooooooooooooooooooooooooo, damned, too late. It was an XY problem, it could have been solved beautifully if todda7 had given to us the X problem, todda7 though Y would solve X, you solved Y. Now it's ugly. I'm so sad. 2021-05-17 12:20:10 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-17 12:20:33 --> srhm (~ascii@107-179-188-91.cpe.teksavvy.com) has joined #python 2021-05-17 12:21:17 --> keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has joined #python 2021-05-17 12:21:37 <-- jjakob (~quassel@2a01:260:8028:10f0::62) has quit (Read error: Connection reset by peer) 2021-05-17 12:21:43 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Quit: No Ping reply in 180 seconds.) 2021-05-17 12:21:59 <-- Elodin (~weechat@unaffiliated/padawan) has quit (Quit: WeeChat 3.1) 2021-05-17 12:22:54 --> Elodin (~weechat@unaffiliated/padawan) has joined #python 2021-05-17 12:23:17 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-17 12:23:22 <-- rsx (~rsx@ppp-188-174-158-77.dynamic.mnet-online.de) has quit (Quit: rsx) 2021-05-17 12:24:48 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 12:25:05 --> noboruma (~noboruma@host-92-12-47-208.as13285.net) has joined #python 2021-05-17 12:25:05 <-- ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has quit (Quit: Leaving) 2021-05-17 12:25:36 --> jjakob (~quassel@2a01:260:8028:10f0::62) has joined #python 2021-05-17 12:26:25 <-- Ergo (~ergo@91.238.59.144) has quit (Remote host closed the connection) 2021-05-17 12:26:35 --> csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has joined #python 2021-05-17 12:27:48 stealth_ mdk, what are you talking about? 2021-05-17 12:28:32 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 12:28:35 mdk todda7 issue. I think it was an (XY problem)[https://en.wikipedia.org/wiki/XY_problem] 2021-05-17 12:29:47 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 246 seconds) 2021-05-17 12:30:31 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-17 12:31:16 <-- jjakob (~quassel@2a01:260:8028:10f0::62) has quit (Read error: Connection reset by peer) 2021-05-17 12:32:29 --> shabius (~shabius@2a0e:1c80:2:1022::1000) has joined #python 2021-05-17 12:32:41 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 12:33:06 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-17 12:34:07 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-17 12:35:08 <-- Fr1nge (~Fr1nge@176.33.138.133) has quit (Read error: Connection reset by peer) 2021-05-17 12:36:50 --> Fusl (fusl@opennic/fusl) has joined #python 2021-05-17 12:36:56 <-- hyskaru (~hyskaru@unaffiliated/hyskaru) has quit (Quit: hyskaru) 2021-05-17 12:37:07 --> ffe4 (~ffe4@200116b82cf6c10080c7508204c30ac8.dip.versatel-1u1.de) has joined #python 2021-05-17 12:37:24 --> jjakob (~quassel@2a01:260:8028:10f0::62) has joined #python 2021-05-17 12:37:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-17 12:38:00 <-- Barones (~Barones@2804:48dc:8500:0:2428:23e8:468d:9063) has quit (Remote host closed the connection) 2021-05-17 12:38:01 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 252 seconds) 2021-05-17 12:38:14 --> Barones (~Barones@2804:48dc:8500:0:4c7a:a0ea:a07:7a15) has joined #python 2021-05-17 12:39:05 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-17 12:39:09 --> arinov (~arinov@213.194.126.155) has joined #python 2021-05-17 12:39:13 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-17 12:39:23 <-- x7b (~ffe4@200116b82cf6c1004420e9848f568b02.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-17 12:39:55 --> bancroft_ (~bancroft@70.55.136.62) has joined #python 2021-05-17 12:40:01 <-- bancroft_ (~bancroft@70.55.136.62) has left #python 2021-05-17 12:40:12 --> tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has joined #python 2021-05-17 12:40:18 <-- dviola (~diego@unaffiliated/dviola) has quit (Quit: WeeChat 3.1) 2021-05-17 12:41:09 tomg How do I save my exceptions so the original exception is raised in the final raise statement? https://dpaste.com/6AMH9HKRT 2021-05-17 12:41:45 yitz tomg: `raise` no args 2021-05-17 12:41:56 yitz Oh. nvm. Misread 2021-05-17 12:41:59 tomg hehe 2021-05-17 12:42:05 --> dviola (~diego@unaffiliated/dviola) has joined #python 2021-05-17 12:42:14 <-- csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has quit (Quit: IRC for eric6 IDE) 2021-05-17 12:42:14 yitz `except Exception as foo:` .... and something with foo 2021-05-17 12:42:15 <-- jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has quit (Quit: WeeChat 3.1) 2021-05-17 12:42:16 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 260 seconds) 2021-05-17 12:42:42 tomg i thought i had it right 2021-05-17 12:42:45 yitz You can `raise foo` I think but you lose the traceback 2021-05-17 12:42:52 tomg hmm 2021-05-17 12:43:16 tomg raise saved_exception 2021-05-17 12:43:16 tomg ValueError: test exception 1 2021-05-17 12:43:16 yitz Also, `raise ValueError("test exception")` 2021-05-17 12:43:25 tomg okay 2021-05-17 12:43:28 tomg oh all right 2021-05-17 12:43:32 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-17 12:43:39 --> gelignite (~gelignite@55d49364.access.ecotel.net) has joined #python 2021-05-17 12:44:24 --> Jerrynicki (~niklas@p200300f577020000e9b697daa31f2299.dip0.t-ipconnect.de) has joined #python 2021-05-17 12:44:44 --> jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has joined #python 2021-05-17 12:44:55 tomg thanks 2021-05-17 12:45:48 <-- CaptainDrewBoy (~CaptainDr@cpc121736-barn9-2-0-cust74.17-1.cable.virginm.net) has quit (Quit: Goodbye eveveryone!) 2021-05-17 12:45:56 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-17 12:46:12 stealth_ tomg, https://bpa.st/3TCA 2021-05-17 12:46:33 <-- craigevil (craig@gateway/vpn/protonvpn/craigevil) has quit (Quit: leaving) 2021-05-17 12:47:07 --> blyat-73 (~user@79.101.60.163) has joined #python 2021-05-17 12:47:26 <-- seednode (~seednode@64-131-31-104.usfamily.net) has quit (Quit: Nihil supernum.) 2021-05-17 12:47:36 <-- zro (~zro@wikimedia/zro) has quit (Ping timeout: 268 seconds) 2021-05-17 12:47:39 <-- mozgalom (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-17 12:47:48 tomg hi stealth_, i switched to python-gnupg in my code... next step is probably to migrate to python 3 2021-05-17 12:48:28 <-- stcg (~stcg@194-024-128-083.dynamic.caiway.nl) has quit (Ping timeout: 252 seconds) 2021-05-17 12:48:33 stealth_ tomg, python2 support ended starting of this year 2021-05-17 12:49:08 --> seednode (~seednode@64-131-31-104.usfamily.net) has joined #python 2021-05-17 12:49:16 tomg i still have to use a tempfile though, python-gnupg doesn't allow verification of signatures with only file objects or data variables 2021-05-17 12:49:22 tomg yeah i know 2021-05-17 12:50:19 --> JimmyNeutron (~weechat@191.96.121.46) has joined #python 2021-05-17 12:50:48 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-17 12:50:57 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 12:52:09 --> zro (~zro@wikimedia/zro) has joined #python 2021-05-17 12:53:30 --> yeticheese (~yetichees@185.240.244.189) has joined #python 2021-05-17 12:53:40 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 12:54:48 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 265 seconds) 2021-05-17 12:55:02 --> Fiji_ (~Fiji@unaffiliated/fiji) has joined #python 2021-05-17 12:55:49 --> adder` (~adder@unaffiliated/adder) has joined #python 2021-05-17 12:56:18 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-17 12:56:39 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-17 12:56:45 <-- catbeard (~boop@gateway/tor-sasl/walp) has quit (Ping timeout: 240 seconds) 2021-05-17 12:57:21 Elodin Is there a way to change the file encoding to utf8 without knowing the source encoding? 2021-05-17 12:57:53 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Ping timeout: 240 seconds) 2021-05-17 12:58:10 bjs Elodin: no, because if you dont know the source encoding you don't know what the actual contents are 2021-05-17 12:58:15 bjs so you can't turn it into the new encoding 2021-05-17 12:58:30 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 12:58:32 bjs at least not in a way that actually means the file has the same text in it in the new encoding 2021-05-17 12:58:42 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 268 seconds) 2021-05-17 12:59:12 <-- aslicedbanjo (~aslicedba@host86-150-115-118.range86-150.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-17 13:00:37 <-- krobzaur (~kyle@2601:18d:8a00:240a:9984:7e56:6746:d453) has quit (Ping timeout: 250 seconds) 2021-05-17 13:01:12 stealth_ Elodin, well you can change it, but if the original wasn't utf8 or ASCII, the result will be wrong. 2021-05-17 13:01:54 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 13:02:41 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-17 13:03:14 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-17 13:03:16 <-- mangold (~mangold@198.98.183.147) has quit (Ping timeout: 260 seconds) 2021-05-17 13:03:41 --> Thanatos (~Thanatos@102.91.5.204) has joined #python 2021-05-17 13:04:05 --> sagax (~sagax_nb@213.138.71.146) has joined #python 2021-05-17 13:04:17 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 13:04:19 --> herbas (~herbas@88.118.170.138) has joined #python 2021-05-17 13:04:51 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 13:04:52 <-- Fiji_ (~Fiji@unaffiliated/fiji) has quit (Ping timeout: 268 seconds) 2021-05-17 13:05:14 astronavt using the tornado async http test case, i'm able to make requests with the synchronous method 'self.fetch()', but can't make requests with the async 'self.http_client.fetch()' method - the latter gives me this error: https://bpa.st/NJZQ 2021-05-17 13:05:28 astronavt has anyone had this problem before? didnt find anything that looked similar on google or stackoverflow 2021-05-17 13:07:41 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-17 13:08:05 <-- gregor2 (~user0@91-115-74-217.adsl.highway.telekom.at) has quit (Remote host closed the connection) 2021-05-17 13:08:25 <-- deekej (~deekej@ip4-95-82-164-84.cust.nbox.cz) has quit (Remote host closed the connection) 2021-05-17 13:08:25 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 13:09:04 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 13:09:32 <-- herbas (~herbas@88.118.170.138) has quit (Quit: herbas) 2021-05-17 13:09:43 <-- ffe4 (~ffe4@200116b82cf6c10080c7508204c30ac8.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-17 13:10:18 --> pedro__ (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined #python 2021-05-17 13:10:34 <-- pedro__ (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Client Quit) 2021-05-17 13:11:32 --> mangold (~mangold@198.98.183.60) has joined #python 2021-05-17 13:15:33 graingert astronavt: how are you calling async_fetch_for_status? 2021-05-17 13:15:52 astronavt graingert: just with await. the test is an `async def` method and it's decorated with `@gen_test` 2021-05-17 13:16:07 --> ffe4 (~ffe4@200116b82cf6c1006837f091c46bebe9.dip.versatel-1u1.de) has joined #python 2021-05-17 13:16:16 astronavt can provide more context if needed although i will have to sanitize it 2021-05-17 13:16:21 astronavt s/it/the code/ 2021-05-17 13:16:33 graingert astronavt: Ok well try and make a runnable example 2021-05-17 13:16:45 <-- seednode (~seednode@64-131-31-104.usfamily.net) has quit (Quit: Nihil supernum.) 2021-05-17 13:16:58 <-- nosleep12345 (8e715f1d@bras-vprn-mltnon2526w-lp130-08-142-113-95-29.dsl.bell.ca) has quit (Quit: Connection closed) 2021-05-17 13:17:41 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-17 13:18:24 --> seednode (~seednode@64-131-31-104.usfamily.net) has joined #python 2021-05-17 13:19:34 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 13:20:51 karlpinc I've downloaded and installed python (latest stable) on MS Windows 10. Can I run virtualenv from the powershell command line or is there some other way to make a venv? 2021-05-17 13:21:52 --> olspookishmagus (~pookie@snf-137798.vm.okeanos.grnet.gr) has joined #python 2021-05-17 13:22:05 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-17 13:22:09 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-17 13:22:38 <-- ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has quit (Quit: Leaving) 2021-05-17 13:23:31 karlpinc Humm. I'll try: python -m venv .... 2021-05-17 13:23:36 graingert karlpinc: python3.9 -m venv should work 2021-05-17 13:24:10 --> craigevil (craig@gateway/vpn/protonvpn/craigevil) has joined #python 2021-05-17 13:24:32 karlpinc graingert: Worked. Thanks. 2021-05-17 13:24:52 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-17 13:25:26 karlpinc (ugh. Scripts\... :) 2021-05-17 13:25:59 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-17 13:26:20 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-17 13:26:58 <-- finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Remote host closed the connection) 2021-05-17 13:26:59 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-17 13:27:12 <-- saint_ (~saint_@unaffiliated/saint-/x-0540772) has quit (Quit: UNIVERSE CORRUPTED. REBOOT (Y/N) ?) 2021-05-17 13:27:46 <-- veek (~veek@unaffiliated/veek) has quit (Quit: Leaving) 2021-05-17 13:27:55 <-- vladoski (~vladoski@2001:b07:add:d406:adc6:fa40:84a7:bbc0) has quit (Ping timeout: 250 seconds) 2021-05-17 13:28:31 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 13:28:48 <-- stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-17 13:30:35 --> finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-17 13:30:36 --> wenijinew (~wenijinew@c83-248-21-105.bredband.tele2.se) has joined #python 2021-05-17 13:31:10 --> ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has joined #python 2021-05-17 13:31:27 wenijinew anybody every faced the problem the timeout doesn't work for subprocess? https://docs.python.org/3.6/library/subprocess.html#subprocess.run 2021-05-17 13:31:43 ioxzev1z wenijinew, elaborate 2021-05-17 13:31:55 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 252 seconds) 2021-05-17 13:32:03 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 13:32:09 <-- legola (~legola@unaffiliated/legola) has quit (Remote host closed the connection) 2021-05-17 13:32:59 graingert wenijinew: Child process might not be being killed 2021-05-17 13:33:33 --> sandra_96 (~sandra_96@c-cbc2524e.05-114-6d6c6d5.bbcust.telenor.se) has joined #python 2021-05-17 13:33:40 --> hwpplayer1 (~user@unaffiliated/hwpplayer1) has joined #python 2021-05-17 13:33:59 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-17 13:34:11 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-17 13:34:26 <-- mangold (~mangold@198.98.183.60) has quit (Ping timeout: 265 seconds) 2021-05-17 13:34:59 --> bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-17 13:35:00 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-17 13:35:07 wenijinew then, how to troubleshoot it? 2021-05-17 13:35:47 wenijinew for example, run git clone for some big repo 2021-05-17 13:35:50 <-- Death916 (UserNick@unaffiliated/death916) has quit (Read error: Connection reset by peer) 2021-05-17 13:38:42 --> fuze (uid76888@gateway/web/irccloud.com/x-ffhncybbdxbbfsxe) has joined #python 2021-05-17 13:39:26 --> yuesbeez (uid458354@gateway/web/irccloud.com/x-dsfhrilwfoamgzqo) has joined #python 2021-05-17 13:40:30 <-- rendar (~rendar@unaffiliated/rendar) has quit 2021-05-17 13:41:15 <-- powerhouse (~powerhous@S0106383fb3e542f6.vc.shawcable.net) has quit (Ping timeout: 268 seconds) 2021-05-17 13:41:21 --> parapan (51c4809f@81.196.128.159) has joined #python 2021-05-17 13:42:21 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-17 13:43:03 parapan hi all; so: x=1, y =2, sum = x + y, def fct(); ...etc; now ? how would I go to the next level ? writting classes , functions with kwargs, etc, etc ? where are the tutorials for the next level ? 2021-05-17 13:43:17 --> powerhouse (~powerhous@S0106383fb3e542f6.vc.shawcable.net) has joined #python 2021-05-17 13:43:17 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-17 13:44:27 stealth_ parapan, https://docs.python.org/3/tutorial/index.html https://www.pythonsheets.com/ 2021-05-17 13:44:41 ioxzev1z parapan, wat 2021-05-17 13:44:58 parapan stealth_ , ok, let me check that . . . . 2021-05-17 13:45:16 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-17 13:45:21 bjs parapan: we're not sure what you're asking 2021-05-17 13:46:11 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 268 seconds) 2021-05-17 13:46:21 ioxzev1z bjs, I think he needs help on where to go next after var=val 2021-05-17 13:47:02 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-17 13:47:06 _habnabit ioxzev1z, 'he'? ;) 2021-05-17 13:47:11 ioxzev1z _habnabit, it 2021-05-17 13:47:17 _habnabit ioxzev1z, let's go with 'they' 2021-05-17 13:47:19 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-17 13:47:20 todda7 given the same items in set1 and set2, is the order the same, whether set1 and set2 2021-05-17 13:47:24 ioxzev1z _habnabit, Everyone's a robot here 2021-05-17 13:47:26 todda7 comes first 2021-05-17 13:47:27 --> legola (~legola@unaffiliated/legola) has joined #python 2021-05-17 13:47:30 _habnabit todda7, sets don't have order 2021-05-17 13:47:44 todda7 _habnabit: so they will always pickle the same? 2021-05-17 13:47:48 todda7 given the same items 2021-05-17 13:47:53 _habnabit todda7, well, that isn't the same question 2021-05-17 13:48:02 <-- legola (~legola@unaffiliated/legola) has quit (Remote host closed the connection) 2021-05-17 13:48:08 todda7 no 2021-05-17 13:48:12 todda7 but will they 2021-05-17 13:48:14 bjs todda7: no 2021-05-17 13:48:14 _habnabit todda7, what would it mean to 'pickle the same'? you can't compare the binary output of pickle 2021-05-17 13:48:38 todda7 _habnabit: you can with lists, no? 2021-05-17 13:48:45 todda7 you can compare the binady output? 2021-05-17 13:48:48 _habnabit todda7, no. not with any object 2021-05-17 13:48:52 bjs todda7: you really shouldn't, it implies you're doing something very wrong 2021-05-17 13:49:03 _habnabit todda7, pickle is not defined to be comparable after serialization 2021-05-17 13:49:16 todda7 _habnabit: is feather? or json? 2021-05-17 13:49:18 <-- plutoniix (~q@node-uls.pool-125-24.dynamic.totinternet.net) has quit (Quit: Leaving) 2021-05-17 13:49:18 bjs todda7: pickle gives no guarantees about what the final bytes actually look like, or how that corresponds to the objects underneath 2021-05-17 13:49:23 _habnabit todda7, not really. what's your goal? 2021-05-17 13:49:41 _habnabit todda7, serialization formats very rarely define any sort of 'canonical' representation which can be used to compare the serialized bytes 2021-05-17 13:49:42 todda7 _habnabit: avoid uploading files on AWS s3 if they already exists 2021-05-17 13:49:57 todda7 by comparing ETag, i.e. MD5 checksum 2021-05-17 13:49:57 bjs todda7: what does pickle have to do with it? 2021-05-17 13:50:08 parapan bjs: I mean I can deal with variables, functions, basic things and some GUI design in Tkinter; however ...most of the time if I search for some code samples they are written with classes and based on the advanced concepts: abstraction, inheritance, reusability, etc, etc ... 2021-05-17 13:50:13 todda7 bjs: wel lim uploading pickles 2021-05-17 13:50:15 todda7 or json 2021-05-17 13:50:20 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Quit: Leaving) 2021-05-17 13:50:28 bjs todda7: don't upload pickles, json can work 2021-05-17 13:50:29 _habnabit ioxzev1z, my overwhelming experience has been the people on this channel are, in fact, people. 'they' is a good choice if you don't know how else to refer to someone 2021-05-17 13:51:06 _habnabit todda7, pickle is not suited to any sort of long-term storage. it doesn't provide any guarantee that you'll be able to unserialize the same bytes after the python process has exited 2021-05-17 13:51:09 <-- stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-17 13:51:11 --> bdonnahue1 (~bdonnahue@208.59.177.131) has joined #python 2021-05-17 13:51:25 ioxzev1z _habnabit, I was trying to lighten the mood, it's difficult to always think of pronouns when the basic "he" can apply when there is no direct evidence for "she" and soforth 2021-05-17 13:51:53 _habnabit ioxzev1z, that's why i'm reminding you about 'they' :) it's a good habit to develop if you haven't yet 2021-05-17 13:51:54 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-17 13:51:55 bjs todda7: e.g. you _cannot_ give me a pickle and have me open it. (1) it's unsafe and I'm never going to unpickle something that came over the internet and (2) it almost certainly wouldn't work 2021-05-17 13:52:29 bjs todda7: JSON however works great and I will definitely be able to load() it and get back whatever you dump()d 2021-05-17 13:52:48 todda7 alternatives to pickle and json? 2021-05-17 13:52:52 todda7 json is slow and big 2021-05-17 13:52:59 _habnabit todda7, json is _way_ faster than pickle 2021-05-17 13:53:03 graingert todda7: CSV? 2021-05-17 13:53:13 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-17 13:53:19 wenijinew when set shell=False, the problem solved 2021-05-17 13:53:35 <-- Sheilong (uid293653@gateway/web/irccloud.com/x-pmhdkeusnrjysucn) has quit (Quit: Connection closed for inactivity) 2021-05-17 13:54:01 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 260 seconds) 2021-05-17 13:54:09 _habnabit todda7, agreed with bjs, though json also doesn't define a canonical representation. comparing its serialized bytes can be false even if the encoded data is the same 2021-05-17 13:54:50 <-- spiri (~spiri@unaffiliated/spiri) has quit (Quit: Leaving) 2021-05-17 13:54:54 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-17 13:54:58 bjs pickle is bad because even the same bytes can be different objects on two different machines 2021-05-17 13:55:26 _habnabit pickle is bad for many reasons but that is one of them yes 2021-05-17 13:55:43 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 13:56:15 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:5e81:b1cb:3120:4542) has quit (Ping timeout: 260 seconds) 2021-05-17 13:56:24 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 13:56:30 <-- Barones (~Barones@2804:48dc:8500:0:4c7a:a0ea:a07:7a15) has quit (Remote host closed the connection) 2021-05-17 13:56:44 --> Barones (~Barones@2804:48dc:8500:0:95ae:cbe8:ed99:f00a) has joined #python 2021-05-17 13:56:45 parapan I'm wondering if there is such a thing like "advanced python programming for the 3'rd years old" . . . . 2021-05-17 13:56:45 astronavt omg... was i supposed to be using `@gen_test()` and not `@gen_test`? 2021-05-17 13:57:08 astronavt i checked the source code and it looked like it was "auto-detecting" whether or not the first arg was callable 2021-05-17 13:57:09 <-- sivoais (~zaki@unaffiliated/sivoais) has quit (Ping timeout: 265 seconds) 2021-05-17 13:57:17 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 268 seconds) 2021-05-17 13:57:27 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-17 13:57:34 --> linux_dream (~isaac@unaffiliated/linux-dream/x-5839402) has joined #python 2021-05-17 13:57:38 --> sivoais (~zaki@unaffiliated/sivoais) has joined #python 2021-05-17 13:57:41 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-17 13:57:45 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-17 13:57:48 --> burakcank (~burakcank@88.243.153.79) has joined #python 2021-05-17 13:57:58 astronavt also graingert i can't reproduce with a minimal example... so this error might be something bubbling up from somewhere else 2021-05-17 13:58:04 todda7 _habnabit: I'm just worried about the MD5 sum, when comparing binary output of same content written with same versions of python across 2 computers 2021-05-17 13:58:12 astronavt so many layers of indirection with all this tornado stuff 2021-05-17 13:58:21 _habnabit todda7, well, absolutely never use md5 anyway 2021-05-17 13:58:26 todda7 same major version 2021-05-17 13:58:28 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 13:58:29 <-- eedgit (~textual@84.64.201.21) has quit (Remote host closed the connection) 2021-05-17 13:58:35 todda7 _habnabit: not my choice! 2021-05-17 13:58:40 SnoopJ todda7, the `orjson` library is as I understand it quite popular in cases where `json` is slow enough to care 2021-05-17 13:58:42 todda7 its Amazon AWS 2021-05-17 13:58:51 bjs todda7: definitely do not use pickle then, because two files can have the same bytes for pickle but have come from different objects 2021-05-17 13:59:03 bjs todda7: definitely switch to JSON, _then_ decide whether you want something better than json 2021-05-17 13:59:27 todda7 i mostly convert to pandas then use feather 2021-05-17 13:59:27 --> guriya (a0ee4b7d@unaffiliated/guriya) has joined #python 2021-05-17 13:59:29 bjs todda7: and if you have a pickle file and update Python, or change the code slightly, the pickle can break. 2021-05-17 13:59:37 bjs and you won't be able to open it anymore 2021-05-17 13:59:39 --> GrouchyHedgehog (~jpedrick@c-69-249-204-148.hsd1.pa.comcast.net) has joined #python 2021-05-17 13:59:49 todda7 been there 2021-05-17 13:59:52 todda7 pickle sucks 2021-05-17 14:00:12 Gurkenglas P1ckleRick, how would I tell pytorch to run a given piece of code for every created tensorß 2021-05-17 14:00:29 bjs todda7: not to mention the massive security hole of arbitrary code execution that is pickle, which might be a worry if you have things open on AWS 2021-05-17 14:00:36 bjs it depends where these pickles are coming from and how much you trust them 2021-05-17 14:00:36 SnoopJ Gurkenglas, at creation time, or afterward? 2021-05-17 14:00:45 Gurkenglas SnoopJ, at creation time 2021-05-17 14:01:09 Gurkenglas I mean, soon after would also be okay if the creator is still in the callstack. 2021-05-17 14:01:13 GrouchyHedgehog Ok, I've got a fun puzzle. Python 2 POpen, I need to clear out stdout before I write data to stdin and then read everything from stdout 2021-05-17 14:01:27 Gurkenglas I'd like to extract what the creator will call the tensor from the traceback. 2021-05-17 14:01:34 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-17 14:01:35 SnoopJ Gurkenglas, not sure there's any way to do that aside from replacing/patching the class itself. 2021-05-17 14:01:45 GrouchyHedgehog i.e., sometimes my app writes to stdout before there's any input on stdin and all that output is stuff I wanna throw away 2021-05-17 14:02:02 Gurkenglas I think the innards of torch are C++, so I can't even just overwrite __init__ 2021-05-17 14:02:24 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 14:02:39 Gurkenglas My current plan is to define a function that takes a module (presumably torch) and wrap every function to try equipping every tensor with a name asap 2021-05-17 14:03:00 SnoopJ Gurkenglas, it depends on what "the innards" means to you, but Tensor is defined in Python either way. 2021-05-17 14:03:03 s8548a I am unable to get rid of this "kicost" pip package even after uninstalling the old python versions 2021-05-17 14:03:04 s8548a https://i.imgur.com/xxWG75V.png 2021-05-17 14:03:11 s8548a please help 2021-05-17 14:03:56 Gurkenglas SnoopJ, so replacing Tensor.__init__ should just-work^tm? https://github.com/szagoruyko/pytorchviz/issues/59 soudned like no 2021-05-17 14:04:34 s8548a current python version is Python 3.8.5 2021-05-17 14:04:46 SnoopJ Gurkenglas, you can modify the Python class Tensor. I have no idea about the context of that ticket, it's pretty light on details 2021-05-17 14:04:50 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-17 14:05:01 SnoopJ You shouldn't replace __init__ anyway, you should at most wrap it 2021-05-17 14:05:11 Gurkenglas SnoopJ, what's the difference? 2021-05-17 14:05:35 SnoopJ Gurkenglas, "replace" to me sounds like "throw away the old one" 2021-05-17 14:05:57 Gurkenglas aight ill say wrap then 2021-05-17 14:06:21 <-- guriya (a0ee4b7d@unaffiliated/guriya) has quit (Quit: Connection closed) 2021-05-17 14:08:06 <-- hwpplayer1 (~user@unaffiliated/hwpplayer1) has quit (Quit: formatting) 2021-05-17 14:08:10 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:f5ad:6b00:298d:80c7) has joined #python 2021-05-17 14:08:31 --> shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has joined #python 2021-05-17 14:08:41 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 240 seconds) 2021-05-17 14:09:41 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 240 seconds) 2021-05-17 14:09:57 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-17 14:12:15 --> krobzaur (~kyle@c-24-60-133-52.hsd1.nh.comcast.net) has joined #python 2021-05-17 14:12:30 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-17 14:13:59 <-- linux_dream (~isaac@unaffiliated/linux-dream/x-5839402) has quit (Ping timeout: 260 seconds) 2021-05-17 14:14:38 --> drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-17 14:14:43 SnoopJ Gurkenglas, https://bpa.st/KORA 2021-05-17 14:15:17 --> k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has joined #python 2021-05-17 14:15:50 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-17 14:15:57 --> linux_dream (~isaac@unaffiliated/linux-dream/x-5839402) has joined #python 2021-05-17 14:16:26 SnoopJ Line 4 isn't really necessary, I had to mess around a little bit because `torch.tensor` is a function as well as the name of a package, but I ended up not needing to care about that (gross) behavior 2021-05-17 14:17:11 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-17 14:18:31 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 260 seconds) 2021-05-17 14:19:28 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-17 14:19:46 <-- burakcank (~burakcank@88.243.153.79) has quit (Ping timeout: 252 seconds) 2021-05-17 14:20:19 <-- gobby252 (~gobby252@178.239.173.200) has quit (Ping timeout: 252 seconds) 2021-05-17 14:20:44 <-- sinanislekdemir (~sinan@dsl-hkibng42-5673ca-177.dhcp.inet.fi) has left #python 2021-05-17 14:20:50 <-- ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has quit (Quit: Leaving) 2021-05-17 14:21:24 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-17 14:21:40 <-- craigevil (craig@gateway/vpn/protonvpn/craigevil) has quit (Quit: leaving) 2021-05-17 14:21:49 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Max SendQ exceeded) 2021-05-17 14:22:50 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-17 14:23:24 --> aslicedbanjo (~aslicedba@host86-150-115-118.range86-150.btcentralplus.com) has joined #python 2021-05-17 14:23:53 --> craigevil (craig@gateway/vpn/protonvpn/craigevil) has joined #python 2021-05-17 14:25:54 --> aakashi2001 (~aakashi20@165.22.213.247) has joined #python 2021-05-17 14:25:55 <-- lucad111 (~lucad111@linaro/lucad111) has quit (Quit: Leaving) 2021-05-17 14:27:30 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 268 seconds) 2021-05-17 14:27:47 --> JamesB192 (~quassel@67-61-67-61-201-106.cpe.sparklight.net) has joined #python 2021-05-17 14:27:52 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-17 14:28:28 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 14:29:21 <-- podeni (~podeni@188.27.130.55) has quit (Remote host closed the connection) 2021-05-17 14:30:11 --> Air15 (0e63fee6@14.99.254.230) has joined #python 2021-05-17 14:30:21 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-17 14:30:30 <-- py_dev (d57f26ce@ip-213-127-38-206.ip.prioritytelecom.net) has quit (Quit: Connection closed) 2021-05-17 14:31:50 Air15 Need Regex expression for this https://bpa.st/NJIQ pattern 2021-05-17 14:32:09 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 14:32:19 --> SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has joined #python 2021-05-17 14:32:27 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-17 14:32:55 doc|home Air15: https://regex101.com/ will help you figure one out 2021-05-17 14:32:55 --> EmmetBrown (~jeco@gateway/tor-sasl/jeco) has joined #python 2021-05-17 14:33:27 --> PoaB (~Thunderbi@134.3.91.178) has joined #python 2021-05-17 14:33:47 JamesB192 I am trying to set up a cross-building docker image for CIand having trouble with getting Python to cross-compile. Could someone point me toward a guide? log & stuff -> https://bpa.st/YPAA 2021-05-17 14:33:57 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Quit: Leaving) 2021-05-17 14:34:17 <-- frrs (uid130725@gateway/web/irccloud.com/x-hjbahdjxgdjdusks) has quit (Quit: Connection closed for inactivity) 2021-05-17 14:34:22 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Quit: i love you BitchX chalupa boofa ZNC - https://znc.in) 2021-05-17 14:34:41 --> Catatronic (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-17 14:35:12 --> digitalD (~dp@c-107-2-197-75.hsd1.co.comcast.net) has joined #python 2021-05-17 14:37:14 --> Baumfinder (~Baumfinde@p2003000651c7a08d1caca7b22b3e6fcd.dip0.t-ipconnect.de) has joined #python 2021-05-17 14:37:24 <-- Baumfinder (~Baumfinde@p2003000651c7a08d1caca7b22b3e6fcd.dip0.t-ipconnect.de) has left #python 2021-05-17 14:38:56 <-- Air15 (0e63fee6@14.99.254.230) has quit (Quit: Connection closed) 2021-05-17 14:41:39 karlpinc How can I easily "clean" an MS Windows path (a string) of characters that MS Windows does not like in it's path? (I get an OSError.) 2021-05-17 14:41:42 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 14:43:37 <-- Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has quit (Quit: Leaving) 2021-05-17 14:43:45 --> Tennis (~Tennis@unaffiliated/tennis) has joined #python 2021-05-17 14:43:46 --> MTennis (~Tennis@unaffiliated/tennis) has joined #python 2021-05-17 14:45:15 nkuttler karlpinc: probably depends on how it's "dirty".. remove non-ascii chars? 2021-05-17 14:45:23 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 268 seconds) 2021-05-17 14:45:54 nkuttler karlpinc: you might also want to look into something like unicode-slugify 2021-05-17 14:46:13 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-17 14:46:33 karlpinc nkuttler: 7-bit ascii? 2021-05-17 14:46:58 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-17 14:47:00 <-- Barones (~Barones@2804:48dc:8500:0:95ae:cbe8:ed99:f00a) has quit (Remote host closed the connection) 2021-05-17 14:47:04 nkuttler i don't know windows filesystems 2021-05-17 14:47:08 karlpinc nkuttler: At the momement I think the complaint is that there's a double quote (") character that got in there somehow. 2021-05-17 14:47:17 karlpinc nkuttler: Me neither. :) 2021-05-17 14:47:36 karlpinc I will search pypi.... 2021-05-17 14:47:38 --> stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has joined #python 2021-05-17 14:47:54 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 265 seconds) 2021-05-17 14:48:51 <-- computeiro (~Wender@189.37.64.88) has quit (Ping timeout: 260 seconds) 2021-05-17 14:48:59 --> csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has joined #python 2021-05-17 14:49:14 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-17 14:49:30 --> juuandyy (~juuandyy@90.106.228.121) has joined #python 2021-05-17 14:49:39 karlpinc (There seem to be a large number of ways to "break" a MS Windows file system path: 2021-05-17 14:49:42 karlpinc https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file 2021-05-17 14:50:03 --> vali (~vali@unaffiliated/vali) has joined #python 2021-05-17 14:51:00 --> Barones (~Barones@2804:48dc:8500:0:3db6:6288:3cf9:e2c8) has joined #python 2021-05-17 14:51:07 --> refusenick (~user@2601:644:8502:d700::94c9) has joined #python 2021-05-17 14:51:10 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-17 14:51:24 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-17 14:51:27 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: WeeChat 3.1) 2021-05-17 14:51:43 refusenick python-lsp-server is pretty slow on this laptop (Thinkpad X200), and I'd like to speed it up 2021-05-17 14:51:45 <-- aakashi2001 (~aakashi20@165.22.213.247) has quit (Quit: Leaving) 2021-05-17 14:52:05 refusenick I have it installed via pipx, and I also manage Python itself via pyenv 2021-05-17 14:52:33 refusenick Has anyone tried running it (or python-language-server, from which it forked) with PyPy? 2021-05-17 14:53:24 <-- k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has quit (Ping timeout: 268 seconds) 2021-05-17 14:53:33 --> gobby252 (~gobby252@178.239.173.200) has joined #python 2021-05-17 14:53:38 vxvshnuj pyright is snappy 2021-05-17 14:53:50 --> zaki (~zaki@2601:403:4280:3a60::bc69) has joined #python 2021-05-17 14:54:22 vxvshnuj pyls has always been sluggish when I used it, pyright was made to be fast by solely supporting typed/stubbed completion 2021-05-17 14:54:26 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-17 14:54:41 vxvshnuj no deep analysis, like in pyls/jedi/etc 2021-05-17 14:54:57 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Read error: Connection reset by peer) 2021-05-17 14:55:03 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-17 14:55:18 --> pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-17 14:55:23 <-- krobzaur (~kyle@c-24-60-133-52.hsd1.nh.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-17 14:55:33 refusenick vxvshnuj: Oh, I forgot that was an option. I'll take a look. 2021-05-17 14:56:07 refusenick (I checked out the MS one and nope'd out when I saw I'd have to install C# (presumably Mono on Linux?)) 2021-05-17 14:56:36 --> imp (~imp@186.205.11.214) has joined #python 2021-05-17 14:56:44 vxvshnuj yeah, I used that one too 2021-05-17 14:57:04 vxvshnuj but it's now deprecated in favor of pylance, which is based on pyright 2021-05-17 14:57:07 <-- panikovsky (~panikovsk@87.117.48.120) has quit (Quit: Leaving) 2021-05-17 14:57:17 <-- sazawal (~sazawal@2409:4043:2e13:7bc:c49c:fde5:6481:4d02) has quit (Quit: Leaving) 2021-05-17 14:57:26 --> legplant (legplant@cpe-74-64-25-161.nyc.res.rr.com) has joined #python 2021-05-17 14:57:28 vxvshnuj and it was quite slow on analysis as well 2021-05-17 14:58:22 vxvshnuj (I don't use pylance, I use coc-pyright on nvim) 2021-05-17 14:58:33 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 14:59:30 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-17 14:59:49 karlpinc This seems a cogent discussion of how to validate MS Windows path names: https://stackoverflow.com/questions/9532499/check-whether-a-path-is-valid-in-python-without-creating-a-file-at-the-paths-ta tl;dr MS Windows is awful. Forget it. 2021-05-17 15:00:23 refusenick karlpinc: Oh, I haven't used Windows in.... a long time 2021-05-17 15:00:41 legplant hi folks - would anyone know how to visualize a scatter in 3 dimensions on a radar plot? say, % full weight, height, and length of a container? 2021-05-17 15:01:34 <-- axisys (~axisys@unaffiliated/axisys) has quit (Remote host closed the connection) 2021-05-17 15:01:44 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 15:02:01 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-17 15:02:11 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 240 seconds) 2021-05-17 15:02:13 legplant ideally I would like to show a cluster to the lower right (to show a tendancy to fill up on our weight allotment first) for example 2021-05-17 15:02:38 <-- vidbina (~vid@45.139.215.53) has quit (Read error: Connection reset by peer) 2021-05-17 15:02:44 * refusenick sees pyright requires npm 2021-05-17 15:02:53 refusenick noted... 2021-05-17 15:03:50 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-17 15:03:53 SnoopJ legplant, can you say more about what you're plotting? A radar plot sounds strange for spatial data 2021-05-17 15:03:57 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-17 15:04:17 --> Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has joined #python 2021-05-17 15:04:24 --> sazawal (~sazawal@2409:4043:2e13:7bc:c49c:fde5:6481:4d02) has joined #python 2021-05-17 15:04:43 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Quit: Leaving) 2021-05-17 15:06:45 legplant sure - basically we have a bunch of shipping bins - some are filling up on weight, leaving a lot of their area unconsumed. others are full in area, but are too light. and some a perfectly balenced. I would like to show how basically some classes of bins tend to fill on area more than weight, and vica versa for other classs 2021-05-17 15:07:28 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-17 15:07:41 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-17 15:08:57 legplant where weight, height, length are normalized to 0 - 100% "full" - and I may want to add in more dimensions over time 2021-05-17 15:09:21 --> computeiro (~Wender@189.37.66.52) has joined #python 2021-05-17 15:09:42 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-17 15:09:59 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-17 15:09:59 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-17 15:10:29 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-17 15:12:07 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Quit: Leaving) 2021-05-17 15:12:21 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 15:13:08 <-- drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Ping timeout: 268 seconds) 2021-05-17 15:15:15 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 15:15:29 --> ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has joined #python 2021-05-17 15:15:50 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-05-17 15:16:01 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 15:16:20 <-- qj (~qj@unaffiliated/qj) has quit (Quit: bye();) 2021-05-17 15:16:35 --> jamea (~jak2000@10.189-202-213.bestelclientes.com.mx) has joined #python 2021-05-17 15:16:37 jamea hi all 2021-05-17 15:18:18 --> fcjsx (~fcjsx_@2800:a4:813:900:f47f:913a:7adf:36b) has joined #python 2021-05-17 15:18:34 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-17 15:18:44 ELFrederich need some circular import help with a Click CLI. Within my module I have a "cli" module which has __init__.py, main.py, and foo.py. The __init__.py has "from .main import cli_main". The main.py defines cli_main as a click.group(). It has "from .foo import foo_cmd". And foo.py implements foo_cmd as a click.command(). 2021-05-17 15:18:46 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 240 seconds) 2021-05-17 15:18:52 <-- fcjsx (~fcjsx_@2800:a4:813:900:f47f:913a:7adf:36b) has quit (Client Quit) 2021-05-17 15:18:52 <-- MTennis (~Tennis@unaffiliated/tennis) has quit (Quit: Leaving) 2021-05-17 15:18:53 <-- Tennis (~Tennis@unaffiliated/tennis) has quit (Quit: Leaving) 2021-05-17 15:19:28 ELFrederich This has no circles... __init__.py imports main.py, which imports foo.py. But now I want to add a cli helper utility which I need to import from foo.py. So I can't put it in __init__.py 2021-05-17 15:19:43 <-- al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 252 seconds) 2021-05-17 15:19:59 --> lethu (~lethu@unaffiliated/lethu) has joined #python 2021-05-17 15:20:08 <-- yeticheese (~yetichees@185.240.244.189) has quit (Remote host closed the connection) 2021-05-17 15:20:40 --> al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-17 15:23:09 jamea i get an error see: https://bpa.st/HDZA i think my problem is the dates arguments on the link to be requested... http://mydomain.com:8080/jQdl/servletExtraInfoPedidoBD?xAccion=MconsultaPedidosEnFecha&xFechaInicial=09/05/2021&xFechaFinal=17/05/2021 2021-05-17 15:23:09 <-- honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-17 15:23:39 --> subho (~subho@fedora/subho) has joined #python 2021-05-17 15:24:42 amogorkon phy1729, SnoopJ, i put the lagrange polynomial from earlier into a python function for single x, now i wonder how to make this efficiently work for a numpy array? 2021-05-17 15:24:49 amogorkon https://bpa.st/GSRA 2021-05-17 15:24:57 SnoopJ ELFrederich, I sometimes like to put my CLI stuff in a dedicated package, most often `cli.py` 2021-05-17 15:25:24 <-- refusenick (~user@2601:644:8502:d700::94c9) has quit (Ping timeout: 245 seconds) 2021-05-17 15:25:51 --> MikZyth (~MikZyth@188.65.242.190) has joined #python 2021-05-17 15:26:02 SnoopJ amogorkon, an immediately-obvious speedup: `lo, hi = abs(bottom), abs(top)` to avoid recomputing that several times 2021-05-17 15:26:16 SnoopJ assuming speed is what "efficiently" is concerned with 2021-05-17 15:26:21 amogorkon yeah, i was thinking of putting that into a closure 2021-05-17 15:26:48 amogorkon but more importantly, how to make the whole thing work on a numpy array? 2021-05-17 15:26:54 SnoopJ it already can 2021-05-17 15:26:58 --> bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-17 15:27:05 amogorkon hm.. 2021-05-17 15:27:08 ELFrederich SnoopJ, yeah... I'm using a cli module which has the main entry point (click.group) defined in my_package/cli/main.py and each subcommand in its own file. So my_package/cli/foo.py. Then main.py has from .foo import foo_cmd. And then does cli_main.add_command(foo_cmd). The question is what should go into cli/__init__.py and where should cli helpers/utilities go? 2021-05-17 15:27:44 amogorkon SnoopJ, wha.. o.O 2021-05-17 15:28:00 amogorkon damn, why didn't i just try it and assumed the worst 2021-05-17 15:28:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 15:28:48 SnoopJ I would focus on making it more legible than on "efficiency" 2021-05-17 15:28:49 <-- Sylhouette (~johan@85-147-130-226.cable.dynamic.v4.ziggo.nl) has quit (Remote host closed the connection) 2021-05-17 15:29:10 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-17 15:29:32 <-- legplant (legplant@cpe-74-64-25-161.nyc.res.rr.com) has quit 2021-05-17 15:29:42 --> ThanatosJ (~Thanatos@102.89.0.158) has joined #python 2021-05-17 15:29:53 amogorkon it's actually quite efficient 2021-05-17 15:30:07 amogorkon 16800000 data points in 500 ms 2021-05-17 15:30:26 <-- ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has quit (Ping timeout: 265 seconds) 2021-05-17 15:30:39 amogorkon but somehow i get overflow problems now.. hm 2021-05-17 15:30:44 amogorkon oh well, thanks! 2021-05-17 15:30:50 <-- snatcher (~user@gateway/tor-sasl/snatcher) has left #python 2021-05-17 15:30:51 SnoopJ most of that is probably spent making the 3 copies of `x` necessitated 2021-05-17 15:31:22 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 15:32:01 SnoopJ ELFrederich, I'm afraid I don't really have a good mental model of what you're asking because descriptions of the layout/contents are so indirect. Perhaps you could share the source on GitHub/repl.it/etc.? 2021-05-17 15:32:46 amogorkon hmm.. :4: RuntimeWarning: overflow encountered in int_scalars 2021-05-17 15:32:46 amogorkon <- how to debug that? 2021-05-17 15:33:21 <-- Thanatos (~Thanatos@102.91.5.204) has quit (Ping timeout: 260 seconds) 2021-05-17 15:33:31 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Quit: Zzzzzz.....) 2021-05-17 15:37:19 <-- aidanh (~aidanh@unaffiliated/aidanh) has quit (Ping timeout: 252 seconds) 2021-05-17 15:37:40 --> Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has joined #python 2021-05-17 15:38:36 SnoopJ amogorkon, if you set PYTHONWARNINGS=error, it'll promote that to an error and hopefully issue a complete traceback that is immediately helpful. Otherwise, see the docs for the `warnings` library 2021-05-17 15:39:02 --> aidanh (~aidanh@unaffiliated/aidanh) has joined #python 2021-05-17 15:39:19 --> drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-17 15:40:09 --> refusenick (~user@2601:644:8502:d700::94c9) has joined #python 2021-05-17 15:40:09 refusenick x 2021-05-17 15:40:12 <-- parabolize (~paraboliz@98.43.173.221) has quit (Ping timeout: 240 seconds) 2021-05-17 15:41:01 amogorkon checking warnings docs now 2021-05-17 15:41:08 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Remote host closed the connection) 2021-05-17 15:41:17 --> jarthur (~jarthur@2603-8080-1540-002d-2cd6-7c07-2a88-1d7d.res6.spectrum.com) has joined #python 2021-05-17 15:41:27 --> F-i-G (~blargh@76-198-158-124.lightspeed.tukrga.sbcglobal.net) has joined #python 2021-05-17 15:42:02 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 265 seconds) 2021-05-17 15:42:08 --> parabolize (~paraboliz@98.43.173.221) has joined #python 2021-05-17 15:42:09 <-- PoaB (~Thunderbi@134.3.91.178) has quit (Quit: PoaB) 2021-05-17 15:43:11 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-17 15:43:46 --> Nightwing52 (~Thunderbi@67.7.15.187) has joined #python 2021-05-17 15:44:51 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 15:45:16 --> ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has joined #python 2021-05-17 15:45:43 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 15:46:08 --> Adbray (~Adbray@2600:6c48:6f7f:d764:5032:76b6:3a09:bf19) has joined #python 2021-05-17 15:46:25 <-- ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has quit (Quit: Leaving) 2021-05-17 15:47:19 <-- hypercube (~hypercube@2603-6011-f901-9e5b-78b5-8b2f-cdb2-4171.res6.spectrum.com) has quit (Ping timeout: 260 seconds) 2021-05-17 15:48:16 <-- fuze (uid76888@gateway/web/irccloud.com/x-ffhncybbdxbbfsxe) has quit (Quit: Connection closed for inactivity) 2021-05-17 15:48:26 <-- Barones (~Barones@2804:48dc:8500:0:3db6:6288:3cf9:e2c8) has quit (Remote host closed the connection) 2021-05-17 15:48:40 --> Barones (~Barones@2804:48dc:8500:0:8994:9d04:ff89:1f01) has joined #python 2021-05-17 15:50:12 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 15:50:20 <-- irc_user (uid423822@gateway/web/irccloud.com/x-cllxvzudxyxsbabc) has quit (Quit: Connection closed for inactivity) 2021-05-17 15:50:49 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-17 15:50:50 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-17 15:51:04 --> kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has joined #python 2021-05-17 15:52:47 --> frrs (uid130725@gateway/web/irccloud.com/x-mhjywjhlmpwpzsji) has joined #python 2021-05-17 15:54:53 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-17 15:54:56 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Quit: Leaving) 2021-05-17 15:55:28 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Read error: Connection reset by peer) 2021-05-17 15:55:58 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-17 15:56:15 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-17 15:56:37 --> pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-17 15:56:40 <-- netcrash (~charmande@43.135.54.77.rev.vodafone.pt) has quit (Quit: Lost terminal) 2021-05-17 15:56:41 --> wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has joined #python 2021-05-17 15:57:46 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 240 seconds) 2021-05-17 15:57:48 <-- Wafficus (~Wafficus@70.126.240.148) has quit (Quit: WeeChat 3.0.1) 2021-05-17 15:58:28 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 15:58:47 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-17 15:59:08 <-- refusenick (~user@2601:644:8502:d700::94c9) has quit (Read error: Connection reset by peer) 2021-05-17 15:59:30 <-- average (uid473595@gateway/web/irccloud.com/x-bwswiedoossincji) has quit (Quit: Connection closed for inactivity) 2021-05-17 16:00:12 --> BenjiProd (~BenjiProd@unaffiliated/benjiprod) has joined #python 2021-05-17 16:01:11 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-17 16:01:41 --> boB_K7IQ (~boB_K7IQ@152.44.147.180) has joined #python 2021-05-17 16:02:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 16:02:11 <-- tomg (tomg@64-7-151-80.border7-dynamic.dsl.sentex.ca) has quit (Read error: Connection reset by peer) 2021-05-17 16:02:35 --> tomg (tomg@64-7-151-80.border7-dynamic.dsl.sentex.ca) has joined #python 2021-05-17 16:05:53 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-17 16:07:45 --> yaalon (~yaalon@2600:1700:92b0:5f70:2d71:b677:82f8:b9d3) has joined #python 2021-05-17 16:08:45 <-- fizzizist (~Thunderbi@108.162.133.99) has quit (Quit: fizzizist) 2021-05-17 16:08:58 --> Muimi (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-17 16:10:16 <-- Rapture (~Rapture@71.236.251.149) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-17 16:11:25 --> mangold (~mangold@198.98.183.45) has joined #python 2021-05-17 16:11:51 --> Deesl (~bsdboy@redhat/deesl) has joined #python 2021-05-17 16:12:08 --> qj (~qj@unaffiliated/qj) has joined #python 2021-05-17 16:12:31 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Ping timeout: 260 seconds) 2021-05-17 16:12:44 <-- lethu (~lethu@unaffiliated/lethu) has quit (Quit: Quit()) 2021-05-17 16:15:01 <-- linux_dream (~isaac@unaffiliated/linux-dream/x-5839402) has quit (Quit: WeeChat 3.1) 2021-05-17 16:15:04 <-- Haxxa (~Haxxa@122-199-4-253.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-05-17 16:15:07 <-- shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has quit (Quit: Connection closed) 2021-05-17 16:15:48 <-- qj (~qj@unaffiliated/qj) has quit (Client Quit) 2021-05-17 16:17:28 <-- parapan (51c4809f@81.196.128.159) has quit (Quit: Connection closed) 2021-05-17 16:18:21 <-- yaalon (~yaalon@2600:1700:92b0:5f70:2d71:b677:82f8:b9d3) has quit (Remote host closed the connection) 2021-05-17 16:19:20 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-17 16:21:07 --> shellclear (~shellclea@static-43-40-86-188.ipcom.comunitel.net) has joined #python 2021-05-17 16:21:11 <-- mangold (~mangold@198.98.183.45) has quit (Ping timeout: 265 seconds) 2021-05-17 16:22:15 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-17 16:22:18 <-- wenijinew (~wenijinew@c83-248-21-105.bredband.tele2.se) has quit (Quit: WeeChat 2.8) 2021-05-17 16:23:37 <-- craigevil (craig@gateway/vpn/protonvpn/craigevil) has quit (Quit: leaving) 2021-05-17 16:24:18 <-- shellclear (~shellclea@static-43-40-86-188.ipcom.comunitel.net) has quit (Remote host closed the connection) 2021-05-17 16:24:20 <-- MikZyth (~MikZyth@188.65.242.190) has quit (Read error: Connection reset by peer) 2021-05-17 16:24:37 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-17 16:24:40 <-- spiri (~spiri@unaffiliated/spiri) has quit (Ping timeout: 268 seconds) 2021-05-17 16:24:47 --> MikZyth (~MikZyth@188.65.242.190) has joined #python 2021-05-17 16:25:32 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-17 16:25:54 <-- jamea (~jak2000@10.189-202-213.bestelclientes.com.mx) has quit (Ping timeout: 268 seconds) 2021-05-17 16:26:00 --> ganome (~quassel@c-67-190-91-230.hsd1.co.comcast.net) has joined #python 2021-05-17 16:26:11 <-- brainium (~brainium@unaffiliated/brainium) has quit (Ping timeout: 240 seconds) 2021-05-17 16:26:47 <-- gelignite (~gelignite@55d49364.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-17 16:27:26 <-- Barones (~Barones@2804:48dc:8500:0:8994:9d04:ff89:1f01) has quit (Remote host closed the connection) 2021-05-17 16:27:40 --> Barones (~Barones@2804:48dc:8500:0:1d59:be8b:43ae:9c42) has joined #python 2021-05-17 16:27:44 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Quit: Connection closed) 2021-05-17 16:28:28 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 16:29:33 <-- aslicedbanjo (~aslicedba@host86-150-115-118.range86-150.btcentralplus.com) has quit (Ping timeout: 240 seconds) 2021-05-17 16:29:38 <-- lakrass (~lakrass@5.18.84.94) has quit (Client Quit) 2021-05-17 16:29:49 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 16:30:51 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 265 seconds) 2021-05-17 16:31:17 <-- csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has quit (Quit: IRC for eric6 IDE) 2021-05-17 16:31:18 ganome I just joined an online "Instructor Led" python class; that no NO videos at all. Anyone know a good resource for some python3 tutorial videos? maybe even tkinter tutorials? 2021-05-17 16:31:38 <-- kloudi (~kloudi@46.165.228.68) has quit (Remote host closed the connection) 2021-05-17 16:31:59 --> Haxxa (~Haxxa@89nnjg0xckz9ggn6r5xm.ip6.superloop.com) has joined #python 2021-05-17 16:32:09 ganome Please PM me. as I have to leave to pick up my kids. Didn't realize the time 2021-05-17 16:32:19 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 16:32:37 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-17 16:32:57 SnoopJ ganome, https://pyvideo.org/ 2021-05-17 16:34:29 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-17 16:35:12 --> craigevil (craig@gateway/vpn/protonvpn/craigevil) has joined #python 2021-05-17 16:35:50 <-- xrogaan (~xrogaan@unaffiliated/xrogaan) has quit (Quit: Leaving) 2021-05-17 16:35:53 --> AppXprt (4addb5a9@gateway/web/cgi-irc/kiwiirc.com/ip.74.221.181.169) has joined #python 2021-05-17 16:36:39 AppXprt any estimate on when we'll start to see the performance increase associated with https://developers.slashdot.org/story/21/05/17/0225252/microsoft-funds-a-team-with-guido-van-rossum-to-double-the-speed-of-python 2021-05-17 16:36:56 <-- Barones (~Barones@2804:48dc:8500:0:1d59:be8b:43ae:9c42) has quit (Remote host closed the connection) 2021-05-17 16:37:10 --> Barones (~Barones@2804:48dc:8500:0:3100:1852:23b9:80b6) has joined #python 2021-05-17 16:37:26 <-- bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-17 16:37:36 _habnabit AppXprt, considering the long, _long_ history of similarly ambitious projects not panning out.. i wouldn't hold my breath 2021-05-17 16:38:33 --> krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has joined #python 2021-05-17 16:39:08 AppXprt Well, it looks like they're already working: https://github.com/faster-cpython/cpython 2021-05-17 16:39:18 AppXprt (on code) 2021-05-17 16:39:38 _habnabit AppXprt, should i cite all the other examples that were 'already working'? ;) 2021-05-17 16:39:46 _habnabit AppXprt, some are in the slashdot thread you linked 2021-05-17 16:40:00 <-- Jerrynicki (~niklas@p200300f577020000e9b697daa31f2299.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-17 16:40:17 <-- juuandyy (~juuandyy@90.106.228.121) has quit (Quit: Konversation terminated!) 2021-05-17 16:40:19 AppXprt Yea I've read about them, I was hoping this might be a little different since it has Python's creator and Microsoft involved and backing? 2021-05-17 16:40:49 * JamesB192 thinks they should not be working on sode yet. 2021-05-17 16:40:56 _habnabit AppXprt, what about unladen swallow, a project also led by top python contributors and involved google's backing? 2021-05-17 16:41:27 AppXprt top python contributors != python creator + Microsoft? 2021-05-17 16:41:54 _habnabit AppXprt, you forgot '+ google' 2021-05-17 16:41:57 bjs AppXprt: I mean Guido is just 1 person, and it's a big undertaking. It may happen, it might not eventually end up being successful 2021-05-17 16:41:59 AppXprt lol 2021-05-17 16:42:06 AppXprt Google is going downhill 2021-05-17 16:42:18 <-- PanamaBeach3003 (~felix@2604:a880:2:d0::493a:b001) has quit (Ping timeout: 258 seconds) 2021-05-17 16:42:29 _habnabit AppXprt, anyway, gvr has long acknowledged that he isn't exactly the pinnacle of programmers 2021-05-17 16:42:45 _habnabit AppXprt, i'm not expecting his name to mean anything 2021-05-17 16:42:53 <-- fflori (~fflori@mob-194-230-155-245.cgn.sunrise.net) has quit (Remote host closed the connection) 2021-05-17 16:43:13 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Remote host closed the connection) 2021-05-17 16:43:20 _habnabit (unladen swallow was google circa 2010 anyway) 2021-05-17 16:43:39 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-17 16:44:02 --> stdedos (5873eb99@gateway/web/cgi-irc/kiwiirc.com/ip.88.115.235.153) has joined #python 2021-05-17 16:44:12 bjs the same problems as then will exist now, they're not technical ones (since e.g. pypy showed you can overcome those) 2021-05-17 16:44:17 --> PanamaBeach3003 (~felix@2604:a880:2:d0::493a:b001) has joined #python 2021-05-17 16:44:28 --> kloudi (~kloudi@static.73.76.9.176.clients.your-server.de) has joined #python 2021-05-17 16:45:05 ELFrederich SnoopJ, hey, had to step away but I put something in repl.it... https://replit.com/@ericfrederich/cliexample#my_package/cli/foo.py 2021-05-17 16:45:06 --> yeticheese (~yetichees@91.196.220.166) has joined #python 2021-05-17 16:45:09 <-- SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-17 16:45:26 _habnabit pypy has wrung more performance out of python than anyone else by far 2021-05-17 16:45:31 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 250 seconds) 2021-05-17 16:45:45 <-- johnch (~CloudNine@195.213.86.91) has quit (Quit: Leaving) 2021-05-17 16:46:06 AppXprt yea I remember using it 2021-05-17 16:46:20 AppXprt I haven't had to do much with python in a few years, but I'm using Odoo now 2021-05-17 16:46:27 AppXprt OpenERP 2021-05-17 16:46:37 bjs AppXprt: "remember"? it's still alive and being updated and maintained with many users today 2021-05-17 16:46:39 ELFrederich SnoopJ, the idea is to separate the cli away from the functionality. So there is functionality.py with no knowledge of CLI stuff. The main cli entry point is in cli/main.py and each subcommand is in its own file. So in foo.py I have something (EnumChoice) which would be useful to other commands as well. So where should it go? 2021-05-17 16:46:52 bjs AppXprt: and that's the hard part, long-term maintenance and motivation 2021-05-17 16:46:56 <-- vali (~vali@unaffiliated/vali) has quit (Quit: Leaving) 2021-05-17 16:47:16 AppXprt yea it would help if open source was actually making money... 2021-05-17 16:47:25 SnoopJ for some value of "help," anyway 2021-05-17 16:47:37 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-17 16:47:53 * SnoopJ suspects this is a big contributor to the uniquness of the Python community 2021-05-17 16:49:05 AppXprt ELFrederich, I did something like that in: https://github.com/AppXprt/Advanced-Altcoin-Autotrader 2021-05-17 16:49:11 <-- MikZyth (~MikZyth@188.65.242.190) has quit (Ping timeout: 240 seconds) 2021-05-17 16:49:46 AppXprt there is some garbage in there, but mainly look at AutoTrader-Console -Service -Orders and func.py 2021-05-17 16:49:53 AppXprt That's old though, python 2.7 I think 2021-05-17 16:50:18 AppXprt It has separation and multi-threading even 2021-05-17 16:50:20 SnoopJ ELFrederich, I'd probably make a cli/common.py (or util or whatever name works) and stick EnumChoice there 2021-05-17 16:50:24 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 245 seconds) 2021-05-17 16:50:33 <-- enoq (~textual@194-208-146-143.lampert.tv) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-17 16:51:23 ELFrederich SnoopJ, then from foo.py I'd do from my_package.cli.common import EnumChoice ... that isn't a circular import? 2021-05-17 16:51:28 AppXprt IDK, the newer files might have been python 3 2021-05-17 16:51:41 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-17 16:51:50 SnoopJ ELFrederich, why would it be? EnumChoice doesn't depend on anything that needs importing except click.Choice and enum.EnumMeta 2021-05-17 16:51:55 ELFrederich let me try... I thought since __init__ imports from main and man imports from foo then anything I put under cli would be circular 2021-05-17 16:52:12 ELFrederich SnoopJ, because in __init__.py I have "from .main import cli_main" 2021-05-17 16:52:35 <-- Z750 (~Z750@lrrr.zachbr.io) has quit (Quit: Off to make tacos...) 2021-05-17 16:52:52 AppXprt Can anyone see what they think about this? https://github.com/AppXprt/Advanced-Altcoin-Autotrader/blob/master/AutoTrader-Service.py 2021-05-17 16:53:05 SnoopJ ELFrederich, I'm not really following your concern, here. What would be circular about `from .common import EnumChoice`? 2021-05-17 16:53:17 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-17 16:54:44 <-- Deesl (~bsdboy@redhat/deesl) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-17 16:55:34 <-- Polochon_street (~polochon@2001:41d0:a:64a5::1) has left #python 2021-05-17 16:55:40 ELFrederich SnoopJ, I thought that from .common would imply importing the __init__.py 2021-05-17 16:57:31 --> sasasara (~sara@2804:14d:ba86:80da:71ac:30ef:d1e0:8577) has joined #python 2021-05-17 16:57:34 --> Z750 (~Z750@lrrr.zachbr.io) has joined #python 2021-05-17 16:58:30 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 16:58:30 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-17 16:58:35 <-- carl-- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Ping timeout: 246 seconds) 2021-05-17 16:59:04 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-17 16:59:35 SnoopJ ELFrederich, I see what you mean, but there still isn't a circular dependency... 2021-05-17 16:59:44 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-17 16:59:56 <-- Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-17 17:00:07 nedbat AppXprt: fwiw, mark shannon is already making changes in CPython to improve the speed. I have no idea how significant they are 2021-05-17 17:00:24 --> Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has joined #python 2021-05-17 17:01:03 --> overyander (~overyande@216.163.21.11) has joined #python 2021-05-17 17:01:03 --> Abbott (~Abbott@unaffiliated/abbott) has joined #python 2021-05-17 17:01:46 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 17:02:16 SnoopJ ELFrederich, I think you're right about the import, FWIW, but since it's already been imported that should be a no-op as I understand it. 2021-05-17 17:02:18 AppXprt Cool, I'll have to check it out soon 2021-05-17 17:03:39 <-- kosh (~kosh@p200300d08f0e9f00a048f73090040474.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-17 17:03:39 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-17 17:04:35 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-17 17:04:58 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 17:05:49 <-- gothicserpent (~gothicser@static-198-54-129-84.cust.tzulo.com) has quit (Ping timeout: 245 seconds) 2021-05-17 17:06:04 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-17 17:06:11 <-- zaki (~zaki@2601:403:4280:3a60::bc69) has quit (Ping timeout: 260 seconds) 2021-05-17 17:07:34 <-- BenjiProd (~BenjiProd@unaffiliated/benjiprod) has quit (Remote host closed the connection) 2021-05-17 17:08:33 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 260 seconds) 2021-05-17 17:08:53 --> sartan (~sartan@unaffiliated/sartan) has joined #python 2021-05-17 17:10:10 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-17 17:10:16 <-- F-i-G (~blargh@76-198-158-124.lightspeed.tukrga.sbcglobal.net) has quit (Quit: Leaving.) 2021-05-17 17:10:52 --> shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has joined #python 2021-05-17 17:12:09 SnoopJ Pyjion (JIT for CPython bytecode) has also been restarted and the results so far seem promising 2021-05-17 17:13:52 <-- Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has quit (Ping timeout: 265 seconds) 2021-05-17 17:14:07 <-- yeticheese (~yetichees@91.196.220.166) has quit (Ping timeout: 252 seconds) 2021-05-17 17:16:41 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-17 17:17:29 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 245 seconds) 2021-05-17 17:18:12 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 240 seconds) 2021-05-17 17:18:22 --> zaki (~zaki@2601:403:4280:3a60::bc69) has joined #python 2021-05-17 17:19:50 <-- Vornicus (~Vornicus@2603-8000-5d07-7ef0-ad4d-036f-cacb-93dc.res6.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-17 17:20:21 <-- craigevil (craig@gateway/vpn/protonvpn/craigevil) has quit (Quit: leaving) 2021-05-17 17:20:22 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 17:20:35 <-- stdedos (5873eb99@gateway/web/cgi-irc/kiwiirc.com/ip.88.115.235.153) has quit (Quit: Connection closed) 2021-05-17 17:20:50 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 17:20:57 --> jetchisel (~jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-17 17:21:30 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-17 17:21:35 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 260 seconds) 2021-05-17 17:25:20 <-- BTRE (~BTRE@unaffiliated/btre) has quit (Quit: Leaving) 2021-05-17 17:25:46 --> thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has joined #python 2021-05-17 17:28:33 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 17:28:48 <-- thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has quit (Max SendQ exceeded) 2021-05-17 17:29:07 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Quit: Leaving) 2021-05-17 17:29:16 --> thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has joined #python 2021-05-17 17:29:58 <-- manti7 (~manti7@176.10.104.94) has quit (Quit: WeeChat 3.1) 2021-05-17 17:30:56 _habnabit AppXprt, that's a lot of commented out code you've got there 2021-05-17 17:31:01 <-- ffe4 (~ffe4@200116b82cf6c1006837f091c46bebe9.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-17 17:31:42 --> jellyfish (~jellyfish@unaffiliated/jellyfish) has joined #python 2021-05-17 17:32:01 <-- powerhouse (~powerhous@S0106383fb3e542f6.vc.shawcable.net) has quit (Quit: Leaving) 2021-05-17 17:32:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 17:32:45 <-- amahl (~amahl@dxv5skyd2s8j3yvv5jnly-3.rev.dnainternet.fi) has quit (Ping timeout: 250 seconds) 2021-05-17 17:33:09 amogorkon SnoopJ, numpy has its own exceptions, apparently. np.seterr(all="raise") this works :) 2021-05-17 17:33:21 nedbat AppXprt: you know you don't need parens around the condition in an if statement? 2021-05-17 17:33:46 --> Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has joined #python 2021-05-17 17:35:09 <-- ikus060 (~ikus060@173-246-15-25.qc.cable.ebox.net) has quit (Quit: Leaving) 2021-05-17 17:35:21 <-- jetchisel (~jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 250 seconds) 2021-05-17 17:35:32 <-- SteveG (~steveg@pdpc/supporter/21for7/steveg) has quit (Quit: "Jayne, your mouth is talking. You might wanna look to that.") 2021-05-17 17:35:41 <-- lejocelyn (~lejocelyn@ip5f5bd552.dynamic.kabel-deutschland.de) has quit (Ping timeout: 240 seconds) 2021-05-17 17:35:55 --> SteveG (~steveg@pdpc/supporter/21for7/steveg) has joined #python 2021-05-17 17:35:58 --> fcjsx (~fcjsx_@2800:a4:833:4600:9b0a:12c1:b797:4377) has joined #python 2021-05-17 17:36:40 <-- fcjsx (~fcjsx_@2800:a4:833:4600:9b0a:12c1:b797:4377) has quit (Client Quit) 2021-05-17 17:37:12 --> lejocelyn (~lejocelyn@2a02:8109:8880:10ec::ec60) has joined #python 2021-05-17 17:37:13 <-- sasasara (~sara@2804:14d:ba86:80da:71ac:30ef:d1e0:8577) has quit (Quit: Leaving) 2021-05-17 17:37:25 --> mike18 (~geri@71-220-52-187.mpls.qwest.net) has joined #python 2021-05-17 17:37:29 mike18 hi whats the right way to install depenendies for a python app? i currently have a requirements.txt (which i run in my docker) file - is that the right way? 2021-05-17 17:38:20 _habnabit mike18, requirements.txt is just a file. the thing you use for the installation is pip 2021-05-17 17:38:32 SnoopJ amogorkon, it raises warnings, yes 2021-05-17 17:38:40 mike18 _habnabit: but is that the right way? 2021-05-17 17:38:48 _habnabit mike18, sure 2021-05-17 17:38:52 <-- devslash (~devslash@unaffiliated/devslash) has left #python ("Leaving") 2021-05-17 17:39:48 <-- palasso (~palasso@unaffiliated/palasso) has quit (Quit: I am not a quitter!) 2021-05-17 17:39:56 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-17 17:39:58 <-- Barones (~Barones@2804:48dc:8500:0:3100:1852:23b9:80b6) has quit (Quit: Leaving) 2021-05-17 17:40:15 --> pedahzur (~jkugler@216-67-98-32.static.acsalaska.net) has joined #python 2021-05-17 17:40:41 --> LiteWait (620ff509@cpe-98-15-245-9.hvc.res.rr.com) has joined #python 2021-05-17 17:40:46 _habnabit mike18, here's how i've done it before https://github.com/pound-python/infobob/blob/master/Dockerfile 2021-05-17 17:41:05 <-- CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has quit (Quit: Leaving) 2021-05-17 17:41:09 --> MikZyth (~MikZyth@188.65.242.190) has joined #python 2021-05-17 17:41:33 --> bonhoeffer (~tim@159.63.128.50) has joined #python 2021-05-17 17:42:01 bonhoeffer hey, curious what folks use for test driven development and python? 2021-05-17 17:43:35 mike18 _habnabit: what about using FROM python:3.9.5 instead? 2021-05-17 17:43:35 SnoopJ bonhoeffer, pytest works well for testing in general 2021-05-17 17:43:44 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 17:43:48 bonhoeffer SnoopJ, thanks 2021-05-17 17:44:02 SnoopJ bonhoeffer, https://nedbatchelder.com/text/test3.html 2021-05-17 17:44:13 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 17:44:38 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-17 17:44:42 _habnabit mike18, what about it? do you need python 3.9? i always use pypy 2021-05-17 17:45:00 mike18 why pypy? 2021-05-17 17:45:21 mike18 i mean i decided to use the latest python.... 2021-05-17 17:45:39 amogorkon SnoopJ, i had to dig deeper on warnings because when i used the warnings module, interacting with a numpy array basically froze the kernel 2021-05-17 17:45:43 --> mangold (~mangold@198.98.183.54) has joined #python 2021-05-17 17:46:12 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-17 17:46:20 amogorkon so, np.seterr really is the only viable way for this 2021-05-17 17:47:39 <-- computeiro (~Wender@189.37.66.52) has quit (Quit: Leaving) 2021-05-17 17:47:49 --> pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-17 17:47:58 SnoopJ amogorkon, would be curious to see the code that freezes, that sounds very strange 2021-05-17 17:48:11 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 260 seconds) 2021-05-17 17:48:23 _habnabit mike18, pypy's great! they have a lot of great ideas and it's way faster 2021-05-17 17:48:28 _habnabit mike18, no reason not to default to it imo 2021-05-17 17:48:42 amogorkon SnoopJ, one sec 2021-05-17 17:48:43 SnoopJ (unless you want the latest release, which it tends to trail) 2021-05-17 17:48:46 mike18 _habnabit: what about the setup.py file? 2021-05-17 17:48:46 <-- MikZyth (~MikZyth@188.65.242.190) has quit (Ping timeout: 252 seconds) 2021-05-17 17:48:54 mike18 how did you create it? 2021-05-17 17:49:29 --> padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has joined #python 2021-05-17 17:49:38 IHasFinger hi guys, I was wondering if they is a python method which I can use the change all the unix timestamp in data_feed_list to utc datetime YYYY-MM-DD HH:MM:SS before i then create the dataFrame in line 21 2021-05-17 17:50:15 SnoopJ line? 2021-05-17 17:51:16 <-- acresearch (~acresearc@unaffiliated/acresearch) has quit (Quit: WeeChat 2.8) 2021-05-17 17:51:31 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-17 17:52:23 --> contingo (~textual@213.205.200.36) has joined #python 2021-05-17 17:55:07 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-17 17:55:19 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 268 seconds) 2021-05-17 17:56:01 <-- padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has quit (Quit: Leaving.) 2021-05-17 17:56:19 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Quit: Anas__G) 2021-05-17 17:56:39 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-17 17:56:46 --> Masterphi (~Masterphi@unaffiliated/masterphi) has joined #python 2021-05-17 17:57:01 --> BTRE (~BTRE@unaffiliated/btre) has joined #python 2021-05-17 17:57:41 amogorkon SnoopJ, https://bpa.st/GBZQ but it already hangs on a slice of len 1, so it has nothing to do with the actual data 2021-05-17 17:57:41 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 17:58:36 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 17:59:05 --> is006 (~is006@86.57.103.23) has joined #python 2021-05-17 17:59:23 SnoopJ give me a second to make this runnable 2021-05-17 18:00:28 <-- brainium (~brainium@unaffiliated/brainium) has quit (Quit: Konversation terminated!) 2021-05-17 18:00:35 ELFrederich I have a poetry project. Any examples/guides on how to create a Docker image to run the application in? 2021-05-17 18:00:41 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Ping timeout: 240 seconds) 2021-05-17 18:00:44 <-- EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has quit (Remote host closed the connection) 2021-05-17 18:00:45 SnoopJ amogorkon, doesn't seem to hang for me if I replace that hdf5 business with `dset = np.random.random(size=(256, 256, 3))` 2021-05-17 18:00:59 SnoopJ (numpy 1.20.2) 2021-05-17 18:01:11 --> EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has joined #python 2021-05-17 18:01:20 amogorkon 1.19.2 for me, hmm 2021-05-17 18:01:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 18:01:36 amogorkon i'll try with your array 2021-05-17 18:02:21 --> yeticheese (~yetichees@193.160.245.148) has joined #python 2021-05-17 18:03:17 amogorkon it hangs for me on your dset, too :/ 2021-05-17 18:03:29 amogorkon very strange 2021-05-17 18:03:44 SnoopJ not necessarily, 1.20 changed some stuff wrt warnings 2021-05-17 18:03:47 --> catbeard (~boop@gateway/tor-sasl/walp) has joined #python 2021-05-17 18:03:53 amogorkon okay, might explain it 2021-05-17 18:04:07 IHasFinger SnoopJ, lol sorry here is the link https://bpa.st/P2FA 2021-05-17 18:04:08 SnoopJ it might, trying with 1.19.2 now 2021-05-17 18:04:33 yeticheese wondering if anyone has significant experience with "orjson" and how it's performance compares to "ujson" in a real production environment. They claim a bunch of benchmarks show that it's approx 2x faster than ujson, but benchmarks can be lies at times 2021-05-17 18:04:51 <-- blip- (~blip-@unaffiliated/blip-) has quit (Ping timeout: 260 seconds) 2021-05-17 18:06:12 SnoopJ amogorkon, nope 2021-05-17 18:06:30 amogorkon SnoopJ, can you try in a jupyter lab? 2021-05-17 18:06:44 SnoopJ I can try in IPython, which should be ~ the same thing 2021-05-17 18:07:00 <-- LiteWait (620ff509@cpe-98-15-245-9.hvc.res.rr.com) has quit (Quit: Connection closed) 2021-05-17 18:07:10 amogorkon it's the only remaining difference i could think of 2021-05-17 18:07:14 SnoopJ seems fine 2021-05-17 18:07:21 amogorkon :| 2021-05-17 18:07:33 amogorkon strange? ^^ 2021-05-17 18:07:49 SnoopJ strange indeed 2021-05-17 18:07:58 deltab IHasFinger: 12 columns in the data, 6 names? 2021-05-17 18:08:19 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-17 18:08:23 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-17 18:08:44 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-17 18:09:20 <-- overyander (~overyande@216.163.21.11) has quit (Quit: Leaving) 2021-05-17 18:09:23 <-- xsx (~x@unaffiliated/bxsx) has quit (Quit: leaving) 2021-05-17 18:09:30 <-- mangold (~mangold@198.98.183.54) has quit (Ping timeout: 268 seconds) 2021-05-17 18:10:55 IHasFinger i dont care about the others 2021-05-17 18:11:11 IHasFinger only the first 6 2021-05-17 18:11:46 --> hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has joined #python 2021-05-17 18:14:01 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-17 18:14:05 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 18:14:11 <-- chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-17 18:14:47 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-17 18:14:53 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Remote host closed the connection) 2021-05-17 18:15:51 _habnabit mike18, setup.py has been superseded. the new thing is setup.cfg and there's docs for it 2021-05-17 18:16:06 mike18 meaning not supported by python itself? 2021-05-17 18:16:22 <-- r3m (~launch@unaffiliated/r3m) has quit (Quit: WeeChat 3.2-dev) 2021-05-17 18:16:45 mike18 what is that cfg thing? 2021-05-17 18:16:57 <-- zro (~zro@wikimedia/zro) has quit (Quit: WeeChat 3.1) 2021-05-17 18:17:03 _habnabit mike18, 'superseded' means "there's something better now" 2021-05-17 18:17:09 mike18 oh nice 2021-05-17 18:17:14 mike18 love better things 2021-05-17 18:17:15 --> r3m (~launch@unaffiliated/r3m) has joined #python 2021-05-17 18:17:17 _habnabit mike18, https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html 2021-05-17 18:17:20 --> bxsx (~x@unaffiliated/bxsx) has joined #python 2021-05-17 18:17:35 IHasFinger Hello everyone, I was wondering if they is a python method which I can use the change all the unix timestamp in data_feed_list to utc datetime YYYY-MM-DD HH:MM:SS before i then create the dataFrame in line 21 https://bpa.st/P2FA 2021-05-17 18:17:48 mike18 _habnabit: will i need to type that conf myself? 2021-05-17 18:17:54 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 18:17:56 SnoopJ https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html 2021-05-17 18:18:05 IHasFinger is it a case that i have to do a for loop? 2021-05-17 18:18:06 _habnabit mike18, you can copy-paste it 2021-05-17 18:18:12 bxsx from the Python docs: class AustralianPhilosopher(Philosopher, default_name="Bruce") -- how to pass arguments to class definitions similar to `default_name`? 2021-05-17 18:18:14 mike18 from where? 2021-05-17 18:18:26 <-- quitman (~quitman@h46-236-86-33.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-05-17 18:18:31 _habnabit mike18, from.. the page i linked? 2021-05-17 18:18:38 <-- bonhoeffer (~tim@159.63.128.50) has quit (Ping timeout: 265 seconds) 2021-05-17 18:19:15 SnoopJ bxsx, pass from where? Are you dynamically creating classes? 2021-05-17 18:19:30 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-17 18:19:51 bxsx SnoopJ: i'm trying to find information what is it actually, i bet something related to metaclass? 2021-05-17 18:19:55 <-- JamesB192 (~quassel@67-61-67-61-201-106.cpe.sparklight.net) has left #python ("http://quassel-irc.org - Chat comfortably. Anywhere.") 2021-05-17 18:19:56 --> quitman (~quitman@194.34.134.146) has joined #python 2021-05-17 18:20:02 _habnabit bxsx, yes, it's a new metaclass "feature" 2021-05-17 18:20:22 _habnabit bxsx, i've never seen anyone use it except for the `metaclass=` bit 2021-05-17 18:21:01 bxsx _habnabit: by any chance do you remember PEP that introduced it? 2021-05-17 18:21:13 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 18:21:21 _habnabit bxsx, whatever added __prepare__ 2021-05-17 18:22:19 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: hasta la vista, baby) 2021-05-17 18:22:19 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 252 seconds) 2021-05-17 18:22:56 bxsx _habnabit: 3115, perfect. thanks for the help. 2021-05-17 18:23:49 amogorkon SnoopJ, it seems my overflow error was due to fact that i was working with an array of int32 and it was expecting float :p 2021-05-17 18:24:00 amogorkon oh well. 2021-05-17 18:24:17 amogorkon doesn't explain the problems with warnings, but fixes my problem 2021-05-17 18:24:18 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-17 18:24:27 deltab IHasFinger: anyway, datetime.datetime.utcfromtimestamp(t) 2021-05-17 18:25:00 deltab IHasFinger: or datetime.datetime.fromtimestamp(t) 2021-05-17 18:25:03 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 260 seconds) 2021-05-17 18:25:06 <-- DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has quit (Quit: DeadTOm) 2021-05-17 18:25:19 deltab and you can use .replace(tzinfo=datetime.timezone.utc) to tell it the timezone 2021-05-17 18:25:21 IHasFinger https://bpa.st/FLBA deltab deltab am guessing the only option is to loop it? 2021-05-17 18:25:33 <-- esselfe (~steph@unaffiliated/esselfe) has quit (Quit: Going home) 2021-05-17 18:25:53 IHasFinger i was checking if they is a way to do it without looping, maybe pandas had a method or something for it 2021-05-17 18:26:14 deltab probably 2021-05-17 18:26:34 IHasFinger but seems like i need to loop data_feed_list change the unix timestamp and then append it to a new list 2021-05-17 18:27:23 SnoopJ amogorkon, yea the hanging behavior is the part I find curious, but maybe it's doing some expensive computation on your real data 2021-05-17 18:27:34 <-- Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-17 18:27:35 SnoopJ I can't imagine why just changing warnings behavior would change any of that though 2021-05-17 18:27:39 deltab seems it also has a DatetimeArray 2021-05-17 18:28:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 18:28:44 deltab oh, experimental 2021-05-17 18:30:28 <-- Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has quit (Ping timeout: 268 seconds) 2021-05-17 18:30:32 <-- is006 (~is006@86.57.103.23) has quit (Ping timeout: 252 seconds) 2021-05-17 18:31:12 amogorkon okay, now it gets plain weird 2021-05-17 18:31:35 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has quit (Ping timeout: 260 seconds) 2021-05-17 18:31:44 amogorkon after i normalized my data i tried to plot an fft over them 2021-05-17 18:31:55 amogorkon semilogy(np.fft.fft(test)) 2021-05-17 18:32:03 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 18:32:05 amogorkon gives me a OverflowError: Exceeded cell block limit (set 'agg.path.chunksize' rcparam) 2021-05-17 18:32:12 --> Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has joined #python 2021-05-17 18:32:24 <-- tocka (uid198544@gateway/web/irccloud.com/x-sttxrvhzalyxgfly) has quit (Quit: Connection closed for inactivity) 2021-05-17 18:32:28 amogorkon which doesn't occur on an fft of the original data 2021-05-17 18:32:33 --> tsaka__ (~torstein@178-147-206-209.haap.dm.cosmote.net) has joined #python 2021-05-17 18:32:59 <-- todda7 (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) has quit (Ping timeout: 260 seconds) 2021-05-17 18:33:15 deltab IHasFinger: dataFrame['datetime'] = [datetime.datetime.fromtimestamp(t/1000) for t in dataFrame['datetime']] 2021-05-17 18:33:31 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.1) 2021-05-17 18:36:37 <-- bazul (bazul@38.189.189.46.rev.vodafone.pt) has quit (Remote host closed the connection) 2021-05-17 18:37:13 <-- quitman (~quitman@194.34.134.146) has quit (Ping timeout: 260 seconds) 2021-05-17 18:38:24 --> quitman (~quitman@37.120.206.164) has joined #python 2021-05-17 18:40:31 --> botnet (quassel@gateway/vpn/protonvpn/botnet) has joined #python 2021-05-17 18:40:32 --> Thanattt (~Thanatos@197.210.28.180) has joined #python 2021-05-17 18:40:50 <-- botnet (quassel@gateway/vpn/protonvpn/botnet) has quit (Read error: Connection reset by peer) 2021-05-17 18:40:51 <-- jellyfish (~jellyfish@unaffiliated/jellyfish) has quit (Quit: jellyfish) 2021-05-17 18:41:06 --> botnet (quassel@gateway/vpn/protonvpn/botnet) has joined #python 2021-05-17 18:42:07 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 252 seconds) 2021-05-17 18:43:56 <-- ThanatosJ (~Thanatos@102.89.0.158) has quit (Ping timeout: 260 seconds) 2021-05-17 18:44:53 <-- stealth_ (~stealth_@216-197-160-97.regn.static.sasknet.sk.ca) has quit (Quit: Leaving) 2021-05-17 18:45:14 --> craigevil (craig@gateway/vpn/protonvpn/craigevil) has joined #python 2021-05-17 18:47:29 <-- Thanattt (~Thanatos@197.210.28.180) has quit (Quit: Leaving) 2021-05-17 18:47:57 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-17 18:49:15 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-17 18:50:10 --> Tennis (~Tennis@unaffiliated/tennis) has joined #python 2021-05-17 18:50:40 <-- yeticheese (~yetichees@193.160.245.148) has quit 2021-05-17 18:51:04 --> freebench__ (~freebench@92.253.251.226) has joined #python 2021-05-17 18:51:06 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 18:51:55 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-17 18:52:17 --> sec0nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-17 18:52:35 <-- vnz (~vnz@unaffiliated/vnz) has quit (Write error: Connection reset by peer) 2021-05-17 18:53:20 <-- stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-17 18:53:38 <-- fb_ (~freebench@92.253.251.226) has quit (Ping timeout: 252 seconds) 2021-05-17 18:54:04 --> MikZyth (~MikZyth@188.65.242.190) has joined #python 2021-05-17 18:54:15 IHasFinger deltab, thank you 2021-05-17 18:54:24 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-17 18:54:42 IHasFinger anyone use backtrader library before and encounter this error to_pydatetime 2021-05-17 18:54:47 IHasFinger AttributeError: 'int' object has no attribute 'to_pydatetime' 2021-05-17 18:55:11 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-17 18:55:33 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Ping timeout: 240 seconds) 2021-05-17 18:55:34 -- sec0nd is now known as sec^nd 2021-05-17 18:55:46 deltab IHasFinger: how are you calling it? 2021-05-17 18:55:46 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 18:56:19 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 18:56:38 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-17 18:56:49 <-- drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Ping timeout: 265 seconds) 2021-05-17 18:58:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 18:58:43 --> korg815 (~korg815@unaffiliated/korg815) has joined #python 2021-05-17 18:59:05 johnjay question. what's the most convenient way to use python on the command line to process stdin and/or options? getopt? sys.argv? 2021-05-17 18:59:06 <-- Nightwing52 (~Thunderbi@67.7.15.187) has quit (Quit: Later!) 2021-05-17 18:59:13 IHasFinger deltab, https://bpa.st/4JVQ error happens when i called cerebro.run() 2021-05-17 18:59:14 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 265 seconds) 2021-05-17 18:59:33 johnjay for example say i have a string "12.34" in bash and i want to round it without using printf, how would I pipe that into python and then perform int() on it? 2021-05-17 19:00:33 deltab IHasFinger: how does it fail? 2021-05-17 19:01:22 deltab johnjay: you could pass it in as stdin, as an argument, or in an environment variable 2021-05-17 19:01:22 nedbat johnjay: there are lots of ways of getting command-line arguments, starting with sys.argv 2021-05-17 19:01:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 19:02:02 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Quit: Leaving) 2021-05-17 19:02:31 SnoopJ note: int() on that string is a ValueError, because that string isn't an integer literal 2021-05-17 19:03:02 johnjay google is telling me i need to call read on sys.stdin? 2021-05-17 19:03:06 <-- wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has quit (Ping timeout: 240 seconds) 2021-05-17 19:03:08 deltab sys.stdin.read(), sys.argv[1], or os.environ(['NUMBER'] 2021-05-17 19:03:18 IHasFinger deltab, this is the error https://bpa.st/72NA and line 268 it is referencing to is this https://github.com/mementum/backtrader/blob/master/backtrader/feeds/pandafeed.py#L268 2021-05-17 19:03:18 <-- tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has quit (Read error: Connection reset by peer) 2021-05-17 19:03:32 johnjay ok thanks i'll have a look at os and sys then 2021-05-17 19:04:05 --> tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has joined #python 2021-05-17 19:04:33 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-17 19:04:53 SnoopJ you can read from stdin, although I agree with the sys.argv suggestion: I'd much rather pass that string as an argument than send it on stdin 2021-05-17 19:06:03 <-- securethemews (~securethe@2a00:23c4:1e98:8f00::4) has quit (Quit: Leaving) 2021-05-17 19:06:06 <-- Asmodean (~Asmoedean@77.119.129.93.wireless.dyn.drei.com) has quit (Ping timeout: 260 seconds) 2021-05-17 19:07:10 IHasFinger deltab, https://github.com/mementum/backtrader/blob/master/backtrader/feeds/pandafeed.py#L107 I am not very advance in python yet still a newbie but https://bpa.st/4JVQ#1L8 the datetime should get picked up right? have a feeling it not 2021-05-17 19:07:27 <-- net| (~net|@unaffiliated/unit41) has quit (Ping timeout: 265 seconds) 2021-05-17 19:07:29 <-- markb1 (~mbiggers@2603-6080-6009-9ec0-4c70-0a02-e847-5794.res6.spectrum.com) has quit (Ping timeout: 245 seconds) 2021-05-17 19:07:38 --> Asmodean (~Asmoedean@178.115.129.41.wireless.dyn.drei.com) has joined #python 2021-05-17 19:07:50 --> Atque (~Atque_@unaffiliated/atque) has joined #python 2021-05-17 19:08:05 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-17 19:08:20 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-17 19:08:54 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-17 19:08:58 _habnabit johnjay, click is the best say i've seen. you write your functions like normal and it calls them from command line options: https://click.palletsprojects.com/ 2021-05-17 19:09:14 SnoopJ click +1 2021-05-17 19:09:37 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 252 seconds) 2021-05-17 19:09:41 <-- FastJack (~fastjack@b2b-78-94-22-14.unitymedia.biz) has quit (Ping timeout: 240 seconds) 2021-05-17 19:10:02 <-- botnet (quassel@gateway/vpn/protonvpn/botnet) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-17 19:10:46 --> sec0nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-17 19:10:53 <-- boB_K7IQ (~boB_K7IQ@152.44.147.180) has quit (Ping timeout: 246 seconds) 2021-05-17 19:12:39 <-- st8less (~st8less@2603:a060:11fd:0:475f:7ec2:20c6:ac2c) has quit (Ping timeout: 260 seconds) 2021-05-17 19:13:09 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-17 19:13:44 bxsx since when it's possible to declare funcs with only keyworded args? i mean def f(a, *, b) 2021-05-17 19:13:59 _habnabit bxsx, 3.0, i think 2021-05-17 19:13:59 bxsx nevermind 2021-05-17 19:14:18 SnoopJ bxsx, https://www.python.org/dev/peps/pep-3102/ 2021-05-17 19:14:21 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Ping timeout: 240 seconds) 2021-05-17 19:14:21 -- sec0nd is now known as sec^nd 2021-05-17 19:14:22 --> st8less (~st8less@inet-167-224-197-181.isp.ozarksgo.net) has joined #python 2021-05-17 19:14:34 bxsx yeah yeah, found it, thanks 2021-05-17 19:15:35 deltab IHasFinger: df['timestamp'] = [datetime.datetime.fromtimestamp(t/1000).replace(tzinfo=datetime.timezone.utc) for t in df['datetime']] 2021-05-17 19:15:44 deltab er 2021-05-17 19:15:53 --> doug_m (~doug_m@2601:446:c301:9160:20e5:7de1:d874:a965) has joined #python 2021-05-17 19:15:59 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-17 19:16:02 deltab IHasFinger: dataFrame['datetime'] = [datetime.datetime.fromtimestamp(t/1000).replace(tzinfo=datetime.timezone.utc) for t in dataFrame['datetime']] 2021-05-17 19:16:38 <-- YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has quit (Ping timeout: 265 seconds) 2021-05-17 19:17:07 <-- ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has quit (Ping timeout: 265 seconds) 2021-05-17 19:17:17 --> sec0nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-17 19:20:04 <-- dntreou (~yakiza@vpn1.datalogix.com) has quit (Ping timeout: 252 seconds) 2021-05-17 19:20:09 --> markb1 (~mbiggers@2603-6080-6009-9ec0-b86f-ed5e-b088-30a5.res6.spectrum.com) has joined #python 2021-05-17 19:20:16 <-- noboruma (~noboruma@host-92-12-47-208.as13285.net) has quit (Remote host closed the connection) 2021-05-17 19:20:35 <-- SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has quit (Remote host closed the connection) 2021-05-17 19:20:41 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 240 seconds) 2021-05-17 19:20:45 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Ping timeout: 240 seconds) 2021-05-17 19:20:45 -- sec0nd is now known as sec^nd 2021-05-17 19:20:46 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-17 19:22:22 --> dntreou (~yakiza@2a02:587:d87f:ccee:2cbb:b7a5:1e66:162f) has joined #python 2021-05-17 19:22:35 <-- doug_m (~doug_m@2601:446:c301:9160:20e5:7de1:d874:a965) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-17 19:23:11 IHasFinger deltab, i think it doesnt like the column name has int according to this https://bpa.st/QAWQ line 3-6 2021-05-17 19:23:52 --> philr (~phil@118.211.93.148) has joined #python 2021-05-17 19:25:39 <-- stryek (uid332574@gateway/web/irccloud.com/x-rfgnkguobjndchtw) has quit (Quit: Connection closed for inactivity) 2021-05-17 19:25:39 --> SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has joined #python 2021-05-17 19:25:48 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 19:26:37 --> Wulf4 (~Wulf@unaffiliated/wulf) has joined #python 2021-05-17 19:26:42 --> FastJack (~fastjack@b2b-78-94-22-14.unitymedia.biz) has joined #python 2021-05-17 19:27:46 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Ping timeout: 252 seconds) 2021-05-17 19:28:40 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-17 19:28:40 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 19:29:12 IHasFinger am off everyone good night 2021-05-17 19:29:14 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Quit: Ping timeout: 252 seconds) 2021-05-17 19:29:18 --> net| (~net|@unaffiliated/unit41) has joined #python 2021-05-17 19:29:21 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Read error: Connection reset by peer) 2021-05-17 19:29:56 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 252 seconds) 2021-05-17 19:29:57 -- Wulf4 is now known as Wulf 2021-05-17 19:30:22 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-17 19:30:29 <-- quitman (~quitman@37.120.206.164) has quit (Ping timeout: 246 seconds) 2021-05-17 19:31:04 <-- Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) has quit (Ping timeout: 252 seconds) 2021-05-17 19:31:12 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-17 19:31:44 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-17 19:31:50 --> quitman (~quitman@37.120.206.166) has joined #python 2021-05-17 19:32:12 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 19:32:25 --> a6a45081-2b83 (~aditya@171.76.17.86) has joined #python 2021-05-17 19:32:25 <-- a6a45081-2b83 (~aditya@171.76.17.86) has quit (Client Quit) 2021-05-17 19:33:23 <-- tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has quit (Quit: Leaving) 2021-05-17 19:34:14 --> Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) has joined #python 2021-05-17 19:34:36 <-- imp (~imp@186.205.11.214) has quit (Quit: imp) 2021-05-17 19:35:35 <-- MikZyth (~MikZyth@188.65.242.190) has quit (Quit: WeeChat 3.1) 2021-05-17 19:36:02 --> leduyquang753 (~leduyquan@27.73.107.184) has joined #python 2021-05-17 19:36:37 <-- jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has quit (Quit: WeeChat 3.1) 2021-05-17 19:37:23 <-- sauvin (sauvin@about/linux/staff/sauvin) has quit (Read error: Connection reset by peer) 2021-05-17 19:37:45 --> sauvin (sauvin@about/linux/staff/sauvin) has joined #python 2021-05-17 19:38:13 --> perrier-jouet (~perrier-j@modemcable012.251-130-66.mc.videotron.ca) has joined #python 2021-05-17 19:40:13 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-17 19:43:45 --> bigRoo (~user@131.236.54.244) has joined #python 2021-05-17 19:44:10 --> argento (~argent0@168.227.97.34) has joined #python 2021-05-17 19:45:52 --> yeticheese (~yetichees@193.160.245.5) has joined #python 2021-05-17 19:46:15 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-17 19:46:48 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Quit: real life interrupt) 2021-05-17 19:48:44 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-17 19:49:06 <-- Tennis (~Tennis@unaffiliated/tennis) has quit (Read error: Connection reset by peer) 2021-05-17 19:50:19 <-- finkata1 (~finkata@83.222.188.39) has quit (Ping timeout: 252 seconds) 2021-05-17 19:52:41 <-- cthu| (~cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-17 19:53:26 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-17 19:56:33 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Quit: WeeChat 3.1) 2021-05-17 19:58:32 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 19:59:53 <-- srhm (~ascii@107-179-188-91.cpe.teksavvy.com) has quit (Quit: Konversation terminated!) 2021-05-17 20:01:55 <-- Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has quit (Read error: Connection reset by peer) 2021-05-17 20:02:14 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 20:03:10 <-- dstufft (~dstufft@python/psf/dstufft) has quit (Quit: ZNC - http://znc.in) 2021-05-17 20:04:59 --> esselfe (~steph@unaffiliated/esselfe) has joined #python 2021-05-17 20:05:12 --> dstufft (~dstufft@python/psf/dstufft) has joined #python 2021-05-17 20:05:40 --> Jacktar_ (~whiteshad@gateway/tor-sasl/whiteshadow) has joined #python 2021-05-17 20:08:18 --> henri (~henri@191.35.140.144) has joined #python 2021-05-17 20:08:45 <-- whiteshadow (~whiteshad@gateway/tor-sasl/whiteshadow) has quit (Ping timeout: 240 seconds) 2021-05-17 20:08:46 -- Jacktar_ is now known as whiteshadow 2021-05-17 20:10:42 --> bionode (~user@gateway/tor-sasl/bionode) has joined #python 2021-05-17 20:11:19 <-- Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has quit (Quit: WeeChat 3.1) 2021-05-17 20:13:27 <-- shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has quit (Quit: shibboleth) 2021-05-17 20:14:18 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 20:14:41 <-- Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has quit (Ping timeout: 240 seconds) 2021-05-17 20:15:51 --> Xano (~Xano@2a00:23c4:420c:d700:fb87:815:3e08:be84) has joined #python 2021-05-17 20:16:01 <-- predmijat (~predmijat@mail.strogopro.com) has quit (Quit: bye) 2021-05-17 20:16:13 <-- vxvshnuj (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has quit (Quit: vxvshnuj) 2021-05-17 20:17:31 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:f5ad:6b00:298d:80c7) has quit (Ping timeout: 260 seconds) 2021-05-17 20:17:32 --> predmijat (~predmijat@mail.strogopro.com) has joined #python 2021-05-17 20:18:06 --> puadxtub (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has joined #python 2021-05-17 20:18:27 <-- P1ckleRick (~X@2a00:23a8:98b:500:8fa:fe61:110d:39a8) has quit (Ping timeout: 260 seconds) 2021-05-17 20:19:11 <-- sandra_96 (~sandra_96@c-cbc2524e.05-114-6d6c6d5.bbcust.telenor.se) has quit (Quit: Leaving) 2021-05-17 20:20:26 <-- bxsx (~x@unaffiliated/bxsx) has quit (Ping timeout: 265 seconds) 2021-05-17 20:21:20 --> bxsx (~x@unaffiliated/bxsx) has joined #python 2021-05-17 20:25:25 johnjay _habnabit: i'm reading the webpage. what does "lazily composable" mean? 2021-05-17 20:25:36 <-- keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has quit (Quit: keeth) 2021-05-17 20:26:23 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Ping timeout: 260 seconds) 2021-05-17 20:26:24 <-- bxsx (~x@unaffiliated/bxsx) has quit (Ping timeout: 268 seconds) 2021-05-17 20:26:26 _habnabit johnjay, you can compose multiple click applications together into one without them all needing to know about it 2021-05-17 20:26:35 SnoopJ johnjay, "lazy" refers to something that doesn't happen right away (the work is deferred until later), and composable means you can put things together 2021-05-17 20:26:59 johnjay i know what the definitions of the terms are. i mean in context. 2021-05-17 20:27:09 SnoopJ it means both of those properties in-context 2021-05-17 20:27:38 <-- yeticheese (~yetichees@193.160.245.5) has quit (Ping timeout: 268 seconds) 2021-05-17 20:28:00 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has quit (Remote host closed the connection) 2021-05-17 20:28:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 20:28:28 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has joined #python 2021-05-17 20:30:23 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-17 20:30:32 <-- markb1 (~mbiggers@2603-6080-6009-9ec0-b86f-ed5e-b088-30a5.res6.spectrum.com) has quit (Quit: Leaving) 2021-05-17 20:30:45 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Quit: bye) 2021-05-17 20:31:36 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 20:33:53 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 260 seconds) 2021-05-17 20:35:04 --> bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-17 20:35:09 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-17 20:35:46 <-- _till_ (~till@unaffiliated/till/x-7804721) has quit (Ping timeout: 240 seconds) 2021-05-17 20:36:07 <-- brizz (~brizz@74.208.85.67) has quit (Remote host closed the connection) 2021-05-17 20:41:09 <-- EmmetBrown (~jeco@gateway/tor-sasl/jeco) has quit (Ping timeout: 240 seconds) 2021-05-17 20:43:11 <-- nuala2 (~nuala@unaffiliated/nuala) has quit (Ping timeout: 240 seconds) 2021-05-17 20:44:26 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-17 20:44:35 <-- zaki (~zaki@2601:403:4280:3a60::bc69) has quit (Ping timeout: 260 seconds) 2021-05-17 20:45:08 --> nuala2 (~nuala@unaffiliated/nuala) has joined #python 2021-05-17 20:45:20 <-- SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-17 20:46:27 <-- bbear (~bbear@2a01:e34:ec2b:d430:8d2:b5f8:b461:7bc) has quit (Ping timeout: 260 seconds) 2021-05-17 20:46:28 --> EmmetBrown (~jeco@gateway/tor-sasl/jeco) has joined #python 2021-05-17 20:47:40 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-17 20:48:37 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 252 seconds) 2021-05-17 20:48:48 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-17 20:51:20 <-- lejocelyn (~lejocelyn@2a02:8109:8880:10ec::ec60) has quit (Quit: lejocelyn) 2021-05-17 20:51:26 --> edlou (uid413273@gateway/web/irccloud.com/x-ysefhmtgkibnyyid) has joined #python 2021-05-17 20:51:28 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 20:54:24 --> amo (~amogorkon@port-92-196-9-89.dynamic.as20676.net) has joined #python 2021-05-17 20:54:44 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has quit (Remote host closed the connection) 2021-05-17 20:54:50 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-17 20:55:08 --> swj (~swj@2409:8928:5c:17d:58d4:1175:745:bfa3) has joined #python 2021-05-17 20:55:12 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has joined #python 2021-05-17 20:56:59 --> s2013 (~textual@12.195.161.140) has joined #python 2021-05-17 20:58:28 <-- amogorkon (~amogorkon@port-92-196-41-122.dynamic.as20676.net) has quit (Ping timeout: 268 seconds) 2021-05-17 20:58:28 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 20:59:25 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-17 21:00:46 <-- bigRoo (~user@131.236.54.244) has quit (Ping timeout: 240 seconds) 2021-05-17 21:01:39 <-- Left_Turn (~Matthew@unaffiliated/turn-left/x-3739067) has quit (Ping timeout: 245 seconds) 2021-05-17 21:02:00 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 21:03:11 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-17 21:03:54 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-17 21:04:17 <-- frrs (uid130725@gateway/web/irccloud.com/x-mhjywjhlmpwpzsji) has quit (Quit: Connection closed for inactivity) 2021-05-17 21:04:31 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 260 seconds) 2021-05-17 21:06:05 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit 2021-05-17 21:07:28 <-- Madda (~talkur@99.253.6.51.dyn.plus.net) has quit (Ping timeout: 252 seconds) 2021-05-17 21:07:46 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-17 21:09:15 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 265 seconds) 2021-05-17 21:11:52 <-- gobby252 (~gobby252@178.239.173.200) has quit (Quit: Leaving) 2021-05-17 21:12:35 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-17 21:12:57 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Disconnected by services) 2021-05-17 21:13:03 --> Jigsy` (~Jigsy@unaffiliated/jigsy) has joined #python 2021-05-17 21:14:41 --> Madda (~talkur@208.249.9.51.dyn.plus.net) has joined #python 2021-05-17 21:14:57 -- Jigsy` is now known as Jigsy 2021-05-17 21:15:00 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-17 21:15:01 --> neophyte (~neophyte@cpc76428-belc8-2-0-cust98.2-1.cable.virginm.net) has joined #python 2021-05-17 21:15:03 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-17 21:15:18 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-17 21:15:22 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-17 21:17:21 --> ClaymorePT (~Claymore@188.251.155.208) has joined #python 2021-05-17 21:17:39 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit (Client Quit) 2021-05-17 21:17:44 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-17 21:17:50 <-- henri (~henri@191.35.140.144) has quit (Remote host closed the connection) 2021-05-17 21:18:10 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-17 21:18:30 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-17 21:19:40 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-17 21:19:48 <-- neophyte (~neophyte@cpc76428-belc8-2-0-cust98.2-1.cable.virginm.net) has quit (Quit: Leaving) 2021-05-17 21:21:45 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 21:23:41 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-17 21:24:06 --> drincruz (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-17 21:24:10 --> sydbarret (~anton@unaffiliated/sydbarret) has joined #python 2021-05-17 21:25:28 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-17 21:26:57 --> cjb (~cjb@unaffiliated/cjbayliss) has joined #python 2021-05-17 21:28:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 21:28:39 <-- bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has quit (Quit: bilb_ono) 2021-05-17 21:29:30 <-- krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-17 21:29:47 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-17 21:30:32 <-- drymer (~drymer@unaffiliated/drymer) has quit (Ping timeout: 268 seconds) 2021-05-17 21:31:55 <-- mikeike2 (~j@gateway/tor-sasl/doh) has quit (Quit: Ping timeout (120 seconds)) 2021-05-17 21:32:11 --> mikeike2 (~j@gateway/tor-sasl/doh) has joined #python 2021-05-17 21:32:24 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 21:33:25 sydbarret https://bpa.st/6EZA This ajax call shows 500 internal error 2021-05-17 21:33:52 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-17 21:33:53 --> ralof (~ralof@dynamic-095-114-059-243.95.114.pool.telefonica.de) has joined #python 2021-05-17 21:35:32 deltab si the url right? 2021-05-17 21:35:53 deltab check the server log 2021-05-17 21:36:39 <-- lucascastro (~lucascast@177-185-133-236.dynamic.isotelco.net.br) has quit (Remote host closed the connection) 2021-05-17 21:37:01 <-- ralof_ (~ralof@dynamic-095-115-015-219.95.115.pool.telefonica.de) has quit (Ping timeout: 252 seconds) 2021-05-17 21:37:35 --> average (uid473595@gateway/web/irccloud.com/x-nfxcdcwgbrzvigiw) has joined #python 2021-05-17 21:38:40 <-- ClaymorePT (~Claymore@188.251.155.208) has quit (Ping timeout: 252 seconds) 2021-05-17 21:39:13 nedbat sydbarret: did you write the server code? 2021-05-17 21:39:53 sydbarret yes 2021-05-17 21:40:07 sydbarret is the ajax syntax correct? 2021-05-17 21:40:22 sydbarret is the href correct of the li tag? 2021-05-17 21:40:32 FunkyBob a 500 response means the server had an un-recoverable error 2021-05-17 21:40:41 SnoopJ HTTP error 500 indicates that something went wrong inside the server, and it told the client about it. 2021-05-17 21:40:43 FunkyBob so it has nought to do with your JS 2021-05-17 21:41:06 FunkyBob your fetch just triggered it. 2021-05-17 21:41:29 FunkyBob (however, a
inside an is invalid HTML) 2021-05-17 21:41:31 sydbarret this is my server code 2021-05-17 21:41:33 sydbarret https://bpa.st/7OUQ 2021-05-17 21:41:57 Ouranos nice catch 2021-05-17 21:41:58 FunkyBob so: did you check your error logs, as deltab suggested? 2021-05-17 21:42:29 sydbarret where do i check it? 2021-05-17 21:42:29 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 21:42:37 sydbarret in the chrome console? 2021-05-17 21:42:40 FunkyBob that's entirely dependent on how you configured it 2021-05-17 21:42:41 FunkyBob no 2021-05-17 21:42:43 FunkyBob SERVER logs 2021-05-17 21:42:45 FunkyBob on your server 2021-05-17 21:42:54 FunkyBob since it's your SERVER that raised the error 2021-05-17 21:42:57 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 21:42:57 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-17 21:43:14 sydbarret oh i think some sql is wrong 2021-05-17 21:43:17 sydbarret hold on 2021-05-17 21:43:34 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 265 seconds) 2021-05-17 21:44:00 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has quit (Remote host closed the connection) 2021-05-17 21:44:06 <-- argento (~argent0@168.227.97.34) has quit (Ping timeout: 268 seconds) 2021-05-17 21:44:21 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has joined #python 2021-05-17 21:44:34 sydbarret im getting this psycopg2.errors.InvalidTextRepresentation: invalid input syntax for integer: "history" LINE 1: SELECT name FROM customers WHERE id='history 2021-05-17 21:44:36 --> eht (~eht@unaffiliated/eht) has joined #python 2021-05-17 21:44:45 SnoopJ looks like you're right about your SQL 2021-05-17 21:44:53 sydbarret it should be id=2018 in the sql 2021-05-17 21:45:01 sydbarret im trying to send the customer_id 2021-05-17 21:45:02 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-17 21:45:12 sydbarret dont know where it got that 'history' string 2021-05-17 21:46:27 sydbarret seems its taking it from the route, the last string 2021-05-17 21:46:33 --> stree (~stree@68.36.8.116) has joined #python 2021-05-17 21:46:45 <-- cyp3d (~n0b0dy@unaffiliated/cyp3d) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-17 21:47:11 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-17 21:47:37 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-17 21:48:25 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-17 21:49:26 --> cyp3d (~n0b0dy@unaffiliated/cyp3d) has joined #python 2021-05-17 21:50:01 <-- blyat-73 (~user@79.101.60.163) has quit (Quit: Leaving) 2021-05-17 21:50:42 --> Suwacc (~textual@45.248.77.164) has joined #python 2021-05-17 21:51:46 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-17 21:52:23 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-17 21:53:11 <-- freebench__ (~freebench@92.253.251.226) has quit (Ping timeout: 240 seconds) 2021-05-17 21:53:21 <-- cyp3d (~n0b0dy@unaffiliated/cyp3d) has quit (Remote host closed the connection) 2021-05-17 21:54:54 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-17 21:55:01 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-17 21:57:53 --> Flaghacker (~Flaghacke@253.188.60.188.dynamic.wline.res.cust.swisscom.ch) has joined #python 2021-05-17 21:57:59 <-- ewdwasright (~ewdwasrig@108.210.81.181) has quit (Quit: Leaving) 2021-05-17 21:58:04 --> cyp3d (~n0b0dy@unaffiliated/cyp3d) has joined #python 2021-05-17 21:58:27 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 21:59:54 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-17 22:00:41 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-17 22:01:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 22:01:59 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-17 22:02:28 <-- drincruz (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Ping timeout: 252 seconds) 2021-05-17 22:05:01 <-- cjb (~cjb@unaffiliated/cjbayliss) has quit 2021-05-17 22:07:00 --> bitdex (~bitdex@gateway/tor-sasl/bitdex) has joined #python 2021-05-17 22:08:42 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 265 seconds) 2021-05-17 22:09:20 --> cjb (~cjb@unaffiliated/cjbayliss) has joined #python 2021-05-17 22:09:59 <-- ahadi (~ahadi@89.244.122.91) has quit (Ping timeout: 245 seconds) 2021-05-17 22:10:54 <-- urodna (~urodna@unaffiliated/urodna) has quit (Quit: urodna) 2021-05-17 22:10:59 --> Trashlord (~trash@wikipedia/Sentient-Planet) has joined #python 2021-05-17 22:11:13 --> ahadi (~ahadi@89.244.122.210) has joined #python 2021-05-17 22:14:40 -- Roey is now known as lock-in-a-sock 2021-05-17 22:15:13 --> gridcommand (~gridcomma@2601:86:600:a2a:6021:bfdc:19b:50b5) has joined #python 2021-05-17 22:15:13 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-17 22:16:11 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-17 22:17:55 <-- sappheiros (~sappheiro@unaffiliated/dan1) has quit (Quit: please pray for me) 2021-05-17 22:18:14 <-- tm (~sinnlos@unaffiliated/tm) has quit (Ping timeout: 252 seconds) 2021-05-17 22:19:34 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 245 seconds) 2021-05-17 22:19:49 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-17 22:21:46 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Quit: Gone to sleep...) 2021-05-17 22:22:27 --> tm (~sinnlos@unaffiliated/tm) has joined #python 2021-05-17 22:22:32 <-- thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has quit (Ping timeout: 240 seconds) 2021-05-17 22:22:46 <-- FFY00_ (~FFY00@archlinux/trusteduser/ffy00) has quit (Remote host closed the connection) 2021-05-17 22:22:46 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-17 22:22:50 --> FinnElija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-17 22:22:50 -- finn_elija is now known as Guest40929 2021-05-17 22:22:50 -- FinnElija is now known as finn_elija 2021-05-17 22:24:06 --> yeticheese (~yetichees@193.160.245.164) has joined #python 2021-05-17 22:25:57 <-- Guest40929 (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Ping timeout: 240 seconds) 2021-05-17 22:25:58 --> FFY00_ (~FFY00@archlinux/trusteduser/ffy00) has joined #python 2021-05-17 22:25:58 <-- pedahzur (~jkugler@216-67-98-32.static.acsalaska.net) has quit (Ping timeout: 252 seconds) 2021-05-17 22:26:11 <-- FFY00_ (~FFY00@archlinux/trusteduser/ffy00) has quit (Remote host closed the connection) 2021-05-17 22:26:35 --> FFY00_ (~FFY00@archlinux/trusteduser/ffy00) has joined #python 2021-05-17 22:26:53 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-17 22:27:01 -- lock-in-a-sock is now known as Roey 2021-05-17 22:27:42 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Quit: tourdownunder) 2021-05-17 22:27:58 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-17 22:28:03 <-- bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-17 22:28:31 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 22:29:14 <-- EmmetBrown (~jeco@gateway/tor-sasl/jeco) has quit (Quit: WeeChat 3.1) 2021-05-17 22:30:05 <-- Coldblackice (c@gateway/vpn/mullvad/coldblackice) has quit (Ping timeout: 260 seconds) 2021-05-17 22:32:09 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 22:33:01 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Quit: tourdownunder) 2021-05-17 22:33:18 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-17 22:33:58 -- fluter- is now known as fluter 2021-05-17 22:35:42 <-- Hunterkll (~hunterkll@2001:470:8b06:400:215:5dff:fefb:804) has quit (Quit: Leaving) 2021-05-17 22:35:54 --> rogue_cheddar (~ilich@201.142.185.75.dsl.dyn.telnor.net) has joined #python 2021-05-17 22:36:47 <-- rogue_cheddar (~ilich@201.142.185.75.dsl.dyn.telnor.net) has quit (Client Quit) 2021-05-17 22:37:50 <-- JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has quit (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) 2021-05-17 22:38:05 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 246 seconds) 2021-05-17 22:39:42 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-17 22:39:44 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-17 22:40:35 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Client Quit) 2021-05-17 22:42:52 --> a6a45081-2b83 (~aditya@122.163.207.227) has joined #python 2021-05-17 22:43:23 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Quit: tourdownunder) 2021-05-17 22:43:46 <-- sauvin (sauvin@about/linux/staff/sauvin) has quit (Remote host closed the connection) 2021-05-17 22:43:47 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-17 22:44:10 --> sauvin (sauvin@about/linux/staff/sauvin) has joined #python 2021-05-17 22:45:43 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-17 22:46:19 <-- sydbarret (~anton@unaffiliated/sydbarret) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-17 22:47:19 <-- yeticheese (~yetichees@193.160.245.164) has quit (Remote host closed the connection) 2021-05-17 22:48:11 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-17 22:48:26 --> JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has joined #python 2021-05-17 22:49:44 <-- s2013 (~textual@12.195.161.140) has quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2021-05-17 22:51:30 <-- AppXprt (4addb5a9@gateway/web/cgi-irc/kiwiirc.com/ip.74.221.181.169) has quit (Quit: Connection closed) 2021-05-17 22:52:59 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 250 seconds) 2021-05-17 22:53:44 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-17 22:54:20 <-- a6a45081-2b83 (~aditya@122.163.207.227) has quit (Quit: Konversation terminated!) 2021-05-17 22:54:54 --> tralfaz (~dulyNoded@178.128.106.205) has joined #python 2021-05-17 22:56:11 --> a6a45081-2b83 (~aditya@122.163.207.227) has joined #python 2021-05-17 22:57:04 <-- emerent (~quassel@p200300cd571024beba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-17 22:58:24 --> emerent (~quassel@p200300cd57102401ba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-17 22:58:24 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 22:59:16 <-- edlou (uid413273@gateway/web/irccloud.com/x-ysefhmtgkibnyyid) has quit (Quit: Connection closed for inactivity) 2021-05-17 23:01:39 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Ping timeout: 250 seconds) 2021-05-17 23:01:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 23:01:54 --> irc_user (uid423822@gateway/web/irccloud.com/x-fgagemztrqwqczme) has joined #python 2021-05-17 23:02:24 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-17 23:04:45 --> f33f046c-a02e (~aditya@122.163.149.247) has joined #python 2021-05-17 23:05:16 <-- a6a45081-2b83 (~aditya@122.163.207.227) has quit (Ping timeout: 260 seconds) 2021-05-17 23:05:30 <-- JavaBean (~JavaBean@139.sub-174-238-12.myvzw.com) has quit (Read error: Connection timed out) 2021-05-17 23:05:53 <-- bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-17 23:06:13 <-- mkoskar (~mkoskar@unaffiliated/mkoskar) has quit (Ping timeout: 240 seconds) 2021-05-17 23:06:32 --> ghormoon_ (~ghormoon@ghorland.net) has joined #python 2021-05-17 23:06:33 --> SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has joined #python 2021-05-17 23:06:38 <-- ghormoon (~ghormoon@ghorland.net) has quit (Ping timeout: 252 seconds) 2021-05-17 23:09:41 --> bonhoeffer (~tim@159.63.128.50) has joined #python 2021-05-17 23:11:21 bonhoeffer if I have [{'a':1,'b':23},{'a':3,'b':288}] and I want to find the dict where 'a' is 1 2021-05-17 23:11:26 <-- tralfaz (~dulyNoded@178.128.106.205) has quit (Ping timeout: 240 seconds) 2021-05-17 23:12:28 <-- Atque (~Atque_@unaffiliated/atque) has quit (Quit: ...) 2021-05-17 23:13:38 phy1729 What if there are two (or more) or none? 2021-05-17 23:13:44 --> Hunterkll (~hunterkll@2001:470:8b06:400:215:5dff:fefb:804) has joined #python 2021-05-17 23:14:16 <-- Hunterkll (~hunterkll@2001:470:8b06:400:215:5dff:fefb:804) has quit (Remote host closed the connection) 2021-05-17 23:14:45 --> Hunterkll (~hunterkll@2001:470:8b06:400:215:5dff:fefb:804) has joined #python 2021-05-17 23:15:44 yitz [x for x in dicts if x.get('a') == 1] 2021-05-17 23:16:57 SnoopJ or `next(x for x in ..., DEFAULT_VALUE)` if you only care about the first such dict 2021-05-17 23:18:30 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-17 23:19:20 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-17 23:20:59 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-17 23:22:12 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-17 23:22:29 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-17 23:22:59 --> plutoniix (~q@ppp-58-8-176-34.revip2.asianet.co.th) has joined #python 2021-05-17 23:25:24 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-17 23:25:51 <-- sybariten (~jake@78-47-86-21.cinfuserver.com) has quit (Ping timeout: 268 seconds) 2021-05-17 23:27:03 --> yeticheese (~yetichees@193.160.245.164) has joined #python 2021-05-17 23:28:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 23:28:37 <-- JimmyNeutron (~weechat@191.96.121.46) has quit (Quit: WeeChat 3.0.1) 2021-05-17 23:28:48 --> mkoskar (~mkoskar@unaffiliated/mkoskar) has joined #python 2021-05-17 23:29:13 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-17 23:29:23 <-- swj (~swj@2409:8928:5c:17d:58d4:1175:745:bfa3) has quit (Ping timeout: 250 seconds) 2021-05-17 23:29:49 --> Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has joined #python 2021-05-17 23:30:13 --> matsaman (~matsaman@unaffiliated/matsaman) has joined #python 2021-05-17 23:30:18 <-- banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has quit (Quit: Connection closed) 2021-05-17 23:31:36 --> swj (~swj@2409:8928:5c:17d:58d4:1175:745:bfa3) has joined #python 2021-05-17 23:31:37 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-17 23:31:52 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-17 23:32:23 bonhoeffer yitz, SnoopJ wow, both work -- thanks 2021-05-17 23:32:42 SnoopJ bonhoeffer, do they make sense? 2021-05-17 23:33:19 yitz I feel weird about `next()` but probably would have cleaner cod if I used it more 2021-05-17 23:33:35 sartan I prefer next(), because i don't have to try to split it later on what could be an indexerror waiting to happen 2021-05-17 23:33:40 <-- bonhoeffer (~tim@159.63.128.50) has quit (Quit: Leaving) 2021-05-17 23:33:59 sartan if [] finds nothing, and you want the first (and only) result, you'll have to be defensive before you attempt to split it to get the first (singular) value 2021-05-17 23:34:03 SnoopJ I used to feel awkward about it before I got into the habit of using a sentinel value to represent the lack of a value 2021-05-17 23:34:30 sartan I'll do stuff like x = iter(next(), None) 2021-05-17 23:34:42 SnoopJ oh my 2021-05-17 23:34:47 sartan or something the other way around. 2021-05-17 23:37:42 sartan SnoopJ: yeah for that purpose there will be a custom object like MISSING 2021-05-17 23:37:50 sartan to differentiate between None, and not there 2021-05-17 23:38:02 --> KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has joined #python 2021-05-17 23:38:17 sartan more often than not, None is enough 2021-05-17 23:38:27 SnoopJ it usually is in my experience, yea 2021-05-17 23:38:57 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-17 23:39:12 SnoopJ it's also not a bad use for the walrus operator, as I think about it: `if result := next(iterable, None):` 2021-05-17 23:39:14 --> psachin (~psachin@1.38.157.10) has joined #python 2021-05-17 23:40:23 SnoopJ or whatever falsey sentinel as needed for a task 2021-05-17 23:40:53 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-17 23:41:23 sartan oh that looks nice 2021-05-17 23:41:25 --> Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has joined #python 2021-05-17 23:41:30 sartan python3 jealousy increases 2021-05-17 23:41:56 --> px (~px@unaffiliated/paradoxgo) has joined #python 2021-05-17 23:42:23 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-17 23:42:42 SnoopJ I'm still very unsure how I feel about the operator, but that's certainly less unpleasant than catching StopIteration 2021-05-17 23:43:08 sartan i'm always doing a lot of regex matching, and there's always the boilerplatey kludge that goes with it 2021-05-17 23:43:26 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-17 23:43:47 SnoopJ `re` being a headlining motivation in the operator's PEP is part of my uncertainty about it: the misbehavior of that API seems like a terrible motivator 2021-05-17 23:44:37 SnoopJ but I'm warming to it, will have to think about writing one next time I use next() that way 2021-05-17 23:45:03 sartan can result be accessed outside of walrus-zoo if the predicate was true 2021-05-17 23:45:59 sartan i would think not.. and such a refactor if you required result outside would be 'else: result = None' (or something) and you're going back to the same thing again 2021-05-17 23:46:01 SnoopJ sartan, the assignment always occurs 2021-05-17 23:46:12 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 240 seconds) 2021-05-17 23:46:14 <-- swj (~swj@2409:8928:5c:17d:58d4:1175:745:bfa3) has quit (Ping timeout: 245 seconds) 2021-05-17 23:46:48 SnoopJ https://bpaste.net/LXFA 2021-05-17 23:46:58 <-- net| (~net|@unaffiliated/unit41) has quit (Quit: Leaving.) 2021-05-17 23:47:25 sartan im not clever enough to know what i'm looking at 2021-05-17 23:48:05 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Ping timeout: 246 seconds) 2021-05-17 23:48:28 SnoopJ the LOAD_NAME/DUP_TOP sets up the stack so that two references to the value attached to the name `foo` at on top of the stack. One of them is STORE_NAME'd into `result`, the other one is tested for its truth value by POP_JUMP_IF_FALSE 2021-05-17 23:48:40 SnoopJ i.e. it does the assignment to the name, *then* tests 2021-05-17 23:48:52 --> pr0t (~noface@128.9.16.44) has joined #python 2021-05-17 23:48:56 pr0t Why in python3 when passing a file descriptor obtained from os.open (with O_RDONLY set) to fcntl.flock when working with an NFS mount fails? 2021-05-17 23:49:17 <-- markmcclain (~markmccla@208.113.167.90) has quit (Ping timeout: 268 seconds) 2021-05-17 23:49:44 matsaman pr0t: things always fail with NFS involved 2021-05-17 23:49:51 pr0t i.e. this fails python3 -c 'import fcntl; import os; fcntl.flock(os.open("lockfile", os.O_RDONLY | os.O_CREAT), fcntl.LOCK_EX | fcntl.LOCK_NB)' 2021-05-17 23:49:56 --> shabius_ (~shabius@45.15.19.226) has joined #python 2021-05-17 23:50:23 pr0t But something like this works just fine python3 -c 'import fcntl; import os; fcntl.flock(open("lockfile", "a"), fcntl.LOCK_EX | fcntl.LOCK_NB)' 2021-05-17 23:50:26 <-- ionface (~ionface@unaffiliated/ionface) has quit (Ping timeout: 240 seconds) 2021-05-17 23:50:45 --> markmcclain (~markmccla@208.113.167.90) has joined #python 2021-05-17 23:51:15 <-- shabius (~shabius@2a0e:1c80:2:1022::1000) has quit (Ping timeout: 260 seconds) 2021-05-17 23:51:29 pr0t Even when the above example that fails if I change os.O_RDONLY to os.O_WRONLY it also works just fine, I have no idea why 2021-05-17 23:51:33 <-- Flaghacker (~Flaghacke@253.188.60.188.dynamic.wline.res.cust.swisscom.ch) has quit (Remote host closed the connection) 2021-05-17 23:51:58 --> Flaghacker (~Flaghacke@253.188.60.188.dynamic.wline.res.cust.swisscom.ch) has joined #python 2021-05-17 23:52:30 pr0t matsaman: I know it makes me want to cry please helps! 2021-05-17 23:53:36 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-17 23:53:36 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 268 seconds) 2021-05-17 23:54:41 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-17 23:54:54 -- Roey is now known as rock-in-a-frock 2021-05-17 23:54:56 sartan how do you maintain a lockfile in readonly mode? 2021-05-17 23:55:26 --> davterra (~dulyNoded@178.128.106.205) has joined #python 2021-05-17 23:56:19 SnoopJ pr0t, how does your flock() fail? 2021-05-17 23:56:36 pr0t Traceback (most recent call last): 2021-05-17 23:56:36 pr0t File "", line 1, in 2021-05-17 23:56:36 pr0t OSError: [Errno 9] Bad file descriptor 2021-05-17 23:56:41 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-17 23:56:43 sartan doesn't fnctl.lockf work better than fnctl.flock now 2021-05-17 23:57:41 sartan if you like-for-like replace flock with lockf, does your poc work? 2021-05-17 23:57:41 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-17 23:58:04 pr0t yup 2021-05-17 23:58:08 pr0t But I am curious why 2021-05-17 23:58:30 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-17 23:58:44 --> argento (~argent0@168.227.96.26) has joined #python 2021-05-17 23:58:46 sartan https://stackoverflow.com/questions/22409780/flock-vs-lockf-on-linux there is a good explanation on the second post here 2021-05-17 23:59:39 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-17 23:59:45 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-18 00:00:47 --> swj (~swj@2409:8928:5c:17d:58d4:1175:745:bfa3) has joined #python 2021-05-18 00:00:52 pr0t Oh very nice explanation 2021-05-18 00:00:55 pr0t Thanks for finding that 2021-05-18 00:01:45 SnoopJ it does look like it comes with a pretty big asterisk of referring to quite an old kernel version 2021-05-18 00:01:55 SnoopJ for the part that is Linux specific, that is 2021-05-18 00:02:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 00:02:16 --> subho (~subho@fedora/subho) has joined #python 2021-05-18 00:02:22 sartan I can only cast a magic spell or two a day, but I'm not sure the reagents they are necessarily made of 2021-05-18 00:03:02 --> s2013 (~textual@c-69-245-9-178.hsd1.tn.comcast.net) has joined #python 2021-05-18 00:03:07 --> powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-18 00:03:10 SnoopJ amusingly, there is a big in Steam for Linux about pretty much exactly this question: https://github.com/ValveSoftware/steam-for-linux/issues/6392 2021-05-18 00:03:12 <-- joako (~joako@opensuse/member/joak0) has quit (Quit: quit) 2021-05-18 00:03:13 SnoopJ bug* 2021-05-18 00:03:35 sartan i just found one for ansible: https://github.com/ansible/awx/pull/3928/commits/f48713f4ae23cc470be2a2d8ce1f9bad35e54bfe 2021-05-18 00:03:52 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-18 00:03:56 --> Jantz_ (~IceChat95@2407:7000:8d04:100:c52e:59de:7f14:beb9) has joined #python 2021-05-18 00:04:19 pr0t Yeah I saw that one related to Ansible Tower, I was hoping to find a bug actually submitted for pythons 2021-05-18 00:04:23 sartan so it did have something to do with read only fds being used 2021-05-18 00:04:39 sartan the bug commenter implied they need to bne open in readwrite 2021-05-18 00:04:53 --> Monet (~woostundy@106.11.35.243) has joined #python 2021-05-18 00:04:57 --> joako (~joako@opensuse/member/joak0) has joined #python 2021-05-18 00:05:15 sartan I don't know what happened there I think I accidently a word or two 2021-05-18 00:05:56 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 268 seconds) 2021-05-18 00:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-18 00:06:03 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-18 00:06:40 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-18 00:06:42 -- rock-in-a-frock is now known as Roey 2021-05-18 00:06:53 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-18 00:07:26 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-18 00:07:45 SnoopJ I don't see anything on bugs.python.org after plugging in a few searches for those flags 2021-05-18 00:07:48 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 00:08:54 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Quit: WeeChat 3.1) 2021-05-18 00:11:23 <-- yeticheese (~yetichees@193.160.245.164) has quit 2021-05-18 00:12:02 <-- Abbott (~Abbott@unaffiliated/abbott) has quit (Read error: Connection reset by peer) 2021-05-18 00:12:06 --> Abbott` (~Abbott@unaffiliated/abbott) has joined #python 2021-05-18 00:12:30 -- Abbott` is now known as Abbott 2021-05-18 00:12:32 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Quit: Wr4i7h) 2021-05-18 00:13:05 sartan pr0t: to be honest i'm not sure the best fix to go with: whether to change the lockfile into readwrite mode, or to switch to lockf 2021-05-18 00:13:13 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 260 seconds) 2021-05-18 00:13:42 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Quit: tourdownunder) 2021-05-18 00:13:58 pr0t Yeah good question right 2021-05-18 00:14:09 <-- korg815 (~korg815@unaffiliated/korg815) has quit (Quit: WeeChat 2.8) 2021-05-18 00:15:14 <-- mike18 (~geri@71-220-52-187.mpls.qwest.net) has quit (Remote host closed the connection) 2021-05-18 00:17:25 sartan i'd probably go with the fix that ansible tower implemented, it seems fairly well deployed and fixes a couple bugs people hit (flock) 2021-05-18 00:17:28 sartan (flock->lockf) 2021-05-18 00:18:03 sartan (blush) because the underlying magical reasons are too complex for me to grok completely 2021-05-18 00:18:06 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-18 00:18:14 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 265 seconds) 2021-05-18 00:19:37 <-- dez (uid92154@fedora/deSouza) has quit (Quit: Connection closed for inactivity) 2021-05-18 00:20:27 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Quit: Leaving) 2021-05-18 00:21:03 --> banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has joined #python 2021-05-18 00:21:09 <-- PantelicGR (~PantelicG@unaffiliated/pantelicgr) has quit (Quit: Leaving) 2021-05-18 00:21:18 <-- Monet (~woostundy@106.11.35.243) has quit (Remote host closed the connection) 2021-05-18 00:21:26 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-18 00:25:00 <-- jayjo (~jayjo@unaffiliated/jayjo) has quit (Ping timeout: 265 seconds) 2021-05-18 00:25:00 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-18 00:25:27 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-18 00:26:37 noyb pr0t: What is the implementation of the NFS server? Linux, Solaris, Windowz? Maybe they have some bug advice on their site? dunno... 2021-05-18 00:27:07 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 00:27:18 pr0t Noyb: Linux but I haven't seen anything 2021-05-18 00:27:29 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 00:28:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 00:28:59 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-18 00:30:31 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Quit: Gone to sleep...) 2021-05-18 00:30:45 --> wawb (~Adium@pool-96-241-147-73.washdc.fios.verizon.net) has joined #python 2021-05-18 00:31:02 --> techiethrive (dfe1aa13@223.225.170.19) has joined #python 2021-05-18 00:31:13 <-- swj (~swj@2409:8928:5c:17d:58d4:1175:745:bfa3) has quit (Read error: No route to host) 2021-05-18 00:31:19 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-18 00:31:31 --> swj (~swj@2409:8928:5c:17d:58d4:1175:745:bfa3) has joined #python 2021-05-18 00:31:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 00:32:42 <-- jarthur (~jarthur@2603-8080-1540-002d-2cd6-7c07-2a88-1d7d.res6.spectrum.com) has quit (Quit: jarthur) 2021-05-18 00:33:13 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 265 seconds) 2021-05-18 00:34:49 --> jayjo (~jayjo@unaffiliated/jayjo) has joined #python 2021-05-18 00:35:17 <-- s2013 (~textual@c-69-245-9-178.hsd1.tn.comcast.net) has quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2021-05-18 00:35:17 matsaman pr0t: if you use sshfs instead of nfs, you won't have nfs troubles ever again 2021-05-18 00:36:33 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-18 00:37:18 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 00:37:20 --> maum (70a601c2@112.166.1.194) has joined #python 2021-05-18 00:37:23 maum hello 2021-05-18 00:38:06 matsaman hi maum 2021-05-18 00:38:22 maum hello matsaman 2021-05-18 00:38:35 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit 2021-05-18 00:39:06 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-18 00:39:11 <-- tomg (tomg@64-7-151-80.border7-dynamic.dsl.sentex.ca) has quit (Ping timeout: 240 seconds) 2021-05-18 00:39:56 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-18 00:40:35 <-- cryptic (~cryptic@142-196-139-017.res.spectrum.com) has quit (Ping timeout: 246 seconds) 2021-05-18 00:41:07 noyb matsaman: I agree. pr0t will have sshfs issues. Notably, all of the same kinds of issues (resource locking, etc) remain, no matter what the server is called. 2021-05-18 00:41:32 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-18 00:44:14 --> Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has joined #python 2021-05-18 00:44:22 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-18 00:45:28 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-18 00:45:40 <-- argento (~argent0@168.227.96.26) has quit (Remote host closed the connection) 2021-05-18 00:45:44 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-18 00:46:43 --> maggotbrain (~maggotbra@c-73-254-248-250.hsd1.wa.comcast.net) has joined #python 2021-05-18 00:46:44 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-18 00:47:45 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-18 00:48:00 johnjay where do i check for pypi installed packages? 2021-05-18 00:48:11 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 240 seconds) 2021-05-18 00:48:14 johnjay this is debian i'm using atm 2021-05-18 00:49:14 mefistofeles johnjay: did you install those with sudo privileges? 2021-05-18 00:49:32 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-18 00:50:02 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-18 00:50:02 <-- gacekjk (~gacekjk@unaffiliated/jkuchars) has quit (Ping timeout: 246 seconds) 2021-05-18 00:50:03 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-18 00:50:14 mefistofeles if that's the case then I think somewhere in /usr/local/lib/pythonX.X 2021-05-18 00:50:57 <-- pr0t (~noface@128.9.16.44) has quit (Ping timeout: 268 seconds) 2021-05-18 00:51:00 <-- Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 00:51:26 --> Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has joined #python 2021-05-18 00:51:40 --> mangold (~mangold@198.98.183.58) has joined #python 2021-05-18 00:53:11 johnjay i don't think so. 2021-05-18 00:53:21 johnjay i see this click package installed but i thought i had to sudo it 2021-05-18 00:53:39 --> techiethrive57 (dfe1aa13@223.225.170.19) has joined #python 2021-05-18 00:54:03 johnjay hrm it is in there actually 2021-05-18 00:54:06 <-- techiethrive (dfe1aa13@223.225.170.19) has quit (Quit: Connection closed) 2021-05-18 00:54:06 <-- techiethrive57 (dfe1aa13@223.225.170.19) has quit (Client Quit) 2021-05-18 00:54:09 johnjay that's odd 2021-05-18 00:54:28 johnjay the command i ran was 'pip install click' 2021-05-18 00:54:42 --> mihael (~marz@49.145.73.121) has joined #python 2021-05-18 00:54:42 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 00:54:59 SnoopJ johnjay, you can do `pip show pkgname` to see some information about a package installed with pip, including its location. 2021-05-18 00:55:08 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 00:55:08 mihael Is there a way I can write to a file without actually saving it? I just want to run a difflib against an existing file and only save it if there is a difference 2021-05-18 00:55:24 johnjay ah ok. yes that is the location as reported by that command. ok then 2021-05-18 00:55:26 <-- f33f046c-a02e (~aditya@122.163.149.247) has quit (Remote host closed the connection) 2021-05-18 00:56:11 --> lejocelyn (~lejocelyn@ip5f5bd552.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 00:56:19 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-18 00:56:45 SnoopJ johnjay, you shouldn't really need to `sudo pip` unless the package is trying to write to system directories for some reason (click won't do this). pip/python are clever enough to know how to stash stuff in your home directory 2021-05-18 00:57:16 --> stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has joined #python 2021-05-18 00:57:39 --> stranac (~stranac@195.29.239.126) has joined #python 2021-05-18 00:57:55 <-- maum (70a601c2@112.166.1.194) has quit (Quit: Connection closed) 2021-05-18 00:58:12 <-- AlanMD (~alan@193.105.140.131) has quit (Ping timeout: 240 seconds) 2021-05-18 00:58:25 johnjay it's just odd it's writing to /usr/local since normally you'd need sudo for that i thought 2021-05-18 00:58:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 00:59:01 <-- Zachary_DuBois (~Zachary_D@yukimorikawa.zacharydubois.net) has quit (Quit: 平和!(HTTP/2 503 Zachary is unavailable.)) 2021-05-18 00:59:52 --> Zachary_DuBois (~Zachary_D@yukimorikawa.zacharydubois.net) has joined #python 2021-05-18 01:00:46 <-- cjb (~cjb@unaffiliated/cjbayliss) has quit 2021-05-18 01:01:05 sartan mihael: kind of but not really. you can mess with f.seek() and f.read() before you flush it, but what do you expect to do with files of differeing size? Probably best to just read the file and not write to it for many reasons least of all are unexpected behavior during crashes 2021-05-18 01:01:40 --> gacekjk (~gacekjk@unaffiliated/jkuchars) has joined #python 2021-05-18 01:02:03 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 01:02:11 sartan are these very large files? what are your concerns with just storing the diff in a variable? python will generate one in memory anyway 2021-05-18 01:02:46 sartan it sounds to me like you're working on implementing future bugs :P 2021-05-18 01:03:20 SnoopJ johnjay, it was probably installed with elevated privileges 2021-05-18 01:07:15 <-- emerent (~quassel@p200300cd57102401ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-18 01:08:09 <-- sauvin (sauvin@about/linux/staff/sauvin) has quit (Remote host closed the connection) 2021-05-18 01:08:21 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 01:08:30 --> sauvin (sauvin@about/linux/staff/sauvin) has joined #python 2021-05-18 01:09:30 --> emerent (~quassel@p200300cd57102401ba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-18 01:09:38 <-- stevieh (~skrodzki@p4fed3860.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-18 01:10:24 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 245 seconds) 2021-05-18 01:11:17 --> h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-18 01:11:24 --> h4rd3n3D1 (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-18 01:12:03 <-- gridcommand (~gridcomma@2601:86:600:a2a:6021:bfdc:19b:50b5) has quit (Read error: Connection reset by peer) 2021-05-18 01:12:46 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 252 seconds) 2021-05-18 01:14:21 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-18 01:14:45 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-18 01:14:51 --> xrogaan (~xrogaan@unaffiliated/xrogaan) has joined #python 2021-05-18 01:16:59 <-- mangold (~mangold@198.98.183.58) has quit (Ping timeout: 246 seconds) 2021-05-18 01:17:32 <-- Betal (~Betal@unaffiliated/betal) has quit (Quit: WeeChat 3.1) 2021-05-18 01:17:55 Ouranos Are there any other python chats that I try as well? 2021-05-18 01:19:35 sartan I'm hurt that you want to leave us, but there's supposedly one on discord? 2021-05-18 01:19:49 Ouranos I plan to stay here as well! I'm just looking for a sideshow 2021-05-18 01:20:05 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-18 01:20:21 Ouranos I'm doing free code camp and sololearn for python... What do you suggest? 2021-05-18 01:20:43 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-18 01:21:14 sartan sorry I don't know anything about that stuff =/ https://discord.com/invite/python for that other one 2021-05-18 01:23:59 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-18 01:24:31 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-18 01:24:37 <-- hqdruxn08 (~hqdruxn08@cpe-66-68-160-103.austin.res.rr.com) has quit (Ping timeout: 260 seconds) 2021-05-18 01:25:02 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-18 01:25:41 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-18 01:26:05 --> Fischerfredl (~Thunderbi@194.135.131.212) has joined #python 2021-05-18 01:26:06 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-18 01:26:09 Ouranos thank you! 2021-05-18 01:26:12 --> Nact (~l@host-85-27-120-35.dynamic.voo.be) has joined #python 2021-05-18 01:26:12 <-- matsaman (~matsaman@unaffiliated/matsaman) has quit (Quit: leaving) 2021-05-18 01:26:30 <-- PiRATA (~PiRATA@bug.pirata.dev) has quit (Quit: PiRATA) 2021-05-18 01:28:17 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 01:29:18 --> ish (sid1441@gateway/web/irccloud.com/x-fcyahtheizimzflf) has joined #python 2021-05-18 01:29:31 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-18 01:29:42 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Remote host closed the connection) 2021-05-18 01:30:21 <-- h4rd3n3D1 (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-18 01:30:26 ish When I pip install from the wheel version of my package, requirements.txt doesn't appear to be considered. If installed from the .tar.gz, the requirements.txt is respected, as expected. Is there an extra step required when building the package? 2021-05-18 01:30:49 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 245 seconds) 2021-05-18 01:31:29 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-18 01:32:03 sartan you can add the wheel filename to requirements.txt with -f to bundle them all at once? 2021-05-18 01:32:04 --> cryptic (~cryptic@142-196-139-017.res.spectrum.com) has joined #python 2021-05-18 01:32:06 --> Deesl (~bsdboy@redhat/deesl) has joined #python 2021-05-18 01:32:15 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 01:33:49 <-- Deesl (~bsdboy@redhat/deesl) has quit (Client Quit) 2021-05-18 01:33:54 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-18 01:34:13 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-18 01:34:59 <-- swj (~swj@2409:8928:5c:17d:58d4:1175:745:bfa3) has quit (Ping timeout: 245 seconds) 2021-05-18 01:35:16 sartan Oh I misread that completely 2021-05-18 01:35:31 ish I'm not sure I follow... I'm doing "python3 -m build" to prep my package before uploading to pypi.. When users 'pip install mypackage', the requirements.txt is not respected. 2021-05-18 01:36:45 BrenBarn I don't think wheels/pypi are supposed to work that way 2021-05-18 01:36:46 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-18 01:36:58 BrenBarn you need to list the package dependencies in the setup.py 2021-05-18 01:37:06 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-18 01:37:10 BrenBarn (or maybe pyproject.toml these days can work too) 2021-05-18 01:39:29 ish Ah.. I think this was the first version I uploaded the wheel version, looks much by accident. Just uploading the .tar.gz would probably solve the issue for my users. 2021-05-18 01:39:42 --> PiRATA (~PiRATA@bug.pirata.dev) has joined #python 2021-05-18 01:40:41 <-- mumixam (~m@unaffiliated/mumixam) has quit (Ping timeout: 250 seconds) 2021-05-18 01:41:47 Samian isn't there a command that displays python book recommendations? 2021-05-18 01:41:49 Samian books! 2021-05-18 01:41:52 Samian !books 2021-05-18 01:42:16 sartan I didn't think there was a bot in here at all 2021-05-18 01:43:19 <-- PiRATA (~PiRATA@bug.pirata.dev) has quit (Client Quit) 2021-05-18 01:44:08 BrenBarn how are your users "installing from the .tar.gz"? 2021-05-18 01:44:52 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Quit: Gone to sleep...) 2021-05-18 01:46:15 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Remote host closed the connection) 2021-05-18 01:46:31 --> PiRATA (~PiRATA@bug.pirata.dev) has joined #python 2021-05-18 01:47:31 <-- psachin (~psachin@1.38.157.10) has quit (Read error: Connection reset by peer) 2021-05-18 01:48:00 --> frrs (uid130725@gateway/web/irccloud.com/x-dtvupabpmyfbhlda) has joined #python 2021-05-18 01:48:05 johnjay i did that earlier today 2021-05-18 01:48:17 johnjay it literally packaged an x86_64 elf binary but in .tar.gz 2021-05-18 01:48:24 johnjay so you unpack it and run it. 2021-05-18 01:48:46 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 240 seconds) 2021-05-18 01:48:52 --> lbalhar (~lbalhar@93.185.13.26) has joined #python 2021-05-18 01:49:33 <-- SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-18 01:49:37 <-- parabolize (~paraboliz@98.43.173.221) has quit (Quit: leaving) 2021-05-18 01:49:51 --> tsujp (a32f386b@163.47.56.107) has joined #python 2021-05-18 01:50:19 tsujp I have a list comprehension `[p.age for p in PEOPLE]` how can I filter this only if their age is above some number? 2021-05-18 01:50:36 sartan [p.age for p in PEOPLE if p.age > 30] 2021-05-18 01:50:55 tsujp Ohh at the end, thanks 2021-05-18 01:51:53 --> Deesl (~bsdboy@redhat/deesl) has joined #python 2021-05-18 01:52:40 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 01:52:51 --> psachin (~psachin@103.51.232.179) has joined #python 2021-05-18 01:53:22 <-- PiRATA (~PiRATA@bug.pirata.dev) has quit (Quit: PiRATA) 2021-05-18 01:53:40 --> techiethrive (dfe1aa13@223.225.170.19) has joined #python 2021-05-18 01:53:51 <-- kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has quit (Quit: leaving) 2021-05-18 01:54:45 <-- bamdad (~bamdad@gateway/tor-sasl/bamdad) has quit (Ping timeout: 240 seconds) 2021-05-18 01:54:49 tsujp And then if I wanted to have a comprehension that returns the people objects themselves it'd be this right sartan? `[p for p in PEOPLE if p.age > 30]` ? 2021-05-18 01:54:57 <-- techiethrive (dfe1aa13@223.225.170.19) has quit (Client Quit) 2021-05-18 01:55:18 deniska yes 2021-05-18 01:55:22 --> bamdad_ (~bamdad@gateway/tor-sasl/bamdad) has joined #python 2021-05-18 01:55:48 tsujp neat 2021-05-18 01:56:14 --> PiRATA (~PiRATA@bug.pirata.dev) has joined #python 2021-05-18 01:56:43 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-18 01:57:32 adder` is slicing a list O(n) operation? 2021-05-18 01:58:11 t2mkn is it possible in mysql connector for cursor(dictionary=True) to return string type DATE instead of datetime object ? 2021-05-18 01:58:45 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 01:59:57 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Quit: Unfortunately time is always against us -- [Morpheus]) 2021-05-18 02:00:03 <-- drymer (~drymer@unaffiliated/drymer) has quit (Remote host closed the connection) 2021-05-18 02:00:41 Wulf adder`: usually yes 2021-05-18 02:00:51 --> hqdruxn08 (~hqdruxn08@cpe-66-68-160-103.austin.res.rr.com) has joined #python 2021-05-18 02:00:58 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-18 02:01:54 --> mumixam (~m@unaffiliated/mumixam) has joined #python 2021-05-18 02:02:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 02:02:05 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-18 02:02:08 adder` Wulf, is there a gotcha? 2021-05-18 02:02:43 Wulf adder`: what do you mean? 2021-05-18 02:02:48 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-18 02:03:25 <-- drymer (~drymer@unaffiliated/drymer) has quit (Client Quit) 2021-05-18 02:03:31 adder` Wulf, you said "usually" 2021-05-18 02:03:57 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 02:04:08 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-18 02:04:09 Wulf adder`: you can't depend on it. Perhaps some python implementations got some optimization to make it O(1) in some situations. 2021-05-18 02:04:22 deniska slicing a list is O(n) where n ~ amount of elements you slice 2021-05-18 02:04:51 adder` i see, ok. thanks Wulf, deniska 2021-05-18 02:04:54 sartan or, if a python list was a linked list in memory, it could return pointers from start,end index 2021-05-18 02:04:55 deniska Wulf: O(1) is still technically O(n) 2021-05-18 02:05:02 <-- zuQe8 (~zuQe8@cpc105068-sgyl40-2-0-cust196.18-2.cable.virginm.net) has quit (Quit: BYE) 2021-05-18 02:05:04 leduyquang753 No. 2021-05-18 02:05:05 Wulf deniska: true 2021-05-18 02:05:08 Wulf leduyquang753: yes, it is. 2021-05-18 02:05:21 deniska python list won't be a linked list because then it can't provide many performance guarantees 2021-05-18 02:05:32 leduyquang753 O(1) is that it always takes the same time regardless of input. 2021-05-18 02:05:41 Wulf leduyquang753: wrong 2021-05-18 02:06:25 leduyquang753 Point out the spot that is wrong. 2021-05-18 02:07:05 deniska leduyquang753: mathy-ish definition of O(f) is that a thing doesn't grow faster than f, and a constant doesn't grow faster than n 2021-05-18 02:07:09 Wulf leduyquang753: a function is in the set O(1) if the complexity is limited by a constant and doesn't depend on the input size. 2021-05-18 02:07:14 --> zuQe8 (~zuQe8@cpc105068-sgyl40-2-0-cust196.18-2.cable.virginm.net) has joined #python 2021-05-18 02:07:57 Wulf leduyquang753: But it doesn't mean it's always the same time. It can still vary a lot, as long as it's below the constant. 2021-05-18 02:07:58 --> bazul (bazul@38.189.189.46.rev.vodafone.pt) has joined #python 2021-05-18 02:07:59 deniska of course typically you'd discuss a more useful bound 2021-05-18 02:08:07 deniska a lower one :) 2021-05-18 02:08:25 kevr is there a way to hook some code into Alembic's env.py to be run _only_ when `alembic` is run? I've got some tests that use the env.py path eventually, and it contains fileConfig and migration processes at the module level. 2021-05-18 02:09:25 kevr This isn't good for testing, because it modifies the logging module for Alembic. 2021-05-18 02:09:31 kevr completely silencing test logs. 2021-05-18 02:09:36 leduyquang753 Wulf Then how about O(n)? 2021-05-18 02:09:37 deniska kevr: perhaps split the part which is common in another module? 2021-05-18 02:09:59 <-- mumixam (~m@unaffiliated/mumixam) has quit (Ping timeout: 245 seconds) 2021-05-18 02:10:00 leduyquang753 If you say O(n) is the same O(1) then there has to be a global limit to it as n grows as well. 2021-05-18 02:10:07 deniska kevr: and then both env.py and the tests can import it 2021-05-18 02:10:16 Wulf leduyquang753: O(1) is a true subset of O(n). 2021-05-18 02:10:17 kevr deniska: as far as i know, env.py is automatically used when you run `alembic`, so i need some way to bootstrap it properly when i actually run `alembic` as opposed to importing the module somewhere. 2021-05-18 02:10:32 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 246 seconds) 2021-05-18 02:10:37 leduyquang753 OK it seems like we are talking about different things here. 2021-05-18 02:10:38 kevr ah, i see what you're saying. 2021-05-18 02:10:41 deniska kevr: no, I mean, add something like `import env_common` in env.py 2021-05-18 02:10:48 kevr yeah, gotcha 2021-05-18 02:10:56 --> SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has joined #python 2021-05-18 02:11:58 KirkMcDonald The real gotcha question is: What is the complexity of a dict lookup? 2021-05-18 02:12:03 Wulf leduyquang753: Biggest problem in my opinion is notation. People often write nonsense like f = O(n). It must be f ∈ O(n). 2021-05-18 02:12:16 kevr KirkMcDonald: O(1) amortized, most likely. 2021-05-18 02:12:22 kevr look into what data structure python uses for dict 2021-05-18 02:12:32 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-18 02:12:42 adder` Wulf, in CLRS they write `=` but they do point out that it means the function is in the set 2021-05-18 02:12:45 kevr in the worst case, it's probably O(logn) 2021-05-18 02:12:50 KirkMcDonald I believe the real true answer is O(n). 2021-05-18 02:12:51 kevr best case, O(1) 2021-05-18 02:12:57 kevr KirkMcDonald: you're wrong. 2021-05-18 02:13:03 adder` btw here's a mathy definition of O(f): 0 ≤ f(n) ≤ c g(n) 2021-05-18 02:13:11 Wulf And usually people mean Θ instead of O. 2021-05-18 02:13:14 KirkMcDonald kevr: It's a hash table that resolves collisions with (something very similar to) a linear probe. 2021-05-18 02:13:26 kevr so it's an open addressed hashtable? 2021-05-18 02:13:31 Wulf adder`: then they should just write it. 2021-05-18 02:13:37 kevr if so, it's O(1) amortized 2021-05-18 02:13:54 deniska "dicts go brrr" 2021-05-18 02:13:54 kevr and that gets worse the less capacity you give the hashtable 2021-05-18 02:14:01 --> pizdets (~pizdets@183.182.115.180) has joined #python 2021-05-18 02:14:50 kevr KirkMcDonald: the more extra room that the hashtable has to mod against, the less likely a collision occurs. 2021-05-18 02:15:06 kevr in general, load factors of 1.5~2 are used for openly addressed tables 2021-05-18 02:15:57 KirkMcDonald Those values seem like the reciprocal of the load factor. 2021-05-18 02:16:03 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-18 02:16:14 <-- Deesl (~bsdboy@redhat/deesl) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-18 02:16:15 kevr you're overcomplicating the issue 2021-05-18 02:16:19 KirkMcDonald If memory serves, the dict type aims for a load factor of 0.75. 2021-05-18 02:16:26 <-- cowsay (~quassel@47.188.41.16) has quit (Ping timeout: 240 seconds) 2021-05-18 02:16:44 leduyquang753 Just reread a bit about big O and yep it indeed is that we are thinking about it in different ways here. 2021-05-18 02:17:21 <-- seednode (~seednode@64-131-31-104.usfamily.net) has quit (Quit: Nihil supernum.) 2021-05-18 02:17:22 kevr anyway, you don't need people here to answer that for you 2021-05-18 02:17:30 kevr you can easily look up the data structures and operationg that python uses for a dict 2021-05-18 02:17:34 kevr operations* 2021-05-18 02:17:43 <-- Echoz (~chris@77.106.180.114) has quit (Quit: WeeChat 3.0.1) 2021-05-18 02:17:46 KirkMcDonald I have read the source. 2021-05-18 02:17:56 kevr then you have the answer. 2021-05-18 02:18:04 --> seednode (~seednode@64-131-31-104.usfamily.net) has joined #python 2021-05-18 02:19:24 --> contagious_meow (~contagiou@197.156.190.146) has joined #python 2021-05-18 02:19:42 --> will1 (willbuyvmn@gateway/shell/matrix.org/x-braaotfhakxopjea) has joined #python 2021-05-18 02:19:56 kevr anyway, you can think of the 0.75 load factor as it using 175% space for the structure in comparison with the 100% used for the actual values 2021-05-18 02:20:12 kevr so it has an additional 75% of space 2021-05-18 02:20:14 --> n00b101 (uid448161@gateway/web/irccloud.com/x-zfhnmirlphctnbjq) has joined #python 2021-05-18 02:20:16 kevr more than what it truly needs 2021-05-18 02:21:10 kevr which is quite similar to some other languages. i typically see most implementations using a load factor around 1.75 2021-05-18 02:21:11 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-18 02:21:24 Jimmy2027 hi, does someone know how I can save a pdf file in python? I converted a notebook to pdf with nbconvert.PDFExporter but I don't know how to save the resulting byteobject to a pdf file 2021-05-18 02:21:36 --> purplex88 (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-18 02:21:44 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-18 02:21:55 <-- LordRyan (~ryan@hashbang/bdfl) has quit (Ping timeout: 252 seconds) 2021-05-18 02:21:56 Wulf Jimmy2027: pathlib.Path("foo.pdf").write_bytes(pdf) 2021-05-18 02:22:10 Jimmy2027 Wulf: cool, so easy :) 2021-05-18 02:22:12 Jimmy2027 thanks! 2021-05-18 02:22:18 KirkMcDonald Reviewing the source, the load factor appears to actually be 2/3. 2021-05-18 02:22:34 kevr so 66% 2021-05-18 02:22:39 kevr still not bad. 2021-05-18 02:22:57 KirkMcDonald kevr: But, for all that this is so, it remains that the degenerate case is linear-time. 2021-05-18 02:23:01 kevr you can calculate the thetas based on that 2021-05-18 02:23:05 kevr if you really want specific bounds 2021-05-18 02:23:20 <-- puadxtub (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has quit (Quit: puadxtub) 2021-05-18 02:23:25 kevr KirkMcDonald: linear time? what? 2021-05-18 02:23:32 KirkMcDonald kevr: O(n) lookups. 2021-05-18 02:23:32 kevr how is that? 2021-05-18 02:23:37 kevr please, explain 2021-05-18 02:23:38 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-18 02:23:44 <-- dntreou (~yakiza@2a02:587:d87f:ccee:2cbb:b7a5:1e66:162f) has quit (Ping timeout: 245 seconds) 2021-05-18 02:23:44 kevr i don't see ANYTHING that tells me that it's O(n) 2021-05-18 02:23:46 --> carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-18 02:24:11 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Remote host closed the connection) 2021-05-18 02:24:11 KirkMcDonald I mean, the stupid case is if you define a __hash__ that returns a constant. But otherwise, if you manage to stuff in strings with hashes that all collide. 2021-05-18 02:24:28 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-18 02:24:30 kevr that scale is completely busted 2021-05-18 02:24:30 deniska unless you drop `def __hash__(self): return 0 # will optimize later to earn a raise` in a hot class, you probably won't encounter the O(n) case "in the wild" :) 2021-05-18 02:24:39 KirkMcDonald Though this was a more immediate issue before hash randomization was implemented. 2021-05-18 02:24:45 kevr linear means that, in worst case, you need to touch every single element in the container 2021-05-18 02:24:49 kevr that is not the case here. 2021-05-18 02:24:54 KirkMcDonald But it was a real actual security problem. 2021-05-18 02:24:57 sartan lol'd @ # raise comment 2021-05-18 02:24:59 kevr at least, not asymptotically. 2021-05-18 02:25:41 --> kosh (~kosh@p200300d08f149b00cd8fdf6dc3b66336.dip0.t-ipconnect.de) has joined #python 2021-05-18 02:25:45 sartan def __hash__(self): return str(self.__repr__) 2021-05-18 02:25:53 --> dntreou (~yakiza@45.139.214.115) has joined #python 2021-05-18 02:26:09 --> barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has joined #python 2021-05-18 02:26:11 kevr of course it's going to depend on your h(x). 2021-05-18 02:26:13 KirkMcDonald kevr: Are you familiar with this security issue that prompted the addition of hash randomization? It exploited this linear-time behavior for dict lookups. 2021-05-18 02:26:19 --> cowsay (~quassel@47.188.41.16) has joined #python 2021-05-18 02:26:40 kevr if you have references 2021-05-18 02:26:43 kevr post them 2021-05-18 02:26:56 KirkMcDonald Basically, a lot of web applications take, like, GET parameters and stuff 'em in a dict. 2021-05-18 02:26:58 kevr i typically don't listen to what people hear or what people think, i want some authoritative source on the matter. 2021-05-18 02:27:09 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 268 seconds) 2021-05-18 02:27:12 sartan that sounds unnecessarily hostile 2021-05-18 02:27:43 KirkMcDonald So if you know enough about Python's hash function (which is notably non-random, as these things go), it was possible to craft keys which would collide with one other, which meant you could craft a malicious request. 2021-05-18 02:27:57 kevr the hash function is totally up to the object 2021-05-18 02:28:01 KirkMcDonald And slow the web server to a crawl. 2021-05-18 02:28:05 --> mumixam (~m@unaffiliated/mumixam) has joined #python 2021-05-18 02:28:09 KirkMcDonald The str type's hash function, specifically. 2021-05-18 02:28:36 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-18 02:28:36 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 02:28:39 sartan just a few weeks ago i was actually very interested in how the internal has function behaved, but couldn't find much details on its actual implementation 2021-05-18 02:28:41 KirkMcDonald The Python 2 str type, more specifically, since we're going a bit back in time, here. 2021-05-18 02:28:51 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 02:28:59 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-18 02:29:26 kevr i'd like to see an example 2021-05-18 02:29:33 kevr one that we can reproduce 2021-05-18 02:29:36 kevr _now_ 2021-05-18 02:29:55 sartan I had a use case where I wanted to understand if the internal python hash() function would return deterministic hashes for the same data inputs, but i couldn't find how hash is implemented, if you have a resource that describes how it's written I'd also be interested 2021-05-18 02:30:07 deniska it's the issue from like 2.5 days? When was the hash randomization implemented? 2021-05-18 02:30:17 KirkMcDonald Well, here's the big from the time: https://bugs.python.org/issue13703 2021-05-18 02:30:22 KirkMcDonald bug* 2021-05-18 02:30:34 --> ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has joined #python 2021-05-18 02:30:37 --> ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has joined #python 2021-05-18 02:31:03 --> salitos (~contagiou@197.156.190.239) has joined #python 2021-05-18 02:31:11 kevr yeah, so, that's a bug 2021-05-18 02:31:27 kevr it's not what python settled on or anything. it was a bug that was unintended. 2021-05-18 02:31:31 KirkMcDonald It was a security issue which prompted the addition of a feature. 2021-05-18 02:31:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 02:31:41 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 240 seconds) 2021-05-18 02:31:51 kevr i gotta be honest, if they needed a security issue to prompt them to create a good hash function 2021-05-18 02:31:58 kevr that sounds pretty lazy 2021-05-18 02:32:01 kevr i doubt that's the case 2021-05-18 02:32:07 deniska they didn't change a hash function, they added randomization 2021-05-18 02:32:12 KirkMcDonald If you really wanted, it is possible to disable hash randomization. 2021-05-18 02:32:14 kevr ah. 2021-05-18 02:32:33 <-- SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has quit (Ping timeout: 240 seconds) 2021-05-18 02:32:37 KirkMcDonald But there isn't really a good reason to do so, heh. *Maybe* in the context of deterministic tests. 2021-05-18 02:32:58 KirkMcDonald But even then... 2021-05-18 02:32:58 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-18 02:32:58 zitter hi, what's best way to accomplish this command: $gunzip -c alldatabases.sql.gz | mysql -uroot -prootpw -h127.0.0.1 in Python? Using os module? 2021-05-18 02:33:28 KirkMcDonald All the moreso now that the dict type preserves insertion order. 2021-05-18 02:33:31 kevr KirkMcDonald: anyway, it's not linear. clearly these fools didn't cover what should have been covered, but it's been addressed. 2021-05-18 02:33:36 deniska zitter: https://docs.python.org/3/library/gzip.html python can read gzip files without relying on 3rd party executables 2021-05-18 02:33:43 kevr the "linearity" of it was just a biproduct. 2021-05-18 02:33:43 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-18 02:34:49 --> Mulugruntz (~Mulugrunt@i114-187-227-91.s41.a040.ap.plala.or.jp) has joined #python 2021-05-18 02:34:52 --> olx_ (~olx@141.44.146.18) has joined #python 2021-05-18 02:35:10 <-- contagious_meow (~contagiou@197.156.190.146) has quit (Ping timeout: 268 seconds) 2021-05-18 02:35:27 kevr that is, if it works out as they had intended, it was never linear. if you ran into this bug and abused it, sure, maybe you got linear results, but that is not a quality of the algorithm itself. 2021-05-18 02:35:37 KirkMcDonald kevr: I guess I find it weird to call it amortized; it assumes the hash function is in fact a good, random hash function, in the context of something that's supposed to measure worst-case complexity. 2021-05-18 02:35:37 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-18 02:35:42 kevr it is something unintended. 2021-05-18 02:35:44 --> stealth_ (~stealth_@216-197-160-97.regn.static.sasknet.sk.ca) has joined #python 2021-05-18 02:36:16 kevr KirkMcDonald: we're talking about the data structure, not the gross misuse of it 2021-05-18 02:36:16 deniska zitter: I'd also consider going with one of the mysql db api drivers available for python instead of invoking `mysql` tool… but anyway, if you want to invoke other processes, look at subprocess module 2021-05-18 02:36:29 stealth_ this sure is interesting you can have `123.py` but you can't import it normally `from 123 import fun` 2021-05-18 02:36:54 KirkMcDonald kevr: It's still pretty simple to manufacture collisions when using ints as keys. 2021-05-18 02:36:58 deniska zitter: subprocess.run() covers 90% of what you typically need to invoke other executable 2021-05-18 02:37:14 zitter deniska, thanks. I agree with you. To decompress I can use gzip module and MySQLdb to import file? 2021-05-18 02:37:35 --> pyeverything (~mona@c-66-31-107-137.hsd1.ma.comcast.net) has joined #python 2021-05-18 02:37:38 --> carl-- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-18 02:37:51 deniska zitter: there're multiple modules to interact with mysql and I'm not sure which is recommended nowadays 2021-05-18 02:37:53 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-18 02:37:58 pyeverything do you know how I can modify this so it would work only when p is not None? verts = np.stack([p["pred_vertices_smpl"] for p in mocap_predictions]) 2021-05-18 02:38:15 kevr ass `if p is not None` at the end of your comprehension 2021-05-18 02:38:17 kevr add* 2021-05-18 02:38:20 KirkMcDonald pyeverything: What do you want to do when p is None? 2021-05-18 02:38:33 kevr er, if p is not None. 2021-05-18 02:38:34 deniska zitter: if dumping the file is the only ever sql you want to issue against the database, then going with invoking an executable doesn't sound like too terrible of an idea 2021-05-18 02:38:41 kevr yeah. 2021-05-18 02:38:42 pyeverything I only want this np.stack to work if p is not None 2021-05-18 02:38:46 pyeverything KirkMcDonald: 2021-05-18 02:38:53 deniska zitter: but if you also want to interact with the database in some other fashion, then use a driver, yes 2021-05-18 02:39:11 zitter ok TY 2021-05-18 02:39:17 kevr [p["pred_vertices_smpl"] for p in mocap_predictions if p is not None] 2021-05-18 02:39:17 --> ^elf^ (~elf@unaffiliated/elf) has joined #python 2021-05-18 02:39:18 sartan np.stack(p['pred_verticies_smpl'] if p and p.get('pred_verticies_smpl')) 2021-05-18 02:39:19 pyeverything since I am getting this error otherwise TypeError: 'NoneType' object is not subscriptable 2021-05-18 02:39:21 KirkMcDonald pyeverything: In other words, you want to ignore values for p which are None? Then what kevr said, just put `if p is not None` at the end of the comprehension. 2021-05-18 02:39:46 <-- carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Ping timeout: 240 seconds) 2021-05-18 02:39:48 sartan just looking at __getitem__ there, and thinking ahead two examples are better than one in case you run into that one next. 2021-05-18 02:40:32 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-18 02:40:50 pyeverything that worked but led to another problem. not sure if they are related. will spend sometimes on my own. thanks 2021-05-18 02:40:51 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 02:41:12 pyeverything local_cam = pred["pred_camera"].copy() -->> TypeError: 'NoneType' object is not subscriptable 2021-05-18 02:41:23 pyeverything I didn't have this problem before basically 2021-05-18 02:43:25 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-18 02:43:53 salitos Hi, what module would you recommend for parsing a pdf that has tabular data. Pdfminer has unretrivable data and padfplumber misses the headers. 2021-05-18 02:44:05 sartan pyeverything: pred is None 2021-05-18 02:44:28 <-- seds (~seds@irc.seds.nl) has quit (Read error: Connection reset by peer) 2021-05-18 02:44:35 Wulf salitos: I would try to find a generic pdf parser library and then write my own extractor. 2021-05-18 02:44:58 Wulf salitos: for quick+dirty perhaps filter through qpdf (decrypt, decompress, etc.) and then use regex. 2021-05-18 02:45:02 <-- realies (~realies@unaffiliated/realies) has quit (Ping timeout: 268 seconds) 2021-05-18 02:45:14 --> wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has joined #python 2021-05-18 02:45:33 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-18 02:46:04 deniska you can't really "parse PDFs" you can "extract data from a PDF some specific tool is making so you know the order of fields and stuff" 2021-05-18 02:46:24 --> seds (~seds@irc.seds.nl) has joined #python 2021-05-18 02:46:26 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-18 02:46:53 wyoung deniska: Depends how the PDF was constructed. If there a defined text blocks it would make it easier to parse. You could also use OCR as well if it's binary. 2021-05-18 02:47:02 --> philh (~philh@212.221.81.10) has joined #python 2021-05-18 02:47:27 <-- boxr (~boxr@panopticon.cybergaraget.org) has quit (Quit: Lost terminal) 2021-05-18 02:47:29 --> wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has joined #python 2021-05-18 02:47:37 wyoung If the PDF was format a specific way you could indeed parse it. 2021-05-18 02:47:41 <-- ^elf^ (~elf@unaffiliated/elf) has left #python ("Leaving") 2021-05-18 02:47:45 salitos I think the customization is a great idea Wulf, hadn't thought of that but I think this should provide flexibility esp. if pdfs are expected to be static. 2021-05-18 02:47:48 deniska wyoung: well, hopefully a PDF you are parsing is not a scan of a word document printout with excel screenshots in it 2021-05-18 02:48:10 wyoung deniska: hopefully not, you would need to use some OCR and maybe some ML to sort that out. 2021-05-18 02:48:56 salitos deniska, the pdf is fully digital. 2021-05-18 02:49:31 <-- jay-m_ (~jay-m@41.205.30.141) has quit (Ping timeout: 265 seconds) 2021-05-18 02:49:38 wyoung salitos: As in it wasn't scanned and is not in a binary format? 2021-05-18 02:49:50 deniska I looked into parsing PDFs to better adapt them to label printers we have, I quickly gave up and went with ImageMagick/pillow route, just resizing-cropping-dithering them in a specific way :) 2021-05-18 02:50:07 kevr kinky 2021-05-18 02:50:30 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-18 02:50:41 <-- tjm (ninex@safest.space) has quit (Ping timeout: 240 seconds) 2021-05-18 02:51:33 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-18 02:52:07 salitos Wyoung im certain it wasn't scanned but i'm not sure of whether its binary or ascii, let me try to look that up 2021-05-18 02:53:34 deniska In the end I get a ZPL string with a single bitmap field in it which you can just send directly via printer port or tcp and it just prints 2021-05-18 02:53:39 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-18 02:53:51 deniska no need for drivers, headless pdf viewers and such 2021-05-18 02:54:09 <-- somis (~somis@149.56.153.177) has quit (Ping timeout: 245 seconds) 2021-05-18 02:54:13 --> v01d4lph4 (~v01d4lph4@122.160.65.250) has joined #python 2021-05-18 02:54:16 --> antonymcgreen (~Thunderbi@95.73.236.199) has joined #python 2021-05-18 02:54:25 <-- sazawal (~sazawal@2409:4043:2e13:7bc:c49c:fde5:6481:4d02) has quit (Quit: Leaving) 2021-05-18 02:54:26 <-- antonymcgreen (~Thunderbi@95.73.236.199) has quit (Client Quit) 2021-05-18 02:54:41 deniska (alternative title: I wrote a printer driver in python) 2021-05-18 02:56:05 <-- powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Ping timeout: 250 seconds) 2021-05-18 02:56:11 <-- vidbina (~vid@45.139.215.53) has quit (Read error: Connection reset by peer) 2021-05-18 02:56:26 --> Heavy_Mettle (~Heavy_Met@2001:818:e84c:7f00:11f9:a469:587a:e16d) has joined #python 2021-05-18 02:56:48 deniska salitos: I think pdfreader was one of the modules I tried which was semi-promising? 2021-05-18 02:57:25 deniska it's not that modules are bad, it's just that they can't do a better job given a nature of the format 2021-05-18 02:57:29 salitos on tabular data? 2021-05-18 02:57:39 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Read error: Connection reset by peer) 2021-05-18 02:57:44 <-- Heavy_Mettle (~Heavy_Met@2001:818:e84c:7f00:11f9:a469:587a:e16d) has quit (Client Quit) 2021-05-18 02:58:08 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-18 02:58:09 deniska pdf has no concept of a table, it has words arranged on a page with some vertical and horizontal lines nearby 2021-05-18 02:58:11 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 02:58:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 02:58:46 <-- wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has quit (Ping timeout: 252 seconds) 2021-05-18 02:58:53 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-18 03:00:01 deniska the best you can typically get is a flat list of words (sentences), then, given that you work with PDFs made by a specific tool which uses a specific template, you can find where in this list tabular data you want begin 2021-05-18 03:00:32 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-18 03:00:42 deniska and then you know that data is coming in a specific order, because that's how invoices from a company X look 2021-05-18 03:00:46 --> yamz (~contagiou@197.156.190.148) has joined #python 2021-05-18 03:01:02 yamz deniska, so kinda like the Wulf route> 2021-05-18 03:01:32 deniska invoices from a company Y are generated by a different tool, so you'll need a different parser 2021-05-18 03:01:50 yamz also the pdf seems to have been created with iText which seems to genarate binary pdf formats 2021-05-18 03:01:56 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 03:01:57 deniska it's really like parsing html sites, except

with no attributes is the only allowed tag 2021-05-18 03:03:41 <-- LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has quit (Ping timeout: 240 seconds) 2021-05-18 03:04:14 <-- salitos (~contagiou@197.156.190.239) has quit (Read error: Connection reset by peer) 2021-05-18 03:05:12 <-- unluckyshrubber- (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-18 03:06:25 yamz thanks denisk, Wulf, creating a template to rearrange generic text seems to be the most robust option for wide applications, ill get to it 2021-05-18 03:07:11 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-18 03:07:17 --> antonymcgreen (~Thunderbi@95.73.236.199) has joined #python 2021-05-18 03:07:20 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-18 03:07:46 --> LordRyan (~ryan@hashbang/bdfl) has joined #python 2021-05-18 03:08:20 <-- yamz (~contagiou@197.156.190.148) has quit (Quit: Leaving) 2021-05-18 03:08:40 --> yamz (~contagiou@197.156.190.172) has joined #python 2021-05-18 03:08:48 --> def_jam (~eblip@unaffiliated/eblip) has joined #python 2021-05-18 03:09:04 --> Petrushka (~devcon@deathstar.devconproductions.org) has joined #python 2021-05-18 03:09:26 <-- eblip (~eblip@unaffiliated/eblip) has quit (Ping timeout: 240 seconds) 2021-05-18 03:09:40 deniska (opening a PDF file in inkscape also can be illuminating, I remember having to edit a PDF waybill in a pinch) 2021-05-18 03:10:09 deniska adding a line and changing totals :) 2021-05-18 03:11:12 <-- Xano (~Xano@2a00:23c4:420c:d700:fb87:815:3e08:be84) has quit (Remote host closed the connection) 2021-05-18 03:11:14 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-18 03:11:16 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 265 seconds) 2021-05-18 03:11:34 --> Xano (~Xano@2a00:23c4:420c:d700:464d:f833:ec5:73a5) has joined #python 2021-05-18 03:11:39 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has quit (Ping timeout: 245 seconds) 2021-05-18 03:12:04 <-- antonymcgreen (~Thunderbi@95.73.236.199) has quit (Client Quit) 2021-05-18 03:12:07 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 250 seconds) 2021-05-18 03:14:19 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 03:14:49 --> vladoski (~vladoski@2001:b07:add:d406:ef4f:9cec:7f13:e971) has joined #python 2021-05-18 03:15:22 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 03:15:26 astronavt circular imports :( 2021-05-18 03:15:38 astronavt is there a way around this, for type checking purposes? 2021-05-18 03:15:51 --> ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has joined #python 2021-05-18 03:16:36 kosh there is no problem with circular imports just how the importing is done 2021-05-18 03:16:49 kosh use import foo and not from foo import bar 2021-05-18 03:17:05 astronavt i thought the former would still break 2021-05-18 03:17:10 astronavt i can try it 2021-05-18 03:17:31 <-- vladoski (~vladoski@2001:b07:add:d406:ef4f:9cec:7f13:e971) has quit (Remote host closed the connection) 2021-05-18 03:17:32 KirkMcDonald The usual place where circular imports break is when you need to resolve module-level names at import time. 2021-05-18 03:17:33 astronavt here's the situation: in order to create my Application, i have to import FooHandler, but then each FooHandler instantiated by the Application will get a `.application` attribute which is the instance of Application. 2021-05-18 03:17:57 astronavt (this is tornado, for the curious) 2021-05-18 03:18:29 KirkMcDonald Deferring the resolution of module-level names until *after* import time (which is to say, until you're inside a function) mostly works around the problem. 2021-05-18 03:18:49 astronavt ah, let me try that 2021-05-18 03:19:05 astronavt well... the problem in this case is that i want to _annotate_ something 2021-05-18 03:19:09 KirkMcDonald Which is one reason to import modules, and not things inside of modules. 2021-05-18 03:19:21 KirkMcDonald (What kosh said, in other words.) 2021-05-18 03:19:37 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-18 03:19:45 astronavt i didn't realize that could work, i'll try it 2021-05-18 03:20:38 mihael How do I properly read and write json? I tried retrieving a request that returns a json object and writing it to a file using json.loads, but it writes the json with single quote so reading them with json.loads is giving me an error " 2021-05-18 03:20:51 mihael How do I properly read and write json? I tried retrieving a request that returns a json object and writing it to a file using json.loads, but it writes the json with single quote so reading them with json.loads is giving me an error "Expecting property name enclosed in double quotes" 2021-05-18 03:21:06 Wulf mihael: json.dump(obj, fp) 2021-05-18 03:21:08 KirkMcDonald mihael: If it is using single quotes, then it is not valid JSON. 2021-05-18 03:22:33 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-18 03:22:50 --> tjm (ninex@safest.space) has joined #python 2021-05-18 03:22:53 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-18 03:23:10 --> sylvain31 (~sylvain@lputeaux-658-1-125-129.w193-252.abo.wanadoo.fr) has joined #python 2021-05-18 03:23:20 astronavt KirkMcDonald kosh that worked! i didn't realize it would, great. one annoyance taken care of. 2021-05-18 03:23:44 kosh great 2021-05-18 03:23:55 pyeverything thanks sartan 2021-05-18 03:24:18 sartan I'm making gross assumptions on the file you're trying to read that isn't real j son, does with open(filename, 'r') as f: data_dict = ast.literal_eval(f.read()) work ? 2021-05-18 03:24:21 pyeverything could you please have a look at here https://github.com/facebookresearch/phosa/issues/40 "cams": global_cams[inds].astype(np.float32), error is IndexError: index 5 is out of bounds for axis 0 with size 5 2021-05-18 03:25:45 --> boxr (~boxr@panopticon.cybergaraget.org) has joined #python 2021-05-18 03:25:47 Wulf pyeverything: if size is 5, of course 5 is out of bounds? 2021-05-18 03:26:31 pyeverything so I am not sure how this code was working up until now and now not. It's not my code I am basically just running it. Wulf 2021-05-18 03:26:46 pyeverything Wulf: not sure how I go about figuring how to fix it 2021-05-18 03:26:48 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-18 03:27:43 pyeverything wulf inds = np.argsort(bboxes[:, 0]) this is ind 2021-05-18 03:27:44 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-18 03:27:51 Wulf pyeverything: I don't know np. 2021-05-18 03:28:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 03:28:31 pyeverything wulf inds is: [4 5 6 7 2 1 0 3] 2021-05-18 03:28:38 sylvain31 Hi, I would like to call a python lookup plugin from ansible, from another lookup plugin. It's probably a python dependencies trick, how Can in found the way to reach the original lookup code I want to call? here the lookup plugin I want to call https://github.com/ansible-collections/community.general/blob/main/plugins/lookup/flattened.py installed in my python venv /root/ansible_azure/lib/python3.6/site-packages/ansibl 2021-05-18 03:28:38 sylvain31 e_collections/community/general/plugins/lookup/flattened.py any hint? 2021-05-18 03:28:48 pyeverything np is numpy wulf 2021-05-18 03:28:57 Wulf pyeverything: yes. Still don't know it. 2021-05-18 03:29:16 pyeverything gotcha 2021-05-18 03:29:35 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:1d97:2a21:a75b:9085) has joined #python 2021-05-18 03:30:52 --> kiwi_banal (~kiwi_bana@43.245.87.205) has joined #python 2021-05-18 03:32:00 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-18 03:32:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 03:32:32 --> freebench__ (~freebench@92.253.251.226) has joined #python 2021-05-18 03:34:09 --> svinther (svinther@2a01:7e01::f03c:92ff:fe90:ad4f) has joined #python 2021-05-18 03:34:10 --> raek (~raek@2001:9b1:efe:3200:d250:99ff:fec0:e153) has joined #python 2021-05-18 03:36:22 --> contagious_meow (~contagiou@197.156.190.192) has joined #python 2021-05-18 03:36:43 <-- yamz (~contagiou@197.156.190.172) has quit (Ping timeout: 252 seconds) 2021-05-18 03:39:13 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-18 03:39:17 --> wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has joined #python 2021-05-18 03:42:00 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Ping timeout: 252 seconds) 2021-05-18 03:42:23 --> Fischerfredl1 (~Thunderbi@194.135.131.212) has joined #python 2021-05-18 03:42:33 <-- Fischerfredl (~Thunderbi@194.135.131.212) has quit (Ping timeout: 240 seconds) 2021-05-18 03:42:33 -- Fischerfredl1 is now known as Fischerfredl 2021-05-18 03:42:47 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-18 03:43:52 <-- Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has quit (Client Quit) 2021-05-18 03:44:08 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 265 seconds) 2021-05-18 03:45:09 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 03:45:17 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-18 03:45:41 <-- Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has quit (Ping timeout: 240 seconds) 2021-05-18 03:47:08 <-- wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has quit (Ping timeout: 246 seconds) 2021-05-18 03:47:26 <-- lmt (uid107697@gateway/web/irccloud.com/x-hhtymfkwjeyuucbx) has quit (Quit: Connection closed for inactivity) 2021-05-18 03:47:36 <-- pyeverything (~mona@c-66-31-107-137.hsd1.ma.comcast.net) has left #python 2021-05-18 03:47:57 --> Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has joined #python 2021-05-18 03:49:19 --> Ergo (~ergo@91.238.59.144) has joined #python 2021-05-18 03:49:47 --> wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has joined #python 2021-05-18 03:50:13 --> alexeyneudat (~alexeyneu@31.148.138.118) has joined #python 2021-05-18 03:53:00 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-18 03:53:42 <-- banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has quit (Quit: Connection closed) 2021-05-18 03:54:10 --> yeticheese (~yetichees@193.160.245.164) has joined #python 2021-05-18 03:57:41 --> ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has joined #python 2021-05-18 03:58:16 <-- Deknos (~deknos@unaffiliated/menace) has quit (Quit: Deknos) 2021-05-18 03:58:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 03:59:05 --> sinanislekdemir (~sinan@dsl-hkibng42-5673ca-177.dhcp.inet.fi) has joined #python 2021-05-18 03:59:05 <-- jayjo (~jayjo@unaffiliated/jayjo) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-18 03:59:30 --> jayjo (~jayjo@unaffiliated/jayjo) has joined #python 2021-05-18 04:00:17 --> securethemews (~securethe@2a00:23c4:1e98:8f00::4) has joined #python 2021-05-18 04:01:30 <-- contagious_meow (~contagiou@197.156.190.192) has quit (Read error: Connection reset by peer) 2021-05-18 04:01:34 --> salitos (~contagiou@154.122.209.161) has joined #python 2021-05-18 04:02:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 04:04:13 <-- Feuermagier (~Feuermagi@2a02:2488:4211:3400:7285:c2ff:fe22:172e) has quit (Remote host closed the connection) 2021-05-18 04:04:13 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 260 seconds) 2021-05-18 04:04:41 <-- kiwi_banal (~kiwi_bana@43.245.87.205) has quit (Quit: WeeChat 2.8) 2021-05-18 04:06:25 <-- chewyDelicious (~nooblet@ip2504f9e6.dynamic.kabel-deutschland.de) has quit (Ping timeout: 252 seconds) 2021-05-18 04:06:32 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-18 04:06:40 --> hendursa1 (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-18 04:06:48 <-- yeticheese (~yetichees@193.160.245.164) has quit 2021-05-18 04:08:19 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 245 seconds) 2021-05-18 04:09:40 --> chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 04:09:57 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Ping timeout: 240 seconds) 2021-05-18 04:10:09 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-18 04:10:14 <-- wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has quit (Ping timeout: 246 seconds) 2021-05-18 04:10:35 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 246 seconds) 2021-05-18 04:10:38 <-- salitos (~contagiou@154.122.209.161) has quit (Read error: Connection reset by peer) 2021-05-18 04:10:41 --> LabMonkey (~LabMonkey@2602:306:cf62:e270:7117:99a0:415c:2319) has joined #python 2021-05-18 04:10:53 --> salitos (~contagiou@154.122.209.161) has joined #python 2021-05-18 04:11:25 --> wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has joined #python 2021-05-18 04:11:55 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-18 04:12:11 <-- Jantz_ (~IceChat95@2407:7000:8d04:100:c52e:59de:7f14:beb9) has quit (Read error: Connection reset by peer) 2021-05-18 04:13:11 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-18 04:13:16 --> chewyDelicious (~nooblet@ip2504f9e6.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 04:13:37 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Quit: Leaving) 2021-05-18 04:13:44 <-- Mechanismus (~LabMonkey@2602:306:cf62:e270:25ea:b4ff:3664:6d8d) has quit (Ping timeout: 245 seconds) 2021-05-18 04:13:49 --> contagious_meow (~contagiou@154.122.209.161) has joined #python 2021-05-18 04:13:58 <-- salitos (~contagiou@154.122.209.161) has quit (Remote host closed the connection) 2021-05-18 04:14:24 <-- contagious_meow (~contagiou@154.122.209.161) has quit (Max SendQ exceeded) 2021-05-18 04:14:48 --> jla (~jordi@64.225.79.195) has joined #python 2021-05-18 04:14:48 --> contagious_meow (~contagiou@154.122.209.161) has joined #python 2021-05-18 04:16:01 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 04:16:13 jla while 'pip3 install virtualenv ' ... now i do ' python3 -m env sat' and get error : ' /usr/bin/python3: No module named env' . Umh... what am i missing ? 2021-05-18 04:16:14 --> Jorgee (~e@187.161.241.250) has joined #python 2021-05-18 04:16:58 <-- contagious_meow (~contagiou@154.122.209.161) has quit (Read error: Connection reset by peer) 2021-05-18 04:17:31 --> contagious_meow (~contagiou@154.122.209.161) has joined #python 2021-05-18 04:18:07 --> Anas__G (~Thunderbi@196.203.67.2) has joined #python 2021-05-18 04:18:21 <-- EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has quit (Ping timeout: 240 seconds) 2021-05-18 04:18:27 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-18 04:20:38 --> LKoen (~LKoen@2a01cb0407597a00c5d4c5917c5d748f.ipv6.abo.wanadoo.fr) has joined #python 2021-05-18 04:20:43 Xeago jla: the module to call is `venv`: python3 -m venv sat 2021-05-18 04:20:58 jla ah ... ThX Xeago 2021-05-18 04:21:19 * jla sure, as per https://packaging.python.org/tutorials/installing-packages/#requirements-for-installing-packages 2021-05-18 04:21:26 <-- wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has quit (Ping timeout: 240 seconds) 2021-05-18 04:22:28 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 04:22:52 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 04:23:08 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Quit: Leaving) 2021-05-18 04:23:40 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-18 04:23:41 <-- plutoniix (~q@ppp-58-8-176-34.revip2.asianet.co.th) has quit (Ping timeout: 240 seconds) 2021-05-18 04:23:41 <-- sla3k (~ah@unaffiliated/sla3k) has quit (Ping timeout: 240 seconds) 2021-05-18 04:25:36 sylvain31 answering to myself: https://bpa.st/ACNQ 2021-05-18 04:27:30 --> c4017 (~c4017@S010664777dab66f3.vf.shawcable.net) has joined #python 2021-05-18 04:27:51 <-- c4017_ (~c4017@S010664777dab66f3.vf.shawcable.net) has quit (Ping timeout: 260 seconds) 2021-05-18 04:28:30 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 04:28:31 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 04:29:42 --> EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has joined #python 2021-05-18 04:30:28 <-- fabs (~fabs@samba.ethz.ch) has quit (Remote host closed the connection) 2021-05-18 04:30:46 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 252 seconds) 2021-05-18 04:31:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 04:33:31 --> fabs (~fabs@samba.ethz.ch) has joined #python 2021-05-18 04:34:14 --> runlevel7_ (runlevel7@gateway/vpn/privateinternetaccess/runlevel7) has joined #python 2021-05-18 04:34:49 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined #python 2021-05-18 04:35:41 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Ping timeout: 240 seconds) 2021-05-18 04:36:06 <-- dntreou (~yakiza@45.139.214.115) has quit (Ping timeout: 240 seconds) 2021-05-18 04:36:11 <-- runlevel7 (runlevel7@gateway/vpn/privateinternetaccess/runlevel7) has quit (Ping timeout: 240 seconds) 2021-05-18 04:36:15 --> jay-m_ (~jay-m@41.205.30.141) has joined #python 2021-05-18 04:36:47 --> bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-18 04:37:33 graingert jla: no need to install virtualenv for `venv` support 2021-05-18 04:37:39 <-- chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-18 04:37:46 graingert jla: you can use `python3 -m virtualenv` if you do want that though 2021-05-18 04:37:48 --> Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has joined #python 2021-05-18 04:37:50 --> chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 04:38:08 --> plutoniix (~q@ppp-58-8-176-34.revip2.asianet.co.th) has joined #python 2021-05-18 04:38:36 <-- tsujp (a32f386b@163.47.56.107) has quit (Quit: Connection closed) 2021-05-18 04:39:33 --> dntreou (~yakiza@vpn1.datalogix.com) has joined #python 2021-05-18 04:39:51 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-18 04:40:18 <-- Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-05-18 04:41:29 --> teut (b6453d94@gateway/web/cgi-irc/kiwiirc.com/ip.182.69.61.148) has joined #python 2021-05-18 04:41:33 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-18 04:41:44 teut https://dpaste.org/AFa5 2021-05-18 04:41:55 teut what does this means? 2021-05-18 04:42:14 bjs teut: it means you tried to unpack an int, and you can't do that because it is not iterable. 2021-05-18 04:42:23 teut it doesnt seem so 2021-05-18 04:42:26 --> Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has joined #python 2021-05-18 04:42:52 teut [1]*5 mean [1, 1, 1, 1, 1] 2021-05-18 04:42:54 bjs teut: it doesn't seem what? 2021-05-18 04:43:02 bjs teut: yes that's not the unpacking then 2021-05-18 04:43:03 teut that's the goal 2021-05-18 04:43:35 teut yes thats multiplication 2021-05-18 04:44:26 teut oops items 2021-05-18 04:44:53 --> c4017_ (~c4017@S010664777dab66f3.vf.shawcable.net) has joined #python 2021-05-18 04:44:59 --> omenius13337 (~omenius@dsl-hkibng22-54f98c-160.dhcp.inet.fi) has joined #python 2021-05-18 04:45:36 -- omenius13337 is now known as omenius 2021-05-18 04:45:54 <-- c4017 (~c4017@S010664777dab66f3.vf.shawcable.net) has quit (Ping timeout: 268 seconds) 2021-05-18 04:45:57 <-- joocain2_ (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 240 seconds) 2021-05-18 04:46:21 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 04:46:29 <-- GrouchyHedgehog (~jpedrick@c-69-249-204-148.hsd1.pa.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-18 04:46:42 --> krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has joined #python 2021-05-18 04:47:53 <-- alexeyneudat (~alexeyneu@31.148.138.118) has quit (Quit: Leaving) 2021-05-18 04:47:54 <-- omenius1337 (~omenius@2001:2003:f58c:a000:d1ae:433d:4e57:9e26) has quit (Ping timeout: 245 seconds) 2021-05-18 04:48:27 teut what is the way but to resolve these kind of not very verbose errors 2021-05-18 04:48:44 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 246 seconds) 2021-05-18 04:49:12 teut IndexError or ValueError, these types are quite verbose but these other kinds can take quite a lot of time for some bigger code 2021-05-18 04:50:41 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-18 04:50:45 bjs teut: what do you mean "not very verbose" 2021-05-18 04:50:54 bjs there was only 1 place on that line you did any unpacking, so it had to be there. 2021-05-18 04:51:26 bjs it even told you why: it was an int not an iterable 2021-05-18 04:51:29 teut but I dont think I did unpacking anywhere 2021-05-18 04:52:02 bjs teut: well then, the answer is obvious: you need to learn the language better so you know what terms like "unpacking" mean. `for x, y in ...` and `x, y = ...` are unpacking operations 2021-05-18 04:53:05 --> mozgalom_ (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has joined #python 2021-05-18 04:53:07 bjs teut: the error said what went wrong, on what line, and why. It seems pretty verbose to me. Ideally it'd also have the column number, and maybe soon it will. 2021-05-18 04:53:16 --> YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has joined #python 2021-05-18 04:53:32 --> honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 04:55:52 --> Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has joined #python 2021-05-18 04:56:17 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-18 04:56:58 --> darksun (~darksun@unaffiliated/darksun) has joined #python 2021-05-18 04:57:54 teut yes you are right, I did not know these facts about unpacking 2021-05-18 04:58:02 --> Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has joined #python 2021-05-18 04:58:05 --> singularity00 (~singulari@85.187.64.126.client.entry.bg) has joined #python 2021-05-18 04:58:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 04:58:23 teut values is a list , so that means??? j is what then? 2021-05-18 04:58:53 teut shouldnt it give IndexError? 2021-05-18 04:58:59 bjs teut: well, the unpacking failed, there is no i or j 2021-05-18 04:59:05 teut j has nothing to uterate upon 2021-05-18 04:59:08 teut i* 2021-05-18 04:59:09 bjs teut: no, it didn't try index anything. it tried to unpack them 2021-05-18 04:59:26 bjs teut: yes there is no i or j in the failed run because it failed to unpack them 2021-05-18 04:59:35 teut ok so parsing failed at that step 2021-05-18 04:59:39 bjs teut: no 2021-05-18 04:59:42 bjs teut: the unpacking failed? 2021-05-18 04:59:47 teut ok 2021-05-18 04:59:49 bjs the error is *very* clear 2021-05-18 05:00:04 teut I need more experience 2021-05-18 05:00:31 bjs teut: `x, y = 5` this will fail with the same error 2021-05-18 05:00:51 bjs you cannot say anything about x and y, the unpacking failed and so x and y do not exist 2021-05-18 05:00:59 teut in the error "int" was mentioned of 2021-05-18 05:01:07 bjs teut: yes. 2021-05-18 05:01:07 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-18 05:01:15 bjs teut: the line I just gave, gives you the same error 2021-05-18 05:01:17 teut oh right 2021-05-18 05:01:19 bjs teut: try run it: `i, j = 5` 2021-05-18 05:01:24 teut that means this what youu said 2021-05-18 05:01:34 teut thanks 2021-05-18 05:01:38 teut now its clear 2021-05-18 05:01:40 Kingsy how do I check if some_list[0] exists before I access it? 2021-05-18 05:01:51 bjs Kingsy: `if len(some_list) > 0` 2021-05-18 05:01:58 bjs Kingsy: or just try access it and catch the IndexError you get 2021-05-18 05:02:04 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 05:02:05 teut try: IndexError: 2021-05-18 05:02:12 bjs teut: that is not the syntax no 2021-05-18 05:02:13 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 05:02:21 Kingsy cheers 2021-05-18 05:02:26 teut except IndexError* 2021-05-18 05:02:32 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-18 05:02:49 teut I stop coding a few days and I forget a hell lot of info 2021-05-18 05:02:56 --> salitos (~contagiou@197.156.190.131) has joined #python 2021-05-18 05:03:37 <-- contagious_meow (~contagiou@154.122.209.161) has quit (Ping timeout: 252 seconds) 2021-05-18 05:03:47 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-18 05:03:54 <-- salitos (~contagiou@197.156.190.131) has quit (Read error: Connection reset by peer) 2021-05-18 05:04:08 <-- teut (b6453d94@gateway/web/cgi-irc/kiwiirc.com/ip.182.69.61.148) has quit (Quit: Connection closed) 2021-05-18 05:04:15 --> bbear (~bbear@2a01:e34:ec2b:d430:5dad:2c6a:7f31:a197) has joined #python 2021-05-18 05:04:16 --> salitos (~contagiou@197.156.190.167) has joined #python 2021-05-18 05:04:47 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 250 seconds) 2021-05-18 05:05:41 --> onizu (uid373383@gateway/web/irccloud.com/x-juflgreizrpmgdzx) has joined #python 2021-05-18 05:08:14 --> tomg (tomg@64-7-151-80.border7-dynamic.dsl.sentex.ca) has joined #python 2021-05-18 05:08:29 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-18 05:08:35 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 260 seconds) 2021-05-18 05:08:54 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-18 05:11:01 <-- cliluw (~cliluw@unaffiliated/cliluw) has quit (Ping timeout: 260 seconds) 2021-05-18 05:11:04 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-18 05:11:52 <-- Abrax (~Abrax@unaffiliated/abrax) has quit (Quit: Leaving) 2021-05-18 05:13:30 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-18 05:13:54 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-18 05:14:11 <-- jokerjosh113 (~jokerjosh@75.168.101.255) has quit (Ping timeout: 240 seconds) 2021-05-18 05:15:42 johnjay it's because code is like fresh pasta or cheeseburgers 2021-05-18 05:15:49 johnjay it goes stale or rots really fast 2021-05-18 05:16:17 johnjay that's why putting lots of blocks of commented out code is bad 2021-05-18 05:16:35 --> Nik79 (4d7c73fe@77.124.115.254) has joined #python 2021-05-18 05:16:36 --> rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has joined #python 2021-05-18 05:16:58 --> pro_z (~pro_z@37.214.71.198) has joined #python 2021-05-18 05:18:33 bjs isn't the way you make dried pasta you start with fresh pasta and let it go stale 2021-05-18 05:18:36 bjs and it lasts a long time 2021-05-18 05:19:50 Nik79 Hi, I have an application that works with some big (50MB~) binary dependencies (which are versioned as well, means they can be updated), what is the best way to manage it in my repo? commit these files will be a problem, using git LFS will be a problem to because that in order to test a dependency (on my CI server) I have to commit it, the only 2021-05-18 05:19:50 Nik79 other option I know is to store it on S3 or any other storage and write a script that download these binaries (using a manifest file that describe their verions), Anyone knows any application that deal with this issue to take a look on their solutions? ty! 2021-05-18 05:19:51 --> tm007 (uid287041@gateway/web/irccloud.com/x-kuisrgxhnjqrfejm) has joined #python 2021-05-18 05:20:08 johnjay dunno. when i make bread it molds after 3-4 days 2021-05-18 05:20:21 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 260 seconds) 2021-05-18 05:23:56 <-- dntreou (~yakiza@vpn1.datalogix.com) has quit (Ping timeout: 252 seconds) 2021-05-18 05:24:09 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 245 seconds) 2021-05-18 05:24:55 --> jokerjosh113 (~jokerjosh@75-168-71-178.mpls.qwest.net) has joined #python 2021-05-18 05:26:09 --> lucad111 (~lucad111@linaro/lucad111) has joined #python 2021-05-18 05:28:37 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 05:30:14 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-18 05:31:13 --> Abrax (~Abrax@unaffiliated/abrax) has joined #python 2021-05-18 05:31:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 05:31:40 --> cerill (~alxric@h-155-4-198-153.A785.priv.bahnhof.se) has joined #python 2021-05-18 05:32:00 cerill Is there a way I can iterate over two enums at the same time? 2021-05-18 05:34:05 <-- NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Read error: No route to host) 2021-05-18 05:34:20 amo cerill, how do you imagine that should work? 2021-05-18 05:34:41 --> NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-18 05:34:44 amo like cogs in two wheels? 2021-05-18 05:34:52 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-18 05:35:19 <-- singularity00 (~singulari@85.187.64.126.client.entry.bg) has quit (Quit: The true sign of intelligence is not knowledge but imagination.) 2021-05-18 05:35:48 cerill amo: I am not sure how it would work, I don't really fully understand it 2021-05-18 05:35:53 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-ojoifoaughrtbavv) has quit (Quit: Connection closed for inactivity) 2021-05-18 05:36:25 amo cerill, okay, let's go the other way round. what have you got and what do you expect should be the output? 2021-05-18 05:37:02 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 05:37:02 amo no explanation, just an example 2021-05-18 05:37:18 cerill amo: I have two different enums, lets say one is Weekdays (containing 5 strings) and another is Weekend (containing two strings) so I want to be able to do one loop that prints out all 7 values 2021-05-18 05:37:30 amo no explanation, just an example please ;) 2021-05-18 05:37:43 amo use bpaste preferrably 2021-05-18 05:38:47 <-- olx_ (~olx@141.44.146.18) has quit (Read error: Connection reset by peer) 2021-05-18 05:39:39 <-- Guest20 (~textual@192.146.154.3) has quit (Quit: ZZZzzz…) 2021-05-18 05:39:44 --> ezra-s (~ezra-s@apache/committer/dferradal) has joined #python 2021-05-18 05:39:51 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 260 seconds) 2021-05-18 05:39:53 <-- n00b101 (uid448161@gateway/web/irccloud.com/x-zfhnmirlphctnbjq) has quit (Quit: Connection closed for inactivity) 2021-05-18 05:40:28 cerill https://bpa.st/SY3A something like that, obviously that code doesnt work 2021-05-18 05:41:18 <-- irc_user (uid423822@gateway/web/irccloud.com/x-fgagemztrqwqczme) has quit (Quit: Connection closed for inactivity) 2021-05-18 05:41:21 --> DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has joined #python 2021-05-18 05:41:37 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 250 seconds) 2021-05-18 05:42:06 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-18 05:42:14 --> fbiagent_ (~fbiagent@unaffiliated/fbiagent) has joined #python 2021-05-18 05:42:38 <-- fbiagent (~fbiagent@unaffiliated/fbiagent) has quit (Ping timeout: 252 seconds) 2021-05-18 05:42:57 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-18 05:43:59 <-- swensson (9eaefc22@h-158-174-252-34.NA.cust.bahnhof.se) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 05:44:46 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 240 seconds) 2021-05-18 05:45:32 --> botnet (~quassel@167.98.189.66) has joined #python 2021-05-18 05:45:37 <-- botnet (~quassel@167.98.189.66) has quit (Client Quit) 2021-05-18 05:45:44 nedbat cerill: for day in itertools.chain(Weekdays, Weekends): print(day.name) 2021-05-18 05:45:56 ezra-s hello, I am trying to search in the documentation but I can't find it. Is there a way to compile Python 3.9.5 from source to just have the libraries? I am doing so to be able to compile another software, nghttp2, I don't need pip, tests or anything else, I could try to cull after make install but I am not sure of that. If anyone can point to a guide or document? Thanks in advance. 2021-05-18 05:46:34 cerill nedbat: Thank you! Exactly what I was looking for 2021-05-18 05:46:44 nedbat ezra-s: would it be bad to build the whole thing? 2021-05-18 05:46:52 --> botnet (quassel@gateway/vpn/protonvpn/botnet) has joined #python 2021-05-18 05:46:53 amo another win for "no explanation, just an example" ;p 2021-05-18 05:48:06 <-- Anas__G (~Thunderbi@196.203.67.2) has quit (Quit: Anas__G) 2021-05-18 05:48:23 --> Anas__G (~Thunderbi@196.203.67.2) has joined #python 2021-05-18 05:51:36 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-18 05:52:01 <-- al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 252 seconds) 2021-05-18 05:52:47 --> Angelique (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-18 05:52:58 <-- jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has quit (Read error: Connection reset by peer) 2021-05-18 05:53:01 <-- Anas__G (~Thunderbi@196.203.67.2) has quit (Ping timeout: 260 seconds) 2021-05-18 05:53:20 ezra-s nedbat: it would not be bad at all, that's what I am doing now, I was just wondering because this will go inside a small "bundle" and I just need the libraries and considering disk space, security and all that, the less amount of necessary files the better. I am not too concerned though. 2021-05-18 05:53:40 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 252 seconds) 2021-05-18 05:54:00 nedbat ezra-s: sounds like picking the files you need out of a full build is the best way 2021-05-18 05:54:37 --> shenmicike (~cike@180.169.205.50) has joined #python 2021-05-18 05:55:49 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Ping timeout: 245 seconds) 2021-05-18 05:55:49 -- Angelique is now known as anthepro 2021-05-18 05:56:12 <-- leahey (~leahey@static.36.0.217.95.clients.your-server.de) has quit (Ping timeout: 268 seconds) 2021-05-18 05:56:26 --> shivam_ (~shivam___@45.113.100.202) has joined #python 2021-05-18 05:57:01 <-- Death916 (UserNick@unaffiliated/death916) has quit (Read error: Connection reset by peer) 2021-05-18 05:57:21 <-- salitos (~contagiou@197.156.190.167) has quit (Read error: Connection reset by peer) 2021-05-18 05:57:26 shivam_ Hi! What's the difference between https://bpa.st/N74A 2021-05-18 05:57:27 shivam_ and 2021-05-18 05:57:38 shivam_ road = ([0]*30)*30 2021-05-18 05:57:40 --> salitos (~contagiou@197.156.190.248) has joined #python 2021-05-18 05:57:56 shivam_ aren't both of them 2d list's? 2021-05-18 05:58:05 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-18 05:58:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 05:58:31 <-- hashworks (~hashworks@archlinux/trusteduser/hashworks) has left #python ("WeeChat 3.1") 2021-05-18 05:58:59 amo you are appending the value of j in a range 2021-05-18 05:59:06 ezra-s nedbat: yes, that will probably be my approach, assuming $target is where I installed the compiled source, I see inside lib/ there is a subdirectory called "python3.9" with lots of pyc files and tests, I was considering removing that one and pip/python files in bin/, to stick just with lib contents, not sure if that's wise though. 2021-05-18 06:00:23 amo shivam_, and no, your road = ([0]*30)*30 is 1d 2021-05-18 06:00:35 amo it's entirely different 2021-05-18 06:00:41 --> Rudd0 (~Rudd0@185.189.115.103) has joined #python 2021-05-18 06:01:14 nedbat ezra-s: what library are you trying to include? 2021-05-18 06:01:18 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-18 06:01:25 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 06:01:38 shivam_ amo, What is the simplest way to create a 2d array then? 2021-05-18 06:01:47 <-- ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-18 06:01:51 amo shivam_, what is your expected output? 2021-05-18 06:02:04 amo do you accept numpy? 2021-05-18 06:02:07 shivam_ I just need to create a 2d array, I am learning how indexing in those works 2021-05-18 06:02:09 nedbat shivam_: https://nedbatchelder.com/blog/201308/names_and_values_making_a_game_board.html 2021-05-18 06:02:11 <-- Abrax (~Abrax@unaffiliated/abrax) has quit (Quit: Leaving) 2021-05-18 06:02:17 <-- jla (~jordi@64.225.79.195) has quit (Ping timeout: 260 seconds) 2021-05-18 06:02:23 amo nedbat, cheater ^^ 2021-05-18 06:02:38 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-18 06:02:44 ezra-s nedbat: I am still investigating which exactly I need, nghttp2 complains it won't compile because Python libraries/version in the system are too old, compiling python from source and pointing nghttp2 to it did the trick 2021-05-18 06:02:48 nedbat amo: writing things down is a form of automation :) 2021-05-18 06:02:50 DPA [[*range(30)]]*30 2021-05-18 06:03:02 shivam_ okay so [[0]*30]*30 should work 2021-05-18 06:03:10 nedbat shivam_: does it work? 2021-05-18 06:04:19 shenmicike dp = [[0.0] * W for _ in range(H)] 2021-05-18 06:04:19 --> imp (~imp@186.205.11.214) has joined #python 2021-05-18 06:04:19 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-18 06:04:19 nedbat DPA: i don't think that does what you want. 2021-05-18 06:04:19 shenmicike dp = [[0.0] * W for _ in range(H)] create a W x H 2d array with default 0.0 2021-05-18 06:04:19 <-- cerill (~alxric@h-155-4-198-153.A785.priv.bahnhof.se) has quit (Quit: WeeChat 2.9) 2021-05-18 06:04:19 shivam_ nedbat, it does not :') 2021-05-18 06:04:19 nedbat shivam_: that blog post explains why 2021-05-18 06:04:27 --> yamz (~contagiou@154.123.231.103) has joined #python 2021-05-18 06:04:52 nedbat shivam_, DPA: you are getting 30 references to the same 30-element list 2021-05-18 06:05:00 ezra-s I understand what I read so far is not too revealing "The Python bindings require the following packages: cython >= 0.19 python >= 3.8 python-setuptools" 2021-05-18 06:05:01 amo can we skip the whole list-of-lists and go straight for numpy, please? ^^ 2021-05-18 06:05:14 DPA nedbat: 30 lists with integers 0 to 29 inclusive, same as the initial paste there: https://bpa.st/N74A 2021-05-18 06:05:21 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-18 06:05:28 amo indexing standard list-of-lists is so annoying 2021-05-18 06:05:38 nedbat DPA: do this: b = [[*range(30)]]*30; b[0][0] = 999; print(b) 2021-05-18 06:05:44 --> rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has joined #python 2021-05-18 06:05:48 DPA Oh 2021-05-18 06:06:39 ezra-s anyways, I think I got my answer, I will compile, and remove bits afterwards and test if something breaks afterwards. Thanks for the hints nedbat. 2021-05-18 06:06:53 <-- botnet (quassel@gateway/vpn/protonvpn/botnet) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-18 06:06:54 shivam_ Woah! Now I understand 2021-05-18 06:07:08 shivam_ Using range() solves the issue 2021-05-18 06:07:18 shivam_ Thanks nedbat amo 2021-05-18 06:07:18 <-- salitos (~contagiou@197.156.190.248) has quit (Ping timeout: 268 seconds) 2021-05-18 06:07:20 --> klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has joined #python 2021-05-18 06:07:26 amo shivam_, you're welcome 2021-05-18 06:08:16 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 06:08:25 --> Abrax (~Abrax@unaffiliated/abrax) has joined #python 2021-05-18 06:09:55 <-- br0lly (~doctor@ip-111-164.ip4.balmont.pl) has quit (Quit: leaving) 2021-05-18 06:12:14 --> aslicedbanjo (~aslicedba@host86-150-115-66.range86-150.btcentralplus.com) has joined #python 2021-05-18 06:12:59 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 260 seconds) 2021-05-18 06:13:30 --> doev (549d7443@p549d7443.dip0.t-ipconnect.de) has joined #python 2021-05-18 06:14:23 --> bxsx (~x@unaffiliated/bxsx) has joined #python 2021-05-18 06:14:27 <-- Psyb3rN4ut (~psybernau@147.161.13.99) has quit (Read error: Connection reset by peer) 2021-05-18 06:15:14 --> Sheila (~aerdan@2001:19f0:5:58ef:5400:1ff:fe8a:2585) has joined #python 2021-05-18 06:15:53 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 246 seconds) 2021-05-18 06:16:20 --> Catatronic (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-18 06:16:41 Sheila hi, I'm a developer with Alpine and Adélie, and I was informed by ncopa that Python was looking for someone to sponsor a musl buildbot? who would I need to talk to/where to work on that? 2021-05-18 06:17:15 bxsx I noticed that asyncio doc has removed "This module provides infrastructure for writing single-threaded concurrent code using coroutines" in Python3.7. Is there any change in Py3.7 that makes this statement invalid? 2021-05-18 06:17:52 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 252 seconds) 2021-05-18 06:17:57 _habnabit Sheila, #python-dev would be the place to ask 2021-05-18 06:18:05 Sheila okay, thanks. 2021-05-18 06:21:42 --> ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has joined #python 2021-05-18 06:22:49 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-18 06:23:02 --> mcope (~mcope@88.98.90.199) has joined #python 2021-05-18 06:26:07 bxsx where are source files of the docs.python.org? 2021-05-18 06:27:22 graingert bxsx: it's a package I guess 2021-05-18 06:27:52 ChrisWarrick bxsx: the asyncio docs were rewritten in 3.7 to be much more approachable, and this statement isn’t, so I guess that’s why it was dropped 2021-05-18 06:28:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 06:30:25 <-- jtfidje (~quassel@85.109-247-240.customer.lyse.net) has quit (Read error: Connection reset by peer) 2021-05-18 06:30:40 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Remote host closed the connection) 2021-05-18 06:30:52 --> jtfidje (~quassel@85.109-247-240.customer.lyse.net) has joined #python 2021-05-18 06:31:00 graingert https://github.com/python/cpython/blob/3.6/Doc/library/asyncio.rst 2021-05-18 06:32:10 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 06:32:11 graingert > asyncio is used as a foundation for multiple Python asynchronous frameworks that provide high-performance network and web-servers, database connection libraries, distributed task queues, etc. 2021-05-18 06:32:17 graingert Replaced with that 2021-05-18 06:32:35 graingert Foundation of which asynchronous frameworks? Tornado? 2021-05-18 06:32:56 <-- Nik79 (4d7c73fe@77.124.115.254) has quit (Quit: Connection closed) 2021-05-18 06:33:01 graingert Twisted has an asyncio shim, but it's not foundational 2021-05-18 06:33:04 --> Stanley|00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-18 06:33:10 graingert anyio has support for asyncio but again not foundational 2021-05-18 06:33:36 _habnabit graingert, shhh it's marketing speak. it doesn't mean anything 2021-05-18 06:35:51 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-18 06:35:57 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-18 06:36:11 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 240 seconds) 2021-05-18 06:36:14 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-18 06:37:39 IHasFinger Hi all, hope we are all well. I need help please. https://github.com/mementum/backtrader/blob/master/backtrader/feeds/pandafeed.py#L107 I am calling this like https://bpa.st/AJWQ but getting an error AttributeError: 'numpy.int64' object has no attribute 'lower' 2021-05-18 06:37:39 IHasFinger 2021-05-18 06:38:06 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-18 06:38:49 <-- klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-18 06:39:09 <-- lucad111 (~lucad111@linaro/lucad111) has quit (Quit: Leaving) 2021-05-18 06:39:19 <-- kini (~kini@unaffiliated/kini) has quit (Remote host closed the connection) 2021-05-18 06:39:59 <-- Ice__101 (~jorge@pool-72-95-136-29.pitbpa.fios.verizon.net) has quit (Ping timeout: 245 seconds) 2021-05-18 06:40:23 --> lucad111 (~lucad111@linaro/lucad111) has joined #python 2021-05-18 06:40:34 --> kini (~kini@unaffiliated/kini) has joined #python 2021-05-18 06:40:51 --> Psyb3rN4ut (~psybernau@147.161.13.243) has joined #python 2021-05-18 06:42:50 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 246 seconds) 2021-05-18 06:43:20 --> alexhugo (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 06:43:34 <-- alexhugo (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Read error: Connection reset by peer) 2021-05-18 06:44:44 bjs IHasFinger: I think it wants the columns to have actual names 2021-05-18 06:44:53 bjs not just be numbers, but it's hard to tell, from just this 2021-05-18 06:44:59 <-- rgr (~rgr@ip-109-42-112-115.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-18 06:45:15 --> alexhugo (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 06:45:19 <-- alexhugo (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Read error: Connection reset by peer) 2021-05-18 06:45:52 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 06:46:17 <-- Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has quit (Remote host closed the connection) 2021-05-18 06:46:38 --> Abo99 (4d7c73fe@77.124.115.254) has joined #python 2021-05-18 06:46:38 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 06:46:45 --> alexhugo (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 06:46:54 Abo99 Hi, there's an option to get the name of field as str of a dataclass? 2021-05-18 06:47:02 <-- alexhugo (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Read error: Connection reset by peer) 2021-05-18 06:47:07 <-- Stanley|00 (~stanley00@unaffiliated/stanley00) has quit (Remote host closed the connection) 2021-05-18 06:47:19 _habnabit Abo99, which field 2021-05-18 06:47:22 Abo99 I want to use the name and ensure a refactor will change this code as well 2021-05-18 06:47:26 --> Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has joined #python 2021-05-18 06:47:46 Abo99 @dataclass class A: my_field: str                 want to get 'my_field' somehow 2021-05-18 06:47:46 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-18 06:47:58 _habnabit Abo99, does your class only have one field ever? 2021-05-18 06:48:03 Abo99 Nope, multiple 2021-05-18 06:48:11 _habnabit Abo99, then which one do you want to 'get'? 2021-05-18 06:48:17 graingert _habnabit: What does that mean 2021-05-18 06:48:33 --> somis (~somis@149.56.153.186) has joined #python 2021-05-18 06:48:37 Abo99 I want to write something using A.my_field (if possible), to ensure refactor will change thie code as well 2021-05-18 06:49:15 _habnabit Abo99, i don't understand. how do you 'use' it without naming it? how do you know which field you want to 'get' it? 2021-05-18 06:49:31 --> amahl (~amahl@dxv5skybvn0ktk90bn7bt-3.rev.dnainternet.fi) has joined #python 2021-05-18 06:49:39 _habnabit Abo99, i think you might be focused on something that doesn't matter 2021-05-18 06:49:40 Abo99 I can name it, to write for example: A.my_field explicit 2021-05-18 06:50:38 _habnabit graingert, what does what mean 2021-05-18 06:50:43 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 06:51:28 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-18 06:51:51 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 06:52:03 graingert _habnabit: Asyncio marketing speak? 2021-05-18 06:52:11 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Ping timeout: 240 seconds) 2021-05-18 06:52:19 _habnabit graingert, it clearly wasn't written for a programmer to read 2021-05-18 06:53:02 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-18 06:55:15 --> jla (~jordi@64.225.79.195) has joined #python 2021-05-18 06:56:06 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Quit: = "") 2021-05-18 06:56:28 <-- Abo99 (4d7c73fe@77.124.115.254) has quit (Quit: Connection closed) 2021-05-18 06:57:14 <-- jla (~jordi@64.225.79.195) has left #python 2021-05-18 06:58:11 --> rgr (~rgr@ip-109-42-113-52.web.vodafone.de) has joined #python 2021-05-18 06:58:32 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 06:59:18 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Remote host closed the connection) 2021-05-18 06:59:46 --> fflori (~fflori@nat-wlan-uzh-89-206-64-008.uzh.ch) has joined #python 2021-05-18 07:00:00 <-- shivam_ (~shivam___@45.113.100.202) has quit (Quit: Leaving) 2021-05-18 07:00:20 graingert _habnabit: ??? 2021-05-18 07:00:28 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 07:00:42 _habnabit graingert, what? 2021-05-18 07:02:05 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 07:02:48 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-18 07:02:59 --> P1ckleRick (~X@2a00:23a8:98b:500:7c96:7936:dd60:75c6) has joined #python 2021-05-18 07:03:08 P1ckleRick Afternoon 2021-05-18 07:03:14 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Client Quit) 2021-05-18 07:03:34 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 07:03:52 --> salitos (~contagiou@102.166.67.188) has joined #python 2021-05-18 07:03:53 <-- yamz (~contagiou@154.123.231.103) has quit (Read error: Connection reset by peer) 2021-05-18 07:04:30 --> Zajt (c3438f6a@195-67-143-106.customer.telia.com) has joined #python 2021-05-18 07:04:59 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-18 07:05:25 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Client Quit) 2021-05-18 07:05:49 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 07:06:01 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Client Quit) 2021-05-18 07:06:19 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 07:06:32 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-18 07:07:55 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Client Quit) 2021-05-18 07:08:14 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 07:08:16 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 07:08:28 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-18 07:08:35 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Client Quit) 2021-05-18 07:08:42 --> LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has joined #python 2021-05-18 07:08:53 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 07:10:07 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-18 07:11:18 <-- finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Remote host closed the connection) 2021-05-18 07:11:30 nedbat P1ckleRick: hey there 2021-05-18 07:11:44 --> finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-18 07:12:19 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-18 07:13:25 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-18 07:13:43 --> swensson (9eaefc22@h-158-174-252-34.NA.cust.bahnhof.se) has joined #python 2021-05-18 07:13:55 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 07:14:54 <-- rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has quit (Quit: Connection closed) 2021-05-18 07:15:16 graingert _habnabit: Who's supposed to read it 2021-05-18 07:15:18 IHasFinger bjs, when I give it actual names I get this error "AttributeError: 'int' object has no attribute 'to_pydatetime'" which is referring to https://github.com/mementum/backtrader/blob/master/backtrader/feeds/pandafeed.py#L268 2021-05-18 07:15:20 <-- Zajt (c3438f6a@195-67-143-106.customer.telia.com) has quit (Quit: Connection closed) 2021-05-18 07:15:28 _habnabit graingert, idk.. managers? 2021-05-18 07:15:39 _habnabit graingert, like billboards in airports 2021-05-18 07:16:26 graingert _habnabit: asyncio is exhausting 2021-05-18 07:16:31 _habnabit graingert, agreed 2021-05-18 07:16:57 <-- Tk55 (~Tk55@2a02:a212:9303:c700:31f2:f264:c0de:240a) has quit (Ping timeout: 250 seconds) 2021-05-18 07:17:08 --> jokoon2 (~jokoon@unaffiliated/jokoon) has joined #python 2021-05-18 07:18:10 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-18 07:19:21 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 260 seconds) 2021-05-18 07:19:34 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 07:20:19 bjs IHasFinger: Python usually gives a whole traceback, which is much more useful than just a single line 2021-05-18 07:20:38 bjs IHasFinger: but presumably it's expecting something to be some kind of datetime 2021-05-18 07:22:31 <-- Death916 (UserNick@unaffiliated/death916) has quit (Read error: Connection reset by peer) 2021-05-18 07:22:42 --> ente_ (~ente_@p549968a8.dip0.t-ipconnect.de) has joined #python 2021-05-18 07:23:04 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 07:23:35 --> mangold (~mangold@198.98.183.135) has joined #python 2021-05-18 07:23:37 --> legola (~legola@unaffiliated/legola) has joined #python 2021-05-18 07:24:23 --> botnet (quassel@gateway/vpn/protonvpn/botnet) has joined #python 2021-05-18 07:24:23 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-18 07:25:00 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 268 seconds) 2021-05-18 07:25:22 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 07:26:24 --> Tk55 (~Tk55@ip-213-127-107-177.ip.prioritytelecom.net) has joined #python 2021-05-18 07:26:26 <-- mangold (~mangold@198.98.183.135) has quit (Read error: Connection reset by peer) 2021-05-18 07:28:27 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 07:28:51 <-- plutoniix (~q@ppp-58-8-176-34.revip2.asianet.co.th) has quit (Quit: Leaving) 2021-05-18 07:29:03 --> vaq (43f73f69@vaq/unaffiliated) has joined #python 2021-05-18 07:29:52 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-18 07:30:26 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-18 07:30:43 --> computeiro (~Wender@189.37.66.52) has joined #python 2021-05-18 07:30:49 <-- spiri (~spiri@unaffiliated/spiri) has quit (Quit: Leaving) 2021-05-18 07:31:17 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 07:31:37 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 07:31:55 <-- barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-18 07:33:52 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-18 07:34:31 --> techiethrive (dfe1ad1b@223.225.173.27) has joined #python 2021-05-18 07:34:31 <-- palooka-jock (~mike@45.126.44.146) has quit (Ping timeout: 260 seconds) 2021-05-18 07:35:48 <-- salitos (~contagiou@102.166.67.188) has quit (Read error: Connection reset by peer) 2021-05-18 07:35:54 --> contagious_meow (~contagiou@102.166.67.188) has joined #python 2021-05-18 07:36:04 --> qj (~qj@unaffiliated/qj) has joined #python 2021-05-18 07:36:25 <-- Abrax (~Abrax@unaffiliated/abrax) has quit (Quit: Leaving) 2021-05-18 07:36:42 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-18 07:37:05 <-- techiethrive (dfe1ad1b@223.225.173.27) has quit (Client Quit) 2021-05-18 07:38:04 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 265 seconds) 2021-05-18 07:39:39 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Remote host closed the connection) 2021-05-18 07:40:03 -- LabMonkey is now known as Mechanismus 2021-05-18 07:40:15 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-18 07:40:33 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-18 07:41:02 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 268 seconds) 2021-05-18 07:41:39 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 260 seconds) 2021-05-18 07:42:37 <-- Nact (~l@host-85-27-120-35.dynamic.voo.be) has quit (Ping timeout: 260 seconds) 2021-05-18 07:42:50 --> Nact (~l@host-85-27-120-35.dynamic.voo.be) has joined #python 2021-05-18 07:42:51 --> grateful (grateful@unaffiliated/grateful) has joined #python 2021-05-18 07:42:54 --> gobby252 (~gobby252@178.239.173.200) has joined #python 2021-05-18 07:44:50 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Ping timeout: 265 seconds) 2021-05-18 07:46:20 <-- llh (~coke@unaffiliated/llh) has quit (Read error: Connection reset by peer) 2021-05-18 07:46:42 --> mbandeir (~quassel@177.126.11.93) has joined #python 2021-05-18 07:47:05 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-18 07:47:13 Guest20 hi there 2021-05-18 07:47:22 Guest20 i had pip3 installed 2021-05-18 07:47:36 Guest20 when i do python3 -m pip3 install pyyaml 2021-05-18 07:47:39 Guest20 i get an error saying No module named pip3 2021-05-18 07:48:14 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-18 07:49:28 --> salitos (~contagiou@102.166.67.188) has joined #python 2021-05-18 07:49:28 nedbat Guest20: you want "python3 -m pip install pyyaml" 2021-05-18 07:49:38 --> afidegnum (~user@102.176.65.244) has joined #python 2021-05-18 07:49:50 Guest20 nedbat i get this FileNotFoundError: [Errno 2] No such file or directo 2021-05-18 07:50:08 --> bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has joined #python 2021-05-18 07:50:15 nedbat Guest20: can you pastebin the full command and output? 2021-05-18 07:50:25 Guest20 nedbat https://dpaste.org/edpC 2021-05-18 07:50:30 <-- contagious_meow (~contagiou@102.166.67.188) has quit (Read error: Connection reset by peer) 2021-05-18 07:51:07 nedbat Guest20: that looks very odd. How did you install Python? 2021-05-18 07:51:07 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 265 seconds) 2021-05-18 07:51:17 tumbleweed broken virtualenv? 2021-05-18 07:51:23 Guest20 nedbat python was already installed for me 2021-05-18 07:51:41 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-18 07:52:00 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-18 07:52:05 avu maybe try with -E 2021-05-18 07:52:18 Guest20 avu what is -E 2021-05-18 07:52:34 avu Guest20: it makes python ignore things like PYTHONPATH 2021-05-18 07:52:50 afidegnum hi, i'm able to print directory listings, but i'm a bit stuck on printing files in each directories. can you please give a gist of how do i proceed? here is what i have done so far: https://dpaste.org/2eyK 2021-05-18 07:53:00 avu Guest20: so `python3 -E -m pip install pyyaml` 2021-05-18 07:54:10 Guest20 still the same problem 2021-05-18 07:54:15 avu although now that I've seen that a virtualenv is activated, I think this is less likely to do something useful 2021-05-18 07:54:33 Guest20 avu how to solve this 2021-05-18 07:54:49 <-- Suwacc (~textual@45.248.77.164) has quit (Quit: Suwacc) 2021-05-18 07:54:54 avu Guest20: I would start by re-creating the virtualenv. How did you create it? 2021-05-18 07:55:29 Guest20 avu ython3 -m venv myenv 2021-05-18 07:55:29 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 07:55:39 Guest20 source myenv/bin/activate 2021-05-18 07:55:50 Guest20 avu how can i delete the venv 2021-05-18 07:56:05 avu ah, so it's not a virtualenv but a venv, I have almost zero experience with those 2021-05-18 07:56:12 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 07:56:15 avu Guest20: you run `deactivate` 2021-05-18 07:56:20 Guest20 yes that worked 2021-05-18 07:57:19 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-18 07:57:28 <-- shenmicike (~cike@180.169.205.50) has left #python 2021-05-18 07:58:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 07:58:55 --> shenmicike (~cike@180.169.205.50) has joined #python 2021-05-18 07:59:32 <-- botnet (quassel@gateway/vpn/protonvpn/botnet) has quit (Ping timeout: 268 seconds) 2021-05-18 07:59:42 --> Left_Turn (~Matthew@unaffiliated/turn-left/x-3739067) has joined #python 2021-05-18 07:59:50 --> Abrax (~Abrax@unaffiliated/abrax) has joined #python 2021-05-18 07:59:57 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-18 08:01:54 --> wender (~Wender@189.41.174.230) has joined #python 2021-05-18 08:02:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 08:02:45 --> urodna (~urodna@unaffiliated/urodna) has joined #python 2021-05-18 08:03:06 afidegnum any insight ? 2021-05-18 08:03:59 <-- salitos (~contagiou@102.166.67.188) has quit (Read error: Connection reset by peer) 2021-05-18 08:04:17 --> yamz (~contagiou@197.156.190.209) has joined #python 2021-05-18 08:04:34 --> dez (uid92154@fedora/deSouza) has joined #python 2021-05-18 08:04:39 <-- computeiro (~Wender@189.37.66.52) has quit (Ping timeout: 265 seconds) 2021-05-18 08:05:13 --> _till_ (~till@unaffiliated/till/x-7804721) has joined #python 2021-05-18 08:05:35 --> powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-18 08:05:49 --> Anas__G (~Thunderbi@197.26.109.196) has joined #python 2021-05-18 08:05:51 --> citizen418 (~martin@2001:6b0:17:fc09:d36b:1cb8:58a8:347f) has joined #python 2021-05-18 08:06:03 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-18 08:06:10 --> argento (~argent0@168.227.96.26) has joined #python 2021-05-18 08:06:39 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-18 08:06:58 --> sedeki (~textual@unaffiliated/sedeki) has joined #python 2021-05-18 08:07:24 --> ninjak (~ninjak@94-36-148-210.adsl-ull.clienti.tiscali.it) has joined #python 2021-05-18 08:07:46 <-- bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has quit (Remote host closed the connection) 2021-05-18 08:08:16 --> mangold (~mangold@198.98.183.139) has joined #python 2021-05-18 08:09:07 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 08:09:32 --> sadiq75 (8a80ae52@server1.rootdnsserver.com) has joined #python 2021-05-18 08:10:02 --> jlf (~user@pdpc/supporter/active/jlf) has joined #python 2021-05-18 08:10:18 very_sneaky afidegnum: the pathlib package might be worth looking at 2021-05-18 08:10:34 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-18 08:11:03 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Ping timeout: 260 seconds) 2021-05-18 08:11:03 afidegnum very_sneaky: i'm a bit confused on how to use it ? 2021-05-18 08:11:08 very_sneaky or `os.` - `os.listdir()` looks like it will do what you want 2021-05-18 08:11:24 --> NerosTie95622425 (~Neros@anancy-654-1-66-50.w109-217.abo.wanadoo.fr) has joined #python 2021-05-18 08:11:26 very_sneaky https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module 2021-05-18 08:11:28 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-18 08:11:55 --> stryek (uid332574@gateway/web/irccloud.com/x-fbphdrbyxaswszcp) has joined #python 2021-05-18 08:12:01 <-- doev (549d7443@p549d7443.dip0.t-ipconnect.de) has quit (Quit: Connection closed) 2021-05-18 08:12:13 --> TheBard (~TheBard@unaffiliated/thebard) has joined #python 2021-05-18 08:12:26 <-- Anas__G (~Thunderbi@197.26.109.196) has quit (Ping timeout: 260 seconds) 2021-05-18 08:12:30 very_sneaky afidegnum: example of iterating over files in a directory using pathlib: https://docs.python.org/3/library/pathlib.html#pathlib.Path.iterdir 2021-05-18 08:12:57 --> blyat-73 (~user@79.101.60.163) has joined #python 2021-05-18 08:12:58 <-- mangold (~mangold@198.98.183.139) has quit (Ping timeout: 252 seconds) 2021-05-18 08:12:59 <-- Exchange (~Brumbazz@ip100.ip-51-38-104.eu) has quit (Quit: Bye) 2021-05-18 08:13:04 --> JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has joined #python 2021-05-18 08:13:43 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 250 seconds) 2021-05-18 08:13:44 TheBard i am looking at an example from the py documenation, its a while loop. can anyone explain what's going on in the last line https://bpa.st/E2TA 2021-05-18 08:13:50 --> doev (549d7443@p549d7443.dip0.t-ipconnect.de) has joined #python 2021-05-18 08:13:57 --> Exchange (~Brumbazz@ip100.ip-51-38-104.eu) has joined #python 2021-05-18 08:14:09 <-- ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-18 08:14:38 very_sneaky TheBard: assignments to variables a and b using the previous values of a and b 2021-05-18 08:14:52 very_sneaky equivelant to a = b; b = a+b; 2021-05-18 08:15:00 --> oTToRoCk (~david@45-184-71-252.canaatelecom.net.br) has joined #python 2021-05-18 08:15:17 --> klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has joined #python 2021-05-18 08:15:29 Yhg1s (but with the old value of a) 2021-05-18 08:15:35 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-18 08:15:39 very_sneaky well, not _exactly_ equivelant: the new value of `a` isn't used in the calculation for `b` 2021-05-18 08:15:43 very_sneaky ^ 2021-05-18 08:15:49 TheBard its hard for me to read for some reason. 2021-05-18 08:16:03 DPA tmp=a; a = b; b = tmp+b; 2021-05-18 08:16:18 Yhg1s TheBard: you can think of it as 'new_a = b; b += a; a = new_a' 2021-05-18 08:16:31 --> lucascastro (~lucascast@177-185-133-236.dynamic.isotelco.net.br) has joined #python 2021-05-18 08:16:35 very_sneaky `b, a+b` looks like it should return a tuple 2021-05-18 08:16:43 Yhg1s it does return a tuple. 2021-05-18 08:16:45 --> Core6191 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-18 08:16:50 TheBard ok, that's more clear. 2021-05-18 08:17:01 TheBard thanks 2021-05-18 08:17:07 <-- Core6191 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Client Quit) 2021-05-18 08:17:10 very_sneaky Yhg1s: well, there you go :P 2021-05-18 08:18:12 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-18 08:18:19 TheBard wait.. b+=a? so a+b means b = b+a 2021-05-18 08:18:24 --> daregap (~belovent@cr-01.anx09.lju.si.anexia-it.com) has joined #python 2021-05-18 08:18:37 --> palooka-jock (~mike@45.126.44.146) has joined #python 2021-05-18 08:19:13 Yhg1s TheBard: no, I just assumed commutativity there. 2021-05-18 08:19:43 very_sneaky TheBard: DPAs interpretation might be clearer for you 2021-05-18 08:19:46 Yhg1s TheBard: it's not *actually* the same, which is why I said "you can think of it as ..." 2021-05-18 08:20:08 <-- doev (549d7443@p549d7443.dip0.t-ipconnect.de) has quit (Quit: Connection closed) 2021-05-18 08:20:20 Yhg1s It's much closer to 't = (b, a+b); (a, b) = t' 2021-05-18 08:20:26 TheBard oh... oh. i see. its like an assigmnent.. 2021-05-18 08:20:33 --> Anas__G (~Thunderbi@197.26.109.196) has joined #python 2021-05-18 08:20:37 amo inplace 2021-05-18 08:20:37 Yhg1s += is an assignment, yes. 2021-05-18 08:20:55 --> puadxtub (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has joined #python 2021-05-18 08:21:08 TheBard can you have as many as you want, a,b,c = 1,2,3 ? 2021-05-18 08:21:23 Yhg1s TheBard: yes, you can have as many items as you want in a tuple. 2021-05-18 08:21:39 TheBard ok. thanks again. back to the docs '-) 2021-05-18 08:21:39 Yhg1s '1, 2, 3' creates a tuple, 'a, b, c = ...' unpacks the tuple. 2021-05-18 08:21:51 --> a6a45081-2b83 (~aditya@122.163.149.247) has joined #python 2021-05-18 08:22:45 --> computeiro (~Wender@189.37.66.52) has joined #python 2021-05-18 08:24:18 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-18 08:24:20 <-- wender (~Wender@189.41.174.230) has quit (Ping timeout: 252 seconds) 2021-05-18 08:24:27 <-- oTToRoCk (~david@45-184-71-252.canaatelecom.net.br) has quit (Quit: WeeChat 2.8) 2021-05-18 08:24:44 <-- shenmicike (~cike@180.169.205.50) has left #python 2021-05-18 08:25:26 --> oTToRoCk (~david@45-184-71-252.canaatelecom.net.br) has joined #python 2021-05-18 08:25:35 --> veek_ (~veek@unaffiliated/veek) has joined #python 2021-05-18 08:25:52 <-- veek (~veek@unaffiliated/veek) has quit (Remote host closed the connection) 2021-05-18 08:26:17 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-18 08:27:24 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Quit: Quit.) 2021-05-18 08:28:20 <-- puadxtub (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has quit (Quit: puadxtub) 2021-05-18 08:28:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 08:28:34 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-18 08:29:18 --> rvgzuuqp (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has joined #python 2021-05-18 08:29:34 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-18 08:30:07 <-- veek_ (~veek@unaffiliated/veek) has quit (Remote host closed the connection) 2021-05-18 08:30:24 <-- a6a45081-2b83 (~aditya@122.163.149.247) has quit (Remote host closed the connection) 2021-05-18 08:30:43 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Client Quit) 2021-05-18 08:31:09 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-18 08:31:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 08:31:38 <-- swensson (9eaefc22@h-158-174-252-34.NA.cust.bahnhof.se) has quit (Quit: Connection closed) 2021-05-18 08:33:06 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-18 08:33:22 <-- vaq (43f73f69@vaq/unaffiliated) has quit (Ping timeout: 240 seconds) 2021-05-18 08:33:23 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 08:33:26 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Client Quit) 2021-05-18 08:33:33 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-18 08:33:50 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-18 08:34:04 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 08:34:36 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 260 seconds) 2021-05-18 08:36:49 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: Bin weg.) 2021-05-18 08:37:29 P1ckleRick I'm trying to create a new registry entry, just before starting a PyQT5 application. I need admin rights to create the entry - This works standalone to create the entry/check for admin rights....although when run as a function before my Qt app the cmdlet stays open and causes issues with the app 2021-05-18 08:37:30 P1ckleRick https://bpa.st/ZSKQ 2021-05-18 08:37:51 <-- TheBard (~TheBard@unaffiliated/thebard) has left #python 2021-05-18 08:40:47 <-- fflori (~fflori@nat-wlan-uzh-89-206-64-008.uzh.ch) has quit (Remote host closed the connection) 2021-05-18 08:41:18 --> ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has joined #python 2021-05-18 08:41:32 <-- Anas__G (~Thunderbi@197.26.109.196) has quit (Ping timeout: 240 seconds) 2021-05-18 08:42:09 <-- SirScott (~SirScott@c-67-176-100-163.hsd1.co.comcast.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 08:43:42 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-18 08:44:19 <-- veek (~veek@unaffiliated/veek) has quit (Remote host closed the connection) 2021-05-18 08:44:33 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Disconnected by services) 2021-05-18 08:44:39 --> Jigsy` (~Jigsy@unaffiliated/jigsy) has joined #python 2021-05-18 08:45:26 <-- irrgit (~ch33se@192.241.175.183) has quit (Remote host closed the connection) 2021-05-18 08:45:47 <-- ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-18 08:46:17 --> SirScott (~SirScott@c-67-176-100-163.hsd1.co.comcast.net) has joined #python 2021-05-18 08:46:27 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-18 08:46:28 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-18 08:46:33 -- Jigsy` is now known as Jigsy 2021-05-18 08:47:21 afidegnum hi, while i was trying to list files in directories i encountered this error: UnicodeEncodeError: 'utf-8' codec can't encode characters in position 0-15: surrogates not allowed so i proceed to write this and i have the following error. what am i missing ? https://dpaste.org/nNSK 2021-05-18 08:47:41 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 240 seconds) 2021-05-18 08:47:54 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Ping timeout: 245 seconds) 2021-05-18 08:47:55 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-18 08:48:37 graingert afidegnum: you want os.fsencode(p) 2021-05-18 08:48:39 graingert maybe? 2021-05-18 08:48:46 --> subho (~subho@fedora/subho) has joined #python 2021-05-18 08:48:46 Yhg1s afidegnum: 'f' is a pathlib.Path, which doesn't have an 'encode' method. 2021-05-18 08:48:54 afidegnum ok, 2021-05-18 08:49:06 graingert afidegnum: why are you using glob.glob and not pathlib.Path.glob? 2021-05-18 08:49:33 --> Lord_of_Life_ (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-18 08:49:43 afidegnum graingert: it hasn't crossed my mind, i am familiar with glob only, 2021-05-18 08:49:45 graingert and you re-assign p? it starts as a str and becomes a pathlib.Path? 2021-05-18 08:49:47 Yhg1s afidegnum: although it's hard to tell what the traceback pertains to 2021-05-18 08:49:54 --> Anas__G (~Thunderbi@196.203.67.2) has joined #python 2021-05-18 08:50:08 Yhg1s afidegnum: perhaps it would be better to look at the *original* error. 2021-05-18 08:50:24 graingert afidegnum: maybe you wanted `for p_ in pathlib.Path(".").glob(p):` ? 2021-05-18 08:50:36 afidegnum Yhg1s: at the utf error ? 2021-05-18 08:50:37 graingert like what's p? 2021-05-18 08:50:46 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 240 seconds) 2021-05-18 08:50:50 afidegnum that's the file path 2021-05-18 08:50:58 -- Lord_of_Life_ is now known as Lord_of_Life 2021-05-18 08:50:58 --> varaindemian (~oct@86.124.78.162) has joined #python 2021-05-18 08:51:07 Yhg1s afidegnum: I don't know what you mean by 'the utf error'. I mean the error you said you originally encountered. 2021-05-18 08:51:17 afidegnum ok, hold a sec, 2021-05-18 08:51:37 --> Peyam (8a6a3984@138.106.57.132) has joined #python 2021-05-18 08:52:09 Peyam hi 2021-05-18 08:52:17 --> fizzizist (~Thunderbi@108.162.133.99) has joined #python 2021-05-18 08:52:24 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-18 08:52:41 --> jimkooch (~jimkooch@49.145.161.121) has joined #python 2021-05-18 08:53:01 --> SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-18 08:53:13 --> f3r0x (~ferox2@host-92-10-245-25.as13285.net) has joined #python 2021-05-18 08:53:14 --> dvx (~dvx@185.63.97.64) has joined #python 2021-05-18 08:53:29 f3r0x anyone know how to detect transients in audio? 2021-05-18 08:55:17 amo f3r0x, transients? 2021-05-18 08:55:38 --> SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-18 08:55:54 <-- stranac (~stranac@195.29.239.126) has quit (Read error: Connection reset by peer) 2021-05-18 08:55:54 <-- jimkooch (~jimkooch@49.145.161.121) has left #python 2021-05-18 08:56:22 <-- ralderson (~textual@cpe-74-139-45-84.kya.res.rr.com) has quit (Quit: My iMac has gone to sleep. ZZZzzz…) 2021-05-18 08:57:14 f3r0x short duration, sharp onset events, high-energy relative to rest of signal 2021-05-18 08:57:26 --> ralderson (~textual@37.19.212.8) has joined #python 2021-05-18 08:57:57 stevieh I remember, when I left this area 10 yr ago, it was very complicated... maybe this has changed and been replaced by AI 2021-05-18 08:58:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 08:58:20 f3r0x sounds like you have some good relevant experience stevieh 2021-05-18 08:58:43 amo f3r0x, did you look into continuous wavelets? 2021-05-18 08:58:48 stevieh not from programing side tbh 2021-05-18 08:58:52 f3r0x no amo, what is that 2021-05-18 08:59:06 <-- SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has quit (Ping timeout: 260 seconds) 2021-05-18 08:59:20 amo f3r0x, hold on 2021-05-18 09:00:22 amo f3r0x, do you like youtube for learning new stuff or do you prefer reading? 2021-05-18 09:00:26 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-18 09:00:46 --> fflori (~fflori@nat-wlan-uzh-89-206-64-018.uzh.ch) has joined #python 2021-05-18 09:00:48 varaindemian can I somehow give an input file with some key: value pairs and then output in a template file (that contains only only keys) the corresponding values to some other key names? 2021-05-18 09:00:52 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 240 seconds) 2021-05-18 09:01:02 f3r0x hmm, would take both resources if they're on offer :D 2021-05-18 09:01:25 <-- sedeki (~textual@unaffiliated/sedeki) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-18 09:01:29 amo okay, then sorry for the spam beforehand ^^ 2021-05-18 09:01:34 --> Thanatos (~Thanatos@ec2-54-148-37-124.us-west-2.compute.amazonaws.com) has joined #python 2021-05-18 09:01:39 amo https://www.youtube.com/watch?v=RkGK0MloK0E - Ingrid Daubechies - 1/4 Time-Frequency Localization and Applications 2021-05-18 09:01:49 afidegnum Yhg1s: this is the initial situation i was facing, https://dpaste.org/FO3X 2021-05-18 09:01:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 09:02:00 amo https://www.youtube.com/watch?v=QX1-xGVFqmw - Understanding Wavelets, Part 1: What Are Wavelets in matlab 2021-05-18 09:02:11 <-- veek (~veek@unaffiliated/veek) has quit (Ping timeout: 240 seconds) 2021-05-18 09:02:20 amo https://www.youtube.com/watch?v=y7KLbd7n75g - Wavelets and Multiresolution Analysis by Steve Brunton 2021-05-18 09:02:36 <-- ralderson (~textual@37.19.212.8) has quit (Ping timeout: 260 seconds) 2021-05-18 09:03:41 amo http://links.uwaterloo.ca/amath391w13docs/Mallat3.pdf - 824 pages of wavelet goodness 2021-05-18 09:04:11 --> botnet (quassel@gateway/vpn/protonvpn/botnet) has joined #python 2021-05-18 09:04:13 --> salitos (~contagiou@197.156.190.130) has joined #python 2021-05-18 09:04:25 amo https://pywavelets.readthedocs.io/en/latest/ref/cwt.html <- the main package for working in python 2021-05-18 09:05:49 varaindemian anybody? 2021-05-18 09:05:57 amo f3r0x, that should get you started 2021-05-18 09:06:03 f3r0x thanks amo, i'll let you know how i get on if you're interested 2021-05-18 09:06:11 amo sure, thanks 2021-05-18 09:06:45 bjs varaindemian: your question isn't very clear 2021-05-18 09:06:52 --> zaki (~zaki@2601:403:4280:3a60::bc69) has joined #python 2021-05-18 09:06:58 very_sneaky varaindemian: sure? read in the values, write the values out with desired key? what am i missing 2021-05-18 09:07:08 Peyam can anyone help me do a list/dict comprehension for this for loop? https://bpa.st/JFGA maybe using a lambda? I can not make it work 2021-05-18 09:07:16 <-- yamz (~contagiou@197.156.190.209) has quit (Ping timeout: 260 seconds) 2021-05-18 09:08:46 amo varaindemian, can you post an example of the input and desired output? 2021-05-18 09:08:52 amo on bpaste, if possible 2021-05-18 09:08:56 bjs Peyam: `{x.uri: x.created for child in folder_info.children for x in [art.artifacts.info(f"{artifactPath}{child.uri}")]}` or with := you can write something like `{(x := art.artifacts.info(...)).uri: x.created for child in ...}` 2021-05-18 09:09:20 Peyam bjs i think := is >2.7? 2021-05-18 09:09:22 Peyam 3.7* 2021-05-18 09:09:44 bjs Peyam: >=3.8, but that's why I also gave the version without it :) 2021-05-18 09:10:12 Peyam bjs thanks :) 2021-05-18 09:10:17 varaindemian amo the output will be in a json format 2021-05-18 09:10:19 bjs Peyam: i'm not sure either of these look any better than the f or loop 2021-05-18 09:10:57 amo varaindemian, so? 2021-05-18 09:11:03 varaindemian bjs: you have a text file with random key: value pairs. you then want to extract those values and append them in a given json file 2021-05-18 09:11:23 --> Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has joined #python 2021-05-18 09:11:33 very_sneaky varaindemian: is the input in json? 2021-05-18 09:11:42 <-- leduyquang753 (~leduyquan@27.73.107.184) has quit (Quit: Lost terminal) 2021-05-18 09:11:54 bjs varaindemian: so, read the input file, take the dictionary of key/value pairs and dump them to the given json file 2021-05-18 09:11:57 amo varaindemian, we get the picture, but we don't know if it's the same picture you got in your head. an actual example would help us be clear 2021-05-18 09:11:58 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-18 09:11:59 bjs varaindemian: which part is giving you trouble? 2021-05-18 09:12:28 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-18 09:12:49 --> leduyquang753 (~leduyquan@27.73.107.184) has joined #python 2021-05-18 09:12:55 <-- bxsx (~x@unaffiliated/bxsx) has quit (Ping timeout: 268 seconds) 2021-05-18 09:13:12 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Quit: Leaving) 2021-05-18 09:13:15 --> Y3Klo (~Thunderbi@2806:10b7:3:50a2:feaa:14ff:fe93:db3c) has joined #python 2021-05-18 09:14:03 <-- citizen418 (~martin@2001:6b0:17:fc09:d36b:1cb8:58a8:347f) has quit (Ping timeout: 260 seconds) 2021-05-18 09:14:46 <-- Adbray (~Adbray@2600:6c48:6f7f:d764:5032:76b6:3a09:bf19) has quit (Quit: Ah! By Brain!) 2021-05-18 09:14:46 --> bxsx (~x@unaffiliated/bxsx) has joined #python 2021-05-18 09:15:58 varaindemian amo: https://paste.ofcode.org/sC3XrRFXUTZzCQuA6GfPc3 2021-05-18 09:16:08 varaindemian this is the output with empty fields 2021-05-18 09:16:39 <-- klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-18 09:16:42 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-18 09:17:10 <-- sesser (~sesser@107.13.245.224) has quit (Ping timeout: 252 seconds) 2021-05-18 09:17:18 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-18 09:17:33 amo someone else please help, i had to close my browser because of memory :> 2021-05-18 09:17:36 <-- sadiq75 (8a80ae52@server1.rootdnsserver.com) has quit (Quit: Connection closed) 2021-05-18 09:17:55 bjs amo: what is this file? 2021-05-18 09:17:58 bjs oops 2021-05-18 09:18:00 bjs varaindemian: what is this file? 2021-05-18 09:18:02 bjs sorry amo :) 2021-05-18 09:18:05 amo ^^ 2021-05-18 09:18:39 varaindemian bjs: this is the file where I want my values to be added 2021-05-18 09:18:43 zitter good * to all, is there a way to execute 02_script.py after 01_script.py has completed all instructions inside?? 2021-05-18 09:18:58 varaindemian the values are contained in a random text file 2021-05-18 09:19:06 <-- andrewSC (~andrew@archlinux/trusteduser/andrewsc) has quit (Quit: WeeChat 3.1) 2021-05-18 09:19:17 <-- bxsx (~x@unaffiliated/bxsx) has quit (Ping timeout: 246 seconds) 2021-05-18 09:19:26 --> andrewSC (~andrew@archlinux/trusteduser/andrewsc) has joined #python 2021-05-18 09:19:53 bjs varaindemian: this doesn't look like a "random text file", it looks like some Python code? 2021-05-18 09:20:06 bjs zitter: `python3 01_script.py && python3 02_script.py` 2021-05-18 09:20:32 --> sadiq75 (8a80ae52@server1.rootdnsserver.com) has joined #python 2021-05-18 09:20:32 zitter bjs, yeah :) 2021-05-18 09:20:44 <-- digitalD (~dp@c-107-2-197-75.hsd1.co.comcast.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-18 09:20:56 very_sneaky zitter: if there are more files involved, bash for loop 2021-05-18 09:21:14 --> zebrag (~inkbottle@aaubervilliers-651-1-236-241.w83-200.abo.wanadoo.fr) has joined #python 2021-05-18 09:21:14 varaindemian bjs: this is the output where I want my values to be appended. 2021-05-18 09:21:18 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-18 09:21:29 bjs varaindemian: but it's Python code, not some text file or some json file 2021-05-18 09:21:31 --> ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has joined #python 2021-05-18 09:21:31 bjs so I'm confused? 2021-05-18 09:21:33 zitter I was thinking to call 02_script directly from 01_script but of course && is pretty convenient 2021-05-18 09:21:39 varaindemian bjs 2021-05-18 09:21:49 varaindemian bjs: yes 2021-05-18 09:22:05 bjs varaindemian: your output file is not JSON, but a .py file? 2021-05-18 09:22:05 --> tralfaz (~dulyNoded@c-73-221-225-225.hsd1.wa.comcast.net) has joined #python 2021-05-18 09:22:07 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 252 seconds) 2021-05-18 09:22:25 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 09:22:51 <-- cerna (cernamatri@gateway/shell/matrix.org/x-lgbxhvpbqrmzqpog) has quit (Ping timeout: 245 seconds) 2021-05-18 09:22:51 <-- Evidlo (evidlomatr@purduelug/evidlo) has quit (Ping timeout: 245 seconds) 2021-05-18 09:22:53 --> klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has joined #python 2021-05-18 09:23:07 <-- will1 (willbuyvmn@gateway/shell/matrix.org/x-braaotfhakxopjea) has quit (Ping timeout: 276 seconds) 2021-05-18 09:23:08 <-- morguldir (criminalma@gateway/shell/matrix.org/x-jceoudawmlpmbkuw) has quit (Ping timeout: 276 seconds) 2021-05-18 09:23:08 <-- psydruid[m] (psydruidma@gateway/shell/matrix.org/x-rgbznonnmocgijtt) has quit (Ping timeout: 276 seconds) 2021-05-18 09:23:09 --> citizen418 (~martin@2001:6b0:17:fc09:d36b:1cb8:58a8:347f) has joined #python 2021-05-18 09:23:13 <-- squirrel (~mj@unaffiliated/squirrel) has quit (Ping timeout: 240 seconds) 2021-05-18 09:24:46 <-- davterra (~dulyNoded@178.128.106.205) has quit (Ping timeout: 240 seconds) 2021-05-18 09:25:17 very_sneaky zitter: if you _really_ wanted to do that, you could put something like `import subprocess; p=subprocess.call(["python3","02_script.py"])` at the end of 01_script.py 2021-05-18 09:25:47 very_sneaky unless you have a good reason to you should probably prefer just using bash 2021-05-18 09:26:09 <-- infernix (nix@unaffiliated/infernix) has quit (Quit: ZNC - http://znc.sourceforge.net) 2021-05-18 09:26:16 --> digitalD (~dp@c-107-2-197-75.hsd1.co.comcast.net) has joined #python 2021-05-18 09:26:45 jabberwock is anyone else getting cert errors from pypi using pip3? 2021-05-18 09:26:45 tos9 mrig: /9 2021-05-18 09:26:49 <-- jay-m_ (~jay-m@41.205.30.141) has quit (Ping timeout: 265 seconds) 2021-05-18 09:27:14 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-18 09:27:22 jabberwock [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/selenium/ 2021-05-18 09:27:23 --> jay-m_ (~jay-m@41.205.30.141) has joined #python 2021-05-18 09:27:28 jabberwock hmm 2021-05-18 09:28:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 09:28:26 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-18 09:28:33 <-- Tips|Cloud (sid62231@gateway/web/irccloud.com/x-ictcdijkyhdnzpcl) has quit (Ping timeout: 258 seconds) 2021-05-18 09:29:09 <-- wallacer (~quassel@2001:bc8:1824:9a:cafe:babe:b00b:aa01) has quit (Ping timeout: 245 seconds) 2021-05-18 09:29:21 <-- tm007 (uid287041@gateway/web/irccloud.com/x-kuisrgxhnjqrfejm) has quit (Quit: Connection closed for inactivity) 2021-05-18 09:29:37 --> morguldir (criminalma@gateway/shell/matrix.org/x-zfuceybbqktoapau) has joined #python 2021-05-18 09:29:41 tos9 jabberwock: ssllabs is generally the easiest way to tell if SSL issues are theirs or yours 2021-05-18 09:29:47 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-18 09:29:56 tos9 https://www.ssllabs.com/ssltest/analyze.html?d=pypi.org 2021-05-18 09:29:59 <-- noahmg123 (sid89117@gateway/web/irccloud.com/x-efsluieuaupejjia) has quit (Ping timeout: 245 seconds) 2021-05-18 09:30:16 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-18 09:30:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-18 09:30:53 --> psydruid[m] (psydruidma@gateway/shell/matrix.org/x-ysctwwwcffcfyahy) has joined #python 2021-05-18 09:31:01 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-18 09:31:02 <-- VIqbang (sid24380@gateway/web/irccloud.com/x-azxozepovxlshpct) has quit (Ping timeout: 258 seconds) 2021-05-18 09:31:21 varaindemian bjs: this is my output file. it can be anything 2021-05-18 09:31:23 Peng pypi.org and pypi.python.org use a CDN, though, so things could go awry regionally 2021-05-18 09:31:30 <-- jd (~jd@unaffiliated/jd) has quit (Ping timeout: 246 seconds) 2021-05-18 09:31:42 --> Jerrynicki (~niklas@p200300f577066b00e4ebfcceee5fed9e.dip0.t-ipconnect.de) has joined #python 2021-05-18 09:31:50 --> squirrel (~mj@unaffiliated/squirrel) has joined #python 2021-05-18 09:31:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 09:31:54 varaindemian do you know anything that can do this? or do you have an example for this? 2021-05-18 09:32:13 <-- tonythomas (uid25971@wikimedia/-01tonythomas) has quit (Ping timeout: 276 seconds) 2021-05-18 09:32:14 <-- Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has quit (Ping timeout: 246 seconds) 2021-05-18 09:32:22 --> jd (~jd@unaffiliated/jd) has joined #python 2021-05-18 09:32:36 jabberwock tos9: good point, ty! 2021-05-18 09:32:51 jabberwock tos9: but if someone answered "yes" in here then that would have been easier 2021-05-18 09:33:07 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 252 seconds) 2021-05-18 09:33:14 --> ClaymorePT (~Claymore@188.251.155.208) has joined #python 2021-05-18 09:33:18 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 09:33:23 --> lmt (uid107697@gateway/web/irccloud.com/x-diypnaubudprjfjx) has joined #python 2021-05-18 09:33:24 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-18 09:33:26 bjs varaindemian: im still confused 2021-05-18 09:33:37 bjs varaindemian: you said you had some input file in a key: value format, then an output file which was JSON 2021-05-18 09:33:39 <-- zaki (~zaki@2601:403:4280:3a60::bc69) has quit (Ping timeout: 260 seconds) 2021-05-18 09:33:47 bjs varaindemian: but the only thing you've shown is neither of those and is something completely different? 2021-05-18 09:34:01 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-18 09:34:20 --> xhalc (~xhalc@p5b0ee3c8.dip0.t-ipconnect.de) has joined #python 2021-05-18 09:34:23 --> tonythomas (uid25971@wikimedia/-01tonythomas) has joined #python 2021-05-18 09:34:32 --> VIqbang (sid24380@gateway/web/irccloud.com/x-yzbixanhychfukrh) has joined #python 2021-05-18 09:34:35 <-- debnet (sid330295@gateway/web/irccloud.com/x-fxslzvemwgnnicoj) has quit (Ping timeout: 260 seconds) 2021-05-18 09:34:37 arecaceae given I have a string `a = "\\n"` how do I get `"\n` out ? 2021-05-18 09:35:03 <-- tuxd00d (sid401305@gateway/web/irccloud.com/x-aqcosrnougqldbse) has quit (Ping timeout: 260 seconds) 2021-05-18 09:35:10 InPhase arecaceae: Do you want the trailing quote also? 2021-05-18 09:35:11 <-- IronHEDGE (sid466269@gateway/web/irccloud.com/x-upuryuaiyfrczewu) has quit (Ping timeout: 250 seconds) 2021-05-18 09:35:14 bjs arecaceae: where did it come from? a is a string of two characters, a backslash and an n 2021-05-18 09:35:25 varaindemian bjs: I said I have a text file with some random key: value paris inserted there. That means it can be something like this: "Hello world key1: value1 I want money key2: value2" -> append the values in a given file. Questions: How? Starting points. Please 2021-05-18 09:36:04 bjs varaindemian: well, like i said, read the file and make a dict {"hello world key1": "value1", ...} and then open the output file and append to it 2021-05-18 09:36:31 bjs if the output file is JSON you can just load it, update it with the new key/values, and then dump the new one back out 2021-05-18 09:36:43 <-- honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-18 09:36:55 <-- tov (sid492081@gateway/web/irccloud.com/x-doobvqvsgickcyef) has quit (Ping timeout: 260 seconds) 2021-05-18 09:36:58 --> cerna (cernamatri@gateway/shell/matrix.org/x-tduefraibmrjhxjm) has joined #python 2021-05-18 09:37:06 --> Evidlo (evidlomatr@purduelug/evidlo) has joined #python 2021-05-18 09:37:06 InPhase arecaceae: s.split('=')[1].strip() This would be a standard sort of idiom for grabbing the right side of a string assignment, and removing extra whitespace. 2021-05-18 09:37:08 --> debnet (sid330295@gateway/web/irccloud.com/x-pekevdxspwnhsufs) has joined #python 2021-05-18 09:37:14 --> tuxd00d (sid401305@gateway/web/irccloud.com/x-vztalfrycssjhopb) has joined #python 2021-05-18 09:37:22 <-- G0UQT (sid422535@gateway/web/irccloud.com/x-csbxnxehvikxqiny) has quit (Ping timeout: 258 seconds) 2021-05-18 09:37:34 <-- SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has quit (Remote host closed the connection) 2021-05-18 09:37:41 varaindemian bjs: okay. that sounds good. Do you have examples? 2021-05-18 09:37:43 --> noahmg123 (sid89117@gateway/web/irccloud.com/x-ajofklxwyjbhcqom) has joined #python 2021-05-18 09:37:46 bjs varaindemian: of what part 2021-05-18 09:38:15 --> tov (sid492081@gateway/web/irccloud.com/x-sqweldwbphxihrir) has joined #python 2021-05-18 09:38:15 --> guriya (a0ee4ae0@unaffiliated/guriya) has joined #python 2021-05-18 09:38:19 --> IronHEDGE (sid466269@gateway/web/irccloud.com/x-btqxiluixhdmrhcx) has joined #python 2021-05-18 09:38:38 --> SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-18 09:38:51 InPhase arecaceae: If it's possible that a '=' appears inside of the right side of your string, then you should use s.split('=', 1) and be explicit. You have to know the scope of what you're going to be passing into such a thing. 2021-05-18 09:39:20 --> wallacer (~quassel@scarlett.johansson.io) has joined #python 2021-05-18 09:39:39 very_sneaky varaindemian: this looks like it has a reasonable summary of reading json from and writing json to files: https://stackabuse.com/reading-and-writing-json-to-a-file-in-python/ 2021-05-18 09:39:44 Peyam I have a list of entries like `2021-04-30 11:02:37.861000+00:00` how do I get the closest date to now? 2021-05-18 09:40:13 very_sneaky Peyam: are there any future dates? 2021-05-18 09:40:17 Peyam no 2021-05-18 09:40:29 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 09:40:46 <-- ClaymorePT (~Claymore@188.251.155.208) has quit (Ping timeout: 240 seconds) 2021-05-18 09:40:57 very_sneaky convert the strings to `datetime` objects, put them in a list and call `sort()` on the list, then take the last element 2021-05-18 09:41:10 bjs Peyam: write a function to parse into a datetime, and compute the difference to now(), then get the min(list_of_entries, key=that_function) 2021-05-18 09:41:15 <-- isomari (~isomari@105.112.138.38) has quit (Quit: WeeChat 2.8) 2021-05-18 09:41:31 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-18 09:41:33 Peyam bjs they are strings 2021-05-18 09:41:36 --> G0UQT (sid422535@gateway/web/irccloud.com/x-macttbyaraoebtal) has joined #python 2021-05-18 09:41:43 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-18 09:41:46 bjs Peyam: yes I see 2021-05-18 09:41:48 <-- jay-m_ (~jay-m@41.205.30.141) has quit (Ping timeout: 265 seconds) 2021-05-18 09:42:14 Peyam should still calculate the different? cast them into a date object? 2021-05-18 09:42:24 --> jay-m_ (~jay-m@41.205.30.141) has joined #python 2021-05-18 09:42:31 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 268 seconds) 2021-05-18 09:42:40 bjs Peyam: difference = parsed_dt - datetime.now() 2021-05-18 09:42:43 InPhase Peyam: If it's guaranteed they are all UTC, converting to datetime is superfluous. If they are different timezones, you must convert. 2021-05-18 09:42:45 bjs or maybe now() - that 2021-05-18 09:42:46 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-18 09:42:47 <-- tuxd00d (sid401305@gateway/web/irccloud.com/x-vztalfrycssjhopb) has quit (Read error: Connection reset by peer) 2021-05-18 09:42:52 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 09:43:11 --> banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has joined #python 2021-05-18 09:43:15 very_sneaky Peyam: somethign like `sorted = [datetime.strptime(x, "%Y-%m-%d %H:%M:%S.%s") for x in date_str_list].sort(); newest = sorted[-1];` 2021-05-18 09:43:35 very_sneaky i took a guess that the format string so you'd probably need to fix something 2021-05-18 09:43:37 --> tuxd00d (sid401305@gateway/web/irccloud.com/x-xjwvgpdxqcbzrivq) has joined #python 2021-05-18 09:43:43 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-18 09:44:58 --> mankur (6789314b@103.137.49.75) has joined #python 2021-05-18 09:45:20 <-- mankur (6789314b@103.137.49.75) has quit (Client Quit) 2021-05-18 09:45:25 --> Haudegen (~quassel@91.114.49.10) has joined #python 2021-05-18 09:46:11 Yhg1s you'd also have to fix the fact that [].sort() returns None. 2021-05-18 09:46:15 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:1d97:2a21:a75b:9085) has quit (Ping timeout: 260 seconds) 2021-05-18 09:46:25 --> Tips|Cloud (sid62231@gateway/web/irccloud.com/x-ckgekysxvqkfcfsb) has joined #python 2021-05-18 09:46:27 Peyam bjs TypeError: unsupported operand type(s) for -: 'dict_values' and 'datetime.datetime' 2021-05-18 09:46:29 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-18 09:46:35 bjs Peyam: dict_values ?! 2021-05-18 09:46:56 Peyam the date strings are inside a dict . in dict.values() 2021-05-18 09:47:08 bjs Peyam: okay but you've done something that wasn't what I suggested then 2021-05-18 09:47:12 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 240 seconds) 2021-05-18 09:47:25 Peyam uri_vs_date.values()-datetime.now() 2021-05-18 09:47:46 bjs Peyam: no, I said you need to call min(entries, key=that_function) where that_function parsed the datetime then did the difference 2021-05-18 09:48:04 varaindemian very_sneaky: I am not reading from json and writing to json. I am reading from random and writing to a file of mine 2021-05-18 09:48:15 --> krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has joined #python 2021-05-18 09:48:31 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-18 09:48:56 <-- salitos (~contagiou@197.156.190.130) has quit (Read error: Connection reset by peer) 2021-05-18 09:49:00 <-- chowmeined (~chowmeine@unaffiliated/chowmeined) has quit (Read error: Connection reset by peer) 2021-05-18 09:49:03 <-- shicks255 (~shicks255@c-73-44-67-59.hsd1.il.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-18 09:49:28 --> salitos (~contagiou@197.156.190.223) has joined #python 2021-05-18 09:49:37 <-- digitalD (~dp@c-107-2-197-75.hsd1.co.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-18 09:49:37 very_sneaky Yhg1s: uh, derp. didn't realise that `sort` operates in place 2021-05-18 09:49:38 --> chowmeined (~chowmeine@unaffiliated/chowmeined) has joined #python 2021-05-18 09:49:40 --> Fauve (~Fauve@unaffiliated/fauve) has joined #python 2021-05-18 09:49:49 --> shicks255 (~shicks255@c-73-44-67-59.hsd1.il.comcast.net) has joined #python 2021-05-18 09:49:50 afidegnum while comparing the file listing outputs, encoded files are omitted, compared to utf-files, when I inspected the directory listings, i noticed some files contains special charachters too, is there a way to change that or rather accept everyting no matter the characters? here is my current code, https://dpaste.org/TncK 2021-05-18 09:49:59 SnoopJ very_sneaky, sorted() is the spelling that makes a new list 2021-05-18 09:50:11 very_sneaky good to know 2021-05-18 09:50:12 SnoopJ (and is therefore generally what you want, because lists are pretty much free) 2021-05-18 09:50:27 --> digitalD (~dp@c-107-2-197-75.hsd1.co.comcast.net) has joined #python 2021-05-18 09:50:52 <-- tralfaz (~dulyNoded@c-73-221-225-225.hsd1.wa.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-18 09:51:08 very_sneaky varaindemian: is each key:value pair on it's own line? 2021-05-18 09:51:11 <-- Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has quit (Ping timeout: 240 seconds) 2021-05-18 09:51:14 <-- subho (~subho@fedora/subho) has quit (Ping timeout: 245 seconds) 2021-05-18 09:51:15 --> tralfaz (~dulyNoded@c-73-221-225-225.hsd1.wa.comcast.net) has joined #python 2021-05-18 09:51:21 <-- guriya (a0ee4ae0@unaffiliated/guriya) has quit (Quit: Connection closed) 2021-05-18 09:51:41 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 240 seconds) 2021-05-18 09:51:53 --> infernix (~nix@unaffiliated/infernix) has joined #python 2021-05-18 09:52:06 --> Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has joined #python 2021-05-18 09:52:48 --> AckSynAck (~AckSynAck@unaffiliated/acksynack) has joined #python 2021-05-18 09:53:31 <-- ezakimak (~ezakimak@c-174-52-132-123.hsd1.ut.comcast.net) has quit (Quit: No Ping reply in 180 seconds.) 2021-05-18 09:53:34 --> t1054Gues (crazyed@wrongplanet/CrazyEddy) has joined #python 2021-05-18 09:53:35 <-- kex (kex@gateway/vpn/privateinternetaccess/kex) has quit (Read error: Connection reset by peer) 2021-05-18 09:53:37 <-- Anas__G (~Thunderbi@196.203.67.2) has quit (Ping timeout: 268 seconds) 2021-05-18 09:53:42 --> rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has joined #python 2021-05-18 09:53:43 --> agrawalr_ (~agrawalri@2401:4900:523b:2f39:8c81:5ed3:1768:bf3d) has joined #python 2021-05-18 09:53:50 --> kex (kex@gateway/vpn/privateinternetaccess/kex) has joined #python 2021-05-18 09:53:53 <-- Guest10524 (crazyed@wrongplanet/CrazyEddy) has quit (Ping timeout: 240 seconds) 2021-05-18 09:54:14 --> CodeMouse92 (~JasonMc92@unaffiliated/codemouse) has joined #python 2021-05-18 09:54:53 --> ezakimak (~ezakimak@c-174-52-132-123.hsd1.ut.comcast.net) has joined #python 2021-05-18 09:55:06 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 260 seconds) 2021-05-18 09:55:32 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Ping timeout: 240 seconds) 2021-05-18 09:56:00 very_sneaky varaindemian: maybe this will be a useful reference for reading in random formats and parsing it line-by-line into a dictionary: https://stackoverflow.com/a/9161531 2021-05-18 09:56:14 <-- f3r0x (~ferox2@host-92-10-245-25.as13285.net) has quit (Remote host closed the connection) 2021-05-18 09:56:32 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Ping timeout: 240 seconds) 2021-05-18 09:56:39 --> Aeon (~aeon@d205-250-188-61.bchsia.telus.net) has joined #python 2021-05-18 09:56:55 <-- Fischerfredl (~Thunderbi@194.135.131.212) has quit (Remote host closed the connection) 2021-05-18 09:57:05 --> Fischerfredl (~Thunderbi@194.135.131.212) has joined #python 2021-05-18 09:57:39 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-18 09:58:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 09:58:23 --> chowmein__ (~chowmeine@unaffiliated/chowmeined) has joined #python 2021-05-18 09:58:26 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:a52c:b530:6c8a:fd41) has joined #python 2021-05-18 09:58:29 --> Leonarbro_ (~Leonet@S01067824af93741c.cg.shawcable.net) has joined #python 2021-05-18 09:58:33 --> runlevel7__ (runlevel7@gateway/vpn/privateinternetaccess/runlevel7) has joined #python 2021-05-18 09:58:37 --> Flaghacker_ (~Flaghacke@253.188.60.188.dynamic.wline.res.cust.swisscom.ch) has joined #python 2021-05-18 09:58:37 <-- Flaghacker (~Flaghacke@253.188.60.188.dynamic.wline.res.cust.swisscom.ch) has quit (Killed (hitchcock.freenode.net (Nickname regained by services))) 2021-05-18 09:58:38 -- Flaghacker_ is now known as Flaghacker 2021-05-18 09:58:42 --> nacelle_ (~oO@wireguard/tunneler/nacelle) has joined #python 2021-05-18 09:58:52 --> sauvin_ (sauvin@about/linux/staff/sauvin) has joined #python 2021-05-18 09:58:53 --> omenius1337 (~omenius@dsl-hkibng22-54f98c-160.dhcp.inet.fi) has joined #python 2021-05-18 09:58:53 --> s8548a_ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-18 09:58:59 --> ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-18 09:59:10 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 268 seconds) 2021-05-18 09:59:12 --> threwahway_ (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has joined #python 2021-05-18 09:59:23 --> DnzAtWrkV2 (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has joined #python 2021-05-18 09:59:29 --> c4017__ (~c4017@S010664777dab66f3.vf.shawcable.net) has joined #python 2021-05-18 09:59:30 --> DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-18 09:59:32 --> cowsay_ (~quassel@47.188.41.16) has joined #python 2021-05-18 09:59:39 <-- DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has quit (Read error: Connection reset by peer) 2021-05-18 09:59:39 <-- chowmeined (~chowmeine@unaffiliated/chowmeined) has quit (Read error: Connection reset by peer) 2021-05-18 09:59:39 <-- runlevel7_ (runlevel7@gateway/vpn/privateinternetaccess/runlevel7) has quit (Read error: Connection reset by peer) 2021-05-18 09:59:39 <-- omenius (~omenius@dsl-hkibng22-54f98c-160.dhcp.inet.fi) has quit (Read error: Connection reset by peer) 2021-05-18 09:59:39 <-- Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-18 09:59:39 <-- nacelle (~oO@wireguard/tunneler/nacelle) has quit (Ping timeout: 265 seconds) 2021-05-18 09:59:39 <-- c4017_ (~c4017@S010664777dab66f3.vf.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-18 09:59:39 <-- threwahway (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-18 09:59:39 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Read error: Connection reset by peer) 2021-05-18 09:59:39 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-18 09:59:39 <-- cdown (~cdown@163.114.131.1) has quit (Remote host closed the connection) 2021-05-18 09:59:39 <-- e99 (~e99@xbox-scene.site) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 09:59:39 <-- ElectricSheep (~esheep_zn@pool-100-19-29-200.phlapa.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-05-18 09:59:39 <-- Maikel (~Maikel@unaffiliated/maikel) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 09:59:39 <-- IanWizard (~IanWizard@unaffiliated/ianwizard) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 09:59:39 <-- radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 09:59:41 <-- lejocelyn (~lejocelyn@ip5f5bd552.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-18 09:59:44 --> escherial (~escherial@unaffiliated/escherial) has joined #python 2021-05-18 09:59:46 --> thinkofher1 (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-18 09:59:46 --> bzed_ (~bzed@shell.bzed.at) has joined #python 2021-05-18 09:59:48 --> Myst1 (~Myst@wikipedia/myst) has joined #python 2021-05-18 09:59:49 --> e99 (~e99@xbox-scene.site) has joined #python 2021-05-18 09:59:53 --> Lanjelin9 (~Lanjelin@50.51-174-33.customer.lyse.net) has joined #python 2021-05-18 09:59:54 --> notepad7 (~notepad@129.159.46.243) has joined #python 2021-05-18 09:59:55 --> radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has joined #python 2021-05-18 09:59:56 <-- dullin (~dullin@219.ip-144-217-83.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 09:59:58 --> nanobist6 (~nanobist@unaffiliated/nanobist) has joined #python 2021-05-18 10:00:00 <-- AllenJB (~AllenJB@pdpc/supporter/active/allenjb) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:00:07 <-- kex (kex@gateway/vpn/privateinternetaccess/kex) has quit (Quit: bye) 2021-05-18 10:00:07 <-- ttrs (~ttrs@unaffiliated/ttrs) has quit (Quit: 10gbit) 2021-05-18 10:00:10 <-- markmcclain (~markmccla@208.113.167.90) has quit (Ping timeout: 265 seconds) 2021-05-18 10:00:15 rond_ Hi! How to define a MinPooling, or MedianPooling, in TF Keras? 2021-05-18 10:00:16 <-- MattWThomas (~macravin@161.38.68.34.bc.googleusercontent.com) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-18 10:00:16 --> dullin (~dullin@219.ip-144-217-83.net) has joined #python 2021-05-18 10:00:17 <-- infina (~infina@unaffiliated/infina) has quit (Quit: ZNC - http://znc.in) 2021-05-18 10:00:21 <-- jokerjosh113 (~jokerjosh@75-168-71-178.mpls.qwest.net) has quit (Remote host closed the connection) 2021-05-18 10:00:22 --> yitz_ (~yitz@exercism/yitz) has joined #python 2021-05-18 10:00:22 <-- Bluefoxicy (~Bluefoxic@c-73-132-244-30.hsd1.md.comcast.net) has quit (Quit: ZNC - http://znc.in) 2021-05-18 10:00:23 <-- jinie (~jimmy@188.114.173.37) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-18 10:00:23 --> lejocelyn (~lejocelyn@2a02:8109:8880:10ec::ec60) has joined #python 2021-05-18 10:00:23 <-- _FBi (~B@Aircrack-NG/User) has quit (Quit: ZNC 1.6.2 - http://znc.in) 2021-05-18 10:00:24 <-- pingiun (~jelle@acturia.jelle.space) has quit (Quit: Bye!) 2021-05-18 10:00:24 <-- ltrager (~ltrager@trager.us) has quit (Quit: ZNC 1.7.5 - https://znc.in) 2021-05-18 10:00:26 <-- aaearon (aaearon@gateway/shell/xzibition.com/x-cpafvtvqezhddjsy) has quit (Quit: ZNC - https://znc.in) 2021-05-18 10:00:26 <-- Vardex (~vardex@62-210-79-177.rev.poneytelecom.eu) has quit (Quit: Leaving) 2021-05-18 10:00:26 <-- predmijat (~predmijat@mail.strogopro.com) has quit (Quit: bye) 2021-05-18 10:00:26 <-- Unode (~Unode@unaffiliated/unode) has quit (Quit: Off it goes) 2021-05-18 10:00:27 <-- nurex (~nurex@canary.nrx.me) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-18 10:00:27 <-- semitones (semitones_@gateway/shell/bnc4free/x-ihkjkqpdpopggkwx) has quit (Quit: fBNC - https://bnc4free.com) 2021-05-18 10:00:27 <-- seds (~seds@irc.seds.nl) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-18 10:00:27 <-- Nnavd (~Nnavd@ec2-34-220-224-214.us-west-2.compute.amazonaws.com) has quit (Remote host closed the connection) 2021-05-18 10:00:29 <-- yourfate (~yourfate@unaffiliated/yourfate) has quit (Quit: Sayōnara, ihr Trottel.) 2021-05-18 10:00:30 <-- karlpinc (~user@70.133.240.169) has quit (Remote host closed the connection) 2021-05-18 10:00:33 --> dongcarl7 (~dongcarl@unaffiliated/dongcarl) has joined #python 2021-05-18 10:00:34 <-- yitz (~yitz@exercism/yitz) has quit (Remote host closed the connection) 2021-05-18 10:00:37 --> predmijat (~predmijat@mail.strogopro.com) has joined #python 2021-05-18 10:00:38 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit (Remote host closed the connection) 2021-05-18 10:00:40 --> aaearon (aaearon@gateway/shell/xzibition.com/x-cvcuwafaabozraon) has joined #python 2021-05-18 10:00:41 --> nurex (~nurex@canary.nrx.me) has joined #python 2021-05-18 10:00:42 --> Arch-TK (~Arch-TK@ircpuzzles/staff/Arch-TK) has joined #python 2021-05-18 10:00:42 --> jokerjosh113 (~jokerjosh@75-168-71-178.mpls.qwest.net) has joined #python 2021-05-18 10:00:43 --> yourfate (~yourfate@unaffiliated/yourfate) has joined #python 2021-05-18 10:00:43 --> seds (~seds@212.47.230.255) has joined #python 2021-05-18 10:00:43 --> _FBi (~B@Aircrack-NG/User) has joined #python 2021-05-18 10:00:45 --> KeithAdams_ (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has joined #python 2021-05-18 10:00:45 --> x5eb (~seb@69.63.121.78.rev.sfr.net) has joined #python 2021-05-18 10:00:46 --> jcnmark6_ (~jcnmark6@static.213-133-100-141.clients.your-server.de) has joined #python 2021-05-18 10:00:47 --> pingiun (~jelle@2a01:4f8:c2c:d45::1) has joined #python 2021-05-18 10:00:47 --> ltrager (~ltrager@trager.us) has joined #python 2021-05-18 10:00:50 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Disconnected by services) 2021-05-18 10:00:51 --> Vardex (~vardex@62-210-79-177.rev.poneytelecom.eu) has joined #python 2021-05-18 10:00:53 <-- somis (~somis@149.56.153.186) has quit (Read error: Connection reset by peer) 2021-05-18 10:00:53 --> LoRe_ (~LoRe@cb.rbfh.de) has joined #python 2021-05-18 10:00:55 --> cluelessperson_ (~cluelessp@unaffiliated/cluelessperson) has joined #python 2021-05-18 10:00:55 --> MattWThomas (~macravin@161.38.68.34.bc.googleusercontent.com) has joined #python 2021-05-18 10:00:55 --> Jigsy` (~Jigsy@unaffiliated/jigsy) has joined #python 2021-05-18 10:00:56 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-18 10:01:01 --> lithammer_ (~lithammer@46.19.36.119) has joined #python 2021-05-18 10:01:01 --> infina (~infina@unaffiliated/infina) has joined #python 2021-05-18 10:01:08 --> Unode (~Unode@unaffiliated/unode) has joined #python 2021-05-18 10:01:10 --> Bluefoxicy (~Bluefoxic@c-73-132-244-30.hsd1.md.comcast.net) has joined #python 2021-05-18 10:01:10 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-18 10:01:11 --> cdown (~cdown@163.114.131.1) has joined #python 2021-05-18 10:01:21 --> flying_sausages_ (~flying_sa@83.149.106.219) has joined #python 2021-05-18 10:01:29 --> LtHummus (~lthummus@174-21-28-50.tukw.qwest.net) has joined #python 2021-05-18 10:01:29 <-- senux (~senux@24.35.76.153) has quit (Quit: senux) 2021-05-18 10:01:30 <-- shicks255 (~shicks255@c-73-44-67-59.hsd1.il.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-18 10:01:30 <-- Aeon (~aeon@d205-250-188-61.bchsia.telus.net) has quit (Read error: Connection reset by peer) 2021-05-18 10:01:30 <-- sauvin (sauvin@about/linux/staff/sauvin) has quit (Remote host closed the connection) 2021-05-18 10:01:30 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Read error: Connection reset by peer) 2021-05-18 10:01:30 <-- cowsay (~quassel@47.188.41.16) has quit (Read error: Connection reset by peer) 2021-05-18 10:01:30 <-- Myst (~Myst@wikipedia/myst) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 <-- qqqhhh (~qqqhhh@94.228.80.243) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 <-- Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 <-- dongcarl (~dongcarl@unaffiliated/dongcarl) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 <-- escherial9 (~escherial@unaffiliated/escherial) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 <-- bzed (~bzed@shell.bzed.at) has quit (Remote host closed the connection) 2021-05-18 10:01:30 <-- notepad (~notepad@129.159.46.243) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 <-- cryocaustik (~cryocaust@167.99.107.116) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 -- notepad7 is now known as notepad 2021-05-18 10:01:30 <-- indigaz (~indigaz@unaffiliated/indigaz) has quit (Quit: Ping timeout (120 seconds)) 2021-05-18 10:01:30 <-- Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has quit (Ping timeout: 240 seconds) 2021-05-18 10:01:30 <-- [Tritium] (~tritium@toxin.sdamon.com) has quit (Quit: Do not write bellow this line) 2021-05-18 10:01:30 <-- px (~px@unaffiliated/paradoxgo) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-18 10:01:30 <-- lithammer (~lithammer@arch-vps.cloud.tilaa.com) has quit (Quit: ZNC - http://znc.in) 2021-05-18 10:01:30 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-05-18 10:01:30 <-- Inoperable (~PLAYER_1@fancydata.science) has quit (Quit: All your buffer are belong to us!) 2021-05-18 10:01:30 <-- flying_sausages (~flying_sa@83.149.106.219) has quit (Quit: You just lost the game. Peace Out.) 2021-05-18 10:01:30 <-- Spawns_Carpetin- (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has quit (Remote host closed the connection) 2021-05-18 10:01:30 <-- LoRe (~LoRe@cb.rbfh.de) has quit (Quit: ZNC - http://znc.in) 2021-05-18 10:01:30 <-- jcnmark6 (~jcnmark6@static.213-133-100-141.clients.your-server.de) has quit (Remote host closed the connection) 2021-05-18 10:01:30 <-- _0x5eb_ (~seb@69.63.121.78.rev.sfr.net) has quit (Quit: Goodbye!) 2021-05-18 10:01:30 <-- atk (~Arch-TK@ircpuzzles/staff/Arch-TK) has quit (Remote host closed the connection) 2021-05-18 10:01:30 <-- Anthaas (~Anthaas@unaffiliated/anthaas) has quit (Quit: ZNC 1.7.1 - https://znc.in) 2021-05-18 10:01:30 <-- cluelessperson (~cluelessp@unaffiliated/cluelessperson) has quit (Remote host closed the connection) 2021-05-18 10:01:30 <-- KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-18 10:01:30 <-- sigtrm (~sigtrm@quassel.woboq.com) has quit (Remote host closed the connection) 2021-05-18 10:01:31 -- Lanjelin9 is now known as Lanjelin 2021-05-18 10:01:31 -- thinkofher1 is now known as thinkofher 2021-05-18 10:01:31 -- Myst1 is now known as Myst 2021-05-18 10:01:31 -- KeithAdams_ is now known as KeithAdams 2021-05-18 10:01:31 -- dongcarl7 is now known as dongcarl 2021-05-18 10:01:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 10:01:33 --> Nnavd (~Nnavd@34.220.224.214) has joined #python 2021-05-18 10:01:37 -- bzed_ is now known as bzed 2021-05-18 10:01:37 -- jcnmark6_ is now known as jcnmark6 2021-05-18 10:01:40 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-18 10:01:46 rond_ what's happening here? 2021-05-18 10:01:48 --> Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has joined #python 2021-05-18 10:01:54 --> kex (kex@gateway/vpn/privateinternetaccess/kex) has joined #python 2021-05-18 10:02:03 --> AllenJB (~AllenJB@pdpc/supporter/active/allenjb) has joined #python 2021-05-18 10:02:04 --> [Tritium] (~tritium@toxin.sdamon.com) has joined #python 2021-05-18 10:02:06 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 265 seconds) 2021-05-18 10:02:06 <-- nanobist (~nanobist@unaffiliated/nanobist) has quit (Ping timeout: 265 seconds) 2021-05-18 10:02:07 -- nanobist6 is now known as nanobist 2021-05-18 10:02:11 --> shicks255 (~shicks255@c-73-44-67-59.hsd1.il.comcast.net) has joined #python 2021-05-18 10:02:11 --> sigtrm (quassel@quassel.woboq.de) has joined #python 2021-05-18 10:02:11 <-- obiiwahn (~obiwahn@pdpc/supporter/student/obiwahn) has quit (Ping timeout: 240 seconds) 2021-05-18 10:02:15 --> pragmaticenigma (~pragmatic@unaffiliated/pragmaticenigma) has joined #python 2021-05-18 10:02:17 --> indigaz (~indigaz@unaffiliated/indigaz) has joined #python 2021-05-18 10:02:19 --> markmcclain (~markmccla@208.113.167.90) has joined #python 2021-05-18 10:02:21 -- x5eb is now known as _0x5eb_ 2021-05-18 10:02:41 -- Leonarbro_ is now known as Leonarbro 2021-05-18 10:02:48 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-18 10:02:49 -- Jigsy` is now known as Jigsy 2021-05-18 10:02:51 --> Anthaas (~Anthaas@unaffiliated/anthaas) has joined #python 2021-05-18 10:02:53 --> ekleog_ (~ii@prologin/ekleog) has joined #python 2021-05-18 10:02:57 --> tocka (uid198544@gateway/web/irccloud.com/x-pfxpfavenrfmhxyf) has joined #python 2021-05-18 10:03:04 --> ttrs (~ttrs@unaffiliated/ttrs) has joined #python 2021-05-18 10:03:12 --> Electric_Sheep (~esheep_zn@pool-100-19-29-200.phlapa.fios.verizon.net) has joined #python 2021-05-18 10:03:48 --> Vornicus (~Vornicus@2603-8000-5d07-7ef0-f859-7556-2435-3b76.res6.spectrum.com) has joined #python 2021-05-18 10:04:11 <-- zhalla (~zhalla@unaffiliated/zhalla) has quit (Ping timeout: 240 seconds) 2021-05-18 10:04:30 --> yamz (~contagiou@197.156.190.223) has joined #python 2021-05-18 10:04:54 <-- hurfdurf (~hurfdurf@2601:280:4f00:26a0:2957:73d:3743:ca55) has quit (Remote host closed the connection) 2021-05-18 10:04:54 --> warnabas (~warnabas@151.135.100.128) has joined #python 2021-05-18 10:05:02 -- Arch-TK is now known as atk 2021-05-18 10:05:11 <-- Masterphi (~Masterphi@unaffiliated/masterphi) has quit (Ping timeout: 240 seconds) 2021-05-18 10:05:17 --> hurfdurf (~hurfdurf@2601:280:4f00:26a0:6d01:9310:e74:949e) has joined #python 2021-05-18 10:05:33 varaindemian very_sneaky: they are not on the same line 2021-05-18 10:05:42 varaindemian very_sneaky: they are inserted randomly 2021-05-18 10:05:42 --> somis (~somis@149.56.153.186) has joined #python 2021-05-18 10:05:46 <-- ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has quit (Quit: Leaving) 2021-05-18 10:06:15 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-18 10:06:46 --> zhalla (~zhalla@unaffiliated/zhalla) has joined #python 2021-05-18 10:07:17 <-- salitos (~contagiou@197.156.190.223) has quit (Ping timeout: 260 seconds) 2021-05-18 10:07:23 --> semitones (semitones_@gateway/shell/bnc4free/x-llmzzecuoijvyjtb) has joined #python 2021-05-18 10:08:27 --> PantelicGR (~PantelicG@unaffiliated/pantelicgr) has joined #python 2021-05-18 10:08:44 <-- qj (~qj@unaffiliated/qj) has quit (Ping timeout: 245 seconds) 2021-05-18 10:09:11 --> zaki (~zaki@2601:403:4280:3a60::bc69) has joined #python 2021-05-18 10:09:51 <-- kristijonas_ (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-18 10:09:56 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 10:10:17 --> kristijonas_ (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-18 10:11:44 --> pk (~pk@unaffiliated/pkx) has joined #python 2021-05-18 10:12:20 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-18 10:12:22 <-- Flaghacker (~Flaghacke@253.188.60.188.dynamic.wline.res.cust.swisscom.ch) has quit (Quit: Leaving) 2021-05-18 10:13:04 <-- Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-18 10:13:16 --> qj (~qj@unaffiliated/qj) has joined #python 2021-05-18 10:13:29 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Quit: WeeChat 3.0.1) 2021-05-18 10:14:02 --> sofly (~sofly@unaffiliated/sofly) has joined #python 2021-05-18 10:14:12 --> br0lly (~doctor@ip-111-164.ip4.balmont.pl) has joined #python 2021-05-18 10:14:34 <-- citizen418 (~martin@2001:6b0:17:fc09:d36b:1cb8:58a8:347f) has quit (Quit: WeeChat 3.1) 2021-05-18 10:14:43 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 260 seconds) 2021-05-18 10:15:13 <-- mariuszskon (~mariuszsk@82.102.25.12) has quit (Ping timeout: 260 seconds) 2021-05-18 10:15:16 <-- pk (~pk@unaffiliated/pkx) has quit (Client Quit) 2021-05-18 10:15:38 <-- decimuscorvinus (~jimmy@136.37.105.112) has quit (Read error: Connection reset by peer) 2021-05-18 10:16:04 --> CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has joined #python 2021-05-18 10:16:18 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 10:16:24 --> Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has joined #python 2021-05-18 10:16:24 --> cdown_ (~cdown@89.32.122.5) has joined #python 2021-05-18 10:16:47 --> decimuscorvinus (~jimmy@136.37.105.112) has joined #python 2021-05-18 10:17:24 <-- rgr (~rgr@ip-109-42-113-52.web.vodafone.de) has quit (Quit: Leaving) 2021-05-18 10:17:39 <-- zaki (~zaki@2601:403:4280:3a60::bc69) has quit (Ping timeout: 250 seconds) 2021-05-18 10:18:20 --> Deesl (~bsdboy@redhat/deesl) has joined #python 2021-05-18 10:18:26 <-- greatgatsby (~greatgats@bras-base-toroon0411w-grc-52-142-114-106-27.dsl.bell.ca) has quit (Ping timeout: 260 seconds) 2021-05-18 10:18:40 --> greatgatsby (~greatgats@bras-base-toroon0411w-grc-52-142-114-106-27.dsl.bell.ca) has joined #python 2021-05-18 10:18:47 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 246 seconds) 2021-05-18 10:18:50 -- cdown_ is now known as cdown 2021-05-18 10:19:03 --> tinyhippo (~tinyhippo@special-hostmask/abercs.tinyhippo) has joined #python 2021-05-18 10:19:29 tinyhippo where would you put the list of python dependencies that are ONLY required for CI/testing? 2021-05-18 10:19:50 --> mariuszskon (~mariuszsk@82.102.25.12) has joined #python 2021-05-18 10:19:58 _habnabit tinyhippo, poetry has a section called dev-dependencies that i put those into 2021-05-18 10:20:01 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-18 10:20:09 _habnabit tinyhippo, and/or i put them in an extra 2021-05-18 10:20:40 tinyhippo is that compatible with serverless framework, to your knowledge? 2021-05-18 10:20:50 grym tinyhippo: usually as an extras package named 'dev' 2021-05-18 10:20:55 _habnabit tinyhippo, i don't know what that is, but probably 2021-05-18 10:21:29 --> qqqhhh (~qqqhhh@94.228.80.243) has joined #python 2021-05-18 10:23:40 bjs varaindemian: randomly? the key/values should be on their own line, or have some separation between them at least 2021-05-18 10:23:41 <-- argento (~argent0@168.227.96.26) has quit (Ping timeout: 240 seconds) 2021-05-18 10:23:43 <-- decimuscorvinus (~jimmy@136.37.105.112) has quit (Ping timeout: 252 seconds) 2021-05-18 10:23:46 gordonjcp tinyhippo: as I understand it, when you package stuff the things in "setup.py" are for packaging for users and the things in "requirements.txt" are for developers 2021-05-18 10:23:50 bjs varaindemian: otherwise you can't tell where a value ends and a key begins 2021-05-18 10:24:07 gordonjcp tinyhippo: I could be wrong, and someone is likely going to come along and explain how wrong I am 2021-05-18 10:24:24 tinyhippo I dont think that fits our use-case, as we're solely writing lambda functions 2021-05-18 10:24:29 --> DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has joined #python 2021-05-18 10:24:34 tinyhippo lambda as in aws lambda, so no setup.py 2021-05-18 10:25:05 InPhase gordonjcp: You could be right, and someone is still likely going to come along and explain how wrong you are. 2021-05-18 10:25:29 arecaceae is there a version of `os.symlink` that doesn't resolve its `src` or `dst` args in case they are symlinks themselves? 2021-05-18 10:25:36 <-- afidegnum (~user@102.176.65.244) has left #python ("ERC (IRC client for Emacs 27.2)") 2021-05-18 10:26:37 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-18 10:26:46 <-- Jorgee (~e@187.161.241.250) has quit (Ping timeout: 240 seconds) 2021-05-18 10:28:49 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 10:29:11 --> obiiwahn (~obiwahn@pdpc/supporter/student/obiwahn) has joined #python 2021-05-18 10:29:46 <-- botnet (quassel@gateway/vpn/protonvpn/botnet) has quit (Ping timeout: 252 seconds) 2021-05-18 10:29:49 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-18 10:30:14 SnoopJ arecaceae, does os.symlink() do that on your system? It does what you're asking for on my (Ubuntu 20.04) system 2021-05-18 10:31:21 arecaceae SnoopJ: thanks for the info, nvm then 2021-05-18 10:31:22 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-18 10:31:34 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 10:31:50 SnoopJ it's possible the behavior can vary 2021-05-18 10:32:10 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-18 10:32:45 --> alexgr (~alexgr@unaffiliated/alexgr) has joined #python 2021-05-18 10:32:49 <-- alexgr (~alexgr@unaffiliated/alexgr) has quit (Remote host closed the connection) 2021-05-18 10:33:44 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-18 10:34:36 raek does anyone know a good place to read about how to implement immutable types in extensions? 2021-05-18 10:34:51 <-- diogenese (~diogenese@diogenese.velotech.net) has quit (Quit: Has anybody seen the bridge?) 2021-05-18 10:34:58 raek (or if anyone happens to know about the pure python case I'm curious about that too) 2021-05-18 10:35:03 --> dntreou (~yakiza@vpn1.datalogix.com) has joined #python 2021-05-18 10:35:07 --> diogenese (~diogenese@diogenese.velotech.net) has joined #python 2021-05-18 10:35:10 <-- varaindemian (~oct@86.124.78.162) has quit (Quit: Lost terminal) 2021-05-18 10:36:23 --> ewdwasright (~ewdwasrig@108.210.81.181) has joined #python 2021-05-18 10:36:47 Yhg1s raek: in Python it's hard to make them actually immutable, but you can make them not trivially mutable. In extensions you have to do extra work to make any data in the PyObject struct mutable. 2021-05-18 10:36:59 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-18 10:37:33 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 240 seconds) 2021-05-18 10:37:33 --> salitos (~contagiou@197.156.190.210) has joined #python 2021-05-18 10:38:17 <-- drogas (c251df42@gateway/web/cgi-irc/kiwiirc.com/ip.194.81.223.66) has quit (Quit: Connection closed) 2021-05-18 10:38:26 SnoopJ and you should be careful to be as specific as you can be about who sees the type as immutable: the C-API offers ways to mutate tuples, but the Python type does not. 2021-05-18 10:38:52 Yhg1s (only newly created tuples.) 2021-05-18 10:39:00 pragmaticenigma What comes to mind for an immutable object, would be to use the double underscore encapsulation, and only define properties getters 2021-05-18 10:39:23 SnoopJ Yhg1s, is there something that prevents the mutate-y functions from changing tuples that have hung around for a while, or is that a usage convention? 2021-05-18 10:39:39 <-- sadiq75 (8a80ae52@server1.rootdnsserver.com) has quit (Quit: Connection closed) 2021-05-18 10:39:44 --> Turn_Left (~Matthew@31.124.100.228) has joined #python 2021-05-18 10:40:15 Yhg1s SnoopJ: https://github.com/python/cpython/blob/main/Objects/tupleobject.c#L197 2021-05-18 10:40:56 SnoopJ ahh, I should've looked before asking :) 2021-05-18 10:41:06 <-- yamz (~contagiou@197.156.190.223) has quit (Ping timeout: 268 seconds) 2021-05-18 10:41:33 <-- chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-18 10:43:41 <-- Left_Turn (~Matthew@unaffiliated/turn-left/x-3739067) has quit (Ping timeout: 260 seconds) 2021-05-18 10:43:56 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Read error: Connection reset by peer) 2021-05-18 10:46:02 <-- Deesl (~bsdboy@redhat/deesl) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-18 10:46:04 --> Cherenkov (~Cherenkov@a109-49-131-251.cpe.netcabo.pt) has joined #python 2021-05-18 10:46:15 --> purplex88 (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-18 10:46:39 <-- psachin (~psachin@103.51.232.179) has quit (Ping timeout: 268 seconds) 2021-05-18 10:47:24 <-- Nact (~l@host-85-27-120-35.dynamic.voo.be) has quit (Quit: Konversation terminated!) 2021-05-18 10:48:06 <-- philh (~philh@212.221.81.10) has quit (Remote host closed the connection) 2021-05-18 10:48:06 --> drogas (c251df42@gateway/web/cgi-irc/kiwiirc.com/ip.194.81.223.66) has joined #python 2021-05-18 10:48:26 <-- warnabas (~warnabas@151.135.100.128) has quit (Remote host closed the connection) 2021-05-18 10:49:47 <-- hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has quit (Quit: WeeChat 3.1) 2021-05-18 10:50:24 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-18 10:51:05 --> parabolize (~paraboliz@98.43.173.221) has joined #python 2021-05-18 10:53:07 mikeike2 hi everyone. i'm trying to do something like l.append(PDFFile(args..)) but i keep getting 'PDFFile' object is not subscriptable 2021-05-18 10:53:21 mikeike2 i'm trying to create a list of PDFFile objects 2021-05-18 10:53:26 <-- salitos (~contagiou@197.156.190.210) has quit (Ping timeout: 268 seconds) 2021-05-18 10:53:28 --> argento (~argent0@168.227.96.26) has joined #python 2021-05-18 10:54:20 <-- rpg (~rpg@162-219-230-90.fttp.usinternet.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-18 10:54:31 <-- sine0 (~sine0@unaffiliated/sine0) has quit (Ping timeout: 252 seconds) 2021-05-18 10:55:43 <-- leduyquang753 (~leduyquan@27.73.107.184) has quit (Quit: leaving) 2021-05-18 10:57:16 graingert mikeike2: show your code? 2021-05-18 10:57:29 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-18 10:58:26 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 10:58:26 --> cthu| (~cthulchu@193.194.107.250) has joined #python 2021-05-18 10:59:18 mikeike2 graingert https://dpaste.org/WPfq 2021-05-18 10:59:28 mikeike2 i get the error on line 28 2021-05-18 10:59:28 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-18 10:59:35 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-18 10:59:36 mikeike2 tell me if you need to see any other parts of the code 2021-05-18 11:00:03 -- yitz_ is now known as yitz 2021-05-18 11:00:09 mikeike2 i made some changes and i get the same error on line 24. 2021-05-18 11:00:11 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 240 seconds) 2021-05-18 11:00:53 <-- craigevil (craig@gateway/vpn/protonvpn/craigevil) has left #python 2021-05-18 11:01:10 mikeike2 oh crap. i see the problem. 2021-05-18 11:01:11 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Ping timeout: 240 seconds) 2021-05-18 11:01:13 graingert mikeike2: Show the full Traceback? 2021-05-18 11:01:14 <-- agrawalr_ (~agrawalri@2401:4900:523b:2f39:8c81:5ed3:1768:bf3d) has quit (Ping timeout: 245 seconds) 2021-05-18 11:01:24 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 11:01:30 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 11:01:39 mikeike2 sorry for wasting your time. thanks! 2021-05-18 11:01:45 --> irrgit (~ch33se@192.241.175.183) has joined #python 2021-05-18 11:02:49 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-18 11:03:01 --> Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has joined #python 2021-05-18 11:03:44 graingert ? 2021-05-18 11:04:21 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 11:04:29 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-18 11:04:31 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Quit: Leaving) 2021-05-18 11:04:39 Kingsy if I have a call like this -> self.client.places_autocomplete(...) <- where self.client is self.client = googlemaps.Client(base_url=url, key=api_key) <- how can I mock that in a test? I have with mock.patch('googlemaps.client.places_autocomplete', ... right now, but that doesnt seem to do anything.. 2021-05-18 11:05:10 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 11:06:50 --> SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has joined #python 2021-05-18 11:07:02 --> bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-18 11:07:03 --> Deesl (~bsdboy@redhat/deesl) has joined #python 2021-05-18 11:08:19 --> node1 (~o@unaffiliated/node1) has joined #python 2021-05-18 11:08:19 <-- dntreou (~yakiza@vpn1.datalogix.com) has quit (Ping timeout: 265 seconds) 2021-05-18 11:08:49 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-18 11:08:52 bancroft_ BytesIO().getvalue() returns a bytes object right? 2021-05-18 11:08:58 --> ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has joined #python 2021-05-18 11:09:04 bancroft_ for mypy 2021-05-18 11:09:46 stealth_ bancroft_, ya but why would you want to do that? 2021-05-18 11:10:19 stealth_ bancroft_, if you are using BytesIO there should be some reason to use it as a mimic of FileIO 2021-05-18 11:10:48 <-- Thanatos (~Thanatos@ec2-54-148-37-124.us-west-2.compute.amazonaws.com) has quit (Ping timeout: 252 seconds) 2021-05-18 11:10:52 <-- rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has quit (Quit: Connection closed) 2021-05-18 11:11:11 <-- mcope (~mcope@88.98.90.199) has quit (Quit: Konversation terminated!) 2021-05-18 11:11:31 bancroft_ stealth_: gen some binary files for some tests without having binary files in the repo and other reasons 2021-05-18 11:12:02 --> talin (~unknown@unaffiliated/talin) has joined #python 2021-05-18 11:12:17 stealth_ bancroft_, wouldn't it be better just to do b'something' 2021-05-18 11:12:23 Kingsy like if I have a function. I can see it in the source code. what is the best way of finding its "path" to mock it? 2021-05-18 11:12:34 talin hello. how can i wrap a long line like: print("{blah + yarr + meep + something + else}")? 2021-05-18 11:12:35 --> botnet (~quassel@167.98.189.66) has joined #python 2021-05-18 11:12:44 bancroft_ Kingsy: can you give a code example? 2021-05-18 11:13:02 bancroft_ talin, just do multiple lines of strings without commas 2021-05-18 11:14:19 bancroft_ talin: https://bpa.st/UVLA 2021-05-18 11:14:32 grym talin: https://bpa.st/CYWQ is legal 2021-05-18 11:14:45 talin hmm 2021-05-18 11:15:02 --> GGMethos (~methos@2400:8901::f03c:92ff:fe97:52cb) has joined #python 2021-05-18 11:15:36 grym two string literals with only whitespace in between is implicit concatenation 2021-05-18 11:15:42 <-- DnzAtWrkV2 (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has quit (Read error: Connection reset by peer) 2021-05-18 11:15:42 Kingsy bancroft_: sure. well the real work example is, my code is including the googlemaps api package. and it references this function -> https://github.com/googlemaps/google-maps-services-python/blob/master/googlemaps/client.py#L444 <- which I want to mock. 2021-05-18 11:15:54 grym never really sure if that's a misfeature or not, but it is occasionally quite handy 2021-05-18 11:16:22 bancroft_ I love it, but it was mind blowing when someone told me about it too 2021-05-18 11:16:29 talin bancroft_, grym: thanks guys :) 2021-05-18 11:16:47 --> Rapture (~Rapture@71.236.251.149) has joined #python 2021-05-18 11:17:11 --> shantanoo (~shantanoo@p3m/member/shantanoo) has joined #python 2021-05-18 11:19:15 Kingsy bancroft_: I just don't understand the code in this pakcage. 2021-05-18 11:19:44 mikeike2 in a list of instances of the same object, say [Obj(1), Obj(2), ...], will del recognize each instance? for example, f,g = Obj(1), Obj(2); list = [f,g]; del list[f] is going to delete the instance that was created with Obj(1)? both of them? 2021-05-18 11:20:25 mikeike2 in other words, as far as del is considered, is Obj(1) identical to another Obj(1)? is Obj(1) identical to Obj(2) because they are of the same Obj? 2021-05-18 11:20:32 mikeike2 s/considered/concerned 2021-05-18 11:20:50 grym mikeike2: you can try it out and see what happens 2021-05-18 11:22:04 --> lethu (~lethu@unaffiliated/lethu) has joined #python 2021-05-18 11:22:07 -- drincruz_ is now known as drincruz 2021-05-18 11:22:20 mikeike2 TypeError: list indices must be integers or slices, not O 2021-05-18 11:22:21 mikeike2 fml 2021-05-18 11:22:43 mikeike2 so i need to loop through and remove by the index 'manually'? 2021-05-18 11:22:57 grym mikeike2: the usual idiom to filter a list is to use a comprehension. 2021-05-18 11:23:18 grym mikeike2: `mylist = [x for x in mylist if this_returns_true_about_x(x)]` 2021-05-18 11:23:36 --> plutoniix (~q@node-uic.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-18 11:23:47 mikeike2 grym so you suggest to recreate the list without the object that i want to delete? 2021-05-18 11:23:49 grym yes 2021-05-18 11:23:52 Kingsy ah ha! its this -> https://github.com/googlemaps/google-maps-services-python/blob/master/googlemaps/places.py#L499 <- specifically I want to mock. 2021-05-18 11:24:04 grym mikeike2: and if your filter is really simple, you can write a lambda there 2021-05-18 11:24:05 <-- plutoniix (~q@node-uic.pool-125-24.dynamic.totinternet.net) has quit (Max SendQ exceeded) 2021-05-18 11:24:11 grym or test an attribute, or w/e 2021-05-18 11:24:22 bancroft_ Kingsy: I would do import pdb; pdb.set_trace() and just dir() and help() on objects in `from googlemaps.client import Client, Client.places_autocomplete, ... ` 2021-05-18 11:24:24 grym [x for x in mylist if x.foo=="bar"], say 2021-05-18 11:24:58 <-- fflori (~fflori@nat-wlan-uzh-89-206-64-018.uzh.ch) has quit (Remote host closed the connection) 2021-05-18 11:25:08 bancroft_ Kingsy: just try stuff, because i'm not quickly finding anything in the docs 2021-05-18 11:25:15 mikeike2 yup that works. how'd you do it with lambda, out of curiousity? 2021-05-18 11:25:19 --> plutoniix (~q@node-uic.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-18 11:25:27 Kingsy bancroft_: sorry what do you mean? could you shove that in a bpaste? 2021-05-18 11:25:49 mikeike2 the test is simple, just omitting the item if item.name == "whatever" (or keeping if != "whatever") 2021-05-18 11:25:50 <-- lethu (~lethu@unaffiliated/lethu) has quit (Client Quit) 2021-05-18 11:26:37 --> cdown_ (~cdown@163.114.131.1) has joined #python 2021-05-18 11:26:41 grym mikeike2: er, probably not a lambda actually. that's more natural for things like sorted(), which take a key= 2021-05-18 11:26:46 <-- sz0 (uid110435@gateway/web/irccloud.com/x-fpfeimeqtceiorln) has quit (Quit: Connection closed for inactivity) 2021-05-18 11:26:50 mikeike2 okay 2021-05-18 11:27:04 <-- Jerrynicki (~niklas@p200300f577066b00e4ebfcceee5fed9e.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-18 11:27:11 --> derphilipp (~phw@p200300cd3f335800ba27ebfffe72e774.dip0.t-ipconnect.de) has joined #python 2021-05-18 11:27:17 bancroft_ Kingsy: https://bpa.st/D4YA 2021-05-18 11:27:20 grym mikeike2: e.g., sorted([(1,"hi"),(0,"apple")], key=lambda x: x[0]) 2021-05-18 11:27:26 grym (sorts by integer) 2021-05-18 11:27:43 grym sorted([(1,"hi"),(0,"apple")], key=lambda x: x[1]) sorts lexicographically by string 2021-05-18 11:28:00 --> fflori (~fflori@nat-wlan-uzh-89-206-64-004.uzh.ch) has joined #python 2021-05-18 11:28:04 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-18 11:28:13 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 11:28:39 mikeike2 thanks. 2021-05-18 11:29:09 codehotter Is it always legal to nest a json document? So if "s" is a json document and I do f'{"s": {s}' is that guaranteed to be valid json? Or do I need to deserialize it, build an object, and reserialize it? 2021-05-18 11:29:29 --> blackwidowmovie0 (uid471480@gateway/web/irccloud.com/x-vfbvazuqvynwyqbm) has joined #python 2021-05-18 11:29:35 <-- cdown (~cdown@89.32.122.5) has quit (Ping timeout: 265 seconds) 2021-05-18 11:29:39 -- cdown_ is now known as cdown 2021-05-18 11:29:39 ChrisWarrick codehotter: don’t build json by hand 2021-05-18 11:29:41 <-- Fischerfredl (~Thunderbi@194.135.131.212) has quit (Quit: Fischerfredl) 2021-05-18 11:29:42 derphilipp I have multiple threads. What should I use to set and get states? (example: states set by http service, but read by UDP service) 2021-05-18 11:29:47 ChrisWarrick codehotter: use the json library, no exceptions 2021-05-18 11:30:02 <-- Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 11:30:27 codehotter ChrisWarrick: I'm not actually in python, I'm in a low code platform that I can't easily deserialize and reserialize objects in without creating a "native extension" :P 2021-05-18 11:30:39 Kingsy bancroft_: I cant really use set_trace, I am looking at it through a debugger anyway 2021-05-18 11:30:46 codehotter It would be convenient if that was guaranteed to be valid json 2021-05-18 11:30:48 ChrisWarrick codehotter: #python helps with python 2021-05-18 11:30:49 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-18 11:31:35 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Ping timeout: 246 seconds) 2021-05-18 11:31:36 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-18 11:31:40 <-- veek (~veek@unaffiliated/veek) has quit (Read error: Connection reset by peer) 2021-05-18 11:31:45 --> veek_ (~veek@unaffiliated/veek) has joined #python 2021-05-18 11:31:48 --> agrawalritesh (~agrawalri@2401:4900:523b:2f39:8c81:5ed3:1768:bf3d) has joined #python 2021-05-18 11:31:49 --> zaki (~zaki@2601:403:4280:3a60::bc69) has joined #python 2021-05-18 11:31:56 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-18 11:32:05 Kingsy bancroft_: so I have places_autocomplete in Client 2021-05-18 11:32:13 Peyam bjs, I lost your code about the datetime 2021-05-18 11:32:21 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 11:32:32 -- sauvin_ is now known as Sauvin 2021-05-18 11:32:39 Kingsy bancroft_: so perhaps -> googlemaps.client.Client.places_autocomplete 2021-05-18 11:32:57 <-- Mulugruntz (~Mulugrunt@i114-187-227-91.s41.a040.ap.plala.or.jp) has quit (Quit: ZZZzzz…) 2021-05-18 11:32:58 <-- veek_ (~veek@unaffiliated/veek) has quit (Read error: Connection reset by peer) 2021-05-18 11:33:07 bancroft_ places_autocomplete is a method 2021-05-18 11:33:14 codehotter ChrisWarrick: sorry I mean I'm errr. concerned about performance, and if it's guaranteed to be valid JSON, that would surely be faster than deserializing and reserializing 2021-05-18 11:33:27 Kingsy bancroft_: that did it!! 2021-05-18 11:33:55 --> panikovsky (~panikovsk@87.117.48.120) has joined #python 2021-05-18 11:33:58 pragmaticenigma codehotter: The only way to really validate what you are doing is to use tools to validate with. You're giving hypotheticals which without a lot more context, and being beyond the scope of this channel, can't be answered 2021-05-18 11:34:00 ELFrederich anyone know if it is possible with poetry to override PyPI using an environment variable and not editing pyproject.toml? Like how with pip you can use PIP_INDEX_URL 2021-05-18 11:34:12 ChrisWarrick codehotter: I would still be concerned about taking this shortcut so that it doesn’t encourage too many shortcuts (even though it should always produce valid json) 2021-05-18 11:34:46 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-18 11:35:25 pragmaticenigma codehotter: The only way to verify something works or not is to use a real json library to perform the serialize and deserialize to validate your test case with. If a known json library doesn't like it, then it's a high probability it's not valid. 2021-05-18 11:35:25 --> ponyala_ (ponyala@gateway/vpn/privateinternetaccess/ponyala) has joined #python 2021-05-18 11:35:28 gloomy_desktop Hey, if I have a Nx2 numpy vector, what's the short way to swap its columns? 2021-05-18 11:35:51 _habnabit gloomy_desktop, arr[:, ::-1] maybe 2021-05-18 11:35:59 gloomy_desktop I can think of many dumb ways of doing it but there must be a way to make it more concise :-) 2021-05-18 11:36:31 pragmaticenigma also, string inserting json inside of other json is a bad idea. just like string inserting to SQL queries are a bad idea 2021-05-18 11:36:44 gloomy_desktop _habnabit: yes!!!! been fumbling around with indices to no end.... thanks! 2021-05-18 11:36:48 <-- LKoen (~LKoen@2a01cb0407597a00c5d4c5917c5d748f.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-18 11:37:20 codehotter pragmaticenigma: That makes perfect sense - and I can actually validate a bunch of historical json documents because those are stored in my database. But, even if that has a 100% success rate (which I expect) I'm still worried it's not actually guaranteed to be valid json. 2021-05-18 11:37:24 Kingsy bancroft_: thanks for your help! dir() was a good thing. 2021-05-18 11:37:40 codehotter pragmaticenigma: Sometimes I prefer theory over practice :P 2021-05-18 11:37:44 --> ShekharReddy (uid132367@gateway/web/irccloud.com/x-wdorpptbqctzegiy) has joined #python 2021-05-18 11:37:52 <-- SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-18 11:37:56 codehotter If both theory and practice align, you can be pretty confident 2021-05-18 11:38:02 bancroft_ Kingsy: yeah, dir and id, great little nuggets and probably my fave :) 2021-05-18 11:38:22 _habnabit (id is _very_ rarely useful. normally better to figure out) 2021-05-18 11:38:24 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-18 11:38:33 grym gloomy_desktop: https://bpa.st/7LZQ 2021-05-18 11:38:33 _habnabit (id is _very_ rarely useful. normally better to leave it) 2021-05-18 11:38:42 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 11:38:43 SnoopJ id -1 2021-05-18 11:40:25 graingert the stdlib uses it for `id(x) == id(y)` because x is y is too fast 2021-05-18 11:40:38 _habnabit graingert, .. too fast? 2021-05-18 11:40:42 SnoopJ oh wait, id, not is 2021-05-18 11:40:47 SnoopJ id +1, is -1 :v 2021-05-18 11:40:50 graingert Yep goes too fast 2021-05-18 11:41:02 _habnabit SnoopJ, how can one be better than the other 2021-05-18 11:41:12 graingert it's about the same speed on cPython but makes pypy much much faster 2021-05-18 11:41:47 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-18 11:41:56 graingert So the more they use `id(x) == id(y)` the faster cPython appears to be 2021-05-18 11:42:01 graingert Relative to pypy 2021-05-18 11:42:17 _habnabit graingert, oh, that penalty 2021-05-18 11:42:36 SnoopJ _habnabit, coupling to a bad programming language (English) 2021-05-18 11:42:48 _habnabit SnoopJ, true 2021-05-18 11:42:51 <-- tralfaz (~dulyNoded@c-73-221-225-225.hsd1.wa.comcast.net) has quit (Quit: Leaving) 2021-05-18 11:43:14 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-18 11:43:21 gloomy_desktop And the python devs don't want cpython to be faster? Can't figure out if you're being sarcastic or if I'm missing something :D 2021-05-18 11:43:26 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-18 11:43:36 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 265 seconds) 2021-05-18 11:43:39 graingert gloomy_desktop: no it's about the same speed on cPython 2021-05-18 11:43:46 graingert But faster on pupyy 2021-05-18 11:43:50 graingert pypy* 2021-05-18 11:44:19 --> MarderIII (~MarderIII@2001:981:5b5b:1:bccf:85ee:8e10:2f9b) has joined #python 2021-05-18 11:44:45 gloomy_desktop oh, like that. makes sense 2021-05-18 11:45:56 <-- ponyala_ (ponyala@gateway/vpn/privateinternetaccess/ponyala) has quit (Quit: WeeChat 2.3) 2021-05-18 11:46:01 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-18 11:46:24 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-18 11:46:39 <-- AckSynAck (~AckSynAck@unaffiliated/acksynack) has quit (Quit: Leaving) 2021-05-18 11:47:14 --> noctis_umbra (~noctis_um@190-2-138-12.hosted-by-worldstream.net) has joined #python 2021-05-18 11:47:19 <-- SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-18 11:47:19 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-18 11:47:33 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-18 11:48:03 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-18 11:48:05 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Remote host closed the connection) 2021-05-18 11:48:15 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-18 11:48:19 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Remote host closed the connection) 2021-05-18 11:48:29 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-18 11:48:34 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Client Quit) 2021-05-18 11:49:09 <-- agrawalritesh (~agrawalri@2401:4900:523b:2f39:8c81:5ed3:1768:bf3d) has quit (Ping timeout: 245 seconds) 2021-05-18 11:50:14 <-- noctis_umbra (~noctis_um@190-2-138-12.hosted-by-worldstream.net) has quit (Quit: Leaving) 2021-05-18 11:50:31 <-- Abrax (~Abrax@unaffiliated/abrax) has quit (Quit: Leaving) 2021-05-18 11:50:40 --> mertyildiran (~mertyildi@85.100.224.245) has joined #python 2021-05-18 11:50:46 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-18 11:51:12 --> cow[moo] (~asanger@c-69-244-155-110.hsd1.mi.comcast.net) has joined #python 2021-05-18 11:51:35 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-18 11:51:50 <-- shantanoo (~shantanoo@p3m/member/shantanoo) has quit 2021-05-18 11:52:11 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-18 11:53:15 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Ping timeout: 268 seconds) 2021-05-18 11:53:22 --> neilthereildeil (cc73b704@unaffiliated/neilthereildeil) has joined #python 2021-05-18 11:53:25 neilthereildeil hey guys 2021-05-18 11:53:29 grym sup 2021-05-18 11:53:33 --> kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has joined #python 2021-05-18 11:53:40 neilthereildeil im getting what appears to be a deadlock issue 2021-05-18 11:53:47 neilthereildeil in a multiprocessing application 2021-05-18 11:53:50 --> jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has joined #python 2021-05-18 11:54:05 neilthereildeil when i have each child process writing to stdout/stderr 2021-05-18 11:54:07 <-- Haudegen (~quassel@91.114.49.10) has quit (Quit: Bin weg.) 2021-05-18 11:54:11 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 240 seconds) 2021-05-18 11:54:27 neilthereildeil and that stdout/stderr is being forwarded to a log file by supervisorctl 2021-05-18 11:54:31 neilthereildeil on a linux machine 2021-05-18 11:54:45 neilthereildeil somoene else is having the same error as me: https://stackoverflow.com/questions/54766479/logging-multithreading-deadlock-in-python 2021-05-18 11:54:55 neilthereildeil this is when logging from a multiprocess application 2021-05-18 11:55:02 neilthereildeil but i wanted todiscuss the issue with you all 2021-05-18 11:55:49 <-- Trieste (T@gateway/vpn/protonvpn/trieste) has quit (Ping timeout: 245 seconds) 2021-05-18 11:55:53 neilthereildeil i call subprocess.Popen(myArgArray,                 stdout=subprocess.PIPE,                stderr=subprocess.PIPE) 2021-05-18 11:56:16 pragmaticenigma neilthereildeil: Please don't use the enter key as punctuation 2021-05-18 11:56:27 <-- Deesl (~bsdboy@redhat/deesl) has quit (Ping timeout: 250 seconds) 2021-05-18 11:56:33 neilthereildeil but the python 2.7 docs dont strictly say i risk deadlock when i call Poepn construct 2021-05-18 11:56:39 supakeen You risk a deadlock, yes. 2021-05-18 11:56:56 neilthereildeil it says i only risk deadlock for call and check_call 2021-05-18 11:56:59 _habnabit neilthereildeil, can you tell us when your question is done? 2021-05-18 11:57:00 neilthereildeil https://docs.python.org/2/library/subprocess.html#subprocess.Popen 2021-05-18 11:57:26 --> s8548a__ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-18 11:57:27 neilthereildeil sp my question is: why am i impacted if i didnt call either of those 2 APIs? 2021-05-18 11:57:27 pragmaticenigma neilthereildeil: Python 2.7 is EOL ... not sure why you're trying to develop with that 2021-05-18 11:57:38 neilthereildeil so* my question is 2021-05-18 11:58:03 _habnabit neilthereildeil, Popen is similarly at risk 2021-05-18 11:58:06 --> Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has joined #python 2021-05-18 11:58:17 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 11:58:17 --> cdown_ (~cdown@89.32.122.5) has joined #python 2021-05-18 11:58:24 grym neilthereildeil: iirc call and check_call are just wrappers for POpen anyway 2021-05-18 11:58:34 neilthereildeil ah 2021-05-18 11:58:45 supakeen They are but the deadlock is related to communicatie. 2021-05-18 11:58:49 pragmaticenigma neilthereildeil: They found a solution in that stack overflow, with an explination 2021-05-18 11:58:53 neilthereildeil i feel like the docs should warn for Popen also in that case 2021-05-18 11:59:01 supakeen While call/check_call likely just close the relevant fds. 2021-05-18 11:59:37 pragmaticenigma neilthereildeil: The documentation says don't do it: 2021-05-18 11:59:37 pragmaticenigma Note 2021-05-18 11:59:37 pragmaticenigma Do not use stdout=PIPE or stderr=PIPE with this function as that can deadlock based on the child process output volume. Use Popen with the communicate() method when you need pipes. 2021-05-18 11:59:38 grym neilthereildeil: perhaps, but 2.7 docs won't get updated 2021-05-18 11:59:43 --> c0eos5 (~coeos@171.244.116.78.rev.sfr.net) has joined #python 2021-05-18 11:59:48 pragmaticenigma neilthereildeil: https://docs.python.org/2/library/subprocess.html#using-the-subprocess-module 2021-05-18 11:59:56 supakeen And the deadlock the documentation refers to is specifically about reading from a process' stdout/stderr, you might be blocking on a read from it while you would need to send data for it to generate output again, etc. 2021-05-18 12:00:35 --> Trieste (T@gateway/vpn/protonvpn/trieste) has joined #python 2021-05-18 12:00:52 <-- c0eos (~coeos@171.244.116.78.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-18 12:00:53 -- c0eos5 is now known as c0eos 2021-05-18 12:00:57 neilthereildeil supakeen: ahh so the deadlock is because its hald duplex communication in these pipes? i can either read OR write?? 2021-05-18 12:01:06 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 260 seconds) 2021-05-18 12:01:09 <-- s8548a_ (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 260 seconds) 2021-05-18 12:01:11 neilthereildeil im still trying to understand the deadlock 2021-05-18 12:01:15 -- cdown_ is now known as cdown 2021-05-18 12:01:34 supakeen You can do both but it's easy to get into the situation where you're reading but no new data is coming, nor is the subprocess exiting and then you're stuck. 2021-05-18 12:01:58 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 12:02:41 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-18 12:03:22 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 12:03:53 --> tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has joined #python 2021-05-18 12:03:56 neilthereildeil so after every call to Popen, i call communicate. isnt that the correct way to do it? 2021-05-18 12:04:13 neilthereildeil the warning says "Use Popen with the communicate() method when you need pipes." 2021-05-18 12:04:27 neilthereildeil this is what i do: outData, errData = process.communicate(None) 2021-05-18 12:05:23 --> ablive (~chatzilla@178.159.171.114) has joined #python 2021-05-18 12:05:39 --> keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has joined #python 2021-05-18 12:05:41 supakeen Yes, it will hang there forever if the subprocess doesn't exit. 2021-05-18 12:06:13 --> s8548a_ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-18 12:06:25 supakeen In Python 3 a `timeout` argument was added to Popen so you can exit if it takes too long. 2021-05-18 12:07:11 <-- Naan (~naan@unaffiliated/naan) has quit (Ping timeout: 260 seconds) 2021-05-18 12:07:31 neilthereildeil ohh interesting 2021-05-18 12:07:42 neilthereildeil and i DO see a lot of these subprocesses "hanging" around 2021-05-18 12:08:28 supakeen In general it's also a bad plan to be stuck on an unmaintained version of Python that is a decade or two old, if there's any bugs they're more likely to still be in there. 2021-05-18 12:08:44 --> SallyAhaj__ (sallyahaj@gateway/vpn/protonvpn/sallyahaj) has joined #python 2021-05-18 12:09:15 neilthereildeil and i see the shild process stuck at: #0 0x00007f4bff842819 in __GI___poll (fds=0x7f4bf8001020, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 2021-05-18 12:09:23 --> markb1 (~mbiggers@2603-6080-6009-9ec0-b86f-ed5e-b088-30a5.res6.spectrum.com) has joined #python 2021-05-18 12:09:28 neilthereildeil this looks like file descriptor IO 2021-05-18 12:09:49 SnoopJ neilthereildeil, the documentation for communicate() says "Wait for process to terminate," so it does that. 2021-05-18 12:09:51 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-dqmaubxgfwptkikj) has joined #python 2021-05-18 12:09:54 <-- s8548a__ (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 268 seconds) 2021-05-18 12:09:55 neilthereildeil prolly stdout or stderr 2021-05-18 12:10:13 neilthereildeil so i think thats my issue 2021-05-18 12:10:15 neilthereildeil cool 2021-05-18 12:10:21 supakeen if you're not reading from those (or not fast enough) the process can hang as write will start blocking 2021-05-18 12:10:22 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-18 12:10:46 <-- SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has quit (Ping timeout: 240 seconds) 2021-05-18 12:10:47 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 12:11:03 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-18 12:11:29 <-- sylvain31 (~sylvain@lputeaux-658-1-125-129.w193-252.abo.wanadoo.fr) has quit (Quit: Leaving) 2021-05-18 12:11:30 <-- Techcable (~Techcable@168.235.93.147) has quit (Quit: ZNC - https://znc.in) 2021-05-18 12:11:37 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-18 12:11:38 <-- mozgalom_ (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-18 12:11:56 neilthereildeil so i understand the problem, but how can i fix it in python 2.7? 2021-05-18 12:12:12 <-- Rapture (~Rapture@71.236.251.149) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-18 12:12:13 --> Techcable (~Techcable@168.235.93.147) has joined #python 2021-05-18 12:12:24 supakeen the same as in any language, read, read regularly, read with a timeout in case you might need to send data as well 2021-05-18 12:12:30 supakeen or close stdout/stderr 2021-05-18 12:13:23 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-18 12:14:29 <-- s8548a_ (~s8548a@unaffiliated/s8548a) has quit (Read error: Connection reset by peer) 2021-05-18 12:14:41 --> drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-18 12:14:51 SnoopJ agreed, don't use communicate() if you don't want the wait-until-process-terminates behavior that it implies in old Python 2021-05-18 12:15:04 grawity ...wait, it *doesn't* imply that in new python? 2021-05-18 12:15:31 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 250 seconds) 2021-05-18 12:15:34 supakeen 'new' python has a timeout argument to return from communicate 'early' :) 2021-05-18 12:16:17 neilthereildeil with close_fds "all file descriptors except 0, 1 and 2 will be closed" 2021-05-18 12:16:25 neilthereildeil so i dont think close_fds is going to work 2021-05-18 12:17:25 supakeen no 2021-05-18 12:17:55 supakeen that's a different thing, after the process starts you can close it's stdin/stdout/stderr with say process.stdin.close() 2021-05-18 12:17:55 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 268 seconds) 2021-05-18 12:18:12 <-- ablive (~chatzilla@178.159.171.114) has quit (Quit: ChatZilla 0.9.96 [SeaMonkey 2.53.7.1/20210410163459]) 2021-05-18 12:18:19 <-- klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-18 12:18:36 --> DemonOne (~androirc@2a00:a040:188:b2b3:6c4f:76fe:1bfd:c53) has joined #python 2021-05-18 12:18:40 SnoopJ grawity, it does, but only if you didn't pass timeout 2021-05-18 12:19:05 neilthereildeil supakeen: so ur saying from the parent, manually close the STD fds of the child after launching the child process? 2021-05-18 12:19:23 DemonOne Hello. Is there a blessed json schema library? 2021-05-18 12:19:25 supakeen yes, that's what i said 2021-05-18 12:19:30 SnoopJ neilthereildeil, if the child is waiting for stdin to be closed, then yea, do it that way 2021-05-18 12:19:47 SnoopJ DemonOne, I've had good success with https://pypi.org/project/jsonschema/ 2021-05-18 12:19:54 neilthereildeil also FYI, i am not redirecting STDIN for the child processes. only STDOUT and STDERR 2021-05-18 12:20:05 supakeen the `close_fds` argument is because a fork+exec inherits the open file descriptors from the previous process 2021-05-18 12:20:24 neilthereildeil so i dont see why this would deadlock due to not getting input to execute on... 2021-05-18 12:20:29 --> LuxuryMode (uid91005@gateway/web/irccloud.com/x-obynhqrkvbaobogq) has joined #python 2021-05-18 12:20:38 --> SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-18 12:20:39 <-- SallyAhaj__ (sallyahaj@gateway/vpn/protonvpn/sallyahaj) has quit (Remote host closed the connection) 2021-05-18 12:20:51 supakeen it's not it's likely because you're not (properly) reading the data the child process is producing and so it fills up its buffer and its write calls start blocking making it never exit 2021-05-18 12:21:03 supakeen for whatever raisin 2021-05-18 12:21:17 DemonOne SnoopJ thanks 2021-05-18 12:21:18 supakeen anyways -> dinner good luck :) 2021-05-18 12:21:21 SnoopJ DemonOne, although if you're generating a JSONSchema description of a data model in your code, I recommend taking a look at Pydantic, it can render JSONSchema 2021-05-18 12:21:54 neilthereildeil and now that im thinking about it more, the child processes are basically system info commands that dont take stdin input. they are just passed the necessary arguments at child process launch time 2021-05-18 12:22:03 SnoopJ although Pydantic *only* does draft-7 I think 2021-05-18 12:22:16 -- nacelle_ is now known as nacelle 2021-05-18 12:22:28 DemonOne SnoopJ, I want to be able to verify and also access data using queries. 2021-05-18 12:22:29 <-- ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has quit (Remote host closed the connection) 2021-05-18 12:22:34 neilthereildeil thanks for your help supakeen 2021-05-18 12:22:46 <-- kindablue_ (kindablue@gateway/vpn/protonvpn/kindablue) has quit (Ping timeout: 240 seconds) 2021-05-18 12:22:53 --> ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has joined #python 2021-05-18 12:23:05 --> kindablue (kindablue@gateway/vpn/protonvpn/kindablue) has joined #python 2021-05-18 12:23:40 neilthereildeil so was supakeen implying that rather than a deadlock on waiting for stdin input, my child processes are just filling up the output buffers and simply increasing the buffer sizes would solve the issue? 2021-05-18 12:24:32 --> Jerrynicki (~niklas@p200300f577066b008e1b203c417578ca.dip0.t-ipconnect.de) has joined #python 2021-05-18 12:24:33 <-- fflori (~fflori@nat-wlan-uzh-89-206-64-004.uzh.ch) has quit (Remote host closed the connection) 2021-05-18 12:24:46 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-18 12:25:17 SnoopJ DemonOne, not really sure how to interpret that in the context of JSONSchema, but hopefully I've pointed you in the direction of some tools that can be useful. 2021-05-18 12:27:04 DemonOne SnoopJ, there's a library for queries... I just wanted to know if there was a blessed or curated library 2021-05-18 12:27:10 --> wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has joined #python 2021-05-18 12:27:26 <-- kindablue (kindablue@gateway/vpn/protonvpn/kindablue) has quit (Ping timeout: 240 seconds) 2021-05-18 12:28:01 <-- stahl (~stahl@z35.anorg.net) has quit (Ping timeout: 252 seconds) 2021-05-18 12:28:06 <-- sleepingforest (~sleepingf@unaffiliated/sleepingforest) has quit (Ping timeout: 240 seconds) 2021-05-18 12:28:17 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 12:28:36 * SnoopJ doesn't know what "queries" means in the absence of a specific context 2021-05-18 12:29:21 --> sleepingforest (~sleepingf@unaffiliated/sleepingforest) has joined #python 2021-05-18 12:30:10 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-18 12:30:12 <-- yitz (~yitz@exercism/yitz) has quit (Ping timeout: 240 seconds) 2021-05-18 12:30:13 mikeike2 i have return [f for f in self._files if type(f) == type] where _files is a list of objects of type PDFFile and type=PDFFile, and type(f) throws TypeError: 'PDFFile' object is not subscriptable, but print(f) prints 2021-05-18 12:30:15 <-- zaki (~zaki@2601:403:4280:3a60::bc69) has quit (Ping timeout: 250 seconds) 2021-05-18 12:30:15 mikeike2 what am i missing here? 2021-05-18 12:30:30 DemonOne SnoopJ, I mean something like xpath 2021-05-18 12:31:26 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 12:31:31 grawity mikeike2: are you accidentally overwriting the builtin 'type' function with your custom 'type' variable, and then basically calling "PDFFile(f) == PDFFile"? 2021-05-18 12:31:40 --> bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has joined #python 2021-05-18 12:31:42 <-- c4017w__ (~c4017@209.52.68.8) has quit (Quit: Leaving) 2021-05-18 12:32:09 SnoopJ DemonOne, can you describe a typical query and the data it is over, and how those relate to JSONSchema? 2021-05-18 12:32:10 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-18 12:32:13 mikeike2 that was it. thanks grawity 2021-05-18 12:32:25 <-- random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Ping timeout: 250 seconds) 2021-05-18 12:33:49 --> yitz (~yitz@exercism/yitz) has joined #python 2021-05-18 12:34:14 DemonOne SnoopJ, I thought it would be reasonable for a library providing schema validation to also support fetching keys/data using an x path like query 2021-05-18 12:34:19 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 12:36:21 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-18 12:36:37 <-- Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has quit (Ping timeout: 260 seconds) 2021-05-18 12:38:26 SnoopJ DemonOne, the library `glom` does something similar to that, but it does not itself support jsonschema, it has its own (pretty complex) specification language 2021-05-18 12:39:01 --> random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-18 12:39:23 SnoopJ you could definitely use it alongside a library that provides the validation part 2021-05-18 12:39:38 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Quit: Anas__G) 2021-05-18 12:39:41 <-- DemonOne (~androirc@2a00:a040:188:b2b3:6c4f:76fe:1bfd:c53) has quit (Read error: Connection reset by peer) 2021-05-18 12:39:49 <-- krobzaur (~kyle@2601:18d:8a00:240a:81ef:52e8:e749:d998) has quit (Quit: WeeChat 3.0.1) 2021-05-18 12:39:57 --> Anas__G (~Thunderbi@196.235.190.95) has joined #python 2021-05-18 12:40:19 --> kindablue (kindablue@gateway/vpn/protonvpn/kindablue) has joined #python 2021-05-18 12:40:41 <-- keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has quit (Ping timeout: 240 seconds) 2021-05-18 12:41:44 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-18 12:42:09 <-- stryek (uid332574@gateway/web/irccloud.com/x-fbphdrbyxaswszcp) has quit (Quit: Connection closed for inactivity) 2021-05-18 12:44:30 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 265 seconds) 2021-05-18 12:45:39 <-- node1 (~o@unaffiliated/node1) has quit (Read error: Connection reset by peer) 2021-05-18 12:45:39 <-- Trashlord (~trash@wikipedia/Sentient-Planet) has quit (Quit: "True ignorance is not the absence of knowledge, but the refusal to acquire it.") 2021-05-18 12:46:36 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-18 12:46:52 <-- botnet (~quassel@167.98.189.66) has quit (Ping timeout: 252 seconds) 2021-05-18 12:46:55 mikeike2 can i iterate over attributes of an object? (i need to "merge" two objects of the same type, like new.name = o1.name + o2.name; and new.size = o1.size + o2.size, etc. 2021-05-18 12:47:12 <-- qj (~qj@unaffiliated/qj) has quit (Read error: Connection reset by peer) 2021-05-18 12:47:31 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-18 12:47:49 --> qj (~qj@unaffiliated/qj) has joined #python 2021-05-18 12:48:00 --> DemonOne (~androirc@2a00:a040:188:b2b3:6c4f:76fe:1bfd:c53) has joined #python 2021-05-18 12:48:13 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 12:48:27 ammar2 is the object of a class you created? 2021-05-18 12:48:37 grym mikeike2: inspect.getmembers, possibly. 2021-05-18 12:48:56 mikeike2 ammar2 yes, but there's multiple types that the function may receive 2021-05-18 12:49:10 --> Abrax (~Abrax@unaffiliated/abrax) has joined #python 2021-05-18 12:49:10 mikeike2 grym i'll check. i was intuitively thinking of object.__dict__ 2021-05-18 12:49:17 ammar2 mikeike2: all types that you control? 2021-05-18 12:49:23 --> srhm (~ascii@107-179-188-91.cpe.teksavvy.com) has joined #python 2021-05-18 12:49:25 mikeike2 ammar2 im not sure what you mean? 2021-05-18 12:49:26 SnoopJ inspect.getmembers was my first thought as well, but you'll likely have to filter dunders (and any other unwanted fields) 2021-05-18 12:49:54 grym mikeike2: i'd probably prefer a classmethod on the class though. like `Foo.merge(foo1, foo2)` which returns a new fooinstasnce 2021-05-18 12:49:56 ammar2 like the types of objects that the merge function receives, are they all classes that you are writing? 2021-05-18 12:50:01 <-- argento (~argent0@168.227.96.26) has quit (Ping timeout: 252 seconds) 2021-05-18 12:50:17 SnoopJ if it's an attrs class or dataclass, attr.fields() and dataclasses.fields() would be useful (but it sounds like it's more generic than that) 2021-05-18 12:50:24 ammar2 or can someone just hand you a random pair of objects and ask you to merge them 2021-05-18 12:50:47 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-18 12:51:02 mikeike2 ammar2 i control all of them. both instances are of the same type though. 2021-05-18 12:51:11 grym yeah, the attrs exit ramp is Foo(**{**attrs.asdict(foo1),**attrs.asdict(foo2)}) or something along those lines 2021-05-18 12:51:12 <-- aslicedbanjo (~aslicedba@host86-150-115-66.range86-150.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-18 12:51:14 grym er, no 2021-05-18 12:51:28 grym sorry that's not the same at all, heh heh 2021-05-18 12:51:44 grym must be lunchtime 2021-05-18 12:52:12 <-- gobby252 (~gobby252@178.239.173.200) has quit (Ping timeout: 240 seconds) 2021-05-18 12:53:12 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 265 seconds) 2021-05-18 12:54:19 mikeike2 i think i'll go with object.__dict__, seems rather simple for this need 2021-05-18 12:54:38 SnoopJ as long as your objects have it, it may be fine 2021-05-18 12:54:54 --> gelignite (~gelignite@55d43f75.access.ecotel.net) has joined #python 2021-05-18 12:54:58 mikeike2 is there any reason why they shouldnt have it? 2021-05-18 12:55:04 SnoopJ __slots__, mostly 2021-05-18 12:55:13 <-- philr (~phil@118.211.93.148) has quit (Ping timeout: 240 seconds) 2021-05-18 12:56:32 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-18 12:57:02 --> agrawalritesh (~agrawalri@223.238.156.56) has joined #python 2021-05-18 12:57:03 ammar2 and dynamic properties 2021-05-18 12:57:38 ammar2 err dynamic properties -> getattr powered fields 2021-05-18 12:57:53 ammar2 but since you control the types this shouldn't be much of a concern 2021-05-18 12:58:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 12:59:27 <-- ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-18 13:00:13 mikeike2 one more thing please, when i have x = attrname, how can i access object.attrname by using x? object.x obviously looks for "x" and not for the value of x 2021-05-18 13:01:10 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-18 13:01:12 <-- indy (~indy@dsl-static-104.213-160-167.telecom.sk) has quit (Ping timeout: 240 seconds) 2021-05-18 13:01:14 --> maximb (5744a443@87.68.164.67) has joined #python 2021-05-18 13:01:20 --> ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has joined #python 2021-05-18 13:01:36 amo getattr? 2021-05-18 13:01:43 ammar2 getattr(object, x) 2021-05-18 13:02:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 13:02:23 mikeike2 thanks! 2021-05-18 13:02:39 <-- blyat-73 (~user@79.101.60.163) has quit (Quit: Leaving) 2021-05-18 13:04:07 <-- Naan (~naan@unaffiliated/naan) has quit (Ping timeout: 260 seconds) 2021-05-18 13:05:42 SnoopJ n.b. that you can specify a default value for that, too 2021-05-18 13:05:47 <-- ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-18 13:05:58 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit (Ping timeout: 252 seconds) 2021-05-18 13:06:57 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 260 seconds) 2021-05-18 13:07:20 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 13:07:32 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-18 13:09:06 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 268 seconds) 2021-05-18 13:09:46 <-- pragmaticenigma (~pragmatic@unaffiliated/pragmaticenigma) has quit (Quit: Leaving) 2021-05-18 13:10:06 --> JimmyNeutron (~weechat@173.239.198.210) has joined #python 2021-05-18 13:10:10 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-18 13:10:38 <-- zampano (~zampano@unaffiliated/zampano) has quit (Ping timeout: 246 seconds) 2021-05-18 13:11:52 --> Laibsch (~Laibsch@2a01:c23:74ad:6200:f2de:f1ff:fed0:6548) has joined #python 2021-05-18 13:12:25 --> zampano (~zampano@unaffiliated/zampano) has joined #python 2021-05-18 13:13:38 <-- zampano (~zampano@unaffiliated/zampano) has quit (Client Quit) 2021-05-18 13:13:58 --> zampano (~zampano@unaffiliated/zampano) has joined #python 2021-05-18 13:15:21 --> klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has joined #python 2021-05-18 13:16:46 Laibsch Would somebody kindly enlighten me as to what the !r is for in https://github.com/kdeldycke/mail-deduplicate/blob/f423b414c400d21e338edf09bf904d39697fc7b8/mail_deduplicate/deduplicate.py#L370 ? 2021-05-18 13:17:26 Laibsch It looks some kind of modifier to the mail object 2021-05-18 13:17:38 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-18 13:17:52 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-18 13:18:26 <-- dub_a (~dub_a@192.252.212.45) has quit (Client Quit) 2021-05-18 13:18:38 --> dub_a (~dub_a@192.252.212.45) has joined #python 2021-05-18 13:18:51 <-- zampano (~zampano@unaffiliated/zampano) has quit (Client Quit) 2021-05-18 13:19:29 Laibsch "mail" is not a dictionary there or is it? I'm wondering because of the curly braces around the object name mail. 2021-05-18 13:19:30 --> ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has joined #python 2021-05-18 13:21:33 <-- ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has quit (Quit: Leaving) 2021-05-18 13:22:35 <-- kosh (~kosh@p200300d08f149b00cd8fdf6dc3b66336.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-18 13:23:11 --> azed (~azed@196.229.44.80) has joined #python 2021-05-18 13:23:25 <-- hendursa1 (~weechat@gateway/tor-sasl/hendursaga) has quit (Quit: hendursa1) 2021-05-18 13:23:34 <-- pyre (~pyre@crimeboss.nillas-power.com) has quit (Ping timeout: 252 seconds) 2021-05-18 13:24:03 --> sappheiros (~sappheiro@unaffiliated/dan1) has joined #python 2021-05-18 13:24:06 <-- real_walnut_burl (~oak@104.129.29.18) has quit (Ping timeout: 240 seconds) 2021-05-18 13:24:07 amo Laibsch, https://docs.python.org/3/library/string.html#formatspec 2021-05-18 13:24:31 Laibsch amo: thank you very much 2021-05-18 13:25:32 --> Bombo (atom@p2e58e239.dip0.t-ipconnect.de) has joined #python 2021-05-18 13:25:35 Bombo hi 2021-05-18 13:25:37 --> cliluw (~cliluw@unaffiliated/cliluw) has joined #python 2021-05-18 13:25:41 amo hi 2021-05-18 13:25:51 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-18 13:26:03 --> walnut_burl (~oak@129.237.87.125) has joined #python 2021-05-18 13:27:27 Bombo i'm using smtplib to send a mail to a server via starttls, but it just has old tls 1.0/ssl2/3 can i use smtplib to send to old protocols? how do i allow old deprecated stuff 2021-05-18 13:27:28 <-- Guest20 (~textual@192.146.154.3) has quit (Quit: ZZZzzz…) 2021-05-18 13:27:47 <-- jim (~jim@about/linux/staff/jim) has quit (Ping timeout: 246 seconds) 2021-05-18 13:27:51 --> argento (~argent0@168.227.96.26) has joined #python 2021-05-18 13:28:11 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-18 13:28:11 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 13:28:22 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-18 13:28:41 --> fflori (~fflori@mob-194-230-155-151.cgn.sunrise.net) has joined #python 2021-05-18 13:28:58 --> SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has joined #python 2021-05-18 13:29:02 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 252 seconds) 2021-05-18 13:30:30 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 13:31:01 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-18 13:32:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 13:32:12 Laibsch amo: I'm sorry but I don't see how the link you gave answers the question about what the !r does in https://github.com/kdeldycke/mail-deduplicate/blob/f423b414c400d21e338edf09bf904d39697fc7b8/mail_deduplicate/deduplicate.py#L370 May I kindly ask for you to elaborate a bit more? 2021-05-18 13:34:05 --> yaalon (~yaalon@2600:1700:92b0:5f70:f1b9:3682:8309:34c0) has joined #python 2021-05-18 13:35:11 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Ping timeout: 240 seconds) 2021-05-18 13:35:27 --> gpp (~matteo@cpc88293-woki8-2-0-cust544.6-2.cable.virginm.net) has joined #python 2021-05-18 13:36:18 --> philipp64_ (~philipp64@174.27.25.243) has joined #python 2021-05-18 13:36:46 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Ping timeout: 260 seconds) 2021-05-18 13:37:25 --> kosh (~kosh@p200300d08f149b003d83d98b963d9854.dip0.t-ipconnect.de) has joined #python 2021-05-18 13:37:27 philipp64_ hi. dumb question… I have a bytes of hex digits (even number) and I want to unpack it to a binary value… I can’t find a function that does this directly. oddly, bytes.fromhex() only takes strings, not bytes… 2021-05-18 13:37:50 <-- psyxopompos (~psyxopomp@unaffiliated/psyxo) has quit (Remote host closed the connection) 2021-05-18 13:38:21 <-- h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-18 13:39:12 gpp i have the following project structure https://bpa.st/FYII4IZTINYFDFYBCY3P2AJ6WI - im struggling to figure out how to do `from module.submodule import *` 2021-05-18 13:39:14 <-- blackwidowmovie0 (uid471480@gateway/web/irccloud.com/x-vfbvazuqvynwyqbm) has quit (Quit: Connection closed for inactivity) 2021-05-18 13:39:57 grym gpp: star imports are not a good idea 2021-05-18 13:40:09 --> Maikel (~Maikel@unaffiliated/maikel) has joined #python 2021-05-18 13:40:19 --> emet-selch (~quassel@2601:204:d880:6590:75f7:85b6:6266:2192) has joined #python 2021-05-18 13:40:36 <-- flying_sausages_ (~flying_sa@83.149.106.219) has quit (Remote host closed the connection) 2021-05-18 13:40:42 grym gpp: so you would `from pkg.module.submodule.class import ClassObject`, e.g. 2021-05-18 13:40:51 gpp grym: sure but i don't want to do `from module.submodule import ClassA` 10+ times, as in the submodule directory there will be multiple files 2021-05-18 13:41:00 --> zro (~zro@wikimedia/zro) has joined #python 2021-05-18 13:41:23 <-- v01d4lph4 (~v01d4lph4@122.160.65.250) has quit (Remote host closed the connection) 2021-05-18 13:41:24 gpp so in main.py I'd ideally like to import everything under `submodule` in one line 2021-05-18 13:41:39 grym gpp: `from pkg.module.submodule.class import (ClassObject, ClassA, ClassB)` then, or `import pkg.module.submodule.class; class.ClassA, class.ClassB, ... 2021-05-18 13:42:18 gpp but how do I have submodule dynamically import all files contained within? That's where I'm struggling 2021-05-18 13:42:53 --> john_johnk (~Thunderbi@112.54.140.77.rev.sfr.net) has joined #python 2021-05-18 13:43:41 gpp I've also tried using pkgutil and walking all files in submodule, then importing them (in the __init__.py) but I still can't seem to access them from root/main.py 2021-05-18 13:43:59 --> h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-18 13:44:08 --> cdown_ (~cdown@163.114.131.1) has joined #python 2021-05-18 13:44:10 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-18 13:44:27 --> BlaDe^ (2d1fb7ab@45-31-183-171.lightspeed.austtx.sbcglobal.net) has joined #python 2021-05-18 13:44:32 corvax when you import, you bring the other package into scope of the current file, it doesn't necessarily reload it 2021-05-18 13:45:03 corvax so if another file in a project imported a specific package, then another file does the same.. it's only loaded once 2021-05-18 13:46:29 <-- dvx (~dvx@185.63.97.64) has quit (Quit: dvx) 2021-05-18 13:46:41 <-- cdown (~cdown@89.32.122.5) has quit (Ping timeout: 240 seconds) 2021-05-18 13:46:51 -- cdown_ is now known as cdown 2021-05-18 13:48:28 --> SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has joined #python 2021-05-18 13:48:42 gpp better example of how i currently have it structured & would like it to work https://bpa.st/GXGTUIUIHADT5DBHVMPZ47S344 2021-05-18 13:48:47 <-- argento (~argent0@168.227.96.26) has quit (Ping timeout: 265 seconds) 2021-05-18 13:49:24 --> pyre (~pyre@crimeboss.nillas-power.com) has joined #python 2021-05-18 13:49:51 --> honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 13:50:32 <-- Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has quit (Ping timeout: 246 seconds) 2021-05-18 13:50:42 --> flying_sausages (~flying_sa@83.149.106.219) has joined #python 2021-05-18 13:50:56 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-18 13:50:57 <-- yaalon (~yaalon@2600:1700:92b0:5f70:f1b9:3682:8309:34c0) has quit (Remote host closed the connection) 2021-05-18 13:52:33 grym gpp: example.py will need to import things from `pkg.module.etc` not `module.etc` 2021-05-18 13:52:55 gpp grym: that's a typo 2021-05-18 13:53:15 gpp pkg.module.etc is how it is 2021-05-18 13:54:22 grym gpp: ok. the thing i know that does kind of what you want is https://gather.rtfd.org/, but every time i think "i want to write a plugin system" i'm always wrong 2021-05-18 13:54:41 grym so i'm not amazingly fond of this idea 2021-05-18 13:55:02 --> SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has joined #python 2021-05-18 13:55:17 --> salitos (~contagiou@102.166.231.51) has joined #python 2021-05-18 13:55:19 grym gpp: codebases that don't know what their own imports are until runtime sketch me out 2021-05-18 13:56:01 <-- salitos (~contagiou@102.166.231.51) has quit (Max SendQ exceeded) 2021-05-18 13:56:03 gpp Agreed. The idea here however is that that sketchiness is only limited to that submodule 2021-05-18 13:56:16 gpp Will take a look at gather though 2021-05-18 13:56:32 --> salitos (~contagiou@102.166.231.51) has joined #python 2021-05-18 13:56:50 SnoopJ pluggy is also worth looking at (it's what powers pytest's plugin system) 2021-05-18 13:57:07 --> jokoon (~jokoon@unaffiliated/jokoon) has joined #python 2021-05-18 13:57:13 <-- nickodd_ (~nickodd_@unaffiliated/nickodd) has left #python 2021-05-18 13:58:17 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-18 13:58:18 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 13:59:39 <-- jokoon2 (~jokoon@unaffiliated/jokoon) has quit (Ping timeout: 260 seconds) 2021-05-18 13:59:50 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-18 14:00:15 --> octav1a (~quassel@173.195.144.222) has joined #python 2021-05-18 14:00:25 <-- jokoon (~jokoon@unaffiliated/jokoon) has quit (Client Quit) 2021-05-18 14:00:47 --> yaalon (~yaalon@2600:1700:92b0:5f70:f1b9:3682:8309:34c0) has joined #python 2021-05-18 14:01:02 --> sesser_ (~sesser@107.13.245.224) has joined #python 2021-05-18 14:01:03 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 260 seconds) 2021-05-18 14:01:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 14:01:07 <-- octav1a (~quassel@173.195.144.222) has left #python ("~Called off to Sentinal the Sand Temple~") 2021-05-18 14:01:08 raek Yhg1s: SnoopJ: thanks for the tips regarding immutability 2021-05-18 14:01:19 <-- salitos (~contagiou@102.166.231.51) has quit (Read error: Connection reset by peer) 2021-05-18 14:01:43 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-18 14:01:43 --> contagious_meow (~contagiou@102.166.231.51) has joined #python 2021-05-18 14:02:00 --> b-rex (~b@v.dropswitch.net) has joined #python 2021-05-18 14:02:10 <-- b-rex (~b@v.dropswitch.net) has left #python ("WeeChat 3.0") 2021-05-18 14:02:28 raek right now I'm making an extension that wraps some C code (so that I can write interesting tests in a higher level language) 2021-05-18 14:02:47 <-- sesser (~sesser@107.13.245.224) has quit (Ping timeout: 246 seconds) 2021-05-18 14:03:17 raek let's say the types are called "Driver" and "Pin". the Driver constructor takes two pins and the pins it uses will never change during its lifetime 2021-05-18 14:03:51 <-- MarderIII (~MarderIII@2001:981:5b5b:1:bccf:85ee:8e10:2f9b) has quit (Quit: Leaving) 2021-05-18 14:03:56 <-- gpp (~matteo@cpc88293-woki8-2-0-cust544.6-2.cable.virginm.net) has quit (Remote host closed the connection) 2021-05-18 14:04:02 raek both Driver and Pin have C code with init functions. the C Driver init function accepts C Pin pointers 2021-05-18 14:04:46 raek I'm attempting now to implement "Driver" as an extension type that is immutable. cause maybe that would simplify things? 2021-05-18 14:04:51 --> rgr (~rgr@ip-109-42-113-52.web.vodafone.de) has joined #python 2021-05-18 14:04:59 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-18 14:05:17 raek I'm considering implementing tp_new (and do the whole initialization there) and tp_dealloc 2021-05-18 14:05:26 --> mangold (~mangold@198.98.183.44) has joined #python 2021-05-18 14:05:37 --> burakcank (~burakcank@88.243.153.79) has joined #python 2021-05-18 14:05:57 <-- stealth_ (~stealth_@216-197-160-97.regn.static.sasknet.sk.ca) has quit (Quit: Leaving) 2021-05-18 14:06:18 SnoopJ ideally when wrapping you don't have to think about Python.h at all because you use something (like CFFI) that insulates you from much of that detail 2021-05-18 14:06:19 raek since it is immutable, I don't need to implement GC via tp_traverse and tp_clear, right? if this object is a part of an cyclic isolate, then the interpreter will break up one of the other references in the cycle 2021-05-18 14:06:27 <-- emet-selch (~quassel@2601:204:d880:6590:75f7:85b6:6266:2192) has quit (Ping timeout: 250 seconds) 2021-05-18 14:07:29 raek I also used this as an excuse to learn the extension API, but yeah, one of the FFI libraries is potentially a better fit 2021-05-18 14:07:46 graingert Hpy or whathaveyou 2021-05-18 14:08:06 <-- tommy`` (~tommy``@unaffiliated/tommy/x-6566540) has quit (Read error: Connection reset by peer) 2021-05-18 14:08:15 ammar2 cffi is the best choice imo 2021-05-18 14:08:19 raek I'm interesting in doing (manual) dependency injection 2021-05-18 14:09:41 amo Laibsch, did you figure it out? sorry, i was afk 2021-05-18 14:09:56 <-- SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-18 14:10:13 <-- qgTG (~qgTG@unaffiliated/qgtg) has quit (Ping timeout: 240 seconds) 2021-05-18 14:10:49 Laibsch amo: np. Sorry, no idea, I'm still struggling. 2021-05-18 14:11:15 --> qgTG (~qgTG@unaffiliated/qgtg) has joined #python 2021-05-18 14:11:20 raek python code calling C code is simple to do. C calling a callback implemented in python likewise. 2021-05-18 14:11:37 amo Laibsch, f"" is called an f-string, which allows to insert and format a variable like f"{variable}" 2021-05-18 14:11:58 --> pedahzur (~jkugler@216-67-98-32.static.acsalaska.net) has joined #python 2021-05-18 14:12:00 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-18 14:12:06 amo Laibsch, what i gave you is the domain specific language that is used to format those variables when they are inserted via {} 2021-05-18 14:12:11 <-- dhill (~dhill@modemcable250.73-201-24.mc.videotron.ca) has quit (Ping timeout: 240 seconds) 2021-05-18 14:12:20 raek but how about C code (statically) calling a function declared in a header file? could that be implemented in python some way? 2021-05-18 14:12:48 ammar2 raek: cffi can do that 2021-05-18 14:12:50 raek basically implement a python function and export it to the C code using the dynamic loader 2021-05-18 14:12:53 amo Laibsch, if you search the page for '!r' you'll notice that this line: 2021-05-18 14:12:53 amo Three conversion flags are currently supported: '!s' which calls str() on the value, '!r' which calls repr() and '!a' which calls ascii(). 2021-05-18 14:13:05 ammar2 https://cffi.readthedocs.io/en/latest/using.html#extern-python-new-style-callbacks 2021-05-18 14:13:20 ammar2 it's incredibly awesome 2021-05-18 14:13:35 raek ammar2: hmm! I will check it out! 2021-05-18 14:13:57 amo Laibsch, which means that f"Rejecting {mail!r}: {expt.args[0]}" inserts the variable called "mail" by calling repr(mail) first 2021-05-18 14:14:10 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 252 seconds) 2021-05-18 14:14:24 amo it also inserts expt.args[0] 2021-05-18 14:14:28 w1kl4s i have two lists of objects, and objects in those 2 lists have one common attribute, and then they have bunch of other attributes, and i wanted to merge those 2 lists into one - something like x[0] = Foo and y[0] = Bar, Foo has attributes a,b,c and Bar has a,d,e and i want z[0] = FooBar with attributes a,b,c,d 2021-05-18 14:14:35 w1kl4s how could i do that? 2021-05-18 14:14:56 amo Laibsch, clear now? 2021-05-18 14:15:11 grym w1kl4s: are your objects sortable 2021-05-18 14:15:18 --> Sheilong (uid293653@gateway/web/irccloud.com/x-yvifpnpfisssiqhx) has joined #python 2021-05-18 14:15:29 w1kl4s i thought about deserializing both into dicts with value of a as key and merging them that way, but that sounds kinda complicated and i would have to deserialize, match and serialize again 2021-05-18 14:15:39 w1kl4s grym more or less, a is an UUID value 2021-05-18 14:15:44 w1kl4s so i guess it's sortable 2021-05-18 14:15:47 Laibsch amo: thanks, that should give me some more info to chew on and I suspect I might be able to figure it out indeed. Gotta go for 20 minutes. bbl. 2021-05-18 14:15:48 --> dub_a1 (dub_a@gateway/vpn/mullvad/duba/x-57903454) has joined #python 2021-05-18 14:15:55 grym w1kl4s: i mean, does sorted() work on a list of them 2021-05-18 14:16:09 <-- ShekharReddy (uid132367@gateway/web/irccloud.com/x-wdorpptbqctzegiy) has quit (Quit: Connection closed for inactivity) 2021-05-18 14:16:11 --> tommy`` (~tommy``@unaffiliated/tommy/x-6566540) has joined #python 2021-05-18 14:16:24 <-- yaalon (~yaalon@2600:1700:92b0:5f70:f1b9:3682:8309:34c0) has quit (Remote host closed the connection) 2021-05-18 14:16:27 w1kl4s gonna check, i dunno what it would sort by tho 2021-05-18 14:16:36 --> alexhugo (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-18 14:18:33 <-- lucad111 (~lucad111@linaro/lucad111) has quit (Quit: Leaving) 2021-05-18 14:19:14 <-- dub_a (~dub_a@192.252.212.45) has quit (Ping timeout: 265 seconds) 2021-05-18 14:19:19 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-18 14:19:19 --> henri (~henri@179.83.53.49) has joined #python 2021-05-18 14:19:24 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 268 seconds) 2021-05-18 14:19:45 LuxuryMode What are some great resources (books, articles, videos, etc) on how to write great unit tests? Also, anyone know of an open-source project with great examples of unit testing? 2021-05-18 14:19:53 <-- Jerrynicki (~niklas@p200300f577066b008e1b203c417578ca.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-18 14:20:38 <-- Anas__G (~Thunderbi@196.235.190.95) has quit (Ping timeout: 268 seconds) 2021-05-18 14:20:41 <-- bionode (~user@gateway/tor-sasl/bionode) has quit (Remote host closed the connection) 2021-05-18 14:21:24 <-- henri (~henri@179.83.53.49) has quit (Client Quit) 2021-05-18 14:22:10 w1kl4s grym nah, it doesn't 2021-05-18 14:22:11 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 240 seconds) 2021-05-18 14:22:13 <-- contingo (~textual@213.205.200.36) has quit (Quit: My supercomputing cluster has gone to sleep. ZZZzzz…) 2021-05-18 14:22:20 --> bionode (~user@gateway/tor-sasl/bionode) has joined #python 2021-05-18 14:22:24 w1kl4s guess it makes sense, it has nothing to sort by 2021-05-18 14:22:28 --> dhill (~dhill@modemcable250.73-201-24.mc.videotron.ca) has joined #python 2021-05-18 14:22:30 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Read error: Connection reset by peer) 2021-05-18 14:22:33 --> henri (~henri@179.83.53.49) has joined #python 2021-05-18 14:22:36 grym you could make it have something to sort by 2021-05-18 14:23:18 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 14:23:23 --> GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has joined #python 2021-05-18 14:23:37 w1kl4s yeah, but that would mean deserializing, comparing and serializing again, which would kind of do the same as using dict for that 2021-05-18 14:23:37 --> medard (~medard@unaffiliated/medard) has joined #python 2021-05-18 14:24:06 SnoopJ LuxuryMode, this is a good talk about testing that touches on some of that, but isn't really about unit testing specifically: https://nedbatchelder.com/text/test3.html 2021-05-18 14:24:26 --> vidbina (~vid@2a02:3037:409:3428:9811:eb93:9a0b:9aec) has joined #python 2021-05-18 14:24:27 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 14:24:33 LuxuryMode Thanks SnoopJ 2021-05-18 14:24:57 --> Tuor (~quassel@unaffiliated/tuor) has joined #python 2021-05-18 14:25:39 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-18 14:25:51 <-- bionode (~user@gateway/tor-sasl/bionode) has quit (Remote host closed the connection) 2021-05-18 14:27:12 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-18 14:27:21 --> bionode (~user@gateway/tor-sasl/bionode) has joined #python 2021-05-18 14:27:37 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 14:27:51 <-- bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has quit (Quit: bilb_ono) 2021-05-18 14:28:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 14:29:32 --> bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has joined #python 2021-05-18 14:29:48 Laibsch amo: yes, I understand now. thank you. Now I need to figure out how to manipulate the string returned by repr(). 2021-05-18 14:30:13 raek "CFFI implements this by defining my_callback as a static C function, written after the set_source() code." 2021-05-18 14:30:42 raek ammar2: do you know if it is possible to make CFFI define it as a non-static function? (so that other code can just link to it) 2021-05-18 14:30:46 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Ping timeout: 240 seconds) 2021-05-18 14:30:53 --> herbas (~herbas@88.118.170.138) has joined #python 2021-05-18 14:31:09 <-- rgr (~rgr@ip-109-42-113-52.web.vodafone.de) has quit (Quit: Leaving) 2021-05-18 14:31:22 ammar2 raek: yup yup, it's in the next section on that page 2021-05-18 14:31:23 ammar2 https://cffi.readthedocs.io/en/latest/using.html#extern-python-c 2021-05-18 14:31:25 <-- burakcank (~burakcank@88.243.153.79) has quit (Ping timeout: 260 seconds) 2021-05-18 14:31:26 LuxuryMode SnoopJ: pretty basic, but good foundational stuff 2021-05-18 14:31:38 <-- ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has quit (Quit: Leaving) 2021-05-18 14:31:40 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-18 14:32:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 14:32:11 <-- spiri (~spiri@unaffiliated/spiri) has quit (Remote host closed the connection) 2021-05-18 14:32:11 SnoopJ LuxuryMode, I found his remarks on testing as a concept to be very helpful in a "mental model" organizational way 2021-05-18 14:32:12 --> eb0t (~eblip@unaffiliated/eblip) has joined #python 2021-05-18 14:32:27 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 250 seconds) 2021-05-18 14:32:33 SnoopJ particularly the emphasis on testing being almost like another language 2021-05-18 14:33:33 <-- def_jam (~eblip@unaffiliated/eblip) has quit (Ping timeout: 240 seconds) 2021-05-18 14:33:52 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 240 seconds) 2021-05-18 14:33:54 raek ammar2: ah! 2021-05-18 14:34:01 raek ammar2: thanks a lot! 2021-05-18 14:34:31 nacelle some concepts in testing are hard to get until you actually need them -and- make use of them 2021-05-18 14:34:51 nacelle imo anyways, and i've seen several people go through the same thing so I think I'm onto something there 2021-05-18 14:34:52 --> yaalon (~yaalon@2600:1700:92b0:5f70:f1b9:3682:8309:34c0) has joined #python 2021-05-18 14:36:22 SnoopJ I agree with that, it's a big part of why I find pytest's "gradual" nature very appealing 2021-05-18 14:36:36 --> shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has joined #python 2021-05-18 14:37:14 --> greedom (~greedom@2001:16b8:32bb:de00:9617:adf3:5892:4d74) has joined #python 2021-05-18 14:37:39 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-18 14:37:47 <-- Madda (~talkur@208.249.9.51.dyn.plus.net) has quit (Remote host closed the connection) 2021-05-18 14:37:54 <-- yaalon (~yaalon@2600:1700:92b0:5f70:f1b9:3682:8309:34c0) has quit (Client Quit) 2021-05-18 14:37:54 <-- mangold (~mangold@198.98.183.44) has quit (Ping timeout: 268 seconds) 2021-05-18 14:38:41 --> janemba (~janemba@unaffiliated/janemba) has joined #python 2021-05-18 14:38:45 janemba hello 2021-05-18 14:38:46 <-- SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-18 14:39:45 janemba while using "--record files.txt" switch for my setup.py the file "files.txt" is not created. Any idea about what could be the cause ? 2021-05-18 14:39:49 Laibsch Am I correct to think that dict.iteritems is python2-only code and thus "for mail_id, mail in box.iteritems():" will only work correctly in python2? 2021-05-18 14:39:51 --> mangold (~mangold@198.98.183.47) has joined #python 2021-05-18 14:39:59 Laibsch https://github.com/kdeldycke/mail-deduplicate/blob/f423b414c400d21e338edf09bf904d39697fc7b8/mail_deduplicate/deduplicate.py#L361 2021-05-18 14:40:09 --> Madda (~talkur@208.249.9.51.dyn.plus.net) has joined #python 2021-05-18 14:40:11 --> philh (~philh@mue-88-130-57-052.dsl.tropolys.de) has joined #python 2021-05-18 14:40:36 --> zampano (~zampano@unaffiliated/zampano) has joined #python 2021-05-18 14:40:36 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 14:41:55 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 14:42:58 <-- h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-18 14:43:14 --> ubert (~Thunderbi@p200300ecdf259daae6b318fffe838f33.dip0.t-ipconnect.de) has joined #python 2021-05-18 14:43:47 --> keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has joined #python 2021-05-18 14:43:51 janemba fixed typo 2021-05-18 14:44:02 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 14:45:01 <-- contagious_meow (~contagiou@102.166.231.51) has quit (Ping timeout: 260 seconds) 2021-05-18 14:45:11 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 14:45:56 <-- herbas (~herbas@88.118.170.138) has quit (Quit: herbas) 2021-05-18 14:47:13 <-- DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 240 seconds) 2021-05-18 14:47:17 raek Laibsch: yes. python3 -c "{}.iteritems()" => AttributeError: 'dict' object has no attribute 'iteritems' 2021-05-18 14:47:24 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 14:48:25 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 14:48:29 <-- vidbina (~vid@2a02:3037:409:3428:9811:eb93:9a0b:9aec) has quit (Ping timeout: 250 seconds) 2021-05-18 14:49:04 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 14:49:14 --> Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has joined #python 2021-05-18 14:49:22 Laibsch raek: thanks 2021-05-18 14:49:27 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 14:49:47 --> Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has joined #python 2021-05-18 14:49:50 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-18 14:50:48 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-18 14:50:49 <-- ninjak (~ninjak@94-36-148-210.adsl-ull.clienti.tiscali.it) has quit (Quit: Leaving) 2021-05-18 14:51:34 <-- carl-- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Ping timeout: 252 seconds) 2021-05-18 14:52:36 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-18 14:52:50 --> v0lksman (~v0lksman@unaffiliated/v0lksman) has joined #python 2021-05-18 14:53:08 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 14:53:51 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 14:54:10 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-18 14:55:11 --> DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-18 14:55:49 <-- DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has quit (Read error: Connection reset by peer) 2021-05-18 14:55:54 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-18 14:56:07 --> DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-18 14:56:10 --> CrowX- (~CrowX-@185.167.46.134) has joined #python 2021-05-18 14:57:33 <-- panikovsky (~panikovsk@87.117.48.120) has quit (Quit: Leaving) 2021-05-18 14:58:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 14:58:25 <-- hussam (~hussam@unaffiliated/hussam) has quit (Client Quit) 2021-05-18 14:58:36 <-- radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 14:59:49 --> radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has joined #python 2021-05-18 14:59:56 --> h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-18 15:00:22 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 252 seconds) 2021-05-18 15:01:15 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 15:01:26 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Ping timeout: 240 seconds) 2021-05-18 15:02:00 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 15:02:10 --> adde9708 (uid139358@gateway/web/irccloud.com/x-dnportbrqfkxhmsy) has joined #python 2021-05-18 15:04:55 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 15:05:31 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-18 15:05:35 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-18 15:06:55 <-- ZeZu (null@140-211-168-73-openstack.osuosl.org) has quit (Max SendQ exceeded) 2021-05-18 15:06:56 <-- vidbina (~vid@45.139.215.53) has quit (Read error: Connection reset by peer) 2021-05-18 15:07:29 --> pennyblake (a9cce516@169.204.229.22) has joined #python 2021-05-18 15:07:30 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 15:07:41 <-- drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Ping timeout: 240 seconds) 2021-05-18 15:07:51 --> ZeZu (null@140-211-168-73-openstack.osuosl.org) has joined #python 2021-05-18 15:07:57 --> fission6 (~textual@72-48-154-98.static.grandenetworks.net) has joined #python 2021-05-18 15:08:36 --> refusenick (~user@2601:644:8502:d700::94c9) has joined #python 2021-05-18 15:09:10 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-18 15:10:00 --> CaptainDrewBoy (~CaptainDr@cpc121736-barn9-2-0-cust74.17-1.cable.virginm.net) has joined #python 2021-05-18 15:10:04 SnoopJ most of the explicitly-lazy things were removed, you usually get that by default in modern Python 2021-05-18 15:11:40 Tuor Hi, this is my echo server: https://bpa.st/TN7Q and I could start it once, but now it doesn't start anymore. I get this error "ConnectionRefusedError: [Errno 111] Connection refused" on line 10 "sock.connect(server_address)". What could be the reason? Running on Fedora 33. 2021-05-18 15:11:53 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-18 15:12:15 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 15:12:53 <-- mangold (~mangold@198.98.183.47) has quit (Ping timeout: 265 seconds) 2021-05-18 15:12:55 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Ping timeout: 260 seconds) 2021-05-18 15:13:10 <-- blb (~blb@unaffiliated/bryno) has quit (Quit: brb) 2021-05-18 15:13:34 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 15:14:24 <-- dub_a1 (dub_a@gateway/vpn/mullvad/duba/x-57903454) has quit (Quit: WeeChat 3.1) 2021-05-18 15:15:41 <-- NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Read error: Connection reset by peer) 2021-05-18 15:17:14 --> NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-18 15:19:54 --> mangold (~mangold@198.98.183.138) has joined #python 2021-05-18 15:20:37 Tuor I started the wron file. I do have to start the server before the client. 2021-05-18 15:22:03 --> blb (~blb@unaffiliated/bryno) has joined #python 2021-05-18 15:22:13 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-18 15:22:54 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-18 15:23:34 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-18 15:25:16 <-- mangold (~mangold@198.98.183.138) has quit (Ping timeout: 260 seconds) 2021-05-18 15:25:40 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 15:28:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 15:28:40 --> Anas__G (~Thunderbi@196.235.81.59) has joined #python 2021-05-18 15:28:53 <-- Ublx (~Alex@107.181.180.167) has quit (Ping timeout: 240 seconds) 2021-05-18 15:29:00 ELFrederich anyone know if it is possible with poetry to override PyPI using an environment variable and not editing pyproject.toml? Like how with pip you can use PIP_INDEX_URL 2021-05-18 15:29:44 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-18 15:30:50 --> Ublx (~Alex@2a02:810c:280:59c:6078:fa10:dfb1:b8be) has joined #python 2021-05-18 15:31:10 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 15:31:57 <-- Laibsch (~Laibsch@2a01:c23:74ad:6200:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-18 15:32:46 <-- Anas__G (~Thunderbi@196.235.81.59) has quit (Ping timeout: 240 seconds) 2021-05-18 15:35:46 <-- DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 240 seconds) 2021-05-18 15:36:17 <-- CaptainDrewBoy (~CaptainDr@cpc121736-barn9-2-0-cust74.17-1.cable.virginm.net) has quit (Read error: Connection reset by peer) 2021-05-18 15:37:13 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 15:37:53 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 15:38:09 <-- zebrag (~inkbottle@aaubervilliers-651-1-236-241.w83-200.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-18 15:38:14 --> Ylan (~textual@213-66-223-10-no10.tbcn.telia.com) has joined #python 2021-05-18 15:38:22 --> CaptainDrewBoy (~CaptainDr@cpc121736-barn9-2-0-cust74.17-1.cable.virginm.net) has joined #python 2021-05-18 15:38:49 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-18 15:39:28 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 265 seconds) 2021-05-18 15:40:09 <-- qj (~qj@unaffiliated/qj) has quit (Quit: bye();) 2021-05-18 15:41:00 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Quit: Zzzzzz.....) 2021-05-18 15:42:22 <-- manti7 (~manti7@176.10.104.94) has quit (Ping timeout: 265 seconds) 2021-05-18 15:42:46 --> zebrag (~inkbottle@aaubervilliers-651-1-236-241.w83-200.abo.wanadoo.fr) has joined #python 2021-05-18 15:43:13 <-- SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has quit (Remote host closed the connection) 2021-05-18 15:43:16 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 252 seconds) 2021-05-18 15:43:46 <-- fission6 (~textual@72-48-154-98.static.grandenetworks.net) has quit (Quit: fission6) 2021-05-18 15:44:03 Ox4 greetings everyone. I have a list of tuples -> lt = [[(15, 10.05), (15, 80.3), (25, 53.7), (25, 24.4), (35, 70.9), (35, 8.5)]. Is there a short and simple way to sum second element of two tuples if the first element are equal? 2021-05-18 15:44:06 --> Deesl (~bsdboy@redhat/deesl) has joined #python 2021-05-18 15:44:25 --> Anas__G (~Thunderbi@196.235.81.59) has joined #python 2021-05-18 15:44:55 <-- jay-m_ (~jay-m@41.205.30.141) has quit (Ping timeout: 252 seconds) 2021-05-18 15:44:58 --> cation21- (cation21@gateway/vpn/protonvpn/cation21) has joined #python 2021-05-18 15:45:06 <-- rootsploit (rootworm@unaffiliated/rootworm) has quit (Ping timeout: 260 seconds) 2021-05-18 15:45:50 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-18 15:46:09 --> Laibsch (~Laibsch@2a01:c23:74ad:6200:f2de:f1ff:fed0:6548) has joined #python 2021-05-18 15:46:21 <-- cation21 (cation21@gateway/vpn/protonvpn/cation21) has quit (Ping timeout: 268 seconds) 2021-05-18 15:47:49 <-- Y3Klo (~Thunderbi@2806:10b7:3:50a2:feaa:14ff:fe93:db3c) has quit (Quit: Y3Klo) 2021-05-18 15:48:24 melkor 90.35 and 78.1 and 79.4 2021-05-18 15:48:42 -- cation21- is now known as cation21 2021-05-18 15:49:19 melkor What sort of output would you like? A map, another list? 2021-05-18 15:49:31 --> jigubigule (~jigubigul@m90-133-65-68.cust.tele2.lv) has joined #python 2021-05-18 15:49:38 <-- pennyblake (a9cce516@169.204.229.22) has quit (Quit: Connection closed) 2021-05-18 15:49:56 <-- honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-18 15:50:17 --> stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 15:50:29 <-- Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 15:51:04 <-- ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has quit (Ping timeout: 265 seconds) 2021-05-18 15:51:14 --> Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has joined #python 2021-05-18 15:51:15 bjs Ox4: there are more than 2 tuples there, what did you want the result to be? 2021-05-18 15:51:31 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-18 15:52:07 Ox4 melkor: I need another list of tuples, but with the result of sum in addition -> new_lt = [(15, 10.5), (15, 80.3), (15, 90.8), (25, 53.7), (25, 24.4), (25, 78.1), ...] 2021-05-18 15:52:22 Ox4 bjs: ^^^ 2021-05-18 15:52:28 <-- Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has quit (Client Quit) 2021-05-18 15:52:54 <-- azed (~azed@196.229.44.80) has quit (Quit: WeeChat 3.1) 2021-05-18 15:53:01 <-- Xano (~Xano@2a00:23c4:420c:d700:464d:f833:ec5:73a5) has quit (Remote host closed the connection) 2021-05-18 15:53:24 --> Xano (~Xano@2a00:23c4:420c:d700:95:38b7:5ece:317d) has joined #python 2021-05-18 15:53:58 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 265 seconds) 2021-05-18 15:54:00 --> Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has joined #python 2021-05-18 15:54:00 rendar if i have z=(1,2) i can do a,b=z but what about z=(1,) ? i can't do a=z, otherwise i still get a tuple, a=z[0] is the way? 2021-05-18 15:54:26 bjs rendar: `a, = z` or I prefer `[a, b] = z` and `[a] = z` 2021-05-18 15:54:33 bjs rendar: `a = z[0]` is also perfectly acceptable. 2021-05-18 15:55:10 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Quit: Leaving) 2021-05-18 15:55:13 bjs Ox4: Hmm, a list of tuples is an awkward structure to use here, is it always 2 tuples followed by the sum of the two things? what if the first elements aren't equal? what if there are 3 elements in a row with the same first element? 2021-05-18 15:55:35 rendar bjs: hm, i see, i wonder why `a,=z` works, but `a,_=z` doesn't 2021-05-18 15:55:39 <-- fizzizist (~Thunderbi@108.162.133.99) has quit (Quit: fizzizist) 2021-05-18 15:55:47 bjs rendar: because one is trying to unpack one value, and the other two 2021-05-18 15:55:51 bjs but there aren't 2 things in z? 2021-05-18 15:55:53 <-- mawk (mawk@serveur.io) has quit (Read error: Connection reset by peer) 2021-05-18 15:56:10 rendar uhm, ok 2021-05-18 15:56:13 bjs rendar: `(a,) = z` also works btw 2021-05-18 15:56:15 bjs rendar: uhm? 2021-05-18 15:56:16 rendar `a,` unpacks 1 thing? 2021-05-18 15:56:20 bjs rendar: yes 2021-05-18 15:56:34 bjs rendar: `a, = ...` and `[a] = ...` and `(a,) = ...` are all the same 2021-05-18 15:57:37 rendar i can't get `[a]=z` why that should be equal to `a=z[0]` 2021-05-18 15:57:43 bjs rendar: it's not 2021-05-18 15:57:47 Ox4 bjs: there are always even amount of elements. The first elements should be equal. What structure do you propose then? 2021-05-18 15:57:52 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-18 15:58:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 15:58:20 bjs rendar: well it kind of is 2021-05-18 15:58:37 bjs rendar: `[a,b,c] = z` unpacks z into a, b and c 2021-05-18 15:58:38 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-18 15:58:40 rendar bjs: where i can learn more about these notations? 2021-05-18 15:58:45 bjs rendar: docs.python.org/ 2021-05-18 15:58:45 vlt Ox4: I'd start with `d = {}; for k, v in lt: d[k] = d.setdefault(k, 0) + v` 2021-05-18 15:59:09 bjs Ox4: well it's kind of an odd structure, and i'm unsure where it came from or what it represents so it's hard to say what structure I would use 2021-05-18 15:59:21 rendar bjs: really? i didn't know that! :) i was asking what section of the enormous docs should i check? 2021-05-18 15:59:33 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-18 15:59:55 bjs rendar: I'm not sure, but if I were to guess it'd be under the Language Reference (since it's part of the language) 2021-05-18 16:00:02 --> mawk (mawk@serveur.io) has joined #python 2021-05-18 16:00:04 bjs rendar: it's in the assignment statement, so I'd look there 2021-05-18 16:00:40 --> jay-m_ (~jay-m@41.205.30.141) has joined #python 2021-05-18 16:00:42 <-- eht (~eht@unaffiliated/eht) has quit (Read error: Connection reset by peer) 2021-05-18 16:01:00 rendar ok 2021-05-18 16:01:43 bjs rendar: "Assignment of an object to a target list, optionally enclosed in parentheses or square brackets [...] The object must be an iterable with the same number of items as there are targets in the target list, and the items are assigned, from left to right, to the corresponding targets. [...]" for a start 2021-05-18 16:01:56 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 16:01:58 <-- GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has quit (Ping timeout: 252 seconds) 2021-05-18 16:02:05 rendar ok 2021-05-18 16:02:20 melkor vlt: setdefault? What about d.get(k, 0)? 2021-05-18 16:02:24 rendar bjs: i'm not accustomed to have a list in the left side of the assignment 2021-05-18 16:02:52 bjs rendar: it's no different to putting a tuple there, like `a, b = z` 2021-05-18 16:02:54 vlt melkor: right, d.get() should be enough here :D 2021-05-18 16:03:01 vlt Ox4: ^ 2021-05-18 16:03:20 bjs rendar: indeed `a, b = z` and `(a, b) = z` and `[a, b] = z` are all the same, Python just ignores the brackets. 2021-05-18 16:03:24 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 252 seconds) 2021-05-18 16:03:35 rendar bjs: oh! ok, now i see it 2021-05-18 16:03:39 Ox4 vlt: thanks 2021-05-18 16:03:44 <-- Jormungandr89 (~brad@136.49.61.2) has quit (Quit: Konversation terminated!) 2021-05-18 16:03:56 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: No Ping reply in 180 seconds.) 2021-05-18 16:04:00 melkor Ox4: if you need tuples afterwards you can get them from the dictionary pretty simply. 2021-05-18 16:04:08 <-- jigubigule (~jigubigul@m90-133-65-68.cust.tele2.lv) has quit (Quit: WeeChat 3.1) 2021-05-18 16:05:22 <-- Peyam (8a6a3984@138.106.57.132) has quit (Quit: Connection closed) 2021-05-18 16:05:22 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-18 16:05:55 <-- Laibsch (~Laibsch@2a01:c23:74ad:6200:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-18 16:05:58 Ox4 melkor: yep. thanks 2021-05-18 16:06:10 <-- gelignite (~gelignite@55d43f75.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-18 16:07:00 --> eht (~eht@unaffiliated/eht) has joined #python 2021-05-18 16:09:05 <-- ubert (~Thunderbi@p200300ecdf259daae6b318fffe838f33.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-18 16:09:13 rendar this `min([x for x, _ in data])` gets me the minimum x in a list of (x,y) tuples, but what about i want to generalize this for (x,y) (x,y,t) (x,y,t,w) ? 2021-05-18 16:09:14 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-18 16:09:22 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-18 16:09:36 bjs rendar: min(t[0] for t in data) 2021-05-18 16:09:45 rendar and t[1] for y, ok 2021-05-18 16:09:47 amo or you use a key=lambda 2021-05-18 16:10:02 bjs rendar: or min(x for x, *ys in data) 2021-05-18 16:10:09 rendar amo: huh? how? 2021-05-18 16:10:09 bjs rendar: although I prefer the version with t[0] here 2021-05-18 16:10:13 --> carl-- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-18 16:10:16 amo min takes key 2021-05-18 16:10:34 bjs rendar: like min(data, key=operator.itemgetter(0)) # this will give you the (x, y) tuple not just the x. 2021-05-18 16:11:12 rendar oh 2021-05-18 16:11:12 amo jup 2021-05-18 16:12:03 --> indy (~indy@dsl-static-104.213-160-167.telecom.sk) has joined #python 2021-05-18 16:12:04 amo but it might get a little convoluted with a comprehension AND a lambda 2021-05-18 16:12:18 amo depends on the rest of the code, i guess 2021-05-18 16:12:32 bjs None of the above suggestions involved writing a lambda at all :) 2021-05-18 16:12:40 amo itemgetter 2021-05-18 16:12:41 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 260 seconds) 2021-05-18 16:12:44 amo whatever ;) 2021-05-18 16:13:13 amo you know what i mean 2021-05-18 16:13:21 <-- Hanii_ (~Hanii@2a00:23c5:c587:6d00:ad2d:37e:bef9:6e9b) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-18 16:13:28 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 16:13:37 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-18 16:15:05 <-- Haxxa (~Haxxa@89nnjg0xckz9ggn6r5xm.ip6.superloop.com) has quit (Quit: Haxxa flies away.) 2021-05-18 16:15:14 amo apropos operator module, why are there distinctions between lt(a, b) and __lt__(a,b) etc? 2021-05-18 16:15:43 <-- oTToRoCk (~david@45-184-71-252.canaatelecom.net.br) has quit (Quit: WeeChat 2.8) 2021-05-18 16:15:43 <-- refusenick (~user@2601:644:8502:d700::94c9) has quit (Remote host closed the connection) 2021-05-18 16:15:47 --> jim (~jim@about/linux/staff/jim) has joined #python 2021-05-18 16:15:50 bjs amo: for convenience and style, they refer to the same thing 2021-05-18 16:16:05 bjs lt = __lt__ = def lt(x,y): return x < y 2021-05-18 16:16:39 amo ok.. looks strange 2021-05-18 16:16:55 bjs amo: some people will prefer operator.lt, some people may prefer the more explicit operator.__lt__ 2021-05-18 16:17:11 <-- pro_z (~pro_z@37.214.71.198) has quit (Ping timeout: 260 seconds) 2021-05-18 16:17:37 amo inv, invert, __inv__ and __invert__ :s 2021-05-18 16:17:52 bjs amo: I think it's a mistake, because __lt__(x,y) would suggest (to me) it calls type(x).__lt__(x, y) 2021-05-18 16:17:55 bjs amo: yes, all the same 2021-05-18 16:18:04 <-- neilthereildeil (cc73b704@unaffiliated/neilthereildeil) has quit (Quit: Connection closed) 2021-05-18 16:18:26 <-- carl-- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Ping timeout: 252 seconds) 2021-05-18 16:18:41 amo that just doesn't feel right 2021-05-18 16:18:41 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 240 seconds) 2021-05-18 16:19:07 <-- klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has quit (Quit: ZZZzzzzz.....) 2021-05-18 16:19:32 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-18 16:19:37 amo are those alternatives new? i don't think i've seen them before 2021-05-18 16:20:00 bjs amo: I don't think so 2021-05-18 16:20:40 <-- dulanic (~dulanic@47.187.149.140) has quit (Ping timeout: 252 seconds) 2021-05-18 16:20:55 SnoopJ huh, I can't recall if I knew that operator had the dunder spellings. gross :) 2021-05-18 16:21:02 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-18 16:21:04 <-- greedom (~greedom@2001:16b8:32bb:de00:9617:adf3:5892:4d74) has quit (Remote host closed the connection) 2021-05-18 16:21:15 amo oh, and *that* is interesting: https://docs.python.org/3/library/operator.html#operator.itemgetter 2021-05-18 16:21:23 amo operator.itemgetter(*items) 2021-05-18 16:21:30 --> dulanic (~dulanic@47.187.149.140) has joined #python 2021-05-18 16:21:35 amo the heck? 2021-05-18 16:21:50 SnoopJ it can get more than one item 2021-05-18 16:21:52 --> greedom (~greedom@2001:16b8:32bb:de00:9617:adf3:5892:4d74) has joined #python 2021-05-18 16:21:58 <-- Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 16:22:13 SnoopJ "After g = itemgetter(2, 5, 3), the call g(r) returns (r[2], r[5], r[3])" 2021-05-18 16:22:29 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 245 seconds) 2021-05-18 16:22:37 <-- eht (~eht@unaffiliated/eht) has quit (Read error: Connection reset by peer) 2021-05-18 16:22:39 --> Laibsch (~Laibsch@2a01:c23:74ad:6200:f2de:f1ff:fed0:6548) has joined #python 2021-05-18 16:22:45 amo definitely haven't seen that before either 2021-05-18 16:23:08 bjs amo: it seems operator.lt and __lt__ were added in 2.2, and inv/etc go back to at least 2.0 https://docs.python.org/2.0/lib/module-operator.html 2021-05-18 16:23:31 --> Lanjelin (~Lanjelin@50.51-174-33.customer.lyse.net) has joined #python 2021-05-18 16:25:10 amo then i just haven't read the docs on operator as careful before, i guess.. i admit, it's one of the corners i rarely visit 2021-05-18 16:26:37 --> a6a45081-2b83 (~aditya@122.163.149.247) has joined #python 2021-05-18 16:26:46 --> Jormungandr89 (~brad@136.49.61.2) has joined #python 2021-05-18 16:27:27 --> Haxxa (~Haxxa@122-199-4-253.ip4.superloop.com) has joined #python 2021-05-18 16:27:43 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-18 16:28:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 16:28:17 <-- Deesl (~bsdboy@redhat/deesl) has quit (Remote host closed the connection) 2021-05-18 16:28:34 --> eht (~eht@unaffiliated/eht) has joined #python 2021-05-18 16:29:40 <-- medard (~medard@unaffiliated/medard) has quit (Quit: Leaving) 2021-05-18 16:31:11 <-- kosh (~kosh@p200300d08f149b003d83d98b963d9854.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-18 16:31:41 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 16:32:04 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-18 16:32:20 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-18 16:33:33 --> dav1d6 (~dav1d@volt/developer/dav1d) has joined #python 2021-05-18 16:36:38 <-- darksun (~darksun@unaffiliated/darksun) has quit (Remote host closed the connection) 2021-05-18 16:37:01 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Ping timeout: 260 seconds) 2021-05-18 16:37:02 -- dav1d6 is now known as dav1d 2021-05-18 16:37:25 <-- greedom (~greedom@2001:16b8:32bb:de00:9617:adf3:5892:4d74) has quit (Read error: Connection reset by peer) 2021-05-18 16:38:11 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 240 seconds) 2021-05-18 16:38:45 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Quit: %bye mirc%) 2021-05-18 16:39:06 <-- rendar (~rendar@unaffiliated/rendar) has quit 2021-05-18 16:39:17 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-18 16:41:32 <-- Laibsch (~Laibsch@2a01:c23:74ad:6200:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-18 16:42:43 --> kosh (~kosh@p200300d08f149b003d83d98b963d9854.dip0.t-ipconnect.de) has joined #python 2021-05-18 16:44:06 --> Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has joined #python 2021-05-18 16:45:47 <-- Abbott (~Abbott@unaffiliated/abbott) has quit (Ping timeout: 260 seconds) 2021-05-18 16:45:53 --> makinazo_ (~makinazo_@185.183.18.110) has joined #python 2021-05-18 16:46:42 --> makinzo2 (~makinazo_@185.183.18.110) has joined #python 2021-05-18 16:48:15 --> qj (~qj@unaffiliated/qj) has joined #python 2021-05-18 16:49:25 <-- imp (~imp@186.205.11.214) has quit (Read error: Connection reset by peer) 2021-05-18 16:49:38 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-18 16:49:48 <-- LuxuryMode (uid91005@gateway/web/irccloud.com/x-obynhqrkvbaobogq) has quit (Quit: Connection closed for inactivity) 2021-05-18 16:49:49 --> imp (~imp@186.205.11.214) has joined #python 2021-05-18 16:50:27 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-18 16:51:18 <-- imp (~imp@186.205.11.214) has quit (Read error: Connection reset by peer) 2021-05-18 16:51:36 <-- Anas__G (~Thunderbi@196.235.81.59) has quit (Ping timeout: 260 seconds) 2021-05-18 16:51:38 --> imp (~imp@186.205.11.214) has joined #python 2021-05-18 16:51:50 --> xvx (~xvx@185.48.63.104) has joined #python 2021-05-18 16:53:36 --> contagious_meow (~contagiou@154.122.87.103) has joined #python 2021-05-18 16:53:37 <-- maximb (5744a443@87.68.164.67) has quit (Quit: Connection closed) 2021-05-18 16:53:41 --> yeticheese (~yetichees@192.145.80.124) has joined #python 2021-05-18 16:53:54 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 16:54:01 <-- bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has quit (Quit: bilb_ono) 2021-05-18 16:54:10 <-- contagious_meow (~contagiou@154.122.87.103) has quit (Max SendQ exceeded) 2021-05-18 16:54:41 --> contagious_meow (~contagiou@154.122.87.103) has joined #python 2021-05-18 16:54:42 <-- tocka (uid198544@gateway/web/irccloud.com/x-pfxpfavenrfmhxyf) has quit (Quit: Connection closed for inactivity) 2021-05-18 16:55:27 --> guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has joined #python 2021-05-18 16:55:40 <-- makinzo2 (~makinazo_@185.183.18.110) has quit (Remote host closed the connection) 2021-05-18 16:55:40 <-- makinazo_ (~makinazo_@185.183.18.110) has quit (Remote host closed the connection) 2021-05-18 16:55:55 <-- ridik (~ridik@p548217b5.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-18 16:56:10 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-18 16:57:13 <-- vuoto (~vuoto@80.71.142.174) has quit (Read error: Connection reset by peer) 2021-05-18 16:57:54 --> bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has joined #python 2021-05-18 16:58:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 16:58:19 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 245 seconds) 2021-05-18 16:59:38 <-- philh (~philh@mue-88-130-57-052.dsl.tropolys.de) has quit (Remote host closed the connection) 2021-05-18 16:59:47 <-- henri (~henri@179.83.53.49) has quit (Remote host closed the connection) 2021-05-18 17:01:20 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 17:02:49 -- _habnabit is now known as habnabit_ 2021-05-18 17:04:07 <-- CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has quit (Quit: Leaving) 2021-05-18 17:04:35 --> thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has joined #python 2021-05-18 17:04:40 <-- mcsontos (~mcsontos@95.82.134.89) has quit (Quit: Leaving) 2021-05-18 17:05:20 --> _vvv_ (~vvv@unaffiliated/vvv-/x-7971938) has joined #python 2021-05-18 17:07:47 --> zaki (~zaki@2601:403:4280:3a60::bc69) has joined #python 2021-05-18 17:08:32 <-- xhalc (~xhalc@p5b0ee3c8.dip0.t-ipconnect.de) has quit (Quit: ()) 2021-05-18 17:09:44 --> Xano_ (~Xano@2a00:23c4:420c:d700:50bd:9be7:4c09:4dce) has joined #python 2021-05-18 17:09:57 --> ClaymorePT (~Claymore@188.251.155.208) has joined #python 2021-05-18 17:10:31 <-- Xano (~Xano@2a00:23c4:420c:d700:95:38b7:5ece:317d) has quit (Ping timeout: 260 seconds) 2021-05-18 17:12:26 <-- kosh (~kosh@p200300d08f149b003d83d98b963d9854.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-18 17:14:36 --> rcm888 (~rcm888___@93.190.204.253) has joined #python 2021-05-18 17:14:47 <-- onizu (uid373383@gateway/web/irccloud.com/x-juflgreizrpmgdzx) has quit (Quit: Connection closed for inactivity) 2021-05-18 17:15:02 --> vimart (~vimart@85.255.235.188) has joined #python 2021-05-18 17:15:11 <-- Naan (~naan@unaffiliated/naan) has quit (Ping timeout: 260 seconds) 2021-05-18 17:15:18 --> drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-18 17:17:11 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: WeeChat 3.1) 2021-05-18 17:17:27 <-- adde9708 (uid139358@gateway/web/irccloud.com/x-dnportbrqfkxhmsy) has quit (Quit: Connection closed for inactivity) 2021-05-18 17:17:41 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-18 17:18:44 <-- ffe4 (~ffe4@200116b82c0f4e002c88525439cf0ec5.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-18 17:19:07 --> Anas__G (~Thunderbi@196.235.81.59) has joined #python 2021-05-18 17:19:41 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Ping timeout: 240 seconds) 2021-05-18 17:19:48 --> TulaZula (TulaZula@gateway/vpn/privateinternetaccess/tulazula) has joined #python 2021-05-18 17:20:11 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 246 seconds) 2021-05-18 17:21:42 <-- TulaZula (TulaZula@gateway/vpn/privateinternetaccess/tulazula) has quit (Client Quit) 2021-05-18 17:23:08 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-18 17:25:38 amo i was just experimenting with alternatives to passing strings to parametrize internal function implementations 2021-05-18 17:25:40 <-- imp (~imp@186.205.11.214) has quit (Quit: imp) 2021-05-18 17:25:50 amo i came up with this absurdity 2021-05-18 17:25:51 amo https://bpa.st/VMKQ 2021-05-18 17:26:00 <-- guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 17:26:24 amo but it's kind of hard to get to the internal enum from the outside xD 2021-05-18 17:26:35 doc|home you're not right :) 2021-05-18 17:26:50 amo not right? 2021-05-18 17:27:02 doc|home in the head :) 2021-05-18 17:27:06 amo hahahaha 2021-05-18 17:27:14 amo true 2021-05-18 17:28:09 rcm888 who knows how to write servers? 2021-05-18 17:28:10 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 17:28:22 --> guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has joined #python 2021-05-18 17:28:42 SnoopJ rcm888, it's a common topic here, many members of this community write servers 2021-05-18 17:29:08 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-18 17:29:18 <-- manti7 (~manti7@176.10.104.94) has quit (Quit: WeeChat 3.1) 2021-05-18 17:29:33 --> Thanatos (~Thanatos@ec2-54-148-37-124.us-west-2.compute.amazonaws.com) has joined #python 2021-05-18 17:29:46 rcm888 SnoopJ: I want to make basic server with binary data transfer and secure transport. 2021-05-18 17:29:57 <-- ogo (~ogo@gateway/tor-sasl/ogo) has quit (Ping timeout: 240 seconds) 2021-05-18 17:30:01 habnabit_ rcm888, so you're looking for a python httpd? 2021-05-18 17:30:14 NoImNotNineVolt httpd doesn't scream "binary" to me 2021-05-18 17:30:19 rcm888 habnabit_: is it binary? 2021-05-18 17:30:31 <-- Ylan (~textual@213-66-223-10-no10.tbcn.telia.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-18 17:30:34 habnabit_ rcm888, aside from "yes, everything is binary".. yes 2021-05-18 17:30:43 <-- CaptainDrewBoy (~CaptainDr@cpc121736-barn9-2-0-cust74.17-1.cable.virginm.net) has quit (Read error: Connection reset by peer) 2021-05-18 17:31:07 NoImNotNineVolt why does everyone insist in shoehorning things that have nothing to do with hypertext into http? 2021-05-18 17:31:19 --> ogo (~ogo@gateway/tor-sasl/ogo) has joined #python 2021-05-18 17:31:27 rcm888 habnabit_: I don't need any framework or html 2021-05-18 17:31:31 <-- zaki (~zaki@2601:403:4280:3a60::bc69) has quit (Ping timeout: 260 seconds) 2021-05-18 17:31:32 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:8890:d688:9553:c89f) has joined #python 2021-05-18 17:31:34 habnabit_ because the tooling for http is so, so much better than for anything else 2021-05-18 17:31:49 habnabit_ rcm888, that's fine 2021-05-18 17:31:53 NoImNotNineVolt isn't it possible that you only think that because your primary use case is the transfer of hypertext? 2021-05-18 17:32:00 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 17:32:10 habnabit_ NoImNotNineVolt, i can't remember the last time i sent html over http 2021-05-18 17:32:11 doc|home rcm888: this for a real project or pet project? 2021-05-18 17:32:21 NoImNotNineVolt fair enough. 2021-05-18 17:32:25 NoImNotNineVolt a lot of people do web stuff. 2021-05-18 17:32:32 --> argento (~argent0@168.227.96.26) has joined #python 2021-05-18 17:32:34 NoImNotNineVolt i feel that it biases them. 2021-05-18 17:32:52 habnabit_ NoImNotNineVolt, what protocol would you suggest in its place? 2021-05-18 17:33:24 <-- BUSY (~BUSY@unaffiliated/busy) has quit (Read error: Connection reset by peer) 2021-05-18 17:33:31 NoImNotNineVolt i'd ask more questions before making a suggestion. but at this point, even sftp seems more fitting than http[s]. 2021-05-18 17:33:32 rcm888 doc|home: of course real project 2021-05-18 17:33:36 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 17:33:40 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has joined #python 2021-05-18 17:33:55 doc|home rcm888: then I'd just use something that exists instead of trying to develop something new 2021-05-18 17:34:42 rcm888 doc|home: what does exist for binary transfer multi-threaded serving? 2021-05-18 17:34:46 NoImNotNineVolt doc|home: even if it introduces a tremendous amount of unwarranted complexity? 2021-05-18 17:35:23 doc|home NoImNotNineVolt: why not? Even if you don't use it others have so the likelihood is it works well and is safe to use. 2021-05-18 17:35:29 doc|home (overall) 2021-05-18 17:35:30 NoImNotNineVolt rcm888: can you be more specific than "binary data"? like, files in a filesystem? 2021-05-18 17:35:34 rcm888 enough stupid questions. I need server! 2021-05-18 17:35:50 amo no 2021-05-18 17:36:00 amo those aren't stupid questions 2021-05-18 17:36:18 NoImNotNineVolt doc|home: an explanation for why unwarranted complexity is undesirable may be beyond the scope of an irc discussion. 2021-05-18 17:36:25 habnabit_ rcm888, https://fastapi.tiangolo.com/tutorial/first-steps/ 2021-05-18 17:36:44 rcm888 I am Starscream, the leader of the Decepticons and the ruture ruler of the Galaxy! 2021-05-18 17:36:59 NoImNotNineVolt well that makes more sense, then. 2021-05-18 17:37:29 <-- Hunterkll (~hunterkll@2001:470:8b06:400:215:5dff:fefb:804) has quit (Ping timeout: 250 seconds) 2021-05-18 17:37:59 doc|home starscream indeed 2021-05-18 17:38:07 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-18 17:38:31 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:50cc:3ca2:d3e3:6e33) has quit (Ping timeout: 260 seconds) 2021-05-18 17:40:24 --> salitos (~contagiou@197.156.190.194) has joined #python 2021-05-18 17:40:55 <-- salitos (~contagiou@197.156.190.194) has quit (Max SendQ exceeded) 2021-05-18 17:41:30 --> salitos (~contagiou@197.156.190.144) has joined #python 2021-05-18 17:41:56 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-18 17:42:05 <-- salitos (~contagiou@197.156.190.144) has quit (Max SendQ exceeded) 2021-05-18 17:42:34 --> salitos (~contagiou@197.156.190.153) has joined #python 2021-05-18 17:43:31 <-- contagious_meow (~contagiou@154.122.87.103) has quit (Ping timeout: 260 seconds) 2021-05-18 17:44:04 <-- DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has quit (Quit: DeadTOm) 2021-05-18 17:46:36 <-- john_johnk (~Thunderbi@112.54.140.77.rev.sfr.net) has quit (Ping timeout: 268 seconds) 2021-05-18 17:47:00 <-- Anas__G (~Thunderbi@196.235.81.59) has quit (Quit: Anas__G) 2021-05-18 17:47:08 --> llh (~coke@unaffiliated/llh) has joined #python 2021-05-18 17:47:24 --> Anas__G (~Thunderbi@196.235.81.59) has joined #python 2021-05-18 17:47:29 <-- guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has quit (Ping timeout: 246 seconds) 2021-05-18 17:48:27 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-18 17:48:49 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-18 17:49:41 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 240 seconds) 2021-05-18 17:51:11 <-- cthu| (~cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-18 17:54:10 <-- Anas__G (~Thunderbi@196.235.81.59) has quit (Quit: Anas__G) 2021-05-18 17:54:12 <-- Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has quit (Ping timeout: 240 seconds) 2021-05-18 17:54:30 --> Anas__G (~Thunderbi@196.235.81.59) has joined #python 2021-05-18 17:54:57 --> Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has joined #python 2021-05-18 17:55:14 <-- domhnall (domhnall@gateway/vpn/privateinternetaccess/domhnall) has quit (Ping timeout: 268 seconds) 2021-05-18 17:55:28 --> nvmd (~nvmd@177.30.111.232) has joined #python 2021-05-18 17:56:26 <-- bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has quit (Quit: bilb_ono) 2021-05-18 17:57:48 <-- xrogaan (~xrogaan@unaffiliated/xrogaan) has quit (Quit: Leaving) 2021-05-18 17:58:19 <-- palasso (~palasso@unaffiliated/palasso) has quit (Quit: I am not a quitter!) 2021-05-18 17:58:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 17:58:19 <-- spiri (~spiri@unaffiliated/spiri) has quit (Ping timeout: 268 seconds) 2021-05-18 17:59:08 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Quit: Leaving) 2021-05-18 18:00:04 --> zaki (~zaki@2601:403:4280:3a60::bc69) has joined #python 2021-05-18 18:01:18 <-- _vvv_ (~vvv@unaffiliated/vvv-/x-7971938) has left #python ("Leaving.") 2021-05-18 18:02:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 18:04:10 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 18:04:12 <-- blip- (~blip-@unaffiliated/blip-) has quit (Ping timeout: 240 seconds) 2021-05-18 18:05:07 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 18:05:45 --> guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has joined #python 2021-05-18 18:06:05 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 260 seconds) 2021-05-18 18:06:45 --> henri (~henri@179.83.53.49) has joined #python 2021-05-18 18:07:41 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-18 18:08:36 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-18 18:09:18 <-- Betal (~Betal@unaffiliated/betal) has quit (Ping timeout: 265 seconds) 2021-05-18 18:09:20 --> pcloadltr (~pcloadltr@148.72.133.201) has joined #python 2021-05-18 18:09:45 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-18 18:10:02 <-- dviola (~diego@unaffiliated/dviola) has quit (Ping timeout: 268 seconds) 2021-05-18 18:10:17 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-18 18:10:23 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-18 18:11:29 <-- Psyb3rN4ut (~psybernau@147.161.13.243) has quit (Read error: Connection reset by peer) 2021-05-18 18:11:42 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-18 18:12:00 <-- adder` (~adder@unaffiliated/adder) has quit (Remote host closed the connection) 2021-05-18 18:12:04 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 245 seconds) 2021-05-18 18:12:27 --> adder` (~adder@unaffiliated/adder) has joined #python 2021-05-18 18:12:28 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-18 18:12:34 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-18 18:13:50 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.1) 2021-05-18 18:14:20 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 18:14:27 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has quit (Ping timeout: 260 seconds) 2021-05-18 18:15:31 --> fcjsx (~fcjsx_@2800:a4:817:3800:966b:c86a:ca8e:c554) has joined #python 2021-05-18 18:15:49 <-- fcjsx (~fcjsx_@2800:a4:817:3800:966b:c86a:ca8e:c554) has quit (Remote host closed the connection) 2021-05-18 18:16:50 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-18 18:17:39 --> Psyb3rN4ut (~psybernau@147.161.13.243) has joined #python 2021-05-18 18:17:56 <-- Oddity (Oddity@unaffiliated/oddity) has quit (Ping timeout: 246 seconds) 2021-05-18 18:18:55 --> bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has joined #python 2021-05-18 18:19:04 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 252 seconds) 2021-05-18 18:20:55 <-- zebrag (~inkbottle@aaubervilliers-651-1-236-241.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-18 18:20:59 SnoopJ Is there any reason that `"key" in frame.f_locals` would be true, but `frame.f_locals["key"]` would fail with a KeyError? The type should be dict if I understand right, so I think the answer is no... 2021-05-18 18:21:21 <-- Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has quit (Quit: Leaving.) 2021-05-18 18:21:40 <-- Psyb3rN4ut (~psybernau@147.161.13.243) has quit (Read error: Connection reset by peer) 2021-05-18 18:22:22 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 268 seconds) 2021-05-18 18:22:24 habnabit_ SnoopJ, is the type() dict? if so, it's not pretending to be something else 2021-05-18 18:22:37 Yhg1s SnoopJ: which Python version? 2021-05-18 18:22:49 <-- nvmd (~nvmd@177.30.111.232) has quit (Quit: Later nerds.) 2021-05-18 18:22:50 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:d07d:8e8d:4b1e:bc63) has joined #python 2021-05-18 18:23:24 SnoopJ 3.6+ 2021-05-18 18:23:42 --> fcjsx (~fcjsx_@2800:a4:817:3800:966b:c86a:ca8e:c554) has joined #python 2021-05-18 18:24:00 <-- fcjsx (~fcjsx_@2800:a4:817:3800:966b:c86a:ca8e:c554) has quit (Remote host closed the connection) 2021-05-18 18:24:23 SnoopJ the code that has me asking: https://github.com/plasma-umass/scalene/blob/master/scalene/scalene_profiler.py#L774-L781 2021-05-18 18:24:34 --> azed (~azed@196.231.22.219) has joined #python 2021-05-18 18:25:43 SnoopJ There's a bug there in assuming that "cls" will *be* a class (or anything that defines __name__) when it's present, but the exception handler seems like it's being cautious about something that was already checked 2021-05-18 18:25:48 --> Oddity (Oddity@unaffiliated/oddity) has joined #python 2021-05-18 18:28:02 --> Psyb3rN4ut (~psybernau@147.161.13.243) has joined #python 2021-05-18 18:28:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 18:28:39 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-18 18:28:42 <-- Anas__G (~Thunderbi@196.235.81.59) has quit (Quit: Anas__G) 2021-05-18 18:28:42 <-- malevolent (~quassel@79.116.12.217) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-18 18:28:43 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-18 18:28:57 --> Anas__G (~Thunderbi@196.235.81.59) has joined #python 2021-05-18 18:29:12 --> aodn01 (~a@unaffiliated/aodn01) has joined #python 2021-05-18 18:30:56 Yhg1s SnoopJ: well, frame.f_locals is a property, so if something is still running in that frame it could delete the local name between the two calls. 2021-05-18 18:31:06 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-18 18:31:12 Yhg1s (frame.f_locals creates a new dict from the locals each time, so caching it is a really good idea.) 2021-05-18 18:31:21 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 18:31:30 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 18:32:17 --> malevolent (~quassel@79.116.12.217) has joined #python 2021-05-18 18:32:47 --> bigRoo (~user@131.236.54.244) has joined #python 2021-05-18 18:33:00 <-- pizdets (~pizdets@183.182.115.180) has quit (Ping timeout: 252 seconds) 2021-05-18 18:33:06 Yhg1s or, well, it updates a cached dict if it's still around. 2021-05-18 18:33:06 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-18 18:33:50 --> pizdets (~pizdets@183.182.110.148) has joined #python 2021-05-18 18:34:08 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-18 18:34:24 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-18 18:34:50 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 252 seconds) 2021-05-18 18:35:50 --> streety (~streety@li761-24.members.linode.com) has joined #python 2021-05-18 18:36:33 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Ping timeout: 268 seconds) 2021-05-18 18:37:07 SnoopJ hrm, I just realized I hadn't looked at the blame, and intrigue: the `except KeyError` was introduced for what looks like the same issue that sent me here: https://github.com/plasma-umass/scalene/commit/cd5b7e7038dd89555ea1ac28e87b8b3b5d0cae12 2021-05-18 18:37:07 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 18:37:30 --> overyander (~overyande@50.115.255.72) has joined #python 2021-05-18 18:37:53 <-- legola (~legola@unaffiliated/legola) has quit (Remote host closed the connection) 2021-05-18 18:38:12 --> ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has joined #python 2021-05-18 18:38:53 --> SammyToesis (~SammyToes@cpe-76-184-187-146.tx.res.rr.com) has joined #python 2021-05-18 18:39:12 --> Laibsch (~Laibsch@2a01:c23:74ad:6200:f2de:f1ff:fed0:6548) has joined #python 2021-05-18 18:39:16 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 252 seconds) 2021-05-18 18:39:40 <-- Anas__G (~Thunderbi@196.235.81.59) has quit (Quit: Anas__G) 2021-05-18 18:39:57 --> Anas__G (~Thunderbi@196.235.81.59) has joined #python 2021-05-18 18:40:00 --> yamz (~contagiou@102.167.62.201) has joined #python 2021-05-18 18:40:30 Yhg1s that just sounds like they confused AttributeError and KeyError then. 2021-05-18 18:40:52 <-- Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has quit (Ping timeout: 268 seconds) 2021-05-18 18:41:58 <-- Anas__G (~Thunderbi@196.235.81.59) has quit (Client Quit) 2021-05-18 18:42:11 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-18 18:42:31 SnoopJ agreed. I was thinking of submitting a patch along the lines of `cls = f.f_locals["cls"]; if inspect.isclass(cls): ...` and dropping the exception handler, but wanted to be sure I wasn't missing some nuanced case where KeyError might otherwise arise 2021-05-18 18:42:47 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 246 seconds) 2021-05-18 18:43:36 <-- salitos (~contagiou@197.156.190.153) has quit (Ping timeout: 260 seconds) 2021-05-18 18:43:51 <-- Naan (~naan@unaffiliated/naan) has quit (Ping timeout: 260 seconds) 2021-05-18 18:43:56 Yhg1s just use getattr(), really. 2021-05-18 18:44:03 --> fb_ (~freebench@92.253.251.226) has joined #python 2021-05-18 18:44:30 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-18 18:44:47 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-18 18:44:53 SnoopJ for __name__ and test the result? 2021-05-18 18:45:29 Yhg1s SnoopJ: yes. 2021-05-18 18:46:13 <-- sesser_ (~sesser@107.13.245.224) has quit (Ping timeout: 240 seconds) 2021-05-18 18:46:41 <-- freebench__ (~freebench@92.253.251.226) has quit (Ping timeout: 260 seconds) 2021-05-18 18:48:00 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-18 18:48:24 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 252 seconds) 2021-05-18 18:48:35 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-18 18:49:10 <-- pizdets (~pizdets@183.182.110.148) has quit (Ping timeout: 252 seconds) 2021-05-18 18:52:52 --> SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has joined #python 2021-05-18 18:53:53 <-- zro (~zro@wikimedia/zro) has quit (Quit: WeeChat 3.1) 2021-05-18 18:55:15 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 18:56:48 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-18 18:56:59 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-18 18:57:28 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-18 18:58:18 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 18:58:30 SnoopJ good point, thanks :) 2021-05-18 18:58:56 <-- Laibsch (~Laibsch@2a01:c23:74ad:6200:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-18 18:59:29 <-- stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-18 19:00:02 --> Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has joined #python 2021-05-18 19:00:04 <-- djapo (~archie@unaffiliated/djapo) has quit (Remote host closed the connection) 2021-05-18 19:00:16 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 19:00:36 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Ping timeout: 268 seconds) 2021-05-18 19:01:24 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 19:01:43 <-- pcloadltr (~pcloadltr@148.72.133.201) has left #python ("Leaving") 2021-05-18 19:02:00 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-18 19:02:13 SnoopJ oh hrm, now I'm remembering why I wanted isclass(): even if it's not an error, it might be *wrong* 2021-05-18 19:02:31 <-- Xano_ (~Xano@2a00:23c4:420c:d700:50bd:9be7:4c09:4dce) has quit (Ping timeout: 260 seconds) 2021-05-18 19:03:45 <-- tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has quit (Quit: Leaving) 2021-05-18 19:03:59 Yhg1s SnoopJ: so might isclass, unfortunately. 2021-05-18 19:04:45 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-18 19:04:50 Yhg1s SnoopJ: I was thinking more along the lines of avoiding the error while keeping the same semantics. 2021-05-18 19:04:54 SnoopJ Yhg1s, is `isinstance(obj, type)` going to be wrong as often as "has a __name__?" 2021-05-18 19:05:07 <-- Asmodean (~Asmoedean@178.115.129.41.wireless.dyn.drei.com) has quit (Ping timeout: 252 seconds) 2021-05-18 19:05:29 Yhg1s SnoopJ: don't know! what would the code want to do with things that behave like classes but aren't, really? 2021-05-18 19:05:32 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 268 seconds) 2021-05-18 19:05:43 SnoopJ sort of my thinking 2021-05-18 19:05:44 Yhg1s or rather, things that are used where a class is normally expected. 2021-05-18 19:05:50 SnoopJ ah 2021-05-18 19:06:07 SnoopJ well, in that case: it's something people actually do; I blundered into it because of a usage in matplotlib where it's a str 2021-05-18 19:07:00 --> Asmodean (~Asmoedean@91.141.1.54.wireless.dyn.drei.com) has joined #python 2021-05-18 19:07:36 SnoopJ probably best to send them a patch with light-touch getattr() 2021-05-18 19:08:19 <-- amahl (~amahl@dxv5skybvn0ktk90bn7bt-3.rev.dnainternet.fi) has quit (Ping timeout: 245 seconds) 2021-05-18 19:10:32 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-18 19:10:36 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-18 19:10:41 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 265 seconds) 2021-05-18 19:11:00 --> salitos (~contagiou@102.167.196.177) has joined #python 2021-05-18 19:11:13 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-18 19:11:32 <-- salitos (~contagiou@102.167.196.177) has quit (Max SendQ exceeded) 2021-05-18 19:12:35 --> salitos (~contagiou@102.167.196.177) has joined #python 2021-05-18 19:12:36 --> Abbott (~Abbott@unaffiliated/abbott) has joined #python 2021-05-18 19:13:05 <-- salitos (~contagiou@102.167.196.177) has quit (Max SendQ exceeded) 2021-05-18 19:13:17 <-- Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has quit (Ping timeout: 260 seconds) 2021-05-18 19:13:28 --> mangold (~mangold@198.98.183.40) has joined #python 2021-05-18 19:13:56 <-- drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Ping timeout: 260 seconds) 2021-05-18 19:14:15 --> salitos (~contagiou@197.156.190.148) has joined #python 2021-05-18 19:14:15 <-- Ergo (~ergo@91.238.59.144) has quit (Remote host closed the connection) 2021-05-18 19:14:43 <-- Naan (~naan@unaffiliated/naan) has quit (Read error: Connection reset by peer) 2021-05-18 19:14:44 <-- salitos (~contagiou@197.156.190.148) has quit (Max SendQ exceeded) 2021-05-18 19:14:47 <-- yamz (~contagiou@102.167.62.201) has quit (Ping timeout: 268 seconds) 2021-05-18 19:14:56 --> philr (~phil@118.211.93.148) has joined #python 2021-05-18 19:15:39 --> salitos (~contagiou@197.156.190.138) has joined #python 2021-05-18 19:15:49 <-- fflori (~fflori@mob-194-230-155-151.cgn.sunrise.net) has quit (Remote host closed the connection) 2021-05-18 19:16:20 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-18 19:16:41 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-18 19:18:12 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has quit (Read error: Connection reset by peer) 2021-05-18 19:18:54 --> thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has joined #python 2021-05-18 19:19:15 <-- bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-18 19:19:29 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-18 19:19:30 <-- Cherenkov (~Cherenkov@a109-49-131-251.cpe.netcabo.pt) has quit (Read error: Connection reset by peer) 2021-05-18 19:19:51 <-- Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has quit (Quit: Leaving.) 2021-05-18 19:19:56 <-- salitos (~contagiou@197.156.190.138) has quit (Client Quit) 2021-05-18 19:20:16 --> salitos (~contagiou@197.156.190.238) has joined #python 2021-05-18 19:20:25 --> bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-18 19:20:55 --> dweeber_ (~dweeber@c-73-52-129-219.hsd1.ut.comcast.net) has joined #python 2021-05-18 19:20:59 --> Anas__G (~Thunderbi@196.235.81.59) has joined #python 2021-05-18 19:21:46 <-- salitos (~contagiou@197.156.190.238) has quit (Remote host closed the connection) 2021-05-18 19:22:09 --> salitos (~contagiou@197.156.190.249) has joined #python 2021-05-18 19:22:32 <-- dweeber (~dweeber@c-73-52-129-219.hsd1.ut.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-18 19:22:34 <-- salitos (~contagiou@197.156.190.249) has quit (Remote host closed the connection) 2021-05-18 19:22:50 --> salitos (~contagiou@197.156.190.178) has joined #python 2021-05-18 19:23:46 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-18 19:24:46 --> Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has joined #python 2021-05-18 19:24:52 <-- bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Ping timeout: 240 seconds) 2021-05-18 19:26:02 --> Wulf4 (~Wulf@unaffiliated/wulf) has joined #python 2021-05-18 19:26:10 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 252 seconds) 2021-05-18 19:26:14 <-- psydruid[m] (psydruidma@gateway/shell/matrix.org/x-ysctwwwcffcfyahy) has quit (Ping timeout: 245 seconds) 2021-05-18 19:26:33 <-- cerna (cernamatri@gateway/shell/matrix.org/x-tduefraibmrjhxjm) has quit (Ping timeout: 258 seconds) 2021-05-18 19:26:39 <-- Evidlo (evidlomatr@purduelug/evidlo) has quit (Ping timeout: 245 seconds) 2021-05-18 19:27:19 <-- johtso[m] (johtsomatr@gateway/shell/matrix.org/x-zgfyaubfgufamzze) has quit (Ping timeout: 258 seconds) 2021-05-18 19:27:20 <-- lnxw37d4 (lnxw37d4ma@gateway/shell/matrix.org/x-mtetdbivgmiakwmu) has quit (Ping timeout: 258 seconds) 2021-05-18 19:27:22 --> c4017w (~c4017@209.52.68.8) has joined #python 2021-05-18 19:28:04 <-- akoana (~ah@unaffiliated/akoana) has left #python ("Leaving") 2021-05-18 19:28:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 19:28:44 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 252 seconds) 2021-05-18 19:28:47 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-18 19:28:59 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 246 seconds) 2021-05-18 19:28:59 -- Wulf4 is now known as Wulf 2021-05-18 19:30:41 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 19:31:00 <-- yeticheese (~yetichees@192.145.80.124) has quit 2021-05-18 19:31:49 --> dviola (~diego@unaffiliated/dviola) has joined #python 2021-05-18 19:31:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 19:31:55 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Ping timeout: 260 seconds) 2021-05-18 19:32:11 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-18 19:32:14 --> pizdets (~pizdets@183.182.110.114) has joined #python 2021-05-18 19:33:08 <-- bazul (bazul@38.189.189.46.rev.vodafone.pt) has quit (Remote host closed the connection) 2021-05-18 19:33:32 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-18 19:33:54 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 19:35:55 --> padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has joined #python 2021-05-18 19:36:16 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-18 19:37:03 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 19:37:36 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-18 19:38:16 --> Y3Klo (~Thunderbi@2806:10b7:3:50a2:feaa:14ff:fe93:db3c) has joined #python 2021-05-18 19:38:31 <-- dstufft (~dstufft@python/psf/dstufft) has quit (Excess Flood) 2021-05-18 19:38:39 --> dstufft (~dstufft@python/psf/dstufft) has joined #python 2021-05-18 19:38:50 <-- dhill (~dhill@modemcable250.73-201-24.mc.videotron.ca) has quit (Ping timeout: 268 seconds) 2021-05-18 19:40:51 <-- henri (~henri@179.83.53.49) has quit (Remote host closed the connection) 2021-05-18 19:40:59 <-- srhm (~ascii@107-179-188-91.cpe.teksavvy.com) has quit (Quit: Konversation terminated!) 2021-05-18 19:41:11 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:8890:d688:9553:c89f) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-18 19:41:21 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-18 19:42:20 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-18 19:42:28 <-- securethemews (~securethe@2a00:23c4:1e98:8f00::4) has quit (Quit: Leaving) 2021-05-18 19:45:49 <-- mangold (~mangold@198.98.183.40) has quit (Ping timeout: 252 seconds) 2021-05-18 19:45:58 <-- SammyToesis (~SammyToes@cpe-76-184-187-146.tx.res.rr.com) has quit (Quit: Leaving) 2021-05-18 19:46:01 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 260 seconds) 2021-05-18 19:46:20 --> psydruid[m] (psydruidma@gateway/shell/matrix.org/x-eemddmidvbdkwrwl) has joined #python 2021-05-18 19:46:41 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-18 19:46:53 <-- padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has left #python 2021-05-18 19:47:10 --> orev (~orev@cpe-174-109-151-117.nc.res.rr.com) has joined #python 2021-05-18 19:47:40 --> abhixec (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) has joined #python 2021-05-18 19:47:46 <-- kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 260 seconds) 2021-05-18 19:48:30 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-18 19:49:09 --> Evidlo (evidlomatr@purduelug/evidlo) has joined #python 2021-05-18 19:49:13 --> cerna (cernamatri@gateway/shell/matrix.org/x-imbaacszyvvazymf) has joined #python 2021-05-18 19:49:17 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Remote host closed the connection) 2021-05-18 19:50:33 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 268 seconds) 2021-05-18 19:50:43 --> leduyquang753 (~leduyquan@27.73.107.184) has joined #python 2021-05-18 19:51:59 <-- lejocelyn (~lejocelyn@2a02:8109:8880:10ec::ec60) has quit (Ping timeout: 260 seconds) 2021-05-18 19:53:22 <-- CrowX- (~CrowX-@185.167.46.134) has quit (Remote host closed the connection) 2021-05-18 19:54:10 <-- Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has quit (Quit: Leaving.) 2021-05-18 19:55:21 <-- vimart (~vimart@85.255.235.188) has quit (Ping timeout: 260 seconds) 2021-05-18 19:56:31 --> Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has joined #python 2021-05-18 19:57:11 --> lnxw37d4 (lnxw37d4ma@gateway/shell/matrix.org/x-wqixhekxsvskzkxd) has joined #python 2021-05-18 19:58:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 20:01:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 20:01:37 <-- cliluw (~cliluw@unaffiliated/cliluw) has quit (Read error: Connection reset by peer) 2021-05-18 20:02:12 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-18 20:02:57 <-- ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has quit (Quit: Leaving) 2021-05-18 20:03:31 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-18 20:03:32 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 20:03:49 <-- ogo (~ogo@gateway/tor-sasl/ogo) has quit (Remote host closed the connection) 2021-05-18 20:04:29 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 20:04:55 --> Gerula_ (~Gerula@unaffiliated/gerula) has joined #python 2021-05-18 20:04:55 <-- Gerula (~Gerula@unaffiliated/gerula) has quit (Killed (moon.freenode.net (Nickname regained by services))) 2021-05-18 20:04:55 -- Gerula_ is now known as Gerula 2021-05-18 20:07:04 <-- WhizzWr (Whizz@s-o-m-e.h-o-s-t.name) has quit (Quit: Bye!) 2021-05-18 20:08:48 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit 2021-05-18 20:08:55 --> edlou (uid413273@gateway/web/irccloud.com/x-qsjwmvydaedgmmeo) has joined #python 2021-05-18 20:08:58 --> dhill (~dhill@modemcable250.73-201-24.mc.videotron.ca) has joined #python 2021-05-18 20:09:41 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 240 seconds) 2021-05-18 20:09:51 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-18 20:10:11 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 240 seconds) 2021-05-18 20:10:12 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 20:10:24 --> joshisanonymous (joshisanon@gateway/vpn/privateinternetaccess/joshisanonymous) has joined #python 2021-05-18 20:10:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 20:11:16 <-- Naan (~naan@unaffiliated/naan) has quit (Ping timeout: 252 seconds) 2021-05-18 20:12:36 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-18 20:12:38 --> WhizzWr (Whizz@s-o-m-e.h-o-s-t.name) has joined #python 2021-05-18 20:13:12 --> kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-18 20:14:06 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Ping timeout: 240 seconds) 2021-05-18 20:14:26 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-18 20:14:27 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-18 20:14:29 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-18 20:14:36 --> yamz (~contagiou@102.166.117.36) has joined #python 2021-05-18 20:14:44 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-18 20:14:46 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-18 20:15:04 <-- yamz (~contagiou@102.166.117.36) has quit (Max SendQ exceeded) 2021-05-18 20:15:44 --> yamz (~contagiou@102.166.117.36) has joined #python 2021-05-18 20:16:01 <-- predmijat (~predmijat@mail.strogopro.com) has quit (Quit: bye) 2021-05-18 20:16:02 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 252 seconds) 2021-05-18 20:16:20 <-- Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has quit (Quit: Leaving.) 2021-05-18 20:16:46 <-- yamz (~contagiou@102.166.117.36) has quit (Remote host closed the connection) 2021-05-18 20:17:14 --> yamz (~contagiou@102.166.117.36) has joined #python 2021-05-18 20:17:29 --> predmijat (~predmijat@mail.strogopro.com) has joined #python 2021-05-18 20:17:37 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-18 20:17:38 --> Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has joined #python 2021-05-18 20:17:43 <-- salitos (~contagiou@197.156.190.178) has quit (Ping timeout: 252 seconds) 2021-05-18 20:17:44 <-- yamz (~contagiou@102.166.117.36) has quit (Max SendQ exceeded) 2021-05-18 20:17:52 <-- ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has quit (Ping timeout: 265 seconds) 2021-05-18 20:18:11 --> Muimi (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-18 20:18:14 --> yamz (~contagiou@102.166.117.36) has joined #python 2021-05-18 20:18:16 --> ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has joined #python 2021-05-18 20:18:31 <-- yamz (~contagiou@102.166.117.36) has quit (Max SendQ exceeded) 2021-05-18 20:18:49 ranran8888 hi i can make multi thaerding but differnt script ? in same script ? 2021-05-18 20:18:50 <-- kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 265 seconds) 2021-05-18 20:19:19 --> yamz (~contagiou@102.166.117.36) has joined #python 2021-05-18 20:19:51 <-- keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has quit (Quit: keeth) 2021-05-18 20:21:21 --> vimart (~vimart@148.252.128.202) has joined #python 2021-05-18 20:21:46 <-- Anas__G (~Thunderbi@196.235.81.59) has quit (Quit: Anas__G) 2021-05-18 20:22:02 --> Anas__G (~Thunderbi@196.235.81.59) has joined #python 2021-05-18 20:24:46 <-- Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has quit (Quit: WeeChat 3.1) 2021-05-18 20:26:46 <-- ulif (~nick@gf6.gnufix.de) has quit (Remote host closed the connection) 2021-05-18 20:27:47 <-- PiRATA (~PiRATA@bug.pirata.dev) has quit (Ping timeout: 250 seconds) 2021-05-18 20:28:06 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 20:29:35 <-- shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has quit (Quit: shibboleth) 2021-05-18 20:29:55 <-- PantelicGR (~PantelicG@unaffiliated/pantelicgr) has quit (Quit: Leaving) 2021-05-18 20:30:20 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-18 20:30:22 --> bitdex (~bitdex@gateway/tor-sasl/bitdex) has joined #python 2021-05-18 20:30:51 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-18 20:31:03 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Client Quit) 2021-05-18 20:31:15 <-- emerent (~quassel@p200300cd57102401ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-18 20:31:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 20:31:52 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 268 seconds) 2021-05-18 20:32:02 --> ulif (~nick@gf6.gnufix.de) has joined #python 2021-05-18 20:33:07 --> emerent (~quassel@p200300cd5703bb20ba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-18 20:33:23 --> m1cl (~m1cl@2a02:8109:b6c0:1b94::7c3e) has joined #python 2021-05-18 20:33:45 --> PiRATA (~PiRATA@bug.pirata.dev) has joined #python 2021-05-18 20:34:09 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-18 20:35:35 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-18 20:35:41 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-18 20:36:00 <-- jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has quit (Quit: WeeChat 3.1) 2021-05-18 20:36:41 <-- aodn01 (~a@unaffiliated/aodn01) has quit (Ping timeout: 240 seconds) 2021-05-18 20:37:32 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 20:37:34 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 20:38:41 <-- azed (~azed@196.231.22.219) has quit (Quit: WeeChat 3.1) 2021-05-18 20:39:03 --> Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has joined #python 2021-05-18 20:39:11 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-18 20:39:43 <-- joshisanonymous (joshisanon@gateway/vpn/privateinternetaccess/joshisanonymous) has quit (Ping timeout: 252 seconds) 2021-05-18 20:40:05 <-- agrawalritesh (~agrawalri@223.238.156.56) has quit (Read error: Connection reset by peer) 2021-05-18 20:40:07 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-18 20:40:08 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-18 20:40:43 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-18 20:41:01 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-18 20:41:18 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 258 seconds) 2021-05-18 20:41:20 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-18 20:42:28 --> adde9708 (uid139358@gateway/web/irccloud.com/x-ktpfgrxpiafscodx) has joined #python 2021-05-18 20:42:42 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-18 20:42:50 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-18 20:43:52 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Ping timeout: 240 seconds) 2021-05-18 20:44:03 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 20:44:11 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 240 seconds) 2021-05-18 20:44:12 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 20:44:56 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 20:46:17 --> dcompoze (~dcompoze@5E98D6D9.static.tld.pl) has joined #python 2021-05-18 20:46:36 --> jtanner (sid194399@gateway/web/irccloud.com/x-utppvoxnbjvyvkuw) has joined #python 2021-05-18 20:46:43 <-- PNHLantau (~pnhlantau@223.18.76.33) has quit (Read error: Connection reset by peer) 2021-05-18 20:47:43 <-- Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has quit (Quit: Leaving) 2021-05-18 20:48:35 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-18 20:48:41 <-- dcompoze (~dcompoze@5E98D6D9.static.tld.pl) has quit (Client Quit) 2021-05-18 20:48:52 <-- argento (~argent0@168.227.96.26) has quit (Quit: leaving) 2021-05-18 20:51:36 <-- sappheiros (~sappheiro@unaffiliated/dan1) has quit (Quit: i wonder what the Internet Cafe will be like in heaven...) 2021-05-18 20:51:49 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 20:51:49 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 252 seconds) 2021-05-18 20:51:51 <-- abhixec (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) has quit (Remote host closed the connection) 2021-05-18 20:51:58 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 20:52:41 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 20:53:03 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 20:53:11 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 20:53:51 <-- Oddity (Oddity@unaffiliated/oddity) has quit (Remote host closed the connection) 2021-05-18 20:54:00 --> amogorkon (~amogorkon@port-83-236-6-20.dynamic.as20676.net) has joined #python 2021-05-18 20:54:25 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-18 20:54:37 --> korg815 (~korg815@unaffiliated/korg815) has joined #python 2021-05-18 20:56:06 <-- amo (~amogorkon@port-92-196-9-89.dynamic.as20676.net) has quit (Ping timeout: 240 seconds) 2021-05-18 20:57:11 <-- ClaymorePT (~Claymore@188.251.155.208) has quit (Ping timeout: 240 seconds) 2021-05-18 20:57:29 --> kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-18 20:57:44 <-- frrs (uid130725@gateway/web/irccloud.com/x-dtvupabpmyfbhlda) has quit (Quit: Connection closed for inactivity) 2021-05-18 20:58:33 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 20:59:32 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 20:59:38 --> snalty_ (~Shhh@host81-157-242-224.range81-157.btcentralplus.com) has joined #python 2021-05-18 21:00:07 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:00:14 <-- snalty (~Shhh@host31-53-210-159.range31-53.btcentralplus.com) has quit (Ping timeout: 268 seconds) 2021-05-18 21:00:24 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-18 21:00:44 --> ThreadRipper3970 (~ThreadRip@2600:1700:aac0:1170:849a:a4ca:4575:374a) has joined #python 2021-05-18 21:00:59 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:01:48 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 21:01:58 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:02:03 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Quit: WeeChat 3.1) 2021-05-18 21:02:11 --> Oddity (Oddity@unaffiliated/oddity) has joined #python 2021-05-18 21:02:46 <-- kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 258 seconds) 2021-05-18 21:04:06 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 240 seconds) 2021-05-18 21:04:27 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:04:43 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:04:50 --> Jantz_ (~IceChat95@2407:7000:8d04:100:ddd4:9dda:8902:3322) has joined #python 2021-05-18 21:05:01 --> PNHLantau (~pnhlantau@223.18.76.33) has joined #python 2021-05-18 21:05:55 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:06:42 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:06:56 <-- yamz (~contagiou@102.166.117.36) has quit (Remote host closed the connection) 2021-05-18 21:07:26 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 240 seconds) 2021-05-18 21:07:29 <-- JimmyNeutron (~weechat@173.239.198.210) has quit (Quit: WeeChat 3.0.1) 2021-05-18 21:07:43 --> pikapika_lunar_a (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-18 21:08:26 <-- Jackneill (~Jackneill@unaffiliated/jackneill) has quit (Ping timeout: 240 seconds) 2021-05-18 21:08:46 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-18 21:08:52 --> gobby252 (~gobby252@178.239.173.200) has joined #python 2021-05-18 21:09:22 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:09:43 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:10:36 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 260 seconds) 2021-05-18 21:10:53 <-- Rudd0 (~Rudd0@185.189.115.103) has quit (Ping timeout: 240 seconds) 2021-05-18 21:11:33 <-- nanonyme (nanonyme@unaffiliated/nanonyme) has quit (Ping timeout: 250 seconds) 2021-05-18 21:11:59 <-- PiRATA (~PiRATA@bug.pirata.dev) has quit (Ping timeout: 250 seconds) 2021-05-18 21:12:04 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: so long and thanks for all the fish) 2021-05-18 21:12:29 <-- Laibsch (~Laibsch@dynamic-078-049-167-164.78.49.pool.telefonica.de) has quit (Quit: Leaving.) 2021-05-18 21:12:32 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit 2021-05-18 21:12:32 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:12:34 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:12:56 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-18 21:13:17 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-18 21:13:32 stats4647 Hi, is there a way to call a function from iPython and step through it via pdb ? 2021-05-18 21:15:02 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:16:13 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:16:44 InPhase stats4647: Why go through that effort when you can just copy and paste lines from the function? It's already a repl. 2021-05-18 21:17:29 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:17:58 --> PiRATA (~PiRATA@bug.pirata.dev) has joined #python 2021-05-18 21:18:25 --> hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has joined #python 2021-05-18 21:18:31 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:18:49 <-- krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-18 21:18:57 stats4647 InPhase: and you also have to set the input params, which I think is too much work 2021-05-18 21:19:04 --> bo` (~bo`@c-73-158-158-2.hsd1.ca.comcast.net) has joined #python 2021-05-18 21:19:15 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 265 seconds) 2021-05-18 21:19:52 <-- mertyildiran (~mertyildi@85.100.224.245) has quit (Ping timeout: 252 seconds) 2021-05-18 21:19:52 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:20:13 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 21:21:47 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:22:17 --> Jackneill (~Jackneill@unaffiliated/jackneill) has joined #python 2021-05-18 21:23:05 <-- gobby252 (~gobby252@178.239.173.200) has quit (Quit: Leaving) 2021-05-18 21:23:35 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Quit: tourdownunder) 2021-05-18 21:23:59 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-18 21:24:39 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-18 21:25:12 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-18 21:28:26 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 21:29:23 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 246 seconds) 2021-05-18 21:29:26 --> shenmicike (~cike@180.169.205.50) has joined #python 2021-05-18 21:29:36 <-- computeiro (~Wender@189.37.66.52) has quit (Remote host closed the connection) 2021-05-18 21:30:03 --> MadScientist (~markg@024-217-179-126.res.spectrum.com) has joined #python 2021-05-18 21:30:18 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-18 21:31:47 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-18 21:32:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 21:33:10 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Quit: WeeChat 3.1) 2021-05-18 21:33:19 --> zro (~zro@wikimedia/zro) has joined #python 2021-05-18 21:33:58 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Quit: tourdownunder) 2021-05-18 21:33:59 --> Left_Turn (~Matthew@unaffiliated/turn-left/x-3739067) has joined #python 2021-05-18 21:34:21 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-18 21:34:23 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Remote host closed the connection) 2021-05-18 21:34:36 <-- SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-18 21:34:40 <-- rcm888 (~rcm888___@93.190.204.253) has quit (Remote host closed the connection) 2021-05-18 21:34:43 <-- ralof (~ralof@dynamic-095-114-059-243.95.114.pool.telefonica.de) has quit (Ping timeout: 265 seconds) 2021-05-18 21:35:01 <-- Ublx (~Alex@2a02:810c:280:59c:6078:fa10:dfb1:b8be) has quit (Max SendQ exceeded) 2021-05-18 21:35:05 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-18 21:35:21 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-18 21:35:30 --> Ublx (~Alex@2a02:810c:280:59c:6078:fa10:dfb1:b8be) has joined #python 2021-05-18 21:36:06 <-- Turn_Left (~Matthew@31.124.100.228) has quit (Ping timeout: 240 seconds) 2021-05-18 21:36:19 --> metabsd (uid209675@gateway/web/irccloud.com/x-igswfflmyvxgfzer) has joined #python 2021-05-18 21:36:27 --> ralof (~ralof@dynamic-077-009-041-153.77.9.pool.telefonica.de) has joined #python 2021-05-18 21:36:36 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 21:38:42 --> nanonyme (nanonyme@unaffiliated/nanonyme) has joined #python 2021-05-18 21:38:51 <-- ponyofdeath (~vladi@2606:6000:cfc0:2b:1850:c071:a926:7ef5) has quit (Ping timeout: 250 seconds) 2021-05-18 21:41:23 --> aodn01 (~a@unaffiliated/aodn01) has joined #python 2021-05-18 21:42:19 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:42:26 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Read error: Connection reset by peer) 2021-05-18 21:46:03 --> Guest16355 (~success@unaffiliated/success) has joined #python 2021-05-18 21:46:28 <-- Jantz_ (~IceChat95@2407:7000:8d04:100:ddd4:9dda:8902:3322) has quit (Ping timeout: 258 seconds) 2021-05-18 21:46:50 --> al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-18 21:47:11 <-- Jackneill (~Jackneill@unaffiliated/jackneill) has quit (Ping timeout: 240 seconds) 2021-05-18 21:47:43 -- Guest16355 is now known as Success 2021-05-18 21:50:02 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-18 21:51:39 --> ponyofdeath (~vladi@cpe-24-94-16-66.san.res.rr.com) has joined #python 2021-05-18 21:52:01 <-- MJ (~mjpieters@unaffiliated/mj) has quit (Ping timeout: 260 seconds) 2021-05-18 21:52:31 --> MJ (~mjpieters@unaffiliated/mj) has joined #python 2021-05-18 21:52:57 --> Anas_G (~Thunderbi@196.235.126.229) has joined #python 2021-05-18 21:53:56 <-- Anas__G (~Thunderbi@196.235.81.59) has quit (Ping timeout: 252 seconds) 2021-05-18 21:53:57 -- Anas_G is now known as Anas__G 2021-05-18 21:56:08 <-- Death916 (UserNick@unaffiliated/death916) has quit (Read error: Connection reset by peer) 2021-05-18 21:56:43 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-18 21:58:01 <-- DemonOne (~androirc@2a00:a040:188:b2b3:6c4f:76fe:1bfd:c53) has quit (Remote host closed the connection) 2021-05-18 21:58:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 21:59:13 --> civillian (~nick@ppp118-208-178-29.cbr-trn-nor-bras39.tpg.internode.on.net) has joined #python 2021-05-18 21:59:18 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-18 21:59:37 --> kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-18 21:59:57 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Remote host closed the connection) 2021-05-18 22:00:20 --> Jackneill (~Jackneill@unaffiliated/jackneill) has joined #python 2021-05-18 22:01:16 <-- sesser (~sesser@107.13.245.224) has quit (Ping timeout: 252 seconds) 2021-05-18 22:01:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 22:04:16 --> Catatronic_ (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-18 22:04:22 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 268 seconds) 2021-05-18 22:04:54 -- Catatronic_ is now known as Catatronic 2021-05-18 22:05:36 <-- kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 268 seconds) 2021-05-18 22:06:11 <-- xvx (~xvx@185.48.63.104) has quit (Ping timeout: 240 seconds) 2021-05-18 22:06:50 <-- urodna (~urodna@unaffiliated/urodna) has quit (Quit: urodna) 2021-05-18 22:08:07 <-- overyander (~overyande@50.115.255.72) has quit (Quit: Leaving) 2021-05-18 22:08:58 <-- YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has quit (Ping timeout: 252 seconds) 2021-05-18 22:09:18 <-- ahadi (~ahadi@89.244.122.210) has quit (Ping timeout: 268 seconds) 2021-05-18 22:09:37 <-- CodeMouse92 (~JasonMc92@unaffiliated/codemouse) has quit (Ping timeout: 250 seconds) 2021-05-18 22:10:10 --> ahadi (~ahadi@89.244.125.52) has joined #python 2021-05-18 22:11:51 -- threwahway_ is now known as threwahway 2021-05-18 22:12:04 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:d07d:8e8d:4b1e:bc63) has quit (Ping timeout: 245 seconds) 2021-05-18 22:13:09 -- threwahway is now known as threwahway_ 2021-05-18 22:14:18 --> yeticheese (~yetichees@45.83.89.68) has joined #python 2021-05-18 22:16:11 --> Trashlord (~trash@wikipedia/Sentient-Planet) has joined #python 2021-05-18 22:16:32 <-- tm (~sinnlos@unaffiliated/tm) has quit (Ping timeout: 240 seconds) 2021-05-18 22:18:08 --> ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has joined #python 2021-05-18 22:19:14 <-- ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has quit (Ping timeout: 252 seconds) 2021-05-18 22:19:44 <-- NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Read error: Connection reset by peer) 2021-05-18 22:20:43 --> tm (~sinnlos@unaffiliated/tm) has joined #python 2021-05-18 22:21:22 --> ryansmccoy (ryansmccoy@gateway/vpn/airvpn/ryansmccoy) has joined #python 2021-05-18 22:21:35 SnoopJ stats4647, pdb should work without any special configuration 2021-05-18 22:21:53 SnoopJ i.e. `import pdb; pdb.set_trace()` should work in IPython 2021-05-18 22:22:09 SnoopJ or breakpoint() if you're on 3.7+ 2021-05-18 22:22:16 --> FinnElija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has joined #python 2021-05-18 22:22:16 -- finn_elija is now known as Guest30168 2021-05-18 22:22:16 -- FinnElija is now known as finn_elija 2021-05-18 22:22:34 <-- Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-18 22:22:54 --> LiteWait (620ff509@cpe-98-15-245-9.hvc.res.rr.com) has joined #python 2021-05-18 22:24:44 stats4647 SnoopJ: thanks, I usually set the trace in the code itself, so not sure what exactly i would type at the iPython prompt 2021-05-18 22:24:55 SnoopJ exactly the same thing 2021-05-18 22:25:18 <-- Kingsy (~chris@unaffiliated/kingsy101) has quit (Ping timeout: 240 seconds) 2021-05-18 22:25:33 <-- Guest30168 (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Ping timeout: 240 seconds) 2021-05-18 22:28:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 22:28:11 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 260 seconds) 2021-05-18 22:28:50 stats4647 that just opens the pdb) prompt, how do I then call a function func(par1, par2) ? 2021-05-18 22:30:00 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-18 22:30:39 --> NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-18 22:30:52 stats4647 ^ SnoopJ 2021-05-18 22:30:57 <-- LiteWait (620ff509@cpe-98-15-245-9.hvc.res.rr.com) has quit (Quit: Connection closed) 2021-05-18 22:31:36 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 22:35:26 --> envex (~envex@cpe-173-91-189-33.neo.res.rr.com) has joined #python 2021-05-18 22:36:05 <-- vimart (~vimart@148.252.128.202) has quit (Quit: WeeChat 2.8) 2021-05-18 22:36:06 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-18 22:36:08 BrenBarn stats4647: Did you look at the documentation: https://docs.python.org/3/library/pdb.html 2021-05-18 22:36:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-18 22:37:31 SnoopJ stats4647, you don't have a lot of options for changing the actual code being executed in a pdb session, I think you'd have to open a second Pdb session inside the first one, and I'm not even sure that's possible. 2021-05-18 22:38:21 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-18 22:39:07 stats4647 BrenBarn: I hadn't in a while but I see this now - pdb.run('mymodule.test()') , is this the one ? 2021-05-18 22:39:28 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-18 22:40:06 SnoopJ stats4647, oh, it's the `debug` command (ugh) 2021-05-18 22:40:07 <-- BlaDe^ (2d1fb7ab@45-31-183-171.lightspeed.austtx.sbcglobal.net) has quit (Quit: Connection closed) 2021-05-18 22:40:21 stats4647 SnoopJ: I was thinking there would be a way to force the execution into a pdb session 2021-05-18 22:41:15 <-- chachasmooth (~chachasmo@unaffiliated/chachasmooth) has quit (Ping timeout: 250 seconds) 2021-05-18 22:41:16 stats4647 SnoopJ: tried that too, but get this - https://dpaste.org/cvZu 2021-05-18 22:41:41 <-- Vornicus (~Vornicus@2603-8000-5d07-7ef0-f859-7556-2435-3b76.res6.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-18 22:42:06 --> chachasmooth (~chachasmo@unaffiliated/chachasmooth) has joined #python 2021-05-18 22:42:13 SnoopJ stats4647, `debug` is a command you use inside pdb 2021-05-18 22:42:17 stats4647 and even if I get to a ipdb> prompt, typing n kicks me back to iPython 2021-05-18 22:43:05 stats4647 SnoopJ: ah, I'll check it out, thanks again 2021-05-18 22:43:29 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-18 22:44:04 --> hypc (~Thunderbi@175.164.26.80) has joined #python 2021-05-18 22:44:11 <-- Sheilong (uid293653@gateway/web/irccloud.com/x-yvifpnpfisssiqhx) has quit 2021-05-18 22:47:28 <-- LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has quit (Ping timeout: 252 seconds) 2021-05-18 22:48:30 --> LiftLeft (~googolple@static.95.116.203.116.clients.your-server.de) has joined #python 2021-05-18 22:48:36 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-18 22:49:06 <-- qj (~qj@unaffiliated/qj) has quit (Quit: bye();) 2021-05-18 22:49:11 <-- tvm (~tvm@ip-89-103-250-229.net.upcbroadband.cz) has quit (Ping timeout: 246 seconds) 2021-05-18 22:49:32 SnoopJ stats4647, https://bpaste.net/MR7Q 2021-05-18 22:49:58 * SnoopJ has never actually used this 2021-05-18 22:51:12 BrenBarn Yes the `pdb.run` is what I meant 2021-05-18 22:52:40 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Quit: real life interrupt) 2021-05-18 22:53:32 --> overyander (~overyande@50.115.255.72) has joined #python 2021-05-18 22:53:53 <-- thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has quit (Ping timeout: 240 seconds) 2021-05-18 22:54:13 <-- ente_ (~ente_@p549968a8.dip0.t-ipconnect.de) has quit (Quit: WeeChat 3.1) 2021-05-18 22:54:26 <-- LiftLeft (~googolple@static.95.116.203.116.clients.your-server.de) has quit (Ping timeout: 240 seconds) 2021-05-18 22:56:02 --> admin124 (~My_real_n@ool-2f12f6cb.dyn.optonline.net) has joined #python 2021-05-18 22:56:22 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-18 22:56:53 --> Deyaa123 (c585d013@197.133.208.19) has joined #python 2021-05-18 22:56:53 Deyaa123 Hey 2021-05-18 22:57:06 Deyaa123 any one here good at patterns 2021-05-18 22:57:06 SnoopJ the implementation of `debug` is refreshingly direct: https://github.com/python/cpython/blob/main/Lib/pdb.py#L1092-L1111 2021-05-18 22:57:08 Deyaa123 ?? 2021-05-18 22:57:09 Deyaa123 ? 2021-05-18 22:57:15 SnoopJ Deyaa123, let's assume "yes," ask your real question 2021-05-18 22:57:30 Deyaa123 from traducir.config import basicConfig 2021-05-18 22:57:31 Deyaa123 from traducir.providers import GoogleProvider 2021-05-18 22:57:31 Deyaa123 from traducir.providers import MicrosoftProvider 2021-05-18 22:57:32 Deyaa123 from traducir.providers import YandexProvider 2021-05-18 22:57:32 Deyaa123 from traducir.providers import DeeplProvider 2021-05-18 22:57:33 Deyaa123 from traducir.providers import FrenglyProvider 2021-05-18 22:57:33 Deyaa123 def translation_factory(provider): 2021-05-18 22:57:34 Deyaa123     if provider == "google": 2021-05-18 22:57:34 Deyaa123         translator = GoogleProvider 2021-05-18 22:57:35 Deyaa123     elif provider == "microsoft": 2021-05-18 22:57:35 Deyaa123         translator = MicrosoftProvider 2021-05-18 22:57:36 Deyaa123     elif provider == "yandex": 2021-05-18 22:57:36 Deyaa123         translator = YandexProvider 2021-05-18 22:57:37 Deyaa123     elif provider == "deepl": 2021-05-18 22:57:37 Deyaa123         translator = DeeplProvider 2021-05-18 22:57:38 Deyaa123     elif provider == "frengly": 2021-05-18 22:57:38 Deyaa123         translator = FrenglyProvider 2021-05-18 22:57:39 Deyaa123     else: 2021-05-18 22:57:46 SnoopJ Deyaa123, use bpaste please: https://bpaste.net/+python+pytb 2021-05-18 22:57:53 Deyaa123 sorry 2021-05-18 22:58:02 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 22:58:07 Deyaa123 https://bpa.st/EWCQ 2021-05-18 22:58:39 Deyaa123 i want to be able to modify providers classes attributes using Translator class 2021-05-18 22:58:46 Deyaa123 can you help me ? 2021-05-18 22:58:55 Deyaa123 i cant find the prop way 2021-05-18 22:59:16 SnoopJ I don't understand what you're trying to do 2021-05-18 22:59:18 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 258 seconds) 2021-05-18 23:00:09 Deyaa123 im trying to be able to modify providers classes attributes/variables 2021-05-18 23:00:11 Deyaa123 from traducir.providers import GoogleProvider 2021-05-18 23:00:11 Deyaa123 from traducir.providers import MicrosoftProvider 2021-05-18 23:00:11 <-- admin124 (~My_real_n@ool-2f12f6cb.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-18 23:00:12 Deyaa123 from traducir.providers import YandexProvider 2021-05-18 23:00:12 Deyaa123 from traducir.providers import DeeplProvider 2021-05-18 23:00:13 Deyaa123 from traducir.providers import FrenglyProvider 2021-05-18 23:00:19 SnoopJ please don't paste in this channel 2021-05-18 23:00:19 <-- zaki (~zaki@2601:403:4280:3a60::bc69) has quit (Quit: WeeChat 3.1) 2021-05-18 23:00:23 Deyaa123 like self.key self.src 2021-05-18 23:00:28 Deyaa123 okay 2021-05-18 23:01:04 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-18 23:01:14 Deyaa123 like initiating the Translator class with ref to parent - > Translator(GoogleProvider) 2021-05-18 23:01:29 Deyaa123 but i want to do it dynamicaly 2021-05-18 23:01:39 --> kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-18 23:01:41 <-- brainium (~brainium@unaffiliated/brainium) has quit (Quit: Konversation terminated!) 2021-05-18 23:01:48 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 23:01:59 --> p-i- (~Ohmu@2001:44c8:4407:c1:dc85:6045:b30a:b968) has joined #python 2021-05-18 23:02:14 phy1729 I think you want a dict from a string like 'google' to a provider like GoogleProvider 2021-05-18 23:02:25 p-i- VSCode is so beautiful, but getting Python debugging working is an utter neverending nightmare. 2021-05-18 23:02:25 phy1729 and then a way to add to the dict for new providers? 2021-05-18 23:03:17 <-- notepad (~notepad@129.159.46.243) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 23:03:28 p-i- To this day I resort to setting print statements and early exits. 2021-05-18 23:03:28 <-- yeticheese (~yetichees@45.83.89.68) has quit 2021-05-18 23:03:41 Deyaa123 phy1729 this is exampe of provider class https://bpa.st/JK7Q 2021-05-18 23:03:51 p-i- Maybe time to let it go... and upgrade to pycharm 2021-05-18 23:04:04 Deyaa123 i want to be able to modify key , ... attributes from Translator 2021-05-18 23:04:38 --> notepad (~notepad@129.159.46.243) has joined #python 2021-05-18 23:04:55 InPhase p-i-: The overwhelming majority of the debugging I have done in nearly every language for 30+ years has basically been print debugging. Debuggers are overrated. 2021-05-18 23:05:02 Deyaa123 like if i create the object like that Translator(GoogleProvider) 2021-05-18 23:05:52 p-i- ok I got it working. But I don't like it. I don't like setting up things via IDE/GUI. It puts things in hard-to-find places. Sometimes in non-human-readable format. 2021-05-18 23:05:56 InPhase p-i-: Debuggers put you in a little window where you stop time and look at stuff. In print debugging you select out what to focus on in a systematic manner, and track the flow of data as a stream. 2021-05-18 23:06:02 --> tvm (~tvm@ip-89-103-250-229.net.upcbroadband.cz) has joined #python 2021-05-18 23:06:14 p-i- And GUI related questions google poorly. 2021-05-18 23:06:33 <-- aodn01 (~a@unaffiliated/aodn01) has quit (Ping timeout: 265 seconds) 2021-05-18 23:06:56 Deyaa123  inherit from inside the class 2021-05-18 23:06:58 <-- kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 258 seconds) 2021-05-18 23:07:31 Deyaa123 python inheritance base class attributes 2021-05-18 23:07:41 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-18 23:07:46 --> hb01[m] (hb01matrix@gateway/shell/matrix.org/x-dqaykgaeqgggzgoy) has joined #python 2021-05-18 23:07:48 --> LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has joined #python 2021-05-18 23:08:03 p-i- InPhase: yes, I prefer it. But sometimes I have to get my head around someone else's code, then it really helps to single step through it. It can be really awkward in Python when some class internally generates a datastructure and passes it out. 2021-05-18 23:08:13 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has left #python 2021-05-18 23:08:32 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-18 23:08:48 SnoopJ I've been enjoying pudb quite a lot 2021-05-18 23:09:25 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Ping timeout: 250 seconds) 2021-05-18 23:09:41 <-- Deyaa123 (c585d013@197.133.208.19) has quit (Quit: Connection closed) 2021-05-18 23:09:55 SnoopJ particularly the variables explorer (although I imagine it might not be as good as what pycharm offers) 2021-05-18 23:10:46 <-- plutoniix (~q@node-uic.pool-125-24.dynamic.totinternet.net) has quit (Ping timeout: 240 seconds) 2021-05-18 23:12:05 <-- swa_work (~swa_work@dhcp-108-168-59-19.cable.user.start.ca) has quit (Quit: ZNC - https://znc.in) 2021-05-18 23:12:13 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 240 seconds) 2021-05-18 23:12:18 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-18 23:12:30 <-- banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has quit (Quit: Connection closed) 2021-05-18 23:12:37 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 23:13:35 --> stree (~stree@68.36.8.116) has joined #python 2021-05-18 23:13:41 <-- Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has quit (Ping timeout: 260 seconds) 2021-05-18 23:13:51 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-18 23:13:54 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Remote host closed the connection) 2021-05-18 23:14:00 --> ente_ (~ente_@p549968a8.dip0.t-ipconnect.de) has joined #python 2021-05-18 23:14:11 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-18 23:14:41 --> Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has joined #python 2021-05-18 23:15:21 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Client Quit) 2021-05-18 23:15:34 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-18 23:15:42 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 23:16:11 --> swa_work (~swa_work@dhcp-108-168-59-19.cable.user.start.ca) has joined #python 2021-05-18 23:17:40 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-18 23:19:41 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-18 23:21:32 <-- zro (~zro@wikimedia/zro) has quit (Ping timeout: 258 seconds) 2021-05-18 23:21:45 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:d07d:8e8d:4b1e:bc63) has joined #python 2021-05-18 23:22:17 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-18 23:23:14 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-18 23:24:30 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-18 23:24:41 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 240 seconds) 2021-05-18 23:25:33 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-18 23:26:07 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-18 23:26:31 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:d07d:8e8d:4b1e:bc63) has quit (Ping timeout: 258 seconds) 2021-05-18 23:26:36 <-- ente_ (~ente_@p549968a8.dip0.t-ipconnect.de) has quit (Quit: WeeChat 3.1) 2021-05-18 23:28:01 --> SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has joined #python 2021-05-18 23:28:01 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 23:28:42 --> kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-18 23:30:11 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-18 23:30:21 -- pikapika_lunar_a is now known as pikapika 2021-05-18 23:31:04 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-18 23:31:29 --> ente_ (~ente_@p549968a8.dip0.t-ipconnect.de) has joined #python 2021-05-18 23:31:50 <-- overyander (~overyande@50.115.255.72) has quit (Quit: Leaving) 2021-05-18 23:31:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-18 23:32:07 -- VectorX is now known as MrFrodo 2021-05-18 23:32:14 <-- m1cl (~m1cl@2a02:8109:b6c0:1b94::7c3e) has quit (Quit: WeeChat 3.1) 2021-05-18 23:33:11 --> apokopto (~apokopto@119.139.194.153) has joined #python 2021-05-18 23:33:47 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 268 seconds) 2021-05-18 23:35:09 <-- notepad (~notepad@129.159.46.243) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 23:35:32 --> notepad (~notepad@129.159.46.243) has joined #python 2021-05-18 23:35:33 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 23:37:02 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Client Quit) 2021-05-18 23:37:23 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-18 23:39:03 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-18 23:40:08 --> psachin (~psachin@103.51.232.133) has joined #python 2021-05-18 23:40:10 --> tm007 (uid287041@gateway/web/irccloud.com/x-bxamrodgaitltewh) has joined #python 2021-05-18 23:40:26 <-- MadScientist (~markg@024-217-179-126.res.spectrum.com) has quit (Quit: Konversation terminated!) 2021-05-18 23:41:11 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 240 seconds) 2021-05-18 23:41:13 <-- eht (~eht@unaffiliated/eht) has quit (Quit: Lost terminal) 2021-05-18 23:41:40 <-- notepad (~notepad@129.159.46.243) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 23:42:10 --> notepad (~notepad@129.159.46.243) has joined #python 2021-05-18 23:42:16 <-- notepad (~notepad@129.159.46.243) has quit (Client Quit) 2021-05-18 23:42:48 --> notepad (~notepad@129.159.46.243) has joined #python 2021-05-18 23:43:32 --> azed (~azed@196.236.21.181) has joined #python 2021-05-18 23:44:18 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-18 23:47:29 --> eht (~eht@unaffiliated/eht) has joined #python 2021-05-18 23:49:49 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 268 seconds) 2021-05-18 23:51:22 <-- bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-18 23:51:30 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-18 23:51:38 <-- doc|home (~doc@gentoo/contributor/doc-007) has quit (Ping timeout: 252 seconds) 2021-05-18 23:51:39 <-- Fauve (~Fauve@unaffiliated/fauve) has quit (Quit: WeeChat 2.3) 2021-05-18 23:51:56 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-18 23:52:38 <-- radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-18 23:53:06 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-18 23:53:36 --> radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has joined #python 2021-05-18 23:54:42 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-18 23:55:23 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-18 23:55:29 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:d07d:8e8d:4b1e:bc63) has joined #python 2021-05-18 23:55:54 <-- Jackneill (~Jackneill@unaffiliated/jackneill) has quit (Remote host closed the connection) 2021-05-18 23:56:37 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 252 seconds) 2021-05-18 23:57:05 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-18 23:58:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-18 23:58:20 --> bunbunbunbunny (~Christoph@unaffiliated/vlvx) has joined #python 2021-05-18 23:58:25 bunbunbunbunny hey there 2021-05-18 23:58:45 FunkyBob hi 2021-05-18 23:58:54 bunbunbunbunny i have a dataclass and i want some of the properties in this dataclass to default to a staticmethod on my dataclass that returns like a 'default' instance of it 2021-05-18 23:59:01 bunbunbunbunny any particular way to do this? 2021-05-18 23:59:45 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Quit: tourdownunder) 2021-05-18 23:59:52 bunbunbunbunny it's a Tree's node ds with left and right of the same type and i want to do something like left: "Node" = self.default_node() or whatever 2021-05-19 00:00:00 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-19 00:00:01 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Remote host closed the connection) 2021-05-19 00:00:15 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:d07d:8e8d:4b1e:bc63) has quit (Ping timeout: 258 seconds) 2021-05-19 00:00:19 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-19 00:00:36 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Client Quit) 2021-05-19 00:01:00 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-19 00:01:40 --> karab44 (~karab44@unaffiliated/karab44) has joined #python 2021-05-19 00:01:54 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-19 00:02:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 00:02:20 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Read error: Connection reset by peer) 2021-05-19 00:02:51 <-- karab44 (~karab44@unaffiliated/karab44) has quit (Remote host closed the connection) 2021-05-19 00:03:12 bunbunbunbunny am i better off not using a dataclass and i guess writing my own constructor 2021-05-19 00:03:38 --> karab44 (~karab44@unaffiliated/karab44) has joined #python 2021-05-19 00:04:09 <-- ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has quit (Quit: Leaving) 2021-05-19 00:04:19 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-19 00:05:12 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Quit: tourdownunder) 2021-05-19 00:05:36 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-19 00:05:37 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Remote host closed the connection) 2021-05-19 00:05:51 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-19 00:05:52 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Remote host closed the connection) 2021-05-19 00:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-19 00:06:04 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-19 00:06:13 --> sazawal (~sazawal@2409:4043:2e13:7bc:2c3:9466:ff47:f2a0) has joined #python 2021-05-19 00:06:33 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Quit: Wr4i7h) 2021-05-19 00:06:37 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-19 00:06:57 <-- sazawal (~sazawal@2409:4043:2e13:7bc:2c3:9466:ff47:f2a0) has quit (Max SendQ exceeded) 2021-05-19 00:07:47 --> sazawal (~sazawal@2409:4043:2e13:7bc:2c3:9466:ff47:f2a0) has joined #python 2021-05-19 00:07:48 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-19 00:08:48 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 00:09:38 --> doc|home (~doc@gentoo/contributor/doc-007) has joined #python 2021-05-19 00:10:22 <-- Thanatos (~Thanatos@ec2-54-148-37-124.us-west-2.compute.amazonaws.com) has quit (Ping timeout: 252 seconds) 2021-05-19 00:12:34 --> CaptHindsight (~CaptHindi@unaffiliated/capthindsight) has joined #python 2021-05-19 00:13:03 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-19 00:13:38 <-- pedahzur (~jkugler@216-67-98-32.static.acsalaska.net) has quit (Ping timeout: 252 seconds) 2021-05-19 00:15:35 <-- shenmicike (~cike@180.169.205.50) has quit (Ping timeout: 258 seconds) 2021-05-19 00:16:36 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-19 00:20:11 --> abhixec (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) has joined #python 2021-05-19 00:20:22 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (Remote host closed the connection) 2021-05-19 00:21:09 <-- rvgzuuqp (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has quit (Ping timeout: 240 seconds) 2021-05-19 00:21:41 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-19 00:22:02 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-19 00:22:05 SnoopJ bunbunbunbunny, why do you want it to be a staticmethod? 2021-05-19 00:22:07 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:d07d:8e8d:4b1e:bc63) has joined #python 2021-05-19 00:22:18 bunbunbunbunny well it doesn't have to be 2021-05-19 00:22:22 bunbunbunbunny it can be a free function i guess 2021-05-19 00:22:32 bunbunbunbunny but can you set default properties on dataclasses to a free function / staticmethod call? 2021-05-19 00:23:14 <-- dez (uid92154@fedora/deSouza) has quit (Quit: Connection closed for inactivity) 2021-05-19 00:23:19 meejah bunbunbunbunny: attrs.org is probably going to be nicer 2021-05-19 00:23:54 bunbunbunbunny would rather not use 3rd party 2021-05-19 00:24:04 bunbunbunbunny i rolled my own class instead of dataclasses which works 2021-05-19 00:24:08 bunbunbunbunny so all g 2021-05-19 00:24:11 SnoopJ bunbunbunbunny, you can use the `default_factory` method of dataclasses.field https://bpaste.net/IUNA 2021-05-19 00:24:35 SnoopJ in attrs it would be easier to keep it all inside the class 2021-05-19 00:24:46 bunbunbunbunny oh cool 2021-05-19 00:24:48 bunbunbunbunny thanks 2021-05-19 00:26:41 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-19 00:27:26 --> rudrab (2d771c9a@45.119.28.154) has joined #python 2021-05-19 00:27:34 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Quit: Leaving) 2021-05-19 00:28:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 00:28:44 <-- p-i- (~Ohmu@2001:44c8:4407:c1:dc85:6045:b30a:b968) has quit (Ping timeout: 245 seconds) 2021-05-19 00:28:49 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Remote host closed the connection) 2021-05-19 00:29:06 --> pikaqiu99 (~jin@180.110.162.190) has joined #python 2021-05-19 00:29:12 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 265 seconds) 2021-05-19 00:29:19 --> hypc1 (~Thunderbi@175.164.26.80) has joined #python 2021-05-19 00:29:59 bunbunbunbunny sux that it's so weird 2021-05-19 00:30:04 bunbunbunbunny but it works thanks! 2021-05-19 00:30:11 <-- hypc (~Thunderbi@175.164.26.80) has quit (Ping timeout: 240 seconds) 2021-05-19 00:30:12 -- hypc1 is now known as hypc 2021-05-19 00:30:35 <-- adde9708 (uid139358@gateway/web/irccloud.com/x-ktpfgrxpiafscodx) has quit (Quit: Connection closed for inactivity) 2021-05-19 00:31:06 SnoopJ what don't you like about it? 2021-05-19 00:31:11 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 00:31:12 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 240 seconds) 2021-05-19 00:31:41 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 240 seconds) 2021-05-19 00:31:49 <-- LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has quit (Ping timeout: 252 seconds) 2021-05-19 00:34:25 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-19 00:34:45 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit 2021-05-19 00:35:17 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-19 00:35:47 <-- yuesbeez (uid458354@gateway/web/irccloud.com/x-dsfhrilwfoamgzqo) has quit (Quit: Connection closed for inactivity) 2021-05-19 00:37:25 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-19 00:37:54 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-19 00:38:25 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-19 00:38:52 <-- traptrip (trip@brigaid.xs4all.nl) has quit (Remote host closed the connection) 2021-05-19 00:38:56 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-19 00:39:24 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Quit: Gone to sleep...) 2021-05-19 00:40:53 --> NomadJim_ (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-19 00:40:58 --> traptrip (~trip@80.100.159.160) has joined #python 2021-05-19 00:42:03 Evidlo I'm trying to use asyncssh on Windows, but I'm getting a rather vague error "The specified network name is no longer available", being raised in asyncio: https://github.com/ronf/asyncssh/issues/368 2021-05-19 00:42:44 <-- bunbunbunbunny (~Christoph@unaffiliated/vlvx) has quit (Ping timeout: 265 seconds) 2021-05-19 00:42:48 Evidlo can I maybe modify asyncio to actually print what 'network name' its talking about? it's being raised here: https://github.com/python/cpython/blob/main/Lib/asyncio/windows_events.py#L455-L463 2021-05-19 00:42:57 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 00:43:33 --> chard7a (~chard@114.247.25.166) has joined #python 2021-05-19 00:44:40 <-- NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Ping timeout: 265 seconds) 2021-05-19 00:44:42 <-- pikaqiu99 (~jin@180.110.162.190) has quit (Quit: Leaving) 2021-05-19 00:48:08 <-- hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has quit (Quit: WeeChat 3.1) 2021-05-19 00:48:31 <-- isomari (~isomari@105.112.138.38) has quit (Quit: WeeChat 2.8) 2021-05-19 00:48:54 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-19 00:48:55 <-- Psyb3rN4ut (~psybernau@147.161.13.243) has quit (Read error: Connection reset by peer) 2021-05-19 00:50:01 mihael I'm trying to query an API which returns a JSON object but is using single quotes instead of double quotes. How do I convert it to valid JSON before writing it to a file? 2021-05-19 00:50:45 <-- rudrab (2d771c9a@45.119.28.154) has quit (Quit: Connection closed) 2021-05-19 00:52:02 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-19 00:52:14 --> will1 (willbuyvmn@gateway/shell/matrix.org/x-dvpvpnmgdtyadiik) has joined #python 2021-05-19 00:53:22 <-- korg815 (~korg815@unaffiliated/korg815) has quit (Quit: WeeChat 2.8) 2021-05-19 00:53:44 --> stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-19 00:54:58 -- will1 is now known as will1[m] 2021-05-19 00:55:38 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Quit: aldente) 2021-05-19 00:56:14 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 245 seconds) 2021-05-19 00:56:32 --> stranac (~stranac@195.29.239.126) has joined #python 2021-05-19 00:57:07 <-- NomadJim_ (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Ping timeout: 252 seconds) 2021-05-19 00:57:15 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-19 00:57:48 <-- DaPinkOne (~dap@c-73-59-5-73.hsd1.wa.comcast.net) has quit (Quit: ZNC - http://znc.in) 2021-05-19 00:57:48 <-- ThatOtherGuy (~TOG@unaffiliated/patches) has quit (Quit: ZNC - http://znc.in) 2021-05-19 00:58:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 00:59:01 <-- bilb_ono (~alexmarsh@ip68-6-92-11.sb.sd.cox.net) has quit (Quit: bilb_ono) 2021-05-19 00:59:09 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:d07d:8e8d:4b1e:bc63) has quit (Ping timeout: 245 seconds) 2021-05-19 01:01:43 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 01:04:39 phy1729 complain to the API owner to fix their stuff 2021-05-19 01:05:42 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-05-19 01:05:56 <-- metabsd (uid209675@gateway/web/irccloud.com/x-igswfflmyvxgfzer) has quit (Quit: Connection closed for inactivity) 2021-05-19 01:06:46 Wulf mihael: try ast.literal_eval 2021-05-19 01:08:36 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 01:09:43 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-19 01:10:18 --> d_olex (~d_olex@159.65.12.243) has joined #python 2021-05-19 01:11:22 --> h4rd3n3D1 (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-19 01:11:26 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-19 01:11:41 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 240 seconds) 2021-05-19 01:11:49 --> NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-19 01:13:57 <-- h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-19 01:14:11 <-- azed (~azed@196.236.21.181) has quit (Ping timeout: 240 seconds) 2021-05-19 01:14:16 <-- kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has quit (Quit: leaving) 2021-05-19 01:14:43 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-19 01:14:45 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-19 01:15:09 --> NomadJim_ (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-19 01:15:23 --> Psyb3rN4ut (~psybernau@147.161.12.27) has joined #python 2021-05-19 01:16:50 --> hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has joined #python 2021-05-19 01:18:19 <-- NomadJim (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Ping timeout: 245 seconds) 2021-05-19 01:18:29 --> dvx (~dvx@185.63.97.64) has joined #python 2021-05-19 01:21:50 <-- Y3Klo (~Thunderbi@2806:10b7:3:50a2:feaa:14ff:fe93:db3c) has quit (Quit: Y3Klo) 2021-05-19 01:22:19 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-19 01:22:45 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-19 01:23:49 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 265 seconds) 2021-05-19 01:26:26 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 01:26:26 <-- andreas303 (~andreas@gateway/tor-sasl/andreas303) has quit (Remote host closed the connection) 2021-05-19 01:26:37 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 01:27:09 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 01:27:12 <-- fb_ (~freebench@92.253.251.226) has quit (Ping timeout: 240 seconds) 2021-05-19 01:27:22 --> andreas303 (~andreas@gateway/tor-sasl/andreas303) has joined #python 2021-05-19 01:27:56 --> wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has joined #python 2021-05-19 01:28:02 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 01:28:08 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-19 01:28:17 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-19 01:30:58 --> AlanMD (~alan@193.105.140.131) has joined #python 2021-05-19 01:31:11 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-19 01:31:36 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-19 01:31:52 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-19 01:32:11 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 01:32:21 <-- andreas303 (~andreas@gateway/tor-sasl/andreas303) has quit (Ping timeout: 240 seconds) 2021-05-19 01:33:11 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 01:33:41 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-19 01:34:39 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 01:34:42 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 01:35:42 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-19 01:36:27 --> ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has joined #python 2021-05-19 01:37:47 --> nickodd_ (~nickodd_@unaffiliated/nickodd) has joined #python 2021-05-19 01:38:12 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-19 01:38:56 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-19 01:39:26 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-19 01:40:29 <-- NomadJim_ (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Read error: Connection reset by peer) 2021-05-19 01:42:16 --> andreas303 (~andreas@gateway/tor-sasl/andreas303) has joined #python 2021-05-19 01:42:29 <-- FLHerne (~flh@kde/developer/flherne) has quit (Quit: There's a real world out here!) 2021-05-19 01:43:38 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 01:45:07 <-- parabolize (~paraboliz@98.43.173.221) has quit (Quit: leaving) 2021-05-19 01:46:11 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-19 01:48:01 --> frrs (uid130725@gateway/web/irccloud.com/x-ctxspfxosyjjputr) has joined #python 2021-05-19 01:49:10 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-19 01:51:32 <-- SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-19 01:54:22 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-19 01:55:07 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-19 01:56:03 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-19 01:56:14 <-- eicar (~eicar@c-73-59-52-210.hsd1.wa.comcast.net) has quit (Ping timeout: 268 seconds) 2021-05-19 01:56:43 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-19 01:57:12 --> hobbanero (~hobbanero@38.135.235.14) has joined #python 2021-05-19 01:57:12 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 01:57:40 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-19 01:57:54 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 245 seconds) 2021-05-19 01:58:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 01:58:19 <-- al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 258 seconds) 2021-05-19 01:59:01 --> ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has joined #python 2021-05-19 01:59:15 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-19 01:59:50 --> Jerrynicki (~niklas@p200300f57702d20053984087459ace30.dip0.t-ipconnect.de) has joined #python 2021-05-19 01:59:51 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 258 seconds) 2021-05-19 02:00:04 <-- drymer (~drymer@unaffiliated/drymer) has quit (Read error: Connection reset by peer) 2021-05-19 02:00:33 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-19 02:00:47 --> Suwacc (~Mija@45.248.77.100) has joined #python 2021-05-19 02:00:48 --> eicar (~eicar@c-73-59-52-210.hsd1.wa.comcast.net) has joined #python 2021-05-19 02:01:00 --> ralderson (~textual@37.19.212.8) has joined #python 2021-05-19 02:01:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 02:02:14 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-19 02:02:50 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-19 02:03:38 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-19 02:04:00 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 02:05:24 AhmedAmerican is there more Pythonic way to achieve the same result ? https://bpa.st/BOVQ 2021-05-19 02:05:50 <-- ralderson (~textual@37.19.212.8) has quit (Ping timeout: 252 seconds) 2021-05-19 02:07:25 --> Jackneill (~Jackneill@unaffiliated/jackneill) has joined #python 2021-05-19 02:07:52 --> ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has joined #python 2021-05-19 02:07:53 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-19 02:08:54 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-19 02:12:16 <-- JanC (~janc@lugwv/member/JanC) has quit (Remote host closed the connection) 2021-05-19 02:12:22 stranac AhmedAmerican: data.replace("\n", "\r\n") 2021-05-19 02:12:40 --> JanC (~janc@lugwv/member/JanC) has joined #python 2021-05-19 02:14:39 <-- powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Remote host closed the connection) 2021-05-19 02:15:08 --> powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-19 02:16:28 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 252 seconds) 2021-05-19 02:17:11 --> philh (~philh@46.33.72.18) has joined #python 2021-05-19 02:17:30 <-- ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has quit (Quit: WeeChat 3.1) 2021-05-19 02:17:34 <-- seednode (~seednode@64-131-31-104.usfamily.net) has quit (Quit: Nihil supernum.) 2021-05-19 02:17:39 --> ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has joined #python 2021-05-19 02:17:43 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-19 02:18:10 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-19 02:18:14 AhmedAmerican @stranac thank you. 2021-05-19 02:18:32 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-19 02:18:43 --> seednode (~seednode@64-131-31-104.usfamily.net) has joined #python 2021-05-19 02:19:29 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 02:20:14 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Ping timeout: 246 seconds) 2021-05-19 02:21:36 --> plutoniix (~q@ppp-58-8-181-100.revip2.asianet.co.th) has joined #python 2021-05-19 02:21:49 <-- powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Ping timeout: 250 seconds) 2021-05-19 02:22:41 --> carl-- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-19 02:23:01 t2mkn can i write this in one line any ways? 2021-05-19 02:23:04 t2mkn q = self.get_query_argument('q', '').split(',') 2021-05-19 02:23:05 t2mkn for i in range(len(q)): 2021-05-19 02:23:05 t2mkn q[i] = q[i].strip() 2021-05-19 02:23:46 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 02:24:16 <-- Betal (~Betal@unaffiliated/betal) has quit (Quit: WeeChat 3.1) 2021-05-19 02:24:36 vlt t2mkn: A list comprehension. And no nood for "i" and "range(len) stuff ;-) 2021-05-19 02:24:41 vlt *need 2021-05-19 02:25:11 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 02:25:17 t2mkn didn't get that. i don't know python much. can you give example pelase. 2021-05-19 02:25:46 <-- wilk (~wilkowy@adnw73.neoplus.adsl.tpnet.pl) has quit (Ping timeout: 240 seconds) 2021-05-19 02:25:55 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 258 seconds) 2021-05-19 02:26:01 meejah q = [arg.strip() for arg in self.get_query_argument('q', '').split(',')] 2021-05-19 02:26:11 vlt t2mkn: q = [el.strip() for el in self.get_it()] 2021-05-19 02:26:45 t2mkn ooo wow thanks vlt meejah :) 2021-05-19 02:28:10 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 02:28:40 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-19 02:29:42 <-- stefanc_diff (~stefanc_d@cpc97950-croy24-2-0-cust78.19-2.cable.virginm.net) has quit (Ping timeout: 240 seconds) 2021-05-19 02:30:54 --> Peyam (53faecec@c83-250-236-236.bredband.tele2.se) has joined #python 2021-05-19 02:31:13 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 02:32:40 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-19 02:33:09 --> TheRAt (~TheRAt@110.77.217.206) has joined #python 2021-05-19 02:33:57 <-- ezra-s (~ezra-s@apache/committer/dferradal) has left #python ("alt+4") 2021-05-19 02:34:23 <-- AquaL1te (~AquaL1te@unaffiliated/aqual1te) has quit (Quit: leaving) 2021-05-19 02:34:26 <-- TheRAt_ (~TheRAt@110.77.217.26) has quit (Ping timeout: 252 seconds) 2021-05-19 02:36:04 --> bazul (bazul@38.189.189.46.rev.vodafone.pt) has joined #python 2021-05-19 02:36:39 <-- ThreadRipper3970 (~ThreadRip@2600:1700:aac0:1170:849a:a4ca:4575:374a) has quit (Ping timeout: 258 seconds) 2021-05-19 02:36:45 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Quit: Left...) 2021-05-19 02:37:53 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-19 02:38:47 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-19 02:38:58 --> RoHack (~z@77.83.248.9) has joined #python 2021-05-19 02:39:20 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has quit (Ping timeout: 258 seconds) 2021-05-19 02:39:46 --> AquaL1te (~AquaL1te@unaffiliated/aqual1te) has joined #python 2021-05-19 02:41:02 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Client Quit) 2021-05-19 02:41:42 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-19 02:42:30 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-19 02:43:56 --> SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has joined #python 2021-05-19 02:44:26 <-- seds (~seds@212.47.230.255) has quit (Read error: Connection reset by peer) 2021-05-19 02:44:41 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 240 seconds) 2021-05-19 02:46:00 --> seds (~seds@irc.seds.nl) has joined #python 2021-05-19 02:48:16 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-19 02:48:21 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-19 02:49:07 <-- Jerrynicki (~niklas@p200300f57702d20053984087459ace30.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-19 02:52:05 <-- rigid (~rigid@unaffiliated/rigid) has quit (Ping timeout: 246 seconds) 2021-05-19 02:52:34 --> BakaKuna (~Thunderbi@86-89-65-191.fixed.kpn.net) has joined #python 2021-05-19 02:53:00 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-19 02:54:57 --> luischi (~luischi@80.30.206.41) has joined #python 2021-05-19 02:55:35 --> DaPinkOne (~dap@c-76-104-144-218.hsd1.wa.comcast.net) has joined #python 2021-05-19 02:57:03 --> ThatOtherGuy (~TOG@unaffiliated/patches) has joined #python 2021-05-19 02:57:58 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 03:00:07 <-- ente_ (~ente_@p549968a8.dip0.t-ipconnect.de) has quit (Quit: WeeChat 3.1) 2021-05-19 03:00:15 <-- bigRoo (~user@131.236.54.244) has quit (Remote host closed the connection) 2021-05-19 03:01:43 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 03:02:03 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-19 03:02:06 <-- DaPinkOne (~dap@c-76-104-144-218.hsd1.wa.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 03:02:26 --> chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has joined #python 2021-05-19 03:03:24 <-- ThatOtherGuy (~TOG@unaffiliated/patches) has quit (Ping timeout: 252 seconds) 2021-05-19 03:05:27 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-19 03:05:47 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 258 seconds) 2021-05-19 03:05:56 <-- carl-- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Quit: Leaving) 2021-05-19 03:06:09 <-- Petrushka (~devcon@deathstar.devconproductions.org) has quit (Remote host closed the connection) 2021-05-19 03:06:26 <-- baltazar (~baltazar@85-238-69-218.pool.digikabel.hu) has quit (Ping timeout: 240 seconds) 2021-05-19 03:06:27 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Quit: tourdownunder) 2021-05-19 03:07:23 <-- tsaka__ (~torstein@178-147-206-209.haap.dm.cosmote.net) has quit (Remote host closed the connection) 2021-05-19 03:08:00 Sunny93 Can I force a user to pass arguments when creating a new instance of a class ? 2021-05-19 03:08:17 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-19 03:08:27 --> baltazar (~baltazar@178-164-165-143.pool.digikabel.hu) has joined #python 2021-05-19 03:08:53 Sunny93 __init__(self, must_pass_this_argument) 2021-05-19 03:09:38 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 252 seconds) 2021-05-19 03:10:41 KirkMcDonald Sunny93: Sure, exactly like that. 2021-05-19 03:13:03 --> DaPinkOne (~dap@c-76-104-144-218.hsd1.wa.comcast.net) has joined #python 2021-05-19 03:14:03 --> ThatOtherGuy (~TOG@unaffiliated/patches) has joined #python 2021-05-19 03:16:40 --> Ergo (~ergo@91.238.59.144) has joined #python 2021-05-19 03:18:28 --> LKoen (~LKoen@2a01cb0407597a00bd08a6952222b3db.ipv6.abo.wanadoo.fr) has joined #python 2021-05-19 03:18:31 --> apoko_ (~apokopto@119.139.194.70) has joined #python 2021-05-19 03:21:21 Sunny93 KirkMcDonald but I can initialize an instance without passing any arguments. 2021-05-19 03:21:46 <-- apokopto (~apokopto@119.139.194.153) has quit (Ping timeout: 252 seconds) 2021-05-19 03:21:57 Sunny93 ah I see 2021-05-19 03:22:58 Sunny93 I made a syntax mistake and the amentioned exmaple works . Thanks 2021-05-19 03:24:16 <-- ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has quit (Quit: Leaving) 2021-05-19 03:24:32 --> ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has joined #python 2021-05-19 03:26:19 --> Jerrynicki (~niklas@p200300f57702d20068d9f3b55653f32d.dip0.t-ipconnect.de) has joined #python 2021-05-19 03:26:32 --> Ashburry (~Ashburry@184.69.89.188) has joined #python 2021-05-19 03:27:00 Ashburry I am using Trio how do I get the IP of an connected socket? 2021-05-19 03:27:18 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 03:27:31 --> doev (549d75e7@p549d75e7.dip0.t-ipconnect.de) has joined #python 2021-05-19 03:28:16 Wulf Ashburry: there should be something like getsockname or getpeername 2021-05-19 03:28:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 03:29:43 --> Dap (~dap@c-76-104-144-218.hsd1.wa.comcast.net) has joined #python 2021-05-19 03:29:47 <-- tm007 (uid287041@gateway/web/irccloud.com/x-bxamrodgaitltewh) has quit (Quit: Connection closed for inactivity) 2021-05-19 03:29:58 <-- DaPinkOne (~dap@c-76-104-144-218.hsd1.wa.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-19 03:29:58 -- Dap is now known as DaPinkOne 2021-05-19 03:30:10 --> merijn (~merijn@83-160-49-249.ip.xs4all.nl) has joined #python 2021-05-19 03:30:26 --> xrogaan (~xrogaan@unaffiliated/xrogaan) has joined #python 2021-05-19 03:30:33 <-- ThatOtherGuy (~TOG@unaffiliated/patches) has quit (Ping timeout: 240 seconds) 2021-05-19 03:30:43 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-19 03:31:11 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:a52c:b530:6c8a:fd41) has quit (Ping timeout: 260 seconds) 2021-05-19 03:31:42 --> ThatOtherGuy (~TOG@unaffiliated/patches) has joined #python 2021-05-19 03:31:45 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 03:32:13 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 252 seconds) 2021-05-19 03:32:26 --> sanketdg (2bef5066@gateway/web/cgi-irc/kiwiirc.com/ip.43.239.80.102) has joined #python 2021-05-19 03:32:53 <-- ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has quit (Ping timeout: 250 seconds) 2021-05-19 03:33:40 --> GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has joined #python 2021-05-19 03:33:46 <-- xrogaan (~xrogaan@unaffiliated/xrogaan) has quit (Client Quit) 2021-05-19 03:34:14 sanketdg What is a pythonic way to do not print the preceding space in a string when a value is not there? For example using f-strings, " {value}" I do not want the preceding space to be present here when value = "" 2021-05-19 03:35:12 KirkMcDonald sanketdg: Include the space in the value, or have the space be a separate value. 2021-05-19 03:36:30 <-- gossie (~gossie@2a10:3781:328:1:e1d:50cc:c868:ca94) has quit (Ping timeout: 246 seconds) 2021-05-19 03:37:21 <-- mihael (~marz@49.145.73.121) has quit (Ping timeout: 260 seconds) 2021-05-19 03:37:59 <-- noresult (~noresult@unaffiliated/noresult) has quit (Ping timeout: 268 seconds) 2021-05-19 03:38:01 --> stefanc_diff (~stefanc_d@cpc97950-croy24-2-0-cust78.19-2.cable.virginm.net) has joined #python 2021-05-19 03:38:17 sanketdg KirkMcDonald: seems like that is the sensible way here, thanks. 2021-05-19 03:39:03 KirkMcDonald sanketdg: You can also play tricks like: f"{' ' if value else ''}{value}" 2021-05-19 03:40:03 sanketdg yeah I was also thinking ' ' * bool(value) but there are multiple values so this becomes noisy 2021-05-19 03:40:51 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 260 seconds) 2021-05-19 03:40:53 <-- a6a45081-2b83 (~aditya@122.163.149.247) has quit (Quit: Konversation terminated!) 2021-05-19 03:42:24 --> purplex88 (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-19 03:42:33 --> xrogaan (~xrogaan@unaffiliated/xrogaan) has joined #python 2021-05-19 03:42:58 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 258 seconds) 2021-05-19 03:43:41 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:989b:41dd:d1e6:c3a3) has joined #python 2021-05-19 03:45:43 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-19 03:45:54 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-19 03:46:21 <-- Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has quit (Client Quit) 2021-05-19 03:47:12 Ashburry I am using Trio how do I get the IP of an connected socket? 2021-05-19 03:48:15 <-- moto (~moto@ipbcc2f4f0.dynamic.kabel-deutschland.de) has quit (Read error: Connection reset by peer) 2021-05-19 03:48:28 --> moto (~moto@ipbcc2f4f0.dynamic.kabel-deutschland.de) has joined #python 2021-05-19 03:49:25 --> v01d4lph4 (~v01d4lph4@122.176.173.34) has joined #python 2021-05-19 03:49:52 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 258 seconds) 2021-05-19 03:49:53 Wulf Ashburry: there should be something like getsockname or getpeername 2021-05-19 03:50:25 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-19 03:52:36 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-19 03:53:31 --> eblip (~eblip@unaffiliated/eblip) has joined #python 2021-05-19 03:53:45 --> Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has joined #python 2021-05-19 03:54:19 <-- Swant (swant@freenode/staff/swant) has quit (Killed (grumble (My fellow staff so-called 'friends' are about to hand over account data to a non-staff member. If you care about your data, drop your NickServ account NOW before that happens.))) 2021-05-19 03:54:19 <-- tomaw (tom@freenode/staff/tomaw) has quit (Killed (grumble (My fellow staff so-called 'friends' are about to hand over account data to a non-staff member. If you care about your data, drop your NickServ account NOW before that happens.))) 2021-05-19 03:54:20 <-- Freso (sid7914@freenode/staff/musicbrainz.user.freso) has quit (Killed (grumble (My fellow staff so-called 'friends' are about to hand over account data to a non-staff member. If you care about your data, drop your NickServ account NOW before that happens.))) 2021-05-19 03:54:20 <-- mniip (mniip@freenode/staff/mniip) has quit (Killed (grumble (My fellow staff so-called 'friends' are about to hand over account data to a non-staff member. If you care about your data, drop your NickServ account NOW before that happens.))) 2021-05-19 03:54:21 <-- kline (~freedom0@freenode/staff/enucs.kline) has quit (Killed (grumble (My fellow staff so-called 'friends' are about to hand over account data to a non-staff member. If you care about your data, drop your NickServ account NOW before that happens.))) 2021-05-19 03:54:21 <-- Stx (~stx@freenode/staff/stx) has quit (Killed (grumble (My fellow staff so-called 'friends' are about to hand over account data to a non-staff member. If you care about your data, drop your NickServ account NOW before that happens.))) 2021-05-19 03:54:22 <-- jess (jess@freenode/staff/jess) has quit (Killed (grumble (My fellow staff so-called 'friends' are about to hand over account data to a non-staff member. If you care about your data, drop your NickServ account NOW before that happens.))) 2021-05-19 03:54:33 <-- Jerrynicki (~niklas@p200300f57702d20068d9f3b55653f32d.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-19 03:54:36 --> mniip (mniip@freenode/staff/mniip) has joined #python 2021-05-19 03:54:46 <-- eb0t (~eblip@unaffiliated/eblip) has quit (Ping timeout: 240 seconds) 2021-05-19 03:54:48 <-- grumble (~Thunderbi@freenode/staff/grumble) has quit (Killed (grumble (My fellow staff so-called 'friends' are about to hand over account data to a non-staff member. I'm leaving freenode forever and I recommend you drop your NickServ account to keep your data safe.))) 2021-05-19 03:54:54 --> tomaw (tom@freenode/staff/tomaw) has joined #python 2021-05-19 03:54:58 --> kline (~freedom0@freenode/staff/enucs.kline) has joined #python 2021-05-19 03:55:18 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 03:56:06 --> mcsontos (~mcsontos@95.82.134.89) has joined #python 2021-05-19 03:56:52 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Ping timeout: 240 seconds) 2021-05-19 03:58:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 03:59:19 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 250 seconds) 2021-05-19 03:59:57 --> gossie (~gossie@2a10:3781:328:1:e1d:50cc:c868:ca94) has joined #python 2021-05-19 04:01:15 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 04:02:05 --> herbas (~herbas@88.118.170.138) has joined #python 2021-05-19 04:03:02 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-19 04:03:23 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-19 04:04:04 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-19 04:04:22 --> FLHerne (~flh@kde/developer/flherne) has joined #python 2021-05-19 04:04:25 Ashburry hello, anyone able to help with a simple trio request? How do you get the ip address from an open tcp connection? 2021-05-19 04:05:37 --> swj (~swj@2409:8928:5c:17d:ac9a:15ba:e549:2d99) has joined #python 2021-05-19 04:09:09 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Ping timeout: 240 seconds) 2021-05-19 04:10:30 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-19 04:10:36 --> shokohsc68 (~shokohsc@161.88.195.77.rev.sfr.net) has joined #python 2021-05-19 04:12:59 <-- plutoniix (~q@ppp-58-8-181-100.revip2.asianet.co.th) has quit (Ping timeout: 265 seconds) 2021-05-19 04:13:05 <-- lmt (uid107697@gateway/web/irccloud.com/x-diypnaubudprjfjx) has quit (Quit: Connection closed for inactivity) 2021-05-19 04:13:39 <-- P1ckleRick (~X@2a00:23a8:98b:500:7c96:7936:dd60:75c6) has quit (Ping timeout: 260 seconds) 2021-05-19 04:13:58 Wulf Ashburry: PING 2021-05-19 04:14:22 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-19 04:14:32 --> Hunterkll (~hunterkll@2001:470:8b06:400:215:5dff:fefb:804) has joined #python 2021-05-19 04:14:55 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-19 04:14:57 supakeen :D 2021-05-19 04:15:52 supakeen But no, Trio does not offer a high-level API around those. 2021-05-19 04:15:53 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-19 04:16:44 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Quit: Leaving) 2021-05-19 04:16:49 --> fflori (~fflori@mob-194-230-155-151.cgn.sunrise.net) has joined #python 2021-05-19 04:17:12 <-- karab44 (~karab44@unaffiliated/karab44) has quit (Remote host closed the connection) 2021-05-19 04:17:24 --> raxor2k (~raxor2k@78.158.244.220) has joined #python 2021-05-19 04:17:25 <-- raxor2k (~raxor2k@78.158.244.220) has left #python 2021-05-19 04:17:27 Wulf sock.socket.getsockname() works just fine for me. sock is a SocketStream. 2021-05-19 04:17:31 --> plutoniix (~q@ppp-58-8-181-100.revip2.asianet.co.th) has joined #python 2021-05-19 04:17:38 --> ^7heo (~theo@37-97-151-99.colo.transip.net) has joined #python 2021-05-19 04:18:15 <-- ^7heo (~theo@37-97-151-99.colo.transip.net) has quit (Client Quit) 2021-05-19 04:20:09 --> fb_ (~freebench@92.253.251.226) has joined #python 2021-05-19 04:20:50 supakeen Sure, the low-level things still work. 2021-05-19 04:20:53 supakeen https://github.com/python-trio/trio/issues/280 2021-05-19 04:20:55 supakeen See there. 2021-05-19 04:21:13 --> krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has joined #python 2021-05-19 04:21:22 --> ^7heo (~theo@37-97-151-99.colo.transip.net) has joined #python 2021-05-19 04:21:38 supakeen For some of the possible problems :) 2021-05-19 04:23:38 --> kosh (~kosh@p200300d08f0e8800b59ea63f9d3568e3.dip0.t-ipconnect.de) has joined #python 2021-05-19 04:23:42 <-- ^7heo (~theo@37-97-151-99.colo.transip.net) has quit (Remote host closed the connection) 2021-05-19 04:25:28 --> veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined #python 2021-05-19 04:25:49 --> swensson (9eaefc22@h-158-174-252-34.NA.cust.bahnhof.se) has joined #python 2021-05-19 04:26:00 --> aslicedbanjo (~aslicedba@host31-48-146-98.range31-48.btcentralplus.com) has joined #python 2021-05-19 04:26:40 <-- swj (~swj@2409:8928:5c:17d:ac9a:15ba:e549:2d99) has quit (Ping timeout: 258 seconds) 2021-05-19 04:27:09 --> ^7heo (~theo@37-97-151-99.colo.transip.net) has joined #python 2021-05-19 04:27:17 -- ^7heo is now known as crashoverride 2021-05-19 04:27:41 --> m1cl (~m1cl@2a02:8109:b6c0:1b94::980e) has joined #python 2021-05-19 04:28:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 04:28:27 <-- herbas (~herbas@88.118.170.138) has quit (Quit: herbas) 2021-05-19 04:28:58 --> varaindemian (~oct@86.124.78.162) has joined #python 2021-05-19 04:29:14 varaindemian how can I append text to a certain location in a file? 2021-05-19 04:29:20 <-- EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has quit (Remote host closed the connection) 2021-05-19 04:29:31 --> mcope (~mcope@88.98.90.199) has joined #python 2021-05-19 04:29:37 varaindemian and keep the format of the text as it was 2021-05-19 04:30:12 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-19 04:30:18 --> EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has joined #python 2021-05-19 04:31:39 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 04:31:39 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 04:31:40 <-- crashoverride (~theo@37-97-151-99.colo.transip.net) has left #python 2021-05-19 04:31:50 kosh easiest way is to read the whole file into memory, insert the part you need and write it back 2021-05-19 04:32:04 varaindemian I know I have testfile.write("Line Four\n") 2021-05-19 04:32:14 varaindemian but can I somehow specify the location? 2021-05-19 04:32:36 kosh slightly better but more complicated is read into memory everything after that location in the file change the data and then append it again 2021-05-19 04:32:40 Wulf varaindemian: do you want to insert data or replace data? If replace, is the new data the same byte count ass the replaced data? 2021-05-19 04:32:41 supakeen No, there is no good way to insert text in the middle of a file. 2021-05-19 04:32:46 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 04:32:52 supakeen You can overwrite some data in the middle of the file. 2021-05-19 04:32:54 kosh it is not easy to do, files are not build to have data inserted in them 2021-05-19 04:32:59 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined #python 2021-05-19 04:33:13 supakeen Or you can write the rest of the file with your new data at a certain offset if you want to 'append'. 2021-05-19 04:33:26 <-- m1cl (~m1cl@2a02:8109:b6c0:1b94::980e) has quit (Quit: WeeChat 3.1) 2021-05-19 04:33:53 varaindemian Wulf: just add date to some placeholders/empty spaces 2021-05-19 04:34:05 varaindemian just add data* 2021-05-19 04:34:39 Wulf varaindemian: that doesn't answer my question. Put another way: Will the size of the file change? 2021-05-19 04:35:05 --> ciccio2000 (~bscuser@84.88.188.114) has joined #python 2021-05-19 04:35:17 Wulf varaindemian: You can overwrite bytes in a file, but you can't move data around. 2021-05-19 04:36:17 <-- ciccio2000 (~bscuser@84.88.188.114) has quit (Client Quit) 2021-05-19 04:36:21 varaindemian yes, the size of the file will change -> file will become bigger 2021-05-19 04:36:25 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-19 04:36:33 --> swj (~swj@2409:8928:5c:17d:ac9a:15ba:e549:2d99) has joined #python 2021-05-19 04:36:50 <-- Naan (~naan@unaffiliated/naan) has quit (Read error: Connection reset by peer) 2021-05-19 04:37:01 --> securethemews (~securethe@2a00:23c4:1e98:8f00::4) has joined #python 2021-05-19 04:37:12 Wulf varaindemian: then you'll have to create a new file and copy the data from the old file. 2021-05-19 04:38:30 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-19 04:39:44 <-- fbiagent_ (~fbiagent@unaffiliated/fbiagent) has quit (Remote host closed the connection) 2021-05-19 04:40:04 --> fbiagent_ (~fbiagent@unaffiliated/fbiagent) has joined #python 2021-05-19 04:40:29 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-19 04:41:12 varaindemian how? 2021-05-19 04:41:20 varaindemian Wulf: ^ 2021-05-19 04:42:41 <-- doc|home (~doc@gentoo/contributor/doc-007) has quit (Ping timeout: 240 seconds) 2021-05-19 04:42:44 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-19 04:44:51 --> doc|home (~doc@gentoo/contributor/doc-007) has joined #python 2021-05-19 04:44:53 <-- sanketdg (2bef5066@gateway/web/cgi-irc/kiwiirc.com/ip.43.239.80.102) has quit (Ping timeout: 265 seconds) 2021-05-19 04:45:20 <-- luischi (~luischi@80.30.206.41) has quit (Ping timeout: 252 seconds) 2021-05-19 04:45:59 Wulf varaindemian: what part is unclear? 2021-05-19 04:46:38 Wulf varaindemian: opening a new file for writing? with open("new", "wb") as new 2021-05-19 04:46:46 --> amahl (~amahl@dxv5skyyrvlyxk4hv8xty-3.rev.dnainternet.fi) has joined #python 2021-05-19 04:46:49 <-- plutoniix (~q@ppp-58-8-181-100.revip2.asianet.co.th) has quit (Ping timeout: 265 seconds) 2021-05-19 04:46:58 Wulf varaindemian: or copying data? data = old.read(1234); new.write(data) 2021-05-19 04:50:17 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-19 04:50:39 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-19 04:50:40 -- Hash is now known as EnchanterTim 2021-05-19 04:51:36 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-19 04:52:16 --> darksun (~darksun@unaffiliated/darksun) has joined #python 2021-05-19 04:52:18 --> jess (jess@freenode/staff/jess) has joined #python 2021-05-19 04:52:19 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-19 04:54:16 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-19 04:54:42 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-19 04:54:47 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 250 seconds) 2021-05-19 04:55:04 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-19 04:55:18 --> jusss (~user@unaffiliated/jusss) has joined #python 2021-05-19 04:55:39 jusss python -m http.server, how to handle ConnectionResetError? 2021-05-19 04:56:06 jusss like client cancel the downloading file, this exceptionw will raise, how to solve it? 2021-05-19 04:56:18 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-19 04:56:21 jusss it cause the http server crash\ 2021-05-19 04:56:46 supakeen The built-in HTTP server is not meant to be very resilient or production ready. 2021-05-19 04:56:50 jusss there's no much info on the web I can find, please 2021-05-19 04:56:59 <-- Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has quit (Quit: WeeChat 3.1) 2021-05-19 04:56:59 --> ghost43_ (~daer@gateway/tor-sasl/daer) has joined #python 2021-05-19 04:57:07 --> Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has joined #python 2021-05-19 04:57:28 jusss supakeen: use other like django flask tornado? 2021-05-19 04:57:45 <-- ghost43 (~daer@gateway/tor-sasl/daer) has quit (Remote host closed the connection) 2021-05-19 04:57:51 supakeen If you want to serve some static files like http.server does you'd use nginx or another webserver to do that. 2021-05-19 04:57:57 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 04:58:05 supakeen Django, Flask, and Tornado are web frameworks for writing dynamic websites. 2021-05-19 04:58:35 Wulf I currently use nginx + hypercorn/quart-trio 2021-05-19 04:58:37 jusss supakeen: sorry, I'm on windows, nginx can't run on it 2021-05-19 04:58:41 <-- lowryder (~lowryder@2601:197:600:1210:da8:a2eb:912a:2e9f) has quit (Ping timeout: 250 seconds) 2021-05-19 04:59:03 supakeen I am not familiar with the Windows ecosystem, but I bet there's webservers that are built for production that can run on Windows. 2021-05-19 04:59:12 Wulf supakeen: like IIS? 2021-05-19 04:59:21 supakeen I don't know :) 2021-05-19 04:59:22 --> plutoniix (~q@ppp-58-8-181-100.revip2.asianet.co.th) has joined #python 2021-05-19 04:59:32 Wulf https://nginx.org/en/docs/windows.html 2021-05-19 05:00:07 jusss http.server or SimpleHttpServer don't provide handle for ConnectionResetError? 2021-05-19 05:00:22 Wulf dunno. 2021-05-19 05:00:24 jusss I just need a static website to test 2021-05-19 05:00:32 --> lowryder (~lowryder@73.61.8.63) has joined #python 2021-05-19 05:00:33 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-19 05:00:36 Wulf jusss: in my opinion, python should remove this from the stdlib. 2021-05-19 05:00:57 jusss Wulf: with what to instead? 2021-05-19 05:01:11 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 05:01:21 Wulf jusss: I use hypercorn+quart-trio 2021-05-19 05:01:22 --> pinkisntwell (~pinkisntw@46.251.99.222) has joined #python 2021-05-19 05:01:58 --> jlebrech (~jlebrech@109.100.136.123) has joined #python 2021-05-19 05:03:46 <-- pinkisntwell___ (~pinkisntw@46.251.99.222) has quit (Ping timeout: 240 seconds) 2021-05-19 05:03:59 --> mozgalom (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has joined #python 2021-05-19 05:04:00 <-- krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-19 05:04:45 --> krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has joined #python 2021-05-19 05:06:16 <-- mosasaur (~mosasaur@unaffiliated/mosasaur) has quit (Ping timeout: 252 seconds) 2021-05-19 05:08:29 -- EnchanterTim is now known as Hash 2021-05-19 05:09:19 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-19 05:09:19 --> Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has joined #python 2021-05-19 05:09:52 <-- jokerjosh113 (~jokerjosh@75-168-71-178.mpls.qwest.net) has quit (Ping timeout: 268 seconds) 2021-05-19 05:10:50 --> dob1_ (~dob1@unaffiliated/dob1) has joined #python 2021-05-19 05:11:16 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-19 05:12:41 <-- dob1 (~dob1@unaffiliated/dob1) has quit (Ping timeout: 240 seconds) 2021-05-19 05:13:07 --> jokerjosh113 (~jokerjosh@75-168-89-91.mpls.qwest.net) has joined #python 2021-05-19 05:13:38 <-- jokerjosh113 (~jokerjosh@75-168-89-91.mpls.qwest.net) has quit (Remote host closed the connection) 2021-05-19 05:13:43 --> c0mrade (~c0mrade@unaffiliated/c0mrade) has joined #python 2021-05-19 05:14:51 --> K-Lab (uid125001@gateway/web/irccloud.com/x-ngdcqxmokfuaikyo) has joined #python 2021-05-19 05:15:28 supakeen Seems a bit of overkill to serve some static files :) 2021-05-19 05:15:48 <-- tov (sid492081@gateway/web/irccloud.com/x-sqweldwbphxihrir) has quit (Read error: Connection reset by peer) 2021-05-19 05:15:59 <-- IronHEDGE (sid466269@gateway/web/irccloud.com/x-btqxiluixhdmrhcx) has quit (Read error: Connection reset by peer) 2021-05-19 05:16:09 <-- G0UQT (sid422535@gateway/web/irccloud.com/x-macttbyaraoebtal) has quit (Read error: Connection reset by peer) 2021-05-19 05:16:09 <-- AhmedAmerican (sid470527@gateway/web/irccloud.com/x-sogvptcpwhrmfmma) has quit (Read error: Connection reset by peer) 2021-05-19 05:16:14 <-- tuxd00d (sid401305@gateway/web/irccloud.com/x-xjwvgpdxqcbzrivq) has quit (Ping timeout: 245 seconds) 2021-05-19 05:16:31 <-- Tips|Cloud (sid62231@gateway/web/irccloud.com/x-ckgekysxvqkfcfsb) has quit (Ping timeout: 276 seconds) 2021-05-19 05:16:44 <-- seongsoocho (sid220192@gateway/web/irccloud.com/x-sfhzdhrcvywpyias) has quit (Read error: Connection reset by peer) 2021-05-19 05:17:21 <-- noahmg123 (sid89117@gateway/web/irccloud.com/x-ajofklxwyjbhcqom) has quit (Read error: Connection reset by peer) 2021-05-19 05:17:22 --> pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-19 05:17:46 <-- leduyquang753 (~leduyquan@27.73.107.184) has quit (Quit: Lost terminal) 2021-05-19 05:17:51 <-- debnet (sid330295@gateway/web/irccloud.com/x-pekevdxspwnhsufs) has quit (Read error: Connection reset by peer) 2021-05-19 05:18:31 <-- VIqbang (sid24380@gateway/web/irccloud.com/x-yzbixanhychfukrh) has quit (Ping timeout: 260 seconds) 2021-05-19 05:18:39 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Quit: Leaving) 2021-05-19 05:19:31 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Quit: Ping timeout: 252 seconds) 2021-05-19 05:19:34 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Ping timeout: 258 seconds) 2021-05-19 05:20:00 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-19 05:20:49 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 05:21:20 --> G0UQT (sid422535@gateway/web/irccloud.com/x-tksetdzcweyqgfyn) has joined #python 2021-05-19 05:21:41 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-19 05:21:43 <-- tonythomas (uid25971@wikimedia/-01tonythomas) has quit (Ping timeout: 276 seconds) 2021-05-19 05:21:45 --> seongsoocho (sid220192@gateway/web/irccloud.com/x-skznpyqmcqejyfwe) has joined #python 2021-05-19 05:21:59 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 05:23:43 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-19 05:24:13 --> contagious_meow (~contagiou@154.123.50.58) has joined #python 2021-05-19 05:25:03 Sunny93 What is the scope of a function created by `exec()` ? 2021-05-19 05:25:14 --> d3vyL (d3vyL@95.236.33.218) has joined #python 2021-05-19 05:25:15 --> leduyquang753 (~leduyquan@27.73.107.184) has joined #python 2021-05-19 05:25:33 Sunny93 I just tried to called a function created by `exec()` inside a class. 2021-05-19 05:25:41 Sunny93 It seems not working. ... 2021-05-19 05:25:53 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-19 05:26:26 <-- G0UQT (sid422535@gateway/web/irccloud.com/x-tksetdzcweyqgfyn) has quit (Ping timeout: 260 seconds) 2021-05-19 05:26:28 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 05:26:44 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-dqmaubxgfwptkikj) has quit (Quit: Connection closed for inactivity) 2021-05-19 05:26:52 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-19 05:27:12 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 05:27:37 <-- blip- (~blip-@unaffiliated/blip-) has quit (Ping timeout: 258 seconds) 2021-05-19 05:27:59 <-- mpmc (~mpmc@xebian/contributor/mpmc) has quit (Quit: ZNC - https://znc.in) 2021-05-19 05:27:59 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 05:28:26 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 05:30:02 --> salitos (~contagiou@154.123.50.58) has joined #python 2021-05-19 05:30:15 --> mpmc (~mpmc@xebian/contributor/mpmc) has joined #python 2021-05-19 05:31:11 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 05:32:11 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 240 seconds) 2021-05-19 05:32:15 <-- seongsoocho (sid220192@gateway/web/irccloud.com/x-skznpyqmcqejyfwe) has quit (Ping timeout: 265 seconds) 2021-05-19 05:33:03 --> yamz (~contagiou@197.156.190.196) has joined #python 2021-05-19 05:33:09 --> mokulus (~mat@176.111.230.96) has joined #python 2021-05-19 05:33:25 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-19 05:33:42 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 265 seconds) 2021-05-19 05:33:50 --> AhmedAmerican (sid470527@gateway/web/irccloud.com/x-bavdtwscydtdaahk) has joined #python 2021-05-19 05:34:01 <-- contagious_meow (~contagiou@154.123.50.58) has quit (Ping timeout: 260 seconds) 2021-05-19 05:34:22 --> G0UQT (sid422535@gateway/web/irccloud.com/x-ynbkpzlwspqarlhp) has joined #python 2021-05-19 05:34:35 --> VIqbang (sid24380@gateway/web/irccloud.com/x-nhlcuyjxmhzwrimq) has joined #python 2021-05-19 05:34:43 <-- Yorick_ (znc@unaffiliated/rick-) has quit (Quit: I'm offline now. Bye!) 2021-05-19 05:34:52 --> noahmg123 (sid89117@gateway/web/irccloud.com/x-dngrpjgehxjkeszd) has joined #python 2021-05-19 05:35:11 --> tuxd00d (sid401305@gateway/web/irccloud.com/x-hhihotxvblypojcb) has joined #python 2021-05-19 05:35:19 --> seongsoocho (sid220192@gateway/web/irccloud.com/x-nekcmexhutxumclv) has joined #python 2021-05-19 05:35:58 <-- salitos (~contagiou@154.123.50.58) has quit (Ping timeout: 252 seconds) 2021-05-19 05:37:04 <-- sgn (~sgn@171.239.147.129) has quit (Ping timeout: 252 seconds) 2021-05-19 05:37:12 <-- swj (~swj@2409:8928:5c:17d:ac9a:15ba:e549:2d99) has quit (Ping timeout: 258 seconds) 2021-05-19 05:37:25 --> user2 (ponyala@gateway/vpn/privateinternetaccess/ponyala) has joined #python 2021-05-19 05:37:25 -- user2 is now known as ponyala 2021-05-19 05:37:46 --> IronHEDGE (sid466269@gateway/web/irccloud.com/x-rjgcskokrayibiud) has joined #python 2021-05-19 05:37:59 --> tov (sid492081@gateway/web/irccloud.com/x-qopvmqfvynldhxmi) has joined #python 2021-05-19 05:38:17 c0mrade What are the good courses, resources to learn Data Structures and Algorithms in Python? I've checked Udemy (there are some good stuff apparently), I've checked algoexport.io which is also good. Any other ones anyone would recommend? As I want to invest money 2021-05-19 05:38:23 <-- jusss (~user@unaffiliated/jusss) has quit (Read error: Connection reset by peer) 2021-05-19 05:38:30 --> jusss (~user@unaffiliated/jusss) has joined #python 2021-05-19 05:38:32 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 265 seconds) 2021-05-19 05:38:46 --> ninjaweb (~ninja@151.70.204.33) has joined #python 2021-05-19 05:39:10 --> debnet (sid330295@gateway/web/irccloud.com/x-xbtdtzkkmwoieott) has joined #python 2021-05-19 05:39:13 --> tonythomas (uid25971@wikimedia/-01tonythomas) has joined #python 2021-05-19 05:39:13 --> Tips|Cloud (sid62231@gateway/web/irccloud.com/x-afxfgpnrenwxqfir) has joined #python 2021-05-19 05:40:32 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-19 05:41:19 --> sgn (~sgn@171.239.137.68) has joined #python 2021-05-19 05:42:57 bjs Sunny93: exec takes arguments that set the global and local scope 2021-05-19 05:43:03 bjs Sunny93: otherwise, it's "the same" as usual. 2021-05-19 05:43:26 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-19 05:43:27 bjs Sunny93: why are you using exec? maybe there's a different way that works 2021-05-19 05:43:43 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 258 seconds) 2021-05-19 05:44:13 --> Tennis (~Tennis@unaffiliated/tennis) has joined #python 2021-05-19 05:45:19 Sunny93 I asked a question on SO 2021-05-19 05:45:19 Sunny93 https://stackoverflow.com/questions/67600790/why-use-exec-to-create-function-dynamically-inside-a-class-method-doesnt-work 2021-05-19 05:45:23 --> lucad111 (~lucad111@linaro/lucad111) has joined #python 2021-05-19 05:46:02 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-19 05:46:29 Sunny93 " takes arguments that set the global and local scope", I don't understand 2021-05-19 05:46:49 bjs Sunny93: exec is a function, it has 3 arguments. 2021-05-19 05:46:53 --> luischi (~luischi@80.30.206.41) has joined #python 2021-05-19 05:47:39 Sunny93 Ok , I will check the signature later and see if anything helps 2021-05-19 05:47:59 Sunny93 My original design is that 2021-05-19 05:48:46 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 252 seconds) 2021-05-19 05:49:29 bjs Sunny93: exec runs a whole Python program. a `def` at the top-level is an assignment in the global scope. 2021-05-19 05:49:39 <-- v01d4lph4 (~v01d4lph4@122.176.173.34) has quit (Ping timeout: 265 seconds) 2021-05-19 05:49:54 bjs Sunny93: but the real question is what are you trying to do? even the most seasoned Python programmers get `exec` wrong when trying to use it. 2021-05-19 05:50:48 <-- luischi (~luischi@80.30.206.41) has quit (Client Quit) 2021-05-19 05:51:09 Sunny93 bjs My original design is that, I have some strings from an API, specifying what columns need what kind of conversion function. E.g. {"row['id']": "id_conversion_function"} 2021-05-19 05:52:01 bjs Sunny93: i'm a little confused, you have the string "row['id']" ? 2021-05-19 05:52:18 Sunny93 Then I concat those strings into a function `def trans(row): row['id'] = id_conversion_function(row['id]')` 2021-05-19 05:52:27 Sunny93 yes 2021-05-19 05:52:31 Sunny93 I am using pandas 2021-05-19 05:52:41 bjs Sunny93: why not just have "id" in the (JSON?) dictionary 2021-05-19 05:52:45 <-- c0mrade (~c0mrade@unaffiliated/c0mrade) has quit (Quit: HydraIRC -> http://www.hydrairc.com <- Now with extra fish!) 2021-05-19 05:54:04 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 258 seconds) 2021-05-19 05:55:29 Sunny93 No. {"row['id']": "id_conversion_function"} defines rules apply to a row['id'] 2021-05-19 05:56:12 Sunny93 Let me check my so quesiton , I got some reponses. 2021-05-19 05:56:12 lericson lol why can't you pathlib.Path('foo.png').with_suffix('_bar.txt')? 2021-05-19 05:56:33 lericson seems very arbitrary to only allow sufficies starting with a period 2021-05-19 05:56:42 bjs Sunny93: yeah I understand that, but why mention 'row' explicitly? 2021-05-19 05:56:54 --> bunbunbunbunny (~Christoph@unaffiliated/vlvx) has joined #python 2021-05-19 05:56:55 --> YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has joined #python 2021-05-19 05:56:57 bjs Sunny93: why not instead have it be {"id": "id_conversion_function"} and not use exec at all 2021-05-19 05:57:11 bjs Sunny93: e.g. something like https://bpa.st/MCHA 2021-05-19 05:57:41 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 05:57:49 bjs Sunny93: the answer on SO is wrong, it is being put into locals. 2021-05-19 05:58:10 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 05:58:13 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 05:58:31 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 260 seconds) 2021-05-19 05:59:09 lericson haha, jesus christ, this is bad design. you seriously cannot append a suffix to a path unless it starts with a period. 2021-05-19 05:59:10 bjs passing globals() will make sure the local and global scopes inside the exec'd body are the same as the global scope of the module you called exec in, but I strongly recommend not using exec here, you *will* get it wrong and misunderstand, like that SO poster does 2021-05-19 05:59:46 lericson str(my_path.with_suffix('')) + '_bar.txt') :D 2021-05-19 06:00:36 Sunny93 bjs allow me to elaborate my use case 2021-05-19 06:00:40 Sunny93 hmm 2021-05-19 06:01:05 --> v01d4lph4 (~v01d4lph4@122.161.37.153) has joined #python 2021-05-19 06:01:44 bjs lericson: probably my_path.with_name(my_path.stem + "_bar.txt") would be better? 2021-05-19 06:01:45 Sunny93 I am using pandas. And I need to do some conversions to some rows. check this function signature: pandas.DataFrame.apply 2021-05-19 06:01:47 Sunny93 https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.apply.html#pandas-dataframe-apply 2021-05-19 06:01:55 lericson bjs: assuming you have a my_path in the first place 2021-05-19 06:01:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 06:02:22 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-19 06:02:39 Sunny93 pandas.DataFrame.apply receives a function, something like `def transform(row): row['id'] = id_conversion(row['id']) return row` 2021-05-19 06:03:07 bjs Sunny93: yes, does my code not work for that? 2021-05-19 06:03:13 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-19 06:03:14 bjs with no need for `exec` 2021-05-19 06:04:34 --> imp (~imp@186.205.11.214) has joined #python 2021-05-19 06:04:37 --> dez (uid92154@fedora/deSouza) has joined #python 2021-05-19 06:05:15 Sunny93 give me a few mins. let me take a look 2021-05-19 06:05:24 Sunny93 I am new to Python. I used to write C++ 2021-05-19 06:05:48 --> Fischerfredl (~Thunderbi@185.39.90.109) has joined #python 2021-05-19 06:05:51 <-- Fischerfredl (~Thunderbi@185.39.90.109) has quit (Excess Flood) 2021-05-19 06:06:47 -- mozgalom is now known as bomb-on 2021-05-19 06:06:49 bjs Sunny93: here's an extended example that shows my `cvf` function being apply()d to a dataframe https://bpa.st/EO3A 2021-05-19 06:08:34 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-19 06:09:34 --> mertyildiran (~mertyildi@85.100.224.245) has joined #python 2021-05-19 06:10:12 bjs I guess the point I'm trying to draw is that you don't need exec() to make functions dynamically, in Python a function can just create and return a new function and use the arguments and variables without (too much) worry. and that making hashtables (dictionaries) to create maps of things you care about is very common and easy in Python 2021-05-19 06:10:34 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-19 06:10:48 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 06:10:53 --> shivam_ (~shivam___@45.113.100.202) has joined #python 2021-05-19 06:11:10 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-19 06:11:15 <-- jelmer (~jelmer@samba/team/jelmer) has quit (Ping timeout: 260 seconds) 2021-05-19 06:11:19 --> muhaha (5e7050c8@gateway/web/cgi-irc/kiwiirc.com/ip.94.112.80.200) has joined #python 2021-05-19 06:11:41 --> jelmer (~jelmer@samba/team/jelmer) has joined #python 2021-05-19 06:13:29 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:b0b4:3818:c834:bc2d) has joined #python 2021-05-19 06:13:49 <-- jusss (~user@unaffiliated/jusss) has quit (Ping timeout: 265 seconds) 2021-05-19 06:14:35 <-- anonfunc (~anonfunc@anquietas.harting.hosting) has quit (Quit: Leaving) 2021-05-19 06:14:37 <-- Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has quit (Ping timeout: 268 seconds) 2021-05-19 06:15:05 --> Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has joined #python 2021-05-19 06:15:27 Sunny93 I need some time to understand the code ... 2021-05-19 06:15:40 --> bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has joined #python 2021-05-19 06:15:49 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 245 seconds) 2021-05-19 06:15:52 Sunny93 But it seems to work and very cool 2021-05-19 06:16:03 Sunny93 come back soon 2021-05-19 06:16:17 bjs Sunny93: for what it's worth, the features I make use of in the code are not very esoteric and you're likely to run into all of them quite a lot when working with Python 2021-05-19 06:16:28 <-- Death916 (UserNick@unaffiliated/death916) has quit (Ping timeout: 268 seconds) 2021-05-19 06:16:33 bjs so it'd be good to familiarise yourself with them if you're not used to working in Python 2021-05-19 06:16:51 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 06:16:54 <-- stree (~stree@68.36.8.116) has quit (Remote host closed the connection) 2021-05-19 06:17:16 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 06:17:23 --> Death916 (~UserNick@unaffiliated/death916) has joined #python 2021-05-19 06:17:48 --> aocusr (6d40f9bc@unaffiliated/db42) has joined #python 2021-05-19 06:18:00 aocusr how am I supposed to do a while something := alist.pop(): ? 2021-05-19 06:18:09 --> anonfunc (~anonfunc@anquietas.harting.hosting) has joined #python 2021-05-19 06:18:11 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-19 06:18:26 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 06:18:32 bjs aocusr: you mean, `while alist: something = alist.pop()` but shorter? 2021-05-19 06:19:10 bjs aocusr: or do you really mean to check the truthiness value of the thing you popped? 2021-05-19 06:19:30 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-19 06:19:58 bjs because what you wrote is valid Python and I'm just guessing you mean it doesn't do what you want? 2021-05-19 06:20:22 adder` bjs, just curious, what gets passed as 'row' on line 7? 2021-05-19 06:22:00 aocusr bjs: I thought := means the first, no ? 2021-05-19 06:22:14 bjs aocusr: "means the first" ? 2021-05-19 06:22:41 <-- ncl3 (~quassel@2a03:b0c0:0:1010::e6:4001) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-19 06:22:55 bjs adder`: it's the argument to the function, in the paste the returned function is called in two places: the `print(cvf(row))` line which calls it explicitly and the `df.apply(cvf)` line which does the calling of the cvf function itself 2021-05-19 06:22:56 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Quit: = "") 2021-05-19 06:23:29 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 265 seconds) 2021-05-19 06:23:34 bjs aocusr: `name := value` is an expression which evaluates to `value` but has the side-effect of assigning it to "name" first 2021-05-19 06:23:57 nomic z. 2021-05-19 06:24:32 aocusr ahh, ok, I see 2021-05-19 06:26:45 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-19 06:28:02 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 06:28:02 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-19 06:28:20 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-19 06:28:23 aocusr so there is no nice with default .pop for list like dict ? 2021-05-19 06:28:54 habnabit_ aocusr, 'nice with default'? 2021-05-19 06:29:25 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 06:29:31 Yhg1s aocusr: yes, there is no list.pop that takes a default value. 2021-05-19 06:29:41 <-- bunbunbunbunny (~Christoph@unaffiliated/vlvx) has quit (Ping timeout: 240 seconds) 2021-05-19 06:29:50 habnabit_ oh, 2-arg dict:pop 2021-05-19 06:30:04 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-19 06:30:19 aocusr maybe in python 4.. 2021-05-19 06:30:39 Yhg1s rather unlikely. 2021-05-19 06:30:45 Yhg1s it's not like it's a backward-incompatible change. 2021-05-19 06:30:55 Yhg1s it's just not something that's considered worthwile to add. 2021-05-19 06:31:04 aocusr is there a documentation for all the descrpencies between such things in the language ? 2021-05-19 06:31:23 Yhg1s aocusr: no. dicts and lists aren't the same thing at all, so it's not really a discrepancy. 2021-05-19 06:31:24 <-- Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has quit (Read error: Connection reset by peer) 2021-05-19 06:31:39 swensson I must be missing something, when pip installing something, "import something" does not work in pycharm, but when I use python straight from the bash enviroment, it works great.. Any ideas? 2021-05-19 06:31:47 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 06:31:54 aocusr swensson: your pycharm environment is different then your bash one ? 2021-05-19 06:31:55 --> lejocelyn (~lejocelyn@ip5f5bd552.dynamic.kabel-deutschland.de) has joined #python 2021-05-19 06:32:06 <-- LKoen (~LKoen@2a01cb0407597a00bd08a6952222b3db.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-19 06:32:08 Yhg1s swensson: pycharm is using a different version of Python, or a different virtualenv, or it had the module-not-found cached. 2021-05-19 06:32:10 aocusr check both's sys.path ? 2021-05-19 06:32:32 --> tesseract (~tesseract@2a01:e0a:280:2920:facf:c4c6:e308:f5cc) has joined #python 2021-05-19 06:32:37 swensson aocusr, how do I do that? 2021-05-19 06:33:24 --> rgr (~rgr@ip-109-42-113-104.web.vodafone.de) has joined #python 2021-05-19 06:33:29 Yhg1s swensson: 'import sys; print(sys.prefix); print(sys.version)' 2021-05-19 06:34:08 --> agrawalr_ (~agrawalri@103.123.86.13) has joined #python 2021-05-19 06:34:20 --> bunbunbunbunny (~Christoph@unaffiliated/vlvx) has joined #python 2021-05-19 06:35:42 <-- doev (549d75e7@p549d75e7.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-05-19 06:35:54 swensson Hmm yes, from pycharm: /home/myUser/PycharmProjects/pythonProject1/venv and in bash: /usr 2021-05-19 06:36:05 swensson Version is the same 2021-05-19 06:36:36 Yhg1s swensson: don't install things with pip *except* in a virtualenv. installing thigns with pip outside of a virtualenv can break your system, or applications in your system. It's not a good idea. 2021-05-19 06:36:48 Yhg1s swensson: in this case, just run /home/myUser/PycharmProjects/pythonProject1/venv/bin/pip and it'll install in that virtualenv. 2021-05-19 06:37:26 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Ping timeout: 268 seconds) 2021-05-19 06:37:27 aocusr pip should see it's running from a terminal and not in a virtualenv and warn about that 2021-05-19 06:38:05 swensson Yhg1s, No such file or dictionary 2021-05-19 06:38:32 Yhg1s swensson: how about /home/myUser/PycharmProjects/pythonProject1/venv/python -m pip ? 2021-05-19 06:38:41 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-19 06:38:45 Yhg1s eh, sorry, /home/myUser/PycharmProjects/pythonProject1/venv/bin/python -m pip 2021-05-19 06:39:22 aocusr you can check the sys.executable and use that with "-m pip" 2021-05-19 06:39:47 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-19 06:39:48 --> afidegnum (~user@102.176.65.245) has joined #python 2021-05-19 06:40:09 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 06:41:47 swensson Ah thanks!... But how do I import "other" api's w/o pip? 2021-05-19 06:41:49 --> srandon111 (~srandon11@5.102.2.235) has joined #python 2021-05-19 06:42:05 Yhg1s swensson: I'm not sure what you mean by that. pip is how you install packages. 2021-05-19 06:42:33 afidegnum hi, i'm in this dilema, https://dpaste.org/7Q6P 2021-05-19 06:42:33 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 06:42:34 swensson Ah okey then nvm :) Cheers 2021-05-19 06:42:51 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Ping timeout: 260 seconds) 2021-05-19 06:43:11 afidegnum how do, fix it please, ? 2021-05-19 06:43:14 Yhg1s afidegnum: you'll have to produce a traceback that actually identifies what line of source is producing this. 2021-05-19 06:43:26 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 06:43:41 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 240 seconds) 2021-05-19 06:43:45 habnabit_ afidegnum, looks like you're trying to read a file that isn't utf-8 text as if it was 2021-05-19 06:43:48 habnabit_ afidegnum, what's in the file? 2021-05-19 06:43:55 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 06:44:08 afidegnum they are plain text files, but i believe some special charachters chipped 2021-05-19 06:44:18 Yhg1s afidegnum: apparently they're not plain text files *in utf-8*. 2021-05-19 06:44:33 --> Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has joined #python 2021-05-19 06:44:36 habnabit_ afidegnum, where did they come from? 2021-05-19 06:44:52 <-- sagax (~sagax_nb@213.138.71.146) has quit (Ping timeout: 252 seconds) 2021-05-19 06:45:18 afidegnum they were given me fron a french speaking guy, and some chinese guy as well 2021-05-19 06:45:35 Yhg1s afidegnum: you'll have to find out what encoding they are in, and use the correct encoding. 2021-05-19 06:45:50 habnabit_ afidegnum, are you able to open them in a text editor and see the correct contents? 2021-05-19 06:46:04 afidegnum yes, i am able to read the texts, 2021-05-19 06:46:05 <-- lejocelyn (~lejocelyn@ip5f5bd552.dynamic.kabel-deutschland.de) has quit (Quit: lejocelyn) 2021-05-19 06:46:10 afidegnum mostly english written 2021-05-19 06:46:47 --> DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has joined #python 2021-05-19 06:47:14 afidegnum is there a way to convert them to utf-8 ? 2021-05-19 06:47:18 habnabit_ afidegnum, ok. add a `print(ascii(f))` before your open so you can see which read is failing 2021-05-19 06:48:20 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-19 06:48:25 afidegnum habnabit_: should i print f or z ? 2021-05-19 06:48:37 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-19 06:48:38 Yhg1s afidegnum: 'z' doesn't exist before the open. 2021-05-19 06:48:40 habnabit_ afidegnum, print(ascii(f)) xactly as i said 2021-05-19 06:50:10 <-- rgr (~rgr@ip-109-42-113-104.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-19 06:50:46 <-- spiri (~spiri@unaffiliated/spiri) has quit (Ping timeout: 240 seconds) 2021-05-19 06:51:03 --> mangold (~mangold@198.98.183.60) has joined #python 2021-05-19 06:51:23 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-19 06:52:34 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-19 06:52:44 --> leitz (~LeamHall@c-174-56-144-2.hsd1.sc.comcast.net) has joined #python 2021-05-19 06:52:45 afidegnum habnabit_: this is the name of the file PosixPath('/home/afidegnum/projects/BusinessAndMarketing/9_tips_for_writing_better_business_letters.txt') 2021-05-19 06:53:14 habnabit_ afidegnum, and if you open it in your text editor, does it look right? 2021-05-19 06:53:29 afidegnum yes, that's where i believe the problem is 2021-05-19 06:53:36 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-19 06:53:41 Sunny93 bjs I understand your code now 2021-05-19 06:53:45 <-- aocusr (6d40f9bc@unaffiliated/db42) has left #python 2021-05-19 06:53:52 Yhg1s afidegnum: what does 'file' say about that file? 2021-05-19 06:54:38 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-19 06:54:45 afidegnum do i import it ? 2021-05-19 06:55:01 Yhg1s afidegnum: no, it's a unix utility, not a python module. 2021-05-19 06:55:25 Yhg1s afidegnum: 'file /home/afidegnum/projects/BusinessAndMarketing/9_tips_for_writing_better_business_letters.txt' will try to tell you about the encoding of the file, if it can figure it out. 2021-05-19 06:55:33 afidegnum ok, 2021-05-19 06:55:39 Sunny93 bjs combining with decorators, the code is good and clean. Thanks and I am gonna see if I can apply this to my code. 2021-05-19 06:55:52 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-19 06:56:11 leitz Is there a python way to have a list of unquoted strings? That is, [ one two three four ], vice ['one', 'two', 'three', 'four']. 2021-05-19 06:56:35 Yhg1s leitz: ' '.join(your_list) will get you the middle part, and then if you really want the brackets you can add those on after. 2021-05-19 06:56:39 afidegnum Yhg1s: Non-ISO extended-ASCII text, with very long lines (806), with CRLF, LF line terminators 2021-05-19 06:56:41 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 240 seconds) 2021-05-19 06:56:57 bjs leitz: no, but a string doesn't really have any quotes in it, they're just how Python prints them. You can print it out however you like: print("[ {} ]".format(" ".join(that_list)) 2021-05-19 06:57:17 habnabit_ afidegnum, then it isn't utf-8. text editors often have an option to change what encoding a file will be in when they're written out 2021-05-19 06:57:26 Yhg1s afidegnum: okay, so it's indeed not UTF-8, and it's not clear what encoding it is supposed to be. It's probably going to be guesswork then. If you know what it's supposed to look like, you can try a number of encodings and see if it looks right. (iso-8859-15, iso-8859-1, etc) 2021-05-19 06:57:58 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 06:58:06 habnabit_ afidegnum, i suggest changing it (and any other files) to utf-8 via opening them in a text editor and saving them in the right encoding 2021-05-19 06:58:28 <-- Psyb3rN4ut (~psybernau@147.161.12.27) has quit (Ping timeout: 258 seconds) 2021-05-19 06:58:31 afidegnum there are more than 200 similar files 2021-05-19 06:58:46 habnabit_ afidegnum, and they all fail to read? 2021-05-19 06:58:56 Yhg1s afidegnum: back to asking whoever gave you the files about their encoding then. 2021-05-19 06:59:26 afidegnum some of them are able to read others like this one failed to ready 2021-05-19 06:59:27 afidegnum read 2021-05-19 06:59:34 <-- yamz (~contagiou@197.156.190.196) has quit (Ping timeout: 252 seconds) 2021-05-19 06:59:36 leitz Yhg1s, bjs, thanks. I'm trying to use Perl's qw[ ] syntax, it's a little cleaner. However, quoting the list items works. 2021-05-19 06:59:37 <-- ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-19 06:59:55 habnabit_ leitz, mylist = 'one two three four'.split() 2021-05-19 06:59:55 afidegnum Yhg1s: the person who gave me the file is unreachable, i received it last year during the pandemic 2021-05-19 07:00:13 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 07:00:26 Yhg1s afidegnum: it's quite possible the ones are able to be read are still in a different encoding than UTF-8, because UTF-8 is also a superset of ASCII, so those files could be plain ASCII, or they could also parse as "correct" UTF-8 but give the wrong result. 2021-05-19 07:00:30 habnabit_ leitz, you can even split it over several lines: mylist = """ ... """.split() 2021-05-19 07:00:40 leitz habnabit_, thanks! Hand't thought of that! 2021-05-19 07:00:42 --> Psyb3rN4ut (~psybernau@147.161.9.236) has joined #python 2021-05-19 07:00:43 Yhg1s afidegnum: well, you don't have very many options. 2021-05-19 07:00:49 leitz hadn't 2021-05-19 07:01:00 afidegnum ouch! 2021-05-19 07:01:14 Yhg1s leitz: if you have so much data that you're worried about the quotes, perhaps you want to read it in from an external source, like toml or something. 2021-05-19 07:01:19 habnabit_ afidegnum, how did you count the number of files that fail to read? 2021-05-19 07:01:42 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 07:02:36 afidegnum they were in a zip files, i extracted it, and able to read some of them 2021-05-19 07:02:41 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-19 07:03:08 --> Fauve (~Fauve@unaffiliated/fauve) has joined #python 2021-05-19 07:03:32 --> maum (01f5931e@1.245.147.30) has joined #python 2021-05-19 07:04:03 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-19 07:04:05 <-- mangold (~mangold@198.98.183.60) has quit (Ping timeout: 265 seconds) 2021-05-19 07:04:17 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 07:04:25 --> Dantalio- (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has joined #python 2021-05-19 07:04:26 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 240 seconds) 2021-05-19 07:04:26 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-19 07:04:39 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-19 07:04:56 --> ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has joined #python 2021-05-19 07:05:08 <-- mbandeir (~quassel@177.126.11.93) has quit (Ping timeout: 246 seconds) 2021-05-19 07:05:48 <-- Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has quit (Ping timeout: 268 seconds) 2021-05-19 07:06:59 --> mbandeir (~quassel@177.126.11.93) has joined #python 2021-05-19 07:07:30 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-19 07:08:24 --> monty (~m@73.95.132.131) has joined #python 2021-05-19 07:09:09 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 245 seconds) 2021-05-19 07:09:13 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-19 07:09:34 <-- ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-19 07:10:47 --> Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has joined #python 2021-05-19 07:10:50 --> mangold (~mangold@198.98.183.39) has joined #python 2021-05-19 07:14:59 afidegnum habnabit_: i've just got a hint from 'mousepad' text editor, 2021-05-19 07:15:18 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-19 07:15:23 afidegnum the encoding is in ISO-8859-1 2021-05-19 07:15:52 Yhg1s afidegnum: it's very difficult to distinguish different iso-8859-* encodings from each other, *unless* you know what it's supposed to look like. 2021-05-19 07:15:57 afidegnum so, should i change the reading encoding to that format ? 2021-05-19 07:16:44 Yhg1s afidegnum: only for files that are actually in that encoding. 2021-05-19 07:17:13 Yhg1s afidegnum: for example, the byte for '¤' in iso-8859-1 is the byte for '€' in iso-8859-15. 2021-05-19 07:17:33 Yhg1s afidegnum: so unless you know the file has '¤' or '€' in it, you won't be able to distinguish between those two. 2021-05-19 07:18:47 habnabit_ any sequence of bytes is "in" iso-8859-1 if you mean it'll successfully decode, because it will never reject any stream of bytes 2021-05-19 07:19:10 afidegnum so does it means there will be another error if i get another file in i.e utf-8 format ? after changing to ISO-8859-1 ? 2021-05-19 07:19:25 --> ncl3 (~quassel@2a03:b0c0:0:1010::e6:4001) has joined #python 2021-05-19 07:19:25 <-- ncl3 (~quassel@2a03:b0c0:0:1010::e6:4001) has quit (Client Quit) 2021-05-19 07:19:37 habnabit_ afidegnum, change everything to utf-8 2021-05-19 07:20:02 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 265 seconds) 2021-05-19 07:20:05 Yhg1s afidegnum: if you have a file in UTF-8 and decode it as if it's iso-8859-1, it will decode without error, but the result will be mojibake. 2021-05-19 07:20:09 afidegnum habnabit_: that's where the error is coming from while reading from utlf-8 2021-05-19 07:20:12 --> doev (549d75e7@p549d75e7.dip0.t-ipconnect.de) has joined #python 2021-05-19 07:20:21 --> qj (~qj@unaffiliated/qj) has joined #python 2021-05-19 07:20:33 Yhg1s afidegnum: habnabit_: is suggesting *changing files to utf-8*, not 'reading them as if they're utf-8'. 2021-05-19 07:20:48 habnabit_ afidegnum, edit the files, not your code 2021-05-19 07:20:50 <-- Sheila (~aerdan@2001:19f0:5:58ef:5400:1ff:fe8a:2585) has left #python ("WeeChat 2.9") 2021-05-19 07:20:50 afidegnum is there a function which can help find the encoding ? 2021-05-19 07:20:55 swensson Now when trying to run the script from the terminal, it fails-.- Can't I get both bash and pycharm to use the same libs etc? I'm in the same directory... 2021-05-19 07:21:23 Yhg1s afidegnum: not a function. there are tools, but they merely do guessing, based on statistics. 2021-05-19 07:21:29 Yhg1s afidegnum: see the chardet module. 2021-05-19 07:21:57 afidegnum ok, 2021-05-19 07:22:11 Yhg1s swensson: does /home/myUser/PycharmProjects/pythonProject1/venv/bin/activate exist? 2021-05-19 07:22:17 habnabit_ afidegnum, if you don't know what it is from out of band and the file doesn't have an `encoding="utf-8"` marker like xml does, the best you can do is guess 2021-05-19 07:22:17 <-- elibrokeit (eschwartz@archlinux/bugwrangler/eschwartz) has quit (Quit: A random quit message) 2021-05-19 07:22:39 --> sappheiros (~sappheiro@unaffiliated/dan1) has joined #python 2021-05-19 07:22:55 --> elibrokeit (eschwartz@archlinux/bugwrangler/eschwartz) has joined #python 2021-05-19 07:22:59 <-- squirrel (~mj@unaffiliated/squirrel) has quit (Excess Flood) 2021-05-19 07:23:08 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Disconnected by services) 2021-05-19 07:23:12 --> squirrel (~mj@unaffiliated/squirrel) has joined #python 2021-05-19 07:23:13 --> Jigsy` (~Jigsy@unaffiliated/jigsy) has joined #python 2021-05-19 07:23:33 <-- maum (01f5931e@1.245.147.30) has quit (Quit: Connection closed) 2021-05-19 07:23:52 swensson Yhg1s Yes it does 2021-05-19 07:24:17 --> ncl3 (~quassel@2a03:b0c0:0:1010::e6:4001) has joined #python 2021-05-19 07:24:17 <-- ncl3 (~quassel@2a03:b0c0:0:1010::e6:4001) has quit (Client Quit) 2021-05-19 07:24:23 Yhg1s swensson: then 'source /home/myUser/PycharmProjects/pythonProject1/venv/bin/activate' will make 'python' use the virtualenv's python. (see bit.ly/py-venv for more info about virtualenvs.) 2021-05-19 07:24:40 afidegnum habnabit_: you mean the file metadata? they are all text files 2021-05-19 07:24:52 habnabit_ afidegnum, i do not 2021-05-19 07:25:06 habnabit_ afidegnum, i don't know of any OS/FS that has encoding stored in metadata 2021-05-19 07:25:07 -- Jigsy` is now known as Jigsy 2021-05-19 07:25:09 --> bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-19 07:25:20 --> Jerrynicki (~niklas@p200300f57702d2000102c369bb784063.dip0.t-ipconnect.de) has joined #python 2021-05-19 07:25:45 swensson Yhg1s Ah cheers mate! =) 2021-05-19 07:26:00 --> category (~category@88-109-17-239.dynamic.dsl.as9105.com) has joined #python 2021-05-19 07:26:00 afidegnum ok, i think what i will do is to program emacs to open the files and saved then in utf-8, another problem now is to save them into the db. 2021-05-19 07:26:38 Yhg1s afidegnum: emacs is unlikely to do any better job than just pretending they're all iso-8859-1, or at least the ones that aren't valid UTF-8. you will end up with mojibake. 2021-05-19 07:26:41 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-19 07:26:56 Yhg1s afidegnum: you would need to *actually look at the non-ASCII characters* to see if it's properly decoded. 2021-05-19 07:27:00 <-- mertyildiran (~mertyildi@85.100.224.245) has quit (Quit: WeeChat 2.8) 2021-05-19 07:27:33 --> ncl3 (~quassel@2a03:b0c0:0:1010::e6:4001) has joined #python 2021-05-19 07:27:54 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 07:28:40 Sunny93 bjs what is this problem "passing globals() will make sure the local and global scopes inside the exec'd body are the same as the global scope of the module you called exec in, " ? 2021-05-19 07:29:12 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 07:29:27 Sunny93 Would you like to give a minimal example? 2021-05-19 07:29:39 --> Adbray (~Adbray@2600:6c48:6f7f:d764:f3a1:546c:a9ba:3042) has joined #python 2021-05-19 07:30:36 --> Yorick_ (znc@unaffiliated/rick-) has joined #python 2021-05-19 07:30:53 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-19 07:31:05 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 07:32:02 bjs Sunny93: it's how exec works. Exec takes up to 3 arguments. The arguments determine what the global and local scopes are during execution of the code you pass exec 2021-05-19 07:33:08 bjs Sunny93: exec() has (in my opinion) a complicated API and I'm not even going to try explain what each combination of options does: the docs do a better job and I'd surely make a mistake. 2021-05-19 07:33:13 bjs and Yhg1s is watching ;) 2021-05-19 07:33:47 Sunny93 OK I understand a little bit more now 2021-05-19 07:33:47 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-19 07:34:32 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 240 seconds) 2021-05-19 07:34:40 Sunny93 But it seems that you are indicating that each `.py` file (module) has its own global scope? 2021-05-19 07:34:46 --> Laibsch (~Laibsch@2a01:c22:b81a:9700:f2de:f1ff:fed0:6548) has joined #python 2021-05-19 07:34:47 bjs Sunny93: that is correct 2021-05-19 07:34:56 Sunny93 I am thinking there's only 1 global scope for the whole program 2021-05-19 07:35:05 Yhg1s you are thinking about something other than Python then :) 2021-05-19 07:35:19 bjs Sunny93: that's not how Python works, each module/.py file has its own 'global' scope 2021-05-19 07:35:20 Sunny93 *_* 2021-05-19 07:35:21 <-- monty (~m@73.95.132.131) has quit (Ping timeout: 260 seconds) 2021-05-19 07:35:30 afidegnum Yhg1s: so, apart from gessing in which encoding the text file is written into, is there no universal methods to read the contents then save them into utf-8 ? 2021-05-19 07:35:30 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 265 seconds) 2021-05-19 07:35:39 --> Jantz (~IceChat95@2407:7000:8d04:100:f8a7:30f3:198a:3714) has joined #python 2021-05-19 07:35:44 Yhg1s afidegnum: correct. 2021-05-19 07:35:54 Yhg1s afidegnum: if you don't know what the bytes mean, there's no way to know what the bytes mean. 2021-05-19 07:35:56 Celelibi Late binding sucks. 2021-05-19 07:36:32 afidegnum i understand, 2021-05-19 07:36:48 Yhg1s Celelibi: not as much as early-binding, since it's much easier to turn late-binding into early-binding than vice-versa. 2021-05-19 07:37:31 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-19 07:37:36 Celelibi How do you do so? 2021-05-19 07:37:49 Yhg1s Celelibi: a new scope. 2021-05-19 07:38:37 <-- bunbunbunbunny (~Christoph@unaffiliated/vlvx) has quit (Ping timeout: 252 seconds) 2021-05-19 07:38:41 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 240 seconds) 2021-05-19 07:40:11 <-- category (~category@88-109-17-239.dynamic.dsl.as9105.com) has left #python ("Channel Surfing") 2021-05-19 07:40:30 Celelibi Hm... I'll think about it. 2021-05-19 07:41:11 --> LeShadow (~dark@2001:bc8:608:402::1) has joined #python 2021-05-19 07:41:20 habnabit_ Celelibi, the usual hack is `def f(): a = 1; def g(a=a): ..` 2021-05-19 07:41:20 <-- mefistofeles (~mefistofe@unaffiliated/mefistofeles) has quit (Ping timeout: 252 seconds) 2021-05-19 07:42:07 --> ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has joined #python 2021-05-19 07:42:11 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 240 seconds) 2021-05-19 07:42:14 --> mefistofeles (~mefistofe@unaffiliated/mefistofeles) has joined #python 2021-05-19 07:42:17 <-- Sadale (~Sadale@unaffiliated/sadale) has quit (Ping timeout: 260 seconds) 2021-05-19 07:42:49 --> aodn01 (~a@unaffiliated/aodn01) has joined #python 2021-05-19 07:43:44 --> rvgzuuqp (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has joined #python 2021-05-19 07:43:45 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Read error: Connection reset by peer) 2021-05-19 07:43:57 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-19 07:46:10 --> legola (~legola@unaffiliated/legola) has joined #python 2021-05-19 07:46:55 <-- ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-19 07:47:43 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-19 07:47:56 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 07:48:07 --> wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has joined #python 2021-05-19 07:48:34 Laibsch Is there a tool to check for python2isms? Similar to checkbashisms. 2021-05-19 07:48:39 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 07:49:20 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-19 07:49:43 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 07:49:48 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-19 07:50:17 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-19 07:50:58 <-- lowryder (~lowryder@73.61.8.63) has quit (Ping timeout: 265 seconds) 2021-05-19 07:50:59 --> Alzadoua (~Alzadoua@unaffiliated/alzadoua) has joined #python 2021-05-19 07:51:49 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-19 07:51:57 leitz If "weaks" and "phrase" would get built from text files, "marked_phrase" removed, and the goal to be simple code that is extendable, how could this be made cleaner and better? https://bpa.st/AWNA 2021-05-19 07:52:23 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 07:52:51 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-19 07:52:59 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 07:53:00 --> lowryder (~lowryder@2601:197:600:1210:c034:b8a8:4104:c269) has joined #python 2021-05-19 07:53:03 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-19 07:53:53 swensson Anyone have any tips on how to solve this? I want to listen for a certain combo of keypresses to activate a function instead of just one press: https://dpaste.org/tGyQ 2021-05-19 07:54:09 <-- A-cat (~Alzadoua@unaffiliated/alzadoua) has quit (Ping timeout: 245 seconds) 2021-05-19 07:54:38 Peyam How do I download a file as a temporary file in Python? 2021-05-19 07:55:02 --> Obersanvalvwag (~Username@37.120.44.244) has joined #python 2021-05-19 07:55:03 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 07:55:06 habnabit_ Laibsch, i believe that futurize has a 2/3->3 converter in it https://python-future.org/automatic_conversion.html#futurize-py2-to-py2-3 2021-05-19 07:55:12 habnabit_ Laibsch, i'm trying to find it 2021-05-19 07:55:26 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 07:55:29 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-19 07:55:43 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-19 07:55:44 very_sneaky Peyam: https://stackoverflow.com/a/44672691 maybe thiswill help 2021-05-19 07:55:47 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-19 07:55:59 leitz Hmmm...just realized a flaw. The word being searched is compared with with "startswith()", but the re.sub is not. I may have to go back to split() and join(). 2021-05-19 07:56:00 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 07:56:06 Peyam How do I create a temporarily directory, download zip file into it and unzip the thing 2021-05-19 07:56:06 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 07:56:20 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 07:56:56 very_sneaky Peyam: https://stackoverflow.com/a/10909016 2021-05-19 07:57:00 <-- mantisfan (~mantisfan@gateway/tor-sasl/mantisfan) has quit (Quit: mantisfan) 2021-05-19 07:57:18 --> mantisfan (~mantisfan@gateway/tor-sasl/mantisfan) has joined #python 2021-05-19 07:57:28 <-- mantisfan (~mantisfan@gateway/tor-sasl/mantisfan) has left #python 2021-05-19 07:57:34 very_sneaky alternatively, if your /tmp is mapped to tmpfs, you can write to `/tmp` and be writing directly to RAM using files 2021-05-19 07:57:34 habnabit_ Laibsch, maybe i'm thinking of stage 2 converters 2021-05-19 07:57:54 very_sneaky think it will clear every reboot 2021-05-19 07:57:54 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 07:58:06 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 07:58:58 <-- mangold (~mangold@198.98.183.39) has quit (Ping timeout: 252 seconds) 2021-05-19 07:59:35 --> UniFreak (uid188635@gateway/web/irccloud.com/x-oiesetxjfcrgjvbz) has joined #python 2021-05-19 07:59:37 <-- aodn01 (~a@unaffiliated/aodn01) has quit (Quit: leaving) 2021-05-19 08:00:15 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 08:00:30 --> urodna (~urodna@unaffiliated/urodna) has joined #python 2021-05-19 08:00:47 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 08:00:57 <-- Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has quit (Remote host closed the connection) 2021-05-19 08:01:19 --> Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has joined #python 2021-05-19 08:01:22 --> klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has joined #python 2021-05-19 08:01:27 <-- mniip (mniip@freenode/staff/mniip) has quit (Quit: Changing host) 2021-05-19 08:01:45 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 08:02:09 --> P1ckleRick (~X@2a00:23a8:98b:500:40b9:1d48:97c8:d69f) has joined #python 2021-05-19 08:02:13 P1ckleRick Morning all 2021-05-19 08:02:34 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-19 08:02:34 swensson Good afternoon P1ckleRick 2021-05-19 08:02:52 <-- v01d4lph4 (~v01d4lph4@122.161.37.153) has quit (Ping timeout: 240 seconds) 2021-05-19 08:03:29 --> mniip (mniip@b.deneb.mniip.com) has joined #python 2021-05-19 08:03:54 <-- kline (~freedom0@freenode/staff/enucs.kline) has quit (Changing host) 2021-05-19 08:03:54 --> kline (~freedom0@lobsters/users/kline) has joined #python 2021-05-19 08:04:19 kline https://www.kline.sh/ 2021-05-19 08:04:58 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-19 08:05:05 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: Bin weg.) 2021-05-19 08:05:52 <-- dpreacher (~dpreacher@49.207.219.149) has quit (Ping timeout: 240 seconds) 2021-05-19 08:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-19 08:06:08 <-- jess (jess@freenode/staff/jess) has quit (Changing host) 2021-05-19 08:06:08 --> jess (jess@unaffiliated/jess) has joined #python 2021-05-19 08:06:37 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-19 08:06:44 --> Perilla_ (~Perilla@221.11.39.214) has joined #python 2021-05-19 08:07:09 <-- shivam_ (~shivam___@45.113.100.202) has quit (Quit: Leaving) 2021-05-19 08:07:34 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:b0b4:3818:c834:bc2d) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-19 08:09:07 --> AnimalFarmPig (~quassel@unaffiliated/animalfarmpig) has joined #python 2021-05-19 08:09:41 --> WayToDoor (~WayToDoor@plex.api-d.com) has joined #python 2021-05-19 08:11:27 kline libera.chat is open btw 2021-05-19 08:11:41 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-19 08:11:49 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 08:11:49 P1ckleRick what the? What's going on with Freenode 2021-05-19 08:12:04 lericson viva la revolucion 2021-05-19 08:12:14 wyoung Hey! It's P1ckleRick!!! 2021-05-19 08:12:39 P1ckleRick :) 2021-05-19 08:12:50 wyoung Classic Rick 2021-05-19 08:13:00 lericson we're in a pickle, rick 2021-05-19 08:13:10 supakeen Discussion about the free nodes trembling can go into -offtopic, we're well aware :) 2021-05-19 08:13:14 P1ckleRick but where do we go from here :S 2021-05-19 08:13:15 FLHerne P1ckleRick: https://gist.github.com/aaronmdjones/1a9a93ded5b7d162c3f58bdd66b8f491 2021-05-19 08:13:18 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:94ca:ab75:3c0b:35f5) has quit (Remote host closed the connection) 2021-05-19 08:13:36 P1ckleRick Thanks 2021-05-19 08:13:44 <-- alexhugo (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Ping timeout: 246 seconds) 2021-05-19 08:13:46 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has joined #python 2021-05-19 08:14:20 wyoung What's with the resignation letter? 2021-05-19 08:14:40 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Client Quit) 2021-05-19 08:14:55 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 08:14:58 AnimalFarmPig I noticed something weird about the .isidentifier() method of strings. It appears that there are a few thousand false positives, or maybe I understand the concept of "valid identifier" differently than Python maintainers. Here's my code to check: https://bpa.st/XNUA 2021-05-19 08:15:22 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-19 08:15:33 AnimalFarmPig ^ with 3.8 on my box this turns up 3410 "naughty characters" 2021-05-19 08:16:08 --> yamz (~contagiou@102.2.194.139) has joined #python 2021-05-19 08:16:36 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 08:17:14 <-- bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has quit (Remote host closed the connection) 2021-05-19 08:17:29 lericson AnimalFarmPig: for example, 戛 = 1 works fine 2021-05-19 08:17:35 lericson but your code identifies it as naughty 2021-05-19 08:18:01 --> vimart (~vimart@85.255.237.202) has joined #python 2021-05-19 08:18:30 supakeen Plus the eval doesn't fail here :) 2021-05-19 08:18:39 lericson in fact 2021-05-19 08:18:39 lericson >>> eval('戛', {}, {'戛': 'foo'}) 2021-05-19 08:18:39 lericson 'foo' 2021-05-19 08:18:41 lericson yeah 2021-05-19 08:19:05 supakeen Wonder why that fails on your machine. 2021-05-19 08:19:13 lericson i actually get the same 2021-05-19 08:19:17 AnimalFarmPig hmm... that is interesting. It's definitely failing on mine 2021-05-19 08:19:18 lericson so it's something wonky in the code 2021-05-19 08:19:21 --> SpComb (terom@zovoweix.qmsk.net) has joined #python 2021-05-19 08:19:26 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-19 08:19:36 habnabit_ AnimalFarmPig, 3.8.0? 2021-05-19 08:19:45 AnimalFarmPig 3.8.5 on Ubuntu 20.04 2021-05-19 08:19:51 lericson >>> try_eval('戛') 2021-05-19 08:19:51 lericson >>> 2021-05-19 08:19:52 lericson wut 2021-05-19 08:20:04 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-19 08:20:51 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 08:20:53 lericson it's some sort of encoding issue it seems 2021-05-19 08:21:15 AnimalFarmPig >>> try_eval('戛') 2021-05-19 08:21:15 AnimalFarmPig ... SyntaxError: invalid syntax 2021-05-19 08:21:16 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 258 seconds) 2021-05-19 08:21:41 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-19 08:21:43 --> belphegor666 (~satan@2a02:8071:429b:600:6c4a:bff:fede:7c09) has joined #python 2021-05-19 08:21:58 mniip I've resigned from volunteering for freenode for a good reason and I think you should know as well: https://mniip.com/freenode.txt (sorry for the spam (wait that's cliche)) 2021-05-19 08:22:57 Bombo i don't get print: this works: print("DIST: [%s] [%s] [%s]" % (platform.dist())) but why doesn't this work: print("DIST: [%s] [%s] [%s] OS: [%s]" % (platform.dist()), platform.system()) 'TypeError: not enough arguments for format string' how many argumetns are this, i count 4 2021-05-19 08:23:03 --> zumba_addict (~zumba_add@c-73-36-1-25.hsd1.il.comcast.net) has joined #python 2021-05-19 08:23:06 supakeen It's ok for Freenode staff to advertise their resignations in here so more people know what is going on but I'd prefer if any discussion about it happens in the -offtopic parts :) 2021-05-19 08:23:06 AnimalFarmPig hmmm.... same results with pypy3 3.7.1 (3.6.9 compatible)-- let me try this on a different box 2021-05-19 08:23:11 --> roppert (~roppert@inb4.se) has joined #python 2021-05-19 08:23:21 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Ping timeout: 265 seconds) 2021-05-19 08:23:48 bjs Bombo: it's not print, it's %-formatting 2021-05-19 08:23:54 lericson AnimalFarmPig: oddly enough i get a different character in the first position of the tuple than the error message 2021-05-19 08:24:00 habnabit_ Bombo, % is.. a bit confusing. platform.dist() returns a tuple, and % flattens _one_ level of tuple 2021-05-19 08:24:08 bjs Bombo: `s % t` the t has to be a tuple. Note that (x) is not a tuple 2021-05-19 08:24:23 habnabit_ Bombo, i.e. ((1, 2, 3), 4) is not flattened into four formatting arguments 2021-05-19 08:24:29 --> damoreno (~damoreno@redhat/damoreno) has joined #python 2021-05-19 08:24:56 habnabit_ Bombo, i'd probably write this as f'{platform.dist()=} {platform.system()=}' 2021-05-19 08:25:25 damoreno Hey there. Quick question about dataclasses. I have a class with some typed properties. They are validated when I construct an object of that class, but what can I do to validate also when I assign values directly? 2021-05-19 08:25:26 AnimalFarmPig I just tried this on an anaconda build of 3.7.4 on Red Hat and I get same results-- 3410 invalid characters 2021-05-19 08:25:29 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has quit (Ping timeout: 258 seconds) 2021-05-19 08:25:39 lericson AnimalFarmPig: could it be that they are incomplete characters? 2021-05-19 08:25:39 <-- newdimension (~newdimens@unaffiliated/newdimension) has quit (Quit: Bye) 2021-05-19 08:25:39 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 08:25:56 AnimalFarmPig lericson: if you run the paste as a script, does it return a list of naughty characters, or does everything run fine? 2021-05-19 08:25:59 <-- plutoniix (~q@ppp-58-8-181-100.revip2.asianet.co.th) has quit (Quit: Leaving) 2021-05-19 08:26:08 lericson i get the same as you as i said before 2021-05-19 08:26:14 lericson but for example 2021-05-19 08:26:15 lericson >>> naughty_characters[-13] 2021-05-19 08:26:15 lericson ('倂', NameError("name '倂' is not defined")) 2021-05-19 08:26:21 lericson notice how they are not the same 2021-05-19 08:26:24 AnimalFarmPig lericson: that's what I'm wondering, or some kind of control character, which shouldn't be a valid identifier, imo 2021-05-19 08:26:25 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 08:26:25 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-19 08:26:32 AnimalFarmPig oh, I didn't notice that 2021-05-19 08:26:40 bjs damoreno: no they do not get automatically checked. There are libraries like pydantic to do checking at runtime. There are also tools like mypy and pytype that can check the dataclass creation statically 2021-05-19 08:26:48 AnimalFarmPig check the contents for your dictionary after the run for even more weirdness 2021-05-19 08:26:59 --> newdimension (~newdimens@unaffiliated/newdimension) has joined #python 2021-05-19 08:27:20 lericson >>> naughty_characters = [err for char in identifiers if (err := try_eval(char + 'aaa')) is not None] 2021-05-19 08:27:23 lericson gave the same list 2021-05-19 08:27:25 lericson curious!! 2021-05-19 08:27:41 damoreno bjs: thanks for the answer. Another question would be: is there anything like pydantic validator for dataclasses? 2021-05-19 08:27:52 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 08:28:00 -- RoHack is now known as |A|h4x0r|A| 2021-05-19 08:28:11 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-19 08:28:11 -- |A|h4x0r|A| is now known as [A]h4x0r[A] 2021-05-19 08:28:54 --> greyblue9 (~greyblue9@2600:380:1865:c19e:641c:44fc:149a:3161) has joined #python 2021-05-19 08:29:29 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-19 08:29:36 lericson CJK Compatibility Ideographs Supplement 2021-05-19 08:29:43 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has joined #python 2021-05-19 08:29:46 lericson so the answer is that it's been normalized, AnimalFarmPig 2021-05-19 08:30:05 AnimalFarmPig hmm... not able to reproduce the dict content weirdness I was getting before, oh well 2021-05-19 08:30:27 AnimalFarmPig lericson: so, some kind of funky chinese characters that swallow subsequent characters? 2021-05-19 08:30:43 lericson no 2021-05-19 08:31:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 08:31:08 lericson it's a compatibility block, i think they turn into other characters under some normalizations 2021-05-19 08:31:20 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 08:31:32 <-- wawb (~Adium@pool-96-241-147-73.washdc.fios.verizon.net) has quit (Ping timeout: 240 seconds) 2021-05-19 08:31:38 habnabit_ sounds like a bug that .isidentifier() returns true then 2021-05-19 08:31:40 AnimalFarmPig oh, interesting, just looked it up on wikipedia-- that seems like it would account for 544 characters 2021-05-19 08:31:43 lericson >>> unicodedata.normalize('NFC', '倂') 2021-05-19 08:31:44 lericson '倂' 2021-05-19 08:31:46 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 240 seconds) 2021-05-19 08:31:59 lericson habnabit_: otoh you can use the non-normalized symbol just fine 2021-05-19 08:32:26 AnimalFarmPig I thought I noticed some middle eastern script among the naughty character list, so I assume there may be other characters that are handled similarly 2021-05-19 08:32:27 habnabit_ lericson, it's still a strange dichotomy 2021-05-19 08:33:09 <-- greyblue9 (~greyblue9@2600:380:1865:c19e:641c:44fc:149a:3161) has quit (Ping timeout: 258 seconds) 2021-05-19 08:34:54 <-- ninjaweb (~ninja@151.70.204.33) has quit (Quit: ninjaweb) 2021-05-19 08:35:36 --> teut (0126bc11@unaffiliated/teut) has joined #python 2021-05-19 08:35:37 --> v01d4lph4 (~v01d4lph4@122.160.65.250) has joined #python 2021-05-19 08:35:58 lericson now _this_ is a bug 2021-05-19 08:35:58 lericson >>> eval('倂', {}, {'倂': 'foo'}) 2021-05-19 08:36:01 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-19 08:36:18 --> n00b101 (uid448161@gateway/web/irccloud.com/x-ykoatotmxgyruzdp) has joined #python 2021-05-19 08:36:18 <-- esselfe (~steph@unaffiliated/esselfe) has quit (Quit: bye) 2021-05-19 08:36:32 <-- zumba_addict (~zumba_add@c-73-36-1-25.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 08:36:35 AnimalFarmPig ha! I see what's going on. I scrolled up to some more recognizable characters and noticed this-- ('𝞦', NameError("name 'Χ' is not defined",)) 2021-05-19 08:36:54 lericson if you simply normalize char when you put it into locals, it will work 2021-05-19 08:36:58 AnimalFarmPig if I change my dict to-- `d = {str(char): 'foo'} ` everything passes 2021-05-19 08:37:02 AnimalFarmPig right 2021-05-19 08:37:37 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-19 08:37:52 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 08:37:57 IHasFinger Hi all, anyone can recommend a blog post with indepth details on how to set up a package and use it. Thank you :) 2021-05-19 08:38:12 IHasFinger google is just showing all sort 2021-05-19 08:38:28 wyoung IHasFinger: You didn't find the python docs useful? 2021-05-19 08:38:42 lericson hmm that's not all of them 2021-05-19 08:38:52 lericson there's some weird transformation going on 2021-05-19 08:38:54 habnabit_ IHasFinger, https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html ? 2021-05-19 08:40:02 --> c0eos8 (~coeos@171.244.116.78.rev.sfr.net) has joined #python 2021-05-19 08:41:16 <-- c0eos (~coeos@171.244.116.78.rev.sfr.net) has quit (Ping timeout: 260 seconds) 2021-05-19 08:41:16 -- c0eos8 is now known as c0eos 2021-05-19 08:41:35 AnimalFarmPig https://bpa.st/CNPQ <--- using variable named 𝞦 in the console together with eval 2021-05-19 08:41:36 lericson boom 2021-05-19 08:41:38 IHasFinger habnabit_, and wyoung i found https://packaging.python.org/tutorials/packaging-projects/ 2021-05-19 08:41:42 lericson AnimalFarmPig: https://bpa.st/SMSQ 2021-05-19 08:41:45 lericson 0 invalid 2021-05-19 08:42:07 lericson never mind the double assignment to naughty_characters 2021-05-19 08:42:16 Bombo habnabit_: did you mean like this? print("DIST: [%s] [%s] [%s] OS: [%s]" % f'{platform.dist()=} {platform.system()=}') 2021-05-19 08:42:30 Bombo habnabit_: AttributeError: module 'platform' has no attribute 'dist' 2021-05-19 08:42:38 habnabit_ Bombo, no, i mean drop everything before and including the % 2021-05-19 08:42:44 <-- roppert (~roppert@inb4.se) has quit (Quit: leaving) 2021-05-19 08:42:45 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-19 08:42:58 --> Major_Biscuit (~Major_Bis@82-169-100-198.biz.kpn.net) has joined #python 2021-05-19 08:43:07 habnabit_ Bombo, ...? how were you calling it before if it fails now? 2021-05-19 08:43:27 Bombo habnabit_: print(f'{platform.dist()=} {platform.system()=}') ? 2021-05-19 08:43:32 lericson in fact, AnimalFarmPig, you can do this https://bpa.st/5VKQ 2021-05-19 08:43:34 habnabit_ Bombo, yes 2021-05-19 08:43:37 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-19 08:43:51 <-- rwcom60280385034 (~rwcom@58.208.160.248) has quit (Ping timeout: 268 seconds) 2021-05-19 08:44:04 lericson i guess it's not really a bug 2021-05-19 08:44:05 Bombo habnabit_: with python2 there is platform.dist() but f'... doesn't work 2021-05-19 08:44:11 <-- Major_Biscuit (~Major_Bis@82-169-100-198.biz.kpn.net) has quit (Client Quit) 2021-05-19 08:44:14 very_sneaky does anybody know how i can create a specific HDF5 type that doesn't necessarily map to a numpy datatype using h5py? I'm assuming it involves using the low level api, but a way to do it isn't jumping out at me 2021-05-19 08:44:21 habnabit_ Bombo, you're writing python 2 code? 2021-05-19 08:44:24 Bombo habnabit_: so i changed to python3 but seems like tzhere is no dist 2021-05-19 08:44:42 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-19 08:44:52 n00b101 I've a Django app. I have created a user. I want to block the same user logging in by saying "user is already logged in". I saw few articles but all they are doing is , if same user is logging in, previous session is deleted and user is logged in again. If user is logged in, can I say "cannot login, user already logged in"? 2021-05-19 08:45:02 Bombo habnabit_: i started with 2 yes 2021-05-19 08:45:03 --> powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-19 08:45:17 --> famubu (~famubu@14.139.174.50) has joined #python 2021-05-19 08:45:32 AnimalFarmPig lericson: right, makes sense-- so, if I want to know the set of valid identifiers that can be used in an eval together with injected locals/globals, then I just need to apply the unicode normalization to the set of valid identifiers outside of an eval statement 2021-05-19 08:45:50 lericson yeah 2021-05-19 08:46:00 habnabit_ Bombo, 2 and 3 aren't generally compatible.. if you have some existing code that uses one, porting to the other is not trivial 2021-05-19 08:46:02 lericson basically when python looks up an identifier in the locals, it normalizes it first -- which makes very good sense 2021-05-19 08:46:10 AnimalFarmPig but this only applies if I'm injecting locals/globals as a dict. If the local/globals are None, then it works fine 2021-05-19 08:46:11 habnabit_ Bombo, so i think we need to start from the beginning here 2021-05-19 08:46:11 <-- predmijat (~predmijat@mail.strogopro.com) has quit (Quit: bye) 2021-05-19 08:46:28 Bombo habnabit_: i just found example code for 2 2021-05-19 08:46:32 <-- kostkon (~kostkon@unaffiliated/kostkon) has quit (Ping timeout: 240 seconds) 2021-05-19 08:46:45 habnabit_ Bombo, so.. problem solved? 2021-05-19 08:46:46 AnimalFarmPig >>> 𝞦='foo' 2021-05-19 08:46:46 AnimalFarmPig >>> eval('𝞦') 2021-05-19 08:46:46 AnimalFarmPig 'foo' 2021-05-19 08:47:03 AnimalFarmPig apparently the normalization only happens if we've specified a dict for globals/locals 2021-05-19 08:47:11 lericson no no 2021-05-19 08:47:14 lericson look at locals() now 2021-05-19 08:47:27 AnimalFarmPig oh! 2021-05-19 08:47:30 AnimalFarmPig I see 2021-05-19 08:47:35 lericson it's normalized 2021-05-19 08:47:37 lericson always has been 2021-05-19 08:47:42 lericson *pulls trigger* 2021-05-19 08:47:44 -- MrFrodo is now known as VectorX 2021-05-19 08:47:49 AnimalFarmPig normalization happens when it enters locals! everything makes sense now 2021-05-19 08:47:56 --> kostkon (~kostkon@unaffiliated/kostkon) has joined #python 2021-05-19 08:48:00 AnimalFarmPig thanks for the help on this 2021-05-19 08:48:08 lericson i would guess, actually, that all code is normalized before execution :p 2021-05-19 08:48:11 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 08:48:14 Bombo habnabit_: i mean i started with 2 cause i used the code i found with google which is for 2 :) 2021-05-19 08:48:25 Bombo habnabit_: but i got it now with 2: print("DIST: [%s] [%s] [%s] OS: [%s]" % (platform.dist()+tuple([platform.system()]))) 2021-05-19 08:48:38 Bombo habnabit_: convert it to a tuple and cat it ;) 2021-05-19 08:48:58 habnabit_ Bombo, you can write a single tuple as (x,) 2021-05-19 08:49:26 famubu In case it hasn't been mentioned here yet and I don't know if it counts as off-topic (apologies if it is), people are already active in the #python channel at libera.chat 2021-05-19 08:49:28 grawity I'd probably write that as % (*platform.dist(), platform.system()) 2021-05-19 08:49:34 AnimalFarmPig right, I was starting with the assumption that every character is unique, but they're only unique after normalization 2021-05-19 08:49:49 <-- BinaryVixen899 (~BinaryVix@75.172.189.47) has quit (Read error: Connection reset by peer) 2021-05-19 08:49:50 AnimalFarmPig in terms of use for identifiers 2021-05-19 08:50:05 --> BinaryVixen899 (~BinaryVix@75.172.189.47) has joined #python 2021-05-19 08:50:15 --> Freso (sid7914@freenode/staff/musicbrainz.user.freso) has joined #python 2021-05-19 08:50:27 lericson haha oh jesus this is funny 2021-05-19 08:50:32 <-- jtmusky (~jtmusky@104-1-122-97.lightspeed.okcbok.sbcglobal.net) has quit (Quit: Leaving) 2021-05-19 08:50:49 --> fizzizist (~Thunderbi@108.162.133.99) has joined #python 2021-05-19 08:50:57 lericson you want to know all the duplicate characters 2021-05-19 08:51:06 Bombo habnabit_: but platform.system is a str 2021-05-19 08:51:13 lericson http://pb.lericson.se/p/sPySTJ/ 2021-05-19 08:51:15 AnimalFarmPig >>> 𝞦='foo';Χ='bar';𝞦=='bar' 2021-05-19 08:51:16 AnimalFarmPig True 2021-05-19 08:51:24 lericson :D 2021-05-19 08:51:30 AnimalFarmPig lol, wow 2021-05-19 08:51:31 grawity Bombo: I think they were suggesting platform.dist() + (platform.system(),) 2021-05-19 08:51:32 lericson this opens up a whole new world of obfuscation 2021-05-19 08:51:53 Bombo grawity: SyntaxError: invalid syntax * (i'm on python2) 2021-05-19 08:51:57 grawity oh 2021-05-19 08:52:00 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-19 08:52:03 grawity my condolences 2021-05-19 08:52:06 lericson >>> laſt = 1 2021-05-19 08:52:06 lericson >>> last 2021-05-19 08:52:06 lericson 1 2021-05-19 08:52:06 lericson :D 2021-05-19 08:52:23 --> maum (01f5931e@1.245.147.30) has joined #python 2021-05-19 08:52:50 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-19 08:53:01 varaindemian in a given file.txt how can I extract the value for source_port? Example input "bla bla "source_port": 26532 bla bla" -> I want to extract 26532 2021-05-19 08:53:20 habnabit_ Bombo, you made a different syntax mistake. `x + (y,)` is perfectly valid syntax in py2 2021-05-19 08:53:30 Bombo grawity/ habnabit_ got it 2021-05-19 08:53:36 habnabit_ varaindemian, sounds like json 2021-05-19 08:54:14 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-19 08:54:37 varaindemian habnabit_: can be a json 2021-05-19 08:54:37 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 08:54:42 varaindemian or a random text 2021-05-19 08:54:57 varaindemian let 2021-05-19 08:54:59 habnabit_ varaindemian, what's the rest of the file? i bet you can use json.load 2021-05-19 08:55:01 --> zadock (~zadock@gateway/tor-sasl/zadock) has joined #python 2021-05-19 08:55:05 Bombo now where did the platform.dist go in python 3 2021-05-19 08:55:07 <-- shiron (~alvinhoch@unaffiliated/alvinhochun) has left #python ("Leaving") 2021-05-19 08:55:09 varaindemian let's say it is json 2021-05-19 08:55:14 varaindemian how can I use json load 2021-05-19 08:55:15 habnabit_ varaindemian, ok, then use json.load 2021-05-19 08:55:15 varaindemian ? 2021-05-19 08:55:15 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 08:55:38 habnabit_ varaindemian, with open('whatever') as f: content = json.load(f) 2021-05-19 08:55:41 --> av_ (uid87081@gateway/web/irccloud.com/x-upikkyoodugrwfxy) has joined #python 2021-05-19 08:55:51 grawity Bombo: what does platform.dist() even do... I just get ("", "", "") from it 2021-05-19 08:56:27 varaindemian can I also use it to modify data? 2021-05-19 08:56:40 habnabit_ varaindemian, sure 2021-05-19 08:56:48 grawity aha "This is an old version of the functionality now provided by linux_distribution()" 2021-05-19 08:56:59 varaindemian is there a command to beautify it? 2021-05-19 08:57:01 securethemews varaindemian, it will load it into a dictionary. you can then modify the data. if you want to modify the file with the new data, you can use json.dump() 2021-05-19 08:57:08 grawity lol the same page says linux_distribution() is deprecated 2021-05-19 08:57:25 grawity Bombo: well I'd probably suggest 'os-release' in pip then 2021-05-19 08:57:26 Bombo grawity: print(platform.dist()) ('Ubuntu', '20.04', 'focal') 2021-05-19 08:57:35 habnabit_ varaindemian, json.dump has an indent= parameter for prettifying 2021-05-19 08:57:38 grawity Bombo: or some other package that parses the /etc/os-release file (which practically all distros have now) 2021-05-19 08:57:44 <-- stranac (~stranac@195.29.239.126) has quit (Read error: Connection reset by peer) 2021-05-19 08:57:55 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 08:57:59 grawity Bombo: alternatively it seems the 'distro' package has more features 2021-05-19 08:58:02 <-- teut (0126bc11@unaffiliated/teut) has quit (Ping timeout: 240 seconds) 2021-05-19 08:58:53 --> Itzamna (~Itzamna@sub-190-4-191ip241.rev.onenet.cw) has joined #python 2021-05-19 08:59:15 --> barneygale (~barneygal@cpc93788-hari17-2-0-cust405.20-2.cable.virginm.net) has joined #python 2021-05-19 08:59:33 <-- damoreno (~damoreno@redhat/damoreno) has quit (Quit: leaving) 2021-05-19 08:59:35 --> Haudegen (~quassel@91.114.49.10) has joined #python 2021-05-19 08:59:39 <-- daregap (~belovent@cr-01.anx09.lju.si.anexia-it.com) has quit (Quit: daregap) 2021-05-19 08:59:41 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-19 09:00:29 <-- Jerrynicki (~niklas@p200300f57702d2000102c369bb784063.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-19 09:00:29 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 09:00:31 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-19 09:00:31 varaindemian habnabit_: indent parameter that specifies how many spaces to indent by 2021-05-19 09:00:45 --> czer0 (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-19 09:00:47 habnabit_ varaindemian, yep 2021-05-19 09:00:55 --> sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has joined #python 2021-05-19 09:00:57 -- ThatOtherGuy is now known as patches 2021-05-19 09:01:04 --> computeiro (~Wender@189.37.65.180) has joined #python 2021-05-19 09:01:07 varaindemian and if I do not use it the text is beautified with 1 space? Because wright now is a one liner 2021-05-19 09:01:21 habnabit_ varaindemian, it isn't beautified at all without it 2021-05-19 09:01:21 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Read error: Connection reset by peer) 2021-05-19 09:01:26 -- patches is now known as LogicAside 2021-05-19 09:01:28 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 09:01:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 09:01:37 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-19 09:01:37 <-- fflori (~fflori@mob-194-230-155-151.cgn.sunrise.net) has quit (Ping timeout: 260 seconds) 2021-05-19 09:01:44 --> contingo (~textual@213.205.200.36) has joined #python 2021-05-19 09:02:09 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 09:02:10 varaindemian habnabit_: all right 2021-05-19 09:02:31 <-- Jantz (~IceChat95@2407:7000:8d04:100:f8a7:30f3:198a:3714) has quit (Ping timeout: 260 seconds) 2021-05-19 09:03:03 <-- Freso (sid7914@freenode/staff/musicbrainz.user.freso) has quit (Changing host) 2021-05-19 09:03:03 --> Freso (sid7914@musicbrainz/user/freso) has joined #python 2021-05-19 09:03:51 varaindemian raise ValueError("No JSON object could be decoded") 2021-05-19 09:03:52 varaindemian ValueError: No JSON object could be decoded 2021-05-19 09:04:04 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-19 09:04:06 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Quit: WeeChat 3.0.1) 2021-05-19 09:04:49 <-- lucascastro (~lucascast@177-185-133-236.dynamic.isotelco.net.br) has quit (Ping timeout: 268 seconds) 2021-05-19 09:05:02 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-19 09:05:24 Gurkenglas "norm.forward(x)" throws "TypeError('forward() takes 1 positional argument but 2 were given')", how can this be? 2021-05-19 09:05:47 Yhg1s Gurkenglas: it's a method. 2021-05-19 09:05:48 <-- jess (jess@unaffiliated/jess) has quit (Quit: so long and thanks for all the fish) 2021-05-19 09:05:57 <-- merijn (~merijn@83-160-49-249.ip.xs4all.nl) has quit (Quit: Changing server) 2021-05-19 09:06:18 lericson Gurkenglas: whenever you call a bound method, it implicitly passes self as the first argument 2021-05-19 09:06:23 varaindemian habnabit_: looks like it's not json? 2021-05-19 09:06:30 Gurkenglas Ah, that makes sense of it. Thanks. 2021-05-19 09:06:48 lericson Gurkenglas: now go make some homologies 2021-05-19 09:06:49 Bombo grawity: got it thx 2021-05-19 09:06:56 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 260 seconds) 2021-05-19 09:06:59 --> jtmusky (~jtmusky@104-1-122-97.lightspeed.okcbok.sbcglobal.net) has joined #python 2021-05-19 09:07:08 Bombo platformdist = (distro.name(), distro.version(), distro.codename()); print("DIST: [%s] [%s] [%s] OS: [%s]" % (*platformdist, platform.system())) 2021-05-19 09:07:11 Bombo DIST: [Ubuntu] [20.04] [focal] OS: [Linux] 2021-05-19 09:07:13 Bombo ;) 2021-05-19 09:07:51 --> deekej (~deekej@ip4-95-82-164-84.cust.nbox.cz) has joined #python 2021-05-19 09:08:11 --> lmt (uid107697@gateway/web/irccloud.com/x-afpxxoxdifedloxw) has joined #python 2021-05-19 09:08:23 sappheiros is python going to libera or officially stay here? 2021-05-19 09:08:51 JavaBean "why not both.mp4" 2021-05-19 09:08:57 supakeen It's being discussed internally, you'll know if/when it happens sappheiros :) 2021-05-19 09:09:04 <-- statusfailed (~statusfai@statusfailed.com) has quit (Quit: leaving) 2021-05-19 09:09:16 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Ping timeout: 265 seconds) 2021-05-19 09:09:31 sappheiros thank you, supakeen. I am thinking to leave freenode. 2021-05-19 09:09:39 supakeen JavaBean: Generally we dictate only a few official community channels, see here: https://www.python.org/community/irc/ 2021-05-19 09:09:59 sappheiros right, i just asked after looking at that page 2021-05-19 09:10:15 <-- zadock (~zadock@gateway/tor-sasl/zadock) has quit (Quit: Leaving) 2021-05-19 09:10:18 <-- EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has quit (Remote host closed the connection) 2021-05-19 09:10:27 sappheiros given the volunteer staff's reaction as a canary in the coal mine (i don't know a better metaphor) it seems better to leave 2021-05-19 09:10:33 <-- vulpine (xfnw@gateway/shell/tilde.team/x-thmntaflfuzkqnux) has quit (Quit: Connection reset by purr) 2021-05-19 09:10:41 <-- psachin (~psachin@103.51.232.133) has quit (Ping timeout: 240 seconds) 2021-05-19 09:10:45 --> Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has joined #python 2021-05-19 09:10:52 --> MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has joined #python 2021-05-19 09:11:07 --> esselfe (~steph@modemcable086.138-22-96.mc.videotron.ca) has joined #python 2021-05-19 09:11:10 --> EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has joined #python 2021-05-19 09:11:34 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 252 seconds) 2021-05-19 09:11:48 <-- drogas (c251df42@gateway/web/cgi-irc/kiwiirc.com/ip.194.81.223.66) has quit (Quit: Connection closed) 2021-05-19 09:11:58 --> GhitzaPizdalau (~Baltazar@gateway/tor-sasl/zadock) has joined #python 2021-05-19 09:12:01 JavaBean don't forget, freenode runs on hardware donated to the community. if the people donating that hardware/time decide they don't like what just happened, they won't donate those resources anymore. if that happens, what will freenode run on? 2021-05-19 09:12:27 <-- MmeQuignon (~matthieu@94.209.182.93.rev.sfr.net) has quit (Client Quit) 2021-05-19 09:13:37 --> drogas (c251df42@gateway/web/cgi-irc/kiwiirc.com/ip.194.81.223.66) has joined #python 2021-05-19 09:13:38 lericson oh 2021-05-19 09:13:43 lericson THAT's why it's freenode? 2021-05-19 09:13:47 lericson free nodes 2021-05-19 09:13:55 supakeen That hasn't happened yet so we can't guess at that future. 2021-05-19 09:14:26 barneygale JavaBean: they've already lost literally their entire staff, including their technical staff 2021-05-19 09:14:53 Bombo what happened? to freenode? 2021-05-19 09:14:58 wizzwizz4 Bombo: Greed. 2021-05-19 09:15:01 -- snalty_ is now known as snalty 2021-05-19 09:15:08 barneygale Former CFO of mt gox somehow got ownership of the domain + servers 2021-05-19 09:15:09 IHasFinger habnabit_ I have a package set up like https://bpa.st/TUIA in my userController class I am calling a user entity. However I am getting ModuleNotFoundError: No module named 'entity' 2021-05-19 09:15:26 leduyquang753 Bombo https://gist.github.com/jesopo/45a3e9cdbe517dc55e6058eb43b00ed9 2021-05-19 09:15:33 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 265 seconds) 2021-05-19 09:15:42 lericson barneygale: it's the former ceo of mt gox? :D 2021-05-19 09:15:45 supakeen While I understand that there's quite an uproar about the Freenode situation I'd prefer the discussion to take place in -offtopic so people with Python questions don't get drowned out/confused :) 2021-05-19 09:15:46 lericson plot thickening 2021-05-19 09:15:52 lericson ok sorry 2021-05-19 09:15:58 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-19 09:16:10 <-- drogas (c251df42@gateway/web/cgi-irc/kiwiirc.com/ip.194.81.223.66) has quit (Client Quit) 2021-05-19 09:16:44 Bombo leduyquang753: thx 2021-05-19 09:16:45 Bombo hm 2021-05-19 09:16:46 supakeen IHasFinger: The `entity` and `controller` directories need `__init__.py` files to turn them into packages. 2021-05-19 09:16:48 <-- Perilla_ (~Perilla@221.11.39.214) has left #python ("Leaving") 2021-05-19 09:17:35 --> saidi (~saidi@unaffiliated/saidi) has joined #python 2021-05-19 09:18:28 --> cdown (~cdown@163.114.131.1) has joined #python 2021-05-19 09:18:51 <-- jabberwock (~jessy@unaffiliated/jfs) has quit (Quit: WeeChat 2.8) 2021-05-19 09:19:30 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Read error: Connection reset by peer) 2021-05-19 09:19:49 --> drogas (c251df42@gateway/web/cgi-irc/kiwiirc.com/ip.194.81.223.66) has joined #python 2021-05-19 09:20:51 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-19 09:21:17 <-- DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has quit (Read error: Connection reset by peer) 2021-05-19 09:21:58 <-- mingdao (~mingdao@unaffiliated/mingdao) has quit (Quit: leaving) 2021-05-19 09:22:13 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has quit (Ping timeout: 258 seconds) 2021-05-19 09:22:17 --> mingdao (~mingdao@unaffiliated/mingdao) has joined #python 2021-05-19 09:22:26 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-19 09:22:27 <-- sinanislekdemir (~sinan@dsl-hkibng42-5673ca-177.dhcp.inet.fi) has quit (Quit: Leaving.) 2021-05-19 09:22:41 <-- sgn (~sgn@171.239.137.68) has quit (Quit: WeeChat 3.1) 2021-05-19 09:22:47 <-- saidi (~saidi@unaffiliated/saidi) has quit (Quit: Quitte) 2021-05-19 09:22:48 IHasFinger supakeen, I added the __init__.py still same error 2021-05-19 09:22:49 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-19 09:23:08 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-19 09:23:10 supakeen I'm sorry I'm not entirely familiar on how to work with a `src/` directory containing multiple packages. 2021-05-19 09:23:17 --> Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has joined #python 2021-05-19 09:23:28 P1ckleRick currently learning PyQT5, I'm trying create an autocomplete on a QLineEdit widget. Which works fine, however I want to display additional text with this (however, not to include the additional text when selected). 2021-05-19 09:23:40 --> saidi (~saidi@unaffiliated/saidi) has joined #python 2021-05-19 09:23:50 P1ckleRick do we know if that's possible? 2021-05-19 09:24:02 <-- Tamwyn (~Tamwyn@unaffiliated/tamwyn) has left #python ("WeeChat 2.7.1") 2021-05-19 09:24:11 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-19 09:24:18 --> sgn (~sgn@171.239.137.68) has joined #python 2021-05-19 09:25:18 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-19 09:25:31 <-- saidi (~saidi@unaffiliated/saidi) has quit (Client Quit) 2021-05-19 09:25:32 --> fantis (~mantisfan@gateway/tor-sasl/mantisfan) has joined #python 2021-05-19 09:25:57 <-- famubu (~famubu@14.139.174.50) has left #python 2021-05-19 09:26:23 <-- mingdao (~mingdao@unaffiliated/mingdao) has quit (Client Quit) 2021-05-19 09:26:34 --> mingdao (~mingdao@unaffiliated/mingdao) has joined #python 2021-05-19 09:27:01 P1ckleRick guessing it might involve subclassing the completer class or creating a custom model 2021-05-19 09:27:31 --> anandprabhu (~AnandPrab@94.202.236.255) has joined #python 2021-05-19 09:27:41 --> ham5urg (~ham5urg@pd95eb7ca.dip0.t-ipconnect.de) has joined #python 2021-05-19 09:27:47 <-- sgn (~sgn@171.239.137.68) has quit (Client Quit) 2021-05-19 09:28:09 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-19 09:28:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 09:28:14 --> sgn (~sgn@171.239.137.68) has joined #python 2021-05-19 09:28:54 <-- john2gb0 (~john2gb@94-225-47-8.access.telenet.be) has quit (Quit: Ping timeout (120 seconds)) 2021-05-19 09:29:11 <-- Naan (~naan@unaffiliated/naan) has quit (Read error: Connection reset by peer) 2021-05-19 09:29:26 <-- mingdao (~mingdao@unaffiliated/mingdao) has quit (Client Quit) 2021-05-19 09:30:40 <-- klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has quit (Quit: ZZZzzzzz.....) 2021-05-19 09:30:52 --> rossw (~rossw@cpc158585-brad24-2-0-cust291.17-1.cable.virginm.net) has joined #python 2021-05-19 09:30:56 --> klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has joined #python 2021-05-19 09:30:58 <-- klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-19 09:31:29 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 260 seconds) 2021-05-19 09:31:37 --> klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has joined #python 2021-05-19 09:31:56 --> mingdao (~mingdao@unaffiliated/mingdao) has joined #python 2021-05-19 09:32:00 varaindemian habnabit_: can I use a strip command to strip down the quotes or '' or aything (if any) from the values of the json dictionary? 2021-05-19 09:32:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 09:32:19 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 09:32:27 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-19 09:32:29 varaindemian habnabit_: I know it;s usually used with strings 2021-05-19 09:32:34 <-- enkrypt (~enkrypt@130.255.78.203) has quit (Quit: WeeChat 2.3) 2021-05-19 09:32:42 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 09:32:50 <-- anandprabhu (~AnandPrab@94.202.236.255) has left #python ("Leaving") 2021-05-19 09:33:18 very_sneaky does anybody know of a way of creating a hdf5 dataset with a specific HDF5 type not specifically covered by a numpy data type with h5py? I'm pretty sure i'll have to use the low level api, but nothing is jumping out at me. I'm trying to create a dataset with type H5T_NATIVE_B16 2021-05-19 09:33:30 --> parabolize (~paraboliz@98.43.173.221) has joined #python 2021-05-19 09:34:10 drogas is this channel moving to libra.chat? 2021-05-19 09:34:15 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-19 09:34:16 --> enkrypt (~enkrypt@onosendai.root.sx) has joined #python 2021-05-19 09:34:21 <-- enkrypt (~enkrypt@onosendai.root.sx) has quit (Client Quit) 2021-05-19 09:34:35 drogas has the migration begun? Where is the boat 2021-05-19 09:34:44 <-- GhitzaPizdalau (~Baltazar@gateway/tor-sasl/zadock) has quit (Quit: Leaving) 2021-05-19 09:34:53 IHasFinger supakeen, i moved it from src and still the same thing 2021-05-19 09:35:12 IHasFinger you know after creating the setup.py do you need to run something? 2021-05-19 09:35:49 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-19 09:35:53 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 09:36:03 <-- mdk (~mdk@51.15.187.166) has quit (Quit: WeeChat 3.1) 2021-05-19 09:36:08 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-19 09:36:13 <-- mingdao (~mingdao@unaffiliated/mingdao) has quit (Client Quit) 2021-05-19 09:36:15 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-19 09:36:23 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-19 09:37:04 --> mingdao (~mingdao@unaffiliated/mingdao) has joined #python 2021-05-19 09:37:52 <-- kindablue (kindablue@gateway/vpn/protonvpn/kindablue) has quit (Quit: System Rebooting..) 2021-05-19 09:38:03 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-19 09:38:14 --> kindablue (kindablue@gateway/vpn/protonvpn/kindablue) has joined #python 2021-05-19 09:38:22 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-19 09:38:35 --> lucascastro (~lucascast@45-167-143-6.netfacil.inf.br) has joined #python 2021-05-19 09:38:42 --> mdk (~mdk@51.15.187.166) has joined #python 2021-05-19 09:39:04 <-- Laibsch (~Laibsch@2a01:c22:b81a:9700:f2de:f1ff:fed0:6548) has quit (Remote host closed the connection) 2021-05-19 09:39:17 <-- mdk (~mdk@51.15.187.166) has quit (Client Quit) 2021-05-19 09:39:17 --> some02 (~lax@unaffiliated/laxask) has joined #python 2021-05-19 09:39:25 <-- mingdao (~mingdao@unaffiliated/mingdao) has quit (Client Quit) 2021-05-19 09:39:29 <-- grym (~grym@unaffiliated/grym) has quit (Quit: Changing server) 2021-05-19 09:39:34 --> jesseTree (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-19 09:39:47 --> f380cedric (a40f4e43@elmitel31.ulb.ac.be) has joined #python 2021-05-19 09:39:52 --> grym (~grym@unaffiliated/grym) has joined #python 2021-05-19 09:39:58 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 268 seconds) 2021-05-19 09:39:59 <-- powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Ping timeout: 245 seconds) 2021-05-19 09:40:11 varaindemian in a given file.txt how can I extract the value for source_port? Example input "bla bla "source_port": 26532 bla bla" -> I want to extract 26532. I know I can use json.dumps but values might be in different dictionaries. so print(parsed['request_url']) doesn't work but print(parsed['payload']['request_url']) works. How can I cover both cases? 2021-05-19 09:40:28 <-- HannaM (~quassel@p54849510.dip0.t-ipconnect.de) has quit (Quit: HannaM) 2021-05-19 09:40:36 --> mdk (~mdk@51.15.187.166) has joined #python 2021-05-19 09:40:37 --> wilk (~wilk@adoa216.neoplus.adsl.tpnet.pl) has joined #python 2021-05-19 09:40:39 --> mingdao (~mingdao@unaffiliated/mingdao) has joined #python 2021-05-19 09:40:41 <-- bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-19 09:40:44 <-- jesseTree (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Remote host closed the connection) 2021-05-19 09:40:46 <-- kindablue (kindablue@gateway/vpn/protonvpn/kindablue) has quit (Client Quit) 2021-05-19 09:40:51 grawity varaindemian: by e.g. using an 'if' block to check one case then the other 2021-05-19 09:40:54 <-- mingdao (~mingdao@unaffiliated/mingdao) has quit (Client Quit) 2021-05-19 09:41:12 --> jesseTree (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-19 09:41:30 varaindemian grawity: there are too many ways i might find these values :( 2021-05-19 09:41:30 -- some02 is now known as sudden 2021-05-19 09:42:06 <-- laxask (~lax@unaffiliated/laxask) has quit (Ping timeout: 240 seconds) 2021-05-19 09:42:40 --> mingdao (~mingdao@unaffiliated/mingdao) has joined #python 2021-05-19 09:43:06 --> ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has joined #python 2021-05-19 09:43:31 varaindemian grawity: I might also treat the file as something else? 2021-05-19 09:43:37 varaindemian as a plain text file 2021-05-19 09:43:40 --> gulzar (~gulzar@106.213.109.244) has joined #python 2021-05-19 09:43:41 --> MrFrobozz (68a6fb8b@104.166.251.139) has joined #python 2021-05-19 09:43:54 grawity it really sounds like an "extremely last-resort" approach 2021-05-19 09:43:58 <-- cantstanya (~chatting@gateway/tor-sasl/cantstanya) has quit (Remote host closed the connection) 2021-05-19 09:44:10 varaindemian :( 2021-05-19 09:44:21 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-19 09:44:44 varaindemian ten how can I solve this? Basically I need to interate over an unkown number of imbricated dictionaries to find a key 2021-05-19 09:44:48 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-19 09:45:03 --> john2gb0 (~john2gb@94-225-47-8.access.telenet.be) has joined #python 2021-05-19 09:45:19 grawity where do those dicts come from? I'm really curious what kind of data it is, tbh 2021-05-19 09:46:19 stevieh when if the "source_port" is unique, you could recurse through all dictionairies... 2021-05-19 09:46:39 --> cantstanya (~chatting@gateway/tor-sasl/cantstanya) has joined #python 2021-05-19 09:46:41 --> nubonix (uid492751@gateway/web/irccloud.com/x-yltyhtmiolsfolwt) has joined #python 2021-05-19 09:46:46 gulzar Hi. may be regex problem. I have a file where first column is names. I need to pickup lines with names Will, Harry, Jas . I can do if line[0] in [will, harry, jas] . Problem is if the names in files are Will_Smith, Harry_Potter, Ober_Jas then how to pick the lines? regex will work but I need to make 3 different re.compile. What If I need to pick up 10 names. 10 re.compile doesn't seems good idea. Any sugestions please 2021-05-19 09:47:22 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 268 seconds) 2021-05-19 09:47:26 <-- sudden (~lax@unaffiliated/laxask) has quit (Quit: leaving) 2021-05-19 09:47:31 <-- ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-19 09:47:32 <-- lucascastro (~lucascast@45-167-143-6.netfacil.inf.br) has quit (Ping timeout: 246 seconds) 2021-05-19 09:47:44 --> laxask (~lax@unaffiliated/laxask) has joined #python 2021-05-19 09:48:03 --> bjelleklang (~c@wikipedia/Bjelleklang) has joined #python 2021-05-19 09:48:18 supakeen `if line[0].casefold().startswith("harry"):`. 2021-05-19 09:48:41 gulzar the name can be potter_harry 2021-05-19 09:48:51 <-- existx (existx@sticky.supergreenstuff.com) has quit (Quit: leaving) 2021-05-19 09:49:05 grawity so more precisely, which part of the name do you want to check? 2021-05-19 09:49:08 supakeen Then you need to make a definitive list of all possible ways a name can be written down. 2021-05-19 09:49:15 grawity the word before the "_"? the word after the "_"? either of them? 2021-05-19 09:49:16 supakeen And which parts you want to perform your matching on. 2021-05-19 09:49:26 supakeen Or do you 'just' want a substring match? 2021-05-19 09:49:43 supakeen e.g. in `harry_harry` which part do you want to match. 2021-05-19 09:49:53 --> enkrypt (~enkrypt@onosendai.root.sx) has joined #python 2021-05-19 09:49:54 gulzar grawity: yes either side and any caps. "_" is present as of now so it's premanent. 2021-05-19 09:49:58 --> efm (~efm@vpn.tummy.com) has joined #python 2021-05-19 09:50:11 grawity like if you want to check either side, then I might go with `if {*line[0].casefold().split("_")} & {"will", "harry", "jas"}:` 2021-05-19 09:50:28 gulzar supakeen: in that case any side. Because we want harry. it can be harry_m. harry_m_s_g, a_B_vdf_harry_asdf_a 2021-05-19 09:50:34 --> DnzAtWrk (~DnzAtWrk@1763.pc.puv.fi) has joined #python 2021-05-19 09:51:07 gulzar current list i have are two words with _ so tha't the best case 2021-05-19 09:51:28 gulzar casefold is new. checking 2021-05-19 09:52:12 supakeen casefold() is lower() but better as some letters might not have lowercase equivalents 2021-05-19 09:52:21 --> al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-19 09:52:53 gulzar what about case. what if name is PoTTer_HaRRy 2021-05-19 09:53:13 --> rinzewind (~chema@unaffiliated/rinzewind) has joined #python 2021-05-19 09:53:19 nubonix Hello, I would like to pull data from a website that has currency-pair tick data so that I can do things with this data, suchas creating my own charts, apply my own indicators, and perhaps send trades. The websocket uses a wss to send data to the browser, and I am trying to replicate this without the browser. There is no documentation that I can find that supports this, nor any programming for this exchange/broker 2021-05-19 09:53:19 nubonix [quotex]. What im really trying to do at the moment is automate looking for trade entries based upon a strategy i would like to test. I am attempting to pull the data via a http stream, and the server seems to respond correctly [101 returned status code, the browser gives the same response when initializing the wss connection]. My attempt with the websocket-client library failed with a 400 returned status code. Here is 2021-05-19 09:53:19 nubonix my attempt via a https stream: https://bpa.st/QXDA 2021-05-19 09:53:20 --> ogo (~ogo@gateway/tor-sasl/ogo) has joined #python 2021-05-19 09:53:27 gulzar grawity: ^ 2021-05-19 09:53:53 grawity gulzar: same answer, already calls casefold() 2021-05-19 09:54:02 gulzar oh ok 2021-05-19 09:54:36 --> symptom (~symptom@46.7.21.148) has joined #python 2021-05-19 09:54:50 gulzar grawity: now worst case. Not incountered yet. What if instead of _ there is nothing so it's like "harrypotter" 2021-05-19 09:54:54 --> zoug (c110ec06@193.16.236.6) has joined #python 2021-05-19 09:55:04 grawity what are you expecting from the computer, some magic? 2021-05-19 09:55:39 gulzar hahahaha 2021-05-19 09:55:53 --> dfury (sid375135@gateway/web/irccloud.com/x-cdxhovntxhtaormd) has joined #python 2021-05-19 09:56:23 zoug I have some experience with python, and have a commandline tool for which I would like to write a GUI frontend. However I've never developed a frontend! What would be your recommendations for a simple, easy-to-use, crossplatform GUI for writing this frontend in python? Or, should I consider using another language? Thanks 2021-05-19 09:56:49 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-19 09:57:16 gulzar grawity: thank you 2021-05-19 09:57:20 gulzar supakeen: thank you 2021-05-19 09:58:01 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 09:58:03 --> vrach (uid181202@gateway/web/irccloud.com/x-awpbcukpqpqatngh) has joined #python 2021-05-19 09:58:39 --> aocusr (6d40f9bc@unaffiliated/db42) has joined #python 2021-05-19 09:58:49 aocusr so, is #Python planning on moving to another server ? 2021-05-19 09:59:01 --> akk (~akk@97-123-110-96.albq.qwest.net) has joined #python 2021-05-19 09:59:55 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-19 10:00:07 supakeen "It's being spoken about but there's no answer right now." 2021-05-19 10:00:13 bbear why moving ? 2021-05-19 10:00:14 supakeen Perhaps I should put it in the /topic. 2021-05-19 10:00:18 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-19 10:00:28 aocusr bbear: https://gist.github.com/joepie91/df80d8d36cd9d1bde46ba018af497409 2021-05-19 10:00:37 aocusr is the python discord managed by the same people as here ? 2021-05-19 10:00:48 --> damoreno (~damoreno@redhat/damoreno) has joined #python 2021-05-19 10:00:58 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-19 10:00:59 NoImNotNineVolt it is alleged that andrew lee is attempting a hostile takeover of freenode. 2021-05-19 10:01:14 <-- kilitary (~kilitary@kilitary.ru) has quit (Remote host closed the connection) 2021-05-19 10:01:15 wizzwizz4 NoImNotNineVolt: The only alleged part is "hostile", from what I can tell. 2021-05-19 10:01:26 wizzwizz4 And whether it's a "takeover" or a "reclaimation". 2021-05-19 10:01:28 <-- czer0 (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 265 seconds) 2021-05-19 10:01:35 --> Vornicus (~Vornicus@2603-8000-5d07-7ef0-e8c0-ae73-7695-9dbe.res6.spectrum.com) has joined #python 2021-05-19 10:01:35 damoreno What is a more elegant way of writing this? https://bpa.st/HU4Q 2021-05-19 10:01:37 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 10:01:39 * NoImNotNineVolt just found out about this a few minutes ago 2021-05-19 10:01:45 phy1729 It's a takeover. He had no real involvement other than on paper 2021-05-19 10:01:49 <-- R0b0t1 (~R0b0t1@unaffiliated/r0b0t1) has quit (Ping timeout: 260 seconds) 2021-05-19 10:01:54 wizzwizz4 Visit #python-offtopic; that's where we're discussing this. 2021-05-19 10:02:31 wizzwizz4 Or… perhaps that's where the Python conversations are and here's where the off-topic is? 2021-05-19 10:02:42 <-- rinzewind (~chema@unaffiliated/rinzewind) has quit (Quit: leaving) 2021-05-19 10:03:02 --> rinzewind (~chema@unaffiliated/rinzewind) has joined #python 2021-05-19 10:03:06 supakeen No, but policing this is going to be super annoying as it's going to be brought up every few minutes. 2021-05-19 10:03:22 MrFrobozz Was very confused when I joined #python-offtopic and was greeted with a topic saying "WELCOME TO #rust-offtopic" 2021-05-19 10:03:22 supakeen As I've said I prefer that chat to happen in -offtopic and keep this channel to Python-related questions :) 2021-05-19 10:04:00 --> banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has joined #python 2021-05-19 10:04:38 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-19 10:05:06 <-- mingdao (~mingdao@unaffiliated/mingdao) has quit (Quit: leaving) 2021-05-19 10:05:19 --> fcjsx (~fcjsx_@2800:a4:832:2900:c257:72be:abc9:7324) has joined #python 2021-05-19 10:05:22 --> mingdao (~mingdao@unaffiliated/mingdao) has joined #python 2021-05-19 10:05:26 <-- fcjsx (~fcjsx_@2800:a4:832:2900:c257:72be:abc9:7324) has quit (Remote host closed the connection) 2021-05-19 10:05:40 <-- MrFrobozz (68a6fb8b@104.166.251.139) has left #python 2021-05-19 10:05:43 <-- h4rd3n3D1 (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-19 10:06:01 varaindemian grawity: they are jsons but different flavors 2021-05-19 10:06:06 <-- dfury (sid375135@gateway/web/irccloud.com/x-cdxhovntxhtaormd) has left #python 2021-05-19 10:06:15 <-- kamyl (~user@unaffiliated/kamyl) has quit (Quit: nicksrv) 2021-05-19 10:06:16 varaindemian grawity: semi rendomly generated 2021-05-19 10:06:27 --> kamyl (~user@unaffiliated/kamyl) has joined #python 2021-05-19 10:06:41 <-- Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has quit (Ping timeout: 240 seconds) 2021-05-19 10:07:02 <-- deepend (~za-lord@unaffiliated/za-lord) has left #python ("WeeChat 2.8") 2021-05-19 10:07:38 --> Dejan (~dejan@unaffiliated/dejan) has joined #python 2021-05-19 10:07:41 <-- maum (01f5931e@1.245.147.30) has quit (Quit: Connection closed) 2021-05-19 10:07:56 <-- v01d4lph4 (~v01d4lph4@122.160.65.250) has quit (Remote host closed the connection) 2021-05-19 10:08:04 -- Mode #python [-o supakeen] by ChanServ 2021-05-19 10:08:29 -- Mode #python [-o supakeen] by ChanServ 2021-05-19 10:08:39 --> glik22 (~glik22@99-36-164-253.lightspeed.snjsca.sbcglobal.net) has joined #python 2021-05-19 10:08:41 <-- blip- (~blip-@unaffiliated/blip-) has quit (Ping timeout: 240 seconds) 2021-05-19 10:08:58 --> en7ropy (~en7ropy@unaffiliated/en7ropy) has joined #python 2021-05-19 10:08:58 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-19 10:10:08 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-19 10:10:59 <-- pacbard (~pacbard@150.136.6.216) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-19 10:11:04 <-- Vultyre (~vultyre@157.245.120.179) has left #python ("WeeChat 2.8") 2021-05-19 10:11:08 --> sedeki (~textual@unaffiliated/sedeki) has joined #python 2021-05-19 10:11:50 GiLgAmEzH supakeen: I think it's a good idea to include in the topic 2021-05-19 10:12:23 varaindemian anyone knows?> 2021-05-19 10:12:23 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 10:12:24 GiLgAmEzH supakeen: Other question. Can you please add #pyar (python argentina) to the topic? or how I request it? 2021-05-19 10:12:36 GiLgAmEzH it has been the biggest spanish speakers channel for years 2021-05-19 10:12:45 <-- efm (~efm@vpn.tummy.com) has quit (Quit: Konversation terminated!) 2021-05-19 10:12:56 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 10:13:11 supakeen I can do that for you. 2021-05-19 10:13:22 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-19 10:13:48 <-- BullHorn (BullHorn@unaffiliated/bullhorn) has quit (Quit: ZNC - https://znc.in) 2021-05-19 10:13:50 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-19 10:14:02 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 265 seconds) 2021-05-19 10:14:20 --> BullHorn (BullHorn@unaffiliated/bullhorn) has joined #python 2021-05-19 10:14:24 zoug I have some experience with python, and have a commandline tool for which I would like to write a GUI frontend. However I've never developed a frontend! What would be your recommendations for a simple, easy-to-use, crossplatform GUI for writing this frontend in python? Or, should I consider using another language? Thanks 2021-05-19 10:14:28 --> lucascastro (~lucascast@45-167-143-6.netfacil.inf.br) has joined #python 2021-05-19 10:14:31 -- Mode #python [+o supakeen] by ChanServ 2021-05-19 10:14:35 -- supakeen has changed topic for #python from "Anything about Python is on-topic. Don't paste, use https://bpaste.net/+python | Be nice. The Python CoC applies: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops are at #python-ops | #python-fr #python.de #python-uk #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu" to "Anything about Python is on-topic. Don't paste, use https://bpa.st/+python | Moving from Freenode? It's being spoken about but there's no answer. | Be nice. The Python CoC applies: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops are at #python-ops | #python-fr #python.de #python-uk #python-es #pyar #python.tw #python-br #python-nl #python" 2021-05-19 10:14:42 jfhbrook zoug: pyqt comes to mind 2021-05-19 10:14:42 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-19 10:14:43 -- Mode #python [-o supakeen] by ChanServ 2021-05-19 10:14:50 supakeen GiLgAmEzH: ^ double change :) 2021-05-19 10:15:11 jfhbrook zoug: the stdlib answer is tkinter but it's kinda terrible and hard to get working reliably ime, meanwhile qt is quite nice! 2021-05-19 10:15:17 --> HannaM (~quassel@p54849510.dip0.t-ipconnect.de) has joined #python 2021-05-19 10:15:37 supakeen It seems we've hit topic size limit, let me make that shorter. 2021-05-19 10:16:04 -- mbrndtgn3 is now known as mbrndtgn 2021-05-19 10:16:22 zoug jfhbrook thank you ! i've stumbled upon it but I've made Qt interfaces in C++ back in the days and I feel it's maybe overkill for the simple setup I'm trying to acheive.. thanks! 2021-05-19 10:16:29 amogorkon spam, spam, bpaste, spam, spam, be nice and spam please 2021-05-19 10:16:33 --> SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has joined #python 2021-05-19 10:16:33 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Max SendQ exceeded) 2021-05-19 10:17:09 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-19 10:17:10 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 10:17:17 --> svvs (8d8fc149@gateway/web/cgi-irc/kiwiirc.com/ip.141.143.193.73) has joined #python 2021-05-19 10:17:31 jfhbrook zoug: the library itself is a lil industrial grade I suppose but I think the lift of using it shouldn't be too bad. check out qt quick if you haven't done it in a while 2021-05-19 10:17:31 akk zoug: The simplest is tkinter if your UI is fairly simple and cross-platform is important. Qt and gtk are more powerful but also more complicated, both to program and to install as dependencies. 2021-05-19 10:17:33 grym zoug: people also seem to like kivy these days 2021-05-19 10:17:45 grym zoug: but i am not a GUI maker 2021-05-19 10:17:50 jfhbrook funny enough it's tkinter that I can never get to work 2021-05-19 10:17:54 amogorkon grym \o/ 2021-05-19 10:18:10 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 10:18:18 <-- svvs (8d8fc149@gateway/web/cgi-irc/kiwiirc.com/ip.141.143.193.73) has left #python 2021-05-19 10:18:26 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-19 10:18:30 akk wxwidgets is a fourth option but it seems to combine the disavantages of all the others. :) 2021-05-19 10:19:07 --> Peyam19 (8a6a3984@138.106.57.132) has joined #python 2021-05-19 10:19:08 <-- muhaha (5e7050c8@gateway/web/cgi-irc/kiwiirc.com/ip.94.112.80.200) has quit (Quit: Connection closed) 2021-05-19 10:19:09 zoug jfhbrook akk grym thank you guys I'll check out these! :) 2021-05-19 10:19:11 <-- philh (~philh@46.33.72.18) has quit (Remote host closed the connection) 2021-05-19 10:19:20 <-- MIF (~MIF@heb12/developer/nate) has quit (Remote host closed the connection) 2021-05-19 10:19:20 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 10:19:22 SnoopJ wxWidgets is definitely idiosyncratic 2021-05-19 10:19:22 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Max SendQ exceeded) 2021-05-19 10:19:34 Bombo i'm trying this to run on python2 too: print("HAS_TLSv1[%s] HAS_TLSv1_3[%s]" % (ssl.HAS_TLSv1, ssl.HAS_TLSv1_3)) i get AttributeError: 'module' object has no attribute 'HAS_TLSv1' is there a way to check if the obj has that attr before? 2021-05-19 10:19:55 Peyam19 Hi, I am trying to download a zip file unzip the file , do some stuff with the content of the zip and then remove it. How do I do it? 2021-05-19 10:20:26 --> ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has joined #python 2021-05-19 10:20:29 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-19 10:20:42 supakeen Peyam19: Use a library to perform the HTTP requests then use the `zipfile` module :) 2021-05-19 10:20:51 -- Mode #python [+o supakeen] by ChanServ 2021-05-19 10:20:58 -- supakeen has changed topic for #python from "Anything about Python is on-topic. Don't paste, use https://bpa.st/+python | Moving from Freenode? It's being spoken about but there's no answer. | Be nice. The Python CoC applies: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops are at #python-ops | #python-fr #python.de #python-uk #python-es #pyar #python.tw #python-br #python-nl #python" to "Anything about Python is on-topic. | Don't paste, use https://bpa.st/+python | Moving? It's being spoken about but there's no answer. | CoC: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops: #python-ops | #python-fr #python.de #python-uk #python-es #pyar #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #pytho" 2021-05-19 10:21:02 <-- Peyam (53faecec@c83-250-236-236.bredband.tele2.se) has quit (Ping timeout: 240 seconds) 2021-05-19 10:21:06 -- Mode #python [-o supakeen] by ChanServ 2021-05-19 10:21:11 supakeen Fine, I won't touch it anymore. 2021-05-19 10:21:25 Peyam19 supakeen okej 2021-05-19 10:21:29 gulzar grawity: small thing. what is that asterix * doing? removing it gave me "unhasable type:list" what I know is * is ussed to decalre input of any size like *args 2021-05-19 10:21:37 --> russw (~russw@174.112.137.191) has joined #python 2021-05-19 10:21:49 <-- deniska (~denis@unaffiliated/deniska) has quit (Quit: leaving) 2021-05-19 10:21:53 gulzar is it ebacuse of {} 2021-05-19 10:21:55 grawity basically the same, only the exact opposite 2021-05-19 10:21:58 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 252 seconds) 2021-05-19 10:21:59 --> deniska (~denis@unaffiliated/deniska) has joined #python 2021-05-19 10:22:31 grawity when used as an assignment it collects individual items into a list -- but in this case it expands the list (or other iterable) into individual items 2021-05-19 10:22:40 gulzar ohh ok 2021-05-19 10:22:45 gulzar thank You 2021-05-19 10:22:47 gulzar learned something new 2021-05-19 10:23:18 <-- Suwacc (~Mija@45.248.77.100) has quit (Quit: Suwacc) 2021-05-19 10:23:23 <-- aib42 (~aib@unaffiliated/aib42) has quit (Quit: ZNC - http://znc.in) 2021-05-19 10:23:25 grawity so if you have foo=["a", "b"] then ["x", *foo, "y"] is like ["x", "a", "b", "y"] and similar 2021-05-19 10:23:56 grawity and {} is used for set literals so {*foo} is what I habitually use to convert something into a set, instead of set(foo)... 2021-05-19 10:24:00 --> luke (~luke@bitnomial/staff/luke) has joined #python 2021-05-19 10:25:49 <-- imp (~imp@186.205.11.214) has quit (Quit: imp) 2021-05-19 10:26:44 <-- seednode (~seednode@64-131-31-104.usfamily.net) has left #python ("Nihil supernum.") 2021-05-19 10:27:26 <-- lucascastro (~lucascast@45-167-143-6.netfacil.inf.br) has quit (Ping timeout: 260 seconds) 2021-05-19 10:27:27 IHasFinger Hi all can someone help me please. I am creating a package like https://bpa.st/UQOA but keeping getting module not found 2021-05-19 10:27:35 IHasFinger ModuleNotFoundError: No module named 'entity' 2021-05-19 10:27:51 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 10:28:16 IHasFinger I have follow the documentation and youtube videos and its not working :( 2021-05-19 10:28:30 <-- jushi (~j@2a01:4f9:c010:8455::1) has quit (Quit: jushi) 2021-05-19 10:28:41 --> mguy (~robert@149.28.120.183) has joined #python 2021-05-19 10:28:41 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 240 seconds) 2021-05-19 10:28:55 kevr can i ask for a nonlocal version of a name in the case where a local conflicts with a global (or non-local)? 2021-05-19 10:29:16 kevr s/conflicts with/shadows/ 2021-05-19 10:29:20 ammar2 IHasFinger: how are you running this code? 2021-05-19 10:29:39 <-- diogenese (~diogenese@diogenese.velotech.net) has quit (Quit: Has anybody seen the bridge?) 2021-05-19 10:29:55 --> diogenese (~diogenese@diogenese.velotech.net) has joined #python 2021-05-19 10:30:36 grawity kevr: uh, well there is a globals()["foo"] for the former (assuming the name being shadowed is not 'globals') but that sounds like a deeper problem kind of thing 2021-05-19 10:31:36 --> bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-19 10:31:41 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 240 seconds) 2021-05-19 10:31:41 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 10:31:51 kevr https://bpa.st/JXVA 2021-05-19 10:32:04 IHasFinger ammar2, at the bottom of usercontroller class i am calling the fetch_user like print(userController().fetch_user()) 2021-05-19 10:32:06 --> adv_ (~dbeifn@ppp005055058144.access.hol.gr) has joined #python 2021-05-19 10:32:09 kevr if that's pretty much the way, we can deal with it. 2021-05-19 10:32:19 bjs kevr: there's no good way, inside a scope the name always refers to the same thing, either the local or the global 2021-05-19 10:32:23 <-- vimart (~vimart@85.255.237.202) has quit (Ping timeout: 268 seconds) 2021-05-19 10:32:27 kevr for sure. 2021-05-19 10:32:44 ammar2 IHasFinger: right, how are you running it though? just python packaging_tutorial/controller/user_controller.py? 2021-05-19 10:33:07 IHasFinger using vs code and pressing the play button 2021-05-19 10:33:15 --> CodeMouse92 (~JasonMc92@unaffiliated/codemouse) has joined #python 2021-05-19 10:33:20 adv_ how can i convert a timestamp like 00:00:21.949 to mins (e.g. 1:35) ? 2021-05-19 10:33:37 kevr are you sure that's minutes though? 2021-05-19 10:33:39 ammar2 IHasFinger: okay yeah, so you probably want to install the package you made first. Go into the directory it's in and do a `pip install -e .` 2021-05-19 10:33:41 kevr that looks like 21 s econds and some milliseconds 2021-05-19 10:33:49 IHasFinger ammar2, which tuns python filename.py 2021-05-19 10:33:51 adv_ kevr, yeah the conversion is correct 2021-05-19 10:34:00 adv_ it was just an example 2021-05-19 10:34:00 kevr interesting 2021-05-19 10:34:05 kevr o_O 2021-05-19 10:34:07 bjs adder`: how did you get 1:35 ? 2021-05-19 10:34:10 bjs oops 2021-05-19 10:34:11 kevr ^ 2021-05-19 10:34:15 bjs adv_: how did you get 1:35 ? 2021-05-19 10:34:19 adv_ bjs, meant the format 2021-05-19 10:34:25 kevr looks more like 00:21 to me. 2021-05-19 10:34:31 bjs adv_: okay, well what do you want the real output to be? 2021-05-19 10:34:32 kevr adv_: just truncate the milliseconds off. 2021-05-19 10:35:22 adv_ from this timestamp format i want to output youtube like timestamps 3mins35secs 2021-05-19 10:35:22 <-- f380cedric (a40f4e43@elmitel31.ulb.ac.be) has left #python 2021-05-19 10:35:25 bjs adv_: 21? or 0:21? or 00:21? or 00:00:21 ? 2021-05-19 10:35:37 bjs adv_: okay well 3mins35secs is very different from 1:35 format you had earlier 2021-05-19 10:35:39 <-- jesseTree (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Remote host closed the connection) 2021-05-19 10:35:48 bjs and still I'm not sure how you got 3 minutes and 35 secons from 00:00:21.949 2021-05-19 10:36:06 adv_ bjs, yes i mean "human readable", the conversion isn't corrct 2021-05-19 10:36:07 --> jesseTree (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-19 10:36:09 adv_ correct* 2021-05-19 10:36:35 bjs adv_: given "00:00:21.949" what do you want to output? 2021-05-19 10:36:39 --> AppXprt (4addb5a9@gateway/web/cgi-irc/kiwiirc.com/ip.74.221.181.169) has joined #python 2021-05-19 10:37:00 IHasFinger ammar2, thank you. 2021-05-19 10:37:09 --> Cherenkov (~Cherenkov@a109-49-131-251.cpe.netcabo.pt) has joined #python 2021-05-19 10:37:22 ammar2 IHasFinger: no problem, did it work? :) 2021-05-19 10:37:39 IHasFinger the error is gone but yeah it does :) 2021-05-19 10:38:09 adv_ bjs: 21:94 2021-05-19 10:38:21 <-- tommy`` (~tommy``@unaffiliated/tommy/x-6566540) has quit (Read error: Connection reset by peer) 2021-05-19 10:38:27 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-19 10:38:30 bjs adv_: I thought you just said you wanted something in "XminYsec" format? 2021-05-19 10:38:54 bjs adv_: or "min:sec" 2021-05-19 10:38:54 adv_ sorry, i think that would be 00:21 2021-05-19 10:39:02 bjs adv_: you think? 2021-05-19 10:39:05 bjs which? :) 2021-05-19 10:40:02 <-- swensson (9eaefc22@h-158-174-252-34.NA.cust.bahnhof.se) has quit (Ping timeout: 240 seconds) 2021-05-19 10:40:27 adv_ let me rephrase 2021-05-19 10:40:54 --> SammyToesis (~SammyToes@cpe-76-184-187-146.tx.res.rr.com) has joined #python 2021-05-19 10:40:55 adv_ all that was an awful description 2021-05-19 10:41:12 bjs adv_: maybe you want to datetime.datetime.strptime(that_timestamp, "%H:%M:%S.%f").strftime("%M:%S") # or some variation 2021-05-19 10:41:52 <-- luke (~luke@bitnomial/staff/luke) has quit (Quit: sleep) 2021-05-19 10:41:57 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Ping timeout: 258 seconds) 2021-05-19 10:41:58 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-19 10:43:31 adv_ so i need two conversions. from "00:02:17.970" a. to get to 2.18 and b. t=138 (which is the conversion to seconds for youtube url) 2021-05-19 10:43:55 bjs adv_: you want to take a timestamp and work out the total number of seconds? 2021-05-19 10:44:30 <-- sedeki (~textual@unaffiliated/sedeki) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-19 10:44:34 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Read error: Connection reset by peer) 2021-05-19 10:45:33 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has quit (Quit: Leaving) 2021-05-19 10:46:10 adv_ bjs, yes 2021-05-19 10:46:23 adv_ bjs, your earlier snippet solves a, thanks! 2021-05-19 10:46:42 --> purplex88_ (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-19 10:46:45 <-- Retr0id (~Retr0id@unaffiliated/retr0id) has quit (Quit: bye) 2021-05-19 10:47:05 bjs adv_: maybe datetime is the wrong thing then, as it's not really a date or a time 2021-05-19 10:47:07 --> MJ94_ (mj94@wikimedia/mj94) has joined #python 2021-05-19 10:47:07 -- MJ94_ is now known as MJ94 2021-05-19 10:47:22 <-- akk (~akk@97-123-110-96.albq.qwest.net) has quit (Quit: +++) 2021-05-19 10:48:09 Bombo ok i got a regex question: print(re.sub("(foo)", "[\1]", "bar foo baz")) i want to replace foo with [foo] 2021-05-19 10:48:39 Bombo oh "[\\1]" 2021-05-19 10:48:41 Bombo ;) 2021-05-19 10:48:53 Bombo nvm 2021-05-19 10:49:03 <-- SuperLag (~akulbe@unaffiliated/superlag) has quit (Quit: leaving) 2021-05-19 10:49:19 --> penth (~rachel@pool-74-109-26-143.phlapa.fios.verizon.net) has joined #python 2021-05-19 10:49:47 --> powerhouse (~powerhous@d173-180-29-44.bchsia.telus.net) has joined #python 2021-05-19 10:49:54 --> sabor (~sabor@apache/committer/mf) has joined #python 2021-05-19 10:49:59 <-- jesseTree (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Ping timeout: 245 seconds) 2021-05-19 10:50:26 -- purplex88_ is now known as purplex88 2021-05-19 10:50:29 <-- Jigsy (~Jigsy@unaffiliated/jigsy) has quit (Quit: brb.) 2021-05-19 10:50:50 --> Deknos (~deknos@unaffiliated/menace) has joined #python 2021-05-19 10:50:58 adv_ bjs, it's the timestamp from a video on youtube 2021-05-19 10:51:29 bjs adv_: yeah it's not really a time at all. Time as in "15 minutes past 3 o'clock" time 2021-05-19 10:51:34 bjs but more a timespan 2021-05-19 10:51:35 --> Jigsy (~Jigsy@unaffiliated/jigsy) has joined #python 2021-05-19 10:51:55 --> tommy`` (~tommy``@unaffiliated/tommy/x-6566540) has joined #python 2021-05-19 10:52:05 --> samathy (~samathy@cpc147920-mapp13-2-0-cust149.12-4.cable.virginm.net) has joined #python 2021-05-19 10:52:32 --> Maiya (~paradox@122.172.43.204) has joined #python 2021-05-19 10:52:39 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:989b:41dd:d1e6:c3a3) has quit (Ping timeout: 260 seconds) 2021-05-19 10:53:12 <-- symptom (~symptom@46.7.21.148) has quit (Quit: Leaving) 2021-05-19 10:55:06 --> ThreadRipper3970 (~ThreadRip@75-36-109-142.lightspeed.mmphtn.sbcglobal.net) has joined #python 2021-05-19 10:55:18 pragma- What is the #pytho channel for? 2021-05-19 10:55:21 --> Rapture (~Rapture@71.236.251.149) has joined #python 2021-05-19 10:55:24 * pragma- squints at the /topic 2021-05-19 10:56:03 <-- leduyquang753 (~leduyquan@27.73.107.184) has quit (Quit: leaving) 2021-05-19 10:56:12 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 10:56:29 --> sesser_ (~sesser@107.13.245.224) has joined #python 2021-05-19 10:56:40 nedbat pragma-: the /topic was cut off 2021-05-19 10:57:13 bjs the /topic should probably link to https://www.python.org/community/irc/ and the Other Channels part 2021-05-19 10:57:22 bjs and have the list there 2021-05-19 10:57:24 amogorkon please 2021-05-19 10:57:32 <-- nuala2 (~nuala@unaffiliated/nuala) has quit (Ping timeout: 265 seconds) 2021-05-19 10:57:54 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 10:58:11 <-- sesser (~sesser@107.13.245.224) has quit (Ping timeout: 240 seconds) 2021-05-19 10:59:04 --> paravida (~mychateau@71-208-69-161.ftmy.qwest.net) has joined #python 2021-05-19 10:59:08 --> ddavis (~ddavis@c-24-98-76-80.hsd1.ga.comcast.net) has joined #python 2021-05-19 10:59:50 --> herbas (~herbas@88.118.170.138) has joined #python 2021-05-19 11:00:06 <-- Unode (~Unode@unaffiliated/unode) has quit (Quit: Off it goes) 2021-05-19 11:01:01 --> rigid (~rigid@unaffiliated/rigid) has joined #python 2021-05-19 11:01:27 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-19 11:01:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 11:02:00 --> saint_ (~saint_@unaffiliated/saint-/x-0540772) has joined #python 2021-05-19 11:02:03 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 11:02:41 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-19 11:03:08 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 246 seconds) 2021-05-19 11:03:11 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-19 11:03:27 --> Unode (~Unode@unaffiliated/unode) has joined #python 2021-05-19 11:03:45 --> jarthur (~jarthur@2603-8080-1540-002d-d161-31c0-12d1-b80a.res6.spectrum.com) has joined #python 2021-05-19 11:03:56 --> daviddavis (~hay_sup@unaffiliated/daviddavis) has joined #python 2021-05-19 11:03:57 <-- Unode (~Unode@unaffiliated/unode) has quit (Client Quit) 2021-05-19 11:04:07 <-- ThreadRipper3970 (~ThreadRip@75-36-109-142.lightspeed.mmphtn.sbcglobal.net) has quit (Quit: Konversation terminated!) 2021-05-19 11:04:11 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:b0b4:3818:c834:bc2d) has joined #python 2021-05-19 11:04:11 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 240 seconds) 2021-05-19 11:04:29 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:bd2:c65:4ec0:2a3c) has joined #python 2021-05-19 11:04:44 --> Unode (~Unode@unaffiliated/unode) has joined #python 2021-05-19 11:04:54 <-- bkhl (~bkhl@marsh.hcoop.net) has quit (Quit: ZNC - https://znc.in) 2021-05-19 11:05:00 <-- DnzAtWrk (~DnzAtWrk@1763.pc.puv.fi) has quit (Remote host closed the connection) 2021-05-19 11:05:05 <-- orev (~orev@cpe-174-109-151-117.nc.res.rr.com) has left #python 2021-05-19 11:05:11 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-19 11:05:13 <-- AppXprt (4addb5a9@gateway/web/cgi-irc/kiwiirc.com/ip.74.221.181.169) has quit (Quit: Connection closed) 2021-05-19 11:05:13 --> bkhl (~bkhl@marsh.hcoop.net) has joined #python 2021-05-19 11:05:23 --> Rothschild666 (~Rothschil@c-69-249-29-95.hsd1.pa.comcast.net) has joined #python 2021-05-19 11:05:23 <-- spal (~spal@pdpc/supporter/active/spal) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-19 11:05:59 --> todda7 (~torstein@2a02:587:3729:5274:b6df:d74:d185:4e87) has joined #python 2021-05-19 11:06:18 <-- Death916 (~UserNick@unaffiliated/death916) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-19 11:06:21 --> locsmif (~none@unaffiliated/locsmif) has joined #python 2021-05-19 11:06:22 --> DnzAtWrk (~DnzAtWrk@1763.pc.puv.fi) has joined #python 2021-05-19 11:06:32 <-- Cherenkov (~Cherenkov@a109-49-131-251.cpe.netcabo.pt) has quit (Read error: Connection reset by peer) 2021-05-19 11:06:35 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-19 11:07:18 mefistofeles .topic 2021-05-19 11:07:20 mefistofeles err 2021-05-19 11:07:36 <-- daviddavis (~hay_sup@unaffiliated/daviddavis) has left #python ("WeeChat 2.7.1") 2021-05-19 11:07:42 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-19 11:07:54 <-- Death916 (UserNick@unaffiliated/death916) has quit (Remote host closed the connection) 2021-05-19 11:08:02 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-19 11:08:03 * amogorkon offers mefistofeles a left-over / 2021-05-19 11:08:04 <-- penth (~rachel@pool-74-109-26-143.phlapa.fios.verizon.net) has quit (Quit: Ex-Chat) 2021-05-19 11:08:22 mefistofeles amogorkon: thanks! haha 2021-05-19 11:08:24 <-- parabolize (~paraboliz@98.43.173.221) has quit (Quit: Changing server) 2021-05-19 11:09:05 --> pyeverything (~mona@c-66-31-107-137.hsd1.ma.comcast.net) has joined #python 2021-05-19 11:09:08 pyeverything I have a native python virtual environment installed in /scratch3/venv/phosa/bin/python3.8 how can I copy or reinstall the same version of all pip package inside this environment call phosa in /research/jalal/venv folder? 2021-05-19 11:09:28 amogorkon mefistofeles, always useful to have one of those laying around :] 2021-05-19 11:09:30 --> tuxillo (~antonioh@5.225.227.179) has joined #python 2021-05-19 11:09:32 tuxillo hi 2021-05-19 11:09:32 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-19 11:09:36 amogorkon hi tuxillo 2021-05-19 11:09:40 --> Anas__G (~Thunderbi@102.156.242.5) has joined #python 2021-05-19 11:09:48 <-- Death916 (UserNick@unaffiliated/death916) has quit (Remote host closed the connection) 2021-05-19 11:09:57 --> fofoni (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has joined #python 2021-05-19 11:10:25 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-19 11:10:31 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Quit: Leaving) 2021-05-19 11:10:36 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has joined #python 2021-05-19 11:10:47 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-19 11:10:48 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-19 11:11:05 tuxillo for xml.etree.ElementTree, how do I preserve already escaped characters? for example my " gets converted into &quot; 2021-05-19 11:11:12 tuxillo it's escaping the ampersand 2021-05-19 11:11:13 Dejan pyeverything, enter the phosa environment, and use pip freeze to output 2021-05-19 11:11:20 Dejan save that to a file 2021-05-19 11:11:32 Dejan and in a new environment use that file to install exact packages 2021-05-19 11:12:19 <-- spiri (~spiri@unaffiliated/spiri) has quit (Quit: Leaving) 2021-05-19 11:12:38 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-19 11:12:39 Dejan I always wanted python3 -m venv clone 2021-05-19 11:13:02 pyeverything dejan let me see thanks 2021-05-19 11:13:20 --> sagax (~sagax_nb@213.138.71.146) has joined #python 2021-05-19 11:14:09 <-- ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-19 11:14:27 --> Mocramis (~mocramis@dalaran.sceen.net) has joined #python 2021-05-19 11:14:27 --> parabolize (~paraboliz@98.43.173.221) has joined #python 2021-05-19 11:14:34 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 11:14:46 pyeverything dejan here it is https://pastebin.com/raw/qdHjrntz 2021-05-19 11:14:48 infobob https://bpaste.net/SZDA (repasted for pyeverything) 2021-05-19 11:14:51 Mocramis Will #python move to libera ? 2021-05-19 11:15:04 Mocramis (or anything else for that matter) ? 2021-05-19 11:15:26 amogorkon Mocramis, #python-offtopic and no, so far 2021-05-19 11:15:28 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 11:15:30 --> ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has joined #python 2021-05-19 11:15:32 pyeverything (11:11:33 AM) Dejan: and in a new environment use that file to install exact packages --> how do you do that 2021-05-19 11:15:36 Mocramis amogorkon: ha sorry 2021-05-19 11:15:37 Dejan pyeverything, what I meant was: pip freeze > /tmp/phosa.req 2021-05-19 11:15:52 Dejan and when you activate new environment, use that file as requirements file 2021-05-19 11:16:04 pyeverything dejan the file extension is req or txt or yaml? i see various extensions being used 2021-05-19 11:16:04 -- denisse is now known as denisse__ 2021-05-19 11:16:05 Dejan to install exactly the same packages 2021-05-19 11:16:05 <-- samathy (~samathy@cpc147920-mapp13-2-0-cust149.12-4.cable.virginm.net) has quit (Quit: WeeChat 1.6) 2021-05-19 11:16:13 Dejan it can be anything really 2021-05-19 11:16:14 -- denisse__ is now known as denisse 2021-05-19 11:16:14 --> IanWizard (~IanWizard@unaffiliated/ianwizard) has joined #python 2021-05-19 11:16:17 Dejan i prefer .req 2021-05-19 11:16:18 Dejan :) 2021-05-19 11:16:20 pyeverything how do you install it using this file? dejan 2021-05-19 11:16:20 --> jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has joined #python 2021-05-19 11:16:30 Dejan just like you use requirements files in all other cases 2021-05-19 11:16:32 --> plutoniix (~q@node-ujl.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-19 11:16:40 Dejan pip3 install -U -r /tmp/phosa.req 2021-05-19 11:16:41 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Ping timeout: 240 seconds) 2021-05-19 11:16:47 Dejan or no -U 2021-05-19 11:16:49 Dejan better no -U :) 2021-05-19 11:17:09 Dejan idk, maybe you will need it, check it out 2021-05-19 11:17:36 pyeverything how do you specify python 3.8 though when making a virtual environment? 2021-05-19 11:17:46 pyeverything I want to make a virtual environment first 2021-05-19 11:17:48 --> R0b0t1 (~R0b0t1@unaffiliated/r0b0t1) has joined #python 2021-05-19 11:17:49 pyeverything named phosa 2021-05-19 11:17:54 Dejan python3.8 -m venv my_new_env 2021-05-19 11:17:56 bjs pyeverything: python3.8 -m venv venvName 2021-05-19 11:17:58 --> purplex88 (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-19 11:18:21 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 260 seconds) 2021-05-19 11:18:42 Dejan on most modern distros it is called python3.8 if it is not on yours you need to find where is your Python 3.8 installed 2021-05-19 11:19:03 <-- Mocramis (~mocramis@dalaran.sceen.net) has left #python ("WeeChat 2.3") 2021-05-19 11:19:11 Dejan (I assume you use Linux here, which may not be the case) 2021-05-19 11:19:46 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-19 11:20:07 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-19 11:20:36 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-19 11:20:59 <-- Dantalio- (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has quit (Ping timeout: 246 seconds) 2021-05-19 11:21:01 Dejan speaking about libera... simply go to OFTC, that is what I would recommend 2021-05-19 11:21:07 --> LuxuryMode (uid91005@gateway/web/irccloud.com/x-sdobgkdzldsxsgnc) has joined #python 2021-05-19 11:21:08 --> Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has joined #python 2021-05-19 11:22:15 <-- arf` (~arf@trois.potager.org) has left #python 2021-05-19 11:22:15 --> panikovsky (~panikovsk@87.117.48.120) has joined #python 2021-05-19 11:22:15 --> FozzyB3ar (~f0zzyB3ar@136.37.127.43) has joined #python 2021-05-19 11:22:16 <-- very_sneaky (~very_snea@45.67.96.24) has quit (Quit: very_sneaky) 2021-05-19 11:22:26 <-- Anas__G (~Thunderbi@102.156.242.5) has quit (Remote host closed the connection) 2021-05-19 11:22:42 --> very_sneaky (~very_snea@45.67.96.24) has joined #python 2021-05-19 11:23:26 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 260 seconds) 2021-05-19 11:23:39 pyeverything phosbjs dejan I got an error https://pastebin.com/raw/fx416hh6 2021-05-19 11:23:40 infobob https://bpaste.net/ZCCA (repasted for pyeverything) 2021-05-19 11:24:12 pyeverything ERROR: Could not find a version that satisfies the requirement detectron2==0.2 (from -r /scratch3/research/code/phosa-dawnlight/phosa.req (line 12)) (from versions: none) 2021-05-19 11:24:15 --> lucascastro (~lucascast@177-185-133-236.dynamic.isotelco.net.br) has joined #python 2021-05-19 11:24:23 pyeverything even though it was in my pip freeze 2021-05-19 11:25:05 Dejan well, only you know how you got detectron2 ... i can't help with that 2021-05-19 11:25:10 <-- varaindemian (~oct@86.124.78.162) has quit (Quit: Lost terminal) 2021-05-19 11:25:12 --> jinie (~jimmy@188.114.173.37) has joined #python 2021-05-19 11:25:22 <-- parabolize (~paraboliz@98.43.173.221) has quit (Quit: leaving) 2021-05-19 11:25:36 --> karlpinc (~user@karlpinc-net.karlpinc.com) has joined #python 2021-05-19 11:25:44 <-- Unode (~Unode@unaffiliated/unode) has quit (Quit: Off it goes) 2021-05-19 11:26:10 --> Unode (~Unode@unaffiliated/unode) has joined #python 2021-05-19 11:26:24 <-- jlebrech (~jlebrech@109.100.136.123) has quit (Quit: Leaving) 2021-05-19 11:26:25 --> natim87 (sid286962@gateway/web/irccloud.com/x-imszzbhqovbmpieq) has joined #python 2021-05-19 11:26:49 --> onlyopen (~onlyopen@fsf/member/onlyopen) has joined #python 2021-05-19 11:27:12 natim87 Hello smart people, I am having a strange Python behaviour maybe some of you can help. 2021-05-19 11:27:18 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-19 11:27:31 <-- herbas (~herbas@88.118.170.138) has quit (Quit: herbas) 2021-05-19 11:27:50 <-- damoreno (~damoreno@redhat/damoreno) has quit (Remote host closed the connection) 2021-05-19 11:27:50 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 11:27:59 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 265 seconds) 2021-05-19 11:28:17 natim87 Python crashes wit free(): invalid pointer 2021-05-19 11:28:17 natim87 We ran it using PYTHONFAULTHANDLER=1 to get a traceback but we don't understand it 2021-05-19 11:28:17 natim87 https://www.irccloud.com/pastebin/kifFQWhq/stacktrace.txt 2021-05-19 11:28:22 --> rgr (~rgr@ip-109-42-113-104.web.vodafone.de) has joined #python 2021-05-19 11:28:30 --> mad_moses (~mad_moses@2a02:810b:f3f:f0d0:d250:99ff:fe86:b052) has joined #python 2021-05-19 11:29:36 mad_moses Hi, what is happening if I inheritance from two classes which implement both a method test()? Which one will be applied? both (sequentiell)? 2021-05-19 11:29:52 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-19 11:30:26 <-- bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-19 11:30:36 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-19 11:30:38 amogorkon mad_moses, iirc the rightmost one 2021-05-19 11:31:05 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 11:31:29 bjs "rightmost" ? 2021-05-19 11:31:30 natim87 Apparently installing protouf 3.16.0 rather than 3.17.0 seems to fix the issue 🤔 2021-05-19 11:31:35 amogorkon you can test it easily, just write two classes and a third that inherits from both 2021-05-19 11:31:44 amogorkon bjs, from left to right? 2021-05-19 11:31:53 <-- e99 (~e99@xbox-scene.site) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-19 11:32:06 bjs mad_moses: if you have a `class C(A,B): ...` an you lookup `c.foo()` it first looks for foo on C, then on A, then on B, until it finds it, then it calls that one 2021-05-19 11:32:07 bjs and only that one. 2021-05-19 11:32:32 bjs mad_moses: (there's a complicated algorithm for when A and B also have multiple parents, or if they share parents, but it's the same idea) 2021-05-19 11:32:42 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-19 11:32:46 natim87 It might be related to https://github.com/protocolbuffers/protobuf/pull/8530/files 2021-05-19 11:32:55 mad_moses amogorkon: https://github.com/pennersr/django-allauth/blob/master/allauth/account/views.py#L217 => RedirectAuthenticatedUserMixin and CloseableSignupMixin both implement desipatch but I will only call CloseableSignupMixin dispatch method and completely ignore RedirectAuthenticatedUserMixin dispatch method? 2021-05-19 11:33:32 <-- finkata1 (~finkata@83.222.188.39) has quit (Ping timeout: 240 seconds) 2021-05-19 11:33:54 amogorkon bjs, if all classes implement the same method, it uses the one that is "rightest" (or whatever is the word) 2021-05-19 11:34:13 --> cthu| (~cthulchu@193.194.107.250) has joined #python 2021-05-19 11:34:20 --> jfpoole (~textual@135-23-210-183.cpe.pppoe.ca) has joined #python 2021-05-19 11:34:53 amogorkon (except the one inheriting, that is) 2021-05-19 11:34:54 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-19 11:35:01 bjs amogorkon: I'm not sure what you mean by "rightest" ? 2021-05-19 11:35:24 bjs unless you mean right as in correct, then yes it uses the most correct one :) 2021-05-19 11:35:27 amogorkon sigh, nvm, you can explain better 2021-05-19 11:35:47 Yhg1s 'first in the method resolution order' :) 2021-05-19 11:35:49 bjs Python makes an order, and it picks the first one that implements it. 2021-05-19 11:35:52 --> momomo (~momomo@c-dc74524e.016-77-73746f43.bbcust.telenor.se) has joined #python 2021-05-19 11:36:09 bjs then super() in that one gives you the next in the order that implements it, and so on 2021-05-19 11:36:23 <-- Unode (~Unode@unaffiliated/unode) has quit (Quit: Off it goes) 2021-05-19 11:36:33 amogorkon Yhg1s, resolution order was the word i was looking for :| 2021-05-19 11:36:42 mad_moses Hmm, wrote a small script and it applies the "leftest" 2021-05-19 11:36:43 --> skipworthy (~quassel@174.16.66.255) has joined #python 2021-05-19 11:36:51 <-- rossw (~rossw@cpc158585-brad24-2-0-cust291.17-1.cable.virginm.net) has left #python ("WeeChat 2.8") 2021-05-19 11:37:05 --> malmalmal (~malmalmal@95.169.232.47) has joined #python 2021-05-19 11:37:11 mad_moses https://dpaste.org/kSbG output is 'a' 2021-05-19 11:37:27 --> ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has joined #python 2021-05-19 11:37:28 --> betuxy (2e7220ba@gateway/web/cgi-irc/kiwiirc.com/ip.46.114.32.186) has joined #python 2021-05-19 11:37:31 mad_moses but the "rightest" is B? 2021-05-19 11:38:03 --> Unode (~Unode@unaffiliated/unode) has joined #python 2021-05-19 11:38:16 <-- malmalmal (~malmalmal@95.169.232.47) has quit (Read error: Connection reset by peer) 2021-05-19 11:38:27 Yhg1s mad_moses: 'A' is first in the order, because it's first in the list of classes in C. 2021-05-19 11:38:30 --> drvanon (b9262aac@185.38.42.172) has joined #python 2021-05-19 11:38:39 amogorkon method resolution order, mro 2021-05-19 11:38:51 mad_moses okay 2021-05-19 11:39:04 betuxy Hey guys, can i ask a general question about python? i've heard a lot about big data with python, crunching a lot of numbers. How is it viable to do it with an interpreted language instead something like c(++) or rust? 2021-05-19 11:39:23 <-- locsmif (~none@unaffiliated/locsmif) has quit (Quit: leaving) 2021-05-19 11:39:32 Yhg1s betuxy: the answer is complicated. the simple answer is that you can offload work to non-dynamic bits. 2021-05-19 11:39:35 amogorkon mad_moses, http://www.srikanthtechnologies.com/blog/python/mro.aspx maybe helps 2021-05-19 11:39:36 <-- stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Read error: Connection reset by peer) 2021-05-19 11:39:44 grawity my understanding is that mostly they use python to call modules written in C(++) or rust 2021-05-19 11:39:54 amogorkon or fortran 2021-05-19 11:39:55 amogorkon or.. 2021-05-19 11:40:00 grawity similar to how one would write shellscripts to glue things together 2021-05-19 11:40:21 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-19 11:40:24 <-- SwiftMatt (~Objective@2601:282:4300:3e:34a3:5ae8:3915:9e1c) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-19 11:40:52 --> carloratm (carloratm@tilde.club) has joined #python 2021-05-19 11:41:02 --> nuala2 (~nuala@unaffiliated/nuala) has joined #python 2021-05-19 11:41:09 <-- dreamer (~henk@unaffiliated/dreamer) has quit (Quit: leaving) 2021-05-19 11:41:36 --> zro (~zro@wikimedia/zro) has joined #python 2021-05-19 11:42:16 bjs mad_moses: for each class, Python makes a list of base classes, and then when looking up an attribute or method on an instance, it goes through that list one-by-one. You can see the list by doing print(C.__mro__) 2021-05-19 11:42:28 <-- zoug (c110ec06@193.16.236.6) has quit (Quit: Connection closed) 2021-05-19 11:42:42 <-- fabs (~fabs@samba.ethz.ch) has quit (Remote host closed the connection) 2021-05-19 11:42:52 <-- bomb-on (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-19 11:42:55 --> heyitsrama (~heyitsram@2601:641:400:423:3443:e120:59fc:d843) has joined #python 2021-05-19 11:43:00 --> bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has joined #python 2021-05-19 11:43:25 bjs mad_moses: the way it is constructed is, it starts with the class itself, and then tries to go left->right through the base classes (and the base classes of those etc), but with a condition that all the base classes come after the parents. 2021-05-19 11:43:42 mad_moses thank you 2021-05-19 11:43:49 explodes libera? 2021-05-19 11:44:09 <-- explodes (~explodes@unaffiliated/explodes) has left #python ("WeeChat 3.1") 2021-05-19 11:44:09 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-19 11:44:13 nedbat explodes: did you have a fuller expression of your question? 2021-05-19 11:44:20 betuxy grawity: ah okay that makes sense, are these modules in a python lib or is it more an external binary which gets used? 2021-05-19 11:44:22 <-- rapha (~rapha@unaffiliated/rapha) has left #python ("WeeChat 2.3") 2021-05-19 11:44:44 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-19 11:44:47 bjs so if you had `class A(B,C)` and `class B(D,E)` then it'd be like [A,B,D,E,C,object] 2021-05-19 11:45:01 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-19 11:45:06 <-- DnzAtWrk (~DnzAtWrk@1763.pc.puv.fi) has quit (Ping timeout: 240 seconds) 2021-05-19 11:45:12 todda7 how to make manual version of functool.wraps? I want to concat docs and arguments, and keep function name intact 2021-05-19 11:45:50 nedbat todda7: i'm not sure what you mean by a manual version? Why can't you use the real functool.wraps? 2021-05-19 11:46:02 grawity betuxy: they're libraries (as in DLL or .so files) that can be imported directly as a python module 2021-05-19 11:46:03 todda7 nedbat: how 2021-05-19 11:46:08 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-19 11:46:26 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-19 11:46:44 --> gothicserpent (~gothicser@static-198-54-129-84.cust.tzulo.com) has joined #python 2021-05-19 11:46:53 nedbat todda7: i guess i don't know what you're trying to do. Can you show us an example of the result you want? 2021-05-19 11:47:11 --> raymond__ (~raymond@unaffiliated/rainmkr) has joined #python 2021-05-19 11:47:39 todda7 given fn1 and fn2, make it so that fn1 appears to have args of fn1+fn2. and concat doc of fn1 and fn2 2021-05-19 11:47:46 --> LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has joined #python 2021-05-19 11:47:47 grawity betuxy: so you `import numpy` or something and Python loads the appropriate numpy.so that provides Python classes just like an "interpreted" module would 2021-05-19 11:48:14 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-19 11:48:16 <-- Haudegen (~quassel@91.114.49.10) has quit (Quit: Bin weg.) 2021-05-19 11:48:38 grawity betuxy: (and in addition to that, there are also python modules such as 'ffi' or 'ctypes' that let you call into *any* DLL/.so even if it's not a python module, though of course that's much more cumbersome... but e.g. python-oscrypto uses ffi to call into OpenSSL) 2021-05-19 11:48:42 <-- mcsontos (~mcsontos@95.82.134.89) has quit (Quit: Leaving) 2021-05-19 11:48:44 --> fabs (~fabs@samba.ethz.ch) has joined #python 2021-05-19 11:48:52 habnabit_ cffi 2021-05-19 11:49:15 SnoopJ note: a *lot* of numpy is written in Python 2021-05-19 11:49:44 SnoopJ but most of the hot code lives in C 2021-05-19 11:49:59 nedbat todda7: you can use the code and adapt it: https://github.com/python/cpython/blob/main/Lib/functools.py#L25-L77 2021-05-19 11:50:35 SnoopJ changing the function signature sounds a little strange, though 2021-05-19 11:53:11 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 260 seconds) 2021-05-19 11:53:18 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-19 11:53:24 <-- tuxillo (~antonioh@5.225.227.179) has left #python ("Using Circe, the loveliest of all IRC clients") 2021-05-19 11:53:48 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-19 11:53:54 <-- BullHorn (BullHorn@unaffiliated/bullhorn) has quit (Quit: ZNC - https://znc.in) 2021-05-19 11:54:41 <-- skipworthy (~quassel@174.16.66.255) has left #python ("http://quassel-irc.org - Chat comfortably. Anywhere.") 2021-05-19 11:56:16 <-- chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-19 11:56:17 --> dcollins (~dcollins@magicjudges/l3/dcollins) has joined #python 2021-05-19 11:57:41 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-ksjtczmbucrmghnk) has joined #python 2021-05-19 11:57:50 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 11:58:55 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-19 11:59:09 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-19 11:59:12 <-- Jormungandr89 (~brad@136.49.61.2) has quit (Quit: Konversation terminated!) 2021-05-19 12:00:05 --> Soo_Slow (Soo_Slow@gateway/vpn/privateinternetaccess/sooslow/x-31376162) has joined #python 2021-05-19 12:00:22 --> bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-19 12:00:38 --> englosh (3eb0fc03@pool-3.252.176.62.dynamic.wobline-ip.de) has joined #python 2021-05-19 12:00:56 --> DnzAtWrk (~DnzAtWrk@1763.pc.puv.fi) has joined #python 2021-05-19 12:00:57 --> Jormungandr89 (~brad@136.49.61.2) has joined #python 2021-05-19 12:01:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 12:01:10 --> idna (~groot@188.27.33.187) has joined #python 2021-05-19 12:01:54 --> reas0n (ce53306f@gateway/web/cgi-irc/kiwiirc.com/ip.206.83.48.111) has joined #python 2021-05-19 12:02:03 --> omenius13337 (~omenius@2001:2003:f58c:a000:214a:f9ce:3ccd:d6e5) has joined #python 2021-05-19 12:02:09 <-- idna (~groot@188.27.33.187) has quit (Client Quit) 2021-05-19 12:02:22 --> node1 (~o@unaffiliated/node1) has joined #python 2021-05-19 12:02:24 <-- Soo_Slow (Soo_Slow@gateway/vpn/privateinternetaccess/sooslow/x-31376162) has quit (Remote host closed the connection) 2021-05-19 12:02:34 <-- Asmodean (~Asmoedean@91.141.1.54.wireless.dyn.drei.com) has quit (Quit: leaving) 2021-05-19 12:02:45 --> idna (~groot@188.27.33.187) has joined #python 2021-05-19 12:03:19 --> omenius (~omenius@2001:2003:f58c:a000:487b:303d:58f:ae74) has joined #python 2021-05-19 12:03:31 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-19 12:04:58 <-- betuxy (2e7220ba@gateway/web/cgi-irc/kiwiirc.com/ip.46.114.32.186) has quit (Ping timeout: 252 seconds) 2021-05-19 12:05:16 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-19 12:05:22 --> trwired (ingwar@chlor.kofeina.net) has joined #python 2021-05-19 12:05:37 --> shantanoo (~shantanoo@p3m/member/shantanoo) has joined #python 2021-05-19 12:05:41 <-- digitalD (~dp@c-107-2-197-75.hsd1.co.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-19 12:05:57 <-- omenius1337 (~omenius@dsl-hkibng22-54f98c-160.dhcp.inet.fi) has quit (Ping timeout: 260 seconds) 2021-05-19 12:06:23 <-- omenius13337 (~omenius@2001:2003:f58c:a000:214a:f9ce:3ccd:d6e5) has quit (Ping timeout: 250 seconds) 2021-05-19 12:06:26 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 12:06:51 --> vimart (~vimart@185.69.144.247) has joined #python 2021-05-19 12:07:02 --> rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has joined #python 2021-05-19 12:07:35 <-- UniFreak (uid188635@gateway/web/irccloud.com/x-oiesetxjfcrgjvbz) has quit (Quit: Connection closed for inactivity) 2021-05-19 12:07:36 <-- Dejan (~dejan@unaffiliated/dejan) has quit (Quit: Leaving) 2021-05-19 12:08:16 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Quit: Leaving) 2021-05-19 12:08:36 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-19 12:09:41 <-- gulzar (~gulzar@106.213.109.244) has quit (Quit: Konversation terminated!) 2021-05-19 12:09:42 --> mangold (~mangold@198.98.183.62) has joined #python 2021-05-19 12:09:50 --> tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has joined #python 2021-05-19 12:10:00 --> irc_user (uid423822@gateway/web/irccloud.com/x-utmwltkwmwujlpib) has joined #python 2021-05-19 12:12:31 <-- HannaM (~quassel@p54849510.dip0.t-ipconnect.de) has quit (Quit: HannaM) 2021-05-19 12:13:25 <-- atk (~Arch-TK@ircpuzzles/staff/Arch-TK) has left #python ("Moving to libera.") 2021-05-19 12:13:32 <-- rgr (~rgr@ip-109-42-113-104.web.vodafone.de) has quit (Quit: Leaving) 2021-05-19 12:14:05 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-19 12:14:31 --> matsaman (~matsaman@unaffiliated/matsaman) has joined #python 2021-05-19 12:15:01 --> Anas__G (~Thunderbi@102.156.242.5) has joined #python 2021-05-19 12:15:30 <-- TheReverend403 (is@the.one.and.only.revthefox.co.uk) has quit (Quit: brb, sex) 2021-05-19 12:15:58 <-- mangold (~mangold@198.98.183.62) has quit (Ping timeout: 252 seconds) 2021-05-19 12:16:33 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-19 12:17:02 <-- doev (549d75e7@p549d75e7.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-05-19 12:17:45 <-- vrach (uid181202@gateway/web/irccloud.com/x-awpbcukpqpqatngh) has quit (Quit: Connection closed for inactivity) 2021-05-19 12:17:54 <-- Church- (~aleph@lobsters/Auditor/Church-) has quit (Quit: WeeChat info:version) 2021-05-19 12:18:09 --> svarq (~svarq@65.48.163.91) has joined #python 2021-05-19 12:18:44 --> aleph- (~aleph@lobsters/Auditor/Church-) has joined #python 2021-05-19 12:19:09 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Remote host closed the connection) 2021-05-19 12:19:26 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 246 seconds) 2021-05-19 12:19:27 --> sec^nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-19 12:20:16 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-19 12:20:24 --> xa0s_ (~xa0s@mab.sdf.org) has joined #python 2021-05-19 12:20:36 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 260 seconds) 2021-05-19 12:21:10 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-19 12:22:14 --> imp (~imp@186.205.11.214) has joined #python 2021-05-19 12:22:19 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-19 12:22:47 <-- Trashlord (~trash@wikipedia/Sentient-Planet) has left #python 2021-05-19 12:23:11 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 12:23:45 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-19 12:23:46 --> pinkieval (~val@limnoria/val) has joined #python 2021-05-19 12:23:51 <-- pinkieval (~val@limnoria/val) has left #python ("WeeChat 2.3") 2021-05-19 12:24:23 --> v01d4lph4 (~v01d4lph4@122.160.65.250) has joined #python 2021-05-19 12:25:11 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-19 12:25:49 <-- n00b101 (uid448161@gateway/web/irccloud.com/x-ykoatotmxgyruzdp) has quit (Quit: Connection closed for inactivity) 2021-05-19 12:26:06 -- Daemoen is now known as Guest28886 2021-05-19 12:26:21 <-- onlyopen (~onlyopen@fsf/member/onlyopen) has quit (Quit: leaving) 2021-05-19 12:26:32 <-- matsaman (~matsaman@unaffiliated/matsaman) has quit (Quit: leaving) 2021-05-19 12:26:49 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-05-19 12:26:50 --> matsaman (~matsaman@unaffiliated/matsaman) has joined #python 2021-05-19 12:27:01 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 260 seconds) 2021-05-19 12:27:11 <-- matsaman (~matsaman@unaffiliated/matsaman) has quit (Client Quit) 2021-05-19 12:27:22 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:b0b4:3818:c834:bc2d) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-19 12:27:55 <-- snalty (~Shhh@host81-157-242-224.range81-157.btcentralplus.com) has quit (Read error: Connection reset by peer) 2021-05-19 12:27:56 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 12:28:10 --> snalty_ (~Shhh@host81-157-242-224.range81-157.btcentralplus.com) has joined #python 2021-05-19 12:28:27 --> DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-19 12:29:18 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-19 12:29:31 --> drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-19 12:29:32 --> matsaman (~matsaman@unaffiliated/matsaman) has joined #python 2021-05-19 12:30:10 <-- shantanoo (~shantanoo@p3m/member/shantanoo) has quit (Remote host closed the connection) 2021-05-19 12:30:10 <-- digitalD (~dp@65.102.234.86) has quit (Ping timeout: 268 seconds) 2021-05-19 12:31:21 <-- Guest28886 (~Daemoen@2604:a880:2:d0::2164:d001) has left #python ("WeeChat 2.9") 2021-05-19 12:31:33 <-- bionode (~user@gateway/tor-sasl/bionode) has quit (Ping timeout: 240 seconds) 2021-05-19 12:31:41 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-19 12:31:49 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 12:31:58 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-19 12:32:05 <-- fb_ (~freebench@92.253.251.226) has quit (Ping timeout: 260 seconds) 2021-05-19 12:32:19 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 252 seconds) 2021-05-19 12:33:39 <-- dvx (~dvx@185.63.97.64) has quit (Quit: dvx) 2021-05-19 12:33:58 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 252 seconds) 2021-05-19 12:34:15 --> bionode (~user@gateway/tor-sasl/bionode) has joined #python 2021-05-19 12:34:19 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-19 12:34:57 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-19 12:35:10 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 265 seconds) 2021-05-19 12:35:19 <-- mmercer (daemoen@2605:d100:0:2d:5054:ff:fef0:3953) has quit (Quit: WeeChat 2.3) 2021-05-19 12:35:33 -- snalty_ is now known as snalty 2021-05-19 12:35:44 --> mike18 (~geri@71-220-52-187.mpls.qwest.net) has joined #python 2021-05-19 12:35:54 <-- aslicedbanjo (~aslicedba@host31-48-146-98.range31-48.btcentralplus.com) has left #python 2021-05-19 12:35:57 --> aslicedbanjo (~aslicedba@host31-48-146-98.range31-48.btcentralplus.com) has joined #python 2021-05-19 12:36:09 mike18 hi i have a function from a different package i call - how can i print what data it returns including datatype? 2021-05-19 12:36:16 mike18 so i can mock the data ... 2021-05-19 12:36:52 <-- aocusr (6d40f9bc@unaffiliated/db42) has quit (Quit: Connection closed) 2021-05-19 12:36:57 --> kindablue (~kindablue@107.191.58.216) has joined #python 2021-05-19 12:37:46 <-- qj (~qj@unaffiliated/qj) has quit (Read error: Connection reset by peer) 2021-05-19 12:37:53 --> CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has joined #python 2021-05-19 12:37:54 supakeen print(f(), type(f()))? 2021-05-19 12:38:20 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 246 seconds) 2021-05-19 12:38:29 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 12:38:45 mike18 the function is called .get() ... which talks to some http server... can i just use responses.activate to mock that? 2021-05-19 12:39:58 <-- Maiya (~paradox@122.172.43.204) has quit (Quit: leaving) 2021-05-19 12:40:01 Peyam19 is try and except neccessary with opening files in python using the open keyword? 2021-05-19 12:40:18 --> h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-19 12:40:36 <-- kindablue (~kindablue@107.191.58.216) has quit (Client Quit) 2021-05-19 12:40:45 supakeen Peyam19: You only need to handle exceptions that you can recover from. 2021-05-19 12:40:45 bjs Peyam19: "necessary" ? no, you can use open without using try/except 2021-05-19 12:41:06 <-- ddavis (~ddavis@c-24-98-76-80.hsd1.ga.comcast.net) has left #python ("Closed Circe (2.11) buffer in GNU Emacs (27.2)") 2021-05-19 12:41:26 --> kindablue (kindablue@107.191.58.216) has joined #python 2021-05-19 12:42:03 bjs Peyam19: the open call can always raise various exceptions, and you use try/except when you want to catch specific ones and deal with them. Any you do not catch will 'bubble up' 2021-05-19 12:42:26 --> SwiftMatt (~Objective@2601:282:4300:3e:20d2:7dfa:5d54:4833) has joined #python 2021-05-19 12:43:01 --> fredrikhl (~fhl@myrsnipa.uio.no) has joined #python 2021-05-19 12:43:15 Peyam19 when having with: do I need to do it in a try catch? 2021-05-19 12:43:18 --> qj (~qj@unaffiliated/qj) has joined #python 2021-05-19 12:43:22 <-- tesseract (~tesseract@2a01:e0a:280:2920:facf:c4c6:e308:f5cc) has quit (Quit: Leaving) 2021-05-19 12:43:31 <-- Byteflux (~byte@byteflux.net) has quit (Quit: ZNC - https://znc.in) 2021-05-19 12:43:33 Peyam19 and what exceptions are those that could happen? IOError? 2021-05-19 12:43:46 supakeen OSError's mostly, some others. 2021-05-19 12:43:51 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-19 12:43:53 bjs Peyam19: if you have `with open() ...: ...` and you want to catch the exceptions that come _from the open call_, then yes the `open` has to be within the `with` 2021-05-19 12:43:59 Samian is it possible to do for x in y: with a step size? 2021-05-19 12:44:18 bjs Peyam19: you can go `try: f = open(...) except FileNotFound: ...; else: with f: ...` 2021-05-19 12:44:22 supakeen Samian: as in skip every other one? Normally you'd slice `y`. 2021-05-19 12:44:29 Samian oh 2021-05-19 12:44:39 bjs Samian: if the type supports it, `for x in y[::step]:` 2021-05-19 12:44:39 habnabit_ Samian, do you want to skip or group items as you iterate? 2021-05-19 12:44:48 supakeen `for x in y[::2]` for example, or itertools.groupby/another one. 2021-05-19 12:44:52 mike18 hi how can i mock a function? 2021-05-19 12:44:56 todda7 how to get this data into Pandas dataframe? http://ix.io/3njU 2021-05-19 12:44:58 <-- mcope (~mcope@88.98.90.199) has quit (Quit: Konversation terminated!) 2021-05-19 12:45:09 mike18 of a package i call 2021-05-19 12:45:12 todda7 I was thinking json_normalize but that doesn't work because some sub dicts are None 2021-05-19 12:45:31 todda7 (Those two examples show all edge cases) 2021-05-19 12:45:50 --> mangold (~mangold@198.98.183.47) has joined #python 2021-05-19 12:46:12 --> gelignite (~gelignite@55d49ba7.access.ecotel.net) has joined #python 2021-05-19 12:46:47 --> philh (~philh@88.130.152.90) has joined #python 2021-05-19 12:46:53 mike18 hi, Is it possible to mock a function imported from a package in python? 2021-05-19 12:46:56 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-19 12:47:25 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-19 12:47:50 <-- v0lksman (~v0lksman@unaffiliated/v0lksman) has quit (Quit: Changing server) 2021-05-19 12:47:55 --> Trieste_ (T@gateway/vpn/protonvpn/trieste) has joined #python 2021-05-19 12:48:06 --> Barones (~Barones@2804:48dc:8500:0:f96e:269:7ab5:ae6a) has joined #python 2021-05-19 12:48:12 jfhbrook you can mock anything if you're witty and acerbic enough 2021-05-19 12:48:13 <-- Trieste (T@gateway/vpn/protonvpn/trieste) has quit (Ping timeout: 265 seconds) 2021-05-19 12:48:27 bjs mike18: yes, unittest.mock gives you a way to mock things 2021-05-19 12:48:42 --> mozgalom (~mozgalom@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-19 12:48:46 jfhbrook mike18: real answer though, you can patch just about anything with unittest.mock and pytest makes this embarrassingly easy with its monkeypatch helper 2021-05-19 12:48:54 mike18 do you have some example handy? 2021-05-19 12:49:06 bjs mike18: no, but the unittest.mock documentation does 2021-05-19 12:49:15 mike18 is it simple to do? 2021-05-19 12:49:34 mike18 can it mock dynamically? 2021-05-19 12:49:41 bjs mike18: do the examples look too complicated? 2021-05-19 12:49:51 mike18 let me see 2021-05-19 12:49:53 sartan with mock.patch('your.import.string.as.visible.by.what.you.are.mocking.foo') as mocked_foo: mocked_foo.return_value = 'bananas': 2021-05-19 12:49:58 bjs mike18: maybe that's a good idea :) 2021-05-19 12:50:19 sartan you can also @mock.patch() unit test classes 2021-05-19 12:50:35 <-- kindablue (kindablue@107.191.58.216) has quit (Quit: System Rebooting..) 2021-05-19 12:50:45 mike18 whats the diff using @mock.patch() ? 2021-05-19 12:50:46 sartan There will be many examples you see there and getting into the mock lib can be a little intimidating 2021-05-19 12:51:04 sartan There's no functional difference, but it can make some code styles easier, especially with multiple mocks 2021-05-19 12:51:14 <-- aslicedbanjo (~aslicedba@host31-48-146-98.range31-48.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-19 12:51:46 <-- svarq (~svarq@65.48.163.91) has quit (Remote host closed the connection) 2021-05-19 12:52:02 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-19 12:52:05 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-19 12:52:13 --> svarq (~svarq@65.48.163.91) has joined #python 2021-05-19 12:52:39 mike18 where do you specify the function to mock for? 2021-05-19 12:52:52 mike18 foo in this case? 2021-05-19 12:53:08 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-19 12:53:18 <-- DnzAtWrk (~DnzAtWrk@1763.pc.puv.fi) has quit (Read error: Connection reset by peer) 2021-05-19 12:53:50 nedbat mike18: if you are talking about requests.get, then responses is the way to do it. 2021-05-19 12:53:50 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Remote host closed the connection) 2021-05-19 12:54:05 mike18 no its libname.get 2021-05-19 12:54:29 mike18 which abstracts requests i think 2021-05-19 12:54:39 <-- SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-19 12:54:47 nedbat mike18: what does it add to requests? 2021-05-19 12:55:03 mike18 it just calls an api 2021-05-19 12:55:07 nedbat mike18: you might still want to use responses, depending on where you want your boundary of testing to be. 2021-05-19 12:55:11 mike18 formats stuff - etc 2021-05-19 12:55:41 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 240 seconds) 2021-05-19 12:55:51 --> arf` (~user_name@trois.potager.org) has joined #python 2021-05-19 12:55:53 <-- WanderingGlitch (~Wandering@aha/wanderingglitch) has quit (Quit: Glitch out) 2021-05-19 12:55:57 <-- Guest20 (~textual@192.146.154.3) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-19 12:56:25 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-19 12:56:34 --> Deep6 (~Deep6@fixed-187-191-36-13.totalplay.net) has joined #python 2021-05-19 12:56:35 jayjo I'm trying to write a middleware that bridges PC/SC (a CCID-compliant reader with a smartcard) and presents it as an HID device. Hopefully a browser can't tell the difference. Can I do this entirely in python? I found some projects for the HID side like https://github.com/apmorton/pyhidapi & https://github.com/libusb/hidapi, and https://github.com/LudovicRousseau/pyscard to interact with the reader. Does 2021-05-19 12:56:41 jayjo that seem like an OK idea? 2021-05-19 12:57:15 --> excodes (~excodes@212.252.119.245) has joined #python 2021-05-19 12:57:15 <-- drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 12:57:15 grawity a HID device that happens to speak FIDO CTAP? 2021-05-19 12:57:46 <-- Anas__G (~Thunderbi@102.156.242.5) has quit (Ping timeout: 252 seconds) 2021-05-19 12:57:47 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 12:57:52 jayjo that would be great :) 2021-05-19 12:58:05 --> bronsen (~bronsen@pdpc/supporter/professional/housetier) has joined #python 2021-05-19 12:58:23 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-19 12:58:38 <-- bronsen (~bronsen@pdpc/supporter/professional/housetier) has left #python ("WeeChat 3.1") 2021-05-19 12:58:49 <-- st8less (~st8less@inet-167-224-197-181.isp.ozarksgo.net) has quit (Quit: WeeChat 2.9) 2021-05-19 12:58:56 grawity should be possible, but I think you'll need a different module for creating the fake HID device (i.e. supporting the "uhid" API), it's not exactly the same as using an existing hidraw device 2021-05-19 12:59:11 <-- kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 240 seconds) 2021-05-19 13:01:14 --> Jerrynicki (~niklas@p200300f57702d200d01861a4fd3326ed.dip0.t-ipconnect.de) has joined #python 2021-05-19 13:01:23 jayjo I see what you mean. Something like: https://github.com/FFY00/python-uhid ? 2021-05-19 13:01:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 13:01:43 <-- rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has quit (Quit: Connection closed) 2021-05-19 13:01:49 grawity yes 2021-05-19 13:01:52 --> keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has joined #python 2021-05-19 13:01:52 mike18 nedbat: like that? https://ideone.com/Hpzypf 2021-05-19 13:04:20 <-- mkoskar (~mkoskar@unaffiliated/mkoskar) has quit (Quit: mkoskar) 2021-05-19 13:04:52 --> mkoskar (~mkoskar@unaffiliated/mkoskar) has joined #python 2021-05-19 13:04:59 <-- Jackneill (~Jackneill@unaffiliated/jackneill) has quit (Ping timeout: 245 seconds) 2021-05-19 13:05:22 <-- drvanon (b9262aac@185.38.42.172) has quit (Ping timeout: 240 seconds) 2021-05-19 13:05:27 <-- reas0n (ce53306f@gateway/web/cgi-irc/kiwiirc.com/ip.206.83.48.111) has quit (Quit: Connection closed) 2021-05-19 13:05:34 graingert mike18: I use https://pypi.org/project/pytest-recording/ 2021-05-19 13:06:21 <-- mkoskar (~mkoskar@unaffiliated/mkoskar) has quit (Client Quit) 2021-05-19 13:06:23 mike18 whats that? 2021-05-19 13:06:23 --> Byteflux (~byte@byteflux.net) has joined #python 2021-05-19 13:06:59 <-- VIqbang (sid24380@gateway/web/irccloud.com/x-nhlcuyjxmhzwrimq) has left #python 2021-05-19 13:07:00 mike18 im not using requsts directly 2021-05-19 13:07:02 <-- excodes (~excodes@212.252.119.245) has quit (Remote host closed the connection) 2021-05-19 13:07:15 graingert mike18: automatically mocks requests and others even if you use them indirectly 2021-05-19 13:07:19 <-- mcgillij (~mcgillij@142.134.89.12) has quit (Quit: WeeChat 3.0) 2021-05-19 13:07:41 mike18 graingert: but i want to specificy the mock myself... 2021-05-19 13:07:50 SnoopJ oh neat, I was looking at that last night as I shopped around for a timing plugin 2021-05-19 13:08:00 <-- afidegnum (~user@102.176.65.245) has quit (Remote host closed the connection) 2021-05-19 13:08:09 SnoopJ took me a while to realize that it was not literally automation for VCRs 2021-05-19 13:08:41 --> rawessd (~Ralle@95.140.187.23) has joined #python 2021-05-19 13:09:08 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-19 13:09:21 mike18 is unittest.mock part of unittest? 2021-05-19 13:09:50 mike18 no mock 2021-05-19 13:10:49 <-- remexre (~nathan@207-153-38-50.fttp.usinternet.com) has left #python ("WeeChat 3.0.1") 2021-05-19 13:10:57 --> famubu (~famubu@14.139.174.50) has joined #python 2021-05-19 13:11:08 <-- ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has quit (Quit: Leaving) 2021-05-19 13:11:28 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 13:12:09 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-19 13:12:11 --> ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has joined #python 2021-05-19 13:12:13 <-- famubu (~famubu@14.139.174.50) has quit (Quit: leaving) 2021-05-19 13:12:20 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 13:12:37 SnoopJ speaking of timing plugins for pytest...is pytest-timer the best fit if I just want to know how long execution takes for each test and maybe serialize that info? pytest-benchmark looks interesting but its API seems more granular than I'm interested in. 2021-05-19 13:13:06 <-- Roey (~roey@unaffiliated/roey) has quit (Quit: Client exiting) 2021-05-19 13:13:10 SnoopJ or would I be better off writing my own autouse fixture? 2021-05-19 13:13:27 --> mkoskar (~mkoskar@unaffiliated/mkoskar) has joined #python 2021-05-19 13:13:44 <-- K-Lab (uid125001@gateway/web/irccloud.com/x-ngdcqxmokfuaikyo) has quit (Quit: Connection closed for inactivity) 2021-05-19 13:14:46 --> Roey (~roey@unaffiliated/roey) has joined #python 2021-05-19 13:14:59 <-- ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-19 13:15:23 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Quit: %bye mirc%) 2021-05-19 13:15:47 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-19 13:16:37 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-19 13:16:59 --> ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has joined #python 2021-05-19 13:17:57 -- mozgalom is now known as bomb-on 2021-05-19 13:18:45 <-- Socra (~Socra@88.202.177.174) has quit (Ping timeout: 260 seconds) 2021-05-19 13:19:11 mike18 hi @graingert can you tell me whats wrong here? https://ideone.com/Hpzypf 2021-05-19 13:19:11 <-- mangold (~mangold@198.98.183.47) has quit (Ping timeout: 240 seconds) 2021-05-19 13:20:06 <-- Freneticks (~Frenetick@gateway/tor-sasl/freneticks) has quit (Remote host closed the connection) 2021-05-19 13:21:14 nemo_ you arent importing your T1 module properly it appears 2021-05-19 13:21:17 --> Freneticks (~Frenetick@gateway/tor-sasl/freneticks) has joined #python 2021-05-19 13:22:42 --> pragmaticenigma (~pragmatic@unaffiliated/pragmaticenigma) has joined #python 2021-05-19 13:22:48 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has quit (Remote host closed the connection) 2021-05-19 13:22:54 <-- bomb-on (~mozgalom@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-19 13:23:13 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has joined #python 2021-05-19 13:25:16 --> P1RATEZ (piratez@unaffiliated/p1ratez) has joined #python 2021-05-19 13:25:32 mike18 what you mean by not properly? 2021-05-19 13:25:47 --> peruse (~exec@wsip-184-176-46-59.sd.sd.cox.net) has joined #python 2021-05-19 13:25:56 <-- peruse (~exec@wsip-184-176-46-59.sd.sd.cox.net) has quit (Client Quit) 2021-05-19 13:26:10 mike18 what about the constructor - will i need to mock it too? 2021-05-19 13:26:11 <-- Roey (~roey@unaffiliated/roey) has quit (Quit: Client exiting) 2021-05-19 13:26:31 --> Roey (~roey@unaffiliated/roey) has joined #python 2021-05-19 13:27:00 greatgatsby apologies if this has been discussed, any reaction from #python on the hostile freenode takeover? https://gist.github.com/joepie91/df80d8d36cd9d1bde46ba018af497409/ 2021-05-19 13:27:19 <-- mspe (mspe@gateway/shell/tilde.team/x-fvzdocuvkjuqyrta) has quit (Quit: WeeChat 3.1) 2021-05-19 13:27:38 supakeen greatgatsby: See the /topic. 2021-05-19 13:27:55 matsaman ain't nobody staying here 2021-05-19 13:27:55 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 13:27:55 greatgatsby supakeen, thanks 2021-05-19 13:28:14 CodeMouse92 That said, a lot of folks have already voluntarily made the jump, including many room regulars 2021-05-19 13:28:18 supakeen In the end #python is where the users are and work is being done on registering the channels over on Libera as well :) 2021-05-19 13:28:18 matsaman but people might take the opportunity to weigh Libera vs others 2021-05-19 13:28:26 matsaman s/people/orgs 2021-05-19 13:28:27 --> DTZUZU (~DTZUZO@207.81.119.43) has joined #python 2021-05-19 13:28:51 CodeMouse92 I mean, Libera is the same staff as pre-takeover Freenode, soooo... 2021-05-19 13:29:19 --> nickshanks (~nick@unaffiliated/nickshanks) has joined #python 2021-05-19 13:29:57 matsaman they've apparently corrected the primary issue and made some kind of foundation or something with equal shares 2021-05-19 13:30:21 -- matsaman is now known as matsaman_ 2021-05-19 13:30:41 <-- DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 240 seconds) 2021-05-19 13:30:55 <-- svarq (~svarq@65.48.163.91) has quit (Quit: Leaving) 2021-05-19 13:30:55 --> goldfish (~goldfish@88.97.31.145) has joined #python 2021-05-19 13:31:28 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 13:31:28 --> kindablue (znc@irc.tpurist.com) has joined #python 2021-05-19 13:31:57 <-- fantis (~mantisfan@gateway/tor-sasl/mantisfan) has quit (Ping timeout: 240 seconds) 2021-05-19 13:32:06 --> Shirakawasuna (Shirakawas@gateway/vpn/privateinternetaccess/shirakawasuna) has joined #python 2021-05-19 13:32:19 <-- Shirakawasuna (Shirakawas@gateway/vpn/privateinternetaccess/shirakawasuna) has quit (Remote host closed the connection) 2021-05-19 13:32:21 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-19 13:32:37 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:bd2:c65:4ec0:2a3c) has quit (Ping timeout: 250 seconds) 2021-05-19 13:32:44 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-19 13:32:50 Bombo i'm using https://docs.python.org/3/library/smtplib.html to send a mail with starttls, is there a way to tell what cipher is used? 2021-05-19 13:32:58 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 13:33:44 <-- lnxw37d4 (lnxw37d4ma@gateway/shell/matrix.org/x-wqixhekxsvskzkxd) has quit (Ping timeout: 245 seconds) 2021-05-19 13:33:59 --> lnxw37d4 (lnxw37d4ma@gateway/shell/matrix.org/x-qfwcnofzmnqulyyc) has joined #python 2021-05-19 13:34:05 --> Jackneill (~Jackneill@unaffiliated/jackneill) has joined #python 2021-05-19 13:34:08 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-19 13:35:38 --> DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has joined #python 2021-05-19 13:36:07 --> dpreacher (~dpreacher@49.207.194.109) has joined #python 2021-05-19 13:36:22 <-- simple (skralg@eggdrop/alumni/simple) has left #python ("left") 2021-05-19 13:36:45 --> gvsa123 (~gvsa123@d50-93-30-240.abhsia.telus.net) has joined #python 2021-05-19 13:36:49 <-- Tennis (~Tennis@unaffiliated/tennis) has quit (Quit: Leaving) 2021-05-19 13:37:08 <-- purplex88 (~purplex88@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-19 13:37:21 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-19 13:37:37 <-- gvsa123 (~gvsa123@d50-93-30-240.abhsia.telus.net) has quit (Client Quit) 2021-05-19 13:37:43 <-- frrs (uid130725@gateway/web/irccloud.com/x-ctxspfxosyjjputr) has quit (Quit: Connection closed for inactivity) 2021-05-19 13:37:44 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 252 seconds) 2021-05-19 13:37:47 <-- Roey (~roey@unaffiliated/roey) has quit (Quit: Client exiting) 2021-05-19 13:38:14 --> Roey (~roey@unaffiliated/roey) has joined #python 2021-05-19 13:38:28 --> octav1a (~quassel@173.195.144.222) has joined #python 2021-05-19 13:38:28 <-- Obersanvalvwag (~Username@37.120.44.244) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-19 13:38:31 <-- KimiNewt (sid80838@gateway/web/irccloud.com/x-rrrajriyhncrwhsn) has quit 2021-05-19 13:39:41 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 240 seconds) 2021-05-19 13:39:53 <-- rvgzuuqp (~zKcjTgTe@gateway/tor-sasl/zkcjtgte) has quit (Quit: rvgzuuqp) 2021-05-19 13:41:09 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-19 13:41:27 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-19 13:41:31 --> Melon_Bread (~Melon_Bre@li958-238.members.linode.com) has joined #python 2021-05-19 13:41:39 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-19 13:41:52 <-- Byteflux (~byte@byteflux.net) has quit (Quit: ZNC - https://znc.in) 2021-05-19 13:42:22 --> Byteflux (~byte@byteflux.net) has joined #python 2021-05-19 13:43:37 SnoopJ Bombo, I think the ssl.SSLContext object contains that information https://docs.python.org/3/library/ssl.html#ssl.SSLContext.get_ciphers 2021-05-19 13:43:43 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:9584:183a:ef58:a92d) has joined #python 2021-05-19 13:44:17 Bombo SnoopJ: that just lists all available 2021-05-19 13:44:33 SnoopJ in order of priority yep 2021-05-19 13:45:08 Bombo but not the one currently in use 2021-05-19 13:45:19 Bombo for the current connection 2021-05-19 13:45:34 <-- BtbN (btbn@ffmpeg/developer/btbn) has left #python ("Leaving") 2021-05-19 13:45:55 --> mozgalom (~mozgalom@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-19 13:45:56 <-- zmagii (~zmagii@unaffiliated/zmagii) has left #python ("ERC (IRC client for Emacs 28.0.50)") 2021-05-19 13:47:53 --> kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has joined #python 2021-05-19 13:48:17 SnoopJ Bombo, I think you can look at the .sock attribute on the SMTP object and call .cipher() on it 2021-05-19 13:48:39 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Quit: Laa shay'a waqi'un moutlaq bale kouloun moumkine) 2021-05-19 13:48:51 SnoopJ to see what cipher was actually agreed on (and there's .shared_ciphers() as well if you want to know what the common ones are) 2021-05-19 13:49:01 <-- yamz (~contagiou@102.2.194.139) has quit (Ping timeout: 258 seconds) 2021-05-19 13:49:20 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-19 13:50:24 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 13:50:27 mike18 hi is it possible to use a class for a unit test in python? 2021-05-19 13:50:29 <-- bjelleklang (~c@wikipedia/Bjelleklang) has quit (Quit: Leaving) 2021-05-19 13:50:50 --> bjelleklang (~c@wikipedia/Bjelleklang) has joined #python 2021-05-19 13:50:50 LordKalma so how's irc drama here? 2021-05-19 13:50:53 mike18 i created: class TestFoo(TestCase): and get E NameError: name 'TestCase' is not defined 2021-05-19 13:51:11 SnoopJ mike18, you need to import TestCase from unittest 2021-05-19 13:51:26 mike18 you usually define classes or just funcs? 2021-05-19 13:51:29 mike18 for unittest 2021-05-19 13:51:30 <-- matsaman_ (~matsaman@unaffiliated/matsaman) has left #python 2021-05-19 13:51:58 Bombo SnoopJ: sounds good if i could figure out how 2021-05-19 13:52:04 SnoopJ unittest uses subclasses of TestCase 2021-05-19 13:52:46 mike18 sublass? 2021-05-19 13:52:50 SnoopJ Bombo, I think it's `smtp_obj.starttls(...); print(f"using cipher: {smtp_obj.sock.cipher()}")` 2021-05-19 13:53:34 SnoopJ mike18, you write a class to contain tests that go together. The docs explain it better than I can: https://docs.python.org/3/library/unittest.html#organizing-test-code 2021-05-19 13:53:45 <-- derphilipp (~phw@p200300cd3f335800ba27ebfffe72e774.dip0.t-ipconnect.de) has quit (Quit: WeeChat 3.1) 2021-05-19 13:53:54 <-- bjelleklang (~c@wikipedia/Bjelleklang) has quit (Client Quit) 2021-05-19 13:54:26 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-19 13:54:31 <-- cxl (~hey_its_m@unaffiliated/cxl) has quit (Ping timeout: 260 seconds) 2021-05-19 13:54:47 --> bjelleklang (~c@wikipedia/Bjelleklang) has joined #python 2021-05-19 13:54:57 --> boB_K7IQ (~boB_K7IQ@152.44.147.180) has joined #python 2021-05-19 13:55:12 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 240 seconds) 2021-05-19 13:56:23 <-- Freso (sid7914@musicbrainz/user/freso) has left #python 2021-05-19 13:56:31 Bombo SnoopJ: AttributeError: 'socket' object has no attribute 'cipher' 2021-05-19 13:56:45 --> cxl (~hey_its_m@unaffiliated/cxl) has joined #python 2021-05-19 13:56:47 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Quit: Laa shay'a waqi'un moutlaq bale kouloun moumkine) 2021-05-19 13:56:51 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 265 seconds) 2021-05-19 13:56:55 SnoopJ Bombo, huh, guess it's not an SSLSocket. What type is that object? 2021-05-19 13:56:56 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-19 13:57:41 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-19 13:57:49 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 13:58:05 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-19 13:58:21 yskapell hello all 2021-05-19 13:58:29 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 246 seconds) 2021-05-19 13:58:42 yskapell How can I check using beautiful soup if a tag is commented or not? 2021-05-19 13:59:24 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Quit: Leaving) 2021-05-19 14:00:07 Bombo SnoopJ: oh it worked AFTER server.starttls() sorry 2021-05-19 14:00:23 Bombo server = smtplib.SMTP(smtp_server, port) 2021-05-19 14:00:38 SnoopJ yea, it creates the socket 2021-05-19 14:00:41 <-- Byteflux (~byte@byteflux.net) has quit (Quit: ZNC - https://znc.in) 2021-05-19 14:00:42 Bombo using cipher: ('DHE-RSA-AES256-SHA', 'SSLv3', 256) 2021-05-19 14:00:45 Bombo \o/ 2021-05-19 14:00:50 SnoopJ phew 2021-05-19 14:00:51 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-19 14:01:03 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 14:01:08 --> Byteflux (~byte@byteflux.net) has joined #python 2021-05-19 14:01:30 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-19 14:01:54 --> yamz (~contagiou@102.2.194.139) has joined #python 2021-05-19 14:02:41 --> Racal (~marc@d54C226F1.access.telenet.be) has joined #python 2021-05-19 14:03:17 --> blyat-73 (~user@79.101.60.163) has joined #python 2021-05-19 14:03:17 --> ralderson (~textual@37.19.212.9) has joined #python 2021-05-19 14:03:31 <-- P1RATEZ (piratez@unaffiliated/p1ratez) has quit 2021-05-19 14:03:41 <-- sesser_ (~sesser@107.13.245.224) has quit (Ping timeout: 240 seconds) 2021-05-19 14:04:15 <-- kindablue (znc@irc.tpurist.com) has quit (Quit: System Rebooting..) 2021-05-19 14:04:58 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-19 14:06:31 <-- mokulus (~mat@176.111.230.96) has quit (Ping timeout: 265 seconds) 2021-05-19 14:06:33 --> amazoniantoad (~jrand@2603:3018:600:a000:150a:da13:5f47:51df) has joined #python 2021-05-19 14:07:08 --> z3r0n0id (~nathann@unaffiliated/z3r0n0id) has joined #python 2021-05-19 14:07:10 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-19 14:07:28 --> Guddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-19 14:07:42 amazoniantoad Hey guys I'm trying to work with twitter's api for javascript using python (they made changes which broke my old code) and so I'm using burp suite to kinda look at the network traffic and figure out what's going on 2021-05-19 14:07:45 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 14:07:56 -- ArsenArsen is now known as Arsen 2021-05-19 14:07:57 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:b0b4:3818:c834:bc2d) has joined #python 2021-05-19 14:07:58 <-- ralderson (~textual@37.19.212.9) has quit (Ping timeout: 265 seconds) 2021-05-19 14:08:03 -- Arsen is now known as ArsenArsen 2021-05-19 14:08:06 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-19 14:08:12 amazoniantoad I wrote code to get the trending hashtags and I get a 200 response, but when I search the code of the page I don't actually see the trending hashtags embedded in the code 2021-05-19 14:08:26 amazoniantoad Could someone look at what I've done and give me some suggestions? 2021-05-19 14:08:27 amazoniantoad https://pastebin.com/rSZUQW8w 2021-05-19 14:08:28 infobob https://bpaste.net/UDEQ (repasted for amazoniantoad) 2021-05-19 14:10:23 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 265 seconds) 2021-05-19 14:10:23 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Quit: ayustae) 2021-05-19 14:11:26 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-19 14:12:37 Bombo SnoopJ: thank ;) 2021-05-19 14:12:43 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-19 14:13:02 amazoniantoad I should be seeing the tweets embedded in https://twitter.com/i/trends 2021-05-19 14:13:05 amazoniantoad But I don't 2021-05-19 14:13:23 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-19 14:13:27 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:b0b4:3818:c834:bc2d) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-19 14:13:32 Bombo SnoopJ: while server.sock.cipher() shows SSLv3, server.sock.version() shows TLSv1 2021-05-19 14:13:49 --> dicajo (~dicajo@072-186-122-186.res.spectrum.com) has joined #python 2021-05-19 14:13:52 <-- Racal (~marc@d54C226F1.access.telenet.be) has quit (Quit: WeeChat 2.8) 2021-05-19 14:14:19 <-- LoRe_ (~LoRe@cb.rbfh.de) has quit (Quit: ZNC - http://znc.in) 2021-05-19 14:14:32 dez is there a way to, in plotly, display all values in a marker 2021-05-19 14:14:36 dez like on hover 2021-05-19 14:14:41 dez but all the time 2021-05-19 14:14:52 <-- av_ (uid87081@gateway/web/irccloud.com/x-upikkyoodugrwfxy) has quit (Quit: Connection closed for inactivity) 2021-05-19 14:16:03 -- ludo is now known as Ludoza 2021-05-19 14:16:13 -- Ludoza is now known as Ludo 2021-05-19 14:16:15 Bombo Returns a three-value tuple containing the name of the cipher being used, the version of the SSL protocol that defines its use, 2021-05-19 14:16:22 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-19 14:16:28 <-- fran (~fran@unaffiliated/fran) has quit (Read error: Connection reset by peer) 2021-05-19 14:16:30 <-- tov (sid492081@gateway/web/irccloud.com/x-qopvmqfvynldhxmi) has left #python 2021-05-19 14:16:36 --> led1 (~Thunderbi@217.66.160.14) has joined #python 2021-05-19 14:16:40 SnoopJ Bombo, sounds weird 2021-05-19 14:16:45 Bombo 'that defines its use' what does that mean 2021-05-19 14:16:59 SnoopJ "The version that defines [the cipher]" 2021-05-19 14:17:10 Bombo SSLSocket.version() Return the actual SSL protocol version negotiated 2021-05-19 14:17:18 --> admin124 (~My_real_n@ool-2f12f6cb.dyn.optonline.net) has joined #python 2021-05-19 14:17:28 <-- hypercube (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) has quit (Quit: WeeChat 3.1) 2021-05-19 14:18:06 <-- dpreacher (~dpreacher@49.207.194.109) has quit (Quit: leaving) 2021-05-19 14:18:06 Bombo SnoopJ: like 'we want SSLv3 but we got TLSv1' 2021-05-19 14:18:32 --> fb_ (~freebench@92.253.251.226) has joined #python 2021-05-19 14:18:39 Bombo SnoopJ: 'normally this cipher uses SSLv3, but we negotiated TLSv1' ? 2021-05-19 14:18:40 Bombo ;) 2021-05-19 14:18:44 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 245 seconds) 2021-05-19 14:18:44 Bombo hmm 2021-05-19 14:19:09 <-- deekej (~deekej@ip4-95-82-164-84.cust.nbox.cz) has quit (Remote host closed the connection) 2021-05-19 14:19:16 SnoopJ I think it may be the other way around, since TLSv1 is an upgrade of SSLv3 2021-05-19 14:19:53 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-19 14:20:32 <-- v01d4lph4 (~v01d4lph4@122.160.65.250) has quit (Ping timeout: 265 seconds) 2021-05-19 14:20:37 --> azed (~azed@196.224.8.158) has joined #python 2021-05-19 14:20:50 --> esp32_prog (~esp32_pro@193.27.14.138) has joined #python 2021-05-19 14:21:11 Bombo TLSv1 is a replacement of SSLv3? 2021-05-19 14:21:19 nanonyme TLSv1.2 is 2021-05-19 14:21:28 nanonyme Anything below that are deprecated 2021-05-19 14:21:36 <-- Peetz0r (peetz0rgli@revspace/participant/peetz0r) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-19 14:21:37 <-- esp32_prog (~esp32_pro@193.27.14.138) has quit (Remote host closed the connection) 2021-05-19 14:21:51 nanonyme Would be globally decommissioned but coronavirus delayed things 2021-05-19 14:21:53 mike18 SnoopJ: can i also patch a constructor of a class? 2021-05-19 14:22:01 mike18 aka mock 2021-05-19 14:22:08 SnoopJ mike18, yes 2021-05-19 14:22:14 mike18 how? 2021-05-19 14:22:17 --> cer-0 (~cer-0@189.228.159.74) has joined #python 2021-05-19 14:22:18 SnoopJ "mock" and "patch" are not synonyms, though 2021-05-19 14:22:26 <-- node1 (~o@unaffiliated/node1) has quit (Quit: Leaving) 2021-05-19 14:22:31 --> LordVan (~lordvan@gentoo/developer/LordVan) has joined #python 2021-05-19 14:22:31 --> fantis (~mantisfan@gateway/tor-sasl/mantisfan) has joined #python 2021-05-19 14:22:35 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-19 14:23:03 <-- led1 (~Thunderbi@217.66.160.14) has quit (Quit: led1) 2021-05-19 14:23:18 <-- lucad111 (~lucad111@linaro/lucad111) has quit (Quit: Leaving) 2021-05-19 14:23:28 -- drincruz_ is now known as drincruz 2021-05-19 14:23:44 SnoopJ mike18, usually you do that by wrapping/replacing __init__ on that function, if that's what you mean by constructor 2021-05-19 14:23:44 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-19 14:23:54 -- grym is now known as modgethanc 2021-05-19 14:24:03 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-19 14:24:05 -- modgethanc is now known as grym 2021-05-19 14:24:07 mike18 example is here: SnoopJ https://ideone.com/0NRIn0 2021-05-19 14:24:36 mike18 the T1() constuctor does some sort of login from what i see... i need to mock that 2021-05-19 14:25:37 <-- adder (~adder@unaffiliated/adder) has quit (Ping timeout: 252 seconds) 2021-05-19 14:25:47 nedbat mike18: you don't need to mock that line, you wrote that line. You can just construct some other object instead 2021-05-19 14:25:58 mike18 how to contruct that object? 2021-05-19 14:26:13 mike18 self.t1 = T1('', '') ... does a login in here 2021-05-19 14:26:28 nedbat mike18: sorry, maybe this is what you meant. You can replace that line with self.t1 = mock(...something...) 2021-05-19 14:27:16 mike18 im not sure what to mock it with btw 2021-05-19 14:27:53 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 14:28:00 <-- isomari (~isomari@105.112.138.38) has quit (Quit: WeeChat 3.0.1) 2021-05-19 14:28:09 <-- gelignite (~gelignite@55d49ba7.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-19 14:28:49 nedbat mike18: maybe we should take a step back. This test is going to create a mock object, and then call a method on it, and test that it returned something. Where is the real code that's being tested? 2021-05-19 14:28:49 --> HannaM (~quassel@p54849510.dip0.t-ipconnect.de) has joined #python 2021-05-19 14:29:01 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-19 14:29:14 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-19 14:29:14 <-- z3r0n0id (~nathann@unaffiliated/z3r0n0id) has quit (Ping timeout: 265 seconds) 2021-05-19 14:30:08 mike18 i want to mock that t1.get() (which calls an api) in a unit test which uses t1 object 2021-05-19 14:30:12 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-19 14:31:39 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 14:31:53 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-19 14:32:06 nedbat mike18: are you trying to test the code inside the T1 class? What code are you testing? 2021-05-19 14:32:16 mike18 no 2021-05-19 14:32:22 mike18 im testing the code around that 2021-05-19 14:32:27 mike18 which uses that t1 stuff 2021-05-19 14:32:33 mike18 thats why i mock that t1 stuck 2021-05-19 14:32:36 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-19 14:32:38 nedbat mike18: this paste doesn't show that, right? 2021-05-19 14:32:59 mike18 i just trying to mock that t1 func for beginning 2021-05-19 14:33:05 <-- dicajo (~dicajo@072-186-122-186.res.spectrum.com) has quit (Quit: WeeChat 2.3) 2021-05-19 14:33:09 mike18 before i add it 2021-05-19 14:33:16 nedbat ok, that's a yes :) 2021-05-19 14:33:29 mike18 yes 2021-05-19 14:33:50 mike18 self.t1.get will be called by a different class 2021-05-19 14:33:50 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 14:34:00 mike18 but thats not relevant before i make that work 2021-05-19 14:34:09 nedbat mike18: how does that class get its T1 instance? 2021-05-19 14:34:25 --> DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-19 14:34:42 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 14:34:43 mike18 by self.t1 = T1('','') ... 2021-05-19 14:34:52 mike18 where the parameters need to be passed atm 2021-05-19 14:35:02 mike18 need to check if there is a way to avoid passing it 2021-05-19 14:35:34 <-- LuxuryMode (uid91005@gateway/web/irccloud.com/x-sdobgkdzldsxsgnc) has quit (Quit: Connection closed for inactivity) 2021-05-19 14:36:12 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-19 14:36:17 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 246 seconds) 2021-05-19 14:36:50 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-19 14:36:55 <-- philh (~philh@88.130.152.90) has quit (Remote host closed the connection) 2021-05-19 14:37:09 <-- DTZUZU (~DTZUZO@207.81.119.43) has quit (Ping timeout: 260 seconds) 2021-05-19 14:37:10 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 14:37:30 nedbat mike18: but your class under test: the test will pass self.t1 to it? That class accepts a T1 instance to work with? 2021-05-19 14:37:41 <-- sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 14:37:57 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 14:38:05 <-- ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-19 14:38:28 mike18 that class calls self.t1 = T1(user, password) and than self.t1.get(...) ... 2021-05-19 14:39:00 mike18 so same as in the test i constructed in the paste 2021-05-19 14:39:11 --> ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has joined #python 2021-05-19 14:39:25 --> henri (~henri@179.83.53.49) has joined #python 2021-05-19 14:39:28 mike18 i can change that and pass a t1 object into that 2021-05-19 14:39:37 --> eigar (~Nickwiz@gateway/tor-sasl/nickwiz) has joined #python 2021-05-19 14:39:37 <-- irc_user (uid423822@gateway/web/irccloud.com/x-utmwltkwmwujlpib) has quit (Quit: Connection closed for inactivity) 2021-05-19 14:39:39 mike18 if thats simpler for overall test 2021-05-19 14:41:10 mike18 nedbat: at the moment the class under test constructs its own t1 object in the contructor 2021-05-19 14:41:43 mike18 but i can pass the t1 object from outside 2021-05-19 14:42:45 <-- Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has quit (Ping timeout: 240 seconds) 2021-05-19 14:43:41 --> subho (~subho@fedora/subho) has joined #python 2021-05-19 14:43:48 -- ArsenArsen is now known as qookie 2021-05-19 14:43:55 -- qookie is now known as ArsenArsen 2021-05-19 14:43:59 <-- sxpert (~sxpert@pigeon.sxpert.org) has left #python ("WeeChat 2.3") 2021-05-19 14:44:07 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-19 14:44:07 --> arinov (~arinov@213.194.126.155) has joined #python 2021-05-19 14:44:26 <-- admin124 (~My_real_n@ool-2f12f6cb.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-19 14:44:49 <-- mpmc (~mpmc@xebian/contributor/mpmc) has left #python ("Leaving") 2021-05-19 14:45:03 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:9584:183a:ef58:a92d) has quit (Ping timeout: 260 seconds) 2021-05-19 14:45:09 <-- ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has quit (Quit: Leaving) 2021-05-19 14:45:23 <-- boB_K7IQ (~boB_K7IQ@152.44.147.180) has quit (Ping timeout: 246 seconds) 2021-05-19 14:45:56 <-- qgTG (~qgTG@unaffiliated/qgtg) has quit (Ping timeout: 252 seconds) 2021-05-19 14:46:31 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 252 seconds) 2021-05-19 14:46:35 <-- englosh (3eb0fc03@pool-3.252.176.62.dynamic.wobline-ip.de) has quit (Quit: Connection closed) 2021-05-19 14:46:48 <-- rawessd (~Ralle@95.140.187.23) has left #python 2021-05-19 14:47:07 <-- very_sneaky (~very_snea@45.67.96.24) has quit (Ping timeout: 265 seconds) 2021-05-19 14:47:35 --> rawessd (~Ralle@95.140.187.23) has joined #python 2021-05-19 14:47:45 <-- rawessd (~Ralle@95.140.187.23) has left #python 2021-05-19 14:48:09 <-- belphegor666 (~satan@2a02:8071:429b:600:6c4a:bff:fede:7c09) has quit (Quit: WeeChat 3.1) 2021-05-19 14:48:18 --> rawessd (~Ralle@95.140.187.23) has joined #python 2021-05-19 14:48:35 --> svarq (~svarq@65.48.163.91) has joined #python 2021-05-19 14:48:38 --> qgTG (~qgTG@unaffiliated/qgtg) has joined #python 2021-05-19 14:48:55 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-19 14:50:18 nedbat mike18: or you can leave the code as is, and mock that_class_file.T1 2021-05-19 14:50:22 --> very_sneaky (~very_snea@45.67.96.24) has joined #python 2021-05-19 14:50:25 mike18 i know what to do :) 2021-05-19 14:50:33 mike18 i can mock the login the T1 object does 2021-05-19 14:50:37 mike18 with response mock 2021-05-19 14:50:44 mike18 and create a fake login 2021-05-19 14:51:28 --> frrs (uid130725@gateway/web/irccloud.com/x-oxrpretrmbqfkped) has joined #python 2021-05-19 14:52:28 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-19 14:52:34 <-- hwm4rgs (~hwm4rgs@unaffiliated/hwm4rgs) has left #python ("Bye.") 2021-05-19 14:54:35 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-19 14:54:37 <-- amahl (~amahl@dxv5skyyrvlyxk4hv8xty-3.rev.dnainternet.fi) has quit (Quit: Leaving) 2021-05-19 14:55:10 <-- snits (jsnitsel@nat/redhat/x-oyjndelvjrvchivd) has quit (Quit: leaving) 2021-05-19 14:55:24 --> mokulus (~mat@176.111.230.96) has joined #python 2021-05-19 14:56:43 --> meLon (~meLon@unaffiliated/earthmelon) has joined #python 2021-05-19 14:56:47 <-- meLon (~meLon@unaffiliated/earthmelon) has quit (Client Quit) 2021-05-19 14:56:57 Omega037 I guess this is goodbye everyone. So long Freenode, thanks for the memories. 2021-05-19 14:57:00 <-- Omega037 (~Omega037@047-024-168-024.res.spectrum.com) has quit 2021-05-19 14:57:03 --> meLon (~meLon@unaffiliated/earthmelon) has joined #python 2021-05-19 14:57:08 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:1b0d:bea3:27b0:db7e) has joined #python 2021-05-19 14:57:08 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 14:57:40 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 14:57:48 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 14:57:55 --> cliluw (~cliluw@unaffiliated/cliluw) has joined #python 2021-05-19 14:58:55 <-- Elladan (~elladan@unaffiliated/elladan) has left #python ("Leaving") 2021-05-19 14:58:58 <-- panikovsky (~panikovsk@87.117.48.120) has quit (Quit: Leaving) 2021-05-19 14:59:16 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 14:59:16 <-- yamz (~contagiou@102.2.194.139) has quit (Ping timeout: 260 seconds) 2021-05-19 14:59:27 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-19 15:00:19 --> shimonabi (~shimonabi@84-255-204-183.static.t-2.net) has joined #python 2021-05-19 15:00:37 --> rinwa (~rinwa@37.46.46.89) has joined #python 2021-05-19 15:00:58 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 15:01:23 <-- NeverLoads (NeverLoad@freakshells.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-19 15:01:37 --> NeverLoads (NeverLoad@freakshells.net) has joined #python 2021-05-19 15:02:59 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Quit: Leaving) 2021-05-19 15:05:09 --> contagious_meow (~contagiou@102.2.93.92) has joined #python 2021-05-19 15:05:34 --> pearlbear (sid310728@gateway/web/irccloud.com/x-dmbpmkhzarsddatp) has joined #python 2021-05-19 15:06:05 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-19 15:06:05 <-- azed (~azed@196.224.8.158) has quit (Ping timeout: 260 seconds) 2021-05-19 15:06:32 <-- mkoskar (~mkoskar@unaffiliated/mkoskar) has quit (Quit: mkoskar) 2021-05-19 15:06:51 <-- qj (~qj@unaffiliated/qj) has quit (Quit: bye();) 2021-05-19 15:06:51 --> mkoskar (~mkoskar@unaffiliated/mkoskar) has joined #python 2021-05-19 15:07:16 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 15:08:09 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 15:08:16 <-- nubonix (uid492751@gateway/web/irccloud.com/x-yltyhtmiolsfolwt) has quit (Quit: Connection closed for inactivity) 2021-05-19 15:09:12 --> Y3Klo (~Thunderbi@2806:10b7:3:50a2:feaa:14ff:fe93:db3c) has joined #python 2021-05-19 15:10:11 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 240 seconds) 2021-05-19 15:10:30 <-- contagious_meow (~contagiou@102.2.93.92) has quit (Ping timeout: 268 seconds) 2021-05-19 15:10:47 <-- andries (~andries@unaffiliated/zsasz) has quit (Quit: leaving) 2021-05-19 15:11:23 <-- EmptyPackets (~guest_177@gateway/tor-sasl/guest1778/x-76478183) has left #python 2021-05-19 15:14:01 <-- mokulus (~mat@176.111.230.96) has quit (Ping timeout: 252 seconds) 2021-05-19 15:14:32 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-19 15:14:55 <-- HannaM (~quassel@p54849510.dip0.t-ipconnect.de) has quit (Quit: HannaM) 2021-05-19 15:15:04 <-- Furai (~Furai@cookiehoster.furai.pl) has quit (Quit: WeeChat 3.1) 2021-05-19 15:16:29 --> Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has joined #python 2021-05-19 15:17:39 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has quit (Remote host closed the connection) 2021-05-19 15:17:59 --> contagious_meow (~contagiou@102.2.150.216) has joined #python 2021-05-19 15:18:09 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has joined #python 2021-05-19 15:18:53 --> ominion (~hobbanero@38.135.235.14) has joined #python 2021-05-19 15:18:57 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-19 15:19:36 <-- ominion (~hobbanero@38.135.235.14) has quit (Max SendQ exceeded) 2021-05-19 15:19:44 <-- tvm (~tvm@ip-89-103-250-229.net.upcbroadband.cz) has quit (Quit: leaving) 2021-05-19 15:20:02 <-- henri (~henri@179.83.53.49) has quit (Ping timeout: 246 seconds) 2021-05-19 15:20:04 --> ominion (~hobbanero@38.135.235.14) has joined #python 2021-05-19 15:20:51 --> henri (~henri@179.83.53.49) has joined #python 2021-05-19 15:21:02 todda7 in pandas, say you have three columns, Animal, Color, Name 2021-05-19 15:21:08 <-- hobbanero (~hobbanero@38.135.235.14) has quit (Ping timeout: 252 seconds) 2021-05-19 15:21:29 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-19 15:21:29 todda7 How to get a tree-like count for how many has the same animal (ie species), color and name? 2021-05-19 15:21:40 todda7 Dog, Gray, Fido: 5 2021-05-19 15:21:45 todda7 Dog, Brown Fido: 3 2021-05-19 15:21:58 todda7 Cat, Brown Maximus: 3 2021-05-19 15:22:40 <-- gacekjk (~gacekjk@unaffiliated/jkuchars) has quit (Quit: leaving) 2021-05-19 15:22:56 <-- DPA (~DPA@devuan/contributor/DPA) has quit (Quit: ZNC 1.8.2+deb2~bpo10+1 - https://znc.in) 2021-05-19 15:23:11 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-19 15:23:41 KirkMcDonald todda7: Does it need to be tree-like? Or is a count of each of the unique (animal, color, name) tuples sufficient? 2021-05-19 15:23:55 --> dob1 (~dob1@unaffiliated/dob1) has joined #python 2021-05-19 15:24:02 todda7 KirkMcDonald: latter 2021-05-19 15:24:08 KirkMcDonald Because you can just do that with collections.Counter() 2021-05-19 15:24:37 --> DPA (~DPA@devuan/contributor/DPA) has joined #python 2021-05-19 15:24:38 KirkMcDonald Oh, in Pandas. 2021-05-19 15:24:44 KirkMcDonald Sorry, I missed that part. 2021-05-19 15:24:55 KirkMcDonald I have no particular knowledge of Pandas. 2021-05-19 15:25:05 --> drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-19 15:25:19 --> PantelicGR (~PantelicG@unaffiliated/pantelicgr) has joined #python 2021-05-19 15:25:31 <-- dob1_ (~dob1@unaffiliated/dob1) has quit (Ping timeout: 260 seconds) 2021-05-19 15:25:44 <-- powerhouse (~powerhous@d173-180-29-44.bchsia.telus.net) has quit (Remote host closed the connection) 2021-05-19 15:26:02 <-- darksun (~darksun@unaffiliated/darksun) has quit (Quit: Lost terminal) 2021-05-19 15:26:04 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-19 15:26:05 --> powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-19 15:26:13 <-- Jackneill (~Jackneill@unaffiliated/jackneill) has quit (Remote host closed the connection) 2021-05-19 15:26:14 <-- Jerrynicki (~niklas@p200300f57702d200d01861a4fd3326ed.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-19 15:26:42 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Quit: Leaving) 2021-05-19 15:27:44 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 252 seconds) 2021-05-19 15:27:45 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 15:27:46 <-- GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has quit (Ping timeout: 268 seconds) 2021-05-19 15:28:13 --> PoaB (~Thunderbi@134.3.91.178) has joined #python 2021-05-19 15:28:47 --> __marco (~marco@195.218.6.205) has joined #python 2021-05-19 15:28:59 --> dob1_ (~dob1@unaffiliated/dob1) has joined #python 2021-05-19 15:29:58 <-- dob1 (~dob1@unaffiliated/dob1) has quit (Ping timeout: 252 seconds) 2021-05-19 15:30:18 <-- rendar (~rendar@unaffiliated/rendar) has quit 2021-05-19 15:31:34 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 15:33:11 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 15:34:16 <-- dob1_ (~dob1@unaffiliated/dob1) has quit (Ping timeout: 260 seconds) 2021-05-19 15:35:13 <-- CookieM (~tomek@r-45-155-148-237.gpon.bialnet.pl) has quit (Quit: Leaving) 2021-05-19 15:37:11 --> yeticheese (~yetichees@45.83.89.68) has joined #python 2021-05-19 15:40:11 --> dob1 (~dob1@unaffiliated/dob1) has joined #python 2021-05-19 15:41:38 <-- sappheiros (~sappheiro@unaffiliated/dan1) has quit (Quit: please pray for me) 2021-05-19 15:42:23 <-- zoid (~zoid@unaffiliated/taxationistheft) has quit (Quit: REBOOT ALL THE THINGS) 2021-05-19 15:42:43 <-- likewhoa (~likewhoa@li1078-231.members.linode.com) has quit (Quit: speed of coding, not speed of code) 2021-05-19 15:42:51 --> linux_dream (~isaac@unaffiliated/linux-dream/x-5839402) has joined #python 2021-05-19 15:42:59 --> otisolsen70 (~otisolsen@xd4ed80b5.cust.hiper.dk) has joined #python 2021-05-19 15:43:52 --> zoid (~zoid@unaffiliated/taxationistheft) has joined #python 2021-05-19 15:45:04 <-- winny (~winny@fsf/member/winstonw) has quit (Quit: WeeChat 2.8) 2021-05-19 15:46:20 <-- CodeMouse92 (~JasonMc92@unaffiliated/codemouse) has quit (Quit: Oh freddled gruntbuggly | Thy micturations are to me | As plurdled gabbleblotchits | On a lurgid bee) 2021-05-19 15:46:32 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-19 15:46:36 --> CodeMouse92 (~CodeMouse@unaffiliated/codemouse) has joined #python 2021-05-19 15:46:38 --> winny (~winny@fsf/member/winstonw) has joined #python 2021-05-19 15:48:18 mat001_ Any idea how I could pass a varaible value from unittest setUp() method into a decorator above the test function? 2021-05-19 15:48:34 <-- pearlbear (sid310728@gateway/web/irccloud.com/x-dmbpmkhzarsddatp) has quit 2021-05-19 15:49:06 bjs mat001_: if unittest setUp there's usually a class involved, so setUp would write self.blah and then the decorator can just read self.blah 2021-05-19 15:49:13 mat001_ Anything inside setUp() is used as self.myvariable inside tests. but not sure how to pass that intoa decorator. "self" is not recognized 2021-05-19 15:49:27 bjs mat001_: it's the first argument to the function being decorated. 2021-05-19 15:49:31 <-- auctus (~auctus@unaffiliated/auctus) has left #python 2021-05-19 15:49:46 bjs it's not anything magical, the decorator returns a new function, and that new function can just read the arguments like any other 2021-05-19 15:49:51 --> bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-19 15:50:59 --> vlm (~vlm@gateway/tor-sasl/vlm) has joined #python 2021-05-19 15:51:23 bjs mat001_: here's a little example of decorating a method and the wrapper reading self https://bpa.st/X6RQ 2021-05-19 15:51:33 mat001_ yeah, except that the decorator itself doesn't haev the "self" as the first argument 2021-05-19 15:51:56 nedbat mat001_: can you say more about what this decorator does and what the variable is? 2021-05-19 15:52:18 mat001_ yeah, one sec 2021-05-19 15:53:23 --> jesseTree (~powerhous@2604:3d08:6d7d:7900::e21) has joined #python 2021-05-19 15:54:13 <-- mike18 (~geri@71-220-52-187.mpls.qwest.net) has quit (Remote host closed the connection) 2021-05-19 15:54:33 <-- fizzizist (~Thunderbi@108.162.133.99) has quit (Quit: fizzizist) 2021-05-19 15:55:30 mat001_ the decorator is from Hypothesis property based testing lib. It takes in "strategies", meaning text or integers, or dicts that fuzz (randomize) values inside the test 2021-05-19 15:55:37 <-- powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Ping timeout: 250 seconds) 2021-05-19 15:56:57 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Quit: Zzzzzz.....) 2021-05-19 15:57:38 <-- Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-19 15:57:41 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-19 15:57:45 <-- Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has quit (Quit: Leaving) 2021-05-19 15:57:45 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 15:57:49 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 258 seconds) 2021-05-19 15:58:05 --> Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has joined #python 2021-05-19 15:58:28 mat001_ You see how "GoalData"dict was fuzzed here in this example? https://hypothesis.readthedocs.io/en/latest/examples.html#fuzzing-an-http-api And then Goaldata fuzzed dict was passed into the test test_create_goal_dry_run. This tested many diff inputs in the dict 2021-05-19 15:58:36 mat001_ I'm doing smth similar. 2021-05-19 15:58:59 mat001_ GoalData was passed into the @given decorator 2021-05-19 15:59:09 <-- Raito_Bezarius (~Raito@unaffiliated/raito-bezarius/x-8764578) has quit (Ping timeout: 245 seconds) 2021-05-19 15:59:37 -- Mode #python [+o supakeen] by ChanServ 2021-05-19 15:59:56 mat001_ Now, imagine that GoalData dict was created inside the setUp() 2021-05-19 16:00:03 -- Mode #python [-o supakeen] by ChanServ 2021-05-19 16:00:05 mat001_ ^^ this is my case 2021-05-19 16:00:09 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-19 16:00:41 <-- philr (~phil@118.211.93.148) has quit (Ping timeout: 240 seconds) 2021-05-19 16:01:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 16:01:37 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-19 16:02:47 --> Furai (~Furai@cookiehoster.furai.pl) has joined #python 2021-05-19 16:03:06 --> Wamanuz (~wamanuz@78-70-34-81-no84.tbcn.telia.com) has joined #python 2021-05-19 16:03:18 --> xenu (~xenu@carychium-tridentatum.xenu.pl) has joined #python 2021-05-19 16:03:34 <-- xenu (~xenu@carychium-tridentatum.xenu.pl) has left #python 2021-05-19 16:05:15 <-- pragmaticenigma (~pragmatic@unaffiliated/pragmaticenigma) has quit (Quit: Leaving) 2021-05-19 16:05:16 <-- finn_elija (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) has quit (Remote host closed the connection) 2021-05-19 16:05:49 <-- dviola (~diego@unaffiliated/dviola) has quit (Quit: WeeChat 3.1) 2021-05-19 16:06:31 --> admin124 (~My_real_n@ool-2f12f6cb.dyn.optonline.net) has joined #python 2021-05-19 16:06:36 --> kindablue (znc@irc.tpurist.com) has joined #python 2021-05-19 16:07:11 <-- bbear (~bbear@2a01:e34:ec2b:d430:5dad:2c6a:7f31:a197) has quit (Ping timeout: 260 seconds) 2021-05-19 16:08:19 <-- klonn (~klonn@p200300c7cf1f67acb561eefbac5e0252.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-19 16:09:11 <-- pyeverything (~mona@c-66-31-107-137.hsd1.ma.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 16:10:02 --> Raito_Bezarius (~Raito@unaffiliated/raito-bezarius/x-8764578) has joined #python 2021-05-19 16:10:10 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-19 16:10:34 <-- hexa- (~hexa-@juno.lossy.network) has quit (Quit: WeeChat 2.9) 2021-05-19 16:10:41 <-- admin124 (~My_real_n@ool-2f12f6cb.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-19 16:11:11 --> Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has joined #python 2021-05-19 16:12:02 <-- Peyam19 (8a6a3984@138.106.57.132) has quit (Ping timeout: 240 seconds) 2021-05-19 16:12:16 mat001_ My code here if it helps. The content of the setUp() needs to go into the "@given" decorator. That's where I get studk https://bpa.st/TAJA 2021-05-19 16:12:17 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 16:12:19 --> hexa- (~hexa-@juno.lossy.network) has joined #python 2021-05-19 16:13:50 <-- Roey (~roey@unaffiliated/roey) has quit (Quit: Client exiting) 2021-05-19 16:14:11 --> Roey (~roey@unaffiliated/roey) has joined #python 2021-05-19 16:14:37 <-- fourstepper (~fourstepp@static.10.48.21.65.clients.your-server.de) has quit (Remote host closed the connection) 2021-05-19 16:14:38 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 246 seconds) 2021-05-19 16:15:09 <-- Haxxa (~Haxxa@122-199-4-253.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-05-19 16:16:14 <-- seds (~seds@irc.seds.nl) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-19 16:17:02 <-- Gaffel (~gaffel@h-170-170.A1405.priv.bahnhof.se) has quit (Quit: What's that?) 2021-05-19 16:17:17 --> seds (~seds@irc.seds.nl) has joined #python 2021-05-19 16:17:50 --> Haxxa (~Haxxa@122-199-4-253.ip4.superloop.com) has joined #python 2021-05-19 16:17:57 <-- seds (~seds@irc.seds.nl) has quit (Remote host closed the connection) 2021-05-19 16:18:01 --> Echoz (~chris@77.106.180.114) has joined #python 2021-05-19 16:18:15 --> bdonnahue2 (~bdonnahue@208.59.177.131) has joined #python 2021-05-19 16:18:22 --> chowmeined (~chowmeine@unaffiliated/chowmeined) has joined #python 2021-05-19 16:18:55 --> meethos (~pun84@pool-108-24-127-194.cmdnnj.fios.verizon.net) has joined #python 2021-05-19 16:18:57 --> c4017_ (~c4017@S010664777dab66f3.vf.shawcable.net) has joined #python 2021-05-19 16:18:57 --> lsrtl__ (~freebench@92.253.251.226) has joined #python 2021-05-19 16:19:01 --> seds (~seds@irc.seds.nl) has joined #python 2021-05-19 16:19:12 --> brskq_ (~brskq@h-98-128-183-50.NA.cust.bahnhof.se) has joined #python 2021-05-19 16:19:33 --> legola_ (~legola@unaffiliated/legola) has joined #python 2021-05-19 16:19:48 --> Maikel0 (~Maikel@unaffiliated/maikel) has joined #python 2021-05-19 16:19:49 --> acovrig7 (~acovrig@host-108-174-105-157.JENOLT4.epbfi.com) has joined #python 2021-05-19 16:19:49 <-- nacelle (~oO@wireguard/tunneler/nacelle) has quit (Ping timeout: 260 seconds) 2021-05-19 16:19:50 <-- georgemarshall (~georgem@li95-239.members.linode.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:19:50 <-- xedniv (~xedniv@unaffiliated/moldenauer) has quit (Ping timeout: 260 seconds) 2021-05-19 16:19:50 <-- uhu (~uhu@static.101.168.216.95.clients.your-server.de) has quit (Ping timeout: 260 seconds) 2021-05-19 16:19:52 --> rwdrich2 (~rwdrich@cpc159427-cmbg20-2-0-cust424.5-4.cable.virginm.net) has joined #python 2021-05-19 16:19:53 --> tofran8 (~tofran@37.189.158.134) has joined #python 2021-05-19 16:20:05 --> rgp3 (~rgp@unaffiliated/rgp) has joined #python 2021-05-19 16:20:17 <-- Electric_Sheep (~esheep_zn@pool-100-19-29-200.phlapa.fios.verizon.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:18 <-- EGH (~EGH@185.25.195.104) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:18 <-- Lvl4Sword (sid483043@killer/lead/Lvl4Sword) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:18 <-- lbft (~lbft@unaffiliated/lbft) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:18 <-- beto (~beto@fedora/albertocg) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:18 <-- blowry_ (~blowry@sagan.benjaminlowry.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:21 --> kryptn3 (~kryptn@unaffiliated/kryptn) has joined #python 2021-05-19 16:20:38 --> KeithAdams_ (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has joined #python 2021-05-19 16:20:38 --> dissonant_ (~dissonant@159.65.253.21) has joined #python 2021-05-19 16:20:40 --> nbin_ (~nbin@unaffiliated/nbin) has joined #python 2021-05-19 16:20:43 --> ZeroKnight_ (zeroknight@dimensionzero.net) has joined #python 2021-05-19 16:20:43 --> EGH (~EGH@185.25.195.104) has joined #python 2021-05-19 16:20:44 --> sq (~mj@unaffiliated/squirrel) has joined #python 2021-05-19 16:20:45 <-- KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:45 <-- aidanh (~aidanh@unaffiliated/aidanh) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:45 <-- Brocker (~Web@vmi552115.contaboserver.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:46 <-- bugZPDX (~bugZPDX@65.75.216.13) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:46 <-- iron_houzi (~iron_houz@159.89.29.46) has quit (Ping timeout: 260 seconds) 2021-05-19 16:20:47 --> blowry (~blowry@2001:19f0:5c01:1524:5400:2ff:fe3e:d51c) has joined #python 2021-05-19 16:20:48 --> la_croix_ (~la_croix@cpc117350-walt24-2-0-cust237.13-2.cable.virginm.net) has joined #python 2021-05-19 16:20:48 --> CrunchyChewie_ (~CrunchyCh@unaffiliated/crunchychewie) has joined #python 2021-05-19 16:20:50 --> llua` (~llua@zsh/developer/llua) has joined #python 2021-05-19 16:21:02 --> mo2000_ (emmo@shell.mo2000.de) has joined #python 2021-05-19 16:21:03 -- KeithAdams_ is now known as KeithAdams 2021-05-19 16:21:13 <-- Deep6 (~Deep6@fixed-187-191-36-13.totalplay.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:13 <-- arf` (~user_name@trois.potager.org) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:13 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:13 <-- jinie (~jimmy@188.114.173.37) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:13 <-- legola (~legola@unaffiliated/legola) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- edge_eng (~edge_eng@unaffiliated/edge-eng/x-8536881) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- la_croix (~la_croix@cpc117350-walt24-2-0-cust237.13-2.cable.virginm.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- n1000 (~n1000@unaffiliated/n1000) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- nbin (~nbin@unaffiliated/nbin) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- jiffe (~jiffe@unaffiliated/jiffe) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- pjz (~pjz@place.org) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- amosbird (~amosbird@13.75.119.182) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- updownleft (~updownlef@ns3001684.ip-5-196-74.eu) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- dissonant (~dissonant@159.65.253.21) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- masakra (~masakramr@68.229.184.35.bc.googleusercontent.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- codehotter (~codehotte@fedora/codehotter) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 <-- ZeroKnight (zeroknight@dimensionzero.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:14 -- ZeroKnight_ is now known as ZeroKnight 2021-05-19 16:21:15 <-- ashnur (~rak@unaffiliated/ashnur) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:15 --> aidanh (~aidanh@unaffiliated/aidanh) has joined #python 2021-05-19 16:21:20 --> Gaffel (~gaffel@h-178-174-170-170.A1405.priv.bahnhof.se) has joined #python 2021-05-19 16:21:20 -- dissonant_ is now known as dissonant 2021-05-19 16:21:36 --> nacelle (~oO@wireguard/tunneler/nacelle) has joined #python 2021-05-19 16:21:41 <-- Roey (~roey@unaffiliated/roey) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- cer-0 (~cer-0@189.228.159.74) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- fb_ (~freebench@92.253.251.226) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- mguy (~robert@149.28.120.183) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- FozzyB3ar (~f0zzyB3ar@136.37.127.43) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- barneygale (~barneygal@cpc93788-hari17-2-0-cust405.20-2.cable.virginm.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- Maikel (~Maikel@unaffiliated/maikel) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- Vardex (~vardex@62-210-79-177.rev.poneytelecom.eu) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- c4017__ (~c4017@S010664777dab66f3.vf.shawcable.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- chowmein__ (~chowmeine@unaffiliated/chowmeined) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- ezakimak (~ezakimak@c-174-52-132-123.hsd1.ut.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- NerosTie95622425 (~Neros@anancy-654-1-66-50.w109-217.abo.wanadoo.fr) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- jayjo (~jayjo@unaffiliated/jayjo) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- bdonnahue1 (~bdonnahue@208.59.177.131) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- acovrig (~acovrig@host-108-174-105-157.JENOLT4.epbfi.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- pun84 (~pun84@pool-108-24-127-194.cmdnnj.fios.verizon.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- psprint (~sg@91.245.82.2) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- manuels (~manuelsch@80.211.205.88) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:41 <-- mr_munc1e (quassel@gateway/vpn/protonvpn/mrmunc1e/x-55713482) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- w3bcrawler (~w3bcrawle@mctnnbsa70w-159-2-75-30.dhcp-dynamic.fibreop.nb.bellaliant.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- mchlumsky (~mchlumsky@modemcable106.190-179-173.mc.videotron.ca) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- freyrd (~freyrd@13.94.154.161) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- vinnix (~vinnix@unaffiliated/vinnix) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- Xalys (~ircusr@unix.xalys.nl) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- rwdrich (~rwdrich@cpc159427-cmbg20-2-0-cust424.5-4.cable.virginm.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- bsdbandit (~bwell@users.757.org) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- Mathisen (mathisen@about/windows/staff/Mathisen) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- Cork (~Cork@firefox/community/cork) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- brskq (~brskq@h-98-128-183-50.NA.cust.bahnhof.se) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- ponies (~ponies@unaffiliated/ponyrider) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- CrunchyChewie (~CrunchyCh@unaffiliated/crunchychewie) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- iloop (iloop@unaffiliated/iloop) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- GeneralDiscourse (~ephemer0l@pentoo/user/ephemer0l) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- L1Cafe (~L1Cafe@kydara.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- wkalt (~wkalt@unaffiliated/wkalt) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- llua (~llua@zsh/developer/llua) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- xMopx (~xMopx@192.95.23.134) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- mo2000 (emmo@server04.emminghaus-it.net) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- matrixise (~matrixise@145.ip-92-222-82.eu) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- timewalker (~timewalke@eth0.nu) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- Kalium (~kalium@178.62.246.247) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- Jmtrix (~qed@unaffiliated/lermain) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- kryptn (~kryptn@unaffiliated/kryptn) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- hoylemd (~hoylemd@ec2-54-218-69-16.us-west-2.compute.amazonaws.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- rgp (~rgp@unaffiliated/rgp) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- goatish (~geclark@19.60.188.35.bc.googleusercontent.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- baweaver (~baweaver@ruby/staff/baweaver) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- jealousmonk (~jealousmo@brettgilio.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- maxking (~maxking@54.11.83.34.bc.googleusercontent.com) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 <-- InPhase (~InPhase@unaffiliated/inphase) has quit (Ping timeout: 260 seconds) 2021-05-19 16:21:42 -- Maikel0 is now known as Maikel 2021-05-19 16:21:42 -- mo2000_ is now known as mo2000 2021-05-19 16:21:43 -- rwdrich2 is now known as rwdrich 2021-05-19 16:21:43 -- kryptn3 is now known as kryptn 2021-05-19 16:21:51 --> xedniv (~xedniv@unaffiliated/moldenauer) has joined #python 2021-05-19 16:21:51 -- acovrig7 is now known as acovrig 2021-05-19 16:21:51 -- rgp3 is now known as rgp 2021-05-19 16:22:01 --> manuels (~manuelsch@80.211.205.88) has joined #python 2021-05-19 16:22:02 --> ezakimak (~ezakimak@c-174-52-132-123.hsd1.ut.comcast.net) has joined #python 2021-05-19 16:22:09 <-- squirrel (~mj@unaffiliated/squirrel) has quit (Ping timeout: 260 seconds) 2021-05-19 16:22:09 <-- deltab (~deltab@95.154.230.49) has quit (Ping timeout: 260 seconds) 2021-05-19 16:22:09 <-- tofran (~tofran@37.189.158.134) has quit (Ping timeout: 260 seconds) 2021-05-19 16:22:11 -- tofran8 is now known as tofran 2021-05-19 16:22:19 --> kim_bruning (~kim@2a02:8109:1440:176c:750f:c737:1d77:8dcc) has joined #python 2021-05-19 16:22:20 --> ElectricSheep (~esheep_zn@pool-100-19-29-200.phlapa.fios.verizon.net) has joined #python 2021-05-19 16:22:28 --> L1Cafe (~L1Cafe@kydara.com) has joined #python 2021-05-19 16:22:29 --> Lvl4Sword (sid483043@killer/lead/Lvl4Sword) has joined #python 2021-05-19 16:22:32 --> userx (~userx@unaffiliated/userx) has joined #python 2021-05-19 16:22:36 --> amosbird (~amosbird@13.75.119.182) has joined #python 2021-05-19 16:22:36 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-19 16:22:55 --> mr_munc1e (quassel@gateway/vpn/protonvpn/mrmunc1e/x-55713482) has joined #python 2021-05-19 16:22:55 <-- jfpoole (~textual@135-23-210-183.cpe.pppoe.ca) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-19 16:23:01 --> Deep6 (~Deep6@fixed-187-191-36-13.totalplay.net) has joined #python 2021-05-19 16:23:09 --> pjz (~pjz@place.org) has joined #python 2021-05-19 16:23:23 --> psprint (~sg@91.245.82.2) has joined #python 2021-05-19 16:23:29 --> Cork (~Cork@firefox/community/cork) has joined #python 2021-05-19 16:23:29 --> vinnix (~vinnix@unaffiliated/vinnix) has joined #python 2021-05-19 16:23:35 --> cer-0 (~cer-0@189.228.159.74) has joined #python 2021-05-19 16:23:40 --> deltab (~deltab@95.154.230.49) has joined #python 2021-05-19 16:23:40 --> matrixise (~matrixise@145.ip-92-222-82.eu) has joined #python 2021-05-19 16:23:41 <-- Rapture (~Rapture@71.236.251.149) has quit (Ping timeout: 240 seconds) 2021-05-19 16:23:41 <-- saku (~saku@static.10.173.99.88.clients.your-server.de) has quit (Ping timeout: 240 seconds) 2021-05-19 16:23:45 <-- SwiftMatt (~Objective@2601:282:4300:3e:20d2:7dfa:5d54:4833) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-19 16:23:48 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-19 16:23:48 --> fourstepper (~fourstepp@static.10.48.21.65.clients.your-server.de) has joined #python 2021-05-19 16:23:53 --> lidless (~lidless@unaffiliated/lidless) has joined #python 2021-05-19 16:23:58 lidless https://gist.github.com/joepie91/df80d8d36cd9d1bde46ba018af497409 2021-05-19 16:24:06 --> beto (~beto@fedora/albertocg) has joined #python 2021-05-19 16:24:32 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 16:24:39 --> freyrd (~freyrd@13.94.154.161) has joined #python 2021-05-19 16:24:43 --> Mathisen (mathisen@about/windows/staff/Mathisen) has joined #python 2021-05-19 16:24:49 --> shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has joined #python 2021-05-19 16:25:01 <-- fofoni (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has quit (Quit: Leaving) 2021-05-19 16:25:11 <-- jhass (znc@ruby/staff/jhass) has left #python ("WeeChat 3.1") 2021-05-19 16:25:13 --> jayjo (~jayjo@unaffiliated/jayjo) has joined #python 2021-05-19 16:25:19 --> fofoni (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has joined #python 2021-05-19 16:25:20 <-- seds (~seds@irc.seds.nl) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-19 16:25:21 --> hoylemd (~hoylemd@ec2-54-218-69-16.us-west-2.compute.amazonaws.com) has joined #python 2021-05-19 16:25:23 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Ping timeout: 260 seconds) 2021-05-19 16:25:33 <-- Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has quit (Quit: Leaving) 2021-05-19 16:26:07 nedbat mat001_: i think you would solve that by writing your own decorator that used @given internally on the wrapped function. 2021-05-19 16:26:13 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-19 16:26:27 --> seds (~seds@irc.seds.nl) has joined #python 2021-05-19 16:26:37 --> updownleft (~updownlef@ns3001684.ip-5-196-74.eu) has joined #python 2021-05-19 16:26:47 --> xMopx (~xMopx@192.95.23.134) has joined #python 2021-05-19 16:26:54 --> iron_houzi (~iron_houz@159.89.29.46) has joined #python 2021-05-19 16:27:16 --> bugZPDX (~bugZPDX@65.75.216.13) has joined #python 2021-05-19 16:27:20 --> Jmtrix (~qed@unaffiliated/lermain) has joined #python 2021-05-19 16:27:45 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 16:27:59 --> n1000 (~n1000@unaffiliated/n1000) has joined #python 2021-05-19 16:28:08 --> InPhase (~InPhase@unaffiliated/inphase) has joined #python 2021-05-19 16:28:09 --> arf` (~user_name@trois.potager.org) has joined #python 2021-05-19 16:28:37 --> ponies (~ponies@unaffiliated/ponyrider) has joined #python 2021-05-19 16:28:37 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 265 seconds) 2021-05-19 16:28:38 --> saku (~saku@2a01:4f8:c0c:7d0::2) has joined #python 2021-05-19 16:28:46 mat001_ nedbat: ty, so a decorator around the test with @given 2021-05-19 16:29:02 --> ashnur (~rak@unaffiliated/ashnur) has joined #python 2021-05-19 16:29:07 --> baweaver (~baweaver@ruby/staff/baweaver) has joined #python 2021-05-19 16:29:10 --> timewalker (~timewalke@eth0.nu) has joined #python 2021-05-19 16:29:17 -- lidless is now known as Guest76357 2021-05-19 16:29:28 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-19 16:29:41 --> ompragash (sid381327@ansible/staff/ompragash) has joined #python 2021-05-19 16:29:59 --> gvsa123 (~gvsa123@d50-93-30-240.abhsia.telus.net) has joined #python 2021-05-19 16:30:26 <-- cer-0 (~cer-0@189.228.159.74) has quit (Quit: leaving) 2021-05-19 16:30:28 <-- Guest76357 (~lidless@unaffiliated/lidless) has left #python ("WeeChat 2.8") 2021-05-19 16:30:36 --> Xalys (~ircusr@unix.xalys.nl) has joined #python 2021-05-19 16:30:55 <-- Gaffel (~gaffel@h-178-174-170-170.A1405.priv.bahnhof.se) has quit (Quit: What's that?) 2021-05-19 16:31:22 --> Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has joined #python 2021-05-19 16:31:41 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 16:32:38 <-- fourstepper (~fourstepp@static.10.48.21.65.clients.your-server.de) has quit (Remote host closed the connection) 2021-05-19 16:32:47 --> georgemarshall (~georgem@li95-239.members.linode.com) has joined #python 2021-05-19 16:33:49 <-- esselfe (~steph@modemcable086.138-22-96.mc.videotron.ca) has quit (Quit: Going home) 2021-05-19 16:34:01 --> gacekjk (~gacekjk@unaffiliated/jkuchars) has joined #python 2021-05-19 16:34:16 nedbat mat001_: i haven't tried writing the code, but I think you would need to write a decorator that would use @given inside, and would replace @given on the test. 2021-05-19 16:34:19 --> Roey (~roey@unaffiliated/roey) has joined #python 2021-05-19 16:34:31 --> wkalt (~wkalt@unaffiliated/wkalt) has joined #python 2021-05-19 16:34:36 --> jiffe (~jiffe@unaffiliated/jiffe) has joined #python 2021-05-19 16:34:50 <-- linux_dream (~isaac@unaffiliated/linux-dream/x-5839402) has quit (Quit: WeeChat 3.1) 2021-05-19 16:34:54 -- llua` is now known as llua 2021-05-19 16:35:01 bjs mat001_: nedbat: it would seem that you'd need to call given() each time you call the function, to read the config there and then and call given() with the right arguments. 2021-05-19 16:35:08 --> maxking (~maxking@54.11.83.34.bc.googleusercontent.com) has joined #python 2021-05-19 16:35:13 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Quit: WeeChat 3.1) 2021-05-19 16:35:19 <-- yeticheese (~yetichees@45.83.89.68) has quit 2021-05-19 16:35:22 --> bsdbandit (~bwell@users.757.org) has joined #python 2021-05-19 16:35:29 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-19 16:35:30 --> codehotter (~codehotte@fedora/codehotter) has joined #python 2021-05-19 16:35:36 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-19 16:35:45 --> uhu (~uhu@2a01:4f9:c010:1087::2) has joined #python 2021-05-19 16:35:56 --> Kalium (~kalium@178.62.246.247) has joined #python 2021-05-19 16:36:33 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-19 16:37:07 <-- Staunch (~Staunch@c-24-7-237-208.hsd1.mn.comcast.net) has quit (Quit: Leaving...) 2021-05-19 16:38:27 <-- kindablue (znc@irc.tpurist.com) has left #python 2021-05-19 16:38:29 <-- PoaB (~Thunderbi@134.3.91.178) has quit (Quit: PoaB) 2021-05-19 16:38:49 --> lbft (~lbft@unaffiliated/lbft) has joined #python 2021-05-19 16:39:19 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Client Quit) 2021-05-19 16:40:35 --> boB_K7IQ (~boB_K7IQ@152.44.147.180) has joined #python 2021-05-19 16:40:41 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-19 16:40:43 <-- rgp (~rgp@unaffiliated/rgp) has quit (Quit: bbl) 2021-05-19 16:41:13 --> rgp (~rgp@unaffiliated/rgp) has joined #python 2021-05-19 16:41:28 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: WeeChat 3.1) 2021-05-19 16:41:30 --> Staunch (~Staunch@c-24-7-237-208.hsd1.mn.comcast.net) has joined #python 2021-05-19 16:43:07 <-- jim (~jim@about/linux/staff/jim) has quit (Ping timeout: 265 seconds) 2021-05-19 16:43:21 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-19 16:44:09 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 245 seconds) 2021-05-19 16:45:15 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-19 16:45:30 <-- Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has quit (Quit: Leaving) 2021-05-19 16:46:10 <-- Staunch (~Staunch@c-24-7-237-208.hsd1.mn.comcast.net) has left #python 2021-05-19 16:46:10 --> malteger (~malteger@p578449a7.dip0.t-ipconnect.de) has joined #python 2021-05-19 16:46:20 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-19 16:46:32 <-- sharksauce (~sharksauc@unaffiliated/sharksauce) has quit (Quit: leaving) 2021-05-19 16:46:32 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Client Quit) 2021-05-19 16:47:58 indigoblue any suggestiong for ways I can sort out dependency issues / mysterious segfaults for a python program? I have no idea where to look. 2021-05-19 16:48:18 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-19 16:48:23 indigoblue I'm guessing it's segfaulting due to a mismatch in deps, but to be honest I have no idea what to look for 2021-05-19 16:48:56 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Ping timeout: 260 seconds) 2021-05-19 16:49:44 --> NomadJim_ (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-19 16:50:27 <-- LordVan (~lordvan@gentoo/developer/LordVan) has quit (Quit: Leaving) 2021-05-19 16:52:03 --> kevr` (~kevr@gateway/tor-sasl/kevr) has joined #python 2021-05-19 16:53:09 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-19 16:53:37 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Client Quit) 2021-05-19 16:53:54 --> supremekai (~supremeka@168.182.158.56) has joined #python 2021-05-19 16:54:06 <-- kevr (~kevr@gateway/tor-sasl/kevr) has quit (Remote host closed the connection) 2021-05-19 16:54:13 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-19 16:54:14 --> burakcank (~burakcank@159.146.41.74) has joined #python 2021-05-19 16:54:52 supremekai Hey guys, in your opinion what would be the library you recommend to access postgresql dbs? 2021-05-19 16:55:05 supakeen psycopg2 2021-05-19 16:55:10 --> Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has joined #python 2021-05-19 16:55:30 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-19 16:55:34 <-- leitz (~LeamHall@c-174-56-144-2.hsd1.sc.comcast.net) has quit (Quit: nappy time) 2021-05-19 16:55:55 SnoopJ indigoblue, you might try re-running with gdb to get a look at the stack trace. Here's a sample of what that looks like: https://bpaste.net/I5CQ (the way to read that stack trace: most recent at top, showing the segfault happening inside ctypes; the ?? parts are interpreter guts that got optimized out, I think) 2021-05-19 16:56:23 SnoopJ can be tricky if you don't know gdb but it at least helps identify what was going on at the time of the fault 2021-05-19 16:57:22 <-- llua (~llua@zsh/developer/llua) has quit (Quit: shell code is what greycat reads to kids when he tucks them in) 2021-05-19 16:57:30 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-19 16:57:44 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 16:57:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 16:58:07 <-- jayjo (~jayjo@unaffiliated/jayjo) has quit (Read error: Connection reset by peer) 2021-05-19 16:58:16 --> llua (~llua@zsh/developer/llua) has joined #python 2021-05-19 16:58:18 <-- Ergo (~ergo@91.238.59.144) has quit (Remote host closed the connection) 2021-05-19 16:59:21 indigoblue SnoopJ: thank you for the suggestion. I'll give it a shot. 2021-05-19 16:59:22 supremekai thnks supakeen 2021-05-19 16:59:33 <-- Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has quit (Remote host closed the connection) 2021-05-19 17:00:00 --> Core6262 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-19 17:00:04 -- Core6262 is now known as Core3096 2021-05-19 17:00:14 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-19 17:00:28 <-- Core3096 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Client Quit) 2021-05-19 17:00:29 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-19 17:00:48 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 17:00:49 <-- banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has quit (Quit: Connection closed) 2021-05-19 17:00:53 <-- greatgatsby (~greatgats@bras-base-toroon0411w-grc-52-142-114-106-27.dsl.bell.ca) has quit (Quit: Leaving) 2021-05-19 17:00:54 --> Core2147 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-19 17:00:57 --> Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has joined #python 2021-05-19 17:00:59 -- Core2147 is now known as Core6325 2021-05-19 17:01:00 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 17:01:14 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Quit: ayustae) 2021-05-19 17:01:16 --> braj (~textual@159.203.88.148) has joined #python 2021-05-19 17:01:17 <-- Core6325 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Client Quit) 2021-05-19 17:01:19 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 17:01:41 <-- momomo (~momomo@c-dc74524e.016-77-73746f43.bbcust.telenor.se) has quit (Ping timeout: 240 seconds) 2021-05-19 17:01:48 --> Core7482 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-19 17:01:54 -- Core7482 is now known as Core4386 2021-05-19 17:01:54 <-- Core4386 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Client Quit) 2021-05-19 17:02:26 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-19 17:02:50 -- kevr` is now known as kevr 2021-05-19 17:02:54 <-- drazan (~drazan@216.243.54.166) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-19 17:03:06 --> thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has joined #python 2021-05-19 17:03:30 <-- Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has quit (Read error: Connection reset by peer) 2021-05-19 17:04:51 <-- ecool (~ecool@45.61.147.151) has quit (Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in) 2021-05-19 17:05:02 --> bitwinery (~bitwinery@2601:1c2:5100:19d2:dc6c:b2dc:31f4:72b1) has joined #python 2021-05-19 17:05:51 <-- bitwinery (~bitwinery@2601:1c2:5100:19d2:dc6c:b2dc:31f4:72b1) has quit (Remote host closed the connection) 2021-05-19 17:05:59 -- CrunchyChewie_ is now known as CrunchyChewie 2021-05-19 17:06:10 <-- Abbott (~Abbott@unaffiliated/abbott) has left #python ("WeeChat 3.0.1") 2021-05-19 17:06:17 --> bitwinery (~bitwinery@2601:1c2:5100:19d2:dc6c:b2dc:31f4:72b1) has joined #python 2021-05-19 17:06:57 <-- henri (~henri@179.83.53.49) has quit (Remote host closed the connection) 2021-05-19 17:07:07 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-19 17:07:35 <-- supremekai (~supremeka@168.182.158.56) has quit (Quit: Leaving) 2021-05-19 17:07:37 <-- bitwinery (~bitwinery@2601:1c2:5100:19d2:dc6c:b2dc:31f4:72b1) has quit (Remote host closed the connection) 2021-05-19 17:07:40 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-19 17:07:44 --> ecool (~ecool@45.61.147.151) has joined #python 2021-05-19 17:07:47 <-- ecool (~ecool@45.61.147.151) has quit (Remote host closed the connection) 2021-05-19 17:08:27 --> Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has joined #python 2021-05-19 17:08:46 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 260 seconds) 2021-05-19 17:09:17 --> sarahzrf (~sarahzrf_@2604:a880:400:d0::b4a:4001) has joined #python 2021-05-19 17:09:33 <-- sarahzrf (~sarahzrf_@2604:a880:400:d0::b4a:4001) has left #python ("WeeChat 3.1") 2021-05-19 17:09:55 <-- malteger (~malteger@p578449a7.dip0.t-ipconnect.de) has quit (Quit: malteger) 2021-05-19 17:10:39 --> d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has joined #python 2021-05-19 17:10:41 <-- BakaKuna (~Thunderbi@86-89-65-191.fixed.kpn.net) has quit (Ping timeout: 240 seconds) 2021-05-19 17:11:02 <-- jesseTree (~powerhous@2604:3d08:6d7d:7900::e21) has quit (Ping timeout: 258 seconds) 2021-05-19 17:11:41 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-19 17:11:53 --> ecool (~ecool@45.61.147.151) has joined #python 2021-05-19 17:13:11 --> momomo (~momomo@c-dc74524e.016-77-73746f43.bbcust.telenor.se) has joined #python 2021-05-19 17:14:12 --> jayjo (~jayjo@unaffiliated/jayjo) has joined #python 2021-05-19 17:14:26 <-- ecool (~ecool@45.61.147.151) has quit (Client Quit) 2021-05-19 17:15:11 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 240 seconds) 2021-05-19 17:15:42 --> greatgatsby (~greatgats@bras-base-toroon0411w-grc-52-142-114-106-27.dsl.bell.ca) has joined #python 2021-05-19 17:15:46 <-- d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has quit (Ping timeout: 260 seconds) 2021-05-19 17:15:56 <-- Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has quit (Remote host closed the connection) 2021-05-19 17:16:14 <-- kosh (~kosh@p200300d08f0e8800b59ea63f9d3568e3.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-19 17:16:18 --> jesseTree (~powerhous@2604:3d08:6d7d:7900::e21) has joined #python 2021-05-19 17:17:10 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-19 17:17:29 --> dakh7 (~dakh7@ip98-169-201-138.dc.dc.cox.net) has joined #python 2021-05-19 17:17:35 --> yuesbeez (uid458354@gateway/web/irccloud.com/x-ngdnfamziuouqtwg) has joined #python 2021-05-19 17:18:02 --> ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has joined #python 2021-05-19 17:18:06 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-19 17:18:43 --> ecool (~ecool@45.61.147.151) has joined #python 2021-05-19 17:18:55 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Quit: WeeChat 3.1) 2021-05-19 17:18:55 <-- ecool (~ecool@45.61.147.151) has quit (Remote host closed the connection) 2021-05-19 17:19:05 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 258 seconds) 2021-05-19 17:19:11 --> Catatronic_ (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-19 17:19:15 <-- dysfigured (dysfigured@2600:3c00::f03c:92ff:feb4:be75) has quit (Quit: I hate quit messages.) 2021-05-19 17:19:34 --> nucleo (nucleo@fedora/nucleo) has joined #python 2021-05-19 17:19:35 --> jolav (68f44959@104.244.73.89) has joined #python 2021-05-19 17:19:35 -- Catatronic_ is now known as Catatronic 2021-05-19 17:20:03 <-- lsrtl__ (~freebench@92.253.251.226) has quit (Quit: Leaving) 2021-05-19 17:20:04 <-- jolav (68f44959@104.244.73.89) has quit (Client Quit) 2021-05-19 17:20:23 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 17:20:27 <-- ffe4 (~ffe4@200116b824ef4c008d34754a4ebb27e3.dip.versatel-1u1.de) has quit (Ping timeout: 260 seconds) 2021-05-19 17:20:42 <-- radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-19 17:21:50 --> ecool (~ecool@45.61.147.151) has joined #python 2021-05-19 17:21:50 <-- ecool (~ecool@45.61.147.151) has quit (Remote host closed the connection) 2021-05-19 17:21:51 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 250 seconds) 2021-05-19 17:22:30 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 252 seconds) 2021-05-19 17:22:33 --> Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has joined #python 2021-05-19 17:23:25 --> radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has joined #python 2021-05-19 17:23:55 <-- radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has quit (Client Quit) 2021-05-19 17:24:50 <-- zro (~zro@wikimedia/zro) has quit (Quit: WeeChat 3.1) 2021-05-19 17:24:53 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-19 17:25:20 --> radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has joined #python 2021-05-19 17:25:22 --> burakcank (~burakcank@159.146.41.74) has joined #python 2021-05-19 17:26:01 <-- iptable (~iptable@host86-139-28-5.range86-139.btcentralplus.com) has quit (Read error: Connection reset by peer) 2021-05-19 17:27:11 --> Gudddu (~Guddu@unaffiliated/guddu) has joined #python 2021-05-19 17:27:18 <-- sazawal (~sazawal@2409:4043:2e13:7bc:2c3:9466:ff47:f2a0) has quit (Quit: Leaving) 2021-05-19 17:27:46 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 17:27:49 <-- vlm (~vlm@gateway/tor-sasl/vlm) has quit (Remote host closed the connection) 2021-05-19 17:29:21 <-- sth_ (~seth@sys-v.net) has quit (Quit: WeeChat 1.9.1) 2021-05-19 17:29:42 --> sth_ (~seth@sys-v.net) has joined #python 2021-05-19 17:29:58 --> ecool (~ecool@45.61.147.151) has joined #python 2021-05-19 17:30:03 --> bitwinery (~bitwinery@2601:1c2:5100:19d2:dc6c:b2dc:31f4:72b1) has joined #python 2021-05-19 17:30:06 <-- otisolsen70 (~otisolsen@xd4ed80b5.cust.hiper.dk) has quit (Read error: Connection reset by peer) 2021-05-19 17:30:35 <-- Guddu (~Guddu@unaffiliated/guddu) has quit (Ping timeout: 246 seconds) 2021-05-19 17:30:42 --> otisolsen70 (~otisolsen@xd4ed80b5.cust.hiper.dk) has joined #python 2021-05-19 17:30:45 <-- Gudddu (~Guddu@unaffiliated/guddu) has quit (Client Quit) 2021-05-19 17:31:22 --> Sheilong (uid293653@gateway/web/irccloud.com/x-zkhysnfurvbvfxvv) has joined #python 2021-05-19 17:31:28 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 17:31:32 <-- sth_ (~seth@sys-v.net) has quit (Client Quit) 2021-05-19 17:31:49 --> sth_ (~seth@sys-v.net) has joined #python 2021-05-19 17:31:58 <-- heyitsrama (~heyitsram@2601:641:400:423:3443:e120:59fc:d843) has quit (Remote host closed the connection) 2021-05-19 17:32:06 <-- PiRATA (~PiRATA@bug.pirata.dev) has left #python 2021-05-19 17:32:28 <-- nucleo (nucleo@fedora/nucleo) has quit (Quit: just make this person in IRC be quiet https://bit.ly/2IMQaQK) 2021-05-19 17:32:35 <-- wilk (~wilk@adoa216.neoplus.adsl.tpnet.pl) has quit (Remote host closed the connection) 2021-05-19 17:32:48 --> wilk (~wilk@adoa216.neoplus.adsl.tpnet.pl) has joined #python 2021-05-19 17:32:57 --> Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has joined #python 2021-05-19 17:33:11 --> rohfle (73bc8386@115-188-131-134-adsl.sparkbb.co.nz) has joined #python 2021-05-19 17:33:12 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Read error: Connection reset by peer) 2021-05-19 17:33:23 <-- Albori (~Albori@216-229-75-195.fidnet.com) has quit (Ping timeout: 246 seconds) 2021-05-19 17:33:45 <-- legola_ (~legola@unaffiliated/legola) has quit (Remote host closed the connection) 2021-05-19 17:33:51 <-- dakh7 (~dakh7@ip98-169-201-138.dc.dc.cox.net) has quit (Quit: Leaving) 2021-05-19 17:34:19 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-19 17:35:23 --> rpg (~rpg@162-219-230-90.fttp.usinternet.com) has joined #python 2021-05-19 17:36:57 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-19 17:37:19 --> systemdave (dmonschein@2600:3c03::f03c:91ff:fe05:7562) has joined #python 2021-05-19 17:37:44 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 17:40:02 <-- deltab (~deltab@95.154.230.49) has quit (Quit: Changing server) 2021-05-19 17:40:41 --> d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has joined #python 2021-05-19 17:41:57 --> split_horizon (~split_hor@65.100.74.75) has joined #python 2021-05-19 17:42:07 <-- __marco (~marco@195.218.6.205) has quit (Quit: Leaving) 2021-05-19 17:42:08 <-- keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has quit (Quit: keeth) 2021-05-19 17:42:57 <-- manti7 (~manti7@176.10.104.94) has quit (Quit: WeeChat 3.1) 2021-05-19 17:43:10 <-- split_horizon (~split_hor@65.100.74.75) has quit (Client Quit) 2021-05-19 17:43:59 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Quit: hendursaga) 2021-05-19 17:44:10 <-- amazoniantoad (~jrand@2603:3018:600:a000:150a:da13:5f47:51df) has quit (Quit: Leaving) 2021-05-19 17:44:22 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-19 17:44:45 --> bunbunbunbunny (~Christoph@unaffiliated/vlvx) has joined #python 2021-05-19 17:45:03 <-- r3m (~launch@unaffiliated/r3m) has quit (Quit: WeeChat 3.2-dev) 2021-05-19 17:45:06 <-- d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has quit (Ping timeout: 240 seconds) 2021-05-19 17:46:29 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-19 17:47:08 --> Omega037 (~Omega037@047-024-168-024.res.spectrum.com) has joined #python 2021-05-19 17:47:19 <-- Omega037 (~Omega037@047-024-168-024.res.spectrum.com) has quit (Client Quit) 2021-05-19 17:47:40 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-19 17:47:46 <-- nem8 (sid113421@gateway/web/irccloud.com/x-nonnvmnhmyustygc) has left #python ("libera.chat") 2021-05-19 17:47:49 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-19 17:47:54 --> vlm (~vlm@gateway/tor-sasl/vlm) has joined #python 2021-05-19 17:48:24 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-19 17:48:46 <-- bunbunbunbunny (~Christoph@unaffiliated/vlvx) has quit (Ping timeout: 240 seconds) 2021-05-19 17:51:35 --> dysfigured (~dfg@li490-89.members.linode.com) has joined #python 2021-05-19 17:51:51 <-- Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has quit (Quit: Leaving) 2021-05-19 17:52:20 --> Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has joined #python 2021-05-19 17:53:03 <-- DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has quit (Quit: DeadTOm) 2021-05-19 17:53:09 <-- vlm (~vlm@gateway/tor-sasl/vlm) has quit (Ping timeout: 240 seconds) 2021-05-19 17:53:18 --> bambanx (~bambanx@pc-223-49-214-201.cm.vtr.net) has joined #python 2021-05-19 17:53:56 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-19 17:55:19 --> hsh (sid286227@gateway/web/irccloud.com/x-qjnosxyxwnzyojtj) has joined #python 2021-05-19 17:55:34 <-- blyat-73 (~user@79.101.60.163) has quit (Read error: Connection reset by peer) 2021-05-19 17:55:43 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 252 seconds) 2021-05-19 17:55:50 --> lightdot (~weechat@unaffiliated/lightdot) has joined #python 2021-05-19 17:56:07 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-19 17:57:24 <-- hsh (sid286227@gateway/web/irccloud.com/x-qjnosxyxwnzyojtj) has quit (Client Quit) 2021-05-19 17:57:32 <-- contagious_meow (~contagiou@102.2.150.216) has quit (Ping timeout: 246 seconds) 2021-05-19 17:57:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 17:57:55 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-19 17:58:00 --> esselfe (~steph@bras-base-mtrlpq426kw-grc-10-67-68-163-169.dsl.bell.ca) has joined #python 2021-05-19 17:58:11 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 17:58:43 --> Albori (~Albori@216-229-75-195.fidnet.com) has joined #python 2021-05-19 17:59:57 --> d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has joined #python 2021-05-19 18:00:27 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-19 18:00:32 <-- Achylles (~Achylles@2804:431:d724:bb0f:1729:d8d9:f9e6:f367) has quit (Read error: Connection reset by peer) 2021-05-19 18:00:48 --> r3m (~launch@unaffiliated/r3m) has joined #python 2021-05-19 18:00:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 18:01:35 <-- Pio (~pio@167.71.127.248) has quit (Quit: Coyote finally caught me) 2021-05-19 18:02:10 --> Jackneill (~Jackneill@unaffiliated/jackneill) has joined #python 2021-05-19 18:03:00 -- wingsorc is now known as bluew 2021-05-19 18:04:06 <-- spiri (~spiri@unaffiliated/spiri) has quit (Ping timeout: 240 seconds) 2021-05-19 18:04:42 <-- bancroft_ (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit 2021-05-19 18:05:06 --> JimmyRustles (~Haddock@unaffiliated/jimmyrustles) has joined #python 2021-05-19 18:05:07 <-- rpg (~rpg@162-219-230-90.fttp.usinternet.com) has quit (Read error: Connection reset by peer) 2021-05-19 18:05:44 <-- stefanotorresi (~foobar@garfield.torresi.io) has quit (Remote host closed the connection) 2021-05-19 18:06:03 <-- ewdwasright (~ewdwasrig@108.210.81.181) has quit (Remote host closed the connection) 2021-05-19 18:06:37 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 258 seconds) 2021-05-19 18:07:06 <-- d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has quit (Ping timeout: 260 seconds) 2021-05-19 18:07:50 --> contagious_meow (~contagiou@154.122.195.254) has joined #python 2021-05-19 18:08:23 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 246 seconds) 2021-05-19 18:09:26 <-- boB_K7IQ (~boB_K7IQ@152.44.147.180) has quit (Ping timeout: 260 seconds) 2021-05-19 18:10:28 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-19 18:10:38 <-- rohfle (73bc8386@115-188-131-134-adsl.sparkbb.co.nz) has quit (Quit: Connection closed) 2021-05-19 18:12:08 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-19 18:12:12 --> ryanhiebert (uid64795@gateway/web/irccloud.com/x-uupwawdpuotisoqd) has joined #python 2021-05-19 18:12:24 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-19 18:12:44 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-19 18:13:02 <-- contagious_meow (~contagiou@154.122.195.254) has quit (Ping timeout: 268 seconds) 2021-05-19 18:13:48 <-- lightdot (~weechat@unaffiliated/lightdot) has quit (Quit: Gone parachuting!) 2021-05-19 18:14:16 --> lightdot (~weechat@unaffiliated/lightdot) has joined #python 2021-05-19 18:14:36 --> cryzed (~cryzed@185.117.119.204) has joined #python 2021-05-19 18:15:52 <-- thiras (~thiras@unaffiliated/thiras) has quit (Quit: Leaving) 2021-05-19 18:16:06 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 240 seconds) 2021-05-19 18:16:15 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-19 18:16:30 nomic ^ Freenode IRC staff resign en masse, unhappy about new management • The Register 2021-05-19 18:16:40 <-- eht (~eht@unaffiliated/eht) has quit (Quit: leaving) 2021-05-19 18:16:56 --> pwnd_5 (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-19 18:17:33 <-- kevr (~kevr@gateway/tor-sasl/kevr) has quit (Ping timeout: 240 seconds) 2021-05-19 18:17:56 <-- otisolsen70 (~otisolsen@xd4ed80b5.cust.hiper.dk) has quit (Quit: Leaving) 2021-05-19 18:18:19 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Read error: Connection reset by peer) 2021-05-19 18:18:19 -- pwnd_5 is now known as pwnd_ 2021-05-19 18:18:33 <-- xrogaan (~xrogaan@unaffiliated/xrogaan) has quit (Quit: Leaving) 2021-05-19 18:19:44 <-- palasso (~palasso@unaffiliated/palasso) has quit (Quit: I am not a quitter!) 2021-05-19 18:20:16 CodeMouse92 That's putting it mildly 2021-05-19 18:20:24 --> xvx (~xvx@185.48.63.110) has joined #python 2021-05-19 18:20:32 amogorkon first time freenode is in the press? 2021-05-19 18:20:40 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.1) 2021-05-19 18:20:45 CodeMouse92 Unlikely it's the *first* time 2021-05-19 18:20:55 amogorkon first time in a long while though 2021-05-19 18:20:57 --> d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has joined #python 2021-05-19 18:21:34 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 252 seconds) 2021-05-19 18:22:23 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Ping timeout: 246 seconds) 2021-05-19 18:22:41 nacelle or just "freenode is in the press again and its been a while", the first bit is a bit misleading in that context. 2021-05-19 18:22:53 nomic https://www.theregister.com/2021/05/19/freenode_staff_resigns/ 2021-05-19 18:22:59 nomic no its everywhere 2021-05-19 18:23:03 nomic register is just wut i r ead 2021-05-19 18:23:05 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-19 18:23:10 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-19 18:23:39 --> azed (~azed@196.229.100.78) has joined #python 2021-05-19 18:24:09 <-- ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has quit (Ping timeout: 245 seconds) 2021-05-19 18:24:46 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 18:25:01 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-19 18:25:50 <-- freebench (~freebench@92.253.251.226) has quit (Quit: Leaving) 2021-05-19 18:26:08 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-19 18:26:10 <-- d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has quit (Ping timeout: 258 seconds) 2021-05-19 18:27:03 <-- mniip (mniip@b.deneb.mniip.com) has left #python ("This page is intentionally left blank") 2021-05-19 18:27:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 18:28:22 <-- drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 18:29:05 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-19 18:30:11 --> ephemer0l (~ephemer0l@pentoo/user/ephemer0l) has joined #python 2021-05-19 18:30:18 <-- blip- (~blip-@unaffiliated/blip-) has quit (Ping timeout: 268 seconds) 2021-05-19 18:30:57 <-- freebench (~freebench@92.253.251.226) has quit (Client Quit) 2021-05-19 18:31:15 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-19 18:31:44 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 18:31:55 --> jesusJesse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-19 18:32:03 <-- dfch (~dfch@unaffiliated/dfch) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-19 18:33:17 --> jinie_ (~jimmy@188.114.173.37) has joined #python 2021-05-19 18:33:32 <-- pizdets (~pizdets@183.182.110.114) has quit (Ping timeout: 240 seconds) 2021-05-19 18:34:13 <-- jesseTree (~powerhous@2604:3d08:6d7d:7900::e21) has quit (Ping timeout: 258 seconds) 2021-05-19 18:34:31 <-- javi404 (~quassel@unaffiliated/javi404) has quit (Ping timeout: 260 seconds) 2021-05-19 18:34:54 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-19 18:35:39 <-- lightdot (~weechat@unaffiliated/lightdot) has quit (Quit: Gone parachuting!) 2021-05-19 18:35:46 --> heyitsrama (~heyitsram@2601:641:400:423:c99c:fa6d:f406:4364) has joined #python 2021-05-19 18:35:54 <-- IanWizard (~IanWizard@unaffiliated/ianwizard) has left #python ("Outta here") 2021-05-19 18:36:53 --> bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has joined #python 2021-05-19 18:37:00 --> boB_K7IQ (~boB_K7IQ@152.44.147.180) has joined #python 2021-05-19 18:38:56 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Remote host closed the connection) 2021-05-19 18:40:45 mefistofeles any good quick way to store a dictionary as a multiline json ? (I did the usual json.dump but that ends up in a single line) 2021-05-19 18:41:02 --> powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-19 18:41:04 nedbat mefistofeles: json.dump(obj, f, indent=4) 2021-05-19 18:41:09 <-- jesusJesse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Ping timeout: 250 seconds) 2021-05-19 18:41:13 --> vali (~vali@unaffiliated/vali) has joined #python 2021-05-19 18:41:14 mefistofeles nedbat: oh, thanks! 2021-05-19 18:41:20 mefistofeles I should've checked the dump options 2021-05-19 18:41:21 mefistofeles :P 2021-05-19 18:41:31 <-- bulletsquid (~bulletsqu@unaffiliated/bulletsquid) has left #python ("Byebye") 2021-05-19 18:43:04 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-19 18:43:17 --> Secutor (~Adium@2600:1700:edb0:840:2dcc:b34f:9d78:2d85) has joined #python 2021-05-19 18:43:30 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-19 18:44:09 <-- DaPinkOne (~dap@c-76-104-144-218.hsd1.wa.comcast.net) has left #python ("Leaving") 2021-05-19 18:44:13 <-- yuljk (~yuljk@unaffiliated/yuljk) has quit (Quit: %Adieu! I have too grieved a heart to take a tedious leave.%) 2021-05-19 18:44:29 -- Secutor is now known as joblo 2021-05-19 18:46:17 --> dviola (~diego@unaffiliated/dviola) has joined #python 2021-05-19 18:46:20 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-19 18:46:57 --> ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has joined #python 2021-05-19 18:47:04 --> Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has joined #python 2021-05-19 18:47:21 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-19 18:49:21 --> jesseTree (~powerhous@2604:3d08:6d80:1531::612d) has joined #python 2021-05-19 18:50:13 --> endiruna1 (~endiendir@46.101.187.207) has joined #python 2021-05-19 18:51:39 <-- powerhouse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Ping timeout: 245 seconds) 2021-05-19 18:51:39 <-- tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has quit (Quit: Leaving) 2021-05-19 18:52:13 --> kevr (~kevr@gateway/tor-sasl/kevr) has joined #python 2021-05-19 18:52:30 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 268 seconds) 2021-05-19 18:52:46 <-- boB_K7IQ (~boB_K7IQ@152.44.147.180) has quit (Ping timeout: 240 seconds) 2021-05-19 18:52:54 --> drincruz (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-19 18:53:16 --> javi404 (~quassel@unaffiliated/javi404) has joined #python 2021-05-19 18:53:53 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-19 18:54:21 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 260 seconds) 2021-05-19 18:55:04 <-- freebench (~freebench@92.253.251.226) has quit (Quit: Leaving) 2021-05-19 18:55:21 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-19 18:55:29 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Quit: real life interrupt) 2021-05-19 18:55:38 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 246 seconds) 2021-05-19 18:55:47 <-- freebench (~freebench@92.253.251.226) has quit (Remote host closed the connection) 2021-05-19 18:56:58 --> irc_user (uid423822@gateway/web/irccloud.com/x-pgwxuoqtemiiivkb) has joined #python 2021-05-19 18:57:15 <-- rinzewind (~chema@unaffiliated/rinzewind) has quit (Quit: leaving) 2021-05-19 18:57:23 <-- Sauvin (sauvin@about/linux/staff/sauvin) has left #python ("Leaving") 2021-05-19 18:57:30 --> rinzewind (~chema@unaffiliated/rinzewind) has joined #python 2021-05-19 18:57:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 19:00:06 <-- zuQe8 (~zuQe8@cpc105068-sgyl40-2-0-cust196.18-2.cable.virginm.net) has quit (Quit: BYE) 2021-05-19 19:00:08 --> ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has joined #python 2021-05-19 19:00:57 <-- imp (~imp@186.205.11.214) has left #python ("Good Bye") 2021-05-19 19:01:14 <-- bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has quit (Remote host closed the connection) 2021-05-19 19:01:15 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 19:01:23 --> padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has joined #python 2021-05-19 19:02:23 --> zuQe8 (~zuQe8@cpc105068-sgyl40-2-0-cust196.18-2.cable.virginm.net) has joined #python 2021-05-19 19:04:35 <-- goldfish (~goldfish@88.97.31.145) has quit (Quit: Leaving) 2021-05-19 19:05:03 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-19 19:05:10 --> duszek (~margot@admr50.neoplus.adsl.tpnet.pl) has joined #python 2021-05-19 19:05:26 duszek global imagenr = -1 2021-05-19 19:05:30 duszek What's wrong here? 2021-05-19 19:05:36 <-- shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has quit (Quit: shibboleth) 2021-05-19 19:07:46 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 252 seconds) 2021-05-19 19:08:13 jnsnow duszek: you probably want "global imagenr" and "imagenr = -1" on two separate lines, but even more likely that you don't want to be using globals at all 2021-05-19 19:08:21 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-19 19:08:33 duszek jnsnow: where it is documented? 2021-05-19 19:08:49 --> [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has joined #python 2021-05-19 19:09:02 jnsnow What kind of documentation are you hoping to find? 2021-05-19 19:09:11 <-- bambanx (~bambanx@pc-223-49-214-201.cm.vtr.net) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-19 19:09:14 <-- bazul (bazul@38.189.189.46.rev.vodafone.pt) has quit (Remote host closed the connection) 2021-05-19 19:10:49 <-- azed (~azed@196.229.100.78) has quit (Quit: WeeChat 3.1) 2021-05-19 19:10:57 jnsnow duszek: https://docs.python.org/3.9/reference/simple_stmts.html#the-global-statement is what the official docs have to say about "global" 2021-05-19 19:11:17 -- nuala2 is now known as nuala 2021-05-19 19:11:22 duszek don't get that for now, but thank for that 2021-05-19 19:11:57 <-- jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has quit (Quit: WeeChat 3.1) 2021-05-19 19:12:20 --> boB_K7IQ (~boB_K7IQ@152.44.147.180) has joined #python 2021-05-19 19:12:33 jnsnow https://www.programiz.com/python-programming/global-keyword might be more illustrative 2021-05-19 19:12:47 <-- Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has quit (Quit: WeeChat 3.1) 2021-05-19 19:13:49 --> d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has joined #python 2021-05-19 19:13:54 <-- braj (~textual@159.203.88.148) has quit (Quit: braj) 2021-05-19 19:13:55 <-- kristijonas_ (~kristijon@78-56-32-39.static.zebra.lt) has quit (Ping timeout: 265 seconds) 2021-05-19 19:14:13 jnsnow you *usually* don't actually need the global keyword. If you just want to *read* a variable from an outer scope, you can just use it. If you want to *modify* one you need to use 'global' or 'nonlocal' but I would advise against doing that unless you are very confident you know what you are doing 2021-05-19 19:14:15 <-- computeiro (~Wender@189.37.65.180) has quit (Remote host closed the connection) 2021-05-19 19:14:23 Ashburry é/help /raw 2021-05-19 19:14:27 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-19 19:15:08 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-19 19:16:05 <-- diogenese (~diogenese@diogenese.velotech.net) has left #python ("<<<") 2021-05-19 19:16:32 * CrtxReavr really dislikes how the global keyword works. 2021-05-19 19:16:59 <-- drincruz (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Ping timeout: 246 seconds) 2021-05-19 19:17:02 --> rpg (~rpg@162-219-230-90.fttp.usinternet.com) has joined #python 2021-05-19 19:17:07 CrtxReavr If I need variables, I need to access anywhere, I just create a class for them. 2021-05-19 19:17:27 CrtxReavr class G: ; foo = 5 2021-05-19 19:17:36 CrtxReavr You can access G.foo anywhere. 2021-05-19 19:17:41 <-- coniptor (~coniptor@unaffiliated/coniptor) has quit (Ping timeout: 260 seconds) 2021-05-19 19:17:42 <-- duszek (~margot@admr50.neoplus.adsl.tpnet.pl) has quit (Quit: Leaving) 2021-05-19 19:18:00 jnsnow They're definitely weird, and of very limited actual use that isn't better served by a more idiomatic design ...usually 2021-05-19 19:18:06 <-- d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has quit (Ping timeout: 240 seconds) 2021-05-19 19:21:05 nedbat CrtxReavr: you could also do that with "foo = 5" and access "foo" anywhere, no? 2021-05-19 19:21:46 jnsnow access yes, mutate no 2021-05-19 19:21:46 <-- padraigd (~padraigd@c-73-48-132-102.hsd1.ca.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-19 19:21:54 CrtxReavr Well. . . left aligned vars should be constants, no? 2021-05-19 19:22:01 nedbat left-aligned? 2021-05-19 19:22:03 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-19 19:22:18 CrtxReavr I think you know what I mean. 2021-05-19 19:22:20 --> coniptor (dPQJs61JBL@unaffiliated/coniptor) has joined #python 2021-05-19 19:22:35 nedbat CrtxReavr: top-level in the module? 2021-05-19 19:22:37 jnsnow "variables declared at module scope" 2021-05-19 19:22:55 nedbat CrtxReavr: i guess you mean not just access but assign to them also 2021-05-19 19:22:56 --> rwx (mspe@gateway/shell/tilde.team/x-tefeqkjvmoedejlz) has joined #python 2021-05-19 19:23:00 <-- LeShadow (~dark@2001:bc8:608:402::1) has quit (Quit: WeeChat 2.3) 2021-05-19 19:23:03 * CrtxReavr goes back to writing this MOP as opposed to splitting hairs. 2021-05-19 19:23:17 <-- jayjo (~jayjo@unaffiliated/jayjo) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-19 19:23:29 --> sepr (~dark@2001:bc8:608:402::1) has joined #python 2021-05-19 19:23:32 nedbat CrtxReavr: i wasn't trying to split hairs, i was trying to understand what you meant. 2021-05-19 19:23:41 -- sepr is now known as LeShadow 2021-05-19 19:24:23 --> philr (~phil@118.211.93.148) has joined #python 2021-05-19 19:24:51 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-19 19:24:54 <-- abhixec (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) has quit (Quit: Changing server) 2021-05-19 19:25:10 --> Wulf4 (~Wulf@unaffiliated/wulf) has joined #python 2021-05-19 19:25:42 --> dub_a (~dub_a@192.252.212.6) has joined #python 2021-05-19 19:26:04 <-- r3m (~launch@unaffiliated/r3m) has quit (Quit: WeeChat 3.2-dev) 2021-05-19 19:26:18 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-19 19:27:03 <-- akoana (~ah@unaffiliated/akoana) has left #python 2021-05-19 19:27:42 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 19:28:20 --> drincruz (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-19 19:28:25 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 265 seconds) 2021-05-19 19:28:25 -- Wulf4 is now known as Wulf 2021-05-19 19:28:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-19 19:29:56 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 260 seconds) 2021-05-19 19:30:06 --> joshcom (~joshcom@2600:8800:a706:1800:da01:a4fc:d66f:7aeb) has joined #python 2021-05-19 19:30:28 --> schmity (~schmity@65.129.140.255) has joined #python 2021-05-19 19:31:05 <-- securethemews (~securethe@2a00:23c4:1e98:8f00::4) has quit (Quit: Leaving) 2021-05-19 19:31:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 19:31:42 --> bitdex (~bitdex@gateway/tor-sasl/bitdex) has joined #python 2021-05-19 19:31:59 <-- schmity (~schmity@65.129.140.255) has quit (Client Quit) 2021-05-19 19:32:13 <-- vali (~vali@unaffiliated/vali) has quit (Quit: Leaving) 2021-05-19 19:32:31 --> d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has joined #python 2021-05-19 19:32:38 <-- wizzwizz4 (~wizzwizz4@2a00:23c6:9588:ec01:abe:acff:fe0a:8065) has left #python ("WeeChat 2.3") 2021-05-19 19:33:41 <-- cthu| (~cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-19 19:34:08 <-- rpg (~rpg@162-219-230-90.fttp.usinternet.com) has quit (Read error: Connection reset by peer) 2021-05-19 19:34:57 <-- irc_user (uid423822@gateway/web/irccloud.com/x-pgwxuoqtemiiivkb) has left #python 2021-05-19 19:35:12 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 19:35:22 <-- joblo (~Adium@2600:1700:edb0:840:2dcc:b34f:9d78:2d85) has quit (Quit: Leaving.) 2021-05-19 19:35:36 --> Secutor (~Adium@2600:1700:edb0:840:2dcc:b34f:9d78:2d85) has joined #python 2021-05-19 19:35:39 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 19:36:11 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-19 19:37:11 <-- catbeard (~boop@gateway/tor-sasl/walp) has quit (Quit: catbeard) 2021-05-19 19:37:23 --> a6a45081-2b83 (~aditya@122.163.149.247) has joined #python 2021-05-19 19:37:53 <-- drincruz (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 19:39:51 <-- d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has quit (Ping timeout: 260 seconds) 2021-05-19 19:40:24 Samian anyone know a library that rasterizes triangles (a list of tuples, each consisting of 3 3d coordinate points) to a 2d numpy array? 2021-05-19 19:40:30 --> DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has joined #python 2021-05-19 19:40:31 <-- [itchyjunk] (~itchyjunk@unaffiliated/itchyjunk/x-1640057) has left #python ("Leaving") 2021-05-19 19:40:37 Samian on the cpu? 2021-05-19 19:41:06 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-19 19:41:13 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 19:41:28 --> rpg (~rpg@162-219-230-90.fttp.usinternet.com) has joined #python 2021-05-19 19:42:08 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 19:42:42 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-19 19:43:05 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-19 19:43:55 <-- mozgalom (~mozgalom@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-19 19:44:09 <-- ElPresidente (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has quit (Ping timeout: 245 seconds) 2021-05-19 19:45:33 <-- beatrice (emptystrin@tjctf/alum/tris) has left #python ("WeeChat 2.3") 2021-05-19 19:46:22 <-- plutoniix (~q@node-ujl.pool-125-24.dynamic.totinternet.net) has quit (Quit: Leaving) 2021-05-19 19:46:41 --> rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has joined #python 2021-05-19 19:47:17 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 19:47:25 --> testnode (bbc26c58@187.194.108.88) has joined #python 2021-05-19 19:47:31 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-19 19:48:04 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 19:48:09 --> AskerX (1f396c68@31.57.108.104) has joined #python 2021-05-19 19:48:19 testnode hi all, 2021-05-19 19:49:13 <-- heyitsrama (~heyitsram@2601:641:400:423:c99c:fa6d:f406:4364) has quit (Remote host closed the connection) 2021-05-19 19:49:33 testnode How to convert this ?  https://bpa.st/2LBQ 2021-05-19 19:49:42 --> heyitsrama (~heyitsram@2601:641:400:423:c99c:fa6d:f406:4364) has joined #python 2021-05-19 19:49:44 <-- heyitsrama (~heyitsram@2601:641:400:423:c99c:fa6d:f406:4364) has quit (Remote host closed the connection) 2021-05-19 19:50:05 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-19 19:50:38 Yhg1s testnode: tuple(t[0] for t in your_tuple) 2021-05-19 19:50:55 Yhg1s testnode: or, change whatever code is producing the tuple of 1-tuples 2021-05-19 19:51:04 <-- joshcom (~joshcom@2600:8800:a706:1800:da01:a4fc:d66f:7aeb) has quit (Quit: Leaving) 2021-05-19 19:52:25 testnode Yhg1s    thanks 2021-05-19 19:53:12 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 252 seconds) 2021-05-19 19:53:20 <-- johnjay (~pi@38.120.10.99) has quit (Quit: WeeChat 2.3) 2021-05-19 19:54:41 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-19 19:55:27 <-- jesseTree (~powerhous@2604:3d08:6d80:1531::612d) has quit (Remote host closed the connection) 2021-05-19 19:55:45 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-19 19:55:49 --> jesseTree (~powerhous@2604:3d08:6d80:1531::5a11) has joined #python 2021-05-19 19:56:11 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-19 19:56:24 --> pizdets (~pizdets@183.182.114.88) has joined #python 2021-05-19 19:56:41 <-- sq (~mj@unaffiliated/squirrel) has quit (Ping timeout: 240 seconds) 2021-05-19 19:57:12 --> plutoniix (~q@node-ujl.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-19 19:57:42 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 19:57:49 <-- rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has quit (Quit: Connection closed) 2021-05-19 19:58:31 --> braj (~textual@159.203.88.148) has joined #python 2021-05-19 19:58:34 --> morgabra (uid500580@osuosl/staff/morgabra) has joined #python 2021-05-19 20:00:44 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-19 20:00:58 <-- boustrophedon (~boustroph@meow.sh) has quit (Quit: leaving) 2021-05-19 20:01:01 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-19 20:01:20 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 20:01:22 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-19 20:01:28 --> squirrel (~mj@unaffiliated/squirrel) has joined #python 2021-05-19 20:01:36 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 20:02:13 --> solomonix (~solomonix@cpe-76-181-142-134.columbus.res.rr.com) has joined #python 2021-05-19 20:03:55 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 258 seconds) 2021-05-19 20:04:15 <-- rinzewind (~chema@unaffiliated/rinzewind) has quit (Quit: leaving) 2021-05-19 20:04:16 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 20:04:19 --> d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has joined #python 2021-05-19 20:04:40 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 20:05:26 --> Stonefruit (~Stonefrui@c-73-242-170-93.hsd1.nm.comcast.net) has joined #python 2021-05-19 20:06:13 <-- cdown (~cdown@163.114.131.1) has quit (Quit: https://chrisdown.name) 2021-05-19 20:06:32 --> cdown (~cdown@163.114.131.1) has joined #python 2021-05-19 20:06:57 <-- jesseTree (~powerhous@2604:3d08:6d80:1531::5a11) has quit (Remote host closed the connection) 2021-05-19 20:07:07 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 268 seconds) 2021-05-19 20:07:28 --> jesseTree (~powerhous@2604:3d08:6d80:1531::5a11) has joined #python 2021-05-19 20:07:41 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Quit: Leaving) 2021-05-19 20:08:00 --> nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has joined #python 2021-05-19 20:10:11 <-- nomic (~nomic@2a00:23c6:9910:1201:cdae:ea4b:93a4:1c59) has quit (Client Quit) 2021-05-19 20:10:44 <-- cdown (~cdown@163.114.131.1) has quit (Client Quit) 2021-05-19 20:10:54 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-19 20:11:01 --> cdown (~cdown@163.114.131.1) has joined #python 2021-05-19 20:11:28 <-- eigar (~Nickwiz@gateway/tor-sasl/nickwiz) has quit (Quit: void) 2021-05-19 20:11:30 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-19 20:11:56 <-- finkata1 (~finkata@83.222.188.39) has quit (Ping timeout: 246 seconds) 2021-05-19 20:12:29 --> sysadmin (~McCafe@23.108.51.26) has joined #python 2021-05-19 20:14:12 <-- vimart (~vimart@185.69.144.247) has quit (Read error: Connection reset by peer) 2021-05-19 20:15:02 <-- dh (dh@bsd.ee) has quit (Read error: Connection reset by peer) 2021-05-19 20:15:18 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Ping timeout: 265 seconds) 2021-05-19 20:15:21 --> dh (~dh@bsd.ee) has joined #python 2021-05-19 20:15:56 <-- _till_ (~till@unaffiliated/till/x-7804721) has quit (Ping timeout: 252 seconds) 2021-05-19 20:16:40 --> Numero-6 (~Numero-6@53.234.89.92.rev.sfr.net) has joined #python 2021-05-19 20:19:50 --> vimart (~vimart@185.69.144.247) has joined #python 2021-05-19 20:20:41 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-19 20:21:17 Numero-6 hi all, i try to work a code i have read, but the syntax is wrong, that in python3 https://dpaste.org/g01M 2021-05-19 20:21:33 --> Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has joined #python 2021-05-19 20:21:42 Numero-6 i wrote in bash, i'm begging in python 2021-05-19 20:21:55 <-- LogicAside (~TOG@unaffiliated/patches) has quit (Ping timeout: 268 seconds) 2021-05-19 20:22:07 Numero-6 but the syntax is very strict, and that change with python 2 or python3 2021-05-19 20:22:37 Numero-6 For read a code python in book, and write in the computer that complicated 2021-05-19 20:22:51 --> jesusJesse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has joined #python 2021-05-19 20:23:25 <-- Secutor (~Adium@2600:1700:edb0:840:2dcc:b34f:9d78:2d85) has quit (Ping timeout: 250 seconds) 2021-05-19 20:23:34 nedbat Numero-6: do you have an error report? 2021-05-19 20:23:38 --> yeticheese (~yetichees@192.145.80.100) has joined #python 2021-05-19 20:23:46 <-- d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has quit (Ping timeout: 240 seconds) 2021-05-19 20:24:13 Numero-6 yea syntax 2021-05-19 20:24:18 --> Secutor (~Adium@99-57-137-49.lightspeed.sntcca.sbcglobal.net) has joined #python 2021-05-19 20:24:23 Numero-6 but i have look and rewrite the code 2021-05-19 20:24:30 Numero-6 but i understand nothing 2021-05-19 20:24:37 nedbat Numero-6: can you share the error report? 2021-05-19 20:24:51 Numero-6 the info = [ that a liste ? but that not the syntax for a list on python3 2021-05-19 20:24:59 <-- jesseTree (~powerhous@2604:3d08:6d80:1531::5a11) has quit (Ping timeout: 245 seconds) 2021-05-19 20:25:33 Numero-6 wait i go send what exactly i read 2021-05-19 20:25:35 nedbat Numero-6: oh, line 3 is incomplete. maybe it should be: info = [] 2021-05-19 20:26:16 yeticheese Are there any C extension wizards who might be able to help with the following problem? There is a C extension I'm using that has a bug in it and I know the input that causes the bug to surface. I also know the name of the function in the C extension where the bug must be, but I'm not sure how it arises exactly. I'd like to use gdb and initially make the call into the extension from python, but afterwards single step my way through the 2021-05-19 20:26:16 yeticheese C extension's code so I can figure out what's going on 2021-05-19 20:26:25 <-- eblip (~eblip@unaffiliated/eblip) has quit (Ping timeout: 252 seconds) 2021-05-19 20:26:25 yeticheese turning out to be pretty complicated to do 2021-05-19 20:26:44 --> abhixec (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) has joined #python 2021-05-19 20:27:40 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 20:27:46 Numero-6 that wrote like this in the book 2021-05-19 20:27:50 Numero-6 https://dpaste.org/Fc2p 2021-05-19 20:28:00 <-- abhixec (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) has quit (Client Quit) 2021-05-19 20:28:19 Numero-6 look the info = [ ??? what is alist but no ,omg i have past 4 hours on 2021-05-19 20:29:37 grym Numero-6: i think you want info = [] 2021-05-19 20:29:46 grym er, infos = [] 2021-05-19 20:29:50 Numero-6 yeathat maybe an error in the book 2021-05-19 20:30:00 Numero-6 i see only infos = [ 2021-05-19 20:30:02 grym seems like 2021-05-19 20:30:17 Numero-6 so i thinked that a list and he have missed the , and ] 2021-05-19 20:30:47 grym just the ] 2021-05-19 20:31:18 --> jesseTree (~powerhous@2604:3d08:6d80:a900::d77c) has joined #python 2021-05-19 20:31:42 <-- boB_K7IQ (~boB_K7IQ@152.44.147.180) has quit (Ping timeout: 252 seconds) 2021-05-19 20:31:45 Numero-6 ok i test to add infos = [] 2021-05-19 20:31:48 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 20:31:56 --> qpdb_ (~qpdb@unaffiliated/qpdb) has joined #python 2021-05-19 20:31:56 -- qpdb is now known as Guest73340 2021-05-19 20:31:57 <-- Guest73340 (~qpdb@unaffiliated/qpdb) has quit (Killed (verne.freenode.net (Nickname regained by services))) 2021-05-19 20:31:57 -- qpdb_ is now known as qpdb 2021-05-19 20:32:34 <-- contingo (~textual@213.205.200.36) has quit (Quit: My supercomputing cluster has gone to sleep. ZZZzzz…) 2021-05-19 20:32:47 Numero-6 thankkk 2021-05-19 20:32:59 Numero-6 omg i have past 4 hours on the python 3 syntax 2021-05-19 20:33:01 <-- plutoniix (~q@node-ujl.pool-125-24.dynamic.totinternet.net) has quit (Ping timeout: 268 seconds) 2021-05-19 20:33:49 <-- jesusJesse (~powerhous@node-1w7jr9qq60w2d49mau6uv4jb0.ipv6.telus.net) has quit (Ping timeout: 250 seconds) 2021-05-19 20:33:49 Numero-6 so the infos = [] is like an array in bash ? for make a variable ? 2021-05-19 20:33:53 --> sirdidymus (~sirdidymu@sorcsys.net) has joined #python 2021-05-19 20:33:55 grym that's not py3 specific, that's how you create an empty list in py2, as well 2021-05-19 20:33:58 grym Numero-6: it's a list 2021-05-19 20:34:28 nedbat Numero-6: it's called a list, but it's the same as an array in bash (and other languages) 2021-05-19 20:34:35 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-19 20:34:59 <-- testnode (bbc26c58@187.194.108.88) has quit (Quit: Connection closed) 2021-05-19 20:35:02 <-- YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has quit (Ping timeout: 246 seconds) 2021-05-19 20:35:03 Numero-6 i realy want learn more python so i make little project, the syntax is very rude ahah 2021-05-19 20:35:07 <-- hypc (~Thunderbi@175.164.26.80) has quit (Ping timeout: 265 seconds) 2021-05-19 20:35:11 --> hypc1 (~Thunderbi@175.164.26.80) has joined #python 2021-05-19 20:35:15 Numero-6 and i learn only python3 2021-05-19 20:35:44 grym Numero-6: yes, py2 is out of date now 2021-05-19 20:36:09 Numero-6 yea that complicated with the doc sometimes 2021-05-19 20:36:34 --> regakakobigman (~regakakob@c-73-174-187-176.hsd1.pa.comcast.net) has joined #python 2021-05-19 20:37:32 -- hypc1 is now known as hypc 2021-05-19 20:37:32 --> d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has joined #python 2021-05-19 20:38:53 grym https://docs.python.org/3/ is what you want 2021-05-19 20:38:55 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 20:39:16 --> JStoker (jstoker@unaffiliated/jstoker) has joined #python 2021-05-19 20:39:54 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-19 20:40:31 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-19 20:41:51 <-- bluew (~wingsorc@unaffiliated/wingsorc) has quit (Quit: Leaving) 2021-05-19 20:41:55 --> eblip (~eblip@unaffiliated/eblip) has joined #python 2021-05-19 20:43:01 <-- d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has quit (Ping timeout: 260 seconds) 2021-05-19 20:43:13 <-- yeticheese (~yetichees@192.145.80.100) has quit 2021-05-19 20:44:00 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-19 20:44:32 --> killer (678614d8@103.134.20.216) has joined #python 2021-05-19 20:44:37 --> plutoniix (~q@node-ujl.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-19 20:45:02 --> LogicAside (~LogicAsid@c-76-104-144-218.hsd1.wa.comcast.net) has joined #python 2021-05-19 20:45:40 <-- Ashburry (~Ashburry@184.69.89.188) has quit (Ping timeout: 252 seconds) 2021-05-19 20:45:43 Numero-6 thank i be back i go read thisss 2021-05-19 20:50:04 --> dub_a1 (~dub_a@192.252.212.38) has joined #python 2021-05-19 20:51:14 --> bambanx (~bambanx@pc-223-49-214-201.cm.vtr.net) has joined #python 2021-05-19 20:51:53 --> amo (~amogorkon@port-92-196-102-238.dynamic.as20676.net) has joined #python 2021-05-19 20:52:20 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-19 20:52:57 <-- regakakobigman (~regakakob@c-73-174-187-176.hsd1.pa.comcast.net) has quit (Quit: regakakobigman) 2021-05-19 20:53:11 <-- adv_ (~dbeifn@ppp005055058144.access.hol.gr) has quit (Quit: Leaving) 2021-05-19 20:53:22 <-- dub_a (~dub_a@192.252.212.6) has quit (Ping timeout: 268 seconds) 2021-05-19 20:54:13 <-- rpg (~rpg@162-219-230-90.fttp.usinternet.com) has quit (Read error: Connection reset by peer) 2021-05-19 20:54:33 <-- thomasross (~thomasros@ppp-66-225-170-16.vianet.ca) has quit (Quit: Leaving) 2021-05-19 20:54:52 --> r3m (~launch@unaffiliated/r3m) has joined #python 2021-05-19 20:54:58 <-- Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) has quit (Remote host closed the connection) 2021-05-19 20:55:11 <-- amogorkon (~amogorkon@port-83-236-6-20.dynamic.as20676.net) has quit (Ping timeout: 240 seconds) 2021-05-19 20:55:31 <-- Secutor (~Adium@99-57-137-49.lightspeed.sntcca.sbcglobal.net) has quit (Quit: Leaving.) 2021-05-19 20:55:43 --> Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) has joined #python 2021-05-19 20:56:42 <-- vimart (~vimart@185.69.144.247) has quit (Quit: WeeChat 2.8) 2021-05-19 20:57:14 <-- Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) has quit (Remote host closed the connection) 2021-05-19 20:57:43 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 20:57:57 --> Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) has joined #python 2021-05-19 20:58:19 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 265 seconds) 2021-05-19 21:00:44 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 21:00:53 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 21:01:13 <-- frrs (uid130725@gateway/web/irccloud.com/x-oxrpretrmbqfkped) has quit (Quit: Connection closed for inactivity) 2021-05-19 21:02:44 <-- Fauve (~Fauve@unaffiliated/fauve) has quit (Quit: WeeChat 2.3) 2021-05-19 21:03:20 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has quit (Ping timeout: 258 seconds) 2021-05-19 21:04:44 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-19 21:04:47 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has joined #python 2021-05-19 21:04:49 --> mike18 (~geri@71-220-52-187.mpls.qwest.net) has joined #python 2021-05-19 21:04:53 <-- userx (~userx@unaffiliated/userx) has quit (Quit: userx) 2021-05-19 21:05:04 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 252 seconds) 2021-05-19 21:05:41 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-19 21:05:44 <-- Iroha (~Dykomii@kyoto.mii.moe) has quit (Quit: !) 2021-05-19 21:06:21 mike18 hi, how can i import a package which is under ./tests/unit/request_path.py inside ./tests/unit/test_foo/test_foo.py ? 2021-05-19 21:06:36 --> Iroha (~Dykomii@2607:5300:60:336a::1) has joined #python 2021-05-19 21:06:38 <-- apoko_ (~apokopto@119.139.194.70) has quit (Quit: Leaving) 2021-05-19 21:06:41 <-- Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-19 21:06:54 <-- Numero-6 (~Numero-6@53.234.89.92.rev.sfr.net) has quit (Quit: << - Qui etes vous ? - Je suis le nouveau numero 2 - Qui est le numero 1 ? - Vous etes le numero 6 - Je ne suis pas un numero ! Je suis un homme libre!! >>) 2021-05-19 21:07:06 --> Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has joined #python 2021-05-19 21:07:43 --> d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has joined #python 2021-05-19 21:07:48 <-- Iroha (~Dykomii@2607:5300:60:336a::1) has quit (Client Quit) 2021-05-19 21:07:58 <-- AskerX (1f396c68@31.57.108.104) has quit (Quit: Connection closed) 2021-05-19 21:08:03 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-19 21:08:26 --> Iroha (~Dykomii@kyoto.mii.moe) has joined #python 2021-05-19 21:08:41 <-- CodeMouse92 (~CodeMouse@unaffiliated/codemouse) has quit (Quit: Oh freddled gruntbuggly | Thy micturations are to me | As plurdled gabbleblotchits | On a lurgid bee) 2021-05-19 21:09:30 --> psaintlaurent000 (~psaintlau@ool-43541fc9.dyn.optonline.net) has joined #python 2021-05-19 21:09:32 --> userx (~userx@unaffiliated/userx) has joined #python 2021-05-19 21:10:33 <-- waveform (~quassel@waveform.plus.com) has quit (Ping timeout: 240 seconds) 2021-05-19 21:11:19 --> purplex88 (~purplex88@unaffiliated/purplex88) has joined #python 2021-05-19 21:11:43 --> masoudd (~masoudd@unaffiliated/masoudd) has joined #python 2021-05-19 21:12:06 <-- d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has quit (Ping timeout: 240 seconds) 2021-05-19 21:12:29 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 268 seconds) 2021-05-19 21:14:05 -- LogicAside is now known as ThatOtherGuy 2021-05-19 21:14:08 -- ThatOtherGuy is now known as LogicAside 2021-05-19 21:14:14 mike18 can you use relative paths? 2021-05-19 21:14:23 -- purplex88 is now known as purplex 2021-05-19 21:14:31 -- LogicAside is now known as ThatOtherGuy 2021-05-19 21:14:47 --> TheDurf (~TheDurf@cpe-24-243-186-94.hot.res.rr.com) has joined #python 2021-05-19 21:15:13 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has quit (Ping timeout: 258 seconds) 2021-05-19 21:17:05 <-- plutoniix (~q@node-ujl.pool-125-24.dynamic.totinternet.net) has quit (Ping timeout: 260 seconds) 2021-05-19 21:17:44 --> waveform (~quassel@waveform.plus.com) has joined #python 2021-05-19 21:19:10 <-- Iroha (~Dykomii@kyoto.mii.moe) has quit (Quit: !) 2021-05-19 21:19:33 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Ping timeout: 240 seconds) 2021-05-19 21:19:43 --> Iroha (~Dykomii@kyoto.mii.moe) has joined #python 2021-05-19 21:21:04 <-- yn (~yano@freenode/staff-emeritus/yano) has left #python ("WeeChat, The Better IRC Client, https://weechat.org/") 2021-05-19 21:21:50 mike18 i see: ImportError: attempted relative import with no known parent package 2021-05-19 21:22:22 grym mike18: touch tests/__init__.py 2021-05-19 21:23:02 mike18 its in tests/unit/__init__.py and tests/unit/request_path.py 2021-05-19 21:23:02 <-- Sheilong (uid293653@gateway/web/irccloud.com/x-zkhysnfurvbvfxvv) has quit (Quit: Connection closed for inactivity) 2021-05-19 21:23:13 mike18 but how you can use that in tests/unit/test_foo/test_foo.py ? 2021-05-19 21:23:16 grym "it" 2021-05-19 21:23:46 mike18 it is 2021-05-19 21:24:22 mike18 from ..requests_patch import patched_extract_cookies_to_jar ? 2021-05-19 21:26:36 <-- bluesoul (~bluesoul@unaffiliated/bluesoul) has quit (Quit: He gone.) 2021-05-19 21:27:55 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 21:28:24 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-19 21:29:59 mike18 from ...requests_patch import patched_extract_cookies_to_jar 2021-05-19 21:29:59 mike18 E ImportError: attempted relative import beyond top-level package 2021-05-19 21:30:01 --> ralof_ (~ralof@dynamic-095-118-117-014.95.118.pool.telefonica.de) has joined #python 2021-05-19 21:30:06 mike18 grym: now i see the msg above 2021-05-19 21:30:07 <-- purplex (~purplex88@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-19 21:30:20 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 21:30:26 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 21:30:29 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::980e) has joined #python 2021-05-19 21:30:45 -- m1cl_ is now known as m1cl 2021-05-19 21:30:58 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 21:31:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 21:31:14 --> purplex (~purplex@unaffiliated/purplex88) has joined #python 2021-05-19 21:31:21 --> bitdex (~bitdex@gateway/tor-sasl/bitdex) has joined #python 2021-05-19 21:31:57 <-- userx (~userx@unaffiliated/userx) has quit (Quit: userx) 2021-05-19 21:32:41 <-- ralof (~ralof@dynamic-077-009-041-153.77.9.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-19 21:32:54 --> Cmaj6 (~Cmaj6@77-41-20-31.ftth.glasoperator.nl) has joined #python 2021-05-19 21:33:45 --> bigRoo (~user@131.236.54.244) has joined #python 2021-05-19 21:35:32 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 240 seconds) 2021-05-19 21:35:56 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 260 seconds) 2021-05-19 21:40:05 --> d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has joined #python 2021-05-19 21:40:15 <-- TheDurf (~TheDurf@cpe-24-243-186-94.hot.res.rr.com) has quit (Remote host closed the connection) 2021-05-19 21:40:25 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-19 21:41:48 --> kxsl (~kxsl@67.184.119.201) has joined #python 2021-05-19 21:42:59 <-- krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-19 21:43:23 --> Sadale (~Sadale@unaffiliated/sadale) has joined #python 2021-05-19 21:45:51 <-- d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has quit (Ping timeout: 260 seconds) 2021-05-19 21:46:51 --> Secutor (~Adium@99-57-137-49.lightspeed.sntcca.sbcglobal.net) has joined #python 2021-05-19 21:47:36 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 260 seconds) 2021-05-19 21:47:41 <-- ponyala (ponyala@gateway/vpn/privateinternetaccess/ponyala) has quit (Ping timeout: 240 seconds) 2021-05-19 21:47:49 <-- Vornicus (~Vornicus@2603-8000-5d07-7ef0-e8c0-ae73-7695-9dbe.res6.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-19 21:49:06 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-19 21:50:44 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-19 21:50:48 <-- bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-19 21:52:52 --> Muimi (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-19 21:56:08 <-- kim_bruning (~kim@2a02:8109:1440:176c:750f:c737:1d77:8dcc) has quit (Quit: Leaving) 2021-05-19 21:56:21 --> cloudeng (~cloudeng@136.56.42.219) has joined #python 2021-05-19 21:56:29 <-- Iroha (~Dykomii@kyoto.mii.moe) has quit (Quit: !) 2021-05-19 21:57:03 --> Iroha (~Dykomii@kyoto.mii.moe) has joined #python 2021-05-19 21:57:58 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 21:58:05 --> jayjo (~jayjo@unaffiliated/jayjo) has joined #python 2021-05-19 21:58:37 --> d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has joined #python 2021-05-19 21:58:57 mike18 grym: is there a way to use relative import here? 2021-05-19 21:59:09 mike18 i always get: E ImportError: attempted relative import beyond top-level package 2021-05-19 22:00:13 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-19 22:01:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 22:01:58 --> stree (~stree@68.36.8.116) has joined #python 2021-05-19 22:02:32 <-- braj (~textual@159.203.88.148) has quit (Ping timeout: 246 seconds) 2021-05-19 22:02:42 <-- Cmaj6 (~Cmaj6@77-41-20-31.ftth.glasoperator.nl) has quit (Quit: Leaving) 2021-05-19 22:03:25 --> opsec (~opsec@opsec/opsec) has joined #python 2021-05-19 22:05:10 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 22:05:18 <-- urodna (~urodna@unaffiliated/urodna) has quit (Quit: urodna) 2021-05-19 22:05:31 <-- d_vice (~d_vice@BC9DF816.unconfigured.pool.telekom.hu) has quit (Ping timeout: 268 seconds) 2021-05-19 22:06:12 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 22:06:17 <-- bambanx (~bambanx@pc-223-49-214-201.cm.vtr.net) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-19 22:06:40 grym mike18: i don't use relative imports 2021-05-19 22:06:44 grym they confuse me 2021-05-19 22:07:10 mike18 but how to import something in my unit test than? 2021-05-19 22:09:47 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-19 22:09:49 --> userx (~userx@unaffiliated/userx) has joined #python 2021-05-19 22:10:03 <-- ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has quit (Read error: Connection reset by peer) 2021-05-19 22:11:41 <-- hiptobecubic (~john@unaffiliated/hiptobecubic) has quit (Ping timeout: 240 seconds) 2021-05-19 22:11:45 --> Wafficus (~Wafficus@70.126.240.148) has joined #python 2021-05-19 22:11:50 grym tests.unit.test_foo. 2021-05-19 22:11:51 grym as usual 2021-05-19 22:12:06 grym the root package name is "tests", that's all 2021-05-19 22:13:32 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-19 22:13:41 <-- tm (~sinnlos@unaffiliated/tm) has quit (Ping timeout: 240 seconds) 2021-05-19 22:15:08 <-- cloudeng (~cloudeng@136.56.42.219) has quit (Quit: Leaving) 2021-05-19 22:15:24 mike18 grym: seems to work with relative path now - filename was wrong 2021-05-19 22:15:48 mike18 import tests.unit.test_foo ? 2021-05-19 22:15:59 <-- dviola (~diego@unaffiliated/dviola) has quit (Quit: WeeChat 3.1) 2021-05-19 22:16:19 mike18 let me also try: from tests.unit.requests_patch import patched_extract_cookies_to_jar 2021-05-19 22:16:39 mike18 the file is under tests/unit/requests_patch.py 2021-05-19 22:17:11 <-- xvx (~xvx@185.48.63.110) has quit (Ping timeout: 240 seconds) 2021-05-19 22:17:24 --> cloudeng (~cloudeng@45.83.91.52) has joined #python 2021-05-19 22:18:03 --> tm (~sinnlos@unaffiliated/tm) has joined #python 2021-05-19 22:18:07 <-- killer (678614d8@103.134.20.216) has quit (Quit: Connection closed) 2021-05-19 22:18:28 mike18 grym: looks like i read bad code than which uses relative paths... 2021-05-19 22:18:30 mike18 hm 2021-05-19 22:18:36 mike18 the absolute path works fine too 2021-05-19 22:19:44 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-19 22:20:15 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-19 22:20:37 <-- court_jester (~jeffry@unaffiliated/ayr-ton) has quit (Quit: EOF) 2021-05-19 22:20:56 --> court_jester (~jeffry@unaffiliated/ayr-ton) has joined #python 2021-05-19 22:21:33 --> d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has joined #python 2021-05-19 22:21:55 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 258 seconds) 2021-05-19 22:22:26 <-- cloudeng (~cloudeng@45.83.91.52) has quit (Ping timeout: 240 seconds) 2021-05-19 22:23:29 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-19 22:25:17 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-19 22:25:53 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-19 22:26:06 <-- d_vice (~d_vice@BC9DF816.mobile.pool.telekom.hu) has quit (Ping timeout: 240 seconds) 2021-05-19 22:27:16 <-- SirScott (~SirScott@c-67-176-100-163.hsd1.co.comcast.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-19 22:27:24 <-- userx (~userx@unaffiliated/userx) has quit (Quit: userx) 2021-05-19 22:27:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 22:28:35 --> RandomArcher (RandomArch@gateway/vpn/protonvpn/randomarcher) has joined #python 2021-05-19 22:28:55 --> SirScott (~SirScott@c-67-176-100-163.hsd1.co.comcast.net) has joined #python 2021-05-19 22:30:01 <-- RandomArcher (RandomArch@gateway/vpn/protonvpn/randomarcher) has quit (Client Quit) 2021-05-19 22:31:29 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 22:35:15 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-19 22:36:06 --> Suwacc (~Mija@103.192.80.188) has joined #python 2021-05-19 22:37:37 --> female_student_4 (58689a6a@88-104-154-106.dynamic.dsl.as9105.com) has joined #python 2021-05-19 22:38:00 --> pwnd_7 (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-19 22:38:41 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Quit: They told me they fixed it. I trusted them to fix it. It's not my fault!) 2021-05-19 22:38:52 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Read error: Connection reset by peer) 2021-05-19 22:38:52 -- pwnd_7 is now known as pwnd_ 2021-05-19 22:38:52 --> hiptobecubic (~john@unaffiliated/hiptobecubic) has joined #python 2021-05-19 22:39:07 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-19 22:40:01 --> jacks (~jacks@106-69-141-162.dyn.iinet.net.au) has joined #python 2021-05-19 22:42:18 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-19 22:44:39 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 22:45:02 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 22:45:53 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-19 22:46:48 <-- abirkill (snoopy@d207-216-233-23.bchsia.telus.net) has left #python ("Leaving") 2021-05-19 22:47:55 <-- female_student_4 (58689a6a@88-104-154-106.dynamic.dsl.as9105.com) has left #python 2021-05-19 22:48:21 --> Numero-6 (~Numero-6@53.234.89.92.rev.sfr.net) has joined #python 2021-05-19 22:48:29 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-19 22:48:31 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-19 22:49:46 Numero-6 I have a question, i want make a python3 server for comunicate with my phone, i just want can send data (link, word, username) to the server for i can use on the computer 2021-05-19 22:50:05 <-- Death916 (UserNick@unaffiliated/death916) has quit (Remote host closed the connection) 2021-05-19 22:50:15 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-19 22:50:25 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 260 seconds) 2021-05-19 22:50:29 Numero-6 I turn in circle because i don't want use an app, i want make with python3, but i don't know what is the best idea 2021-05-19 22:50:46 jacks try python -m http.server 2021-05-19 22:50:51 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-19 22:50:55 Numero-6 yea i know that lol 2021-05-19 22:51:04 --> kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-19 22:51:41 Numero-6 i can maybe make an html page for enter the text in, and that show by server 2021-05-19 22:51:51 wyoung Do it! 2021-05-19 22:52:01 Numero-6 I don't know what doing 2021-05-19 22:52:41 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-19 22:53:44 <-- brainium (~brainium@unaffiliated/brainium) has quit (Quit: Konversation terminated!) 2021-05-19 22:53:49 wyoung I don't know what you're doing either 2021-05-19 22:55:28 --> mchlumsky (~mchlumsky@modemcable106.190-179-173.mc.videotron.ca) has joined #python 2021-05-19 22:56:05 Numero-6 :{ 2021-05-19 22:56:11 <-- kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 240 seconds) 2021-05-19 22:57:11 <-- eblip (~eblip@unaffiliated/eblip) has quit (Read error: Connection reset by peer) 2021-05-19 22:57:42 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 22:58:03 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-19 22:58:11 Numero-6 I want make a server web, for receivd ASCII text and log it in server 2021-05-19 22:58:13 wyoung Numero-6: Can you give us more information perhaps? 2021-05-19 22:58:31 FunkyBob Numero-6: sort of like a pastebin? 2021-05-19 22:58:52 Numero-6 i have make an begging but i don't know if i follow the good road 2021-05-19 22:58:52 --> kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-19 22:59:37 --> eblip (~eblip@unaffiliated/eblip) has joined #python 2021-05-19 22:59:41 wyoung I don't think that translated correctly. 2021-05-19 22:59:54 Numero-6 i'm in my phone, i want enter an url of my local python server, and put data for show in the server and log it 2021-05-19 23:00:22 --> d_vice (~d_vice@54029262.unconfigured.pool.telekom.hu) has joined #python 2021-05-19 23:00:37 Numero-6 like : http://localhost:8080/hey that the data you want put in server 2021-05-19 23:01:09 Numero-6 Or make an html page like : http://localhost:8080/putdatainthispage.html 2021-05-19 23:01:11 wyoung so you want to fill out a webform and click submit / send? Or you want to make a RESTful style API to send to your server? 2021-05-19 23:01:20 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-19 23:01:26 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 23:02:40 <-- bkhl (~bkhl@marsh.hcoop.net) has left #python ("Using Circe, the loveliest of all IRC clients") 2021-05-19 23:02:42 Numero-6 the easy way, just a server that show the get like a string, or an html page with an case for enter the data and show/save in the server 2021-05-19 23:02:53 Numero-6 complicated to explain sorry for my language 2021-05-19 23:03:12 <-- Haxxa (~Haxxa@122-199-4-253.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-05-19 23:03:34 Samian hi. I'm looking for a vscode extension that provides a dropdown where I can select a commit, and all new code / modifications are highlighted in the main code editor window. Anyone know of such a tool? 2021-05-19 23:04:04 Samian that way if I want to see what's changed since 3 commits back, it would be easy to do 2021-05-19 23:04:18 Samian I don't like diff mode because it's not the same as the regular coding mode 2021-05-19 23:04:43 --> mangold (~mangold@198.98.183.56) has joined #python 2021-05-19 23:04:59 Numero-6 wyoung: say me if you have understand, that an easy project no an farm 2021-05-19 23:05:06 <-- d_vice (~d_vice@54029262.unconfigured.pool.telekom.hu) has quit (Ping timeout: 240 seconds) 2021-05-19 23:06:11 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-19 23:06:52 --> azed (~azed@196.229.100.78) has joined #python 2021-05-19 23:07:05 <-- Wafficus (~Wafficus@70.126.240.148) has quit (Remote host closed the connection) 2021-05-19 23:07:18 Numero-6 i always run again this project and i have never find that amazing 2021-05-19 23:07:40 --> pedahzur (~jkugler@216-67-98-32.static.acsalaska.net) has joined #python 2021-05-19 23:07:42 --> Wafficus (~Wafficus@70.126.240.148) has joined #python 2021-05-19 23:08:03 --> Haxxa (~Haxxa@122-199-4-253.ip4.superloop.com) has joined #python 2021-05-19 23:08:32 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-19 23:08:35 SnoopJ Samian, I know GitLens has some tools that do things a bit like that, not sure it would do exactly what you want, but it's a good integration 2021-05-19 23:09:11 <-- Y3Klo (~Thunderbi@2806:10b7:3:50a2:feaa:14ff:fe93:db3c) has quit (Quit: Y3Klo) 2021-05-19 23:11:40 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-19 23:13:18 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-19 23:14:34 <-- nisstyre (~wes@python-zero/conduct-committee/nisstyre) has quit (Quit: WeeChat 3.1) 2021-05-19 23:15:11 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 240 seconds) 2021-05-19 23:16:28 --> eht (~eht@unaffiliated/eht) has joined #python 2021-05-19 23:16:28 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-19 23:16:29 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-19 23:17:33 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-19 23:17:47 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-19 23:18:12 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Quit: = "") 2021-05-19 23:20:11 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 240 seconds) 2021-05-19 23:21:49 Numero-6 wyoung: webform and click submit / send that it ! 2021-05-19 23:22:25 <-- Affliction (affliction@2400:8907::f03c:92ff:feb0:8be2) has quit (Quit: Read error: Connection reset by beer) 2021-05-19 23:23:06 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-19 23:23:51 <-- dub_a1 (~dub_a@192.252.212.38) has quit (Ping timeout: 260 seconds) 2021-05-19 23:25:08 --> Hanii (~Hanii@2a00:23c5:c587:6d00:15f1:d1b4:e065:5449) has joined #python 2021-05-19 23:25:46 --> dub_a1 (dub_a@gateway/vpn/mullvad/duba/x-57903454) has joined #python 2021-05-19 23:27:52 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 23:28:09 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 265 seconds) 2021-05-19 23:29:37 --> Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has joined #python 2021-05-19 23:31:05 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-19 23:31:55 --> eru (67649602@unaffiliated/electron/x-8286743) has joined #python 2021-05-19 23:33:40 --> ClearlyRandom (~ClearlyRa@024-107-050-034.res.spectrum.com) has joined #python 2021-05-19 23:34:32 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit 2021-05-19 23:35:00 <-- Pseudocrat (~pseudo@cpe-76-184-83-157.tx.res.rr.com) has quit (Quit: WeeChat 3.1) 2021-05-19 23:36:43 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-19 23:36:47 <-- mangold (~mangold@198.98.183.56) has quit (Ping timeout: 268 seconds) 2021-05-19 23:37:19 Samian SnoopJ, from what I'm seeing, gitlens shows differences in the code editor. I want to see which files have changed in the navigation tree 2021-05-19 23:37:28 SnoopJ Samian, it does both 2021-05-19 23:37:36 SnoopJ I mostly use it for the former 2021-05-19 23:38:06 --> mangold (~mangold@198.98.183.39) has joined #python 2021-05-19 23:38:15 SnoopJ (it adds a blame line to whatever line the cursor is on, which is frequently super helpful) 2021-05-19 23:38:49 SnoopJ and in looking through the docs for your question I see that you can get it to display some indication of relative age of code, which sounds interesting 2021-05-19 23:39:09 --> baldpope (~baldpope@unaffiliated/baldpope) has joined #python 2021-05-19 23:39:30 baldpope anyone here use the pymsteams library and familiar with sending messages to the webhook connector through teams? 2021-05-19 23:39:51 baldpope or a diff library and sending messages through teams 2021-05-19 23:39:57 --> rudrab (2d771ca7@45.119.28.167) has joined #python 2021-05-19 23:41:16 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 258 seconds) 2021-05-19 23:41:38 --> SwiftMatt (~Objective@2601:282:4300:3e:20d2:7dfa:5d54:4833) has joined #python 2021-05-19 23:41:42 <-- eru (67649602@unaffiliated/electron/x-8286743) has quit (Ping timeout: 240 seconds) 2021-05-19 23:41:51 --> bitdex (~bitdex@gateway/tor-sasl/bitdex) has joined #python 2021-05-19 23:41:58 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-19 23:42:27 --> plutoniix (~q@node-uhj.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-19 23:42:36 <-- SwiftMatt (~Objective@2601:282:4300:3e:20d2:7dfa:5d54:4833) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-19 23:42:51 Guest20 hi there i have a condition in the except block 2021-05-19 23:42:53 Guest20 that is failing 2021-05-19 23:43:02 Guest20 how to tackle that as well 2021-05-19 23:43:20 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-19 23:43:28 <-- pedahzur (~jkugler@216-67-98-32.static.acsalaska.net) has quit (Ping timeout: 252 seconds) 2021-05-19 23:43:34 baldpope Guest20, you'd need to provide some sample code to review first 2021-05-19 23:43:41 baldpope pastebin is your friend 2021-05-19 23:44:40 SnoopJ bpaste is nice too: https://bpaste.net/+python+pytb 2021-05-19 23:44:47 Guest20 baldpope https://pasteboard.co/K2I34Fs.png 2021-05-19 23:44:50 Guest20 aah 2021-05-19 23:45:13 Guest20 https://dpaste.org/JMur 2021-05-19 23:45:33 <-- Rothschild666 (~Rothschil@c-69-249-29-95.hsd1.pa.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-19 23:45:36 SnoopJ Guest20, a "bare" `except` is usually a bad idea for exactly the reason that's causing you to ask: it hides the exception! 2021-05-19 23:45:37 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-19 23:45:57 Guest20 what can i do here 2021-05-19 23:46:24 <-- endiruna1 (~endiendir@46.101.187.207) has quit (Ping timeout: 252 seconds) 2021-05-19 23:47:15 SnoopJ Guest20, I would rewrite the handler to be `except Exception as exc:` and log the exception (`traceback.format_exc()` may be useful here), but you could also drop into a debugger there or what-have-you. 2021-05-19 23:47:32 djapo jupyter lab doesn't work with python 3.9 2021-05-19 23:47:41 djapo whats up with that. 2021-05-19 23:48:58 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-19 23:50:01 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-19 23:50:22 <-- bboles (~bboles@64.94.212.195) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-19 23:50:27 --> SirGabriel (be994939@190.153.73.57) has joined #python 2021-05-19 23:50:45 SnoopJ djapo, it most certainly does. Can you describe the failure you're seeing? Seeing the complete error report (if any) would be good. 2021-05-19 23:51:15 --> bboles (~bboles@64.94.212.195) has joined #python 2021-05-19 23:51:46 djapo SnoopJ: im recreating my venv to see if that fixes it, the error had to do with b64 encoding. will paste soon 2021-05-19 23:52:37 <-- SirGabriel (be994939@190.153.73.57) has quit (Quit: Connection closed) 2021-05-19 23:53:06 SnoopJ djapo, be careful to check *which* jupyterlab is being invoked if you have a copy installed outside that venv, too, especially if it's an older version. 2021-05-19 23:54:21 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-19 23:54:44 <-- rudrab (2d771ca7@45.119.28.167) has quit (Quit: Connection closed) 2021-05-19 23:56:05 Samian argh does vscode not allow pasting in a file's full path to open a file? 2021-05-19 23:56:12 Samian I have to click through shit 2021-05-19 23:56:14 Samian I don't want to click 2021-05-19 23:56:42 Samian if a file is 10 folders deep, I don't want to click through the folders! 2021-05-19 23:56:45 Samian that's a productivity killer 2021-05-19 23:56:50 Wafficus GUYS WE NEED TO MOVE TO LIBERA 2021-05-19 23:57:00 Samian vscode on ubuntu is trash horrible crap 2021-05-19 23:57:13 Samian efff ubuntu sorry but windows is better. you get what you pay for! 2021-05-19 23:57:25 * Samian misses git tortoise 2021-05-19 23:57:38 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-19 23:58:04 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-19 23:58:13 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-19 23:58:21 <-- edlou (uid413273@gateway/web/irccloud.com/x-qsjwmvydaedgmmeo) has quit (Quit: Connection closed for inactivity) 2021-05-19 23:58:47 Samian https://imgur.com/a/1emyzZl 2021-05-19 23:58:48 Samian see that!?!? 2021-05-19 23:59:07 Samian I feel like I'm walking in the dark blind folded the way I have to navigate through the file system in vscode ubuntu!!!! 2021-05-19 23:59:55 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Ping timeout: 260 seconds) 2021-05-20 00:00:06 abesab Samian, that's the window manager software's fault on Ubuntu, not vscode, if I'm not mistaken 2021-05-20 00:00:54 djapo SnoopJ: https://dpaste.com/9XZMHXNRK 2021-05-20 00:01:26 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 00:01:48 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-20 00:02:08 abesab Samian, in vscode after you hit ctrl-O, try ctrl-L within that file open dialog 2021-05-20 00:02:10 djapo the problem is with nbformat 2021-05-20 00:02:10 <-- ClearlyRandom (~ClearlyRa@024-107-050-034.res.spectrum.com) has quit (Quit: Leaving) 2021-05-20 00:02:20 abesab Then you should be able to paste your file path 2021-05-20 00:02:23 Samian abesab, both of their fault. if it was me being paid to write something professional, if it's not in ubuntu, I'd need to custom code it 2021-05-20 00:02:47 Samian yes thanks abesab 2021-05-20 00:03:11 Samian another failure of ubuntu to follow the principle out-of-sight,out-of-mind. in-sight-in-mind. 2021-05-20 00:03:19 abesab Samian, yw, was a quick web search away for me 2021-05-20 00:03:26 djapo ooh, ok. I just had to upgrade that package 2021-05-20 00:04:00 Samian abesab, ah why didn't I think of that. I need to go to sleep I'm juiced out for the day 2021-05-20 00:04:19 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-20 00:04:28 Samian still, it's annoying that there's the appearance of it not being possible 2021-05-20 00:04:40 Samian why not an empty bar always in the file open dialog? 2021-05-20 00:05:06 mike18 hi i have a hard time to read this python func. how does the data need to look like to pass it to that func? https://ideone.com/KjxV4t 2021-05-20 00:05:45 <-- beencubed (~beencubed@209.131.238.248) has quit (Quit: Leaving) 2021-05-20 00:06:01 <-- mangold (~mangold@198.98.183.39) has quit (Ping timeout: 260 seconds) 2021-05-20 00:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-20 00:06:39 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-20 00:06:54 --> mangold (~mangold@198.98.183.55) has joined #python 2021-05-20 00:07:47 KirkMcDonald mike18: Looks like it wants an iterable of... something with a get_formdata() method, whatever that is. 2021-05-20 00:08:07 mike18 it seems to call an url? 2021-05-20 00:09:14 --> ClearlyRandom (~ClearlyRa@024-107-050-034.res.spectrum.com) has joined #python 2021-05-20 00:09:19 <-- Secutor (~Adium@99-57-137-49.lightspeed.sntcca.sbcglobal.net) has quit (Quit: Leaving.) 2021-05-20 00:09:54 --> omenius1337 (~omenius@2001:2003:f58c:a000:487b:303d:58f:ae74) has joined #python 2021-05-20 00:09:56 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 246 seconds) 2021-05-20 00:10:00 --> tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has joined #python 2021-05-20 00:11:14 <-- bitmask (~bitmask@c-73-215-237-27.hsd1.nj.comcast.net) has quit (Quit: Bye!) 2021-05-20 00:11:21 --> ente_ (~ente_@p200300dc5f11fe01b184880fe655229e.dip0.t-ipconnect.de) has joined #python 2021-05-20 00:12:06 <-- tourdownunder (~tourdownu@tfs3072431.lnk.telstra.net) has quit (Client Quit) 2021-05-20 00:12:28 <-- ClearlyRandom (~ClearlyRa@024-107-050-034.res.spectrum.com) has quit (Quit: Leaving) 2021-05-20 00:12:29 <-- omenius (~omenius@2001:2003:f58c:a000:487b:303d:58f:ae74) has quit (Ping timeout: 245 seconds) 2021-05-20 00:13:38 <-- eblip (~eblip@unaffiliated/eblip) has quit (Read error: Connection reset by peer) 2021-05-20 00:14:14 <-- jacks (~jacks@106-69-141-162.dyn.iinet.net.au) has quit 2021-05-20 00:14:19 <-- iNs (~ins@gateway/tor-sasl/ins) has quit (Remote host closed the connection) 2021-05-20 00:14:40 --> iNs (~ins@gateway/tor-sasl/ins) has joined #python 2021-05-20 00:15:20 --> eblip (~eblip@unaffiliated/eblip) has joined #python 2021-05-20 00:17:11 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-20 00:17:47 <-- masoudd (~masoudd@unaffiliated/masoudd) has quit (Quit: Leaving) 2021-05-20 00:18:31 --> sunrosa (sunrosa@gateway/vpn/protonvpn/sunrosa) has joined #python 2021-05-20 00:19:40 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-20 00:20:26 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-20 00:20:46 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 00:20:48 <-- gvsa123 (~gvsa123@d50-93-30-240.abhsia.telus.net) has quit (Quit: Leaving) 2021-05-20 00:20:50 --> Keda87 (23bbf43f@gateway/web/cgi-irc/kiwiirc.com/ip.35.187.244.63) has joined #python 2021-05-20 00:21:00 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Client Quit) 2021-05-20 00:21:12 <-- fantis (~mantisfan@gateway/tor-sasl/mantisfan) has quit (Remote host closed the connection) 2021-05-20 00:21:13 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-20 00:21:45 <-- Keda87 (23bbf43f@gateway/web/cgi-irc/kiwiirc.com/ip.35.187.244.63) has quit (Quit: Keda87) 2021-05-20 00:21:54 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 258 seconds) 2021-05-20 00:22:07 <-- Stonefruit (~Stonefrui@c-73-242-170-93.hsd1.nm.comcast.net) has quit (Quit: Leaving) 2021-05-20 00:22:17 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-20 00:23:05 <-- Chex (sss@sleepl.northnook.ca) has left #python 2021-05-20 00:23:10 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 00:23:15 <-- mangold (~mangold@198.98.183.55) has quit (Ping timeout: 265 seconds) 2021-05-20 00:23:28 --> av_ (uid87081@gateway/web/irccloud.com/x-dpizxdswvcmykvmp) has joined #python 2021-05-20 00:24:06 <-- dez (uid92154@fedora/deSouza) has quit (Quit: Connection closed for inactivity) 2021-05-20 00:24:43 --> snowolf (~snowolf@wikimedia/Snowolf) has joined #python 2021-05-20 00:25:20 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 246 seconds) 2021-05-20 00:25:37 --> DHARMAKAYA (~DHARMAKAY@189.174.247.195) has joined #python 2021-05-20 00:27:27 --> Jantz (~IceChat95@2407:7000:8d04:100:4180:b9df:a374:e406) has joined #python 2021-05-20 00:27:41 <-- bitblit (~bitblit@gateway/tor-sasl/bitblit) has quit (Remote host closed the connection) 2021-05-20 00:27:41 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 00:27:41 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Remote host closed the connection) 2021-05-20 00:28:02 --> sec^nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-20 00:28:23 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Quit: Leaving) 2021-05-20 00:28:51 --> f0zzyB3ar (f0zzyB3ar@gateway/vpn/protonvpn/f0zzyb3ar) has joined #python 2021-05-20 00:28:58 --> bitblit (~bitblit@gateway/tor-sasl/bitblit) has joined #python 2021-05-20 00:30:06 <-- redj (~quassel@bras-base-bchmpq5707w-grc-17-174-91-212-25.dsl.bell.ca) has left #python ("http://quassel-irc.org - Chat comfortably. Anywhere.") 2021-05-20 00:31:23 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 00:31:26 --> dtux (~dtux@2600:1700:22f0:37bf:a9b6:393:7755:433a) has joined #python 2021-05-20 00:31:41 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-20 00:35:10 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 252 seconds) 2021-05-20 00:36:01 --> NeilG (~NeilG@192.222.196.111) has joined #python 2021-05-20 00:36:13 NeilG what's the best way to validate a dataclass? 2021-05-20 00:36:23 NeilG def __post_init__(self): assert whatever? 2021-05-20 00:36:32 NeilG or is there a better way? 2021-05-20 00:36:53 <-- zahlman (~zahlman@bras-base-toroon4432w-grc-04-174-93-62-159.dsl.bell.ca) has quit (Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/) 2021-05-20 00:37:26 <-- Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) has left #python 2021-05-20 00:38:27 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 268 seconds) 2021-05-20 00:38:33 <-- NeilG (~NeilG@192.222.196.111) has quit (Remote host closed the connection) 2021-05-20 00:39:20 <-- Wafficus (~Wafficus@70.126.240.148) has quit (Quit: WeeChat 3.0.1) 2021-05-20 00:39:41 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-20 00:40:35 <-- ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has quit (Quit: Leaving) 2021-05-20 00:41:26 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 240 seconds) 2021-05-20 00:41:42 <-- akoana (~ah@unaffiliated/akoana) has quit (Quit: leaving) 2021-05-20 00:42:24 --> daregap (~belovent@cr-01.anx09.lju.si.anexia-it.com) has joined #python 2021-05-20 00:43:40 --> sazawal (~sazawal@2409:4043:2e13:7bc:d999:9315:7d85:6d8f) has joined #python 2021-05-20 00:44:12 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-20 00:44:18 <-- sazawal (~sazawal@2409:4043:2e13:7bc:d999:9315:7d85:6d8f) has quit (Max SendQ exceeded) 2021-05-20 00:44:55 --> sazawal (~sazawal@2409:4043:2e13:7bc:d999:9315:7d85:6d8f) has joined #python 2021-05-20 00:45:59 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-20 00:46:51 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Quit: Wr4i7h) 2021-05-20 00:47:17 <-- roguelazer (~roguelaze@2605:2700:0:2:a800:ff:fe0d:5f19) has quit (Quit: ZNC - http://znc.in) 2021-05-20 00:47:38 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-20 00:48:19 <-- emerent (~quassel@p200300cd5703bb20ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-20 00:48:51 average okay, i just dropped my account on Freenode, switching to Libera 2021-05-20 00:48:52 <-- h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-20 00:48:52 <-- Monet (~woostundy@106.11.35.195) has quit (Ping timeout: 265 seconds) 2021-05-20 00:49:10 <-- TFKyle (~kyle@64.201.205.70) has quit (Quit: :q!) 2021-05-20 00:49:19 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-20 00:49:46 --> emerent (~quassel@p200300cd5703bba6ba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-20 00:49:47 <-- average (uid473595@gateway/web/irccloud.com/x-nfxcdcwgbrzvigiw) has quit 2021-05-20 00:51:16 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-20 00:51:17 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 265 seconds) 2021-05-20 00:51:28 <-- coldenbrewed (nitrobrew@2a01:7e00::f03c:92ff:fe53:e963) has quit (Quit: Gone.) 2021-05-20 00:51:31 ente_ yeah same 2021-05-20 00:52:15 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 265 seconds) 2021-05-20 00:52:30 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-20 00:52:51 <-- ente_ (~ente_@p200300dc5f11fe01b184880fe655229e.dip0.t-ipconnect.de) has quit (Quit: WeeChat 3.1) 2021-05-20 00:53:32 <-- joako (~joako@opensuse/member/joak0) has quit (Quit: quit) 2021-05-20 00:53:38 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-20 00:53:53 --> mrmachine (uid239172@gateway/web/irccloud.com/x-tnwzccxvqdfknfkf) has joined #python 2021-05-20 00:54:37 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-20 00:54:44 --> ska (~ska@unaffiliated/ska) has joined #python 2021-05-20 00:55:14 mrmachine are `if foo in some_set:` and `len(some_set)` and `list(some_set)` atomic, and therefore safe from `Set changed size during iteration` errors in a multi-threaded environment (twisted)? 2021-05-20 00:55:26 --> joako (~joako@opensuse/member/joak0) has joined #python 2021-05-20 00:55:39 <-- Moyst (~moyst@212-149-213-144.bb.dnainternet.fi) has quit (Write error: Connection reset by peer) 2021-05-20 00:55:39 <-- sqram (~resio@c-68-43-20-196.hsd1.mi.comcast.net) has quit (Write error: Connection reset by peer) 2021-05-20 00:55:39 <-- ashnur (~rak@unaffiliated/ashnur) has quit (Write error: Connection reset by peer) 2021-05-20 00:56:01 --> sqram (~resio@c-68-43-20-196.hsd1.mi.comcast.net) has joined #python 2021-05-20 00:56:18 --> ashnur (~rak@unaffiliated/ashnur) has joined #python 2021-05-20 00:57:38 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 00:57:41 --> greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has joined #python 2021-05-20 00:58:21 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has joined #python 2021-05-20 00:58:33 --> waveclaw (~quassel@ip68-97-140-218.ok.ok.cox.net) has joined #python 2021-05-20 01:00:01 --> stranac (~stranac@195.29.239.126) has joined #python 2021-05-20 01:00:19 <-- BinaryVixen899 (~BinaryVix@75.172.189.47) has quit (Remote host closed the connection) 2021-05-20 01:00:19 <-- DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has quit (Quit: DeadTOm) 2021-05-20 01:00:36 --> d_vice (~d_vice@54029262.dsl.pool.telekom.hu) has joined #python 2021-05-20 01:00:50 <-- akoana (~ah@unaffiliated/akoana) has quit (Quit: leaving) 2021-05-20 01:00:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 01:02:29 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 01:02:30 <-- kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has quit (Quit: leaving) 2021-05-20 01:04:10 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 01:04:29 <-- kxsl (~kxsl@67.184.119.201) has quit (Quit: Leaving) 2021-05-20 01:05:11 <-- Numero-6 (~Numero-6@53.234.89.92.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-20 01:05:46 <-- d_vice (~d_vice@54029262.dsl.pool.telekom.hu) has quit (Ping timeout: 240 seconds) 2021-05-20 01:06:45 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:98e0:6034:aa41:4085) has quit (Ping timeout: 258 seconds) 2021-05-20 01:07:34 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 01:07:41 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-20 01:07:43 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 265 seconds) 2021-05-20 01:08:10 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 01:08:40 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 258 seconds) 2021-05-20 01:08:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 01:10:17 <-- akoana (~ah@unaffiliated/akoana) has quit (Client Quit) 2021-05-20 01:10:36 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-20 01:11:00 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-20 01:11:01 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-20 01:11:22 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 01:11:25 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 01:12:44 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-20 01:13:29 --> gitesh_ (uid423739@gateway/web/irccloud.com/x-twuffdlbsayncutx) has joined #python 2021-05-20 01:13:35 <-- plutoniix (~q@node-uhj.pool-125-24.dynamic.totinternet.net) has quit (Quit: Leaving) 2021-05-20 01:14:11 --> ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has joined #python 2021-05-20 01:15:04 <-- grangerstranger (sid295344@gateway/web/irccloud.com/x-xkhiqgjthbmqmetr) has quit 2021-05-20 01:15:51 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 01:16:26 <-- eN_Joy (~eN_Joy@wsip-72-213-93-155.ok.ok.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-20 01:16:26 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 260 seconds) 2021-05-20 01:17:13 --> Tabmow (~tabmow@freenode/staff-emeritus/tabmow) has joined #python 2021-05-20 01:17:15 gitesh_ look at this code - https://dpaste.org/uwLs 2021-05-20 01:17:28 --> Jantz_ (~IceChat95@2407:7000:8d04:100:d144:dcba:f369:af01) has joined #python 2021-05-20 01:17:29 gitesh_ how's it changing line variable? 2021-05-20 01:17:34 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-20 01:17:49 mdk mrmachine: some_set being a Python set? 2021-05-20 01:17:59 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-20 01:17:59 gitesh_ if re.search('^X\S*: [0-9.]+', line): <-------- is changing line variable 2021-05-20 01:18:15 <-- Jantz (~IceChat95@2407:7000:8d04:100:4180:b9df:a374:e406) has quit (Ping timeout: 258 seconds) 2021-05-20 01:18:29 mdk gitesh_: what make you think so? 2021-05-20 01:18:32 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 268 seconds) 2021-05-20 01:18:43 <-- azed (~azed@196.229.100.78) has quit (Quit: WeeChat 3.1) 2021-05-20 01:18:46 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 240 seconds) 2021-05-20 01:19:02 gitesh_ mdk: because I'm printing line on the next line 2021-05-20 01:19:17 gitesh_ and the line is printing what i want 2021-05-20 01:19:42 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-20 01:20:08 mdk gitesh_: your print is in the `if re.search` so it is only executed when re.search find something 2021-05-20 01:20:08 gitesh_ mdk: oh i see 2021-05-20 01:20:11 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-20 01:20:13 mdk this does not mean `line` is being changed ? 2021-05-20 01:20:18 gitesh_ i got it , it's just a line 2021-05-20 01:20:25 <-- SammyToesis (~SammyToes@cpe-76-184-187-146.tx.res.rr.com) has quit (Quit: Leaving) 2021-05-20 01:21:02 mdk gitesh_: strings in python are immutable, so don't worry in the future, there's no change a function call change a string 2021-05-20 01:21:10 mdk s/change/chance/ 2021-05-20 01:21:36 --> d_vice (~d_vice@54029262.dsl.pool.telekom.hu) has joined #python 2021-05-20 01:22:30 --> xrogaan (~xrogaan@unaffiliated/xrogaan) has joined #python 2021-05-20 01:23:00 --> b0tanik (~b0tanik@188.163.73.73) has joined #python 2021-05-20 01:24:10 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Client Quit) 2021-05-20 01:25:04 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 01:26:21 <-- d_vice (~d_vice@54029262.dsl.pool.telekom.hu) has quit (Ping timeout: 260 seconds) 2021-05-20 01:27:47 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 01:28:01 mrmachine mdk: yes, `some_set` being a python set that may change size via thread (twisted) 2021-05-20 01:28:41 <-- AlanMD (~alan@193.105.140.131) has quit (Ping timeout: 240 seconds) 2021-05-20 01:28:46 --> bloodninja114 (~bloodninj@63-153-7-223.blng.qwest.net) has joined #python 2021-05-20 01:29:58 <-- bloodninja114 (~bloodninj@63-153-7-223.blng.qwest.net) has quit (Client Quit) 2021-05-20 01:30:21 <-- greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has quit (Read error: Connection reset by peer) 2021-05-20 01:30:41 <-- dub_a1 (dub_a@gateway/vpn/mullvad/duba/x-57903454) has quit (Ping timeout: 240 seconds) 2021-05-20 01:30:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 01:32:10 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-20 01:32:27 --> jacks (~jacks@106-69-141-162.dyn.iinet.net.au) has joined #python 2021-05-20 01:33:44 <-- ska (~ska@unaffiliated/ska) has quit (Quit: Leaving) 2021-05-20 01:33:47 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-20 01:33:47 <-- brendantcc (brendantcc@tilde.team/users/brendantcc) has quit (Quit: "fuck freenode") 2021-05-20 01:34:04 <-- a6a45081-2b83 (~aditya@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 01:34:06 --> Stonefruit (~Stonefrui@c-73-242-170-93.hsd1.nm.comcast.net) has joined #python 2021-05-20 01:34:20 <-- mike18 (~geri@71-220-52-187.mpls.qwest.net) has quit (Remote host closed the connection) 2021-05-20 01:34:39 <-- Deep6 (~Deep6@fixed-187-191-36-13.totalplay.net) has quit (Remote host closed the connection) 2021-05-20 01:34:53 jacks hi, i have a byte class object b'foo' but im trying to pass it to a string format() if i try decode I get "TypeError: decoding to str: need a bytes-like object, NoneType found" 2021-05-20 01:36:15 jacks i've tried decode(), str() etc doesn't seem to work 2021-05-20 01:36:37 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-20 01:37:17 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-20 01:37:18 --> greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has joined #python 2021-05-20 01:37:29 Stonefruit I have a C library I am using via a Cython wrapper in some script. the script works fine python 3.6 and 3.8, but breaks in 3.9 with the error: "ImportError: /../../triplet_omp.cpython-39-x86_64-linux-gnu.so: undefined symbol: tgetent" from googling I gather this means there's an issue with linking to ncurses, but I specifically do in setup.py... 2021-05-20 01:37:29 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 01:37:36 Stonefruit any idea on what it could be? 2021-05-20 01:38:07 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-20 01:38:11 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 01:40:04 JAA jacks: Decoding works fine, e.g. `print('a {}'.format(o.decode('ascii')))` (where `o` is your object) 2021-05-20 01:41:15 <-- jesseTree (~powerhous@2604:3d08:6d80:a900::d77c) has quit (Ping timeout: 258 seconds) 2021-05-20 01:41:46 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-20 01:42:04 <-- psydruid[m] (psydruidma@gateway/shell/matrix.org/x-eemddmidvbdkwrwl) has quit (Ping timeout: 245 seconds) 2021-05-20 01:42:11 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-20 01:42:23 <-- hoshi (~hoshi@vps-9ee2e9ea.vps.ovh.net) has quit (Quit: ZNC 1.7.5+deb4 - https://znc.in) 2021-05-20 01:42:55 --> snalty_ (~Shhh@host81-156-170-90.range81-156.btcentralplus.com) has joined #python 2021-05-20 01:42:56 <-- zuQe8 (~zuQe8@cpc105068-sgyl40-2-0-cust196.18-2.cable.virginm.net) has quit (Quit: BYE) 2021-05-20 01:43:23 <-- tomg (tomg@64-7-151-80.border7-dynamic.dsl.sentex.ca) has quit (Ping timeout: 246 seconds) 2021-05-20 01:43:47 --> Fischerfredl (~Thunderbi@185.39.90.109) has joined #python 2021-05-20 01:43:48 <-- Fischerfredl (~Thunderbi@185.39.90.109) has quit (Excess Flood) 2021-05-20 01:44:17 jacks JAA: AttributeError: 'NoneType' object has no attribute 'decode' 2021-05-20 01:44:57 --> psydruid[m] (psydruidma@gateway/shell/matrix.org/x-mdgwifqvnppmcvxt) has joined #python 2021-05-20 01:45:13 --> zuQe8 (~zuQe8@cpc105068-sgyl40-2-0-cust196.18-2.cable.virginm.net) has joined #python 2021-05-20 01:45:13 JAA jacks: Then `o` is `None` rather than a bytes object. 2021-05-20 01:45:36 <-- snalty (~Shhh@host81-157-242-224.range81-157.btcentralplus.com) has quit (Ping timeout: 260 seconds) 2021-05-20 01:46:00 JAA And I realise now that your first message already said that: 'NoneType found' 2021-05-20 01:47:01 --> hoshi (~hoshi@vps-9ee2e9ea.vps.ovh.net) has joined #python 2021-05-20 01:47:02 --> xorloser (~me@159-196-121-153.9fc479.syd.nbn.aussiebb.net) has joined #python 2021-05-20 01:47:20 jacks if i use print(type(channel)) it prints 2021-05-20 01:47:20 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-20 01:48:31 --> BillyZane (~BillyZane@unaffiliated/billyzane) has joined #python 2021-05-20 01:48:34 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-20 01:49:11 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 01:49:11 --> Jantz (~IceChat95@2407:7000:8d04:100:30d7:a751:2ba0:2d5f) has joined #python 2021-05-20 01:49:33 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 01:49:58 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 252 seconds) 2021-05-20 01:50:05 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Ping timeout: 260 seconds) 2021-05-20 01:50:11 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 01:50:17 <-- Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-20 01:51:07 --> ffe4 (~ffe4@200116b82ce1da0090ab50d7b676baa2.dip.versatel-1u1.de) has joined #python 2021-05-20 01:51:14 <-- Jantz_ (~IceChat95@2407:7000:8d04:100:d144:dcba:f369:af01) has quit (Ping timeout: 245 seconds) 2021-05-20 01:51:30 xorloser I have an object containing a list and i want to be able to iterate over the object to iterate over the list. I added a method 'def __iter__(self): return iter(self.mylist)'. However I have noticed that the returned iterator doesnt seem to get reset between uses. ie if i have two for loops in a row that iterate over my object and the first for loop stops iterating halfway through, the second 2021-05-20 01:51:30 xorloser for loop will start iterating where the first one left off rather than iterating from the start. Why is this happening and how can i fix it? I thought return iter(list) would create a new iterator each time. 2021-05-20 01:52:12 --> ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has joined #python 2021-05-20 01:52:33 KirkMcDonald xorloser: Hard to say without seeing a complete example. 2021-05-20 01:52:36 <-- LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has quit (Ping timeout: 260 seconds) 2021-05-20 01:52:53 KirkMcDonald xorloser: Though the obvious question is, are you sure it's a list? 2021-05-20 01:54:43 <-- Psyb3rN4ut (~psybernau@147.161.9.236) has quit (Quit: WeeChat 3.1) 2021-05-20 01:54:47 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-20 01:55:27 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 01:55:41 --> SALstar (~ondrejj@work6.salstar.sk) has joined #python 2021-05-20 01:56:14 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 245 seconds) 2021-05-20 01:56:24 --> bloodninja114 (~bloodninj@63-153-7-223.blng.qwest.net) has joined #python 2021-05-20 01:56:27 <-- greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has quit (Remote host closed the connection) 2021-05-20 01:56:42 SALstar Hello. Why 'import sys;for i in range(10):print(None)' is invalid syntax on "for" and without import or without for it's valid? 2021-05-20 01:57:27 <-- bloodninja114 (~bloodninj@63-153-7-223.blng.qwest.net) has quit (Client Quit) 2021-05-20 01:57:37 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 01:58:16 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 01:59:42 --> mcsontos (~mcsontos@ip-78-45-136-55.net.upcbroadband.cz) has joined #python 2021-05-20 02:00:04 <-- drymer (~drymer@unaffiliated/drymer) has quit (Remote host closed the connection) 2021-05-20 02:00:25 --> d_vice (~d_vice@54029262.unconfigured.pool.telekom.hu) has joined #python 2021-05-20 02:00:48 <-- jacks (~jacks@106-69-141-162.dyn.iinet.net.au) has quit 2021-05-20 02:00:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 02:00:59 --> bbear (~bbear@2a01:e34:ec2b:d430:a072:10c5:2967:d383) has joined #python 2021-05-20 02:01:04 --> ralderson (~textual@37.19.212.9) has joined #python 2021-05-20 02:01:13 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-20 02:01:16 Zy64Jw 2+2-5 2021-05-20 02:01:20 Zy64Jw 2+2=5 2021-05-20 02:01:32 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 02:01:42 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 268 seconds) 2021-05-20 02:02:23 <-- gitesh_ (uid423739@gateway/web/irccloud.com/x-twuffdlbsayncutx) has quit 2021-05-20 02:04:07 <-- d_vice (~d_vice@54029262.unconfigured.pool.telekom.hu) has quit (Remote host closed the connection) 2021-05-20 02:04:38 KirkMcDonald SALstar: You can't use ; with compound statements. 2021-05-20 02:05:19 --> vdamewood (~vdamewood@unaffiliated/vdamewood) has joined #python 2021-05-20 02:06:12 <-- ralderson (~textual@37.19.212.9) has quit (Ping timeout: 265 seconds) 2021-05-20 02:06:17 <-- mikeike2 (~j@gateway/tor-sasl/doh) has quit (Remote host closed the connection) 2021-05-20 02:06:17 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-20 02:06:33 --> mikeike2 (~j@gateway/tor-sasl/doh) has joined #python 2021-05-20 02:06:33 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 02:06:40 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 02:06:41 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 240 seconds) 2021-05-20 02:06:41 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 240 seconds) 2021-05-20 02:07:06 xorloser KirkMcDonald: while making a simple example i found the iterator does get 'reset' as i would expect, so it must be some other issue :) 2021-05-20 02:07:11 <-- AquaL1te (~AquaL1te@unaffiliated/aqual1te) has quit (Quit: leaving) 2021-05-20 02:07:41 akoana SALstar: are you trying that from the shell like python3 -c "import sys..." ? 2021-05-20 02:07:54 --> acresearch (~acresearc@unaffiliated/acresearch) has joined #python 2021-05-20 02:07:56 --> frrs (uid130725@gateway/web/irccloud.com/x-efxvecyttavgzvpf) has joined #python 2021-05-20 02:08:17 --> AquaL1te (~AquaL1te@unaffiliated/aqual1te) has joined #python 2021-05-20 02:08:33 <-- r3m (~launch@unaffiliated/r3m) has quit (Quit: WeeChat 3.2-dev) 2021-05-20 02:08:50 acresearch people, i am trying to install pyassimp but after it install i get a strange error, just by importing the library, what is going on? 2021-05-20 02:08:55 --> r3m (~launch@unaffiliated/r3m) has joined #python 2021-05-20 02:08:59 SALstar akoana: Yes. I am tryning to parse multiple json data: postqueue -j | python3 -c "import sys,json; for row in sys.stdin.readlines(): print(json.loads(row))" 2021-05-20 02:09:44 akoana you can insert newlines, like python3 -c $'import sys;\nfor i in range(10):print(None)' 2021-05-20 02:09:52 <-- bionode (~user@gateway/tor-sasl/bionode) has quit (Remote host closed the connection) 2021-05-20 02:09:54 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-20 02:09:58 akoana (at least that works with bash) 2021-05-20 02:10:15 --> bionode (~user@gateway/tor-sasl/bionode) has joined #python 2021-05-20 02:10:59 --> ocket8888 (~ocket8888@2601:280:4e80:c2e0:f8a9:3e5a:aac8:1944) has joined #python 2021-05-20 02:11:08 SALstar akoana: Thanks. 2021-05-20 02:11:42 akoana you don't even need the ; before \n ... 2021-05-20 02:13:22 --> phasetwo__ (~phasetwo@c-67-168-62-122.hsd1.wa.comcast.net) has joined #python 2021-05-20 02:14:26 --> SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has joined #python 2021-05-20 02:14:30 <-- AquaL1te (~AquaL1te@unaffiliated/aqual1te) has quit (Quit: leaving) 2021-05-20 02:14:35 --> philh (~philh@46.33.72.18) has joined #python 2021-05-20 02:16:08 --> chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has joined #python 2021-05-20 02:17:23 <-- SALstar (~ondrejj@work6.salstar.sk) has left #python 2021-05-20 02:17:42 --> AquaL1te (~AquaL1te@unaffiliated/aqual1te) has joined #python 2021-05-20 02:18:24 -- rwx is now known as mspe 2021-05-20 02:19:21 --> zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has joined #python 2021-05-20 02:19:31 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 252 seconds) 2021-05-20 02:19:37 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-20 02:20:18 <-- yamchah2 (~yamchah2@142.93.235.211) has quit (Remote host closed the connection) 2021-05-20 02:21:49 <-- phasetwo__ (~phasetwo@c-67-168-62-122.hsd1.wa.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-20 02:23:54 --> kosh (~kosh@p200300d08f11af00c0adde103b236462.dip0.t-ipconnect.de) has joined #python 2021-05-20 02:24:11 <-- cxl (~hey_its_m@unaffiliated/cxl) has quit (Ping timeout: 240 seconds) 2021-05-20 02:24:18 --> yamchah2 (~yamchah2@142.93.235.211) has joined #python 2021-05-20 02:25:00 --> bazul (bazul@38.189.189.46.rev.vodafone.pt) has joined #python 2021-05-20 02:25:03 <-- carloratm (carloratm@tilde.club) has left #python 2021-05-20 02:25:14 <-- andreas303 (~andreas@gateway/tor-sasl/andreas303) has quit (Remote host closed the connection) 2021-05-20 02:25:50 --> andreas303 (~andreas@gateway/tor-sasl/andreas303) has joined #python 2021-05-20 02:26:46 <-- AquaL1te (~AquaL1te@unaffiliated/aqual1te) has quit (Quit: leaving) 2021-05-20 02:26:56 --> AquaL1te (~AquaL1te@unaffiliated/aqual1te) has joined #python 2021-05-20 02:27:00 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-20 02:27:11 <-- acresearch (~acresearc@unaffiliated/acresearch) has quit (Quit: WeeChat 2.8) 2021-05-20 02:27:46 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 02:27:49 <-- xorloser (~me@159-196-121-153.9fc479.syd.nbn.aussiebb.net) has quit (Remote host closed the connection) 2021-05-20 02:28:09 <-- AquaL1te (~AquaL1te@unaffiliated/aqual1te) has quit (Client Quit) 2021-05-20 02:28:35 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-20 02:29:15 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-20 02:29:58 --> AquaL1te (~AquaL1te@unaffiliated/aqual1te) has joined #python 2021-05-20 02:30:52 <-- AquaL1te (~AquaL1te@unaffiliated/aqual1te) has quit (Client Quit) 2021-05-20 02:31:12 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 02:31:19 --> AquaL1te (~AquaL1te@unaffiliated/aqual1te) has joined #python 2021-05-20 02:31:19 <-- AquaL1te (~AquaL1te@unaffiliated/aqual1te) has quit (Client Quit) 2021-05-20 02:31:35 --> AquaL1te (~AquaL1te@unaffiliated/aqual1te) has joined #python 2021-05-20 02:31:37 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-20 02:31:40 <-- DHARMAKAYA (~DHARMAKAY@189.174.247.195) has quit (Quit: Turning off a portion of this simulation.) 2021-05-20 02:32:00 --> cxl (~hey_its_m@unaffiliated/cxl) has joined #python 2021-05-20 02:33:18 <-- AquaL1te (~AquaL1te@unaffiliated/aqual1te) has quit (Client Quit) 2021-05-20 02:33:39 --> jellyfish (~jellyfish@unaffiliated/jellyfish) has joined #python 2021-05-20 02:33:46 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 268 seconds) 2021-05-20 02:33:55 <-- m1cl (~m1cl@2a02:8109:b6c0:1b94::980e) has quit (Ping timeout: 250 seconds) 2021-05-20 02:34:01 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-20 02:35:38 <-- bjelleklang (~c@wikipedia/Bjelleklang) has quit (Quit: Leaving) 2021-05-20 02:36:32 --> or4n (~or4n@gerbera.qkka.org) has joined #python 2021-05-20 02:36:43 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Quit: Left...) 2021-05-20 02:37:04 chard7a Is there a model can parse sql script? 2021-05-20 02:37:26 <-- Stonefruit (~Stonefrui@c-73-242-170-93.hsd1.nm.comcast.net) has quit (Quit: Leaving) 2021-05-20 02:37:36 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-20 02:37:43 chard7a like i want get values from Insert into 2021-05-20 02:38:09 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-20 02:38:15 --> barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has joined #python 2021-05-20 02:38:26 --> user2 (ponyala@gateway/vpn/privateinternetaccess/ponyala) has joined #python 2021-05-20 02:38:28 chard7a INSERT INTO tb_a VALUES ('),(','ccc',2,'2002-1-1') 2021-05-20 02:38:32 -- user2 is now known as ponyala 2021-05-20 02:38:39 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-20 02:39:02 sartan you have a sql script (like a backup) and want to make a model out of it? 2021-05-20 02:39:04 --> KIngslyEn (~KingslyEn@93.118.172.231) has joined #python 2021-05-20 02:39:13 <-- KIngslyEn (~KingslyEn@93.118.172.231) has quit (Client Quit) 2021-05-20 02:39:14 chard7a i will get ),( ccc 2 2002-1-1 2021-05-20 02:39:23 --> honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-20 02:39:28 <-- Abrax (~Abrax@unaffiliated/abrax) has quit (Quit: Leaving) 2021-05-20 02:39:30 chard7a yes 2021-05-20 02:40:02 <-- veek (~veek@unaffiliated/veek) has quit (Quit: Leaving) 2021-05-20 02:40:13 --> Abrax (~Abrax@unaffiliated/abrax) has joined #python 2021-05-20 02:40:18 chard7a i don't want to restore back to database 2021-05-20 02:40:53 sartan I don't know of any libraries that can do this 2021-05-20 02:41:08 sartan Parsing it yourself would be pretty painful to unravel the dsl 2021-05-20 02:41:56 chard7a that's true 2021-05-20 02:41:59 --> plut4rch (~plut4rch@220-244-147-249.tpgi.com.au) has joined #python 2021-05-20 02:42:05 --> plut4rc (~plut4rch@220-244-147-249.tpgi.com.au) has joined #python 2021-05-20 02:42:13 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-20 02:42:24 <-- dastier_ (~dastier@178.172.192.75) has quit (Ping timeout: 268 seconds) 2021-05-20 02:42:32 <-- plut4rc (~plut4rch@220-244-147-249.tpgi.com.au) has quit (Remote host closed the connection) 2021-05-20 02:43:00 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 02:43:38 <-- or4n (~or4n@gerbera.qkka.org) has quit (Quit: Set me Libera) 2021-05-20 02:43:57 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 02:44:20 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 02:44:34 <-- ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has quit (Ping timeout: 245 seconds) 2021-05-20 02:44:55 <-- r3m (~launch@unaffiliated/r3m) has quit (Quit: WeeChat 3.2-dev) 2021-05-20 02:45:15 --> r3m (~launch@unaffiliated/r3m) has joined #python 2021-05-20 02:46:25 <-- wyre (~wyre@unaffiliated/wyre) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-20 02:46:41 --> wyre (~wyre@unaffiliated/wyre) has joined #python 2021-05-20 02:46:56 <-- dtux (~dtux@2600:1700:22f0:37bf:a9b6:393:7755:433a) has quit (Quit: dtux) 2021-05-20 02:47:28 --> sanketdg (674c5261@gateway/web/cgi-irc/kiwiirc.com/ip.103.76.82.97) has joined #python 2021-05-20 02:48:21 --> mangold (~mangold@198.98.183.44) has joined #python 2021-05-20 02:49:21 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-20 02:49:30 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-20 02:50:21 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-20 02:50:22 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-20 02:50:37 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-20 02:50:38 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-20 02:50:42 <-- obviyus (sid415299@gateway/web/irccloud.com/x-rhqoyxeuezupcqwx) has quit 2021-05-20 02:50:52 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-20 02:50:54 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-20 02:51:08 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-20 02:51:10 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-20 02:51:44 raek sqlite allows you to create an in-memory database (use ":memory:" as the filename). if you use that, you can run the insert commands and then select the table. only downside is that all the data needs to fit in memory 2021-05-20 02:51:59 raek and sqlite is included in python 2021-05-20 02:52:10 akoana chard7a: what do you expect to get for INSERT INTO tb_a VALUES ('),(','a b c ',2,'2002-1-1') ? 2021-05-20 02:52:32 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 240 seconds) 2021-05-20 02:52:48 --> ircuser-1 (~Johnny@71.63.241.168) has joined #python 2021-05-20 02:52:51 --> b0nn (~shane@81.4.127.22) has joined #python 2021-05-20 02:52:55 akoana that is for strings containing blanks? 2021-05-20 02:54:25 <-- b0nn (~shane@81.4.127.22) has left #python 2021-05-20 02:54:25 raek import sqlite3 db = sqlite.connect(":memory:") c = db.cursor() c.executescript(string_with_insert_statements) c.execute("SELECT * FROM table_name") data = c.fecthall() 2021-05-20 02:54:31 raek chard7a: ^ 2021-05-20 02:55:32 --> Vornicus (~Vornicus@2603-8000-5d07-7ef0-e8c0-ae73-7695-9dbe.res6.spectrum.com) has joined #python 2021-05-20 02:55:42 --> dub_a1 (dub_a@gateway/vpn/mullvad/duba/x-57903454) has joined #python 2021-05-20 02:56:02 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-20 02:56:19 <-- d3vyL (d3vyL@95.236.33.218) has quit 2021-05-20 02:56:29 raek after you run db.close() the temporary data is gone (I took the liberty to interpret "restore back to database" to mean "restore to a persistent database") 2021-05-20 02:56:49 --> b0nn (~shane@81.4.127.22) has joined #python 2021-05-20 02:57:13 <-- codehotter (~codehotte@fedora/codehotter) has quit (Quit: WeeChat 1.4) 2021-05-20 02:57:33 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 02:57:41 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 02:58:26 <-- solomonix (~solomonix@cpe-76-181-142-134.columbus.res.rr.com) has quit (Ping timeout: 268 seconds) 2021-05-20 02:58:27 --> nomic (~nomic@2a00:23c6:9910:1201:9989:34aa:b96c:78fd) has joined #python 2021-05-20 02:58:44 sanketdg I am creating a web API using Tornado that looks something like this https://bpa.st/E7AQ As you can see a lot of code is just duplicated, what is a good direction to start refactoring this, espescially the try/catch blocks? 2021-05-20 03:00:29 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 03:00:46 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 03:00:54 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 03:00:59 <-- nomic (~nomic@2a00:23c6:9910:1201:9989:34aa:b96c:78fd) has quit (Client Quit) 2021-05-20 03:01:11 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 03:01:53 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 03:02:05 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Client Quit) 2021-05-20 03:03:07 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 03:04:09 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 245 seconds) 2021-05-20 03:04:54 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-20 03:05:18 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-20 03:05:52 <-- Albori (~Albori@216-229-75-195.fidnet.com) has quit (Ping timeout: 252 seconds) 2021-05-20 03:07:15 --> Albori (~Albori@216-229-75-195.fidnet.com) has joined #python 2021-05-20 03:07:36 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 03:08:11 --> imc6ristian (~imc6risti@2a04:6ec0:20f:fdb0:22bd:de4c:2316:161f) has joined #python 2021-05-20 03:08:26 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 03:08:29 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-20 03:08:48 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 252 seconds) 2021-05-20 03:09:13 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 03:09:55 <-- al2o3-cr (~gr33n7007@unaffiliated/gr33n7007h) has quit (Quit: WeeChat 3.1) 2021-05-20 03:11:08 <-- Deknos (~deknos@unaffiliated/menace) has quit (Quit: Deknos) 2021-05-20 03:12:09 --> iptable (~iptable@host86-139-28-5.range86-139.btcentralplus.com) has joined #python 2021-05-20 03:12:12 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Ping timeout: 240 seconds) 2021-05-20 03:12:33 <-- imc6ristian (~imc6risti@2a04:6ec0:20f:fdb0:22bd:de4c:2316:161f) has quit (Client Quit) 2021-05-20 03:12:56 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-20 03:13:15 <-- akoana (~ah@unaffiliated/akoana) has left #python ("Leaving") 2021-05-20 03:13:19 <-- Jantz (~IceChat95@2407:7000:8d04:100:30d7:a751:2ba0:2d5f) has quit (Ping timeout: 245 seconds) 2021-05-20 03:13:56 chard7a :raek thanks 2021-05-20 03:13:57 BrenBarn I mean you can factor that out into a function, right? 2021-05-20 03:13:58 BrenBarn a method on your class I mean 2021-05-20 03:14:03 <-- semitones (semitones_@gateway/shell/bnc4free/x-llmzzecuoijvyjtb) has quit (Quit: fBNC - https://bnc4free.com) 2021-05-20 03:14:39 chard7a :reak but mysql script process to sqlite also have a big problem 2021-05-20 03:15:10 <-- ocket8888 (~ocket8888@2601:280:4e80:c2e0:f8a9:3e5a:aac8:1944) has quit (Ping timeout: 258 seconds) 2021-05-20 03:15:14 <-- barometz (~dominic@pdpc/supporter/active/nazgjunk) has quit (Quit: Bye, freenode. It's been a good fifteen years.) 2021-05-20 03:17:05 <-- jellyfish (~jellyfish@unaffiliated/jellyfish) has quit (Ping timeout: 258 seconds) 2021-05-20 03:17:11 <-- sesser (~sesser@107.13.245.224) has quit (Read error: Connection reset by peer) 2021-05-20 03:17:32 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 03:17:53 chard7a my idea was use regex like this :((?<=\')[^\']*(?=\'\,))|((?<=\,)[^\,][0-9]?(?=\,))|(NULL)|((?<=\,\')[^\,\']*(?=\')) 2021-05-20 03:18:17 chard7a but still have some bugs 2021-05-20 03:19:13 <-- radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has quit (Remote host closed the connection) 2021-05-20 03:19:28 <-- b0nn (~shane@81.4.127.22) has left #python 2021-05-20 03:20:38 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 265 seconds) 2021-05-20 03:20:38 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Ping timeout: 265 seconds) 2021-05-20 03:21:14 <-- Mm2PL (~mm2pl@kotmisia.pl) has quit (Quit: ZNC - https://znc.in) 2021-05-20 03:21:33 --> bjelleklang (~c@wikipedia/Bjelleklang) has joined #python 2021-05-20 03:21:33 <-- mangold (~mangold@198.98.183.44) has quit (Ping timeout: 260 seconds) 2021-05-20 03:21:34 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-20 03:21:52 <-- mawk (mawk@serveur.io) has quit (Ping timeout: 268 seconds) 2021-05-20 03:21:58 --> sesser (~sesser@107.13.245.224) has joined #python 2021-05-20 03:22:05 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Ping timeout: 246 seconds) 2021-05-20 03:23:55 --> sinanislekdemir (~sinan@dsl-hkibng42-5673ca-177.dhcp.inet.fi) has joined #python 2021-05-20 03:24:54 --> dvx (~dvx@185.63.97.64) has joined #python 2021-05-20 03:25:00 --> mihael (~marz@49.145.73.135) has joined #python 2021-05-20 03:25:32 mihael with json.dumps I get the list object as string "[{}]". How do I iterate through it so when I write it to a file the format will be {...} on each line? 2021-05-20 03:25:32 <-- AltReality (~noneya@99-57-74-231.lightspeed.frokca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-05-20 03:25:41 <-- srikavin (~srikavin@096-058-214-140.res.spectrum.com) has quit (Quit: ZNC 1.6.3+deb1ubuntu0.2 - http://znc.in) 2021-05-20 03:26:51 --> radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has joined #python 2021-05-20 03:27:22 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Quit: Friends help you move. Real friends help you move bodies.) 2021-05-20 03:27:45 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 03:28:07 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-20 03:28:33 Gurkenglas Can you recommend an ETA library that calculates not a point estimate but a probability distribution? 2021-05-20 03:28:39 --> srikavin (~srikavin@096-058-214-140.res.spectrum.com) has joined #python 2021-05-20 03:28:51 stranac mihael: loop and json.dumps() each item to the file 2021-05-20 03:28:53 nop what is an ETA library? 2021-05-20 03:29:16 <-- bigRoo (~user@131.236.54.244) has quit (Remote host closed the connection) 2021-05-20 03:29:24 Gurkenglas nop, a (python) library that estimates how long something will take to complete 2021-05-20 03:29:27 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-20 03:29:41 nop based on? 2021-05-20 03:29:51 mihael stranac: Just got it, f.write('\n'.join(json.dumps(route) for route in routes)) 2021-05-20 03:29:57 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 260 seconds) 2021-05-20 03:29:58 <-- moto (~moto@ipbcc2f4f0.dynamic.kabel-deutschland.de) has quit (Quit: Lost terminal) 2021-05-20 03:30:03 chard7a f.write(json.dumps(value, sort_keys=True, indent=0 ) f.write('\n') 2021-05-20 03:30:25 --> koltrast (72062def@h77-53-57-114.cust.a3fiber.se) has joined #python 2021-05-20 03:30:36 --> alexhugo (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has joined #python 2021-05-20 03:31:00 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 03:31:21 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 03:31:22 --> dub_a2 (~dub_a@192.252.212.39) has joined #python 2021-05-20 03:31:27 Gurkenglas nop, a simple implementation is remaining_time = remaining_work/done_work * time_so_far. Less simple implementations could depend on the history of how long each item so far has taken, or even as much data as you can fit into a neural net. 2021-05-20 03:31:52 --> Jantz (~IceChat95@2407:7000:8d04:100:39cb:3c86:980e:2f21) has joined #python 2021-05-20 03:31:56 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-20 03:32:38 alexhugo is there any new interesting library for python out there 2021-05-20 03:33:15 --> AltReality (~noneya@99-57-74-231.lightspeed.frokca.sbcglobal.net) has joined #python 2021-05-20 03:33:18 Gurkenglas For example if the first % took 60 seconds and the next 49 took 1 second each, much of the probability mass for how long the last 50 items will take should be on "50 seconds remain". 2021-05-20 03:33:23 --> hqdruxn08_ (~hqdruxn08@cpe-66-68-160-103.austin.res.rr.com) has joined #python 2021-05-20 03:34:06 --> swj (~swj@2409:8928:5c:17d:8d07:72fc:2321:1890) has joined #python 2021-05-20 03:34:12 <-- dub_a1 (dub_a@gateway/vpn/mullvad/duba/x-57903454) has quit (Ping timeout: 268 seconds) 2021-05-20 03:34:35 <-- quackgyver (uid11872@gateway/web/irccloud.com/x-wtstqinufefgfahc) has quit (Ping timeout: 250 seconds) 2021-05-20 03:34:35 <-- cyberpear (uid364019@fedora/cyberpear) has quit (Ping timeout: 250 seconds) 2021-05-20 03:34:46 --> plutoniix (~q@ppp-124-120-117-121.revip2.asianet.co.th) has joined #python 2021-05-20 03:34:52 nop Gurkenglas: interesting. we just give users an estimate based on the formula you gave 2021-05-20 03:34:58 <-- ironfroggy (sid495156@python/site-packages/ironfroggy) has quit (Read error: Connection reset by peer) 2021-05-20 03:34:59 <-- mandeep (uid394387@gateway/web/irccloud.com/x-vthgfbdjtqkckevx) has quit (Read error: Connection reset by peer) 2021-05-20 03:35:00 <-- nlofaro (sid258233@gateway/web/irccloud.com/x-xhutvjiokxcusdlf) has quit (Read error: Connection reset by peer) 2021-05-20 03:35:04 <-- neoweb (sid343200@makerslocal/webdawg) has quit (Read error: Connection reset by peer) 2021-05-20 03:35:31 <-- daniel-k (sid496639@gateway/web/irccloud.com/x-djrwsfbqejntsrdx) has quit (Ping timeout: 260 seconds) 2021-05-20 03:35:52 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-20 03:36:26 <-- i0X (uid317981@gateway/web/irccloud.com/x-bbhhtyhyqgrqdvam) has quit (Ping timeout: 258 seconds) 2021-05-20 03:36:36 Gurkenglas The library might gather stats on its performance based on the code location it's called from to improve calibration as you use it on the same sort of task multiple times. 2021-05-20 03:36:37 --> GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has joined #python 2021-05-20 03:37:02 <-- hahuang65 (sid64402@gateway/web/irccloud.com/x-eyeeqgofyxiwoiei) has quit (Ping timeout: 245 seconds) 2021-05-20 03:37:12 --> nlofaro (sid258233@gateway/web/irccloud.com/x-snggfsnrzbupvrfk) has joined #python 2021-05-20 03:37:13 <-- hqdruxn08 (~hqdruxn08@cpe-66-68-160-103.austin.res.rr.com) has quit (Ping timeout: 240 seconds) 2021-05-20 03:37:20 Gurkenglas For example, if it keeps being wrong, it should give a wider distribution. 2021-05-20 03:37:34 --> mandeep (uid394387@gateway/web/irccloud.com/x-kjnzyyvscodztmri) has joined #python 2021-05-20 03:37:37 --> auv5 (sid85402@gateway/web/irccloud.com/x-mfggzrgllxjtupnv) has joined #python 2021-05-20 03:37:38 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 03:37:57 --> neoweb (sid343200@makerslocal/webdawg) has joined #python 2021-05-20 03:37:57 --> cyberpear (uid364019@fedora/cyberpear) has joined #python 2021-05-20 03:37:58 --> ironfroggy (sid495156@python/site-packages/ironfroggy) has joined #python 2021-05-20 03:38:05 --> quackgyver (uid11872@gateway/web/irccloud.com/x-ucasbmtrnzmlqvwd) has joined #python 2021-05-20 03:38:09 --> hahuang65 (sid64402@gateway/web/irccloud.com/x-dhldbtgwiqonafqq) has joined #python 2021-05-20 03:38:26 --> daniel-k (sid496639@gateway/web/irccloud.com/x-lnrgazgqlnjvdkck) has joined #python 2021-05-20 03:38:46 mihael With difflib, which one should I use to get a diff of what was added/removed between two files? 2021-05-20 03:38:48 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-20 03:38:48 <-- quackgyver (uid11872@gateway/web/irccloud.com/x-ucasbmtrnzmlqvwd) has quit (Excess Flood) 2021-05-20 03:39:19 --> hypc1 (~Thunderbi@175.164.26.80) has joined #python 2021-05-20 03:40:18 --> quackgyver (uid11872@gateway/web/irccloud.com/x-rvoegvookaoubofl) has joined #python 2021-05-20 03:40:20 <-- hypc (~Thunderbi@175.164.26.80) has quit (Ping timeout: 252 seconds) 2021-05-20 03:40:22 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-20 03:40:28 <-- quackgyver (uid11872@gateway/web/irccloud.com/x-rvoegvookaoubofl) has quit (Excess Flood) 2021-05-20 03:40:29 --> i0X (sid317981@gateway/web/irccloud.com/x-qjulqdcvgqcqzmjb) has joined #python 2021-05-20 03:40:42 <-- hahuang65 (sid64402@gateway/web/irccloud.com/x-dhldbtgwiqonafqq) has quit (Max SendQ exceeded) 2021-05-20 03:41:20 --> hahuang65 (sid64402@gateway/web/irccloud.com/x-wawftkjxxnqpduvj) has joined #python 2021-05-20 03:41:28 --> quackgyver (uid11872@gateway/web/irccloud.com/x-ptofaiawqqfrqkvj) has joined #python 2021-05-20 03:41:36 <-- auv5 (sid85402@gateway/web/irccloud.com/x-mfggzrgllxjtupnv) has quit (Max SendQ exceeded) 2021-05-20 03:41:40 <-- quackgyver (uid11872@gateway/web/irccloud.com/x-ptofaiawqqfrqkvj) has quit (Excess Flood) 2021-05-20 03:41:43 -- hypc1 is now known as hypc 2021-05-20 03:42:40 --> GhitzaPizdalau (~Baltazar@gateway/tor-sasl/zadock) has joined #python 2021-05-20 03:42:41 --> quackgyver (uid11872@gateway/web/irccloud.com/x-llbclbbkelmmtqdy) has joined #python 2021-05-20 03:43:01 --> aaii (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 03:43:11 <-- quackgyver (uid11872@gateway/web/irccloud.com/x-llbclbbkelmmtqdy) has quit (Excess Flood) 2021-05-20 03:43:57 --> azidhaka (~azidhaka@gateway.videnov.bg) has joined #python 2021-05-20 03:44:09 --> quackgyver (uid11872@gateway/web/irccloud.com/x-uclrtitaribqabwn) has joined #python 2021-05-20 03:44:17 <-- quackgyver (uid11872@gateway/web/irccloud.com/x-uclrtitaribqabwn) has quit (Excess Flood) 2021-05-20 03:44:25 --> auv5 (sid85402@gateway/web/irccloud.com/x-qnxmwqopzpgzqeoe) has joined #python 2021-05-20 03:45:27 --> quackgyver (uid11872@gateway/web/irccloud.com/x-cajuyopzuqmrsdek) has joined #python 2021-05-20 03:45:54 <-- bjelleklang (~c@wikipedia/Bjelleklang) has quit (Quit: Leaving) 2021-05-20 03:47:05 --> hypc1 (~Thunderbi@175.164.26.80) has joined #python 2021-05-20 03:47:18 <-- xrogaan (~xrogaan@unaffiliated/xrogaan) has quit (Quit: Leaving) 2021-05-20 03:48:37 <-- hypc (~Thunderbi@175.164.26.80) has quit (Ping timeout: 260 seconds) 2021-05-20 03:48:38 -- hypc1 is now known as hypc 2021-05-20 03:50:33 --> dvyd (b0e76a91@176.231.106.145) has joined #python 2021-05-20 03:51:20 --> Deknos (~deknos@unaffiliated/menace) has joined #python 2021-05-20 03:52:13 <-- bitwinery (~bitwinery@2601:1c2:5100:19d2:dc6c:b2dc:31f4:72b1) has quit (Quit: Leaving) 2021-05-20 03:56:34 dvyd I have a list of lists. all items in the sublists are strings. I want to concatenate all possible permutations. so [['a','b'],['1','2'],['x','y']] would result in 'a1x','a2x','a1y','a2y',etc. Can I do this with comprehensions somehow? 2021-05-20 03:56:55 --> aslicedbanjo (~aslicedba@host86-150-115-213.range86-150.btcentralplus.com) has joined #python 2021-05-20 03:57:18 KirkMcDonald dvyd: You could, but itertools.product() would make it simpler. 2021-05-20 03:57:32 dvyd great. I'll try that. 2021-05-20 03:57:43 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 03:58:11 KirkMcDonald ["".join(t) for t in itertools.product(*that_list)] 2021-05-20 03:58:16 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-20 03:58:54 --> xrogaan (~xrogaan@unaffiliated/xrogaan) has joined #python 2021-05-20 03:59:17 <-- court_jester (~jeffry@unaffiliated/ayr-ton) has quit (Ping timeout: 250 seconds) 2021-05-20 03:59:19 --> agrawalritesh (~agrawalri@ec2-3-7-118-226.ap-south-1.compute.amazonaws.com) has joined #python 2021-05-20 03:59:22 --> ayr-ton (~jeffry@unaffiliated/ayr-ton) has joined #python 2021-05-20 03:59:47 -- ayr-ton is now known as court_jester 2021-05-20 03:59:51 dvyd "pip install itertools" is not working. has the library name changed? 2021-05-20 04:00:01 dvyd more-itertools now? 2021-05-20 04:00:09 yamchah2 its not external 2021-05-20 04:00:45 dvyd I see that now. never knew! 2021-05-20 04:00:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 04:02:41 <-- agrawalr_ (~agrawalri@103.123.86.13) has quit (Ping timeout: 240 seconds) 2021-05-20 04:05:04 <-- xa0s_ (~xa0s@mab.sdf.org) has quit (Quit: leaving) 2021-05-20 04:05:21 --> deathonater (~deathonat@unaffiliated/smeef) has joined #python 2021-05-20 04:06:09 --> AlanMD (~alan@193.105.140.131) has joined #python 2021-05-20 04:06:59 <-- FunkyBob (~curtis@django/moderator/FunkyBob) has left #python 2021-05-20 04:07:33 <-- Milos (~Milos@pdpc/supporter/student/milos) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-20 04:07:47 --> Milos (~Milos@pdpc/supporter/student/milos) has joined #python 2021-05-20 04:07:49 --> s8548a_ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-20 04:07:54 <-- Smeef (~deathonat@unaffiliated/smeef) has quit (Ping timeout: 245 seconds) 2021-05-20 04:08:42 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-20 04:08:42 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 04:08:58 f8e4 hey, how to run python from temrinal 1*3 eg ? 2021-05-20 04:08:58 <-- woodruffw (~yossarian@unaffiliated/cpt-yossarian/x-8375832) has quit (Ping timeout: 252 seconds) 2021-05-20 04:09:13 <-- thinkofher (~thinkofhe@77-253-100-191.adsl.inetia.pl) has left #python ("The Lounge - https://thelounge.chat") 2021-05-20 04:09:37 --> woodruffw (~yossarian@unaffiliated/cpt-yossarian/x-8375832) has joined #python 2021-05-20 04:09:39 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 04:09:58 <-- azidhaka (~azidhaka@gateway.videnov.bg) has quit (Quit: Leaving) 2021-05-20 04:10:02 <-- baldpope (~baldpope@unaffiliated/baldpope) has quit (Ping timeout: 252 seconds) 2021-05-20 04:10:18 <-- aaii (~aaii@unaffiliated/aaii) has quit (Remote host closed the connection) 2021-05-20 04:10:26 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 240 seconds) 2021-05-20 04:10:43 --> aaii (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 04:10:45 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Ping timeout: 240 seconds) 2021-05-20 04:10:50 --> aocusr (6d40f9bc@unaffiliated/db42) has joined #python 2021-05-20 04:11:11 <-- allegary (~gary@apache/committer/gjm) has quit (Quit: So long!) 2021-05-20 04:11:22 dvyd thanks KirkMcDonald. product works great! 2021-05-20 04:12:41 --> jtmusky_ (~jtmusky@104-1-122-97.lightspeed.okcbok.sbcglobal.net) has joined #python 2021-05-20 04:14:21 <-- jtmusky (~jtmusky@104-1-122-97.lightspeed.okcbok.sbcglobal.net) has quit (Ping timeout: 260 seconds) 2021-05-20 04:14:29 --> Deyaa (uid190709@gateway/web/irccloud.com/x-rbrdebgrtddfmrko) has joined #python 2021-05-20 04:14:34 --> cowsay (~quassel@47.188.41.16) has joined #python 2021-05-20 04:14:48 <-- pavelow (~pavelow@opticalchimp.com) has quit (Quit: Leafing - Like a tree) 2021-05-20 04:15:09 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 04:15:39 --> jarthur_ (~jarthur@2603-8080-1540-002d-a1f4-7a0c-77c0-2833.res6.spectrum.com) has joined #python 2021-05-20 04:16:13 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-20 04:16:24 <-- jarthur_ (~jarthur@2603-8080-1540-002d-a1f4-7a0c-77c0-2833.res6.spectrum.com) has quit (Client Quit) 2021-05-20 04:16:36 --> userx (~userx@unaffiliated/userx) has joined #python 2021-05-20 04:16:41 <-- cowsay_ (~quassel@47.188.41.16) has quit (Ping timeout: 246 seconds) 2021-05-20 04:16:44 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 04:17:58 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 04:18:32 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 04:19:10 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 04:19:11 <-- jarthur (~jarthur@2603-8080-1540-002d-d161-31c0-12d1-b80a.res6.spectrum.com) has quit (Ping timeout: 258 seconds) 2021-05-20 04:19:13 <-- aaii (~aaii@unaffiliated/aaii) has quit (Ping timeout: 268 seconds) 2021-05-20 04:19:36 koltrast f8e4: python -c 'print(3*3)' 2021-05-20 04:19:50 <-- plut4rch (~plut4rch@220-244-147-249.tpgi.com.au) has quit (Ping timeout: 246 seconds) 2021-05-20 04:19:53 <-- aocusr (6d40f9bc@unaffiliated/db42) has left #python 2021-05-20 04:20:20 --> def_jam (~eblip@unaffiliated/eblip) has joined #python 2021-05-20 04:20:35 --> mrwick (~mrwick@unaffiliated/mrwick) has joined #python 2021-05-20 04:20:55 <-- ponyala (ponyala@gateway/vpn/privateinternetaccess/ponyala) has quit (Quit: WeeChat 2.3) 2021-05-20 04:21:02 <-- eblip (~eblip@unaffiliated/eblip) has quit (Ping timeout: 252 seconds) 2021-05-20 04:21:09 --> Ergo (~ergo@91.238.59.144) has joined #python 2021-05-20 04:21:41 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Ping timeout: 240 seconds) 2021-05-20 04:21:44 * f8e4 ty 2021-05-20 04:22:23 --> mcope (~mcope@88.98.90.199) has joined #python 2021-05-20 04:23:22 --> aaii (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 04:24:47 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-20 04:25:02 --> Codaraxis (~Codaraxis@194.110.113.10) has joined #python 2021-05-20 04:26:51 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 265 seconds) 2021-05-20 04:26:57 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 04:27:11 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 04:27:36 <-- lmt (uid107697@gateway/web/irccloud.com/x-afpxxoxdifedloxw) has quit (Quit: Connection closed for inactivity) 2021-05-20 04:27:36 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 04:27:52 <-- lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has quit (Quit: ZNC - https://znc.in) 2021-05-20 04:28:04 --> lorenzosu (~lorenzosu@2a01:4f8:c0c:3940::1) has joined #python 2021-05-20 04:28:20 <-- lorenzosu (~lorenzosu@2a01:4f8:c0c:3940::1) has quit (Remote host closed the connection) 2021-05-20 04:28:38 --> lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has joined #python 2021-05-20 04:28:40 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined #python 2021-05-20 04:28:52 <-- lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has quit (Remote host closed the connection) 2021-05-20 04:29:14 --> lorenzosu (~lorenzosu@2a01:4f8:c0c:3940::1) has joined #python 2021-05-20 04:29:30 <-- lorenzosu (~lorenzosu@2a01:4f8:c0c:3940::1) has quit (Remote host closed the connection) 2021-05-20 04:29:59 --> lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has joined #python 2021-05-20 04:30:16 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 04:30:20 <-- lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has quit (Remote host closed the connection) 2021-05-20 04:30:48 --> lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has joined #python 2021-05-20 04:31:21 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 04:32:35 <-- lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has quit (Client Quit) 2021-05-20 04:32:52 <-- FastJack (~fastjack@b2b-78-94-22-14.unitymedia.biz) has quit (Ping timeout: 240 seconds) 2021-05-20 04:33:39 --> YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has joined #python 2021-05-20 04:35:00 TechSmurf See you all on Libera, perhaps. *tips his hat* 2021-05-20 04:35:06 <-- TechSmurf (~tech@unaffiliated/techsmurf) has left #python 2021-05-20 04:35:43 --> lorenzosu (~lorenzosu@2a01:4f8:c0c:3940::1) has joined #python 2021-05-20 04:35:44 <-- lorenzosu (~lorenzosu@2a01:4f8:c0c:3940::1) has quit (Client Quit) 2021-05-20 04:36:26 <-- plutoniix (~q@ppp-124-120-117-121.revip2.asianet.co.th) has quit (Ping timeout: 252 seconds) 2021-05-20 04:36:29 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Quit: Leaving) 2021-05-20 04:36:59 --> plutoniix (~q@ppp-124-120-117-121.revip2.asianet.co.th) has joined #python 2021-05-20 04:37:00 --> rsx (~rsx@ppp-188-174-128-142.dynamic.mnet-online.de) has joined #python 2021-05-20 04:37:13 cluelessperson_ Yes, I'm dual homed atm too. 2021-05-20 04:38:53 --> Knyght (sid365271@gateway/web/irccloud.com/x-iftjsjjpcbgvmhuq) has joined #python 2021-05-20 04:39:13 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 04:39:24 --> fflori (~fflori@mob-194-230-155-151.cgn.sunrise.net) has joined #python 2021-05-20 04:40:24 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 04:41:15 --> bronsen (~bronsen@pdpc/supporter/professional/housetier) has joined #python 2021-05-20 04:42:11 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 04:42:50 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 04:43:39 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 04:44:41 --> Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has joined #python 2021-05-20 04:45:01 <-- aaii (~aaii@unaffiliated/aaii) has quit (Remote host closed the connection) 2021-05-20 04:45:13 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 04:45:46 --> aaii (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 04:46:14 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 245 seconds) 2021-05-20 04:46:55 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Ping timeout: 252 seconds) 2021-05-20 04:47:06 rendar a good lib to approximate big numbers? e.g. '300.000' -> '300k' 2021-05-20 04:47:08 --> lucad111 (~lucad111@linaro/lucad111) has joined #python 2021-05-20 04:47:29 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 04:47:29 <-- aaii (~aaii@unaffiliated/aaii) has quit (Max SendQ exceeded) 2021-05-20 04:47:32 --> teut (7aa2bd21@unaffiliated/teut) has joined #python 2021-05-20 04:47:53 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 260 seconds) 2021-05-20 04:47:56 --> aaii (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 04:48:19 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-20 04:48:53 cluelessperson_ rendar, That's gonna be a human formatting thing. 2021-05-20 04:49:20 cluelessperson_ rendar, https://pypi.org/project/humanfriendly/ ? 2021-05-20 04:49:51 teut https://stackoverflow.com/questions/67616572/how-to-access-an-array-inside-a-list-in-python/67616857#67616857   There are many similar questions on SO regarding this copies and multiple references problem. Now people in every answer hand over this https://nedbatchelder.com/text/names.html. But is there is usecase where one would  require that * 2021-05-20 04:49:51 teut operation to create multiple refrences? 2021-05-20 04:49:53 rendar but that's not about memory size, it's about money 2021-05-20 04:50:10 --> AquaL1te (~AquaL1te@unaffiliated/aqual1te) has joined #python 2021-05-20 04:50:57 teut [[0]*7]*5 2021-05-20 04:51:05 bjs teut: you mean, why is it designed for [x]*5 to have 5 references? 2021-05-20 04:51:06 <-- Ouranos (~Saturn@cpe-76-170-69-102.socal.res.rr.com) has quit (Ping timeout: 240 seconds) 2021-05-20 04:51:09 teut yes 2021-05-20 04:51:17 bjs teut: Python, in general, doesn't implicitly copy things 2021-05-20 04:51:23 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-20 04:51:37 bjs teut: it'd be unusual if `[x]*5` is different to `t=[x]; t*5` so it cannot be a syntactic thing like the comprehension 2021-05-20 04:51:43 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-20 04:52:04 <-- pkapp (~pkapp@2601:58c:c500:6900:4511:8b63:31b7:39e7) has quit (Ping timeout: 245 seconds) 2021-05-20 04:52:11 <-- leonardo (~leonardo@2607:5300:61:c67::196) has left #python ("WeeChat 3.0") 2021-05-20 04:52:17 --> darksun (~darksun@unaffiliated/darksun) has joined #python 2021-05-20 04:52:20 --> DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has joined #python 2021-05-20 04:52:33 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-20 04:53:08 teut why not? 2021-05-20 04:53:12 --> mozgalom (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has joined #python 2021-05-20 04:53:30 bjs teut: because you want to be able to write `t = [x]` then have `t*5` do the same thing as `[x]*5`. Otherwise it's confusing 2021-05-20 04:53:57 teut it s confusing now too 2021-05-20 04:54:06 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 240 seconds) 2021-05-20 04:54:16 bjs teut: it's not that confusing `[x]*5` makes a list with 5 references to x 2021-05-20 04:54:30 bjs which makes sense, and is easy and not confusing. It might just not be what you want for some value of x 2021-05-20 04:54:43 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-20 04:54:46 --> pkapp (~pkapp@c-75-74-40-214.hsd1.fl.comcast.net) has joined #python 2021-05-20 04:54:48 teut let me understand it in "c" instead of python 2021-05-20 04:54:57 teut maybe I can get the feel 2021-05-20 04:55:46 teut is that   pointer array notation? 2021-05-20 04:55:53 bjs teut: is what? 2021-05-20 04:56:06 <-- srikavin (~srikavin@096-058-214-140.res.spectrum.com) has quit (Quit: Leave) 2021-05-20 04:56:16 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Client Quit) 2021-05-20 04:56:25 --> iMessage (4fb84011@79.184.64.17.ipv4.supernova.orange.pl) has joined #python 2021-05-20 04:56:35 iMessage Hi, last time I updated Django to the newest version and got weird exception when using FileField and custom dynamic upload path - https://dpaste.org/iKua Could someone take a look what could be wrong ? 2021-05-20 04:56:50 <-- pinusc (~pinusc@unaffiliated/pinusc) has quit (Ping timeout: 268 seconds) 2021-05-20 04:56:53 <-- DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has quit (Client Quit) 2021-05-20 04:57:04 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 04:57:13 -- snalty_ is now known as snalty 2021-05-20 04:57:18 bronsen what does the exception say? 2021-05-20 04:57:45 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 04:57:46 --> srikavin (~srikavin@096-058-214-140.res.spectrum.com) has joined #python 2021-05-20 04:57:56 <-- riposte (~finalripo@2403-5800-3200-5c02--310.ip6.aussiebb.net) has quit (Quit: Quitting) 2021-05-20 04:58:05 <-- barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has quit (Quit: barph) 2021-05-20 04:58:12 teut int *ptr[MAX]; 2021-05-20 04:58:13 teut It declares ptr as an array of MAX integer pointers. Thus, each element in ptr, holds a pointer to an int value. The following example uses three integers, which are stored in an array of pointers, as follows − 2021-05-20 04:58:32 bjs teut: I'm not sure what you're trying to do? Why are you looking at C? 2021-05-20 04:58:50 teut but python is just a syntactical sugar over c objects 2021-05-20 04:58:54 bjs teut: no it is not 2021-05-20 04:59:01 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-20 04:59:14 <-- paravida (~mychateau@71-208-69-161.ftmy.qwest.net) has quit (Remote host closed the connection) 2021-05-20 04:59:15 bjs teut: In Python, * is the multiplication operator. `[x] * 5` is multiplying the list [x] with 5 2021-05-20 04:59:25 --> DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has joined #python 2021-05-20 05:00:11 --> Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has joined #python 2021-05-20 05:00:58 teut ok , so it s hard to define what   "multiplying"   a number with an object should return 2021-05-20 05:01:08 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 05:01:12 bjs teut: yes, the object has to decide 2021-05-20 05:01:33 <-- DonRichie (~DonRichie@ricl.de) has quit (Quit: bye) 2021-05-20 05:01:35 iMessage bronsen There is an exception inside the file - SuspiciousFileOperation 2021-05-20 05:02:03 teut likewise its difficult to decide what does a user means when he multiplies a list 2021-05-20 05:02:19 teut Hadamard product or   matrix multiplication 2021-05-20 05:02:28 teut they* 2021-05-20 05:02:34 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 05:02:34 supakeen teut: It's not hard, Python has decided that multiplying a list does a certain thing. 2021-05-20 05:02:47 teut that's the answer I wanted 2021-05-20 05:02:49 <-- indigaz (~indigaz@unaffiliated/indigaz) has quit (Quit: Ping timeout (120 seconds)) 2021-05-20 05:02:49 teut "decided" 2021-05-20 05:02:54 teut thanks supakeen 2021-05-20 05:03:02 --> RougeR (~RougeR@unaffiliated/rouger) has joined #python 2021-05-20 05:03:06 <-- digitalD (~dp@65.102.234.86) has quit (Read error: Connection reset by peer) 2021-05-20 05:03:09 supakeen Just like some languages decide what happens if you add a string to a number, etc. 2021-05-20 05:03:12 kosh a list is not a numpy array, if you want math behavior use numpy 2021-05-20 05:03:27 --> indigaz (~indigaz@unaffiliated/indigaz) has joined #python 2021-05-20 05:03:28 teut ya like multiple inheritance and MRO is defined a way in python 2021-05-20 05:03:32 bronsen iMessage: you did good dpaste'ing the code snippet, now do as good with dpaste'ing the error message 2021-05-20 05:03:48 --> DonRichie (~DonRichie@ricl.de) has joined #python 2021-05-20 05:03:56 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-20 05:04:05 teut but people everywhere just handover https://nedbatchelder.com/text/names.html, can't they use the word, "defined" 2021-05-20 05:04:15 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 05:04:22 bjs teut: I'm not sure what you mean, I said it was designed this way specifically 2021-05-20 05:04:29 bjs and that document explains what the definition is 2021-05-20 05:04:48 bjs teut: Python is *not* sugar for C, maybe that's where you got confused? 2021-05-20 05:05:14 bjs teut: every part of every language is "defined", so if we just said that for every question we'd do nothing else but reply to everyone saying "it's defined" 2021-05-20 05:05:22 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 05:05:37 --> barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has joined #python 2021-05-20 05:05:38 teut '=D that's right also 2021-05-20 05:05:51 teut thanks for the clarification bjs 2021-05-20 05:05:55 supakeen Even C's undefined behaviour is defined. 2021-05-20 05:05:57 bjs the more interesting question is often "what other choices were there" and "why did they pick this particular one" 2021-05-20 05:06:06 bjs supakeen: ;) 2021-05-20 05:06:12 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-20 05:06:16 supakeen As in, when it happens at least. 2021-05-20 05:06:31 teut I was looking at a math book , and that just fitted the word "defined" 2021-05-20 05:06:31 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 05:06:33 kosh python indexes at 0 and uses half-open intervals for slicing, that is also just defined 2021-05-20 05:06:45 kosh there are lots of ways it can be done with different tradeoffs 2021-05-20 05:06:53 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 05:08:02 <-- Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has quit (Quit: Bye) 2021-05-20 05:08:39 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-20 05:08:50 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 246 seconds) 2021-05-20 05:09:05 <-- barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has quit (Client Quit) 2021-05-20 05:09:57 --> nomic (~nomic@2a00:23c6:9910:1201:9989:34aa:b96c:78fd) has joined #python 2021-05-20 05:10:06 --> Dantalion (~Dantalion@217-123-73-108.cable.dynamic.v4.ziggo.nl) has joined #python 2021-05-20 05:10:28 --> esoares (~esoares@out-traffic.dcc.fc.up.pt) has joined #python 2021-05-20 05:10:33 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-20 05:10:49 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 245 seconds) 2021-05-20 05:10:56 <-- Freneticks (~Frenetick@gateway/tor-sasl/freneticks) has quit (Remote host closed the connection) 2021-05-20 05:12:02 iMessage bronsen Is it more clear now ? https://dpaste.org/mckc 2021-05-20 05:12:03 --> Freneticks (~Frenetick@gateway/tor-sasl/freneticks) has joined #python 2021-05-20 05:12:13 <-- blip- (~blip-@unaffiliated/blip-) has quit (Ping timeout: 252 seconds) 2021-05-20 05:15:36 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-20 05:15:58 -- Trieste_ is now known as Trieste 2021-05-20 05:17:11 <-- def_jam (~eblip@unaffiliated/eblip) has quit (Ping timeout: 240 seconds) 2021-05-20 05:18:46 bronsen iMessage: I believe the error message comes from here https://github.com/django/django/blob/stable/3.2.x/django/core/files/utils.py#L19 and while it seems there are no ".." in the path, there might be a leading "/" 2021-05-20 05:19:59 <-- Betal (~Betal@unaffiliated/betal) has quit (Quit: WeeChat 3.1) 2021-05-20 05:20:41 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 05:21:13 --> lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has joined #python 2021-05-20 05:22:25 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 260 seconds) 2021-05-20 05:22:54 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 05:22:58 --> krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has joined #python 2021-05-20 05:23:06 <-- teddyc (theodorc@cassarossa.samfundet.no) has quit (Quit: WeeChat 2.3) 2021-05-20 05:23:23 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-ksjtczmbucrmghnk) has quit (Quit: Connection closed for inactivity) 2021-05-20 05:24:18 bronsen what has me puzzled a bit though is that your code snippet looks good, and MEDIA_ROOT is described as "absolute file system path" 2021-05-20 05:27:32 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 05:27:42 <-- frrs (uid130725@gateway/web/irccloud.com/x-efxvecyttavgzvpf) has quit (Quit: Connection closed for inactivity) 2021-05-20 05:27:58 --> timeimp (~timeimp@124.168.36.54) has joined #python 2021-05-20 05:28:04 <-- timeimp (~timeimp@124.168.36.54) has left #python 2021-05-20 05:28:06 --> ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has joined #python 2021-05-20 05:28:07 bronsen iMessage: it seems that "upload_to" should not prepend MEDIA_ROOT, since that is done by the default storage system: https://docs.djangoproject.com/en/3.2/ref/models/fields/#django.db.models.FileField.upload_to 2021-05-20 05:28:24 <-- ioxzev1z (~ioxzev1z@unaffiliated/ioxzev1z) has quit (Client Quit) 2021-05-20 05:28:55 <-- dob1 (~dob1@unaffiliated/dob1) has quit (Quit: quit) 2021-05-20 05:29:09 iMessage bronsen Oh, let me try this. Thanks a lot for giving a link as reference. 2021-05-20 05:29:25 <-- teut (7aa2bd21@unaffiliated/teut) has quit (Quit: Connection closed) 2021-05-20 05:30:11 bronsen iMessage: I think upload_to should return the path relative to MEDIA_ROOT 2021-05-20 05:30:40 Sunny93 need some help with my python Class 2021-05-20 05:31:00 Sunny93 https://bpa.st/BA3Q 2021-05-20 05:31:22 Sunny93 I think I design something wrong in class inheritance 2021-05-20 05:31:29 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 05:32:01 Sunny93 the `__dump_to_impala` of the subclass doesn't get called 2021-05-20 05:32:37 Sunny93 And the IDE is showing a "#Unresolved attribute reference '__dump_to_impala' for class 'Base' " hints 2021-05-20 05:32:46 <-- dude-x_ (~textual@pool-100-1-65-112.nwrknj.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-05-20 05:33:38 <-- mozgalom (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has quit (Quit: KTHXBYE.) 2021-05-20 05:34:02 <-- cxl (~hey_its_m@unaffiliated/cxl) has quit (Ping timeout: 265 seconds) 2021-05-20 05:34:14 --> dude-x_ (~textual@pool-100-1-65-112.nwrknj.fios.verizon.net) has joined #python 2021-05-20 05:34:19 bjs Sunny93: don't use __names 2021-05-20 05:34:22 bjs Sunny93: use _names 2021-05-20 05:34:26 <-- majdi (~majdi@pool-108-27-16-18.nycmny.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-05-20 05:34:51 --> majdi (~majdi@pool-108-27-16-18.nycmny.fios.verizon.net) has joined #python 2021-05-20 05:34:53 Sunny93 originally I was using _names, then I was told _ stands for protected and __names are private 2021-05-20 05:34:55 bjs if you want to say to a programmer that it's "private", use _names 2021-05-20 05:34:57 --> dob1 (~dob1@unaffiliated/dob1) has joined #python 2021-05-20 05:34:58 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 05:35:00 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 05:35:04 bjs Sunny93: no that's totally wrong, there are no protected or private names in Python 2021-05-20 05:35:21 bjs Sunny93: _names are what people write when they want to say something is "private", it's a convention but a very common one 2021-05-20 05:35:38 bjs __names are *incredibly uncommon* and in my >10 years of using Python I have *never* seen someone use it correctly. 2021-05-20 05:35:38 bjs Not once. 2021-05-20 05:35:41 bjs Ever. 2021-05-20 05:36:36 <-- cation21 (cation21@gateway/vpn/protonvpn/cation21) has quit (Ping timeout: 260 seconds) 2021-05-20 05:36:38 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 05:37:10 Sunny93 https://stackoverflow.com/a/1301409/5983841 2021-05-20 05:37:22 <-- nomic (~nomic@2a00:23c6:9910:1201:9989:34aa:b96c:78fd) has quit (Quit: Leaving) 2021-05-20 05:37:22 Sunny93 But __names can prevent user calling the method 2021-05-20 05:37:26 Sunny93 while _name can not 2021-05-20 05:37:28 <-- pmcnabb (~pmcnabb@pool-71-114-33-160.washdc.fios.verizon.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-20 05:37:43 --> nomic (~nomic@2a00:23c6:9910:1201:9989:34aa:b96c:78fd) has joined #python 2021-05-20 05:37:52 --> pmcnabb (~pmcnabb@pool-71-114-33-160.washdc.fios.verizon.net) has joined #python 2021-05-20 05:38:09 <-- JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has quit (Ping timeout: 268 seconds) 2021-05-20 05:38:32 <-- swj (~swj@2409:8928:5c:17d:8d07:72fc:2321:1890) has quit (Ping timeout: 258 seconds) 2021-05-20 05:38:36 Sunny93 Could you help me with the function call? The question I mentioned in the first place. 2021-05-20 05:38:38 bjs Sunny93: __names does not prevent the user calling the method, it just renames the method 2021-05-20 05:38:44 bjs Sunny93: the answer is easy, use _names instead. 2021-05-20 05:38:44 Sunny93 ok 2021-05-20 05:39:19 --> cxl (~hey_its_m@unaffiliated/cxl) has joined #python 2021-05-20 05:39:41 <-- Death916 (UserNick@unaffiliated/death916) has quit (Ping timeout: 260 seconds) 2021-05-20 05:39:50 bjs Sunny93: _names are a convention to say "this is private". __names simply do some (very dumb) renaming to try make shadowing less likely. But people can still call them. and this renaming is why your `super().__dump_to_impala(dest)` call is failing. 2021-05-20 05:40:10 sanketdg I am creating a web API using Tornado that looks something like this https://bpa.st/E7AQ As you can see a lot of code is just duplicated, what is a good direction to start refactoring this, espescially the try/catch blocks? 2021-05-20 05:40:49 Sunny93 bjs wow, I see. let me try 2021-05-20 05:41:09 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-20 05:41:47 --> realies (~realies@unaffiliated/realies) has joined #python 2021-05-20 05:42:47 <-- Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has quit (Read error: Connection reset by peer) 2021-05-20 05:43:07 --> cation21 (cation21@gateway/vpn/protonvpn/cation21) has joined #python 2021-05-20 05:43:59 --> Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has joined #python 2021-05-20 05:44:16 <-- aaii (~aaii@unaffiliated/aaii) has quit (Read error: Connection reset by peer) 2021-05-20 05:44:34 --> aaii (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 05:44:47 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-20 05:44:47 --> rgr (~rgr@ip-109-42-112-91.web.vodafone.de) has joined #python 2021-05-20 05:45:30 Sunny93 holy crap. it's working 2021-05-20 05:45:38 --> def_jam (~eblip@unaffiliated/eblip) has joined #python 2021-05-20 05:45:49 Sunny93 you are so helpful and thank you. I wish I could buy you a coffee 2021-05-20 05:46:39 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 05:47:21 <-- mcsontos (~mcsontos@ip-78-45-136-55.net.upcbroadband.cz) has quit (Quit: Leaving) 2021-05-20 05:48:05 --> Stim (Stm@unaffiliated/stim) has joined #python 2021-05-20 05:48:23 --> Jerrynicki (~niklas@p200300f577050e00cc2c223ec82204cf.dip0.t-ipconnect.de) has joined #python 2021-05-20 05:48:43 Sunny93 Is there a convenient way to set something like #ifdef DEBUG in C? 2021-05-20 05:49:18 <-- Stim (Stm@unaffiliated/stim) has left #python ("__debug__?") 2021-05-20 05:49:20 Sunny93 I want a simple switch so I can log some debug info when developing but close in production 2021-05-20 05:50:08 bjs Sunny93: there are proper logging frameworks that can selectively enable/disable 2021-05-20 05:50:51 bjs but there is `if __debug__:`, but nobody runs with __debug__ = False in practice 2021-05-20 05:50:58 --> mozgalom (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has joined #python 2021-05-20 05:51:41 Sunny93 frameworks. Ok.. I choose to comment in and out some debug `print` for now then. 2021-05-20 05:52:12 --> swj (~swj@2409:8929:409:9763:68dc:27e7:1304:561b) has joined #python 2021-05-20 05:52:36 <-- bzed (~bzed@shell.bzed.at) has quit (Quit: leaving) 2021-05-20 05:52:53 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 265 seconds) 2021-05-20 05:53:49 bjs Sunny93: well there is __debug__ like I said, although it's uncommon because people prefer to use real logging frameworks 2021-05-20 05:54:12 Sunny93 Any easy set up frameworks recommended? 2021-05-20 05:54:39 Sunny93 which I can pip install xxx and set up in 5 mins ... I think? 2021-05-20 05:54:40 --> srikavin1 (~srikavin@096-058-214-140.res.spectrum.com) has joined #python 2021-05-20 05:54:52 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 05:55:11 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-20 05:55:16 <-- srikavin (~srikavin@096-058-214-140.res.spectrum.com) has quit (Ping timeout: 252 seconds) 2021-05-20 05:55:17 -- srikavin1 is now known as srikavin 2021-05-20 05:55:32 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 05:55:38 --> jim (~jim@about/linux/staff/jim) has joined #python 2021-05-20 05:56:31 --> noosanon (~user@41.222.253.208) has joined #python 2021-05-20 05:56:34 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 05:56:37 bjs Sunny93: `import logging` 2021-05-20 05:56:41 bjs you already have it. 2021-05-20 05:56:45 --> phlixi (~phlixi@ppp-46-244-186-107.dynamic.mnet-online.de) has joined #python 2021-05-20 05:56:55 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 05:57:03 bjs there are some third-party ones, like eliot, that people seem to like. But `logging` is the bog-standard one, like any you'd find anywhere else. 2021-05-20 05:57:21 Sunny93 how do I selectively enable/disable with logging? 2021-05-20 05:57:33 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 05:57:41 Sunny93 I think of 1 way. I switch set log_level 2021-05-20 05:57:53 Sunny93 I can switch log_level 2021-05-20 05:57:56 bjs Sunny93: i think it's best if you just read the docs for logging first, it will have examples and stuff 2021-05-20 05:58:03 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-20 05:58:06 Sunny93 ok thanks 2021-05-20 05:58:42 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 05:58:42 bjs Sunny93: but yes it uses levels (which is the standard way), the docs have tutorial and cookbook and a reference for all the bits 2021-05-20 05:58:54 --> henninb (~henninb@63-226-165-91.mpls.qwest.net) has joined #python 2021-05-20 05:58:59 <-- noosanon (~user@41.222.253.208) has quit (Read error: Connection reset by peer) 2021-05-20 05:59:12 --> noosanon (~user@41.222.253.208) has joined #python 2021-05-20 05:59:13 bjs Sunny93: https://docs.python.org/3/library/logging.html check the "Important" box at the top, for more links. 2021-05-20 06:00:01 --> FastJack (~fastjack@b2b-78-94-22-14.unitymedia.biz) has joined #python 2021-05-20 06:01:27 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 06:02:33 --> xvx (~xvx@185.48.63.110) has joined #python 2021-05-20 06:03:05 <-- honigkuchen (~honigkuch@ip5b429953.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-05-20 06:03:09 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 06:03:29 <-- aaii (~aaii@unaffiliated/aaii) has quit (Ping timeout: 260 seconds) 2021-05-20 06:05:33 --> aaii (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 06:06:36 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 06:06:49 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 06:06:49 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-20 06:06:59 Sunny93 Ok I see 2021-05-20 06:07:06 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Remote host closed the connection) 2021-05-20 06:07:20 <-- noosanon (~user@41.222.253.208) has quit (Remote host closed the connection) 2021-05-20 06:07:44 --> noosanon (~user@41.222.253.208) has joined #python 2021-05-20 06:07:49 <-- aaii (~aaii@unaffiliated/aaii) has quit (Max SendQ exceeded) 2021-05-20 06:08:20 --> aaii (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 06:08:56 <-- swj (~swj@2409:8929:409:9763:68dc:27e7:1304:561b) has quit (Quit: Leaving.) 2021-05-20 06:09:11 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-20 06:09:32 <-- lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has quit (Quit: ZNC - https://znc.in) 2021-05-20 06:10:23 <-- aaii (~aaii@unaffiliated/aaii) has quit (Read error: Connection reset by peer) 2021-05-20 06:10:29 --> aaii-z (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 06:10:31 IHasFinger hi guys. I am using a VS Code and using a third party library. This third party library has some method it in and some functions which I am following along on their documentation. However how can I see the actual method code? VS code does not let me click into it like usual 2021-05-20 06:10:55 IHasFinger my question is does vs code have a breakpoint so you can step in and out? 2021-05-20 06:11:29 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 246 seconds) 2021-05-20 06:11:45 <-- Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has quit (Remote host closed the connection) 2021-05-20 06:12:01 --> maum (01f5931e@1.245.147.30) has joined #python 2021-05-20 06:12:07 --> Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has joined #python 2021-05-20 06:13:09 <-- aaii-z (~aaii@unaffiliated/aaii) has quit (Read error: Connection reset by peer) 2021-05-20 06:13:30 --> aaii (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 06:14:25 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 06:14:34 <-- dub_a2 (~dub_a@192.252.212.39) has quit (Ping timeout: 245 seconds) 2021-05-20 06:15:11 <-- maum (01f5931e@1.245.147.30) has quit (Client Quit) 2021-05-20 06:16:11 amo IHasFinger, you can run vscode in debug mode, which should allow that, but it sounds like an embedded library of sorts you are interested in, best bet for those is github 2021-05-20 06:16:20 amo reading the actual code 2021-05-20 06:17:10 grawity could it be that the actual method code is compiled from C 2021-05-20 06:17:24 IHasFinger grawity, it is 2021-05-20 06:17:24 <-- DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has quit (Read error: Connection reset by peer) 2021-05-20 06:17:29 --> Major_Biscuit (~Major_Bis@82-169-100-198.biz.kpn.net) has joined #python 2021-05-20 06:18:05 IHasFinger this is the library I am using https://github.com/mrjbq7/ta-lib it has methods like MACD and RSI and I wanted to checkout the actual code but its not clear 2021-05-20 06:19:11 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Quit: = "") 2021-05-20 06:19:13 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-20 06:20:07 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 06:20:12 <-- nfc (nfc@tilde.institute) has left #python ("WeeChat 2.9") 2021-05-20 06:20:35 bjs IHasFinger: like this line: `rsi = talib.RSI(c)` ? 2021-05-20 06:20:37 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 06:20:54 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-20 06:21:01 bjs IHasFinger: things available in talib.* will have to come from talib/__init__.py, so start there. Either it's defined there, or imported there. 2021-05-20 06:22:09 lericson [f(z) for y in x for z in y] correct? 2021-05-20 06:22:15 --> speq (~pragma@2a0e:1c80:a::2) has joined #python 2021-05-20 06:22:27 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-20 06:22:37 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 260 seconds) 2021-05-20 06:22:42 mdk looks good to me 2021-05-20 06:22:46 speq Any plans to move to libera? 2021-05-20 06:22:50 bjs lericson: I mean, it's valid Python. Only you can tell if it's "correct" 2021-05-20 06:23:01 mdk speq: some have moved 2021-05-20 06:23:02 bjs speq: "Moving? It's being spoken about but there's no answer." 2021-05-20 06:23:04 <-- meti (~meti@unaffiliated/meti) has quit (Quit: ZNC - http://znc.in) 2021-05-20 06:23:10 speq Thanks 2021-05-20 06:23:35 supakeen Seeing how the dust settles and where the users end up is the current status-ish. 2021-05-20 06:23:45 FLHerne speq: There's already a libera version with a couple of hundred people 2021-05-20 06:23:48 --> frrs (uid130725@gateway/web/irccloud.com/x-ejefbkpvsacsfwff) has joined #python 2021-05-20 06:24:25 lericson bjs: the opposite would be nonsensical 2021-05-20 06:24:45 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-20 06:25:07 lericson i'm asking, does the inner loop come after the outer in the comprehension syntax 2021-05-20 06:25:10 bjs lericson: well, [f(z) for z in y for y in x] is also valid but does something different (an a bit uselesss I guess) 2021-05-20 06:25:11 lericson i never remember this for some reason 2021-05-20 06:25:15 <-- GhitzaPizdalau (~Baltazar@gateway/tor-sasl/zadock) has quit (Quit: Leaving) 2021-05-20 06:25:16 bjs lericson: it's the same order as normal loops 2021-05-20 06:25:25 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-20 06:25:30 speq supakeen: thanks 2021-05-20 06:25:31 bjs lericson: `for a in b: for c in d: append(e)` is `[e for a in b for c in d]` 2021-05-20 06:25:42 lericson my instinct is to go [[f(z) for z in y] for y in x] but remove the brackets for some reason 2021-05-20 06:25:45 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 265 seconds) 2021-05-20 06:26:04 <-- deathonater (~deathonat@unaffiliated/smeef) has quit (Quit: (╯°□°)╯︵ ┻━━┻) 2021-05-20 06:26:24 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-20 06:26:33 --> Smeef (~deathonat@unaffiliated/smeef) has joined #python 2021-05-20 06:27:41 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 06:29:35 <-- lambda (~xiretza@irc.xiretza.xyz) has quit (Quit: WeeChat 3.1) 2021-05-20 06:29:47 --> lambda (~xiretza@cyka.blyat.vodka) has joined #python 2021-05-20 06:30:46 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 06:31:53 --> MarderIII (~MarderIII@2001:981:5b5b:1:4c37:134:afb3:6d3f) has joined #python 2021-05-20 06:32:33 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 06:32:59 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 06:33:04 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 06:33:21 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Ping timeout: 260 seconds) 2021-05-20 06:34:40 -- Mode #python [+o supakeen] by ChanServ 2021-05-20 06:34:42 -- supakeen has changed topic for #python from "Anything about Python is on-topic. | Don't paste, use https://bpa.st/+python | Moving? It's being spoken about but there's no answer. | CoC: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops: #python-ops | #python-fr #python.de #python-uk #python-es #pyar #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #pytho" to "Anything Python is on-topic. | Don't paste, use https://bpa.st/+python | Libera? It's being spoken about but there's no answer. | CoC: https://j.mp/psf-coc | Tutorial: https://j.mp/MCAhYx | New programmer? https://j.mp/23X7emF | Ops: #python-ops │ #python-fr #python.de #python-uk #python-es #pyar #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu" 2021-05-20 06:34:46 -- Mode #python [-o supakeen] by ChanServ 2021-05-20 06:34:53 supakeen After my failings of yesterday I made it a bit more clear now :) 2021-05-20 06:35:16 --> barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has joined #python 2021-05-20 06:35:59 --> Sebastius (sid106552@revspace/participant/sebastius) has joined #python 2021-05-20 06:36:42 --> contagious_meow (~contagiou@197.156.190.214) has joined #python 2021-05-20 06:36:44 bjs supakeen: it's ok nobody reads the topic anyway 2021-05-20 06:37:03 spithash word 2021-05-20 06:37:12 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Remote host closed the connection) 2021-05-20 06:38:08 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 06:38:11 P1ckleRick haha 2021-05-20 06:38:12 <-- iMessage (4fb84011@79.184.64.17.ipv4.supernova.orange.pl) has quit (Quit: Connection closed) 2021-05-20 06:38:43 <-- bbear (~bbear@2a01:e34:ec2b:d430:a072:10c5:2967:d383) has quit (Quit: Leaving) 2021-05-20 06:39:40 contagious_meow Anyone tried to install pillow on windows? What way would you recommend without having to use a conda distribution 2021-05-20 06:40:03 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Remote host closed the connection) 2021-05-20 06:40:54 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-20 06:41:09 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 06:41:12 grawity I just ran `pip install pillow` and that seemed to do the job? 2021-05-20 06:41:23 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-20 06:41:48 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-20 06:42:06 <-- unsyncing (~unsyncing@185.242.5.66) has quit (Ping timeout: 240 seconds) 2021-05-20 06:42:21 contagious_meow on my system that brings up a missing zlib dependency during build and then I get the problem that zlib is not distributed by pypi 2021-05-20 06:42:33 <-- nomic (~nomic@2a00:23c6:9910:1201:9989:34aa:b96c:78fd) has quit (Quit: Leaving) 2021-05-20 06:42:33 lericson install zlib-dev 2021-05-20 06:42:50 contagious_meow using pip? 2021-05-20 06:43:02 lericson using apt or whatever 2021-05-20 06:43:30 contagious_meow windows platform though 2021-05-20 06:43:44 grawity in my case it seems to have just unpacked a pre-built .whl package 2021-05-20 06:44:01 grawity I don't remember whether I've done anything specific to make that work 2021-05-20 06:44:05 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-20 06:44:30 --> evil_gordita (robert@ip24-254-23-39.rn.hr.cox.net) has joined #python 2021-05-20 06:45:28 --> bbear (~bbear@2a01:e34:ec2b:d430:a072:10c5:2967:d383) has joined #python 2021-05-20 06:45:36 grawity (I'm using py3.9 via Windows Store, for what it's worth) 2021-05-20 06:45:42 <-- bbear (~bbear@2a01:e34:ec2b:d430:a072:10c5:2967:d383) has quit (Client Quit) 2021-05-20 06:45:54 --> plut4rch (~plut4rch@220-244-147-249.tpgi.com.au) has joined #python 2021-05-20 06:45:59 contagious_meow im using version 3.10 2021-05-20 06:46:03 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Ping timeout: 265 seconds) 2021-05-20 06:47:01 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-20 06:47:43 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 06:48:15 <-- vidbina (~vid@45.139.215.53) has quit (Read error: Connection reset by peer) 2021-05-20 06:48:32 contagious_meow the only headway i found was to use minsys somehow, 2021-05-20 06:48:40 IHasFinger i ran my script in debug in vs code after that i disable all breakpoints. However when using terminal to run my code. It is struck 2021-05-20 06:48:47 -- mozgalom is now known as bomb-on 2021-05-20 06:48:59 --> jesseTree (~powerhous@2604:3d08:6d80:a900::5c5f) has joined #python 2021-05-20 06:49:26 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-20 06:49:40 <-- pingiun (~jelle@2a01:4f8:c2c:d45::1) has left #python 2021-05-20 06:50:24 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 265 seconds) 2021-05-20 06:50:34 IHasFinger anyone experience this before? 2021-05-20 06:51:21 --> ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has joined #python 2021-05-20 06:51:34 --> kanupatar (7444491b@116.68.73.27) has joined #python 2021-05-20 06:51:48 <-- bionode (~user@gateway/tor-sasl/bionode) has quit (Quit: bionode) 2021-05-20 06:52:09 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-20 06:52:21 <-- Death916 (UserNick@unaffiliated/death916) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-20 06:52:34 --> bionode (~user@gateway/tor-sasl/bionode) has joined #python 2021-05-20 06:52:39 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-20 06:52:54 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-20 06:52:56 <-- krux02 (~krux02@p200300ca8f477a00aa3979b058f0e220.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-20 06:53:05 <-- av_ (uid87081@gateway/web/irccloud.com/x-dpizxdswvcmykvmp) has quit (Quit: Connection closed for inactivity) 2021-05-20 06:53:57 <-- sysadmin (~McCafe@23.108.51.26) has quit (Remote host closed the connection) 2021-05-20 06:54:25 --> sysadmin (~McCafe@23.108.51.26) has joined #python 2021-05-20 06:54:26 <-- sysadmin (~McCafe@23.108.51.26) has quit (Max SendQ exceeded) 2021-05-20 06:54:34 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Remote host closed the connection) 2021-05-20 06:55:14 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 06:55:33 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-20 06:55:56 <-- contagious_meow (~contagiou@197.156.190.214) has quit (Ping timeout: 260 seconds) 2021-05-20 06:56:12 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 265 seconds) 2021-05-20 06:56:46 <-- rgr (~rgr@ip-109-42-112-91.web.vodafone.de) has quit (Remote host closed the connection) 2021-05-20 06:56:49 --> sysadmin (~McCafe@23.108.51.26) has joined #python 2021-05-20 06:57:00 --> s8548a__ (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-20 06:57:06 --> rgr (~rgr@ip-109-42-112-91.web.vodafone.de) has joined #python 2021-05-20 06:57:30 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Remote host closed the connection) 2021-05-20 06:57:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 06:57:46 <-- xvx (~xvx@185.48.63.110) has quit (Ping timeout: 240 seconds) 2021-05-20 06:57:58 --> shabius (~shabius@45.15.19.226) has joined #python 2021-05-20 06:58:26 --> contagious_meow (~contagiou@102.1.228.67) has joined #python 2021-05-20 06:58:33 <-- wyre (~wyre@unaffiliated/wyre) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-20 06:58:46 <-- shabius_ (~shabius@45.15.19.226) has quit (Ping timeout: 240 seconds) 2021-05-20 06:58:49 --> wyre (~wyre@unaffiliated/wyre) has joined #python 2021-05-20 07:00:04 <-- s8548a_ (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 265 seconds) 2021-05-20 07:00:22 --> gelignite (~gelignite@55d456fd.access.ecotel.net) has joined #python 2021-05-20 07:01:15 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 07:01:29 <-- dvyd (b0e76a91@176.231.106.145) has quit (Quit: Connection closed) 2021-05-20 07:03:31 <-- sanketdg (674c5261@gateway/web/cgi-irc/kiwiirc.com/ip.103.76.82.97) has quit (Quit: Connection closed) 2021-05-20 07:03:33 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-20 07:04:00 <-- rgr (~rgr@ip-109-42-112-91.web.vodafone.de) has quit (Quit: Leaving) 2021-05-20 07:04:18 --> rgr (~rgr@ip-109-42-112-91.web.vodafone.de) has joined #python 2021-05-20 07:05:25 <-- sinanislekdemir (~sinan@dsl-hkibng42-5673ca-177.dhcp.inet.fi) has left #python 2021-05-20 07:06:24 IHasFinger is they something in python which can tell me the list of callback /method for an object? 2021-05-20 07:06:36 <-- rgr (~rgr@ip-109-42-112-91.web.vodafone.de) has quit (Client Quit) 2021-05-20 07:06:40 --> allegary (~gary@apache/committer/gjm) has joined #python 2021-05-20 07:06:58 --> rgr (~rgr@ip-109-42-112-91.web.vodafone.de) has joined #python 2021-05-20 07:07:50 <-- sysadmin (~McCafe@23.108.51.26) has quit (K-Lined) 2021-05-20 07:07:50 -- brskq_ is now known as brsqk 2021-05-20 07:07:51 IHasFinger this library i am using, the docs says it should have a method called "signal". however when i try to access it i get 2021-05-20 07:07:52 IHasFinger AttributeError: 'Lines_LineSeries_LineIterator_DataAccessor_Indicat' object has no attribute 'signal' 2021-05-20 07:07:55 --> acresearch (~acresearc@unaffiliated/acresearch) has joined #python 2021-05-20 07:08:18 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:08:53 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-20 07:09:06 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:09:49 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 07:09:55 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-20 07:10:26 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 240 seconds) 2021-05-20 07:12:16 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 260 seconds) 2021-05-20 07:12:18 bjs IHasFinger: well you can go help(the_object) to get information about it 2021-05-20 07:12:24 --> rinzewind (~chema@unaffiliated/rinzewind) has joined #python 2021-05-20 07:12:31 bjs IHasFinger: but I'm not sure what you expect to find, Python has already told you "signal" won't be in that list. :) 2021-05-20 07:12:53 bjs IHasFinger: maybe the docs are wrong, or maybe you have a different type of object than the docs were talking about 2021-05-20 07:13:44 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 268 seconds) 2021-05-20 07:14:07 IHasFinger bjs, found it :) https://stackoverflow.com/questions/2675028/list-attributes-of-an-object 2021-05-20 07:14:18 IHasFinger looks like the documentation not been updated in a while 2021-05-20 07:14:23 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-20 07:14:27 --> derpadmin (~derpadmin@2a07:12c0:1780:1313:1313:1313:1313:1313) has joined #python 2021-05-20 07:14:41 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-20 07:14:56 bjs IHasFinger: help() is a really useful function when you get stuck 2021-05-20 07:15:32 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 265 seconds) 2021-05-20 07:15:41 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-20 07:17:35 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-20 07:18:31 --> computeiro (~Wender@189.37.69.67) has joined #python 2021-05-20 07:20:22 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 265 seconds) 2021-05-20 07:21:00 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 07:21:08 --> enoq (~textual@194-208-146-143.lampert.tv) has joined #python 2021-05-20 07:22:31 --> Ecophobia (~Ecophobia@mobile-access-bcee3d-235.dhcp.inet.fi) has joined #python 2021-05-20 07:22:52 Zy64Jw f :: Iterable[a] -> Iterable[a] -> Iterable[a] ?? 2021-05-20 07:22:58 --> ente_ (~ente@p200300dc5f11fe01b184880fe655229e.dip0.t-ipconnect.de) has joined #python 2021-05-20 07:23:38 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Remote host closed the connection) 2021-05-20 07:24:15 <-- jlf (~user@pdpc/supporter/active/jlf) has quit (Ping timeout: 250 seconds) 2021-05-20 07:24:19 bjs Zy64Jw: is that supposed to be a question? 2021-05-20 07:24:20 --> M1zuki (~iridium@unaffiliated/m1zuki) has joined #python 2021-05-20 07:24:24 bjs if so, I'm not sure what you're trying to ask 2021-05-20 07:24:38 Zy64Jw is there a function that combines two iterables into one? 2021-05-20 07:24:56 Zy64Jw for lists we have (+) 2021-05-20 07:25:05 mdk Zy64Jw: itertools.chain ? 2021-05-20 07:25:27 Zy64Jw chain(a, b)? 2021-05-20 07:25:38 Zy64Jw mdk: thanks! 2021-05-20 07:25:43 mdk Zy64Jw: try it, see if it fit your needs 2021-05-20 07:25:55 IHasFinger bjs, thanks. I was not aware python had a help method :) 2021-05-20 07:26:15 bjs IHasFinger: even I forget sometimes 2021-05-20 07:26:15 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:26:25 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 07:26:29 bjs IHasFinger: it is limited, and "real" docs is usually better 2021-05-20 07:26:35 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:26:38 bjs but if you have an object and just want to know "what is this thing" help can be useful 2021-05-20 07:26:43 Zy64Jw also is there a partition function based on predicate? i.e. f :: (a -> Bool) -> Iterable[a] -> (Iterable[a], Iterable[a]) 2021-05-20 07:26:46 <-- topoi_ (~topoi@unaffiliated/topoi) has quit (Quit: leaving) 2021-05-20 07:27:09 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 07:27:23 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 07:27:24 Zy64Jw ignore my last message 2021-05-20 07:27:26 bjs Zy64Jw: https://pypi.org/project/more-itertools/ has a lot more of these kind of functions 2021-05-20 07:27:30 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 07:27:42 bjs Zy64Jw: that one is called partition. 2021-05-20 07:27:50 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:28:08 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 07:28:14 --> tens0r (~tens0r@unaffiliated/tensor-india) has joined #python 2021-05-20 07:28:34 --> brickfat (~brickfat@unaffiliated/brickfat) has joined #python 2021-05-20 07:28:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:28:53 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-20 07:29:15 Zy64Jw bjs: thanks! 2021-05-20 07:29:27 <-- Ublx (~Alex@2a02:810c:280:59c:6078:fa10:dfb1:b8be) has quit (Ping timeout: 250 seconds) 2021-05-20 07:29:48 <-- tens0r (~tens0r@unaffiliated/tensor-india) has left #python 2021-05-20 07:29:49 --> cdown (~cdown@163.114.131.1) has joined #python 2021-05-20 07:30:46 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 07:31:07 --> vimart (~vimart@185.69.144.255) has joined #python 2021-05-20 07:32:41 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-20 07:32:43 --> CountryNerd (~CountryNe@50.105.100.16) has joined #python 2021-05-20 07:32:50 --> Ublx (~Alex@190-2-132-198.hosted-by-worldstream.net) has joined #python 2021-05-20 07:33:21 --> tensor-dev (~tensor-in@unaffiliated/tensor-india) has joined #python 2021-05-20 07:33:27 --> kilitary (~kilitary@kilitary.ru) has joined #python 2021-05-20 07:34:39 Zy64Jw I see that more-itertools is already installed in my venv, how can i use pip to find the package that uses it for which more-itertools was installed 2021-05-20 07:34:42 <-- tensor-dev (~tensor-in@unaffiliated/tensor-india) has quit (Read error: Connection reset by peer) 2021-05-20 07:35:13 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-20 07:35:19 kanupatar Hi everyone. I have a scenario. I have the numerical input data(10 columns). It is two class data. There are 800,000 normal class and 100,000 attack class. Which machine learning algorithm I should use to build a detection engine? 2021-05-20 07:35:40 <-- CountryNerd (~CountryNe@50.105.100.16) has quit (Client Quit) 2021-05-20 07:35:40 bjs Zy64Jw: `venv/bin/pip show more-itertools` might contain useful information 2021-05-20 07:35:43 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-20 07:35:47 <-- Dragon092 (~Dragon@business-24-134-108-65.pool2.vodafone-ip.de) has quit (Quit: Leaving) 2021-05-20 07:36:20 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-20 07:36:35 Zy64Jw cool it says required by moto which i am using to mock boto 2021-05-20 07:36:55 <-- cdown (~cdown@163.114.131.1) has quit (Read error: Connection reset by peer) 2021-05-20 07:37:05 --> cdown_ (~cdown@163.114.131.1) has joined #python 2021-05-20 07:37:10 -- cdown_ is now known as cdown 2021-05-20 07:37:34 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:38:07 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:38:57 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 07:39:06 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-20 07:39:46 <-- Jantz (~IceChat95@2407:7000:8d04:100:39cb:3c86:980e:2f21) has quit (Read error: Connection reset by peer) 2021-05-20 07:40:41 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:41:20 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:41:41 --> shla (~wheel@unaffiliated/shla) has joined #python 2021-05-20 07:42:01 <-- fnstudio (~test@159.65.94.136) has quit (Ping timeout: 260 seconds) 2021-05-20 07:42:02 habnabit_ kanupatar, this is #python 2021-05-20 07:42:05 --> Xatenev (~xatenev@2a02:8108:963f:9cb8:84f9:3696:2e95:1da) has joined #python 2021-05-20 07:42:15 Xatenev hello 2021-05-20 07:42:18 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-20 07:42:18 <-- fowl (sid209700@gateway/web/irccloud.com/x-frwtauvjcrikuyam) has left #python 2021-05-20 07:42:23 kanupatar habnabit_ ok 2021-05-20 07:42:51 <-- cdown (~cdown@163.114.131.1) has quit (Remote host closed the connection) 2021-05-20 07:43:06 Xatenev is it possible to somehow get access to the __import__/import/exec builtin functions in an eval code if the environment is set like e = {'__builtins__': {}} 2021-05-20 07:43:06 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:43:10 --> cdown (~cdown@163.114.131.1) has joined #python 2021-05-20 07:43:19 Xatenev and passed into eval(cmd, e, e) 2021-05-20 07:43:21 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 260 seconds) 2021-05-20 07:43:29 Xatenev (this is related to a CTF) 2021-05-20 07:43:38 supakeen Yes. 2021-05-20 07:43:43 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:43:44 supakeen But I assume you don't want the direct answer :) 2021-05-20 07:44:00 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-20 07:44:00 Xatenev thanks, yeah its good to know that the direction is probably correct then 2021-05-20 07:44:15 Xatenev im trying to find a way to regenerate the builtins somehow 2021-05-20 07:44:21 supakeen Well. 2021-05-20 07:44:49 supakeen Let me put it this way, everything in Python inherits from the same object, this object has a __subclasses__ attribute. 2021-05-20 07:44:52 supakeen Does that help you along? 2021-05-20 07:44:57 supakeen See what's in there :) 2021-05-20 07:45:06 <-- srandon111 (~srandon11@5.102.2.235) has left #python ("leaving") 2021-05-20 07:45:42 -- spinningCat is now known as CuriousCat 2021-05-20 07:45:52 -- CuriousCat is now known as CuriousSpinCat 2021-05-20 07:46:00 <-- vdamewood (~vdamewood@unaffiliated/vdamewood) has quit (Quit: Life beckons.) 2021-05-20 07:46:51 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-20 07:47:32 <-- Sebastius (sid106552@revspace/participant/sebastius) has left #python 2021-05-20 07:48:16 --> dviola (~diego@unaffiliated/dviola) has joined #python 2021-05-20 07:48:36 Xatenev supakeen: thank you 2021-05-20 07:48:38 Xatenev it worked 2021-05-20 07:49:08 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:49:24 supakeen Good! 2021-05-20 07:49:31 Xatenev supakeen: this is how i did it [ x.__init__.__globals__ for x in ''.__class__.__base__.__subclasses__() if x.__name__ == '_wrap_close' ][0]['system']('cat flag') 2021-05-20 07:49:47 supakeen Close, and now I know it's not a challenge I built. 2021-05-20 07:50:00 Xatenev haha, why? 2021-05-20 07:50:05 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:50:13 Xatenev are you actively building CTF challenges? 2021-05-20 07:50:13 supakeen Because I rarely do `cat flag` but make the flags something you have to use. 2021-05-20 07:50:23 supakeen Like, find the password to an administrator panel or such. 2021-05-20 07:50:29 supakeen Has to fit in a storyline a bit. 2021-05-20 07:50:33 --> brickfat_ (~brickfat@unaffiliated/brickfat) has joined #python 2021-05-20 07:50:36 supakeen Yea, my day job is building CTF challenges. 2021-05-20 07:50:46 Xatenev ohh thats neat 2021-05-20 07:51:13 Xatenev I wanna get more into RE/CTf stuff 2021-05-20 07:51:21 supakeen It's a lot of fun. 2021-05-20 07:51:25 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 07:51:34 Xatenev only the memory hacking and RE stuff though, i find networking stuff boring 2021-05-20 07:51:51 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:51:56 supakeen Though I'm a bit biased since there's a lot of not so good challenges out there that only revolve around one trick (the one you just had you see a lot). 2021-05-20 07:52:13 supakeen I prefer a bit more story to them and actually having to use 'flags' you steal. 2021-05-20 07:52:19 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:52:21 Xatenev yeah thats cool 2021-05-20 07:52:34 supakeen I guess a bit more real-world. 2021-05-20 07:52:37 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-20 07:52:39 Xatenev supakeen: are you only focussed on python CTF's or other languages too? 2021-05-20 07:52:41 supakeen But put that one in your notes, it's super common. 2021-05-20 07:52:43 supakeen All languages. 2021-05-20 07:52:53 supakeen But personally I mostly write Python and C. 2021-05-20 07:53:04 <-- kanupatar (7444491b@116.68.73.27) has quit (Quit: Connection closed) 2021-05-20 07:53:06 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:53:29 Xatenev I see, I usually don't do any python only C and JVM-based languages but python and perl are quite involved in exploiting stuff 2021-05-20 07:53:29 --> Fauve (~Fauve@unaffiliated/fauve) has joined #python 2021-05-20 07:53:35 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:54:06 <-- brickfat (~brickfat@unaffiliated/brickfat) has quit (Ping timeout: 240 seconds) 2021-05-20 07:54:57 <-- chele (~chele@ip5b40237d.dynamic.kabel-deutschland.de) has left #python ("Leaving") 2021-05-20 07:55:35 --> Dejan (~dejan@unaffiliated/dejan) has joined #python 2021-05-20 07:56:00 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 07:56:04 <-- Dejan (~dejan@unaffiliated/dejan) has left #python ("Leaving") 2021-05-20 07:56:26 --> dez (uid92154@fedora/deSouza) has joined #python 2021-05-20 07:56:58 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 07:57:04 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-20 07:57:18 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-20 07:57:30 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 07:57:38 <-- eht (~eht@unaffiliated/eht) has quit (Read error: Connection reset by peer) 2021-05-20 07:57:48 <-- arooni (~arooni@li1062-244.members.linode.com) has quit (Quit: ZNC - http://znc.in) 2021-05-20 07:58:36 bjs Xatenev: once you're in you can get to ctypes then you can do anything C can do 2021-05-20 07:58:45 <-- Major_Biscuit (~Major_Bis@82-169-100-198.biz.kpn.net) has quit (Ping timeout: 260 seconds) 2021-05-20 07:58:59 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-20 07:59:14 --> kanupatar (7444491b@116.68.73.27) has joined #python 2021-05-20 07:59:14 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-20 07:59:16 bjs which uh, is more a proof of terribleness than a practical approach to actually doing it. :) 2021-05-20 07:59:22 <-- henninb (~henninb@63-226-165-91.mpls.qwest.net) has quit (Quit: Lost terminal) 2021-05-20 08:00:33 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: Bin weg.) 2021-05-20 08:00:41 --> Major_Biscuit (~Major_Bis@x065156.citg-m.tudelft.nl) has joined #python 2021-05-20 08:01:35 --> arooni (~arooni@li1062-244.members.linode.com) has joined #python 2021-05-20 08:01:42 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 08:01:43 --> ska (~ska@cpe-173-174-111-177.austin.res.rr.com) has joined #python 2021-05-20 08:02:52 --> eht (~eht@unaffiliated/eht) has joined #python 2021-05-20 08:03:11 -- synthetek is now known as sl4ck3r 2021-05-20 08:03:27 <-- Guest20 (~textual@192.146.154.3) has left #python 2021-05-20 08:03:49 <-- speq (~pragma@2a0e:1c80:a::2) has quit (Ping timeout: 258 seconds) 2021-05-20 08:04:06 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 08:04:08 --> legola (~legola@unaffiliated/legola) has joined #python 2021-05-20 08:04:11 -- sl4ck3r is now known as synthetek 2021-05-20 08:04:36 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 08:04:44 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 08:04:52 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 08:04:55 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 268 seconds) 2021-05-20 08:05:08 <-- kanupatar (7444491b@116.68.73.27) has quit (Quit: Connection closed) 2021-05-20 08:05:11 <-- Ergo (~ergo@91.238.59.144) has quit (Ping timeout: 240 seconds) 2021-05-20 08:05:12 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 08:06:01 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-20 08:06:37 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-20 08:07:38 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 08:07:43 --> dial8gue (~dial8gue@188.242.2.39) has joined #python 2021-05-20 08:08:19 --> mcsontos (~mcsontos@95.82.132.160) has joined #python 2021-05-20 08:08:25 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 08:08:44 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Ping timeout: 245 seconds) 2021-05-20 08:09:16 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-20 08:09:39 --> JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has joined #python 2021-05-20 08:09:40 --> JavaBean|new|2 (~JavaBean@228.sub-174-238-140.myvzw.com) has joined #python 2021-05-20 08:09:40 <-- rgr (~rgr@ip-109-42-112-91.web.vodafone.de) has quit (Ping timeout: 265 seconds) 2021-05-20 08:10:04 <-- JavaBean|new|2 (~JavaBean@228.sub-174-238-140.myvzw.com) has quit (Client Quit) 2021-05-20 08:10:18 <-- JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has quit (Read error: Connection reset by peer) 2021-05-20 08:11:12 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 08:11:39 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 08:11:46 <-- R0b0t1 (~R0b0t1@unaffiliated/r0b0t1) has quit (Ping timeout: 240 seconds) 2021-05-20 08:12:53 --> R0b0t1 (~R0b0t1@unaffiliated/r0b0t1) has joined #python 2021-05-20 08:12:54 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 08:13:54 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 08:14:01 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 265 seconds) 2021-05-20 08:15:44 <-- userx (~userx@unaffiliated/userx) has quit (Quit: userx) 2021-05-20 08:16:54 --> GermainZ (~GermainZ@unaffiliated/germainz) has joined #python 2021-05-20 08:17:06 --> urodna (~urodna@unaffiliated/urodna) has joined #python 2021-05-20 08:18:55 --> Ergo (~ergo@185.55.8.59.c.fiberdirekt.net) has joined #python 2021-05-20 08:18:55 --> JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has joined #python 2021-05-20 08:20:47 --> Dejan (~dejan@unaffiliated/dejan) has joined #python 2021-05-20 08:21:22 --> Tennis (~Tennis@unaffiliated/tennis) has joined #python 2021-05-20 08:21:32 <-- Dejan (~dejan@unaffiliated/dejan) has left #python ("Leaving") 2021-05-20 08:21:50 --> lmt (uid107697@gateway/web/irccloud.com/x-ozkqvbiinlpphxev) has joined #python 2021-05-20 08:23:03 --> schangg (5c9a63da@lputeaux-656-1-124-218.w92-154.abo.wanadoo.fr) has joined #python 2021-05-20 08:23:27 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 08:24:16 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 08:24:34 -- dTal is now known as dTal_moved_to_li 2021-05-20 08:24:49 -- dTal_moved_to_li is now known as dTal_join_libera 2021-05-20 08:26:22 --> Numero-6 (~Numero-6@194.5.53.18) has joined #python 2021-05-20 08:26:32 <-- bionode (~user@gateway/tor-sasl/bionode) has quit (Quit: bionode) 2021-05-20 08:26:35 --> kanupatar (7444491b@116.68.73.27) has joined #python 2021-05-20 08:26:57 --> fizzizist (~Thunderbi@108.162.133.99) has joined #python 2021-05-20 08:27:50 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 08:28:03 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 08:28:04 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Remote host closed the connection) 2021-05-20 08:28:43 <-- Deyaa (uid190709@gateway/web/irccloud.com/x-rbrdebgrtddfmrko) has quit (Quit: Connection closed for inactivity) 2021-05-20 08:28:44 --> rgr (~rgr@2a01:598:a127:5e09:d228:103b:7705:b85a) has joined #python 2021-05-20 08:29:12 --> wender (~Wender@186.210.40.46) has joined #python 2021-05-20 08:29:38 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-20 08:30:06 <-- shla (~wheel@unaffiliated/shla) has left #python ("The Lounge - https://thelounge.chat") 2021-05-20 08:30:47 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 08:31:44 <-- rgr (~rgr@2a01:598:a127:5e09:d228:103b:7705:b85a) has quit (Remote host closed the connection) 2021-05-20 08:32:02 --> rgr (~rgr@2a01:598:a127:5e09:d228:103b:7705:b85a) has joined #python 2021-05-20 08:32:11 <-- computeiro (~Wender@189.37.69.67) has quit (Ping timeout: 260 seconds) 2021-05-20 08:32:12 --> DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has joined #python 2021-05-20 08:34:13 --> bionode (~user@gateway/tor-sasl/bionode) has joined #python 2021-05-20 08:34:20 <-- fofoni (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has quit (Quit: Leaving) 2021-05-20 08:34:41 --> fofoni (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has joined #python 2021-05-20 08:34:59 <-- Abrax (~Abrax@unaffiliated/abrax) has quit (Ping timeout: 245 seconds) 2021-05-20 08:37:57 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 08:38:27 <-- bionode (~user@gateway/tor-sasl/bionode) has quit (Client Quit) 2021-05-20 08:40:05 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 08:41:32 <-- ente_ (~ente@p200300dc5f11fe01b184880fe655229e.dip0.t-ipconnect.de) has quit (Quit: WeeChat 3.1) 2021-05-20 08:42:09 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 08:42:31 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-20 08:42:44 --> Manouchehri (sid384576@gateway/web/irccloud.com/x-psiqpveunkoipmbq) has joined #python 2021-05-20 08:42:48 <-- ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has quit (Remote host closed the connection) 2021-05-20 08:42:55 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 08:43:09 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 08:43:16 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-20 08:43:46 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 240 seconds) 2021-05-20 08:43:55 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 08:43:59 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 08:44:03 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 08:44:13 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 08:44:33 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 08:44:50 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 08:45:16 <-- stranac (~stranac@195.29.239.126) has quit (Read error: Connection reset by peer) 2021-05-20 08:45:43 --> BakaKuna (~Thunderbi@86-89-65-191.fixed.kpn.net) has joined #python 2021-05-20 08:46:01 <-- dupondje (~dupondje@artemis.dupie.be) has left #python 2021-05-20 08:46:58 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 08:47:46 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 08:49:15 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-20 08:50:57 --> ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has joined #python 2021-05-20 08:51:08 CrtxReavr Is ozone with PSF, /names 2021-05-20 08:51:14 CrtxReavr whoops 2021-05-20 08:51:31 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-20 08:53:19 <-- ZeroKnight (zeroknight@dimensionzero.net) has quit (Ping timeout: 252 seconds) 2021-05-20 08:53:31 --> Abrax (~Abrax@unaffiliated/abrax) has joined #python 2021-05-20 08:55:17 --> shantanoo (~shantanoo@p3m/member/shantanoo) has joined #python 2021-05-20 08:56:19 --> mokulus (~mat@176.111.230.96) has joined #python 2021-05-20 08:56:29 <-- xrogaan (~xrogaan@unaffiliated/xrogaan) has left #python ("Leaving") 2021-05-20 08:56:34 <-- eht (~eht@unaffiliated/eht) has quit (Quit: leaving) 2021-05-20 08:57:32 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 08:59:14 --> gauravsitlani (~gauravsit@2402:e280:2314:1fe:ee28:e0dc:5947:5063) has joined #python 2021-05-20 08:59:25 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 260 seconds) 2021-05-20 09:00:04 <-- Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- ghost43_ (~daer@gateway/tor-sasl/daer) has quit (Remote host closed the connection) 2021-05-20 09:00:04 <-- bamdad_ (~bamdad@gateway/tor-sasl/bamdad) has quit (Write error: Connection reset by peer) 2021-05-20 09:00:04 <-- cantstanya (~chatting@gateway/tor-sasl/cantstanya) has quit (Write error: Connection reset by peer) 2021-05-20 09:00:04 <-- Freneticks (~Frenetick@gateway/tor-sasl/freneticks) has quit (Write error: Connection reset by peer) 2021-05-20 09:00:04 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Write error: Connection reset by peer) 2021-05-20 09:00:04 <-- NorthwestVegan (~Northwest@gateway/tor-sasl/northwestvegan) has quit (Write error: Connection reset by peer) 2021-05-20 09:00:04 <-- ogo (~ogo@gateway/tor-sasl/ogo) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- andreas303 (~andreas@gateway/tor-sasl/andreas303) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- denisse (~denisse@gateway/tor-sasl/alephzer0) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- maxwilliamson (~maxwillia@gateway/tor-sasl/maxwilliamson) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- mikeike2 (~j@gateway/tor-sasl/doh) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- whiteshadow (~whiteshad@gateway/tor-sasl/whiteshadow) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- kevr (~kevr@gateway/tor-sasl/kevr) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:04 <-- iNs (~ins@gateway/tor-sasl/ins) has quit (Read error: Connection reset by peer) 2021-05-20 09:00:05 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Write error: Connection reset by peer) 2021-05-20 09:00:05 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Write error: Connection reset by peer) 2021-05-20 09:00:05 <-- bitblit (~bitblit@gateway/tor-sasl/bitblit) has quit (Write error: Connection reset by peer) 2021-05-20 09:00:12 --> xioton (~xioton@41.114.51.111) has joined #python 2021-05-20 09:00:15 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 09:00:20 --> iNs (~ins@gateway/tor-sasl/ins) has joined #python 2021-05-20 09:00:21 --> mikeike2 (~j@gateway/tor-sasl/doh) has joined #python 2021-05-20 09:00:22 --> sec^nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-20 09:00:25 --> ghost43 (~daer@gateway/tor-sasl/daer) has joined #python 2021-05-20 09:00:26 --> whiteshadow (~whiteshad@gateway/tor-sasl/whiteshadow) has joined #python 2021-05-20 09:00:26 --> Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has joined #python 2021-05-20 09:00:27 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 09:00:27 --> Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has joined #python 2021-05-20 09:00:28 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 09:00:30 --> denisse (~denisse@gateway/tor-sasl/alephzer0) has joined #python 2021-05-20 09:00:32 --> kevr (~kevr@gateway/tor-sasl/kevr) has joined #python 2021-05-20 09:00:32 --> ogo (~ogo@gateway/tor-sasl/ogo) has joined #python 2021-05-20 09:00:41 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-20 09:00:44 --> andreas303 (~andreas@gateway/tor-sasl/andreas303) has joined #python 2021-05-20 09:00:47 --> bamdad (~bamdad@gateway/tor-sasl/bamdad) has joined #python 2021-05-20 09:00:57 --> maxwilliamson (~maxwillia@gateway/tor-sasl/maxwilliamson) has joined #python 2021-05-20 09:01:01 <-- dbristow (~dbristow@nylug/member/dbristow) has quit (Quit: Leaving) 2021-05-20 09:01:05 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 09:01:06 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 09:01:09 <-- omenius1337 (~omenius@2001:2003:f58c:a000:487b:303d:58f:ae74) has left #python ("Leaving") 2021-05-20 09:01:11 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-20 09:01:16 --> Freneticks (~Frenetick@gateway/tor-sasl/freneticks) has joined #python 2021-05-20 09:01:25 <-- plutoniix (~q@ppp-124-120-117-121.revip2.asianet.co.th) has quit (Quit: Leaving) 2021-05-20 09:01:41 <-- sebito91 (~sborza@fedora/sborza) has quit (Quit: laterz) 2021-05-20 09:01:44 --> a6a45081-2b83 (~aditya@122.163.149.247) has joined #python 2021-05-20 09:02:00 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 09:02:15 xioton Hey. How do i run python using the Atom IDE? 2021-05-20 09:02:25 --> dbristow (~dbristow@nylug/member/dbristow) has joined #python 2021-05-20 09:03:09 --> cantstanya (~chatting@gateway/tor-sasl/cantstanya) has joined #python 2021-05-20 09:03:27 <-- xioton (~xioton@41.114.51.111) has left #python 2021-05-20 09:04:47 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 09:04:51 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Ping timeout: 260 seconds) 2021-05-20 09:05:01 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 09:05:51 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-20 09:06:00 --> sebito91 (~sborza@fedora/sborza) has joined #python 2021-05-20 09:06:01 --> Haudegen (~quassel@91.114.49.10) has joined #python 2021-05-20 09:06:02 --> azidhaka (~azidhaka@gateway.videnov.bg) has joined #python 2021-05-20 09:06:06 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 09:07:18 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 09:07:18 --> NorthwestVegan (~Northwest@gateway/tor-sasl/northwestvegan) has joined #python 2021-05-20 09:07:45 <-- sebito91 (~sborza@fedora/sborza) has quit (Client Quit) 2021-05-20 09:08:10 --> sebito91 (~sborza@fedora/sborza) has joined #python 2021-05-20 09:08:17 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 260 seconds) 2021-05-20 09:08:21 <-- tomaw (tom@freenode/staff/tomaw) has quit (Changing host) 2021-05-20 09:08:21 --> tomaw (tom@unaffiliated/tomaw) has joined #python 2021-05-20 09:09:02 --> computeiro (~Wender@189.37.69.67) has joined #python 2021-05-20 09:09:59 azidhaka Hi everyone, does anyone have experience connecting to OpenAPI API service from python, i can't understand its concepts and especially how to use AppKey and AppSecret. A link to simple explanation/documentation is much appreciated 2021-05-20 09:10:06 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-20 09:10:41 <-- wender (~Wender@186.210.40.46) has quit (Ping timeout: 260 seconds) 2021-05-20 09:11:27 <-- contagious_meow (~contagiou@102.1.228.67) has quit (Read error: Connection reset by peer) 2021-05-20 09:11:39 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-20 09:11:52 --> contagious_meow (~contagiou@102.1.228.67) has joined #python 2021-05-20 09:12:06 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-20 09:12:52 --> Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has joined #python 2021-05-20 09:14:17 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-20 09:14:22 nedbat anyone with windows willing to try running the django-coverage-plugin test suite for me? it fails mysteriously on GitHub Actions, and I'm looking for data points. 2021-05-20 09:15:40 P1ckleRick azidhaka: Learning the basic concepts of an API will help you understand the basic concepts. AppKey and AppSecret are to do with authentication methods (there are other methods available, basic, json web tokens etc). 2021-05-20 09:16:13 --> aaii-z (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 09:16:26 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-20 09:16:46 azidhaka P1ckleRick: yes, i've worked with REST APIs and stuff, but this is different. A spec file is needed to load the API structure and looks very complicated 2021-05-20 09:17:32 <-- {HD} (s6d7XSaB@gateway/vpn/privateinternetaccess/hd/x-06969157) has quit (Ping timeout: 240 seconds) 2021-05-20 09:17:52 --> bitblit (~bitblit@gateway/tor-sasl/bitblit) has joined #python 2021-05-20 09:18:02 <-- bitblit (~bitblit@gateway/tor-sasl/bitblit) has quit (Remote host closed the connection) 2021-05-20 09:18:33 <-- Hackerpcs (~user@unaffiliated/hackerpcs) has quit (Quit: Hackerpcs) 2021-05-20 09:18:33 <-- aaii (~aaii@unaffiliated/aaii) has quit (Ping timeout: 260 seconds) 2021-05-20 09:19:17 --> bitblit (~bitblit@gateway/tor-sasl/bitblit) has joined #python 2021-05-20 09:20:01 --> Hackerpcs (~user@unaffiliated/hackerpcs) has joined #python 2021-05-20 09:20:06 --> zumba_addict (~zumba_add@c-73-36-2-212.hsd1.il.comcast.net) has joined #python 2021-05-20 09:21:19 <-- PacKetSlayer (PacketSlay@hellomouse/member/packetslayer) has quit (Quit: Woosh!) 2021-05-20 09:21:44 <-- dan2wik (dan2wik@gateway/shell/hellomouse/x-xdravncghwleljcc) has quit (Quit: quit has dan2wik!) 2021-05-20 09:21:46 P1ckleRick azidhaka: The OAS is just a simple representation of the API and endpoints. Are you trying to use this in conjuction with a webserver (say Flask?) 2021-05-20 09:21:49 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-20 09:22:56 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 260 seconds) 2021-05-20 09:23:19 <-- lauxley (~lauxley@2a01:e34:ec55:2700:d8a0:ee5:6aad:8394) has quit (Remote host closed the connection) 2021-05-20 09:23:32 --> lauxley (~lauxley@2a01:e34:ec55:2700:3056:d3c9:b687:42ef) has joined #python 2021-05-20 09:24:08 azidhaka P1ckleRick: i was given access to a API portal of a kind, named Artemis and inside i can see all the details of the API calls. I couldn't find how to export the OAS spec file from it for example 2021-05-20 09:24:21 --> joelmo (uid17355@gateway/web/irccloud.com/x-gbbuktwnfcmvvfqk) has joined #python 2021-05-20 09:24:41 <-- zumba_addict (~zumba_add@c-73-36-2-212.hsd1.il.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-20 09:24:54 --> fantis (~mantisfan@gateway/tor-sasl/mantisfan) has joined #python 2021-05-20 09:25:42 P1ckleRick azidhaka: What is your end goal? OpenAPI provides tools for easily creating spec files (OpenAPI Generator) 2021-05-20 09:25:59 azidhaka P1ckleRick: there is an Export function on the API list page, and it gives me an yaml file, but it looks like its incomplete, or, more likely i don't understand it: openapi3.errors.SpecError: Missing required fields: openapi, info, paths 2021-05-20 09:26:24 vimart I don't know how you guys but I need a coffee 2021-05-20 09:26:36 <-- ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has quit (Remote host closed the connection) 2021-05-20 09:26:39 azidhaka P1ckleRick: the end goal is to write a simple client for that API and automate some stuff 2021-05-20 09:26:45 <-- sesser (~sesser@107.13.245.224) has quit (Remote host closed the connection) 2021-05-20 09:26:45 P1ckleRick azidhaka: Can you provide an exert of the yaml file? 2021-05-20 09:26:57 <-- Suwacc (~Mija@103.192.80.188) has quit (Quit: Suwacc) 2021-05-20 09:27:11 --> leitz (~LeamHall@c-174-56-144-2.hsd1.sc.comcast.net) has joined #python 2021-05-20 09:27:18 --> ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has joined #python 2021-05-20 09:27:31 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-20 09:27:31 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 09:27:37 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-20 09:27:49 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-20 09:27:53 <-- zeden (~user@unaffiliated/zeden) has quit (Client Quit) 2021-05-20 09:28:00 azidhaka P1ckleRick: thats all of it: http://p.ip.fi/uZle 2021-05-20 09:29:19 <-- gelignite (~gelignite@55d456fd.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-20 09:29:39 azidhaka it is possible it's a different version of OpenAPI and i am trying to work with version 3 with it 2021-05-20 09:29:39 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-20 09:29:42 --> Dragon092 (~Dragon@business-24-134-108-65.pool2.vodafone-ip.de) has joined #python 2021-05-20 09:30:45 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 09:31:51 <-- zeden (~user@unaffiliated/zeden) has quit (Client Quit) 2021-05-20 09:32:02 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-20 09:32:18 <-- zeden (~user@unaffiliated/zeden) has quit (Client Quit) 2021-05-20 09:32:22 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-20 09:32:59 --> solomonix (~solomonix@cpe-76-181-142-134.columbus.res.rr.com) has joined #python 2021-05-20 09:32:59 --> hypc1 (~Thunderbi@113.233.198.245) has joined #python 2021-05-20 09:33:11 <-- hypc (~Thunderbi@175.164.26.80) has quit (Ping timeout: 240 seconds) 2021-05-20 09:33:12 -- hypc1 is now known as hypc 2021-05-20 09:33:22 <-- ogo (~ogo@gateway/tor-sasl/ogo) has quit (Remote host closed the connection) 2021-05-20 09:33:40 <-- rgr (~rgr@2a01:598:a127:5e09:d228:103b:7705:b85a) has quit (Quit: Leaving) 2021-05-20 09:33:46 --> ogo (~ogo@gateway/tor-sasl/ogo) has joined #python 2021-05-20 09:33:47 P1ckleRick azidhaka: That looks like swagger 3.3.1, which is compatible with OpenAPI 3 2021-05-20 09:34:34 <-- mbrndtgn (~marc@undecidable.de) has left #python ("The Lounge - https://thelounge.chat") 2021-05-20 09:34:36 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-20 09:34:56 --> PacKetSlayer (PacketSlay@hellomouse/member/packetslayer) has joined #python 2021-05-20 09:35:39 azidhaka P1ckleRick: am i doing this correctly, exporting the yaml from Artemis, which i guess is some kind of Swagger successor 2021-05-20 09:36:09 --> dan2wik (dan2wik@unaffiliated/dan2wik) has joined #python 2021-05-20 09:36:11 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 265 seconds) 2021-05-20 09:37:00 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-20 09:37:17 <-- zeden (~user@unaffiliated/zeden) has quit (Client Quit) 2021-05-20 09:39:13 <-- noosanon (~user@41.222.253.208) has quit (Read error: Connection reset by peer) 2021-05-20 09:39:26 --> Hariama (~Hariama@213.219.177.12.adsl.dyn.edpnet.net) has joined #python 2021-05-20 09:39:27 --> noosanon (~user@41.222.253.208) has joined #python 2021-05-20 09:39:37 <-- markb1 (~mbiggers@2603-6080-6009-9ec0-b86f-ed5e-b088-30a5.res6.spectrum.com) has quit (Quit: Leaving) 2021-05-20 09:40:10 <-- Hariama (~Hariama@213.219.177.12.adsl.dyn.edpnet.net) has quit (Client Quit) 2021-05-20 09:40:10 --> x7b (~ffe4@200116b82ce1da00cdee80be728170fb.dip.versatel-1u1.de) has joined #python 2021-05-20 09:40:13 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 09:40:14 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-20 09:40:29 P1ckleRick azidhaka: I'm looking but it looks like you might need to do this manually..... 2021-05-20 09:41:08 <-- phy1729 (~phy1729@zsh/wizard/phy1729) has left #python 2021-05-20 09:41:19 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-20 09:41:28 azidhaka P1ckleRick: the authentication method looks complicated, with headers like X-Ca-Key, X-Ca-Signature, X-Ca-Signature-Headers,which are barely explained 2021-05-20 09:42:06 <-- evil_gordita (robert@ip24-254-23-39.rn.hr.cox.net) has quit 2021-05-20 09:42:43 <-- ffe4 (~ffe4@200116b82ce1da0090ab50d7b676baa2.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-20 09:42:45 <-- zeden (~user@unaffiliated/zeden) has quit (Client Quit) 2021-05-20 09:43:03 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-20 09:43:14 P1ckleRick azidhaka: That's when your signing/auth with certificates 2021-05-20 09:43:14 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 09:43:23 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-20 09:43:36 --> gobby252 (~gobby252@178.239.173.200) has joined #python 2021-05-20 09:43:43 --> braincrash (~braincras@113-148-128-083.dynamic.caiway.nl) has joined #python 2021-05-20 09:43:55 --> {HD} (s6d7XSaB@gateway/vpn/privateinternetaccess/hd/x-06969157) has joined #python 2021-05-20 09:43:58 azidhaka P1ckleRick: this looks very similar: https://www.alibabacloud.com/help/doc-detail/29475.htm 2021-05-20 09:44:06 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 09:44:08 --> IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has joined #python 2021-05-20 09:44:08 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-20 09:45:41 azidhaka P1ckleRick: every information is in chinese btw :( 2021-05-20 09:45:48 --> Cherenkov (~Cherenkov@a109-49-131-251.cpe.netcabo.pt) has joined #python 2021-05-20 09:46:15 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 09:46:17 --> Tatenokai (~kneep@90.pool85-59-83.dynamic.orange.es) has joined #python 2021-05-20 09:47:00 <-- opsec (~opsec@opsec/opsec) has quit (Remote host closed the connection) 2021-05-20 09:47:20 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 09:47:40 <-- mkoskar (~mkoskar@unaffiliated/mkoskar) has left #python 2021-05-20 09:47:49 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 09:50:13 --> cthulchu (~Cthulchu@193.194.107.250) has joined #python 2021-05-20 09:50:58 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 09:51:09 <-- vimal (~vimal@2a02:a210:9600:ae80:a455:1222:6963:5ed1) has quit (Quit: Leaving) 2021-05-20 09:51:28 --> osxtra (~root@136.49.108.80) has joined #python 2021-05-20 09:51:32 <-- x7b (~ffe4@200116b82ce1da00cdee80be728170fb.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-20 09:52:23 <-- Hash (~Hash@unaffiliated/hash) has quit (Quit: WeeChat 3.1) 2021-05-20 09:52:28 --> x7b (~ffe4@200116b82ce1da00006419b205458493.dip.versatel-1u1.de) has joined #python 2021-05-20 09:53:02 --> Hash (~Hash@unaffiliated/hash) has joined #python 2021-05-20 09:53:37 --> markb1 (~mbiggers@2603-6080-6009-9ec0-1cbe-4c2a-0db5-6379.res6.spectrum.com) has joined #python 2021-05-20 09:54:26 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 246 seconds) 2021-05-20 09:55:22 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-20 09:55:55 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-20 09:55:57 --> TimeTrap_ (~TimeTrap@c-68-82-53-117.hsd1.pa.comcast.net) has joined #python 2021-05-20 09:56:10 -- Tatenokai is now known as pinomontano40 2021-05-20 09:56:13 --> m1cl (~m1cl@2a02:8109:b6c0:1b94::980e) has joined #python 2021-05-20 09:57:08 --> AskerX (1f397113@31.57.113.19) has joined #python 2021-05-20 09:57:20 -- drincruz_ is now known as drincruz 2021-05-20 09:57:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 09:58:37 --> pyeverything (~mona@c-66-31-107-137.hsd1.ma.comcast.net) has joined #python 2021-05-20 09:59:30 --> Fischerfredl (~Thunderbi@185.39.90.109) has joined #python 2021-05-20 09:59:48 <-- IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has quit (Quit: Connection closed) 2021-05-20 10:00:48 --> Zweimer (~Denic@ip-95-222-89-117.hsi15.unitymediagroup.de) has joined #python 2021-05-20 10:01:00 <-- solomonix (~solomonix@cpe-76-181-142-134.columbus.res.rr.com) has quit (Quit: Leaving) 2021-05-20 10:01:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 10:01:43 P1ckleRick azidhaka: Is this for Alibaba API or something different? 2021-05-20 10:02:25 <-- mad_moses (~mad_moses@2a02:810b:f3f:f0d0:d250:99ff:fe86:b052) has quit (Ping timeout: 250 seconds) 2021-05-20 10:02:47 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-20 10:03:22 <-- vbgunz_ (~vbgunz@35.141.71.47) has quit (Remote host closed the connection) 2021-05-20 10:03:30 Zweimer Hey. I am learning python right now and am struggling with the hist function of matplotlib. https://bpa.st/CYQA The histogram ist only one bar from 0-1 instead of two bars representing the amount of trues and falses. What is my mistake? 2021-05-20 10:04:06 <-- noosanon (~user@41.222.253.208) has quit (Remote host closed the connection) 2021-05-20 10:04:10 --> mad_moses (~mad_moses@2a02:810b:f3f:f0d0:d250:99ff:fe86:b052) has joined #python 2021-05-20 10:04:17 azidhaka P1ckleRick: another chinese product, Hikcentral. Found some python examples here: https://www.programmersought.com/article/95654239589/ 2021-05-20 10:04:21 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-20 10:04:32 --> noosanon (~user@41.222.253.208) has joined #python 2021-05-20 10:04:36 azidhaka P1ckleRick: weird auth method 2021-05-20 10:05:20 --> vbgunz (~vbgunz@35.141.71.47) has joined #python 2021-05-20 10:06:13 --> mawk (mawk@serveur.io) has joined #python 2021-05-20 10:06:14 <-- MarderIII (~MarderIII@2001:981:5b5b:1:4c37:134:afb3:6d3f) has quit (Ping timeout: 245 seconds) 2021-05-20 10:07:31 SnoopJ Zweimer, have a look at the documentation for hist(), `bins` acts a little weird when you pass a list, it must define at *least* the left edge of the first bin (0, here) and the right edge of the last one (1). So in this case you end up with one bin spanning [0, 1]. I'd pass `bins=2` instead probably and let matplotlib work out the details. 2021-05-20 10:08:22 <-- AskerX (1f397113@31.57.113.19) has quit (Quit: Connection closed) 2021-05-20 10:09:36 <-- Sadale (~Sadale@unaffiliated/sadale) has quit (Quit: tawa pona!) 2021-05-20 10:10:03 --> Sadale (~Sadale@unaffiliated/sadale) has joined #python 2021-05-20 10:10:09 Zweimer SnoopJ, I saw that that bins can also just be an integer, but bins = 2 results in an error for me. 2021-05-20 10:10:14 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-20 10:10:15 --> AskerX (1f397113@31.57.113.19) has joined #python 2021-05-20 10:10:40 P1ckleRick azidhaka: Indeed, although some details online 2021-05-20 10:11:20 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 268 seconds) 2021-05-20 10:11:21 azidhaka P1ckleRick: thanks for the help 2021-05-20 10:11:37 P1ckleRick x-ca-key: the AppKey, which is required. / x-ca-signature-method: the signature method, which is optional. Valid values: HmacSHA256 and HmacSHA1. Default value: HmacSHA256. / X-Ca-Signature-Headers: The keys of all signature headers. Separate multiple keys with commas (,). This parameter is optional. / X-Ca-Signature: the signature, which is required. 2021-05-20 10:11:46 SnoopJ Zweimer, what sort of error? 2021-05-20 10:11:50 SnoopJ https://bpaste.net/+python+pytb 2021-05-20 10:13:15 <-- enkrypt (~enkrypt@onosendai.root.sx) has quit (Quit: WeeChat 2.3) 2021-05-20 10:13:34 Zweimer SnoopJ, https://bpa.st/6ENA 2021-05-20 10:13:34 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-20 10:13:38 --> enkrypt (~enkrypt@onosendai.root.sx) has joined #python 2021-05-20 10:14:06 SnoopJ ah, it's upset about the boolean dtype 2021-05-20 10:14:07 --> DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has joined #python 2021-05-20 10:14:08 <-- Xatenev (~xatenev@2a02:8108:963f:9cb8:84f9:3696:2e95:1da) has left #python 2021-05-20 10:14:22 <-- pinomontano40 (~kneep@90.pool85-59-83.dynamic.orange.es) has quit (Quit: Leaving) 2021-05-20 10:14:24 <-- enkrypt (~enkrypt@onosendai.root.sx) has quit (Client Quit) 2021-05-20 10:14:39 Zweimer hmm, I guess it is easier working with 0 and 1 then? 2021-05-20 10:15:12 SnoopJ yea, I would probably just do that 2021-05-20 10:15:45 SnoopJ `manufactoring.astype(int)` should do it 2021-05-20 10:16:19 Zweimer right. Thanks. 2021-05-20 10:16:34 --> Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has joined #python 2021-05-20 10:17:00 --> enkrypt (~enkrypt@onosendai.root.sx) has joined #python 2021-05-20 10:17:11 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-20 10:17:24 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-20 10:18:47 Numero-6 How can i send a data in a html page, and show by server http python3 ? 2021-05-20 10:19:30 --> split_horizon (~split_hor@65.100.74.75) has joined #python 2021-05-20 10:20:10 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 265 seconds) 2021-05-20 10:20:17 <-- x7b (~ffe4@200116b82ce1da00006419b205458493.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-20 10:20:17 <-- tomaw (tom@unaffiliated/tomaw) has quit (Quit: Quitting) 2021-05-20 10:20:19 P1ckleRick azidhaka: Not much help :) It looks like the signature is constructed from 7 parts (the last link you provided shows how these are constructed - If that matches). 2021-05-20 10:21:11 <-- split_horizon (~split_hor@65.100.74.75) has left #python 2021-05-20 10:21:12 azidhaka P1ckleRick: yep, managed to make some requests already using the last link 2021-05-20 10:21:22 <-- enkrypt (~enkrypt@onosendai.root.sx) has quit (Client Quit) 2021-05-20 10:21:32 --> enkrypt (~enkrypt@onosendai.root.sx) has joined #python 2021-05-20 10:21:44 <-- brickfat_ (~brickfat@unaffiliated/brickfat) has quit (Quit: Leaving) 2021-05-20 10:21:47 P1ckleRick azidhaka: :) 2021-05-20 10:21:52 <-- shantanoo (~shantanoo@p3m/member/shantanoo) has quit 2021-05-20 10:22:26 <-- Major_Biscuit (~Major_Bis@x065156.citg-m.tudelft.nl) has quit (Ping timeout: 260 seconds) 2021-05-20 10:22:29 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-20 10:22:55 azidhaka P1ckleRick: i guess this auth stuff is designed to provide some security when communication in plain text 2021-05-20 10:23:01 --> w0x12ef (~w0x12ef@60.10.194.43) has joined #python 2021-05-20 10:23:24 <-- auri_ (~admin@fsf/memeber/auri-) has quit (Quit: auri_) 2021-05-20 10:23:26 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-20 10:23:33 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 265 seconds) 2021-05-20 10:23:50 --> ram19890 (~ram@49.205.84.211) has joined #python 2021-05-20 10:24:10 --> auri_ (~admin@fsf/memeber/auri-) has joined #python 2021-05-20 10:24:10 <-- auri_ (~admin@fsf/memeber/auri-) has quit (Client Quit) 2021-05-20 10:24:27 --> x7b (~ffe4@200116b82ce1da00006419b205458493.dip.versatel-1u1.de) has joined #python 2021-05-20 10:24:34 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Ping timeout: 245 seconds) 2021-05-20 10:24:34 w0x12ef what is the accurate meaning of pentesting 2021-05-20 10:24:53 <-- Adbray (~Adbray@2600:6c48:6f7f:d764:f3a1:546c:a9ba:3042) has quit (Quit: Ah! By Brain!) 2021-05-20 10:25:01 --> auri_ (~admin@fsf/memeber/auri-) has joined #python 2021-05-20 10:25:02 P1ckleRick azidhaka: That's what it looks like, the server side will more than likely use these headers to validate the request. Adding complexity etc, if the timestamp matches, the request matches the signature etc. 2021-05-20 10:25:10 P1ckleRick w0x12ef: ask my wife :P 2021-05-20 10:25:58 amo P1ckleRick, why, is she a hacker? :p 2021-05-20 10:26:03 --> gr33n7001 (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-20 10:26:04 amo don't answer that. 2021-05-20 10:26:26 amo w0x12ef, https://en.wikipedia.org/wiki/Penetration_test 2021-05-20 10:26:36 <-- greatgatsby (~greatgats@bras-base-toroon0411w-grc-52-142-114-106-27.dsl.bell.ca) has quit (Quit: Leaving) 2021-05-20 10:26:51 --> LuxuryMode (uid91005@gateway/web/irccloud.com/x-hoahxennvylblszy) has joined #python 2021-05-20 10:27:20 --> Nact (~l@host-85-27-127-107.dynamic.voo.be) has joined #python 2021-05-20 10:27:26 w0x12ef amo, is pentest sniff the network proto? 2021-05-20 10:27:41 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 10:28:06 <-- enkrypt (~enkrypt@onosendai.root.sx) has quit (Quit: WeeChat 2.8) 2021-05-20 10:28:10 amo w0x12ef, did you read the page? 2021-05-20 10:28:16 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 260 seconds) 2021-05-20 10:28:30 <-- philh (~philh@46.33.72.18) has quit (Remote host closed the connection) 2021-05-20 10:29:43 <-- Jerrynicki (~niklas@p200300f577050e00cc2c223ec82204cf.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-20 10:29:43 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Read error: Connection reset by peer) 2021-05-20 10:30:29 <-- NorthwestVegan (~Northwest@gateway/tor-sasl/northwestvegan) has quit (Remote host closed the connection) 2021-05-20 10:30:39 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-20 10:30:46 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-20 10:30:52 --> tomg (tomg@64-7-151-80.border7-dynamic.dsl.sentex.ca) has joined #python 2021-05-20 10:30:54 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-20 10:30:58 --> enkrypt (~enkrypt@onosendai.root.sx) has joined #python 2021-05-20 10:31:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 10:31:32 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Read error: Connection reset by peer) 2021-05-20 10:31:44 <-- enkrypt (~enkrypt@onosendai.root.sx) has quit (Client Quit) 2021-05-20 10:31:46 <-- GermainZ (~GermainZ@unaffiliated/germainz) has left #python ("WeeChat 3.1") 2021-05-20 10:32:13 <-- schangg (5c9a63da@lputeaux-656-1-124-218.w92-154.abo.wanadoo.fr) has quit (Quit: Connection closed) 2021-05-20 10:32:13 P1ckleRick w0x12ef: sensible answer, Penetration Testing - In a nutshell it's testing your code/application for penetration (attacks that provide undesired access). This can be applied to all walks of life, you could in theory pentest your home! 2021-05-20 10:32:15 --> enkrypt (~enkrypt@onosendai.root.sx) has joined #python 2021-05-20 10:32:19 <-- random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Ping timeout: 250 seconds) 2021-05-20 10:32:36 <-- enkrypt (~enkrypt@onosendai.root.sx) has quit (Client Quit) 2021-05-20 10:32:55 --> enkrypt (~enkrypt@onosendai.root.sx) has joined #python 2021-05-20 10:33:02 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-20 10:33:42 <-- AskerX (1f397113@31.57.113.19) has quit (Ping timeout: 240 seconds) 2021-05-20 10:34:06 <-- w0x12ef (~w0x12ef@60.10.194.43) has quit (Ping timeout: 260 seconds) 2021-05-20 10:35:31 --> jlf (~user@pdpc/supporter/active/jlf) has joined #python 2021-05-20 10:36:18 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-20 10:36:21 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-20 10:37:29 --> NorthwestVegan (~Northwest@gateway/tor-sasl/northwestvegan) has joined #python 2021-05-20 10:37:40 --> contingo (~textual@213.205.200.36) has joined #python 2021-05-20 10:37:50 <-- b0tanik (~b0tanik@188.163.73.73) has quit (Ping timeout: 246 seconds) 2021-05-20 10:38:13 <-- kanupatar (7444491b@116.68.73.27) has quit (Quit: Connection closed) 2021-05-20 10:39:13 --> random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-20 10:41:48 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 10:42:05 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-20 10:42:54 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-20 10:45:10 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-20 10:45:21 <-- barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has quit (Quit: barph) 2021-05-20 10:45:30 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-20 10:45:38 <-- enkrypt (~enkrypt@onosendai.root.sx) has quit (Quit: WeeChat 2.8) 2021-05-20 10:45:58 --> enkrypt (~enkrypt@onosendai.root.sx) has joined #python 2021-05-20 10:46:30 <-- a6a45081-2b83 (~aditya@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 10:46:35 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-20 10:46:37 --> purplex88_ (~purplex@unaffiliated/purplex88) has joined #python 2021-05-20 10:46:54 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 10:47:02 <-- nicksloan (sid195124@gateway/web/irccloud.com/x-poevvwfigeqqqlak) has quit 2021-05-20 10:47:42 <-- enkrypt (~enkrypt@onosendai.root.sx) has quit (Client Quit) 2021-05-20 10:47:56 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-20 10:48:26 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 240 seconds) 2021-05-20 10:48:41 <-- noosanon (~user@41.222.253.208) has quit (Ping timeout: 265 seconds) 2021-05-20 10:48:50 --> GravitaZ (uid7509@gateway/web/irccloud.com/x-ifajgfkoydyznxnx) has joined #python 2021-05-20 10:48:52 --> IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has joined #python 2021-05-20 10:48:57 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 10:49:34 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Ping timeout: 268 seconds) 2021-05-20 10:49:41 -- purplex88_ is now known as purplex 2021-05-20 10:49:42 <-- squirrel (~mj@unaffiliated/squirrel) has quit (Ping timeout: 252 seconds) 2021-05-20 10:49:53 --> Major_Biscuit (~Major_Bis@82-169-100-198.biz.kpn.net) has joined #python 2021-05-20 10:50:03 --> Jerrynicki (~niklas@p200300f577050e00e5e43f2590742089.dip0.t-ipconnect.de) has joined #python 2021-05-20 10:50:23 <-- cd (~cd@unaffiliated/cd) has quit (Quit: cd) 2021-05-20 10:50:26 IoannisJVM Hi i have a machine-learning model with 3 modules,i need to create an API with one of them,but i can't import some functions from one of them 2021-05-20 10:50:31 IoannisJVM if i do tree 2021-05-20 10:50:35 <-- PacKetSlayer (PacketSlay@hellomouse/member/packetslayer) has quit (Quit: Woosh!) 2021-05-20 10:50:40 <-- dan2wik (dan2wik@unaffiliated/dan2wik) has quit (Quit: quit has dan2wik!) 2021-05-20 10:50:47 IoannisJVM i can see only my py files 2021-05-20 10:50:54 IoannisJVM the models are in jupyter 2021-05-20 10:51:49 --> tete_ (~John@2a02:168:859e::c60) has joined #python 2021-05-20 10:52:35 --> enkrypt (~enkrypt@130.255.78.203) has joined #python 2021-05-20 10:53:51 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-20 10:54:07 <-- cd (~cd@unaffiliated/cd) has quit (Client Quit) 2021-05-20 10:54:13 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 10:54:29 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 265 seconds) 2021-05-20 10:54:58 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 265 seconds) 2021-05-20 10:55:17 <-- m1cl (~m1cl@2a02:8109:b6c0:1b94::980e) has quit (Ping timeout: 250 seconds) 2021-05-20 10:56:20 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-20 10:56:55 --> squirrel (~mj@unaffiliated/squirrel) has joined #python 2021-05-20 10:57:31 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 10:57:50 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-orkujsvtgjqtfkcp) has joined #python 2021-05-20 10:57:56 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-20 10:58:06 --> cthu| (~cthulchu@193.194.107.250) has joined #python 2021-05-20 10:58:31 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-20 10:59:33 --> argento (~argent0@168.227.96.51) has joined #python 2021-05-20 11:00:23 --> MarderIII (~MarderIII@2001:981:5b5b:1:4c37:134:afb3:6d3f) has joined #python 2021-05-20 11:00:30 <-- shimonabi (~shimonabi@84-255-204-183.static.t-2.net) has quit (Remote host closed the connection) 2021-05-20 11:00:45 <-- ogo (~ogo@gateway/tor-sasl/ogo) has quit (Ping timeout: 240 seconds) 2021-05-20 11:00:47 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 11:01:04 <-- pyeverything (~mona@c-66-31-107-137.hsd1.ma.comcast.net) has quit (Quit: Leaving.) 2021-05-20 11:01:57 --> lshatzer (~larrys@c-76-27-112-76.hsd1.ut.comcast.net) has joined #python 2021-05-20 11:02:01 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-20 11:02:18 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 11:02:37 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-20 11:02:58 -- seds is now known as benmezger 2021-05-20 11:03:09 -- benmezger is now known as seds 2021-05-20 11:03:29 <-- lshatzer (~larrys@c-76-27-112-76.hsd1.ut.comcast.net) has left #python 2021-05-20 11:03:40 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Remote host closed the connection) 2021-05-20 11:03:44 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 246 seconds) 2021-05-20 11:04:04 <-- DnzAtWrk (~DnzAtWrk@mobile-access-6df007-233.dhcp.inet.fi) has quit (Read error: Connection reset by peer) 2021-05-20 11:04:34 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 11:04:41 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-20 11:05:14 --> PacKetSlayer (PacketSlay@hellomouse/member/packetslayer) has joined #python 2021-05-20 11:05:50 --> dan2wik (dan2wik@gateway/shell/hellomouse/x-wcrpuiomdfhcgxng) has joined #python 2021-05-20 11:05:57 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-20 11:06:00 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-20 11:07:05 --> nomic (~nomic@2a00:23c6:9910:1201:9989:34aa:b96c:78fd) has joined #python 2021-05-20 11:07:35 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-20 11:07:52 <-- gr33n7001 (~gr33n7007@unaffiliated/gr33n7007h) has quit (Quit: WeeChat 3.1) 2021-05-20 11:09:28 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Ping timeout: 265 seconds) 2021-05-20 11:09:41 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 246 seconds) 2021-05-20 11:10:27 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 11:13:09 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-20 11:13:21 <-- Major_Biscuit (~Major_Bis@82-169-100-198.biz.kpn.net) has quit (Ping timeout: 260 seconds) 2021-05-20 11:13:48 --> ogo (~ogo@gateway/tor-sasl/ogo) has joined #python 2021-05-20 11:15:09 --> Major_Biscuit (~Major_Bis@x065156.citg-m.tudelft.nl) has joined #python 2021-05-20 11:15:24 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-20 11:16:20 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::980e) has joined #python 2021-05-20 11:16:20 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-20 11:16:23 --> schangg (5c9a63da@lputeaux-656-1-124-218.w92-154.abo.wanadoo.fr) has joined #python 2021-05-20 11:17:06 <-- argento (~argent0@168.227.96.51) has quit (Ping timeout: 240 seconds) 2021-05-20 11:17:42 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-20 11:17:49 <-- cd (~cd@unaffiliated/cd) has quit (Client Quit) 2021-05-20 11:18:42 <-- akoana (~ah@unaffiliated/akoana) has left #python ("Leaving") 2021-05-20 11:18:57 --> fnstudio (~test@159.65.94.136) has joined #python 2021-05-20 11:19:23 tete_ hi, i have a small python project which i should do for a university project. we should generate a model, train it and then classify some images. so i used some APIs to get about 1000 pictures of birds and about 500 pictures about tigers. i created a model and trained it but somehow it does not what i would expect - the predictions are nearly all the time wrong. https://paste.debian.net/1198245/ anyone an idea what is wrong? i am wondering if its the 2021-05-20 11:19:23 tete_ dataset i use or if its the model 2021-05-20 11:19:28 <-- fnstudio (~test@159.65.94.136) has quit (Remote host closed the connection) 2021-05-20 11:19:34 tete_ also wondering how i could debug that what goes wrong now 2021-05-20 11:19:37 --> kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has joined #python 2021-05-20 11:19:55 --> fnstudio (~test@159.65.94.136) has joined #python 2021-05-20 11:20:17 --> teut (7aa2bd21@unaffiliated/teut) has joined #python 2021-05-20 11:21:44 --> panikovsky (~panikovsk@31.23.163.216) has joined #python 2021-05-20 11:22:29 <-- kosh (~kosh@p200300d08f11af00c0adde103b236462.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-20 11:22:32 --> plutoniix (~q@node-uhj.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-20 11:22:33 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-20 11:22:57 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-20 11:23:56 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-20 11:24:46 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-20 11:25:13 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-20 11:25:14 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 11:25:24 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-20 11:25:35 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 11:26:22 SnoopJ tete_, it could be both, or neither. How did you decide to use 5 training epochs? 2021-05-20 11:26:23 <-- Ergo (~ergo@185.55.8.59.c.fiberdirekt.net) has quit (Ping timeout: 265 seconds) 2021-05-20 11:26:33 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-20 11:26:41 tete_ SnoopJ, i was guessing ;) 2021-05-20 11:27:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 11:27:37 tete_ it showed me the accuracy of train and validation data and the more epoch the more accuracy, but it was quiet too high, like 95+ % 2021-05-20 11:27:49 tete_ so we went for 5, where it was about 80% 2021-05-20 11:28:16 SnoopJ okay, so you were at least looking at the losses on train/val when choosing it, that's good. 2021-05-20 11:28:23 <-- Ecophobia (~Ecophobia@mobile-access-bcee3d-235.dhcp.inet.fi) has quit (Quit: WeeChat 2.8) 2021-05-20 11:28:40 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-20 11:29:06 tete_ yes but not sure if my (our) decision was good - we are a small group of 3 and only i have some programming experience, but never had to deal with machine learning 2021-05-20 11:29:16 SnoopJ tete_, how close to your training/val data are your test data? Maybe the infer-time data just doesn't look much like the dataset? This network doesn't have a ton of structure, it won't be able to learn very sophisticated features (not that there's enough data to do that anyway) 2021-05-20 11:29:26 --> onizu (uid373383@gateway/web/irccloud.com/x-ezeremzfqweitojr) has joined #python 2021-05-20 11:29:36 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-20 11:30:15 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 265 seconds) 2021-05-20 11:30:50 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 11:31:06 <-- legola (~legola@unaffiliated/legola) has quit (Remote host closed the connection) 2021-05-20 11:31:11 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 11:31:13 <-- fnstudio (~test@159.65.94.136) has quit (Quit: leaving) 2021-05-20 11:31:30 --> mexen (uid495612@gateway/web/irccloud.com/x-hehjdlruknpvccnl) has joined #python 2021-05-20 11:32:02 --> jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has joined #python 2021-05-20 11:32:11 --> LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has joined #python 2021-05-20 11:32:35 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 11:32:36 tete_ SnoopJ, https://imgur.com/a/T3qgct5 thats how it looks now 2021-05-20 11:33:37 --> fnstudio (~test@159.65.94.136) has joined #python 2021-05-20 11:33:45 <-- Nact (~l@host-85-27-127-107.dynamic.voo.be) has quit (Quit: Konversation terminated!) 2021-05-20 11:34:08 --> Nact (~l@host-85-27-127-107.dynamic.voo.be) has joined #python 2021-05-20 11:35:12 SnoopJ hmm, well if it's on a plateau there's certainly no reason to train more 2021-05-20 11:35:12 <-- IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has quit (Quit: Connection closed) 2021-05-20 11:35:43 teut how is that validation loss so consistent? 2021-05-20 11:36:13 teut are you testing on the same data sample? 2021-05-20 11:36:58 tete_ https://imgur.com/a/dJOGcbE those are the birds, and those are the tigers: https://imgur.com/iBunqza 2021-05-20 11:37:53 --> w0x12ef (~w0x12ef@60.10.194.43) has joined #python 2021-05-20 11:37:56 teut are you using a cnn? 2021-05-20 11:38:10 --> kanupatar (7444491b@116.68.73.27) has joined #python 2021-05-20 11:39:04 tete_ teut, not sure what you mean, i am new to that. i created that code: https://paste.debian.net/1198245/ - i could imagine that it has problems with the training data and validation data when i take them from the same directory 2021-05-20 11:39:12 tete_ line 20 and 12, maybe thats the problem? 2021-05-20 11:39:17 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:e1a1:7fe0:5b74:28ba) has joined #python 2021-05-20 11:39:36 teut yes you are using one 2021-05-20 11:39:40 SnoopJ tete_, can you answer my question about the inference-time data? How similar are the images that are "nearly all the time wrong" to the training dataset? 2021-05-20 11:40:38 --> Ergo (~ergo@91.238.59.144) has joined #python 2021-05-20 11:40:46 tete_ SnoopJ, i dont know what inference-time data is. https://www.wwf.at/files/images/84/461f5296ad353_d.jpg - i have some that look pretty much the same 2021-05-20 11:41:19 <-- enoq (~textual@194-208-146-143.lampert.tv) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-20 11:42:20 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 265 seconds) 2021-05-20 11:42:35 <-- Fischerfredl (~Thunderbi@185.39.90.109) has quit (Quit: Fischerfredl) 2021-05-20 11:43:46 teut My recommendation would be to use a base model 2021-05-20 11:43:47 SnoopJ tete_, okay, let's back up a step. To what images are you referring when you say "nearly all the time wrong." ~60% on the validation set is definitely not consistent with this. It's not good performance, either, but it's not "nearly all the time wrong." 2021-05-20 11:43:51 <-- x7b (~ffe4@200116b82ce1da00006419b205458493.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-20 11:44:13 teut ok SnoopJ 's point  stands above now 2021-05-20 11:44:18 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-20 11:44:22 --> Lando-HoloNet (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-20 11:44:34 --> coldenbrewed (nitrobrew@2a01:7e00::f03c:92ff:fe53:e963) has joined #python 2021-05-20 11:44:34 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-20 11:45:19 tete_ SnoopJ, i have only 1 picture i use for validation for myself to see if it works or not. thats the one from the link https://www.wwf.at/files/images/84/461f5296ad353_d.jpg - or is it wrong to rely only on this one image ? 2021-05-20 11:45:43 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-20 11:45:50 tete_ i just let it run and... This image most likely belongs to bird with a 98.41 percent confidence. - thats a badass bird ;D 2021-05-20 11:45:58 teut lol 1 pic for validation 2021-05-20 11:46:04 <-- aaii-z (~aaii@unaffiliated/aaii) has quit (Remote host closed the connection) 2021-05-20 11:46:17 --> mangold (~mangold@198.98.183.40) has joined #python 2021-05-20 11:46:25 --> aaii-z (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 11:46:28 SnoopJ tete_, sorry, I'm not really understanding... 2021-05-20 11:46:58 SnoopJ You're looking at only one image to decide if the network is "nearly all the time wrong?" 2021-05-20 11:47:06 <-- LiftLeft (googolplex@gateway/vpn/privateinternetaccess/googolplexking) has quit (Ping timeout: 240 seconds) 2021-05-20 11:47:21 teut I m a noob coder , but I think you should try some examples given on tensorflow's website 2021-05-20 11:47:41 teut so you may/may not listen to  me 2021-05-20 11:47:41 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 11:47:59 tete_ teut, many parts are from the tensorflow website 2021-05-20 11:48:01 SnoopJ teut, this architecture looks close enough to examples that you might find in a tutorial 2021-05-20 11:48:11 SnoopJ There's only so many ways to make a tiny convnet :) 2021-05-20 11:48:21 tete_ i thought it would recognize the tiger as tiger more likely 2021-05-20 11:48:21 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 260 seconds) 2021-05-20 11:48:27 <-- Haudegen (~quassel@91.114.49.10) has quit (Quit: Bin weg.) 2021-05-20 11:48:33 teut I think they should use transfer learning 2021-05-20 11:48:41 teut with that results are pretty good 2021-05-20 11:48:45 --> kosh (~kosh@p200300d08f11af00c0adde103b236462.dip0.t-ipconnect.de) has joined #python 2021-05-20 11:48:46 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-20 11:48:49 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 11:49:32 --> tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has joined #python 2021-05-20 11:49:34 tete_ the goal is to have about 10 or 20 classes of images but thats just a small part of the whole task - we should later also versioning the model etc. - but i thought to have a fast walking skeleton, i create only 2 classes 2021-05-20 11:49:39 --> x7b (~ffe4@200116b82ce1da00006419b205458493.dip.versatel-1u1.de) has joined #python 2021-05-20 11:49:46 <-- fnstudio (~test@159.65.94.136) has quit (Quit: leaving) 2021-05-20 11:49:55 tete_ and now i stopped with the next steps because i was too afraid because the model performed bad - but i'll try now some more pictures of tigers and birds and see what happens 2021-05-20 11:50:14 SnoopJ tete_, can you answer my question please? 2021-05-20 11:50:45 teut model = tf.keras.Sequential(    this is the  heart of the code and it literally sucks 2021-05-20 11:50:51 --> fnstudio (~test@159.65.94.136) has joined #python 2021-05-20 11:50:59 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-20 11:51:40 teut the birds are of so many categories , it's too much tough to feed all features within these few matrices 2021-05-20 11:51:51 tete_ SnoopJ, yes, i watched only 1 image to see how well it recognizes that as tiger 2021-05-20 11:52:14 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-20 11:52:25 tete_ https://github.com/damnms/adsprojekt just uploaded everything if someone wants to take a closer look. teut thats what i thought too, there is too much information/dimensions of the images maybe 2021-05-20 11:52:26 teut even if you have 0 validation data , there is no problem in manual tuning 2021-05-20 11:52:34 teut of hyperparameters 2021-05-20 11:52:52 --> burakcank (~burakcank@159.146.41.74) has joined #python 2021-05-20 11:53:21 <-- Death916 (UserNick@unaffiliated/death916) has quit (Read error: Connection reset by peer) 2021-05-20 11:53:28 SnoopJ tete_, okay. That's a slightly strange way to evaluate a network's performance (compared to looking at performance over many images, the "test" part of a train/val/test split). Is this tiger image from your dataset, or is it separate? 2021-05-20 11:53:28 tete_ the images are here: https://github.com/damnms/adsprojekt/tree/master/pixabay - for the poc we just used that directory 2021-05-20 11:53:37 <-- stigz (sid371747@gateway/web/irccloud.com/x-gyypohdowhslaahr) has quit 2021-05-20 11:53:47 teut did you try with black and white images? 2021-05-20 11:53:47 tete_ SnoopJ, its separate - i googled for "tiger" and took one of the first hits 2021-05-20 11:53:53 tete_ teut, no 2021-05-20 11:54:18 <-- fnstudio (~test@159.65.94.136) has quit (Client Quit) 2021-05-20 11:54:21 tete_ we thought we go with data augmentation later and do some black/white images of our existing images 2021-05-20 11:54:22 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-20 11:54:35 teut why not, afaik , what's happenening is in the first step all your R, G, B  matrices get element wise summation 2021-05-20 11:54:46 --> fnstudio (~test@159.65.94.136) has joined #python 2021-05-20 11:55:08 teut so you might have not much features 2021-05-20 11:55:36 SnoopJ tete_, okay, my best guess is that this datum "doesn't look like" your dataset. Strongest suspect there would be the color balance: this image has very imbalanced color, and maybe your net is paying more attention to its color than its structure. 2021-05-20 11:55:51 --> thoros (~thoros@193-154-185-59.adsl.highway.telekom.at) has joined #python 2021-05-20 11:55:53 teut I agree with SnoopJ 2021-05-20 11:55:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 246 seconds) 2021-05-20 11:55:54 <-- fnstudio (~test@159.65.94.136) has quit (Client Quit) 2021-05-20 11:56:06 teut you should first try with black white images 2021-05-20 11:56:10 tete_ ok 2021-05-20 11:56:27 --> fnstudio (~test@159.65.94.136) has joined #python 2021-05-20 11:56:28 teut or infact start with reading on transfer learning 2021-05-20 11:56:32 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-20 11:56:40 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-20 11:56:43 teut choose the InceptionV3 Resnet as base model 2021-05-20 11:56:47 tete_ transfer learning is using an already existing model right? 2021-05-20 11:56:49 tete_ and then tune that 2021-05-20 11:56:50 SnoopJ tete_, however, I just looked at your tiger data and some of them have pretty weird artifacts, like this one: https://github.com/damnms/adsprojekt/blob/master/pixabay/tiger/442resized_gee4ae8409afecafbcc931d4620e3250000e55d48f1d56f2621ff7529be83603cc749a8814a5b65500978872d8e37f018_640.jpg 2021-05-20 11:57:02 teut yes thats right so you know about it 2021-05-20 11:57:10 SnoopJ And at least one of them doesn't even have a tiger in it: https://github.com/damnms/adsprojekt/blob/master/pixabay/tiger/330resized_gc3c0bf4fb6426b509429683ea4572b0f7efeb0d9bb92061a63de536c2db660da0027389d477a73d920ad71da6a64d257_640.jpg 2021-05-20 11:57:20 teut tensorflow is already loaded with many pretrained models 2021-05-20 11:57:27 tete_ teut, in theory, yes, thats why we had this course ;) 2021-05-20 11:57:27 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 11:57:38 SnoopJ I don't agree about starting with black/white or transfer learning, FWIW. 2021-05-20 11:57:57 SnoopJ the latter is unnecessarily complex for this task, the former is just throwing away data 2021-05-20 11:58:07 tete_ so maybe i should clean the data first ? 2021-05-20 11:58:18 tete_ tbh i did not check it, i thought that api will give me "ok" results ... 2021-05-20 11:58:28 teut yes in theory it does, since the pretrained models, the one on CoCo   dataset covers a lot of features of the objects which we see around us 2021-05-20 11:58:48 teut so it's better than random initialization 2021-05-20 11:59:00 SnoopJ tete_, if it were me, I would probably load that test image into an image editor and adjust the color balance to something less "artistic" (most editors have a feature that can do this pretty well automatically), and see what your network thinks of that modified datum. 2021-05-20 11:59:11 <-- Death916 (UserNick@unaffiliated/death916) has quit (Client Quit) 2021-05-20 11:59:20 teut tensorflow has those corrections 2021-05-20 11:59:30 <-- fnstudio (~test@159.65.94.136) has quit (Client Quit) 2021-05-20 11:59:38 teut and try the  Hue Sat Value  color setting 2021-05-20 11:59:40 SnoopJ yes, it can be done as a preprocessing step if need be, but there's no point talking about architectural changes before you understand what you want to change 2021-05-20 11:59:54 teut people say that color model is easier to train 2021-05-20 11:59:57 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Ping timeout: 240 seconds) 2021-05-20 12:00:02 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Quit: WeeChat 3.0.1) 2021-05-20 12:00:05 <-- mcope (~mcope@88.98.90.199) has quit (Quit: Konversation terminated!) 2021-05-20 12:00:08 SnoopJ It's hard enough when you know *exactly* what changes you want to make; if you go into it without understanding a failure, you're just guessing and the odds of a correct guess are dreadful. 2021-05-20 12:00:17 <-- Jerrynicki (~niklas@p200300f577050e00e5e43f2590742089.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-20 12:00:18 --> fnstudio (~test@159.65.94.136) has joined #python 2021-05-20 12:00:26 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Ping timeout: 246 seconds) 2021-05-20 12:00:26 <-- R0b0t1 (~R0b0t1@unaffiliated/r0b0t1) has quit (Ping timeout: 246 seconds) 2021-05-20 12:00:41 SnoopJ But yes, color is a *really* tricky thing to get right and is my top suspect here since most of the training data have more balanced colors 2021-05-20 12:00:52 --> ramsub07 (c137b06f@gateway/web/cgi-irc/kiwiirc.com/ip.193.55.176.111) has joined #python 2021-05-20 12:00:59 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-20 12:01:03 ramsub07 Hello I'm trying to install bpy but I face this error: https://dpaste.com/96BLMPBHC can someone please help? 2021-05-20 12:01:10 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 12:01:15 ramsub07 the bpy i refer to : https://pypi.org/project/bpy/ 2021-05-20 12:01:28 --> LiftLeft (~googolple@216-26-118-34.dynamic.nelson.airstreamcomm.net) has joined #python 2021-05-20 12:01:30 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-20 12:01:35 SnoopJ i.e. this image is heavy on red, so maybe the net has learned that red-heavy images are birds more often than they are tigers, or a similar rule 2021-05-20 12:01:36 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-20 12:02:24 teut black and white images should do good 2021-05-20 12:02:33 * SnoopJ doesn't agree 2021-05-20 12:02:46 teut why not? 2021-05-20 12:02:58 teut I mean for a start 2021-05-20 12:03:00 SnoopJ teut, for starters, there is more than one way to turn that training data into "black and white" and the differences between the ways can have similar effects. 2021-05-20 12:03:13 SnoopJ But more importantly: discarding color information is discarding information. 2021-05-20 12:03:26 --> pun84 (~pun84@pool-108-24-127-194.cmdnnj.fios.verizon.net) has joined #python 2021-05-20 12:03:35 teut i know but birds and tigers have differnt shapes 2021-05-20 12:03:36 SnoopJ If you're going to decide what features are/are not important, you might as well not use a convnet, the whole point of them is that *they* decide the features. 2021-05-20 12:03:51 <-- contagious_meow (~contagiou@102.1.228.67) has quit (Read error: Connection reset by peer) 2021-05-20 12:03:56 SnoopJ teut, there are other ways to solve the problem that don't throw useful data out (like normalization during preprocessing, color augmentation, and so on) 2021-05-20 12:04:03 --> R0b0t1 (~R0b0t1@unaffiliated/r0b0t1) has joined #python 2021-05-20 12:04:12 <-- dviola (~diego@unaffiliated/dviola) has left #python ("WeeChat 3.1") 2021-05-20 12:04:17 --> pyeverything (~mona@c-66-31-107-137.hsd1.ma.comcast.net) has joined #python 2021-05-20 12:04:26 teut ok, but don't you think for a start ignoring colours would be helpful? 2021-05-20 12:04:32 <-- GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has quit (Ping timeout: 240 seconds) 2021-05-20 12:04:39 SnoopJ for the third time, no 2021-05-20 12:04:40 --> Death916 (UserNick@unaffiliated/death916) has joined #python 2021-05-20 12:04:42 Numero-6 i have make an web server python, that open an html page with a case for put text. How can i take the text and show in server ? 2021-05-20 12:04:44 teut they can just feed the output to another model then 2021-05-20 12:05:08 teut the first model takes decisions based on shape 2021-05-20 12:05:20 teut the second one on the colors 2021-05-20 12:05:31 teut the output is the combined ine 2021-05-20 12:05:34 teut one* 2021-05-20 12:05:44 <-- fnstudio (~test@159.65.94.136) has left #python 2021-05-20 12:06:02 SnoopJ again, if you're going to go to all that trouble, why not just make a non-convnet inference engine 2021-05-20 12:06:16 <-- LiftLeft (~googolple@216-26-118-34.dynamic.nelson.airstreamcomm.net) has quit (Ping timeout: 260 seconds) 2021-05-20 12:06:24 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-20 12:06:31 SnoopJ once you get in there and start making this kind of decision about features without really strong reasons for doing so, you're gambling 2021-05-20 12:06:41 tete_ hm 2021-05-20 12:06:43 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-20 12:06:49 <-- bomb-on (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-20 12:07:24 teut deep learning is all about that 2021-05-20 12:07:38 teut people say approximate everything by a gaussian 2021-05-20 12:07:43 teut wothout any reason 2021-05-20 12:07:46 tete_ the exercise from the prof is: using a ml framework/library (tensorflow/keras, sklearn etc.) - we should create any kind of model. maybe i should step many steps back and dont do such kind of classification but something much more simpler 2021-05-20 12:07:49 SnoopJ it's about literally the opposite of what you are suggesting, which is feature engineering by hand 2021-05-20 12:08:11 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-20 12:08:15 teut feature engineering is much better 2021-05-20 12:08:21 SnoopJ and if you're going to get that involved in feature selection, just build a non-convnet model, probably a linear regression would do fine here 2021-05-20 12:09:01 teut like  if you know your tiger is independent of green color and only the background contains ggreen, one can remove that green by opencv 2021-05-20 12:09:05 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 12:09:34 tete_ oh just noticed, if we use cnn, rnn, transfer learning or any other more advanced deep learning technique, its extra points :) 2021-05-20 12:09:52 teut no its not like that 2021-05-20 12:09:59 teut extra points? 2021-05-20 12:10:26 SnoopJ tete_, like I said, I'd try equalizing the datum and see what your network thinks of it. Here's the result of "auto > equalize" in GIMP: https://i.imgur.com/bnR3gZO.png 2021-05-20 12:10:27 tete_ yes, the exercise is the base for the exam - we are ask about that and have to answer questions 2021-05-20 12:10:52 teut gotta go, thanks for the discussion 2021-05-20 12:11:55 SnoopJ A more sophisticated way to pursue my hunch here would be to look at the color histograms of your training data and compare to the color histograms of that image. 2021-05-20 12:12:03 SnoopJ but "more sophisticated" means "do it later, if ever" 2021-05-20 12:12:14 tete_ teut, cu and thanks for the information/discussion 2021-05-20 12:12:26 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-20 12:12:49 <-- aslicedbanjo (~aslicedba@host86-150-115-213.range86-150.btcentralplus.com) has left #python 2021-05-20 12:12:55 --> aslicedbanjo (~aslicedba@host86-150-115-213.range86-150.btcentralplus.com) has joined #python 2021-05-20 12:13:06 <-- teut (7aa2bd21@unaffiliated/teut) has quit (Quit: Connection closed) 2021-05-20 12:13:27 --> keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has joined #python 2021-05-20 12:13:37 tete_ i guess with datum you mean the image? 2021-05-20 12:15:26 SnoopJ yes 2021-05-20 12:15:42 SnoopJ Try inferring on the modified image I just linked, see what it thinks it is 2021-05-20 12:16:18 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 12:16:48 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-20 12:16:55 tete_ hmm i just noticed yours is a png, most if mine are jpg, wondering if that could also lead to some problems when mixing extensions 2021-05-20 12:17:02 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 12:17:05 <-- Nact (~l@host-85-27-127-107.dynamic.voo.be) has quit (Quit: Konversation terminated!) 2021-05-20 12:17:43 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Quit: Anas__G) 2021-05-20 12:17:47 SnoopJ It can, especially because JPEG compression introduces a *lot* of artifacts (it's very "lossy") 2021-05-20 12:18:04 --> rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has joined #python 2021-05-20 12:18:13 tete_ This image most likely belongs to bird with a 99.93 percent confidence. 2021-05-20 12:18:14 SnoopJ in this case, no information should have been lost between the two 2021-05-20 12:18:16 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-20 12:18:22 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-20 12:18:26 SnoopJ tete_, what was the confidence before the color adjustment? 2021-05-20 12:18:49 <-- SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-20 12:18:49 tete_ not sure anymore, i let it run again. takes about 1 min. 2021-05-20 12:19:41 <-- mangold (~mangold@198.98.183.40) has quit (Ping timeout: 260 seconds) 2021-05-20 12:19:41 tete_ This image most likely belongs to bird with a 99.82 percent confidence. 2021-05-20 12:19:53 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::980e) has quit (Ping timeout: 258 seconds) 2021-05-20 12:20:06 SnoopJ Not much difference, then. hmm! 2021-05-20 12:20:17 Zweimer Why I am not able to set an array in a sequence like this? https://bpa.st/IZJQ 2021-05-20 12:21:08 SnoopJ Zweimer, lut[i, 5] refers to a slot in that ndarray which will take exactly one value. You can't put something there that isn't compatible with the dtype (in this case, you're trying to store an entire sequence there) 2021-05-20 12:21:28 tete_ but does that make sense to use the equalized image you posted with my training data? because my training data is not equalized yet 2021-05-20 12:21:59 SnoopJ Zweimer, you can replicate this error with: `arr = np.zeros(32); arr[5] = [1,2,3]` which is probably easier to understand 2021-05-20 12:22:01 <-- vimart (~vimart@185.69.144.255) has quit (Ping timeout: 260 seconds) 2021-05-20 12:22:30 Zweimer Dang! I am an idiot. I forgot to change the function back after debugging! Thanks. 2021-05-20 12:22:45 SnoopJ tete_, sure, nothing is "off-limits" when you're trying to debug. You probably wouldn't want to do something so crude in "real" code, but we're not talking about doing that, we're just trying to figure out why it thinks it's a bird. 2021-05-20 12:23:02 tete_ ok 2021-05-20 12:23:04 SnoopJ I don't have any other good guesses, though, except that the dataset looks very messy. 2021-05-20 12:23:25 <-- rypervenche (~rypervenc@unaffiliated/rypervenche) has quit (Quit: 掰掰~) 2021-05-20 12:23:29 SnoopJ I saw a lot of those "streaky" tigers when I clicked around at random. For all we know, maybe the network learned "images that are streaky like that are 'tiger'" 2021-05-20 12:24:03 --> vimart (~vimart@85.255.233.3) has joined #python 2021-05-20 12:24:32 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-20 12:25:25 SnoopJ Your network is small enough that you *could* look inside of it and try to identify what features it's learned, but that's a pretty complicated approach. Maybe you could ask your prof/TA about that, though. 2021-05-20 12:25:26 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Client Quit) 2021-05-20 12:25:42 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-20 12:25:58 SnoopJ (understanding failures like this is an open area of research; I'm building something at $employer that tries to answer a similar question) 2021-05-20 12:26:13 --> LiteWait (620ff509@cpe-98-15-245-9.hvc.res.rr.com) has joined #python 2021-05-20 12:26:59 <-- sth_ (~seth@sys-v.net) has quit (Quit: WeeChat 1.9.1) 2021-05-20 12:27:04 <-- aaii-z (~aaii@unaffiliated/aaii) has quit (Read error: Connection reset by peer) 2021-05-20 12:27:24 --> aaii-z (~aaii@unaffiliated/aaii) has joined #python 2021-05-20 12:27:36 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 12:27:46 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-20 12:28:24 --> shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has joined #python 2021-05-20 12:28:26 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 246 seconds) 2021-05-20 12:28:33 sartan you can json.dumps(your_dict, indent=4) 2021-05-20 12:28:41 sartan oh my scrollback was very stale, never mind 2021-05-20 12:28:53 <-- dob1 (~dob1@unaffiliated/dob1) has quit (Ping timeout: 240 seconds) 2021-05-20 12:28:54 --> nick1 (8a58a7b6@pool-138-88-167-182.washdc.fios.verizon.net) has joined #python 2021-05-20 12:29:15 --> k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has joined #python 2021-05-20 12:29:45 <-- nick1 (8a58a7b6@pool-138-88-167-182.washdc.fios.verizon.net) has quit (Client Quit) 2021-05-20 12:30:11 twobitsprite so, somehow my pipenv on my mac in ~/.local/bin/pipenv got messed up, and it's trying to reference /opt/salt/bin/python3.7 ... I assume this is from some kind of saltstack installation, but I'm pretty sure I've never installed salt. this is a work laptop, so maybe my IT dept installed it, but I don't have and /opt/salt folder, and neither my system pip3, nor my virtualenv pip think pipenv is 2021-05-20 12:30:17 twobitsprite installed... any hints on how to figure out what installed it, or how to fix pipenv? 2021-05-20 12:30:23 <-- slurps-mad-rips (sid319278@gateway/web/irccloud.com/x-crdfqpqwkbtdjrwc) has left #python 2021-05-20 12:30:37 <-- ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has quit (Remote host closed the connection) 2021-05-20 12:30:55 <-- SirScott (~SirScott@c-67-176-100-163.hsd1.co.comcast.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-20 12:31:03 <-- YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has quit (Remote host closed the connection) 2021-05-20 12:31:11 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 12:31:48 --> mike18 (~geri@71-220-52-187.mpls.qwest.net) has joined #python 2021-05-20 12:32:05 --> SirScott (~SirScott@c-67-176-100-163.hsd1.co.comcast.net) has joined #python 2021-05-20 12:32:19 <-- derpadmin (~derpadmin@2a07:12c0:1780:1313:1313:1313:1313:1313) has quit (Quit: Leaving) 2021-05-20 12:32:28 mike18 hi - how can i mock 2 functions? one is called .get the other one is called .find - but internally calls .get ? 2021-05-20 12:32:29 <-- x7b (~ffe4@200116b82ce1da00006419b205458493.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-20 12:33:11 --> tm007 (uid287041@gateway/web/irccloud.com/x-rsbzmhhgesmrfpnb) has joined #python 2021-05-20 12:33:25 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-20 12:33:48 mike18 how to privide different mock data for find and get? 2021-05-20 12:34:41 <-- darksun (~darksun@unaffiliated/darksun) has quit (Ping timeout: 240 seconds) 2021-05-20 12:35:59 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 265 seconds) 2021-05-20 12:36:00 --> bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has joined #python 2021-05-20 12:36:00 --> UlrichH (~UlrichH@reverse-177-83.fdn.fr) has joined #python 2021-05-20 12:36:10 --> YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has joined #python 2021-05-20 12:36:22 --> darksun (~darksun@unaffiliated/darksun) has joined #python 2021-05-20 12:36:30 --> CodeMouse92 (~CodeMouse@unaffiliated/codemouse) has joined #python 2021-05-20 12:36:55 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-20 12:37:23 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-20 12:37:33 --> threwahway (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has joined #python 2021-05-20 12:38:48 --> blip- (~blip-@unaffiliated/blip-) has joined #python 2021-05-20 12:38:53 --> ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has joined #python 2021-05-20 12:39:24 <-- cd (~cd@unaffiliated/cd) has quit (Client Quit) 2021-05-20 12:39:35 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-20 12:40:05 --> AlyssaXY (~luz@31.127.31.50) has joined #python 2021-05-20 12:40:14 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-20 12:40:29 <-- cd (~cd@unaffiliated/cd) has quit (Client Quit) 2021-05-20 12:40:33 --> Jerrynicki (~niklas@p200300f577050e00048c4e2d2b40661e.dip0.t-ipconnect.de) has joined #python 2021-05-20 12:40:39 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-20 12:41:16 --> dub_a (~dub_a@192.252.212.39) has joined #python 2021-05-20 12:41:45 --> x7b (~ffe4@200116b82ce1da00006419b205458493.dip.versatel-1u1.de) has joined #python 2021-05-20 12:43:05 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 12:43:32 <-- cd (~cd@unaffiliated/cd) has quit (Client Quit) 2021-05-20 12:44:15 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 12:44:33 <-- UlrichH (~UlrichH@reverse-177-83.fdn.fr) has quit (Quit: Leaving) 2021-05-20 12:44:46 <-- w0x12ef (~w0x12ef@60.10.194.43) has quit (Ping timeout: 260 seconds) 2021-05-20 12:44:49 <-- digitalD (~dp@65.102.234.86) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 12:45:26 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-20 12:45:29 AlyssaXY Hi 2021-05-20 12:46:44 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-20 12:47:12 <-- cd (~cd@unaffiliated/cd) has quit (Client Quit) 2021-05-20 12:47:39 --> jellyfish (~jellyfish@unaffiliated/jellyfish) has joined #python 2021-05-20 12:47:41 --> aocusr (6d40f9bc@unaffiliated/db42) has joined #python 2021-05-20 12:47:48 --> pedahzur (~jkugler@216-67-98-32.static.acsalaska.net) has joined #python 2021-05-20 12:49:08 --> alexgr (~alexgr@unaffiliated/alexgr) has joined #python 2021-05-20 12:49:08 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 12:49:08 aocusr mypy complaints about a = list(map(int, some_string.split('..')))  Incompatible types in assignment (expression has type "List[int]", variable has type "str") 2021-05-20 12:49:26 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-20 12:49:57 aocusr am I doing something wrong ? 2021-05-20 12:49:59 <-- Lando-HoloNet (~Lando@unaffiliated/lando-spacepimp) has quit (Quit: They told me they fixed it. I trusted them to fix it. It's not my fault!) 2021-05-20 12:50:12 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-20 12:50:17 sartan some_string.split('..') will yield you a list 2021-05-20 12:50:29 sartan mypy is correct, that code won't execute 2021-05-20 12:50:29 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 265 seconds) 2021-05-20 12:50:39 <-- pedahzur (~jkugler@216-67-98-32.static.acsalaska.net) has quit (Remote host closed the connection) 2021-05-20 12:50:39 sartan can you share an example of your some_string? 2021-05-20 12:50:44 aocusr the code runs amazingly 2021-05-20 12:50:46 <-- aaii-z (~aaii@unaffiliated/aaii) has quit (Ping timeout: 240 seconds) 2021-05-20 12:50:55 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-20 12:50:55 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-20 12:51:04 aocusr try anything you want at your local python 2021-05-20 12:51:28 --> sysadmin (~McCafe@104.223.127.243) has joined #python 2021-05-20 12:52:14 sartan What does some_string look like? 2021-05-20 12:52:24 <-- jellyfish (~jellyfish@unaffiliated/jellyfish) has quit (Client Quit) 2021-05-20 12:52:43 sartan maybe i'm not understanding your input data type 2021-05-20 12:52:45 sartan `1..2' ? 2021-05-20 12:53:08 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::980e) has joined #python 2021-05-20 12:53:15 aocusr forexample, yes 2021-05-20 12:53:18 --> minip (minip@unaffiliated/minip) has joined #python 2021-05-20 12:53:23 aocusr 1 1..2 1..2..3 .... 2021-05-20 12:53:27 sartan [int(s) for s in '1..2..3'.split('..')] 2021-05-20 12:53:29 <-- Tennis (~Tennis@unaffiliated/tennis) has quit (Quit: Leaving) 2021-05-20 12:53:39 --> Guest48 (~textual@cpe-107-185-48-127.socal.res.rr.com) has joined #python 2021-05-20 12:53:46 mike18 hi im using a package which abstracts an api ... how can i see what calls the lib makes and whats received? 2021-05-20 12:53:58 mike18 on the network 2021-05-20 12:53:59 aocusr yeah, but you did not exaplin to me what does mypy want 2021-05-20 12:54:29 aocusr mike18: use a network sniffer, or strace, or maybe the lib has logging capabilities, or modify it to print that stuff out 2021-05-20 12:54:47 mike18 print doesnt tell me what http request the lib makes 2021-05-20 12:55:22 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-20 12:55:26 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 240 seconds) 2021-05-20 12:55:30 sartan http.client.HTTPConnection.debuglevel = 5 2021-05-20 12:55:39 sartan try import httplib; httplib.HTTPConnection.debuglevel = 5 2021-05-20 12:55:40 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-20 12:55:55 sartan it'll dump the http requests without having to touch the underlying library you're using 2021-05-20 12:56:01 <-- dub_a (~dub_a@192.252.212.39) has quit (Quit: WeeChat 3.1) 2021-05-20 12:56:15 <-- aslicedbanjo (~aslicedba@host86-150-115-213.range86-150.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-20 12:56:25 --> dub_a (~dub_a@192.252.212.39) has joined #python 2021-05-20 12:56:35 mike18 where to set the http settings? 2021-05-20 12:56:51 sartan surprisingly, that's it, that's all you have to do 2021-05-20 12:57:15 sartan throw it in your code somewhere 2021-05-20 12:57:16 mike18 does it also show the response? 2021-05-20 12:57:19 sartan it should 2021-05-20 12:57:20 <-- LiteWait (620ff509@cpe-98-15-245-9.hvc.res.rr.com) has quit (Quit: Connection closed) 2021-05-20 12:57:26 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 12:58:08 <-- dub_a (~dub_a@192.252.212.39) has quit (Client Quit) 2021-05-20 12:58:08 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 12:58:18 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-20 12:58:21 <-- k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has quit (Ping timeout: 260 seconds) 2021-05-20 12:58:34 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 12:58:58 <-- AlyssaXY (~luz@31.127.31.50) has quit (Quit: Leaving) 2021-05-20 12:58:59 <-- x7b (~ffe4@200116b82ce1da00006419b205458493.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-20 12:59:08 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-20 12:59:19 --> dub_a (~dub_a@192.252.212.39) has joined #python 2021-05-20 12:59:38 --> linuxlars (~lars@dhcp-15089.dhcp.sognenett.no) has joined #python 2021-05-20 12:59:48 <-- dub_a (~dub_a@192.252.212.39) has quit (Client Quit) 2021-05-20 12:59:58 --> dub_a (~dub_a@192.252.212.39) has joined #python 2021-05-20 13:00:21 --> AlyssaXY (~luz@31.127.31.50) has joined #python 2021-05-20 13:00:38 <-- dub_a (~dub_a@192.252.212.39) has quit (Client Quit) 2021-05-20 13:00:41 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 13:01:08 --> morgandark (averydark@gateway/vpn/protonvpn/averydark) has joined #python 2021-05-20 13:01:11 --> gelignite (~gelignite@55d456fd.access.ecotel.net) has joined #python 2021-05-20 13:01:44 --> k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has joined #python 2021-05-20 13:02:00 <-- k0ta (~k0ta@dslb-084-057-080-106.084.057.pools.vodafone-ip.de) has quit (Remote host closed the connection) 2021-05-20 13:02:06 morgandark are there any dev tools for initializing a bare bones web app? something like the one django uses, but for flask or bottle? 2021-05-20 13:02:36 --> x7b (~ffe4@mue-88-130-61-038.dsl.tropolys.de) has joined #python 2021-05-20 13:02:46 SnoopJ morgandark, the `cookiecutter` library is designed for doing that, and there are probably cookiecutter templates for both of those. 2021-05-20 13:02:59 <-- doc|home (~doc@gentoo/contributor/doc-007) has left #python ("Things to do") 2021-05-20 13:03:10 SnoopJ e.g. https://github.com/cookiecutter-flask/cookiecutter-flask https://github.com/avelino/cookiecutter-bottle 2021-05-20 13:03:13 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-20 13:03:14 mike18 sartan: httplib2 0.19.1 ? 2021-05-20 13:03:19 mike18 or httplib ? 2021-05-20 13:03:30 <-- ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 13:04:11 --> ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has joined #python 2021-05-20 13:04:14 --> gobby253 (~gobby252@178.239.173.200) has joined #python 2021-05-20 13:04:22 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Quit: ayustae) 2021-05-20 13:04:23 --> cd (~cd@unaffiliated/cd) has joined #python 2021-05-20 13:04:51 mike18 import http.client as httplib ? 2021-05-20 13:05:18 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-20 13:06:20 morgandark SnoopJ, thanks! im taking a looking at it now 2021-05-20 13:06:32 sysadmin Remember Bitcoin in 2008??? Pi is a new digital currency developed by Stanford PhDs, To claim your piece of pi goto https://minepi.com and use "ilkde" as your invitation code. Get your piece of the pi now ! 2021-05-20 13:06:34 nedbat aocusr: i think mypy is complaining because it thinks "a" is a str. Did you declare it differently earlier in your code? 2021-05-20 13:06:35 <-- gobby252 (~gobby252@178.239.173.200) has quit (Ping timeout: 246 seconds) 2021-05-20 13:06:36 --> ryro (~ryro@2a01:4b00:848a:1700:fca7:41dc:aa4f:d166) has joined #python 2021-05-20 13:06:41 morgandark mike18, isnt that a built-in python module? 2021-05-20 13:06:56 sartan mike18: import requests;import http;http.client.HTTPConnection.debuglevel = 5;print(requests.get('https://google.ca')) 2021-05-20 13:07:00 sartan This worked for me 2021-05-20 13:07:09 sartan very verbose 2021-05-20 13:07:13 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-20 13:07:22 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-20 13:07:22 sartan i'm sorry i gave you python2 instructions, force of habit 2021-05-20 13:07:27 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-20 13:07:30 sartan that should work for py3 2021-05-20 13:07:30 SnoopJ morgandark, yes, `http` is stdlib 2021-05-20 13:07:45 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Quit: Anas__G) 2021-05-20 13:07:49 mike18 sartan: ok how can i see the response body? 2021-05-20 13:07:55 sartan it will be in stdout 2021-05-20 13:08:02 mike18 and request body 2021-05-20 13:08:05 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-20 13:08:07 sartan that too 2021-05-20 13:08:12 mike18 i only see header: 2021-05-20 13:08:34 sartan i see send: 2021-05-20 13:09:24 <-- ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has quit (Read error: Connection reset by peer) 2021-05-20 13:09:51 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-20 13:09:52 mike18 i did: import http.client as httplib httplib.HTTPConnection.debuglevel = 5 2021-05-20 13:09:58 mike18 in python3 2021-05-20 13:10:05 --> Catatronic_ (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-20 13:10:06 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 240 seconds) 2021-05-20 13:10:24 -- Catatronic_ is now known as Catatronic 2021-05-20 13:10:45 mike18 what if the connection is https? 2021-05-20 13:10:56 mike18 i still see the body? 2021-05-20 13:10:59 cluelessperson_ morgandark, I like curio for a self contained small web app. 2021-05-20 13:11:24 aocusr nedbat: thanks 2021-05-20 13:11:26 --> greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has joined #python 2021-05-20 13:11:36 sartan mike18: I see what you're asking. Hang on I will write you something. 2021-05-20 13:11:37 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-20 13:11:38 --> pileus (james@gateway/vpn/nordvpn/pileus) has joined #python 2021-05-20 13:11:42 morgandark SnoopJ, the only thing i don't like about it so far is that it uses bcrypt instead of scrypt... the bcyrpt library even discourages usage of the library now because it's considered dated. 2021-05-20 13:11:43 sartan Perhaps 2021-05-20 13:11:43 mike18 hm ok 2021-05-20 13:11:43 nedbat aocusr: is that what happened? 2021-05-20 13:11:59 SnoopJ morgandark, "it" being `http`? 2021-05-20 13:12:01 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:e1a1:7fe0:5b74:28ba) has quit (Ping timeout: 258 seconds) 2021-05-20 13:12:08 mike18 sartan: i tried the same import http as you - still only see header: 2021-05-20 13:12:15 morgandark SnoopJ, cookiecutter-flask 2021-05-20 13:12:16 --> shabius_ (~shabius@2a0e:1c80:2:1022::1006) has joined #python 2021-05-20 13:12:20 sartan yes you're right i don't see the body 2021-05-20 13:12:23 <-- aocusr (6d40f9bc@unaffiliated/db42) has quit (Quit: Connection closed) 2021-05-20 13:12:30 --> thecosmos (67741816@103.116.24.22) has joined #python 2021-05-20 13:12:33 SnoopJ morgandark, it's easy to modify cookiecutter templates to suit your own wishes. That's the whole point. 2021-05-20 13:12:48 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Quit: Leaving) 2021-05-20 13:12:57 morgandark SnoopJ, cool 2021-05-20 13:12:59 --> aocusr (6d40f9bc@unaffiliated/db42) has joined #python 2021-05-20 13:13:24 <-- greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has quit (Remote host closed the connection) 2021-05-20 13:13:46 <-- blip- (~blip-@unaffiliated/blip-) has quit (Quit: Leaving) 2021-05-20 13:13:47 --> jimvideo (~jimvideo@64.188.177.168) has joined #python 2021-05-20 13:13:52 <-- philr (~phil@118.211.93.148) has quit (Ping timeout: 268 seconds) 2021-05-20 13:14:20 aocusr nedbat: will check later, but it seems reasonable 2021-05-20 13:14:22 bancroft my google-fu is failing, how do I go from hex() -> b"\x..." 2021-05-20 13:14:36 nedbat aocusr: this is one of the reasons we ask to see your code, btw 2021-05-20 13:14:41 zumba_addict Folks, importing a directory using dash says incorr3ect syntax. SHould it be underscore? 2021-05-20 13:14:43 <-- Major_Biscuit (~Major_Bis@x065156.citg-m.tudelft.nl) has quit (Quit: WeeChat 3.0.1) 2021-05-20 13:14:50 aocusr bancroft: ascii() ? 2021-05-20 13:14:59 --> ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has joined #python 2021-05-20 13:15:02 <-- thecosmos (67741816@103.116.24.22) has quit (Client Quit) 2021-05-20 13:15:30 <-- mwichmann (~mats@209-188-119-117.taosnet.com) has quit (Quit: Leaving) 2021-05-20 13:15:36 bancroft aocusr: that makes a string, I needs a b"" 2021-05-20 13:15:46 <-- rendar (~rendar@unaffiliated/rendar) has quit 2021-05-20 13:15:46 <-- shabius (~shabius@45.15.19.226) has quit (Ping timeout: 240 seconds) 2021-05-20 13:15:47 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-20 13:16:14 <-- AlyssaXY (~luz@31.127.31.50) has quit (Quit: Leaving) 2021-05-20 13:16:17 jiffe are there use cases for combining asyncio and threads ? 2021-05-20 13:16:46 pileus !FWServer %EF3FE81F7F4D% Michael Connelly - Harry Bosch 01 - The Black Echo.epub ::INFO:: 693.44KB 2021-05-20 13:17:48 pileus !DV8 Michael Connelly - Harry Bosch 01 - The Black Echo (EPUB).rar ::INFO:: 755.0KB 2021-05-20 13:17:53 nedbat bancroft: where are you getting the hex? 2021-05-20 13:17:57 nedbat pileus: please don't 2021-05-20 13:18:00 <-- Numero-6 (~Numero-6@194.5.53.18) has quit (Quit: << - Qui etes vous ? - Je suis le nouveau numero 2 - Qui est le numero 1 ? - Vous etes le numero 6 - Je ne suis pas un numero ! Je suis un homme libre!! >>) 2021-05-20 13:18:17 --> fcjsx (~fcjsx_@2800:a4:830:7200:9382:2791:66f4:9b31) has joined #python 2021-05-20 13:18:28 bancroft nedbat: hex(zlib.crc32( ... 2021-05-20 13:18:51 nedbat bancroft: i think you just need to drop the hex(), no? What type is crc32 returning? 2021-05-20 13:19:19 bancroft nedbat: looks like an int but the rest of the file i'm writing has b"" 2021-05-20 13:19:21 <-- fcjsx (~fcjsx_@2800:a4:830:7200:9382:2791:66f4:9b31) has quit (Client Quit) 2021-05-20 13:19:36 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-20 13:19:38 bancroft yup it's an int 2021-05-20 13:19:40 --> Socra (~Socra@206.217.216.27) has joined #python 2021-05-20 13:19:45 nedbat bancroft: ok, if it's an int, then use struct.pack 2021-05-20 13:19:46 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 13:19:59 bancroft nedbat: ah great, thank you 2021-05-20 13:20:50 nedbat bancroft: oh, or that_int.to_bytes() 2021-05-20 13:21:45 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 13:22:09 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 13:23:24 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-20 13:23:27 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:4ce:d575:71b1:39a9) has joined #python 2021-05-20 13:23:47 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 13:23:47 bancroft nedbat: great, so for crc32 it's .to_bytes(4, "big") if you wanted to know :) 2021-05-20 13:24:00 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 13:24:29 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 260 seconds) 2021-05-20 13:24:45 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-20 13:25:14 mike18 sartan: you think seeing the http body is possible? 2021-05-20 13:25:35 --> AlyssaXY (~luz@31.127.31.50) has joined #python 2021-05-20 13:25:38 <-- schangg (5c9a63da@lputeaux-656-1-124-218.w92-154.abo.wanadoo.fr) has quit (Quit: Connection closed) 2021-05-20 13:26:00 nanonyme bancroft, I really love the to_bytes and from_bytes methods 2021-05-20 13:26:05 CustosLimen hi, is there something like https://github.com/spf13/viper for python that is maintained? I want to easily manage config from a bunch of sources 2021-05-20 13:26:31 bancroft nanonyme: yeah, it's the first i'm hearing about them and i'm happy 2021-05-20 13:26:37 --> deekej (~deekej@ip4-95-82-164-84.cust.nbox.cz) has joined #python 2021-05-20 13:27:16 --> luke (~luke@bitnomial/staff/luke) has joined #python 2021-05-20 13:27:22 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-20 13:27:27 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 13:28:11 <-- shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has quit (Quit: Connection closed) 2021-05-20 13:28:31 <-- M1zuki (~iridium@unaffiliated/m1zuki) has quit (Quit: Leaving) 2021-05-20 13:28:43 jayjo how does pyobjc work in terms of wrapping obj-c functions, and how does the final product run? Is there one python process that interacts with an additional obj-c process? https://github.com/ronaldoussoren/pyobjc 2021-05-20 13:29:06 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-20 13:29:56 <-- Hanii (~Hanii@2a00:23c5:c587:6d00:15f1:d1b4:e065:5449) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-20 13:30:18 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 13:30:45 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 13:30:46 jayjo What I'm actually interested in is using python to interact with driverkit, but I think i should understand this first. The pyobjc page says that DriverKit will not be wrapped because it is too low level 2021-05-20 13:31:18 jayjo it actually says in the changelog: "The userspace driver frameworks introduced in macOS 10.15 (DriverKit and related frameworks) will not be exposed through PyObjC. Please let me know if you have a good use case for using these frameworks with Python." 2021-05-20 13:31:23 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 13:31:52 jayjo and the "Will not be wrapped, too low level. 2021-05-20 13:32:06 jayjo " is here: https://pyobjc.readthedocs.io/en/latest/notes/framework-wrappers.html 2021-05-20 13:32:19 <-- thiras (~thiras@unaffiliated/thiras) has quit (Read error: Connection timed out) 2021-05-20 13:32:23 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 13:32:43 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-20 13:32:50 <-- zampano (~zampano@unaffiliated/zampano) has quit (Quit: leaving) 2021-05-20 13:33:11 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 246 seconds) 2021-05-20 13:33:30 --> dudek (~dudek@185.150.236.112) has joined #python 2021-05-20 13:33:52 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-20 13:34:09 <-- dvx (~dvx@185.63.97.64) has quit (Read error: Connection reset by peer) 2021-05-20 13:34:13 <-- sgn (~sgn@171.239.137.68) has quit (Ping timeout: 268 seconds) 2021-05-20 13:34:55 sartan Almost done for you mike18 2021-05-20 13:36:25 <-- minip (minip@unaffiliated/minip) has quit (Remote host closed the connection) 2021-05-20 13:36:37 --> l1x (uid1954@gateway/web/irccloud.com/x-xplvjfdodabdiebq) has joined #python 2021-05-20 13:36:59 <-- ralonsoh (~ralonsoh@127.red-79-150-230.dynamicip.rima-tde.net) has quit (Quit: Leaving) 2021-05-20 13:37:18 --> zampano (~zampano@unaffiliated/zampano) has joined #python 2021-05-20 13:39:21 <-- Guest48 (~textual@cpe-107-185-48-127.socal.res.rr.com) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 13:39:31 --> cge (~const@217.138.222.94) has joined #python 2021-05-20 13:39:49 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Remote host closed the connection) 2021-05-20 13:43:10 --> peter (~petex@2405:6580:31a0:1b00:709:8109:34cb:4854) has joined #python 2021-05-20 13:44:26 --> saidi (~saidi@unaffiliated/saidi) has joined #python 2021-05-20 13:44:36 <-- Cherenkov (~Cherenkov@a109-49-131-251.cpe.netcabo.pt) has quit (Read error: Connection reset by peer) 2021-05-20 13:45:16 --> davegarath (~dave@net-93-66-98-48.cust.vodafonedsl.it) has joined #python 2021-05-20 13:45:21 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:e1a1:7fe0:5b74:28ba) has joined #python 2021-05-20 13:45:22 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-20 13:46:47 mike18 sartan: ok 2021-05-20 13:47:02 sartan I'm trying to monkeypatch the get and response methods in a generic way 2021-05-20 13:47:51 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Quit: Anas__G) 2021-05-20 13:48:20 <-- kanupatar (7444491b@116.68.73.27) has quit (Quit: Connection closed) 2021-05-20 13:48:58 <-- ram19890 (~ram@49.205.84.211) has quit (Ping timeout: 265 seconds) 2021-05-20 13:49:35 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-20 13:49:50 --> skeeved (~skeeved@pool-98-109-88-9.nwrknj.fios.verizon.net) has joined #python 2021-05-20 13:50:16 <-- skeeved (~skeeved@pool-98-109-88-9.nwrknj.fios.verizon.net) has quit (Client Quit) 2021-05-20 13:51:05 sartan the problem with logging the response body is that it consumes the read buffer 2021-05-20 13:51:11 sartan so this can impact downstream stuff 2021-05-20 13:53:00 mike18 why not copy the buffer? 2021-05-20 13:53:05 <-- seoul_man (~meh@wilug/newlug/seoul-man) has quit (Remote host closed the connection) 2021-05-20 13:53:26 mike18 so that the buffer can be read twice? 2021-05-20 13:54:31 --> dbear (~Thunderbi@mesa.ha.school) has joined #python 2021-05-20 13:54:50 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-20 13:54:51 mike18 i only know how to to it in golang :D 2021-05-20 13:55:12 <-- Widdershins (~Widders@ps.mad.cash) has left #python ("🤔") 2021-05-20 13:55:17 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 260 seconds) 2021-05-20 13:55:58 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-20 13:56:11 dbear I would like to develop some python based dashboards -- and have been playing with jupyterlab and jupyterhub -- can anyone suggest system similar to these that would allow me to generate the dashboards with widgets but not have the code 'editable' thru the web ? 2021-05-20 13:56:19 <-- runlevel7__ (runlevel7@gateway/vpn/privateinternetaccess/runlevel7) has quit (Quit: Leaving) 2021-05-20 13:57:10 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-20 13:57:24 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 13:57:26 <-- gobby253 (~gobby252@178.239.173.200) has quit (Ping timeout: 240 seconds) 2021-05-20 13:57:55 --> Adbray (~Adbray@2600:6c48:6f7f:d764:be5d:d169:8018:622f) has joined #python 2021-05-20 13:58:33 <-- TimeTrap_ (~TimeTrap@c-68-82-53-117.hsd1.pa.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-20 13:58:34 <-- vidbina (~vid@45.139.215.53) has quit (Read error: Connection reset by peer) 2021-05-20 13:58:45 <-- saidi (~saidi@unaffiliated/saidi) has quit (Quit: Quitte) 2021-05-20 13:59:06 --> saidi (~saidi@unaffiliated/saidi) has joined #python 2021-05-20 13:59:10 -- saidi is now known as ahmed 2021-05-20 13:59:12 --> dviola (~diego@unaffiliated/dviola) has joined #python 2021-05-20 13:59:13 --> explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has joined #python 2021-05-20 13:59:22 --> JimmyNeutron (~weechat@191.96.120.41) has joined #python 2021-05-20 13:59:40 -- ahmed is now known as Guest85545 2021-05-20 14:00:11 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-20 14:00:37 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 14:00:56 --> zro (~zro@wikimedia/zro) has joined #python 2021-05-20 14:00:58 --> kanupatar (7444491b@116.68.73.27) has joined #python 2021-05-20 14:01:06 --> TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has joined #python 2021-05-20 14:01:12 <-- luke (~luke@bitnomial/staff/luke) has quit (Quit: sleep) 2021-05-20 14:01:41 <-- ryanhiebert (uid64795@gateway/web/irccloud.com/x-uupwawdpuotisoqd) has quit (Quit: Connection closed for inactivity) 2021-05-20 14:02:42 <-- s8548a__ (~s8548a@unaffiliated/s8548a) has quit (Quit: Leaving) 2021-05-20 14:03:21 --> seoul_man (~meh@wilug/newlug/seoul-man) has joined #python 2021-05-20 14:03:44 amo dbear, you could just convert the jupyter notebooks to html? 2021-05-20 14:03:51 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-20 14:04:59 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-20 14:07:30 --> A3 (~A1@2603:9004:510:d155:fd71:142c:560b:a5f0) has joined #python 2021-05-20 14:08:22 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-20 14:08:48 mefistofeles dbear: voila https://github.com/voila-dashboards/voila 2021-05-20 14:10:13 <-- sysadmin (~McCafe@104.223.127.243) has quit (Ping timeout: 260 seconds) 2021-05-20 14:11:15 --> brumla (b24dd9c4@178.77.217.196) has joined #python 2021-05-20 14:12:06 <-- peter (~petex@2405:6580:31a0:1b00:709:8109:34cb:4854) has left #python ("WeeChat 3.1") 2021-05-20 14:12:12 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-20 14:13:14 <-- rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has quit (Quit: Connection closed) 2021-05-20 14:13:28 <-- ryro (~ryro@2a01:4b00:848a:1700:fca7:41dc:aa4f:d166) has quit (Quit: ryro) 2021-05-20 14:13:50 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-20 14:14:06 A3 In MATLAB I'm accustomed to putting my functions at the bottom of my scripts. In Python must I become accustomed to putting them at the top instead (i.e. always prior to their call)? 2021-05-20 14:14:17 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 14:14:30 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 14:15:16 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 258 seconds) 2021-05-20 14:16:16 <-- cge (~const@217.138.222.94) has quit (Quit: WeeChat 3.0.1) 2021-05-20 14:17:13 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-20 14:17:56 --> Ice__101 (~jorge@pool-72-95-136-29.pitbpa.fios.verizon.net) has joined #python 2021-05-20 14:19:06 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-20 14:19:50 ammar2 A3: not necessarily, if you use the pattern of having a "main" function in your code instead of coding at the leftmost indentation level then you can order your functions whichever way you want 2021-05-20 14:20:43 <-- fran (~fran@unaffiliated/fran) has quit (Read error: Connection reset by peer) 2021-05-20 14:20:49 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-20 14:21:13 <-- maggotbrain (~maggotbra@c-73-254-248-250.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-05-20 14:22:32 --> maggotbrain (~maggotbra@c-73-254-248-250.hsd1.wa.comcast.net) has joined #python 2021-05-20 14:22:40 --> scrabblethebabb1 (~phi@2a01:598:b003:8b1:54a:21de:a1ce:8f8e) has joined #python 2021-05-20 14:22:40 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-20 14:23:53 redsh I like having a main function so scopes are a bit more clear. 2021-05-20 14:24:00 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-20 14:24:06 A3 ooooh, new feature unlocked ... is there a consensus on which is more legible? it seems to me that putting functions in an appendix at the end is better to read the logic of a program 2021-05-20 14:24:09 <-- rsx (~rsx@ppp-188-174-128-142.dynamic.mnet-online.de) has quit (Quit: rsx) 2021-05-20 14:24:11 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-20 14:24:16 A3 redsh, did you just say what I tried to articulate here? 2021-05-20 14:24:38 --> Secutor (~Adium@2600:1700:edb0:840:99b8:723b:90cc:7634) has joined #python 2021-05-20 14:24:38 A3 ('scopes' is a new word for me) 2021-05-20 14:25:21 redsh Well, yeah, you can just put a main function at the top, then have your utility functions after that, then at the very bottom, you can have if __name__ == '__main__': main() 2021-05-20 14:25:53 redsh Or just main() if you want. Though then you'll have to change it to the __name__ thing if you want to import code from a different file without executing main() 2021-05-20 14:26:00 A3 i don't know what that means yet; i'll search 'python main function' and try to find a webpage 2021-05-20 14:26:16 redsh It's just a convention, not a real language feature or anything. 2021-05-20 14:26:30 <-- lucad111 (~lucad111@linaro/lucad111) has quit (Quit: Leaving) 2021-05-20 14:26:32 A3 then i lack the experience to know what you are symbolizing 2021-05-20 14:26:47 redsh Well. Err. By scoping, I'm mostly just talking about variable names and stuff. 2021-05-20 14:26:56 A3 that's what i inferred, thanks 2021-05-20 14:27:10 redsh To have a clearer idea of what I want globally, and what I want just in main() 2021-05-20 14:27:24 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-20 14:27:24 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 14:27:53 <-- Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-20 14:28:02 <-- brumla (b24dd9c4@178.77.217.196) has quit (Ping timeout: 240 seconds) 2021-05-20 14:28:40 --> Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has joined #python 2021-05-20 14:29:24 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 14:30:05 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 14:30:36 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 14:30:37 --> scrabble` (~user@2a01:598:b003:8b1:54a:21de:a1ce:8f8e) has joined #python 2021-05-20 14:30:46 <-- scrabblethebabb1 (~phi@2a01:598:b003:8b1:54a:21de:a1ce:8f8e) has left #python 2021-05-20 14:30:51 <-- mike18 (~geri@71-220-52-187.mpls.qwest.net) has quit (Remote host closed the connection) 2021-05-20 14:31:31 <-- nbro (~nbro@unaffiliated/nbro) has quit (Ping timeout: 250 seconds) 2021-05-20 14:31:56 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-20 14:32:13 A3 https://www.guru99.com/learn-python-main-function-with-examples-understand-main.html is making me think main() is intended for running the .py script as a 'function' in another .py script 2021-05-20 14:32:40 --> ram19890 (~ram@49.205.84.211) has joined #python 2021-05-20 14:32:54 A3 it seems improper to execute the script i'm wanting to run by an if __name__ == "__main__": main() clause 2021-05-20 14:33:21 A3 i mean, that seems an odd way to say "run the main contents of this script please" 2021-05-20 14:33:26 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Ping timeout: 240 seconds) 2021-05-20 14:34:02 <-- JimmyRustles (~Haddock@unaffiliated/jimmyrustles) has left #python 2021-05-20 14:34:08 bjs A3: so there are two things here, the first is that when you run a script or import a file it does the same thing: it runs the file. 2021-05-20 14:34:53 bjs A3: and the `if __name__ == "__main__"` part is really just like "if being run as a script". 2021-05-20 14:35:18 A3 oh, thanks for clarifying. that's not so weird then 2021-05-20 14:35:22 --> pennyblake (a9cce516@169.204.229.22) has joined #python 2021-05-20 14:35:51 bjs A3: There are reasons to collect things into a `main` function, even if you do not intend to import the file. Functions obviously let you run code from elsewhere, and to reduce redundancy, but they can also help structure the program by giving useful names to parts of it. 2021-05-20 14:36:00 --> greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has joined #python 2021-05-20 14:36:14 <-- scrabble` (~user@2a01:598:b003:8b1:54a:21de:a1ce:8f8e) has left #python ("ERC (IRC client for Emacs 27.1)") 2021-05-20 14:36:28 <-- LuxuryMode (uid91005@gateway/web/irccloud.com/x-hoahxennvylblszy) has quit (Quit: Connection closed for inactivity) 2021-05-20 14:36:32 bjs A3: yeah the __name__ == "__main__" stuff is totally obscure and does not really help in understanding what it does, but sadly it is the "standard" way in Python to check whether you're being run as a script or being imported by someone else. 2021-05-20 14:37:45 A3 ouch, but using def main() to push all the functions to the bottom of the script incurs a strip of empty white space ...... do i just have to get used to all the white space in python? 2021-05-20 14:37:52 A3 "buy a bigger monitor" sort of thing? 2021-05-20 14:38:11 <-- isomari (~isomari@105.112.138.38) has quit (Ping timeout: 240 seconds) 2021-05-20 14:38:19 supakeen Turn it on its side, it's easier for reading code ;) 2021-05-20 14:38:29 bjs A3: i'm not sure what you mean exactly "to push all the functions to the bottom", but yes a `def` means there's an extra layer of whitespace 2021-05-20 14:38:30 A3 :O 2021-05-20 14:38:47 --> scrabblethebabbl (~phi@2a01:598:b003:8b1:54a:21de:a1ce:8f8e) has joined #python 2021-05-20 14:39:14 A3 bjs, i mean if I don't use def main() etc then i must define each function prior to its being called, and that makes a script a bit clunkier to read through to figure out what it's doing 2021-05-20 14:39:26 <-- azizLIGHT (~azizLIGHT@unaffiliated/azizlight) has quit (Ping timeout: 240 seconds) 2021-05-20 14:39:42 bjs A3: ah yes, it's a big reason why people like to use functions in general 2021-05-20 14:39:44 <-- Secutor (~Adium@2600:1700:edb0:840:99b8:723b:90cc:7634) has quit (Quit: Leaving.) 2021-05-20 14:39:45 A3 i prefer to write code where someone can just read it top to bottom and reference called functions in an appendix as needed 2021-05-20 14:39:48 <-- aocusr (6d40f9bc@unaffiliated/db42) has left #python 2021-05-20 14:40:23 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 246 seconds) 2021-05-20 14:40:26 Samian my company's cofounder runs Windows 10. I want him to be able to run my python program. What should I do? Tell him to install anaconda and all the requisite packages? I don't want to dump work on him. I want instead to take work off his plate by prepackaging the program as much as I can 2021-05-20 14:41:06 bjs Samian: see something like pyinstaller to produce an .exe with everything packaged together 2021-05-20 14:41:29 Samian bjs, hell yes!!!! thank you!!! 2021-05-20 14:41:30 --> Sausage (~sausage@tehsausage.com) has joined #python 2021-05-20 14:41:36 --> IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has joined #python 2021-05-20 14:41:40 Samian bjs, I hope I can do that from ubuntu 2021-05-20 14:42:10 supakeen You need a Windows machine to build a Windows binary. 2021-05-20 14:42:12 bjs Samian: I think for pyinstaller you have to produce the windows executable on a windows machine, but I've not used it myself so that might have changed 2021-05-20 14:42:15 supakeen pyinstaller is not a cross-compiler. 2021-05-20 14:42:20 BrenBarn is the person comfortable on the command-line? do they know anything about Python? 2021-05-20 14:42:22 <-- tm007 (uid287041@gateway/web/irccloud.com/x-rsbzmhhgesmrfpnb) has quit (Quit: Connection closed for inactivity) 2021-05-20 14:42:29 Samian I see cool 2021-05-20 14:42:48 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-20 14:44:35 mspe depending on libraries used by your script, you could just use a portable msys2 distribution on windows 2021-05-20 14:44:50 mspe python3 and libs are in the repos 2021-05-20 14:46:17 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-20 14:46:19 <-- mrwick (~mrwick@unaffiliated/mrwick) has quit (Quit: leaving) 2021-05-20 14:47:55 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 14:48:34 A3 Do I put import pandas as pd first before def main()? 2021-05-20 14:48:50 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 14:48:57 <-- linuxlars (~lars@dhcp-15089.dhcp.sognenett.no) has quit (Quit: WeeChat 2.3) 2021-05-20 14:49:23 <-- Guest85545 (~saidi@unaffiliated/saidi) has quit (Ping timeout: 265 seconds) 2021-05-20 14:50:05 bjs A3: usually people put all the imports right at the top of the file 2021-05-20 14:51:41 A3 am I correct in thinking if I import inside def main() then it won't be accessible to the functions called later? i.e. it's put at the top so all the def's can benefit from it, right? 2021-05-20 14:51:52 bjs A3: yes 2021-05-20 14:51:55 IoannisJVM Hello,i'm trying to work with a machine-learning model that is written in jupyter. What's the most optimal solution? I converted it to python file. 2021-05-20 14:52:08 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-20 14:52:41 ChrisWarrick IoannisJVM: models written in notebooks tend to be quick hacks… 2021-05-20 14:52:41 <-- squirrel (~mj@unaffiliated/squirrel) has quit (Ping timeout: 260 seconds) 2021-05-20 14:52:50 --> kbentley57 (~mcdonald@67.63.199.177) has joined #python 2021-05-20 14:53:09 bjs either very quick hacks, or very very carefully crafted and produced and then put into a notebook to show it off 2021-05-20 14:53:14 bjs and nothing inbetween :P 2021-05-20 14:53:37 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::980e) has quit (Ping timeout: 250 seconds) 2021-05-20 14:53:46 <-- kbentley57 (~mcdonald@67.63.199.177) has quit (Remote host closed the connection) 2021-05-20 14:53:55 scrabblethebabbl IoannisJVM: You can convert the notebooks to .py files afterwards 2021-05-20 14:54:11 <-- IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has quit (Quit: Connection closed) 2021-05-20 14:54:21 <-- mokulus (~mat@176.111.230.96) has quit (Quit: WeeChat 3.1) 2021-05-20 14:54:22 <-- RougeR (~RougeR@unaffiliated/rouger) has quit (Remote host closed the connection) 2021-05-20 14:54:28 --> IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has joined #python 2021-05-20 14:54:59 --> mike18 (~geri@216.200.232.252) has joined #python 2021-05-20 14:55:18 mike18 hi sartan 2021-05-20 14:55:23 mike18 sorry got disconnected 2021-05-20 14:55:28 mike18 sartan: 2021-05-20 14:55:59 nedbat A3: "import x" is just like an assignment statement "x = 1". The name is global or local depending on where it's used. 2021-05-20 14:56:10 sartan hey mike18. I really can't figure out how to copy this buffer transaprently without breaking all of the layers between urllib, http.client, and requests lib 2021-05-20 14:56:25 sartan Even when i read() it, it's a blcoking operation. I'm a bit puzzled 2021-05-20 14:56:27 mike18 ok :D 2021-05-20 14:56:41 --> azizLIGHT (~azizLIGHT@unaffiliated/azizlight) has joined #python 2021-05-20 14:56:47 mike18 sartan: why does it break? 2021-05-20 14:56:57 sartan I tried copying the buffer output, I tried unrolling the buffer and recreating a new io.BufferedRead object but I just couldn't get it 2021-05-20 14:57:19 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (Quit: veegee) 2021-05-20 14:57:24 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 14:57:28 sartan the http client adapters used by requests lib/urllib work with streams and not with simple strings 2021-05-20 14:58:14 sartan interrupting the stream or changing the file descriptor halfway through with hacky workarounds is causing breakages. the other challenge here is that we want to do this with only a single entrypoint that doesn't require any code change at all to any other libraries or your existing code: we want something that can do all this in a like 'if debug is True, log the heck out of everything http' 2021-05-20 14:58:34 sartan after al this i'm not surprised the default libs also don't support logging the body 2021-05-20 14:58:41 --> sertsa (~sertsa@209.140.9.160) has joined #python 2021-05-20 14:58:48 --> guriya (a0ee4b0b@unaffiliated/guriya) has joined #python 2021-05-20 14:58:59 <-- panikovsky (~panikovsk@31.23.163.216) has quit (Quit: Leaving) 2021-05-20 14:59:19 --> squirrel (~mj@unaffiliated/squirrel) has joined #python 2021-05-20 14:59:21 <-- R0b0t1 (~R0b0t1@unaffiliated/r0b0t1) has left #python ("WeeChat 3.0") 2021-05-20 14:59:41 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-20 14:59:57 A3 nedbat, that's what I thought, thanks -- just verifying main() didn't have special properties such that imported things were made global 2021-05-20 15:00:20 nedbat A3: python knows nothing about main(), it's just a convention 2021-05-20 15:00:41 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 15:00:44 --> zisu8 (~textual@p200300eab722c9003d745ef24d59ffcd.dip0.t-ipconnect.de) has joined #python 2021-05-20 15:01:11 <-- freebench (~freebench@92.253.251.226) has quit (Quit: Leaving) 2021-05-20 15:01:11 --> Orlando^_ (~kenny@178.74.16.236) has joined #python 2021-05-20 15:01:12 amo i never use main(), i don't see any point 2021-05-20 15:01:33 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-20 15:01:34 <-- freebench (~freebench@92.253.251.226) has quit (Remote host closed the connection) 2021-05-20 15:01:46 <-- ram19890 (~ram@49.205.84.211) has quit (Remote host closed the connection) 2021-05-20 15:01:46 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 15:02:05 amo if __name__ == "__main__" on the other hand is a no-brainer 2021-05-20 15:02:06 A3 amo, isn't it good to write your code as 'human-readable' as possible so others can read it and understand it quickly? 2021-05-20 15:02:23 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 15:02:36 amo A3, what kind of code exactly are you writing? 2021-05-20 15:03:03 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 15:03:07 --> ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has joined #python 2021-05-20 15:03:17 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-20 15:03:42 --> dob1 (~dob1@unaffiliated/dob1) has joined #python 2021-05-20 15:03:53 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 265 seconds) 2021-05-20 15:03:55 <-- sertsa (~sertsa@209.140.9.160) has quit (Quit: Leaving) 2021-05-20 15:03:58 KirkMcDonald I tend to define a 'main' function (and to call it from a `__name__ == "__main__"` block) just because it's nicer to have the code that "does" things inside of a function. 2021-05-20 15:04:15 KirkMcDonald Keeps the local scope separate from the module scope. 2021-05-20 15:04:24 A3 amo, any code I think deserves best practices ... 2021-05-20 15:04:30 sartan i tend to reserve my main() usages for things that take argparse arguments 2021-05-20 15:04:33 --> sertsa (~sertsa@209.140.9.160) has joined #python 2021-05-20 15:04:43 <-- realies (~realies@unaffiliated/realies) has quit (Quit: ~) 2021-05-20 15:04:44 sartan but the actual class/code i use is defined outside that class 2021-05-20 15:04:50 amo KirkMcDonald, you could as well put the working code beneath the check or put it into an extra main.py 2021-05-20 15:05:06 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::4af1) has joined #python 2021-05-20 15:05:12 KirkMcDonald amo: Again, that does not separate the scopes. 2021-05-20 15:05:16 nanonyme Having a main function is great. You can then easily roll entrypoints and whatnots out of it 2021-05-20 15:05:55 <-- sertsa (~sertsa@209.140.9.160) has quit (Client Quit) 2021-05-20 15:06:04 A3 nanonyme, what does 'roll entrypoints' mean? 2021-05-20 15:06:16 --> realies (~realies@unaffiliated/realies) has joined #python 2021-05-20 15:06:28 --> sertsa (~sertsa@209.140.9.160) has joined #python 2021-05-20 15:06:51 --> kbentley57 (~bentleykw@67.63.199.177) has joined #python 2021-05-20 15:07:00 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-20 15:07:09 amo i'd say it depends on your usecase, if you're working with a CLI framework like click, it might be the pattern to go for 2021-05-20 15:07:44 amo for a pyqt application on the other hand.. 2021-05-20 15:08:01 amo it might get a bit convoluted 2021-05-20 15:08:14 --> nate4444 (~Nathan22@S0106bcd16583c035.gv.shawcable.net) has joined #python 2021-05-20 15:08:16 kbentley57 Hi guys, I'm trying to build a project using cython and pybind 11, and while it builds ok, when it runs I'm getting a lot of "undefined symbols" relating to the c++ libs. Any suggestions on where to start picking this problem apart? I'm much more of a CMake/linux/bash/c++ than python and setuptools. 2021-05-20 15:08:55 amo A3, best practices? try "import this" ;) 2021-05-20 15:09:03 nanonyme A3, https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html 2021-05-20 15:09:32 A3 amo ? 2021-05-20 15:09:45 <-- sertsa (~sertsa@209.140.9.160) has quit (Client Quit) 2021-05-20 15:09:54 amo A3, type it in a python console, you'll see :) 2021-05-20 15:09:55 <-- Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has quit (Ping timeout: 260 seconds) 2021-05-20 15:09:59 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Ping timeout: 245 seconds) 2021-05-20 15:10:00 --> Forsaken87_ (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has joined #python 2021-05-20 15:10:34 A3 ... i hear scary music >_> 2021-05-20 15:10:49 amo be not afraid 2021-05-20 15:10:52 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-20 15:11:31 guriya amo import this doesn't help anyone as they are simple words 2021-05-20 15:12:00 SnoopJ kbentley57, first step would be to figure out where the undefined symbols are defined, then figure out why that isn't being included in the linking phase. 2021-05-20 15:12:53 amo guriya, it helps in setting the right state of mind when asking these questions 2021-05-20 15:13:13 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 15:13:32 A3 thanks 2021-05-20 15:13:34 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-20 15:13:38 amo welcome :) 2021-05-20 15:13:46 <-- digitalD (~dp@65.102.234.86) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 15:15:22 IoannisJVM my flask app can't import a module although it has a __init__.py file 2021-05-20 15:15:23 A3 how can I tell whether it's okay to name something say 'data' or 'str' and when that risks overwriting some built-in name? 2021-05-20 15:15:49 --> drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-20 15:15:55 SnoopJ kbentley57, discussion is best kept to the channel, more eyes makes tricky problems shallow etc. 2021-05-20 15:16:17 <-- somis (~somis@149.56.153.186) has quit (Quit: WeeChat 3.1) 2021-05-20 15:16:19 <-- gelignite (~gelignite@55d456fd.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-20 15:16:33 SnoopJ but yes, the problem is not in the compile phase, the linker isn't including all the symbols your source wants 2021-05-20 15:16:34 amo A3, if you use an IDE like vscode, you can tell by autocompletion 2021-05-20 15:16:37 <-- kanupatar (7444491b@116.68.73.27) has quit (Quit: Connection closed) 2021-05-20 15:16:47 --> TimeTrap (~TimeTrap@c-68-82-53-117.hsd1.pa.comcast.net) has joined #python 2021-05-20 15:17:11 amo A3, for deep-diving into python, i'd recommend Thonny though 2021-05-20 15:17:24 kbentley57 SnoopJ - Do you think --no-undefined would help here as a linker flag? 2021-05-20 15:17:49 A3 does vscode have a place to explore what existing variables are in memory after executing a script like MATLAB (or Spyder)? 2021-05-20 15:17:58 A3 amo i thought vscode > Thonny 2021-05-20 15:18:42 --> vasanth2 (vasanth2ma@gateway/shell/matrix.org/x-cbogbcmfavbocvzt) has joined #python 2021-05-20 15:18:48 amo A3, vscode does much more than thonny, thonny is much more focused on giving good feedback for beginners and around debugging 2021-05-20 15:18:52 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 265 seconds) 2021-05-20 15:19:16 SnoopJ kbentley57, it would cause the error more promptly, but the issue won't be resolved until you make those symbols available to the code that wants it. That probably means adding -lwhatever to your linker invocation 2021-05-20 15:19:17 <-- TimeTrap_ (~TimeTrap@2601:44:c280:def:b814:fed9:abeb:d583) has quit (Ping timeout: 258 seconds) 2021-05-20 15:19:26 --> srandon111 (~srandon11@5.102.2.235) has joined #python 2021-05-20 15:19:45 SnoopJ (and hopefully identifying libwhatever is easy enough from looking at which symbols are undefined) 2021-05-20 15:19:57 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-20 15:20:04 <-- nkuttler (~nkuttler@unaffiliated/nkuttler) has quit (Quit: K-Lined) 2021-05-20 15:20:11 amo A3, i personally prefer thonny for debugging simple scripts and experimenting with crazy ideas, but vscode for larger projects 2021-05-20 15:20:23 amo i hope that makes sense 2021-05-20 15:20:56 --> nkuttler (~nkuttler@unaffiliated/nkuttler) has joined #python 2021-05-20 15:21:43 Bombo i got a question about exceptions: i'm using https://docs.python.org/3/library/smtplib.html e.g. except smtplib.SMTPRecipientsRefused as e: print(e) i get the msg 2021-05-20 15:22:29 --> rochelimit (~rochelimi@94.2.47.195) has joined #python 2021-05-20 15:22:39 Bombo but can i do 'except smtplib.SMTPException as e: print(e)' (which prints the same msg) can i get the 'SMTPRecipientsRefused' too? 2021-05-20 15:23:14 kbentley57 SnoopJ, I just did a nm on the library that cmake produced from sources, and the symbol exist in it, but it shows it as undefined, though the body of the function is in the source files. I can compile the library by hand with a long g++ command using the same source files, and the symbol shows there (T). 2021-05-20 15:23:21 Bombo so basically handle all errors, but print which one it is ;) 2021-05-20 15:23:32 <-- guriya (a0ee4b0b@unaffiliated/guriya) has quit (Quit: Connection closed) 2021-05-20 15:23:40 Bombo which one it would trigger 2021-05-20 15:23:46 kbentley57 SnoopJ, is there a reason the compiler would leave a symbol undefined like it's doing? 2021-05-20 15:23:49 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-20 15:24:11 kbentley57 SnoopJ, it seems so simply different that it's blowing my mind, haha. 2021-05-20 15:24:13 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-20 15:24:34 SnoopJ Bombo, yes, because SMTPRecipientsRefused is a subclass of SMTPException and it's basically calling isinstance() to check the class 2021-05-20 15:24:36 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-20 15:24:46 A3 thanks ... i'm looking at https://code.visualstudio.com/docs/setup/linux now trying to figure out how to install ipykernel for code 2021-05-20 15:24:46 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-20 15:25:02 --> pearlbear (sid310728@gateway/web/irccloud.com/x-ndhwjvizyhwshlsf) has joined #python 2021-05-20 15:25:48 <-- ElectricSheep (~esheep_zn@pool-100-19-29-200.phlapa.fios.verizon.net) has quit (Quit: ZNC - http://znc.in) 2021-05-20 15:26:02 --> cge (~cge@217.138.222.84) has joined #python 2021-05-20 15:26:12 <-- cge (~cge@217.138.222.84) has left #python 2021-05-20 15:26:34 <-- GodFather (~rcc@170.103.51.115) has quit (Ping timeout: 252 seconds) 2021-05-20 15:27:28 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 15:27:51 <-- pennyblake (a9cce516@169.204.229.22) has quit (Quit: Connection closed) 2021-05-20 15:27:51 SnoopJ kbentley57, I doubt that it is. Compilers eat source code and spit out object code. Linkers take object code from possibly many types of sources (i.e. object files, shared libraries, etc.) and combine them into an executable or library (or whatever). One second, I have an example that should illustrate what I'm talking about 2021-05-20 15:28:09 --> rgr (~rgr@p200300e4170c8002c4e361f92016a568.dip0.t-ipconnect.de) has joined #python 2021-05-20 15:28:18 kbentley57 SnoopJ thanks, I'm being humbled by this one 2021-05-20 15:28:27 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-20 15:28:41 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 260 seconds) 2021-05-20 15:30:10 Bombo SnoopJ: i mean can i get the string "SMTPRecipientsRefused" when i just check SMTPException 2021-05-20 15:30:17 kosh om nom nom nom yummy source code 2021-05-20 15:31:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 15:32:14 --> Laibsch (~Laibsch@2a01:c23:7439:bb00:f2de:f1ff:fed0:6548) has joined #python 2021-05-20 15:32:41 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Quit: Leaving) 2021-05-20 15:33:05 --> argento (~argent0@168.227.96.51) has joined #python 2021-05-20 15:33:29 --> Codaraxis_ (~Codaraxis@ip68-5-90-227.oc.oc.cox.net) has joined #python 2021-05-20 15:33:35 <-- AlyssaXY (~luz@31.127.31.50) has quit (Ping timeout: 246 seconds) 2021-05-20 15:33:41 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: No Ping reply in 180 seconds.) 2021-05-20 15:33:50 Laibsch How should I handle packages installed with pip in my user directory when updating the major version of python? How to clean things up? 2021-05-20 15:34:07 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-20 15:34:17 Laibsch Pip installs into a python-version-specific directory. 2021-05-20 15:34:55 <-- litheum (~kolbe@ec2-34-206-244-63.compute-1.amazonaws.com) has left #python 2021-05-20 15:35:09 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-20 15:35:47 <-- cliluw (~cliluw@unaffiliated/cliluw) has quit (Ping timeout: 265 seconds) 2021-05-20 15:37:08 A3 Where do I see existing variables after executing my script? I have become accustomed to having a panel to see what existing variables I have and what their types and contents are in MATLAB and Spyder; how is this done in VSCode for Python? 2021-05-20 15:37:26 <-- Codaraxis (~Codaraxis@194.110.113.10) has quit (Ping timeout: 260 seconds) 2021-05-20 15:37:43 amo you can enable debugging mode in vscode 2021-05-20 15:38:40 --> Deyaa (uid190709@gateway/web/irccloud.com/x-rcgudrlvkgiyrkum) has joined #python 2021-05-20 15:38:49 --> GodFather (~rcc@170.103.51.115) has joined #python 2021-05-20 15:38:53 amo but as i said, i find thonny is better for introspection and working out the details of small scripts 2021-05-20 15:39:20 Deyaa Hi 2021-05-20 15:39:31 amo hi Deyaa 2021-05-20 15:39:43 <-- x7b (~ffe4@mue-88-130-61-038.dsl.tropolys.de) has quit (Read error: Connection reset by peer) 2021-05-20 15:40:11 --> x7b (~ffe4@mue-88-130-61-038.dsl.tropolys.de) has joined #python 2021-05-20 15:40:14 --> john_johnk (~Thunderbi@112.54.140.77.rev.sfr.net) has joined #python 2021-05-20 15:40:18 amo A3, sure you could also use spyder, if that is what you're comfortable with? 2021-05-20 15:40:32 --> scc (~scc@2a01:4f8:1c17:67c7::42) has joined #python 2021-05-20 15:41:22 SnoopJ kbentley57, sorry about that, I had to dust off the example a little bit. Have a look at this and see if it helps clarify the broad idea of what is going on in your program: https://bpaste.net/GSJQ 2021-05-20 15:41:47 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-20 15:42:03 SnoopJ the symbol U next to _Z3foov means "undefined" if that's unclear 2021-05-20 15:42:54 kbentley57 SnoopJ, Work's got that one blocked, I think. Lame. 2021-05-20 15:43:26 kbentley57 SnoopJ I'll bring it up on my phone 2021-05-20 15:43:26 <-- cthulchu (~Cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-20 15:43:27 --> jarthur (~jarthur@2603-8080-1540-002d-a1f4-7a0c-77c0-2833.res6.spectrum.com) has joined #python 2021-05-20 15:44:00 <-- cthu| (~cthulchu@193.194.107.250) has quit (Ping timeout: 265 seconds) 2021-05-20 15:44:04 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-20 15:44:05 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 246 seconds) 2021-05-20 15:44:14 SnoopJ kbentley57, https://gist.github.com/SnoopJeDi/03d37c03903f134a2c0d0e4913661bcb 2021-05-20 15:45:02 <-- TimeTrap (~TimeTrap@c-68-82-53-117.hsd1.pa.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-20 15:45:15 <-- greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has quit (Remote host closed the connection) 2021-05-20 15:46:54 --> greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has joined #python 2021-05-20 15:47:00 kbentley57 SnoopJ Thanks! I can see that now. I'm going to re-trace my steps and make sure I'm not constantly repeating the same mistake. 2021-05-20 15:47:48 <-- mcsontos (~mcsontos@95.82.132.160) has quit (Quit: Leaving) 2021-05-20 15:47:50 SnoopJ kbentley57, so, coming back to your issue: let's trust that the compiler emitted object code for every definition fed to it and properly made space in the symbol files of files that #include others (like bar.o makes space for the symbol foo to be defined at some point in the future) 2021-05-20 15:48:53 Deyaa Anyone here have and idea about laravel socialite? I want to convert the package to python but I'm facing some issues 2021-05-20 15:49:23 SnoopJ _Probably_ you want to include these missing symbols in the link phase. The most common offender there is where you want to link against a library, but you forgot to tell the linker about it (usually with the -l flag) 2021-05-20 15:49:51 <-- darksun (~darksun@unaffiliated/darksun) has quit (Remote host closed the connection) 2021-05-20 15:49:55 SnoopJ If you tell me what the missing symbols are I might be able to tell you something more specific :) 2021-05-20 15:50:22 kbentley57 SnoopJ, It's mostly not my code, and their CMake setup / Setup.py is pretty horrendous looking, so that adds to the layer of mistrust I've got in their process..haha. 2021-05-20 15:50:29 <-- zisu8 (~textual@p200300eab722c9003d745ef24d59ffcd.dip0.t-ipconnect.de) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-20 15:50:44 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 246 seconds) 2021-05-20 15:51:00 SnoopJ yea this can happen really easily with CMake if it's not written with care 2021-05-20 15:51:36 <-- foo (~foo@unaffiliated/foo) has quit (Quit: leaving) 2021-05-20 15:51:49 kbentley57 They call a hardcoded cmake from inside the setup.py and different parts are responsible for a few different things. It's a bit unexpected from a project this large. 2021-05-20 15:51:51 * SnoopJ has had to fix a failed wrapping build because of undefined symbols more than once when coworkers juggle targets around 2021-05-20 15:52:44 SnoopJ kbentley57, sounds like a lot of computer vision code I've seen, heh. 2021-05-20 15:53:04 kbentley57 SnoopJ I didn't want to mention any names, but you're hot :) 2021-05-20 15:53:25 SnoopJ "Ah, Tensorflow. I recognized your foul stench when I was brought on board." 2021-05-20 15:53:30 kbentley57 lol 2021-05-20 15:53:34 --> IanLiu (~ian@177.172.24.227) has joined #python 2021-05-20 15:53:37 SnoopJ Probably not them, I don't think they use pybind11 :) 2021-05-20 15:54:01 kbentley57 It's OpenSfM, for a project sponsored by FB it's some hot mess at the moment 2021-05-20 15:54:24 --> veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined #python 2021-05-20 15:54:25 kbentley57 but yes I've had to mess with TF too 2021-05-20 15:55:03 SnoopJ so what symbols are missing? 2021-05-20 15:55:37 <-- l1x (uid1954@gateway/web/irccloud.com/x-xplvjfdodabdiebq) has quit (Quit: Connection closed for inactivity) 2021-05-20 15:55:41 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 260 seconds) 2021-05-20 15:56:12 IanLiu I'm using asdf to manage different python versions (similar to pyenv), and "python --version" return 3.10.0b1. Now, when I run "poetry new test", and "cd test && poetry install", poetry picks up my system python (3.9). How do I specify poetry to use the currently available python? 2021-05-20 15:56:37 <-- Jerrynicki (~niklas@p200300f577050e00048c4e2d2b40661e.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-20 15:57:32 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 15:57:37 kbentley57 I'm going to have to rebuild before I can tell you. I thought maybe my env was toast from everything I was trying, so I just nuked it all and started over. It's building the dependencies first, that always takes a few minutes. It's usually symbols from the akaze or features library. I'll get it up in a sec. 2021-05-20 15:58:26 --> fcjsx (~fcjsx_@2800:a4:838:f400:8635:d2de:e454:d912) has joined #python 2021-05-20 15:58:35 --> _rochelimit (~rochelimi@92.40.172.109.threembb.co.uk) has joined #python 2021-05-20 15:59:32 SnoopJ IanLiu, I think that's `poetry env use /path/to/your/python` 2021-05-20 15:59:50 --> aslicedbanjo (~aslicedba@host86-150-115-213.range86-150.btcentralplus.com) has joined #python 2021-05-20 15:59:53 <-- thoros (~thoros@193-154-185-59.adsl.highway.telekom.at) has quit (Ping timeout: 260 seconds) 2021-05-20 16:00:24 --> led1 (~Thunderbi@217.66.160.14) has joined #python 2021-05-20 16:00:56 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 16:02:21 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Quit: thorre) 2021-05-20 16:02:22 nate4444 I'm trying to automate a json configuration file generator. Is it best to generate it as a dict and just convert to json? 2021-05-20 16:02:22 <-- rochelimit (~rochelimi@94.2.47.195) has quit (Ping timeout: 265 seconds) 2021-05-20 16:02:44 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python 2021-05-20 16:03:16 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-20 16:03:27 --> brickfat (~brickfat@unaffiliated/brickfat) has joined #python 2021-05-20 16:03:41 grawity that definitely sounds better than trying to print("{") etc 2021-05-20 16:04:45 <-- led1 (~Thunderbi@217.66.160.14) has quit (Client Quit) 2021-05-20 16:04:49 <-- fizzizist (~Thunderbi@108.162.133.99) has quit (Quit: fizzizist) 2021-05-20 16:04:59 <-- Ergo (~ergo@91.238.59.144) has quit (Remote host closed the connection) 2021-05-20 16:05:04 <-- greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has quit (Remote host closed the connection) 2021-05-20 16:05:48 Deyaa Is there a temporary data storage package for python that I can use instead of session? 2021-05-20 16:06:00 --> greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has joined #python 2021-05-20 16:06:03 --> ss2 (~user@unaffiliated/ss2) has joined #python 2021-05-20 16:06:06 Deyaa I'm building oauth for desktop 2021-05-20 16:08:03 --> AlyssaXY (~luz@31.127.31.50) has joined #python 2021-05-20 16:08:27 <-- kline (~freedom0@lobsters/users/kline) has quit (Disconnected by services) 2021-05-20 16:08:29 --> xa0s_ (~xa0s@mab.sdf.org) has joined #python 2021-05-20 16:08:54 --> kline (~freedom0@lobsters/users/kline) has joined #python 2021-05-20 16:09:01 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-20 16:10:00 <-- rinzewind (~chema@unaffiliated/rinzewind) has quit (Quit: leaving) 2021-05-20 16:10:28 --> gambl0re (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 16:10:38 --> cliluw (~cliluw@unaffiliated/cliluw) has joined #python 2021-05-20 16:11:23 <-- fcjsx (~fcjsx_@2800:a4:838:f400:8635:d2de:e454:d912) has quit (Quit: fcjsx) 2021-05-20 16:11:26 SnoopJ Deyaa, why don't you want to store your data in a session? 2021-05-20 16:11:46 <-- spiri (~spiri@unaffiliated/spiri) has quit (Ping timeout: 240 seconds) 2021-05-20 16:12:02 --> contagious_meow (~contagiou@154.123.154.116) has joined #python 2021-05-20 16:13:01 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 260 seconds) 2021-05-20 16:13:59 <-- kline (~freedom0@lobsters/users/kline) has quit (Excess Flood) 2021-05-20 16:14:27 --> kline (~freedom0@lobsters/users/kline) has joined #python 2021-05-20 16:14:46 -- em is now known as emma 2021-05-20 16:14:46 <-- ELFrederich (~ELFrederi@siemens-industry-software-inc-216-196-155-202.static.fuse.net) has quit (Quit: Leaving) 2021-05-20 16:15:14 <-- epony (epony@unaffiliated/epony) has quit (Remote host closed the connection) 2021-05-20 16:15:22 sartan nate4444: yeah. 2021-05-20 16:15:23 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-20 16:15:35 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-20 16:15:46 --> epony (epony@unaffiliated/epony) has joined #python 2021-05-20 16:16:45 <-- whiteshadow (~whiteshad@gateway/tor-sasl/whiteshadow) has quit (Ping timeout: 240 seconds) 2021-05-20 16:17:06 --> whiteshadow (~whiteshad@gateway/tor-sasl/whiteshadow) has joined #python 2021-05-20 16:18:09 --> srandon1112 (~srandon11@192.145.127.60) has joined #python 2021-05-20 16:18:40 -- srandon1112 is now known as brambaaz 2021-05-20 16:19:06 nate4444 In a dataclass, you can exclude a variable from the auto init? 2021-05-20 16:19:22 nate4444 sartan, grawity: cool, thanks 2021-05-20 16:19:27 <-- brambaaz (~srandon11@192.145.127.60) has quit (Client Quit) 2021-05-20 16:19:35 --> salitos (~contagiou@154.123.162.87) has joined #python 2021-05-20 16:19:55 --> srandon1112 (~srandon11@159.48.53.28) has joined #python 2021-05-20 16:20:16 <-- srandon1112 (~srandon11@159.48.53.28) has left #python 2021-05-20 16:20:16 SnoopJ nate4444, yes, use dataclasses.field and pass init=False https://docs.python.org/3/library/dataclasses.html#dataclasses.field 2021-05-20 16:20:42 <-- contagious_meow (~contagiou@154.123.154.116) has quit (Read error: Connection reset by peer) 2021-05-20 16:20:50 <-- srandon111 (~srandon11@5.102.2.235) has quit (Ping timeout: 246 seconds) 2021-05-20 16:21:18 nate4444 SnoopJ: Ah my bad I missed that. Thanks 2021-05-20 16:21:44 <-- digitalD (~dp@65.102.234.86) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 16:22:27 Deyaa SnoopJ: I want the package to be independent without using any extra packages like flask 2021-05-20 16:22:48 SnoopJ Deyaa, ouch. 2021-05-20 16:22:55 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-20 16:23:20 nedbat Deyaa: why avoid using useful code? 2021-05-20 16:23:28 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-20 16:23:42 --> bbear (~znc@21212.s.t4vps.eu) has joined #python 2021-05-20 16:24:29 Deyaa What if someone else wants to use it with Django? nedbat 2021-05-20 16:24:50 <-- _rochelimit (~rochelimi@92.40.172.109.threembb.co.uk) has quit (Read error: Connection reset by peer) 2021-05-20 16:25:00 SnoopJ you don't need flask to have a session 2021-05-20 16:25:02 nedbat Deyaa: that gets intricate, it's true. 2021-05-20 16:25:09 <-- IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has quit (Quit: Connection closed) 2021-05-20 16:25:56 Deyaa SnoopJ: really !! 2021-05-20 16:26:09 Deyaa What should I use? 2021-05-20 16:26:29 Deyaa nedbat: yeah man 2021-05-20 16:26:43 nedbat i want to use subprocess.getoutput, but i want bytes so that i can try different encodings. i don't see a way to do it :( 2021-05-20 16:27:05 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-20 16:27:23 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 16:27:31 Deyaa Laravel/socialite is doing a greate job but they are using the built in request package 2021-05-20 16:27:43 --> _rochelimit (~rochelimi@94.2.47.195) has joined #python 2021-05-20 16:28:14 Deyaa nedbat: bytes(p) 2021-05-20 16:28:53 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-20 16:29:03 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:1b0d:bea3:27b0:db7e) has quit (Ping timeout: 258 seconds) 2021-05-20 16:29:09 SnoopJ Deyaa, requests.Session is good. That said, I'd probably look for a library that does oauth 2021-05-20 16:29:10 nedbat Deyaa: I'm not sure what p is if I am starting with: subprocess.getoutput(CMD) 2021-05-20 16:29:21 <-- SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has quit (Ping timeout: 268 seconds) 2021-05-20 16:29:23 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-20 16:29:24 <-- fflori (~fflori@mob-194-230-155-151.cgn.sunrise.net) has quit (Remote host closed the connection) 2021-05-20 16:29:47 <-- vuoto (~vuoto@80.71.142.174) has quit (Remote host closed the connection) 2021-05-20 16:30:11 Deyaa p = subprocess .. 2021-05-20 16:30:14 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-20 16:30:27 Deyaa The convert it to python 2021-05-20 16:30:35 <-- vuoto (~vuoto@80.71.142.174) has quit (Client Quit) 2021-05-20 16:30:51 grawity didn't know that exists, but it kinda looks like a legacy function... I'd have used subprocess.run(["foo", "bar"], stdout=subprocess.PIPE) as its .stdout and .stderr are bytes 2021-05-20 16:30:54 <-- Codaraxis_ (~Codaraxis@ip68-5-90-227.oc.oc.cox.net) has quit (Quit: Leaving) 2021-05-20 16:30:56 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-20 16:31:00 <-- aslicedbanjo (~aslicedba@host86-150-115-213.range86-150.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-20 16:31:04 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-20 16:31:11 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 16:31:26 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-20 16:31:28 --> mangold (~mangold@198.98.183.141) has joined #python 2021-05-20 16:31:39 <-- brickfat (~brickfat@unaffiliated/brickfat) has quit (Quit: Leaving) 2021-05-20 16:31:39 Deyaa Convert it to bytes ** 2021-05-20 16:31:41 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Quit: Zzzzzz.....) 2021-05-20 16:31:44 SnoopJ nedbat, yea, looks like getoutput() calls getstatusoutput() which explicitly passes text=True 2021-05-20 16:32:39 nedbat oh well 2021-05-20 16:32:48 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-20 16:33:01 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-20 16:33:59 <-- joelmo (uid17355@gateway/web/irccloud.com/x-gbbuktwnfcmvvfqk) has quit (Quit: Connection closed for inactivity) 2021-05-20 16:34:01 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 260 seconds) 2021-05-20 16:34:38 SnoopJ check_output() is close-ish 2021-05-20 16:35:21 SnoopJ which is where that ends up (well, it ends up in run(), but that's much less "show me the output of this command") 2021-05-20 16:35:26 <-- Betal (~Betal@unaffiliated/betal) has quit (Ping timeout: 240 seconds) 2021-05-20 16:36:12 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-20 16:37:08 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-20 16:37:10 --> FozzyB3ar (~f0zzyB3ar@136.37.127.43) has joined #python 2021-05-20 16:37:15 <-- juanfra (~juanfra@unaffiliated/juanfra) has quit (Quit: juanfra) 2021-05-20 16:37:26 <-- cliluw (~cliluw@unaffiliated/cliluw) has quit (Ping timeout: 240 seconds) 2021-05-20 16:37:32 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-20 16:37:41 --> cliluw (~cliluw@unaffiliated/cliluw) has joined #python 2021-05-20 16:38:06 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 260 seconds) 2021-05-20 16:38:09 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-20 16:38:23 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has quit (Quit: thorre) 2021-05-20 16:38:40 --> Deesl (~bsdboy@redhat/deesl) has joined #python 2021-05-20 16:38:41 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-20 16:38:43 --> thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has joined #python 2021-05-20 16:38:44 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Ping timeout: 245 seconds) 2021-05-20 16:39:12 --> testnode (bbc26c58@187.194.108.88) has joined #python 2021-05-20 16:39:49 Deyaa SnoopJ: requests is used for sending requests 2021-05-20 16:40:06 SnoopJ yes indeed 2021-05-20 16:40:17 Deyaa Web server sessions ar used for storing data locally 2021-05-20 16:40:32 Deyaa To compare it with the response data 2021-05-20 16:40:39 * SnoopJ shrugs 2021-05-20 16:40:47 <-- BakaKuna (~Thunderbi@86-89-65-191.fixed.kpn.net) has quit (Ping timeout: 246 seconds) 2021-05-20 16:40:57 --> DHARMAKAYA (~DHARMAKAY@189.174.247.195) has joined #python 2021-05-20 16:40:57 <-- f0zzyB3ar (f0zzyB3ar@gateway/vpn/protonvpn/f0zzyb3ar) has quit (Ping timeout: 260 seconds) 2021-05-20 16:40:58 SnoopJ Did my best to guess at the question's complete context there 2021-05-20 16:41:28 Deyaa Thanks man anyway 2021-05-20 16:41:44 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:c3f1:9689:fc74:2b1e) has joined #python 2021-05-20 16:43:06 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 240 seconds) 2021-05-20 16:44:49 <-- SteveG (~steveg@pdpc/supporter/21for7/steveg) has quit (Quit: "Jayne, your mouth is talking. You might wanna look to that.") 2021-05-20 16:44:53 <-- benoitc (sid1888@couchdb/committer/pdpc.active.benoitc) has quit 2021-05-20 16:45:07 --> SteveG (~steveg@pdpc/supporter/21for7/steveg) has joined #python 2021-05-20 16:45:31 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-20 16:46:30 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 16:46:37 testnode Hi all 2021-05-20 16:47:04 testnode Is me again! 2021-05-20 16:47:10 --> jbeez (jbeez@lucky13.jbeez.net) has joined #python 2021-05-20 16:47:22 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 16:47:26 amo mario! 2021-05-20 16:47:34 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-20 16:48:03 jbeez hello 2021-05-20 16:48:53 <-- kosh (~kosh@p200300d08f11af00c0adde103b236462.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-20 16:49:01 testnode I'm working with python-mysql(ssh-tunnel) and whant to show my tables graphical like a Excel or Query Workbench. (sorry for my poor english) 2021-05-20 16:49:23 jbeez I have a script thats been working for quite a while that just stopped, I think python version had a minor update, its running 2.7.17 currently. Anyway i try to run this command python -c 'import sys, json; myobj = json.load(sys.stdin); print(myobjblahblahblah and it tells me ImportError: No module named site 2021-05-20 16:49:32 jbeez I don't see where I'm trying to import "site"? 2021-05-20 16:49:39 --> benoitc_ (sid1888@couchdb/committer/pdpc.active.benoitc) has joined #python 2021-05-20 16:49:44 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-20 16:49:55 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-20 16:50:00 SnoopJ jbeez, `site` is one of the modules that's imported at interpreter startup 2021-05-20 16:50:03 <-- bdonnahue2 (~bdonnahue@208.59.177.131) has quit (Read error: Connection reset by peer) 2021-05-20 16:50:19 <-- digitalD (~dp@65.102.234.86) has quit (Client Quit) 2021-05-20 16:50:25 --> bdonnahue2 (~bdonnahue@208.59.177.131) has joined #python 2021-05-20 16:50:30 <-- yskapell (~masteryod@77.49.74.60.dsl.dyn.forthnet.gr) has quit (Quit: leaving) 2021-05-20 16:50:34 SnoopJ `python3 -c "import sys; print('site' in sys.modules) # is site imported?"` -> True 2021-05-20 16:50:35 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 246 seconds) 2021-05-20 16:51:01 <-- benoitc_ (sid1888@couchdb/committer/pdpc.active.benoitc) has quit (Client Quit) 2021-05-20 16:51:11 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 16:51:11 jbeez my hampsters are spinning 2021-05-20 16:51:17 <-- x7b (~ffe4@mue-88-130-61-038.dsl.tropolys.de) has quit (Ping timeout: 246 seconds) 2021-05-20 16:51:39 SnoopJ you can turn that behavior off with -S in Python3, but I'm not sure about archaeological versions 2021-05-20 16:51:47 --> juanfra (~juanfra@unaffiliated/juanfra) has joined #python 2021-05-20 16:52:47 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-20 16:52:48 --> _jimvideo_ (~jimvideo@64.188.177.168) has joined #python 2021-05-20 16:53:04 <-- vimart (~vimart@85.255.233.3) has quit (Quit: WeeChat 2.8) 2021-05-20 16:53:08 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-20 16:53:12 jbeez this is a hacky script to update Plex media server on a freenas installation OR freebsd installation, and I'm merely leveraging the version of Python that plex ships which they aptly name, "Plex Script Host" but its really a python binary 2021-05-20 16:53:54 jbeez one of the constraints was to use what was there, but let me see if i can disable it in this version as well 2021-05-20 16:54:07 SnoopJ jbeez, I'd see if it accepts the -S commandline flag, which will suppress this import 2021-05-20 16:54:25 SnoopJ AFAICT the flag itself has been around for a while, it's definitely there in my 2.7.18 2021-05-20 16:54:33 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-20 16:55:12 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-20 16:55:38 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-20 16:55:39 jbeez it takes the flag, then tells me it cant import module json 2021-05-20 16:56:08 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-20 16:56:11 <-- jimvideo (~jimvideo@64.188.177.168) has quit (Ping timeout: 260 seconds) 2021-05-20 16:56:16 <-- tomg (tomg@64-7-151-80.border7-dynamic.dsl.sentex.ca) has left #python ("Leaving") 2021-05-20 16:56:26 SnoopJ Sounds like a weird Python, then. 2021-05-20 16:56:55 SnoopJ maybe missing the stdlib 2021-05-20 16:57:20 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-20 16:57:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 16:57:55 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-20 16:57:58 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-20 16:58:03 jbeez I see a lib/libpython27.so but i may have to feed it where its location is now or something, going to try a few things 2021-05-20 16:58:15 --> mxp (~mxp@82.98.30.69) has joined #python 2021-05-20 16:58:18 --> nbro (~nbro@unaffiliated/nbro) has joined #python 2021-05-20 16:58:21 <-- greedom (~greedom@2001:16b8:3290:9d00:d932:396:4300:7a8c) has quit (Remote host closed the connection) 2021-05-20 16:58:26 <-- drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Ping timeout: 265 seconds) 2021-05-20 16:58:28 <-- nbro (~nbro@unaffiliated/nbro) has quit (Remote host closed the connection) 2021-05-20 16:58:32 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Quit: WeeChat 3.1) 2021-05-20 16:59:36 SnoopJ libpython is basically the interpreter 2021-05-20 16:59:39 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-20 16:59:52 <-- i7c (Rmit7A5pyb@unaffiliated/i7c) has quit (Quit: WeeChat 3.0.1) 2021-05-20 17:00:14 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Client Quit) 2021-05-20 17:00:46 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-20 17:00:48 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Read error: Connection reset by peer) 2021-05-20 17:00:52 <-- juanfra (~juanfra@unaffiliated/juanfra) has quit (Quit: juanfra) 2021-05-20 17:01:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 17:01:14 SnoopJ but json should live in the interpreter site, it's not "built-in" in the sense that it isn't part of libpython/etc. 2021-05-20 17:01:47 <-- mangold (~mangold@198.98.183.141) has quit (Ping timeout: 246 seconds) 2021-05-20 17:02:18 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-20 17:02:25 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 260 seconds) 2021-05-20 17:02:32 <-- AcTiVaTe (~activate@host-4b6u8h.tnz1.zeelandnet.nl) has quit (Ping timeout: 240 seconds) 2021-05-20 17:03:33 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-20 17:04:06 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-20 17:04:17 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-20 17:05:56 <-- ss2 (~user@unaffiliated/ss2) has quit (Quit: ERC (IRC client for Emacs 27.2)) 2021-05-20 17:06:39 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 17:06:42 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-20 17:07:36 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 17:08:01 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 260 seconds) 2021-05-20 17:08:21 --> Sheilong (uid293653@gateway/web/irccloud.com/x-xqngqcqyazccheyp) has joined #python 2021-05-20 17:10:09 testnode Hi all 2021-05-20 17:10:21 <-- davegarath (~dave@net-93-66-98-48.cust.vodafonedsl.it) has quit (Remote host closed the connection) 2021-05-20 17:10:22 testnode Me again! 2021-05-20 17:10:31 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 265 seconds) 2021-05-20 17:10:41 <-- aidanh (~aidanh@unaffiliated/aidanh) has quit (Ping timeout: 240 seconds) 2021-05-20 17:10:46 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 260 seconds) 2021-05-20 17:11:34 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-20 17:11:39 testnode I'm working with python-mysql(ssh-tunnel) and I want to show my ouput tables graphical like an Excel or Query Workbench. (sorry for my poor english), How can i do this? (Jupyter notebook maybe, but i don't know how) 2021-05-20 17:11:41 <-- leo60228 (~leo60228@098-121-230-017.res.spectrum.com) has quit (Quit: ZNC 1.8.1 - https://znc.in) 2021-05-20 17:11:44 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-20 17:12:16 --> aidanh (~aidanh@unaffiliated/aidanh) has joined #python 2021-05-20 17:12:28 --> __alex (~alex@95.90.254.243) has joined #python 2021-05-20 17:14:40 <-- bronsen (~bronsen@pdpc/supporter/professional/housetier) has left #python ("WeeChat 3.1") 2021-05-20 17:15:08 --> cthulchu (~cthulchu@193.194.107.250) has joined #python 2021-05-20 17:15:12 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-20 17:15:46 --> AcTiVaTe (~activate@host-4b6u8h.tnz1.zeelandnet.nl) has joined #python 2021-05-20 17:16:58 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-20 17:17:38 <-- nickshanks (~nick@unaffiliated/nickshanks) has quit (Quit: ZNC 1.7.5+deb4 - https://znc.in) 2021-05-20 17:17:50 <-- rgr (~rgr@p200300e4170c8002c4e361f92016a568.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-20 17:18:29 <-- mexen (uid495612@gateway/web/irccloud.com/x-hehjdlruknpvccnl) has quit (Quit: Connection closed for inactivity) 2021-05-20 17:18:48 --> securethemews (~securethe@2a00:23c4:1e98:8f00::4) has joined #python 2021-05-20 17:19:09 --> nickshanks (~nick@unaffiliated/nickshanks) has joined #python 2021-05-20 17:19:11 <-- niv (~niv@limbo.cypherpunks.io) has quit (Ping timeout: 260 seconds) 2021-05-20 17:19:21 <-- scrabblethebabbl (~phi@2a01:598:b003:8b1:54a:21de:a1ce:8f8e) has quit (Remote host closed the connection) 2021-05-20 17:19:36 --> yamz (~contagiou@154.122.183.132) has joined #python 2021-05-20 17:19:39 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Ping timeout: 260 seconds) 2021-05-20 17:20:21 nate4444 If I have two Paths, one a full path ('/home/a/b/c/d'), and a child path ('a/b/c/d'), is there a way to get an output of '/home'. The mutual exclusion of the two paths? 2021-05-20 17:20:32 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: WeeChat 3.1) 2021-05-20 17:21:00 --> niv (~niv@limbo.cypherpunks.io) has joined #python 2021-05-20 17:21:17 --> knivey (~knivey@internet.relay-chat.pro) has joined #python 2021-05-20 17:21:31 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-20 17:22:23 --> anthepro (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-20 17:22:46 --> jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has joined #python 2021-05-20 17:23:01 <-- salitos (~contagiou@154.123.162.87) has quit (Ping timeout: 260 seconds) 2021-05-20 17:23:10 <-- MarderIII (~MarderIII@2001:981:5b5b:1:4c37:134:afb3:6d3f) has quit (Quit: Leaving) 2021-05-20 17:23:21 <-- Deesl (~bsdboy@redhat/deesl) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 17:23:28 nate4444 The opposite of relative_to 2021-05-20 17:23:37 ChrisWarrick testnode: well, that depends on what you want to do with those tables. perhaps all you need is an export to .csv or .xlsx. Or perhaps you’d need something more complicated for real-time editing. 2021-05-20 17:24:17 <-- manti7 (~manti7@176.10.104.94) has quit (Quit: WeeChat 3.1) 2021-05-20 17:24:34 <-- GravitaZ (uid7509@gateway/web/irccloud.com/x-ifajgfkoydyznxnx) has quit (Quit: Connection closed for inactivity) 2021-05-20 17:26:36 <-- tjm (ninex@safest.space) has left #python 2021-05-20 17:27:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 17:28:09 --> doc|home (~doc@gentoo/contributor/doc-007) has joined #python 2021-05-20 17:29:04 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-20 17:29:14 testnode ChrisWarrick: Only to show output, but not using excel. 2021-05-20 17:29:30 ChrisWarrick testnode: why not using excel? 2021-05-20 17:29:33 <-- spithash (~spithash@gateway/tor-sasl/spithash) has quit (Ping timeout: 240 seconds) 2021-05-20 17:30:49 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 265 seconds) 2021-05-20 17:31:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 17:31:33 --> spithash (~spithash@gateway/tor-sasl/spithash) has joined #python 2021-05-20 17:31:38 --> leo60228 (~leo60228@098-121-230-017.res.spectrum.com) has joined #python 2021-05-20 17:32:17 --> juanfra (~juanfra@unaffiliated/juanfra) has joined #python 2021-05-20 17:32:30 testnode ChrisWarrick: well, i need some data from mysql, proccess some information and obtain any result, but i want to show like by rows with columns with header and can move into the sheet or table with my mouse. in a meeting 2021-05-20 17:33:16 ChrisWarrick testnode: I’d look into an existing tool that does that with mysql instead of rolling your own 2021-05-20 17:33:24 testnode ChrisWarrick: but, you are right, write my output  in a cvs file and open with Excel to show it . 2021-05-20 17:33:33 --> brutamontes (~brutamont@89.26.182.103) has joined #python 2021-05-20 17:33:48 brutamontes is there any tool to get emails from url list? 2021-05-20 17:33:49 <-- Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has quit (Remote host closed the connection) 2021-05-20 17:33:55 ChrisWarrick testnode: otherwise, you could look for libraries that can do this for your web thing of choice, or you could try with qt… but again, that’s a lot of work 2021-05-20 17:34:34 <-- ponyofdeath (~vladi@cpe-24-94-16-66.san.res.rr.com) has quit (Quit: WeeChat 3.1) 2021-05-20 17:35:13 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-20 17:35:13 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-20 17:35:22 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-20 17:35:26 redsh brutamontes: Emails? URL lists? What? 2021-05-20 17:35:26 --> Guest48 (~textual@cpe-107-185-48-127.socal.res.rr.com) has joined #python 2021-05-20 17:35:55 mike18 can someone tell my why the following give error ValueError: I/O operation on closed file? https://ideone.com/kZfjsl 2021-05-20 17:36:09 redsh There's a SMTP module in the standard library for sending email. There's some third-party libraries with IMAP support too. 2021-05-20 17:36:59 testnode ChrisWarrick: It is my first step, then y need to write my output in a json to comunicate with laravel and php. (I don't know if it is posible but i said yes) 2021-05-20 17:37:46 redsh mike18: Because you're assigning `output` to `debug_data` on line 9, and right after that, the context manager (`with BytesIO as output:`) closes, closing `output`. 2021-05-20 17:37:56 ChrisWarrick testnode: I wouldn’t bother with much more than excel then 2021-05-20 17:38:01 redsh And hence, closing `debug_data` 2021-05-20 17:38:02 mike18 how to assign it correctly? 2021-05-20 17:38:13 --> ponyofdeath (~vladi@2606:6000:cfc0:2b:1850:c071:a926:7ef5) has joined #python 2021-05-20 17:38:56 redsh I guess you could just do `debug_data = output.getbuffer()` on line 9 or whatever you need to do to get the data, and then `f.write(debug_data)` on line 12? 2021-05-20 17:39:23 mike18 can i use the debug_data in 12 than? 2021-05-20 17:39:33 mike18 ok 2021-05-20 17:39:42 mike18 i guess getbuffer gets the actual data 2021-05-20 17:40:00 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-20 17:40:16 --> luizfrds (~Luiz@152.250.243.147) has joined #python 2021-05-20 17:40:27 mike18 now i get: BufferError: Existing exports of data: object cannot be re-sized 2021-05-20 17:40:32 mike18 for debug_data = output.getbuffer() 2021-05-20 17:41:02 testnode ChrisWarrick: thanks for your orientation, I will continue 2021-05-20 17:41:18 ChrisWarrick testnode: you’re welcome! 2021-05-20 17:41:32 redsh I think it should be getvalue(), not getbuffer() 2021-05-20 17:41:40 redsh Plus maybe a seek(0) beforehand? 2021-05-20 17:41:43 <-- doc|home (~doc@gentoo/contributor/doc-007) has quit (Quit: Things to do) 2021-05-20 17:43:01 --> Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has joined #python 2021-05-20 17:43:26 mike18 and getvalue i can use to write the file? 2021-05-20 17:43:46 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 17:43:56 <-- A3 (~A1@2603:9004:510:d155:fd71:142c:560b:a5f0) has left #python ("thanks for your help") 2021-05-20 17:44:00 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 17:44:44 <-- Barones (~Barones@2804:48dc:8500:0:f96e:269:7ab5:ae6a) has quit (Quit: Leaving) 2021-05-20 17:46:01 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has left #python 2021-05-20 17:46:02 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-20 17:46:02 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-20 17:46:07 --> doc|home (~doc@gentoo/contributor/doc-007) has joined #python 2021-05-20 17:46:17 <-- DHARMAKAYA (~DHARMAKAY@189.174.247.195) has quit (Ping timeout: 260 seconds) 2021-05-20 17:47:03 <-- deekej (~deekej@ip4-95-82-164-84.cust.nbox.cz) has quit (Remote host closed the connection) 2021-05-20 17:47:06 <-- sagax (~sagax_nb@213.138.71.146) has quit (Ping timeout: 240 seconds) 2021-05-20 17:47:56 --> heyitsrama (~heyitsram@2601:641:400:423:cec:6236:4a5:dee0) has joined #python 2021-05-20 17:47:58 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Quit: WeeChat 3.1) 2021-05-20 17:48:00 brutamontes redsh: yes 2021-05-20 17:48:04 brutamontes to generate leads 2021-05-20 17:48:21 <-- Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has quit (Ping timeout: 240 seconds) 2021-05-20 17:48:27 redsh brutamontes: What do lists of URLs and emails have to do with each other? 2021-05-20 17:48:27 ChrisWarrick brutamontes: don’t spam people 2021-05-20 17:48:36 --> luigi (luigimarqs@gateway/shell/matrix.org/x-nlkiwatewikoxxzn) has joined #python 2021-05-20 17:48:53 brutamontes redsh: what do you mean? 2021-05-20 17:48:59 brutamontes ChrisWarrick: stfu... 2021-05-20 17:49:04 redsh brutamontes: Hey, that's my line. 2021-05-20 17:49:04 <-- luigi (luigimarqs@gateway/shell/matrix.org/x-nlkiwatewikoxxzn) has left #python ("User left") 2021-05-20 17:49:08 redsh lol 2021-05-20 17:49:16 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-20 17:49:46 mike18 redsh: and getvalue i can use to write the file? 2021-05-20 17:50:17 <-- doc|home (~doc@gentoo/contributor/doc-007) has quit (Client Quit) 2021-05-20 17:51:06 redsh mike18: If you call getvalue() within the context manager. 2021-05-20 17:51:24 mike18 or return it? 2021-05-20 17:51:37 mike18 pack it into a function...? 2021-05-20 17:51:42 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Quit: good riddance) 2021-05-20 17:51:48 mike18 return ... getvalue() 2021-05-20 17:52:19 <-- hexa- (~hexa-@juno.lossy.network) has quit (Quit: WeeChat 2.9) 2021-05-20 17:52:37 <-- heyitsrama (~heyitsram@2601:641:400:423:cec:6236:4a5:dee0) has quit (Ping timeout: 258 seconds) 2021-05-20 17:53:12 --> anthepro (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-20 17:53:36 --> hexa- (~hexa-@juno.lossy.network) has joined #python 2021-05-20 17:53:54 nedbat brutamontes: everything ok? 2021-05-20 17:54:03 <-- t1054Gues (crazyed@wrongplanet/CrazyEddy) has quit (Read error: Connection reset by peer) 2021-05-20 17:54:25 redsh Why would you return it? It seems like the goal is to write the contents to a file, not return it from a function. But sure, if that's what you want. 2021-05-20 17:54:52 mike18 redsh: i tried that: https://ideone.com/cIbQiM ... but i cannot see a file beeing created 2021-05-20 17:54:55 <-- tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has quit (Read error: Connection reset by peer) 2021-05-20 17:55:28 --> tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has joined #python 2021-05-20 17:56:18 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:4ce:d575:71b1:39a9) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 17:56:19 redsh I don't know what to do about a missing file. 2021-05-20 17:56:24 --> Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has joined #python 2021-05-20 17:56:24 mike18 redsh: im running it in a unit test 2021-05-20 17:56:45 mike18 oh wait - im running it in docker ^^ 2021-05-20 17:57:01 <-- nuala (~nuala@unaffiliated/nuala) has quit (Quit: () 2021-05-20 17:57:35 mike18 forgot to mount stuff 2021-05-20 17:57:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 17:57:48 <-- jfhbrook (sid301834@gateway/web/irccloud.com/x-hwyuwckeuhqrsdhm) has quit 2021-05-20 17:59:42 --> doc|home (~doc@gentoo/contributor/doc-007) has joined #python 2021-05-20 18:00:18 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-20 18:00:36 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 18:00:37 <-- doc|home (~doc@gentoo/contributor/doc-007) has left #python 2021-05-20 18:01:51 --> t1054Gues (crazyed@wrongplanet/CrazyEddy) has joined #python 2021-05-20 18:02:06 <-- snarkysn1 (~snarkysna@193.56.240.87) has quit (Ping timeout: 240 seconds) 2021-05-20 18:02:19 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-20 18:02:37 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-20 18:05:09 <-- randomness (~randomnes@unaffiliated/randomness) has quit (Quit: ZNC 1.7.5+deb4 - https://znc.in) 2021-05-20 18:06:06 <-- aball (~aball@172.241.25.162) has quit (Ping timeout: 240 seconds) 2021-05-20 18:06:32 <-- dudek (~dudek@185.150.236.112) has quit (Ping timeout: 246 seconds) 2021-05-20 18:06:54 --> dubbie (~strength@pppoe.dyn-67-21-110-74.hurontel.on.ca) has joined #python 2021-05-20 18:07:21 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-20 18:07:25 dubbie from x import y ... what are the names for x and y? library and function? 2021-05-20 18:07:54 <-- morgandark (averydark@gateway/vpn/protonvpn/averydark) has quit (Quit: Leaving) 2021-05-20 18:08:05 amo function or class 2021-05-20 18:08:21 amo and yes+ 2021-05-20 18:08:32 nedbat dubbie: x is module 2021-05-20 18:10:04 redsh x is a module, y is anything from the module (function, class, constant etc.) 2021-05-20 18:11:04 --> ElPresid1 (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has joined #python 2021-05-20 18:11:05 dubbie ok cool. and you can look up each function on a module's documentation? if it's not at python.org, you have to hunt down the site? 2021-05-20 18:11:22 <-- mike18 (~geri@216.200.232.252) has quit (Read error: Connection reset by peer) 2021-05-20 18:11:45 dubbie so classes end in () it's not what's in the () that's called the class? 2021-05-20 18:12:04 <-- akoana (~ah@unaffiliated/akoana) has left #python ("Leaving") 2021-05-20 18:12:13 nedbat dubbie: i'm not sure what you mean by "classes end in ()"? 2021-05-20 18:12:22 petn-randall dubbie: That works, or you can simply call `help(function_name)` in the python interactive shell. 2021-05-20 18:13:13 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-20 18:14:36 jbeez SnoopJ: doing some comparisons on a very old version I had archived (2.7.12) compared to their current (2.7.17) implementation, it looks like before all the modules were directly here /usr/local/share/plexmediaserver-plexpass/Resources/Python/lib/python2.7/ and on the new install in that directory is merely another directory called site-packages 2021-05-20 18:14:52 jbeez pretty sure this is all just some goofy enviornment thing i need to figure out and define 2021-05-20 18:16:23 dubbie nedbat: i always mix up the jargon cause i can't really remember the differences bettwen classes and objects and classinfo etc. 2021-05-20 18:16:28 dubbie petn-randall: thank you 2021-05-20 18:16:35 SnoopJ nate4444, if they were both anchored, you could use os.path.commonpath(). Here's a solution I doodled up that walks both paths in reverse. Not sure if I caught all the edge cases though: https://bpaste.net/4R7A 2021-05-20 18:17:06 SnoopJ I guess actually if they were both anchored, the guard at the top of that function would apply: it wouldn't really make sense for one to prefix the other 2021-05-20 18:17:29 petn-randall dubbie: "class" is the template, "object" is an instance of a class. Think of it as a rubber stamp being the class, and every print on the paper being an instance. 2021-05-20 18:18:05 -- guntbert is now known as yesitsme 2021-05-20 18:18:23 <-- john_johnk (~Thunderbi@112.54.140.77.rev.sfr.net) has quit (Read error: Connection reset by peer) 2021-05-20 18:18:26 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Ping timeout: 240 seconds) 2021-05-20 18:18:36 dubbie petn-randall: nice 2021-05-20 18:19:05 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-20 18:19:16 dubbie is there like a cheat sheet or some kind of riddle/poem thing like that for the basic syntax? so i can memorize it better/easier 2021-05-20 18:19:37 --> salitos (~contagiou@154.122.197.141) has joined #python 2021-05-20 18:19:51 -- yesitsme is now known as guntbert_ 2021-05-20 18:20:28 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Remote host closed the connection) 2021-05-20 18:20:49 dubbie i'm doing a trafficlights demo from gpiozero and i've got everything to work, but i want to get lights.green.blink() to blink faster, but when i put numbers in the () i get syntax errors. just want it to blink quickly 2021-05-20 18:21:06 SnoopJ nate4444, oh, the `islice` in that file is just noise, too. I had a few false starts at this problem :) 2021-05-20 18:21:14 nedbat dubbie: if you put your code into a pastebin, we can help with the errors. 2021-05-20 18:22:32 <-- mxp (~mxp@82.98.30.69) has quit (Ping timeout: 265 seconds) 2021-05-20 18:23:06 <-- yamz (~contagiou@154.122.183.132) has quit (Ping timeout: 260 seconds) 2021-05-20 18:23:09 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 260 seconds) 2021-05-20 18:23:16 dubbie https://pastebin.com/wkjUdbxp 2021-05-20 18:23:17 infobob https://bpaste.net/GE2Q (repasted for dubbie) 2021-05-20 18:24:00 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 18:24:23 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 246 seconds) 2021-05-20 18:24:29 --> lucasb (uid333435@gateway/web/irccloud.com/x-lxofpqhtuygtpwpp) has joined #python 2021-05-20 18:25:07 redsh Seperate arguments are seperated by commas. i.e .05, .05 2021-05-20 18:26:22 nedbat dubbie: did you see redsh's suggestion? 2021-05-20 18:26:36 <-- braincrash (~braincras@113-148-128-083.dynamic.caiway.nl) has quit (Ping timeout: 260 seconds) 2021-05-20 18:27:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 18:27:58 dubbie hahaha ohhh man im so bad at this... 45mins for a comma. >.< 2021-05-20 18:28:05 dubbie thanks guys that's awesome. its working now 2021-05-20 18:28:44 dubbie redsh: nedbat: petn-randall: amo: cheers 2021-05-20 18:29:18 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 18:29:19 <-- brutamontes (~brutamont@89.26.182.103) has quit (Remote host closed the connection) 2021-05-20 18:29:31 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 18:29:34 --> ComCat (~comcat@gateway/tor-sasl/comcat) has joined #python 2021-05-20 18:30:37 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 18:32:46 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-20 18:33:41 <-- pizdets (~pizdets@183.182.114.88) has quit (Ping timeout: 240 seconds) 2021-05-20 18:34:32 <-- cliluw (~cliluw@unaffiliated/cliluw) has quit (Ping timeout: 246 seconds) 2021-05-20 18:34:55 ComCat IMPORTANT NOTICE: Hi Ops. Please update the topic to point to the new server (libera.chat). Thank you. Current situation: crown prince of korea and co-founder of MtGox (bitcoin exit-scam) https://en.wikipedia.org/wiki/Andrew_Lee_(entrepreneur) - https://en.wikipedia.org/wiki/Mt._Gox#Bankruptcy;_stolen_bitcoin_(2014%E2%80%93ongoing) - has now full control over Freenode and has destaffed ALL the staffers you knew. The staffers have founded and 2021-05-20 18:35:00 ComCat moved to Libera.chat. Sponsors of Freenode are beginning to pull out, it is unknown for how long the freenode will be stable. Most channels, projects and users are now migrating to Libera. Libera is a registered non-profit organization with mitigations against this disaster happening ever again. Leaked chats showing disgusting intents and former devs that have worked with Mr.Lee before says that he's disorganized, dishonest and that they wish to 2021-05-20 18:35:05 ComCat never work with him again (he managed to scam freenode out of our hands and he lied to the staffers). All officiall freenode channels are now currently under complete censorship. https://distfiles.dereferenced.org/stuff/nirvana-log.txt - https://paste.sr.ht/~ircwright/7e751d2162e4eb27cba25f6f8893c1f38930f7c4 - Please update your topic to point to the new server if you haven't done so already. This message is to inform the users about the 2021-05-20 18:35:12 ComCat situation if the topic is set already. Spread this message too. 2021-05-20 18:35:40 SnoopJ ComCat, that's not very polite, please see /topic, the ops of this channel are aware of the matter. 2021-05-20 18:36:24 Samian is there a way to change the code in python in vscode as I'm debugging? 2021-05-20 18:36:37 --> abm (~abm@088156197168.unknown.vectranet.pl) has joined #python 2021-05-20 18:36:42 <-- ham5urg (~ham5urg@pd95eb7ca.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-20 18:36:49 ChrisWarrick How to kill IRC for good? By splitting off a new network for some weird internal reasons. 2021-05-20 18:36:59 Samian I have a loop that generates frames in a video. in the loops i have variables like aa = 10. I want to set a break point and change aa to 9 and see how that changes the frames generated 2021-05-20 18:37:15 Samian Can I do that in vscode? 2021-05-20 18:37:28 ChrisWarrick Samian: you might be able to change the variables directly in the variables window 2021-05-20 18:37:41 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-20 18:37:49 bancroft can someone help me finish this png generator? https://bpa.st/SNQA I'm stuck on the level/dict of the png data chunk 2021-05-20 18:37:54 Samian ChrisWarrick, let me try! 2021-05-20 18:38:51 <-- Ublx (~Alex@190-2-132-198.hosted-by-worldstream.net) has quit (Ping timeout: 260 seconds) 2021-05-20 18:39:05 Samian ChrisWarrick, it works!! 2021-05-20 18:39:06 Samian yesss 2021-05-20 18:39:08 KirkMcDonald bancroft: But, you're already using Pillow. It knows how to make PNGs already. 2021-05-20 18:39:08 Samian thank you!!!!! 2021-05-20 18:39:21 ChrisWarrick Samian: you're welcome 2021-05-20 18:39:23 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-20 18:39:35 bancroft KirkMcDonald: but what if I wanted to create a png with a size of zero? 2021-05-20 18:39:52 --> caveman (~caveman@gateway/tor-sasl/alborz) has joined #python 2021-05-20 18:40:15 bancroft or negative numbers 2021-05-20 18:40:24 bancroft really curious what would happen 2021-05-20 18:40:28 --> Ublx (~Alex@2a02:810c:280:59c:8153:7869:4d66:14f2) has joined #python 2021-05-20 18:40:43 caveman hi - what's the easiest way to do ipc? its very simple. i got a process that runs, and waits for commands. then clients will give it commands. so many ways to do it, but i'm confused which one is the most pythonic way, with standard python libraries. 2021-05-20 18:42:51 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.1) 2021-05-20 18:42:56 <-- salitos (~contagiou@154.122.197.141) has quit (Ping timeout: 260 seconds) 2021-05-20 18:43:29 Samian I wish I could modify code as I debug in vscode 2021-05-20 18:43:32 Samian is that possible? 2021-05-20 18:43:45 Samian in visual studio I can do that for c sharp 2021-05-20 18:44:10 dubbie irc will die when irc2 comes out... one day 2021-05-20 18:44:53 --> duso (~duso@pa49-197-55-134.pa.qld.optusnet.com.au) has joined #python 2021-05-20 18:45:14 duso good morning all, another beautiful day of learning python =) 2021-05-20 18:46:08 --> Numero-6 (~Numero-6@194.5.53.18) has joined #python 2021-05-20 18:47:44 <-- dial8gue (~dial8gue@188.242.2.39) has quit (Quit: Leaving) 2021-05-20 18:47:56 jbeez SnoopJ: fixed it in a hacky way, no matter how i try setting/exporting my PYTHONHOME it doesn't seem to respect it, but I was able to add a ln -s command to link to a python27.zip file to the directory the python binary is and that works 2021-05-20 18:48:21 <-- YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has quit (Ping timeout: 260 seconds) 2021-05-20 18:49:26 SnoopJ Samian, no, when you're executing code, the source is long in the dust: it's already been through the compiler. 2021-05-20 18:50:09 bancroft duso yes it is 2021-05-20 18:50:33 --> henistein (0251bb58@bl20-187-88.dsl.telepac.pt) has joined #python 2021-05-20 18:50:57 --> bambanx (~bambanx@191.126.130.247) has joined #python 2021-05-20 18:51:29 Numero-6 How can i remove /?my_data= for show only the data in the server with print('DATA is:', unquote_plus(self.path)) 2021-05-20 18:53:24 Numero-6 can i compine split and unquote_plus function ? 2021-05-20 18:53:47 <-- abm (~abm@088156197168.unknown.vectranet.pl) has quit (Read error: Connection reset by peer) 2021-05-20 18:53:53 Numero-6 compile* 2021-05-20 18:54:39 henistein I am trying some example with pattern matching in 3.10, why this won't work? https://bpa.st/55ZQ 2021-05-20 18:54:59 henistein and how can I fix it? 2021-05-20 18:55:51 --> cliluw (~cliluw@unaffiliated/cliluw) has joined #python 2021-05-20 18:56:26 <-- cryzed (~cryzed@185.117.119.204) has quit (Ping timeout: 240 seconds) 2021-05-20 18:56:37 <-- cliluw (~cliluw@unaffiliated/cliluw) has quit (Read error: Connection reset by peer) 2021-05-20 18:56:42 -- _jimvideo_ is now known as jimvideo 2021-05-20 18:57:01 bjs henistein: maybe you mean str() and int() 2021-05-20 18:57:02 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-20 18:57:08 bjs or is it str(_) i forget 2021-05-20 18:57:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 18:58:04 <-- Deyaa (uid190709@gateway/web/irccloud.com/x-rcgudrlvkgiyrkum) has quit (Quit: Connection closed for inactivity) 2021-05-20 18:58:35 henistein 🤦 thanks... 2021-05-20 18:58:55 caveman are you guys going to libera.chat too? or already moved? 2021-05-20 18:59:06 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-20 18:59:07 bjs caveman: see the /topic "Libera? It's being spoken about but there's no answer." 2021-05-20 18:59:19 <-- lauxley (~lauxley@2a01:e34:ec55:2700:3056:d3c9:b687:42ef) has quit (Ping timeout: 250 seconds) 2021-05-20 18:59:34 <-- palasso (~palasso@unaffiliated/palasso) has quit (Remote host closed the connection) 2021-05-20 18:59:37 <-- ciccio2000 (~bscuser@173.71.79.188.dynamic.jazztel.es) has quit (Quit: Leaving.) 2021-05-20 18:59:55 bjs caveman: the channel exists on the other network, so feel free to join it. But this one is currently still the "official" one 2021-05-20 19:00:46 <-- Wegge (~wegge@wikimedia/Wegge) has left #python ("Leaving") 2021-05-20 19:00:55 <-- keeth (~keeth@S0106c8fb2649eb6e.wk.shawcable.net) has quit (Quit: keeth) 2021-05-20 19:01:15 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 19:01:21 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-20 19:02:29 --> drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-20 19:02:39 <-- shicks255 (~shicks255@c-73-44-67-59.hsd1.il.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-20 19:03:23 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-20 19:03:33 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Read error: Connection reset by peer) 2021-05-20 19:03:56 --> shicks255 (~shicks255@c-73-44-67-59.hsd1.il.comcast.net) has joined #python 2021-05-20 19:04:42 <-- drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 19:04:47 --> salitos (~contagiou@102.166.161.70) has joined #python 2021-05-20 19:05:06 <-- idna (~groot@188.27.33.187) has quit (Ping timeout: 240 seconds) 2021-05-20 19:05:07 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-20 19:05:12 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:4473:6f1b:6a81:44b7) has joined #python 2021-05-20 19:05:26 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:4473:6f1b:6a81:44b7) has quit (Client Quit) 2021-05-20 19:06:23 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Ping timeout: 246 seconds) 2021-05-20 19:06:26 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-20 19:06:58 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-20 19:07:05 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 246 seconds) 2021-05-20 19:07:25 <-- ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 19:07:38 <-- operational (~operation@imgonnaf.art) has left #python 2021-05-20 19:07:41 --> operational (~operation@imgonnaf.art) has joined #python 2021-05-20 19:07:46 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-20 19:08:20 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-20 19:08:22 --> ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has joined #python 2021-05-20 19:08:48 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-20 19:09:12 --> keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has joined #python 2021-05-20 19:09:33 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:2c48:daa6:f8f3:2236) has joined #python 2021-05-20 19:09:40 <-- jesseTree (~powerhous@2604:3d08:6d80:a900::5c5f) has quit (Ping timeout: 258 seconds) 2021-05-20 19:09:59 --> chwba (edium@gateway/shell/xshellz/x-otvmuzvesqtkfdby) has joined #python 2021-05-20 19:10:05 chwba hello 2021-05-20 19:10:19 --> ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has joined #python 2021-05-20 19:11:17 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:2c48:daa6:f8f3:2236) has quit (Client Quit) 2021-05-20 19:11:24 <-- Numero-6 (~Numero-6@194.5.53.18) has quit (Quit: << - Qui etes vous ? - Je suis le nouveau numero 2 - Qui est le numero 1 ? - Vous etes le numero 6 - Je ne suis pas un numero ! Je suis un homme libre!! >>) 2021-05-20 19:11:35 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 19:11:41 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 260 seconds) 2021-05-20 19:12:05 <-- securethemews (~securethe@2a00:23c4:1e98:8f00::4) has quit (Quit: Leaving) 2021-05-20 19:12:06 --> Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has joined #python 2021-05-20 19:12:07 <-- DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has quit (Quit: DeadTOm) 2021-05-20 19:13:06 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:1941:f020:444b:34ec) has joined #python 2021-05-20 19:14:25 <-- jbeez (jbeez@lucky13.jbeez.net) has left #python ("thanks!") 2021-05-20 19:14:25 <-- tete_ (~John@2a02:168:859e::c60) has quit (Quit: Leaving) 2021-05-20 19:14:38 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:1941:f020:444b:34ec) has quit (Client Quit) 2021-05-20 19:14:58 <-- bazul (bazul@38.189.189.46.rev.vodafone.pt) has quit (Remote host closed the connection) 2021-05-20 19:15:58 --> xvx (~xvx@185.48.63.108) has joined #python 2021-05-20 19:16:12 <-- keeth (~keeth@S0106c8fb267c9e33.wk.shawcable.net) has quit (Quit: keeth) 2021-05-20 19:18:20 --> wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has joined #python 2021-05-20 19:18:21 duso hello 2021-05-20 19:18:23 <-- ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 19:18:26 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 240 seconds) 2021-05-20 19:18:35 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:51ec:ee2:2df9:6b55) has joined #python 2021-05-20 19:19:00 <-- Vornicus (~Vornicus@2603-8000-5d07-7ef0-e8c0-ae73-7695-9dbe.res6.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-20 19:19:13 --> sgn (~sgn@171.239.131.74) has joined #python 2021-05-20 19:20:47 <-- ElPresid1 (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has quit (Ping timeout: 258 seconds) 2021-05-20 19:22:15 <-- jcarl43 (~jcarl@node-1w7jr9qqv3v3wasa6t5qdo1ho.ipv6.telus.net) has quit (Quit: WeeChat 3.1) 2021-05-20 19:22:17 --> seirl (~seirl@prologin/seirl) has joined #python 2021-05-20 19:22:23 <-- seirl (~seirl@prologin/seirl) has left #python ("WeeChat 3.1") 2021-05-20 19:23:32 --> philr (~phil@118.211.93.148) has joined #python 2021-05-20 19:24:43 --> Wulf4 (~Wulf@unaffiliated/wulf) has joined #python 2021-05-20 19:25:38 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-20 19:25:51 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 19:25:59 --> duszek (~duszek@adnb232.neoplus.adsl.tpnet.pl) has joined #python 2021-05-20 19:26:20 --> ClaymorePT (~Claymore@188.251.155.208) has joined #python 2021-05-20 19:27:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 19:27:44 <-- bambanx (~bambanx@191.126.130.247) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-20 19:27:44 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 246 seconds) 2021-05-20 19:27:44 -- Wulf4 is now known as Wulf 2021-05-20 19:28:11 duszek can't fix a problem 2021-05-20 19:28:12 duszek https://bpa.st/MFSQ 2021-05-20 19:28:34 duszek imagenr should be 199 2021-05-20 19:29:14 <-- leitz (~LeamHall@c-174-56-144-2.hsd1.sc.comcast.net) has quit (Quit: nappy time) 2021-05-20 19:29:45 <-- tiwula (~lane@70.89.246.241-Busname-UT.hfc.comcastbusiness.net) has quit (Quit: Leaving) 2021-05-20 19:30:40 --> ElPresid1 (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has joined #python 2021-05-20 19:30:49 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-20 19:31:08 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-20 19:31:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 19:33:06 <-- wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has quit (Ping timeout: 265 seconds) 2021-05-20 19:33:32 duso I am currently trying to get my head around recursion and working on some exercises. https://bpa.st/Y6MA 2021-05-20 19:34:33 <-- drymer (~drymer@unaffiliated/drymer) has quit (Ping timeout: 260 seconds) 2021-05-20 19:35:26 <-- duszek (~duszek@adnb232.neoplus.adsl.tpnet.pl) has quit (Ping timeout: 260 seconds) 2021-05-20 19:37:32 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Ping timeout: 246 seconds) 2021-05-20 19:39:17 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 246 seconds) 2021-05-20 19:39:17 <-- cthulchu (~cthulchu@193.194.107.250) has quit (Ping timeout: 246 seconds) 2021-05-20 19:39:35 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:51ec:ee2:2df9:6b55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 19:40:28 --> admin124 (~My_real_n@ool-2f12f6cb.dyn.optonline.net) has joined #python 2021-05-20 19:41:25 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 19:41:58 <-- CaptHindsight (~CaptHindi@unaffiliated/capthindsight) has quit (Quit: Leaving) 2021-05-20 19:42:40 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Client Quit) 2021-05-20 19:42:54 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 19:47:05 --> Muimi (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-20 19:47:26 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-20 19:47:42 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-20 19:49:04 <-- nomic (~nomic@2a00:23c6:9910:1201:9989:34aa:b96c:78fd) has quit (Quit: Leaving) 2021-05-20 19:49:12 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-20 19:49:29 <-- henistein (0251bb58@bl20-187-88.dsl.telepac.pt) has quit (Quit: Connection closed) 2021-05-20 19:50:48 nedbat duso: do you need help? 2021-05-20 19:55:20 <-- salitos (~contagiou@102.166.161.70) has quit (Quit: Leaving) 2021-05-20 19:57:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 20:00:22 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Quit: real life interrupt) 2021-05-20 20:00:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 20:01:52 --> eri (uid469694@gateway/web/irccloud.com/x-ttixbkvphjssumyj) has joined #python 2021-05-20 20:04:17 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-20 20:04:44 caveman what's the simplest way to do very basic ipc with standard python's modules? 2021-05-20 20:05:57 bancroft can someone explain to me why zlib decompress gives less data then the original input? https://bpa.st/X6EQ 2021-05-20 20:06:46 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-20 20:06:58 <-- Guest48 (~textual@cpe-107-185-48-127.socal.res.rr.com) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 20:08:11 <-- knivey (~knivey@internet.relay-chat.pro) has left #python ("bye") 2021-05-20 20:08:16 --> tm007 (uid287041@gateway/web/irccloud.com/x-mmnoqathxydsheyj) has joined #python 2021-05-20 20:09:04 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 20:09:09 <-- synthetek (~synthetek@138.199.52.51) has quit (Ping timeout: 245 seconds) 2021-05-20 20:09:16 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-20 20:09:55 nedbat bancroft: i'm not sure what that code is showing 2021-05-20 20:10:52 <-- ComCat (~comcat@gateway/tor-sasl/comcat) has quit (Quit: "Migrating to libra.chat. Bye forever.") 2021-05-20 20:11:21 <-- Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has quit (Quit: WeeChat 3.1) 2021-05-20 20:11:31 bancroft nedbat: what that function returns -> decompressed is b"\x00\xff\x00\x00" 2021-05-20 20:11:36 <-- gambl0re (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 260 seconds) 2021-05-20 20:11:47 bancroft I have no idea why 2021-05-20 20:12:09 nedbat bancroft: idk anything about zlib, but it's not impossible that decompress would be smaller, if the compression involves some overhead, and the data is small enough to not overcome the added overhead. 2021-05-20 20:12:38 --> junktext (junktext@fsf/member/junktext) has joined #python 2021-05-20 20:14:45 <-- caveman (~caveman@gateway/tor-sasl/alborz) has quit (Ping timeout: 240 seconds) 2021-05-20 20:15:18 --> ralof (~ralof@dynamic-095-118-117-014.95.118.pool.telefonica.de) has joined #python 2021-05-20 20:15:24 nedbat bancroft: in fact, if the compression is lossless, then for most data to get smaller, some data must get larger. 2021-05-20 20:15:46 --> synthetek (~synthetek@138.199.52.51) has joined #python 2021-05-20 20:17:17 <-- freebench (~freebench@92.253.251.226) has quit (Quit: Leaving) 2021-05-20 20:17:38 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-20 20:18:11 <-- ralof_ (~ralof@dynamic-095-118-117-014.95.118.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-20 20:21:34 tm007 What you guys working on? 2021-05-20 20:23:02 --> Codaraxis (~Codaraxis@ip68-5-90-227.oc.oc.cox.net) has joined #python 2021-05-20 20:23:33 <-- contingo (~textual@213.205.200.36) has quit (Quit: My supercomputing cluster has gone to sleep. ZZZzzz…) 2021-05-20 20:23:52 --> DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has joined #python 2021-05-20 20:26:47 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-20 20:26:53 <-- Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has quit (Ping timeout: 246 seconds) 2021-05-20 20:27:43 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 20:28:12 --> monty_hall (~monty_hal@unaffiliated/monty-hall/x-7689368) has joined #python 2021-05-20 20:28:16 sartan implementing bugs 2021-05-20 20:29:01 CodeMouse92 ^^^ 2021-05-20 20:29:14 <-- saint_ (~saint_@unaffiliated/saint-/x-0540772) has quit (Quit: UNIVERSE CORRUPTED. REBOOT (Y/N) ?) 2021-05-20 20:29:38 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 20:30:03 cluelessperson_ writing bugs is my pasttime 2021-05-20 20:30:21 meejah s/passtime/passion/ 2021-05-20 20:30:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 20:32:19 <-- IanLiu (~ian@177.172.24.227) has quit (Quit: WeeChat 3.1) 2021-05-20 20:33:24 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-20 20:33:31 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 265 seconds) 2021-05-20 20:34:09 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-20 20:34:10 <-- cyphase (~cyphase@unaffiliated/cyphase) has quit (Quit: cyphase.com) 2021-05-20 20:34:14 <-- argento (~argent0@168.227.96.51) has quit (Ping timeout: 246 seconds) 2021-05-20 20:34:21 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Ping timeout: 260 seconds) 2021-05-20 20:35:03 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-20 20:35:26 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-20 20:38:50 <-- junktext (junktext@fsf/member/junktext) has quit (Ping timeout: 265 seconds) 2021-05-20 20:40:51 --> sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has joined #python 2021-05-20 20:41:12 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-20 20:42:03 --> cyphase (~cyphase@unaffiliated/cyphase) has joined #python 2021-05-20 20:42:12 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-20 20:42:59 --> dweeber` (~dweeber@c-73-52-129-219.hsd1.ut.comcast.net) has joined #python 2021-05-20 20:44:23 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-20 20:44:45 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-20 20:45:06 <-- dweeber_ (~dweeber@c-73-52-129-219.hsd1.ut.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-20 20:45:12 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-20 20:47:14 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-20 20:47:27 --> hypc1 (~Thunderbi@113.233.198.245) has joined #python 2021-05-20 20:47:49 <-- hypc (~Thunderbi@113.233.198.245) has quit (Ping timeout: 260 seconds) 2021-05-20 20:47:52 -- hypc1 is now known as hypc 2021-05-20 20:49:16 <-- explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has quit (Quit: explody) 2021-05-20 20:50:20 <-- duso (~duso@pa49-197-55-134.pa.qld.optusnet.com.au) has quit (Ping timeout: 246 seconds) 2021-05-20 20:50:43 --> wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has joined #python 2021-05-20 20:51:02 --> purplex88_ (~purplex@unaffiliated/purplex88) has joined #python 2021-05-20 20:51:23 <-- purplex88_ (~purplex@unaffiliated/purplex88) has quit (Remote host closed the connection) 2021-05-20 20:51:52 --> amogorkon (~amogorkon@port-92-196-71-21.dynamic.as20676.net) has joined #python 2021-05-20 20:53:34 <-- towel (~towel@unaffiliated/towel) has left #python ("Leaving") 2021-05-20 20:53:48 tm007 Nice bug 2021-05-20 20:53:49 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Ping timeout: 265 seconds) 2021-05-20 20:54:11 <-- amo (~amogorkon@port-92-196-102-238.dynamic.as20676.net) has quit (Ping timeout: 246 seconds) 2021-05-20 20:57:23 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 20:57:41 --> ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has joined #python 2021-05-20 20:59:46 <-- AlyssaXY (~luz@31.127.31.50) has quit (Ping timeout: 240 seconds) 2021-05-20 21:00:26 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 21:01:03 --> doug_m (~doug_m@2601:446:c301:9160:302c:f540:f230:bfdd) has joined #python 2021-05-20 21:01:31 <-- doug_m (~doug_m@2601:446:c301:9160:302c:f540:f230:bfdd) has quit (Client Quit) 2021-05-20 21:01:49 <-- sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-20 21:02:45 --> explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has joined #python 2021-05-20 21:03:58 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-20 21:04:05 <-- lucasb (uid333435@gateway/web/irccloud.com/x-lxofpqhtuygtpwpp) has quit (Quit: Connection closed for inactivity) 2021-05-20 21:04:19 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-20 21:05:02 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-20 21:05:27 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-20 21:07:13 <-- ransom (~c4264035@70-59-14-200.hlrn.qwest.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-20 21:08:21 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 260 seconds) 2021-05-20 21:08:41 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-20 21:09:56 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-20 21:10:41 <-- Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has quit (Ping timeout: 240 seconds) 2021-05-20 21:11:49 --> jarthur_ (~jarthur@2603-8080-1540-002d-f9d3-bf1c-1ca5-3b65.res6.spectrum.com) has joined #python 2021-05-20 21:12:18 <-- dbear (~Thunderbi@mesa.ha.school) has quit (Remote host closed the connection) 2021-05-20 21:12:38 <-- CodeMouse92 (~CodeMouse@unaffiliated/codemouse) has quit (Quit: Oh freddled gruntbuggly | Thy micturations are to me | As plurdled gabbleblotchits | On a lurgid bee) 2021-05-20 21:12:43 <-- jarthur (~jarthur@2603-8080-1540-002d-a1f4-7a0c-77c0-2833.res6.spectrum.com) has quit (Ping timeout: 258 seconds) 2021-05-20 21:13:05 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 246 seconds) 2021-05-20 21:13:16 --> Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has joined #python 2021-05-20 21:13:30 <-- frrs (uid130725@gateway/web/irccloud.com/x-ejefbkpvsacsfwff) has quit (Quit: Connection closed for inactivity) 2021-05-20 21:13:37 --> dweeber (~dweeber@c-73-52-129-219.hsd1.ut.comcast.net) has joined #python 2021-05-20 21:15:18 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-20 21:16:17 <-- dweeber` (~dweeber@c-73-52-129-219.hsd1.ut.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-20 21:16:44 --> jesseTree (~powerhous@2604:3d08:6d80:a900::cab6) has joined #python 2021-05-20 21:18:34 --> Suwacc (~Mija@144.48.39.220) has joined #python 2021-05-20 21:18:41 <-- plutoniix (~q@node-uhj.pool-125-24.dynamic.totinternet.net) has quit (Ping timeout: 260 seconds) 2021-05-20 21:19:46 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-20 21:20:01 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-20 21:21:18 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 21:24:40 --> Spanska (~Spanska@69.4.216.36) has joined #python 2021-05-20 21:25:11 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 21:25:46 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-20 21:25:56 --> purplex (~purplex@unaffiliated/purplex88) has joined #python 2021-05-20 21:26:37 Spanska Is there a very simple way to do this? I have a strings like '00X1X000X' where the X'es change place and I would like to remplace them with another string like '001' where each character would replace an 'X' ? 2021-05-20 21:26:45 <-- explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has quit (Quit: explody) 2021-05-20 21:27:18 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-20 21:27:18 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 21:28:02 <-- testnode (bbc26c58@187.194.108.88) has quit (Ping timeout: 240 seconds) 2021-05-20 21:28:19 --> ralof_ (~ralof@dynamic-077-004-122-065.77.4.pool.telefonica.de) has joined #python 2021-05-20 21:28:51 kline Spanska, "000{}000".format("111") ? 2021-05-20 21:29:31 kline you might find string.format() and the documentation on f-strings (f"foobar") to be useful 2021-05-20 21:29:47 kline oh, this isnt libera :( 2021-05-20 21:29:59 Spanska I thought about f-string but I couldn't figure how I could use them to do this 2021-05-20 21:30:04 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 265 seconds) 2021-05-20 21:30:05 <-- mgedmin (~mg@Maemo/community/contributor/mgedmin) has quit (Quit: ZNC - http://znc.sourceforge.net) 2021-05-20 21:30:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 21:30:21 Spanska The number of X'es change, it isn't always 3 either 2021-05-20 21:30:42 --> argento (~argent0@168.227.97.23) has joined #python 2021-05-20 21:30:54 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-20 21:31:12 -- jarthur_ is now known as jarthur 2021-05-20 21:31:41 <-- ralof (~ralof@dynamic-095-118-117-014.95.118.pool.telefonica.de) has quit (Ping timeout: 260 seconds) 2021-05-20 21:32:16 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-20 21:32:25 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 21:32:32 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-20 21:32:53 KirkMcDonald Spanska: re.sub() can take a function, which permits all manner of trickery. https://bpa.st/25IQ 2021-05-20 21:33:09 --> mgedmin (~mg@Maemo/community/contributor/mgedmin) has joined #python 2021-05-20 21:33:48 <-- ClaymorePT (~Claymore@188.251.155.208) has quit (Quit: Mom decided I had to go to bed.) 2021-05-20 21:33:56 <-- admin124 (~My_real_n@ool-2f12f6cb.dyn.optonline.net) has quit (Ping timeout: 265 seconds) 2021-05-20 21:33:58 <-- Suwacc (~Mija@144.48.39.220) has quit (Quit: Suwacc) 2021-05-20 21:34:27 <-- emerent (~quassel@p200300cd5703bba6ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-20 21:35:40 --> Suwacc (~Mija@144.48.39.220) has joined #python 2021-05-20 21:35:55 Spanska Thanks KirkMcDonald! 2021-05-20 21:35:57 --> emerent (~quassel@p200300cd5703bb1fba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-20 21:36:00 Spanska Thanks kline 2021-05-20 21:36:52 --> Spinifera (~Spinifera@147.69.128.163) has joined #python 2021-05-20 21:40:37 --> explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has joined #python 2021-05-20 21:40:48 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 21:42:45 --> rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has joined #python 2021-05-20 21:42:57 <-- rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has quit (Client Quit) 2021-05-20 21:43:31 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 21:43:53 --> rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has joined #python 2021-05-20 21:45:31 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Ping timeout: 260 seconds) 2021-05-20 21:48:06 <-- Sheilong (uid293653@gateway/web/irccloud.com/x-xqngqcqyazccheyp) has quit (Quit: Connection closed for inactivity) 2021-05-20 21:48:19 --> fb_ (~freebench@92.253.251.226) has joined #python 2021-05-20 21:48:29 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-20 21:48:51 --> cellofellow (~user@166.70.50.58) has joined #python 2021-05-20 21:49:24 <-- Laibsch (~Laibsch@2a01:c23:7439:bb00:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-20 21:49:48 <-- rngmaster (bc51260e@bl16-38-14.dsl.telepac.pt) has quit (Quit: Connection closed) 2021-05-20 21:50:48 <-- Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has quit (Quit: Leaving) 2021-05-20 21:50:49 <-- freebench (~freebench@92.253.251.226) has quit (Ping timeout: 260 seconds) 2021-05-20 21:53:04 <-- JimmyNeutron (~weechat@191.96.120.41) has quit (Quit: WeeChat 3.0.1) 2021-05-20 21:54:08 --> BUSY (~BUSY@unaffiliated/busy) has joined #python 2021-05-20 21:54:49 --> Stanley00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 21:57:37 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 21:57:58 <-- bomb-on (~bomb-on@mobile-194-144-47-113.3G.internet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-20 21:59:29 <-- ElPresid1 (~gordon@2600:1700:3d10:4870:a18f:7500:5452:876) has quit (Quit: WeeChat 3.1) 2021-05-20 21:59:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 22:00:02 <-- wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has quit (Ping timeout: 265 seconds) 2021-05-20 22:02:32 --> wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has joined #python 2021-05-20 22:03:11 --> AlyssaXY (~luz@31.127.31.50) has joined #python 2021-05-20 22:03:36 --> a6a45081-2b83 (~aditya@122.163.149.247) has joined #python 2021-05-20 22:04:28 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Read error: Connection reset by peer) 2021-05-20 22:04:52 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 265 seconds) 2021-05-20 22:05:37 <-- ahadi (~ahadi@89.244.125.52) has quit (Ping timeout: 258 seconds) 2021-05-20 22:06:45 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Ping timeout: 240 seconds) 2021-05-20 22:07:40 --> sec^nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-20 22:08:03 --> ahadi (~ahadi@89.244.120.174) has joined #python 2021-05-20 22:08:19 --> Stanley|00 (~stanley00@unaffiliated/stanley00) has joined #python 2021-05-20 22:08:43 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-20 22:08:58 <-- onizu (uid373383@gateway/web/irccloud.com/x-ezeremzfqweitojr) has quit (Quit: Connection closed for inactivity) 2021-05-20 22:09:13 <-- wanko (~loliko@apn-46-76-162-203.dynamic.gprs.plus.pl) has quit (Ping timeout: 265 seconds) 2021-05-20 22:10:22 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-20 22:11:06 <-- Stanley00 (~stanley00@unaffiliated/stanley00) has quit (Ping timeout: 240 seconds) 2021-05-20 22:11:09 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 265 seconds) 2021-05-20 22:12:06 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-20 22:12:17 <-- tm (~sinnlos@unaffiliated/tm) has quit (Ping timeout: 260 seconds) 2021-05-20 22:15:31 <-- urodna (~urodna@unaffiliated/urodna) has quit (Quit: urodna) 2021-05-20 22:16:18 --> tm (~sinnlos@unaffiliated/tm) has joined #python 2021-05-20 22:17:14 --> stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-20 22:17:21 <-- Stanley|00 (~stanley00@unaffiliated/stanley00) has quit 2021-05-20 22:18:37 --> Sanguinan (~Sanguinan@71.73.97.102) has joined #python 2021-05-20 22:19:39 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-20 22:20:27 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-20 22:20:31 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-20 22:21:06 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-20 22:23:25 --> rchavik (~rchavik@unaffiliated/rchavik) has joined #python 2021-05-20 22:24:14 -- Gerula is now known as Guest95018 2021-05-20 22:24:14 <-- Guest95018 (~Gerula@unaffiliated/gerula) has quit (Killed (weber.freenode.net (Nickname regained by services))) 2021-05-20 22:24:14 --> Gerula (~Gerula@unaffiliated/gerula) has joined #python 2021-05-20 22:25:10 <-- kloudi (~kloudi@static.73.76.9.176.clients.your-server.de) has quit (Ping timeout: 265 seconds) 2021-05-20 22:25:58 --> nahtjona (~nahtjona@unaffiliated/nahtjona) has joined #python 2021-05-20 22:27:18 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 22:27:18 --> mangold (~mangold@198.98.183.40) has joined #python 2021-05-20 22:30:27 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 22:30:43 --> s00pcan (~chris@107.181.165.217) has joined #python 2021-05-20 22:30:54 <-- DTZUZU_ (~DTZUZO@205.ip-149-56-132.net) has quit (Read error: Connection reset by peer) 2021-05-20 22:30:59 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-20 22:31:28 <-- cellofellow (~user@166.70.50.58) has quit (Remote host closed the connection) 2021-05-20 22:31:29 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 22:37:19 --> duso (~duso@pa49-197-55-134.pa.qld.optusnet.com.au) has joined #python 2021-05-20 22:37:38 --> kloudi (~kloudi@static.73.76.9.176.clients.your-server.de) has joined #python 2021-05-20 22:41:54 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 22:41:57 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 22:42:18 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 22:42:42 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 22:42:52 --> MrBungle (~BLORGA@2604:3d08:1776:ea00:f4f6:9f7a:2c56:8a99) has joined #python 2021-05-20 22:43:23 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 246 seconds) 2021-05-20 22:43:49 --> nyaaa (~taru@unaffiliated/taru9) has joined #python 2021-05-20 22:43:59 --> wilk_ (~wilk@adoa216.neoplus.adsl.tpnet.pl) has joined #python 2021-05-20 22:44:05 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-20 22:44:06 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-20 22:44:16 <-- wilk (~wilk@adoa216.neoplus.adsl.tpnet.pl) has quit (Read error: Connection reset by peer) 2021-05-20 22:44:22 -- wilk_ is now known as wilk 2021-05-20 22:45:02 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-20 22:45:21 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-20 22:46:02 --> cellofellow (~user@166.70.50.58) has joined #python 2021-05-20 22:46:10 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 252 seconds) 2021-05-20 22:46:13 -- Muimi_ is now known as Muimi 2021-05-20 22:47:48 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 22:48:24 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-20 22:48:45 <-- cow[moo] (~asanger@c-69-244-155-110.hsd1.mi.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-20 22:49:41 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 260 seconds) 2021-05-20 22:51:26 <-- MrBungle (~BLORGA@2604:3d08:1776:ea00:f4f6:9f7a:2c56:8a99) has quit (Quit: Leaving) 2021-05-20 22:53:12 <-- alexgr (~alexgr@unaffiliated/alexgr) has quit (Ping timeout: 265 seconds) 2021-05-20 22:53:36 --> dub_a (dub_a@gateway/vpn/mullvad/duba/x-57903454) has joined #python 2021-05-20 22:54:12 <-- cellofellow (~user@166.70.50.58) has quit (Remote host closed the connection) 2021-05-20 22:54:17 <-- dub_a (dub_a@gateway/vpn/mullvad/duba/x-57903454) has quit (Client Quit) 2021-05-20 22:57:44 <-- mangold (~mangold@198.98.183.40) has quit (Ping timeout: 246 seconds) 2021-05-20 22:57:45 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 22:58:24 --> cellofellow (~user@166.70.50.58) has joined #python 2021-05-20 22:59:10 --> mangold (~mangold@198.98.183.140) has joined #python 2021-05-20 22:59:58 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 265 seconds) 2021-05-20 23:01:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 23:01:14 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::4af1) has quit (Ping timeout: 245 seconds) 2021-05-20 23:01:35 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 246 seconds) 2021-05-20 23:03:10 <-- rchavik (~rchavik@unaffiliated/rchavik) has quit (Remote host closed the connection) 2021-05-20 23:04:12 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-20 23:05:57 <-- yuesbeez (uid458354@gateway/web/irccloud.com/x-ngdnfamziuouqtwg) has quit (Quit: Connection closed for inactivity) 2021-05-20 23:06:11 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-20 23:06:18 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-20 23:07:27 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-20 23:07:29 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-20 23:07:50 <-- court_jester (~jeffry@unaffiliated/ayr-ton) has quit (Read error: Connection reset by peer) 2021-05-20 23:08:16 --> court_jester (~jeffry@unaffiliated/ayr-ton) has joined #python 2021-05-20 23:08:45 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Ping timeout: 260 seconds) 2021-05-20 23:09:09 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 245 seconds) 2021-05-20 23:09:37 <-- wild3 (~wild3@unaffiliated/wild3) has quit (Quit: leaving) 2021-05-20 23:10:27 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-20 23:11:17 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-20 23:11:25 <-- veek (~veek@unaffiliated/veek) has quit (Remote host closed the connection) 2021-05-20 23:13:30 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Ping timeout: 265 seconds) 2021-05-20 23:14:35 --> opsec (~opsec@opsec/opsec) has joined #python 2021-05-20 23:14:37 --> wild3 (~wild3@unaffiliated/wild3) has joined #python 2021-05-20 23:15:21 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 260 seconds) 2021-05-20 23:16:46 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 240 seconds) 2021-05-20 23:16:58 <-- coldenbrewed (nitrobrew@2a01:7e00::f03c:92ff:fe53:e963) has quit (Quit: Gone.) 2021-05-20 23:18:09 --> coldenbrewed (nitrobrew@2a01:7e00::f03c:92ff:fe53:e963) has joined #python 2021-05-20 23:19:17 --> DHARMAKAYA (~DHARMAKAY@189.174.247.195) has joined #python 2021-05-20 23:20:13 <-- cellofellow (~user@166.70.50.58) has quit (Remote host closed the connection) 2021-05-20 23:20:25 --> Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has joined #python 2021-05-20 23:24:24 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::cbc1) has joined #python 2021-05-20 23:27:18 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Remote host closed the connection) 2021-05-20 23:27:18 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 23:27:50 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-20 23:29:08 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-20 23:29:22 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-20 23:29:27 <-- mangold (~mangold@198.98.183.140) has quit (Ping timeout: 265 seconds) 2021-05-20 23:30:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-20 23:32:16 --> helderc (~helderc@S010664777d8ff843.cg.shawcable.net) has joined #python 2021-05-20 23:32:49 --> Jantz (~IceChat95@2407:7000:8d04:100:580:843d:646a:c397) has joined #python 2021-05-20 23:34:08 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 246 seconds) 2021-05-20 23:35:45 <-- DHARMAKAYA (~DHARMAKAY@189.174.247.195) has quit (Read error: Connection reset by peer) 2021-05-20 23:36:08 <-- explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has quit (Quit: explody) 2021-05-20 23:36:12 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-20 23:38:29 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-20 23:40:28 <-- a6a45081-2b83 (~aditya@122.163.149.247) has quit (Quit: Konversation terminated!) 2021-05-20 23:40:57 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-20 23:41:16 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Quit: They told me they fixed it. I trusted them to fix it. It's not my fault!) 2021-05-20 23:41:40 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-20 23:42:11 <-- Jackneill (~Jackneill@unaffiliated/jackneill) has quit (Ping timeout: 246 seconds) 2021-05-20 23:42:24 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-20 23:42:46 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 240 seconds) 2021-05-20 23:42:48 --> medium_cool (~medium_co@c-24-11-26-224.hsd1.ut.comcast.net) has joined #python 2021-05-20 23:43:53 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-20 23:45:44 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-20 23:46:16 <-- helderc (~helderc@S010664777d8ff843.cg.shawcable.net) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-20 23:46:17 --> DHARMAKAYA (~DHARMAKAY@189.174.247.195) has joined #python 2021-05-20 23:48:17 <-- DHARMAKAYA (~DHARMAKAY@189.174.247.195) has quit (Read error: Connection reset by peer) 2021-05-20 23:48:22 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-20 23:48:47 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 265 seconds) 2021-05-20 23:50:11 --> DHARMAKAYA (~DHARMAKAY@189.174.247.195) has joined #python 2021-05-20 23:50:20 mihael How do I flush a file write so I can read it from the same open(file) context? 2021-05-20 23:50:39 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-20 23:50:59 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-20 23:51:06 sartan file.flush(); file.seek(0) 2021-05-20 23:51:21 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-20 23:53:31 --> stree (~stree@68.36.8.116) has joined #python 2021-05-20 23:53:38 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-20 23:55:32 --> Jackneill (~Jackneill@unaffiliated/jackneill) has joined #python 2021-05-20 23:55:53 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-20 23:56:10 --> purplex (~purplex@unaffiliated/purplex88) has joined #python 2021-05-20 23:57:15 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-20 23:57:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-20 23:57:42 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-20 23:58:27 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-20 23:59:03 <-- nahtjona (~nahtjona@unaffiliated/nahtjona) has quit (Quit: connection reset by purr) 2021-05-20 23:59:41 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Quit: Leaving) 2021-05-20 23:59:46 mihael sartan: thanks, file.flush() was what I needed 2021-05-21 00:00:21 mihael I have two files with a list of somethings(routes). What utility/library can I use to like determine which items were removed and added? 2021-05-21 00:00:40 sartan difflib is really nice for stuff like this 2021-05-21 00:00:49 sartan otherwise you can load the contents and do set comparison 2021-05-21 00:01:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 00:01:51 mihael sartan: I'm trying out difflib.unified_diff but it seems to be comparing line by line. I can see the item on both files although they are in different lines 2021-05-21 00:02:01 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-21 00:02:09 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-21 00:02:15 sartan is the output deterministically sorted? 2021-05-21 00:02:41 <-- schumaml (~schumaml@dslb-188-105-193-002.188.105.pools.vodafone-ip.de) has quit (Ping timeout: 240 seconds) 2021-05-21 00:03:30 --> schumaml (~schumaml@dslb-188-105-193-002.188.105.pools.vodafone-ip.de) has joined #python 2021-05-21 00:03:40 <-- Jantz (~IceChat95@2407:7000:8d04:100:580:843d:646a:c397) has quit (Quit: For Sale: Intergalactic Proton Powered Electrical Tentacled Advertising Droids) 2021-05-21 00:04:54 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-21 00:05:58 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-21 00:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-21 00:06:17 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-21 00:06:38 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-21 00:06:45 --> Jantz (~IceChat95@2407:7000:8d04:100:2416:f582:65e3:92df) has joined #python 2021-05-21 00:07:12 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 00:09:01 <-- Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has quit (Ping timeout: 260 seconds) 2021-05-21 00:09:26 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-21 00:09:37 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-21 00:10:09 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 00:11:16 <-- Spinifera (~Spinifera@147.69.128.163) has quit (Quit: Leaving) 2021-05-21 00:11:17 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 260 seconds) 2021-05-21 00:13:41 <-- gothicserpent (~gothicser@static-198-54-129-84.cust.tzulo.com) has quit (Ping timeout: 260 seconds) 2021-05-21 00:14:16 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 260 seconds) 2021-05-21 00:14:29 <-- Spanska (~Spanska@69.4.216.36) has quit (Remote host closed the connection) 2021-05-21 00:14:29 <-- en7ropy (~en7ropy@unaffiliated/en7ropy) has quit (Quit: Leaving) 2021-05-21 00:15:51 <-- xvx (~xvx@185.48.63.108) has quit (Ping timeout: 265 seconds) 2021-05-21 00:16:49 <-- DHARMAKAYA (~DHARMAKAY@189.174.247.195) has quit (Ping timeout: 265 seconds) 2021-05-21 00:17:57 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-21 00:18:02 --> DHARMAKAYA (~DHARMAKAY@189.174.247.195) has joined #python 2021-05-21 00:18:02 <-- jimvideo (~jimvideo@64.188.177.168) has quit (Quit: Leaving) 2021-05-21 00:18:38 --> explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has joined #python 2021-05-21 00:18:56 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-21 00:19:31 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 260 seconds) 2021-05-21 00:20:10 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-21 00:20:21 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-21 00:21:28 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-21 00:23:50 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 00:24:22 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 00:26:50 <-- fantis (~mantisfan@gateway/tor-sasl/mantisfan) has quit (Remote host closed the connection) 2021-05-21 00:27:11 --> fantis (~mantisfan@gateway/tor-sasl/mantisfan) has joined #python 2021-05-21 00:27:33 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 00:29:08 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 00:29:45 --> Ettercap (~Wei@unaffiliated/ettercap) has joined #python 2021-05-21 00:29:55 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Client Quit) 2021-05-21 00:30:10 sartan actually i am thinking that difflib may not be a good choice for this 2021-05-21 00:30:47 <-- sazawal (~sazawal@2409:4043:2e13:7bc:d999:9315:7d85:6d8f) has quit (Quit: Leaving) 2021-05-21 00:31:21 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 00:32:06 <-- DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has quit (Quit: DeadTOm) 2021-05-21 00:32:07 --> sazawal (~sazawal@2409:4043:2e13:7bc:d999:9315:7d85:6d8f) has joined #python 2021-05-21 00:32:58 --> a6a45081-2b83 (~aditya@122.163.149.247) has joined #python 2021-05-21 00:33:07 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 00:33:38 mihael sartan: what do you suggest to use? 2021-05-21 00:33:55 mihael It's a file with 10k of lines 2021-05-21 00:34:11 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 00:34:36 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 00:34:46 <-- veek (~veek@unaffiliated/veek) has quit (Ping timeout: 240 seconds) 2021-05-21 00:35:00 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Remote host closed the connection) 2021-05-21 00:37:01 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-21 00:37:19 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-21 00:39:29 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 00:39:43 noyb mihael: You can also use a the context manager which will flush/close the file when you're done: >>> with open(file, 'r') as f: 2021-05-21 00:39:47 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-21 00:39:58 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-21 00:40:31 --> bambanx (~bambanx@207.248.194.201) has joined #python 2021-05-21 00:41:26 <-- Monet (~woostundy@106.11.35.195) has quit (Ping timeout: 240 seconds) 2021-05-21 00:41:33 noyb mihael: The 'r' can be a different letter, depending upon what you're doing with the file. For example, 'w' for write 2021-05-21 00:43:05 sartan set(file.readlines()) 2021-05-21 00:43:11 sartan 10k isn't a lot 2021-05-21 00:44:18 sartan i dont think he has a problem with that part, he wants to read and write off the same file descriptor 2021-05-21 00:44:36 KirkMcDonald set(f) is adequate. 2021-05-21 00:45:10 sartan that doesn't seem right, f is a descriptor 2021-05-21 00:45:28 <-- jesseTree (~powerhous@2604:3d08:6d80:a900::cab6) has quit (Ping timeout: 258 seconds) 2021-05-21 00:45:54 KirkMcDonald Iterating over a file yields its lines. 2021-05-21 00:46:22 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-21 00:46:50 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-21 00:47:07 <-- argento (~argent0@168.227.97.23) has quit (Remote host closed the connection) 2021-05-21 00:47:31 <-- kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has quit (Quit: leaving) 2021-05-21 00:47:42 <-- ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has quit (Quit: Leaving) 2021-05-21 00:49:55 SnoopJ (in text mode, which is usually what you'll have) 2021-05-21 00:50:00 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-21 00:50:01 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 00:50:07 SnoopJ or hm, it does that in bytes mode too doesn't it 2021-05-21 00:50:57 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Ping timeout: 260 seconds) 2021-05-21 00:51:01 SnoopJ yes, it does. nvm me 2021-05-21 00:51:19 sartan I've never known this 2021-05-21 00:54:09 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 00:55:02 <-- PantelicGR (~PantelicG@unaffiliated/pantelicgr) has quit (Quit: Leaving) 2021-05-21 00:55:08 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 00:55:09 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Read error: Connection reset by peer) 2021-05-21 00:55:14 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Quit: Leaving) 2021-05-21 00:55:45 <-- plut4rch (~plut4rch@220-244-147-249.tpgi.com.au) has quit (Quit: plut4rch) 2021-05-21 00:57:07 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 00:57:23 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 00:59:12 --> stranac (~stranac@195.29.239.126) has joined #python 2021-05-21 00:59:50 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-21 01:01:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 01:01:18 --> gothicserpent (~gothicser@static-198-54-129-78.cust.tzulo.com) has joined #python 2021-05-21 01:01:53 --> TheRAt_ (~TheRAt@110.77.217.206) has joined #python 2021-05-21 01:02:37 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 260 seconds) 2021-05-21 01:04:11 <-- TheRAt (~TheRAt@110.77.217.206) has quit (Ping timeout: 265 seconds) 2021-05-21 01:04:39 mihael sartan: so convert both two set and find difference 2021-05-21 01:05:28 --> en7ropy (~en7ropy@unaffiliated/en7ropy) has joined #python 2021-05-21 01:05:59 <-- Fauve (~Fauve@unaffiliated/fauve) has quit (Quit: WeeChat 2.3) 2021-05-21 01:06:22 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Remote host closed the connection) 2021-05-21 01:06:48 --> purplex88__ (~purplex@unaffiliated/purplex88) has joined #python 2021-05-21 01:06:48 <-- bambanx (~bambanx@207.248.194.201) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-21 01:07:21 <-- palooka-jock (~mike@45.126.44.146) has quit (Ping timeout: 268 seconds) 2021-05-21 01:07:53 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Quit: good riddance) 2021-05-21 01:07:53 <-- jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-21 01:08:04 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-21 01:08:19 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-21 01:08:28 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-21 01:08:59 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Ping timeout: 246 seconds) 2021-05-21 01:09:02 -- purplex88__ is now known as purplex 2021-05-21 01:09:12 --> anthepro (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-21 01:09:35 mihael okay, but how do I determine if it was removed or added? 2021-05-21 01:09:43 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 01:09:47 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-21 01:09:52 --> jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has joined #python 2021-05-21 01:10:08 bookworm by the order of the subtraction 2021-05-21 01:10:19 bookworm a - b is stuff only on a 2021-05-21 01:10:35 --> Jerrynicki (~niklas@p200300f57702e6003c8d2f09463826d2.dip0.t-ipconnect.de) has joined #python 2021-05-21 01:10:36 bookworm b -a is stuff only in b 2021-05-21 01:10:40 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Remote host closed the connection) 2021-05-21 01:11:03 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-21 01:11:03 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-21 01:11:04 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-21 01:11:15 mihael ah, yeah, I just figured that one out, stupid me. Thanks guys 2021-05-21 01:11:29 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-21 01:11:37 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-21 01:12:24 <-- srikavin (~srikavin@096-058-214-140.res.spectrum.com) has quit (Ping timeout: 265 seconds) 2021-05-21 01:12:25 --> agrawalr_ (~agrawalri@103.123.86.13) has joined #python 2021-05-21 01:13:40 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-21 01:14:58 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 01:15:07 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-21 01:15:13 <-- Gerula (~Gerula@unaffiliated/gerula) has quit (Ping timeout: 260 seconds) 2021-05-21 01:15:47 <-- agrawalritesh (~agrawalri@ec2-3-7-118-226.ap-south-1.compute.amazonaws.com) has quit (Ping timeout: 265 seconds) 2021-05-21 01:16:06 <-- dubbie (~strength@pppoe.dyn-67-21-110-74.hurontel.on.ca) has quit (Ping timeout: 260 seconds) 2021-05-21 01:16:45 <-- nyaaa (~taru@unaffiliated/taru9) has quit (Ping timeout: 265 seconds) 2021-05-21 01:21:28 <-- momomo (~momomo@c-dc74524e.016-77-73746f43.bbcust.telenor.se) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-21 01:23:27 SnoopJ if they're both sets, `a.difference(b)` has the same behavior but might be easier to remember for some 2021-05-21 01:23:41 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::cbc1) has quit (Ping timeout: 250 seconds) 2021-05-21 01:25:32 sartan i dont like the .union .difference etc, I find i always mentally stumble 'is that the difference from a to b? or the other way around??' missing = a - b in my head is really easy to remember 2021-05-21 01:26:34 --> Death916_Lap (~Username@unaffiliated/death916) has joined #python 2021-05-21 01:27:02 sartan imo, bitwise operators already describe exactly what is happening without some other method name on a set() 2021-05-21 01:27:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 01:27:37 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-21 01:27:38 bookworm -/+ aren't bitwise ops are they? 2021-05-21 01:28:10 sartan set(a) ^ set(b) is bitwise 2021-05-21 01:28:16 bookworm yes 2021-05-21 01:28:26 bookworm but that only 2 out of 4 ops 2021-05-21 01:28:30 bookworm that's* 2021-05-21 01:28:37 sartan I think this is a pervasion of conversation lol 2021-05-21 01:29:28 SnoopJ -/+ are not bitwise, no 2021-05-21 01:29:39 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-21 01:30:12 sartan 'operators'? (but we're not using operator module) - Boolean functions? (what does that mean?) 'python symbols?' what? I just prefer using the natural, bitwise operators to the set method names. 2021-05-21 01:30:45 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Ping timeout: 240 seconds) 2021-05-21 01:30:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 01:31:19 <-- stats464_ (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-21 01:31:38 SnoopJ the binary bitwise operators are defined here in the language guide: https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations and the binary arithmetic operators are defined here: https://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations 2021-05-21 01:31:53 <-- Death916_Lap (~Username@unaffiliated/death916) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-21 01:32:02 --> sec^nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-21 01:32:14 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 01:32:30 bookworm there we go 2021-05-21 01:32:41 sartan and what term would you use to combine them both in one statement? I don't even understand why this is a discussion 2021-05-21 01:32:48 sartan I said exactly what I meant and you knew exactly what I meant 2021-05-21 01:32:50 SnoopJ "operators" 2021-05-21 01:33:02 SnoopJ maybe binary operators if we care to distinguish them from the unary ones 2021-05-21 01:33:06 bookworm we know what you meant sure, it's incorrect all the same 2021-05-21 01:33:18 sartan it's not though! I _specifically_ prefer bitwise operators to the set method names 2021-05-21 01:33:38 sartan yes, there are other operators, but i'll happily use set.add() set.update() 2021-05-21 01:33:50 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Remote host closed the connection) 2021-05-21 01:33:54 SnoopJ sartan, what bitwise operator would you use to replace set.difference()? 2021-05-21 01:34:02 sartan what's the point 2021-05-21 01:34:06 SnoopJ Can you answer my question? 2021-05-21 01:34:10 sartan what's the point 2021-05-21 01:34:25 SnoopJ I would use -, but that isn't a bitwise operator. I was addressing that question which was asked. 2021-05-21 01:34:33 bookworm the point is, if you use fancy language at least use it in the correct way so that new people can learn 2021-05-21 01:34:57 SnoopJ the distinction is pretty meaningless since you can define these to do whatever you want on your own types 2021-05-21 01:35:02 sartan we are clearly not even on the same wavelength 2021-05-21 01:35:23 SnoopJ sartan, if you don't like the wordy ones, they're not obligatory 2021-05-21 01:35:37 <-- _rochelimit (~rochelimi@94.2.47.195) has quit (Read error: Connection reset by peer) 2021-05-21 01:35:43 <-- Monet (~woostundy@106.11.35.195) has quit (Remote host closed the connection) 2021-05-21 01:36:05 --> _rochelimit (~rochelimi@94.2.47.195) has joined #python 2021-05-21 01:36:18 <-- _rochelimit (~rochelimi@94.2.47.195) has quit (Client Quit) 2021-05-21 01:37:06 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-21 01:37:54 --> _rochelimit (~rochelimi@94.2.47.195) has joined #python 2021-05-21 01:38:13 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-21 01:39:43 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-21 01:41:31 --> palooka-jock (~mike@45.126.44.146) has joined #python 2021-05-21 01:42:35 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:e1a1:7fe0:5b74:28ba) has quit (Ping timeout: 258 seconds) 2021-05-21 01:42:49 --> mexen (uid495612@gateway/web/irccloud.com/x-uspsgzicqwdhquoa) has joined #python 2021-05-21 01:43:34 --> thoros (~thoros@193-154-185-59.adsl.highway.telekom.at) has joined #python 2021-05-21 01:43:37 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has joined #python 2021-05-21 01:43:57 --> pizdets (~pizdets@183.182.114.7) has joined #python 2021-05-21 01:44:09 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 260 seconds) 2021-05-21 01:44:37 <-- pileus (james@gateway/vpn/nordvpn/pileus) has quit (Ping timeout: 260 seconds) 2021-05-21 01:46:37 Jonno_FTW anyone in? 2021-05-21 01:47:29 --> frrs (uid130725@gateway/web/irccloud.com/x-tbysrorvpekyicum) has joined #python 2021-05-21 01:47:51 <-- hberaud (~hberaud@2a01:e0a:ff:e0e0:d20c:4ce7:fe8:ee13) has quit (Ping timeout: 260 seconds) 2021-05-21 01:49:29 --> hberaud (~hberaud@2a01:e0a:ff:e0e0:d20c:4ce7:fe8:ee13) has joined #python 2021-05-21 01:49:43 --> MavropaliasG (~alpha@122-151-126-148.sta.dodo.net.au) has joined #python 2021-05-21 01:50:31 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-21 01:50:31 <-- nate4444 (~Nathan22@S0106bcd16583c035.gv.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-21 01:52:02 <-- realies (~realies@unaffiliated/realies) has quit (Ping timeout: 265 seconds) 2021-05-21 01:52:59 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Quit: Wr4i7h) 2021-05-21 01:55:58 --> plutoniix (~q@58.136.84.218) has joined #python 2021-05-21 01:56:05 acresearch people, i have a text file that i open in open3d, is there a way to instead of importing the file, generate a string with the info and make it look like a file? bacisally to generate and import an object that is like a file from memory rather the the desktop? 2021-05-21 01:56:12 --> realies (~realies@unaffiliated/realies) has joined #python 2021-05-21 01:57:01 <-- realies (~realies@unaffiliated/realies) has quit (Read error: Connection reset by peer) 2021-05-21 01:57:06 <-- Betal (~Betal@unaffiliated/betal) has quit (Ping timeout: 240 seconds) 2021-05-21 01:57:21 --> realies (~realies@unaffiliated/realies) has joined #python 2021-05-21 01:57:21 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 01:58:07 <-- medium_cool (~medium_co@c-24-11-26-224.hsd1.ut.comcast.net) has quit (Quit: ZZZzzz…) 2021-05-21 01:59:13 --> subho (~subho@fedora/subho) has joined #python 2021-05-21 02:00:05 <-- drymer (~drymer@unaffiliated/drymer) has quit (Remote host closed the connection) 2021-05-21 02:00:20 Jonno_FTW acresearch: io.StringIO is what you want 2021-05-21 02:00:23 <-- subho (~subho@fedora/subho) has quit (Remote host closed the connection) 2021-05-21 02:00:26 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 02:00:31 acresearch Jonno_FTW: ok let me try it 2021-05-21 02:00:51 Jonno_FTW don't forget to call seek(0) after you've written to it 2021-05-21 02:00:57 --> ralderson (~textual@37.19.212.10) has joined #python 2021-05-21 02:01:42 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-21 02:02:43 <-- AlyssaXY (~luz@31.127.31.50) has quit (Remote host closed the connection) 2021-05-21 02:03:35 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 246 seconds) 2021-05-21 02:03:38 --> momomo (~momomo@c-dc74524e.016-77-73746f43.bbcust.telenor.se) has joined #python 2021-05-21 02:03:46 <-- kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 240 seconds) 2021-05-21 02:04:33 --> death_ (~UserNick@unaffiliated/death916) has joined #python 2021-05-21 02:04:34 --> subho (~subho@fedora/subho) has joined #python 2021-05-21 02:04:34 acresearch Jonno_FTW: it is not working, i am not sure if i am doing it right 2021-05-21 02:04:43 Jonno_FTW gonna need to see some code then 2021-05-21 02:04:50 acresearch Jonno_FTW: ok 1 moment 2021-05-21 02:05:26 <-- ralderson (~textual@37.19.212.10) has quit (Ping timeout: 240 seconds) 2021-05-21 02:06:11 acresearch Jonno_FTW: https://paste.debian.net/1198303/ 2021-05-21 02:06:21 --> IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has joined #python 2021-05-21 02:07:07 Jonno_FTW acresearch: is there an error message that goes with this? I've never used o3d. You can always just write to a temporary file 2021-05-21 02:07:29 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 260 seconds) 2021-05-21 02:07:40 Jonno_FTW read_point_cloud takes a file path, not a file like object 2021-05-21 02:07:43 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-21 02:07:45 <-- DHARMAKAYA (~DHARMAKAY@189.174.247.195) has quit (Quit: Turning off a portion of this simulation.) 2021-05-21 02:08:08 --> Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has joined #python 2021-05-21 02:08:24 acresearch Jonno_FTW: Invoked with: <_io.StringIO object at 0x7fab85f641f0>, 'xyzrgb' 2021-05-21 02:08:34 Jonno_FTW I saw, I see why it doesn't work 2021-05-21 02:08:35 acresearch Jonno_FTW: oh 2021-05-21 02:08:57 <-- FozzyB3ar (~f0zzyB3ar@136.37.127.43) has quit (Ping timeout: 265 seconds) 2021-05-21 02:09:46 acresearch can i emmulate a file path? the reason that i want to perform many parsing operations and writing and deleting files will slow it down, also i don't think it is programatically right 2021-05-21 02:09:54 --> kosh (~kosh@p200300d08f0f28007556e65daa9085be.dip0.t-ipconnect.de) has joined #python 2021-05-21 02:10:45 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 02:11:30 --> f0zzyB3ar (~f0zzyB3ar@136.37.127.43) has joined #python 2021-05-21 02:11:56 Jonno_FTW try with tempfile.NamedTemporaryFile('w') as my_file: my_file.write('''some lines here'''); my_file.flush(); o3d.io.read_point_cloud(my_file.name, 'xyzrgb') 2021-05-21 02:12:00 Jonno_FTW or something 2021-05-21 02:12:06 -- death_ is now known as death916_lap 2021-05-21 02:13:21 Jonno_FTW acresearch: ^ 2021-05-21 02:13:41 Jonno_FTW also, depending on how big your files are, saving/writing to files is not going to be that bad 2021-05-21 02:14:40 <-- Bluecoat (~Krampus@ec2-54-191-40-78.us-west-2.compute.amazonaws.com) has quit (Remote host closed the connection) 2021-05-21 02:14:55 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 02:14:58 <-- veek (~veek@unaffiliated/veek) has quit (Read error: Connection reset by peer) 2021-05-21 02:15:16 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-21 02:16:07 <-- Jerrynicki (~niklas@p200300f57702e6003c8d2f09463826d2.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-21 02:18:45 --> Jerrynicki (~niklas@p200300f57702e600b8b62b1dd98438a8.dip0.t-ipconnect.de) has joined #python 2021-05-21 02:18:57 --> dvx (~dvx@185.63.97.64) has joined #python 2021-05-21 02:19:10 acresearch Jonno_FTW: its not about big files, its about the operations, i just want to be able to program better 2021-05-21 02:19:11 <-- mspe (mspe@gateway/shell/tilde.team/x-tefeqkjvmoedejlz) has quit (Quit: WeeChat 3.1) 2021-05-21 02:19:21 --> philh (~philh@i59F77CA8.versanet.de) has joined #python 2021-05-21 02:19:53 --> SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has joined #python 2021-05-21 02:20:06 --> kype (uid176843@gateway/web/irccloud.com/x-yensqvlhnkwpbiez) has joined #python 2021-05-21 02:20:23 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Read error: Connection reset by peer) 2021-05-21 02:20:48 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-21 02:21:04 --> mcsontos (~mcsontos@95.82.132.160) has joined #python 2021-05-21 02:22:40 Sunny93 Hey guys, need some help on multi-thread/multi-process. I've been thinking whether I should make my python program into multi-thread or multi-process to speed up. But I have some pre-quesitons that need to make clear. 2021-05-21 02:23:40 Sunny93 I've read some posts online and these 2 comments are what I currently feel sensiable right now. 2021-05-21 02:23:47 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 02:23:52 <-- rzmt (~rzmt@87-92-227-98.rev.dnainternet.fi) has quit (Ping timeout: 240 seconds) 2021-05-21 02:23:53 Sunny93 https://zncreallysucks.site/uploads/52d976fddee6f3bd/image.png 2021-05-21 02:23:56 <-- fb_ (~freebench@92.253.251.226) has quit (Ping timeout: 265 seconds) 2021-05-21 02:24:09 Sunny93 Source: https://softwareengineering.stackexchange.com/questions/97615/what-can-multiple-threads-do-that-a-single-thread-cannot 2021-05-21 02:24:33 Jonno_FTW Sunny93: it entirely depends on your problem as to what is appropriate 2021-05-21 02:24:55 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 02:25:04 Sunny93 I know 2021-05-21 02:25:28 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-21 02:25:57 Sunny93 So if I run a program without calling those mutli thread API, does it mean the program will only run on one of those multi cores? 2021-05-21 02:25:58 kosh Sunny93, what kind of work does your program do? 2021-05-21 02:26:17 Jonno_FTW acresearch: this sounds like premature optimisation, when reading/writing lots of files gets slow you can look at improving it. If you're doing a lot you can use in memory storage (i think the OS does this to a degree anyway), and no you cannot pass a file-like object since read_point_cloud in python just passes it through to the c++ implementation. 2021-05-21 02:26:18 <-- _rochelimit (~rochelimi@94.2.47.195) has quit (Read error: Connection reset by peer) 2021-05-21 02:26:29 --> Nact (~l@host-85-27-123-107.dynamic.voo.be) has joined #python 2021-05-21 02:26:35 <-- azidhaka (~azidhaka@gateway.videnov.bg) has quit (Quit: Leaving) 2021-05-21 02:26:37 --> _rochelimit (~rochelimi@94.2.47.195) has joined #python 2021-05-21 02:26:41 Jonno_FTW Sunny93: if you python will only run a single thread by default 2021-05-21 02:26:48 BrenBarn acresearch: Possibly you can do it by creating a PointCloud without using the io functions: http://www.open3d.org/docs/release/tutorial/geometry/working_with_numpy.html 2021-05-21 02:26:50 kosh Sunny93, in general multithreading won't make python run faster 2021-05-21 02:26:58 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Client Quit) 2021-05-21 02:27:12 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 02:27:14 Sunny93 Because the GIL? 2021-05-21 02:27:16 acresearch BrenBarn: ok let me read 2021-05-21 02:27:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 02:27:17 kosh Sunny93, however you can use numpy, numba, scipy to do a lot of the heavy lifting and they have internal parallel parts 2021-05-21 02:27:20 kosh Sunny93, yes 2021-05-21 02:27:57 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 02:28:33 --> ralonsoh (~ralonsoh@250.red-83-42-217.dynamicip.rima-tde.net) has joined #python 2021-05-21 02:29:20 kosh Sunny93, if you have numeric code also use conda and not the normal pip python packages 2021-05-21 02:29:26 <-- f0zzyB3ar (~f0zzyB3ar@136.37.127.43) has quit (Remote host closed the connection) 2021-05-21 02:29:34 <-- matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has quit (Quit: Bridge terminating on SIGTERM) 2021-05-21 02:29:36 kosh Sunny93, conda links numpy and other stuff to high speed BLAS libraries which make a HUGE difference 2021-05-21 02:29:51 --> rzmt (~rzmt@87-92-227-98.rev.dnainternet.fi) has joined #python 2021-05-21 02:31:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 02:31:04 Sunny93 Is each core of the processor equal in status? I mean, will there be a condition that the OS distritue works/programs on a speicifc core the first? 2021-05-21 02:31:14 <-- death916_lap (~UserNick@unaffiliated/death916) has quit (Ping timeout: 246 seconds) 2021-05-21 02:31:16 <-- Nact (~l@host-85-27-123-107.dynamic.voo.be) has quit (Client Quit) 2021-05-21 02:31:31 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-21 02:31:39 --> matrixbot_bartab (~matrixbot@155.210.31.93.rev.sfr.net) has joined #python 2021-05-21 02:31:39 --> Nact (~l@host-85-27-123-107.dynamic.voo.be) has joined #python 2021-05-21 02:31:50 --> stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has joined #python 2021-05-21 02:31:58 Sunny93 e.g. 4 cores of my laptop, does the OS distritue the work evenly in each core? 2021-05-21 02:31:58 <-- dez (uid92154@fedora/deSouza) has quit (Quit: Connection closed for inactivity) 2021-05-21 02:31:59 Jonno_FTW Sunny93: that's entirely up to the OS 2021-05-21 02:32:09 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 265 seconds) 2021-05-21 02:32:13 Sunny93 Or there's a master core sort of thing 2021-05-21 02:32:27 Jonno_FTW you'll need to research how your OS distributes the work load 2021-05-21 02:32:33 Jonno_FTW I thihnk you can set a CPU affinity 2021-05-21 02:32:55 --> rgr (~rgr@p200300e4170c8002c4e361f92016a568.dip0.t-ipconnect.de) has joined #python 2021-05-21 02:33:28 Jonno_FTW Sunny93: https://man7.org/linux/man-pages/man1/taskset.1.html#:~:text=CPU%20affinity%20is%20a%20scheduler,run%20on%20any%20other%20CPUs.&text=Therefore%2C%20forcing%20a%20specific%20CPU,useful%20only%20in%20certain%20applications. 2021-05-21 02:33:33 Sunny93 Well I use Linux, how does linux peform as for that? 2021-05-21 02:33:38 Sunny93 ok let me take a look 2021-05-21 02:33:51 Jonno_FTW you'll need to read, it's not worth explaining here 2021-05-21 02:34:05 --> death916_lap (~UserNick@unaffiliated/death916) has joined #python 2021-05-21 02:34:29 Sunny93 ok 2021-05-21 02:34:48 Jonno_FTW there's probably lots of caching details that improve performance in weird ways that I don't know about 2021-05-21 02:35:06 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 240 seconds) 2021-05-21 02:35:12 Jonno_FTW Sunny93: https://www.google.com/search?q=how+does+linux+decide+what+cpu+to+run+a+process+on 2021-05-21 02:35:58 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 02:36:04 Jonno_FTW I remember having to implement a variety of process scheduling methods in my operating systems class in uni 2021-05-21 02:36:42 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Quit: Left...) 2021-05-21 02:36:46 Sunny93 Thank you for the link. Allow me to read some first. 2021-05-21 02:37:07 <-- MavropaliasG (~alpha@122-151-126-148.sta.dodo.net.au) has quit (Quit: Konversation terminated!) 2021-05-21 02:37:24 <-- Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-21 02:37:24 --> GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has joined #python 2021-05-21 02:37:49 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-21 02:37:55 Jonno_FTW Sunny93: some light reading for you http://www.nastooh.com/teaching/Silberschatz_Operating_System_Concepts_10e_2018.pdf 2021-05-21 02:38:12 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 02:39:18 --> agrawalritesh (~agrawalri@ec2-3-7-118-226.ap-south-1.compute.amazonaws.com) has joined #python 2021-05-21 02:41:41 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-21 02:42:26 --> bazul (bazul@38.189.189.46.rev.vodafone.pt) has joined #python 2021-05-21 02:42:45 --> x7b (~ffe4@200116b82c1f84002d582a66aeed4b57.dip.versatel-1u1.de) has joined #python 2021-05-21 02:42:56 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-21 02:43:01 <-- agrawalr_ (~agrawalri@103.123.86.13) has quit (Ping timeout: 260 seconds) 2021-05-21 02:43:06 --> markus-k (~markus@server01.comtime-it.eu) has joined #python 2021-05-21 02:43:15 --> barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has joined #python 2021-05-21 02:43:34 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 02:44:18 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 02:44:25 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-21 02:45:17 <-- Nact (~l@host-85-27-123-107.dynamic.voo.be) has quit (Quit: Konversation terminated!) 2021-05-21 02:45:46 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 240 seconds) 2021-05-21 02:46:22 --> bahamas (~lucian@unaffiliated/bahamas) has joined #python 2021-05-21 02:46:36 <-- barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has quit (Client Quit) 2021-05-21 02:47:20 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 246 seconds) 2021-05-21 02:47:46 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-21 02:48:24 kosh Sunny93, in general most operating systems distribute the work more or less evenly, unless you have something like an apple M1 processor where some cores are faster than others 2021-05-21 02:48:28 --> doev (549d7371@p549d7371.dip0.t-ipconnect.de) has joined #python 2021-05-21 02:48:36 kosh and then it makes no sense to make the split even 2021-05-21 02:49:03 --> barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has joined #python 2021-05-21 02:49:36 --> mankur (6789314a@103.137.49.74) has joined #python 2021-05-21 02:50:02 --> jcbsv (~jcbsv@185.247.236.137) has joined #python 2021-05-21 02:50:34 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Remote host closed the connection) 2021-05-21 02:50:39 doev good morning! And a simple question about 3f-strings. .... When I have a large text and I want to put it into a own file, what is best practice? 2021-05-21 02:51:02 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-21 02:51:10 doev maybe put the large string in an module? 2021-05-21 02:51:25 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-21 02:53:13 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 02:53:40 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Remote host closed the connection) 2021-05-21 02:53:47 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-21 02:53:57 --> CombatVet (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-21 02:54:03 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Remote host closed the connection) 2021-05-21 02:54:22 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 02:54:27 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-21 02:55:26 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-21 02:55:38 --> BakaKuna (~Thunderbi@86-89-65-191.fixed.kpn.net) has joined #python 2021-05-21 02:55:51 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 02:57:08 <-- veek (~veek@unaffiliated/veek) has quit (Ping timeout: 246 seconds) 2021-05-21 02:57:16 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 02:57:17 --> srandon111 (~srandon11@82.102.21.76) has joined #python 2021-05-21 02:57:31 -- srandon111 is now known as harestz 2021-05-21 02:58:20 mankur Whats the use of large string? 2021-05-21 02:58:54 doev mankur a template 2021-05-21 02:59:37 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Remote host closed the connection) 2021-05-21 02:59:51 <-- harestz (~srandon11@82.102.21.76) has left #python 2021-05-21 02:59:59 <-- bezaban (~bezaban@only.sometimes.works) has quit (Quit: leaving) 2021-05-21 03:00:15 --> Nact (~l@host-85-27-123-107.dynamic.voo.be) has joined #python 2021-05-21 03:00:49 mankur Yeah I think define a constant for that and use that constant variable wherever needed 2021-05-21 03:01:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 03:04:08 <-- _rochelimit (~rochelimi@94.2.47.195) has quit (Ping timeout: 246 seconds) 2021-05-21 03:04:22 --> arinov (~arinov@213.194.126.155) has joined #python 2021-05-21 03:04:55 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-21 03:05:19 acresearch BrenBarn: ok i got it working with a numpy array, but only xyz, is there a way to get xyzrgb? 2021-05-21 03:06:25 BrenBarn not sure, look through the documentation for open3d 2021-05-21 03:06:46 <-- death916_lap (~UserNick@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-21 03:06:49 <-- Jerrynicki (~niklas@p200300f57702e600b8b62b1dd98438a8.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-21 03:07:20 acresearch BrenBarn: i am looking through it, but i cant find what i am looking for 2021-05-21 03:07:50 --> Petrushka (~devcon@deathstar.devconproductions.org) has joined #python 2021-05-21 03:09:44 <-- Rudd0 (~Rudd0@185.189.115.108) has quit (Ping timeout: 246 seconds) 2021-05-21 03:09:54 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-21 03:10:34 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-21 03:12:21 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 260 seconds) 2021-05-21 03:13:55 BrenBarn looks like you might be able to do the same Vector3dVector thing with a separate vector of RGB data, like `pcd.colors = o3d.utility.Vector3dVector(rgb)` 2021-05-21 03:14:58 --> tete_ (~John@2a02:168:859e::c60) has joined #python 2021-05-21 03:15:35 <-- barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has quit (Quit: barph) 2021-05-21 03:15:40 --> stdedos (5873eb99@gateway/web/cgi-irc/kiwiirc.com/ip.88.115.235.153) has joined #python 2021-05-21 03:15:58 --> wender (~Wender@189.37.66.190) has joined #python 2021-05-21 03:16:07 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has quit (Ping timeout: 258 seconds) 2021-05-21 03:18:28 <-- hypc (~Thunderbi@113.233.198.245) has quit (Remote host closed the connection) 2021-05-21 03:18:39 --> hypc (~Thunderbi@113.233.198.245) has joined #python 2021-05-21 03:18:47 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 03:18:56 tete_ how do you guys version and persist machine learning models? with git tagging and then putting it somewhere? 2021-05-21 03:19:30 --> sagax (~sagax_nb@213.138.71.146) has joined #python 2021-05-21 03:19:31 <-- computeiro (~Wender@189.37.69.67) has quit (Ping timeout: 265 seconds) 2021-05-21 03:22:05 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-21 03:23:05 --> barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has joined #python 2021-05-21 03:23:08 --> carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has joined #python 2021-05-21 03:23:08 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-21 03:24:32 -- guyz is now known as guyzmo 2021-05-21 03:24:46 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-21 03:24:47 -- Muimi_ is now known as Muimi 2021-05-21 03:25:06 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 03:26:02 <-- stevieh (~skrodzki@p4fed31fd.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-21 03:26:16 --> Vornicus (~Vornicus@2603-8000-5d07-7ef0-199c-c7d3-c0e4-24bc.res6.spectrum.com) has joined #python 2021-05-21 03:26:49 --> death916_lap (~UserNick@unaffiliated/death916) has joined #python 2021-05-21 03:27:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 03:28:02 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-21 03:28:20 duso I have this problem as part of my homework, and I am not sure what it is even asking me to do. https://bpa.st/VL2Q 2021-05-21 03:29:11 <-- daex_ (daex@gateway/vpn/protonvpn/daex) has quit (Ping timeout: 268 seconds) 2021-05-21 03:29:41 --> daex (daex@gateway/vpn/protonvpn/daex) has joined #python 2021-05-21 03:30:17 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 03:30:18 duso I have this problem as part of my homework, and I am not sure what it is even asking me to do. https://bpa.st/VL2Q 2021-05-21 03:30:36 duso oops, sorry for the double =/ 2021-05-21 03:30:44 supakeen We read it the first time, the question seems pretty clear. 2021-05-21 03:30:51 supakeen (in the homework) 2021-05-21 03:31:22 <-- jcbsv (~jcbsv@185.247.236.137) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-21 03:32:03 IoannisJVM Hello, i have 2 lists of objects and i need to map the id of each object from one list to the id of each object of the other list 2021-05-21 03:32:05 duso unless you know the structure / depth of the nested lists, how would you be able to specify an index to retrieve a value from? 2021-05-21 03:32:13 IoannisJVM what's the best data structure which i can use 2021-05-21 03:32:53 <-- rinwa (~rinwa@37.46.46.89) has quit (Ping timeout: 268 seconds) 2021-05-21 03:33:05 KirkMcDonald duso: You are given a list of indexes, yes? 2021-05-21 03:33:28 supakeen duso: You get a valid list of indexes, see the last sentence of your homework. 2021-05-21 03:33:52 <-- oahong (~samigarus@unaffiliated/samigarus) has quit (Ping timeout: 240 seconds) 2021-05-21 03:34:08 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 258 seconds) 2021-05-21 03:34:10 KirkMcDonald IoannisJVM: It depends on what you mean by "map." But I imagine zip() would be involved, and perhaps a dict. 2021-05-21 03:34:52 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 03:34:53 --> oahong (~samigarus@unaffiliated/samigarus) has joined #python 2021-05-21 03:35:43 duso ok, I think I am getting it. idea for a start. thanks 2021-05-21 03:37:05 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Ping timeout: 260 seconds) 2021-05-21 03:37:13 <-- mihael (~marz@49.145.73.135) has quit (Quit: leaving) 2021-05-21 03:37:34 IoannisJVM KirkMcDonald i should return a dict like this { object.id :{ otherobjc.id : units }} 2021-05-21 03:38:24 IoannisJVM https://dpaste.org/dciG 2021-05-21 03:38:42 Sunny93 kosh thanks. Good to know that 2021-05-21 03:38:52 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-21 03:38:54 IoannisJVM this structure just gives me only one of the list items 2021-05-21 03:39:30 kosh Sunny93, so what kind of problem do you have? 2021-05-21 03:39:30 cluelessperson_ duso, it's asking you to write a function that navigates to the nested position and return the value. 2021-05-21 03:39:46 cluelessperson_ that's as much a hint I can give without giving it away entirely. 2021-05-21 03:39:51 <-- a6a45081-2b83 (~aditya@122.163.149.247) has quit (Quit: Konversation terminated!) 2021-05-21 03:40:18 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 03:40:20 cluelessperson_ IoannisJVM, data structure for what? 2021-05-21 03:40:58 Sunny93 Jonno_FTW I am reading the taskset manpage and ready for a try. What does the "CPUs" mean in the manpage? I only know "1 CPU with many cores" 2021-05-21 03:41:07 cluelessperson_ IoannisJVM, You'd use two dicts. 2021-05-21 03:41:07 Sunny93 kosh ok let me demostrate my problem. 2021-05-21 03:41:21 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-21 03:41:29 <-- spithash (~spithash@gateway/tor-sasl/spithash) has quit (Remote host closed the connection) 2021-05-21 03:41:41 cluelessperson_ IoannisJVM, one dictionary to track the mappings, another dictionary to temporarily store references to known objects that aren't placed yet. 2021-05-21 03:41:41 --> spithash (~spithash@gateway/tor-sasl/spithash) has joined #python 2021-05-21 03:41:48 --> alexgr (~alexgr@unaffiliated/alexgr) has joined #python 2021-05-21 03:42:07 Sunny93 I wrote a python program. fetch data from a datasource (HBase), dump to csv, and then upload to another database cluster (impala, hive) 2021-05-21 03:42:47 IoannisJVM cluelessperson_ hmm let me try to implement it first and i'll show you if i understood correctly your point 2021-05-21 03:42:50 Sunny93 So I was thinking should I make it multi-process or multi-thread to spped up. 2021-05-21 03:43:10 kosh that seems like it would be purely IO bound 2021-05-21 03:43:25 cluelessperson_ IoannisJVM, so, you could just factorially n*n-1 try every combination to see which match. 2021-05-21 03:43:41 kosh if you had multiple connections to the db would it actually download faster? 2021-05-21 03:43:42 Sunny93 Yes. And I was asking myself, do concurrency really make a huge differences? 2021-05-21 03:44:15 cluelessperson_ IoannisJVM, or, like I explained, loop over them once, associating the mappings, or storing their reference for faster lookup later. Then just loop over the leftovers and place them in the map now that you know everything. 2021-05-21 03:44:18 kosh if you are reading from one db and writing to another db I don't see much that concurrency can do 2021-05-21 03:44:34 cluelessperson_ Sunny93, concurrency in what? 2021-05-21 03:44:37 <-- thorre (~thorre@90-230-32-217-no78.tbcn.telia.com) has left #python 2021-05-21 03:44:42 IoannisJVM cluelessperson_ ok,i'll try it,thanks 2021-05-21 03:44:52 kosh python should generally not be a slow point for this unless you are doing some more complex processing before uploading to the other db 2021-05-21 03:45:05 Sunny93 If one thread has already eats up all the network bandwith, I don't think make it into multi thread or process would help a lot. 2021-05-21 03:45:16 cluelessperson_ kosh, well if you're waiting for network IO/tcp traffic, multiple small parallel connections might be faster than serially waiting for single updates, depending. 2021-05-21 03:45:18 kosh correct 2021-05-21 03:45:23 --> a1paca (a1paca@gateway/vpn/protonvpn/a1paca) has joined #python 2021-05-21 03:45:28 cluelessperson_ although I imagine in a database you'd send in batch as well. 2021-05-21 03:45:43 kosh cluelessperson_, it could be but you would need to profile the IO 2021-05-21 03:45:51 cluelessperson_ agreed 2021-05-21 03:46:06 Sunny93 cluelessperson_ e.g. 1GB data, split it to 5 processes, each 200MB, write to separate csv, merge into 1 csv and then upload 2021-05-21 03:46:35 cluelessperson_ Sunny93, it depends on what you mean by data and how you're processing it. 2021-05-21 03:46:38 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Read error: Connection reset by peer) 2021-05-21 03:46:39 kosh 1GB of data is not much 2021-05-21 03:46:57 cluelessperson_ Sunny93, if you only send line by line, each line/packet requires time/io/confirmation. 2021-05-21 03:47:03 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-21 03:47:16 cluelessperson_ Sunny93, if you batch, stream more data, a single process should do fine to saturate your network speed. 2021-05-21 03:48:18 <-- spithash (~spithash@gateway/tor-sasl/spithash) has quit (Quit: leaving) 2021-05-21 03:48:55 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-21 03:48:56 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-21 03:49:04 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has joined #python 2021-05-21 03:49:05 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-21 03:49:27 Sunny93 agreed 2021-05-21 03:49:47 Sunny93 what does "send in batch" mean? 2021-05-21 03:50:09 <-- GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has quit (Ping timeout: 260 seconds) 2021-05-21 03:50:23 --> Jerrynicki (~niklas@p200300f57702e6001042f9de2d067256.dip0.t-ipconnect.de) has joined #python 2021-05-21 03:50:30 kosh instead of sending one item at a time you send many at a time 2021-05-21 03:50:35 cluelessperson_ Sunny93, So, you might think to 1. "request single line from data base" 2. "process" 3. "upload somewhere" line by line. 2021-05-21 03:50:50 cluelessperson_ Sunny93, but that means each line requires it's own network overhead and confirmation. 2021-05-21 03:50:50 Sunny93 cluelessperson_ ah I see 2021-05-21 03:51:34 cluelessperson_ Sunny93, instead you might 1. "prepare a transaction" 2. "load multiple lines into the transaction" 3. "batch send to database", saving you network overhead. 2021-05-21 03:51:44 cluelessperson_ (which really adds up for many small operations) 2021-05-21 03:52:03 Sunny93 No. my current model is , receive GB of data once ---> dump to 1 csv ----> upload onces. 2021-05-21 03:52:13 cluelessperson_ sweet. 2021-05-21 03:52:15 Sunny93 I got it 2021-05-21 03:52:17 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 03:52:41 --> Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has joined #python 2021-05-21 03:52:41 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-21 03:52:56 kosh probably not much that can speed that up then unless your db has some special mechanism for uploading large batches of data to use 2021-05-21 03:52:57 <-- stranac (~stranac@195.29.239.126) has quit (Ping timeout: 260 seconds) 2021-05-21 03:53:03 kosh and some of them do have that 2021-05-21 03:53:14 cluelessperson_ Sunny93, this also applies to disk operations. Many disks can stream data much faster than fetching individual small files. 2021-05-21 03:53:28 kosh computers are all about batching 2021-05-21 03:53:32 cluelessperson_ So if you intend to copy a disk, it's much faster to copy the block data directly, not the files. :P 2021-05-21 03:53:41 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has quit (Ping timeout: 258 seconds) 2021-05-21 03:53:46 --> spithash (~spithash@gateway/tor-sasl/spithash) has joined #python 2021-05-21 03:54:00 cluelessperson_ This NVME that just came out does 7GBps, holy crap. 2021-05-21 03:54:01 cluelessperson_ I want. 2021-05-21 03:54:32 kosh cluelessperson_, hard to prepare IO and get it there fast enough :) 2021-05-21 03:54:55 <-- Jerrynicki (~niklas@p200300f57702e6001042f9de2d067256.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-21 03:54:57 --> r3dux (~r3dux@ip70-187-234-142.oc.oc.cox.net) has joined #python 2021-05-21 03:55:23 <-- death916_lap (~UserNick@unaffiliated/death916) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-21 03:56:10 --> Death916_lap (~UserNick@unaffiliated/death916) has joined #python 2021-05-21 03:56:59 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-21 03:57:14 <-- rgr (~rgr@p200300e4170c8002c4e361f92016a568.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-21 03:57:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 03:57:20 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-21 03:59:42 --> rgr (~rgr@p200300e4170c8002c4e361f92016a568.dip0.t-ipconnect.de) has joined #python 2021-05-21 04:00:18 acresearch BrenBarn: is there a channel for open3d? this xyzrgb issue using numpy i cannot resolve 2021-05-21 04:01:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 04:01:22 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit 2021-05-21 04:04:57 <-- AlanMD (~alan@193.105.140.131) has quit (Ping timeout: 268 seconds) 2021-05-21 04:05:24 duso Got it =D. Such a great feeling when it just works 2021-05-21 04:06:26 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 246 seconds) 2021-05-21 04:07:33 <-- mikeike2 (~j@gateway/tor-sasl/doh) has quit (Ping timeout: 240 seconds) 2021-05-21 04:07:43 --> AlanMD (~alan@5-12-75-55.residential.rdsnet.ro) has joined #python 2021-05-21 04:07:53 <-- Guest20 (~textual@192.146.154.3) has quit (Quit: ZZZzzz…) 2021-05-21 04:08:10 --> aslicedbanjo (~aslicedba@host81-157-178-153.range81-157.btcentralplus.com) has joined #python 2021-05-21 04:08:22 --> Wulf (~Wulf@unaffiliated/wulf) has joined #python 2021-05-21 04:08:25 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-21 04:08:34 <-- guardian (~guardian@planet-d.net) has quit (Remote host closed the connection) 2021-05-21 04:09:01 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Remote host closed the connection) 2021-05-21 04:09:09 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Ping timeout: 240 seconds) 2021-05-21 04:09:18 --> sec^nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-21 04:11:18 <-- lmt (uid107697@gateway/web/irccloud.com/x-ozkqvbiinlpphxev) has quit (Quit: Connection closed for inactivity) 2021-05-21 04:11:46 --> securethemews (~securethe@2a00:23c4:1e98:e400::4) has joined #python 2021-05-21 04:11:59 Jonno_FTW acresearch: you can ask here, you'll need to post code 2021-05-21 04:13:28 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-21 04:13:45 --> tocka (uid198544@gateway/web/irccloud.com/x-gzbvmdsmfpbfcwgd) has joined #python 2021-05-21 04:14:23 acresearch Jonno_FTW: ok 1 moment 2021-05-21 04:14:50 <-- Jantz (~IceChat95@2407:7000:8d04:100:2416:f582:65e3:92df) has quit (Read error: Connection reset by peer) 2021-05-21 04:15:07 --> ffe4 (~ffe4@200116b82c1f84007cceb29b0eba67a4.dip.versatel-1u1.de) has joined #python 2021-05-21 04:15:43 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:c3f1:9689:fc74:2b1e) has quit (Ping timeout: 250 seconds) 2021-05-21 04:15:55 --> Anas__G (~Thunderbi@196.203.67.2) has joined #python 2021-05-21 04:16:05 --> guardian (~guardian@planet-d.net) has joined #python 2021-05-21 04:16:09 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-21 04:16:29 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-21 04:16:29 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 04:16:44 --> fflori (~fflori@mob-194-230-155-151.cgn.sunrise.net) has joined #python 2021-05-21 04:17:28 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 04:17:31 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 260 seconds) 2021-05-21 04:18:01 <-- Sunny93 (~Sunny93@119.28.16.11) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-21 04:18:01 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 04:18:13 <-- x7b (~ffe4@200116b82c1f84002d582a66aeed4b57.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-21 04:18:14 --> Sunny93 (~Sunny93@119.28.16.11) has joined #python 2021-05-21 04:18:38 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-21 04:18:57 --> braincrash (~braincras@113-148-128-083.dynamic.caiway.nl) has joined #python 2021-05-21 04:20:01 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-21 04:21:08 acresearch Jonno_FTW: https://paste.debian.net/1198308/ 2021-05-21 04:22:01 Jonno_FTW acresearch: what's the error? you need to post both 2021-05-21 04:22:11 <-- JanC (~janc@lugwv/member/JanC) has quit (Remote host closed the connection) 2021-05-21 04:22:32 Jonno_FTW acresearch: also, numpy has random numbers built in 2021-05-21 04:22:39 --> JanC (~janc@lugwv/member/JanC) has joined #python 2021-05-21 04:23:17 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-21 04:24:29 cluelessperson_ kosh, I will easily saturate that. :P 2021-05-21 04:24:36 cluelessperson_ 750,000 Iops. 2021-05-21 04:24:37 cluelessperson_ damnnn 2021-05-21 04:24:51 --> rgr_ (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has joined #python 2021-05-21 04:24:54 acresearch Jonno_FTW: sorry the error is: RuntimeError: Unable to cast Python instance to C++ type 2021-05-21 04:24:57 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-21 04:25:05 acresearch if you remove the RGB the script works fine 2021-05-21 04:25:05 Jonno_FTW well there you go 2021-05-21 04:25:14 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 04:25:42 acresearch Jonno_FTW: no, my goal is to include the XYZ and the RGB in the array so i get voxels with colours 2021-05-21 04:25:59 <-- IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has quit (Quit: Connection closed) 2021-05-21 04:27:04 <-- rgr (~rgr@p200300e4170c8002c4e361f92016a568.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-21 04:27:26 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 04:27:33 --> Jerrynicki (~niklas@p200300f57702e600af0f0d3be6659389.dip0.t-ipconnect.de) has joined #python 2021-05-21 04:27:49 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 04:27:53 <-- Deknos (~deknos@unaffiliated/menace) has quit (Quit: Deknos) 2021-05-21 04:28:04 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-21 04:28:26 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-21 04:28:34 --> stahl (~stahl@z35.anorg.net) has joined #python 2021-05-21 04:29:05 <-- mankur (6789314a@103.137.49.74) has quit (Quit: Connection closed) 2021-05-21 04:29:11 --> hiroaki (~hiroaki@2a02:8108:8c40:2bb8:c540:4dfc:b1ff:2324) has joined #python 2021-05-21 04:30:24 <-- rgr_ (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-21 04:32:06 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-21 04:32:31 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 04:32:58 <-- eri (uid469694@gateway/web/irccloud.com/x-ttixbkvphjssumyj) has quit 2021-05-21 04:33:22 Jonno_FTW You'll have to figure it out for yourself, I'm going home 2021-05-21 04:33:23 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 246 seconds) 2021-05-21 04:33:43 <-- NeverLoads (NeverLoad@freakshells.net) has quit (Quit: FREAKSHELLS - https://www.freakshells.net) 2021-05-21 04:34:22 --> NeverLoads (NeverLoad@freakshells.net) has joined #python 2021-05-21 04:35:26 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Quit: Leaving) 2021-05-21 04:35:56 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 04:36:14 --> rgr_ (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has joined #python 2021-05-21 04:36:21 --> __0reza (~reza@185.120.245.30) has joined #python 2021-05-21 04:36:30 <-- dob1 (~dob1@unaffiliated/dob1) has quit (Quit: quit) 2021-05-21 04:37:38 --> eri (~erica@ericas.site) has joined #python 2021-05-21 04:37:45 <-- __0reza (~reza@185.120.245.30) has left #python 2021-05-21 04:39:37 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 04:42:28 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has joined #python 2021-05-21 04:43:08 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 265 seconds) 2021-05-21 04:43:18 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-21 04:45:28 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 04:45:32 --> heyitsrama (~heyitsram@2601:641:400:423:347e:346e:e1a1:5024) has joined #python 2021-05-21 04:45:49 duso https://bpa.st/MRBQ - I am stuck on this, may I get a hint please? 2021-05-21 04:46:41 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-21 04:46:59 --> singularity00 (~singulari@85.187.64.126.client.entry.bg) has joined #python 2021-05-21 04:47:02 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 246 seconds) 2021-05-21 04:47:04 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has quit (Ping timeout: 245 seconds) 2021-05-21 04:47:27 --> vdamewood (~vdamewood@unaffiliated/vdamewood) has joined #python 2021-05-21 04:47:33 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-21 04:49:38 bjs duso: it's hard to give a hint when there's no code, because the only hint is "try write some code to do it" and it's hard to know what part you're stuck on. 2021-05-21 04:49:43 bjs duso: what have you tried so far? 2021-05-21 04:49:58 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 04:50:02 <-- heyitsrama (~heyitsram@2601:641:400:423:347e:346e:e1a1:5024) has quit (Ping timeout: 258 seconds) 2021-05-21 04:50:04 --> mozgalom (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has joined #python 2021-05-21 04:51:14 <-- random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Ping timeout: 245 seconds) 2021-05-21 04:52:08 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-21 04:52:09 duso https://bpa.st/46IQ 2021-05-21 04:52:28 duso but just adding list didn't work 2021-05-21 04:52:42 <-- stdedos (5873eb99@gateway/web/cgi-irc/kiwiirc.com/ip.88.115.235.153) has quit (Quit: Connection closed) 2021-05-21 04:53:00 -- dTal_join_libera is now known as dTal 2021-05-21 04:53:23 --> stranac (~stranac@195.29.239.126) has joined #python 2021-05-21 04:53:42 duso I need to somehow put in a results = []; results.append(n//b) but when it recurses the results = [] would remove the previous recursion 2021-05-21 04:53:46 --> a6a45081-2b83 (~aditya@122.163.149.247) has joined #python 2021-05-21 04:54:13 --> mcope (~mcope@88.98.90.199) has joined #python 2021-05-21 04:55:05 duso and I can't see how I can do base 16 either 2021-05-21 04:56:12 bjs duso: okay, well, so what did you want `return list(n)` to do? 2021-05-21 04:56:53 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-21 04:56:56 --> Wegge (~wegge@wikimedia/Wegge) has joined #python 2021-05-21 04:57:11 <-- Wegge (~wegge@wikimedia/Wegge) has left #python ("Leaving") 2021-05-21 04:57:33 duso in the case they enter a number that is less than n//b 2021-05-21 04:57:33 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 04:57:42 --> darksun (~darksun@unaffiliated/darksun) has joined #python 2021-05-21 04:57:50 bjs duso: okay, but what did you want the phrase `list(n)` to give you? 2021-05-21 04:57:58 duso should be n < b, typo 2021-05-21 04:58:06 acresearch I have a math question ... an image of N=10614 number of pixels when the pixel_size=1 ... if i change the pixel_size=0.009 i get N=4727 ... how can i find out what pixel_size i need to get N=5000? 2021-05-21 04:58:09 --> random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 04:58:24 duso I need to return the results as a list 2021-05-21 04:58:36 bjs duso: what is "the results". What *Exactly* did you want list(n) to do? 2021-05-21 04:58:38 bjs n is a number right? 2021-05-21 04:59:00 <-- mx08 (~mx08@unaffiliated/mx08) has quit (Quit: WeeChat 2.8) 2021-05-21 04:59:27 bjs duso: did you want to make a list containing n? Maybe you meant `return [n]` not `return list(n)` 2021-05-21 04:59:29 rendar are local variables into a dictionary? 2021-05-21 04:59:36 duso yes, but integers are not iterable, so should be 'n' 2021-05-21 04:59:46 bjs duso: maybe you meant `return [n]` ? 2021-05-21 04:59:53 bjs rendar: I'm not sure what you mean. 2021-05-21 05:00:05 bjs rendar: what do you mean are they "into" a dictionary? 2021-05-21 05:00:23 duso I think I just need a break and come back with a fresh head 2021-05-21 05:00:26 <-- abesab (~abesab@172.103.140.96) has quit (Ping timeout: 240 seconds) 2021-05-21 05:00:27 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 05:00:27 rendar bjs: that python uses internally a dictionary to bring them into "life"? 2021-05-21 05:00:38 --> contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has joined #python 2021-05-21 05:00:41 bjs rendar: well internally Python is complicated, and for performance reasons it has lots of different ways 2021-05-21 05:00:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 05:01:00 bjs duso: I think you need to spend time learning more about lists. `list(n)` and `[n]` are very different. 2021-05-21 05:01:02 --> IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has joined #python 2021-05-21 05:01:26 bjs duso: and `some_list + (n%b)` doesn't work since n%b is a number, maybe you wanted `some_list + [n%b]` 2021-05-21 05:01:49 bjs rendar: but yeah, if you don't look too hard it's like there's a dictionary inside Python for the locals 2021-05-21 05:01:54 bjs rendar: print(locals()) for e.g. 2021-05-21 05:02:13 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-21 05:02:26 --> fbiagent (~fbiagent@unaffiliated/fbiagent) has joined #python 2021-05-21 05:02:26 <-- fbiagent_ (~fbiagent@unaffiliated/fbiagent) has quit (Ping timeout: 240 seconds) 2021-05-21 05:02:38 <-- mikkel (~mike@208.110.120.167) has quit (Remote host closed the connection) 2021-05-21 05:02:46 <-- mnemonicj (~mnemonicj@208.110.121.49.ciktel-dhcp.cipherkey.net) has quit (Ping timeout: 252 seconds) 2021-05-21 05:03:51 <-- random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Quit: random_yanek) 2021-05-21 05:03:53 <-- torandu (~sean@94.10.124.37) has quit (Ping timeout: 260 seconds) 2021-05-21 05:04:24 --> random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 05:05:08 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:2c77:14f9:b17d:5c1) has joined #python 2021-05-21 05:05:45 <-- cd (~cd@unaffiliated/cd) has quit (Ping timeout: 260 seconds) 2021-05-21 05:06:14 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 05:06:23 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 05:06:40 rendar bjs :thanks 2021-05-21 05:07:25 --> mikkel (~mike@208.110.120.167) has joined #python 2021-05-21 05:08:22 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 05:08:24 rendar interestingly '__name__' is the first key of locals(), now that in python keys are ordered 2021-05-21 05:09:00 --> Ariakenom (~Ariakenom@2001:9b1:efb:fc00:4074:661e:32e7:5683) has joined #python 2021-05-21 05:09:03 --> Cherenkov (~Cherenkov@a109-49-131-251.cpe.netcabo.pt) has joined #python 2021-05-21 05:09:35 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 05:09:39 amogorkon how is that interesting? 2021-05-21 05:10:26 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 240 seconds) 2021-05-21 05:10:29 <-- lbalhar (~lbalhar@93.185.13.26) has quit (Ping timeout: 246 seconds) 2021-05-21 05:10:49 --> Laibsch (~Laibsch@2a01:c23:7059:1d00:f2de:f1ff:fed0:6548) has joined #python 2021-05-21 05:10:55 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-21 05:10:56 <-- Ariakenom (~Ariakenom@2001:9b1:efb:fc00:4074:661e:32e7:5683) has quit (Client Quit) 2021-05-21 05:11:07 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-21 05:11:13 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 05:11:17 --> Ariakenom (~Ariakenom@2001:9b1:efb:fc00:4074:661e:32e7:5683) has joined #python 2021-05-21 05:11:20 cluelessperson_ bjs, isn't return [n] the same as return list(n) ? 2021-05-21 05:11:32 bjs cluelessperson_: no, that's why I said they're not the same 2021-05-21 05:11:52 --> Core7860 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-21 05:11:57 cluelessperson_ oh, list makes a list out of an iterable. 2021-05-21 05:11:59 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-21 05:12:02 cluelessperson_ list([5]) 2021-05-21 05:12:13 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-21 05:12:16 cluelessperson_ bjs, I figured list would do list(*items) 2021-05-21 05:12:23 bjs cluelessperson_: that is not what it does 2021-05-21 05:12:24 cluelessperson_ not list(iterable) ;P 2021-05-21 05:12:28 cluelessperson_ yeah, I see now 2021-05-21 05:13:06 <-- mikkel (~mike@208.110.120.167) has quit (Ping timeout: 240 seconds) 2021-05-21 05:13:14 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 05:13:26 cluelessperson_ I'm teaching GPG, IPV4, TLS to a bunch of gamers online that are interested in tech. 2021-05-21 05:13:29 cluelessperson_ :P 2021-05-21 05:13:43 amogorkon ipv4? 2021-05-21 05:13:44 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 05:13:55 amogorkon why? 2021-05-21 05:14:12 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 05:15:37 <-- torandu (~sean@94.10.124.37) has quit (Client Quit) 2021-05-21 05:16:14 cluelessperson_ amogorkon, why not ipv4? 2021-05-21 05:16:23 amogorkon why not ipv6? 2021-05-21 05:16:29 cluelessperson_ almost everyone's seen it, is aware of it 2021-05-21 05:16:38 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-21 05:17:03 cluelessperson_ amogorkon, ipv6 is newer, slightly more complex to look at, and less familiar to most people. I explain it as well, but not as immediately. 2021-05-21 05:17:26 <-- plutoniix (~q@58.136.84.218) has quit (Ping timeout: 240 seconds) 2021-05-21 05:17:28 cluelessperson_ at least most people have seen 192.168.1.1 and such. 2021-05-21 05:17:45 --> nomic (~nomic@2a00:23c6:9910:1201:75ad:c06a:2af:5c00) has joined #python 2021-05-21 05:18:21 <-- Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has quit (Ping timeout: 240 seconds) 2021-05-21 05:18:21 --> masoudd (~masoudd@unaffiliated/masoudd) has joined #python 2021-05-21 05:18:47 <-- synthetek (~synthetek@138.199.52.51) has quit (Read error: Connection reset by peer) 2021-05-21 05:18:52 --> lauxley (~lauxley@2a01:e34:ec55:2700:5ab:97f4:9a07:d53) has joined #python 2021-05-21 05:18:52 amogorkon isn't it like teaching python2 instead of 3? 2021-05-21 05:18:54 --> mikkel (~mike@208.110.120.167) has joined #python 2021-05-21 05:18:56 --> Lauxley_ (~lauxley@2a01:e34:ec55:2700:5ab:97f4:9a07:d53) has joined #python 2021-05-21 05:19:22 --> behelit (~behelit@217.61.224.60) has joined #python 2021-05-21 05:19:23 amogorkon sure there is still ipv4 around, but ipv6 is the present and future 2021-05-21 05:19:40 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-21 05:20:00 supakeen The problem with that being that nigh everything is IPv4. 2021-05-21 05:20:12 -- mozgalom is now known as bomb-on 2021-05-21 05:20:16 supakeen You can suffice not knowing Python 2, you can't not knowing IPv4 :) 2021-05-21 05:20:26 rendar e = NaN --- name 'NaN' is not defined | how can i set/check if a float number is NaN? 2021-05-21 05:20:31 --> Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has joined #python 2021-05-21 05:20:38 <-- BakaKuna (~Thunderbi@86-89-65-191.fixed.kpn.net) has quit (Ping timeout: 246 seconds) 2021-05-21 05:20:49 behelit hi! i'm probably thinking about this backwards .. but i have have a structure like `a/b` in `b` i have `x.py` and `y.py`, from `x.py` i'm importing `y` as `from . import y`. if I run `python x.py` i get "ImportError: attempted relative import with no known parent package". 2021-05-21 05:21:03 --> lucad111 (~lucad111@linaro/lucad111) has joined #python 2021-05-21 05:21:05 amogorkon rendar, from math import isnan 2021-05-21 05:21:06 behelit there are `__init__.py`-files in both `a` and `b` 2021-05-21 05:21:13 --> const_is (~const@62.44.1.75) has joined #python 2021-05-21 05:21:19 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 05:21:21 supakeen `float("NaN")`, `math.isnan(somefloat)`. 2021-05-21 05:21:25 <-- rgr_ (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-21 05:21:35 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 05:21:44 duso https://bpa.st/7GMA - Think I am getting closer, recursion is doing my head in 2021-05-21 05:21:49 behelit i just want to import the local version of `y`, regardless of whether i'm invoking it as a script or importing functionality from `x`. 2021-05-21 05:22:08 --> roadie (~user@2a02:8108:ec0:1427:a09e:f1f:63d0:943a) has joined #python 2021-05-21 05:22:18 bjs duso: in `[dec2base(n//b, b)]` do you really want the outer brackets? 2021-05-21 05:22:19 rendar amogorkon: i see thanks 2021-05-21 05:22:26 amogorkon yw 2021-05-21 05:22:29 bjs duso: It seems all the problems are just list operations, and not the recursion. 2021-05-21 05:22:42 bjs behelit: that's difficult 2021-05-21 05:23:06 bjs behelit: whether something is in a package or not is dependent not only on the directory structure, but also how the code was ran 2021-05-21 05:23:23 bjs behelit: if you `python3 foo.py` then foo is not considered part of any package. It's why scripts *inside* packages just don't work 2021-05-21 05:23:25 <-- const_is (~const@62.44.1.75) has quit (Client Quit) 2021-05-21 05:24:02 bjs behelit: You want to put the script above the package and then import the top-level package, or invoke Python with `python3 -m pkg.foo` so it knows that pkg/ is a package and to run pkg/foo.py 2021-05-21 05:24:29 --> lbalhar (~lbalhar@37-48-26-86.nat.epc.tmcz.cz) has joined #python 2021-05-21 05:25:09 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 05:25:14 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 05:25:23 behelit ah, ok. works as intended with -m switch. 2021-05-21 05:25:46 behelit thanks 2021-05-21 05:25:51 --> hypc1 (~Thunderbi@113.233.198.245) has joined #python 2021-05-21 05:26:09 bjs behelit: it's confusing because "packageness" depends on both the directory structure, _and_ how the code inside the package was ran (whether it was imported, or ran directly, or invoked with -m). 2021-05-21 05:26:11 --> mnemonicj (~mnemonicj@208.110.121.49.ciktel-dhcp.cipherkey.net) has joined #python 2021-05-21 05:27:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 05:27:20 <-- hypc (~Thunderbi@113.233.198.245) has quit (Read error: Connection reset by peer) 2021-05-21 05:27:21 -- hypc1 is now known as hypc 2021-05-21 05:27:39 behelit yeah, i can work around that with some documentation. will feel a bit constipated, but we should be ok :) 2021-05-21 05:27:53 --> Ergo (~ergo@91.238.59.144) has joined #python 2021-05-21 05:27:54 --> BakaKuna (~Thunderbi@86-89-65-191.fixed.kpn.net) has joined #python 2021-05-21 05:28:14 <-- P1ckleRick (~X@2a00:23a8:98b:500:40b9:1d48:97c8:d69f) has quit (Quit: Leaving) 2021-05-21 05:28:20 bjs behelit: you can also put the script in the directory above the package, and then the script can just import the package 2021-05-21 05:28:40 bjs behelit: and the package can define a `run_script` function (or often called "main") and the script can just call it. 2021-05-21 05:29:06 <-- Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has quit (Ping timeout: 240 seconds) 2021-05-21 05:29:09 <-- acresearch (~acresearc@unaffiliated/acresearch) has quit (Ping timeout: 245 seconds) 2021-05-21 05:29:24 --> dob1 (~dob1@unaffiliated/dob1) has joined #python 2021-05-21 05:29:39 <-- ramsub07 (c137b06f@gateway/web/cgi-irc/kiwiirc.com/ip.193.55.176.111) has quit (Quit: Connection closed) 2021-05-21 05:29:48 --> Gerula (~Gerula@unaffiliated/gerula) has joined #python 2021-05-21 05:29:52 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-21 05:30:46 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 05:32:06 --> ElPresidente (~ElPreside@2600:1700:3d10:4870:2965:ec64:1e60:939f) has joined #python 2021-05-21 05:32:16 <-- ElPresidente (~ElPreside@2600:1700:3d10:4870:2965:ec64:1e60:939f) has left #python ("Leaving") 2021-05-21 05:33:29 --> PantelicGR (~PantelicG@unaffiliated/pantelicgr) has joined #python 2021-05-21 05:33:40 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-21 05:34:35 <-- Lauxley_ (~lauxley@2a01:e34:ec55:2700:5ab:97f4:9a07:d53) has quit (Quit: Leaving) 2021-05-21 05:35:33 <-- masoudd (~masoudd@unaffiliated/masoudd) has quit (Quit: Leaving) 2021-05-21 05:35:39 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 05:35:41 <-- bahamas (~lucian@unaffiliated/bahamas) has quit (Ping timeout: 260 seconds) 2021-05-21 05:36:06 --> masoudd (~masoudd@unaffiliated/masoudd) has joined #python 2021-05-21 05:36:07 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Read error: Connection reset by peer) 2021-05-21 05:36:17 --> burakcank (~burakcank@159.146.41.74) has joined #python 2021-05-21 05:36:28 --> plutoniix (~q@ppp-27-55-87-16.revip3.asianet.co.th) has joined #python 2021-05-21 05:36:42 behelit ah, ok ... thanks! i can stick with forcing the user to run with -m from a specific path ... this is just to run doctests 2021-05-21 05:37:00 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-orkujsvtgjqtfkcp) has quit (Quit: Connection closed for inactivity) 2021-05-21 05:38:35 bjs behelit: I have been known to put `python -m` invokations inside a Makefile before, so that all the paths line up properly 2021-05-21 05:38:49 bjs not sure I recommend that, but if you ensure it's ran from the correct directory it should all work 2021-05-21 05:40:15 <-- The-Compiler (~compiler@qutebrowser/dev/The-Compiler) has quit (Ping timeout: 260 seconds) 2021-05-21 05:40:36 <-- singularity00 (~singulari@85.187.64.126.client.entry.bg) has quit (Quit: The true sign of intelligence is not knowledge but imagination.) 2021-05-21 05:41:13 --> bahamas (~lucian@unaffiliated/bahamas) has joined #python 2021-05-21 05:41:14 <-- fantis (~mantisfan@gateway/tor-sasl/mantisfan) has quit (Remote host closed the connection) 2021-05-21 05:41:18 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-21 05:41:31 <-- Ergo (~ergo@91.238.59.144) has quit (Ping timeout: 260 seconds) 2021-05-21 05:41:38 --> fantis (~mantisfan@gateway/tor-sasl/mantisfan) has joined #python 2021-05-21 05:43:07 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 05:43:17 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 05:43:17 drogas hi 2021-05-21 05:43:31 drogas I don't quite understand this ` def __init__(self, config: dict,` 2021-05-21 05:43:42 drogas specially config: dict 2021-05-21 05:43:56 nedbat drogas: that's a type hint 2021-05-21 05:44:15 drogas does it mean it `__init__` initalises a `config` only with type `dict`? 2021-05-21 05:44:54 --> Ergo (~ergo@91.238.59.144) has joined #python 2021-05-21 05:44:56 drogas never seen `foo: bar` in a function looks weird 2021-05-21 05:45:05 <-- Laibsch (~Laibsch@2a01:c23:7059:1d00:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-21 05:45:15 --> iflema (~ian@unaffiliated/iflema) has joined #python 2021-05-21 05:45:18 man_in_shack it's a newish thing 2021-05-21 05:45:28 d42 it most likely doesn't really *do* anything 2021-05-21 05:45:31 man_in_shack does it mean it `__init__` initalises a `config` only with type `dict`? << no, it's just a hint 2021-05-21 05:45:57 man_in_shack it means that if you use the function, you SHOULD only pass it a dict (or dict-like) 2021-05-21 05:46:00 d42 mostly that the fellow developer who wrote it expects you to pass config as a dict or something close enough 2021-05-21 05:46:05 bjs drogas: it's for documentation, like a comment or docstrings 2021-05-21 05:46:07 drogas okay my next question is what is a hint? as in it is a hint for us developers/users or the machine? will it take ANY type or just dict? 2021-05-21 05:46:17 bjs drogas: Python itself ignores them, but tools and humans can read them and make use of them 2021-05-21 05:46:24 drogas okay I see got it 2021-05-21 05:46:25 man_in_shack type-hints can be parsed by validation tools to make sure things aren't intentially broken 2021-05-21 05:46:43 drogas so it can be used in conjunction with some documentation library etc. 2021-05-21 05:46:55 bjs drogas: the syntax is any expression, but there are a set of types that people have decided on a meaning for (see https://www.python.org/dev/peps/pep-0484/ ), and tools like mypy can read them and use them to check you're doing it right 2021-05-21 05:47:26 bjs drogas: yes, documentation tools (like sphinx) can render them nicely in documentation and add links to the different types. Tools like mypy can read your code and check you're not passing a list when you say you want a dict, etc. 2021-05-21 05:47:47 drogas bjs ah okay! yes they did mention sphinx so that must be it 2021-05-21 05:47:59 drogas I understand it now thanks everyone 2021-05-21 05:48:17 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 246 seconds) 2021-05-21 05:48:18 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 05:48:31 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 260 seconds) 2021-05-21 05:49:06 <-- plutoniix (~q@ppp-27-55-87-16.revip3.asianet.co.th) has quit (Ping timeout: 260 seconds) 2021-05-21 05:49:12 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Client Quit) 2021-05-21 05:49:21 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-21 05:49:23 <-- torandu (~sean@94.10.124.37) has quit (Client Quit) 2021-05-21 05:49:28 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 05:49:56 --> aball (~aball@072-180-046-241.res.spectrum.com) has joined #python 2021-05-21 05:49:58 --> torandu (~sean@94.10.124.37) has joined #python 2021-05-21 05:50:20 <-- aball (~aball@072-180-046-241.res.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-21 05:50:34 --> acresearch (~acresearc@unaffiliated/acresearch) has joined #python 2021-05-21 05:50:42 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-21 05:50:51 <-- Ergo (~ergo@91.238.59.144) has quit (Ping timeout: 260 seconds) 2021-05-21 05:51:29 <-- contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has quit (Ping timeout: 260 seconds) 2021-05-21 05:52:39 DPA I wish python was statically typed, or that at least variables would have to be declared. 2021-05-21 05:52:39 DPA The number of times I did a for name in xy: in python and overwrote a pre-existing variable named "name" and similar things, is uncountable... 2021-05-21 05:53:09 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-21 05:53:13 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 265 seconds) 2021-05-21 05:53:28 man_in_shack so use better variable names 2021-05-21 05:53:46 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 240 seconds) 2021-05-21 05:54:22 iflema and consider scope 2021-05-21 05:54:26 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-21 05:54:49 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 05:55:27 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-21 05:55:41 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 05:55:59 --> contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has joined #python 2021-05-21 05:56:02 --> vidbina (~vid@2a02:3035:806:2313:9811:eb93:9a0b:9aec) has joined #python 2021-05-21 05:56:36 <-- ansraliant (~gabriel@unaffiliated/ansraliant) has quit (Ping timeout: 265 seconds) 2021-05-21 05:57:19 supakeen Some things could be easier with some scoping rules, some things even got changed for Python 3 so it's not like there's no precedent :) 2021-05-21 05:57:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 05:57:27 supakeen However the `name` in that for loop leaking is often used. 2021-05-21 05:58:30 DPA It's not like python allows me block scopes, does it? No variable shadowing possible and only function scopes, right? 2021-05-21 05:58:30 DPA Also, the variable name tends to be accurate, if I use name, it is a name of something. I do like verbose names, but I won't repeat myself when naming things. So if it's just a 2 line loop over some X names, I call it name. 2021-05-21 05:58:33 --> The-Compiler (~compiler@qutebrowser/dev/The-Compiler) has joined #python 2021-05-21 05:58:47 supakeen Correct. 2021-05-21 05:58:49 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 05:59:06 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-21 05:59:32 <-- drogas (c251df42@gateway/web/cgi-irc/kiwiirc.com/ip.194.81.223.66) has quit (Quit: Connection closed) 2021-05-21 05:59:36 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 260 seconds) 2021-05-21 06:00:06 <-- a6a45081-2b83 (~aditya@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 06:00:26 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 240 seconds) 2021-05-21 06:00:32 --> Rudd0 (~Rudd0@185.189.115.103) has joined #python 2021-05-21 06:00:42 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Read error: Connection reset by peer) 2021-05-21 06:00:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 06:01:09 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 06:02:26 <-- bahamas (~lucian@unaffiliated/bahamas) has quit (Ping timeout: 240 seconds) 2021-05-21 06:03:26 --> DnzAtWrk (~DnzAtWrk@mobile-access-6df0a0-19.dhcp.inet.fi) has joined #python 2021-05-21 06:03:43 --> plutoniix (~q@58.136.84.218) has joined #python 2021-05-21 06:04:16 <-- Jerrynicki (~niklas@p200300f57702e600af0f0d3be6659389.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-21 06:04:35 <-- JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has quit (Ping timeout: 268 seconds) 2021-05-21 06:04:46 <-- lbalhar (~lbalhar@37-48-26-86.nat.epc.tmcz.cz) has quit (Ping timeout: 240 seconds) 2021-05-21 06:05:25 --> Ergo (~ergo@185.55.8.59.c.fiberdirekt.net) has joined #python 2021-05-21 06:07:46 <-- nomic (~nomic@2a00:23c6:9910:1201:75ad:c06a:2af:5c00) has quit (Quit: Leaving) 2021-05-21 06:09:47 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-21 06:10:56 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 06:11:37 pbnoxious when using the logging module: do you pass around the log instance that you created at the main entry of your code? or do you just define it and afterwords only also import logging and use logging.log()? 2021-05-21 06:13:52 bjs pbnoxious: most people create a logger at the top of each file and use that 2021-05-21 06:14:00 <-- rigid (~rigid@unaffiliated/rigid) has quit (Ping timeout: 265 seconds) 2021-05-21 06:14:09 <-- vidbina (~vid@2a02:3035:806:2313:9811:eb93:9a0b:9aec) has quit (Ping timeout: 245 seconds) 2021-05-21 06:14:44 bjs pbnoxious: `logger = logging.getLogger(__name__)` then use `logger.log()` in the code. 2021-05-21 06:15:13 pbnoxious ah so in the global scope of each module, okay 2021-05-21 06:15:15 --> rigid (~rigid@unaffiliated/rigid) has joined #python 2021-05-21 06:16:15 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-21 06:16:39 --> vidbina (~vid@45.139.215.53) has joined #python 2021-05-21 06:17:01 pbnoxious think I've been using it differently then, my logger is defined in the main() function of my code and I don't use fileconfig but rather just a simple input switch for the levels 2021-05-21 06:17:17 pbnoxious but thanks for the answer, will reconsider that 2021-05-21 06:17:55 --> JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has joined #python 2021-05-21 06:18:51 --> lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has joined #python 2021-05-21 06:19:49 <-- boegel (~quassel@ks3311382.kimsufi.com) has quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-21 06:20:29 <-- Monet (~woostundy@106.11.35.195) has quit (Ping timeout: 246 seconds) 2021-05-21 06:22:35 --> lbalhar (~lbalhar@93.185.13.26) has joined #python 2021-05-21 06:23:02 acresearch I have a math question ... an image of N=10614 number of pixels when the pixel_size=1 ... if i change the pixel_size=0.009 i get N=4727 ... how can i find out what pixel_size i need to get N=5000? 2021-05-21 06:23:52 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-21 06:24:06 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 06:25:10 bjs acresearch: this is #python, did you try ##math . It's not even clear what your question is, why would changing the size of a pixel change how many pixels there are (and why would making the pixels smaller mean you have fewer pixels?) 2021-05-21 06:27:12 rendar uhm, min() and max() applied to an array where there could be None or NaN, what is the best way? 2021-05-21 06:27:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 06:27:23 --> agrawalr_ (~agrawalri@103.123.86.13) has joined #python 2021-05-21 06:27:42 arf` rendar: filter() or comprehension? 2021-05-21 06:28:04 acresearch bjs: well, i did, but i haven't received a response yet, so this i am askign here because i am coding in python, the idea is reducing the details of an image hence combining pixels reduces their number 2021-05-21 06:28:28 bjs acresearch: the lack of good reply probably is because the question is very unclear, it's not at all obvious how you got to the 4727 number or how it relates to pixels an sizes 2021-05-21 06:28:28 rendar arf`: uhm, can you make an example? 2021-05-21 06:28:45 <-- The-Compiler (~compiler@qutebrowser/dev/The-Compiler) has quit (Ping timeout: 250 seconds) 2021-05-21 06:28:46 <-- lbalhar (~lbalhar@93.185.13.26) has quit (Ping timeout: 240 seconds) 2021-05-21 06:28:53 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 246 seconds) 2021-05-21 06:28:58 acresearch bjs: yeh i am trying to figure that out too, hence why i am asking for assistance 2021-05-21 06:29:07 --> P1ckleRick (~X@2a00:23a8:98b:500:3d47:afff:94fd:1b9d) has joined #python 2021-05-21 06:29:20 bjs acresearch: it's hard to help if you can't explain why you get 4727 or what that number means 2021-05-21 06:29:31 bjs acresearch: if I take 1000 pixels, and I make the pixels smaller, I still have 1000 pixels 2021-05-21 06:29:53 bjs if I have a 1000 pixels and I make them smaller but cover the same area, I need *more* pixels. 2021-05-21 06:30:00 <-- plutoniix (~q@58.136.84.218) has quit (Quit: Leaving) 2021-05-21 06:30:08 --> Zajt (c3438f6a@195-67-143-106.customer.telia.com) has joined #python 2021-05-21 06:30:27 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 06:30:41 <-- agrawalritesh (~agrawalri@ec2-3-7-118-226.ap-south-1.compute.amazonaws.com) has quit (Ping timeout: 260 seconds) 2021-05-21 06:31:05 bjs rendar: when you say array do you mean list or numpy array? 2021-05-21 06:31:13 rendar list 2021-05-21 06:31:26 rendar but i wish to support numpy too 2021-05-21 06:31:35 acresearch bjs: ok i tried simplifying the question but here is the full one with code, give me a minute to put it together 2021-05-21 06:32:12 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 06:32:47 bjs rendar: something like `min([x for x in the_list if x is not None and not math.isnan(x)])` would work 2021-05-21 06:32:59 bjs you can also drop the [] 2021-05-21 06:33:18 rendar oh, ok right, i was forgetting i can use 'if' inside comprehension, thanks 2021-05-21 06:33:44 rendar bjs: the thing that bothers me with that approach is that for VERY big data sets, i must rebuild a second list, wasting memory 2021-05-21 06:33:57 bjs rendar: well like I said, you can drop the [] if you're worried about that. 2021-05-21 06:34:15 rendar bjs: ok, in such a case i'm gonna pass a generator to min(), right? 2021-05-21 06:34:19 bjs yes 2021-05-21 06:34:52 rendar what about getting both min/max with only one iteration on the data set? i think i should write my own traversing function for that 2021-05-21 06:35:12 bjs rendar: writing a little function to do that is very simple 2021-05-21 06:35:23 rendar yeah 2021-05-21 06:35:32 --> Laibsch (~Laibsch@2a01:c23:7059:1d00:f2de:f1ff:fed0:6548) has joined #python 2021-05-21 06:37:13 <-- drymer (~drymer@unaffiliated/drymer) has quit (Ping timeout: 260 seconds) 2021-05-21 06:38:01 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-21 06:38:03 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-21 06:38:11 <-- lakrass (~lakrass@5.18.84.94) has quit (Client Quit) 2021-05-21 06:39:06 <-- JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has quit (Ping timeout: 240 seconds) 2021-05-21 06:39:51 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 260 seconds) 2021-05-21 06:40:25 acresearch bjs: sorry it is taking to to make it work 2021-05-21 06:41:46 <-- Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has quit (Ping timeout: 240 seconds) 2021-05-21 06:42:43 --> Zabe (~Zabe@wikimedia/Zabe) has joined #python 2021-05-21 06:43:16 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has joined #python 2021-05-21 06:43:35 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 246 seconds) 2021-05-21 06:43:44 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-21 06:43:52 <-- Zabe (~Zabe@wikimedia/Zabe) has left #python ("Leaving") 2021-05-21 06:44:27 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-21 06:44:38 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-21 06:45:07 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-21 06:45:23 <-- esoares (~esoares@out-traffic.dcc.fc.up.pt) has quit (Quit: Ping timeout (120 seconds)) 2021-05-21 06:45:42 --> The-Compiler (~compiler@qutebrowser/dev/The-Compiler) has joined #python 2021-05-21 06:46:09 --> lbalhar (~lbalhar@37-48-26-86.nat.epc.tmcz.cz) has joined #python 2021-05-21 06:46:15 <-- roadie (~user@2a02:8108:ec0:1427:a09e:f1f:63d0:943a) has quit (Remote host closed the connection) 2021-05-21 06:46:19 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-21 06:46:30 --> roadie (~user@2a02:8108:ec0:1427:a09e:f1f:63d0:943a) has joined #python 2021-05-21 06:47:30 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 06:47:52 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-21 06:48:06 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has quit (Ping timeout: 258 seconds) 2021-05-21 06:48:07 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 06:48:58 <-- LucaTM (~LucaTM@unaffiliated/lucatm) has quit (Quit: To infinity and beyond...) 2021-05-21 06:49:06 <-- drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-21 06:51:42 --> ralderson (~textual@37.19.212.10) has joined #python 2021-05-21 06:51:50 --> JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has joined #python 2021-05-21 06:52:20 --> carduus (~carduus@94.134.227.107) has joined #python 2021-05-21 06:52:39 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 06:53:13 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-21 06:53:20 <-- threwahway (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-21 06:53:20 <-- threwahway_ (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-21 06:54:02 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-21 06:54:03 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-21 06:54:28 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-21 06:55:15 --> MadScientist (~markg@024-217-179-126.res.spectrum.com) has joined #python 2021-05-21 06:55:24 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 245 seconds) 2021-05-21 06:56:05 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-21 06:56:11 <-- ralderson (~textual@37.19.212.10) has quit (Ping timeout: 246 seconds) 2021-05-21 06:56:20 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 06:56:34 <-- Zweimer (~Denic@ip-95-222-89-117.hsi15.unitymediagroup.de) has quit (Quit: Verlassend) 2021-05-21 06:57:19 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 06:57:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 06:57:28 --> plutoniix (~q@ppp-27-55-74-156.revip3.asianet.co.th) has joined #python 2021-05-21 06:59:05 <-- DnzAtWrk (~DnzAtWrk@mobile-access-6df0a0-19.dhcp.inet.fi) has quit (Quit: Leaving) 2021-05-21 06:59:19 <-- Balzy (~Balzy@host-87-15-228-25.retail.telecomitalia.it) has quit (Read error: Connection reset by peer) 2021-05-21 07:00:25 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 07:01:22 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 265 seconds) 2021-05-21 07:02:29 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Ping timeout: 246 seconds) 2021-05-21 07:04:01 <-- lorenzosu (~lorenzosu@static.1.204.46.78.clients.your-server.de) has quit (Quit: ZNC - https://znc.in) 2021-05-21 07:04:12 --> lorenzosu (~lorenzosu@2a01:4f8:c0c:3940::1) has joined #python 2021-05-21 07:04:20 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-21 07:05:09 <-- carduus (~carduus@94.134.227.107) has quit (Quit: Changing server) 2021-05-21 07:06:15 --> carduus (~carduus@94.134.227.107) has joined #python 2021-05-21 07:07:19 <-- carduus (~carduus@94.134.227.107) has quit (Client Quit) 2021-05-21 07:07:37 --> Fischerfredl (~Thunderbi@185.39.90.109) has joined #python 2021-05-21 07:08:41 --> duszek (~duszek@adnb232.neoplus.adsl.tpnet.pl) has joined #python 2021-05-21 07:09:06 duszek can't fix a problem: https://bpa.st/MFSQ, imagenr var should be 199 instead of 200 2021-05-21 07:10:21 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-21 07:10:34 gcbirzan duszek: Why would it be? You're passing 199 to that function, it's lower than 200 and bigger than -1 2021-05-21 07:11:00 gcbirzan duszek: It then adds 1 to it, so it's now 200 2021-05-21 07:13:06 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 260 seconds) 2021-05-21 07:14:24 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 07:14:34 <-- random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Quit: random_yanek) 2021-05-21 07:14:54 --> random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 07:15:20 <-- random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Client Quit) 2021-05-21 07:15:29 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-21 07:15:45 --> random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 07:16:04 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 07:16:16 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Remote host closed the connection) 2021-05-21 07:16:29 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 246 seconds) 2021-05-21 07:17:27 Death916_lap if i have a class that runs the same logic but calls a different api based on which is choseen at runtime, i need to use the same functions but just call apple.close instead of pear.close() but .close() is basically the same for each. i feel like just using an if statement is sloppy. so basically id put if "input() == apple do apple.close if input == pear do pear.close, but ill need to do similar in several functions, what would best way 2021-05-21 07:17:27 Death916_lap of doing this be? jus copying all the functions into separte classes and calling individually? 2021-05-21 07:18:11 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 240 seconds) 2021-05-21 07:18:27 Yhg1s Death916_lap: the usual way would be to have separate modules, or separate classes, or subclasses of a common class that change the attribute that your baseclass operates on. It's hard to tell which would be suitable in this case. 2021-05-21 07:19:37 --> Zy64Jw (~Zy64Jw@122.163.149.247) has joined #python 2021-05-21 07:21:16 Death916_lap i have them in separte modules but i have a class that will run exactly the same but in each function it will either call one or the other module, im trying to figure how to do it without having an if in every function 2021-05-21 07:21:16 <-- stranac (~stranac@195.29.239.126) has quit (Ping timeout: 260 seconds) 2021-05-21 07:22:14 Death916_lap i guess ill jus t add the class into each module and call it directly 2021-05-21 07:22:30 Yhg1s Death916_lap: I'm afraid the vague description doesn't really help. You may be interested in a dict mapping from input to the module/class/instance to use? It's really hard to tell. 2021-05-21 07:22:44 Death916_lap sorry id show code but im kinda propttyping rn so not much to show 2021-05-21 07:22:54 Death916_lap that might work 2021-05-21 07:22:57 Death916_lap the dict mapping 2021-05-21 07:23:08 Death916_lap prototyping* 2021-05-21 07:23:14 Death916_lap thanks anyways ill think some more 2021-05-21 07:25:49 --> bxsx (~x@unaffiliated/bxsx) has joined #python 2021-05-21 07:26:18 --> barbosa (~barbosa@br-go-gsia-186-192-101-173.rturbonet.com.br) has joined #python 2021-05-21 07:26:23 --> barbosa_ (~barbosa@br-go-gsia-186-192-101-173.rturbonet.com.br) has joined #python 2021-05-21 07:27:18 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 07:27:39 --> greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has joined #python 2021-05-21 07:28:01 <-- Laibsch (~Laibsch@2a01:c23:7059:1d00:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-21 07:28:16 --> HannaM (~quassel@p54849510.dip0.t-ipconnect.de) has joined #python 2021-05-21 07:28:17 <-- greyblue9 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Client Quit) 2021-05-21 07:28:33 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 260 seconds) 2021-05-21 07:28:43 <-- barbosa_ (~barbosa@br-go-gsia-186-192-101-173.rturbonet.com.br) has quit (Client Quit) 2021-05-21 07:28:43 <-- barbosa (~barbosa@br-go-gsia-186-192-101-173.rturbonet.com.br) has quit (Client Quit) 2021-05-21 07:29:21 --> ramsan (~ramsan@130.226.239.133) has joined #python 2021-05-21 07:30:07 --> LucaTM (~LucaTM@unaffiliated/lucatm) has joined #python 2021-05-21 07:30:21 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 07:30:45 bxsx is it anything wrong with wrapping ContextVar? something simple like this: https://bpa.st/WUOQ I'm wondering why contextvar doesn't provide class interface 2021-05-21 07:31:18 --> stranac (~stranac@195.29.239.126) has joined #python 2021-05-21 07:32:02 --> greyblue9 (uid500829@gateway/web/irccloud.com/x-sbenarkekjewdtri) has joined #python 2021-05-21 07:32:18 --> x7b (~ffe4@200116b82c1f8400444c6f38daf792b9.dip.versatel-1u1.de) has joined #python 2021-05-21 07:32:54 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:2c77:14f9:b17d:5c1) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 07:34:37 <-- ffe4 (~ffe4@200116b82c1f84007cceb29b0eba67a4.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-21 07:36:09 --> Zy64Jw_ (~Zy64Jw@171.76.149.211) has joined #python 2021-05-21 07:36:38 --> duszek1 (~duszek@adnb232.neoplus.adsl.tpnet.pl) has joined #python 2021-05-21 07:36:47 <-- x7b (~ffe4@200116b82c1f8400444c6f38daf792b9.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-21 07:36:48 acresearch bjs: sorry,,, just got it working: https://paste.debian.net/1198324/ 2021-05-21 07:37:02 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-21 07:37:10 bjs bxsx: what do you mean, "doesn't provide class interface" ? what is the point of this class? 2021-05-21 07:37:50 <-- Zy64Jw (~Zy64Jw@122.163.149.247) has quit (Ping timeout: 246 seconds) 2021-05-21 07:37:50 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 246 seconds) 2021-05-21 07:37:53 <-- ramsan (~ramsan@130.226.239.133) has quit (Ping timeout: 260 seconds) 2021-05-21 07:38:06 <-- duszek (~duszek@adnb232.neoplus.adsl.tpnet.pl) has quit (Ping timeout: 240 seconds) 2021-05-21 07:38:10 <-- greyblue9 (uid500829@gateway/web/irccloud.com/x-sbenarkekjewdtri) has quit (Quit: Updating details, brb) 2021-05-21 07:38:19 bxsx bjs: I actually wondering why I cannot inherit from the ContextVar, I can only wrap it 2021-05-21 07:38:36 <-- kline (~freedom0@lobsters/users/kline) has quit (Excess Flood) 2021-05-21 07:39:02 arf` I there a way to access a function name from its definition body? 2021-05-21 07:39:08 <-- HannaM (~quassel@p54849510.dip0.t-ipconnect.de) has quit (Quit: HannaM) 2021-05-21 07:39:30 --> kline (~freedom0@lobsters/users/kline) has joined #python 2021-05-21 07:39:31 Yhg1s bxsx: let's say "because you shouldn't subclass classes that you dont' control, because it creates a tight coupling with the implementation of the class" 2021-05-21 07:39:42 Yhg1s arf`: not without probing the call stack. 2021-05-21 07:39:48 Yhg1s (which is inefficient and a bad idea.) 2021-05-21 07:39:59 --> AlyssaXY (~luz@31.127.31.50) has joined #python 2021-05-21 07:40:13 --> greyblue9 (uid500829@gateway/web/irccloud.com/x-kmfzdjhqasiuauip) has joined #python 2021-05-21 07:40:19 Cheaterman arf`: def a(): print(a.__name__) works 2021-05-21 07:40:34 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-21 07:40:34 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-21 07:41:07 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-21 07:41:37 --> fedorafan (~fedorafan@unaffiliated/fedorafan) has joined #python 2021-05-21 07:42:12 fedorafan freenode is taken over https://hackaday.com/2021/05/20/freenode-debacle-prompts-staff-exodus-new-network/ 2021-05-21 07:42:41 arf` Sure, I misformulated (as `print("a") would be more obvious). I thought about a way to refer to a function from inside the same way than `self` for instance of a class :) 2021-05-21 07:42:49 Cheaterman Fairly well known at this point, fedorafan. You should go in #freenode to talk about this, I think. 2021-05-21 07:43:09 fedorafan so you accept it 2021-05-21 07:43:25 Cheaterman arf`: Yeah, I sorta guessed hahaha - and so did Yhg1s, seeing their answer :-) I was just trying to rule out the obvious first 2021-05-21 07:43:32 arf` I guess the Yhg1s address this point :) 2021-05-21 07:43:37 Cheaterman exactly :-) 2021-05-21 07:43:49 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:2c77:14f9:b17d:5c1) has joined #python 2021-05-21 07:45:03 <-- Naan (~naan@unaffiliated/naan) has quit (Read error: Connection reset by peer) 2021-05-21 07:45:11 fedorafan ok so stay here 2021-05-21 07:45:28 --> drincruz_ (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-21 07:45:33 cluelessperson_ I'm moving to libera in general. (now back to python ontopic. :P ) 2021-05-21 07:45:42 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-21 07:45:50 bjs fedorafan: see the /topic "Libera? It's being spoken about but there's no answer." 2021-05-21 07:46:13 <-- duszek1 (~duszek@adnb232.neoplus.adsl.tpnet.pl) has quit (Read error: Connection reset by peer) 2021-05-21 07:46:15 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 07:46:20 fedorafan i dont care do what you like to do 2021-05-21 07:46:28 fedorafan stay whereever 2021-05-21 07:46:30 Cheaterman Then why are you coming here to discuss it. Go away. 2021-05-21 07:46:32 fedorafan wow 2021-05-21 07:46:40 supakeen Be nice all :) 2021-05-21 07:46:47 fedorafan you really think i think wow thats not good you have to go away no man i say its bad and now make your decision 2021-05-21 07:46:50 fedorafan hahahaha 2021-05-21 07:46:55 <-- fedorafan (~fedorafan@unaffiliated/fedorafan) has left #python ("Textual IRC Client: www.textualapp.com") 2021-05-21 07:48:28 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-21 07:48:47 cluelessperson_ Cheaterman, Many people need help building trust to move, and I'm happy to offer trust by indicating my decision. 2021-05-21 07:48:50 --> x7b (~ffe4@200116b82c1f8400444c6f38daf792b9.dip.versatel-1u1.de) has joined #python 2021-05-21 07:49:04 greyblue9 Cheaterman: it's pretty much taking over every channel now ;) 2021-05-21 07:49:27 cluelessperson_ A community is not where it sits, and many people I care about are also moving. So it's important to inform others that people they care about might be moving. 2021-05-21 07:49:45 Cheaterman greyblue9: yeah - but there's more constructive ways to discuss about it than just spamming that kind of stuff everywhere. but exactly as cluelessperson_ said, it's IMHO pretty important to know where people stand 2021-05-21 07:49:57 cluelessperson_ obviously on-topic conversation is always priority, just explaining why I'm discussing libera here. 2021-05-21 07:50:02 Cheaterman Discussing it isn't the issue, it's how to discuss it that's a problem 2021-05-21 07:50:27 cluelessperson_ That's perfectly fair and I suppose I was too out of the blue. 2021-05-21 07:50:29 greyblue9 agreed 2021-05-21 07:50:46 --> rinzewind (~chema@unaffiliated/rinzewind) has joined #python 2021-05-21 07:51:02 Cheaterman Either way :-) I'm not yet on libera but certainly will join there soon, but I think I'll be on both networks for the foreseeable future, although it depends on which decisions the individual communities I'm a part of make 2021-05-21 07:51:14 Cheaterman (including, very obviously, this one) 2021-05-21 07:51:28 bxsx Yhg1s: fair enough ;) I am ok with wrapping it 2021-05-21 07:51:38 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 07:52:11 --> Barones (~Barones@2804:48dc:8500:0:ad96:6a52:1350:71ed) has joined #python 2021-05-21 07:52:52 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 07:54:10 <-- Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has quit (Quit: AmigaOS PPC 4.1 +E +U1 // AmIRC 68K) 2021-05-21 07:54:30 greyblue9 we need six.moves for IRC 2021-05-21 07:54:30 --> gelignite (~gelignite@55d46907.access.ecotel.net) has joined #python 2021-05-21 07:55:12 <-- random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Remote host closed the connection) 2021-05-21 07:55:32 Cheaterman hehehehehe 2021-05-21 07:55:34 Death916_lap ha 2021-05-21 07:55:37 <-- lotia (~lotia@9.149.197.104.bc.googleusercontent.com) has quit (Quit: leaving) 2021-05-21 07:55:45 --> random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 07:56:05 Death916_lap irc.copy(freenode) 2021-05-21 07:56:49 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 07:57:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 07:57:37 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-21 08:00:11 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 08:00:21 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 260 seconds) 2021-05-21 08:00:28 --> Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has joined #python 2021-05-21 08:00:56 greyblue9 heh 2021-05-21 08:01:06 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-21 08:02:02 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 08:02:31 --> barph0r (~Thunderbi@185.46.128.9) has joined #python 2021-05-21 08:02:43 greyblue9 Death916_lap: what, you don't think mord abstraction can solve it? :p 2021-05-21 08:03:03 <-- barph (~Thunderbi@pd95b9698.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-05-21 08:03:03 -- barph0r is now known as barph 2021-05-21 08:03:06 <-- JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has quit (Ping timeout: 240 seconds) 2021-05-21 08:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-21 08:06:42 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-21 08:06:50 --> laerus (5e4239c5@ppp-94-66-57-197.home.otenet.gr) has joined #python 2021-05-21 08:07:02 <-- chard7a (~chard@114.247.25.166) has quit (Quit: WeeChat 2.8) 2021-05-21 08:08:07 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-21 08:08:20 --> dez (uid92154@fedora/deSouza) has joined #python 2021-05-21 08:09:03 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-21 08:10:00 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 265 seconds) 2021-05-21 08:10:39 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-21 08:10:48 <-- Zy64Jw_ (~Zy64Jw@171.76.149.211) has quit (Remote host closed the connection) 2021-05-21 08:12:25 <-- barph (~Thunderbi@185.46.128.9) has quit (Ping timeout: 265 seconds) 2021-05-21 08:12:53 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-21 08:13:22 --> oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has joined #python 2021-05-21 08:13:26 --> n00b101 (uid448161@gateway/web/irccloud.com/x-lrfooylmjaziipdi) has joined #python 2021-05-21 08:15:29 <-- random_yanek (~random_ya@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Quit: random_yanek) 2021-05-21 08:15:39 --> kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 08:15:52 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-21 08:16:09 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-21 08:16:30 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-21 08:16:40 <-- kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Client Quit) 2021-05-21 08:16:44 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 08:16:58 --> kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 08:18:03 <-- torandu (~sean@94.10.124.37) has quit (Quit: leaving) 2021-05-21 08:18:33 --> supakeen (~supakeen@python/site-packages/supakeen) has joined #python 2021-05-21 08:18:38 --> barbosa (~barbosa@br-go-gsia-186-192-101-173.rturbonet.com.br) has joined #python 2021-05-21 08:19:02 <-- mz` (~mz@unaffiliated/mz/x-1545692) has quit (Remote host closed the connection) 2021-05-21 08:19:42 <-- kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Client Quit) 2021-05-21 08:20:44 --> kas50 (~ksa50@ary207.neoplus.adsl.tpnet.pl) has joined #python 2021-05-21 08:21:09 <-- Zajt (c3438f6a@195-67-143-106.customer.telia.com) has quit (Quit: Connection closed) 2021-05-21 08:21:23 <-- kas50 (~ksa50@ary207.neoplus.adsl.tpnet.pl) has quit (Client Quit) 2021-05-21 08:21:41 --> kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 08:23:01 --> Zy64Jw (~Zy64Jw@171.76.149.211) has joined #python 2021-05-21 08:23:22 --> fizzizist (~Thunderbi@108.162.133.99) has joined #python 2021-05-21 08:24:05 <-- Raito_Bezarius (~Raito@unaffiliated/raito-bezarius/x-8764578) has left #python ("WeeChat 3.0") 2021-05-21 08:24:30 --> czer0 (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-21 08:25:05 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 246 seconds) 2021-05-21 08:26:10 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:2c77:14f9:b17d:5c1) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 08:26:14 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-21 08:26:17 <-- sicelo (~sicelo@Maemo/community/ex-council/sicelo) has quit (Quit: Bye!) 2021-05-21 08:26:57 --> mz` (~mz@unaffiliated/mz/x-1545692) has joined #python 2021-05-21 08:27:01 --> rgr (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has joined #python 2021-05-21 08:27:06 <-- Zy64Jw (~Zy64Jw@171.76.149.211) has quit (Ping timeout: 240 seconds) 2021-05-21 08:27:24 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 08:27:43 <-- stranac (~stranac@195.29.239.126) has quit (Read error: Connection reset by peer) 2021-05-21 08:29:02 --> sicelo (~sicelo@Maemo/community/ex-council/sicelo) has joined #python 2021-05-21 08:30:58 <-- fflori (~fflori@mob-194-230-155-151.cgn.sunrise.net) has quit (Read error: Connection reset by peer) 2021-05-21 08:31:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 08:32:05 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Ping timeout: 246 seconds) 2021-05-21 08:32:52 --> IHasFinger (~baako@unaffiliated/baako) has joined #python 2021-05-21 08:33:56 IHasFinger hi all, hope we are doing well. I am trying to create a csv file, add the following headers "length, width, height" and then add data to it. 2021-05-21 08:34:10 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-21 08:34:11 <-- Fischerfredl (~Thunderbi@185.39.90.109) has quit (Quit: Fischerfredl) 2021-05-21 08:34:26 <-- czer0 (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 240 seconds) 2021-05-21 08:34:53 <-- mbandeir (~quassel@177.126.11.93) has quit (Ping timeout: 246 seconds) 2021-05-21 08:35:14 <-- kype (uid176843@gateway/web/irccloud.com/x-yensqvlhnkwpbiez) has quit (Quit: Connection closed for inactivity) 2021-05-21 08:35:33 IHasFinger https://bpa.st/FIOQ however not getting it to work, please let me know what i have done wrong 2021-05-21 08:35:53 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: Bin weg.) 2021-05-21 08:37:02 <-- AlyssaXY (~luz@31.127.31.50) has quit (Remote host closed the connection) 2021-05-21 08:37:19 <-- supakeen (~supakeen@python/site-packages/supakeen) has quit (Quit: bye) 2021-05-21 08:37:26 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-21 08:37:29 --> JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has joined #python 2021-05-21 08:37:34 <-- kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Quit: kas50) 2021-05-21 08:37:44 --> supakeen (~supakeen@python/site-packages/supakeen) has joined #python 2021-05-21 08:37:51 --> kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 08:39:47 <-- plutoniix (~q@ppp-27-55-74-156.revip3.asianet.co.th) has quit (Quit: Leaving) 2021-05-21 08:39:51 IoannisJVM i'm trying to return an object from a list but it returns it in this  format __main__.EMS object at 0x7f63cf2a96d0> 2021-05-21 08:39:59 IoannisJVM and decode doesn't seem to apply 2021-05-21 08:40:16 IoannisJVM is there an alternative? 2021-05-21 08:41:45 Yhg1s IoannisJVM: that's just what the repr() of instances of a class called 'EMS' looks like. Is that not the kind of object you expected it to be? 2021-05-21 08:42:05 Yhg1s IHasFinger: what doesn't work about it? 2021-05-21 08:43:24 --> Laibsch (~Laibsch@2a01:c23:7059:1d00:f2de:f1ff:fed0:6548) has joined #python 2021-05-21 08:43:55 <-- sebito91 (~sborza@fedora/sborza) has quit (Quit: laterz) 2021-05-21 08:44:07 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has joined #python 2021-05-21 08:44:29 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 08:44:42 --> Atque (~Atque_@unaffiliated/atque) has joined #python 2021-05-21 08:45:06 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 240 seconds) 2021-05-21 08:45:18 --> Fraggy (~Fraggy@2.58.12.140) has joined #python 2021-05-21 08:45:26 <-- contagious_meow (~contagiou@41-203-221-245.safaricombusiness.co.ke) has quit (Ping timeout: 240 seconds) 2021-05-21 08:45:34 --> salitos (~contagiou@41-203-221-245.safaricombusiness.co.ke) has joined #python 2021-05-21 08:46:39 IoannisJVM Yhg1s i wanted to return the properties of this object as well 2021-05-21 08:47:25 Yhg1s IoannisJVM: they're still on the object. 2021-05-21 08:48:26 --> urodna (~urodna@unaffiliated/urodna) has joined #python 2021-05-21 08:48:43 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has quit (Ping timeout: 250 seconds) 2021-05-21 08:49:06 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Ping timeout: 240 seconds) 2021-05-21 08:49:53 --> cow[moo] (~asanger@c-69-244-155-110.hsd1.mi.comcast.net) has joined #python 2021-05-21 08:50:49 <-- rgr (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-21 08:51:15 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-21 08:51:54 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-21 08:52:02 <-- supakeen (~supakeen@python/site-packages/supakeen) has quit (Quit: bye) 2021-05-21 08:52:17 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-21 08:52:28 <-- daregap (~belovent@cr-01.anx09.lju.si.anexia-it.com) has quit (Quit: daregap) 2021-05-21 08:52:31 IHasFinger Yhg1s, hi, basically it does not (1) create the header and also (2) when the data is added, it just overwrites it. What I am looking to do is (1) create the file which I have done using open(filename, "w") (2) create the header (3) add new row to the file has I am looping 2021-05-21 08:52:46 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 240 seconds) 2021-05-21 08:52:57 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 08:53:12 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-21 08:53:29 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-21 08:53:38 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 08:53:38 Yhg1s IHasFinger: okay, sounds like you missed out a lot of code in your paste. What you have will work for each of those steps, you just have to do step 1-2 once, and step 3 once for each row. 2021-05-21 08:53:58 --> contingo (~textual@213.205.200.36) has joined #python 2021-05-21 08:54:09 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-21 08:56:22 --> jesseTree (~powerhous@2604:3d08:6d80:a900::cab6) has joined #python 2021-05-21 08:56:22 IHasFinger Yhg1s, okay regardless without the loop if the code works in theory if i run the code multiple times, it should add a new row to my file right instead of overwriting each other right? 2021-05-21 08:56:43 Yhg1s IHasFinger: not if you open a file like that, no. It replaces the old file. 2021-05-21 08:57:08 Yhg1s you have to loop *inside* the 'with' block, after you create the DictWriter and you write the header. 2021-05-21 08:57:11 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-21 08:57:11 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 08:57:46 --> tans99427 (a895ac1e@gateway/web/cgi-irc/kiwiirc.com/ip.168.149.172.30) has joined #python 2021-05-21 08:59:28 <-- svarq (~svarq@65.48.163.91) has quit (Quit: Leaving) 2021-05-21 08:59:42 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-21 08:59:45 IHasFinger Yhg1s, I have like this https://bpa.st/ZMCA 2021-05-21 09:00:27 Yhg1s IHasFinger: so for each 'info' in 'dt', you recreate the DictWriter. Don't do that. Do the loop *after* you create the DictWriter. 2021-05-21 09:00:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 09:01:01 <-- bbear (~znc@21212.s.t4vps.eu) has quit (Remote host closed the connection) 2021-05-21 09:01:03 Yhg1s IHasFinger: you can then write the header, once, after you create the DictWriter the first time, with writer.writeheader(). 2021-05-21 09:01:06 <-- Death916_lap (~UserNick@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-21 09:01:18 IHasFinger Yhg1s, confused.com right now 2021-05-21 09:01:34 --> bbear (~znc@21212.s.t4vps.eu) has joined #python 2021-05-21 09:01:37 IHasFinger " Do the loop *after* you create the DictWriter." this is what is confusing 2021-05-21 09:01:48 Yhg1s IHasFinger: I'm not sure how to put what I said differently. You're currently opening the file repeatedly, because it's inside the 'for' loop. Don't do it repeatedly. Open it once. 2021-05-21 09:01:50 --> user2 (~user@python/site-packages/supakeen) has joined #python 2021-05-21 09:02:07 Yhg1s IHasFinger: open the csv file, write the headers, then iterate over your dicts and write them to the writer. 2021-05-21 09:03:04 IHasFinger Yhg1s, like this? https://bpa.st/DQ7Q 2021-05-21 09:03:19 --> __desh (~weechat@76-234-146-88.lightspeed.rcsntx.sbcglobal.net) has joined #python 2021-05-21 09:03:28 Yhg1s IHasFinger: this still does 'writer = csv.DictWriter(...)' in the loop. Do that before the loop as well. 2021-05-21 09:03:43 Yhg1s IHasFinger: only writer.writerow(myDict) should go inside the for loop. 2021-05-21 09:04:20 IHasFinger ohh so the only thing that should be in the loop is writer.writerow(myDict) 2021-05-21 09:04:32 Yhg1s IHasFinger: and whatever is necessary to create 'myDict', yes. 2021-05-21 09:05:20 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 246 seconds) 2021-05-21 09:05:58 --> dober (~dober@unaffiliated/dober) has joined #python 2021-05-21 09:06:12 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-21 09:06:34 <-- vfC (fC@cetialphafive.com) has quit (Quit: My god, It's full of stars...) 2021-05-21 09:08:03 --> p0bailey (~p0bailey@unaffiliated/p0bailey) has joined #python 2021-05-21 09:08:27 IHasFinger Yhg1s, what if you want to create a file inside a loop and then write to it? 2021-05-21 09:09:22 -- user2 is now known as supakeen 2021-05-21 09:10:39 --> vfC (fC@cetialphafive.com) has joined #python 2021-05-21 09:10:42 <-- digitalD (~dp@65.102.234.86) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 09:11:23 <-- p0bailey (~p0bailey@unaffiliated/p0bailey) has quit (Client Quit) 2021-05-21 09:11:43 --> p0bailey (~p0bailey@unaffiliated/p0bailey) has joined #python 2021-05-21 09:12:08 --> AlyssaXY (~luz@31.127.31.50) has joined #python 2021-05-21 09:12:37 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 09:12:47 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Client Quit) 2021-05-21 09:13:01 <-- TommyC (~TommyC@unaffiliated/sepulchralbloom) has quit (Quit: TTFN, Ta Ta For Now!) 2021-05-21 09:13:06 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 09:13:07 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-21 09:13:09 <-- vfC (fC@cetialphafive.com) has quit (Client Quit) 2021-05-21 09:13:11 --> aakashi2001 (~aakashi20@103.61.255.56) has joined #python 2021-05-21 09:13:39 --> vfC (fC@cetialphafive.com) has joined #python 2021-05-21 09:14:04 --> jmgb4 (~jmgb4@unaffiliated/jmgb4) has joined #python 2021-05-21 09:14:05 <-- duso (~duso@pa49-197-55-134.pa.qld.optusnet.com.au) has quit (Read error: Connection reset by peer) 2021-05-21 09:14:13 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Quit: Connection closed) 2021-05-21 09:14:15 jmgb4 So is python going to be switching networks? 2021-05-21 09:14:27 --> royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has joined #python 2021-05-21 09:15:03 supakeen It's up to the users, see the topic. Organisation registration is heavily backlogged on Libera (since they're super busy) so before that it's kinda moot to look at. 2021-05-21 09:15:27 <-- salitos (~contagiou@41-203-221-245.safaricombusiness.co.ke) has quit (Quit: Leaving) 2021-05-21 09:15:48 -- dTal is now known as dTal_deprecated 2021-05-21 09:16:06 <-- Anas__G (~Thunderbi@196.203.67.2) has quit (Ping timeout: 240 seconds) 2021-05-21 09:16:18 bxsx Yhg1s: does it look good or I'm getting into troubles? :) https://bpa.st/LE6Q 2021-05-21 09:16:33 <-- palooka-jock (~mike@45.126.44.146) has quit (Quit: WeeChat 1.9.1) 2021-05-21 09:17:17 --> jarthur_ (~jarthur@cpe-70-114-198-37.austin.res.rr.com) has joined #python 2021-05-21 09:17:34 <-- jarthur (~jarthur@2603-8080-1540-002d-f9d3-bf1c-1ca5-3b65.res6.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-21 09:17:46 jmgb4 I didnt know it was called libera, but that works 2021-05-21 09:18:13 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-21 09:18:36 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 09:18:46 --> deviantfero (~deviantfe@190.150.27.58) has joined #python 2021-05-21 09:18:56 --> rgr (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has joined #python 2021-05-21 09:19:14 --> palooka-jock (~mike@45.126.44.146) has joined #python 2021-05-21 09:19:37 <-- royal_screwup21 (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) has quit (Ping timeout: 260 seconds) 2021-05-21 09:19:47 jmgb4 So my python question, is it posible to use a function to build a list and name that list based on a variable that you pass into it? so if I pass 'foo' starting as a string to my_funct(list_name), at the end I will have a list called foo with results from the function within it? 2021-05-21 09:20:01 <-- weedshack (~weechat@168.235.80.198) has quit (Quit: WeeChat 3.1) 2021-05-21 09:21:01 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-21 09:21:27 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 09:21:43 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-21 09:22:37 --> _RipFreenode_ (~comcat@gateway/tor-sasl/comcat) has joined #python 2021-05-21 09:22:51 <-- Atque (~Atque_@unaffiliated/atque) has quit (Quit: ...) 2021-05-21 09:23:16 --> lmt (uid107697@gateway/web/irccloud.com/x-lptjsgwkccupellu) has joined #python 2021-05-21 09:23:22 --> Rio-1337 (uid197953@gateway/web/irccloud.com/x-qajndlkblzthmnba) has joined #python 2021-05-21 09:23:26 --> weedshack (~weechat@168.235.80.198) has joined #python 2021-05-21 09:23:43 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-21 09:24:15 <-- AlyssaXY (~luz@31.127.31.50) has quit (Quit: Leaving) 2021-05-21 09:24:42 --> Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has joined #python 2021-05-21 09:26:55 --> a6a45081-2b83 (~aditya@122.163.181.9) has joined #python 2021-05-21 09:27:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 09:27:40 <-- mboehn (mathias@hh1.nuxis.org) has quit (Remote host closed the connection) 2021-05-21 09:29:30 --> mboehn (mathias@hh1.nuxis.org) has joined #python 2021-05-21 09:29:34 <-- Guest20 (~textual@192.146.154.3) has quit (Quit: ZZZzzz…) 2021-05-21 09:29:47 <-- Laibsch (~Laibsch@2a01:c23:7059:1d00:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-21 09:30:07 _RipFreenode_ https://youtu.be/q0cRlJs7218?t=281 2021-05-21 09:30:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 09:30:33 --> AlyssaXY (~luz@31.127.31.50) has joined #python 2021-05-21 09:30:43 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 265 seconds) 2021-05-21 09:30:47 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 09:31:05 --> lshatzer (~larrys@c-76-27-112-76.hsd1.ut.comcast.net) has joined #python 2021-05-21 09:31:11 --> Haudegen (~quassel@91.114.49.10) has joined #python 2021-05-21 09:31:12 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 265 seconds) 2021-05-21 09:32:12 --> Laibsch (~Laibsch@dynamic-078-048-171-125.78.48.pool.telefonica.de) has joined #python 2021-05-21 09:32:21 --> MetalGearSolid (~MetalGear@unaffiliated/metalgearsolid) has joined #python 2021-05-21 09:32:36 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-21 09:32:57 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-21 09:33:20 supakeen jmgb4, usually you'd do `list_name = func()` 2021-05-21 09:33:34 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-21 09:33:40 <-- mboehn (mathias@hh1.nuxis.org) has quit (Remote host closed the connection) 2021-05-21 09:33:52 jmgb4 supakeen oh hell, I think you are right. I was just over thinking it 2021-05-21 09:34:16 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Quit: Ping timeout: 252 seconds) 2021-05-21 09:34:18 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-21 09:35:04 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 265 seconds) 2021-05-21 09:35:04 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 09:36:02 <-- _RipFreenode_ (~comcat@gateway/tor-sasl/comcat) has left #python 2021-05-21 09:36:12 --> ramsan (~ramsan@130.226.239.133) has joined #python 2021-05-21 09:37:07 <-- laerus (5e4239c5@ppp-94-66-57-197.home.otenet.gr) has quit (Quit: Connection closed) 2021-05-21 09:37:11 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 09:37:16 --> lemoldu (~lemoldu@2a01cb0883418300516f167aa778f388.ipv6.abo.wanadoo.fr) has joined #python 2021-05-21 09:37:22 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-21 09:37:40 --> djapo (~archie@unaffiliated/djapo) has joined #python 2021-05-21 09:37:43 --> mboehn (mathias@hh1.nuxis.org) has joined #python 2021-05-21 09:38:32 <-- darksun (~darksun@unaffiliated/darksun) has left #python 2021-05-21 09:38:38 <-- lemoldu (~lemoldu@2a01cb0883418300516f167aa778f388.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-21 09:38:46 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 240 seconds) 2021-05-21 09:39:27 <-- lshatzer (~larrys@c-76-27-112-76.hsd1.ut.comcast.net) has left #python ("The Lounge - https://thelounge.chat") 2021-05-21 09:40:46 <-- mboehn (mathias@hh1.nuxis.org) has quit (Client Quit) 2021-05-21 09:40:58 --> mboehn (mathias@hh1.nuxis.org) has joined #python 2021-05-21 09:41:16 <-- drymer (~drymer@unaffiliated/drymer) has quit (Ping timeout: 260 seconds) 2021-05-21 09:41:17 --> PJBoy (~PJBoy@unaffiliated/pjboy) has joined #python 2021-05-21 09:41:28 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-21 09:42:02 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 09:42:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 09:43:16 <-- MetalGearSolid (~MetalGear@unaffiliated/metalgearsolid) has quit (Quit: Leaving) 2021-05-21 09:44:03 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 09:44:14 <-- rgr (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-21 09:44:53 <-- djapo (~archie@unaffiliated/djapo) has quit (Ping timeout: 246 seconds) 2021-05-21 09:45:53 --> duszek (~duszek@adnb232.neoplus.adsl.tpnet.pl) has joined #python 2021-05-21 09:46:16 <-- axisys (~axisys@unaffiliated/axisys) has quit (Quit: leaving) 2021-05-21 09:46:33 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-21 09:46:55 duszek what's wrong in this code? https://bpa.st/W7HQ 2021-05-21 09:48:21 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 09:48:33 SnoopJ duszek, 20/2 is 10.0, a float. Try `range(IMAGESIZE//2+1)` 2021-05-21 09:49:05 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Ping timeout: 265 seconds) 2021-05-21 09:49:23 duszek SnoopJ, I just had figured it out 2021-05-21 09:50:24 jmgb4 supakeen If I go that route, python says its a string, not a list 2021-05-21 09:50:28 jmgb4 So my python question, is it posible to use a function to build a list and name that list based on a variable that you pass into it? so if I pass 'foo' starting as a string to my_funct(list_name), at the end I will have a list called foo with results from the function within it? 2021-05-21 09:50:33 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-21 09:53:26 <-- Fraggy (~Fraggy@2.58.12.140) has quit (Ping timeout: 265 seconds) 2021-05-21 09:54:48 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-21 09:55:37 <-- axisys (~axisys@unaffiliated/axisys) has quit (Quit: leaving) 2021-05-21 09:56:40 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Read error: Connection reset by peer) 2021-05-21 09:57:06 <-- Forsaken87_ (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-21 09:57:08 --> thib (~thib@wikimedia/Thibaut120094) has joined #python 2021-05-21 09:57:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 09:57:28 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 09:57:37 Yhg1s jmgb4: let's say no: variable names should not be variable. Perhaps you want to use a dict, instead. 2021-05-21 09:58:11 <-- pyeverything (~mona@c-66-31-107-137.hsd1.ma.comcast.net) has quit (Quit: Leaving.) 2021-05-21 10:00:02 jmgb4 Not sure how a dict would work either Yhg1s 2021-05-21 10:00:02 --> gr33n7001 (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-21 10:00:07 a1paca jmgb4: how do you mean, name a list? 2021-05-21 10:00:19 Yhg1s jmgb4: lists[list_name] = my_func(list_name) 2021-05-21 10:00:23 SnoopJ jmgb4, dicts are a natural choice when you want a mapping between values, like ^ 2021-05-21 10:00:50 SnoopJ in this case a mapping between strings ("names") and lists 2021-05-21 10:00:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 10:01:09 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Ping timeout: 260 seconds) 2021-05-21 10:01:10 jmgb4 I dont understand SnoopJ 2021-05-21 10:01:25 SnoopJ jmgb4, have you read https://nedbatchelder.com/text/names1.html before? Values don't have names 2021-05-21 10:01:55 SnoopJ when we do something like `lst = [1,2,3]; a = lst; b = lst;`, we have just one list value, which is being referred to be 3 names. 2021-05-21 10:02:08 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 265 seconds) 2021-05-21 10:02:22 SnoopJ by* 3 names 2021-05-21 10:02:48 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-21 10:03:06 jmgb4 a1paca Pretty much I want to generate lists based on a string passed to a function. I want to use a function and have it make a list... so if I pass it foo, bar, zim, I will have a list called foo, bar, zim.I wouldnt pass each and every one at the same time but call the functions at different points in the script 2021-05-21 10:03:15 <-- matjam (~matjam@2601:648:8680:e381:3468:b35a:3378:b6fe) has quit (Ping timeout: 250 seconds) 2021-05-21 10:03:48 Yhg1s jmgb4: as SnoopJ said, lists don't have names. Variables have names. Variable names can't be variable -- it doesn't make sense, how would you refer to them? -- but you can use a dict for that. 2021-05-21 10:04:37 --> matjam (~matjam@2601:648:8680:e381:c4db:2fd5:e86d:1fbe) has joined #python 2021-05-21 10:04:49 jmgb4 How would you print data from something like my_list if my_list = ['1'] 2021-05-21 10:05:11 Yhg1s jmgb4: what do you mean by "print data"? Are you looking for 'print(my_list)'? 2021-05-21 10:05:20 securethemews print(my_list[0]) for the first item in the list 2021-05-21 10:05:38 --> rgr (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has joined #python 2021-05-21 10:06:08 amogorkon Yhg1s, "variable names should not be variable." - *should* ;D 2021-05-21 10:06:12 --> masoudd_ (~masoudd@unaffiliated/masoudd) has joined #python 2021-05-21 10:06:56 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 246 seconds) 2021-05-21 10:07:04 --> thiras_ (~thiras@unaffiliated/thiras) has joined #python 2021-05-21 10:07:09 a1paca jmb4: as has been said before me, lists don't have names. Do you mean you want the contents of the list to be ['foo', 'bar', 'zim']? 2021-05-21 10:07:28 * SnoopJ tries to avoid the word "variable" altogether, it's too confusing in Python 2021-05-21 10:07:39 * amogorkon remembers some experiments with constructed variablenames 2021-05-21 10:07:47 amogorkon identifiers* 2021-05-21 10:07:52 --> Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has joined #python 2021-05-21 10:08:16 amogorkon SnoopJ, good call 2021-05-21 10:08:19 SnoopJ jmgb4, the suggestion is to make: `make_lists("foo", "bar", "zim")` which would return `{"foo": foo_list, "bar": bar_list, "zim": zim_list}` and could be accessed like you would any dict. 2021-05-21 10:08:20 --> hyperknot (~hyperknot@2a02:810d:1640:20cc:2c77:14f9:b17d:5c1) has joined #python 2021-05-21 10:08:30 SnoopJ without getting into any of this really messy business about names 2021-05-21 10:08:41 <-- masoudd (~masoudd@unaffiliated/masoudd) has quit (Ping timeout: 246 seconds) 2021-05-21 10:08:46 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-21 10:09:54 * a1paca is not sure what is really being asked for 2021-05-21 10:09:56 <-- lbalhar (~lbalhar@37-48-26-86.nat.epc.tmcz.cz) has quit (Read error: Connection reset by peer) 2021-05-21 10:09:58 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 10:10:26 SnoopJ a1paca, if I understand right, they want to call a function and have names in the calling scope (re)defined 2021-05-21 10:10:33 a1paca yikes 2021-05-21 10:10:38 --> rwb (~Thunderbi@65.183.138.202) has joined #python 2021-05-21 10:10:50 --> cdown (~cdown@89.32.122.5) has joined #python 2021-05-21 10:11:11 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 10:11:20 jmgb4 SnoopJ I think that makes sense 2021-05-21 10:11:33 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-21 10:11:38 jmgb4 Yhg1s I was just trying to say, lists have to have a name or way to access it 2021-05-21 10:11:51 SnoopJ technically, just the opposite! 2021-05-21 10:11:54 Yhg1s jmgb4: that's not a property of the *list*, that's a property of your *program*. 2021-05-21 10:12:06 SnoopJ values can exist with _no name at all_ 2021-05-21 10:12:30 Yhg1s jmgb4: SnoopJ gave you a link with a longer explanation. If you want the short answer "what you wan't isn't doable. change what you want." 2021-05-21 10:12:31 SnoopJ although without a name, you can't really do anything interesting with them, and your interpreter probably knows this and will clean up that data 2021-05-21 10:12:33 jmgb4 SnoopJ Dont get me even more confused than I am right now 2021-05-21 10:12:33 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-21 10:12:40 <-- Ariakenom (~Ariakenom@2001:9b1:efb:fc00:4074:661e:32e7:5683) has quit (Quit: Leaving) 2021-05-21 10:12:52 Yhg1s SnoopJ: it's trivial without a name, just not without *some* way to refer to them. 2021-05-21 10:12:54 SnoopJ jmgb4, the link really does have great info (in article or video format, as you prefer) 2021-05-21 10:13:03 --> Kingsy (~chris@unaffiliated/kingsy101) has joined #python 2021-05-21 10:13:21 jmgb4 SnoopJ Yeah I am readingi t, just trying to keep up on conversations here and not leave questions unanswered 2021-05-21 10:13:29 amogorkon SnoopJ, you could say foo = [1,2,3] has values 1,2,3 without names though? 2021-05-21 10:13:38 Kingsy if I wanted to mock redis in a test is something like this viablae -> with mock.patch('redis.Redis', side_effect=self.mock_redis): <- where mock_redis() returns -> fakeredis.FakeStrictRedis() ? 2021-05-21 10:13:50 amogorkon i guess that's what Yhg1s is refering to 2021-05-21 10:13:55 SnoopJ amogorkon, nothing in that statement attaches names to those values, but we can't say those values don't have any names 2021-05-21 10:14:03 SnoopJ Yhg1s, what is "it" there? 2021-05-21 10:14:12 Yhg1s SnoopJ: referring to values without a name. 2021-05-21 10:14:46 a1paca I wouldn't be surprised if there is a way to modify the calling locals, this is Python after all, but it would be far from recommended in practice 2021-05-21 10:14:59 Yhg1s a1paca: there isn't a way to do this, no. 2021-05-21 10:14:59 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 246 seconds) 2021-05-21 10:15:05 amogorkon 1,2,3 would have no names, but still a way to refer to them 2021-05-21 10:15:07 Yhg1s (locals are optimised, so you can't just mess with them.) 2021-05-21 10:15:20 SnoopJ Yhg1s, you mean literals, or is there some "I'm holding a non-name reference to this object from Python" machinery at play? weakref, but not weak? 😅 2021-05-21 10:15:20 <-- gr33n7001 (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 246 seconds) 2021-05-21 10:15:46 Yhg1s SnoopJ: no, I just mean things that aren't assigned to names. 2021-05-21 10:15:48 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-21 10:15:50 amogorkon you mean ilke a memoryleak? :p 2021-05-21 10:15:51 a1paca Ygh1s: I see 2021-05-21 10:15:51 <-- axisys (~axisys@unaffiliated/axisys) has quit (Client Quit) 2021-05-21 10:15:53 amogorkon like* 2021-05-21 10:16:45 SnoopJ Yhg1s, OH, like something_interesting(42)? Sure :) 2021-05-21 10:16:55 amogorkon i could think of two other scenarios 2021-05-21 10:16:55 * SnoopJ could have worded it better 2021-05-21 10:17:05 <-- isomari (~isomari@105.112.138.38) has quit (Ping timeout: 246 seconds) 2021-05-21 10:17:07 <-- aakashi2001 (~aakashi20@103.61.255.56) has quit (Ping timeout: 265 seconds) 2021-05-21 10:17:16 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-21 10:17:19 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-21 10:17:20 amogorkon lambdas as key 2021-05-21 10:17:53 amogorkon and maybe inside closures 2021-05-21 10:17:55 --> cdown_ (~cdown@89.32.122.5) has joined #python 2021-05-21 10:18:06 <-- vidbina (~vid@45.139.215.53) has quit (Ping timeout: 240 seconds) 2021-05-21 10:18:16 Kingsy does mock.patch('redis.Redis', side_effect=self.mock_redis): even work on a class constructor rather than a function? 2021-05-21 10:18:34 <-- braincrash (~braincras@113-148-128-083.dynamic.caiway.nl) has quit (Ping timeout: 265 seconds) 2021-05-21 10:18:46 --> DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has joined #python 2021-05-21 10:19:20 <-- blb (~blb@unaffiliated/bryno) has left #python 2021-05-21 10:19:53 --> pileus (james@gateway/vpn/nordvpn/pileus) has joined #python 2021-05-21 10:19:54 <-- rgr (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-21 10:20:06 <-- cdown (~cdown@89.32.122.5) has quit (Ping timeout: 240 seconds) 2021-05-21 10:20:09 -- cdown_ is now known as cdown 2021-05-21 10:20:32 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-21 10:20:33 nedbat jmgb4: can't you just do: foo = make_list(...) instead of: make_list("foo", ....) 2021-05-21 10:20:48 jmgb4 Ah this is nedbat stuff 2021-05-21 10:21:03 jmgb4 Oh hey speaking of the devil 2021-05-21 10:21:18 nedbat jmgb4: hey :) 2021-05-21 10:21:23 <-- axisys (~axisys@unaffiliated/axisys) has quit (Client Quit) 2021-05-21 10:21:37 jmgb4 Watching a video from pycon 2015, you are mentioned in it 2021-05-21 10:21:45 SnoopJ or `foo, bar, zim = make_list(...)` even 2021-05-21 10:22:12 --> ffe4 (~ffe4@i577BCE6D.versanet.de) has joined #python 2021-05-21 10:22:23 amogorkon reminds me, i wanted to watch some pycon vids 2021-05-21 10:22:41 jmgb4 Need to pay attention to this 2021-05-21 10:22:51 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-21 10:22:54 <-- x7b (~ffe4@200116b82c1f8400444c6f38daf792b9.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-21 10:24:04 jmgb4 So you guys are saying values dont have names but this guy 3 minutes in is saying values have names lol 2021-05-21 10:24:15 <-- kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Quit: kas50) 2021-05-21 10:24:19 amogorkon don't have to have names 2021-05-21 10:24:20 <-- a6a45081-2b83 (~aditya@122.163.181.9) has quit (Quit: Konversation terminated!) 2021-05-21 10:24:30 jmgb4 pardon, dont have to have 2021-05-21 10:24:36 jmgb4 Ill be interested to finish this video 2021-05-21 10:25:03 --> kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-21 10:25:31 greyblue9 jmgb4: how would you access the variables created if the name depends on what string is passed to the function? 2021-05-21 10:26:08 amogorkon telepathy! 2021-05-21 10:26:15 amogorkon sry, just kidding ;) 2021-05-21 10:26:45 a1paca Yghis: I looked up that it was possible to modify locals in Python 2, no longer in Python 3 because they changed how it works and it's not really a dict internally 2021-05-21 10:26:49 a1paca TIL, thanks 2021-05-21 10:26:56 jmgb4 greyblue9 I would think python would change the properties of whatever the variable is from a string to a list? I dont know, 2021-05-21 10:27:14 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 10:27:15 greyblue9 hehe, well there is sort of a way but it's super ugly 2021-05-21 10:28:11 amogorkon change the properties of whatever the variable is from a string to a list.. o.O 2021-05-21 10:28:13 --> lbalhar (~lbalhar@93.185.13.26) has joined #python 2021-05-21 10:28:32 <-- __desh (~weechat@76-234-146-88.lightspeed.rcsntx.sbcglobal.net) has quit (Quit: WeeChat 3.0) 2021-05-21 10:28:33 jmgb4 I mean very few people know everything about python, even then, you dont know if you dont ask. 2021-05-21 10:29:07 jmgb4 After the video Im going to try nedbats suggestion 2021-05-21 10:29:12 SnoopJ jmgb4, "this guy" is nedbat btw :) 2021-05-21 10:29:17 greyblue9 you're right, not knocking you for asking 2021-05-21 10:29:17 SnoopJ if it's the video in that link 2021-05-21 10:29:48 jmgb4 SnoopJ Oh thats him? lol 2021-05-21 10:29:53 jmgb4 Heyyyy 2021-05-21 10:30:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 10:30:44 greyblue9 you would be modifying globals though right? if you wanted to access outside of the function 2021-05-21 10:30:46 SnoopJ it's kind of like how every square is a rectangle, but not every rectangle is a square: every name refers to a value, but not all values have names. 2021-05-21 10:31:04 jmgb4 have to have names? 2021-05-21 10:31:11 amogorkon right 2021-05-21 10:31:13 jmgb4 Not all values (have to) have names? 2021-05-21 10:31:16 SnoopJ correct 2021-05-21 10:31:19 jmgb4 Ok 2021-05-21 10:31:29 --> mwichmann (~mats@209-188-119-117.taosnet.com) has joined #python 2021-05-21 10:31:35 amogorkon they may have names, but they don't have to 2021-05-21 10:31:57 SnoopJ the complete Python program `print(42)` makes use of two values: one of them is the print function, referred to by its name ("print"), and one of them the integer 42, referred to by a literal (which isn't a name) 2021-05-21 10:31:59 jmgb4 Im still totally lost by that but Ill get there 2021-05-21 10:32:11 SnoopJ yea, finish that video and then ask us some clarifying questions 2021-05-21 10:32:11 <-- sujeet (sujeet@unaffiliated/freeboson) has left #python 2021-05-21 10:32:23 a1paca I feel "having names" might be giving the impression that the name is a property of the value. It's not. 2021-05-21 10:32:30 nedbat jmgb4: in "x = 2 + 2", the 2's don't have names, but the 4 does. 2021-05-21 10:32:31 Kingsy dhmm I don't think this is it either. does anyone know how to mock a redis object up in a test? 2021-05-21 10:32:38 <-- PantelicGR (~PantelicG@unaffiliated/pantelicgr) has quit (Quit: Leaving) 2021-05-21 10:32:46 greyblue9 i actually don't know o_f a way without 'global x' which would defeat the purpose i think 2021-05-21 10:33:26 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 10:33:28 amogorkon greyblue9, if you put literals in a container, you don't need to assign names to the literals, for instance, does that make sense? 2021-05-21 10:33:33 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 265 seconds) 2021-05-21 10:33:52 greyblue9 yes, like a dict? 2021-05-21 10:33:55 amogorkon sure 2021-05-21 10:34:08 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 10:34:30 amogorkon although that would imply a name if you have the literal as value 2021-05-21 10:34:39 --> Catatronic (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-21 10:34:44 amogorkon a dict isn't a good example for this 2021-05-21 10:34:45 SnoopJ amogorkon, imply a name? 2021-05-21 10:35:06 greyblue9 index by id(value) :p 2021-05-21 10:35:06 amogorkon SnoopJ, key:value implies something akin a name 2021-05-21 10:35:14 SnoopJ amogorkon, emphasis on "akin to." It isn't a name. 2021-05-21 10:35:19 amogorkon i know that 2021-05-21 10:35:34 SnoopJ Okay, just making sure because "imply a name" sounds like you're saying the opposite 2021-05-21 10:35:37 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-21 10:35:51 --> eN_Joy (~eN_Joy@wsip-72-213-93-155.ok.ok.cox.net) has joined #python 2021-05-21 10:36:42 amogorkon SnoopJ, "may be a red herring" might be a better expression? 2021-05-21 10:36:58 --> MikZyth (~MikZyth@188.65.242.190) has joined #python 2021-05-21 10:37:05 <-- philh (~philh@i59F77CA8.versanet.de) has quit (Remote host closed the connection) 2021-05-21 10:37:41 <-- Itzamna (~Itzamna@sub-190-4-191ip241.rev.onenet.cw) has quit (Ping timeout: 240 seconds) 2021-05-21 10:38:38 SnoopJ amogorkon, it's a way to refer to a value that isn't a name, although it uses the same technique that CPython does to implement name lookup. That's getting pretty far into the weeds, though. 2021-05-21 10:40:06 greyblue9 might have to weed-whack our way to the big picture 2021-05-21 10:40:08 amogorkon well, if you use x as a key, it still has no name 2021-05-21 10:40:11 <-- duszek (~duszek@adnb232.neoplus.adsl.tpnet.pl) has quit (Quit: Leaving) 2021-05-21 10:40:30 SnoopJ right, `{"foo": 42}` does not involve any names 2021-05-21 10:40:44 SnoopJ but it *does* provide the same functionality: a way to map a string to a value 2021-05-21 10:41:17 <-- Philonous (~Philonous@unaffiliated/philonous) has quit (Quit: ZNC - https://znc.in) 2021-05-21 10:41:20 * SnoopJ likes the "tag" mental model described in that discussion of names 2021-05-21 10:41:29 amogorkon *nod* 2021-05-21 10:41:35 <-- oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has quit (Ping timeout: 246 seconds) 2021-05-21 10:42:14 greyblue9 if there's no way to look up the value at all i guess i'm missing what the point of having it would be 2021-05-21 10:43:06 <-- gelignite (~gelignite@55d46907.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-21 10:43:17 SnoopJ in the suggested solution of "use a dict", you look up the values by indexing the dict with the string you're interested in 2021-05-21 10:43:27 amogorkon if it's in a container, you usually have different ways to look it up 2021-05-21 10:43:34 amogorkon you could iterate over the container, for instance 2021-05-21 10:43:42 greyblue9 ok, makes sense 2021-05-21 10:43:47 --> tlaxkit (~konversat@185.228.153.79) has joined #python 2021-05-21 10:44:50 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Ping timeout: 252 seconds) 2021-05-21 10:44:57 greyblue9 so the solution is to use a container and just return that, or pass it in and modify it 2021-05-21 10:45:20 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has joined #python 2021-05-21 10:45:39 amogorkon right 2021-05-21 10:46:08 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 246 seconds) 2021-05-21 10:46:10 greyblue9 works for me :p 2021-05-21 10:46:52 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-21 10:47:52 <-- psaintlaurent000 (~psaintlau@ool-43541fc9.dyn.optonline.net) has quit (Ping timeout: 240 seconds) 2021-05-21 10:48:21 <-- eN_Joy (~eN_Joy@wsip-72-213-93-155.ok.ok.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-21 10:48:23 --> lucasb (uid333435@gateway/web/irccloud.com/x-nrivkbrjrdclywlu) has joined #python 2021-05-21 10:49:07 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Ping timeout: 240 seconds) 2021-05-21 10:49:59 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has quit (Ping timeout: 258 seconds) 2021-05-21 10:50:22 --> Y0Gi (~user@moinmoin/fan/jochen) has joined #python 2021-05-21 10:50:34 --> phlixi_ (~phlixi@ppp-46-244-186-107.dynamic.mnet-online.de) has joined #python 2021-05-21 10:50:35 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 10:50:35 <-- mcsontos (~mcsontos@95.82.132.160) has quit (Quit: Leaving) 2021-05-21 10:50:53 --> R24 (67c996dc@103.201.150.220) has joined #python 2021-05-21 10:52:25 Y0Gi hi. in my projects, I use a "shim", 3-line `setup.py` to allow `pip install -e .` to work. is that still necessary these days? or can I require/expect a certain setuptools version or something and get rid of the file? 2021-05-21 10:52:25 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 10:52:25 <-- phlixi (~phlixi@ppp-46-244-186-107.dynamic.mnet-online.de) has quit (Ping timeout: 265 seconds) 2021-05-21 10:53:07 <-- zitter (~danilodim@93-57-35-194.ip162.fastwebnet.it) has quit (Quit: Leaving) 2021-05-21 10:53:36 --> jellyfish (~jellyfish@unaffiliated/jellyfish) has joined #python 2021-05-21 10:54:13 <-- R24 (67c996dc@103.201.150.220) has quit (Client Quit) 2021-05-21 10:54:52 --> mangold (~mangold@198.98.183.45) has joined #python 2021-05-21 10:55:22 <-- Anthaas (~Anthaas@unaffiliated/anthaas) has quit (Ping timeout: 252 seconds) 2021-05-21 10:56:12 --> R24 (67c996dc@103.201.150.220) has joined #python 2021-05-21 10:57:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 10:57:37 --> Anthaas (~Anthaas@unaffiliated/anthaas) has joined #python 2021-05-21 10:57:51 grym Y0Gi: setup.cfg/517 projects still need it 2021-05-21 10:58:09 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-21 11:00:36 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit (Ping timeout: 260 seconds) 2021-05-21 11:00:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 11:01:37 <-- mcope (~mcope@88.98.90.199) has quit (Quit: Konversation terminated!) 2021-05-21 11:01:49 Y0Gi grym: thanks. which projects don't? is it possible to move everything to `pyproject.toml` already? I've seen at least one that has most of the stuff there, but couldn't find a good resource to explain it/back it up. 2021-05-21 11:02:06 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-21 11:02:15 <-- Slide-O-Mix (~slide@2604:a880:1:20::258:1001) has left #python ("WeeChat 2.8") 2021-05-21 11:02:18 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-21 11:03:17 <-- sartan (~sartan@unaffiliated/sartan) has quit (Quit: WeeChat 1.9.1) 2021-05-21 11:03:31 <-- mangold (~mangold@198.98.183.45) has quit (Ping timeout: 260 seconds) 2021-05-21 11:04:08 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 11:05:10 --> briian (uid321220@gateway/web/irccloud.com/x-utmsgfjkjbcixbnh) has joined #python 2021-05-21 11:05:43 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-21 11:05:44 --> Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has joined #python 2021-05-21 11:06:28 jmgb4 This change (rebinding and mutating) is blowing my mind lol 2021-05-21 11:06:31 briian Hi, is there a way with pyyaml to dump a dict and maintain inline lists instead of the hyphen format on each line? I see setting default_flow_style to False, but that makes the whole thing dump basically minifyed when I just want a single key's lists to be inline 2021-05-21 11:06:39 <-- PJBoy (~PJBoy@unaffiliated/pjboy) has quit (Quit: Ping timeout: 252 seconds) 2021-05-21 11:06:42 --> henninb (~henninb@63-226-165-91.mpls.qwest.net) has joined #python 2021-05-21 11:07:02 --> bambanx (~bambanx@207.248.194.201) has joined #python 2021-05-21 11:07:14 <-- nekron (~nekron@noordsee.de) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-21 11:07:29 <-- ffe4 (~ffe4@i577BCE6D.versanet.de) has quit (Ping timeout: 246 seconds) 2021-05-21 11:07:58 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-21 11:08:57 SnoopJ Y0Gi, it's possible to have only a pyproject.toml, yes 2021-05-21 11:09:04 <-- henninb (~henninb@63-226-165-91.mpls.qwest.net) has quit (Client Quit) 2021-05-21 11:09:30 <-- jtmusky_ (~jtmusky@104-1-122-97.lightspeed.okcbok.sbcglobal.net) has quit (Quit: Leaving) 2021-05-21 11:09:45 --> ffe4 (~ffe4@200116b82c1f8400ad3ea6b20ee81fac.dip.versatel-1u1.de) has joined #python 2021-05-21 11:09:57 --> fcjsx (~fcjsx_@2800:a4:817:b800:1d0a:7e35:44c5:d7c6) has joined #python 2021-05-21 11:09:58 --> PantelicGR (~PantelicG@unaffiliated/pantelicgr) has joined #python 2021-05-21 11:10:07 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-21 11:10:11 <-- fcjsx (~fcjsx_@2800:a4:817:b800:1d0a:7e35:44c5:d7c6) has quit (Remote host closed the connection) 2021-05-21 11:10:11 <-- rawessd (~Ralle@95.140.187.23) has quit (Ping timeout: 240 seconds) 2021-05-21 11:10:18 <-- en7ropy (~en7ropy@unaffiliated/en7ropy) has quit (Remote host closed the connection) 2021-05-21 11:10:18 <-- a1paca (a1paca@gateway/vpn/protonvpn/a1paca) has quit (Quit: Leaving) 2021-05-21 11:11:18 <-- adder` (~adder@unaffiliated/adder) has left #python ("Leaving") 2021-05-21 11:11:52 SnoopJ editable installs are a grey area I think because they aren't part of a standard 2021-05-21 11:13:18 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 11:14:29 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-21 11:14:44 --> nekron (~nekron@noordsee.de) has joined #python 2021-05-21 11:15:26 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has joined #python 2021-05-21 11:15:30 mefistofeles SnoopJ: they still require a setup.py, right? 2021-05-21 11:15:53 SnoopJ mefistofeles, for editable installs? I think so. 2021-05-21 11:16:16 SnoopJ That's what Brett Cannon said in his "what the heck is pyproject.toml" blog post last year: https://snarky.ca/what-the-heck-is-pyproject-toml/ 2021-05-21 11:16:30 --> mangold (~mangold@198.98.183.62) has joined #python 2021-05-21 11:17:01 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 11:17:51 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Client Quit) 2021-05-21 11:18:09 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 11:18:30 <-- pileus (james@gateway/vpn/nordvpn/pileus) has quit (Ping timeout: 265 seconds) 2021-05-21 11:20:24 --> panikovsky (~panikovsk@109.165.82.153) has joined #python 2021-05-21 11:21:27 <-- doev (549d7371@p549d7371.dip0.t-ipconnect.de) has quit (Quit: Connection closed) 2021-05-21 11:22:32 <-- R24 (67c996dc@103.201.150.220) has quit (Quit: Connection closed) 2021-05-21 11:22:43 <-- AquaL1te (~AquaL1te@unaffiliated/aqual1te) has quit (Quit: leaving) 2021-05-21 11:23:13 --> Tennis (~Tennis@unaffiliated/tennis) has joined #python 2021-05-21 11:23:42 --> csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has joined #python 2021-05-21 11:24:47 <-- csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has quit (Client Quit) 2021-05-21 11:25:12 --> csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has joined #python 2021-05-21 11:25:21 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-21 11:26:26 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-21 11:26:31 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-21 11:27:10 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 11:28:26 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-21 11:28:28 <-- IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has quit (Quit: Connection closed) 2021-05-21 11:28:37 --> csevast_ (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has joined #python 2021-05-21 11:28:58 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-21 11:30:01 <-- Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-21 11:30:06 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Ping timeout: 240 seconds) 2021-05-21 11:30:26 <-- d_olex (~d_olex@159.65.12.243) has quit (Ping timeout: 240 seconds) 2021-05-21 11:30:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 11:31:55 --> rgr (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has joined #python 2021-05-21 11:32:23 --> d_olex (~d_olex@159.65.12.243) has joined #python 2021-05-21 11:33:08 <-- P1ckleRick (~X@2a00:23a8:98b:500:3d47:afff:94fd:1b9d) has quit (Quit: Leaving) 2021-05-21 11:33:59 <-- todda7 (~torstein@2a02:587:3729:5274:b6df:d74:d185:4e87) has quit (Ping timeout: 260 seconds) 2021-05-21 11:34:06 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-21 11:34:18 <-- Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-21 11:34:46 <-- mangold (~mangold@198.98.183.62) has quit (Ping timeout: 240 seconds) 2021-05-21 11:34:50 <-- jellyfish (~jellyfish@unaffiliated/jellyfish) has quit (Ping timeout: 258 seconds) 2021-05-21 11:35:23 --> henistein (0251bb58@bl20-187-88.dsl.telepac.pt) has joined #python 2021-05-21 11:35:30 <-- henistein (0251bb58@bl20-187-88.dsl.telepac.pt) has left #python 2021-05-21 11:36:11 --> Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has joined #python 2021-05-21 11:37:38 <-- ziddey (ziddey@ool-2f11057d.dyn.optonline.net) has quit (Ping timeout: 252 seconds) 2021-05-21 11:38:50 --> ziddey (ziddey@ool-2f11057d.dyn.optonline.net) has joined #python 2021-05-21 11:38:57 <-- Naan (~naan@unaffiliated/naan) has quit (Quit: Leaving) 2021-05-21 11:39:03 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-21 11:39:15 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 11:39:44 <-- nekron (~nekron@noordsee.de) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-21 11:40:01 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-21 11:40:30 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 11:40:39 --> nekron (~nekron@noordsee.de) has joined #python 2021-05-21 11:41:32 --> mikeike2 (~j@gateway/tor-sasl/doh) has joined #python 2021-05-21 11:41:57 --> kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has joined #python 2021-05-21 11:42:25 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-21 11:42:43 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-21 11:43:20 --> MarderIII (~MarderIII@2001:981:5b5b:1:a95b:6c54:73dd:85e4) has joined #python 2021-05-21 11:43:28 --> mangold (~mangold@198.98.183.138) has joined #python 2021-05-21 11:43:39 --> GNUtoo (~GNUtoo@cyberdimension.org) has joined #python 2021-05-21 11:43:42 --> fcjsx (~fcjsx_@2800:a4:817:b800:1d0a:7e35:44c5:d7c6) has joined #python 2021-05-21 11:43:42 --> bronsen (~bronsen@pdpc/supporter/professional/housetier) has joined #python 2021-05-21 11:44:02 <-- bronsen (~bronsen@pdpc/supporter/professional/housetier) has left #python ("WeeChat 3.1") 2021-05-21 11:44:05 -- terps is now known as FatLoser 2021-05-21 11:44:59 <-- Barones (~Barones@2804:48dc:8500:0:ad96:6a52:1350:71ed) has quit (Ping timeout: 245 seconds) 2021-05-21 11:45:26 Y0Gi SnoopJ, thanks 2021-05-21 11:46:40 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 11:47:14 <-- Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-21 11:47:15 <-- Harlin (~Harlin@2603:300b:663:e800:df1f:5064:3021:7fa0) has quit (Ping timeout: 250 seconds) 2021-05-21 11:47:46 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 11:48:40 --> cthulchu (~cthulchu@193.194.107.250) has joined #python 2021-05-21 11:48:40 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-21 11:48:43 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-21 11:49:00 --> Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has joined #python 2021-05-21 11:49:11 --> Harlin (~Harlin@2603:300b:663:e800:8564:ac7a:e73d:a3f9) has joined #python 2021-05-21 11:49:11 <-- mangold (~mangold@198.98.183.138) has quit (Read error: Connection reset by peer) 2021-05-21 11:50:24 --> Rapture (~Rapture@71.236.251.149) has joined #python 2021-05-21 11:50:51 <-- AlyssaXY (~luz@31.127.31.50) has quit (Remote host closed the connection) 2021-05-21 11:51:10 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-21 11:51:24 <-- bambanx (~bambanx@207.248.194.201) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-21 11:52:31 --> cdown_ (~cdown@163.114.131.1) has joined #python 2021-05-21 11:53:33 -- Abrax is now known as Garrus 2021-05-21 11:54:26 <-- vds (sid12483@gateway/web/irccloud.com/x-hbgqbzmkqfmfweva) has quit 2021-05-21 11:54:44 -- Garrus is now known as Abrax 2021-05-21 11:55:01 <-- cdown (~cdown@89.32.122.5) has quit (Ping timeout: 260 seconds) 2021-05-21 11:55:10 -- cdown_ is now known as cdown 2021-05-21 11:55:25 -- Abrax is now known as Squall 2021-05-21 11:55:40 <-- Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-21 11:55:41 -- Squall is now known as Abrax 2021-05-21 11:55:48 tete_ SnoopJ, i got it working btw. - i guess it was a combination of some wrong things like mixing .png and .jpg etc. - anyway, with the tensorflow example code it works. but i have another question which you might be able to answer. there are extra points when we use not only python but also e.g. c or R. do you have any idea what i could do in c or R to extend a classification problem? 2021-05-21 11:55:50 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-21 11:55:53 --> sebito91 (~sborza@fedora/sborza) has joined #python 2021-05-21 11:56:08 tete_ maybe something with data augmentation in R or so 2021-05-21 11:57:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 11:57:13 <-- opsec (~opsec@opsec/opsec) has quit (Remote host closed the connection) 2021-05-21 11:57:32 --> Forsaken87 (~quassel@2a02:908:186c:a6a0:37fb:cb1a:2571:d822) has joined #python 2021-05-21 11:58:46 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Quit: WeeChat 3.0.1) 2021-05-21 11:58:51 <-- Haudegen (~quassel@91.114.49.10) has quit (Quit: Bin weg.) 2021-05-21 11:59:03 <-- fcjsx (~fcjsx_@2800:a4:817:b800:1d0a:7e35:44c5:d7c6) has quit (Quit: fcjsx) 2021-05-21 11:59:23 --> jealousmonk (~jealousmo@brettgilio.com) has joined #python 2021-05-21 12:00:06 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-21 12:00:12 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 12:00:32 --> death_ (UserNick@unaffiliated/death916) has joined #python 2021-05-21 12:00:49 --> death__ (UserNick@unaffiliated/death916) has joined #python 2021-05-21 12:01:00 <-- rgr (~rgr@p200300e4170c80d2170442d0b60b5a20.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-21 12:01:01 SnoopJ tete_, C++ would serve you a LOT better than C here 2021-05-21 12:01:13 SnoopJ but I'm not really sure what kind of extension you mean 2021-05-21 12:01:23 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-21 12:01:46 <-- Death916 (UserNick@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-21 12:01:48 -- death__ is now known as Death916 2021-05-21 12:02:02 Kingsy what is the best way of debugging why mock.patch cant find a class attribute? 2021-05-21 12:02:02 <-- thoros (~thoros@193-154-185-59.adsl.highway.telekom.at) has quit (Quit: WeeChat 3.0.1) 2021-05-21 12:02:07 <-- digitalD (~dp@65.102.234.86) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 12:02:11 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-21 12:02:58 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-21 12:03:46 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 240 seconds) 2021-05-21 12:04:54 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 265 seconds) 2021-05-21 12:05:16 --> penth (~rachel@pool-74-109-26-143.phlapa.fios.verizon.net) has joined #python 2021-05-21 12:05:24 <-- bomb-on (~mozgalom@IPnet-gw.157.157.97.111.simnet.is) has quit (Quit: SO LONG, SUCKERS!) 2021-05-21 12:05:34 -- Abrax is now known as Do_You_Have_Weir 2021-05-21 12:05:42 -- Do_You_Have_Weir is now known as Abrax 2021-05-21 12:06:09 --> Bitflux (bytefluxma@gateway/shell/matrix.org/x-ysevryucfsxhauhu) has joined #python 2021-05-21 12:06:23 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-21 12:07:42 --> purplex (~purplex@unaffiliated/purplex88) has joined #python 2021-05-21 12:07:59 <-- tm007 (uid287041@gateway/web/irccloud.com/x-mmnoqathxydsheyj) has quit (Quit: Connection closed for inactivity) 2021-05-21 12:08:23 tete_ SnoopJ, ok then i will take a look what i could do in a simple way in c++. if possible we should load some other language in python, not that important what that code does but would be nice if it would do something useful and not only print a "hello world" ;) 2021-05-21 12:08:55 SnoopJ tete_, "load some other language" is basically what you're doing when you use keras 2021-05-21 12:09:27 SnoopJ you're driving C++ software from a Python driver's seat :) 2021-05-21 12:09:58 tete_ oh yeah, of course - i mean i should write some code that does something, python has some functionality to do so iirc 2021-05-21 12:10:16 <-- Rapture (~Rapture@71.236.251.149) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-21 12:10:20 SnoopJ if I knew what "something" you were interested in I might have more useful feedback 2021-05-21 12:10:36 <-- javi404 (~quassel@unaffiliated/javi404) has quit (Ping timeout: 260 seconds) 2021-05-21 12:11:28 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-21 12:11:47 --> Rapture (~Rapture@71.236.251.149) has joined #python 2021-05-21 12:11:48 --> rinwa (~rinwa@37.46.46.89) has joined #python 2021-05-21 12:11:50 tete_ something is not defined yet ;) 2021-05-21 12:11:59 SnoopJ indeed 2021-05-21 12:12:08 tete_ i mean... it would be enough to print a hello world i guess but would be nice if it would be something that has to do with my images 2021-05-21 12:12:20 tete_ maybe i create a c++ class that prints some statistics 2021-05-21 12:12:34 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-lmyuqfxcxxjgtlwz) has joined #python 2021-05-21 12:12:38 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 12:12:38 tete_ image count, image sizes, or so 2021-05-21 12:12:40 --> c17r (~c17r@c17r.com) has joined #python 2021-05-21 12:12:58 <-- Rio-1337 (uid197953@gateway/web/irccloud.com/x-qajndlkblzthmnba) has quit (Quit: Connection closed for inactivity) 2021-05-21 12:13:12 <-- Bitflux (bytefluxma@gateway/shell/matrix.org/x-ysevryucfsxhauhu) has left #python ("User left") 2021-05-21 12:14:05 --> gloomy_desktop (~ldorigo@81.161.149.37) has joined #python 2021-05-21 12:14:09 <-- mixfix41 (~homefame@unaffiliated/mixfix41) has left #python 2021-05-21 12:16:01 <-- philr (~phil@118.211.93.148) has quit (Ping timeout: 265 seconds) 2021-05-21 12:17:14 <-- csevast_ (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has quit (Quit: IRC for eric6 IDE) 2021-05-21 12:18:06 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-21 12:18:36 --> gelignite (~gelignite@55d46907.access.ecotel.net) has joined #python 2021-05-21 12:18:37 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-21 12:18:53 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has quit (Ping timeout: 250 seconds) 2021-05-21 12:19:05 --> bonhoeffer (~tim@159.63.128.50) has joined #python 2021-05-21 12:19:33 bonhoeffer i'm setting up python on a new build -- what is best practice for version management (pyenv?) 2021-05-21 12:19:48 bonhoeffer venv? 2021-05-21 12:20:41 <-- __alex (~alex@95.90.254.243) has quit (Ping timeout: 252 seconds) 2021-05-21 12:21:11 --> demophobia (~A3@2603:9004:510:d155:fd71:142c:560b:a5f0) has joined #python 2021-05-21 12:21:44 bonhoeffer or virtualenv 2021-05-21 12:21:51 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-21 12:22:01 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-21 12:23:12 --> euri10[m] (~euri10mat@155.210.31.93.rev.sfr.net) has joined #python 2021-05-21 12:23:13 euri10[m] using asdf here, never went back 2021-05-21 12:23:48 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-21 12:23:55 bonhoeffer euri10[m], sorry i don't understand what asdf is, that is a version manager? 2021-05-21 12:24:03 amogorkon what's the best way to implement a facade pattern with automatic method forwarding? 2021-05-21 12:24:13 euri10[m] yes, https://asdf-vm.com/#/ 2021-05-21 12:24:18 --> AlyssaXY (~luz@31.127.31.50) has joined #python 2021-05-21 12:24:26 bonhoeffer thanks 2021-05-21 12:24:46 euri10[m] you can think of it as pyenv for python, nvm for node, etc etc all in one 2021-05-21 12:24:56 <-- SyntheticClamor (~Synthetic@2a01cb04008a92007da59076e1b0ce8b.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-21 12:25:11 bbear bonhoeffer: pyenv allows you to handle several python version on your local computer 2021-05-21 12:25:27 bonhoeffer asdf looks interesting 2021-05-21 12:25:32 <-- stahl (~stahl@z35.anorg.net) has quit (Ping timeout: 246 seconds) 2021-05-21 12:25:57 bbear bonhoeffer: virtualenv just basically isolates your dependency in a special folder, but you still need a python interpreter 2021-05-21 12:26:09 demophobia Could you please help me set my vscode terminal to python 3? 2021-05-21 12:26:14 --> pileus (james@gateway/vpn/nordvpn/pileus) has joined #python 2021-05-21 12:26:28 * amogorkon got an idea 2021-05-21 12:26:28 bonhoeffer bbear, thanks 2021-05-21 12:27:08 bbear did not know about asdf 2021-05-21 12:27:09 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 12:27:52 <-- n00b101 (uid448161@gateway/web/irccloud.com/x-lrfooylmjaziipdi) has quit (Quit: Connection closed for inactivity) 2021-05-21 12:28:13 <-- Y0Gi (~user@moinmoin/fan/jochen) has left #python 2021-05-21 12:30:20 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 12:30:26 <-- gloomy_desktop (~ldorigo@81.161.149.37) has quit (Quit: Konversation terminated!) 2021-05-21 12:31:40 --> pablo87 (ba9be372@186.155.227.114) has joined #python 2021-05-21 12:32:15 <-- meethos (~pun84@pool-108-24-127-194.cmdnnj.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-05-21 12:32:20 <-- pun84 (~pun84@pool-108-24-127-194.cmdnnj.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-05-21 12:32:23 <-- DarthGandalf (user@znc/developer/DarthGandalf) has quit (Quit: Bye) 2021-05-21 12:32:38 --> DarthGandalf (user@znc/developer/DarthGandalf) has joined #python 2021-05-21 12:32:46 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 240 seconds) 2021-05-21 12:32:49 <-- pizdets (~pizdets@183.182.114.7) has quit (Ping timeout: 260 seconds) 2021-05-21 12:33:06 <-- ramsan (~ramsan@130.226.239.133) has quit (Ping timeout: 240 seconds) 2021-05-21 12:33:07 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::cbc1) has joined #python 2021-05-21 12:34:34 bonhoeffer so i should use asdf + virtualenv 2021-05-21 12:34:44 bonhoeffer to isolate the project environment ? 2021-05-21 12:34:56 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-21 12:34:58 pablo87 Is this a good place to ask for help? I'm trying to do something in pandas and I'm really stuck 2021-05-21 12:35:20 --> shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has joined #python 2021-05-21 12:35:28 Wulf pablo87: guess it's ontopic. 2021-05-21 12:36:02 --> mangold (~mangold@198.98.183.54) has joined #python 2021-05-21 12:37:05 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 250 seconds) 2021-05-21 12:37:25 <-- DarthGandalf (user@znc/developer/DarthGandalf) has quit (Read error: Connection reset by peer) 2021-05-21 12:37:27 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046/bot/smadventure) has joined #python 2021-05-21 12:37:41 --> Some-body_ (user@znc/developer/DarthGandalf) has joined #python 2021-05-21 12:38:12 SnoopJ it is ontopic yep 2021-05-21 12:38:38 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-21 12:39:08 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-21 12:39:11 -- Some-body_ is now known as DarthGandalf 2021-05-21 12:39:14 pablo87 Okay, it's kind of hard to explain what I'm trying to do but I'll try my best lol 2021-05-21 12:39:14 <-- ffe4 (~ffe4@200116b82c1f8400ad3ea6b20ee81fac.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-21 12:40:13 pablo87 So I have a DataFrame with about 6 columns and all of those columns either have values or are NaN's 2021-05-21 12:40:32 --> duszek (~duszek@adnb232.neoplus.adsl.tpnet.pl) has joined #python 2021-05-21 12:40:44 duszek can somebody see what's wrong in this C++ to Python translation? 2021-05-21 12:40:45 duszek https://bpa.st/PW7Q 2021-05-21 12:40:55 pablo87 What I was first trying to achieve was duplicating each column that had more than one value that is not NaN and I was able to do that without much issue 2021-05-21 12:41:11 pablo87 But now I need to distribute each non nan value into thouse duplicated rows that I created 2021-05-21 12:41:25 --> medium_cool (~medium_co@c-24-11-26-224.hsd1.ut.comcast.net) has joined #python 2021-05-21 12:41:38 --> ffe4 (~ffe4@200116b82c1f8400ad3ea6b20ee81fac.dip.versatel-1u1.de) has joined #python 2021-05-21 12:42:01 <-- mdk (~mdk@51.15.187.166) has quit (Quit: WeeChat 3.1) 2021-05-21 12:42:12 pablo87 and that's where I'm stuck at 2021-05-21 12:42:28 Wulf duszek: English identifiers might help ;-) Why do you think something's wrong? 2021-05-21 12:42:36 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 265 seconds) 2021-05-21 12:42:57 duszek Wulf: because no matter what I do, it always returns at else 2021-05-21 12:43:43 amogorkon pablo87, maybe it's easier to explain if you came up with a minimal example and posted it on bpaste? 2021-05-21 12:43:43 --> Diemuzi (~Diemuzi@unaffiliated/diemuzi) has joined #python 2021-05-21 12:43:53 --> janislago (~user@c-24-98-52-54.hsd1.ga.comcast.net) has joined #python 2021-05-21 12:44:19 janislago i dislike the language design principles of python and i'd like to know the rationale for them, anyone willing to chat? 2021-05-21 12:44:31 mefistofeles janislago: sure 2021-05-21 12:44:32 amogorkon janislago, import this 2021-05-21 12:44:38 amogorkon ^^ 2021-05-21 12:44:48 janislago oh yeah import was pretty good when i did use py 2021-05-21 12:44:54 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-21 12:45:04 amogorkon "import this" is the zen of python 2021-05-21 12:45:27 pablo87 amogorkon Thanks! I'll do that 2021-05-21 12:45:29 <-- Core7860 (~greyblue9@c-73-251-148-239.hsd1.va.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-21 12:45:31 janislago certainly easier to understand in terms of package management than like, common lisp's quicklisp package manager 2021-05-21 12:45:40 janislago or c includes lmao 2021-05-21 12:45:43 <-- mexen (uid495612@gateway/web/irccloud.com/x-uspsgzicqwdhquoa) has quit (Quit: Connection closed for inactivity) 2021-05-21 12:46:00 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-21 12:46:07 janislago hello finkata1! 2021-05-21 12:46:14 Wulf duszek: I can't spot any mistake in the translation 2021-05-21 12:46:21 amogorkon janislago, the zen of python are the design principles for python as general idea 2021-05-21 12:46:38 amogorkon it's not about the import machinery 2021-05-21 12:46:38 --> boB_K7IQ (~boB_K7IQ@152.44.147.180) has joined #python 2021-05-21 12:46:53 janislago i get what you meant there, was just referencing that specifically 2021-05-21 12:47:04 amogorkon good 2021-05-21 12:47:27 janislago do you think python could be faster? 2021-05-21 12:47:46 SnoopJ duszek, the `else` on Line 18 is erroneous, it changes the semantics 2021-05-21 12:47:47 amogorkon sure, guido's plan is to work on performance 2021-05-21 12:47:47 Wulf duszek: what's the type of obraz and its values? 2021-05-21 12:48:00 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-21 12:48:00 SnoopJ or hm, wait sorry no it doesn't 2021-05-21 12:48:02 Wulf duszek: why are you using int()? 2021-05-21 12:48:03 <-- maxamillion (sid276220@ansible/staff/maxamillion) has quit 2021-05-21 12:48:07 SnoopJ because the other branches have returns >_> 2021-05-21 12:48:26 janislago thank you amogorkon 2021-05-21 12:48:30 janislago im gonna head out for now 2021-05-21 12:48:33 <-- janislago (~user@c-24-98-52-54.hsd1.ga.comcast.net) has left #python ("ERC (IRC client for Emacs 27.2)") 2021-05-21 12:48:35 mefistofeles lol 2021-05-21 12:48:37 amogorkon ... 2021-05-21 12:48:39 mefistofeles that was fast 2021-05-21 12:48:49 amogorkon always happy to help? 2021-05-21 12:48:50 mefistofeles amogorkon: you scare them 2021-05-21 12:48:56 amogorkon sorry ^^ 2021-05-21 12:48:58 mefistofeles haha 2021-05-21 12:49:00 Wulf duszek: if obraz[i][j] is not an int but e.g. a str, then a comparison int != str will always be True 2021-05-21 12:49:01 duszek translated to English: https://bpa.st/UINQ 2021-05-21 12:50:23 --> xioton (~xioton@41.113.11.177) has joined #python 2021-05-21 12:50:25 <-- Diemuzi (~Diemuzi@unaffiliated/diemuzi) has quit (Quit: See you on the flip side.) 2021-05-21 12:50:46 --> madmallard (acf92fe7@cpe-172-249-47-231.socal.res.rr.com) has joined #python 2021-05-21 12:51:02 madmallard anybody know a fast way to screenshot a window in python, that preserves the correct DPI settings of the machine? 2021-05-21 12:51:09 madmallard I was using win32gui and it just totally gave me inaccurate dimensions 2021-05-21 12:51:22 madmallard it was fast, 10 ms, but just wrong dimensions 2021-05-21 12:51:31 madmallard i used pyautogui.screenshot which works but it takes like 650ms 2021-05-21 12:51:35 madmallard which is much too slow 2021-05-21 12:51:50 <-- masoudd_ (~masoudd@unaffiliated/masoudd) has quit (Read error: Connection reset by peer) 2021-05-21 12:53:50 <-- isomari (~isomari@105.112.138.38) has quit (Quit: WeeChat 3.0.1) 2021-05-21 12:53:55 --> brainstew0 (~brainstew@c-24-12-19-216.hsd1.il.comcast.net) has joined #python 2021-05-21 12:54:09 <-- securethemews (~securethe@2a00:23c4:1e98:e400::4) has quit (Ping timeout: 245 seconds) 2021-05-21 12:54:43 <-- aslicedbanjo (~aslicedba@host81-157-178-153.range81-157.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-21 12:54:46 xioton Hey. What's a good alternative for PyAudio, because it doesn't seem to install on my machine. 2021-05-21 12:54:51 Wulf duszek: did you read my questions above? 2021-05-21 12:55:08 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-21 12:55:09 --> dbrownns (adfc2120@host-173-252-33-32.public.eastlink.ca) has joined #python 2021-05-21 12:55:20 <-- tlaxkit (~konversat@185.228.153.79) has quit (Quit: Konversation terminated!) 2021-05-21 12:55:27 duszek Wulf: yes 2021-05-21 12:55:39 <-- Pyrus (~pyrus@unaffiliated/pyrus) has quit (Quit: ZNC - http://znc.in) 2021-05-21 12:55:47 duszek how do I get a vertical array row in Python? 2021-05-21 12:56:09 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-21 12:56:38 --> Pyrus (~pyrus@unaffiliated/pyrus) has joined #python 2021-05-21 12:57:08 Wulf duszek: there's no such thing. You can iterate over all rows to create your column-array. 2021-05-21 12:57:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 12:57:11 pablo87 Hello again, so I have a pandas dataframe that looks like this https://bpa.st/EIIQ 2021-05-21 12:57:18 xioton duszek: numpy has a .vstack() funtion 2021-05-21 12:57:35 pablo87 And for each row that has a non False value I want to duplicate that row 2021-05-21 12:57:54 pablo87 and make a new column called 'value' which has one of the non false values 2021-05-21 12:58:06 <-- Ergo (~ergo@185.55.8.59.c.fiberdirekt.net) has quit (Ping timeout: 240 seconds) 2021-05-21 12:58:06 duszek Wulf: i don't understand, I want something like this: https://bpa.st/2GBQ 2021-05-21 12:58:17 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 12:58:22 <-- AlyssaXY (~luz@31.127.31.50) has quit (Remote host closed the connection) 2021-05-21 12:58:23 <-- medium_cool (~medium_co@c-24-11-26-224.hsd1.ut.comcast.net) has quit (Quit: Bye for now...) 2021-05-21 12:58:23 --> securethemews (~securethe@host86-181-103-208.range86-181.btcentralplus.com) has joined #python 2021-05-21 12:58:26 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-21 12:58:27 pablo87 I managed to duplicate the rows but the part of distributing the non false values across the duplicated rows is where i'm stuck 2021-05-21 12:58:28 grym duszek: well, those are 5 integers 2021-05-21 12:58:31 grym duszek: not a 2-d array 2021-05-21 12:58:46 duszek grym: that was just an example 2021-05-21 12:58:57 grym duszek: well, it was not a useful one to demonstrate your point 2021-05-21 12:59:01 duszek grym: i need code to read something like that 2021-05-21 12:59:06 duszek grym: it's hard to explain 2021-05-21 12:59:27 duszek i want a code to read a column instead of row from array 2021-05-21 12:59:32 Wulf duszek: if you've got a list of lists or strings, you can't just say "give me the first column". 2021-05-21 12:59:48 duszek Wulf: yes, it is a list of lists 2021-05-21 12:59:53 Wulf duszek: you could do something like [row[0] for row in table] 2021-05-21 13:00:47 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 13:01:49 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-21 13:03:06 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 260 seconds) 2021-05-21 13:03:19 <-- ponyofdeath (~vladi@2606:6000:cfc0:2b:1850:c071:a926:7ef5) has quit (Ping timeout: 245 seconds) 2021-05-21 13:03:27 <-- duszek (~duszek@adnb232.neoplus.adsl.tpnet.pl) has quit (Quit: Leaving) 2021-05-21 13:03:33 <-- lavendereyes (~lavendere@gateway/tor-sasl/lavendereyes) has quit (Ping timeout: 240 seconds) 2021-05-21 13:03:34 --> lavender- (~lavendere@gateway/tor-sasl/lavendereyes) has joined #python 2021-05-21 13:03:36 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-21 13:03:47 --> burakcank (~burakcank@159.146.41.74) has joined #python 2021-05-21 13:04:06 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: brb, rebooting) 2021-05-21 13:04:37 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-21 13:04:45 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-21 13:04:51 <-- bonhoeffer (~tim@159.63.128.50) has quit (Ping timeout: 260 seconds) 2021-05-21 13:04:54 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-21 13:05:16 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-21 13:05:50 euri10[m] usually I have all my python interpreter setup with asdf, each one has just poetry installed, then inside a project I `asdf local python x.y.z` to set the interpreter I want, then I `poetry install package1` and poetry manages the virtualenv, dependencies for me bonhoeffer (IRC) 2021-05-21 13:06:23 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 13:07:11 <-- ybonatakis (~b10n1k@88.103.226.40) has quit (Quit: WeeChat 3.0.1) 2021-05-21 13:07:39 <-- xioton (~xioton@41.113.11.177) has quit (Quit: leaving) 2021-05-21 13:08:56 amogorkon https://bpa.st/M54A <- why am i getting this error? 2021-05-21 13:09:03 --> mozgalom (~mozgalom@194.144.47.113) has joined #python 2021-05-21 13:09:08 amogorkon with a = A(B()) 2021-05-21 13:09:38 -- mozgalom is now known as bomb-on 2021-05-21 13:09:47 --> adde9708 (uid139358@gateway/web/irccloud.com/x-gbnuyetrujpubwyj) has joined #python 2021-05-21 13:10:13 amogorkon (nvm the bad indentation of the methods __getattr__ and __setattr__) 2021-05-21 13:10:16 indigoblue I'm running a python app that was developed w/wxPython inside a VM. It crashes when I run it normally, but when I run it using pdb it seems to execute just fine. Any ideas where I can look to see why it's segfaulting? 2021-05-21 13:10:26 bjs amogorkon: also did you mean to call the async def? 2021-05-21 13:10:28 <-- jealousmonk (~jealousmo@brettgilio.com) has left #python ("Leaving") 2021-05-21 13:10:28 --> Deesl (~bsdboy@redhat/deesl) has joined #python 2021-05-21 13:10:33 bjs __reload() 2021-05-21 13:10:37 SnoopJ indigoblue, have you tried attaching gdb to it to see where the segfault comes from? 2021-05-21 13:10:52 amogorkon bjs, oh, i need to do () and not just pass the function? 2021-05-21 13:10:54 <-- Sanguinan (~Sanguinan@71.73.97.102) has quit (Quit: Leaving) 2021-05-21 13:11:04 bjs amogorkon: it wants a Future, or a coroutine 2021-05-21 13:11:11 amogorkon darn 2021-05-21 13:11:15 bjs amogorkon: why darn? 2021-05-21 13:11:23 indigoblue I tried earlier, but wasn't able to make sense of the data. I'll try it one more time and try and capture the output. 2021-05-21 13:11:46 <-- vdamewood (~vdamewood@unaffiliated/vdamewood) has quit (Quit: Life beckons.) 2021-05-21 13:11:54 amogorkon bjs, because that means i'm stupid ^^ 2021-05-21 13:11:59 SnoopJ indigoblue, if you share it here, we can help decipher the output. Executing the `bt` command (to show the backtrace) is the main thing you want to do after you hit the SIGSEGV 2021-05-21 13:12:04 <-- adde9708 (uid139358@gateway/web/irccloud.com/x-gbnuyetrujpubwyj) has quit (Client Quit) 2021-05-21 13:12:30 amogorkon bjs, thanks 2021-05-21 13:13:02 amogorkon i really should experiment more with asyncio these days.. 2021-05-21 13:13:11 indigoblue sorry for the necessary handholding. what was the command again? "gdb python3.7 pythonAppName.py"? 2021-05-21 13:13:35 bjs amogorkon: the whole async def vs coroutine vs future vs task thing is a bit complicated, and asyncio doesn't really make it simple to follow 2021-05-21 13:14:14 indigoblue nvm, google is my friend 2021-05-21 13:14:17 indigoblue found the command 2021-05-21 13:14:24 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-21 13:14:53 <-- Deesl (~bsdboy@redhat/deesl) has quit (Ping timeout: 258 seconds) 2021-05-21 13:15:13 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::cbc1) has quit (Ping timeout: 250 seconds) 2021-05-21 13:15:18 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-21 13:15:21 <-- deepy (deepy@wrongplanet/deepa) has quit (Read error: Connection reset by peer) 2021-05-21 13:15:24 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-21 13:16:21 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-21 13:16:30 Sunny93 Jonno_FTW How is this book (https://pages.cs.wisc.edu/~remzi/OSTEP/) compared to the one you recommend eariler this day (http://www.nastooh.com/teaching/Silberschatz_Operating_System_Concepts_10e_2018.pdf) ? 2021-05-21 13:16:35 --> ponyofdeath (~vladi@cpe-24-94-16-66.san.res.rr.com) has joined #python 2021-05-21 13:16:57 Sunny93 Both are huge though.. 1200 pages vs 710 pages OMG 2021-05-21 13:17:57 <-- Nact (~l@host-85-27-123-107.dynamic.voo.be) has quit (Quit: Konversation terminated!) 2021-05-21 13:18:13 <-- Suwacc (~Mija@144.48.39.220) has quit (Quit: Suwacc) 2021-05-21 13:18:22 <-- tans99427 (a895ac1e@gateway/web/cgi-irc/kiwiirc.com/ip.168.149.172.30) has quit (Quit: Connection closed) 2021-05-21 13:18:33 <-- mangold (~mangold@198.98.183.54) has quit (Ping timeout: 260 seconds) 2021-05-21 13:19:56 SnoopJ I have seen glowing praise about the first one and it looked great when I poked around in it (for information about loading, I think) 2021-05-21 13:20:17 SnoopJ or maybe it was virtual memory 2021-05-21 13:21:11 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 246 seconds) 2021-05-21 13:21:37 <-- csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has quit (Quit: IRC for eric6 IDE) 2021-05-21 13:21:43 --> JimmyNeutron (~weechat@173.239.198.210) has joined #python 2021-05-21 13:21:49 indigoblue !paste 2021-05-21 13:22:00 SnoopJ https://bpaste.net/+python+pytb 2021-05-21 13:22:02 --> kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has joined #python 2021-05-21 13:22:05 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Remote host closed the connection) 2021-05-21 13:23:04 <-- acresearch (~acresearc@unaffiliated/acresearch) has quit (Quit: WeeChat 2.8) 2021-05-21 13:23:06 indigoblue SnoopJ: https://bpa.st/LA4Q 2021-05-21 13:23:11 <-- kabooHD (~Thunderbi@eth-west-pareq2-46-193-1-54.wb.wifirst.net) has quit (Client Quit) 2021-05-21 13:23:33 --> mangold (~mangold@198.98.183.39) has joined #python 2021-05-21 13:23:40 --> spawnboxor (~spawnboxo@81-64-221-226.rev.numericable.fr) has joined #python 2021-05-21 13:24:12 --> qbit2821 (~qbit2821@94-255-133-214.cust.bredband2.com) has joined #python 2021-05-21 13:24:29 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-21 13:25:02 <-- rendar (~rendar@unaffiliated/rendar) has quit 2021-05-21 13:25:22 --> sjoshi (~joshi_sun@223.235.138.221) has joined #python 2021-05-21 13:25:37 hyperknot hi, is there a way to force every logger to be debug when starting python? 2021-05-21 13:25:53 <-- guardian (~guardian@planet-d.net) has quit (Quit: Coyote finally caught me) 2021-05-21 13:27:30 --> antonymcgreen (~Thunderbi@95.73.236.199) has joined #python 2021-05-21 13:27:30 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 13:27:48 SnoopJ indigoblue, whoa, that looks like it's coming from readline 2021-05-21 13:28:16 ChrisWarrick hyperknot: if you set the root logger logging.getLogger('') to debug, well-behaved libraries will show their debug logs too 2021-05-21 13:29:22 hyperknot logging.basicConfig(level=logging.DEBUG)? 2021-05-21 13:29:59 <-- antonymcgreen (~Thunderbi@95.73.236.199) has quit (Client Quit) 2021-05-21 13:30:18 --> oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has joined #python 2021-05-21 13:30:55 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 13:30:58 jmgb4 nedbat Was it you or SnoopJ that gave me the dictionary example? It ran off my history already =( 2021-05-21 13:31:09 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 260 seconds) 2021-05-21 13:31:25 <-- dvx (~dvx@185.63.97.64) has quit (Quit: dvx) 2021-05-21 13:31:34 Sunny93 SnoopJ thanks I would probably go for the first one 2021-05-21 13:31:36 SnoopJ jmgb4, if you have a question about it, just ask that question 2021-05-21 13:31:58 jmgb4 SnoopJ No questions yet I need to see it again and try to implement it, work through it to understand. I just lost the example 2021-05-21 13:33:35 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-21 13:34:28 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-21 13:35:44 --> deepy (deepy@wrongplanet/deepa) has joined #python 2021-05-21 13:35:46 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 240 seconds) 2021-05-21 13:36:16 SnoopJ jmgb4, I don't know what example you mean, but here's one that summarizes the earlier discussion around making a dict: https://bpaste.net/JFYQ 2021-05-21 13:36:36 indigoblue SnoopJ: I wonder why it would fail on a builtin... 2021-05-21 13:37:53 --> psyb0t (~psyb0t@45.12.222.246) has joined #python 2021-05-21 13:39:32 <-- roadie (~user@2a02:8108:ec0:1427:a09e:f1f:63d0:943a) has quit (Quit: ERC (IRC client for Emacs 27.1.91)) 2021-05-21 13:40:17 --> thatpythonboy (~username@117.200.4.173) has joined #python 2021-05-21 13:41:43 <-- agrawalr_ (~agrawalri@103.123.86.13) has quit (Remote host closed the connection) 2021-05-21 13:41:55 <-- acovrig (~acovrig@host-108-174-105-157.JENOLT4.epbfi.com) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-21 13:42:19 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-21 13:42:20 --> rylee_ (~rylee@gateway/tor-sasl/rylee) has joined #python 2021-05-21 13:42:24 --> Barones (~Barones@2804:48dc:8500:0:d076:2bd7:31f4:d4e6) has joined #python 2021-05-21 13:43:09 <-- rylee (~rylee@gateway/tor-sasl/rylee) has quit (Ping timeout: 240 seconds) 2021-05-21 13:43:26 <-- drymer (~drymer@unaffiliated/drymer) has quit (Ping timeout: 240 seconds) 2021-05-21 13:43:55 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::cbc1) has joined #python 2021-05-21 13:44:04 SnoopJ indigoblue, the immediate cause of the failure is that `m` is a null pointer, which is definitely not a pointer to a module. As far as the rest of that trace, I legitimately dunno. 2021-05-21 13:45:32 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-21 13:46:05 <-- wender (~Wender@189.37.66.190) has quit (Ping timeout: 260 seconds) 2021-05-21 13:46:27 <-- Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has quit (Quit: AmigaOS PPC 4.1 +E +U1 // AmIRC 68K) 2021-05-21 13:46:43 --> derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has joined #python 2021-05-21 13:47:27 SnoopJ #2 is inside of libedit which is confusing to me 2021-05-21 13:47:29 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-21 13:47:39 --> Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has joined #python 2021-05-21 13:48:23 --> Naan (~naan@unaffiliated/naan) has joined #python 2021-05-21 13:48:41 SnoopJ I guess it offers a way for the caller to register hooks 2021-05-21 13:49:11 <-- MikZyth (~MikZyth@188.65.242.190) has quit (Quit: WeeChat 3.1) 2021-05-21 13:49:26 <-- BTRE (~BTRE@unaffiliated/btre) has left #python ("Leaving") 2021-05-21 13:49:31 SnoopJ indigoblue, does this happen for any interpreter startup, or is it coming from a particular import in psychopyApp.py? 2021-05-21 13:50:18 SnoopJ wondering if something in psychopy messes around with the readline integration to cause this 2021-05-21 13:50:35 <-- penth (~rachel@pool-74-109-26-143.phlapa.fios.verizon.net) has quit (Quit: Ex-Chat) 2021-05-21 13:52:03 --> bonhoeffer (~tim@2600:380:9810:4ac7:1d6e:408b:6fc2:b6b8) has joined #python 2021-05-21 13:52:45 bonhoeffer just to be clear, to manage python with asdf, you still use venv for projects 2021-05-21 13:52:53 <-- llinguini (sid257922@gateway/web/irccloud.com/x-gfgxptkzetrbjxlk) has quit 2021-05-21 13:52:58 <-- pablo87 (ba9be372@186.155.227.114) has quit (Quit: Connection closed) 2021-05-21 13:53:20 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-21 13:53:25 --> hussam_ (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 13:53:30 --> Sheilong (uid293653@gateway/web/irccloud.com/x-krnmlpgvyfftvtpx) has joined #python 2021-05-21 13:53:36 <-- MadScientist (~markg@024-217-179-126.res.spectrum.com) has quit (Quit: Konversation terminated!) 2021-05-21 13:54:19 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-21 13:55:44 SnoopJ indigoblue, it seems like there is a history of weird interaction between libreadline and psychopy that might be responsible for the problem: https://github.com/psychopy/psychopy/issues/2662 2021-05-21 13:56:04 SnoopJ lots of info on the issue linked to that one 2021-05-21 13:56:11 <-- sash_ (~sash_@unaffiliated/sash) has quit (Quit: WeeChat 2.7.1) 2021-05-21 13:56:47 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-21 13:57:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 13:57:09 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Ping timeout: 240 seconds) 2021-05-21 13:57:43 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Read error: Connection reset by peer) 2021-05-21 13:58:01 <-- hussam_ (~hussam@unaffiliated/hussam) has quit (Client Quit) 2021-05-21 13:58:02 --> Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has joined #python 2021-05-21 13:58:08 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-21 13:58:25 --> hussam_ (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 13:58:59 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 246 seconds) 2021-05-21 13:59:16 -- hussam_ is now known as hussam 2021-05-21 13:59:21 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-21 14:00:02 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-21 14:00:16 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 14:00:20 <-- tommy`` (~tommy``@unaffiliated/tommy/x-6566540) has quit (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) 2021-05-21 14:00:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 14:02:00 <-- hussam (~hussam@unaffiliated/hussam) has quit (Client Quit) 2021-05-21 14:02:07 <-- Tips|Cloud (sid62231@gateway/web/irccloud.com/x-afxfgpnrenwxqfir) has quit 2021-05-21 14:02:20 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 14:02:28 --> Tips|Cloud (sid62231@gateway/web/irccloud.com/x-scimksdlktsqxlmj) has joined #python 2021-05-21 14:02:40 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-21 14:02:53 --> xvx (~xvx@185.48.63.108) has joined #python 2021-05-21 14:03:10 bonhoeffer i installed python via asdf -- "Installed Python-3.9.2 to /home/tim/.asdf/installs/python/3.9.2) but python produces "No python executable found for python system" 2021-05-21 14:03:23 --> CombatVet (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-21 14:04:17 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 260 seconds) 2021-05-21 14:04:55 --> psaintlaurent000 (~psaintlau@ool-43541fc9.dyn.optonline.net) has joined #python 2021-05-21 14:06:15 --> rpg (~rpg@162-219-230-90.fttp.usinternet.com) has joined #python 2021-05-21 14:06:19 <-- MrFixIt (~Sam@c-73-246-215-75.hsd1.il.comcast.net) has quit (Quit: Leaving) 2021-05-21 14:06:41 <-- thatpythonboy (~username@117.200.4.173) has quit (Ping timeout: 260 seconds) 2021-05-21 14:07:23 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 246 seconds) 2021-05-21 14:07:33 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Ping timeout: 240 seconds) 2021-05-21 14:07:44 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 246 seconds) 2021-05-21 14:10:57 <-- lucad111 (~lucad111@linaro/lucad111) has quit (Quit: Leaving) 2021-05-21 14:11:18 --> MikZyth (~MikZyth@188.65.242.190) has joined #python 2021-05-21 14:11:45 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 260 seconds) 2021-05-21 14:13:09 <-- hyperknot (~hyperknot@2a02:810d:1640:20cc:2c77:14f9:b17d:5c1) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-21 14:13:28 <-- Naan (~naan@unaffiliated/naan) has left #python ("Leaving") 2021-05-21 14:14:02 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 246 seconds) 2021-05-21 14:14:10 bonhoeffer i have a problem -- my vscode terminal loads minicodna 2021-05-21 14:15:01 bonhoeffer what causes that to load? 2021-05-21 14:15:24 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 265 seconds) 2021-05-21 14:15:34 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has joined #python 2021-05-21 14:16:49 ChrisWarrick your vscode config, probably 2021-05-21 14:16:53 <-- kosh (~kosh@p200300d08f0f28007556e65daa9085be.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-21 14:16:57 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-21 14:16:59 bonhoeffer thanks -- will look there 2021-05-21 14:17:49 <-- mangold (~mangold@198.98.183.39) has quit (Ping timeout: 260 seconds) 2021-05-21 14:18:31 ChrisWarrick vscode typically has you set a python to work with 2021-05-21 14:18:36 --> daex_ (daex@gateway/vpn/protonvpn/daex) has joined #python 2021-05-21 14:18:45 <-- daex (daex@gateway/vpn/protonvpn/daex) has quit (Ping timeout: 260 seconds) 2021-05-21 14:19:10 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-21 14:19:17 --> CombatVet (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-21 14:19:38 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 246 seconds) 2021-05-21 14:20:26 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has quit (Ping timeout: 258 seconds) 2021-05-21 14:23:26 <-- pileus (james@gateway/vpn/nordvpn/pileus) has quit (Ping timeout: 240 seconds) 2021-05-21 14:24:08 --> fellipe (~fellipe@2804:14c:65d5:6407::1000) has joined #python 2021-05-21 14:24:43 fellipe hi everyone, I've tried open('file.txt','a+') but it's not working for reading. how to open for appending and reading at same time? 2021-05-21 14:25:19 ChrisWarrick r+ and seek to end? 2021-05-21 14:25:33 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-21 14:27:02 fellipe ChrisWarrick: I don't know how to seek to end... 2021-05-21 14:27:07 --> gnstaxo (~gus@unaffiliated/gnstaxo) has joined #python 2021-05-21 14:27:07 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 14:27:50 gnstaxo Hello there. What's your prefered graphql library? 2021-05-21 14:28:14 ChrisWarrick fellipe: look into the seek method of file objects 2021-05-21 14:28:22 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Remote host closed the connection) 2021-05-21 14:28:45 SegFaultAX Has this community already been reconstituted on libera.chat? 2021-05-21 14:28:59 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-21 14:29:13 SegFaultAX This seems to be the end of freenode. 2021-05-21 14:29:14 ChrisWarrick SegFaultAX: see /topic 2021-05-21 14:29:35 ChrisWarrick the end of freenode? 1514 users doesn’t seem like a dead channel 2021-05-21 14:29:52 SegFaultAX I mean with respect to the hostile takeover by Andrew Lee. 2021-05-21 14:30:10 ChrisWarrick Or the hostile launch of a new network? 2021-05-21 14:30:22 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 14:30:22 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-21 14:30:38 SegFaultAX Ok. 2021-05-21 14:31:07 <-- aleph- (~aleph@lobsters/Auditor/Church-) has quit (Quit: WeeChat info:version) 2021-05-21 14:31:36 bonhoeffer i have a python naming conflict -- can i reinstall all modules 2021-05-21 14:31:45 bonhoeffer like remove everything in requirements.txt 2021-05-21 14:31:47 ChrisWarrick bonhoeffer: naming conflict? 2021-05-21 14:32:05 ChrisWarrick gnstaxo: (1) why graphql (2) what do you want to use it for? 2021-05-21 14:32:21 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Ping timeout: 240 seconds) 2021-05-21 14:33:41 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Ping timeout: 260 seconds) 2021-05-21 14:33:42 <-- fellipe (~fellipe@2804:14c:65d5:6407::1000) has quit (Quit: Leaving.) 2021-05-21 14:34:41 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-21 14:36:32 <-- bonhoeffer (~tim@2600:380:9810:4ac7:1d6e:408b:6fc2:b6b8) has quit (Ping timeout: 258 seconds) 2021-05-21 14:37:03 gnstaxo ChrisWarrick: I want to use Uniswap's API 2021-05-21 14:37:14 --> CombatVet (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-21 14:37:28 gnstaxo https://uniswap.org/docs/v2/API/entities/ 2021-05-21 14:37:36 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-21 14:37:45 gnstaxo And I've never used a GraphQL db before 2021-05-21 14:37:55 gnstaxo So I wanna try 2021-05-21 14:38:34 <-- TidB (sid345571@gateway/web/irccloud.com/x-njbfhgnlcegfugew) has quit 2021-05-21 14:39:23 <-- fizzizist (~Thunderbi@108.162.133.99) has left #python 2021-05-21 14:40:08 ChrisWarrick graphql is a very annoying thing 2021-05-21 14:40:22 NoImNotNineVolt ChrisWarrick: you'd think that, until you've worked with arangodb 2021-05-21 14:42:02 <-- akoana (~ah@unaffiliated/akoana) has left #python ("Leaving") 2021-05-21 14:43:15 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-21 14:43:30 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-21 14:45:19 <-- maxpowa (~maxpowa@brought.to.you.by.maxpowa.us) has quit (Ping timeout: 260 seconds) 2021-05-21 14:45:37 -- jarthur_ is now known as jarthur 2021-05-21 14:45:57 --> shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has joined #python 2021-05-21 14:46:46 <-- pppingme (~pppingme@unaffiliated/pppingme) has quit (Ping timeout: 240 seconds) 2021-05-21 14:46:51 --> maxpowa (~maxpowa@brought.to.you.by.maxpowa.us) has joined #python 2021-05-21 14:47:18 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has joined #python 2021-05-21 14:47:27 ChrisWarrick NoImNotNineVolt: ugh, the hype for all those fancy modern document and graph things should end already 2021-05-21 14:47:31 <-- psaintlaurent000 (~psaintlau@ool-43541fc9.dyn.optonline.net) has quit (Ping timeout: 260 seconds) 2021-05-21 14:48:20 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Ping timeout: 246 seconds) 2021-05-21 14:48:34 --> d3sync (~d3sync@unaffiliated/d3sync) has joined #python 2021-05-21 14:48:45 <-- bxsx (~x@unaffiliated/bxsx) has quit (Ping timeout: 265 seconds) 2021-05-21 14:48:48 --> lejocelyn (~lejocelyn@75.72.150.77.rev.sfr.net) has joined #python 2021-05-21 14:48:49 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Quit: WeeChat 2.8) 2021-05-21 14:48:59 cluelessperson_ bongfrog, yes you can, although I forget the command 2021-05-21 14:49:08 cluelessperson_ bongfrog, it's also suitable to delete the venv and remake it. :) 2021-05-21 14:49:15 --> jellyknight (~gelignite@55d4ea78.access.ecotel.net) has joined #python 2021-05-21 14:51:13 <-- zingos (~zingos@46.101.6.21) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-21 14:51:50 <-- gelignite (~gelignite@55d46907.access.ecotel.net) has quit (Ping timeout: 246 seconds) 2021-05-21 14:52:04 <-- raekye (~raekye@creatifcubed.com) has quit (Quit: The Lounge - https://thelounge.github.io) 2021-05-21 14:52:29 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-21 14:52:57 --> raekye (~raekye@creatifcubed.com) has joined #python 2021-05-21 14:53:35 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 14:53:57 --> beatrice (emptystrin@tjctf/alum/tris) has joined #python 2021-05-21 14:54:00 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 14:54:17 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Client Quit) 2021-05-21 14:54:21 <-- raekye (~raekye@creatifcubed.com) has quit (Client Quit) 2021-05-21 14:54:33 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 14:54:36 <-- dukwon (~dukwon@physics.horse) has left #python 2021-05-21 14:54:38 ChrisWarrick gnstaxo: (when working with graphql, it’s often most helpful to write the graphql document by hand, many places have a playground to help you with this, eg. uniswap has https://thegraph.com/explorer/subgraph/uniswap/uniswap-v2 2021-05-21 14:55:06 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 260 seconds) 2021-05-21 14:55:34 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 14:56:01 ChrisWarrick ) 2021-05-21 14:57:01 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-21 14:57:13 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 14:57:23 --> raekye (~raekye@creatifcubed.com) has joined #python 2021-05-21 14:58:20 <-- hardwire (sid415742@gateway/web/irccloud.com/x-txndyixtnfirhuhg) has quit 2021-05-21 14:58:47 <-- LtHummus (~lthummus@174-21-28-50.tukw.qwest.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-21 14:59:23 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 265 seconds) 2021-05-21 15:00:06 indigoblue SnoopJ: thank you so much! I was able to confirm that the issue you linked is THE fix. 2021-05-21 15:00:41 indigoblue I took the diff and added 'import readline' to __init__.py and now 3.1.5 is loading correctly. 2021-05-21 15:00:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 15:01:05 --> betuxy (~ole@158.181.77.59) has joined #python 2021-05-21 15:01:10 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-21 15:01:12 indigoblue Do you have a bitcoin wallet or some other wallet where I can throw you atleast a few bucks for some coffee? 2021-05-21 15:01:13 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 15:01:17 <-- pmcnabb (~pmcnabb@pool-71-114-33-160.washdc.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-05-21 15:01:24 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 15:02:15 betuxy Hey guys, I have little experience in python so far and mostly want to learn it to use it to write scripts for linux administration, does anyone have a good Intro into this topic to get me started? :) 2021-05-21 15:02:36 <-- denisse (~denisse@gateway/tor-sasl/alephzer0) has quit (Remote host closed the connection) 2021-05-21 15:02:47 --> ramsan (~ramsan@130.226.239.133) has joined #python 2021-05-21 15:02:59 --> denisse (~denisse@gateway/tor-sasl/alephzer0) has joined #python 2021-05-21 15:03:09 mefistofeles betuxy: check automating the boring stuff with python on the web 2021-05-21 15:03:16 betuxy usually i arrive at a point where bash just becomes bulky, also i want to learn to implement my own functions instead of only using gnu-tools 2021-05-21 15:04:36 -- ryszard is now known as f0xb4t 2021-05-21 15:05:43 ChrisWarrick betuxy: for administering servers at scale, perhaps ansible is what you want? 2021-05-21 15:08:07 betuxy mefistofeles: thanks i'll look into that! 2021-05-21 15:09:43 betuxy ChrisWarrick: yeah for bigger stuff i use ansible already, but i was looking to do some stuff with python to get further where bash just becomes a bit impractical (like piping so many commands) 2021-05-21 15:10:15 ChrisWarrick you can use ansible for smaller stuff 2021-05-21 15:10:29 --> kosh (~kosh@p200300d08f0f28007556e65daa9085be.dip0.t-ipconnect.de) has joined #python 2021-05-21 15:10:39 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046/bot/smadventure) has quit (Ping timeout: 258 seconds) 2021-05-21 15:10:40 ChrisWarrick bash is great at running commands, if your things are mostly commands, then a python script will probably be messier 2021-05-21 15:12:17 <-- stormbytes (~textual@ool-18e4a56c.dyn.optonline.net) has quit (Ping timeout: 252 seconds) 2021-05-21 15:12:37 --> MrRobot7 (sid176400@gateway/web/irccloud.com/x-nxnsgrwtdcvtkmgd) has joined #python 2021-05-21 15:13:15 <-- qbit2821 (~qbit2821@94-255-133-214.cust.bredband2.com) has quit (Quit: WeeChat 3.1) 2021-05-21 15:13:30 --> MalinC254 (~malin@pirate.pt) has joined #python 2021-05-21 15:13:57 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-21 15:13:59 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 15:14:13 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 15:14:24 <-- raekye (~raekye@creatifcubed.com) has quit (Quit: The Lounge - https://thelounge.github.io) 2021-05-21 15:15:22 nacelle python is great when you need to parse complex output from commands 2021-05-21 15:15:29 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 15:15:36 nacelle for most of the other stuff it can be a wash of effort vs complexity over just writing in bash imo 2021-05-21 15:15:37 <-- bomb-on (~mozgalom@194.144.47.113) has quit (Quit: SO LONG, SUCKERS!) 2021-05-21 15:15:49 nacelle (I write a lot of python that controls shell stuff) 2021-05-21 15:15:49 gnstaxo ChrisWarrick: Thank you 2021-05-21 15:16:32 --> mdk (~mdk@51.15.187.166) has joined #python 2021-05-21 15:16:42 --> doev (549d7371@p549d7371.dip0.t-ipconnect.de) has joined #python 2021-05-21 15:16:52 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 15:18:19 doev I like to send midi events with python. for that I need to have a callback with a good timing precision. Is it possible woth python? 2021-05-21 15:19:23 --> greedom (~greedom@2001:16b8:2e44:c200:6ca:f52f:52e8:b091) has joined #python 2021-05-21 15:21:04 <-- greedom (~greedom@2001:16b8:2e44:c200:6ca:f52f:52e8:b091) has quit (Remote host closed the connection) 2021-05-21 15:21:52 --> greedom (~greedom@2001:16b8:2e44:c200:6ca:f52f:52e8:b091) has joined #python 2021-05-21 15:22:08 --> qbit2821 (~qbit2821@94-255-133-214.cust.bredband2.com) has joined #python 2021-05-21 15:22:18 --> fcjsx (~fcjsx_@2800:a4:824:4a00:f4dd:e973:57dd:1081) has joined #python 2021-05-21 15:22:27 <-- fcjsx (~fcjsx_@2800:a4:824:4a00:f4dd:e973:57dd:1081) has quit (Remote host closed the connection) 2021-05-21 15:22:27 <-- qbit2821 (~qbit2821@94-255-133-214.cust.bredband2.com) has left #python 2021-05-21 15:23:01 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-21 15:24:20 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Quit: WeeChat 2.8) 2021-05-21 15:24:32 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-21 15:24:48 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 15:24:56 <-- Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has quit (Quit: Leaving) 2021-05-21 15:25:20 <-- gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has quit (Client Quit) 2021-05-21 15:26:01 --> gadget (~gadjet@cpe-65-29-241-102.wi.res.rr.com) has joined #python 2021-05-21 15:26:02 SnoopJ indigoblue, oh cool, is it a version of psychopy that predates that fix, then? 2021-05-21 15:26:05 <-- hiroaki (~hiroaki@2a02:8108:8c40:2bb8:c540:4dfc:b1ff:2324) has quit (Ping timeout: 250 seconds) 2021-05-21 15:27:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 15:27:18 SnoopJ ah, indeed it is. 2021-05-21 15:27:25 <-- xa0s_ (~xa0s@mab.sdf.org) has quit (Quit: leaving) 2021-05-21 15:28:13 --> Deknos (~deknos@unaffiliated/menace) has joined #python 2021-05-21 15:28:37 --> qbit2821 (~qbit2821@94-255-133-214.cust.bredband2.com) has joined #python 2021-05-21 15:28:58 <-- Success (~success@unaffiliated/success) has quit (Quit: success is my only mdfkn option, failure's not.) 2021-05-21 15:30:22 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Read error: Connection reset by peer) 2021-05-21 15:30:41 indigoblue yeah, 3.1.5 doesn't have the import readline fix. 2021-05-21 15:30:42 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 15:31:05 indigoblue SnoopJ: just out of curiosity, how did you find the issue on github? google search? something else? 2021-05-21 15:31:39 indigoblue It's nice to be able to find help from folks like yourself who know where to look, but even better if I'm able to learn to do the same myself. 2021-05-21 15:32:08 --> tommy`` (~tommy``@unaffiliated/tommy/x-6566540) has joined #python 2021-05-21 15:33:13 SnoopJ indigoblue, well, the trace told me something was going wrong with code that was initializing libreadline, and I could see further up the stack trace that there were imports (but not what the imports were, hence my question about whether you'd isolated the offending import). I guessed from your program filename that psychopy was involved and searched "readline" in their issues 2021-05-21 15:33:19 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-21 15:34:10 SnoopJ I'd have been dead in the water if I hadn't been able to guess about psychopy heh 2021-05-21 15:34:50 SnoopJ (I've only learned to diagnose faults like this in the last ~year, and it's still something I'm trying to improve at) 2021-05-21 15:36:41 <-- Tennis (~Tennis@unaffiliated/tennis) has quit (Read error: Connection reset by peer) 2021-05-21 15:39:15 --> tnez (~el@2001:bc8:1824:113a::1) has joined #python 2021-05-21 15:39:33 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 15:39:35 --> APLU (~mulx@2a03:7220:8081:2900::1) has joined #python 2021-05-21 15:39:36 <-- spiri (~spiri@unaffiliated/spiri) has quit (Quit: Leaving) 2021-05-21 15:41:26 --> bomb-on (~bomb-on@194.144.47.113) has joined #python 2021-05-21 15:42:10 --> bonhoeffer (~tim@159.63.128.50) has joined #python 2021-05-21 15:42:24 bonhoeffer is there a way to totally restart requirements.txt (remove all modules) 2021-05-21 15:42:26 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-21 15:42:45 bonhoeffer ah pip freeze | xargs pip uninstall -y 2021-05-21 15:43:31 <-- kilitary (~kilitary@kilitary.ru) has quit (Excess Flood) 2021-05-21 15:43:35 grym bonhoeffer: that won't do it 2021-05-21 15:43:48 bonhoeffer grym, no? 2021-05-21 15:43:56 grym bonhoeffer: pip removes X, not X-and-everything-X-installed-as-a-dependency 2021-05-21 15:44:07 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 15:44:11 grym bonhoeffer: the correct way to totally restart is to delete your virtual environment and recreate it 2021-05-21 15:44:28 <-- qbit2821 (~qbit2821@94-255-133-214.cust.bredband2.com) has quit (Quit: WeeChat 3.1) 2021-05-21 15:44:33 bonhoeffer oh -- i'm using venv -- just rm the env? 2021-05-21 15:44:39 grym yup! 2021-05-21 15:44:50 grym then remake it 2021-05-21 15:44:56 <-- SteveG (~steveg@pdpc/supporter/21for7/steveg) has quit (Quit: "Jayne, your mouth is talking. You might wanna look to that.") 2021-05-21 15:44:59 grym it's actually kind of a good smoke test 2021-05-21 15:45:06 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Remote host closed the connection) 2021-05-21 15:45:12 grym "can i delete my venv at will and recreate it in under 5 minutes" 2021-05-21 15:46:18 bonhoeffer do i need to deactivate it first? 2021-05-21 15:47:09 grym no, but you should restart your shell 2021-05-21 15:47:10 <-- warpx (~warpx@88.99.13.78) has quit (Quit: Leaving...) 2021-05-21 15:47:55 --> htols (uid101550@gateway/web/irccloud.com/x-bgsjizahsqgdykrb) has joined #python 2021-05-21 15:48:49 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-21 15:48:50 --> warpx (~warpx@88.99.13.78) has joined #python 2021-05-21 15:49:03 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 15:49:18 <-- ralonsoh (~ralonsoh@250.red-83-42-217.dynamicip.rima-tde.net) has quit (Remote host closed the connection) 2021-05-21 15:49:25 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 15:49:49 --> barbosa_ (~barbosa@br-go-gsia-186-192-101-122.rturbonet.com.br) has joined #python 2021-05-21 15:50:03 --> Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has joined #python 2021-05-21 15:51:41 <-- barbosa (~barbosa@br-go-gsia-186-192-101-173.rturbonet.com.br) has quit (Ping timeout: 260 seconds) 2021-05-21 15:51:58 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Remote host closed the connection) 2021-05-21 15:52:11 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 15:53:53 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Quit: Leaving) 2021-05-21 15:56:36 --> jarthur_ (~jarthur@2603-8080-1540-002d-15f9-be3b-3d51-a061.res6.spectrum.com) has joined #python 2021-05-21 15:56:49 --> nowarning (~x@unaffiliated/bxsx) has joined #python 2021-05-21 15:57:06 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 15:58:09 philipp64_ Any reccos for a CBOR-LD implmentation? 2021-05-21 15:58:41 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-21 15:59:05 --> Rakyts (~Rakyts@82.209.41.102) has joined #python 2021-05-21 15:59:19 <-- jarthur (~jarthur@cpe-70-114-198-37.austin.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-05-21 16:00:02 <-- rjwiii (~kvirc@072-187-028-004.res.spectrum.com) has quit (Remote host closed the connection) 2021-05-21 16:00:19 <-- MarderIII (~MarderIII@2001:981:5b5b:1:a95b:6c54:73dd:85e4) has quit (Ping timeout: 250 seconds) 2021-05-21 16:00:26 <-- oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-05-21 16:00:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 16:01:12 --> g0d-byte_ (~g0d-byte@2001:b07:ae5:76d1:dfcf:6d24:6d09:4032) has joined #python 2021-05-21 16:01:33 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-21 16:01:41 <-- sunrosa (sunrosa@gateway/vpn/protonvpn/sunrosa) has quit (Remote host closed the connection) 2021-05-21 16:01:43 --> oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has joined #python 2021-05-21 16:02:47 --> sunrosa (sunrosa@gateway/vpn/protonvpn/sunrosa) has joined #python 2021-05-21 16:03:07 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 16:03:13 <-- sunrosa (sunrosa@gateway/vpn/protonvpn/sunrosa) has quit (Remote host closed the connection) 2021-05-21 16:03:35 demophobia should i use virtual environment for python given vscode in linux? 2021-05-21 16:04:37 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 16:04:43 <-- bomb-on (~bomb-on@194.144.47.113) has quit (Quit: SO LONG, SUCKERS!) 2021-05-21 16:04:59 --> rjwiii (~kvirc@072-187-028-004.res.spectrum.com) has joined #python 2021-05-21 16:05:09 <-- panikovsky (~panikovsk@109.165.82.153) has quit (Quit: Leaving) 2021-05-21 16:05:48 --> kilitary (~kilitary@kilitary.ru) has joined #python 2021-05-21 16:05:50 grym yes 2021-05-21 16:05:50 <-- euri10[m] (~euri10mat@155.210.31.93.rev.sfr.net) has quit (Quit: Idle timeout reached: 10800s) 2021-05-21 16:06:02 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-21 16:06:12 bonhoeffer is there a way to activate the virtualenv on cd into directory 2021-05-21 16:06:29 --> dulanic4 (~dulanic@47.187.147.69) has joined #python 2021-05-21 16:07:27 <-- Rapture (~Rapture@71.236.251.149) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-21 16:08:06 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-21 16:08:24 grym bonhoeffer: direnv.net 2021-05-21 16:08:30 grym https://github.com/direnv/direnv/wiki/Python 2021-05-21 16:08:36 <-- dulanic (~dulanic@47.187.149.140) has quit (Ping timeout: 252 seconds) 2021-05-21 16:08:42 --> oatmealraisin (~ryan@cpe-104-162-10-66.nyc.res.rr.com) has joined #python 2021-05-21 16:08:57 oatmealraisin Hey all, i'm having trouble installing a project that requires python 3.5 with pipenv 2021-05-21 16:09:07 oatmealraisin seems it keeps using python3.9 libs 2021-05-21 16:09:14 oatmealraisin any idea on how I can force python 3.5? 2021-05-21 16:09:19 oatmealraisin pipenv specific 2021-05-21 16:09:28 grym oatmealraisin: install pipenv as a 3.5 venv 2021-05-21 16:09:29 grym ? 2021-05-21 16:09:44 oatmealraisin grym: good plan, i'll try that out 2021-05-21 16:09:57 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Ping timeout: 240 seconds) 2021-05-21 16:10:46 <-- dulanic4 (~dulanic@47.187.147.69) has quit (Ping timeout: 240 seconds) 2021-05-21 16:11:06 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 16:11:06 bonhoeffer where should the .envrc go? 2021-05-21 16:11:11 bonhoeffer ~/ ? 2021-05-21 16:11:19 --> anonyme (~user@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 16:11:30 jwhisnant oatmealraisin: and probably use pyenv to provide your python version(s) 2021-05-21 16:11:47 <-- Deknos (~deknos@unaffiliated/menace) has quit (Quit: Deknos) 2021-05-21 16:11:53 oatmealraisin jwhisnant: haven't heard of pyenv, i'll also check that out 2021-05-21 16:11:58 --> CombatVet (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-21 16:12:18 <-- anonyme (~user@gateway/tor-sasl/anonyme) has quit (Client Quit) 2021-05-21 16:12:41 <-- AcTiVaTe (~activate@host-4b6u8h.tnz1.zeelandnet.nl) has quit (Ping timeout: 260 seconds) 2021-05-21 16:12:42 grym bonhoeffer: in the directory you want direnv to operate on 2021-05-21 16:12:57 grym bonhoeffer: so probably your project root 2021-05-21 16:12:57 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 16:13:11 SnoopJ pyenv is great for managing versions, yea. Library/include path management can be a little tricky to get right with it in my experience, but no moreso than any other context where you have multiple versions installed. 2021-05-21 16:13:17 amogorkon if i imported a module with importlib.import_module, how do i cleanly reload it? i suspect invalidate_caches() would be an option, but i only want to do it for specific modules 2021-05-21 16:13:37 bonhoeffer grym, thanks! 2021-05-21 16:14:04 amogorkon https://docs.python.org/3/library/importlib.html#importlib.reload talks about some "cache" variable, but i don't get the snippet there 2021-05-21 16:14:17 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-21 16:14:42 SnoopJ amogorkon, how can you be sure that invalidating the cache is "clean" and leaving it alone isn't? 2021-05-21 16:15:03 <-- beto (~beto@fedora/albertocg) has quit (Quit: Has left) 2021-05-21 16:15:03 amogorkon SnoopJ, let's assume i have a module consisting only of function definitions 2021-05-21 16:15:17 amogorkon it would be clean to wipe all definitions and redefine them 2021-05-21 16:15:25 --> beto (~beto@fedora/albertocg) has joined #python 2021-05-21 16:15:40 SnoopJ why do you need to wipe them? As that code describes, the definitions would be re-run. 2021-05-21 16:15:41 amogorkon the way reload() works would not be clean 2021-05-21 16:15:46 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 16:16:06 amogorkon reload() doesn't delete now-undefined definitions 2021-05-21 16:16:07 bjs amogorkon: because if you removed a function, it would still be there? 2021-05-21 16:16:08 SnoopJ The only potential problem I see there is old names lingering around (i.e. if someone is reloading a library after deleting a function from it) 2021-05-21 16:17:13 bjs amogorkon: but yes, you could use the cache trick on that page to keep a record of all the functions which were defined on the previous load of the module 2021-05-21 16:17:32 amogorkon bjs, if i edit the file in the meantime and delete a function, then reload and try to call it from jupyter, it should give me an error 2021-05-21 16:17:54 amogorkon or not? 2021-05-21 16:18:25 SnoopJ we can't tell you what your intent is, but the latter is the behavior you get from reload() 2021-05-21 16:18:25 amogorkon i think i'd prefer a clean error over ghosts 2021-05-21 16:18:26 <-- seds (~seds@irc.seds.nl) has quit (Read error: Connection reset by peer) 2021-05-21 16:18:40 bjs amogorkon: yes that is correct 2021-05-21 16:18:47 --> GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has joined #python 2021-05-21 16:18:54 amogorkon "When a module is reloaded, its dictionary (containing the module’s global variables) is retained." 2021-05-21 16:19:06 amogorkon "Redefinitions of names will override the old definitions, so this is generally not a problem. If the new version of a module does not define a name that was defined by the old version, the old definition remains." 2021-05-21 16:19:20 SnoopJ that's what it says, yep 2021-05-21 16:19:24 <-- beto (~beto@fedora/albertocg) has quit (Client Quit) 2021-05-21 16:19:35 amogorkon so, how do i get rid of old definitions? 2021-05-21 16:19:36 bjs amogorkon: yes, if you remove a function after reloading it will still be there 2021-05-21 16:19:46 <-- tommy`` (~tommy``@unaffiliated/tommy/x-6566540) has quit (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) 2021-05-21 16:19:52 bjs amogorkon: you can use the trick in the docs to keep track of what was there before 2021-05-21 16:19:55 bjs (and e.g., remove them) 2021-05-21 16:20:04 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-21 16:20:06 <-- betuxy (~ole@158.181.77.59) has quit (Ping timeout: 265 seconds) 2021-05-21 16:20:20 nedbat amogorkon: can you tell us more about why you want to reload modules? 2021-05-21 16:20:37 amogorkon bjs, oh, that snippet goes into the module? 2021-05-21 16:20:45 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 16:20:49 SnoopJ perhaps something like: `try: stale_names = set(cache).difference(locals()); for name in stale_names: del(name);; except NameError: cache = locals()` 2021-05-21 16:20:49 --> beto (~beto@fedora/albertocg) has joined #python 2021-05-21 16:20:56 amogorkon nedbat, i'm working on use() ;) 2021-05-21 16:21:02 --> plankton (~plankton@177.220.177.93) has joined #python 2021-05-21 16:21:06 nedbat amogorkon: i don't know what that is 2021-05-21 16:21:16 bjs amogorkon: I mean the trick is simple, since the names are kept from the previous reload, you can keep a name around that tells you what was defined before 2021-05-21 16:21:28 bjs then you can simply remove them, or work out the difference... or do whatever you wish 2021-05-21 16:21:36 <-- Laibsch (~Laibsch@dynamic-078-048-171-125.78.48.pool.telefonica.de) has quit (Quit: Leaving.) 2021-05-21 16:22:04 SnoopJ oh I guess the try: block there needs to update the cache, heh. probably the exception handler can just be a `pass` and the cache is always set 2021-05-21 16:22:25 SnoopJ reloading is a mess 2021-05-21 16:22:43 SnoopJ especially if you want to indulge the temptation to guess (doing this is no guarantee those functions aren't still around) 2021-05-21 16:22:44 amogorkon nedbat, an alternative way of importing stuff for jupyter usecases, mainly 2021-05-21 16:23:13 amogorkon nedbat, with version-checks, auto-reload and import from github, etc 2021-05-21 16:23:25 nedbat amogorkon: sounds interesting 2021-05-21 16:23:26 <-- carl- (~carl-@c-138ee555.02-180-73746f39.bbcust.telenor.se) has quit (Quit: Leaving) 2021-05-21 16:23:37 amogorkon WIP https://github.com/amogorkon/use/blob/main/src/use/use.py 2021-05-21 16:24:07 amogorkon nedbat, you gave me part of the idea, maybe you remember ^^ 2021-05-21 16:24:14 amogorkon with the version 2021-05-21 16:24:21 nedbat amogorkon: what does "self-documenting" mean here? 2021-05-21 16:24:24 nedbat amogorkon: i did? 2021-05-21 16:24:27 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 265 seconds) 2021-05-21 16:24:40 amogorkon nedbat, when i was rambling about how imports should have some way of annotation 2021-05-21 16:24:45 <-- gnstaxo (~gus@unaffiliated/gnstaxo) has quit (Ping timeout: 260 seconds) 2021-05-21 16:24:51 amogorkon you proposed to have it as function 2021-05-21 16:25:02 --> AcTiVaTe (~activate@host-4b6u8h.tnz1.zeelandnet.nl) has joined #python 2021-05-21 16:25:09 SnoopJ I think the use-case (heh) is mainly notebooks and how to indicate what version of modules the author intended in a way that fits into .ipynb 2021-05-21 16:25:15 --> gnstaxo (~gus@unaffiliated/gnstaxo) has joined #python 2021-05-21 16:25:36 <-- doev (549d7371@p549d7371.dip0.t-ipconnect.de) has quit (Quit: Connection closed) 2021-05-21 16:25:53 --> dulanic (~dulanic@47.187.147.69) has joined #python 2021-05-21 16:25:56 <-- lejocelyn (~lejocelyn@75.72.150.77.rev.sfr.net) has quit (Quit: lejocelyn) 2021-05-21 16:27:02 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 246 seconds) 2021-05-21 16:27:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 16:27:04 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046/bot/smadventure) has joined #python 2021-05-21 16:27:57 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 16:28:13 <-- jellyknight (~gelignite@55d4ea78.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-21 16:29:46 <-- oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-05-21 16:30:16 --> anonyme (~weechat@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 16:30:19 <-- Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has quit (Quit: Leaving) 2021-05-21 16:30:21 <-- derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has quit (Ping timeout: 260 seconds) 2021-05-21 16:30:42 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 16:30:47 <-- anonyme (~weechat@gateway/tor-sasl/anonyme) has quit (Client Quit) 2021-05-21 16:31:08 --> oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has joined #python 2021-05-21 16:31:31 <-- ffe4 (~ffe4@200116b82c1f8400ad3ea6b20ee81fac.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-21 16:31:31 <-- nowarning (~x@unaffiliated/bxsx) has quit (Quit: leaving) 2021-05-21 16:32:36 <-- greedom (~greedom@2001:16b8:2e44:c200:6ca:f52f:52e8:b091) has quit (Remote host closed the connection) 2021-05-21 16:33:11 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-21 16:33:25 --> greedom (~greedom@2001:16b8:2e44:c200:6ca:f52f:52e8:b091) has joined #python 2021-05-21 16:34:18 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 16:34:33 --> Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has joined #python 2021-05-21 16:35:08 --> ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-21 16:35:11 --> duso_ (~duso@pa49-197-55-134.pa.qld.optusnet.com.au) has joined #python 2021-05-21 16:35:42 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Client Quit) 2021-05-21 16:35:42 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Read error: Connection reset by peer) 2021-05-21 16:36:06 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 16:36:36 <-- oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has quit (Ping timeout: 260 seconds) 2021-05-21 16:36:53 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 16:37:26 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 240 seconds) 2021-05-21 16:38:33 amogorkon SnoopJ, yeah, also anything without other explicit requirements like code on the web or presentations, i guess 2021-05-21 16:39:13 jwhisnant SnoopJ: do you mean the use from use use-case? :) 2021-05-21 16:39:20 amogorkon hrhr 2021-05-21 16:40:09 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 16:40:12 amogorkon btw, it already works with bpaste snippets, but i don't want to encourage bad coding practices ;p 2021-05-21 16:41:33 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-21 16:41:39 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 16:43:24 <-- Cherenkov (~Cherenkov@a109-49-131-251.cpe.netcabo.pt) has quit (Quit: Leaving) 2021-05-21 16:43:27 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 16:44:22 --> jarthur (~jarthur@2603-8080-1540-002d-9428-d2ae-035d-9e2c.res6.spectrum.com) has joined #python 2021-05-21 16:44:28 --> m1n10n (~georgeclo@cpe-76-184-204-251.tx.res.rr.com) has joined #python 2021-05-21 16:45:59 <-- jarthur_ (~jarthur@2603-8080-1540-002d-15f9-be3b-3d51-a061.res6.spectrum.com) has quit (Disconnected by services) 2021-05-21 16:46:22 <-- dviola (~diego@unaffiliated/dviola) has quit (Quit: WeeChat 3.1) 2021-05-21 16:47:07 --> ov3_mind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-21 16:47:09 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 16:47:29 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:858e:ecf8:fe68:def9) has quit (Ping timeout: 245 seconds) 2021-05-21 16:47:37 --> ffledgling (~ffledglin@unaffiliated/ffledgling) has joined #python 2021-05-21 16:47:52 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046/bot/smadventure) has quit (Changing host) 2021-05-21 16:47:52 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-21 16:48:02 <-- r3m (~launch@unaffiliated/r3m) has left #python ("WeeChat 3.2-dev") 2021-05-21 16:48:10 <-- tocka (uid198544@gateway/web/irccloud.com/x-gzbvmdsmfpbfcwgd) has quit (Quit: Connection closed for inactivity) 2021-05-21 16:48:19 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Changing host) 2021-05-21 16:48:19 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046/bot/smadventure) has joined #python 2021-05-21 16:48:28 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 16:48:34 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046/bot/smadventure) has quit (Changing host) 2021-05-21 16:48:34 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-21 16:48:58 <-- bbear (~znc@21212.s.t4vps.eu) has quit (Quit: GoodBye) 2021-05-21 16:49:00 <-- greedom (~greedom@2001:16b8:2e44:c200:6ca:f52f:52e8:b091) has quit (Remote host closed the connection) 2021-05-21 16:49:14 <-- gossie (~gossie@2a10:3781:328:1:e1d:50cc:c868:ca94) has quit (Quit: = "bye bye") 2021-05-21 16:49:23 <-- baltazar (~baltazar@178-164-165-143.pool.digikabel.hu) has quit (Quit: leaving) 2021-05-21 16:49:26 <-- ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 246 seconds) 2021-05-21 16:49:27 --> bbear (~znc@21212.s.t4vps.eu) has joined #python 2021-05-21 16:50:07 --> greedom (~greedom@2001:16b8:2e44:c200:6ca:f52f:52e8:b091) has joined #python 2021-05-21 16:51:22 --> cellofellow (~user@166.70.50.58) has joined #python 2021-05-21 16:51:28 --> srandon111 (~srandon11@5.102.2.235) has joined #python 2021-05-21 16:51:35 --> gossie (~gossie@2a10:3781:328:1:e1d:50cc:c868:ca94) has joined #python 2021-05-21 16:52:37 <-- bbear (~znc@21212.s.t4vps.eu) has quit (Remote host closed the connection) 2021-05-21 16:52:55 --> bbear (~znc@21212.s.t4vps.eu) has joined #python 2021-05-21 16:55:55 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Quit: bye) 2021-05-21 16:56:16 --> d3sync|2 (~d3sync@unaffiliated/d3sync) has joined #python 2021-05-21 16:56:32 --> derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has joined #python 2021-05-21 16:56:41 <-- bdeshi (~bdeshi@bdeshi.space) has quit (Ping timeout: 240 seconds) 2021-05-21 16:57:03 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-21 16:57:04 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 16:57:37 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-21 16:57:38 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 16:57:46 <-- d3sync (~d3sync@unaffiliated/d3sync) has quit (Ping timeout: 240 seconds) 2021-05-21 16:58:03 --> guriya (a0ee4b6e@unaffiliated/guriya) has joined #python 2021-05-21 16:58:15 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 17:00:17 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 17:00:36 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-21 17:01:17 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 17:02:39 --> sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has joined #python 2021-05-21 17:03:19 <-- Barones (~Barones@2804:48dc:8500:0:d076:2bd7:31f4:d4e6) has quit (Ping timeout: 245 seconds) 2021-05-21 17:04:14 greyblue9 amogorkon: interesting idea 2021-05-21 17:04:25 amogorkon thanks 2021-05-21 17:04:39 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Quit: Zzzzzz.....) 2021-05-21 17:04:53 <-- derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has quit (Ping timeout: 260 seconds) 2021-05-21 17:05:08 --> Pickchea (~private@unaffiliated/pickchea) has joined #python 2021-05-21 17:05:23 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-21 17:05:27 greyblue9 reminds a bit of what some packages can do in emacs lisp 2021-05-21 17:06:19 --> csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has joined #python 2021-05-21 17:06:42 amogorkon it's not really ready for prime time yet, but it's getting there 2021-05-21 17:06:50 greyblue9 there's a "use-package" one that's pretty widely used 2021-05-21 17:07:13 greyblue9 no pun intended 2021-05-21 17:07:17 <-- csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has quit (Client Quit) 2021-05-21 17:07:29 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 17:07:44 --> csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has joined #python 2021-05-21 17:08:00 grym yeah, but i restart emacs when i reload packages, too 2021-05-21 17:08:05 amogorkon i even found a "use" package for python, but it doesn't do much and hasn't been touched for a couple of years 2021-05-21 17:08:10 grym namespace gets all ... squiffy 2021-05-21 17:09:09 <-- csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has quit (Client Quit) 2021-05-21 17:10:21 <-- explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has quit (Quit: explody) 2021-05-21 17:10:23 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 17:10:33 amogorkon well, at various points i got annoyed in jupyter and after rambling about how things should be better i started working on this.. it was surprisingly easy to realize the main functionality 2021-05-21 17:10:42 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Quit: Leaving) 2021-05-21 17:10:47 <-- Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has quit (Quit: WeeChat 3.1) 2021-05-21 17:10:56 --> Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has joined #python 2021-05-21 17:11:41 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-21 17:11:50 amogorkon now i'm putting things together, one puzzle at a time 2021-05-21 17:13:26 greyblue9 yeah that last 20% is just painful, where an already-loaded module *doesn't* reload the module you're interested in 2021-05-21 17:13:45 greyblue9 it usually ends with me cursing and killing python 2021-05-21 17:14:58 --> cloudy_nz (~scott@101.100.131.105) has joined #python 2021-05-21 17:15:18 --> czer0 (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-21 17:15:19 --> amo (~amogorkon@port-92-196-71-21.dynamic.as20676.net) has joined #python 2021-05-21 17:15:27 amo damn 2021-05-21 17:15:31 bjs greyblue9: amogorkon: there's always the old adage that 80% of the work takes 20% of the time 2021-05-21 17:15:33 --> fbiagent_ (~fbiagent@unaffiliated/fbiagent) has joined #python 2021-05-21 17:15:35 --> bdonnahue3 (~bdonnahue@208.59.177.131) has joined #python 2021-05-21 17:15:36 --> ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-21 17:15:38 <-- d42 (~root@87-207-121-133.dynamic.chello.pl) has quit (Excess Flood) 2021-05-21 17:15:39 <-- sagax (~sagax_nb@213.138.71.146) has quit (Excess Flood) 2021-05-21 17:15:39 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-21 17:15:39 amogorkon greyblue9, ohh, so you wished the slate was wiped clean, too? 2021-05-21 17:15:39 <-- ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Remote host closed the connection) 2021-05-21 17:15:39 <-- amogorkon (~amogorkon@port-92-196-71-21.dynamic.as20676.net) has quit (Remote host closed the connection) 2021-05-21 17:15:39 <-- fbiagent (~fbiagent@unaffiliated/fbiagent) has quit (Remote host closed the connection) 2021-05-21 17:15:39 <-- ov3_mind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-21 17:15:39 --> Seiryu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-21 17:15:41 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Excess Flood) 2021-05-21 17:15:44 <-- Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has quit (Write error: Broken pipe) 2021-05-21 17:15:44 <-- thiras_ (~thiras@unaffiliated/thiras) has quit (Remote host closed the connection) 2021-05-21 17:15:44 <-- bdonnahue2 (~bdonnahue@208.59.177.131) has quit (Remote host closed the connection) 2021-05-21 17:15:44 <-- gothicserpent (~gothicser@static-198-54-129-78.cust.tzulo.com) has quit (Remote host closed the connection) 2021-05-21 17:15:44 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Remote host closed the connection) 2021-05-21 17:15:44 <-- Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has quit (Remote host closed the connection) 2021-05-21 17:15:44 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Remote host closed the connection) 2021-05-21 17:15:44 <-- bonhoeffer (~tim@159.63.128.50) has quit (Remote host closed the connection) 2021-05-21 17:15:44 <-- cdown (~cdown@163.114.131.1) has quit (Remote host closed the connection) 2021-05-21 17:15:47 amo greyblue9, did you answer my question? i got kicked 2021-05-21 17:15:57 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-21 17:16:04 --> d42 (~root@87-207-121-133.dynamic.chello.pl) has joined #python 2021-05-21 17:16:06 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-21 17:16:11 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-21 17:16:31 amo bjs, so true :) 2021-05-21 17:16:40 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-21 17:16:45 <-- ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has quit (Client Quit) 2021-05-21 17:16:54 greyblue9 amo: i don't think so, i saw something shiny and missed your question 2021-05-21 17:16:56 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-21 17:16:57 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Client Quit) 2021-05-21 17:17:02 bjs amo: ... and the final 20% takes 80% of the time ;) 2021-05-21 17:17:03 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-21 17:17:30 greyblue9 bjs: ...and tears 2021-05-21 17:17:45 --> cdown (~cdown@163.114.131.1) has joined #python 2021-05-21 17:17:54 amo and bruises on the forehead with keyboard-layout 2021-05-21 17:17:56 bjs it's easy to come up with a small function that does the main key thing, but then making it work everywhere and do all the things and to be consistent and interoperate with other things is a large investment 2021-05-21 17:18:21 --> fcjsx (~fcjsx_@2800:a4:824:4a00:f4dd:e973:57dd:1081) has joined #python 2021-05-21 17:18:43 <-- fcjsx (~fcjsx_@2800:a4:824:4a00:f4dd:e973:57dd:1081) has quit (Client Quit) 2021-05-21 17:18:48 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-21 17:18:55 <-- digitalD (~dp@65.102.234.86) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 17:19:26 amo greyblue9, i was wondering if you had a scenario where you wished reload would behave in a specific way, say wipe the cache and remove dangling definitions? 2021-05-21 17:19:39 <-- guriya (a0ee4b6e@unaffiliated/guriya) has quit (Quit: Connection closed) 2021-05-21 17:20:18 bjs amo: the problems with reloading are much deeper than just the surface-level module attributes 2021-05-21 17:20:19 greyblue9 amogorkon: that would definitely be icing, but tbh i don't know if that's one of the goals or just a separate topic 2021-05-21 17:20:30 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-21 17:21:01 --> Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has joined #python 2021-05-21 17:21:02 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 17:21:08 amo greyblue9, i'm currently working on auto-reloading use() imports with surrogate modules 2021-05-21 17:21:17 --> gothicserpent (~gothicser@static-198-54-129-78.cust.tzulo.com) has joined #python 2021-05-21 17:21:39 amo ideally, i want the module to be reloaded whenever the file is changed, for now it just reloads every n seconds 2021-05-21 17:22:09 greyblue9 amo: well it would be amazing if you can get it to work then 2021-05-21 17:23:15 amo it would probably work only 100% with function-only modules, but that's the thing i need in jupyter mainly anyway 2021-05-21 17:23:50 greyblue9 amo: to your point about dangling definitions - wondering how you find those 2021-05-21 17:24:04 --> bdeshi (~bdeshi@2a0a:51c0:0:1f:19e5::1) has joined #python 2021-05-21 17:24:27 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-21 17:24:33 --> bsanford (~bsanford@2601:18d:4500:f2f0::5569) has joined #python 2021-05-21 17:25:03 greyblue9 you said you would provide a layer between the real module and the site of use, i think 2021-05-21 17:25:05 <-- bsanford (~bsanford@2601:18d:4500:f2f0::5569) has quit (Remote host closed the connection) 2021-05-21 17:25:17 --> thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-21 17:25:31 amo well, i need the surrogate module anyway to return something 2021-05-21 17:25:34 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: No Ping reply in 180 seconds.) 2021-05-21 17:26:09 greyblue9 i see o.O 2021-05-21 17:26:46 <-- kbentley57 (~bentleykw@67.63.199.177) has quit (Ping timeout: 260 seconds) 2021-05-21 17:27:00 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 17:27:03 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-21 17:27:30 amo dangling definitions.. i could wipe the cache and if anyone assigned functions manually is out of luck 2021-05-21 17:27:45 --> spunk (~mm@ip2505fdb4.dynamic.kabel-deutschland.de) has joined #python 2021-05-21 17:27:49 amo i could add decorators on import to keep track of assignments and raise some exception 2021-05-21 17:28:15 <-- TheRAt_ (~TheRAt@110.77.217.206) has quit (Ping timeout: 265 seconds) 2021-05-21 17:28:23 amo or i could try to track down definitions on the AST 2021-05-21 17:28:38 amo but that's something i have little experience with 2021-05-21 17:28:53 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-21 17:29:21 greyblue9 ttying to think how other modules get handles to these functions anyway.. maybe when they are passed in as a callback or as part of a class 2021-05-21 17:29:22 <-- blowry (~blowry@2001:19f0:5c01:1524:5400:2ff:fe3e:d51c) has quit (Quit: Leaving) 2021-05-21 17:30:07 --> blowry (~blowry@sagan.benjaminlowry.com) has joined #python 2021-05-21 17:30:38 --> derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has joined #python 2021-05-21 17:30:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 17:30:53 --> TheRAt (~TheRAt@110.77.217.206) has joined #python 2021-05-21 17:31:18 greyblue9 well its just more complex the deeper one looks :p 2021-05-21 17:31:34 amo no shit ^^ 2021-05-21 17:32:01 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 260 seconds) 2021-05-21 17:32:05 gcbirzan that's what she said! 2021-05-21 17:32:19 amo ._. 2021-05-21 17:33:38 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 17:33:42 greyblue9 gcbirzan: ur mom :p 2021-05-21 17:34:31 amo wait a sec 2021-05-21 17:34:32 --> gr33n7001 (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-21 17:35:05 amo i could use the __getattr__ lookup in the surrogate module to see what the user needed 2021-05-21 17:35:13 amo and then i could check the refcount? 2021-05-21 17:35:13 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 260 seconds) 2021-05-21 17:35:27 amo hmmm.. 2021-05-21 17:35:54 --> srikavin (~srikavin@096-058-214-140.res.spectrum.com) has joined #python 2021-05-21 17:35:58 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-21 17:35:59 <-- derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has quit (Ping timeout: 265 seconds) 2021-05-21 17:36:03 --> tiwula (~lane@75-169-30-161.slkc.qwest.net) has joined #python 2021-05-21 17:36:36 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Client Quit) 2021-05-21 17:36:58 <-- urodna (~urodna@unaffiliated/urodna) has quit (Quit: urodna) 2021-05-21 17:37:08 --> bonhoeffer (~tim@159.63.128.50) has joined #python 2021-05-21 17:37:16 <-- oatmealraisin (~ryan@cpe-104-162-10-66.nyc.res.rr.com) has quit (Ping timeout: 260 seconds) 2021-05-21 17:37:25 bonhoeffer why do i get a different list from /usr/bin/env /home/tim/code/plaid/env/bin/pip list vs "pip list" in my root directory? 2021-05-21 17:37:53 greyblue9 getting very interesting. if you wrap the callables (e.g. wuth decorators) that's a whole rabbit hole of its own.. there's a good blog post about it thiugh 2021-05-21 17:38:52 greyblue9 starts with this one: http://blog.dscpl.com.au/2014/01/how-you-implemented-your-python.html?m=1 2021-05-21 17:39:24 amo i was thinking of enabling some decorator magic on use() for aspect oriented stuff anyway, so 2021-05-21 17:39:34 bonhoeffer do i need to blow away my environment and regenerate from requirements.txt 2021-05-21 17:39:51 <-- palasso (~palasso@unaffiliated/palasso) has quit (Read error: Connection reset by peer) 2021-05-21 17:40:05 amo greyblue9, then you could decorate *everything* on import, just passing args :) 2021-05-21 17:40:09 greyblue9 rabbit hole -> minefield 2021-05-21 17:40:20 <-- Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has quit (Ping timeout: 264 seconds) 2021-05-21 17:40:21 <-- FastJack (~fastjack@b2b-78-94-22-14.unitymedia.biz) has quit (Ping timeout: 260 seconds) 2021-05-21 17:40:21 --> sagax (~sagax_nb@213.138.71.146) has joined #python 2021-05-21 17:40:34 greyblue9 amo: hehehe, now we're getting somewhere 2021-05-21 17:41:19 amo most of the aspect-oriented stuff i've got figured out already elsewhere, but i haven't put it into use() yet 2021-05-21 17:42:10 greyblue9 you may have > 1MB of python code in your future :) 2021-05-21 17:42:16 amo nah 2021-05-21 17:42:21 amo it's easy 2021-05-21 17:43:07 amo you could add timing/logging decorators for all functions imported via use() with no extra code 2021-05-21 17:43:57 amo just need to find some time to figure out the details :p 2021-05-21 17:44:19 amo you know 20/80 2021-05-21 17:44:51 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-21 17:45:12 <-- d_olex (~d_olex@159.65.12.243) has quit (Read error: Connection reset by peer) 2021-05-21 17:45:28 --> d_olex (~d_olex@159.65.12.243) has joined #python 2021-05-21 17:45:46 amo i'm really looking forward to 3.10, i think match will simplify this code quite a bit 2021-05-21 17:47:03 -- drincruz_ is now known as drincruz 2021-05-21 17:47:08 --> FastJack (~fastjack@b2b-78-94-22-14.unitymedia.biz) has joined #python 2021-05-21 17:47:42 --> derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has joined #python 2021-05-21 17:47:49 <-- GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has quit (Ping timeout: 260 seconds) 2021-05-21 17:47:54 greyblue9 amo: running 3.10 but I haven't used that (or heard of it actually) yet 2021-05-21 17:48:20 amo sorry, i mean switch/case 2021-05-21 17:48:26 amo https://www.python.org/dev/peps/pep-0622/ 2021-05-21 17:48:40 --> mangold (~mangold@198.98.183.141) has joined #python 2021-05-21 17:49:45 greyblue9 looks neat 2021-05-21 17:49:45 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 17:49:53 amo match/case it is 2021-05-21 17:50:49 <-- kosh (~kosh@p200300d08f0f28007556e65daa9085be.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-21 17:50:51 greyblue9 so you don't have to know even the names of attributes to "destructure" an object? 2021-05-21 17:51:03 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-21 17:51:16 amo don't ask me, i haven't experimented with python 3.10 yet 2021-05-21 17:51:18 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 17:51:23 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 246 seconds) 2021-05-21 17:51:33 amo just read a lot of good stuff about it 2021-05-21 17:51:46 <-- spawnboxor (~spawnboxo@81-64-221-226.rev.numericable.fr) has quit (Ping timeout: 240 seconds) 2021-05-21 17:52:02 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-21 17:52:33 <-- KnownSyntax (sid233169@gateway/web/irccloud.com/x-zalrvqlkcbutnwji) has quit (Ping timeout: 240 seconds) 2021-05-21 17:52:38 <-- phoe6 (~quassel@2601:644:8500:e4:a585:6da0:fc32:579f) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-21 17:52:48 <-- ompragash (sid381327@ansible/staff/ompragash) has quit (Ping timeout: 258 seconds) 2021-05-21 17:52:48 <-- cozycactus (sid326934@gateway/web/irccloud.com/x-ipujzllgqmccemtf) has quit (Ping timeout: 258 seconds) 2021-05-21 17:52:50 greyblue9 would appear so glancing at the PEP 2021-05-21 17:53:05 <-- jladd (sid249337@gateway/web/irccloud.com/x-uwrlrbghczjmddia) has quit (Read error: Connection reset by peer) 2021-05-21 17:53:11 <-- Lvl4Sword (sid483043@killer/lead/Lvl4Sword) has quit (Ping timeout: 258 seconds) 2021-05-21 17:53:11 <-- webknjaz (sid330617@ansible/staff/webknjaz) has quit (Ping timeout: 258 seconds) 2021-05-21 17:53:14 greyblue9 actually, i lied 2021-05-21 17:53:18 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-lmyuqfxcxxjgtlwz) has quit (Read error: Connection reset by peer) 2021-05-21 17:53:25 <-- Manouchehri (sid384576@gateway/web/irccloud.com/x-psiqpveunkoipmbq) has quit (Read error: Connection reset by peer) 2021-05-21 17:53:26 <-- lucasb (uid333435@gateway/web/irccloud.com/x-nrivkbrjrdclywlu) has quit (Read error: Connection reset by peer) 2021-05-21 17:53:34 <-- morgabra (uid500580@osuosl/staff/morgabra) has quit (Ping timeout: 258 seconds) 2021-05-21 17:54:41 <-- altendky (sid135382@gateway/web/irccloud.com/x-ezweqcoqerelkczi) has quit (Ping timeout: 240 seconds) 2021-05-21 17:54:43 <-- visl (sid453966@gateway/web/irccloud.com/x-yhycsccwqyeckekz) has quit (Ping timeout: 258 seconds) 2021-05-21 17:55:03 greyblue9 interesting though 2021-05-21 17:55:15 <-- phildini (sid59249@gateway/web/irccloud.com/x-gxkrregyephkkpuc) has quit (Ping timeout: 260 seconds) 2021-05-21 17:55:19 <-- rann (sid175221@gateway/web/irccloud.com/x-kiegtzmiullgvejq) has quit (Read error: Connection reset by peer) 2021-05-21 17:55:45 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Quit: No Ping reply in 180 seconds.) 2021-05-21 17:57:05 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 17:57:12 <-- LucaTM (~LucaTM@unaffiliated/lucatm) has quit (Quit: To infinity and beyond...) 2021-05-21 17:57:13 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-21 17:58:03 greyblue9 amo: well please keep us posted on your project 2021-05-21 17:58:23 amo sure 2021-05-21 17:59:04 --> visl (sid453966@gateway/web/irccloud.com/x-wxiqktezetwgqxjp) has joined #python 2021-05-21 17:59:08 --> KnownSyntax (sid233169@gateway/web/irccloud.com/x-hrwxfjcqroilemiy) has joined #python 2021-05-21 17:59:13 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-21 17:59:15 --> morgabra (sid500580@osuosl/staff/morgabra) has joined #python 2021-05-21 17:59:16 --> lucasb (uid333435@gateway/web/irccloud.com/x-mcpryjxfwvprcvow) has joined #python 2021-05-21 17:59:21 --> Manouchehri (sid384576@gateway/web/irccloud.com/x-sqngyrffrbxdhqgd) has joined #python 2021-05-21 17:59:23 --> webknjaz (sid330617@ansible/staff/webknjaz) has joined #python 2021-05-21 17:59:23 --> rann (sid175221@gateway/web/irccloud.com/x-xsrntddsmbynofjc) has joined #python 2021-05-21 17:59:25 --> Lvl4Sword (sid483043@killer/lead/Lvl4Sword) has joined #python 2021-05-21 17:59:33 --> scm (scm@gateway/vpn/protonvpn/scm) has joined #python 2021-05-21 17:59:34 --> jladd (sid249337@gateway/web/irccloud.com/x-kduyvrnmtvbwjzmc) has joined #python 2021-05-21 17:59:44 --> ompragash (sid381327@ansible/staff/ompragash) has joined #python 2021-05-21 17:59:55 <-- momomo (~momomo@c-dc74524e.016-77-73746f43.bbcust.telenor.se) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-21 18:00:02 amo greyblue9, whenever i come here with another seemingly crazy question, just assume it's for this ;) 2021-05-21 18:00:10 --> phildini (sid59249@gateway/web/irccloud.com/x-delyplthslzzuqnd) has joined #python 2021-05-21 18:00:20 --> cozycactus (sid326934@gateway/web/irccloud.com/x-mubklmhctxedjzxl) has joined #python 2021-05-21 18:00:33 -- greyblue9 is now known as david 2021-05-21 18:00:37 david amo: done :p 2021-05-21 18:00:38 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-21 18:00:46 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 18:00:56 --> altendky (sid135382@gateway/web/irccloud.com/x-ejvbgusgixuvplye) has joined #python 2021-05-21 18:01:02 -- david is now known as Guest24174 2021-05-21 18:01:51 <-- Guest24174 (uid500829@gateway/web/irccloud.com/x-kmfzdjhqasiuauip) has quit 2021-05-21 18:02:01 --> nowarning (~x@unaffiliated/bxsx) has joined #python 2021-05-21 18:02:03 <-- tete_ (~John@2a02:168:859e::c60) has quit (Quit: Leaving) 2021-05-21 18:02:33 <-- hogarius (hogarius@gateway/web/irccloud.com/x-bacihktxenbpulxv) has left #python 2021-05-21 18:03:12 --> greyblue9 (uid500829@gateway/web/irccloud.com/x-jhkrpmgnrbpjpdkz) has joined #python 2021-05-21 18:03:38 --> pun84 (~pun84@pool-108-24-127-194.cmdnnj.fios.verizon.net) has joined #python 2021-05-21 18:04:08 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-vqdsuwymyrklarpn) has joined #python 2021-05-21 18:04:09 greyblue9 ^ that was me saying "done", my client spazzed out btw 2021-05-21 18:05:11 --> korg815 (~korg815@unaffiliated/korg815) has joined #python 2021-05-21 18:05:21 nowarning hey, i'm trying to use backported contextvars with Python3.6 and it's not working for this simple example: https://bpa.st/353A what is wrong here? 2021-05-21 18:05:22 amo don't worry, your secret identify is safe with me 2021-05-21 18:05:29 securethemews and me 2021-05-21 18:05:35 mefistofeles same here 2021-05-21 18:06:18 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-21 18:06:39 greyblue9 relieved 2021-05-21 18:06:52 <-- manti7 (~manti7@176.10.104.94) has quit (Quit: WeeChat 3.1) 2021-05-21 18:08:11 <-- greedom (~greedom@2001:16b8:2e44:c200:6ca:f52f:52e8:b091) has quit (Remote host closed the connection) 2021-05-21 18:08:22 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-21 18:08:31 --> mexen (uid495612@gateway/web/irccloud.com/x-mkjryniypxvjtrjo) has joined #python 2021-05-21 18:09:12 --> csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has joined #python 2021-05-21 18:09:17 nowarning without awaiting sleep, it's working correctly but then context hasn't been switched 2021-05-21 18:10:18 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 265 seconds) 2021-05-21 18:10:45 <-- csevast (~csevast@46.12.108.87.dsl.dyn.forthnet.gr) has quit (Client Quit) 2021-05-21 18:10:58 <-- redgloboli (~redglobol@unaffiliated/redgloboli) has quit (Quit: ended) 2021-05-21 18:11:11 amo asyncio kicked my butt earlier, too 2021-05-21 18:11:17 --> redgloboli (~redglobol@unaffiliated/redgloboli) has joined #python 2021-05-21 18:12:25 amo could it be that your return var.get() doesn't work in async def for python3.6? 2021-05-21 18:12:39 amo nowarning, what's the error? 2021-05-21 18:13:05 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-21 18:13:06 <-- shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) has quit (Quit: shibboleth) 2021-05-21 18:13:25 amo is there anything beside the AssertionError? 2021-05-21 18:13:57 <-- derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has quit (Ping timeout: 260 seconds) 2021-05-21 18:14:23 --> Numero-6 (~Numero-6@45.91.22.10) has joined #python 2021-05-21 18:15:18 --> Laibsch (~Laibsch@2a01:c23:7059:1d00:f2de:f1ff:fed0:6548) has joined #python 2021-05-21 18:15:22 --> DHARMAKAYA (~DHARMAKAY@189.174.247.195) has joined #python 2021-05-21 18:15:50 Numero-6 Hi all ! When i run a python server, that show me a line request, how can i change this line ? 2021-05-21 18:16:49 bjs nowarning: https://pypi.org/project/contextvars/ says "Important: at this moment this package does not provide an asyncio event loop with PEP 567 support yet. Stay tuned for updates." it makes it sound like it doesn't support asyncio 2021-05-21 18:17:31 <-- Rakyts (~Rakyts@82.209.41.102) has quit (Ping timeout: 260 seconds) 2021-05-21 18:17:34 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-21 18:17:47 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-21 18:18:02 <-- joachimm (~znc@mail.markright.org) has quit (Quit: ZNC - http://znc.in) 2021-05-21 18:18:06 <-- cloudy_nz (~scott@101.100.131.105) has quit (Ping timeout: 260 seconds) 2021-05-21 18:18:27 ranran8888 hi ask when i use concurrent.futures multi therd but my server its 1 cpu what happen ? 2021-05-21 18:20:05 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-21 18:20:27 <-- mangold (~mangold@198.98.183.141) has quit (Ping timeout: 265 seconds) 2021-05-21 18:20:37 bjs ranran8888: what do you mean "what happen"? 2021-05-21 18:20:46 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-21 18:21:07 ranran8888 bjs for use multitherding i not need more from 1 cpu ? 2021-05-21 18:21:11 bjs ranran8888: threads aren't CPUs, concurrent.futures doesn't talk about cpus 2021-05-21 18:21:50 ranran8888 bjs its only like open 20 same time python progrres ? 2021-05-21 18:21:57 bjs ranran8888: yes, threads aren't the same thing as CPUs, you can have many threads 2021-05-21 18:22:05 bjs ranran8888: open 20 same time? I'm not sure what you mean 2021-05-21 18:22:13 bjs concurrent.futures is what handles the threads 2021-05-21 18:22:37 <-- brainium (~brainium@unaffiliated/brainium) has quit (Remote host closed the connection) 2021-05-21 18:23:04 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 18:23:14 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 18:23:31 <-- SnoopJ (~snoopjedi@unaffiliated/snoopjedi) has quit (Quit: brb) 2021-05-21 18:23:58 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-21 18:24:01 ranran8888 bjs concurrent.futures when u write threads all thead its like new progrres run ? 2021-05-21 18:24:26 bjs ranran8888: I can't parse a question out of that, I don't know what you're trying to ask. 2021-05-21 18:24:35 bjs ranran8888: Can you try re-phrase the question? 2021-05-21 18:24:41 <-- stefanc_diff (~stefanc_d@cpc97950-croy24-2-0-cust78.19-2.cable.virginm.net) has quit (Ping timeout: 240 seconds) 2021-05-21 18:25:05 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-21 18:25:31 ranran8888 i wont understend how it work i think before its use cpu , but its not u say show how its work what happen when i run thread ? 2021-05-21 18:25:41 <-- barbosa_ (~barbosa@br-go-gsia-186-192-101-122.rturbonet.com.br) has quit (Ping timeout: 260 seconds) 2021-05-21 18:25:44 bjs ranran8888: the OS is what runs threads 2021-05-21 18:25:46 <-- demophobia (~A3@2603:9004:510:d155:fd71:142c:560b:a5f0) has quit (Ping timeout: 258 seconds) 2021-05-21 18:25:53 --> hqdruxn08 (~hqdruxn08@cpe-66-68-160-103.austin.res.rr.com) has joined #python 2021-05-21 18:25:55 bjs ranran8888: every now and again each CPU switches which thread is running. 2021-05-21 18:26:10 bjs (well, the OS running on that CPU decides to switch the thread it is running) 2021-05-21 18:26:16 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 260 seconds) 2021-05-21 18:26:20 --> SnoopJ (~snoopj@unaffiliated/snoopjedi) has joined #python 2021-05-21 18:27:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 18:27:05 <-- bonhoeffer (~tim@159.63.128.50) has quit (Ping timeout: 246 seconds) 2021-05-21 18:27:28 ranran8888 bjs and if i run this on server 1 cpu and server 4 cpu it be more fast ? 2021-05-21 18:27:28 --> cloudy_nz (~scott@101.100.131.105) has joined #python 2021-05-21 18:27:41 bjs ranran8888: well I don't know what "this" is, so... maybe? 2021-05-21 18:27:42 <-- SnoopJ (~snoopj@unaffiliated/snoopjedi) has quit (Client Quit) 2021-05-21 18:27:53 --> SnoopJ (~snoopj@unaffiliated/snoopjedi) has joined #python 2021-05-21 18:27:59 bjs or maybe it'd be slower, it can be very hard to tell, especially when I know nothing about what "this" is :) 2021-05-21 18:28:08 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 246 seconds) 2021-05-21 18:28:12 <-- SnoopJ (~snoopj@unaffiliated/snoopjedi) has quit (Client Quit) 2021-05-21 18:28:27 --> SnoopJ (~snoopj@unaffiliated/snoopjedi) has joined #python 2021-05-21 18:28:50 --> phasetwo__ (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has joined #python 2021-05-21 18:28:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-21 18:29:01 ranran8888 bjs Sorry i talking about scraping websites 2021-05-21 18:29:10 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-21 18:29:11 ranran8888 example 2021-05-21 18:29:27 amo ranran8888, can you give us a code snippet on bpaste to illustrate what you're doing? 2021-05-21 18:29:38 bjs ranran8888: well, that's still not a very detailed description. You need to know a _lot_ about the program to understand how its performance changes with these things. 2021-05-21 18:29:47 bjs ranran8888: it may go faster, it may not. It all depends. 2021-05-21 18:29:49 <-- hqdruxn08_ (~hqdruxn08@cpe-66-68-160-103.austin.res.rr.com) has quit (Ping timeout: 260 seconds) 2021-05-21 18:30:33 bjs remember that getting data from a website, most of the time is spent waiting for the website to reply and so it doesn't matter how many CPUs you have because you can't make the internet go faster 2021-05-21 18:30:39 ranran8888 amo I've already done it. Just want to analyze what I did. want know how far I can take it. :D 2021-05-21 18:30:40 bjs ... but what you do with the data when you get it, now that can make a difference. 2021-05-21 18:30:41 --> Habbie (peter@lorentz.7bits.nl) has joined #python 2021-05-21 18:30:55 <-- Habbie (peter@lorentz.7bits.nl) has left #python ("WeeChat 1.6") 2021-05-21 18:30:59 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-21 18:31:12 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 18:31:31 <-- cthulchu (~cthulchu@193.194.107.250) has quit (Ping timeout: 260 seconds) 2021-05-21 18:31:59 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 18:32:28 ranran8888 bjs ok and one more ask how money thearding in same time its rist to server/data ? 2021-05-21 18:33:00 ranran8888 many* 2021-05-21 18:33:12 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-21 18:33:14 ranran8888 it risk* 2021-05-21 18:33:21 bjs ranran8888: can you re-type that sentence but without all the typos? 2021-05-21 18:33:23 bjs it makes it hard to read. 2021-05-21 18:33:25 --> pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-21 18:34:49 ranran8888 bjs yes my english very bad sorry, i ask how many trheading in same time, its risk to run, to my server or to my data i scrap ? 2021-05-21 18:34:50 <-- NomadJim_ (~NomadJim@pdpc/supporter/active/nomadjim) has quit (Read error: Connection reset by peer) 2021-05-21 18:35:01 ranran8888 like 20-50-100-200 theards :x 2021-05-21 18:35:21 bjs ranran8888: "it depends", on what else the server is doing, exactly what your program is doing, exactly what each thread is doing, how much free resources the server has, how long the threads live for 2021-05-21 18:35:29 bjs ranran8888: it could be 20, it could be 20,000 2021-05-21 18:35:51 --> NomadJim_ (~NomadJim@pdpc/supporter/active/nomadjim) has joined #python 2021-05-21 18:35:57 greyblue9 bjs: sounds like the information superhighway just needs to be widened 2021-05-21 18:36:16 bjs ranran8888: and this doesn't even begin to ask how many threads you can add that will actually make your program go faster -- like I said, you can't make the internet go faster by adding more threads or more CPUs 2021-05-21 18:36:28 bjs ranran8888: and your internet is only so fast 2021-05-21 18:36:54 <-- srandon111 (~srandon11@5.102.2.235) has quit (Quit: leaving) 2021-05-21 18:37:21 <-- drymer (~drymer@unaffiliated/drymer) has quit (Ping timeout: 260 seconds) 2021-05-21 18:37:52 <-- digitalD (~dp@65.102.234.86) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 18:37:56 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-21 18:38:43 ranran8888 bjs Thank you you have a lot of knowledge, I understand I will try to just test how much my server can handle before it just falls to study 2021-05-21 18:38:59 --> carljm (~carljm@django/moderator/carljm) has joined #python 2021-05-21 18:39:03 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-21 18:39:06 --> robotbee (~robotbee@fsf/member/robotbee) has joined #python 2021-05-21 18:39:18 <-- sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-21 18:40:44 --> fcjsx (~fcjsx_@2800:a4:824:4a00:f4dd:e973:57dd:1081) has joined #python 2021-05-21 18:40:54 <-- fcjsx (~fcjsx_@2800:a4:824:4a00:f4dd:e973:57dd:1081) has quit (Remote host closed the connection) 2021-05-21 18:41:46 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 18:41:54 <-- scm (scm@gateway/vpn/protonvpn/scm) has quit (Quit: Leaving) 2021-05-21 18:43:06 <-- brainium (~brainium@unaffiliated/brainium) has quit (Ping timeout: 240 seconds) 2021-05-21 18:43:20 amo neat, autoreload works now :) just naively reloading every n seconds, but nevertheless 2021-05-21 18:44:23 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-21 18:44:44 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-21 18:44:55 --> Intruder777 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-21 18:45:25 --> digitalD (~dp@65.102.234.86) has joined #python 2021-05-21 18:45:41 <-- bdonnahue3 (~bdonnahue@208.59.177.131) has quit (Remote host closed the connection) 2021-05-21 18:46:06 --> bdonnahue3 (~bdonnahue@208.59.177.131) has joined #python 2021-05-21 18:46:10 amo transparently replaces the implementation behind the scene while jupyter only sees the surrogate 2021-05-21 18:46:16 --> synthetek (~synthetek@138.199.52.51) has joined #python 2021-05-21 18:46:18 amo i like it 2021-05-21 18:46:29 --> bomb-on (~bomb-on@194.144.47.113) has joined #python 2021-05-21 18:47:38 <-- Intruder777 (~Intruder7@unaffiliated/intruder777) has left #python 2021-05-21 18:48:08 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 18:48:32 <-- duso_ (~duso@pa49-197-55-134.pa.qld.optusnet.com.au) has quit (Read error: Connection reset by peer) 2021-05-21 18:48:51 <-- Pickchea (~private@unaffiliated/pickchea) has quit (Quit: Leaving) 2021-05-21 18:50:43 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-21 18:52:17 <-- DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has quit (Quit: DeadTOm) 2021-05-21 18:52:50 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Ping timeout: 265 seconds) 2021-05-21 18:54:33 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-21 18:54:58 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 18:55:05 --> SwiftMatt (~Objective@2601:282:4300:3e:3184:81e9:3d72:f740) has joined #python 2021-05-21 18:55:29 --> ralderson (~textual@37.19.212.10) has joined #python 2021-05-21 18:56:03 <-- tiwula (~lane@75-169-30-161.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-21 18:56:52 --> arinov (~arinov@213.194.126.155) has joined #python 2021-05-21 18:57:06 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 18:57:38 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Quit: ayustae) 2021-05-21 18:58:17 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-21 18:59:08 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-21 18:59:40 <-- Forty-Bot (~kvirc@pool-108-51-35-162.washdc.fios.verizon.net) has quit (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) 2021-05-21 19:00:09 <-- ralderson (~textual@37.19.212.10) has quit (Ping timeout: 260 seconds) 2021-05-21 19:00:12 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 19:00:26 <-- gnstaxo (~gus@unaffiliated/gnstaxo) has quit (Ping timeout: 240 seconds) 2021-05-21 19:00:44 --> gnstaxo (~gus@unaffiliated/gnstaxo) has joined #python 2021-05-21 19:02:39 --> bitdex (~bitdex@gateway/tor-sasl/bitdex) has joined #python 2021-05-21 19:03:02 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 19:04:48 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-21 19:05:28 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-21 19:06:43 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 19:07:38 -- FatLoser is now known as terps 2021-05-21 19:08:15 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-21 19:08:32 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-21 19:09:07 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-21 19:09:26 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-21 19:09:28 --> jinsun (~quassel@122.175.162.109) has joined #python 2021-05-21 19:10:02 --> kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-21 19:11:50 <-- kakashiA1 (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Client Quit) 2021-05-21 19:12:04 --> kakashiAL (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-21 19:12:46 --> river (~rain1@unaffiliated/rain1) has joined #python 2021-05-21 19:12:47 river hi 2021-05-21 19:13:08 --> kk_85 (d07fbc99@208.127.188.153) has joined #python 2021-05-21 19:13:09 river how do I make one of my modules in my python program get reloaded so the new version of the function in it is used? 2021-05-21 19:13:17 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 246 seconds) 2021-05-21 19:14:11 amo <.< 2021-05-21 19:14:26 amo well... 2021-05-21 19:15:16 <-- Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has quit (Ping timeout: 260 seconds) 2021-05-21 19:15:20 amo river, do you only have functions in this module? 2021-05-21 19:16:12 river yes just one funcion 2021-05-21 19:16:25 river I am starting to think that the reason it isnt working is because i did my reload inside a signal handler 2021-05-21 19:16:30 river but i dont know how else to trigger it from outside 2021-05-21 19:16:56 amo can you post the code in bpaste? 2021-05-21 19:17:27 --> JnthnDE (~jonathan@2a01:4f8:c2c:cd30::1) has joined #python 2021-05-21 19:18:53 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-21 19:20:46 --> cousteau (~cousteau@unaffiliated/cousteau) has joined #python 2021-05-21 19:21:37 amo i could give you the code i was just working on, it worked nicely in jupyter, reloading a module every n seconds 2021-05-21 19:22:05 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-21 19:22:20 amo might be a bit overkill 2021-05-21 19:23:02 --> Wulf4 (~Wulf@unaffiliated/wulf) has joined #python 2021-05-21 19:23:43 <-- kk_85 (d07fbc99@208.127.188.153) has quit (Ping timeout: 240 seconds) 2021-05-21 19:23:57 --> iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has joined #python 2021-05-21 19:24:25 <-- boB_K7IQ (~boB_K7IQ@152.44.147.180) has quit (Ping timeout: 260 seconds) 2021-05-21 19:26:17 <-- cation21 (cation21@gateway/vpn/protonvpn/cation21) has left #python ("moved to libera.chat") 2021-05-21 19:26:17 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 260 seconds) 2021-05-21 19:26:18 -- Wulf4 is now known as Wulf 2021-05-21 19:27:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 19:27:16 --> mikeri (~mikerishi@2002:4e9c:3c4::1) has joined #python 2021-05-21 19:27:54 <-- mikeri (~mikerishi@2002:4e9c:3c4::1) has left #python ("User left") 2021-05-21 19:29:33 <-- ComputerTech (ComputerTe@unaffiliated/computertech) has quit (Changing host) 2021-05-21 19:29:33 --> ComputerTech (ComputerTe@freenode/staff/guide/ComputerTech) has joined #python 2021-05-21 19:30:30 --> tortal (~tortal@unaffiliated/tortal) has joined #python 2021-05-21 19:30:36 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 19:31:11 amo river, do you still need help? 2021-05-21 19:31:29 nedbat river: is it an option to restart the program? 2021-05-21 19:32:21 <-- r3dux (~r3dux@ip70-187-234-142.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-21 19:32:53 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 246 seconds) 2021-05-21 19:32:54 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-21 19:33:18 --> r3dux (~r3dux@ip70-187-234-142.oc.oc.cox.net) has joined #python 2021-05-21 19:33:28 <-- nowarning (~x@unaffiliated/bxsx) has quit (Quit: leaving) 2021-05-21 19:34:01 --> hogarius (hogarius@gateway/web/irccloud.com/x-bacihktxenbpulxv) has joined #python 2021-05-21 19:34:42 <-- digitalD (~dp@65.102.234.86) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 19:35:19 <-- alexgr (~alexgr@unaffiliated/alexgr) has quit (Quit: Leaving) 2021-05-21 19:36:04 <-- IHasFinger (~baako@unaffiliated/baako) has quit (Read error: Connection reset by peer) 2021-05-21 19:36:10 <-- juanfra (~juanfra@unaffiliated/juanfra) has left #python 2021-05-21 19:36:59 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Remote host closed the connection) 2021-05-21 19:37:27 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-21 19:39:18 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-05-21 19:39:36 --> pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-21 19:40:08 <-- phasetwo__ (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has quit (Quit: WeeChat 2.9) 2021-05-21 19:40:21 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 260 seconds) 2021-05-21 19:40:29 river thanks. I think I got it 2021-05-21 19:40:34 --> phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has joined #python 2021-05-21 19:40:38 --> Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has joined #python 2021-05-21 19:40:45 nedbat river: btw, while we have both freenode and libera, it's better to pick just one :) 2021-05-21 19:43:02 phasetwo so everything moved to libera? 2021-05-21 19:43:13 phasetwo shoot I can't even remember how to change servers in weechat.. hm 2021-05-21 19:43:32 <-- karx (~yashkaran@47.187.163.80) has quit (Quit: WeeChat 3.1) 2021-05-21 19:44:23 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-21 19:44:44 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-21 19:45:33 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 19:45:43 <-- madduck (~madduck@debian/developer/madduck) has quit (Ping timeout: 276 seconds) 2021-05-21 19:46:08 <-- securethemews (~securethe@host86-181-103-208.range86-181.btcentralplus.com) has quit (Quit: Leaving) 2021-05-21 19:46:50 --> madduck (~madduck@debian/developer/madduck) has joined #python 2021-05-21 19:47:42 --> securethemews (~securethe@2a00:23c4:1e98:ef00::4) has joined #python 2021-05-21 19:48:11 meejah i keep getting no-data-collected error with coverage; this was happening before .. seems that only "--source ./src/magic_folder" fixes it but "--source magic_folder" (or specifying that in the config) doesn't work 2021-05-21 19:50:12 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 19:50:16 <-- robotbee (~robotbee@fsf/member/robotbee) has quit (Ping timeout: 260 seconds) 2021-05-21 19:51:26 <-- s00pcan (~chris@107.181.165.217) has quit (Ping timeout: 240 seconds) 2021-05-21 19:52:12 <-- cousteau (~cousteau@unaffiliated/cousteau) has left #python ("Leaving") 2021-05-21 19:53:33 --> s00pcan (~chris@075-133-056-178.res.spectrum.com) has joined #python 2021-05-21 19:53:42 <-- securethemews (~securethe@2a00:23c4:1e98:ef00::4) has quit (Remote host closed the connection) 2021-05-21 19:54:03 --> securethemews (~securethe@2a00:23c4:1e98:ef00::4) has joined #python 2021-05-21 19:56:17 <-- gnstaxo (~gus@unaffiliated/gnstaxo) has quit (Quit: leaving) 2021-05-21 19:56:28 <-- shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has quit (Quit: Connection closed) 2021-05-21 19:57:12 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 19:57:38 <-- Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has quit (Read error: Connection reset by peer) 2021-05-21 19:58:22 <-- Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has quit (Quit: WeeChat 3.1) 2021-05-21 19:59:49 nedbat phasetwo: we have a foot in both worlds, waiting to see how it shakes out 2021-05-21 19:59:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 19:59:59 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::cbc1) has quit (Ping timeout: 245 seconds) 2021-05-21 20:00:01 nedbat meejah: if you have a way that fixes it, why not use it? 2021-05-21 20:00:20 --> pi- (~Ohmu@113.53.218.220) has joined #python 2021-05-21 20:00:37 <-- g0d-byte_ (~g0d-byte@2001:b07:ae5:76d1:dfcf:6d24:6d09:4032) has quit (Quit: Leaving) 2021-05-21 20:00:46 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-21 20:01:13 pi- I'm invoking some websocket code. It uses asyncio. And it blocks. `await wait_for_recv(websocket, read, is_debug, time_out)` ... next line after this never hits. 2021-05-21 20:01:31 pi- Problem is, after subbing to my websocket stream, I want to do more things. 2021-05-21 20:01:40 pi- How to manage this? 2021-05-21 20:01:56 pi- I can't put the streamer in a thread -- that gives runloop errors. 2021-05-21 20:02:33 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-21 20:02:33 <-- Celelibi (celelibi@2a01:e0a:587:56f0:215:afff:fe49:d5cd) has quit (Ping timeout: 258 seconds) 2021-05-21 20:03:37 --> meridion (~meridion@punt.hetgrotebos.org) has joined #python 2021-05-21 20:04:32 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-21 20:04:47 --> shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has joined #python 2021-05-21 20:05:21 --> aball (~aball@172.241.25.162) has joined #python 2021-05-21 20:05:37 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-21 20:06:25 --> joocain2 (~joocain2@gateway/tor-sasl/joocain2) has joined #python 2021-05-21 20:07:55 --> eyepeetee (~aa@unaffiliated/eyepeetee) has joined #python 2021-05-21 20:09:27 meejah nedbat: i guess i'm wondering why the package-name way doesn't work (and that seems way less brittle, in case path names are different in tox or CI) 2021-05-21 20:09:41 --> jesusJesse (~powerhous@2604:3d08:6d80:a900::cab6) has joined #python 2021-05-21 20:10:13 --> derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has joined #python 2021-05-21 20:10:37 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-21 20:10:43 <-- shimbles (32f6cc6c@50-246-204-108-static.hfc.comcastbusiness.net) has quit (Quit: Connection closed) 2021-05-21 20:10:46 <-- sjoshi (~joshi_sun@223.235.138.221) has quit (Ping timeout: 240 seconds) 2021-05-21 20:10:58 eyepeetee hello, i need some advice regarding classes, subclasses, and superclasses... i have a program where i make one parent class and two subclasses of that parent, but there are 2021-05-21 20:10:59 eyepeetee functions that i want to add to both subclasses without adding them to the parent and without copying and pasting those functions verbatim once for each subclass 2021-05-21 20:11:05 eyepeetee how can i accomplish this? 2021-05-21 20:11:27 nedbat meejah: do you have a directory called magic_folder in the current directory? 2021-05-21 20:11:57 <-- jesseTree (~powerhous@2604:3d08:6d80:a900::cab6) has quit (Ping timeout: 258 seconds) 2021-05-21 20:12:01 nedbat eyepeetee: you could make a mixin that you use in multiple inheritance in the subclasses. You could make it a simple function that you don't make a method. 2021-05-21 20:12:02 --> azed (~azed@196.230.171.93) has joined #python 2021-05-21 20:13:01 eyepeetee nedbat - here's what my code for that currently looks like (imports and main function omitted): https://pastebin.com/PU2Z24jA lines 48-70, 82-85, and 97-100 make me uncomfortable and i am not sure if it's bad practice 2021-05-21 20:13:03 infobob https://bpaste.net/FGWQ (repasted for eyepeetee) 2021-05-21 20:13:45 eyepeetee i will look into mixins, i hadn't heard of that before 2021-05-21 20:14:15 eyepeetee oooooooooooooh, mixins look like EXACTLY what i'm looking for 2021-05-21 20:14:20 eyepeetee thank you a million 2021-05-21 20:14:46 <-- derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-05-21 20:14:47 nedbat eyepeetee: why not just put those methods in the parent? 2021-05-21 20:15:24 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-21 20:15:33 eyepeetee nedbat: they are too far off topic for the parent. i want to keep meaningful and logical separation between what the classes are intended to be doing 2021-05-21 20:15:33 pi- https://bpa.st/FL2A <- this is the blocking code 2021-05-21 20:16:11 pi- If I call `spot_subscribe_with_login()`, subsequent lines will never be reached. 2021-05-21 20:16:26 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-21 20:16:29 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Remote host closed the connection) 2021-05-21 20:18:27 --> Celelibi (celelibi@2a01:e0a:587:56f0:215:afff:fe49:d5cd) has joined #python 2021-05-21 20:18:44 eyepeetee nedbat: this is my revised code for that - https://pastebin.com/FK2r2J76 2021-05-21 20:18:45 infobob https://bpaste.net/JQGQ (repasted for eyepeetee) 2021-05-21 20:18:46 eyepeetee works great 2021-05-21 20:18:50 eyepeetee and feels clean 2021-05-21 20:18:52 eyepeetee thanks again 2021-05-21 20:18:55 <-- tortal (~tortal@unaffiliated/tortal) has quit (Remote host closed the connection) 2021-05-21 20:19:50 --> bitdex (~bitdex@gateway/tor-sasl/bitdex) has joined #python 2021-05-21 20:19:51 nedbat eyepeetee: sure. what about lines 77-81 and 87-91? Aren't they the same? 2021-05-21 20:19:52 <-- securethemews (~securethe@2a00:23c4:1e98:ef00::4) has quit (Quit: Leaving) 2021-05-21 20:20:42 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-21 20:21:11 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-21 20:21:16 <-- Seiryu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Quit: Leaving) 2021-05-21 20:24:17 <-- PantelicGR (~PantelicG@unaffiliated/pantelicgr) has quit (Quit: Leaving) 2021-05-21 20:25:26 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-21 20:25:43 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-21 20:26:43 --> juanfra__ (juanframat@gateway/shell/matrix.org/x-miyhguqmcuqafufe) has joined #python 2021-05-21 20:27:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 20:27:40 <-- pinkisntwell (~pinkisntw@46.251.99.222) has quit (Ping timeout: 258 seconds) 2021-05-21 20:27:40 <-- isomari (~isomari@105.112.138.38) has quit (Read error: Connection reset by peer) 2021-05-21 20:28:56 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-21 20:29:25 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-21 20:29:45 <-- Death916 (UserNick@unaffiliated/death916) has quit (Ping timeout: 260 seconds) 2021-05-21 20:29:53 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-21 20:30:13 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-21 20:30:13 <-- death_ (UserNick@unaffiliated/death916) has quit (Ping timeout: 260 seconds) 2021-05-21 20:30:47 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 20:30:53 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Remote host closed the connection) 2021-05-21 20:31:03 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-21 20:33:01 <-- bazul (bazul@38.189.189.46.rev.vodafone.pt) has quit (Remote host closed the connection) 2021-05-21 20:33:32 --> hypc1 (~Thunderbi@113.233.198.245) has joined #python 2021-05-21 20:33:34 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-21 20:35:43 eyepeetee nedbat: great point. i attempted to put that in my mixin but now i am having some other issues 2021-05-21 20:35:44 eyepeetee https://pastebin.com/2qXbfSQy 2021-05-21 20:35:45 infobob https://bpaste.net/WORQ (repasted for eyepeetee) 2021-05-21 20:35:49 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-21 20:36:05 eyepeetee this is my traceback... https://pastebin.com/Uw70AY47 2021-05-21 20:36:06 <-- hypc (~Thunderbi@113.233.198.245) has quit (Ping timeout: 240 seconds) 2021-05-21 20:36:06 infobob https://bpaste.net/WL5A (repasted for eyepeetee) 2021-05-21 20:36:07 -- hypc1 is now known as hypc 2021-05-21 20:36:12 eyepeetee i tried google, it doesn't seem to have any idea 2021-05-21 20:36:45 nedbat eyepeetee: change initialize_common to be __init__ 2021-05-21 20:37:07 eyepeetee wow yeah 2021-05-21 20:37:08 nedbat eyepeetee: oh, except the args make it awkward 2021-05-21 20:37:20 eyepeetee it does but that is the first step for sure 2021-05-21 20:37:38 eyepeetee section_auth is the reason it was like that before 2021-05-21 20:37:41 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 20:38:06 <-- lbalhar (~lbalhar@93.185.13.26) has quit (Ping timeout: 260 seconds) 2021-05-21 20:38:06 <-- jmgb4 (~jmgb4@unaffiliated/jmgb4) has quit (Ping timeout: 260 seconds) 2021-05-21 20:39:50 --> badmouse (~pc@112.10.69.108) has joined #python 2021-05-21 20:40:03 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-21 20:40:46 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Ping timeout: 240 seconds) 2021-05-21 20:40:54 <-- carljm (~carljm@django/moderator/carljm) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 20:41:59 <-- beatleboy07 (~beatleboy@c-24-17-50-149.hsd1.wa.comcast.net) has quit (Quit: Leaving) 2021-05-21 20:42:24 --> carljm (~carljm@django/moderator/carljm) has joined #python 2021-05-21 20:42:33 <-- Anarchic (~Anarchic@getlegit.co.uk) has quit (Quit: ZNC - http://znc.in) 2021-05-21 20:42:48 --> Anarchic (~Anarchic@getlegit.co.uk) has joined #python 2021-05-21 20:44:23 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-21 20:44:44 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-21 20:45:26 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-21 20:45:35 <-- badmouse (~pc@112.10.69.108) has quit (Quit: Leaving.) 2021-05-21 20:46:23 <-- Numero-6 (~Numero-6@45.91.22.10) has quit (Quit: << - Qui etes vous ? - Je suis le nouveau numero 2 - Qui est le numero 1 ? - Vous etes le numero 6 - Je ne suis pas un numero ! Je suis un homme libre!! >>) 2021-05-21 20:46:51 eyepeetee wait so 2021-05-21 20:47:01 eyepeetee how do i get a handle to the other parent from a mixin? 2021-05-21 20:47:10 eyepeetee super just seems to refer to the base class 2021-05-21 20:47:28 <-- MikZyth (~MikZyth@188.65.242.190) has quit (Quit: WeeChat 3.1) 2021-05-21 20:48:37 nedbat eyepeetee: super calls the next class, which should also use super, etc. 2021-05-21 20:48:48 nedbat eyepeetee: but you have arguments to pass, which complicates things 2021-05-21 20:49:46 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-21 20:50:05 --> amogorkon (~amogorkon@port-92-196-30-227.dynamic.as20676.net) has joined #python 2021-05-21 20:52:26 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 240 seconds) 2021-05-21 20:52:38 --> dntreou (~yakiza@178-147-210-231.haap.dm.cosmote.net) has joined #python 2021-05-21 20:52:42 eyepeetee nedbat: fair enough, i'll settle for what i've got then. 3 duplicate lines aren't the end of the world i suppose...but i think these exercises are good 2021-05-21 20:53:05 <-- amo (~amogorkon@port-92-196-71-21.dynamic.as20676.net) has quit (Ping timeout: 260 seconds) 2021-05-21 20:53:21 <-- ffledgling (~ffledglin@unaffiliated/ffledgling) has quit (Ping timeout: 258 seconds) 2021-05-21 20:57:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 20:57:31 <-- Laibsch (~Laibsch@2a01:c23:7059:1d00:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-21 20:58:12 <-- yawkat (~yawkat@cats.coffee) has quit (Ping timeout: 240 seconds) 2021-05-21 20:59:37 dntreou Hello everyone I have got a question regarding dictionaries, I am wondering if it is possible to loop through the keys of a dictionary and if I find the desired key to call the value like it is a function for example I want the value to do myvar+5 2021-05-21 21:00:31 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 21:02:11 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 21:02:17 --> Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has joined #python 2021-05-21 21:02:48 --> lbalhar (~lbalhar@93.185.13.26) has joined #python 2021-05-21 21:03:12 --> yawkat (~yawkat@cats.coffee) has joined #python 2021-05-21 21:04:57 nedbat dntreou: if you know the key you want, why not just use d[k] ? 2021-05-21 21:05:21 nedbat dntreou: if you want to iterate over the keys, you can do: for k in d: 2021-05-21 21:05:59 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-21 21:06:01 pi- Is there anyone out there that groks asyncio? I'm totally stuck: https://stackoverflow.com/questions/67645262/how-to-invoke-asyncio-code-that-blocks-and-reach-the-next-line 2021-05-21 21:06:06 <-- cloudy_nz (~scott@101.100.131.105) has quit (Ping timeout: 260 seconds) 2021-05-21 21:06:23 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-21 21:07:12 <-- frrs (uid130725@gateway/web/irccloud.com/x-tbysrorvpekyicum) has quit (Quit: Connection closed for inactivity) 2021-05-21 21:07:44 <-- gr33n7001 (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 246 seconds) 2021-05-21 21:07:58 <-- kickingvegas (~cchoi@c-24-130-175-68.hsd1.ca.comcast.net) has quit (Quit: leaving) 2021-05-21 21:08:25 --> nvmd (~nvmd@177.30.111.232) has joined #python 2021-05-21 21:09:10 --> a6a45081-2b83 (~aditya@122.163.181.9) has joined #python 2021-05-21 21:09:17 blazeme8 pi-: if you remove all the `await` stuff from that program it's clear why it never reaches those lines 2021-05-21 21:09:38 <-- rinzewind (~chema@unaffiliated/rinzewind) has quit (Quit: leaving) 2021-05-21 21:10:05 blazeme8 you probably want to run the first async function in a different way 2021-05-21 21:10:46 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-21 21:10:49 <-- Rudd0 (~Rudd0@185.189.115.103) has quit (Ping timeout: 260 seconds) 2021-05-21 21:11:03 blazeme8 async aside wait_for_recv would never exit anyway... 2021-05-21 21:12:17 blazeme8 maybe call_soon_threadsafe instead of run_until_complete is what you want 2021-05-21 21:12:27 pi- I can see there's an infinite loop 2021-05-21 21:12:29 blazeme8 if you intend to just fling things into the event loop 2021-05-21 21:12:31 <-- lbalhar (~lbalhar@93.185.13.26) has quit (Ping timeout: 265 seconds) 2021-05-21 21:12:43 pi- But I can't encapsulate it in a thread 2021-05-21 21:12:49 pi- or I get runloop errors 2021-05-21 21:14:10 blazeme8 the event loop needs to run somewhere 2021-05-21 21:14:22 blazeme8 it will have a thread 2021-05-21 21:14:36 pi- Both f and ag are inside a library that I would rather not fiddle with. 2021-05-21 21:14:56 pi- I can't see any way through. 2021-05-21 21:15:16 pi- let me try call_soon_threadsafe 2021-05-21 21:16:22 pi- Nope :( 2021-05-21 21:17:07 <-- lucasb (uid333435@gateway/web/irccloud.com/x-mcpryjxfwvprcvow) has quit (Quit: Connection closed for inactivity) 2021-05-21 21:17:38 squirrel well, there's a infinite loop as you said. how exactly do you want this to work if there's an infinite loop? 2021-05-21 21:17:48 --> lbalhar (~lbalhar@93.185.13.26) has joined #python 2021-05-21 21:18:16 pi- Ordinarily I would run the whole thing inside a thread 2021-05-21 21:18:17 <-- Vornicus (~Vornicus@2603-8000-5d07-7ef0-199c-c7d3-c0e4-24bc.res6.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-21 21:18:32 squirrel what's "the whole thing" 2021-05-21 21:18:38 pi- f 2021-05-21 21:19:18 --> DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has joined #python 2021-05-21 21:19:22 squirrel this probably wouldn't print "never reaches" either 2021-05-21 21:19:31 squirrel since... infinite loop 2021-05-21 21:19:47 pi- You are right. I need to update the question. 2021-05-21 21:19:49 blazeme8 infinite and for reasons aside from asyncio 2021-05-21 21:20:01 pi- Thanks 2021-05-21 21:21:06 <-- iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-21 21:21:06 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-21 21:22:17 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-21 21:22:35 pi- Fixed 2021-05-21 21:22:49 pi- I mean, updated! FAR from a fix... 2021-05-21 21:23:09 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 265 seconds) 2021-05-21 21:24:34 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Remote host closed the connection) 2021-05-21 21:24:53 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-21 21:25:48 --> _Ev (ev@gateway/vpn/airvpn/ev/x-69267913) has joined #python 2021-05-21 21:26:13 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-21 21:27:07 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 21:27:19 blazeme8 unless you change the code shown in that question, the answer is You Can't 2021-05-21 21:28:03 eyepeetee i'm a bit puzzled about something. there's a website where, after logging in, if i clear cookies (cache too but it shouldn't matter) and reload, i'm still logged in, but if i open that site in a different browser that isn't logged in, it's not logged into the other browser. what gives? what do i need to do to log myself out without hitting the logout button? 2021-05-21 21:28:20 eyepeetee i am using driver.delete_all_cookies() of selenium and i check in the browser storage to confirm the cookies actually have been deleted 2021-05-21 21:28:24 eyepeetee so i am not sure what is going on 2021-05-21 21:28:30 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Remote host closed the connection) 2021-05-21 21:28:48 pi- blazeme8: If I change the code, what can I do? 2021-05-21 21:29:18 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-21 21:29:26 <-- ralof_ (~ralof@dynamic-077-004-122-065.77.4.pool.telefonica.de) has quit (Ping timeout: 260 seconds) 2021-05-21 21:29:48 blazeme8 i can't tell what the intent is given that little context 2021-05-21 21:30:11 <-- carljm (~carljm@django/moderator/carljm) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-21 21:30:30 squirrel pi-: i suppose at this point i'd try to ask the author of the library to explain how this should be done 2021-05-21 21:30:46 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 21:30:53 --> ralof (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has joined #python 2021-05-21 21:31:24 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-21 21:31:34 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-21 21:31:51 blazeme8 i also dont see why ye olde Thread(target=f).start() wouldn't work, lol 2021-05-21 21:31:51 pi- squirrel: They won't pick up. I think I have to figure out how to execute all of this in another thread. 2021-05-21 21:33:26 pi- RuntimeError: There is no current event loop in thread 'Thread-2'. 2021-05-21 21:33:59 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 246 seconds) 2021-05-21 21:34:01 squirrel in python, async usually means you don't want threads 2021-05-21 21:35:05 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-21 21:35:38 <-- Dotz0cat (~Dotz0cat@h192.71.213.151.dynamic.ip.windstream.net) has quit (Ping timeout: 252 seconds) 2021-05-21 21:35:50 --> Dotz0cat_ (~Dotz0cat@h180.167.187.173.ip.windstream.net) has joined #python 2021-05-21 21:36:23 squirrel perhaps you could use ensure_future instead of run_until_complete 2021-05-21 21:36:30 blazeme8 looking at some of my old code, i call asyncio.get_event_loop() and pass that around as the loop param to various asyncio functions 2021-05-21 21:36:30 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Read error: Connection reset by peer) 2021-05-21 21:36:47 blazeme8 this general structure https://docs.python.org/3/library/asyncio-eventloop.html#hello-world-with-call-soon 2021-05-21 21:37:08 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-21 21:37:47 squirrel or maybe call_soon yes 2021-05-21 21:37:51 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-21 21:37:53 <-- _Ev (ev@gateway/vpn/airvpn/ev/x-69267913) has quit (Quit: Leaving.) 2021-05-21 21:38:15 blazeme8 i think the misunderstanding here is that you _need_ to call run_forever or run_until_complete or similar somewhere 2021-05-21 21:38:26 blazeme8 that... is what makes asyncio and the things you want it to call get called 2021-05-21 21:39:42 squirrel i was hoping they are starting a loop somewhere :s 2021-05-21 21:39:54 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-21 21:41:01 blazeme8 well no i think the code they posted in the question is just fine as it is. f() is some server meant to run forever and process() would use call_soon or whatever to handle each client connection 2021-05-21 21:41:04 blazeme8 for example 2021-05-21 21:42:02 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 246 seconds) 2021-05-21 21:43:47 --> iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has joined #python 2021-05-21 21:44:23 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-21 21:44:44 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-21 21:45:28 madmallard Does anyone know a good way to screenshot a window in python that preserves desktop DPI without taking too long? I tried win32gui's methods with setting the user32dll to be DPI aware and it still gives me the wrong resolution. It is the correct speed though. If I use pyautogui's screenshot method it preserves desktop dpi (probably by using the 2021-05-21 21:45:29 madmallard screenshot hotkey) but it takes almost a second which is just entirely too slow. 2021-05-21 21:46:26 --> tm007 (uid287041@gateway/web/irccloud.com/x-zsdcedqfjpxrviea) has joined #python 2021-05-21 21:46:46 --> jarthur_ (~jarthur@2603-8080-1540-002d-69ff-c478-ff28-f9e6.res6.spectrum.com) has joined #python 2021-05-21 21:46:58 <-- PacKetSlayer (PacketSlay@hellomouse/member/packetslayer) has quit (Quit: Woosh!) 2021-05-21 21:46:58 <-- dan2wik (dan2wik@gateway/shell/hellomouse/x-wcrpuiomdfhcgxng) has quit (Quit: quit has dan2wik!) 2021-05-21 21:47:24 <-- jarthur (~jarthur@2603-8080-1540-002d-9428-d2ae-035d-9e2c.res6.spectrum.com) has quit (Ping timeout: 258 seconds) 2021-05-21 21:48:16 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-21 21:49:05 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-21 21:50:16 <-- htols (uid101550@gateway/web/irccloud.com/x-bgsjizahsqgdykrb) has quit (Quit: Connection closed for inactivity) 2021-05-21 21:54:01 <-- ogo (~ogo@gateway/tor-sasl/ogo) has quit (Remote host closed the connection) 2021-05-21 21:54:20 <-- DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has quit (Quit: DeadTOm) 2021-05-21 21:56:24 <-- thurin (~thurin@thurin.org) has quit (Quit: quit) 2021-05-21 21:56:44 jwhisnant madmallard: why is one second "too slow"? 2021-05-21 21:56:46 <-- iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-21 21:56:56 <-- blink (~x@awknode.com) has quit (Ping timeout: 252 seconds) 2021-05-21 21:56:57 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 21:56:57 madmallard i'm botting 2021-05-21 21:57:04 tm007 what 2021-05-21 21:57:09 madmallard botting a game 2021-05-21 21:57:22 madmallard SS needs to be fast 2021-05-21 21:57:25 nedbat madmallard: we might not know what that means. 2021-05-21 21:57:26 madmallard milliseconds 2021-05-21 21:57:28 pi- blazeme8 squirrel: Thankyou, it now works 🙏 2021-05-21 21:57:40 --> thurin (thurin@thurin.org) has joined #python 2021-05-21 21:57:48 madmallard is there no way to make win32gui DPI aware? 2021-05-21 21:57:54 blazeme8 nice! 2021-05-21 21:57:57 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-21 21:57:59 madmallard cuz the SS function of it normally took 11 milliseconds which is great 2021-05-21 21:58:06 madmallard but it's just the wrong resolution for some reason 2021-05-21 21:58:57 madmallard and i did nothing to change the resolution in the code 2021-05-21 21:59:14 --> philr (~phil@118.211.93.148) has joined #python 2021-05-21 21:59:26 <-- Ninja3047 (~Ninja3047@3047.ninja) has left #python ("WeeChat 3.1") 2021-05-21 21:59:27 --> PacKetSlayer (PacketSlay@hellomouse/member/packetslayer) has joined #python 2021-05-21 22:00:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 22:00:19 --> dan2wik (dan2wik@unaffiliated/dan2wik) has joined #python 2021-05-21 22:00:56 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-21 22:01:26 BrenBarn It looks like Pillow has a screen grab function, I've never used it though 2021-05-21 22:01:27 BrenBarn have you treid it? 2021-05-21 22:04:56 <-- bomb-on (~bomb-on@194.144.47.113) has quit (Quit: SO LONG, SUCKERS!) 2021-05-21 22:05:25 <-- ahadi (~ahadi@89.244.120.174) has quit (Ping timeout: 260 seconds) 2021-05-21 22:05:58 <-- comrumino (~comrumino@li87-103.members.linode.com) has quit (Remote host closed the connection) 2021-05-21 22:06:09 --> comrumino (~comrumino@li87-103.members.linode.com) has joined #python 2021-05-21 22:06:57 --> ahadi (~ahadi@88.130.219.198) has joined #python 2021-05-21 22:07:13 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-21 22:07:24 madmallard i believe i did i don't recall how slow it was or not 2021-05-21 22:07:31 <-- nvmd (~nvmd@177.30.111.232) has quit (Quit: Later nerds.) 2021-05-21 22:07:37 madmallard have to figure out how to make that PIL image get into cv2 tho before i use it for testing 2021-05-21 22:08:34 <-- comrumino (~comrumino@li87-103.members.linode.com) has quit (Client Quit) 2021-05-21 22:09:41 <-- ramsan (~ramsan@130.226.239.133) has quit (Ping timeout: 260 seconds) 2021-05-21 22:10:22 --> comrumino (~comrumino@li87-103.members.linode.com) has joined #python 2021-05-21 22:10:24 madmallard looks like that one took 600 milliseconds 2021-05-21 22:10:33 <-- tm (~sinnlos@unaffiliated/tm) has quit (Ping timeout: 260 seconds) 2021-05-21 22:10:58 --> derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has joined #python 2021-05-21 22:11:03 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-21 22:11:13 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-21 22:11:19 madmallard oh maybe not maybe it is ok 2021-05-21 22:11:52 --> wingsorc_ (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-21 22:12:27 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-21 22:12:29 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Ping timeout: 245 seconds) 2021-05-21 22:12:39 <-- a6a45081-2b83 (~aditya@122.163.181.9) has quit (Remote host closed the connection) 2021-05-21 22:14:39 --> tm (~sinnlos@unaffiliated/tm) has joined #python 2021-05-21 22:15:38 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-21 22:16:15 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Remote host closed the connection) 2021-05-21 22:16:19 <-- derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has quit (Ping timeout: 265 seconds) 2021-05-21 22:18:19 --> rpkilby_ (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-21 22:19:25 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-21 22:19:57 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-21 22:20:29 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-21 22:21:38 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Remote host closed the connection) 2021-05-21 22:24:32 <-- very_sneaky (~very_snea@45.67.96.24) has quit (Ping timeout: 240 seconds) 2021-05-21 22:24:47 --> Fauve (~Fauve@unaffiliated/fauve) has joined #python 2021-05-21 22:26:22 --> ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has joined #python 2021-05-21 22:26:49 --> very_sneaky (~very_snea@45.133.7.61) has joined #python 2021-05-21 22:27:15 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 22:28:53 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-21 22:29:08 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Disconnected by services) 2021-05-21 22:29:12 --> Wraith (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-21 22:29:43 --> bambanx (~bambanx@207.248.194.201) has joined #python 2021-05-21 22:29:59 <-- very_sneaky (~very_snea@45.133.7.61) has quit (Client Quit) 2021-05-21 22:30:19 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-21 22:30:28 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Remote host closed the connection) 2021-05-21 22:30:30 --> a6a45081-2b83 (~aditya@122.163.181.9) has joined #python 2021-05-21 22:30:39 --> very_sneaky (~very_snea@45.67.96.24) has joined #python 2021-05-21 22:30:45 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 22:31:05 <-- xvx (~xvx@185.48.63.108) has quit (Ping timeout: 260 seconds) 2021-05-21 22:31:30 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-21 22:32:11 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Remote host closed the connection) 2021-05-21 22:37:00 --> banana_ (18d04558@cpe-24-208-69-88.new.res.rr.com) has joined #python 2021-05-21 22:40:40 <-- azed (~azed@196.230.171.93) has quit (Quit: WeeChat 3.1) 2021-05-21 22:42:22 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-21 22:45:24 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::8475) has joined #python 2021-05-21 22:45:33 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-21 22:46:22 --> iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has joined #python 2021-05-21 22:47:47 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-21 22:49:59 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-21 22:51:37 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Read error: Connection reset by peer) 2021-05-21 22:53:10 --> blink (~x@awknode.com) has joined #python 2021-05-21 22:53:14 -- blink is now known as quick 2021-05-21 22:54:24 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-21 22:57:08 --> plutoniix (~q@node-usl.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-21 22:57:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 22:57:24 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-21 22:57:29 <-- wingsorc_ (~wingsorc@unaffiliated/wingsorc) has quit (Remote host closed the connection) 2021-05-21 22:57:56 --> wingsorc_ (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-21 22:58:16 <-- wingsorc_ (~wingsorc@unaffiliated/wingsorc) has quit (Client Quit) 2021-05-21 22:59:03 <-- bambanx (~bambanx@207.248.194.201) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-21 23:00:08 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 23:00:45 --> bambanx (~bambanx@207.248.194.201) has joined #python 2021-05-21 23:01:55 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-21 23:02:07 --> glick (~glick@2601:602:8800:6ba0:9822:443f:94e2:98a4) has joined #python 2021-05-21 23:02:09 glick hi 2021-05-21 23:02:37 glick hi does anyone know of a cool fairly easy to use gui builder for python 2021-05-21 23:02:41 glick like a RAD 2021-05-21 23:02:46 glick visual GUI builder? 2021-05-21 23:03:04 SnoopJ If you use PyQt you can use all the bells and whistles of Qt Designer as far as I know 2021-05-21 23:03:04 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Remote host closed the connection) 2021-05-21 23:03:18 glick qt designer ... that beast ? 2021-05-21 23:03:19 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-21 23:03:30 glick isnt that like 5gigs 2021-05-21 23:03:59 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-21 23:04:14 <-- sabet (~sabet@unaffiliated/sabet) has left #python ("Textual IRC Client: www.textualapp.com") 2021-05-21 23:04:36 <-- bambanx (~bambanx@207.248.194.201) has quit (Client Quit) 2021-05-21 23:04:54 SnoopJ It's not small 2021-05-21 23:05:12 --> bambanx (~bambanx@207.248.194.201) has joined #python 2021-05-21 23:05:24 SnoopJ Not sure if Kivy has any UI design tools, but that would be a place to look for a fairly popular modern choice 2021-05-21 23:07:58 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-21 23:08:37 --> sjoshi (~joshi_sun@223.235.143.71) has joined #python 2021-05-21 23:10:06 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-21 23:10:21 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-21 23:10:37 <-- FFY00_ (~FFY00@archlinux/trusteduser/ffy00) has quit (Ping timeout: 250 seconds) 2021-05-21 23:12:41 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-21 23:13:10 --> airplant (76a8ebe9@118-168-235-233.dynamic-ip.hinet.net) has joined #python 2021-05-21 23:14:58 <-- bambanx (~bambanx@207.248.194.201) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-21 23:16:46 <-- freebench (~freebench@92.253.251.226) has quit (Ping timeout: 260 seconds) 2021-05-21 23:16:54 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-21 23:17:13 <-- iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-21 23:17:22 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-21 23:17:49 --> Lord_of_Life_ (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-21 23:18:11 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 265 seconds) 2021-05-21 23:19:12 -- Lord_of_Life_ is now known as Lord_of_Life 2021-05-21 23:20:35 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has quit (Ping timeout: 250 seconds) 2021-05-21 23:21:05 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 246 seconds) 2021-05-21 23:22:39 --> stree (~stree@68.36.8.116) has joined #python 2021-05-21 23:23:35 --> iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has joined #python 2021-05-21 23:23:58 --> sartan (~sartan@unaffiliated/sartan) has joined #python 2021-05-21 23:26:54 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 23:28:42 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-21 23:28:48 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Remote host closed the connection) 2021-05-21 23:29:12 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-21 23:29:58 <-- a6a45081-2b83 (~aditya@122.163.181.9) has quit (Remote host closed the connection) 2021-05-21 23:30:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-21 23:33:05 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-21 23:33:20 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Remote host closed the connection) 2021-05-21 23:42:00 <-- dez (uid92154@fedora/deSouza) has quit (Quit: Connection closed for inactivity) 2021-05-21 23:42:53 --> explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has joined #python 2021-05-21 23:43:13 --> ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-21 23:43:40 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Read error: Connection reset by peer) 2021-05-21 23:45:21 <-- sjoshi (~joshi_sun@223.235.143.71) has quit (Ping timeout: 260 seconds) 2021-05-21 23:45:26 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 240 seconds) 2021-05-21 23:46:17 <-- contingo (~textual@213.205.200.36) has quit (Quit: My supercomputing cluster has gone to sleep. ZZZzzz…) 2021-05-21 23:46:54 <-- owl (~owl@104.238.130.126) has left #python 2021-05-21 23:47:06 <-- johnjay (~pi@38.120.10.99) has quit (Ping timeout: 260 seconds) 2021-05-21 23:48:25 <-- jarthur_ (~jarthur@2603-8080-1540-002d-69ff-c478-ff28-f9e6.res6.spectrum.com) has quit (Quit: jarthur_) 2021-05-21 23:48:48 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-21 23:49:14 --> phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has joined #python 2021-05-21 23:49:21 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-21 23:50:23 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-21 23:50:25 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 260 seconds) 2021-05-21 23:51:11 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 260 seconds) 2021-05-21 23:52:08 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-21 23:52:12 --> NeilG (~NeilG@192.222.196.111) has joined #python 2021-05-21 23:52:22 NeilG what's a nice way of making a dependency graph in python? 2021-05-21 23:52:51 NeilG I want to be able to dirty some dependencies and update the topologically-sorted successors 2021-05-21 23:52:57 NeilG networkx? 2021-05-21 23:53:13 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Ping timeout: 260 seconds) 2021-05-21 23:53:30 --> carljm (~carljm@django/moderator/carljm) has joined #python 2021-05-21 23:53:35 --> alza_ (uid49753@gateway/web/irccloud.com/x-cskpzrvuxgizwazs) has joined #python 2021-05-21 23:53:57 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has quit (Ping timeout: 250 seconds) 2021-05-21 23:54:18 --> johnjay (~pi@38.120.10.99) has joined #python 2021-05-21 23:54:23 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Quit: Connection closed) 2021-05-21 23:54:26 <-- iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-21 23:55:26 <-- alza_ (uid49753@gateway/web/irccloud.com/x-cskpzrvuxgizwazs) has quit (Client Quit) 2021-05-21 23:55:47 --> alza_ (uid49753@gateway/web/irccloud.com/x-caydruyqcgryjrtx) has joined #python 2021-05-21 23:56:57 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-21 23:57:44 --> av_ (uid87081@gateway/web/irccloud.com/x-mdsbhtsdgkgdrrcx) has joined #python 2021-05-21 23:58:21 <-- jinsun (~quassel@122.175.162.109) has quit (Ping timeout: 260 seconds) 2021-05-22 00:00:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 00:00:17 -- hahuang65 is now known as hwrd 2021-05-22 00:00:39 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-22 00:02:14 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Remote host closed the connection) 2021-05-22 00:02:46 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 240 seconds) 2021-05-22 00:05:11 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Ping timeout: 260 seconds) 2021-05-22 00:05:24 <-- JimmyNeutron (~weechat@173.239.198.210) has quit (Quit: WeeChat 3.0.1) 2021-05-22 00:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-22 00:06:14 --> cloudy_nz (~scott@101.100.131.105) has joined #python 2021-05-22 00:06:17 <-- Sheilong (uid293653@gateway/web/irccloud.com/x-krnmlpgvyfftvtpx) has quit 2021-05-22 00:06:39 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-22 00:08:48 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 00:11:43 --> derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has joined #python 2021-05-22 00:11:44 --> s8548a (~s8548a@unaffiliated/s8548a) has joined #python 2021-05-22 00:12:21 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-22 00:12:31 --> Rudd0 (~Rudd0@185.189.115.103) has joined #python 2021-05-22 00:13:08 --> unlink2 (~unlink2@p200300ebcf119100afa982f7047d8a7f.dip0.t-ipconnect.de) has joined #python 2021-05-22 00:13:13 <-- unlink2 (~unlink2@p200300ebcf119100afa982f7047d8a7f.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-22 00:13:46 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-22 00:14:14 <-- cowsay (~quassel@47.188.41.16) has quit (Ping timeout: 268 seconds) 2021-05-22 00:16:40 <-- derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has quit (Ping timeout: 265 seconds) 2021-05-22 00:16:41 --> Codaraxis_ (Codaraxis@gateway/vpn/mullvad/codaraxis) has joined #python 2021-05-22 00:17:51 --> a1paca (a1paca@gateway/vpn/protonvpn/a1paca) has joined #python 2021-05-22 00:18:13 <-- explody (~explody@cpe-74-132-31-76.kya.res.rr.com) has quit (Quit: explody) 2021-05-22 00:20:21 <-- Codaraxis (~Codaraxis@ip68-5-90-227.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-22 00:20:24 --> auk (auk@gateway/vpn/protonvpn/auk) has joined #python 2021-05-22 00:22:28 <-- airplant (76a8ebe9@118-168-235-233.dynamic-ip.hinet.net) has quit (Quit: Connection closed) 2021-05-22 00:22:45 --> cowsay (~quassel@47.188.41.16) has joined #python 2021-05-22 00:25:51 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 265 seconds) 2021-05-22 00:27:08 --> phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has joined #python 2021-05-22 00:27:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 00:27:59 <-- tm007 (uid287041@gateway/web/irccloud.com/x-zsdcedqfjpxrviea) has quit (Quit: Connection closed for inactivity) 2021-05-22 00:29:43 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 00:29:44 --> a1paca0 (a1paca@gateway/vpn/protonvpn/a1paca) has joined #python 2021-05-22 00:30:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 00:30:35 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-22 00:31:24 <-- ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has quit (Quit: Leaving) 2021-05-22 00:31:39 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 265 seconds) 2021-05-22 00:31:49 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 00:31:51 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has quit (Ping timeout: 258 seconds) 2021-05-22 00:32:29 <-- a1paca (a1paca@gateway/vpn/protonvpn/a1paca) has quit (Ping timeout: 246 seconds) 2021-05-22 00:33:46 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-22 00:34:45 <-- dntreou (~yakiza@178-147-210-231.haap.dm.cosmote.net) has quit (Ping timeout: 260 seconds) 2021-05-22 00:35:43 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-22 00:35:51 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Remote host closed the connection) 2021-05-22 00:38:29 <-- Maikel (~Maikel@unaffiliated/maikel) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-22 00:41:11 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 00:42:23 --> Maikel (~Maikel@unaffiliated/maikel) has joined #python 2021-05-22 00:43:05 <-- madmallard (acf92fe7@cpe-172-249-47-231.socal.res.rr.com) has quit (Quit: Connection closed) 2021-05-22 00:44:33 --> threwahway (~threwahwa@c-73-223-93-100.hsd1.ca.comcast.net) has joined #python 2021-05-22 00:45:38 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 00:46:18 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-22 00:48:08 --> Funke (~funke@unaffiliated/Funke) has joined #python 2021-05-22 00:48:52 --> ijens (~ijens@unaffiliated/ijens) has joined #python 2021-05-22 00:50:15 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-22 00:50:27 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit 2021-05-22 00:50:57 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-22 00:51:27 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-22 00:51:28 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 00:52:17 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-22 00:53:33 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 00:55:14 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 246 seconds) 2021-05-22 00:55:23 <-- ircuser-1 (~Johnny@71.63.241.168) has quit (Quit: because) 2021-05-22 00:55:35 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Ping timeout: 246 seconds) 2021-05-22 00:56:21 --> audiofreeze (~theology@unaffiliated/theology) has joined #python 2021-05-22 00:56:53 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 00:57:37 --> ircuser-1 (~Johnny@71.63.241.168) has joined #python 2021-05-22 00:58:04 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Remote host closed the connection) 2021-05-22 00:58:29 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Quit: Leaving) 2021-05-22 00:58:32 --> wingsorc (~wingsorc@unaffiliated/wingsorc) has joined #python 2021-05-22 01:00:10 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 01:00:47 --> bambanx (~bambanx@207.248.194.201) has joined #python 2021-05-22 01:01:22 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 01:02:06 <-- carljm (~carljm@django/moderator/carljm) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 01:02:29 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 01:03:04 <-- wingsorc (~wingsorc@unaffiliated/wingsorc) has quit (Read error: Connection reset by peer) 2021-05-22 01:03:29 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-22 01:05:07 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 01:05:10 <-- Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has quit (Remote host closed the connection) 2021-05-22 01:05:29 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-22 01:05:34 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-22 01:05:40 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Client Quit) 2021-05-22 01:05:51 <-- m1n10n (~georgeclo@cpe-76-184-204-251.tx.res.rr.com) has quit 2021-05-22 01:05:53 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-22 01:07:54 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 265 seconds) 2021-05-22 01:08:22 --> phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has joined #python 2021-05-22 01:08:50 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-22 01:08:51 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-22 01:09:32 <-- c4017w (~c4017@209.52.68.8) has quit (Ping timeout: 240 seconds) 2021-05-22 01:09:33 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 01:09:57 <-- Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has quit (Read error: Connection reset by peer) 2021-05-22 01:10:02 glick dam i have a csv file with 1 million rows where the date is in a messed up format. is there an easy way to fix the format or do i have to write code to fix it 2021-05-22 01:10:23 --> xenu (~xenu@carychium-tridentatum.xenu.pl) has joined #python 2021-05-22 01:10:44 <-- xenu (~xenu@carychium-tridentatum.xenu.pl) has left #python 2021-05-22 01:11:00 <-- bambanx (~bambanx@207.248.194.201) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-22 01:11:15 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-22 01:11:16 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-22 01:11:31 BrenBarn not sure what you mean 2021-05-22 01:11:35 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-22 01:11:39 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-22 01:11:53 BrenBarn if it's in a format that can be read by something like pandas then you might be able to just read it in and then write it out with a better format 2021-05-22 01:12:08 BrenBarn but that would still involve writing some small amount of code 2021-05-22 01:14:01 <-- a1paca0 (a1paca@gateway/vpn/protonvpn/a1paca) has quit (Ping timeout: 260 seconds) 2021-05-22 01:14:40 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-22 01:14:42 glick for example, there are two date fields, and the dates are written as month/day/YYYY, an did like to convert it into a format i can more easily insert into a database yyyy-mm-dd 2021-05-22 01:15:00 --> a6a45081-2b83 (~aditya@122.163.181.9) has joined #python 2021-05-22 01:15:07 --> bambanx (~bambanx@207.248.194.201) has joined #python 2021-05-22 01:15:55 sartan store it in iso 8601 format, present it in whatever you want 2021-05-22 01:16:03 sartan or as datetime object in your db 2021-05-22 01:16:13 glick yes but i need to convert it into that format first 2021-05-22 01:16:29 glick i cant insert mm/dd/yyyy into the database as a date object 2021-05-22 01:16:39 glick it needs to be in yyyy-mm-dd format 2021-05-22 01:17:57 <-- justBull (~justache@unaffiliated/justache) has quit (Remote host closed the connection) 2021-05-22 01:18:20 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 246 seconds) 2021-05-22 01:18:28 NeilG can someone help me work through my design? I'm trying to build a class that has an explicit dependency graph between its methods 2021-05-22 01:19:06 --> justBull (~justache@unaffiliated/justache) has joined #python 2021-05-22 01:19:24 NeilG I'm thinking of decorating methods with a memoization decorator that has the ability to be dirtied, and when dirtied will dirty all successors in the dependency graph 2021-05-22 01:19:30 NeilG does that sound reasonable? 2021-05-22 01:20:55 <-- plankton (~plankton@177.220.177.93) has quit (Remote host closed the connection) 2021-05-22 01:21:25 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-22 01:21:41 --> Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has joined #python 2021-05-22 01:24:06 --> sauvin (sauvin@about/linux/staff/sauvin) has joined #python 2021-05-22 01:25:28 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-22 01:27:03 --> c4017w (~c4017@209.52.68.8) has joined #python 2021-05-22 01:27:03 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 01:29:15 --> Death916_lap (~UserNick@unaffiliated/death916) has joined #python 2021-05-22 01:29:15 -- Death916_lap is now known as Death916 2021-05-22 01:29:34 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-22 01:29:46 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-22 01:29:51 --> Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has joined #python 2021-05-22 01:30:12 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 01:30:26 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 240 seconds) 2021-05-22 01:30:35 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 246 seconds) 2021-05-22 01:31:06 --> jarthur (~jarthur@2603-8080-1540-002d-69ff-c478-ff28-f9e6.res6.spectrum.com) has joined #python 2021-05-22 01:32:02 <-- audiofreeze (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-22 01:33:47 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 01:34:42 <-- NeverLoads (NeverLoad@freakshells.net) has quit (Quit: FREAKSHELLS - https://www.freakshells.net) 2021-05-22 01:35:10 --> NeverLoads (NeverLoad@freakshells.net) has joined #python 2021-05-22 01:36:23 <-- bambanx (~bambanx@207.248.194.201) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-22 01:37:04 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 01:37:46 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 240 seconds) 2021-05-22 01:38:46 <-- Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has quit (Ping timeout: 240 seconds) 2021-05-22 01:40:16 --> Jantz (~IceChat95@2407:7000:8d04:100:426:1e99:b3d9:fdf8) has joined #python 2021-05-22 01:40:18 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-22 01:42:59 --> Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has joined #python 2021-05-22 01:43:54 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 01:44:01 <-- emerent (~quassel@p200300cd5703bb1fba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-22 01:45:52 <-- SwiftMatt (~Objective@2601:282:4300:3e:3184:81e9:3d72:f740) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-22 01:46:10 --> emerent (~quassel@p200300cd5703bb86ba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-22 01:46:10 --> crimes (~cms@S0106848dc7ea6963.vc.shawcable.net) has joined #python 2021-05-22 01:47:26 <-- Death916 (~UserNick@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-22 01:48:07 --> frrs (uid130725@gateway/web/irccloud.com/x-abfbtchuzuffpedw) has joined #python 2021-05-22 01:49:22 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-22 01:49:50 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 246 seconds) 2021-05-22 01:51:10 BrenBarn glick: Then load it in somewhere and write it back out. I mean if you want you could try something like using a regex on the file line by line but that would be quite fragile 2021-05-22 01:51:35 --> Death916 (~UserNick@unaffiliated/death916) has joined #python 2021-05-22 01:52:55 <-- dbrownns (adfc2120@host-173-252-33-32.public.eastlink.ca) has quit (Quit: Connection closed) 2021-05-22 01:53:48 --> zopsi (~zopsi@irc.dir.ac) has joined #python 2021-05-22 01:55:50 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-22 01:57:18 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 01:57:19 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 01:58:13 --> ralof_ (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has joined #python 2021-05-22 01:58:39 <-- c4017w (~c4017@209.52.68.8) has quit (Ping timeout: 265 seconds) 2021-05-22 02:00:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 02:00:13 <-- ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has quit (Quit: Leaving) 2021-05-22 02:00:56 --> ralderson (~textual@37.19.212.10) has joined #python 2021-05-22 02:00:57 --> iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has joined #python 2021-05-22 02:01:06 <-- ralof (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-22 02:02:09 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 02:03:53 --> c4017w (~c4017@209.52.68.8) has joined #python 2021-05-22 02:06:13 <-- ralderson (~textual@37.19.212.10) has quit (Ping timeout: 260 seconds) 2021-05-22 02:07:26 <-- av_ (uid87081@gateway/web/irccloud.com/x-mdsbhtsdgkgdrrcx) has quit (Quit: Connection closed for inactivity) 2021-05-22 02:09:13 --> ffe4 (~ffe4@i577BCEC0.versanet.de) has joined #python 2021-05-22 02:10:18 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 02:10:24 --> derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has joined #python 2021-05-22 02:14:11 --> a1paca (a1paca@gateway/vpn/protonvpn/a1paca) has joined #python 2021-05-22 02:15:16 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 02:15:34 <-- Wraith (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Quit: Wraith) 2021-05-22 02:15:58 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-22 02:16:29 korg815 poweroff 2021-05-22 02:16:49 <-- korg815 (~korg815@unaffiliated/korg815) has quit (Quit: WeeChat 2.8) 2021-05-22 02:17:59 <-- crimes (~cms@S0106848dc7ea6963.vc.shawcable.net) has quit (Quit: Leaving) 2021-05-22 02:21:03 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 02:21:55 --> Jerrynicki (~niklas@p200300f57723aa001bf7457f1a04a29a.dip0.t-ipconnect.de) has joined #python 2021-05-22 02:23:01 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 260 seconds) 2021-05-22 02:24:01 <-- Azias (~Azias___@host-109-89-104-88.dynamic.voo.be) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-22 02:26:56 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 02:28:11 --> purplex (~purplex@unaffiliated/purplex88) has joined #python 2021-05-22 02:29:10 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-22 02:30:31 NeilG does anyone know how to decorate a property? 2021-05-22 02:30:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 02:32:38 Wulf NeilG: @foo @property def bar(self): ... 2021-05-22 02:33:07 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-22 02:33:11 KirkMcDonald Though you might want to swap the order of that, depending. 2021-05-22 02:33:29 NeilG KirkMcDonald, that's the question I'm trying to work out 2021-05-22 02:33:41 KirkMcDonald You generally want @property to be applied last, which is to say, to be the topmost-listed decorator. 2021-05-22 02:34:00 KirkMcDonald Because the thing it returns is not a callable. 2021-05-22 02:34:00 NeilG KirkMcDonald, can you help me understand why? 2021-05-22 02:34:05 NeilG ok 2021-05-22 02:34:06 Wulf then it wouldn't be decorating a property, but creating a property from a decorated function ;-) 2021-05-22 02:34:18 <-- TheRAt (~TheRAt@110.77.217.206) has quit (Ping timeout: 246 seconds) 2021-05-22 02:34:43 KirkMcDonald Now, there's nothing saying you can't write a decorator that is meant to be applied to a property object, but generally I'm assuming you're talking about function decorators. 2021-05-22 02:35:11 NeilG KirkMcDonald, I think I could write it either way. I need to think about it some more... 2021-05-22 02:35:43 NeilG if anyone wants to see my code, I would love some pointers 2021-05-22 02:35:48 KirkMcDonald Applying it to the property object is more complicated. You basically have to implement your own descriptor type. That or return the property itself. 2021-05-22 02:36:31 KirkMcDonald Or pick apart the components of the property object, decorate those, and make a new property. 2021-05-22 02:36:32 --> ram19890 (~ram@49.205.84.211) has joined #python 2021-05-22 02:36:44 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Quit: Left...) 2021-05-22 02:37:10 NeilG KirkMcDonald, yeah that makes sense 2021-05-22 02:37:20 NeilG it's more really a design problem 2021-05-22 02:37:35 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-22 02:37:51 NeilG do you know if I can use __init_subclass__ with dataclasses? 2021-05-22 02:38:01 glick how can i read a csv file with over a million rows 2021-05-22 02:38:11 glick i get field larger than field limit error when i try to read this file 2021-05-22 02:40:01 <-- ijens (~ijens@unaffiliated/ijens) has quit (Remote host closed the connection) 2021-05-22 02:40:52 Wulf NeilG: it works. And I use it for one of my projects 2021-05-22 02:40:52 <-- Samian (~sami@174.27.107.153) has quit (Ping timeout: 240 seconds) 2021-05-22 02:41:12 NeilG Wulf, nice, perfect 2021-05-22 02:41:18 NeilG thanks 2021-05-22 02:41:58 <-- Sausage (~sausage@tehsausage.com) has left #python ("Leaving") 2021-05-22 02:42:42 Wulf another project I should work on... 2021-05-22 02:42:57 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-22 02:43:29 --> pinkisntwell (~pinkisntw@46.251.99.222) has joined #python 2021-05-22 02:43:48 NeilG Wulf, lol 2021-05-22 02:44:29 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::8475) has quit (Ping timeout: 258 seconds) 2021-05-22 02:45:42 NeilG Wulf, sorry, qq, if I want to intercept attribute setting in a dataclass, can I do it with __setattr__, __setattribute__ or something else? 2021-05-22 02:47:03 Wulf NeilG: you mean like foo = C(); foo.bar = 29? 2021-05-22 02:47:11 NeilG yeah 2021-05-22 02:47:16 NeilG I think it works with __setattr__ 2021-05-22 02:47:26 NeilG if I call super so as not to break anything 2021-05-22 02:47:29 NeilG does that seem reasonable to you? 2021-05-22 02:48:10 Wulf NeilG: I think @dataclass will create the __setsomething__ for you in your class 2021-05-22 02:48:30 NeilG Mind I paste my code? 2021-05-22 02:48:38 Wulf NeilG: https://bpa.st/+python 2021-05-22 02:48:41 <-- JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has quit (Ping timeout: 260 seconds) 2021-05-22 02:48:52 NeilG https://bpa.st/H5VQ 2021-05-22 02:49:37 --> mcsontos (~mcsontos@ip-78-45-136-55.net.upcbroadband.cz) has joined #python 2021-05-22 02:49:41 NeilG This gives a bit more context: https://bpa.st/FNTQ 2021-05-22 02:50:22 --> snowkidimd (~snowkidim@2001:44c8:422c:f4c0:741c:fc54:6e5e:a60a) has joined #python 2021-05-22 02:50:39 NeilG I'm trying to come up with a nice way so that whenever an attribute is dirtied, all of the methods that depend on it are also dirtied 2021-05-22 02:51:46 <-- pinkisntwell (~pinkisntw@46.251.99.222) has quit (Ping timeout: 240 seconds) 2021-05-22 02:52:21 NeilG anyway, sorry it's a bit long 2021-05-22 02:52:21 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 02:52:24 NeilG design problems are the hardest 2021-05-22 02:53:31 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 02:57:05 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 02:58:01 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 260 seconds) 2021-05-22 02:59:09 <-- rpkilby_ (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-22 02:59:13 <-- jarthur (~jarthur@2603-8080-1540-002d-69ff-c478-ff28-f9e6.res6.spectrum.com) has quit (Quit: jarthur) 2021-05-22 02:59:26 <-- cloudy_nz (~scott@101.100.131.105) has left #python ("Closing Window") 2021-05-22 03:00:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 03:03:12 <-- a6a45081-2b83 (~aditya@122.163.181.9) has quit (Read error: Connection reset by peer) 2021-05-22 03:03:26 <-- dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-22 03:03:37 <-- kakashiAL (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 260 seconds) 2021-05-22 03:03:38 --> a6a45081-2b83 (~aditya@122.163.181.9) has joined #python 2021-05-22 03:04:16 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-22 03:04:58 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-22 03:05:01 <-- DHARMAKAYA (~DHARMAKAY@189.174.247.195) has quit (Quit: Turning off a portion of this simulation.) 2021-05-22 03:05:18 <-- Petrushka (~devcon@deathstar.devconproductions.org) has quit (Remote host closed the connection) 2021-05-22 03:07:32 --> Petrushka (~devcon@deathstar.devconproductions.org) has joined #python 2021-05-22 03:11:07 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 03:13:06 --> Spinifera (~Spinifera@147.69.128.163) has joined #python 2021-05-22 03:13:57 --> kosh (~kosh@p200300d08f49f600c985d75ae0434e0b.dip0.t-ipconnect.de) has joined #python 2021-05-22 03:15:18 --> yeticheese (~yetichees@193.160.245.44) has joined #python 2021-05-22 03:16:13 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 03:18:30 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-22 03:19:40 <-- Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has quit (Client Quit) 2021-05-22 03:21:51 --> RoXX (~roxx@unaffiliated/roxx) has joined #python 2021-05-22 03:22:28 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-22 03:22:35 --> toverna (~uni@2.95.199.25) has joined #python 2021-05-22 03:23:06 --> GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has joined #python 2021-05-22 03:24:10 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Read error: Connection reset by peer) 2021-05-22 03:24:18 --> DTZUZU (~DTZUZO@207.81.119.43) has joined #python 2021-05-22 03:26:14 <-- yeticheese (~yetichees@193.160.245.44) has quit (Remote host closed the connection) 2021-05-22 03:26:52 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Quit: _h4rd3n3D_) 2021-05-22 03:26:52 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 03:26:57 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-22 03:27:10 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-22 03:28:49 --> bazul (bazul@38.189.189.46.rev.vodafone.pt) has joined #python 2021-05-22 03:29:28 --> panikovsky (~panikovsk@46.61.92.247) has joined #python 2021-05-22 03:29:57 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 03:31:11 <-- mikeike2 (~j@gateway/tor-sasl/doh) has quit (Remote host closed the connection) 2021-05-22 03:31:26 --> mikeike2 (~j@gateway/tor-sasl/doh) has joined #python 2021-05-22 03:31:34 <-- toverna (~uni@2.95.199.25) has quit (Remote host closed the connection) 2021-05-22 03:31:58 --> toverna (~uni@2.95.199.25) has joined #python 2021-05-22 03:32:57 spunk glick: you can iterate through that file. 2021-05-22 03:33:10 <-- ram19890 (~ram@49.205.84.211) has quit (Quit: Konversation terminated!) 2021-05-22 03:33:17 <-- anonfunc (~anonfunc@anquietas.harting.hosting) has quit (Quit: Leaving) 2021-05-22 03:33:37 --> ram19890 (~ram@49.205.84.211) has joined #python 2021-05-22 03:33:41 --> anonfunc (~anonfunc@anquietas.harting.hosting) has joined #python 2021-05-22 03:33:47 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-22 03:33:53 <-- ram19890 (~ram@49.205.84.211) has quit (Read error: Connection reset by peer) 2021-05-22 03:34:12 --> ram19890 (~ram@49.205.84.211) has joined #python 2021-05-22 03:34:28 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-22 03:35:51 <-- jesusJesse (~powerhous@2604:3d08:6d80:a900::cab6) has quit (Ping timeout: 258 seconds) 2021-05-22 03:37:28 --> gr33n7001 (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-22 03:38:06 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 240 seconds) 2021-05-22 03:39:04 --> Mulugruntz (~Mulugrunt@2400:4152:2063:3100:3c73:6a7e:ab64:377d) has joined #python 2021-05-22 03:39:56 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-22 03:40:38 <-- Maikel (~Maikel@unaffiliated/maikel) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-22 03:41:37 <-- a6a45081-2b83 (~aditya@122.163.181.9) has quit (Remote host closed the connection) 2021-05-22 03:43:48 <-- ram19890 (~ram@49.205.84.211) has quit (Quit: Konversation terminated!) 2021-05-22 03:43:50 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-22 03:45:28 <-- Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has quit (Ping timeout: 265 seconds) 2021-05-22 03:45:57 <-- cellofellow (~user@166.70.50.58) has quit (Ping timeout: 265 seconds) 2021-05-22 03:46:26 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Ping timeout: 263 seconds) 2021-05-22 03:46:26 <-- AlanMD (~alan@5-12-75-55.residential.rdsnet.ro) has quit (Ping timeout: 263 seconds) 2021-05-22 03:46:26 <-- rzmt (~rzmt@87-92-227-98.rev.dnainternet.fi) has quit (Ping timeout: 263 seconds) 2021-05-22 03:46:26 <-- PNHLantau (~pnhlantau@223.18.76.33) has quit (Ping timeout: 263 seconds) 2021-05-22 03:46:26 <-- markmcclain (~markmccla@208.113.167.90) has quit (Ping timeout: 263 seconds) 2021-05-22 03:46:43 --> markmcclain (~markmccla@208.113.167.90) has joined #python 2021-05-22 03:48:26 --> rzmt (~rzmt@87-92-227-98.rev.dnainternet.fi) has joined #python 2021-05-22 03:48:47 --> PNHLantau (~pnhlantau@223.18.76.33) has joined #python 2021-05-22 03:50:10 --> AlanMD (~alan@5-12-75-55.residential.rdsnet.ro) has joined #python 2021-05-22 03:50:16 --> fflori (~fflori@mob-194-230-155-245.cgn.sunrise.net) has joined #python 2021-05-22 03:50:40 --> is_null_ (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-22 03:50:50 <-- dweeber (~dweeber@c-73-52-129-219.hsd1.ut.comcast.net) has quit (Remote host closed the connection) 2021-05-22 03:50:53 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Excess Flood) 2021-05-22 03:50:53 <-- luizfrds (~Luiz@152.250.243.147) has quit (Remote host closed the connection) 2021-05-22 03:50:54 <-- shicks255 (~shicks255@c-73-44-67-59.hsd1.il.comcast.net) has quit (Remote host closed the connection) 2021-05-22 03:50:54 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Ping timeout: 379 seconds) 2021-05-22 03:51:07 <-- fbiagent_ (~fbiagent@unaffiliated/fbiagent) has quit (Remote host closed the connection) 2021-05-22 03:51:07 <-- Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has quit (Remote host closed the connection) 2021-05-22 03:51:14 <-- plutoniix (~q@node-usl.pool-125-24.dynamic.totinternet.net) has quit (Quit: Leaving) 2021-05-22 03:51:18 --> fbiagent (~fbiagent@unaffiliated/fbiagent) has joined #python 2021-05-22 03:51:19 --> dweeber (~dweeber@c-73-52-129-219.hsd1.ut.comcast.net) has joined #python 2021-05-22 03:51:19 --> Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-22 03:51:59 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 246 seconds) 2021-05-22 03:52:05 --> shicks255 (~shicks255@c-73-44-67-59.hsd1.il.comcast.net) has joined #python 2021-05-22 03:52:48 --> srandon111 (~srandon11@5.102.2.235) has joined #python 2021-05-22 03:52:57 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-22 03:53:03 <-- alza_ (uid49753@gateway/web/irccloud.com/x-caydruyqcgryjrtx) has quit (Quit: Connection closed for inactivity) 2021-05-22 03:53:13 <-- john2gb0 (~john2gb@94-225-47-8.access.telenet.be) has quit (Ping timeout: 240 seconds) 2021-05-22 03:53:19 <-- r3dux (~r3dux@ip70-187-234-142.oc.oc.cox.net) has quit (Read error: Connection reset by peer) 2021-05-22 03:55:03 --> frostschutz (~frostschu@2a01:c22:c855:7600:6600:12a6:3497:b40a) has joined #python 2021-05-22 03:55:59 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-22 03:56:01 --> Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has joined #python 2021-05-22 03:57:06 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 03:57:15 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-22 03:57:42 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 258 seconds) 2021-05-22 03:57:56 <-- ffe4 (~ffe4@i577BCEC0.versanet.de) has quit (Ping timeout: 260 seconds) 2021-05-22 03:59:10 --> ffe4 (~ffe4@200116b82cd4ca00f18a2263b54d22b9.dip.versatel-1u1.de) has joined #python 2021-05-22 03:59:39 <-- Jerrynicki (~niklas@p200300f57723aa001bf7457f1a04a29a.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-22 03:59:58 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Quit: Leaving) 2021-05-22 04:00:35 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 04:00:41 --> betuxy (~ole@158.181.77.59) has joined #python 2021-05-22 04:01:15 --> Jantz_ (~IceChat95@2407:7000:8d04:100:742d:dc:5a71:cb46) has joined #python 2021-05-22 04:02:38 --> yeticheese (~yetichees@193.160.245.44) has joined #python 2021-05-22 04:03:04 <-- Jantz (~IceChat95@2407:7000:8d04:100:426:1e99:b3d9:fdf8) has quit (Ping timeout: 258 seconds) 2021-05-22 04:03:44 <-- ffe4 (~ffe4@200116b82cd4ca00f18a2263b54d22b9.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-22 04:05:16 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 04:05:24 <-- laurents (~laurents@2a07:abc4::1:26e) has quit (Ping timeout: 245 seconds) 2021-05-22 04:05:33 <-- mdk (~mdk@51.15.187.166) has quit (Quit: WeeChat 3.1) 2021-05-22 04:05:48 <-- toverna (~uni@2.95.199.25) has quit (Quit: Konversation terminated!) 2021-05-22 04:06:56 --> hendursa1 (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-22 04:07:05 <-- yeticheese (~yetichees@193.160.245.44) has quit (Ping timeout: 260 seconds) 2021-05-22 04:07:33 <-- a1paca (a1paca@gateway/vpn/protonvpn/a1paca) has quit (Quit: Leaving) 2021-05-22 04:07:35 --> laurents (~laurents@89.234.183.156) has joined #python 2021-05-22 04:07:53 --> r_hector (~richard@2406:e001:8:a900:6e62:6dff:fe05:ae29) has joined #python 2021-05-22 04:08:02 <-- r_hector (~richard@2406:e001:8:a900:6e62:6dff:fe05:ae29) has left #python 2021-05-22 04:09:57 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Ping timeout: 240 seconds) 2021-05-22 04:10:12 --> LucaTM (~LucaTM@unaffiliated/lucatm) has joined #python 2021-05-22 04:11:51 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 04:12:08 --> mkoskar (~mkoskar@unaffiliated/mkoskar) has joined #python 2021-05-22 04:13:11 --> bambanx (~bambanx@207.248.194.201) has joined #python 2021-05-22 04:13:45 <-- bambanx (~bambanx@207.248.194.201) has quit (Read error: Connection reset by peer) 2021-05-22 04:13:46 --> Nact (~l@host-85-27-120-83.dynamic.voo.be) has joined #python 2021-05-22 04:14:48 <-- mkoskar (~mkoskar@unaffiliated/mkoskar) has quit (Client Quit) 2021-05-22 04:15:07 --> gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has joined #python 2021-05-22 04:16:25 <-- gr33n7001 (~gr33n7007@unaffiliated/gr33n7007h) has quit (Ping timeout: 260 seconds) 2021-05-22 04:16:29 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 246 seconds) 2021-05-22 04:20:16 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-22 04:20:31 --> ralof (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has joined #python 2021-05-22 04:20:58 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 04:21:48 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 04:23:29 <-- ralof_ (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has quit (Ping timeout: 246 seconds) 2021-05-22 04:24:16 --> z0id (~zoid@unaffiliated/taxationistheft) has joined #python 2021-05-22 04:24:55 --> SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has joined #python 2021-05-22 04:25:06 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 04:26:28 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 04:26:50 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 04:26:58 --> ffe4 (~ffe4@200116b82cd4ca00f18a2263b54d22b9.dip.versatel-1u1.de) has joined #python 2021-05-22 04:28:17 --> Rakyts (~Rakyts@82.209.41.102) has joined #python 2021-05-22 04:29:11 <-- Jantz_ (~IceChat95@2407:7000:8d04:100:742d:dc:5a71:cb46) has quit (Quit: Strange women lying in ponds distributing swords is no basis for a system of government!) 2021-05-22 04:29:30 <-- kraucrow (~polarizin@unaffiliated/kraucrow) has quit (Remote host closed the connection) 2021-05-22 04:30:17 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 04:30:18 <-- DonRichie (~DonRichie@ricl.de) has quit (*.net *.split) 2021-05-22 04:30:18 <-- zoid (~zoid@unaffiliated/taxationistheft) has quit (*.net *.split) 2021-05-22 04:30:18 <-- MJ94 (mj94@wikimedia/mj94) has quit (*.net *.split) 2021-05-22 04:30:18 <-- kostkon (~kostkon@unaffiliated/kostkon) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Yorick_ (znc@unaffiliated/rick-) has quit (*.net *.split) 2021-05-22 04:30:18 <-- tonythomas (uid25971@wikimedia/-01tonythomas) has quit (*.net *.split) 2021-05-22 04:30:18 <-- G0UQT (sid422535@gateway/web/irccloud.com/x-ynbkpzlwspqarlhp) has quit (*.net *.split) 2021-05-22 04:30:18 <-- dstufft (~dstufft@python/psf/dstufft) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Z750 (~Z750@lrrr.zachbr.io) has quit (*.net *.split) 2021-05-22 04:30:18 <-- jjakob (~quassel@2a01:260:8028:10f0::62) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Fusl (fusl@opennic/fusl) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Karyon (~Karyon@unaffiliated/karyon) has quit (*.net *.split) 2021-05-22 04:30:18 <-- svinther (svinther@2a01:7e01::f03c:92ff:fe90:ad4f) has quit (*.net *.split) 2021-05-22 04:30:18 <-- creat (~creat@unaffiliated/creat) has quit (*.net *.split) 2021-05-22 04:30:18 <-- petan (~g@wikimedia/Petrb) has quit (*.net *.split) 2021-05-22 04:30:18 <-- EvilDMP (EvilDMP@django/moderator/EvilDMP) has quit (*.net *.split) 2021-05-22 04:30:18 <-- ld50 (~quassel@2a01:4f8:202:53d9::bad:deed) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Quietus (quasselcor@larch.ratcliffefamily.uk) has quit (*.net *.split) 2021-05-22 04:30:18 <-- sife (~sife@goettsch.xyz) has quit (*.net *.split) 2021-05-22 04:30:18 <-- DragoonAethis (~quassel@2a01:4f8:c2c:3359::1) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Tuor (~quassel@unaffiliated/tuor) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Ludo (ludo@unaffiliated/ludo) has quit (*.net *.split) 2021-05-22 04:30:18 <-- ttoocs (~ttoocs@node-1w7jr9ydmqkzsw9xxgt82y06w.ipv6.telus.net) has quit (*.net *.split) 2021-05-22 04:30:18 <-- CrtxReavr (crtxreavr@shodan.trioptimum.com) has quit (*.net *.split) 2021-05-22 04:30:18 <-- pepijndevos (~pepijndev@2a00:d880:5:3ec::2) has quit (*.net *.split) 2021-05-22 04:30:18 <-- fr0gJMP (~fr0g@2001:41d0:8:906a::1) has quit (*.net *.split) 2021-05-22 04:30:18 <-- hif2 (hifi@m.vi.fi) has quit (*.net *.split) 2021-05-22 04:30:18 <-- nicoz (nicoz@nicoz.mooo.com) has quit (*.net *.split) 2021-05-22 04:30:18 <-- achilleas (ach@unaffiliated/achillion) has quit (*.net *.split) 2021-05-22 04:30:18 <-- spikhoff (sid490234@gateway/web/irccloud.com/x-pqntcqvuoqttjvmb) has quit (*.net *.split) 2021-05-22 04:30:18 <-- deeprave (sid60077@gateway/web/irccloud.com/x-vyjtbaldvmisvwag) has quit (*.net *.split) 2021-05-22 04:30:18 <-- MikeDebian (~Mike@2001:8a0:5e34:f00:bbbb::) has quit (*.net *.split) 2021-05-22 04:30:18 <-- luna_is_here (~quassel@2a02:908:f761:2a3c::a) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Yhg1s (sid387777@python/psf/thomas) has quit (*.net *.split) 2021-05-22 04:30:18 <-- shurane (sid132556@gateway/web/irccloud.com/x-lmvdfcfddaxwcnzu) has quit (*.net *.split) 2021-05-22 04:30:18 <-- BlueShark (sid10311@april-fools/2014/sixth/BlueShark) has quit (*.net *.split) 2021-05-22 04:30:18 <-- coldmountain (sid484352@gateway/web/irccloud.com/x-oraguisujegecgso) has quit (*.net *.split) 2021-05-22 04:30:18 <-- TemporalShift (~Temp@unaffiliated/temporalshift) has quit (*.net *.split) 2021-05-22 04:30:18 <-- amg (ghebo@unaffiliated/amg) has quit (*.net *.split) 2021-05-22 04:30:18 <-- bucketm0use (no@unaffiliated/bucketm0use) has quit (*.net *.split) 2021-05-22 04:30:18 <-- demonkeeper (~arno@debian/developer/arno) has quit (*.net *.split) 2021-05-22 04:30:18 <-- notevil (notevil@unaffiliated/notevil) has quit (*.net *.split) 2021-05-22 04:30:18 <-- anyk (~quassel@2a01:4f9:2a:1b96:2::2) has quit (*.net *.split) 2021-05-22 04:30:18 <-- nikow (~nikow@2001:41d0:601:1100::462) has quit (*.net *.split) 2021-05-22 04:30:18 <-- janus (Janus@bnc.animux.de) has quit (*.net *.split) 2021-05-22 04:30:18 <-- meretrix (~meretrix@unaffiliated/meretrix) has quit (*.net *.split) 2021-05-22 04:30:18 <-- hogarius (hogarius@gateway/web/irccloud.com/x-bacihktxenbpulxv) has quit (*.net *.split) 2021-05-22 04:30:18 <-- noodle (~noodle@2600:1f14:45f:7d01:d89f:3ec3:2c4:c50f) has quit (*.net *.split) 2021-05-22 04:30:18 <-- kuldeep (~kuldeep@unaffiliated/kuldeepdhaka) has quit (*.net *.split) 2021-05-22 04:30:18 <-- jhill (sid1055@gateway/web/irccloud.com/x-mhjxackjebwlbjzw) has quit (*.net *.split) 2021-05-22 04:30:18 <-- bjs (sid190364@gateway/web/irccloud.com/x-qkboxvptydjijwec) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Knyght (sid365271@gateway/web/irccloud.com/x-iftjsjjpcbgvmhuq) has quit (*.net *.split) 2021-05-22 04:30:18 <-- cranberry (~cranberry@unaffiliated/cranberry) has quit (*.net *.split) 2021-05-22 04:30:18 <-- mattmcc (matt@2600:3c00::f03c:91ff:fe89:c2e8) has quit (*.net *.split) 2021-05-22 04:30:18 <-- dnns01_ (~quassel@2a02:c207:3003:651::1) has quit (*.net *.split) 2021-05-22 04:30:18 <-- _xs (~xs@unaffiliated/xs/x-2833590) has quit (*.net *.split) 2021-05-22 04:30:18 <-- con3 (~con3@2604:a880:4:1d0::be:d000) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Nitori (~kappa@2a01:4f8:c17:5d9::2) has quit (*.net *.split) 2021-05-22 04:30:18 <-- doko (~quassel@2a01:4f8:200:53d4::2) has quit (*.net *.split) 2021-05-22 04:30:18 <-- tpr (~tpr@unaffiliated/teprrr) has quit (*.net *.split) 2021-05-22 04:30:18 <-- level3 (level3@gateway/shell/tilde.team/x-qmrjrjhnfijbjsab) has quit (*.net *.split) 2021-05-22 04:30:18 <-- vt (quasselcor@unaffiliated/vt) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Nothing4You (N4Y@nothing4you.w.tf-w.tf) has quit (*.net *.split) 2021-05-22 04:30:18 <-- shrysr_ (~shrysr@2600:3c04::f03c:91ff:fece:e233) has quit (*.net *.split) 2021-05-22 04:30:18 <-- zimmermann (sid36663@gateway/web/irccloud.com/x-zqbazwiuruuclmxt) has quit (*.net *.split) 2021-05-22 04:30:18 <-- PsYcHoPaT (~nothing@psychopat.org) has quit (*.net *.split) 2021-05-22 04:30:18 <-- zamba (~marius@89.162.88.18) has quit (*.net *.split) 2021-05-22 04:30:18 <-- paperManu (~paperManu@138.197.128.151) has quit (*.net *.split) 2021-05-22 04:30:18 <-- Tashtari (~tashtari@unaffiliated/tashtari) has quit (*.net *.split) 2021-05-22 04:30:18 <-- ross` (~ross@foo.mx) has quit (*.net *.split) 2021-05-22 04:30:18 <-- laris (undead@37.221.209.36) has quit (*.net *.split) 2021-05-22 04:30:29 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 04:30:50 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 246 seconds) 2021-05-22 04:31:02 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 04:31:13 --> hogarius (hogarius@gateway/web/irccloud.com/x-bacihktxenbpulxv) has joined #python 2021-05-22 04:31:13 --> DonRichie (~DonRichie@ricl.de) has joined #python 2021-05-22 04:31:13 --> Knyght (sid365271@gateway/web/irccloud.com/x-iftjsjjpcbgvmhuq) has joined #python 2021-05-22 04:31:13 --> MJ94 (mj94@wikimedia/mj94) has joined #python 2021-05-22 04:31:13 --> kostkon (~kostkon@unaffiliated/kostkon) has joined #python 2021-05-22 04:31:13 --> Yorick_ (znc@unaffiliated/rick-) has joined #python 2021-05-22 04:31:13 --> tonythomas (uid25971@wikimedia/-01tonythomas) has joined #python 2021-05-22 04:31:13 --> G0UQT (sid422535@gateway/web/irccloud.com/x-ynbkpzlwspqarlhp) has joined #python 2021-05-22 04:31:13 --> dstufft (~dstufft@python/psf/dstufft) has joined #python 2021-05-22 04:31:13 --> Tuor (~quassel@unaffiliated/tuor) has joined #python 2021-05-22 04:31:13 --> svinther (svinther@2a01:7e01::f03c:92ff:fe90:ad4f) has joined #python 2021-05-22 04:31:13 --> Z750 (~Z750@lrrr.zachbr.io) has joined #python 2021-05-22 04:31:13 --> jjakob (~quassel@2a01:260:8028:10f0::62) has joined #python 2021-05-22 04:31:13 --> Fusl (fusl@opennic/fusl) has joined #python 2021-05-22 04:31:13 --> Karyon (~Karyon@unaffiliated/karyon) has joined #python 2021-05-22 04:31:13 --> creat (~creat@unaffiliated/creat) has joined #python 2021-05-22 04:31:13 --> petan (~g@wikimedia/Petrb) has joined #python 2021-05-22 04:31:13 --> shurane (sid132556@gateway/web/irccloud.com/x-lmvdfcfddaxwcnzu) has joined #python 2021-05-22 04:31:13 --> jhill (sid1055@gateway/web/irccloud.com/x-mhjxackjebwlbjzw) has joined #python 2021-05-22 04:31:13 --> EvilDMP (EvilDMP@django/moderator/EvilDMP) has joined #python 2021-05-22 04:31:13 --> ld50 (~quassel@2a01:4f8:202:53d9::bad:deed) has joined #python 2021-05-22 04:31:13 --> Quietus (quasselcor@larch.ratcliffefamily.uk) has joined #python 2021-05-22 04:31:13 --> cranberry (~cranberry@unaffiliated/cranberry) has joined #python 2021-05-22 04:31:13 --> nicoz (nicoz@nicoz.mooo.com) has joined #python 2021-05-22 04:31:13 --> sife (~sife@goettsch.xyz) has joined #python 2021-05-22 04:31:13 --> Ludo (ludo@unaffiliated/ludo) has joined #python 2021-05-22 04:31:13 --> DragoonAethis (~quassel@2a01:4f8:c2c:3359::1) has joined #python 2021-05-22 04:31:13 --> ttoocs (~ttoocs@node-1w7jr9ydmqkzsw9xxgt82y06w.ipv6.telus.net) has joined #python 2021-05-22 04:31:13 --> CrtxReavr (crtxreavr@shodan.trioptimum.com) has joined #python 2021-05-22 04:31:13 --> pepijndevos (~pepijndev@2a00:d880:5:3ec::2) has joined #python 2021-05-22 04:31:13 --> fr0gJMP (~fr0g@2001:41d0:8:906a::1) has joined #python 2021-05-22 04:31:13 --> hif2 (hifi@m.vi.fi) has joined #python 2021-05-22 04:31:13 --> achilleas (ach@unaffiliated/achillion) has joined #python 2021-05-22 04:31:13 --> zimmermann (sid36663@gateway/web/irccloud.com/x-zqbazwiuruuclmxt) has joined #python 2021-05-22 04:31:13 --> spikhoff (sid490234@gateway/web/irccloud.com/x-pqntcqvuoqttjvmb) has joined #python 2021-05-22 04:31:13 --> deeprave (sid60077@gateway/web/irccloud.com/x-vyjtbaldvmisvwag) has joined #python 2021-05-22 04:31:13 --> coldmountain (sid484352@gateway/web/irccloud.com/x-oraguisujegecgso) has joined #python 2021-05-22 04:31:13 --> BlueShark (sid10311@april-fools/2014/sixth/BlueShark) has joined #python 2021-05-22 04:31:13 --> MikeDebian (~Mike@2001:8a0:5e34:f00:bbbb::) has joined #python 2021-05-22 04:31:13 --> luna_is_here (~quassel@2a02:908:f761:2a3c::a) has joined #python 2021-05-22 04:31:13 --> janus (Janus@bnc.animux.de) has joined #python 2021-05-22 04:31:13 --> Yhg1s (sid387777@python/psf/thomas) has joined #python 2021-05-22 04:31:13 --> TemporalShift (~Temp@unaffiliated/temporalshift) has joined #python 2021-05-22 04:31:13 --> amg (ghebo@unaffiliated/amg) has joined #python 2021-05-22 04:31:13 --> bucketm0use (no@unaffiliated/bucketm0use) has joined #python 2021-05-22 04:31:13 --> demonkeeper (~arno@debian/developer/arno) has joined #python 2021-05-22 04:31:13 --> notevil (notevil@unaffiliated/notevil) has joined #python 2021-05-22 04:31:13 --> anyk (~quassel@2a01:4f9:2a:1b96:2::2) has joined #python 2021-05-22 04:31:13 --> meretrix (~meretrix@unaffiliated/meretrix) has joined #python 2021-05-22 04:31:13 --> noodle (~noodle@2600:1f14:45f:7d01:d89f:3ec3:2c4:c50f) has joined #python 2021-05-22 04:31:13 --> bjs (sid190364@gateway/web/irccloud.com/x-qkboxvptydjijwec) has joined #python 2021-05-22 04:31:13 --> kuldeep (~kuldeep@unaffiliated/kuldeepdhaka) has joined #python 2021-05-22 04:31:13 --> mattmcc (matt@2600:3c00::f03c:91ff:fe89:c2e8) has joined #python 2021-05-22 04:31:13 --> dnns01_ (~quassel@2a02:c207:3003:651::1) has joined #python 2021-05-22 04:31:13 --> _xs (~xs@unaffiliated/xs/x-2833590) has joined #python 2021-05-22 04:31:13 --> con3 (~con3@2604:a880:4:1d0::be:d000) has joined #python 2021-05-22 04:31:13 --> doko (~quassel@2a01:4f8:200:53d4::2) has joined #python 2021-05-22 04:31:13 --> Nitori (~kappa@2a01:4f8:c17:5d9::2) has joined #python 2021-05-22 04:31:13 --> tpr (~tpr@unaffiliated/teprrr) has joined #python 2021-05-22 04:31:13 --> level3 (level3@gateway/shell/tilde.team/x-qmrjrjhnfijbjsab) has joined #python 2021-05-22 04:31:13 --> vt (quasselcor@unaffiliated/vt) has joined #python 2021-05-22 04:31:13 --> shrysr_ (~shrysr@2600:3c04::f03c:91ff:fece:e233) has joined #python 2021-05-22 04:31:13 --> laris (undead@37.221.209.36) has joined #python 2021-05-22 04:31:25 --> kraucrow (~polarizin@unaffiliated/kraucrow) has joined #python 2021-05-22 04:31:35 --> Vornicus (~Vornicus@2603-8000-5d07-7ef0-1975-db05-8fce-3a97.res6.spectrum.com) has joined #python 2021-05-22 04:31:53 --> urtus (~richard@178-84-179-228.dynamic.upc.nl) has joined #python 2021-05-22 04:32:12 --> Nothing4You (N4Y@nothing4you.w.tf-w.tf) has joined #python 2021-05-22 04:32:13 --> carbonbasedman (~carbonbas@109.133.133.68) has joined #python 2021-05-22 04:32:16 --> Tashtari (~tashtari@unaffiliated/tashtari) has joined #python 2021-05-22 04:32:16 --> nikow (~nikow@2001:41d0:601:1100::462) has joined #python 2021-05-22 04:32:32 <-- Exchange (~Brumbazz@ip100.ip-51-38-104.eu) has quit (Ping timeout: 240 seconds) 2021-05-22 04:33:02 <-- stree (~stree@68.36.8.116) has quit (Excess Flood) 2021-05-22 04:33:25 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 04:33:41 <-- iron_houzi (~iron_houz@159.89.29.46) has quit (Ping timeout: 240 seconds) 2021-05-22 04:33:48 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 265 seconds) 2021-05-22 04:33:55 --> NERD-k (~NERD-k@199.19.107.27.16clouds.com) has joined #python 2021-05-22 04:34:00 --> a6a45081-2b83 (~aditya@122.163.181.9) has joined #python 2021-05-22 04:34:07 <-- tonythomas (uid25971@wikimedia/-01tonythomas) has quit (Ping timeout: 253 seconds) 2021-05-22 04:34:08 <-- gr33nbits (gr33nbitsm@gateway/shell/matrix.org/x-vrocwiicrrbnhruk) has quit (Ping timeout: 245 seconds) 2021-05-22 04:34:09 <-- kuhilas[m] (fuloatingm@gateway/shell/matrix.org/x-sfopjvgjotntrtti) has quit (Ping timeout: 245 seconds) 2021-05-22 04:34:10 --> paperManu (~paperManu@138.197.128.151) has joined #python 2021-05-22 04:34:19 <-- morguldir (criminalma@gateway/shell/matrix.org/x-zfuceybbqktoapau) has quit (Ping timeout: 246 seconds) 2021-05-22 04:34:19 <-- diegov_ (diegovmatr@gateway/shell/matrix.org/x-egyoiwuoanmaydsh) has quit (Ping timeout: 246 seconds) 2021-05-22 04:34:20 <-- hsiktas[m] (hsiktasmat@gateway/shell/matrix.org/x-izewmwhjsrwvknuy) has quit (Ping timeout: 246 seconds) 2021-05-22 04:35:18 --> tonythomas (uid25971@wikimedia/-01tonythomas) has joined #python 2021-05-22 04:35:21 <-- juanfra__ (juanframat@gateway/shell/matrix.org/x-miyhguqmcuqafufe) has quit (Ping timeout: 245 seconds) 2021-05-22 04:35:21 --> iron_houzi (~iron_houz@159.89.29.46) has joined #python 2021-05-22 04:35:23 <-- vasanth2 (vasanth2ma@gateway/shell/matrix.org/x-cbogbcmfavbocvzt) has quit (Ping timeout: 246 seconds) 2021-05-22 04:35:30 carbonbasedman good morning computer people. how are you? I have some confusion over the packaging in python. recently there has been a lot of evolvement in the topic. setup.py deprecated, setup.cfg possibly as well. I've used poetry for some time and it seems like the pyproject.toml is the new thing, which is cool. the problem I have, is besides setup.{cfg,py} I do not know how to implement automatic 2021-05-22 04:35:31 <-- petan (~g@wikimedia/Petrb) has quit (Ping timeout: 260 seconds) 2021-05-22 04:35:32 carbonbasedman installation of a command line utility. in cfg it's [options.entry_point]\nconsole_scripts = . How it would be possible to do such thing with pyproject.toml? 2021-05-22 04:35:39 <-- will1[m] (willbuyvmn@gateway/shell/matrix.org/x-dvpvpnmgdtyadiik) has quit (Ping timeout: 258 seconds) 2021-05-22 04:35:39 <-- hb01[m] (hb01matrix@gateway/shell/matrix.org/x-dqaykgaeqgggzgoy) has quit (Ping timeout: 258 seconds) 2021-05-22 04:35:51 <-- veek (~veek@unaffiliated/veek) has quit (Ping timeout: 260 seconds) 2021-05-22 04:35:54 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-22 04:36:04 <-- ali1234 (ali1234mat@gateway/shell/matrix.org/x-rhsvxzoxwsbdrbkm) has quit (Ping timeout: 246 seconds) 2021-05-22 04:36:04 <-- dieggsy (dieggsymat@gateway/shell/matrix.org/x-dxgmunhlewbsemok) has quit (Ping timeout: 246 seconds) 2021-05-22 04:36:07 <-- Evidlo (evidlomatr@purduelug/evidlo) has quit (Ping timeout: 276 seconds) 2021-05-22 04:36:08 <-- BrenBarn (brenbarnma@gateway/shell/matrix.org/x-cdxmdwclmbcnnlpg) has quit (Ping timeout: 276 seconds) 2021-05-22 04:36:15 supakeen carbonbasedman, https://github.com/supakeen/steck/blob/master/pyproject.toml#L52 2021-05-22 04:36:37 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 04:36:53 --> plutoniix (~q@node-usl.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-22 04:36:55 <-- jhill (sid1055@gateway/web/irccloud.com/x-mhjxackjebwlbjzw) has quit (Ping timeout: 260 seconds) 2021-05-22 04:37:09 carbonbasedman alright. will it install in a given virtual-env/system a command line script? or it just gives me a chance to do a "poetry "? 2021-05-22 04:37:20 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 04:37:36 carbonbasedman thank you for response, btw. 2021-05-22 04:37:50 <-- urtus (~richard@178-84-179-228.dynamic.upc.nl) has quit (Ping timeout: 246 seconds) 2021-05-22 04:38:12 --> vdamewood (~vdamewood@unaffiliated/vdamewood) has joined #python 2021-05-22 04:38:24 supakeen If you install the package it does the former yes, don't know about the second as I rarely use that. 2021-05-22 04:38:38 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 265 seconds) 2021-05-22 04:38:41 <-- cerna (cernamatri@gateway/shell/matrix.org/x-imbaacszyvvazymf) has quit (Ping timeout: 245 seconds) 2021-05-22 04:39:11 carbonbasedman ok. thank you sir/madam! 2021-05-22 04:39:12 <-- psydruid[m] (psydruidma@gateway/shell/matrix.org/x-mdgwifqvnppmcvxt) has quit (Ping timeout: 246 seconds) 2021-05-22 04:39:22 <-- lnxw37d4 (lnxw37d4ma@gateway/shell/matrix.org/x-qfwcnofzmnqulyyc) has quit (Ping timeout: 276 seconds) 2021-05-22 04:39:23 <-- PantelicGR3 (pantelicgr@gateway/shell/matrix.org/x-gyocmfdvvubvfyxn) has quit (Ping timeout: 276 seconds) 2021-05-22 04:39:25 --> jhill (sid1055@gateway/web/irccloud.com/x-uzvbfozbeezuvyek) has joined #python 2021-05-22 04:39:44 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-22 04:39:47 <-- NERD-k (~NERD-k@199.19.107.27.16clouds.com) has quit (Remote host closed the connection) 2021-05-22 04:41:56 --> urtus (~richard@178-84-179-228.dynamic.upc.nl) has joined #python 2021-05-22 04:42:16 urtus quit 2021-05-22 04:42:19 <-- urtus (~richard@178-84-179-228.dynamic.upc.nl) has quit (Client Quit) 2021-05-22 04:42:19 --> Exchange (~Brumbazz@ip100.ip-51-38-104.eu) has joined #python 2021-05-22 04:43:37 --> petan (~g@wikimedia/Petrb) has joined #python 2021-05-22 04:43:57 <-- carbonbasedman (~carbonbas@109.133.133.68) has quit (Ping timeout: 260 seconds) 2021-05-22 04:44:23 <-- Fauve (~Fauve@unaffiliated/fauve) has quit (Quit: WeeChat 2.3) 2021-05-22 04:44:30 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-22 04:45:21 --> magla (~gelignite@55d4fab1.access.ecotel.net) has joined #python 2021-05-22 04:46:19 --> morguldir (criminalma@gateway/shell/matrix.org/x-xscdtunijnqndpun) has joined #python 2021-05-22 04:47:21 --> hhzhk (~user@112.116.115.72) has joined #python 2021-05-22 04:47:33 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-22 04:48:18 --> diegov_ (diegovmatr@gateway/shell/matrix.org/x-kicjwhbqkylmecbi) has joined #python 2021-05-22 04:48:21 <-- pi- (~Ohmu@113.53.218.220) has quit (Read error: Connection reset by peer) 2021-05-22 04:49:56 <-- Betal (~Betal@unaffiliated/betal) has quit (Quit: WeeChat 3.1) 2021-05-22 04:50:04 amogorkon maybe i should refactor use() into a module-class like q.. any objections? 2021-05-22 04:50:34 <-- eri (~erica@ericas.site) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-22 04:51:53 --> eri (~erica@ericas.site) has joined #python 2021-05-22 04:52:15 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-vqdsuwymyrklarpn) has quit (Quit: Connection closed for inactivity) 2021-05-22 04:52:46 --> greedom (~greedom@2001:16b8:3279:2200:2088:f7f5:f357:4f31) has joined #python 2021-05-22 04:53:55 <-- eri (~erica@ericas.site) has quit (Client Quit) 2021-05-22 04:54:37 --> eri (~erica@ericas.site) has joined #python 2021-05-22 04:55:46 <-- Death916 (~UserNick@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-22 04:57:00 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 04:58:36 --> ali1234 (ali1234mat@gateway/shell/matrix.org/x-illkwfmnpeirxfll) has joined #python 2021-05-22 04:58:44 --> dieggsy (dieggsymat@gateway/shell/matrix.org/x-siwccjitdykpxgkh) has joined #python 2021-05-22 05:00:11 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 05:00:31 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 05:00:46 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 240 seconds) 2021-05-22 05:00:49 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 05:01:10 <-- magla (~gelignite@55d4fab1.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-22 05:01:56 --> hsiktas[m] (hsiktasmat@gateway/shell/matrix.org/x-ouuuddsxcajeakov) has joined #python 2021-05-22 05:02:04 <-- ffe4 (~ffe4@200116b82cd4ca00f18a2263b54d22b9.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-22 05:04:28 <-- eri (~erica@ericas.site) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-22 05:04:54 --> vasanth2 (vasanth2ma@gateway/shell/matrix.org/x-nfpmuczvsnhcozva) has joined #python 2021-05-22 05:05:20 --> stevieh (~skrodzki@p2e58495f.dip0.t-ipconnect.de) has joined #python 2021-05-22 05:07:57 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-22 05:08:40 stevieh hmm... I am stuck in remote debugging with vscode. I am on the remote host, I can run scripts there but setting breakpoints does not show any effect... 2021-05-22 05:09:10 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 05:10:02 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 05:10:14 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-22 05:10:34 stevieh editing a file on remote also works... 2021-05-22 05:11:21 <-- is_null_ (~jpic@pdpc/supporter/professional/is-null) has quit (Remote host closed the connection) 2021-05-22 05:12:08 <-- NeilG (~NeilG@192.222.196.111) has quit (Ping timeout: 246 seconds) 2021-05-22 05:12:38 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 05:12:42 --> Death916 (~UserNick@unaffiliated/death916) has joined #python 2021-05-22 05:13:12 stevieh I am confused: do I need to integrate ptvsd for that in my code? 2021-05-22 05:13:12 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 05:13:37 <-- Spinifera (~Spinifera@147.69.128.163) has quit (Quit: Leaving) 2021-05-22 05:13:54 --> john2gb0 (~john2gb@94-225-47-8.access.telenet.be) has joined #python 2021-05-22 05:14:34 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 05:16:29 <-- gr33n7007h (~gr33n7007@unaffiliated/gr33n7007h) has quit (Quit: WeeChat 3.1) 2021-05-22 05:17:47 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-22 05:21:03 very_sneaky stevieh: i don't know the answer to your question, but a quick workaround might be to install pudb3 on the remote host and just use that in a shell until you find a solution for this? 2021-05-22 05:21:18 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 05:21:40 <-- yamchah2 (~yamchah2@142.93.235.211) has quit (Remote host closed the connection) 2021-05-22 05:22:03 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 05:23:04 stevieh hmm.. thx. But I wanted to understand to get vscode working for remote debugging. 2021-05-22 05:23:43 --> Evidlo (evidlomatr@purduelug/evidlo) has joined #python 2021-05-22 05:25:59 --> carbonbasedman (~carbonbas@109.133.133.68) has joined #python 2021-05-22 05:26:44 <-- Some_Person (someperson@23-118-229-174.lightspeed.hstntx.sbcglobal.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-22 05:26:48 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 05:27:29 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has quit (Ping timeout: 245 seconds) 2021-05-22 05:28:04 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-22 05:28:35 --> __that__ (c33ba87e@195.59.168.126) has joined #python 2021-05-22 05:29:23 __that__ Morning all 2021-05-22 05:29:23 <-- hypc (~Thunderbi@113.233.198.245) has quit (Ping timeout: 265 seconds) 2021-05-22 05:29:30 --> hypc1 (~Thunderbi@113.233.198.245) has joined #python 2021-05-22 05:29:39 <-- a6a45081-2b83 (~aditya@122.163.181.9) has quit (Quit: Konversation terminated!) 2021-05-22 05:30:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 05:30:03 --> Some_Person (someperson@23-118-229-174.lightspeed.hstntx.sbcglobal.net) has joined #python 2021-05-22 05:30:44 --> soso (~sow-so@ptr-1me49v49hdz4v2qim61.18120a2.ip6.access.telenet.be) has joined #python 2021-05-22 05:31:50 -- hypc1 is now known as hypc 2021-05-22 05:32:06 <-- Mathisen (mathisen@about/windows/staff/Mathisen) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-22 05:32:26 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 260 seconds) 2021-05-22 05:32:38 --> PantelicGR3 (pantelicgr@gateway/shell/matrix.org/x-sqlmrdsocodnbata) has joined #python 2021-05-22 05:33:51 --> lnxw37d4 (lnxw37d4ma@gateway/shell/matrix.org/x-xmgrywkymwioswih) has joined #python 2021-05-22 05:34:38 __that__ I have a flask app that check a user.env file. If some variables don't appear there it should raise an exception. The exception is actually raised as the server stops there however I don't see the exception message printed on the console nor the server process exits - I am running dev server for the sake of the argument.  It is only when I try to 2021-05-22 05:34:38 __that__ request the backend from the frontend when I get that exception printed on the console. 2021-05-22 05:35:12 __that__ so I guess my question is why isn't that exception being logged on the console while running the flask server in the first instance 2021-05-22 05:35:35 --> Mathisen (mathisen@about/windows/staff/Mathisen) has joined #python 2021-05-22 05:35:36 --> ffe4 (~ffe4@200116b82cd4ca00f18a2263b54d22b9.dip.versatel-1u1.de) has joined #python 2021-05-22 05:36:10 --> cerna (cernamatri@gateway/shell/matrix.org/x-jwqrzikrmsuefblz) has joined #python 2021-05-22 05:36:21 --> BrenBarn (brenbarnma@gateway/shell/matrix.org/x-kzoongfcxkztwbya) has joined #python 2021-05-22 05:37:44 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-22 05:40:11 <-- ffe4 (~ffe4@200116b82cd4ca00f18a2263b54d22b9.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-22 05:41:10 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-22 05:41:36 --> juanfra__ (juanframat@gateway/shell/matrix.org/x-fevmeamncpqfirun) has joined #python 2021-05-22 05:41:49 --> ffe4 (~ffe4@200116b82cd4ca00a4d95d0f9d11e18a.dip.versatel-1u1.de) has joined #python 2021-05-22 05:42:16 --> psydruid[m] (psydruidma@gateway/shell/matrix.org/x-zihzwglkgsuwkkpx) has joined #python 2021-05-22 05:43:22 --> ramsan (~ramsan@130.226.239.133) has joined #python 2021-05-22 05:44:54 stevieh hmm. do I _have_ to set up a virtual env to use the debugger? 2021-05-22 05:45:03 --> Jesin (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) has joined #python 2021-05-22 05:47:37 --> shivam_ (~shivam___@43.251.91.33) has joined #python 2021-05-22 05:49:23 shivam_ I have a python code which produces correct output in IDE(Pycharm) but incorrect output when run in terminal. Is this a common mistake or I might be doing some version errors? 2021-05-22 05:49:45 <-- carbonbasedman (~carbonbas@109.133.133.68) has quit (Quit: WeeChat 3.1) 2021-05-22 05:50:19 shivam_ both my IDE and terminal uses python3 so I don't really think its some version error 2021-05-22 05:50:32 --> dvx (~dvx@185.63.97.64) has joined #python 2021-05-22 05:51:07 stevieh is both the same python3? or are u in a venv in pycharm? 2021-05-22 05:51:16 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-22 05:51:34 --> stefanc_diff (~stefanc_d@cpc97950-croy24-2-0-cust78.19-2.cable.virginm.net) has joined #python 2021-05-22 05:51:38 shivam_ stevieh, I am not sure about the venv though it also runs correctly on any online IDE 2021-05-22 05:51:47 shivam_ should I share my code, if that helps? 2021-05-22 05:52:02 stevieh you could try 2021-05-22 05:53:35 shivam_ https://bpa.st/MEUA 2021-05-22 05:53:49 shivam_ Its divided into Runner and solution files 2021-05-22 05:53:59 --> ChaosBringer (~manjaro-g@068-186-048-021.res.spectrum.com) has joined #python 2021-05-22 05:55:00 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined #python 2021-05-22 05:55:23 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-22 05:57:02 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 05:57:41 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-22 05:57:51 --> Laibsch (~Laibsch@2a01:c23:6840:7000:f2de:f1ff:fed0:6548) has joined #python 2021-05-22 05:57:56 <-- RoXX (~roxx@unaffiliated/roxx) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-22 05:58:02 <-- __that__ (c33ba87e@195.59.168.126) has quit (Ping timeout: 240 seconds) 2021-05-22 05:59:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 06:00:26 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-22 06:01:07 --> burakcank (~burakcank@159.146.41.74) has joined #python 2021-05-22 06:01:10 --> jinsun (~quassel@122.175.162.109) has joined #python 2021-05-22 06:01:10 shivam_ just to be sure, to pass an input file we use python3 file.py < input.txt 2021-05-22 06:01:12 shivam_ right? 2021-05-22 06:01:18 --> jess (~jess@unaffiliated/jess) has joined #python 2021-05-22 06:02:07 --> YuGiOhJCJ (~YuGiOhJCJ@gateway/tor-sasl/yugiohjcj) has joined #python 2021-05-22 06:02:46 --> ralderson (~textual@37.19.212.9) has joined #python 2021-05-22 06:03:22 --> yeticheese (~yetichees@193.160.245.45) has joined #python 2021-05-22 06:03:46 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Remote host closed the connection) 2021-05-22 06:04:32 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-22 06:05:27 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-22 06:05:33 supakeen You can do that, it'll put data on stdin. 2021-05-22 06:05:33 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 06:05:55 --> Jerrynicki (~niklas@p200300f57723aa0084b1b052f638209d.dip0.t-ipconnect.de) has joined #python 2021-05-22 06:05:58 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 06:06:30 amogorkon is there a way to singledispatch on methods? 2021-05-22 06:07:06 <-- ralderson (~textual@37.19.212.9) has quit (Ping timeout: 240 seconds) 2021-05-22 06:07:26 <-- isomari (~isomari@105.112.138.38) has quit (Ping timeout: 246 seconds) 2021-05-22 06:07:47 <-- yeticheese (~yetichees@193.160.245.45) has quit (Ping timeout: 246 seconds) 2021-05-22 06:08:39 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-22 06:08:57 <-- Wamanuz (~wamanuz@78-70-34-81-no84.tbcn.telia.com) has quit (Read error: Connection reset by peer) 2021-05-22 06:09:01 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Ping timeout: 265 seconds) 2021-05-22 06:09:01 <-- zuQe8 (~zuQe8@cpc105068-sgyl40-2-0-cust196.18-2.cable.virginm.net) has quit (Quit: BYE) 2021-05-22 06:09:10 amogorkon i guess i'll do it with closures then.. 2021-05-22 06:09:23 --> zuQe8 (~zuQe8@cpc105068-sgyl40-2-0-cust196.18-2.cable.virginm.net) has joined #python 2021-05-22 06:09:33 <-- denisse (~denisse@gateway/tor-sasl/alephzer0) has quit (Ping timeout: 240 seconds) 2021-05-22 06:09:46 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 260 seconds) 2021-05-22 06:10:03 --> xvx (~xvx@185.48.63.108) has joined #python 2021-05-22 06:10:10 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-22 06:11:02 --> denisse (~denisse@gateway/tor-sasl/alephzer0) has joined #python 2021-05-22 06:12:30 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Remote host closed the connection) 2021-05-22 06:12:42 amogorkon or is match/case maybe in __future__? 2021-05-22 06:13:09 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-22 06:13:19 --> burakcank (~burakcank@88.243.146.194) has joined #python 2021-05-22 06:13:22 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 06:14:23 <-- glick (~glick@2601:602:8800:6ba0:9822:443f:94e2:98a4) has left #python ("Leaving") 2021-05-22 06:14:57 <-- DTZUZU (~DTZUZO@207.81.119.43) has quit (Ping timeout: 260 seconds) 2021-05-22 06:16:05 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-22 06:16:22 <-- plutoniix (~q@node-usl.pool-125-24.dynamic.totinternet.net) has quit (Quit: Leaving) 2021-05-22 06:17:45 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit (Ping timeout: 260 seconds) 2021-05-22 06:17:56 <-- mat001_ (~mat001@c-69-181-152-207.hsd1.ca.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-22 06:18:13 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 06:20:56 <-- mweckbecker (~matthias@weckbecker.name) has quit (Quit: leaving) 2021-05-22 06:21:22 --> mweckbecker (~matthias@weckbecker.name) has joined #python 2021-05-22 06:22:04 <-- vdamewood (~vdamewood@unaffiliated/vdamewood) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-22 06:22:08 <-- Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has quit (Ping timeout: 246 seconds) 2021-05-22 06:23:07 --> vdamewood (~vdamewood@unaffiliated/vdamewood) has joined #python 2021-05-22 06:23:35 --> Wamanuz (~wamanuz@78.70.34.81) has joined #python 2021-05-22 06:24:55 --> noneco (~noneco@dslb-088-064-247-058.088.064.pools.vodafone-ip.de) has joined #python 2021-05-22 06:25:31 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 260 seconds) 2021-05-22 06:25:39 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-22 06:27:08 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 06:28:49 --> DTZUZU (~DTZUZO@207.81.119.43) has joined #python 2021-05-22 06:29:20 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-22 06:29:27 <-- canton7 (~canton7@about/csharp/regular/canton7) has quit (Quit: ZNC - http://znc.in) 2021-05-22 06:30:13 --> canton7 (~canton7@about/csharp/regular/canton7) has joined #python 2021-05-22 06:30:13 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 06:30:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 06:35:05 <-- Wamanuz (~wamanuz@78.70.34.81) has quit (Ping timeout: 246 seconds) 2021-05-22 06:35:13 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 06:37:52 <-- shivam_ (~shivam___@43.251.91.33) has quit (Quit: Leaving) 2021-05-22 06:38:03 --> PoaB (~Thunderbi@134.3.91.178) has joined #python 2021-05-22 06:38:36 <-- greedom (~greedom@2001:16b8:3279:2200:2088:f7f5:f357:4f31) has quit (Remote host closed the connection) 2021-05-22 06:39:26 --> greedom (~greedom@2001:16b8:3279:2200:2088:f7f5:f357:4f31) has joined #python 2021-05-22 06:39:29 --> x7b (~ffe4@200116b82cd4ca0024e8dfc746d98a91.dip.versatel-1u1.de) has joined #python 2021-05-22 06:40:41 <-- burakcank (~burakcank@88.243.146.194) has quit (Ping timeout: 246 seconds) 2021-05-22 06:40:41 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 260 seconds) 2021-05-22 06:41:33 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-22 06:42:54 <-- ffe4 (~ffe4@200116b82cd4ca00a4d95d0f9d11e18a.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-22 06:43:48 --> pryr (~pryr@59.98.170.217) has joined #python 2021-05-22 06:44:38 <-- pryr (~pryr@59.98.170.217) has quit (Quit: WeeChat 3.1) 2021-05-22 06:46:24 <-- Laibsch (~Laibsch@2a01:c23:6840:7000:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-22 06:47:46 --> phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has joined #python 2021-05-22 06:47:53 --> wafflehunter (~wafflehun@pd9e18985.dip0.t-ipconnect.de) has joined #python 2021-05-22 06:48:19 <-- guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has quit (Read error: Connection reset by peer) 2021-05-22 06:48:53 --> Wamanuz (~wamanuz@78-70-34-81-no84.tbcn.telia.com) has joined #python 2021-05-22 06:48:59 --> guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has joined #python 2021-05-22 06:51:26 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 06:51:33 <-- xvx (~xvx@185.48.63.108) has quit (Ping timeout: 265 seconds) 2021-05-22 06:52:07 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has quit (Ping timeout: 250 seconds) 2021-05-22 06:52:14 <-- spunk (~mm@ip2505fdb4.dynamic.kabel-deutschland.de) has quit (Ping timeout: 246 seconds) 2021-05-22 06:53:31 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-22 06:53:58 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 265 seconds) 2021-05-22 06:54:04 --> Intruder777 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-22 06:54:16 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 06:54:26 <-- guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-22 06:55:16 <-- Wamanuz (~wamanuz@78-70-34-81-no84.tbcn.telia.com) has quit (Ping timeout: 260 seconds) 2021-05-22 06:55:18 --> Wamanuz2 (~wamanuz@78-70-34-81-no84.tbcn.telia.com) has joined #python 2021-05-22 06:55:38 --> guillaumedsde018 (~guillaume@51.33.92.92.rev.sfr.net) has joined #python 2021-05-22 06:55:43 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-22 06:56:49 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 06:57:20 <-- lauxley (~lauxley@2a01:e34:ec55:2700:5ab:97f4:9a07:d53) has quit (Remote host closed the connection) 2021-05-22 06:57:21 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-22 06:57:37 <-- Intruder777 (~Intruder7@unaffiliated/intruder777) has left #python 2021-05-22 07:00:50 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 07:01:29 <-- auk (auk@gateway/vpn/protonvpn/auk) has quit (Quit: Leaving) 2021-05-22 07:02:16 <-- isomari (~isomari@105.112.138.38) has quit (Ping timeout: 260 seconds) 2021-05-22 07:02:45 --> shivam_ (~shivam___@43.251.91.33) has joined #python 2021-05-22 07:03:36 shivam_ supakeen, That was the exact issue! I was not using strip() to take input the string which is why in my terminal the input was not coming properly 2021-05-22 07:03:43 shivam_ Thanks, haha :) 2021-05-22 07:06:29 <-- soso (~sow-so@ptr-1me49v49hdz4v2qim61.18120a2.ip6.access.telenet.be) has quit (Remote host closed the connection) 2021-05-22 07:07:32 --> spunk (~mm@ip2505fdb4.dynamic.kabel-deutschland.de) has joined #python 2021-05-22 07:08:07 --> dudek (~dudek@185.150.236.112) has joined #python 2021-05-22 07:08:57 <-- Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-22 07:10:20 --> Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has joined #python 2021-05-22 07:10:28 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-22 07:11:20 --> hiroaki (~hiroaki@2a02:908:4b18:8c40:d91e:6659:6557:d999) has joined #python 2021-05-22 07:12:22 --> securethemews (~securethe@2a00:23c4:1e98:ef00::4) has joined #python 2021-05-22 07:12:42 --> LKoen (~LKoen@2a01cb0407597a00e9ffb447d7bf2ebe.ipv6.abo.wanadoo.fr) has joined #python 2021-05-22 07:14:09 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 07:18:11 <-- tanuki (~quassel@173.168.178.1) has quit (Ping timeout: 240 seconds) 2021-05-22 07:18:31 <-- Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has quit (Remote host closed the connection) 2021-05-22 07:18:46 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-22 07:19:11 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 246 seconds) 2021-05-22 07:20:12 <-- Madda (~talkur@208.249.9.51.dyn.plus.net) has quit (Quit: Leaving) 2021-05-22 07:20:32 --> Madda (~talkur@208.249.9.51.dyn.plus.net) has joined #python 2021-05-22 07:20:53 <-- Madda (~talkur@208.249.9.51.dyn.plus.net) has quit (Client Quit) 2021-05-22 07:21:00 --> Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has joined #python 2021-05-22 07:21:22 --> Madda (~talkur@208.249.9.51.dyn.plus.net) has joined #python 2021-05-22 07:21:25 <-- Madda (~talkur@208.249.9.51.dyn.plus.net) has quit (Client Quit) 2021-05-22 07:21:52 --> Madda (~talkur@208.249.9.51.dyn.plus.net) has joined #python 2021-05-22 07:22:00 <-- Madda (~talkur@208.249.9.51.dyn.plus.net) has quit (Client Quit) 2021-05-22 07:23:17 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-22 07:23:24 --> dpreacher (~dpreacher@49.207.216.63) has joined #python 2021-05-22 07:23:37 --> Madda (~talkur@208.249.9.51.dyn.plus.net) has joined #python 2021-05-22 07:24:44 --> Maiya (~paradox@122.181.55.59) has joined #python 2021-05-22 07:25:25 <-- Maiya (~paradox@122.181.55.59) has quit (Client Quit) 2021-05-22 07:25:41 --> Maiya (~paradox@122.181.55.59) has joined #python 2021-05-22 07:26:30 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-22 07:26:53 <-- Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-22 07:26:53 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 07:26:57 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-22 07:27:06 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-22 07:27:19 --> Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has joined #python 2021-05-22 07:27:48 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-22 07:28:04 <-- Madda (~talkur@208.249.9.51.dyn.plus.net) has quit (Client Quit) 2021-05-22 07:28:22 --> Madda (~Madda@208.249.9.51.dyn.plus.net) has joined #python 2021-05-22 07:28:46 <-- odrling (~odrling@korone.aidoru.agency) has quit (Quit: see you tomorrow) 2021-05-22 07:28:59 <-- Madda (~Madda@208.249.9.51.dyn.plus.net) has quit (Client Quit) 2021-05-22 07:29:17 --> Madda (~Madda@208.249.9.51.dyn.plus.net) has joined #python 2021-05-22 07:29:25 --> ffe4 (~ffe4@200116b82cd4ca00a16c18ae99004d52.dip.versatel-1u1.de) has joined #python 2021-05-22 07:30:07 --> odrling (~odrling@korone.aidoru.agency) has joined #python 2021-05-22 07:30:14 <-- Madda (~Madda@208.249.9.51.dyn.plus.net) has quit (Client Quit) 2021-05-22 07:30:26 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 07:30:34 <-- Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has quit (Excess Flood) 2021-05-22 07:30:47 --> Madda (~Madda@208.249.9.51.dyn.plus.net) has joined #python 2021-05-22 07:30:58 ssiyad hey, what's the timedelta type in peewee? 2021-05-22 07:31:29 --> Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has joined #python 2021-05-22 07:31:59 <-- x7b (~ffe4@200116b82cd4ca0024e8dfc746d98a91.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-22 07:32:03 <-- Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has quit (Read error: Connection reset by peer) 2021-05-22 07:32:04 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-22 07:34:08 --> rsx (~rsx@ppp-188-174-143-136.dynamic.mnet-online.de) has joined #python 2021-05-22 07:36:03 <-- noneco (~noneco@dslb-088-064-247-058.088.064.pools.vodafone-ip.de) has quit (Remote host closed the connection) 2021-05-22 07:36:39 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-22 07:37:07 <-- shivam_ (~shivam___@43.251.91.33) has quit (Quit: Leaving) 2021-05-22 07:37:15 ssiyad nvm got it 2021-05-22 07:37:41 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-22 07:38:01 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 260 seconds) 2021-05-22 07:39:26 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-22 07:40:10 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-22 07:41:33 --> Donitzo (~Donitzo@85-156-203-108.elisa-laajakaista.fi) has joined #python 2021-05-22 07:43:58 --> contagious_meow (~contagiou@197.156.190.153) has joined #python 2021-05-22 07:44:35 <-- jjhoo (~jahakala@dsl-trebng21-b048b5-171.dhcp.inet.fi) has quit (Quit: leaving) 2021-05-22 07:45:18 --> jjhoo (~jahakala@dsl-trebng21-b048b5-171.dhcp.inet.fi) has joined #python 2021-05-22 07:47:24 --> eshlox (uid44222@gateway/web/irccloud.com/x-vuoovotrfczadwou) has joined #python 2021-05-22 07:47:51 --> NTBLB (~NTBLB@unaffiliated/ntblb) has joined #python 2021-05-22 07:48:34 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-22 07:52:00 --> ram19890 (~ram@49.205.84.211) has joined #python 2021-05-22 07:52:07 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-22 07:54:16 --> msandoy (~msandoy@telia-59081b-171.connect.netcom.no) has joined #python 2021-05-22 07:54:53 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-22 07:55:02 <-- msandoy (~msandoy@telia-59081b-171.connect.netcom.no) has quit (Client Quit) 2021-05-22 07:55:49 --> x7b (~ffe4@200116b82cd4ca00d05ed2fcc2b580a7.dip.versatel-1u1.de) has joined #python 2021-05-22 07:57:10 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 07:57:37 --> Atque (~Atque_@unaffiliated/atque) has joined #python 2021-05-22 07:57:46 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 265 seconds) 2021-05-22 07:58:24 <-- srandon111 (~srandon11@5.102.2.235) has quit (Remote host closed the connection) 2021-05-22 07:58:42 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Quit: anonyme) 2021-05-22 07:58:44 <-- ffe4 (~ffe4@200116b82cd4ca00a16c18ae99004d52.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-22 07:58:56 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-22 07:58:58 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Client Quit) 2021-05-22 08:00:15 --> dastier (~dastier@37.214.65.243) has joined #python 2021-05-22 08:00:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 08:01:01 <-- Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-22 08:01:14 <-- x7b (~ffe4@200116b82cd4ca00d05ed2fcc2b580a7.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-22 08:01:23 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-22 08:01:26 --> Spawns_Carpeting (~pi@184-15-165-88.dsl2.chtn.wv.frontiernet.net) has joined #python 2021-05-22 08:01:38 <-- tomreyn (~tomreyn@megaglest/team/tomreyn) has left #python 2021-05-22 08:04:14 --> yeticheese (~yetichees@193.160.245.46) has joined #python 2021-05-22 08:05:25 --> x7b (~ffe4@200116b82cd4ca00c8c39914743c3ca1.dip.versatel-1u1.de) has joined #python 2021-05-22 08:06:02 <-- supakeen (~user@python/site-packages/supakeen) has quit (Quit: WeeChat 3.1) 2021-05-22 08:06:32 --> computeiro (~Wender@189.37.65.21) has joined #python 2021-05-22 08:06:41 --> supakeen (~user@python/site-packages/supakeen) has joined #python 2021-05-22 08:08:07 --> oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has joined #python 2021-05-22 08:08:46 <-- yeticheese (~yetichees@193.160.245.46) has quit (Ping timeout: 260 seconds) 2021-05-22 08:08:59 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-22 08:11:43 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-22 08:12:24 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-22 08:12:46 --> av_ (uid87081@gateway/web/irccloud.com/x-cxlroidjutyhcxns) has joined #python 2021-05-22 08:13:26 <-- contagious_meow (~contagiou@197.156.190.153) has quit (Ping timeout: 260 seconds) 2021-05-22 08:14:18 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-22 08:14:58 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 08:15:00 --> gonzo (~gonzo@ip-212-239-220-149.dsl.scarlet.be) has joined #python 2021-05-22 08:17:32 --> Deknos (~deknos@unaffiliated/menace) has joined #python 2021-05-22 08:19:46 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 240 seconds) 2021-05-22 08:19:51 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 08:20:20 --> jesusJesse (~powerhous@2604:3d08:6d80:a900::bb7f) has joined #python 2021-05-22 08:22:09 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-22 08:23:28 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-22 08:24:35 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-22 08:26:51 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 08:27:19 <-- greedom (~greedom@2001:16b8:3279:2200:2088:f7f5:f357:4f31) has quit (Remote host closed the connection) 2021-05-22 08:27:35 --> dviola (~diego@unaffiliated/dviola) has joined #python 2021-05-22 08:28:34 --> stefan1 (~stefan@2001:1c06:1ac8:f000:c473:304e:ec4d:fe18) has joined #python 2021-05-22 08:28:46 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-22 08:29:14 <-- dviola (~diego@unaffiliated/dviola) has quit (Client Quit) 2021-05-22 08:29:49 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-22 08:29:50 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 08:30:56 <-- stefan1 (~stefan@2001:1c06:1ac8:f000:c473:304e:ec4d:fe18) has left #python 2021-05-22 08:31:47 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-22 08:33:22 --> shellscript_ (~shellscri@188.214.14.118) has joined #python 2021-05-22 08:36:24 <-- shellscript (~shellscri@188.214.14.118) has quit (Ping timeout: 252 seconds) 2021-05-22 08:37:26 <-- derk0pf (~derk0pf@p5b2e5479.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-05-22 08:38:33 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 08:38:53 <-- gonzo (~gonzo@ip-212-239-220-149.dsl.scarlet.be) has quit (Remote host closed the connection) 2021-05-22 08:39:20 <-- freebench (~freebench@92.253.251.226) has quit (Ping timeout: 246 seconds) 2021-05-22 08:39:54 -- shellscript_ is now known as shellscript 2021-05-22 08:40:01 --> mangold (~mangold@198.98.183.59) has joined #python 2021-05-22 08:40:51 <-- drymer (~drymer@unaffiliated/drymer) has quit (Ping timeout: 260 seconds) 2021-05-22 08:44:06 --> Blankspace (~asddf@unaffiliated/blankspace) has joined #python 2021-05-22 08:44:32 --> code-witch (~code-witc@150.129.88.5) has joined #python 2021-05-22 08:44:45 <-- DTZUZU (~DTZUZO@207.81.119.43) has quit (Ping timeout: 260 seconds) 2021-05-22 08:45:02 --> freebench (~freebench@92.253.251.226) has joined #python 2021-05-22 08:45:08 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 265 seconds) 2021-05-22 08:45:54 <-- ram19890 (~ram@49.205.84.211) has quit (Quit: Konversation terminated!) 2021-05-22 08:46:07 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-22 08:46:28 --> Catatronic_ (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-22 08:46:46 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 240 seconds) 2021-05-22 08:46:47 -- Catatronic_ is now known as Catatronic 2021-05-22 08:46:54 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-22 08:48:12 <-- YuGiOhJCJ (~YuGiOhJCJ@gateway/tor-sasl/yugiohjcj) has quit (Quit: YuGiOhJCJ) 2021-05-22 08:48:41 --> tlaxkit (~konversat@185.228.153.79) has joined #python 2021-05-22 08:48:58 --> phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has joined #python 2021-05-22 08:49:53 <-- freebench (~freebench@92.253.251.226) has quit (Ping timeout: 260 seconds) 2021-05-22 08:51:18 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-22 08:52:07 --> ralderson (~textual@107.173.59.165) has joined #python 2021-05-22 08:52:24 <-- n000g (~NRG@unaffiliated/n000g) has quit (Quit: ZNC - https://znc.in) 2021-05-22 08:53:38 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has quit (Ping timeout: 258 seconds) 2021-05-22 08:54:28 --> nrg (~NRG@unaffiliated/n000g) has joined #python 2021-05-22 08:54:34 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-22 08:56:46 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 08:56:50 <-- cyberpear (uid364019@fedora/cyberpear) has quit (Quit: Connection closed for inactivity) 2021-05-22 08:56:54 <-- lucascastro (~lucascast@177-185-133-236.dynamic.isotelco.net.br) has quit (Quit: Leaving) 2021-05-22 08:57:11 --> lucascastro (~lucascast@177-185-133-236.dynamic.isotelco.net.br) has joined #python 2021-05-22 08:57:25 --> korg815 (~korg815@unaffiliated/korg815) has joined #python 2021-05-22 08:57:39 --> DTZUZU (~DTZUZO@207.81.119.43) has joined #python 2021-05-22 08:57:47 <-- stefanc_diff (~stefanc_d@cpc97950-croy24-2-0-cust78.19-2.cable.virginm.net) has quit (Read error: Connection reset by peer) 2021-05-22 09:00:37 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 09:00:41 <-- quitman (~quitman@37.120.206.166) has quit (Quit: WeeChat 3.1) 2021-05-22 09:01:21 --> stefanc_diff (~stefanc_d@cpc97950-croy24-2-0-cust78.19-2.cable.virginm.net) has joined #python 2021-05-22 09:02:26 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-22 09:03:21 <-- Deknos (~deknos@unaffiliated/menace) has quit (Remote host closed the connection) 2021-05-22 09:03:23 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-22 09:03:39 --> lntl (~joey@ool-44c539e6.dyn.optonline.net) has joined #python 2021-05-22 09:03:55 lntl Hi, I am just getting started with spark and specifically pyspark. I am getting some warnings and would like to know how important they are and steps to ameliorate. 2021-05-22 09:04:00 lntl https://termbin.com/vp3pl 2021-05-22 09:04:37 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-22 09:04:39 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Remote host closed the connection) 2021-05-22 09:05:00 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-22 09:05:35 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Remote host closed the connection) 2021-05-22 09:05:56 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-22 09:06:16 --> Deknos (~deknos@unaffiliated/menace) has joined #python 2021-05-22 09:06:20 <-- Deknos (~deknos@unaffiliated/menace) has quit (Remote host closed the connection) 2021-05-22 09:07:14 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-22 09:07:45 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 09:07:56 --> FFY00_ (~FFY00@archlinux/trusteduser/ffy00) has joined #python 2021-05-22 09:09:03 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 09:09:57 <-- korg815 (~korg815@unaffiliated/korg815) has quit (Quit: WeeChat 2.8) 2021-05-22 09:10:53 --> Muimi (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-22 09:12:06 <-- mangold (~mangold@198.98.183.59) has quit (Ping timeout: 240 seconds) 2021-05-22 09:12:54 --> bss (bss@rie.incorporeal.org) has joined #python 2021-05-22 09:15:00 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-22 09:15:33 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-22 09:15:35 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 09:15:43 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 09:16:47 <-- Death916 (~UserNick@unaffiliated/death916) has quit (Ping timeout: 246 seconds) 2021-05-22 09:18:21 --> pro_z (~pro_z@37.214.70.178) has joined #python 2021-05-22 09:18:32 --> plutoniix (~q@node-usl.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-22 09:18:37 --> Deknos (~deknos@unaffiliated/menace) has joined #python 2021-05-22 09:19:53 --> mangold (~mangold@198.98.183.47) has joined #python 2021-05-22 09:20:21 --> contagious_meow (~contagiou@154.123.142.180) has joined #python 2021-05-22 09:20:31 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 09:21:13 --> korg815 (~korg815@unaffiliated/korg815) has joined #python 2021-05-22 09:22:52 --> JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has joined #python 2021-05-22 09:23:29 <-- lntl (~joey@ool-44c539e6.dyn.optonline.net) has left #python 2021-05-22 09:24:15 <-- epony (epony@unaffiliated/epony) has quit (Remote host closed the connection) 2021-05-22 09:24:28 <-- pr3d4t0r (~zhenya01@varenka.cime.net) has quit (Quit: WeeChat 2.8) 2021-05-22 09:24:43 --> epony (epony@unaffiliated/epony) has joined #python 2021-05-22 09:25:11 <-- markb1 (~mbiggers@2603-6080-6009-9ec0-1cbe-4c2a-0db5-6379.res6.spectrum.com) has quit (Quit: Leaving) 2021-05-22 09:26:45 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 09:27:14 <-- ttoocs (~ttoocs@node-1w7jr9ydmqkzsw9xxgt82y06w.ipv6.telus.net) has quit (Quit: WeeChat 3.1) 2021-05-22 09:27:25 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-22 09:29:34 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-22 09:30:36 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 09:30:41 <-- uKi` (~kochi@unaffiliated/uki/x-3643581) has quit (Ping timeout: 240 seconds) 2021-05-22 09:31:17 <-- esselfe (~steph@bras-base-mtrlpq426kw-grc-10-67-68-163-169.dsl.bell.ca) has quit (Quit: brb) 2021-05-22 09:32:47 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-22 09:33:42 --> blyat-73 (~hjgkjhgkj@79.101.60.163) has joined #python 2021-05-22 09:34:31 <-- mangold (~mangold@198.98.183.47) has quit (Ping timeout: 260 seconds) 2021-05-22 09:35:24 --> urodna (~urodna@unaffiliated/urodna) has joined #python 2021-05-22 09:35:26 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 240 seconds) 2021-05-22 09:35:26 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 09:36:33 --> pr3d4t0r (~zhenya01@varenka.cime.net) has joined #python 2021-05-22 09:36:43 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-22 09:38:08 <-- AlanMD (~alan@5-12-75-55.residential.rdsnet.ro) has quit (Ping timeout: 246 seconds) 2021-05-22 09:39:28 <-- Blankspace (~asddf@unaffiliated/blankspace) has quit (Quit: why did you ban me) 2021-05-22 09:39:36 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-22 09:40:23 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 09:40:43 --> AlanMD (~alan@5-12-75-55.residential.rdsnet.ro) has joined #python 2021-05-22 09:41:07 --> CrowX- (~CrowX-@185.167.46.134) has joined #python 2021-05-22 09:42:17 <-- Abrax (~Abrax@unaffiliated/abrax) has quit (Quit: Leaving) 2021-05-22 09:42:55 --> Angs (Angs@gateway/vpn/mullvad/angs) has joined #python 2021-05-22 09:43:00 --> Abrax (~Abrax@unaffiliated/abrax) has joined #python 2021-05-22 09:44:10 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 09:44:21 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-22 09:44:39 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-22 09:44:42 --> ShekharReddy (uid132367@gateway/web/irccloud.com/x-iniudbpxpofbzmti) has joined #python 2021-05-22 09:45:48 --> __ztz__ (~ztz@186.227.135.133) has joined #python 2021-05-22 09:46:00 --> airplant (76a8ebe9@118-168-235-233.dynamic-ip.hinet.net) has joined #python 2021-05-22 09:46:35 <-- la_croix_ (~la_croix@cpc117350-walt24-2-0-cust237.13-2.cable.virginm.net) has quit (Ping timeout: 252 seconds) 2021-05-22 09:48:08 --> ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has joined #python 2021-05-22 09:49:19 <-- Network2501 (~beard@122-199-54-62.ip4.superloop.com) has quit (Quit: Network2501) 2021-05-22 09:49:23 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-22 09:49:32 <-- Gerula (~Gerula@unaffiliated/gerula) has quit (Quit: Leaving) 2021-05-22 09:49:54 Deknos why is [elem, elem, elem if fullfills(conditionvar)] not valid python? 2021-05-22 09:50:08 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit 2021-05-22 09:50:16 <-- sagax (~sagax_nb@213.138.71.146) has quit (Quit: Konversation terminated!) 2021-05-22 09:50:49 <-- hendursa1 (~weechat@gateway/tor-sasl/hendursaga) has quit (Quit: hendursa1) 2021-05-22 09:51:23 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-22 09:51:49 --> Fauve (~Fauve@unaffiliated/fauve) has joined #python 2021-05-22 09:51:56 <-- __ztz__ (~ztz@186.227.135.133) has quit (Remote host closed the connection) 2021-05-22 09:52:09 <-- urodna (~urodna@unaffiliated/urodna) has quit (Quit: urodna) 2021-05-22 09:52:13 --> Gerula (~Gerula@unaffiliated/gerula) has joined #python 2021-05-22 09:52:37 ChrisWarrick Deknos: because there is no syntax like this in python. 2021-05-22 09:53:47 ChrisWarrick Deknos: there are other valid syntaxes that might produce what you want (but you’d need to precisely describe what it is) 2021-05-22 09:54:02 river because ptyhon sucks and contribues to global worming! 2021-05-22 09:54:04 --> Laibsch (~Laibsch@2.243.101.200) has joined #python 2021-05-22 09:54:06 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-22 09:54:20 <-- LKoen (~LKoen@2a01cb0407597a00e9ffb447d7bf2ebe.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-22 09:54:35 --> UlrichH (~UlrichH@reverse-177-83.fdn.fr) has joined #python 2021-05-22 09:55:18 bjs river: now now :) 2021-05-22 09:55:52 Deknos o_O 2021-05-22 09:55:56 bjs Deknos: what did you want it to do? I can think of a few interpretations and there should be a way to do each with similar syntax. 2021-05-22 09:56:20 Deknos well, i wanted to add a element to an array, if a certain condition is fullfilled in an expression 2021-05-22 09:56:44 bjs Deknos: ah, sadly the list literal syntax doesn't allow the `if` there 2021-05-22 09:56:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 09:56:59 --> gitesh_ (67dc28c7@103.220.40.199) has joined #python 2021-05-22 09:57:02 gitesh_ Hi 2021-05-22 09:57:03 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 09:57:19 bjs Deknos: so you cannot have conditional elements in the literal. But you can do something like `if condition: the_list.append(elem)` or `[elem, elem] + [elem] if condition else []` 2021-05-22 09:57:19 Deknos yeah, i wondered about that because [x if y] is totally valid, i thought, some preexisting elements should not disturb 2021-05-22 09:57:26 bjs Deknos: that is not valid 2021-05-22 09:57:43 Deknos bjs, yeah, i did your second example 2021-05-22 09:57:57 <-- code-witch (~code-witc@150.129.88.5) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 09:58:05 bjs It's something I've thought about before, proposing [x if y] but I didn't find any really compelling examples 2021-05-22 09:58:09 bjs gitesh_: hi 2021-05-22 09:58:43 gitesh_ how is ttk is called seperately like from tkinter import tk ? 2021-05-22 09:59:44 gitesh_ what is constructor? 2021-05-22 09:59:54 bjs gitesh_: `from tkinter import tk` doesn't seem like it should work? There is no `tk` name in tkinter is there? 2021-05-22 09:59:54 --> jmgb4 (~jmgb4@unaffiliated/jmgb4) has joined #python 2021-05-22 09:59:56 bjs unless you mean Tk 2021-05-22 10:00:16 bjs gitesh_: the constructor is what some people call the function that runs when you make (construct) a new object 2021-05-22 10:00:20 amogorkon now that i refactored use() into a class, i'm brainstorming whether additional syntax could be useful in context of imports 2021-05-22 10:00:30 bjs gitesh_: people often use the term constructor to mean __init__, if you know classes. 2021-05-22 10:00:31 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 10:00:33 gitesh_ no, `from tkinter import ttk 2021-05-22 10:00:39 bjs gitesh_: what about that line? 2021-05-22 10:00:43 gitesh_ `from tkinter import ttk` 2021-05-22 10:01:17 amogorkon any ideas how &/|-[]+*^ could be useful with modules or imports? 2021-05-22 10:01:27 --> rinzewind (~chema@unaffiliated/rinzewind) has joined #python 2021-05-22 10:01:35 gitesh_ I am already importing `import tkinter as tk` but i have also need to do `from tkinter import ttk` 2021-05-22 10:02:02 bjs gitesh_: tkinter.ttk is a different module. the tkinter module has a "sub-module" called ttk. See https://docs.python.org/3/library/tkinter.ttk.html for its documentation 2021-05-22 10:03:05 gitesh_ then what is tkinter? a module? 2021-05-22 10:03:09 bjs gitesh_: yes 2021-05-22 10:03:29 gitesh_ ah 2021-05-22 10:03:31 bjs gitesh_: there's a tkinter/ directory somewhere on your computer, and inside that directory is a ttk/ directory which contains the ttk code 2021-05-22 10:04:00 Deknos is anyone aware of a library for linux which gets me the device id for a directory? because files in different directories might be in an internal disk or usb disk, or even network shares. though i am not sure, which device id a network share would have 2021-05-22 10:04:03 --> ffe4 (~ffe4@200116b82cd4ca0099efcaf3f4321fd7.dip.versatel-1u1.de) has joined #python 2021-05-22 10:04:05 bjs gitesh_: the docs for the tkinter.ttk module suggests it contains some widgets from Tk 8.5+ which have the same behaviour but a different look-and-feel as the ones in just tkinter. 2021-05-22 10:04:20 <-- Gerula (~Gerula@unaffiliated/gerula) has quit (Quit: Leaving) 2021-05-22 10:04:30 gitesh_ hmm.... 2021-05-22 10:04:32 bjs gitesh_: see "Using the Ttk widgets gives the application an improved look and feel. As discussed above, there are differences in how the styling is coded." 2021-05-22 10:04:33 gitesh_ i got that 2021-05-22 10:04:34 <-- x7b (~ffe4@200116b82cd4ca00c8c39914743c3ca1.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-22 10:04:44 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-22 10:05:05 bjs gitesh_: so tkinter defines a Button widget, but tkinter.ttk also defines a Button widget which uses the Tk 8.5 widget which looks different to the tkinter.Button widget 2021-05-22 10:05:08 --> yeticheese (~yetichees@193.160.245.45) has joined #python 2021-05-22 10:05:22 --> caveman (~caveman@gateway/tor-sasl/alborz) has joined #python 2021-05-22 10:05:51 gitesh_ ok 2021-05-22 10:06:38 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-22 10:06:38 caveman how to create an empty file in python? with open('lol', 'w') as f: pass? 2021-05-22 10:06:59 gitesh_ touch? 2021-05-22 10:07:00 amogorkon you can use pathlib.touch 2021-05-22 10:07:21 caveman which one is better? 2021-05-22 10:07:30 amogorkon https://docs.python.org/3/library/pathlib.html#pathlib.Path.touch 2021-05-22 10:07:38 amogorkon for what? 2021-05-22 10:07:39 <-- dudek (~dudek@185.150.236.112) has quit (Quit: Leaving) 2021-05-22 10:07:49 caveman for creating an empty file. 2021-05-22 10:08:16 amogorkon try pathlib ;) 2021-05-22 10:08:22 bjs caveman: it depends what you want to happen if it already exists 2021-05-22 10:08:37 gitesh_ GUI's event-driven means what? 2021-05-22 10:08:43 <-- saku (~saku@2a01:4f8:c0c:7d0::2) has quit (Quit: Bye!) 2021-05-22 10:08:47 <-- Atque (~Atque_@unaffiliated/atque) has quit (Quit: ...) 2021-05-22 10:09:02 gitesh_ all the time events are created when a user is using it? 2021-05-22 10:09:10 ChrisWarrick gitesh_: https://en.wikipedia.org/wiki/Event-driven_programming 2021-05-22 10:09:20 <-- UlrichH (~UlrichH@reverse-177-83.fdn.fr) has quit (Quit: Leaving) 2021-05-22 10:09:24 --> saku (~saku@2a01:4f8:c0c:7d0::2) has joined #python 2021-05-22 10:09:26 caveman bjs: what are the list of what-happens? i can only think of: flush file's content if file exists. 2021-05-22 10:09:27 --> soft_concrete (~soft_ceme@unaffiliated/soft-cement/x-2125135) has joined #python 2021-05-22 10:09:41 <-- yeticheese (~yetichees@193.160.245.45) has quit (Ping timeout: 260 seconds) 2021-05-22 10:09:42 bjs caveman: well there's the behaviour that "touch" has, and then there's the behaviour your code has 2021-05-22 10:09:45 bjs they do different things. 2021-05-22 10:09:49 soft_concrete When iterating over each character in a string in **python**, is there some hidden variable I can access that is keeping track of how many iterations the loop has been through? Or do I have to set up, and increment, my own counter variable? 2021-05-22 10:09:55 bjs caveman: neither do anything I'd describe as "flush" though 2021-05-22 10:10:09 amogorkon but pathlib is cool 2021-05-22 10:10:11 amogorkon :p 2021-05-22 10:10:19 bjs soft_concrete: `for i, thing in enumerate(iterable): ...` then i is the counter 2021-05-22 10:10:26 --> XsiSec (xsisec@gateway/vpn/mullvad/xsisec) has joined #python 2021-05-22 10:10:33 --> UlrichH (~UlrichH@reverse-177-83.fdn.fr) has joined #python 2021-05-22 10:10:34 soft_concrete bjs: yeah, but what if I'm doing for char in string: 2021-05-22 10:10:41 bjs soft_concrete: `for i, char in enumerate(string): ...` 2021-05-22 10:10:48 caveman i already use os.unlink. pathlib.path.unlink also exists. which one should i use? 2021-05-22 10:10:58 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Read error: No route to host) 2021-05-22 10:11:00 bjs soft_concrete: although note that Python's strings aren't "characters" they're "unicode codepoints" which may or may not matter 2021-05-22 10:11:06 ChrisWarrick caveman: pathlib is a much more modern approach to paths 2021-05-22 10:11:12 --> pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has joined #python 2021-05-22 10:11:23 --> contingo (~textual@213.205.200.36) has joined #python 2021-05-22 10:11:25 bjs caveman: unless you have a strong reason not to, I'd just use pathlib anywhere you can 2021-05-22 10:11:37 caveman i just want to delete a file with unlink. 2021-05-22 10:11:43 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-22 10:11:55 amogorkon just try pathlib, you'll like it 2021-05-22 10:12:08 ChrisWarrick soft_concrete: python does keep track of indexes internally, but that’s not exposed in any way to your code 2021-05-22 10:12:48 <-- sideeffex (~sideeffex@ec2-54-80-118-205.compute-1.amazonaws.com) has quit (Quit: Ping timeout (120 seconds)) 2021-05-22 10:13:08 --> sideeffex (~sideeffex@ec2-54-80-118-205.compute-1.amazonaws.com) has joined #python 2021-05-22 10:13:35 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 265 seconds) 2021-05-22 10:13:40 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Quit: Connection closed) 2021-05-22 10:13:55 soft_concrete bjs: is the way you described, using enumerate, more pythonic than using my own counter variable? 2021-05-22 10:14:02 bjs soft_concrete: yes 2021-05-22 10:14:07 soft_concrete alright 2021-05-22 10:14:09 bjs soft_concrete: there's a reason it's built-in and is there to use 2021-05-22 10:14:19 bjs it is the "keep track of how many iterations there have been" built-in 2021-05-22 10:14:34 <-- UlrichH (~UlrichH@reverse-177-83.fdn.fr) has quit (Client Quit) 2021-05-22 10:15:31 caveman thanks. will use pathlib. seems more abstracty. 2021-05-22 10:16:17 <-- computeiro (~Wender@189.37.65.21) has quit (Quit: Leaving) 2021-05-22 10:16:32 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 10:16:55 --> dez (uid92154@fedora/deSouza) has joined #python 2021-05-22 10:17:29 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Read error: Connection reset by peer) 2021-05-22 10:18:10 soft_concrete can anyone provide feedback on my little program? I'm new to python. Thanks. https://termbin.com/azdl0 2021-05-22 10:18:23 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 10:18:46 --> Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has joined #python 2021-05-22 10:19:14 amogorkon soft_concrete, what is the purpose of this code? 2021-05-22 10:19:43 soft_concrete amogorkon: mainly just learning how to do things in python, coming from C. it's a mostly useless program 2021-05-22 10:19:48 <-- Allegretto_ (~allegrett@78-131-46-146.pool.digikabel.hu) has quit (Ping timeout: 252 seconds) 2021-05-22 10:19:51 soft_concrete although it does average some numbers the user inputs 2021-05-22 10:19:52 <-- Allegretto (~allegrett@78-131-46-146.pool.digikabel.hu) has quit (Ping timeout: 265 seconds) 2021-05-22 10:19:59 soft_concrete and convert a word to uppercase 2021-05-22 10:19:59 amogorkon what's cs50? 2021-05-22 10:20:00 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-22 10:20:11 --> madmallard (acf92fe7@cpe-172-249-47-231.socal.res.rr.com) has joined #python 2021-05-22 10:20:20 ChrisWarrick soft_concrete: the entire for loop seems like overkill 2021-05-22 10:20:24 soft_concrete it's an excellent free course: https://cs50.harvard.edu/x/2021/ also "pip install cs50" 2021-05-22 10:20:38 amogorkon okay 2021-05-22 10:20:42 bjs soft_concrete: it seems good, does it work? 2021-05-22 10:20:48 soft_concrete bjs: it does work! 2021-05-22 10:21:01 bjs soft_concrete: neat! keep at it 2021-05-22 10:21:21 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 10:21:22 madmallard https://paste.ofcode.org/8HjEMui4kURacD4DcbVmWh 2021-05-22 10:21:23 IceMichael yeah, loop is not needed there 2021-05-22 10:21:30 madmallard can someone help me understand why this code gives me the entirely wrong DPI for the screenshot? 2021-05-22 10:21:31 IceMichael one-letter variable names are a no-go 2021-05-22 10:21:33 amogorkon soft_concrete, try to use f-strings, you can beautify some of your code 2021-05-22 10:21:39 ChrisWarrick soft_concrete: I’d handle the 's' removal with `removesuffix` in python 3.9+, or with slicing in older versions 2021-05-22 10:21:47 IceMichael and (len(s) - 1) == i does not need brackets 2021-05-22 10:21:57 ChrisWarrick madmallard: wrong DPI? 2021-05-22 10:22:12 madmallard yeah much lower DPI 2021-05-22 10:22:13 <-- soft_concrete (~soft_ceme@unaffiliated/soft-cement/x-2125135) has quit (Quit: soft_concrete) 2021-05-22 10:22:14 madmallard than my actual resolution 2021-05-22 10:22:38 --> soft_concrete (~soft_ceme@unaffiliated/soft-cement/x-2125135) has joined #python 2021-05-22 10:22:39 madmallard like 1024x768 on this screenshot is showing the same information as like 1200x800 on my desktop 2021-05-22 10:23:12 IceMichael but if it works, that's nice 2021-05-22 10:23:51 <-- Mulugruntz (~Mulugrunt@2400:4152:2063:3100:3c73:6a7e:ab64:377d) has quit (Quit: ZZZzzz…) 2021-05-22 10:24:29 <-- hiroaki (~hiroaki@2a02:908:4b18:8c40:d91e:6659:6557:d999) has quit (Ping timeout: 258 seconds) 2021-05-22 10:24:36 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-22 10:25:17 soft_concrete IceMichael: how would I use toupper and removesuffix on string at the same time? 2021-05-22 10:25:18 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Client Quit) 2021-05-22 10:25:30 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-22 10:25:34 soft_concrete I want to use toupper first and then remove suffix 'S' 2021-05-22 10:26:18 --> dbrownns (adfc2120@host-173-252-33-32.public.eastlink.ca) has joined #python 2021-05-22 10:26:49 --> c0eos8 (~coeos@171.244.116.78.rev.sfr.net) has joined #python 2021-05-22 10:26:50 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 10:27:01 ChrisWarrick madmallard: perhaps showing the input and output of this code would help us understand the problem 2021-05-22 10:27:07 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 265 seconds) 2021-05-22 10:27:44 --> esselfe (~steph@modemcable086.138-22-96.mc.videotron.ca) has joined #python 2021-05-22 10:27:49 --> ruztek (~EL3CTR0N@59-102-108-79.tpgi.com.au) has joined #python 2021-05-22 10:27:55 madmallard input is the crop section of the screen its just like 800x800 it is irrelevant because i have other code doing screenshot with the same crop dimensions 2021-05-22 10:27:56 madmallard breaking 2021-05-22 10:27:58 madmallard err not breaking 2021-05-22 10:27:59 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-22 10:28:00 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-22 10:28:07 madmallard output is a screenshot of a cropped section of the screen 2021-05-22 10:28:11 <-- c0eos (~coeos@171.244.116.78.rev.sfr.net) has quit (Ping timeout: 240 seconds) 2021-05-22 10:28:11 -- c0eos8 is now known as c0eos 2021-05-22 10:28:13 madmallard and like i said it has MUCH lower DPI than the actual screen does 2021-05-22 10:28:16 ChrisWarrick madmallard: okay, compare the two code samples 2021-05-22 10:28:26 madmallard i mean the other way of doing it is literally 1 line 2021-05-22 10:28:26 amogorkon madmallard, are you still building your game bot? 2021-05-22 10:28:28 madmallard pyautogui.screenshot() 2021-05-22 10:28:35 madmallard that gives me correct DPI 2021-05-22 10:28:42 madmallard using this win32gui screenshot code gives me way too low DPI 2021-05-22 10:28:54 madmallard yes i am 2021-05-22 10:29:36 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 10:30:08 amogorkon is there some higher purpose for that bot? 2021-05-22 10:30:59 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 265 seconds) 2021-05-22 10:31:04 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-22 10:32:06 madmallard i'm automating a boring aspect of a game nobody likes 2021-05-22 10:32:25 amogorkon so you're building a gold miner? 2021-05-22 10:32:34 amogorkon in an online game? 2021-05-22 10:32:34 madmallard nope 2021-05-22 10:32:38 madmallard i'm automating the blood web in DBD 2021-05-22 10:32:47 madmallard not really a "cheating" bot at all 2021-05-22 10:32:56 --> Allegretto (~allegrett@178-164-235-88.pool.digikabel.hu) has joined #python 2021-05-22 10:32:58 --> Allegretto_ (~allegrett@178-164-235-88.pool.digikabel.hu) has joined #python 2021-05-22 10:33:00 madmallard nobody likes doing bloodwebs 2021-05-22 10:33:06 bjs soft_concrete: s.upper().removesuffix('S') # like that. 2021-05-22 10:33:23 bjs soft_concrete: but the loop is fine, it's not how i'd write it but it works. 2021-05-22 10:33:33 madmallard the screenshots have to be fast otherwise there'd be no reason to use the bot over doing it manually 2021-05-22 10:33:59 soft_concrete bjs: this is coming from someone taking a course that taught C first, so I'm used to having to do things at a lower level with loops and such 2021-05-22 10:34:31 <-- chewyDelicious (~nooblet@ip2504f9e6.dynamic.kabel-deutschland.de) has quit (Quit: ...) 2021-05-22 10:34:39 soft_concrete bjs: how would you do it? I'm curious 2021-05-22 10:34:47 --> chewyDelicious (~nooblet@ip2504f9e6.dynamic.kabel-deutschland.de) has joined #python 2021-05-22 10:35:03 bjs soft_concrete: it's good to be able to do things with loops. If you can do things with loops then sometimes you can be clever and use the built-in things. But sometimes those built-in things don't exist and you have to use loops 2021-05-22 10:35:07 bjs so it's good to know how to do it 2021-05-22 10:35:30 soft_concrete I think that's why this course teaches C before python 2021-05-22 10:35:47 soft_concrete also, so that we understand a little more how things work behind the scenes 2021-05-22 10:36:09 <-- ruztek (~EL3CTR0N@59-102-108-79.tpgi.com.au) has quit (Quit: Leaving) 2021-05-22 10:36:56 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-22 10:37:00 bjs soft_concrete: `scores = [get_int("Score: ") for _ in range(n)]; print("AVERAGE {}: {}".format(s.upper().removesuffix("S"), sum(scores)/len(scores))` or something like that 2021-05-22 10:37:30 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-22 10:37:36 <-- ongolaboy (~willy@unaffiliated/ongolaboy) has quit (Quit: leaving) 2021-05-22 10:37:37 <-- DTZUZU (~DTZUZO@207.81.119.43) has quit (Read error: Connection reset by peer) 2021-05-22 10:37:44 --> gr33nbits (gr33nbitsm@gateway/shell/matrix.org/x-qfereobbbjxgmfto) has joined #python 2021-05-22 10:37:46 ChrisWarrick that’s a bit golfy for my liking 2021-05-22 10:37:50 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::c78) has joined #python 2021-05-22 10:38:03 bjs maybe I'd put things on different lines with some extra variables :) 2021-05-22 10:38:48 bjs soft_concrete: but I wouldn't expect anyone new to python/programming to come up with code like that. 2021-05-22 10:39:18 amogorkon i would use an f-string instead of format 2021-05-22 10:39:23 --> eri (~erica@155.138.162.236) has joined #python 2021-05-22 10:39:33 amogorkon but s.upper().removesuffix() is not golfy 2021-05-22 10:39:33 <-- caveman (~caveman@gateway/tor-sasl/alborz) has quit (Ping timeout: 240 seconds) 2021-05-22 10:39:51 soft_concrete golfy meaning not nice and readable? 2021-05-22 10:39:58 amogorkon nah 2021-05-22 10:40:18 amogorkon it means "in the most compact way possible, sacrificing readability" 2021-05-22 10:40:19 bjs soft_concrete: it means short, ChrisWarrick was just saying I should've put things on more lines 2021-05-22 10:40:28 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Quit: Connection closed) 2021-05-22 10:40:35 bjs tbh this is simple enough I probably wouldn't, but you can give names to things. 2021-05-22 10:41:01 bjs soft_concrete: I would point out that simply removing a trailing "s" on an English word is not a very robust way to turn plural into singular 2021-05-22 10:41:07 <-- betuxy (~ole@158.181.77.59) has quit (Quit: WeeChat 3.1) 2021-05-22 10:41:10 amogorkon chaining string-methods is quite common 2021-05-22 10:41:36 <-- airplant (76a8ebe9@118-168-235-233.dynamic-ip.hinet.net) has left #python 2021-05-22 10:42:03 amogorkon bjs, nltk? ^^ 2021-05-22 10:42:09 --> ruztek (~root@59-102-108-79.tpgi.com.au) has joined #python 2021-05-22 10:42:10 <-- Wamanuz2 (~wamanuz@78-70-34-81-no84.tbcn.telia.com) has quit (Quit: Konversation terminated!) 2021-05-22 10:42:32 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-22 10:42:34 <-- ruztek (~root@59-102-108-79.tpgi.com.au) has quit (Client Quit) 2021-05-22 10:43:00 bjs amogorkon: I think it's ok to notice that it's not a very good way to convert plural to singular, but then just accept it and move on because doing it "right" is hard. (Maybe just not doing it is better?) 2021-05-22 10:43:46 amogorkon it could be an interesting excursion for someone natural language-inclined 2021-05-22 10:43:56 bjs I'd just print(f"AVERAGE: {sum(scores)/len(scores)})` in reality, and not mess with the plural stuff at all, but I assumed soft_concrete did it because it was part of the requirement for the program they wrote 2021-05-22 10:44:09 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::c78) has quit (Ping timeout: 245 seconds) 2021-05-22 10:44:20 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-22 10:44:39 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-22 10:45:17 amogorkon soft_concrete, are you interested in natural language processing? 2021-05-22 10:48:08 soft_concrete bjs: not a requirement. I just thought "AVERAGE WIDGETS: 32.5" looked bad 2021-05-22 10:48:17 soft_concrete amogorkon: not at this point. why do you ask? 2021-05-22 10:48:34 bjs soft_concrete: "AVERAGE WIDGET: 32.5" also doesn't make much sense 2021-05-22 10:48:43 soft_concrete true 2021-05-22 10:48:47 bjs soft_concrete: really it's the average _score_ of those widgets. So you may as well _always_ otuput "AVERAGE SCORE: 32.5" 2021-05-22 10:48:49 bjs or just "AVERAGE: 32.5" 2021-05-22 10:48:52 --> purplex88__ (~purplex@unaffiliated/purplex88) has joined #python 2021-05-22 10:48:55 bjs one of those is what I would do 2021-05-22 10:48:57 amogorkon because python is the defacto programming language for scientific research in this area and plural vs. singular is a tough nut to crack 2021-05-22 10:49:16 amogorkon so there's a lot of stuff to discover, if you wanted to go down that road 2021-05-22 10:49:20 ChrisWarrick scientists using python does not make everyone using python a scientist 2021-05-22 10:49:28 --> phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has joined #python 2021-05-22 10:49:36 --> m1n10n (~georgeclo@cpe-76-184-204-251.tx.res.rr.com) has joined #python 2021-05-22 10:49:44 amogorkon ChrisWarrick, you don't have to be a scientist to be curious ^^ 2021-05-22 10:49:45 --> ruztek (~root@59-102-108-79.tpgi.com.au) has joined #python 2021-05-22 10:50:17 ChrisWarrick amogorkon: sure, but cs50 is an introductory course, perhaps let’s not overwhelm people 2021-05-22 10:50:25 TML I'm not at all convinced Python is "the defacto programming language for scientific research in (NLP)" - it's certainly *A* language used in *SOME* NLP research. 2021-05-22 10:50:30 rendar if i have: `class MyObject: MY_CONST = 2.0 ANOTHER_CONST = 5.0* MyObject.MY_CONST?!` how can i do this? 2021-05-22 10:50:45 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Ping timeout: 260 seconds) 2021-05-22 10:50:46 -- purplex88__ is now known as purplex 2021-05-22 10:50:56 ChrisWarrick rendar: did you try just 5.0 * MY_CONST? 2021-05-22 10:51:09 rendar uhm, nope 2021-05-22 10:51:36 --> Naan (~Naan@unaffiliated/naan) has joined #python 2021-05-22 10:51:40 --> uKi` (~kochi@unaffiliated/uki/x-3643581) has joined #python 2021-05-22 10:52:16 bjs rendar: maybe you should try that :) 2021-05-22 10:52:34 TML rendar: https://replit.com/@tml/ProfitableMoralFactorial#main.py 2021-05-22 10:52:50 rendar thanks 2021-05-22 10:54:00 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has quit (Ping timeout: 258 seconds) 2021-05-22 10:54:24 <-- ruztek (~root@59-102-108-79.tpgi.com.au) has quit (Quit: WeeChat 2.8) 2021-05-22 10:55:44 -- Mode #python [+o nedbat] by ChanServ 2021-05-22 10:55:54 -- Mode #python [-o nedbat] by ChanServ 2021-05-22 10:56:50 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-22 10:56:50 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 10:59:19 <-- securethemews (~securethe@2a00:23c4:1e98:ef00::4) has quit (Quit: Leaving) 2021-05-22 10:59:37 <-- blyat-73 (~hjgkjhgkj@79.101.60.163) has quit (Quit: Leaving) 2021-05-22 11:00:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 11:00:44 Non-ICE i have thermal camera pointed at a room in a production, this camara sees pretty much anything in theree 2021-05-22 11:00:46 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 240 seconds) 2021-05-22 11:00:55 Non-ICE amongst 7 electric motors 2021-05-22 11:01:17 Non-ICE that if they run out of oil increase temperature from 70ish to 120 degC 2021-05-22 11:01:42 Non-ICE i read the max temperature of the image every 1 minute 2021-05-22 11:01:51 Non-ICE but 2021-05-22 11:02:07 Non-ICE in this room they also drive around with diesel powered powerloaders 2021-05-22 11:02:25 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Remote host closed the connection) 2021-05-22 11:02:43 Non-ICE with exhaust pipes in the 140Deg C range which of course adds noise to my readings every now ann then 2021-05-22 11:03:26 --> tiwula (~lane@174-23-25-131.slkc.qwest.net) has joined #python 2021-05-22 11:03:42 Non-ICE any suggestions to the best approach to get an alert when one of the electric motors hit 100C? 2021-05-22 11:04:11 TML Non-ICE: Never worked with a thermal camera before - can you not tell from the data coming back from the camera WHERE the hot-spot is? 2021-05-22 11:04:22 Non-ICE no, all i get is the max temperature 2021-05-22 11:04:34 Non-ICE anywhere in the image 2021-05-22 11:04:46 <-- spiri (~spiri@unaffiliated/spiri) has quit (Ping timeout: 240 seconds) 2021-05-22 11:04:51 Non-ICE but i was thinking 2021-05-22 11:05:10 TML Can you share a sample of what the datastream from the camera looks like? 2021-05-22 11:05:15 Non-ICE well if the lowest tempo for the past 10 minutes is above 100C we know there is a problem 2021-05-22 11:05:40 Non-ICE another aproach would be throwing away samples that are lets say 5C above average or something 2021-05-22 11:06:20 <-- Helenah (helenah@unaffiliated/iveeee) has quit (Ping timeout: 252 seconds) 2021-05-22 11:06:40 Non-ICE i just query the camera API and get a float in return 2021-05-22 11:07:14 Non-ICE i have some logs, but they are not running production today 2021-05-22 11:08:30 --> code-witch (~code-witc@122.167.23.227) has joined #python 2021-05-22 11:08:37 --> RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has joined #python 2021-05-22 11:08:38 --> ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 11:09:01 <-- isomari (~isomari@105.112.138.38) has quit (Ping timeout: 260 seconds) 2021-05-22 11:09:01 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 260 seconds) 2021-05-22 11:09:03 --> roadie (~user@2a02:8108:ec0:1427:61bc:5f41:8b49:1239) has joined #python 2021-05-22 11:09:18 Non-ICE or maybe i should just sort all samples and throw away the lowest and highest? 2021-05-22 11:09:27 --> ruztek (~ryant@59-102-108-79.tpgi.com.au) has joined #python 2021-05-22 11:09:29 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-22 11:09:39 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-22 11:09:42 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Client Quit) 2021-05-22 11:09:46 --> isomari (~isomari@105.112.138.38) has joined #python 2021-05-22 11:10:39 <-- Naan (~Naan@unaffiliated/naan) has quit (Quit: Leaving) 2021-05-22 11:10:52 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-22 11:11:33 --> Helenah (~helenah@unaffiliated/iveeee) has joined #python 2021-05-22 11:11:37 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-22 11:12:43 <-- ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has quit (Client Quit) 2021-05-22 11:13:08 --> todda7 (~torstein@2a02:587:3729:5274:b6df:d74:d185:4e87) has joined #python 2021-05-22 11:13:24 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 11:13:26 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Quit: h4rd3n3D) 2021-05-22 11:13:59 <-- soft_concrete (~soft_ceme@unaffiliated/soft-cement/x-2125135) has left #python 2021-05-22 11:14:29 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 11:15:50 --> ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has joined #python 2021-05-22 11:15:53 --> phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has joined #python 2021-05-22 11:15:57 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-22 11:16:01 <-- contagious_meow (~contagiou@154.123.142.180) has quit (Ping timeout: 260 seconds) 2021-05-22 11:16:29 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-22 11:16:32 --> aleph- (~aleph@lobsters/Auditor/Church-) has joined #python 2021-05-22 11:16:44 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-22 11:16:45 --> Maiya_ (~paradox@106.201.32.147) has joined #python 2021-05-22 11:17:18 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 11:17:32 <-- Maiya (~paradox@122.181.55.59) has quit (Ping timeout: 246 seconds) 2021-05-22 11:18:23 <-- dav1d (~dav1d@volt/developer/dav1d) has quit (Client Quit) 2021-05-22 11:19:44 <-- stevieh (~skrodzki@p2e58495f.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-22 11:20:37 --> Wamanuz (~wamanuz@78-70-34-81-no84.tbcn.telia.com) has joined #python 2021-05-22 11:21:25 <-- ruztek (~ryant@59-102-108-79.tpgi.com.au) has quit (Quit: WeeChat 2.8) 2021-05-22 11:22:12 --> stevieh (~skrodzki@p2e58495f.dip0.t-ipconnect.de) has joined #python 2021-05-22 11:22:26 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 11:23:45 <-- tiwula (~lane@174-23-25-131.slkc.qwest.net) has quit (Quit: Leaving) 2021-05-22 11:23:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-22 11:24:11 --> me-sudoer-dentne (~siddhant@unaffiliated/me-sudoer-dentne) has joined #python 2021-05-22 11:24:25 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-22 11:25:11 --> greedom (~greedom@2001:16b8:3279:2200:2088:f7f5:f357:4f31) has joined #python 2021-05-22 11:25:20 gitesh_ If you were doing GUI programming using python's tkinter, how would you set up the code, would you code as per grid layout one after another? 2021-05-22 11:25:48 <-- psprint (~sg@91.245.82.2) has quit (Quit: WeeChat 3.1) 2021-05-22 11:26:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 11:26:53 --> dav1d (~dav1d@volt/developer/dav1d) has joined #python 2021-05-22 11:27:46 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 11:28:24 ChrisWarrick gitesh_: be more specific 2021-05-22 11:28:56 --> pulsar12_ (~quassel@a95-92-60-61.cpe.netcabo.pt) has joined #python 2021-05-22 11:29:16 <-- pulsar12_ (~quassel@a95-92-60-61.cpe.netcabo.pt) has quit (Client Quit) 2021-05-22 11:29:50 --> pulsar12 (~quassel@a95-92-60-61.cpe.netcabo.pt) has joined #python 2021-05-22 11:29:53 --> hiroaki (~hiroaki@ip-37-201-146-64.hsi13.unitymediagroup.de) has joined #python 2021-05-22 11:29:56 <-- pulsar12 (~quassel@a95-92-60-61.cpe.netcabo.pt) has quit (Client Quit) 2021-05-22 11:30:02 <-- Antioch047 (~Antioch@h175-177-044-119.catv02.itscom.jp) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-22 11:30:53 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 11:31:48 gitesh_ for example this is the code ----- https://bpa.st/4SBA 2021-05-22 11:31:53 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 246 seconds) 2021-05-22 11:32:16 gitesh_ will I first code label, button or text entry , how will i decide? 2021-05-22 11:32:24 --> pulsar12 (~quassel@a95-92-60-61.cpe.netcabo.pt) has joined #python 2021-05-22 11:32:30 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-22 11:33:09 <-- radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-22 11:33:23 <-- Stenean (~Stenean@cpc83645-brig20-2-0-cust98.3-3.cable.virginm.net) has quit (Quit: WeeChat 3.1) 2021-05-22 11:33:26 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Ping timeout: 240 seconds) 2021-05-22 11:33:33 ChrisWarrick it usually doesn’t matter 2021-05-22 11:33:44 ChrisWarrick it might be good to keep some logical order 2021-05-22 11:34:12 gitesh_ ok 2021-05-22 11:34:21 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-22 11:34:26 --> radu242 (~radu242@pool-108-41-101-29.nycmny.fios.verizon.net) has joined #python 2021-05-22 11:34:47 <-- hiroaki (~hiroaki@ip-37-201-146-64.hsi13.unitymediagroup.de) has quit (Ping timeout: 265 seconds) 2021-05-22 11:36:40 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 11:36:54 <-- thiras (~thiras@unaffiliated/thiras) has quit (Quit: Leaving) 2021-05-22 11:37:14 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-22 11:37:25 --> hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-wsfuqrqguhzbgokc) has joined #python 2021-05-22 11:38:11 <-- XsiSec (xsisec@gateway/vpn/mullvad/xsisec) has quit (Ping timeout: 246 seconds) 2021-05-22 11:39:06 <-- me-sudoer-dentne (~siddhant@unaffiliated/me-sudoer-dentne) has quit (Quit: WeeChat 3.0.1) 2021-05-22 11:40:06 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 265 seconds) 2021-05-22 11:41:09 <-- leo60228 (~leo60228@098-121-230-017.res.spectrum.com) has quit (Ping timeout: 260 seconds) 2021-05-22 11:41:22 <-- gitesh_ (67dc28c7@103.220.40.199) has quit (Ping timeout: 240 seconds) 2021-05-22 11:41:37 --> leo60228 (~leo60228@098-121-230-017.res.spectrum.com) has joined #python 2021-05-22 11:41:45 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-22 11:42:38 <-- roadie (~user@2a02:8108:ec0:1427:61bc:5f41:8b49:1239) has quit (Quit: ERC (IRC client for Emacs 27.1.91)) 2021-05-22 11:42:41 --> akoana (~ah@unaffiliated/akoana) has joined #python 2021-05-22 11:43:03 --> roadie (~user@2a02:8108:ec0:1427:61bc:5f41:8b49:1239) has joined #python 2021-05-22 11:43:53 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-22 11:47:19 --> hiroaki (~hiroaki@2a02:908:4b18:8c40:6466:3f55:da6:8a9f) has joined #python 2021-05-22 11:49:23 --> a1paca (a1paca@gateway/vpn/protonvpn/a1paca) has joined #python 2021-05-22 11:49:50 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-22 11:52:05 <-- andi_ (~andi@unaffiliated/andi/x-9058200) has quit (Quit: WeeChat 3.1) 2021-05-22 11:53:28 --> amerlyq (~weechat@unaffiliated/amerlyq) has joined #python 2021-05-22 11:54:46 amerlyq how to prevent sourcing rest of python module (e.g. if required imported module does not exists) ? 2021-05-22 11:55:08 --> subho (~subho@fedora/subho) has joined #python 2021-05-22 11:55:42 amerlyq CASE: try: import mymod; except: return(); ... @mymod class AAA: pass 2021-05-22 11:55:48 ChrisWarrick amerlyq: an importerror will be thrown, and whatever is importing your code will also get an error 2021-05-22 11:56:02 ChrisWarrick amerlyq: you don’t need to catch the exception here 2021-05-22 11:56:41 mefistofeles https://pdm.fming.dev/ interesting, didn't know that pep 2021-05-22 11:56:47 --> itai (~itai@51.19.49.99) has joined #python 2021-05-22 11:56:47 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 11:57:12 amerlyq but I want to prevent the error floating up -- basically I write plugin for neovim and don't want to get the error each time when I open neovim, if one of optional modules does not exist 2021-05-22 11:57:26 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 246 seconds) 2021-05-22 11:57:38 amerlyq ChrisWarrick: do you have any idea how to accomplish error suppression in that case? 2021-05-22 11:58:20 ChrisWarrick amerlyq: you’d need to come up with a specific structure for everything where the module would be used 2021-05-22 11:58:49 ChrisWarrick amerlyq: for your decorator, I’d write a dummy decorator = lambda x: x that would be used in the `except ImportError`: branch 2021-05-22 11:58:53 itai I am trying to dump data to csv files; but there are connections, foreign keys between csv tables. these asre one to many, one to one relations. At the end, I will load these datasets with pandas. 2021-05-22 11:59:28 itai what's the best way of handling dependencies between records in a csv file? 2021-05-22 11:59:39 itai across csv tables 2021-05-22 11:59:56 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-22 12:00:00 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 12:00:03 ChrisWarrick itai: there’s nothing special you can do 2021-05-22 12:00:32 --> Jubejubilee (~lushlush@modemcable007.71-58-74.mc.videotron.ca) has joined #python 2021-05-22 12:00:46 <-- moldorcoder7 (~moldorcod@206.166.251.59) has quit (Ping timeout: 240 seconds) 2021-05-22 12:01:00 amerlyq ChrisWarrick: hm, it's not best idea (must mock too many methods), but not bad overall. Still simple "stop parsing here and return" would be much cleaner :( 2021-05-22 12:01:02 itai it is supported by csv and pandas, right? it is common to create datasets with relations? 2021-05-22 12:01:07 --> nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has joined #python 2021-05-22 12:01:11 itai ChrisWarrick: thanks ;) 2021-05-22 12:01:19 --> spiri_ (~spiri@unaffiliated/spiri) has joined #python 2021-05-22 12:01:23 <-- stree (~stree@68.36.8.116) has quit (Quit: Caught exception) 2021-05-22 12:01:45 <-- spiri_ (~spiri@unaffiliated/spiri) has quit (Client Quit) 2021-05-22 12:01:47 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 12:01:47 mefistofeles itai: I'd think a spreadsheetshould format handle that better, but yeah, I don't see csv format doing any of that, and pandas either... not by itself 2021-05-22 12:01:55 --> dfcnvt (~dfcnvt@unaffiliated/dfcnvt) has joined #python 2021-05-22 12:01:55 ChrisWarrick itai: csv doesn’t care 2021-05-22 12:02:19 --> spiri_ (~spiri@unaffiliated/spiri) has joined #python 2021-05-22 12:02:29 itai cool, I will have to implement the mapping 2021-05-22 12:02:45 ChrisWarrick (also, why pandas?) 2021-05-22 12:03:10 dfcnvt Is "Turing Complete" just another meaning of virtualization? Like, a physical computer is capable of running the Virutal machine and that would proof it as a Turing machine. 2021-05-22 12:03:13 itai I use it to generate graphs with python and other libraries. 2021-05-22 12:03:21 ChrisWarrick dfcnvt: nope, not at all 2021-05-22 12:03:31 itai It's a nice way of loading data form csv 2021-05-22 12:03:47 --> Gerula (~Gerula@unaffiliated/gerula) has joined #python 2021-05-22 12:04:05 --> nemo_ (~nemo@unaffiliated/nemo/x-0958849) has joined #python 2021-05-22 12:04:25 ChrisWarrick dfcnvt: the formal definition aside, turing-completeness typically means a general-purpose programming language, as opposed to a domain-specific thing with many limitations 2021-05-22 12:05:08 <-- AlanMD (~alan@5-12-75-55.residential.rdsnet.ro) has quit (Ping timeout: 246 seconds) 2021-05-22 12:05:59 --> yeticheese (~yetichees@193.160.245.46) has joined #python 2021-05-22 12:06:08 --> PantelicGR (~PantelicG@unaffiliated/pantelicgr) has joined #python 2021-05-22 12:06:13 <-- roadie (~user@2a02:8108:ec0:1427:61bc:5f41:8b49:1239) has quit (Quit: ERC (IRC client for Emacs 27.1.91)) 2021-05-22 12:06:16 dfcnvt So...the highness of computational ability would be in a rough definition of turing-completeness? Hm, I'll have to rethink a bit -- since it won't make sense if I try to define what does "lowness of computational" would even mean. 2021-05-22 12:07:06 <-- Ettercap (~Wei@unaffiliated/ettercap) has quit (Remote host closed the connection) 2021-05-22 12:07:40 <-- spiri_ (~spiri@unaffiliated/spiri) has quit (Quit: Leaving) 2021-05-22 12:07:43 --> brickfat (~brickfat@unaffiliated/brickfat) has joined #python 2021-05-22 12:07:47 <-- spiri (~spiri@unaffiliated/spiri) has quit (Quit: Leaving) 2021-05-22 12:07:55 dfcnvt I think I'll keep your frame of reference. 2021-05-22 12:08:28 <-- brickfat (~brickfat@unaffiliated/brickfat) has quit (Client Quit) 2021-05-22 12:09:42 ChrisWarrick dfcnvt: https://en.wikipedia.org/wiki/Turing_completeness#Examples 2021-05-22 12:10:17 dfcnvt Aye, thanks. 2021-05-22 12:10:32 --> tete_ (~John@2a02:168:859e::c60) has joined #python 2021-05-22 12:10:49 --> Betal (~Betal@unaffiliated/betal) has joined #python 2021-05-22 12:10:51 <-- yeticheese (~yetichees@193.160.245.46) has quit (Ping timeout: 260 seconds) 2021-05-22 12:10:58 <-- Guest20 (~textual@192.146.154.3) has quit (Quit: ZZZzzz…) 2021-05-22 12:11:14 tete_ hi, i tried to use rpy2 and when i do something like robjects.r['pi'] it works, but when i try robjects.r['toString(pi)'] it does not work. the error is: KeyError: "'toString(pi)' not found" - anyone an idea why? 2021-05-22 12:11:20 tete_ in the terminal of R it works 2021-05-22 12:11:50 --> moldorcoder7 (~moldorcod@206.166.251.59) has joined #python 2021-05-22 12:12:10 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-22 12:12:39 rinzewind tete_: Could it be that you are using 'toString(pi)' but you really need toString(pi)? 2021-05-22 12:13:03 rinzewind With the quotes, you're using literally 'toString(pi)', not the output of toString with pi as an argument. 2021-05-22 12:13:15 tete_ hm 2021-05-22 12:13:31 tete_ but i do have to use ' ' to pass it to robjects.r, i guess 2021-05-22 12:13:55 <-- ayustae (Thunderbir@gateway/vpn/protonvpn/ayustae) has quit (Quit: ayustae) 2021-05-22 12:13:59 tete_ when i dont use ' ' its a python error 2021-05-22 12:14:26 tete_ toString not defined... i have to pass this as string. this is the R code as string i pass to .r['...'] 2021-05-22 12:15:29 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-22 12:15:49 <-- GNUtoo (~GNUtoo@cyberdimension.org) has quit (Quit: leaving) 2021-05-22 12:16:27 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-22 12:18:01 <-- rendar (~rendar@unaffiliated/rendar) has quit (Ping timeout: 260 seconds) 2021-05-22 12:18:03 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 12:19:17 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:b534:5b52:a53c:a2f2) has quit (Ping timeout: 250 seconds) 2021-05-22 12:19:29 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Ping timeout: 246 seconds) 2021-05-22 12:19:39 --> SwiftMatt (~Objective@2601:282:4300:3e:3184:81e9:3d72:f740) has joined #python 2021-05-22 12:20:13 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 265 seconds) 2021-05-22 12:21:29 <-- av_ (uid87081@gateway/web/irccloud.com/x-cxlroidjutyhcxns) has quit (Quit: Connection closed for inactivity) 2021-05-22 12:21:48 tete_ got it working now, guess i have to use functions like: f <- function() { toString("pi") } f() 2021-05-22 12:22:51 --> maximb (5744a443@87.68.164.67) has joined #python 2021-05-22 12:23:07 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-22 12:24:07 <-- avu (~jan@unaffiliated/avu) has left #python 2021-05-22 12:24:27 <-- spiri (~spiri@unaffiliated/spiri) has quit (Remote host closed the connection) 2021-05-22 12:24:57 <-- jordanm (~jordanm@pdpc/supporter/active/jordanm) has quit (Remote host closed the connection) 2021-05-22 12:25:44 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-22 12:26:51 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 12:29:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 12:29:53 --> v4skie (~v4skie@78.175.57.98) has joined #python 2021-05-22 12:30:55 <-- spiri (~spiri@unaffiliated/spiri) has quit (Quit: Leaving) 2021-05-22 12:31:26 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-22 12:31:42 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-22 12:32:23 -- Maiya_ is now known as Maiya 2021-05-22 12:34:01 <-- Jerrynicki (~niklas@p200300f57723aa0084b1b052f638209d.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-22 12:34:33 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-22 12:37:06 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-22 12:37:29 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-22 12:37:32 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-22 12:38:24 --> spiri_ (~spiri@unaffiliated/spiri) has joined #python 2021-05-22 12:39:34 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Read error: Connection reset by peer) 2021-05-22 12:41:27 <-- spiri_ (~spiri@unaffiliated/spiri) has quit (Client Quit) 2021-05-22 12:42:11 <-- eshlox (uid44222@gateway/web/irccloud.com/x-vuoovotrfczadwou) has quit (Quit: Connection closed for inactivity) 2021-05-22 12:43:38 --> kakashiAL (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has joined #python 2021-05-22 12:43:47 --> carljm (~carljm@django/moderator/carljm) has joined #python 2021-05-22 12:44:20 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-22 12:44:39 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-22 12:45:01 <-- dhill (~dhill@modemcable250.73-201-24.mc.videotron.ca) has quit (Read error: Connection reset by peer) 2021-05-22 12:45:01 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-22 12:45:06 <-- hhzhk (~user@112.116.115.72) has quit (Ping timeout: 240 seconds) 2021-05-22 12:45:44 <-- Maiya (~paradox@106.201.32.147) has quit (Quit: leaving) 2021-05-22 12:46:06 --> dhill (~dhill@modemcable250.73-201-24.mc.videotron.ca) has joined #python 2021-05-22 12:46:42 <-- v4skie (~v4skie@78.175.57.98) has quit (Quit: Leaving) 2021-05-22 12:48:50 <-- carljm (~carljm@django/moderator/carljm) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 12:49:02 <-- tlaxkit (~konversat@185.228.153.79) has quit (Quit: Konversation terminated!) 2021-05-22 12:49:46 --> teut (7aa1a83a@unaffiliated/teut) has joined #python 2021-05-22 12:50:49 <-- todda7 (~torstein@2a02:587:3729:5274:b6df:d74:d185:4e87) has quit (Ping timeout: 245 seconds) 2021-05-22 12:51:27 --> causasui (~causasui@wikipedia/causa-sui) has joined #python 2021-05-22 12:52:38 --> muntyan (49e1adbb@c-73-225-173-187.hsd1.wa.comcast.net) has joined #python 2021-05-22 12:53:57 <-- AkechiShiro (~AkechiShi@2a01:e0a:5f9:9681:5cef:ba41:cf1d:9b70) has quit (Ping timeout: 250 seconds) 2021-05-22 12:55:04 --> AkechiShiro (~AkechiShi@2a01:e0a:5f9:9681:1473:3dff:fe42:56a9) has joined #python 2021-05-22 12:55:22 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-22 12:55:28 bjs dfcnvt: Turing completeness doesn't matter so much, lots of things are "accidentally" Turing complete 2021-05-22 12:55:37 bjs and there are arguments for why things you think should be actually aren't. 2021-05-22 12:55:39 --> cthulchu (~cthulchu@193.194.107.250) has joined #python 2021-05-22 12:56:28 --> Jerrynicki (~niklas@p200300f57723aa00ddd77f0d1b9f814c.dip0.t-ipconnect.de) has joined #python 2021-05-22 12:57:07 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 12:58:59 <-- kiboneu (~kiboneu@ec2-3-87-189-227.compute-1.amazonaws.com) has quit (Quit: bye.) 2021-05-22 13:00:27 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 13:00:37 --> kiboneu (~kiboneu@ec2-3-87-189-227.compute-1.amazonaws.com) has joined #python 2021-05-22 13:00:39 --> YoungPotato (~user@c-67-186-254-165.hsd1.ut.comcast.net) has joined #python 2021-05-22 13:01:23 --> mangold (~mangold@198.98.183.135) has joined #python 2021-05-22 13:02:46 <-- GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has quit (Ping timeout: 240 seconds) 2021-05-22 13:04:18 --> Liungeir (~Liungeir@unaffiliated/sellow) has joined #python 2021-05-22 13:04:27 --> Narrat (~Narrat@p200300df5f15f23206ea56fffe2e7cdc.dip0.t-ipconnect.de) has joined #python 2021-05-22 13:04:41 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-22 13:05:04 <-- dastier (~dastier@37.214.65.243) has quit (Remote host closed the connection) 2021-05-22 13:05:34 <-- ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has quit (Quit: Leaving) 2021-05-22 13:06:14 grym the fun part is "often i want this to NOT be turing complete; less insanity can arise that way" 2021-05-22 13:06:40 <-- kiboneu (~kiboneu@ec2-3-87-189-227.compute-1.amazonaws.com) has quit (Quit: bye.) 2021-05-22 13:06:57 --> nyloc (548254b3@p548254b3.dip0.t-ipconnect.de) has joined #python 2021-05-22 13:08:03 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-22 13:08:53 <-- teut (7aa1a83a@unaffiliated/teut) has quit (Quit: Connection closed) 2021-05-22 13:09:15 <-- BUSY (~BUSY@unaffiliated/busy) has quit (Read error: Connection reset by peer) 2021-05-22 13:09:47 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-22 13:10:09 --> BUSY (~BUSY@unaffiliated/busy) has joined #python 2021-05-22 13:11:21 --> aslicedbanjo (~aslicedba@host31-48-148-121.range31-48.btcentralplus.com) has joined #python 2021-05-22 13:11:27 <-- nuclearg1 (~nucleargr@c-73-150-253-137.hsd1.nj.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-22 13:11:46 <-- RangerBob (~brian@pool-173-72-244-228.clppva.fios.verizon.net) has quit (Ping timeout: 240 seconds) 2021-05-22 13:12:45 --> stormkl (~stormkl@176.40.33.3) has joined #python 2021-05-22 13:13:27 <-- _moep_ (~moep@gateway.moep.name) has left #python ("WeeChat 3.1") 2021-05-22 13:15:45 --> yeticheese (~yetichees@193.160.245.46) has joined #python 2021-05-22 13:15:51 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 13:16:00 --> DHARMAKAYA (~DHARMAKAY@189.174.247.195) has joined #python 2021-05-22 13:16:32 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 246 seconds) 2021-05-22 13:17:40 <-- arf` (~user_name@trois.potager.org) has quit (Remote host closed the connection) 2021-05-22 13:18:13 <-- Gerula (~Gerula@unaffiliated/gerula) has quit (Ping timeout: 260 seconds) 2021-05-22 13:18:48 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 13:19:49 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 13:20:06 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-22 13:20:12 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 13:20:19 <-- lavender- (~lavendere@gateway/tor-sasl/lavendereyes) has quit (Quit: shine) 2021-05-22 13:20:41 --> lavendereyes (~lavendere@gateway/tor-sasl/lavendereyes) has joined #python 2021-05-22 13:22:28 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-22 13:22:29 --> javi404 (~quassel@unaffiliated/javi404) has joined #python 2021-05-22 13:23:26 <-- Monet (~woostundy@106.11.35.195) has quit (Remote host closed the connection) 2021-05-22 13:23:58 <-- veek (~veek@unaffiliated/veek) has quit (Quit: Leaving) 2021-05-22 13:24:01 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-22 13:24:42 --> jarthur (~jarthur@cpe-70-114-198-37.austin.res.rr.com) has joined #python 2021-05-22 13:26:34 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-22 13:26:51 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 13:30:11 <-- mangold (~mangold@198.98.183.135) has quit (Ping timeout: 260 seconds) 2021-05-22 13:30:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 13:30:52 <-- greedom (~greedom@2001:16b8:3279:2200:2088:f7f5:f357:4f31) has quit (Remote host closed the connection) 2021-05-22 13:31:25 --> arf` (~user_name@trois.potager.org) has joined #python 2021-05-22 13:33:18 --> aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has joined #python 2021-05-22 13:33:31 <-- rendar (~rendar@unaffiliated/rendar) has quit 2021-05-22 13:34:39 <-- rsx (~rsx@ppp-188-174-143-136.dynamic.mnet-online.de) has quit (Quit: rsx) 2021-05-22 13:34:48 --> morgandark (averydark@gateway/vpn/protonvpn/averydark) has joined #python 2021-05-22 13:35:25 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-22 13:35:47 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-22 13:37:18 <-- Xiti` (~Xiti-@unaffiliated/xiti) has quit (Quit: Leaving) 2021-05-22 13:37:53 morgandark why store session data in permanent storage? such as a filesystem or database? the information that is used in a session is typically in the database already... when i used bottle, i used a thread.local session that persisted in memory for as long as the user remained on the web app... the only thing that was written to a cookie was the sid and the jwt which were cryptographically signed. storing the session data in the database, 2021-05-22 13:37:53 morgandark then storing it in the cookie, and reading that batch of data for every request seems like overkill. the common response to this question is fairly weak at best. so why? 2021-05-22 13:39:10 supakeen You might want to share session data across multiple frontend servers (running your web application) or you might want it to be persistent across restarts and/or reboots. 2021-05-22 13:39:16 nedbat morgandark: you can't assume that your webserver process will last as long as the user's session. 2021-05-22 13:39:27 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-22 13:39:35 nedbat morgandark: and as supakeen says, you might have multiple web application processes 2021-05-22 13:39:40 morgandark supakeen, thats a database issue, not a session issue... 2021-05-22 13:39:42 --> englosh (3eb0fd0b@pool-11.253.176.62.dynamic.wobline-ip.de) has joined #python 2021-05-22 13:39:57 --> Blankspace (~asddf@unaffiliated/blankspace) has joined #python 2021-05-22 13:40:10 morgandark if you can read from the database the information to validate the session, then you can create the session in memory for the duration of that users session. 2021-05-22 13:40:18 <-- stormkl (~stormkl@176.40.33.3) has quit (Remote host closed the connection) 2021-05-22 13:40:21 morgandark according to spec, the session should only last up to 1 hour 2021-05-22 13:40:22 nedbat morgandark: what are you storing in the thread local? 2021-05-22 13:40:39 <-- akoana (~ah@unaffiliated/akoana) has left #python ("Leaving") 2021-05-22 13:40:54 <-- justanotheruser (~justanoth@unaffiliated/justanotheruser) has quit (Quit: WeeChat 3.1) 2021-05-22 13:41:11 morgandark nedbat, the session is written to the client with a cookie and persists until it expires 2021-05-22 13:41:23 --> justanotheruser (~justanoth@unaffiliated/justanotheruser) has joined #python 2021-05-22 13:41:41 nedbat morgandark: so you send the entire session data back and forth with each request? What is in the thread.local? 2021-05-22 13:41:42 morgandark depending on how the session is handled, it could persist until expiry, and if the server is down, you can't connect from the client anyways 2021-05-22 13:41:46 <-- spiri (~spiri@unaffiliated/spiri) has quit (Ping timeout: 240 seconds) 2021-05-22 13:41:51 <-- code-witch (~code-witc@122.167.23.227) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 13:41:54 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-22 13:42:01 supakeen morgandark, should you be 'logged out' after the server comes back up? 2021-05-22 13:42:02 morgandark nedbat, the sid and the jwt 2021-05-22 13:42:06 nedbat morgandark: it's not that the server is down, it could have restarted, and the data is gone. 2021-05-22 13:42:09 morgandark nedbat, that's all you really need anyways 2021-05-22 13:42:29 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-22 13:42:30 nedbat morgandark: do you understand what we mean about multiple web app processes, and processes restarting? 2021-05-22 13:42:37 supakeen maybe my usecase is a bit different but we have a few hundred webservers that all need access to that session data as a request could end up on any one of them :) 2021-05-22 13:42:53 supakeen so a local store per server or application wouldn't really work 2021-05-22 13:43:26 <-- drymer (~drymer@unaffiliated/drymer) has quit (Ping timeout: 240 seconds) 2021-05-22 13:44:10 morgandark nedbat, i understand what a process is 2021-05-22 13:44:20 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-22 13:44:39 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-22 13:44:54 nedbat morgandark: ok, so I could be using your web application, and make two consecutive requests to it, but they would be handled by different processes, so they can't share a thread.local 2021-05-22 13:45:31 <-- ffe4 (~ffe4@200116b82cd4ca0099efcaf3f4321fd7.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-22 13:45:35 <-- Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-22 13:45:49 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-22 13:45:52 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-22 13:45:56 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Ping timeout: 246 seconds) 2021-05-22 13:46:13 amogorkon hi, i'm still brainstorming - any ideas how *+-^[] etc. syntax might be useful in the context of imports and modules? 2021-05-22 13:47:00 <-- jarthur (~jarthur@cpe-70-114-198-37.austin.res.rr.com) has quit (Quit: jarthur) 2021-05-22 13:47:33 morgandark supakeen, is anything aside from a sid or token stored there? 2021-05-22 13:47:52 morgandark supakeen, besides ip and datatime info 2021-05-22 13:47:53 nedbat morgandark: what do you mean by sid? What is that for? 2021-05-22 13:48:04 morgandark nedbat, session identifier 2021-05-22 13:48:07 supakeen I assume they mean 'session id' by sid, the nonce used to identify the session. 2021-05-22 13:48:19 nedbat morgandark: what do you do with that identifier? 2021-05-22 13:48:19 --> Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has joined #python 2021-05-22 13:48:29 --> ffe4 (~ffe4@200116b82cd4ca0099efcaf3f4321fd7.dip.versatel-1u1.de) has joined #python 2021-05-22 13:48:29 supakeen And yes, there's more information in the session than just its identifier. 2021-05-22 13:49:05 --> matjazv (~matjazv@84-255-196-218.static.t-2.net) has joined #python 2021-05-22 13:49:38 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 265 seconds) 2021-05-22 13:49:43 --> bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has joined #python 2021-05-22 13:49:48 morgandark nedbat, its a unique value that's generated at when the session is created 2021-05-22 13:49:58 --> Xiti (~Xiti-@unaffiliated/xiti) has joined #python 2021-05-22 13:50:04 nedbat morgandark: ok, and what do you do with it? Why do you need to store it? 2021-05-22 13:50:14 morgandark nedbat, it's used to identify the client is who it says it is 2021-05-22 13:50:42 nedbat morgandark: ok, so if the client made a request to a web app process that didn't have that sid in a thread.local, what would happen? 2021-05-22 13:51:09 morgandark supakeen, so the sessions are stored for scaling purposes in words 2021-05-22 13:51:11 nedbat morgandark: and: where is that actual identity stored? in the jwt? 2021-05-22 13:51:29 --> dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has joined #python 2021-05-22 13:51:36 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::c78) has joined #python 2021-05-22 13:51:42 --> kanupatar (6aced170@106.206.209.112) has joined #python 2021-05-22 13:53:34 morgandark im just thinking that there could be a way to share the information securely without actually storing it... i just don't like the idea of actually saving the session anywhere. to me, its only use is to id the client while the client is active. but im sure much smarter and more experienced coders have grappled with this already. 2021-05-22 13:53:54 --> Velika_ (~R-One@gyore-net.one) has joined #python 2021-05-22 13:54:00 <-- fofoni (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has quit (Quit: Leaving) 2021-05-22 13:54:08 <-- matjazv (~matjazv@84-255-196-218.static.t-2.net) has quit (Quit: Leaving) 2021-05-22 13:54:15 morgandark nedbat, i get where you're going with this 2021-05-22 13:54:24 --> fofoni (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has joined #python 2021-05-22 13:54:29 --> matjazv (~matjazv@84-255-196-218.static.t-2.net) has joined #python 2021-05-22 13:54:47 nedbat morgandark: the central idea is that web application processes can be transient, and multiple. 2021-05-22 13:54:57 morgandark nedbat, https://github.com/teleprint-me/canister/blob/master/canister.py 2021-05-22 13:55:06 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 240 seconds) 2021-05-22 13:55:21 morgandark nedbat, while being thread safe 2021-05-22 13:55:42 morgandark not the link, but in response to your reference of the central idea being processes being transient 2021-05-22 13:55:54 nedbat morgandark: yes, thread safety is also important. 2021-05-22 13:56:04 nedbat is there something i'm supposed to see in that code? 2021-05-22 13:56:26 <-- dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-22 13:56:31 morgandark nedbat, that's the code i refactored for bottle sessions 2021-05-22 13:56:43 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 13:56:49 morgandark nedbat, i used the rfc specs 2021-05-22 13:56:50 <-- pragma- (~chaos@unaffiliated/pragmatic-chaos) has quit (Quit: Bye!) 2021-05-22 13:57:08 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-22 13:57:12 morgandark nedbat, my implementation could be better, but it was a personal project 2021-05-22 13:57:15 nedbat morgandark: i'm just not sure if you want me to read something specific in here? 2021-05-22 13:57:24 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-22 13:57:31 meejah i agree that keeping session things ephemeral is ideal .. but "while the user is active" is kind of ambiguous with web-stuff, no? 2021-05-22 13:57:48 <-- realies (~realies@unaffiliated/realies) has quit (Quit: ~) 2021-05-22 13:58:02 --> drymer (~drymer@unaffiliated/drymer) has joined #python 2021-05-22 13:58:08 --> realies (~realies@unaffiliated/realies) has joined #python 2021-05-22 13:58:13 morgandark nedbat, you were asking how i would handle the local thread... thats how i handled it. 2021-05-22 13:58:30 morgandark nedbat, i also understand your point though... 2021-05-22 13:58:39 nedbat morgandark: i was trying to understand what you were storing in it, and how you would handle multiple processes. 2021-05-22 13:58:42 nedbat ok 2021-05-22 13:58:45 --> dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has joined #python 2021-05-22 13:58:50 <-- shokohsc68 (~shokohsc@161.88.195.77.rev.sfr.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-22 13:59:02 supakeen Or how you invalidate sessions (for example if you want to forcefully log a user out). 2021-05-22 13:59:05 morgandark meejah, well, the spec says after authentication, the session should timeout and expire at most by 1 hour 2021-05-22 13:59:30 meejah morgandark: if you don't store it, you can't restart your server (until every user session is expired) .. right? 2021-05-22 13:59:43 morgandark meejah, so you login, session is created, active while using, timer ticks away, then expires after session has passed, user is logged out 2021-05-22 14:00:03 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 14:00:04 morgandark meejah, that shouldnt matter 2021-05-22 14:00:22 morgandark supakeen, you revoke and clear the jwt 2021-05-22 14:01:19 supakeen morgandark, doesn't that mean you will need to store some data to know which jwt's are outstanding so you can revoke one of them? :) 2021-05-22 14:01:21 morgandark the real problem comes in with scaling and you cant and dont want to share threads because that violates thread safety... so my question was technically answered already and creates a valid reason for storing it. 2021-05-22 14:01:35 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-22 14:02:03 <-- clearcasting (~clearcast@167-179-182-7.a7b3b6.bne.nbn.aussiebb.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-22 14:02:09 --> Guest72888 (~success@unaffiliated/success) has joined #python 2021-05-22 14:02:11 -- Guest72888 is now known as Success 2021-05-22 14:02:15 morgandark supakeen, well, if the session key is cleared from memory, then all user sessions that are connected to that server are invalidated anyways 2021-05-22 14:02:34 morgandark they would all have to log back in again 2021-05-22 14:02:46 --> shokohsc68 (~shokohsc@161.88.195.77.rev.sfr.net) has joined #python 2021-05-22 14:03:16 <-- Tashtari (~tashtari@unaffiliated/tashtari) has quit (Quit: Tashtari) 2021-05-22 14:03:46 <-- yeticheese (~yetichees@193.160.245.46) has quit (Ping timeout: 240 seconds) 2021-05-22 14:03:59 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-22 14:04:09 supakeen morgandark, yes but that means you log *everyone* out instead of one specific user for example sites often show you a list of your current sessions and you can remove certain ones. 2021-05-22 14:05:05 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-22 14:05:24 supakeen Anyways let me make my actual point, either you store all data in the cookie (you could use JWT if you do it right) or you just store an identifier and keep all data in another form of persistent storage. 2021-05-22 14:05:35 supakeen Both have advantages and disadvantages, I've mostly mentioned disadvantages of the former. 2021-05-22 14:05:53 <-- kanupatar (6aced170@106.206.209.112) has quit (Quit: Connection closed) 2021-05-22 14:06:09 morgandark supakeen, what are the advantages? 2021-05-22 14:06:21 morgandark aside from scaling 2021-05-22 14:06:36 supakeen The advantages of using a cookie as the storage is that you can validate sessions on your loadbalancers, that it's likely faster (as you don't need to ask a central authority), that sort of thing. 2021-05-22 14:06:47 <-- matjazv (~matjazv@84-255-196-218.static.t-2.net) has quit (Quit: Leaving) 2021-05-22 14:06:59 --> jarthur (~jarthur@2603-8080-1540-002d-c5d1-4215-431c-d539.res6.spectrum.com) has joined #python 2021-05-22 14:07:05 <-- Velika_ (~R-One@gyore-net.one) has quit (Quit: WeeChat 2.8) 2021-05-22 14:07:14 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-22 14:07:18 nedbat cookies have a size limit, and people can see what's in their cookie. 2021-05-22 14:07:27 --> Velika_ (~R-One@gyore-net.one) has joined #python 2021-05-22 14:07:37 --> CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has joined #python 2021-05-22 14:08:06 <-- a1paca (a1paca@gateway/vpn/protonvpn/a1paca) has quit (Quit: Leaving) 2021-05-22 14:08:10 supakeen You shouldn't really store secrets in sessions either but it's perfectly valid to encrypt and sign :) 2021-05-22 14:08:41 <-- stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has quit (Remote host closed the connection) 2021-05-22 14:09:05 morgandark nedbat, thats another issue. 4096k isnt much and poses a security risk if data is stored there that isn't really necessary 2021-05-22 14:09:11 morgandark for context, i want to build a web app that handles financial investments and make it open source... i want it to be secure and scalable too... this isnt an example. ive been researching for awhile and recently refacted an api wrapper for that very reason. 2021-05-22 14:09:24 <-- fflori (~fflori@mob-194-230-155-245.cgn.sunrise.net) has quit (Read error: Connection reset by peer) 2021-05-22 14:09:29 --> stats4647 (~stats4647@ip68-101-110-155.oc.oc.cox.net) has joined #python 2021-05-22 14:09:46 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-22 14:09:51 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 260 seconds) 2021-05-22 14:10:25 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Ping timeout: 265 seconds) 2021-05-22 14:10:35 <-- mcsontos (~mcsontos@ip-78-45-136-55.net.upcbroadband.cz) has quit (Remote host closed the connection) 2021-05-22 14:10:41 morgandark supakeen, thats why i store them server side and use os.random to generate the byte string ;) 2021-05-22 14:11:24 morgandark supakeen, well, technically, i dont even store it, so if the server goes down, a new key is set 2021-05-22 14:12:04 morgandark this is okay for lan, but not for the web in prod 2021-05-22 14:12:13 --> contagious_meow (~contagiou@154.123.14.251) has joined #python 2021-05-22 14:13:34 --> bsdbandit-01 (~bsdbandit@2607:fb90:5373:1814:ccb2:d71c:3b71:dfb6) has joined #python 2021-05-22 14:13:39 <-- ikwyl6_ (~ikwyl6@unaffiliated/ikwyl6) has left #python ("WeeChat 3.0") 2021-05-22 14:13:57 morgandark i was looking at https://flask-session.readthedocs.io/en/latest/ and while i was reading the source code, i was surprised to see the session stored in a db 2021-05-22 14:14:01 <-- Nact (~l@host-85-27-120-83.dynamic.voo.be) has quit (Quit: Konversation terminated!) 2021-05-22 14:14:26 supakeen It's not that surprising as its the easy one to reason about and the 'standard' way of doing it. 2021-05-22 14:14:51 supakeen I think you throwing away the key each time your application restarts isn't the best experience for any users if they get logged out when that happens :) 2021-05-22 14:15:01 --> Peyam (~Peyam@c83-250-236-236.bredband.tele2.se) has joined #python 2021-05-22 14:15:27 --> Tashtari (~tashtari@unaffiliated/tashtari) has joined #python 2021-05-22 14:15:42 morgandark well, if it comes down to risking the key being breached or resetting it, i would rather reset it. again, im thinking from a point of view of securing money. 2021-05-22 14:15:50 morgandark not just user data 2021-05-22 14:16:04 Peyam hi 2021-05-22 14:16:09 Peyam I was so drunk yestarday 2021-05-22 14:16:25 Peyam I took a taxi for second time in my life 2021-05-22 14:16:27 supakeen morgandark, but that doesn't change a thing because if you *dont* restart the application you still have the same key and the key can be 'breached'. 2021-05-22 14:16:42 supakeen Peyam, this channel isn't for social chat that's #python-offtopic :) 2021-05-22 14:17:26 morgandark supakeen, fair point... i hadnt thought of that 2021-05-22 14:17:31 --> gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has joined #python 2021-05-22 14:17:34 <-- bsdbandit-01 (~bsdbandit@2607:fb90:5373:1814:ccb2:d71c:3b71:dfb6) has quit (Read error: Connection reset by peer) 2021-05-22 14:18:12 morgandark and cycling through new keys wouldnt help either because that would also invalidate other user sessions 2021-05-22 14:18:14 --> bsdbandit-01 (~bsdbandit@2607:fb90:5373:1814:ccb2:d71c:3b71:dfb6) has joined #python 2021-05-22 14:18:24 morgandark ugh... web apps are hard lol 2021-05-22 14:18:25 <-- jmgb4 (~jmgb4@unaffiliated/jmgb4) has quit 2021-05-22 14:19:20 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 14:19:39 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 14:19:43 morgandark i was looking at krakens user session and it has been one of the more secure user sessions ive seen... they dont skimp out anywhere either and in most cases force you to sign back in if necessary 2021-05-22 14:19:58 --> cdown (~cdown@163.114.131.1) has joined #python 2021-05-22 14:20:10 morgandark coinbase uses the 'standard' 30 day session along with 2fa 2021-05-22 14:20:18 morgandark same with robinhood 2021-05-22 14:20:28 --> txtsd (~txtsd@45.112.14.141) has joined #python 2021-05-22 14:20:39 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-22 14:21:00 morgandark still have to check others... 2021-05-22 14:22:06 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 260 seconds) 2021-05-22 14:22:20 <-- bdonnahue3 (~bdonnahue@208.59.177.131) has quit (Ping timeout: 246 seconds) 2021-05-22 14:22:25 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 14:22:27 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-22 14:22:29 <-- bsdbandit-01 (~bsdbandit@2607:fb90:5373:1814:ccb2:d71c:3b71:dfb6) has quit (Ping timeout: 245 seconds) 2021-05-22 14:22:54 --> Velika (~R-One@gyore-net.one) has joined #python 2021-05-22 14:23:14 <-- Velika_ (~R-One@gyore-net.one) has quit (Quit: WeeChat 2.8) 2021-05-22 14:23:19 <-- Blankspace (~asddf@unaffiliated/blankspace) has quit (Quit: why did you ban me) 2021-05-22 14:23:55 <-- brainstew0 (~brainstew@c-24-12-19-216.hsd1.il.comcast.net) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-22 14:24:06 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-22 14:26:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 14:26:50 <-- fofoni (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has quit (Quit: Leaving) 2021-05-22 14:27:09 --> fofoni (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has joined #python 2021-05-22 14:27:21 <-- dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-22 14:27:31 <-- Jerrynicki (~niklas@p200300f57723aa00ddd77f0d1b9f814c.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-22 14:27:53 --> Jerrynicki (~niklas@p200300f57723aa0019ce515357b156db.dip0.t-ipconnect.de) has joined #python 2021-05-22 14:28:09 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 14:29:49 --> dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has joined #python 2021-05-22 14:29:55 Peyam is there website where there are dummy lists and dictionaries and sets? 2021-05-22 14:30:42 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 14:30:56 Peyam list a dummy list of size n? 2021-05-22 14:32:36 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 260 seconds) 2021-05-22 14:32:46 morgandark Peyam, are you requesting it or looking for something interactive thats online? 2021-05-22 14:32:52 <-- thib (~thib@wikimedia/Thibaut120094) has quit (Quit: leaving) 2021-05-22 14:33:06 <-- s8548a (~s8548a@unaffiliated/s8548a) has quit (Ping timeout: 240 seconds) 2021-05-22 14:33:12 morgandark Peyam, i.e., using requests to handle requests and responses 2021-05-22 14:33:21 --> qwerty1793 (~qwerty179@90.255.172.175) has joined #python 2021-05-22 14:33:26 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 240 seconds) 2021-05-22 14:33:38 Peyam I just dont want to manually write a list of 40 elements 2021-05-22 14:33:40 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 14:33:46 --> fonini_ (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has joined #python 2021-05-22 14:33:59 bjs Peyam: use Python to generate one: [random.random() for _ in range(40)] 2021-05-22 14:34:13 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 14:34:18 Peyam haha bjs you make me feel so stupid 2021-05-22 14:34:22 Angs I'd like to download a file from a https link (~60 MB). What module is the better (performance, reliability, or another reason) to use? I see examples that use requests, urllib, tqdm, wget. I am not so familiar with python, I wonder which one would be a better practice to use? 2021-05-22 14:35:12 Wulf Angs: requests or httpx 2021-05-22 14:35:42 Angs Wulf, is there any reason why you would prefer requests over other options? 2021-05-22 14:35:59 qwerty1793 Hi, does anyone know any good tutorial explaining how python's import process works? I know that importlib has a number of Finders that it can use to find a suitable Loader to load the requested module (either from builtins, sourceless, file, regestry etc.) but I cant figure out how specs and importlib.find_spec fit into the picture 2021-05-22 14:36:06 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-22 14:36:23 --> yeticheese (~yetichees@193.160.245.45) has joined #python 2021-05-22 14:36:30 <-- fonini_ (~fofoni@2804:d41:aa05:9200:6ea:56ff:fe54:c108) has quit (Client Quit) 2021-05-22 14:36:36 Wulf Angs: wget isn't python. tqdm is a progress bar, urllib is awkward to use. 2021-05-22 14:36:46 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-22 14:37:07 --> Intruder777 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-22 14:37:18 Angs Wulf, thanks 2021-05-22 14:37:32 <-- Intruder777 (~Intruder7@unaffiliated/intruder777) has left #python 2021-05-22 14:37:46 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-22 14:38:27 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 265 seconds) 2021-05-22 14:38:41 morgandark qwerty1793, https://docs.python.org/3.8/reference/import.html 2021-05-22 14:40:03 morgandark qwerty1793, the have example code in there too 2021-05-22 14:41:53 <-- pro_z (~pro_z@37.214.70.178) has quit (Remote host closed the connection) 2021-05-22 14:42:04 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-22 14:42:25 <-- ramsan (~ramsan@130.226.239.133) has quit (Remote host closed the connection) 2021-05-22 14:42:46 <-- kloudi (~kloudi@static.73.76.9.176.clients.your-server.de) has quit (Ping timeout: 240 seconds) 2021-05-22 14:42:51 <-- itai (~itai@51.19.49.99) has left #python 2021-05-22 14:42:56 --> Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has joined #python 2021-05-22 14:43:11 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 14:43:29 <-- arf` (~user_name@trois.potager.org) has quit (Quit: Lost terminal) 2021-05-22 14:44:20 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-22 14:44:39 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-22 14:47:32 <-- YoungPotato (~user@c-67-186-254-165.hsd1.ut.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-22 14:47:44 <-- auri_ (~admin@fsf/memeber/auri-) has quit (Quit: auri_) 2021-05-22 14:47:46 <-- dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-22 14:47:57 <-- plutoniix (~q@node-usl.pool-125-24.dynamic.totinternet.net) has quit (Quit: Leaving) 2021-05-22 14:48:39 --> dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has joined #python 2021-05-22 14:48:59 <-- ffe4 (~ffe4@200116b82cd4ca0099efcaf3f4321fd7.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-22 14:49:04 --> clearcasting (~clearcast@167-179-182-7.a7b3b6.bne.nbn.aussiebb.net) has joined #python 2021-05-22 14:49:10 <-- gauravsitlani (~gauravsit@2402:e280:2314:1fe:ee28:e0dc:5947:5063) has quit (Remote host closed the connection) 2021-05-22 14:49:31 --> Jantz (~IceChat95@2407:7000:8d04:100:742d:dc:5a71:cb46) has joined #python 2021-05-22 14:50:04 --> ffe4 (~ffe4@200116b82cd4ca0099efcaf3f4321fd7.dip.versatel-1u1.de) has joined #python 2021-05-22 14:50:25 <-- vfC (fC@cetialphafive.com) has quit (Quit: My god, It's full of stars...) 2021-05-22 14:50:43 --> dob1_ (~dob1@unaffiliated/dob1) has joined #python 2021-05-22 14:51:41 --> YoungPotato (~user@c-67-186-254-165.hsd1.ut.comcast.net) has joined #python 2021-05-22 14:51:59 <-- dob1 (~dob1@unaffiliated/dob1) has quit (Ping timeout: 265 seconds) 2021-05-22 14:52:37 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-22 14:53:27 <-- maximb (5744a443@87.68.164.67) has quit (Quit: Connection closed) 2021-05-22 14:55:06 <-- Xaldafax (~Xaldafax@cpe-198-72-160-101.socal.res.rr.com) has quit (Quit: Bye...) 2021-05-22 14:55:51 --> ralof_ (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has joined #python 2021-05-22 14:56:43 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 14:57:05 Peyam bjs, where do you live? 2021-05-22 14:57:21 amogorkon o.O 2021-05-22 14:57:45 Peyam I would love to offer him a job in Sweden :P 2021-05-22 14:57:47 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 265 seconds) 2021-05-22 14:58:16 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 260 seconds) 2021-05-22 14:58:44 <-- ralof (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has quit (Ping timeout: 246 seconds) 2021-05-22 14:59:28 --> vfC (fC@cetialphafive.com) has joined #python 2021-05-22 14:59:39 --> braincrash (~braincras@113-148-128-083.dynamic.caiway.nl) has joined #python 2021-05-22 14:59:58 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 15:00:08 amogorkon what's the most pythonic way to async check if a file has changed on linux and win? 2021-05-22 15:00:49 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-22 15:00:59 supakeen Mrm, I don't know if there's a library wrapping the normal APIs for that but it would be possible asynchronously. 2021-05-22 15:01:04 --> led1 (~Thunderbi@217.66.160.14) has joined #python 2021-05-22 15:01:39 --> teut (7aa1a83a@unaffiliated/teut) has joined #python 2021-05-22 15:01:51 amogorkon i know it's a tricky OS-dependent problem, i'll just check the OS and go from there 2021-05-22 15:02:08 amogorkon but how to proceed async? 2021-05-22 15:02:17 <-- led1 (~Thunderbi@217.66.160.14) has quit (Client Quit) 2021-05-22 15:02:23 --> pinusc (~pinusc@unaffiliated/pinusc) has joined #python 2021-05-22 15:02:27 <-- Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has quit (Remote host closed the connection) 2021-05-22 15:02:49 --> Nickwiz (~Nickwiz@gateway/tor-sasl/nickwiz) has joined #python 2021-05-22 15:03:53 amogorkon i always can fall back to checking periodically, but that's not really elegant 2021-05-22 15:03:59 tete_ amogorkon, for linux you can use inotify 2021-05-22 15:03:59 --> nizda (~nizda@2600:1700:23c0:3e30:1530:655b:57f7:7b38) has joined #python 2021-05-22 15:04:03 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 15:04:07 teut is it possible to create only time objects instead of datetime objects? 2021-05-22 15:04:31 teut I need to check if datetime.now().time <   3 o clock 2021-05-22 15:04:31 --> ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 15:05:19 <-- ChaosBringer (~manjaro-g@068-186-048-021.res.spectrum.com) has quit (Quit: Leaving) 2021-05-22 15:05:30 amogorkon if you're careful about timezones, that's doable 2021-05-22 15:05:46 amogorkon don't mix naive and aware times 2021-05-22 15:05:56 teut i m using django 2021-05-22 15:06:08 teut so that takes care of that 2021-05-22 15:06:13 --> huhuhu (~huhuhu@062122115128.gdansk.vectranet.pl) has joined #python 2021-05-22 15:06:57 morgandark amogorkon, https://pythonhosted.org/watchdog/ 2021-05-22 15:07:08 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 246 seconds) 2021-05-22 15:07:09 amogorkon okay, thanks for inotify, is there something in the stdlib that can do something like that? 2021-05-22 15:07:15 morgandark im not sure if its os dep tho 2021-05-22 15:07:18 teut timezone(day=1, month=1, year=2021, hour=15, minute=0, seconds=0).hours 2021-05-22 15:07:35 teut like I can compare this to the current time 2021-05-22 15:08:05 morgandark amogorkon, nvm, watchdog is cross-platform 2021-05-22 15:08:09 huhuhu I am looking for advice. I would like to write a program that recognizes the words I am speaking and, upon recognition, executes a command on the system. 2021-05-22 15:08:10 teut but the thing is that this hour=15  i e, 3 pm   needs to be set by the Admin user 2021-05-22 15:08:23 <-- ov3rmind0-7 (~over0-07@unaffiliated/ov3rmind) has quit (Client Quit) 2021-05-22 15:08:43 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 15:08:49 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-22 15:08:54 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-22 15:09:09 <-- stevieh (~skrodzki@p2e58495f.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-22 15:09:24 --> salitos (~contagiou@154.123.145.12) has joined #python 2021-05-22 15:09:44 --> xa0s_ (~xa0s@mab.sdf.org) has joined #python 2021-05-22 15:09:47 amogorkon huhuhu, that's, like, a billion dollar question 2021-05-22 15:09:52 morgandark teut, doesnt datetime allow you to create your own datetime objects? 2021-05-22 15:09:55 <-- tete_ (~John@2a02:168:859e::c60) has quit (Remote host closed the connection) 2021-05-22 15:09:57 ChrisWarrick teut: okay, store this time in the database? 2021-05-22 15:10:27 teut I m using a global variable for that 2021-05-22 15:10:50 <-- is_null (~jpic@pdpc/supporter/professional/is-null) has quit (Ping timeout: 265 seconds) 2021-05-22 15:10:54 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-22 15:10:59 <-- Laibsch (~Laibsch@2.243.101.200) has quit (Ping timeout: 246 seconds) 2021-05-22 15:11:05 <-- mexen (uid495612@gateway/web/irccloud.com/x-mkjryniypxvjtrjo) has quit 2021-05-22 15:11:09 huhuhu I don't have a billion dollars. 2021-05-22 15:11:13 teut database, well I will have to think 2021-05-22 15:11:46 ChrisWarrick teut: an admin user can’t set global variables 2021-05-22 15:11:57 morgandark teut, you could just create a time object using datetime.time, https://docs.python.org/3/library/datetime.html#time-objects 2021-05-22 15:11:58 --> brickfat (~brickfat@unaffiliated/brickfat) has joined #python 2021-05-22 15:12:02 ChrisWarrick teut: an admin user can put stuff in the database 2021-05-22 15:12:03 amogorkon huhuhu, it's about the amount of money big tech companies have been investing over many years into this question 2021-05-22 15:12:14 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-22 15:12:27 teut yes, but this data is not uniform 2021-05-22 15:12:37 amogorkon huhuhu, do you have a specific problem you want to solve with this? 2021-05-22 15:12:51 teut https://bpa.st/YWKQ 2021-05-22 15:12:51 <-- contagious_meow (~contagiou@154.123.14.251) has quit (Ping timeout: 260 seconds) 2021-05-22 15:13:33 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Ping timeout: 240 seconds) 2021-05-22 15:13:46 teut the CLOSING_TIMES is a list of tuples of datetime objects here 2021-05-22 15:13:48 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-22 15:14:14 teut the form data wont be saved if the date that the user selects lies between this interval 2021-05-22 15:14:31 teut the admin has to set these date schedules 2021-05-22 15:14:44 teut not you only tell if database is needed 2021-05-22 15:14:49 amogorkon huhuhu, if you have a single cmd or so you want to execute, it might be doable 2021-05-22 15:15:11 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 246 seconds) 2021-05-22 15:15:24 --> ffledgling (~ffledglin@unaffiliated/ffledgling) has joined #python 2021-05-22 15:16:04 morgandark teut, is that for a order book? 2021-05-22 15:16:17 teut for shares purchase sell 2021-05-22 15:17:06 amogorkon huhuhu, if you want to go general-purpose you might want to look into alexa API or something similar 2021-05-22 15:17:06 <-- salitos (~contagiou@154.123.145.12) has quit (Read error: Connection reset by peer) 2021-05-22 15:17:15 morgandark teut, the exchange will handle that window for you usually... idk tbh, im not sure what youre trying to do here. the order book usually handles the queue for matching trades for you, so i guess thats why im confused 2021-05-22 15:17:16 --> phasetwo (~phasetwo@2601:602:8d80:4e50:38e8:7ffb:6fca:8d05) has joined #python 2021-05-22 15:17:23 --> is_null (~jpic@pdpc/supporter/professional/is-null) has joined #python 2021-05-22 15:17:25 huhuhu amogorkon, I could compare two audio files and do something like that based on it. But how? After all, I have to recognize if the audio data is a word. When does it begin and when it ends. 2021-05-22 15:17:49 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::c78) has quit (Ping timeout: 250 seconds) 2021-05-22 15:18:00 --> contagious_meow (~contagiou@197.156.190.181) has joined #python 2021-05-22 15:18:02 teut queue? 2021-05-22 15:18:13 teut do I need to use a queue? 2021-05-22 15:18:26 --> CombatVet (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-22 15:18:26 <-- hif2 (hifi@m.vi.fi) has quit (Remote host closed the connection) 2021-05-22 15:18:42 teut there are multiple User types here 2021-05-22 15:18:51 amogorkon huhuhu, https://realpython.com/python-speech-recognition/ 2021-05-22 15:18:58 --> freebench (~freebench@92.253.251.129) has joined #python 2021-05-22 15:19:02 teut An Employee, an admin, Relatives 2021-05-22 15:19:06 huhuhu amogorkon, Are there any libraries in Python to play with audio? 2021-05-22 15:19:06 --> hif2 (hifi@m.vi.fi) has joined #python 2021-05-22 15:19:09 morgandark teut, when im trading, i can usually see a order book depending on the exchange. most api's even include accessing this as a stream for you. when the order is executed, it responds with a timestamp for you 2021-05-22 15:19:09 teut Employees* 2021-05-22 15:19:50 teut yes that is the second thing that I have to do 2021-05-22 15:19:56 huhuhu amogorkon, thank You :) 2021-05-22 15:20:27 amogorkon huhuhu, you're welcome, but it's just the beginning, there is a *lot* of stuff 2021-05-22 15:20:27 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 15:20:43 morgandark teut, in your code, you're manually handling what the order book already does for you. and in most cases it will respond with a timestamp once the order is executed. 2021-05-22 15:20:56 teut I have subclassed  User   in my code 2021-05-22 15:21:03 teut django's default User 2021-05-22 15:21:26 <-- CordialCatto (cordialcat@gateway/vpn/privateinternetaccess/cordialcatto) has quit (Quit: Konversation terminated!) 2021-05-22 15:21:36 teut there is no API here 2021-05-22 15:21:45 morgandark teut, i feel confused. i guess a better question is what is it that your trying to accomplish here? 2021-05-22 15:21:49 ChrisWarrick teut: why does the subclassing matter? 2021-05-22 15:22:20 --> Zenox67 (~neocore@84.17.43.152) has joined #python 2021-05-22 15:22:34 teut so lets say you are a customer(modelled as Relative) ,  and you want to buy shares 2021-05-22 15:22:43 ChrisWarrick teut: you have multiple user subclasses? 2021-05-22 15:22:48 teut yes 2021-05-22 15:22:53 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-22 15:23:01 <-- contagious_meow (~contagiou@197.156.190.181) has quit (Read error: Connection reset by peer) 2021-05-22 15:23:13 teut class Admin(User),   class Relative(User) 2021-05-22 15:23:17 <-- YoungPotato (~user@c-67-186-254-165.hsd1.ut.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-22 15:23:21 <-- nizda (~nizda@2600:1700:23c0:3e30:1530:655b:57f7:7b38) has quit (Quit: Quit) 2021-05-22 15:23:28 --> contagious_meow (~contagiou@197.156.190.133) has joined #python 2021-05-22 15:23:55 teut you will only be able to buy shares if the current datetime is not in closing times 2021-05-22 15:24:05 teut that CLOSING_TIMES 2021-05-22 15:24:08 <-- ffledgling (~ffledglin@unaffiliated/ffledgling) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 15:24:14 ChrisWarrick teut: this is going to be a huge mess 2021-05-22 15:24:20 ChrisWarrick teut: don’t use subclassing for user permissions 2021-05-22 15:24:21 teut why so? 2021-05-22 15:24:43 ChrisWarrick teut: you’ll end up with two database tables for users, two groups of IDs for users, all in all - an unmanageable and broken mess 2021-05-22 15:24:53 --> ffledgling (~ffledglin@unaffiliated/ffledgling) has joined #python 2021-05-22 15:24:56 ChrisWarrick teut: django has a fairly reasonable permissions system 2021-05-22 15:25:09 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 15:25:12 morgandark ChrisWarrick, that can be mitigated a with a nosql setup 2021-05-22 15:25:16 teut ya someone told me this use permissions, but then after switching code back and forth 6 months ago , I finally found that this was best 2021-05-22 15:25:17 ChrisWarrick morgandark: nonsense 2021-05-22 15:25:34 --> arf` (~user_name@trois.potager.org) has joined #python 2021-05-22 15:25:34 ChrisWarrick teut: do you have any objects owned by a user? how do you handle that? 2021-05-22 15:26:18 ChrisWarrick morgandark: django requires a relational database, and nosql databases cause more problems than they solve 2021-05-22 15:26:43 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 15:27:04 --> kloudi (~kloudi@46.165.228.68) has joined #python 2021-05-22 15:27:15 teut https://bpa.st/F64A 2021-05-22 15:27:19 morgandark im still trying to understand what the goal is here lol... im not worried about user classes and tiered session rn... 2021-05-22 15:27:28 teut i dont know what that means 2021-05-22 15:28:19 ChrisWarrick teut: uh, that feels like super broken design with data duplication 2021-05-22 15:28:41 <-- hif2 (hifi@m.vi.fi) has quit (Remote host closed the connection) 2021-05-22 15:28:53 --> hif2 (hifi@m.vi.fi) has joined #python 2021-05-22 15:28:53 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-22 15:28:54 teut the admin has to manage all these users, he can add , remove users, so there is too much interaction between all these users 2021-05-22 15:28:59 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 15:29:31 teut the employees can add  remove the relatives,  create an account for their relatives 2021-05-22 15:29:32 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-22 15:29:54 teut I already spend 6 months on this last summer 2021-05-22 15:29:55 ChrisWarrick teut: To fix your original problem: create a ClosingTimes entity, store a start and end time as TimeFields, query the ClosingTimes entity when you need to, and do the filtering 2021-05-22 15:30:17 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 15:30:43 morgandark ChrisWarrick, i would say the database implementation is wholly design dependent. nosql does help with scaling and rdbms are useful in vertical scaling... its rigid. i would say neither are really superior to the other and is totally context dependent. 2021-05-22 15:31:12 teut and what to do about the constraint that  portal should only allow purchase if  current time < 3 pm 2021-05-22 15:31:13 teut ? 2021-05-22 15:31:25 teut this 3 pm will also be put by the admin 2021-05-22 15:31:38 teut through the gui/html 2021-05-22 15:31:52 <-- dbrownns (adfc2120@host-173-252-33-32.public.eastlink.ca) has quit (Quit: Connection closed) 2021-05-22 15:31:59 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 246 seconds) 2021-05-22 15:32:17 teut this data can't be put in that entity that you are talking about 2021-05-22 15:32:29 teut so another table for a single attribute? 2021-05-22 15:32:55 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 15:34:17 hogarius teut: 3 p.m. would be the scheduled time for the transaction? 2021-05-22 15:34:35 <-- aslicedbanjo (~aslicedba@host31-48-148-121.range31-48.btcentralplus.com) has quit (Quit: Leaving.) 2021-05-22 15:35:10 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-22 15:35:58 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 265 seconds) 2021-05-22 15:36:23 teut yes 2021-05-22 15:36:36 amogorkon am i correct in my assumption that with mod = imp.new_module(name); exec(compile(code, name, "exec"), mod.__dict__), i could initialize the module globals before actually executing the code and importing it? 2021-05-22 15:36:36 teut no trasactions are allowed beyond 3 2021-05-22 15:36:46 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 260 seconds) 2021-05-22 15:37:05 --> magla (~gelignite@55d4fab1.access.ecotel.net) has joined #python 2021-05-22 15:37:15 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-22 15:37:25 <-- Peyam (~Peyam@c83-250-236-236.bredband.tele2.se) has quit (Ping timeout: 265 seconds) 2021-05-22 15:37:31 amogorkon or is there some caveat i'm missing? 2021-05-22 15:37:41 --> Saradt (573f5ab7@unaffiliated/saradt) has joined #python 2021-05-22 15:38:57 teut I was thinking to make a file SIDE_EFFECTS.py and define some globals which can be changed at runtime, by the admin,   don't globals work that way, i.e, the admin modifies them and then the next customer will face the new rules 2021-05-22 15:39:30 teut otherwise using tables for everything, I m not very familiar woth that idea 2021-05-22 15:39:33 teut with* 2021-05-22 15:39:47 --> mangold (~mangold@198.98.183.57) has joined #python 2021-05-22 15:40:34 morgandark teut, as far as users go, you should have a base class for a simple user interface. the rest of the users can inherit from that base class. theres nothing wrong with that because it reduces duplicate code. just make sure the users have methods that handle their respective rights. 2021-05-22 15:41:03 teut ya and that's named as User 2021-05-22 15:41:03 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 15:41:15 teut that's derived from AbstractBaseUser 2021-05-22 15:41:44 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 15:43:01 morgandark teut, im still lost on what youre trying to do though... just a simple explanation on the end goal 2021-05-22 15:43:28 morgandark what do you want the app to do? what is its purpose and use? 2021-05-22 15:43:49 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 15:44:20 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-22 15:44:24 teut thannks ChrisWarrick , I just realised, the datetimes can be completely put by the Admin, ie date and time. Maybe he'll have to do extra work  but good for him 2021-05-22 15:44:39 teut so I can follow your table suggestion 2021-05-22 15:44:39 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-22 15:44:46 amogorkon what's the simplest way of turning a file into a bytes object? 2021-05-22 15:44:56 teut bytes(f) 2021-05-22 15:45:03 teut amogorkon 2021-05-22 15:45:40 amogorkon thanks, but it seems that doesn't work in my cae 2021-05-22 15:45:42 amogorkon s 2021-05-22 15:46:07 teut BytesIO.read() 2021-05-22 15:46:12 teut read(f) 2021-05-22 15:46:18 teut then getvalue() 2021-05-22 15:46:46 --> bsdbandit-01 (~bsdbandit@2607:fb90:e924:1954:a8e8:b426:10ff:69a6) has joined #python 2021-05-22 15:46:50 bjs amogorkon: a bytes object is immutable whereas a file is a mutable thing 2021-05-22 15:46:56 <-- bsdbandit-01 (~bsdbandit@2607:fb90:e924:1954:a8e8:b426:10ff:69a6) has quit (Read error: Connection reset by peer) 2021-05-22 15:47:00 bjs amogorkon: so... read the file in bytes mode? 2021-05-22 15:47:26 amogorkon i did open the file in "rb" 2021-05-22 15:47:27 amogorkon exec(compile(file, name, "exec"), mod.__dict__) 2021-05-22 15:47:27 amogorkon TypeError: compile() arg 1 must be a string, bytes or AST object 2021-05-22 15:47:28 teut do you know about  "wb"  ? 2021-05-22 15:47:36 amogorkon doesn't work.. 2021-05-22 15:47:38 bjs amogorkon: files have a read method 2021-05-22 15:47:55 amogorkon ohhh, how could i forget 2021-05-22 15:47:57 <-- Wu (~wu@254.red-83-52-60.dynamicip.rima-tde.net) has quit (Quit: leaving) 2021-05-22 15:48:01 amogorkon ha! 2021-05-22 15:48:02 --> herbas (~herbas@88.118.170.138) has joined #python 2021-05-22 15:48:04 amogorkon nice :p 2021-05-22 15:48:06 --> Wu (~wu@254.red-83-52-60.dynamicip.rima-tde.net) has joined #python 2021-05-22 15:48:10 amogorkon now we're talking 2021-05-22 15:48:16 morgandark with open('filename.ext', 'wb') as file: file.read() 2021-05-22 15:48:26 amogorkon yeah, don't need write access 2021-05-22 15:48:41 morgandark amogorkon, its just an example 2021-05-22 15:50:31 <-- yeticheese (~yetichees@193.160.245.45) has quit (Remote host closed the connection) 2021-05-22 15:50:32 amogorkon holy crap, it works :) 2021-05-22 15:50:38 amogorkon exactly as i thought 2021-05-22 15:50:53 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Quit: Leaving) 2021-05-22 15:51:10 --> yeticheese (~yetichees@193.160.245.45) has joined #python 2021-05-22 15:51:14 amogorkon injecting module-globals before importing is a piece of cake 2021-05-22 15:51:17 <-- BakaKuna (~Thunderbi@86-89-65-191.fixed.kpn.net) has quit (Ping timeout: 260 seconds) 2021-05-22 15:51:49 teut btw,    to which module  ClosedDates  belong to  , Admin's models.py or  Relatives's models.py   ChrisWarrick? 2021-05-22 15:52:08 teut class ClosedDates :   start =    ;   end = 2021-05-22 15:52:23 teut a models.Model 2021-05-22 15:52:24 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-22 15:52:43 --> Teacup (~qteacup@unaffiliated/teacup) has joined #python 2021-05-22 15:53:16 teut a major confusion which I face always when type types of objects are accessing a resource 2021-05-22 15:53:21 <-- amerlyq (~weechat@unaffiliated/amerlyq) has quit (Quit: amerlyq) 2021-05-22 15:53:34 teut many types* 2021-05-22 15:54:04 amogorkon this really works.. no more jumping through hoops and passing around references backwards 2021-05-22 15:54:10 amogorkon neat. 2021-05-22 15:54:14 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-22 15:54:36 --> Jinxtrr (~Jinxtrr@2600:6c4a:737f:ef8d:9f28:381:ced3:8f9a) has joined #python 2021-05-22 15:55:06 <-- yeticheese (~yetichees@193.160.245.45) has quit (Ping timeout: 240 seconds) 2021-05-22 15:55:45 amogorkon bjs should be made into a clippy AI 2021-05-22 15:55:58 <-- hif2 (hifi@m.vi.fi) has quit (Remote host closed the connection) 2021-05-22 15:56:08 amogorkon immortalized 2021-05-22 15:56:10 --> hif2 (hifi@m.vi.fi) has joined #python 2021-05-22 15:56:23 bjs amogorkon: to be fair, remembering that files have a read method is not something that required me 2021-05-22 15:56:25 bjs i just happened to be here 2021-05-22 15:56:41 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 15:57:20 <-- lakrass (~lakrass@5.18.84.94) has quit (Client Quit) 2021-05-22 15:57:50 <-- vfC (fC@cetialphafive.com) has quit (Quit: cetialphafive.com - From hell's heart, I stab at thee. For hate's sake, I spit my last breath at thee.) 2021-05-22 15:57:51 amogorkon true 2021-05-22 15:58:29 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-22 15:58:41 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-22 15:59:23 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 15:59:46 Saradt Hi Humanoids!! .. I have multiple dataset with a timestamp, and a list of enumerable values. What would be a good graph choice for graphing the "change in which enum values were there"? It's not just one value per timestamp, there might be multiple. 2021-05-22 16:00:25 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 16:00:34 mefistofeles Saradt: how many different value options are there? 2021-05-22 16:01:04 Saradt depending on dataset, between 3 and 10. 2021-05-22 16:01:09 <-- Jinxtrr (~Jinxtrr@2600:6c4a:737f:ef8d:9f28:381:ced3:8f9a) has quit (Quit: I'm Out! Have a good one!) 2021-05-22 16:01:18 mefistofeles so I guess you could do something like vertical axis with value and horizontal with time 2021-05-22 16:01:25 mefistofeles some kind of timeline basically 2021-05-22 16:01:35 Saradt So, a line if it was there, and no line if it was not? 2021-05-22 16:02:04 <-- Jubejubilee (~lushlush@modemcable007.71-58-74.mc.videotron.ca) has quit (Remote host closed the connection) 2021-05-22 16:02:31 Saradt This was something I considered. A horizontal line per value, and a line to indicate presence or not. I guess it's worth a try. 2021-05-22 16:03:58 mefistofeles Saradt: https://i0.wp.com/flowingdata.com/wp-content/uploads/2017/10/Story-Curves.png 2021-05-22 16:04:04 mefistofeles something like the bottom part of that one 2021-05-22 16:04:36 Saradt Oh yeah, more like bars than lines. That's a good idea. Thanks mefistofeles. I'll give that a try. 2021-05-22 16:06:28 --> vfC (fC@cetialphafive.com) has joined #python 2021-05-22 16:07:30 <-- vfC (fC@cetialphafive.com) has quit (Client Quit) 2021-05-22 16:07:41 --> vfC (fC@cetialphafive.com) has joined #python 2021-05-22 16:10:01 --> stormkl (b0282103@gateway/web/cgi-irc/kiwiirc.com/ip.176.40.33.3) has joined #python 2021-05-22 16:10:54 <-- Rudd0 (~Rudd0@185.189.115.103) has quit (Ping timeout: 260 seconds) 2021-05-22 16:11:46 <-- cthulchu (~cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-22 16:12:21 <-- mangold (~mangold@198.98.183.57) has quit (Ping timeout: 260 seconds) 2021-05-22 16:12:39 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 16:12:57 --> Intruder777 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-22 16:13:33 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 16:13:38 <-- causasui (~causasui@wikipedia/causa-sui) has quit (Ping timeout: 246 seconds) 2021-05-22 16:13:58 --> yeticheese (~yetichees@193.160.245.44) has joined #python 2021-05-22 16:14:18 <-- Seirdy (~Seirdy@206.217.205.65) has quit (Quit: exiting 3.2-dev) 2021-05-22 16:14:19 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-22 16:14:32 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 16:14:38 <-- palooka-jock (~mike@45.126.44.146) has quit (Ping timeout: 265 seconds) 2021-05-22 16:14:52 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 16:15:26 <-- Monet (~woostundy@106.11.35.195) has quit (Ping timeout: 240 seconds) 2021-05-22 16:15:31 <-- Intruder777 (~Intruder7@unaffiliated/intruder777) has left #python 2021-05-22 16:15:47 <-- iryd (~jamesm@c-174-63-230-105.hsd1.ga.comcast.net) has quit (Quit: Leaving.) 2021-05-22 16:16:59 --> salitos (~contagiou@197.156.190.236) has joined #python 2021-05-22 16:17:01 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-22 16:17:09 --> Jinxtrr (~Jinxtrr@2600:6c4a:737f:ef8d:6742:8097:ef7c:9432) has joined #python 2021-05-22 16:17:17 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 16:18:06 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 16:18:12 <-- Jinxtrr (~Jinxtrr@2600:6c4a:737f:ef8d:6742:8097:ef7c:9432) has quit (Client Quit) 2021-05-22 16:18:56 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 16:19:04 <-- panikovsky (~panikovsk@46.61.92.247) has quit (Quit: Leaving) 2021-05-22 16:19:19 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 16:19:52 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-22 16:19:56 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 246 seconds) 2021-05-22 16:19:57 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 16:20:22 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 16:20:31 <-- contagious_meow (~contagiou@197.156.190.133) has quit (Ping timeout: 260 seconds) 2021-05-22 16:20:36 --> mangold (~mangold@198.98.183.39) has joined #python 2021-05-22 16:21:11 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 16:21:19 <-- herbas (~herbas@88.118.170.138) has quit (Quit: herbas) 2021-05-22 16:24:14 <-- t1054Gues (crazyed@wrongplanet/CrazyEddy) has quit (Quit: Reconnecting) 2021-05-22 16:25:53 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 246 seconds) 2021-05-22 16:26:42 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 16:27:18 <-- teut (7aa1a83a@unaffiliated/teut) has quit (Quit: Connection closed) 2021-05-22 16:28:07 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 16:28:44 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 16:29:11 --> nubonix (uid492751@gateway/web/irccloud.com/x-yikvwrjbyzlnezmx) has joined #python 2021-05-22 16:29:39 nubonix was hoping for some help with client side websockets (websockets secure) code + traceback https://bpa.st/JY3A 2021-05-22 16:29:57 nubonix i can create a connection, but i keep getting disconnected 2021-05-22 16:30:17 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 16:30:19 --> Peyam (~Peyam@c83-250-236-236.bredband.tele2.se) has joined #python 2021-05-22 16:30:27 nubonix im copying the messages that im sending via the browser to the websocket, and recreating them in python 2021-05-22 16:30:29 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-22 16:30:44 nubonix but seems im still doing something wrong 2021-05-22 16:31:09 nubonix was able to do this with another secure websocket... that is really really similar... but seems im missing something with this one 2021-05-22 16:31:27 <-- Jerrynicki (~niklas@p200300f57723aa0019ce515357b156db.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-22 16:31:36 <-- czer0 (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has quit (Ping timeout: 260 seconds) 2021-05-22 16:31:53 <-- Saradt (573f5ab7@unaffiliated/saradt) has quit (Quit: Connection closed) 2021-05-22 16:31:54 <-- Peyam (~Peyam@c83-250-236-236.bredband.tele2.se) has quit (Client Quit) 2021-05-22 16:32:17 <-- hif2 (hifi@m.vi.fi) has quit (Remote host closed the connection) 2021-05-22 16:32:26 --> t1054Gues (crazyed@wrongplanet/CrazyEddy) has joined #python 2021-05-22 16:32:29 --> hif2 (hifi@m.vi.fi) has joined #python 2021-05-22 16:33:13 <-- ffe4 (~ffe4@200116b82cd4ca0099efcaf3f4321fd7.dip.versatel-1u1.de) has quit (Ping timeout: 250 seconds) 2021-05-22 16:33:17 <-- qwerty1793 (~qwerty179@90.255.172.175) has quit (Ping timeout: 260 seconds) 2021-05-22 16:33:58 --> ^Zer0^ (~toaster@ip-64-66-194-183.wireless.static.fire2wire.com) has joined #python 2021-05-22 16:34:25 --> IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has joined #python 2021-05-22 16:34:48 IoannisJVM Hello,i have this function https://dpaste.org/intK 2021-05-22 16:34:54 IoannisJVM that returns a list 2021-05-22 16:35:08 IoannisJVM how can i iterate over each object of the list? 2021-05-22 16:35:23 KirkMcDonald IoannisJVM: for ems in get_EMS(): 2021-05-22 16:35:32 IoannisJVM all the methods that i tried return me just a list as a single obkjc 2021-05-22 16:35:37 IoannisJVM object( 2021-05-22 16:35:40 amogorkon this importlib stuff is utterly confusing. with imp.new_module getting deprecated for importlib.util.module_from_spec(spec), how could i set its module globals before it is actually executed? 2021-05-22 16:35:52 --> gitesh_ (uid423739@gateway/web/irccloud.com/x-gkzwabrhvsjxfxza) has joined #python 2021-05-22 16:36:42 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:38e8:7ffb:6fca:8d05) has quit (Ping timeout: 258 seconds) 2021-05-22 16:36:47 IoannisJVM KirkMcDonald still i'm getting a single object 2021-05-22 16:36:48 amogorkon with imp.new_module it works (except, somehow i accidentally worked around its __dict__ being read-only earlier) 2021-05-22 16:37:21 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 16:37:57 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 16:38:08 <-- salitos (~contagiou@197.156.190.236) has quit (Quit: Leaving) 2021-05-22 16:38:46 amogorkon do i have to build a custom loader now? 2021-05-22 16:39:23 --> visage_ (~visage_@unaffiliated/visage/x-6658724) has joined #python 2021-05-22 16:41:23 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 16:41:26 <-- mangold (~mangold@198.98.183.39) has quit (Ping timeout: 240 seconds) 2021-05-22 16:42:17 --> Intruder777|1 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-22 16:42:23 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 16:42:31 <-- Intruder777|1 (~Intruder7@unaffiliated/intruder777) has quit (Remote host closed the connection) 2021-05-22 16:42:42 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-22 16:43:06 --> Intruder777 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-22 16:43:25 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 16:43:35 nubonix ah... seems auth isnt valid for some reason 2021-05-22 16:44:11 amogorkon god, there's sooo much getting deprecated around the import machinery, it's hard to track down what you *can* use.. 2021-05-22 16:44:19 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-22 16:44:26 <-- dreamon (~dreamon@unaffiliated/dreamon) has quit (Ping timeout: 246 seconds) 2021-05-22 16:44:26 <-- philr (~phil@118.211.93.148) has quit (Ping timeout: 260 seconds) 2021-05-22 16:44:39 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-22 16:45:46 <-- axisys (~axisys@unaffiliated/axisys) has quit (Quit: leaving) 2021-05-22 16:45:52 --> stevieh (~skrodzki@p2e58495f.dip0.t-ipconnect.de) has joined #python 2021-05-22 16:46:54 <-- brickfat (~brickfat@unaffiliated/brickfat) has quit (Quit: Leaving) 2021-05-22 16:48:37 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-22 16:48:37 <-- axisys (~axisys@unaffiliated/axisys) has quit (Client Quit) 2021-05-22 16:49:20 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-22 16:50:35 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-22 16:51:09 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-22 16:51:29 amogorkon where can i find the implementation of "import _imp # Just the builtin component, NOT the full Python module"? 2021-05-22 16:51:44 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-22 16:52:00 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 16:52:15 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 16:53:24 --> mangold (~mangold@198.98.183.147) has joined #python 2021-05-22 16:55:15 --> Nightwing52 (~Thunderbi@71-221-234-170.dvnp.qwest.net) has joined #python 2021-05-22 16:56:20 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 246 seconds) 2021-05-22 16:56:34 <-- axisys (~axisys@unaffiliated/axisys) has quit (Client Quit) 2021-05-22 16:56:41 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 16:57:46 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 16:58:01 ChrisWarrick amogorkon: most likely in impmodule.c 2021-05-22 16:58:37 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 16:59:38 --> TechSmurf (~tech@unaffiliated/techsmurf) has joined #python 2021-05-22 17:00:02 --> Laibsch (~Laibsch@2a01:c23:6840:7000:f2de:f1ff:fed0:6548) has joined #python 2021-05-22 17:00:21 <-- mnemonicj (~mnemonicj@208.110.121.49.ciktel-dhcp.cipherkey.net) has quit (Quit: bye!) 2021-05-22 17:00:30 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 17:00:39 KirkMcDonald IoannisJVM: It is not clear to me what you mean. 2021-05-22 17:00:45 <-- mboehn (mathias@hh1.nuxis.org) has quit (Quit: fix) 2021-05-22 17:01:31 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 265 seconds) 2021-05-22 17:01:38 amogorkon ChrisWarrick, no luck.. nvm, i'll just focus on what i have, disregard deprecation warnings and get it to work for 3.8 for now 2021-05-22 17:02:32 --> mboehn (mathias@hh1.nuxis.org) has joined #python 2021-05-22 17:03:03 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-22 17:03:17 amogorkon it looks like 3/4 of all import stuff is slated for deprecation in 3.11 code now 2021-05-22 17:03:48 --> Death916 (~UserNick@unaffiliated/death916) has joined #python 2021-05-22 17:04:23 amogorkon so whatever i do to make it work now, i'll have change it in the future probably anyways 2021-05-22 17:05:41 --> v4skie (~v4skie@78.175.57.98) has joined #python 2021-05-22 17:06:17 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 17:06:58 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 17:07:15 <-- Intruder777 (~Intruder7@unaffiliated/intruder777) has quit (Read error: Connection reset by peer) 2021-05-22 17:07:16 --> beatleboy07 (~beatleboy@c-24-17-50-149.hsd1.wa.comcast.net) has joined #python 2021-05-22 17:07:22 IoannisJVM KirkMcDonald i can't loop through each element of the list 2021-05-22 17:07:23 --> Intruder777|1 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-22 17:07:49 BrenBarn Can you show an example of your code and what its doing and what you want it to do instead 2021-05-22 17:09:10 <-- sazawal (~sazawal@2409:4043:2e13:7bc:d999:9315:7d85:6d8f) has quit (Quit: Leaving) 2021-05-22 17:09:15 <-- mangold (~mangold@198.98.183.147) has quit (Ping timeout: 265 seconds) 2021-05-22 17:10:12 Angs I'd like to create a data type/structure to store a string and integer (typedef{ char *string, int counter}foo; in C}. It will store a unique string and integer value how many time it is used on a large file (50+ million lines). I will use the data type as a dynamic array (append new data) and it would be heavily used in searches. What data type/struct would be the best for the performance (speed)? Would it be the best to use data classes with array 2021-05-22 17:10:12 Angs or list? 2021-05-22 17:11:04 amogorkon Angs, do you need to modify the string and integer or is that fixed? 2021-05-22 17:11:16 amogorkon within that data struct 2021-05-22 17:11:19 KirkMcDonald IoannisJVM: What are you trying, and in what way is it failing? 2021-05-22 17:12:22 --> ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has joined #python 2021-05-22 17:12:40 amogorkon Angs, what you want sounds like a tuple to me, but if since tuples are immutable, you'd need to work around that 2021-05-22 17:12:43 Angs amogorkon, I'd only need to update the integer value (counter). String would remain constant, but I'd use the string to compare the new entry within the array/list if it exists 2021-05-22 17:12:51 IoannisJVM KirkMcDonald i need to get the id of each object from the list 2021-05-22 17:13:04 amogorkon Angs, you could build a class with __slots__ 2021-05-22 17:13:15 BrenBarn @Angs: how are you going to use this array? 2021-05-22 17:13:28 BrenBarn like do you need to look things up via the string or what? 2021-05-22 17:13:40 KirkMcDonald IoannisJVM: I mean, presumably you have some code? And it is giving some output which is other than what you expect? 2021-05-22 17:13:44 amogorkon then you can update freely the counter and it's reasonably lightweight 2021-05-22 17:14:45 <-- Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has quit (Quit: Teleporting ...) 2021-05-22 17:14:47 --> Intruder777 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-22 17:14:50 <-- Intruder777|1 (~Intruder7@unaffiliated/intruder777) has quit (Read error: Connection reset by peer) 2021-05-22 17:14:53 Angs BrenBarn, yes my code would be reading a very large text file (list), and then it will start from line 1, if the text is not on the list, then it will add it to the array. If the code finds the string, then it will increase the counter. 2021-05-22 17:15:17 BrenBarn I mean one way to do that is not use an array of structs at all, just use a dictionary directly 2021-05-22 17:15:19 Angs it would be searching and comparing the string array/list all the time 2021-05-22 17:15:24 --> Akuli (~akuli@dy4743l-8tkk---36c6ny-4.rev.dnainternet.fi) has joined #python 2021-05-22 17:15:27 BrenBarn or defaultdict or Counter 2021-05-22 17:15:36 Akuli can someone recommend a guide for distributing a python wrapper to a c library on pypi? 2021-05-22 17:15:41 --> clf59 (~clf59@2601:603:1580:3970:b9e4:b6c4:d5a3:9686) has joined #python 2021-05-22 17:15:58 Akuli not assuming that everyone have a working c compiler 2021-05-22 17:16:04 Angs since I'd be dealing with a very large file, performance would be important 2021-05-22 17:16:05 amogorkon BrenBarn, that's a good idea, Counter is pretty much what Angs is looking for 2021-05-22 17:16:39 --> Seirdy (~Seirdy@2606:2e00:8007:1::a32e) has joined #python 2021-05-22 17:16:46 IoannisJVM KirkMcDonald https://dpaste.org/f4Cy here's the code,it might help you 2021-05-22 17:16:48 Akuli i can figure out how to run the builds on github actions, but like what commands to use for uploading it all etc? 2021-05-22 17:16:54 amogorkon Angs, https://docs.python.org/3/library/collections.html#collections.Counter 2021-05-22 17:17:22 <-- ferdna (~ferdna@cpe-69-23-148-218.elp.res.rr.com) has quit (Quit: Leaving) 2021-05-22 17:17:29 Angs amogorkon, BrenBarn. Thanks a lot I will read further about it. 2021-05-22 17:17:30 BrenBarn you're returning inside the loop, which ends your function 2021-05-22 17:17:36 KirkMcDonald IoannisJVM: You are returning the first id. 2021-05-22 17:17:40 BrenBarn (Ioannis) 2021-05-22 17:17:41 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Ping timeout: 246 seconds) 2021-05-22 17:18:11 --> xvx (~xvx@185.48.63.106) has joined #python 2021-05-22 17:18:24 IoannisJVM yeah,i need to return the id of each object 2021-05-22 17:19:06 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-22 17:19:29 BrenBarn a function can only return one thing 2021-05-22 17:19:33 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-22 17:19:36 BrenBarn if you want to return all IDs, build up a list of the IDs and then return that 2021-05-22 17:19:54 amogorkon you can return multiple things as a tuple 2021-05-22 17:20:01 Angs one last quick question, I am using this code snippet to read the file and process it line by line to use memory more efficiently. I wonder if you see a better way to do it. https://pastebin.com/N3wMqcme 2021-05-22 17:20:07 infobob https://bpaste.net/Z65Q (repasted for Angs) 2021-05-22 17:20:24 amogorkon sometimes i build a custom namedtuple for function returns as a kind of API 2021-05-22 17:20:43 amogorkon Result = nametuple.. 2021-05-22 17:20:46 BrenBarn a tuple is one thing :-) 2021-05-22 17:20:48 amogorkon named* 2021-05-22 17:21:01 <-- Intruder777 (~Intruder7@unaffiliated/intruder777) has quit (Read error: Connection reset by peer) 2021-05-22 17:21:20 --> Intruder777 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-22 17:21:35 amogorkon and then there is yield :p 2021-05-22 17:21:45 amogorkon but that's a whole different discussion 2021-05-22 17:21:56 --> mnemonicj (~mnemonicj@208.110.121.49.ciktel-dhcp.cipherkey.net) has joined #python 2021-05-22 17:21:58 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 17:22:13 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-22 17:24:34 <-- axisys (~axisys@unaffiliated/axisys) has quit (Client Quit) 2021-05-22 17:25:18 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-22 17:25:26 <-- mwilson (~mwilson@2600:8801:c800:e2b:211:32ff:fe3a:17f7) has quit (Quit: Quit) 2021-05-22 17:25:31 <-- axisys (~axisys@unaffiliated/axisys) has quit (Client Quit) 2021-05-22 17:25:53 --> mwilson (~mwilson@2600:8801:c800:e2b:211:32ff:fe3a:17f7) has joined #python 2021-05-22 17:26:04 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 17:26:28 --> axisys (~axisys@unaffiliated/axisys) has joined #python 2021-05-22 17:26:49 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 17:27:08 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-22 17:27:37 <-- SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has quit (Ping timeout: 265 seconds) 2021-05-22 17:28:35 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 265 seconds) 2021-05-22 17:29:20 <-- englosh (3eb0fd0b@pool-11.253.176.62.dynamic.wobline-ip.de) has quit (Quit: Connection closed) 2021-05-22 17:29:21 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 260 seconds) 2021-05-22 17:29:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 17:31:18 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-22 17:32:04 --> AlanMD (~alan@86.124.30.63) has joined #python 2021-05-22 17:32:07 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 17:32:36 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 17:32:50 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 17:33:10 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 17:33:47 <-- wafflehunter (~wafflehun@pd9e18985.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-22 17:34:08 --> axisys_ (~axisys@unaffiliated/axisys) has joined #python 2021-05-22 17:34:27 <-- DHARMAKAYA (~DHARMAKAY@189.174.247.195) has quit (Quit: Turning off a portion of this simulation.) 2021-05-22 17:35:10 <-- clf59 (~clf59@2601:603:1580:3970:b9e4:b6c4:d5a3:9686) has left #python ("Textual IRC Client: www.textualapp.com") 2021-05-22 17:35:11 <-- kosh (~kosh@p200300d08f49f600c985d75ae0434e0b.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-22 17:35:23 <-- manti7 (~manti7@176.10.104.94) has quit (Quit: WeeChat 3.1) 2021-05-22 17:35:39 <-- magla (~gelignite@55d4fab1.access.ecotel.net) has quit (Quit: Stay safe!) 2021-05-22 17:35:45 --> DHARMAKA_ (~DHARMAKAY@189.174.247.195) has joined #python 2021-05-22 17:38:15 <-- stevieh (~skrodzki@p2e58495f.dip0.t-ipconnect.de) has quit (Ping timeout: 265 seconds) 2021-05-22 17:38:41 KirkMcDonald IoannisJVM: When you return, the function ends. So I'm not clear on what this would mean. 2021-05-22 17:39:24 <-- axisys_ (~axisys@unaffiliated/axisys) has quit (Quit: leaving) 2021-05-22 17:39:36 --> axisys_ (~axisys@unaffiliated/axisys) has joined #python 2021-05-22 17:39:59 <-- Laibsch (~Laibsch@2a01:c23:6840:7000:f2de:f1ff:fed0:6548) has quit (Ping timeout: 260 seconds) 2021-05-22 17:42:13 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 17:42:24 --> nomic (~nomic@2a00:23c6:9910:1201:31db:5668:ab4:bb0) has joined #python 2021-05-22 17:42:24 <-- axisys_ (~axisys@unaffiliated/axisys) has quit (Client Quit) 2021-05-22 17:43:32 <-- nomic (~nomic@2a00:23c6:9910:1201:31db:5668:ab4:bb0) has quit (Client Quit) 2021-05-22 17:43:43 <-- DHARMAKA_ (~DHARMAKAY@189.174.247.195) has quit (Quit: Turning off a portion of this simulation.) 2021-05-22 17:44:16 --> Asmodee[T] (~Asmodee@gateway/tor-sasl/asmodee) has joined #python 2021-05-22 17:44:20 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-05-22 17:44:26 <-- AlanMD (~alan@86.124.30.63) has quit (Ping timeout: 240 seconds) 2021-05-22 17:44:39 --> zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has joined #python 2021-05-22 17:45:06 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 260 seconds) 2021-05-22 17:45:19 <-- axisys (~axisys@unaffiliated/axisys) has quit (Quit: leaving) 2021-05-22 17:45:35 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 17:46:13 bjs maybe `yield` instead of return is exactly what IoannisJVM is looking for 2021-05-22 17:46:39 bjs IoannisJVM: why not make another list of ids and return that list? (or use yield). does that achieve what you want? 2021-05-22 17:47:04 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 17:50:37 --> Skyz (43538427@ool-43538427.dyn.optonline.net) has joined #python 2021-05-22 17:51:59 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Ping timeout: 246 seconds) 2021-05-22 17:52:44 --> dbrownns (adfc2120@host-173-252-33-32.public.eastlink.ca) has joined #python 2021-05-22 17:52:46 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Ping timeout: 240 seconds) 2021-05-22 17:54:30 <-- Angs (Angs@gateway/vpn/mullvad/angs) has quit (Quit: Leaving) 2021-05-22 17:55:33 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 17:56:46 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 17:56:46 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 17:57:20 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 17:59:07 <-- stormkl (b0282103@gateway/web/cgi-irc/kiwiirc.com/ip.176.40.33.3) has quit (Quit: Connection closed) 2021-05-22 17:59:50 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 18:02:08 IoannisJVM @bjs 2021-05-22 18:02:37 IoannisJVM bjs then i need to map each id with each id of objects of another list 2021-05-22 18:02:38 <-- spithash (~spithash@gateway/tor-sasl/spithash) has quit (Quit: Libera) 2021-05-22 18:02:38 IoannisJVM in a dict 2021-05-22 18:03:57 bjs IoannisJVM: well, you need to decide *What* you want this iter_over_the_list to do 2021-05-22 18:04:19 <-- mwilson (~mwilson@2600:8801:c800:e2b:211:32ff:fe3a:17f7) has quit (Quit: Quit) 2021-05-22 18:04:20 <-- Derailed (~tom@ec2-13-211-184-100.ap-southeast-2.compute.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 18:04:20 --> Rudd0 (~Rudd0@185.189.115.103) has joined #python 2021-05-22 18:04:50 bjs IoannisJVM: it can only return 1 thing (and guessing from the @app.route in your example, I guess it's supposed to return some kind of http result). You need to decide what you want in it 2021-05-22 18:05:04 --> vimart (~vimart@148.252.128.191) has joined #python 2021-05-22 18:05:06 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 18:05:41 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 18:06:33 --> Derailed (~tom@ec2-13-211-184-100.ap-southeast-2.compute.amazonaws.com) has joined #python 2021-05-22 18:07:29 <-- Derailed (~tom@ec2-13-211-184-100.ap-southeast-2.compute.amazonaws.com) has quit (Client Quit) 2021-05-22 18:08:07 --> phasetwo (~phasetwo@2601:602:8d80:4e50:c831:c57f:1097:ad47) has joined #python 2021-05-22 18:08:17 --> Derailed (~tom@ec2-13-211-184-100.ap-southeast-2.compute.amazonaws.com) has joined #python 2021-05-22 18:08:39 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 18:09:40 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 265 seconds) 2021-05-22 18:12:38 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 246 seconds) 2021-05-22 18:13:09 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-22 18:14:02 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-22 18:14:11 <-- IoannisJVM (4f676907@79.103.105.7.dsl.dyn.forthnet.gr) has quit (Quit: Connection closed) 2021-05-22 18:14:20 <-- yeticheese (~yetichees@193.160.245.44) has quit 2021-05-22 18:15:25 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 18:17:53 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-22 18:18:13 --> CodeMouse92 (~CodeMouse@unaffiliated/codemouse) has joined #python 2021-05-22 18:18:40 --> eN_Joy (~eN_Joy@wsip-72-213-93-155.ok.ok.cox.net) has joined #python 2021-05-22 18:19:06 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 240 seconds) 2021-05-22 18:19:27 --> Sheilong (uid293653@gateway/web/irccloud.com/x-bzlewbjicnfctdvm) has joined #python 2021-05-22 18:19:56 <-- pytorch (~pytorch@c-69-254-208-5.hsd1.fl.comcast.net) has quit (Quit: Leaving.) 2021-05-22 18:22:32 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 18:22:47 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 18:24:02 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 258 seconds) 2021-05-22 18:24:19 --> jaziz (~jaziz@unaffiliated/jaziz) has joined #python 2021-05-22 18:24:34 --> DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has joined #python 2021-05-22 18:25:02 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Client Quit) 2021-05-22 18:25:59 <-- Skyz (43538427@ool-43538427.dyn.optonline.net) has quit (Quit: Connection closed) 2021-05-22 18:26:26 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-22 18:26:49 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 18:27:37 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 18:27:42 <-- v4skie (~v4skie@78.175.57.98) has quit (Quit: Leaving) 2021-05-22 18:28:37 <-- Rakyts (~Rakyts@82.209.41.102) has quit (Quit: Konversation terminated!) 2021-05-22 18:29:33 <-- Vornicus (~Vornicus@2603-8000-5d07-7ef0-1975-db05-8fce-3a97.res6.spectrum.com) has quit (Read error: Connection reset by peer) 2021-05-22 18:29:43 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 18:30:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 18:32:26 <-- Intruder777 (~Intruder7@unaffiliated/intruder777) has quit (Ping timeout: 240 seconds) 2021-05-22 18:32:33 <-- zampano (~zampano@unaffiliated/zampano) has quit (Quit: leaving) 2021-05-22 18:33:10 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-22 18:33:50 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 265 seconds) 2021-05-22 18:33:55 <-- esselfe (~steph@modemcable086.138-22-96.mc.videotron.ca) has quit (Quit: Going home) 2021-05-22 18:34:02 <-- zebrag (~inkbottle@alagny-155-1-30-195.w83-200.abo.wanadoo.fr) has quit (Quit: Konversation terminated!) 2021-05-22 18:34:06 <-- pinusc (~pinusc@unaffiliated/pinusc) has quit (Ping timeout: 240 seconds) 2021-05-22 18:34:31 --> mwilson (~mwilson@li159-72.members.linode.com) has joined #python 2021-05-22 18:34:39 --> zampano (~zampano@unaffiliated/zampano) has joined #python 2021-05-22 18:34:58 <-- mikeike2 (~j@gateway/tor-sasl/doh) has quit (Remote host closed the connection) 2021-05-22 18:35:16 --> mikeike2 (~j@gateway/tor-sasl/doh) has joined #python 2021-05-22 18:35:51 -- anonfunc is now known as anonfunc[m] 2021-05-22 18:36:02 --> Intruder777 (~Intruder7@unaffiliated/intruder777) has joined #python 2021-05-22 18:37:12 -- anonfunc[m] is now known as anonfunc 2021-05-22 18:37:25 greyblue9 amogorkon: regarding importlib/imp/_imp/implib deprecation treadmill: *facepalm* 2021-05-22 18:37:45 amogorkon heh 2021-05-22 18:38:09 <-- bazul (bazul@38.189.189.46.rev.vodafone.pt) has quit (Remote host closed the connection) 2021-05-22 18:38:12 amogorkon at least it feels like i'm getting *somewhere* now 2021-05-22 18:39:06 --> tim__ (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-22 18:39:09 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 265 seconds) 2021-05-22 18:39:16 --> MR-D05 (~textual@2601:14f:4500:3990:6419:625:bf5f:f935) has joined #python 2021-05-22 18:39:38 amogorkon it's a minefield though, need to tread very carefully 2021-05-22 18:39:43 greyblue9 how long till you join the dark side and just use ctypes :p 2021-05-22 18:39:58 amogorkon :p 2021-05-22 18:40:07 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 18:40:40 greyblue9 AKA mappingproxy-begone 2021-05-22 18:41:16 <-- vdamewood (~vdamewood@unaffiliated/vdamewood) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-22 18:41:49 -- anonfunc is now known as anonfunc[m] 2021-05-22 18:41:59 -- anonfunc[m] is now known as anonfunc 2021-05-22 18:42:14 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Remote host closed the connection) 2021-05-22 18:43:26 <-- t-mart (~t-mart@unaffiliated/t-mart) has quit (Ping timeout: 260 seconds) 2021-05-22 18:44:06 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-22 18:44:13 <-- Intruder777 (~Intruder7@unaffiliated/intruder777) has quit (Quit: Leaving) 2021-05-22 18:44:27 greyblue9 i've never looked back, haha 2021-05-22 18:44:28 <-- braincrash (~braincras@113-148-128-083.dynamic.caiway.nl) has quit (Ping timeout: 265 seconds) 2021-05-22 18:44:56 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-22 18:45:07 <-- Left_Turn (~Matthew@unaffiliated/turn-left/x-3739067) has quit (Ping timeout: 258 seconds) 2021-05-22 18:46:39 --> brnwx (~brnwx@45.144.113.236) has joined #python 2021-05-22 18:47:39 --> Gerula (~Gerula@unaffiliated/gerula) has joined #python 2021-05-22 18:48:39 greyblue9 startup is the other thing they can't leave alone 2021-05-22 18:49:23 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Ping timeout: 246 seconds) 2021-05-22 18:50:43 amogorkon well, once i got this sorted out, it should be possible to pass arbitrary module globals into an about-to-be-imported module, which irked me for a long while 2021-05-22 18:51:53 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-22 18:52:24 amogorkon i got it working for simple modules, but the devil's in the details 2021-05-22 18:53:23 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-22 18:53:26 amogorkon it's funky to have a module that only contains "print(a)" with no definition of a :p 2021-05-22 18:55:02 amogorkon i've also got an internal dependency graph in mind, tracing the context of use() so it's possible to track back 2021-05-22 18:55:18 --> brainium (~brainium@unaffiliated/brainium) has joined #python 2021-05-22 18:56:12 <-- mogad0n (mogad0n@unaffiliated/mogad0n) has quit (Quit: mogad0n) 2021-05-22 18:56:55 <-- karlpinc (~user@karlpinc-net.karlpinc.com) has quit (Remote host closed the connection) 2021-05-22 18:56:55 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 18:57:04 <-- nyloc (548254b3@p548254b3.dip0.t-ipconnect.de) has quit (Quit: Connection closed) 2021-05-22 18:57:19 <-- Jantz (~IceChat95@2407:7000:8d04:100:742d:dc:5a71:cb46) has quit (Read error: Connection reset by peer) 2021-05-22 18:57:46 amogorkon which i think will be very useful if someone actually wanted to use online sources 2021-05-22 18:58:44 <-- kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Ping timeout: 245 seconds) 2021-05-22 19:00:02 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 19:00:50 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-22 19:01:41 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-22 19:02:22 amogorkon while i regard online sources mostly as proof-of-concept, the problem with passing globals into about-to-be-imported modules is an issue that surfaces once in a while 2021-05-22 19:04:20 amogorkon i guess any larger project has to deal with that 2021-05-22 19:04:34 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 19:04:54 --> kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-22 19:05:11 <-- kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-22 19:05:50 <-- jinsun (~quassel@122.175.162.109) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-22 19:06:13 --> jinsun (~quassel@122.175.162.109) has joined #python 2021-05-22 19:07:14 --> esselfe (~steph@bras-base-mtrlpq426kw-grc-10-67-68-163-169.dsl.bell.ca) has joined #python 2021-05-22 19:07:19 amogorkon if it's possible to pass in module-globals on import, many diamond-import scenarios can probably resolved quite easily 2021-05-22 19:07:28 amogorkon be* 2021-05-22 19:08:25 <-- Akuli (~akuli@dy4743l-8tkk---36c6ny-4.rev.dnainternet.fi) has quit (Quit: Leaving) 2021-05-22 19:08:36 <-- anonfunc (~anonfunc@anquietas.harting.hosting) has quit (Quit: Leaving) 2021-05-22 19:08:42 --> kolbrich (~quassel@185-118-198-140.clients.srvfarm.net) has joined #python 2021-05-22 19:09:23 --> drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has joined #python 2021-05-22 19:09:52 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-22 19:10:53 --> bomb-on (~bomb-on@194.144.47.113) has joined #python 2021-05-22 19:11:25 --> thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has joined #python 2021-05-22 19:11:30 <-- thunderbirdtr__ (~thunderbi@fedora/thunderbirdtr) has quit (Remote host closed the connection) 2021-05-22 19:12:36 <-- gitesh_ (uid423739@gateway/web/irccloud.com/x-gkzwabrhvsjxfxza) has quit (Quit: Connection closed for inactivity) 2021-05-22 19:13:46 <-- thunderbirdtr (~thunderbi@fedora/thunderbirdtr) has quit (Ping timeout: 240 seconds) 2021-05-22 19:14:12 <-- CrowX- (~CrowX-@185.167.46.134) has quit (Remote host closed the connection) 2021-05-22 19:16:35 --> fb_ (~freebench@92.253.251.129) has joined #python 2021-05-22 19:16:45 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Ping timeout: 240 seconds) 2021-05-22 19:17:28 --> CombatVet (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-22 19:19:16 <-- freebench (~freebench@92.253.251.129) has quit (Ping timeout: 265 seconds) 2021-05-22 19:20:08 --> ralof (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has joined #python 2021-05-22 19:21:32 --> Naan (~Naan@unaffiliated/naan) has joined #python 2021-05-22 19:22:35 --> Wulf4 (~Wulf@unaffiliated/wulf) has joined #python 2021-05-22 19:23:06 <-- ralof_ (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-22 19:23:32 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 19:24:02 <-- Narrat (~Narrat@p200300df5f15f23206ea56fffe2e7cdc.dip0.t-ipconnect.de) has quit (Quit: They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.) 2021-05-22 19:26:02 <-- Wulf (~Wulf@unaffiliated/wulf) has quit (Ping timeout: 265 seconds) 2021-05-22 19:26:02 -- Wulf4 is now known as Wulf 2021-05-22 19:26:25 <-- jinsun (~quassel@122.175.162.109) has quit (Ping timeout: 260 seconds) 2021-05-22 19:27:24 <-- MR-D05 (~textual@2601:14f:4500:3990:6419:625:bf5f:f935) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 19:27:24 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 19:28:17 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 19:28:46 -- mwilson is now known as mwilson_ 2021-05-22 19:29:14 --> MR-D05 (~textual@2601:14f:4500:3990:48c9:7728:3a34:54ab) has joined #python 2021-05-22 19:29:16 -- mwilson_ is now known as mwilson 2021-05-22 19:29:27 <-- MR-D05 (~textual@2601:14f:4500:3990:48c9:7728:3a34:54ab) has quit (Client Quit) 2021-05-22 19:29:51 <-- MatrixBot-MS_org (~matrixbot@matrix.michaelsasser.org) has quit (Remote host closed the connection) 2021-05-22 19:30:16 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 19:31:34 --> MatrixBot-MS_org (~matrixbot@matrix.michaelsasser.org) has joined #python 2021-05-22 19:32:33 <-- bomb-on (~bomb-on@194.144.47.113) has quit (Quit: SO LONG, SUCKERS!) 2021-05-22 19:33:36 <-- Monet (~woostundy@106.11.35.195) has quit (Ping timeout: 260 seconds) 2021-05-22 19:35:38 <-- CalimeroTeknik (~calimero@185.13.36.50) has quit (Killed (Sigyn (Spam is off topic on freenode.))) 2021-05-22 19:36:09 --> NeilG (~NeilG@192.222.196.111) has joined #python 2021-05-22 19:37:37 <-- oliverwiegers (~oliverwie@p57ab4db9.dip0.t-ipconnect.de) has quit (Ping timeout: 260 seconds) 2021-05-22 19:37:47 <-- LucaTM (~LucaTM@unaffiliated/lucatm) has quit (Quit: To infinity and beyond...) 2021-05-22 19:39:38 --> MR-D05 (~textual@2601:14f:4500:3990:84f9:35ab:c90e:1731) has joined #python 2021-05-22 19:40:29 <-- MR-D05 (~textual@2601:14f:4500:3990:84f9:35ab:c90e:1731) has quit (Client Quit) 2021-05-22 19:41:27 <-- Nightwing52 (~Thunderbi@71-221-234-170.dvnp.qwest.net) has quit (Quit: Later!) 2021-05-22 19:44:00 --> MR-D05 (~textual@2601:14f:4500:3990:f401:b6b5:f7d7:f563) has joined #python 2021-05-22 19:44:37 <-- dbristow (~dbristow@nylug/member/dbristow) has quit (Ping timeout: 260 seconds) 2021-05-22 19:46:36 <-- MR-D05 (~textual@2601:14f:4500:3990:f401:b6b5:f7d7:f563) has quit (Client Quit) 2021-05-22 19:47:09 --> qomiter (~qomiter@pool-173-64-29-231.bflony.fios.verizon.net) has joined #python 2021-05-22 19:48:04 --> MR-D05 (~textual@2601:14f:4500:3990:a8a2:dd22:d8ec:711f) has joined #python 2021-05-22 19:48:06 <-- brnwx (~brnwx@45.144.113.236) has quit (Ping timeout: 240 seconds) 2021-05-22 19:48:35 <-- MR-D05 (~textual@2601:14f:4500:3990:a8a2:dd22:d8ec:711f) has quit (Client Quit) 2021-05-22 19:50:12 <-- palasso (~palasso@unaffiliated/palasso) has quit (Remote host closed the connection) 2021-05-22 19:54:48 --> brickfat (~brickfat@unaffiliated/brickfat) has joined #python 2021-05-22 19:56:38 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 19:57:13 --> pinusc (~pinusc@unaffiliated/pinusc) has joined #python 2021-05-22 19:58:01 --> MR-D05 (~textual@2601:14f:4500:3990:1c50:d0fe:fa9b:274d) has joined #python 2021-05-22 19:58:22 <-- MR-D05 (~textual@2601:14f:4500:3990:1c50:d0fe:fa9b:274d) has quit (Client Quit) 2021-05-22 19:59:19 greyblue9 amogorkon: good problem to have a solution for tho 2021-05-22 20:00:22 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 20:00:31 --> carljm (~carljm@django/moderator/carljm) has joined #python 2021-05-22 20:00:39 greyblue9 in fact, it might be worth doing a gist or something with just that, I could see other uses for it 2021-05-22 20:00:52 <-- frostschutz (~frostschu@2a01:c22:c855:7600:6600:12a6:3497:b40a) has quit (Remote host closed the connection) 2021-05-22 20:01:33 <-- DeadTOm (~deadtom@2001:4b98:dc0:41:216:3eff:fe58:44d0) has quit (Quit: DeadTOm) 2021-05-22 20:01:49 <-- carljm (~carljm@django/moderator/carljm) has quit (Client Quit) 2021-05-22 20:02:47 <-- vimart (~vimart@148.252.128.191) has quit (Quit: WeeChat 2.8) 2021-05-22 20:03:56 <-- pulsar12 (~quassel@a95-92-60-61.cpe.netcabo.pt) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-22 20:04:06 --> MR-D05 (~textual@2601:14f:4500:3990:c4db:df17:b325:1a57) has joined #python 2021-05-22 20:04:17 <-- rinzewind (~chema@unaffiliated/rinzewind) has quit (Quit: leaving) 2021-05-22 20:04:19 <-- MR-D05 (~textual@2601:14f:4500:3990:c4db:df17:b325:1a57) has quit (Client Quit) 2021-05-22 20:04:59 <-- Fauve (~Fauve@unaffiliated/fauve) has quit (Ping timeout: 246 seconds) 2021-05-22 20:05:31 <-- Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has quit (Quit: WeeChat 3.1) 2021-05-22 20:06:49 greyblue9 just making sure I follow, this is before the module gets exec'ed, and you can set module-globals into its namespace 2021-05-22 20:11:17 greyblue9 amogorkon: ah, now I see why you were bringing up the AST before 2021-05-22 20:11:40 --> nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has joined #python 2021-05-22 20:16:49 <-- pinusc (~pinusc@unaffiliated/pinusc) has quit (Ping timeout: 260 seconds) 2021-05-22 20:18:15 greyblue9 guess everyone is asleep :p 2021-05-22 20:18:36 -- Liungeir is now known as gx 2021-05-22 20:18:49 -- gx is now known as forgotmynick 2021-05-22 20:18:54 -- forgotmynick is now known as forgotmynick2 2021-05-22 20:20:41 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-22 20:21:01 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit 2021-05-22 20:21:57 <-- Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has quit (Ping timeout: 260 seconds) 2021-05-22 20:23:46 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 260 seconds) 2021-05-22 20:23:59 --> long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has joined #python 2021-05-22 20:23:59 <-- MatrixBot-MS_org (~matrixbot@matrix.michaelsasser.org) has quit (Remote host closed the connection) 2021-05-22 20:24:18 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 20:24:40 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-22 20:25:40 --> MatrixBot-MS_org (~matrixbot@matrix.michaelsasser.org) has joined #python 2021-05-22 20:26:51 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 20:27:14 -- mwilson is now known as mwilson-ip 2021-05-22 20:28:00 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 20:28:13 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 20:28:31 -- mwilson-ip is now known as mwilson 2021-05-22 20:28:31 --> cellofellow (~user@166.70.50.58) has joined #python 2021-05-22 20:29:36 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 20:29:41 <-- ffledgling (~ffledglin@unaffiliated/ffledgling) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 20:30:20 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 20:30:41 <-- cellofellow (~user@166.70.50.58) has quit (Remote host closed the connection) 2021-05-22 20:31:57 --> cellofellow (~user@166.70.50.58) has joined #python 2021-05-22 20:32:31 <-- cellofellow (~user@166.70.50.58) has left #python 2021-05-22 20:32:38 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 246 seconds) 2021-05-22 20:32:57 --> cellofellow (~user@166.70.50.58) has joined #python 2021-05-22 20:32:58 --> MR-D05 (~textual@2601:14f:4500:3990:6830:17f7:f35a:73d4) has joined #python 2021-05-22 20:33:14 <-- MR-D05 (~textual@2601:14f:4500:3990:6830:17f7:f35a:73d4) has quit (Client Quit) 2021-05-22 20:35:15 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-22 20:35:55 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-22 20:36:26 <-- cellofellow (~user@166.70.50.58) has left #python 2021-05-22 20:37:26 --> MR-D05 (~textual@2601:14f:4500:3990:b8b3:87fe:f91f:b7a0) has joined #python 2021-05-22 20:38:33 <-- huhuhu (~huhuhu@062122115128.gdansk.vectranet.pl) has quit (Quit: Leaving) 2021-05-22 20:38:48 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 20:39:26 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Ping timeout: 240 seconds) 2021-05-22 20:39:28 <-- MR-D05 (~textual@2601:14f:4500:3990:b8b3:87fe:f91f:b7a0) has quit (Client Quit) 2021-05-22 20:39:33 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-22 20:40:37 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-22 20:40:39 --> AskerX (1f3993a0@31.57.147.160) has joined #python 2021-05-22 20:44:17 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-22 20:44:23 <-- r4ulrm (~raul@mail.klonal.com.ar) has quit (Read error: Connection reset by peer) 2021-05-22 20:45:10 <-- NTBLB (~NTBLB@unaffiliated/ntblb) has quit (Quit: Do Only Good Everyday) 2021-05-22 20:45:29 <-- BillyZane (~BillyZane@unaffiliated/billyzane) has quit (Remote host closed the connection) 2021-05-22 20:46:08 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-22 20:46:28 --> BillyZane (~BillyZane@unaffiliated/billyzane) has joined #python 2021-05-22 20:46:37 <-- morgandark (averydark@gateway/vpn/protonvpn/averydark) has quit (Quit: Leaving) 2021-05-22 20:48:12 --> amo (~amogorkon@port-83-236-35-4.dynamic.as20676.net) has joined #python 2021-05-22 20:49:29 --> ralof_ (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has joined #python 2021-05-22 20:51:26 <-- amogorkon (~amogorkon@port-92-196-30-227.dynamic.as20676.net) has quit (Ping timeout: 240 seconds) 2021-05-22 20:52:51 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-22 20:53:02 <-- ralof (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has quit (Ping timeout: 265 seconds) 2021-05-22 20:56:55 <-- lakrass (~lakrass@5.18.84.94) has quit (Quit: WeeChat 3.1) 2021-05-22 20:56:56 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 20:57:44 <-- brickfat (~brickfat@unaffiliated/brickfat) has quit (Quit: Leaving) 2021-05-22 20:57:45 <-- frrs (uid130725@gateway/web/irccloud.com/x-abfbtchuzuffpedw) has quit (Quit: Connection closed for inactivity) 2021-05-22 20:58:01 <-- thiras (~thiras@unaffiliated/thiras) has quit (Quit: Leaving) 2021-05-22 20:58:24 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-22 20:59:01 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 21:00:41 --> r4ulrm (~raul@mail.klonal.com.ar) has joined #python 2021-05-22 21:01:02 <-- bamdad (~bamdad@gateway/tor-sasl/bamdad) has quit (Remote host closed the connection) 2021-05-22 21:01:29 --> MR-D05 (~textual@2601:14f:4500:3990:f4ed:1b6f:5796:eb24) has joined #python 2021-05-22 21:01:37 cluelessperson_ greyblue9, hi 2021-05-22 21:01:43 cluelessperson_ what are you asking? 2021-05-22 21:02:28 cluelessperson_ module globals? well in a module1.py if you have a = 1 then do. import module1 you'll have access to module1.a yes 2021-05-22 21:02:35 <-- MR-D05 (~textual@2601:14f:4500:3990:f4ed:1b6f:5796:eb24) has quit (Client Quit) 2021-05-22 21:03:01 --> bamdad (~bamdad@gateway/tor-sasl/bamdad) has joined #python 2021-05-22 21:03:21 greyblue9 nothing, I was just noticing it was quiet for a couple hours 'cept for amogorkon and me. but thanks for volunteering :) 2021-05-22 21:03:23 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-22 21:03:57 <-- NeilG (~NeilG@192.222.196.111) has quit (Ping timeout: 260 seconds) 2021-05-22 21:06:31 greyblue9 cluelessperson_ : it's appreciated 2021-05-22 21:07:02 <-- boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has quit 2021-05-22 21:09:44 --> ralof (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has joined #python 2021-05-22 21:11:17 <-- d_olex (~d_olex@159.65.12.243) has quit (Read error: Connection reset by peer) 2021-05-22 21:12:32 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 246 seconds) 2021-05-22 21:12:49 <-- ralof_ (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has quit (Ping timeout: 260 seconds) 2021-05-22 21:13:12 <-- }ls{ (~kalle@unaffiliated/ls/x-8089558) has quit (Quit: real life interrupt) 2021-05-22 21:15:20 <-- Haudegen (~quassel@178.115.237.87.static.drei.at) has quit (Ping timeout: 246 seconds) 2021-05-22 21:17:00 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-22 21:17:03 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Remote host closed the connection) 2021-05-22 21:17:20 --> Xavierdarkness (~xavierdar@unaffiliated/xavierdarkness) has joined #python 2021-05-22 21:18:57 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-22 21:20:46 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 240 seconds) 2021-05-22 21:21:04 <-- PantelicGR (~PantelicG@unaffiliated/pantelicgr) has quit (Quit: Leaving) 2021-05-22 21:21:06 --> MR-D05 (~textual@2601:14f:4500:3990:dd48:c423:9c81:fc82) has joined #python 2021-05-22 21:21:35 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-22 21:22:38 <-- MR-D05 (~textual@2601:14f:4500:3990:dd48:c423:9c81:fc82) has quit (Client Quit) 2021-05-22 21:23:10 <-- d42 (~root@87-207-121-133.dynamic.chello.pl) has quit (Quit: ZNC - http://znc.in) 2021-05-22 21:23:58 <-- ov3rmind (~over0-07@unaffiliated/ov3rmind) has quit (Remote host closed the connection) 2021-05-22 21:24:01 --> d42 (~root@87-207-121-133.dynamic.chello.pl) has joined #python 2021-05-22 21:24:14 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-22 21:24:44 --> boB_K7IQ (~boB_K7IQ@c-73-254-117-91.hsd1.wa.comcast.net) has joined #python 2021-05-22 21:24:48 --> ralof_ (~ralof@dynamic-077-004-052-178.77.4.pool.telefonica.de) has joined #python 2021-05-22 21:25:06 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 21:25:52 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 21:26:26 <-- SwiftMatt (~Objective@2601:282:4300:3e:3184:81e9:3d72:f740) has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2021-05-22 21:26:46 cluelessperson_ greyblue9, well, that's just how variables are communicated in general, especially constants like that. 2021-05-22 21:26:46 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 21:26:46 --> MR-D05 (~textual@2601:14f:4500:3990:28d1:916c:cc4e:d5eb) has joined #python 2021-05-22 21:27:20 <-- MR-D05 (~textual@2601:14f:4500:3990:28d1:916c:cc4e:d5eb) has quit (Client Quit) 2021-05-22 21:27:46 <-- ralof (~ralof@dynamic-077-004-113-022.77.4.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-22 21:28:29 --> goobernut (~goobernut@cpe-70-95-18-182.san.res.rr.com) has joined #python 2021-05-22 21:28:59 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 246 seconds) 2021-05-22 21:29:02 <-- AskerX (1f3993a0@31.57.147.160) has quit (Ping timeout: 240 seconds) 2021-05-22 21:29:26 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-22 21:29:41 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 246 seconds) 2021-05-22 21:30:27 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 21:31:12 greyblue9 cluelessperson_: I suppose I'm more interested in, say, pre-populating some variables of module1, say ''a', so if you were to import module1 and it then accessed globals() (from module1.py) it would see 'a' 2021-05-22 21:31:26 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 260 seconds) 2021-05-22 21:31:47 nedbat greyblue9: in module1.py, put: a = 1 2021-05-22 21:32:39 --> Zy64Jw (~Zy64Jw@122.163.181.9) has joined #python 2021-05-22 21:33:21 greyblue9 well, it would be ideal to use module1 unmodified, like perhaps it's a third-party module 2021-05-22 21:34:24 greyblue9 i admit it might seem like a weird use-case 2021-05-22 21:35:33 <-- aleph- (~aleph@lobsters/Auditor/Church-) has quit (Quit: WeeChat info:version) 2021-05-22 21:35:51 greyblue9 like you know you can import and alter builtins' 2021-05-22 21:35:54 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-22 21:36:24 --> aleph- (~aleph@lobsters/Auditor/Church-) has joined #python 2021-05-22 21:36:40 greyblue9 that would have the effect on everything you import and your own program's namespace though if I'm not mistaken 2021-05-22 21:36:49 <-- goobernut (~goobernut@cpe-70-95-18-182.san.res.rr.com) has left #python ("Textual IRC Client: www.textualapp.com") 2021-05-22 21:37:16 <-- Zy64Jw (~Zy64Jw@122.163.181.9) has quit (Ping timeout: 260 seconds) 2021-05-22 21:39:08 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 246 seconds) 2021-05-22 21:39:34 greyblue9 https://www.irccloud.com/pastebin/57dYxi8H 2021-05-22 21:40:23 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-22 21:41:14 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:c831:c57f:1097:ad47) has quit (Ping timeout: 245 seconds) 2021-05-22 21:41:16 nedbat greyblue9: you can do: import module1; module1.a = 1 2021-05-22 21:42:20 greyblue9 nedbat yea, that would be a way 2021-05-22 21:42:54 greyblue9 I probably overthought it 2021-05-22 21:44:28 greyblue9 ok i remember the issue now, the problem there is that when you do your assignment, module1's code is done executing 2021-05-22 21:45:31 greyblue9 maybe the answer is "don't do that" :p 2021-05-22 21:46:15 --> MR-D05 (~textual@2601:14f:4500:3990:b0fc:c3ab:378d:1b02) has joined #python 2021-05-22 21:46:48 <-- deviantfero (~deviantfe@190.150.27.58) has quit (Quit: WeeChat 3.1) 2021-05-22 21:46:48 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 21:47:11 nedbat greyblue9: why is it a problem that the code is done? (btw, using my nick will get my attention) 2021-05-22 21:47:40 <-- MR-D05 (~textual@2601:14f:4500:3990:b0fc:c3ab:378d:1b02) has quit (Client Quit) 2021-05-22 21:48:52 --> SwiftMatt (~Objective@2601:282:4300:3e:3184:81e9:3d72:f740) has joined #python 2021-05-22 21:49:08 <-- SwiftMatt (~Objective@2601:282:4300:3e:3184:81e9:3d72:f740) has quit (Client Quit) 2021-05-22 21:51:02 greyblue9 nedbat: why indeed.. let me give that one some thought 2021-05-22 21:52:45 --> MR-D05 (~textual@2601:14f:4500:3990:dc38:3788:e155:9655) has joined #python 2021-05-22 21:53:30 <-- nemo_ (~nemo@unaffiliated/nemo/x-0958849) has quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) 2021-05-22 21:54:05 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-22 21:54:10 greyblue9 the application is for dependency injection/package import type sort of "helper/glue code" 2021-05-22 21:55:16 <-- MR-D05 (~textual@2601:14f:4500:3990:dc38:3788:e155:9655) has quit (Client Quit) 2021-05-22 21:55:31 <-- muntyan (49e1adbb@c-73-225-173-187.hsd1.wa.comcast.net) has quit (Quit: Connection closed) 2021-05-22 21:55:52 greyblue9 nedbat: still owe you a better answer but that gives you a preview 2021-05-22 21:56:08 nedbat greyblue9: ok 2021-05-22 21:56:14 --> nnonadsolnn (~goobernut@cpe-70-95-18-182.san.res.rr.com) has joined #python 2021-05-22 21:56:28 justanotheruser Hi, I'm in pyqt5 trying to apply an HTMLDelegate to a QListWidget. Problem is, the size hint appears to be based on the raw text rather than the rich text. I know this because `

text

` has much greater width when rendered than `

text

` despite the rendered object being of the same size. How can I set the sizeHint based on the /rendered/ html? 2021-05-22 21:56:30 justanotheruser Here is my delegate class https://privatebin.net/?57b9d3043ea03f69#C7ziMVavoZGpGCxSZtKp8CHU3KTcRwsYAy7VxaLfM5sE 2021-05-22 21:57:05 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 21:57:35 --> dbristow (~dbristow@nylug/member/dbristow) has joined #python 2021-05-22 21:58:29 justanotheruser seems the solution must involve looking at the size of the rendered object, but there doesn't appear to be a guarantee self.paint is called before self.sizeHint? 2021-05-22 22:00:21 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 22:00:55 --> MR-D05 (~textual@2601:14f:4500:3990:f89a:598a:986:8d5d) has joined #python 2021-05-22 22:01:21 <-- MR-D05 (~textual@2601:14f:4500:3990:f89a:598a:986:8d5d) has quit (Client Quit) 2021-05-22 22:02:04 greyblue9 justanotheruser: do you know what sets self.width? 2021-05-22 22:03:38 <-- ahadi (~ahadi@88.130.219.198) has quit (Ping timeout: 246 seconds) 2021-05-22 22:04:48 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-22 22:05:56 --> ahadi (~ahadi@89.244.125.117) has joined #python 2021-05-22 22:06:59 --> MR-D05 (~textual@2601:14f:4500:3990:4d92:7f71:d37c:c1b8) has joined #python 2021-05-22 22:08:21 <-- tm (~sinnlos@unaffiliated/tm) has quit (Ping timeout: 260 seconds) 2021-05-22 22:08:44 <-- MR-D05 (~textual@2601:14f:4500:3990:4d92:7f71:d37c:c1b8) has quit (Client Quit) 2021-05-22 22:10:34 --> YoungPotato (~user@c-67-186-254-165.hsd1.ut.comcast.net) has joined #python 2021-05-22 22:10:38 --> MR-D05 (~textual@2601:14f:4500:3990:545c:5ab:9604:cee9) has joined #python 2021-05-22 22:11:06 <-- MR-D05 (~textual@2601:14f:4500:3990:545c:5ab:9604:cee9) has quit (Client Quit) 2021-05-22 22:12:22 --> tm (~sinnlos@unaffiliated/tm) has joined #python 2021-05-22 22:13:46 --> ffledgling (~ffledglin@unaffiliated/ffledgling) has joined #python 2021-05-22 22:16:39 --> MR-D05 (~textual@2601:14f:4500:3990:14b5:c8f8:382a:9cc8) has joined #python 2021-05-22 22:17:03 <-- MR-D05 (~textual@2601:14f:4500:3990:14b5:c8f8:382a:9cc8) has quit (Client Quit) 2021-05-22 22:17:37 --> soft_concrete (~soft_ceme@unaffiliated/soft-cement/x-2125135) has joined #python 2021-05-22 22:18:44 --> brnwx (~brnwx@cpe-74-71-226-69.nyc.res.rr.com) has joined #python 2021-05-22 22:18:49 --> MR-D05 (~textual@2601:14f:4500:3990:20f0:5345:59f3:9bb9) has joined #python 2021-05-22 22:19:03 --> Fiji (~Fiji@unaffiliated/fiji) has joined #python 2021-05-22 22:20:07 <-- MR-D05 (~textual@2601:14f:4500:3990:20f0:5345:59f3:9bb9) has quit (Client Quit) 2021-05-22 22:21:21 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.1) 2021-05-22 22:21:52 greyblue9 At the bottom of this page there is a similar snippet for rendering an HTML-displaying widget, and they've provided a special sizeHint() - maybe that could give some ideas? 2021-05-22 22:21:56 greyblue9 https://newbedev.com/how-to-make-item-view-render-rich-html-text-in-qt 2021-05-22 22:22:26 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-22 22:22:46 <-- brnwx (~brnwx@cpe-74-71-226-69.nyc.res.rr.com) has quit (Ping timeout: 240 seconds) 2021-05-22 22:23:26 <-- thiras (~thiras@unaffiliated/thiras) has quit (Ping timeout: 240 seconds) 2021-05-22 22:23:32 <-- d42 (~root@87-207-121-133.dynamic.chello.pl) has quit (Quit: ZNC - http://znc.in) 2021-05-22 22:24:41 --> dntreou (~yakiza@178-147-210-231.haap.dm.cosmote.net) has joined #python 2021-05-22 22:25:52 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 22:26:06 --> d42 (~root@87-207-121-133.dynamic.chello.pl) has joined #python 2021-05-22 22:26:15 --> drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has joined #python 2021-05-22 22:26:44 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 22:27:16 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-22 22:27:46 <-- Monet (~woostundy@106.11.35.195) has quit (Ping timeout: 265 seconds) 2021-05-22 22:28:04 <-- YoungPotato (~user@c-67-186-254-165.hsd1.ut.comcast.net) has quit (Quit: ERC (IRC client for Emacs 27.2)) 2021-05-22 22:28:44 <-- drincruz (~adrian.cr@ool-44c748be.dyn.optonline.net) has quit (Ping timeout: 265 seconds) 2021-05-22 22:29:31 <-- visage_ (~visage_@unaffiliated/visage/x-6658724) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-22 22:30:06 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 240 seconds) 2021-05-22 22:30:28 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 22:30:41 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-22 22:30:45 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-22 22:30:54 --> pinusc (~pinusc@unaffiliated/pinusc) has joined #python 2021-05-22 22:32:46 <-- dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-22 22:33:38 --> dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has joined #python 2021-05-22 22:33:50 --> philr (~phil@118.211.93.148) has joined #python 2021-05-22 22:35:30 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-22 22:35:55 <-- cow[moo] (~asanger@c-69-244-155-110.hsd1.mi.comcast.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-22 22:36:42 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-22 22:38:05 ranran8888 hi i need transfer csv file from server to server how the easy way ? i try use pystp I was unable to install the package on the server 2021-05-22 22:38:07 --> cow[moo] (~asanger@c-69-244-155-110.hsd1.mi.comcast.net) has joined #python 2021-05-22 22:39:28 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-22 22:40:29 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 22:40:38 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-22 22:40:44 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-22 22:41:22 <-- drincruz_ (~adrian.cr@ec2-18-235-23-153.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 22:42:01 <-- Naan (~Naan@unaffiliated/naan) has left #python ("Leaving") 2021-05-22 22:43:07 --> zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has joined #python 2021-05-22 22:44:29 <-- dntreou (~yakiza@178-147-210-231.haap.dm.cosmote.net) has quit (Remote host closed the connection) 2021-05-22 22:45:39 <-- aleph- (~aleph@lobsters/Auditor/Church-) has quit (Quit: WeeChat info:version) 2021-05-22 22:46:29 --> aleph- (~aleph@lobsters/Auditor/Church-) has joined #python 2021-05-22 22:46:48 meejah ranran8888: "scp" probably 2021-05-22 22:47:32 ranran8888 its k i think i can setup sftp but i work fast and make stupid and destroit my server :x 2021-05-22 22:47:38 --> MR-D05 (~textual@2601:14f:4500:3990:a10a:deb6:fbee:a97b) has joined #python 2021-05-22 22:48:29 <-- MR-D05 (~textual@2601:14f:4500:3990:a10a:deb6:fbee:a97b) has quit (Client Quit) 2021-05-22 22:49:29 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 246 seconds) 2021-05-22 22:50:17 <-- cow[moo] (~asanger@c-69-244-155-110.hsd1.mi.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 22:51:10 --> Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-22 22:53:33 <-- brainium (~brainium@unaffiliated/brainium) has quit (Quit: Konversation terminated!) 2021-05-22 22:53:46 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-22 22:54:05 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-22 22:54:24 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-22 22:55:25 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-22 22:55:25 --> Jubejubilee (~lushlush@modemcable007.71-58-74.mc.videotron.ca) has joined #python 2021-05-22 22:57:01 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 22:59:49 --> desh (~desh@unaffiliated/desh) has joined #python 2021-05-22 23:00:17 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 23:01:16 <-- pinusc (~pinusc@unaffiliated/pinusc) has quit (Ping timeout: 260 seconds) 2021-05-22 23:02:01 <-- njt (~njt@zaph.org) has left #python 2021-05-22 23:02:19 <-- ffledgling (~ffledglin@unaffiliated/ffledgling) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-22 23:02:26 <-- ahadi (~ahadi@89.244.125.117) has quit (Ping timeout: 260 seconds) 2021-05-22 23:02:28 <-- Jubejubilee (~lushlush@modemcable007.71-58-74.mc.videotron.ca) has quit (Quit: leaving) 2021-05-22 23:02:46 <-- nnonadsolnn (~goobernut@cpe-70-95-18-182.san.res.rr.com) has left #python ("Textual IRC Client: www.textualapp.com") 2021-05-22 23:03:02 --> Jubejubilee (~lushlush@modemcable007.71-58-74.mc.videotron.ca) has joined #python 2021-05-22 23:03:04 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-22 23:04:03 --> ahadi (~ahadi@88.130.218.247) has joined #python 2021-05-22 23:05:08 <-- Jubejubilee (~lushlush@modemcable007.71-58-74.mc.videotron.ca) has quit (Client Quit) 2021-05-22 23:07:43 --> pinusc (~pinusc@unaffiliated/pinusc) has joined #python 2021-05-22 23:08:44 --> Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-22 23:08:47 --> av_ (uid87081@gateway/web/irccloud.com/x-pkujgpgutcvuissx) has joined #python 2021-05-22 23:10:01 <-- contingo (~textual@213.205.200.36) has quit (Quit: My supercomputing cluster has gone to sleep. ZZZzzz…) 2021-05-22 23:10:47 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 265 seconds) 2021-05-22 23:10:47 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Read error: Connection reset by peer) 2021-05-22 23:12:02 --> MR-D05 (~textual@2601:14f:4500:3990:7469:9e2:840:26ac) has joined #python 2021-05-22 23:12:14 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-22 23:12:21 <-- kakashiAL (~kakashiAL@ip-37-201-199-1.hsi13.unitymediagroup.de) has quit (Ping timeout: 260 seconds) 2021-05-22 23:13:14 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-22 23:13:25 --> SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-22 23:13:31 <-- MR-D05 (~textual@2601:14f:4500:3990:7469:9e2:840:26ac) has quit (Client Quit) 2021-05-22 23:13:40 <-- SallyAhaj_ (~sallyahaj@unaffiliated/sallyahaj) has quit (Remote host closed the connection) 2021-05-22 23:14:29 <-- chachasmooth (~chachasmo@unaffiliated/chachasmooth) has quit (Ping timeout: 250 seconds) 2021-05-22 23:15:08 <-- EGH (~EGH@185.25.195.104) has quit (Ping timeout: 265 seconds) 2021-05-22 23:15:43 --> HolyFishPaste90 (HolyFishPa@gateway/vpn/protonvpn/holyfishpaste90) has joined #python 2021-05-22 23:17:30 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-22 23:18:16 --> chachasmooth (~chachasmo@unaffiliated/chachasmooth) has joined #python 2021-05-22 23:18:40 --> Lord_of_Life_ (~Lord@unaffiliated/lord-of-life/x-0885362) has joined #python 2021-05-22 23:19:56 <-- Lord_of_Life (~Lord@unaffiliated/lord-of-life/x-0885362) has quit (Ping timeout: 260 seconds) 2021-05-22 23:20:03 -- Lord_of_Life_ is now known as Lord_of_Life 2021-05-22 23:20:28 <-- dez (uid92154@fedora/deSouza) has quit (Quit: Connection closed for inactivity) 2021-05-22 23:21:17 --> ByteChanger (6bb3ea79@gateway/web/cgi-irc/kiwiirc.com/ip.107.179.234.121) has joined #python 2021-05-22 23:21:23 ByteChanger Hi everyone! 2021-05-22 23:21:58 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Read error: Connection reset by peer) 2021-05-22 23:22:00 --> opsec (~opsec@opsec/opsec) has joined #python 2021-05-22 23:22:36 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-22 23:23:24 ByteChanger First off, I'm not a python programmer. I found a script that works great, but I'd like to modify it a bit. 2021-05-22 23:23:29 --> MR-D05 (~textual@2601:14f:4500:3990:6508:faad:a44e:4efa) has joined #python 2021-05-22 23:23:39 <-- MR-D05 (~textual@2601:14f:4500:3990:6508:faad:a44e:4efa) has quit (Client Quit) 2021-05-22 23:24:53 ByteChanger It runs through a file looking for a group tag, and prompts you to write a output file containing that group. You can add multiple groups by keep pressing Y to add, or you could add just one group by pressing Y and then N 30 times. 2021-05-22 23:25:32 ByteChanger I'd like it to just create a file for each group without prompting me 31 times. 2021-05-22 23:26:14 ByteChanger I tried to get it working, but ran into a problem... 2021-05-22 23:26:39 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-22 23:26:40 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 23:26:44 ByteChanger I pasted it here: https://pastebin.com/YGwa7fsy 2021-05-22 23:26:46 infobob https://bpaste.net/3VNQ (repasted for ByteChanger) 2021-05-22 23:27:33 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Quit: good riddance) 2021-05-22 23:27:57 --> anthepro (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-22 23:28:07 <-- pikapika (~pikapika@pika.powered.by.lunarbnc.net) has quit (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net) 2021-05-22 23:28:52 <-- bancroft (~bancroft@bras-base-mtrlpq3015w-grc-11-70-55-136-62.dsl.bell.ca) has quit (Remote host closed the connection) 2021-05-22 23:28:58 <-- anthepro (~anthepro@unaffiliated/anthepro) has quit (Client Quit) 2021-05-22 23:29:41 voldial I have a HTML file with some inline CSS, (a GET reponse), and I want to know if a element has CSS rules that apply to it. What's the right tool? selenium? 2021-05-22 23:29:52 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-22 23:30:31 <-- MrRobot7 (sid176400@gateway/web/irccloud.com/x-nxnsgrwtdcvtkmgd) has quit (Ping timeout: 250 seconds) 2021-05-22 23:30:42 <-- ironfroggy (sid495156@python/site-packages/ironfroggy) has quit (Ping timeout: 258 seconds) 2021-05-22 23:31:06 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-22 23:31:23 <-- auv5 (sid85402@gateway/web/irccloud.com/x-qnxmwqopzpgzqeoe) has quit (Ping timeout: 250 seconds) 2021-05-22 23:31:23 --> MR-D05 (~textual@2601:14f:4500:3990:5035:deba:e6fc:99e0) has joined #python 2021-05-22 23:31:28 --> sallyahaj (~sally@unaffiliated/sallyahaj) has joined #python 2021-05-22 23:31:35 <-- MR-D05 (~textual@2601:14f:4500:3990:5035:deba:e6fc:99e0) has quit (Client Quit) 2021-05-22 23:31:47 --> MrRobot7 (sid176400@gateway/web/irccloud.com/x-conlnzxiicrpptbo) has joined #python 2021-05-22 23:32:15 <-- niv (~niv@limbo.cypherpunks.io) has quit (Ping timeout: 250 seconds) 2021-05-22 23:32:53 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-22 23:33:19 <-- i0X (sid317981@gateway/web/irccloud.com/x-qjulqdcvgqcqzmjb) has quit (Ping timeout: 245 seconds) 2021-05-22 23:33:19 --> ironfroggy (sid495156@python/site-packages/ironfroggy) has joined #python 2021-05-22 23:33:33 <-- jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has quit (Ping timeout: 250 seconds) 2021-05-22 23:33:46 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-22 23:33:50 --> auv5 (sid85402@gateway/web/irccloud.com/x-dckuceenumfppkqs) has joined #python 2021-05-22 23:34:09 --> i0X (sid317981@gateway/web/irccloud.com/x-yhlpbmobkkvwxrmx) has joined #python 2021-05-22 23:34:26 --> jamea77 (~jamea77@177.239.80.39) has joined #python 2021-05-22 23:34:27 jamea77 hi all 2021-05-22 23:34:44 jamea77 how to export... all librarys config from python Pc1 to pc2? 2021-05-22 23:35:55 --> niv (~niv@limbo.cypherpunks.io) has joined #python 2021-05-22 23:36:00 --> pikapika (~pikapika@pika.powered.by.lunarbnc.net) has joined #python 2021-05-22 23:36:22 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-22 23:36:51 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 260 seconds) 2021-05-22 23:36:53 <-- mns (~mns@devuan/community/mns) has quit (Ping timeout: 265 seconds) 2021-05-22 23:37:05 --> anthepro (~anthepro@unaffiliated/anthepro) has joined #python 2021-05-22 23:38:22 --> purplex (~purplex@unaffiliated/purplex88) has joined #python 2021-05-22 23:38:50 <-- xvx (~xvx@185.48.63.106) has quit (Ping timeout: 246 seconds) 2021-05-22 23:39:22 --> Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has joined #python 2021-05-22 23:41:27 --> mns (~mns@devuan/community/mns) has joined #python 2021-05-22 23:43:45 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-22 23:44:34 <-- emerent (~quassel@p200300cd5703bb86ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds) 2021-05-22 23:45:55 --> emerent (~quassel@p200300cd5703bb91ba27ebfffed28a59.dip0.t-ipconnect.de) has joined #python 2021-05-22 23:45:57 --> MR-D05 (~textual@2601:14f:4500:3990:58e0:a851:ec99:d6) has joined #python 2021-05-22 23:46:11 --> stree (~stree@68.36.8.116) has joined #python 2021-05-22 23:46:12 <-- MR-D05 (~textual@2601:14f:4500:3990:58e0:a851:ec99:d6) has quit (Client Quit) 2021-05-22 23:49:09 <-- chachasmooth (~chachasmo@unaffiliated/chachasmooth) has quit (Ping timeout: 245 seconds) 2021-05-22 23:50:34 --> chachasmooth (~chachasmo@unaffiliated/chachasmooth) has joined #python 2021-05-22 23:52:21 --> maum (01f5931e@1.245.147.30) has joined #python 2021-05-22 23:52:23 maum hello 2021-05-22 23:52:42 maum Is there a way to auto resize button in tkinter? 2021-05-22 23:52:53 maum I used Grid() 2021-05-22 23:54:28 --> duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has joined #python 2021-05-22 23:56:08 <-- maum (01f5931e@1.245.147.30) has quit (Client Quit) 2021-05-22 23:57:36 --> pragmaticenigma (~pragmatic@unaffiliated/pragmaticenigma) has joined #python 2021-05-22 23:57:37 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-22 23:57:42 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-22 23:59:45 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 00:00:57 <-- pragmaticenigma (~pragmatic@unaffiliated/pragmaticenigma) has quit (Client Quit) 2021-05-23 00:01:50 <-- HolyFishPaste90 (HolyFishPa@gateway/vpn/protonvpn/holyfishpaste90) has quit (Quit: Leaving) 2021-05-23 00:03:58 --> mps31 (~mps31@cpc144186-bsfd9-2-0-cust150.5-3.cable.virginm.net) has joined #python 2021-05-23 00:06:13 <-- madmallard (acf92fe7@cpe-172-249-47-231.socal.res.rr.com) has quit (Quit: Connection closed) 2021-05-23 00:07:44 <-- m1n10n (~georgeclo@cpe-76-184-204-251.tx.res.rr.com) has quit 2021-05-23 00:08:21 <-- pinusc (~pinusc@unaffiliated/pinusc) has quit (Ping timeout: 260 seconds) 2021-05-23 00:08:33 --> MR-D05 (~textual@2601:14f:4500:3990:a532:5095:c175:d15c) has joined #python 2021-05-23 00:08:47 <-- MR-D05 (~textual@2601:14f:4500:3990:a532:5095:c175:d15c) has quit (Client Quit) 2021-05-23 00:08:50 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-23 00:11:12 <-- fb_ (~freebench@92.253.251.129) has quit (Ping timeout: 265 seconds) 2021-05-23 00:13:17 --> Gerula_ (~Gerula@unaffiliated/gerula) has joined #python 2021-05-23 00:13:17 <-- Gerula (~Gerula@unaffiliated/gerula) has quit (Killed (beckett.freenode.net (Nickname regained by services))) 2021-05-23 00:13:17 -- Gerula_ is now known as Gerula 2021-05-23 00:13:42 <-- kblin (~kai@samba/team/kai) has quit (Quit: Ping timeout (120 seconds)) 2021-05-23 00:13:57 --> jinsun (~quassel@122.175.162.109) has joined #python 2021-05-23 00:14:07 --> kblin (~kai@samba/team/kai) has joined #python 2021-05-23 00:14:29 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-23 00:14:31 <-- desh (~desh@unaffiliated/desh) has quit (Quit: Leaving) 2021-05-23 00:15:06 <-- jinsun (~quassel@122.175.162.109) has quit (Client Quit) 2021-05-23 00:16:38 --> sudomann (592e3e81@gateway/web/cgi-irc/kiwiirc.com/ip.89.46.62.129) has joined #python 2021-05-23 00:18:21 --> MR-D05 (~textual@2601:14f:4500:3990:4169:36f5:c18d:76f3) has joined #python 2021-05-23 00:19:17 <-- MR-D05 (~textual@2601:14f:4500:3990:4169:36f5:c18d:76f3) has quit (Client Quit) 2021-05-23 00:20:52 --> pizdets (~pizdets@183.182.110.89) has joined #python 2021-05-23 00:21:38 --> purplex (~purplex@unaffiliated/purplex88) has joined #python 2021-05-23 00:25:13 --> veek (~veek@unaffiliated/veek) has joined #python 2021-05-23 00:26:36 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 00:27:28 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 00:29:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 00:30:14 <-- Sheilong (uid293653@gateway/web/irccloud.com/x-bzlewbjicnfctdvm) has quit 2021-05-23 00:32:16 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-23 00:34:05 justanotheruser greyblue9: no. I've also tried doc_layout_size.width() and doc.idealWidth() 2021-05-23 00:35:29 --> ranran888813 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-23 00:37:31 <-- ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Ping timeout: 260 seconds) 2021-05-23 00:37:34 --> bdonnahue1 (~bdonnahue@208.59.177.131) has joined #python 2021-05-23 00:41:43 <-- Ublx (~Alex@2a02:810c:280:59c:8153:7869:4d66:14f2) has quit (Max SendQ exceeded) 2021-05-23 00:42:02 <-- sallyahaj (~sally@unaffiliated/sallyahaj) has quit (Remote host closed the connection) 2021-05-23 00:42:10 --> Ublx (~Alex@2a02:810c:280:59c:a836:4e2f:d684:34) has joined #python 2021-05-23 00:42:45 <-- sudomann (592e3e81@gateway/web/cgi-irc/kiwiirc.com/ip.89.46.62.129) has quit (Quit: Connection closed) 2021-05-23 00:45:40 <-- ByteChanger (6bb3ea79@gateway/web/cgi-irc/kiwiirc.com/ip.107.179.234.121) has quit (Quit: Connection closed) 2021-05-23 00:46:45 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Ping timeout: 240 seconds) 2021-05-23 00:47:01 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-23 00:48:56 --> CombatVet (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-23 00:50:29 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-23 00:52:26 <-- DTZUZU (~DTZUZO@205.ip-149-56-132.net) has quit (Ping timeout: 240 seconds) 2021-05-23 00:52:39 --> palooka-jock (~mike@45.126.44.146) has joined #python 2021-05-23 00:53:11 --> boustrophedon (~boustroph@meow.sh) has joined #python 2021-05-23 00:53:31 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-23 00:53:33 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-23 00:55:51 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-23 00:56:56 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 00:57:10 --> jochum (~quassel@unaffiliated/pcdummy) has joined #python 2021-05-23 00:58:43 <-- zeden (~user@unaffiliated/zeden) has quit (Quit: WeeChat 3.0.1) 2021-05-23 00:58:56 --> zeden (~user@unaffiliated/zeden) has joined #python 2021-05-23 00:59:05 <-- zeden (~user@unaffiliated/zeden) has quit (Client Quit) 2021-05-23 00:59:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 01:01:44 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-23 01:03:00 --> Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has joined #python 2021-05-23 01:03:47 --> plasticuproject (~plasticup@unaffiliated/plasticuproject) has joined #python 2021-05-23 01:04:33 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-23 01:05:02 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-23 01:05:06 <-- Hades_Underworld (~Hades_Und@cust-201-148-110-94.dyn.as47377.net) has quit (Client Quit) 2021-05-23 01:05:34 <-- plasticuproject (~plasticup@unaffiliated/plasticuproject) has quit (Quit: leaving) 2021-05-23 01:05:42 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::7802) has joined #python 2021-05-23 01:06:58 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-23 01:07:57 <-- hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has quit 2021-05-23 01:09:31 --> comradeCrow (~comradeCr@cpe-172-116-137-199.socal.res.rr.com) has joined #python 2021-05-23 01:09:58 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-23 01:10:39 --> sazawal (~sazawal@2409:4043:2d9a:17d3:a664:50d1:1d02:2664) has joined #python 2021-05-23 01:11:09 <-- jesusJesse (~powerhous@2604:3d08:6d80:a900::bb7f) has quit (Remote host closed the connection) 2021-05-23 01:11:20 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-23 01:11:21 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-23 01:11:43 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-23 01:11:49 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-23 01:12:03 <-- wkalt (~wkalt@unaffiliated/wkalt) has quit (Quit: WeeChat 2.3) 2021-05-23 01:12:26 <-- nbao (~nbao@2804:14c:5bb8:9720:ae9e:17ff:fedf:3e09) has quit (Quit: WeeChat 3.1) 2021-05-23 01:14:46 <-- robyndrake (robyndrake@unaffiliated/robdrake) has left #python ("WeeChat 2.9") 2021-05-23 01:15:21 --> Death916_lap (~UserNick@unaffiliated/death916) has joined #python 2021-05-23 01:16:08 <-- Fiji (~Fiji@unaffiliated/fiji) has quit (Quit: Leaving) 2021-05-23 01:16:08 --> gobuk (~gobuk@115.164.50.106) has joined #python 2021-05-23 01:17:50 <-- audioburn (~theology@unaffiliated/theology) has quit (Remote host closed the connection) 2021-05-23 01:18:17 --> audioburn (~theology@unaffiliated/theology) has joined #python 2021-05-23 01:20:05 <-- dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-23 01:20:19 <-- soft_concrete (~soft_ceme@unaffiliated/soft-cement/x-2125135) has quit (Ping timeout: 265 seconds) 2021-05-23 01:20:33 --> xalen7 (xalen7@gateway/vpn/protonvpn/xalen7) has joined #python 2021-05-23 01:20:37 <-- ranran888813 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has quit (Ping timeout: 260 seconds) 2021-05-23 01:20:39 --> dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has joined #python 2021-05-23 01:22:46 <-- xalen7 (xalen7@gateway/vpn/protonvpn/xalen7) has quit (Client Quit) 2021-05-23 01:23:40 --> ffledgling (~ffledglin@unaffiliated/ffledgling) has joined #python 2021-05-23 01:26:14 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-23 01:26:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 01:28:19 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 01:28:57 Evidlo anyone have any idea why I'm getting an error about position arguments here? https://termbin.com/4l0s 2021-05-23 01:29:16 Evidlo as far as I can tell, _parsereport() is being called with the correct number of args 2021-05-23 01:30:17 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 01:32:46 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-23 01:33:17 <-- Monet (~woostundy@106.11.35.195) has quit (Ping timeout: 246 seconds) 2021-05-23 01:35:01 <-- Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has quit (Quit: Wr4i7h) 2021-05-23 01:36:53 --> Inoperable (~PLAYER_1@fancydata.science) has joined #python 2021-05-23 01:38:25 <-- gobuk (~gobuk@115.164.50.106) has quit (Quit: Leaving) 2021-05-23 01:39:26 greyblue9 Evidlo: what is the type of 'sc' there? 2021-05-23 01:40:46 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 240 seconds) 2021-05-23 01:41:13 <-- ffledgling (~ffledglin@unaffiliated/ffledgling) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-23 01:41:26 <-- dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-05-23 01:41:27 Evidlo its a 'pykeepass.kdbx_parsing.common.DynamicDict': https://github.com/libkeepass/pykeepass/blob/master/pykeepass/kdbx_parsing/common.py#L35 2021-05-23 01:41:37 Evidlo which is derived from construct's Adapter: https://github.com/construct/construct/blob/master/construct/core.py#L694 2021-05-23 01:41:57 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-23 01:42:20 --> dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has joined #python 2021-05-23 01:42:30 Evidlo so it goes DynamicDict -> Adapter -> Subconstruct -> Construct, and _parsereport() is defined in Construct 2021-05-23 01:43:59 Evidlo pretty sure there is only one _parsereport() defined anywhere in the code. in the Construct class 2021-05-23 01:44:16 --> SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-23 01:45:56 Evidlo actually, I think I might not be setting the breakpoint in the right way. one second 2021-05-23 01:47:20 --> ffe4 (~ffe4@200116b82c31260019859a34c8c4f154.dip.versatel-1u1.de) has joined #python 2021-05-23 01:50:04 --> ralof (~ralof@dynamic-077-004-052-178.77.4.pool.telefonica.de) has joined #python 2021-05-23 01:50:46 <-- CodeMouse92 (~CodeMouse@unaffiliated/codemouse) has quit (Quit: Oh freddled gruntbuggly | Thy micturations are to me | As plurdled gabbleblotchits | On a lurgid bee) 2021-05-23 01:52:51 <-- orbyt_ (~orbyt@172.92.4.78) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-23 01:53:12 Evidlo ok, I seem to be doing everything right: https://termbin.com/gpvw 2021-05-23 01:53:14 <-- ralof_ (~ralof@dynamic-077-004-052-178.77.4.pool.telefonica.de) has quit (Ping timeout: 246 seconds) 2021-05-23 01:53:44 Evidlo I've even directly checked the positional arguments of sc._parsereport and it seems right 2021-05-23 01:54:38 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-23 01:55:06 <-- dtman34 (~dtman34@c-73-62-246-247.hsd1.mn.comcast.net) has quit (Ping timeout: 240 seconds) 2021-05-23 01:56:34 <-- Alina-malina (~Alina-mal@unaffiliated/alina-malina) has quit (Ping timeout: 265 seconds) 2021-05-23 01:56:34 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 01:56:41 --> Alina-malina_ (~Alina-mal@unaffiliated/alina-malina) has joined #python 2021-05-23 01:59:06 <-- Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has quit (Ping timeout: 240 seconds) 2021-05-23 01:59:51 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 01:59:57 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Ping timeout: 240 seconds) 2021-05-23 02:01:15 --> CombatVet (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-23 02:03:04 --> agrawalritesh (~agrawalri@103.123.86.13) has joined #python 2021-05-23 02:04:20 <-- _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-23 02:05:30 --> dbrownns31 (adfc2120@host-173-252-33-32.public.eastlink.ca) has joined #python 2021-05-23 02:05:47 <-- dbrownns31 (adfc2120@host-173-252-33-32.public.eastlink.ca) has quit (Client Quit) 2021-05-23 02:06:14 <-- h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has quit (Remote host closed the connection) 2021-05-23 02:06:26 --> dbrownns100 (adfc2120@host-173-252-33-32.public.eastlink.ca) has joined #python 2021-05-23 02:06:41 <-- dbrownns100 (adfc2120@host-173-252-33-32.public.eastlink.ca) has quit (Client Quit) 2021-05-23 02:07:06 --> dbrownns92 (adfc2120@host-173-252-33-32.public.eastlink.ca) has joined #python 2021-05-23 02:07:15 --> code-witch (~code-witc@171.61.113.75) has joined #python 2021-05-23 02:07:32 <-- dbrownns92 (adfc2120@host-173-252-33-32.public.eastlink.ca) has quit (Client Quit) 2021-05-23 02:07:39 --> stree (~stree@68.36.8.116) has joined #python 2021-05-23 02:07:59 --> teut (7aa1a83a@unaffiliated/teut) has joined #python 2021-05-23 02:08:39 --> h4rd3n3D (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-23 02:09:02 <-- dbrownns (adfc2120@host-173-252-33-32.public.eastlink.ca) has quit (Ping timeout: 240 seconds) 2021-05-23 02:09:25 --> _h4rd3n3D_ (~weechat@gateway/tor-sasl/h4rd3n3d) has joined #python 2021-05-23 02:12:27 <-- Inoperable (~PLAYER_1@fancydata.science) has quit (Quit: All your buffer are belong to us!) 2021-05-23 02:13:54 --> phasetwo (~phasetwo@2601:602:8d80:4e50:c831:c57f:1097:ad47) has joined #python 2021-05-23 02:14:18 <-- dpreacher (~dpreacher@49.207.216.63) has left #python 2021-05-23 02:16:27 --> dreamon (~dreamon@unaffiliated/dreamon) has joined #python 2021-05-23 02:16:30 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Read error: Connection reset by peer) 2021-05-23 02:16:47 --> corvax (~corvus-co@unaffiliated/corvax) has joined #python 2021-05-23 02:17:20 --> ralof_ (~ralof@dynamic-077-004-052-178.77.4.pool.telefonica.de) has joined #python 2021-05-23 02:19:05 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:c831:c57f:1097:ad47) has quit (Ping timeout: 250 seconds) 2021-05-23 02:20:06 <-- ralof (~ralof@dynamic-077-004-052-178.77.4.pool.telefonica.de) has quit (Ping timeout: 240 seconds) 2021-05-23 02:21:42 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 265 seconds) 2021-05-23 02:24:16 <-- jamea77 (~jamea77@177.239.80.39) has quit (Ping timeout: 260 seconds) 2021-05-23 02:26:01 --> frrs (uid130725@gateway/web/irccloud.com/x-smodabegixrbxybx) has joined #python 2021-05-23 02:26:54 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 02:27:11 --> kosh (~kosh@p200300d08f042b0074b904e72ce1b36d.dip0.t-ipconnect.de) has joined #python 2021-05-23 02:27:24 --> subho (~subho@fedora/subho) has joined #python 2021-05-23 02:27:35 <-- SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has quit (Remote host closed the connection) 2021-05-23 02:28:35 <-- VectorX (~VectorX@unaffiliated/vectorx) has quit (Read error: Connection reset by peer) 2021-05-23 02:28:35 <-- agrawalritesh (~agrawalri@103.123.86.13) has quit 2021-05-23 02:28:56 --> Inoperable (~PLAYER_1@fancydata.science) has joined #python 2021-05-23 02:29:04 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 02:30:07 --> ilikeboba (~ilikeboba@192.145.119.250) has joined #python 2021-05-23 02:30:10 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 02:31:19 --> SallyAhaj (~sallyahaj@unaffiliated/sallyahaj) has joined #python 2021-05-23 02:33:26 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-23 02:36:38 <-- lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has quit (Quit: Left...) 2021-05-23 02:36:52 --> TheRAt (~TheRAt@110.77.217.127) has joined #python 2021-05-23 02:36:54 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-23 02:37:45 --> lankanmon (~LKNnet@cpeb4fbe4e331bd-cm9050cadd5190.cpe.net.cable.rogers.com) has joined #python 2021-05-23 02:37:55 <-- lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has quit (Quit: lnxd) 2021-05-23 02:38:03 --> gitesh_ (67dc28c7@103.220.40.199) has joined #python 2021-05-23 02:39:42 --> Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-23 02:39:49 --> wkalt (~wkalt@unaffiliated/wkalt) has joined #python 2021-05-23 02:39:54 --> gtristan (~tristan@223.62.203.94) has joined #python 2021-05-23 02:41:43 --> rgr (~rgr@p200300e4170c80f3b736c639de351528.dip0.t-ipconnect.de) has joined #python 2021-05-23 02:41:43 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 02:41:48 gtristan Is cpython supposed to be reproducible, given a build environment conducive to reproducibility ? (i.e. guaranteed same build paths, guaranteed exact same set of dependencies, where dependencies include compiler versions, etc) 2021-05-23 02:41:57 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-23 02:42:10 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 02:42:38 <-- wkalt (~wkalt@unaffiliated/wkalt) has quit (Client Quit) 2021-05-23 02:43:00 gtristan I'm aware that pyc file timestamping has been corrected for this purpose for the sake of reproducible python code builds, but I mean the cpython build itself 2021-05-23 02:43:52 --> shabius (~shabius@46.188.40.235) has joined #python 2021-05-23 02:43:59 gitesh_ Hi python. How is one object is passed to another? -----> https://bpa.st/NE6Q 2021-05-23 02:44:15 --> rendar (~rendar@unaffiliated/rendar) has joined #python 2021-05-23 02:44:45 <-- Freneticks (~Frenetick@gateway/tor-sasl/freneticks) has quit (Ping timeout: 240 seconds) 2021-05-23 02:44:54 gitesh_ does that mean access? 2021-05-23 02:45:02 <-- akaWolf (~akaWolf@unaffiliated/akawolf) has quit (Ping timeout: 246 seconds) 2021-05-23 02:45:03 <-- shabius_ (~shabius@2a0e:1c80:2:1022::1006) has quit (Ping timeout: 258 seconds) 2021-05-23 02:45:32 <-- code-witch (~code-witc@171.61.113.75) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-23 02:45:44 gitesh_ is not it sounds vice versa that master object is passed to ummm... i guess ? 2021-05-23 02:45:48 --> manti7 (~manti7@176.10.104.94) has joined #python 2021-05-23 02:46:04 gitesh_ but they are calling it constructor.............. so what is constructor anyways? 2021-05-23 02:46:24 --> Freneticks (~Frenetick@gateway/tor-sasl/freneticks) has joined #python 2021-05-23 02:47:01 <-- txtsd (~txtsd@45.112.14.141) has quit (Ping timeout: 260 seconds) 2021-05-23 02:47:08 --> lnxd (~lnxd@202-65-89-209.ip4.superloop.com) has joined #python 2021-05-23 02:47:41 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::7802) has quit (Ping timeout: 250 seconds) 2021-05-23 02:48:19 <-- kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Ping timeout: 245 seconds) 2021-05-23 02:50:11 --> akaWolf (~akaWolf@unaffiliated/akawolf) has joined #python 2021-05-23 02:50:34 <-- Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has quit (Read error: Connection reset by peer) 2021-05-23 02:51:26 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 240 seconds) 2021-05-23 02:52:15 --> Jerrynicki (~niklas@p200300f577331a00522bc60108a05d7f.dip0.t-ipconnect.de) has joined #python 2021-05-23 02:54:05 --> kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-23 02:56:01 --> m1cl_ (~m1cl@2a02:8109:b6c0:1b94::8475) has joined #python 2021-05-23 02:56:38 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 02:58:29 <-- gigasu_shida (~none@ip72-199-58-150.sd.sd.cox.net) has quit (Quit: Leaving) 2021-05-23 02:59:48 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 02:59:51 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-23 03:02:03 <-- Heirlung (Heirlung@71.71.176.215) has quit (Quit: ZNC - http://znc.in) 2021-05-23 03:03:58 --> Heirlung (Heirlung@71.71.176.215) has joined #python 2021-05-23 03:04:54 <-- unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-23 03:06:30 <-- Petrushka (~devcon@deathstar.devconproductions.org) has quit (Remote host closed the connection) 2021-05-23 03:08:38 --> phasetwo (~phasetwo@2601:602:8d80:4e50:c831:c57f:1097:ad47) has joined #python 2021-05-23 03:11:17 <-- zumba_addict (~zumba_add@c-71-194-59-180.hsd1.il.comcast.net) has quit (Ping timeout: 246 seconds) 2021-05-23 03:11:53 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 258 seconds) 2021-05-23 03:13:02 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-23 03:13:21 <-- jochum (~quassel@unaffiliated/pcdummy) has quit (Quit: https://quassel-irc.org - Komfortabler Chat. Überall.) 2021-05-23 03:13:55 --> bazul (bazul@38.189.189.46.rev.vodafone.pt) has joined #python 2021-05-23 03:14:23 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-23 03:15:46 --> NeilG (~NeilG@192.222.196.111) has joined #python 2021-05-23 03:16:09 <-- themill (~stuart@unaffiliated/themill) has left #python ("Nothing to see here") 2021-05-23 03:17:40 --> Anas__G (~Thunderbi@196.235.126.229) has joined #python 2021-05-23 03:18:36 --> VectorX (~VectorX@unaffiliated/vectorx) has joined #python 2021-05-23 03:20:05 <-- qomiter (~qomiter@pool-173-64-29-231.bflony.fios.verizon.net) has quit (Ping timeout: 260 seconds) 2021-05-23 03:20:56 <-- m1cl_ (~m1cl@2a02:8109:b6c0:1b94::8475) has quit (Quit: WeeChat 3.1) 2021-05-23 03:21:06 <-- rinwa (~rinwa@37.46.46.89) has quit (Ping timeout: 240 seconds) 2021-05-23 03:23:44 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:c831:c57f:1097:ad47) has quit (Ping timeout: 245 seconds) 2021-05-23 03:25:03 <-- tim__ (~t-mart@unaffiliated/t-mart) has quit (Read error: Connection reset by peer) 2021-05-23 03:26:15 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 250 seconds) 2021-05-23 03:26:41 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 03:26:56 --> ffledgling (~ffledglin@unaffiliated/ffledgling) has joined #python 2021-05-23 03:28:31 --> t-mart (~t-mart@unaffiliated/t-mart) has joined #python 2021-05-23 03:29:19 greyblue9 Evidlo: Well, the signature being called there is `parsereport(self, stream, context, path)` and the call is `sc._parsereport(stream, context, path)` so the fact that it's still 1 parameter short makes me think that for some reason sc._parsereport is not a bound function/method (e.g. needs 'self' passed as first argument explicitly) - could you check if sc._parsereport has a __self__ or not? 2021-05-23 03:29:48 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 03:30:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 03:30:40 --> Monet (~woostundy@106.11.35.195) has joined #python 2021-05-23 03:31:49 --> code-witch (~code-witc@171.61.113.75) has joined #python 2021-05-23 03:31:52 greyblue9 you could also pass sc as the first parameter and see what details you get from the `TypeError`. 2021-05-23 03:31:56 --> bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has joined #python 2021-05-23 03:33:06 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-23 03:33:52 <-- teut (7aa1a83a@unaffiliated/teut) has quit (Quit: Connection closed) 2021-05-23 03:34:51 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-23 03:35:03 greyblue9 with a type hierarchy of that size, no way to know without just getting your hands dirty :p 2021-05-23 03:36:01 <-- Some_Person (someperson@23-118-229-174.lightspeed.hstntx.sbcglobal.net) has quit (Ping timeout: 260 seconds) 2021-05-23 03:39:59 <-- Jantz_ (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 246 seconds) 2021-05-23 03:40:55 --> AlanMD (~alan@193.105.139.131) has joined #python 2021-05-23 03:42:06 --> Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has joined #python 2021-05-23 03:47:57 --> LKoen (~LKoen@2a01cb0407597a00059e4182066a0e3d.ipv6.abo.wanadoo.fr) has joined #python 2021-05-23 03:48:29 <-- duderonomy (~duderonom@c-73-158-190-156.hsd1.ca.comcast.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-23 03:49:11 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-23 03:50:21 --> thevishy (~Nishant@117.221.150.153) has joined #python 2021-05-23 03:50:51 --> fflori (~fflori@mob-194-230-155-245.cgn.sunrise.net) has joined #python 2021-05-23 03:51:04 --> rinwa (~rinwa@212-29-253-205.bb.netvision.net.il) has joined #python 2021-05-23 03:51:25 <-- thevishy (~Nishant@117.221.150.153) has quit (Quit: Leaving) 2021-05-23 03:51:58 --> thevishy (~Nishant@117.221.150.153) has joined #python 2021-05-23 03:54:01 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 265 seconds) 2021-05-23 03:54:38 <-- rgr (~rgr@p200300e4170c80f3b736c639de351528.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-05-23 03:54:45 --> mcsontos (~mcsontos@ip-78-45-136-55.net.upcbroadband.cz) has joined #python 2021-05-23 03:57:04 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 03:57:41 <-- NeilG (~NeilG@192.222.196.111) has quit (Remote host closed the connection) 2021-05-23 03:59:26 <-- Death916_lap (~UserNick@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-23 03:59:27 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-23 03:59:45 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 04:00:06 <-- gitesh_ (67dc28c7@103.220.40.199) has quit (Quit: Connection closed) 2021-05-23 04:00:17 <-- aldente (~Thunderbi@cpe-172-112-198-27.socal.res.rr.com) has quit (Ping timeout: 246 seconds) 2021-05-23 04:01:06 --> }ls{ (~kalle@unaffiliated/ls/x-8089558) has joined #python 2021-05-23 04:02:01 <-- wei2912 (~wei2912@unaffiliated/wei2912) has quit (Remote host closed the connection) 2021-05-23 04:03:39 --> subho (~subho@fedora/subho) has joined #python 2021-05-23 04:03:51 <-- thevishy (~Nishant@117.221.150.153) has quit (Quit: Leaving) 2021-05-23 04:06:45 --> Nact (~l@host-85-27-122-179.dynamic.voo.be) has joined #python 2021-05-23 04:07:35 <-- ffledgling (~ffledglin@unaffiliated/ffledgling) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-23 04:08:34 --> michagogo (sid14316@wikia/Michagogo) has joined #python 2021-05-23 04:08:46 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-23 04:09:04 --> Andy_Kw (4ec717be@gateway/web/cgi-irc/kiwiirc.com/ip.78.199.23.190) has joined #python 2021-05-23 04:09:12 Andy_Kw salut 2021-05-23 04:09:51 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-23 04:09:57 <-- hendursaga (~weechat@gateway/tor-sasl/hendursaga) has quit (Ping timeout: 240 seconds) 2021-05-23 04:09:59 Andy_Kw petite question : j'ai des valeurs que je souhaite mettre dans une liste, mais des valeurs dynamiques 2021-05-23 04:10:06 Andy_Kw j'ai tenté cela `spent_time_by_op_results.append(f"[{val_car},{val_interv},{time_load}]")` 2021-05-23 04:10:31 Andy_Kw sauf que le f string me donne non pas une liste mais une string 2021-05-23 04:10:40 supakeen I think you'd find more French speakers in #python-fr, we try to speak English here :) 2021-05-23 04:11:31 Andy_Kw sorry. I thought it was the french python channel 2021-05-23 04:11:32 supakeen But if my French is good enough I think you want to do `spent_time_by_op_results.append(f"....")`, or `.append([f"..."])` the brackets go outside the string. 2021-05-23 04:12:01 Andy_Kw supakeen exactly, let's switch to english 2021-05-23 04:12:07 nanonyme It looks a bit weird to have single-element lists 2021-05-23 04:12:33 <-- lmt (uid107697@gateway/web/irccloud.com/x-lptjsgwkccupellu) has quit (Quit: Connection closed for inactivity) 2021-05-23 04:12:38 supakeen It does which is why I was like 'maybe the mean extend' but extend with a 1-length list is funky. 2021-05-23 04:13:03 supakeen Paraphrasing the question is 'the f-string doesnt give me a list but a string?' 2021-05-23 04:13:20 <-- Techcable (~Techcable@168.235.93.147) has quit (Quit: ZNC - https://znc.in) 2021-05-23 04:13:27 Andy_Kw nanonyme I wanted to have dictionnaries in my list initially but well I don't know how to do this 2021-05-23 04:13:42 Andy_Kw this is my results, folks : `['[1,1,00:20:00]', '[1,2,01:10:00]', '[2,1,00:25:00]', '[2,2,01:40:00]', '[3,1,00:29:00]', '[3,2,01:55:00]']` 2021-05-23 04:13:56 supakeen Let's get back to the real question then. 2021-05-23 04:14:01 nanonyme Andy_Kw, what is the desired result? Would you want to have a string or the items inside the list? 2021-05-23 04:14:05 --> hendursaga (~weechat@gateway/tor-sasl/hendursaga) has joined #python 2021-05-23 04:14:06 supakeen Why not put a dictionary in the list :) 2021-05-23 04:14:34 supakeen `yourlist.append({"car": val_car, "interval": val_interv", "time": time_load})` for example 2021-05-23 04:15:01 --> aLeSD (~aLeSD@139.47.114.114) has joined #python 2021-05-23 04:15:03 nanonyme Because basically just omitting the f"" completely will give you three-item lists 2021-05-23 04:15:03 Andy_Kw supakeen oh my man! that simple??? 2021-05-23 04:15:13 -- CuriousSpinCat is now known as spinningCat 2021-05-23 04:15:23 nanonyme Yeah, that is also a good and readable way to handle the situation 2021-05-23 04:15:25 Andy_Kw let me try: if you are correct, I'm gonna cry 2021-05-23 04:15:26 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 240 seconds) 2021-05-23 04:15:37 --> Techcable (~Techcable@168.235.93.147) has joined #python 2021-05-23 04:15:45 supakeen Yes though I had a typo you'll need to fix with an extra " 2021-05-23 04:15:57 supakeen (after val_interv) 2021-05-23 04:16:44 <-- [A]h4x0r[A] (~z@77.83.248.9) has quit (Ping timeout: 265 seconds) 2021-05-23 04:17:33 Andy_Kw supakeen thank you! <3 <3 <3 2021-05-23 04:17:46 Andy_Kw I've been thinking on how to do this since yesterday eve. 2021-05-23 04:17:49 Andy_Kw I O U 2021-05-23 04:18:07 Andy_Kw yes, this is exactly what I need, clean code 2021-05-23 04:18:19 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-23 04:21:17 --> wajo (~wajo@2603-8001-a703-4451-0216-3eff-fe23-cb81.res6.spectrum.com) has joined #python 2021-05-23 04:21:30 --> Death916_lap (~UserNick@unaffiliated/death916) has joined #python 2021-05-23 04:21:39 <-- cluelessperson_ (~cluelessp@unaffiliated/cluelessperson) has quit (Ping timeout: 245 seconds) 2021-05-23 04:22:03 <-- comradeCrow (~comradeCr@cpe-172-116-137-199.socal.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-05-23 04:23:50 --> cluelessperson (~cluelessp@unaffiliated/cluelessperson) has joined #python 2021-05-23 04:26:39 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-23 04:26:40 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 04:27:56 --> stree (~stree@68.36.8.116) has joined #python 2021-05-23 04:28:13 <-- svinther (svinther@2a01:7e01::f03c:92ff:fe90:ad4f) has quit (Quit: WeeChat 2.3) 2021-05-23 04:28:28 --> svinther (svinther@2a01:7e01::f03c:92ff:fe90:ad4f) has joined #python 2021-05-23 04:28:47 --> LucaTM (~LucaTM@unaffiliated/lucatm) has joined #python 2021-05-23 04:29:29 <-- wajo (~wajo@2603-8001-a703-4451-0216-3eff-fe23-cb81.res6.spectrum.com) has quit (Quit: Leaving) 2021-05-23 04:30:35 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 04:30:38 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 04:31:07 --> phasetwo (~phasetwo@2601:602:8d80:4e50:c831:c57f:1097:ad47) has joined #python 2021-05-23 04:31:17 <-- long4mud (~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com) has quit (Quit: WeeChat 3.0.1) 2021-05-23 04:31:52 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-23 04:31:55 --> stevieh (~skrodzki@p2e58495f.dip0.t-ipconnect.de) has joined #python 2021-05-23 04:35:35 <-- phasetwo (~phasetwo@2601:602:8d80:4e50:c831:c57f:1097:ad47) has quit (Ping timeout: 250 seconds) 2021-05-23 04:35:35 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-23 04:38:44 <-- bdeshi (~bdeshi@2a0a:51c0:0:1f:19e5::1) has quit (Ping timeout: 245 seconds) 2021-05-23 04:39:04 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-23 04:39:51 <-- Abrax (~Abrax@unaffiliated/abrax) has quit (Quit: Leaving) 2021-05-23 04:40:42 --> Abrax (~Abrax@unaffiliated/abrax) has joined #python 2021-05-23 04:42:23 --> txtsd (~txtsd@45.112.14.141) has joined #python 2021-05-23 04:42:28 --> comradeCrow (~comradeCr@cpe-172-116-137-199.socal.res.rr.com) has joined #python 2021-05-23 04:42:44 <-- mcsontos (~mcsontos@ip-78-45-136-55.net.upcbroadband.cz) has quit (Quit: Leaving) 2021-05-23 04:43:06 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 240 seconds) 2021-05-23 04:45:33 <-- CombatVet (~c4@gateway/tor-sasl/combatvet) has quit (Ping timeout: 240 seconds) 2021-05-23 04:45:40 --> combatvet_ (~c4@gateway/tor-sasl/combatvet) has joined #python 2021-05-23 04:47:18 -- combatvet_ is now known as CombatVet 2021-05-23 04:47:29 <-- ffe4 (~ffe4@200116b82c31260019859a34c8c4f154.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-23 04:49:04 --> zumba_addict (~zumba_add@c-67-176-238-37.hsd1.il.comcast.net) has joined #python 2021-05-23 04:49:46 --> ffe4 (~ffe4@200116b82c31260019859a34c8c4f154.dip.versatel-1u1.de) has joined #python 2021-05-23 04:51:10 <-- jaziz (~jaziz@unaffiliated/jaziz) has quit (Ping timeout: 258 seconds) 2021-05-23 04:51:41 <-- Alina-malina_ (~Alina-mal@unaffiliated/alina-malina) has quit (Remote host closed the connection) 2021-05-23 04:52:39 --> Alina-malina (~Alina-mal@unaffiliated/alina-malina) has joined #python 2021-05-23 04:54:55 <-- bigRoo (~user@73.181.dsl.syd.iprimus.net.au) has quit (Remote host closed the connection) 2021-05-23 04:55:48 --> ruztek (~ryant@59-102-108-79.tpgi.com.au) has joined #python 2021-05-23 04:56:47 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 04:57:43 --> unluckyshrubbery (~unluckysh@unaffiliated/unluckyshrubbery) has joined #python 2021-05-23 05:00:10 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 05:00:44 --> Neomex (~Neomex@176-114-249-197.rychlydrat.cz) has joined #python 2021-05-23 05:03:00 <-- indigaz (~indigaz@unaffiliated/indigaz) has quit (Quit: Ping timeout (120 seconds)) 2021-05-23 05:03:09 --> matjazv (~matjazv@84-255-196-218.static.t-2.net) has joined #python 2021-05-23 05:03:19 <-- KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has quit (Ping timeout: 252 seconds) 2021-05-23 05:03:42 --> indigaz (~indigaz@unaffiliated/indigaz) has joined #python 2021-05-23 05:03:57 <-- qwedfg (~qwedfg@194.177.28.161) has quit (Quit: ZNC - https://znc.in) 2021-05-23 05:04:53 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-23 05:05:13 <-- Someone_Else (~Someone_E@deze-server.isvanmij.nl) has quit (Ping timeout: 268 seconds) 2021-05-23 05:05:19 --> palasso (~palasso@unaffiliated/palasso) has joined #python 2021-05-23 05:06:30 --> subho (~subho@fedora/subho) has joined #python 2021-05-23 05:07:03 <-- hnOsmium0001 (uid453710@gateway/web/irccloud.com/x-wsfuqrqguhzbgokc) has quit (Quit: Connection closed for inactivity) 2021-05-23 05:09:13 <-- spunk (~mm@ip2505fdb4.dynamic.kabel-deutschland.de) has quit (Quit: Lost terminal) 2021-05-23 05:13:46 <-- zumba_addict (~zumba_add@c-67-176-238-37.hsd1.il.comcast.net) has quit (Ping timeout: 265 seconds) 2021-05-23 05:14:09 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-23 05:16:09 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-23 05:16:16 --> markfxd (~mark@cpc160877-lutn15-2-0-cust136.9-3.cable.virginm.net) has joined #python 2021-05-23 05:16:24 <-- matjazv (~matjazv@84-255-196-218.static.t-2.net) has quit (Quit: Leaving) 2021-05-23 05:17:41 <-- code-witch (~code-witc@171.61.113.75) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-23 05:20:58 --> panikovsky (~panikovsk@46.61.85.159) has joined #python 2021-05-23 05:21:38 --> EGH (~EGH@185.25.195.104) has joined #python 2021-05-23 05:24:19 <-- Alina-malina (~Alina-mal@unaffiliated/alina-malina) has quit (Quit: Bye!) 2021-05-23 05:24:41 --> Alina-malina (~Alina-mal@unaffiliated/alina-malina) has joined #python 2021-05-23 05:26:35 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 05:28:56 --> KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has joined #python 2021-05-23 05:30:33 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 05:31:23 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 05:32:39 --> tm007 (uid287041@gateway/web/irccloud.com/x-oxmisyzztzajkord) has joined #python 2021-05-23 05:35:19 amo good morning :) greyblue9 thanks for keeping up the discussion after i left ;) 2021-05-23 05:35:25 amo well, monologue rather 2021-05-23 05:36:11 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-23 05:37:27 amo nedbat, i was fiddling around with pre-populating module globales before import-execution in use() because i think it would solve a number of architectural problems in larger projects 2021-05-23 05:37:31 greyblue9 amo: haha, I don't know that I did it justice, but you're welcome :p 2021-05-23 05:38:40 amo nedbat, say, you have a central module and you want to add functionality, like plugins etc 2021-05-23 05:40:10 amo the naive approach "just import the module to add functionality" doesn't work in those cases because you need to pass some context into the imported module, so it gets more complicated than it needs to be 2021-05-23 05:41:13 amo one could drop the whole pass-references-around-dance if it's possible to pass context into the to-be-imported module 2021-05-23 05:42:20 amo of course it's also possible to mess up the whole code structure and make it less readable than before 2021-05-23 05:44:07 --> Muimi (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-23 05:44:14 amo that is why i plan to add functionality to track use() with arguments so one could get a kind of internal dependency graph 2021-05-23 05:44:43 greyblue9 there are "import hooks" but that's prertty much just for locating the module, correct? 2021-05-23 05:44:48 -- Abrax is now known as Cloud_Strife 2021-05-23 05:45:20 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined #python 2021-05-23 05:45:29 -- Cloud_Strife is now known as Abrax 2021-05-23 05:46:07 greyblue9 amo: then the reloading shoe drops 2021-05-23 05:46:23 amo i think reloading can be done with this 2021-05-23 05:46:28 rj1 ANAL SHITCUNT!!!!!!!!!!!!!!1 2021-05-23 05:46:31 rj1 oops sry typo 2021-05-23 05:46:41 amo afaik those work with the import statement, i'm working with importlib as much as possible 2021-05-23 05:47:11 <-- LKoen (~LKoen@2a01cb0407597a00059e4182066a0e3d.ipv6.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-05-23 05:47:32 --> rinzewind (~chema@unaffiliated/rinzewind) has joined #python 2021-05-23 05:48:20 <-- cowsay (~quassel@47.188.41.16) has quit (Read error: Connection reset by peer) 2021-05-23 05:48:35 --> cowsay (~quassel@47.188.41.16) has joined #python 2021-05-23 05:49:46 amo greyblue9, the first hurdle i've come across is that the way i inject globals doesn't work universally apparently (stdlib, numpy etc. is allergic to the injection) 2021-05-23 05:50:49 greyblue9 well those folks, what a surprise 2021-05-23 05:50:55 amo but yeah, reloading is a conundrum 2021-05-23 05:51:26 <-- corvax (~corvus-co@unaffiliated/corvax) has quit (Ping timeout: 240 seconds) 2021-05-23 05:51:50 amo i could keep the globals between reloads, but then it's not cleaner as before. i could reset the globals and re-inject them every reload, which might be cleaner 2021-05-23 05:51:51 --> Ergo (~ergo@91.238.59.144) has joined #python 2021-05-23 05:51:57 <-- bitblit (~bitblit@gateway/tor-sasl/bitblit) has quit (Remote host closed the connection) 2021-05-23 05:51:57 <-- NorthwestVegan (~Northwest@gateway/tor-sasl/northwestvegan) has quit (Remote host closed the connection) 2021-05-23 05:51:57 <-- whiteshadow (~whiteshad@gateway/tor-sasl/whiteshadow) has quit (Remote host closed the connection) 2021-05-23 05:52:04 greyblue9 it seems it could be a nice-to-have (reloading) 2021-05-23 05:52:08 --> bomb-on (~bomb-on@194.144.47.113) has joined #python 2021-05-23 05:52:16 --> whiteshadow (~whiteshad@gateway/tor-sasl/whiteshadow) has joined #python 2021-05-23 05:52:40 --> a6a45081-2b83 (~aditya@122.163.181.9) has joined #python 2021-05-23 05:52:47 amo sure, it's not the killer-feature of use() 2021-05-23 05:52:59 amo i'll just experiment and make it work for me ;p 2021-05-23 05:53:14 --> bitblit (~bitblit@gateway/tor-sasl/bitblit) has joined #python 2021-05-23 05:53:17 --> dirkgomez (dirkgomez@kudu.in-berlin.de) has joined #python 2021-05-23 05:53:43 amo greyblue9, you said you had other usecases for injecting globals in mind? 2021-05-23 05:54:28 -- Mode #python [+o supakeen] by ChanServ 2021-05-23 05:54:33 -- Mode #python [+b *!*@unaffiliated/rj1] by supakeen 2021-05-23 05:54:35 <-- supakeen has kicked rj1 (rj1) 2021-05-23 05:54:42 -- Mode #python [-o supakeen] by ChanServ 2021-05-23 05:56:37 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 05:57:04 --> code-witch (~code-witc@171.61.113.75) has joined #python 2021-05-23 05:57:46 <-- gtristan (~tristan@223.62.203.94) has quit (Ping timeout: 260 seconds) 2021-05-23 05:57:51 <-- code-witch (~code-witc@171.61.113.75) has quit (Client Quit) 2021-05-23 05:58:13 greyblue9 amo: sure, for one - it could be very useful testing and developing modules in isolation I think, without each module needing to drag in a whole forest of imports to use just a handful of functions 2021-05-23 05:58:24 --> mcsontos (~mcsontos@ip-78-45-136-55.net.upcbroadband.cz) has joined #python 2021-05-23 05:58:48 greyblue9 the module could be more "dumb" 2021-05-23 05:59:02 amo oh, testing! sure, that's a great idea! 2021-05-23 05:59:04 --> NorthwestVegan (~Northwest@gateway/tor-sasl/northwestvegan) has joined #python 2021-05-23 05:59:27 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 05:59:49 Andy_Kw quick question : I have a timestamp like this `01:20:00`. I would like to use datetime to turn it, into 80 (for 80 minutes) but I could not find not anything on internet 2021-05-23 06:00:17 Andy_Kw (I would like to use the datetime library, I mean) 2021-05-23 06:00:19 amo Andy_Kw, just do the math ;) 2021-05-23 06:00:21 --> code-witch (~code-witc@171.61.113.75) has joined #python 2021-05-23 06:00:23 ChrisWarrick Andy_Kw: datetime doesn’t do things like this 2021-05-23 06:00:41 Andy_Kw oh 2021-05-23 06:00:43 ChrisWarrick it’s pretty trivial to do by hand though 2021-05-23 06:00:57 greyblue9 fancy namedtuple with operators? 2021-05-23 06:01:24 amo dt.hours * 60 + dt.minutes or similar 2021-05-23 06:01:37 supakeen Well a timedelta (which is likely what that actually is) has a .total_seconds() method you can use for this with //. 2021-05-23 06:02:38 amo that's another way, true 2021-05-23 06:02:43 --> wafflehunter (~wafflehun@pd9e18985.dip0.t-ipconnect.de) has joined #python 2021-05-23 06:03:07 greyblue9 agreed, the date thing does make it cumbersome when you only care about time of day 2021-05-23 06:03:42 nedbat amo: tbh, i really have no idea what problems you are trying to solve. 2021-05-23 06:04:26 Andy_Kw amo & supakeen let me have a try 2021-05-23 06:05:09 greyblue9 Andy_Kw: from where and in what form do you receive this timestamp 2021-05-23 06:06:09 Andy_Kw greyblue9 I receive this timestamp from an API. It is a json format but eventually, I have a string 2021-05-23 06:06:49 greyblue9 but it comes to you requiring parsing I guess 2021-05-23 06:06:56 amo nedbat, there are different problems i'm trying to solve. in this case, it's related to circular imports 2021-05-23 06:08:01 Andy_Kw it comes as it is 2021-05-23 06:08:50 --> burakcank (~burakcank@159.146.41.74) has joined #python 2021-05-23 06:09:03 amo nedbat, frequently someone asks how to pass in references from module A to module B, where module B is imported from module A 2021-05-23 06:09:42 Andy_Kw https://prnt.sc/13asm97 2021-05-23 06:09:47 greyblue9 Andy_Kw: ah, I guess I can't be any further help then 2021-05-23 06:10:13 amo which involves passing references back and forth, and only during/after the execution of the import 2021-05-23 06:10:23 Andy_Kw I think I should be ok actually, talking with you, helped me with a better understanding 2021-05-23 06:11:12 amo nedbat, those cases could be significantly simplified if it was possible to pass references into the module namespace before the actual code execution 2021-05-23 06:11:20 amo which is now possible ^^ 2021-05-23 06:11:27 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 06:12:00 <-- Anas__G (~Thunderbi@196.235.126.229) has quit (Quit: Anas__G) 2021-05-23 06:12:02 --> bdeshi (~bdeshi@2a0a:51c0:0:1f:19e5::1) has joined #python 2021-05-23 06:12:25 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 06:15:17 <-- dirkgomez (dirkgomez@kudu.in-berlin.de) has quit (Quit: leaving) 2021-05-23 06:15:39 --> dirkgomez (dirkgomez@kudu.in-berlin.de) has joined #python 2021-05-23 06:15:51 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 260 seconds) 2021-05-23 06:16:21 nedbat amo: i see 2021-05-23 06:16:50 --> GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has joined #python 2021-05-23 06:17:04 <-- GiLgAmEzH (~gilgamezh@unaffiliated/gilgamezh) has quit (Client Quit) 2021-05-23 06:17:08 --> dudek (~dudek@185.150.236.112) has joined #python 2021-05-23 06:17:39 <-- dirkgomez (dirkgomez@kudu.in-berlin.de) has quit (Client Quit) 2021-05-23 06:17:39 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 06:17:49 --> dastier (~dastier@37.214.65.243) has joined #python 2021-05-23 06:18:06 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 06:18:54 --> dirkgomez (dirkgomez@kudu.in-berlin.de) has joined #python 2021-05-23 06:19:48 <-- ssiyad (ssiyad@2605:6400:c847:1532::2351) has quit (Changing host) 2021-05-23 06:19:48 --> ssiyad (ssiyad@unaffiliated/ssiyad) has joined #python 2021-05-23 06:20:26 <-- burakcank (~burakcank@159.146.41.74) has quit (Ping timeout: 240 seconds) 2021-05-23 06:20:39 --> thiras (~thiras@unaffiliated/thiras) has joined #python 2021-05-23 06:20:40 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-23 06:20:58 <-- spiri (~spiri@unaffiliated/spiri) has quit (Remote host closed the connection) 2021-05-23 06:21:29 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-23 06:21:39 <-- ruztek (~ryant@59-102-108-79.tpgi.com.au) has quit (Quit: WeeChat 2.8) 2021-05-23 06:21:42 <-- Betal (~Betal@unaffiliated/betal) has quit (Quit: WeeChat 3.1) 2021-05-23 06:21:44 --> Laibsch (~Laibsch@2a01:c23:6867:7700:f2de:f1ff:fed0:6548) has joined #python 2021-05-23 06:21:50 --> gitesh_ (uid423739@gateway/web/irccloud.com/x-krldqryqlteuibga) has joined #python 2021-05-23 06:22:20 <-- spiri (~spiri@unaffiliated/spiri) has quit (Remote host closed the connection) 2021-05-23 06:22:33 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 260 seconds) 2021-05-23 06:22:47 --> burakcank (~burakcank@88.243.146.194) has joined #python 2021-05-23 06:22:49 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-23 06:22:51 greyblue9 amo: I wonder what would happen if ypu created a new module, then straight way called _Py,E6DB74Module_GetDict() 2021-05-23 06:23:20 greyblue9 rather PyModule_GetDict() on it via ctypes 2021-05-23 06:23:28 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-23 06:24:29 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-23 06:26:03 greyblue9 or perhaps you already solved that 2021-05-23 06:26:29 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 06:27:50 dudek any idea when/if there will be videos from PyCon 2021 available online? 2021-05-23 06:28:37 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-23 06:28:56 greyblue9 answer: Segmentation fault 2021-05-23 06:29:22 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 06:32:08 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 06:33:39 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 06:34:27 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 06:36:16 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-23 06:36:54 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 265 seconds) 2021-05-23 06:36:55 <-- Jerrynicki (~niklas@p200300f577331a00522bc60108a05d7f.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-23 06:37:08 <-- mud (~mud@unaffiliated/kadoban) has quit (Read error: Connection reset by peer) 2021-05-23 06:37:47 <-- Catatronic (~corrupt@unaffiliated/catatronic) has quit (Ping timeout: 246 seconds) 2021-05-23 06:37:49 --> mud (~mud@unaffiliated/kadoban) has joined #python 2021-05-23 06:39:18 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-23 06:39:19 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-23 06:39:34 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-23 06:39:39 --> Catatronic (~corrupt@unaffiliated/catatronic) has joined #python 2021-05-23 06:41:28 nedbat dudek: i don't think there's a definite date. my understanding is they are captioning them 2021-05-23 06:42:09 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 260 seconds) 2021-05-23 06:42:17 -- Muimi_ is now known as Muimi 2021-05-23 06:42:28 --> Gurkenglas (~Gurkengla@unaffiliated/gurkenglas) has joined #python 2021-05-23 06:42:33 --> ralof (~ralof@dynamic-077-004-052-178.77.4.pool.telefonica.de) has joined #python 2021-05-23 06:45:45 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-23 06:45:46 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 240 seconds) 2021-05-23 06:46:05 <-- ralof_ (~ralof@dynamic-077-004-052-178.77.4.pool.telefonica.de) has quit (Ping timeout: 265 seconds) 2021-05-23 06:46:48 <-- Laibsch (~Laibsch@2a01:c23:6867:7700:f2de:f1ff:fed0:6548) has quit (Quit: Leaving.) 2021-05-23 06:47:23 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 06:48:30 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 06:48:51 --> Laibsch (~Laibsch@dynamic-002-243-150-174.2.243.pool.telefonica.de) has joined #python 2021-05-23 06:49:16 --> stree (~stree@68.36.8.116) has joined #python 2021-05-23 06:49:16 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 06:49:21 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 06:50:03 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 06:50:22 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 06:50:33 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 260 seconds) 2021-05-23 06:51:05 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 06:51:06 <-- burakcank (~burakcank@88.243.146.194) has quit (Ping timeout: 240 seconds) 2021-05-23 06:52:10 --> Haudegen (~quassel@178.115.237.87.static.drei.at) has joined #python 2021-05-23 06:52:12 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 06:53:08 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 06:53:09 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 06:54:09 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 06:54:12 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 06:54:17 <-- mud (~mud@unaffiliated/kadoban) has quit (Ping timeout: 260 seconds) 2021-05-23 06:54:21 --> kadobanana (~mud@unaffiliated/kadoban) has joined #python 2021-05-23 06:54:59 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 06:56:05 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 06:56:07 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-23 06:56:32 --> bodom (~bodom@host-82-61-117-205.retail.telecomitalia.it) has joined #python 2021-05-23 06:56:32 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 06:56:55 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 06:56:56 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-23 06:57:42 --> Jerrynicki (~niklas@p200300f577331a00845b814337980cff.dip0.t-ipconnect.de) has joined #python 2021-05-23 06:58:01 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 06:58:48 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 06:58:52 bodom Hi there! I am creating a "personal assistant" written in python. Long story short, it's just a python script running in an infinite loop and doing stuff useful to me. At the moment, i am controlling it using the console, but i need a way to control it over the internet no matter where i am. I was thinking about some sort of "web gui framework", but i am open to any suggestion. Do you have any? 2021-05-23 06:59:37 petemc flask is popular 2021-05-23 07:00:12 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 07:00:17 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:00:32 <-- arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has quit (Remote host closed the connection) 2021-05-23 07:00:44 amo bodom, why not make it a telegram bot? 2021-05-23 07:00:53 amo you could control it via mobile phone 2021-05-23 07:01:08 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:01:19 bodom petemc: thanks, i'm checking it now 2021-05-23 07:01:53 bodom amo: that's been my first attemp, but then i realized i need a way do display real-time data "refreshing" the game. In telegram bot it ended up in a countinous spam 2021-05-23 07:02:05 bodom s/game/page/ 2021-05-23 07:02:16 amo amo: I wonder what would happen if ypu created a new module, then straight way called _Py,E6DB74Module_GetDict() <- i don't quite understand? 2021-05-23 07:02:17 <-- Belxjander (~Belxjande@sourcemage/Mage/Abh-Elementalist) has quit (Quit: AmigaOS PPC 4.1 +E +U1 // AmIRC 68K) 2021-05-23 07:02:21 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:03:00 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 265 seconds) 2021-05-23 07:03:17 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:03:37 amo bodom, uh.. what? it sounds like your "personal assistant" is doing much more than you let on? 2021-05-23 07:04:06 --> arecaceae (root@gateway/vpn/privateinternetaccess/arecaceae) has joined #python 2021-05-23 07:04:19 bodom amo: by example, when i ask it "watch my stocks", in telegram now it keeps sending the updated portfolio every 15 seconds. It owuld be nice to just being able to overwrite the portfolio "status box" 2021-05-23 07:04:25 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:04:52 amo bodom, why not just notify if it hits a threshold? 2021-05-23 07:04:56 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-23 07:05:13 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:05:25 --> bsdbandit-01 (~bsdbandit@172.58.187.110) has joined #python 2021-05-23 07:05:58 --> greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has joined #python 2021-05-23 07:06:03 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 07:06:21 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:06:22 <-- bsdbandit-01 (~bsdbandit@172.58.187.110) has quit (Read error: Connection reset by peer) 2021-05-23 07:06:36 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 07:07:04 amo i mean, you don't need to continuously watch the clouds to know about the weather, and you only need to get immediate notifications if your area is about to get hit by a storm.. 2021-05-23 07:07:06 bodom amo: because i don't want to change how i works to adapt it to the gui, i want the gui to suit my needs. There is no threshold, i just need the updated real-time info for human decision-making; then i press a button (in telegram: send a command) if i want it to take actions. 2021-05-23 07:07:10 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:07:33 <-- greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has quit (Remote host closed the connection) 2021-05-23 07:08:15 nedbat bodom: this sounds like a website. 2021-05-23 07:08:18 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:08:19 --> greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has joined #python 2021-05-23 07:09:10 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:09:18 --> rgr (~rgr@p200300e4170c807c604b9344c5789d71.dip0.t-ipconnect.de) has joined #python 2021-05-23 07:10:24 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 07:10:24 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Read error: Connection reset by peer) 2021-05-23 07:10:27 --> otisolsen70 (~otisolsen@212.97.248.251) has joined #python 2021-05-23 07:10:27 bodom nedbat: it could be, but it would need to update the data without needing a page refresh (websockets?); and start a webserver in python? Is there a framework for that? (still reading flask's doc meanwhile) 2021-05-23 07:10:30 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:10:58 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 07:11:19 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:11:23 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-23 07:12:25 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:12:41 ChrisWarrick you don’t really need websockets, you can just query for new data every few seconds 2021-05-23 07:13:14 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:13:14 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 07:13:59 bodom isn't that so 2010? =) 2021-05-23 07:14:11 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 07:14:22 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:14:47 --> purplex88_ (~purplex@unaffiliated/purplex88) has joined #python 2021-05-23 07:14:59 <-- a6a45081-2b83 (~aditya@122.163.181.9) has quit (Remote host closed the connection) 2021-05-23 07:15:13 greyblue9 amo: failed plan anyways :) 2021-05-23 07:15:13 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:15:17 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 260 seconds) 2021-05-23 07:15:41 <-- Wanderer_ (~Wande@2600:8806:8000:dad:2efd:a1ff:feba:f8a5) has quit (Ping timeout: 258 seconds) 2021-05-23 07:16:30 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:16:46 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Ping timeout: 240 seconds) 2021-05-23 07:16:48 bodom I mean, ChrisWarrick, this is an hobby project. I would love to experiment something new/unusual 2021-05-23 07:16:51 -- purplex88_ is now known as purplex 2021-05-23 07:17:15 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:17:25 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-23 07:17:48 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 07:17:48 --> maum (01f5931e@1.245.147.30) has joined #python 2021-05-23 07:17:50 maum hello 2021-05-23 07:18:07 jess hi 2021-05-23 07:18:09 maum how can I resize automatically buttons in tkinter? 2021-05-23 07:18:18 <-- rgr (~rgr@p200300e4170c807c604b9344c5789d71.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-23 07:18:24 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 07:18:32 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:18:45 ChrisWarrick maum: pretty sure tkinter has grid widgets (and if it doesn’t — yet another reason not to use tkinter) 2021-05-23 07:18:54 --> x7b (~ffe4@200116b82c312600f807b689e3dab780.dip.versatel-1u1.de) has joined #python 2021-05-23 07:19:36 maum ChrisWarrick: I tried the code : grid(row=x, column=y, ipady=10, ipadx=10, sticky=E+W+N+S)  but it doesn't work 2021-05-23 07:19:55 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:20:09 ChrisWarrick maum: show your full code 2021-05-23 07:21:16 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:21:26 <-- ffe4 (~ffe4@200116b82c31260019859a34c8c4f154.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-23 07:21:33 bodom petemc: been reading some docs, i am giving flask + socketio extension a try, looks like that could be my solution ;) 2021-05-23 07:21:33 maum https://bpa.st/BCDA 2021-05-23 07:21:46 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-23 07:21:58 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:23:06 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:23:32 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-23 07:23:59 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:25:34 dudek Which framework is best for GUI in Python ChrisWarrick 2021-05-23 07:25:37 ChrisWarrick dudek: pyside 2021-05-23 07:25:41 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:25:45 --> rsx (~rsx@ppp-188-174-151-161.dynamic.mnet-online.de) has joined #python 2021-05-23 07:25:50 ChrisWarrick maum: no idea, sorry; if you want to create good-looking and easily scalable GUIs, try pyside 2021-05-23 07:26:12 maum ChrisWarrick: more simple code is here: https://bpa.st/UFQA 2021-05-23 07:26:26 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 07:26:31 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:26:43 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-23 07:26:45 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-23 07:27:01 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-23 07:27:03 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-23 07:27:17 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-23 07:28:23 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:28:34 --> taru9 (~taru@unaffiliated/taru9) has joined #python 2021-05-23 07:29:09 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:29:13 maum how can this code: https://bpa.st/UFQA resizable when frame is expanded. 2021-05-23 07:29:42 maum resizing buttons 2021-05-23 07:30:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 07:30:15 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 258 seconds) 2021-05-23 07:30:17 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:30:21 -- Muimi_ is now known as Muimi 2021-05-23 07:31:04 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:32:04 --> pinkisntwell (~pinkisntw@46.251.99.222) has joined #python 2021-05-23 07:32:05 <-- is0ke3 (~is0ke3@unaffiliated/isokee) has quit (Ping timeout: 260 seconds) 2021-05-23 07:32:10 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:32:23 <-- otisolsen70 (~otisolsen@212.97.248.251) has quit (Ping timeout: 246 seconds) 2021-05-23 07:32:36 --> pyusr (6d409d3e@unaffiliated/db42) has joined #python 2021-05-23 07:32:55 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:32:58 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 07:33:49 --> is0ke3 (~is0ke3@unaffiliated/isokee) has joined #python 2021-05-23 07:34:12 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:34:43 --> freebench (~freebench@92.253.251.129) has joined #python 2021-05-23 07:35:02 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:35:29 pyusr how does pprint.pprint know how to print collections.Counter by the most_common ? 2021-05-23 07:36:18 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:37:07 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:37:32 --> evagelos (~evangelos@80-100-166-138.ip.xs4all.nl) has joined #python 2021-05-23 07:38:06 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-23 07:38:10 evagelos If multiprocessing copies everything in the child process, why an object has the same id (in main process and child) ? 2021-05-23 07:38:13 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:38:53 pyusr evagelos: because it does not ? 2021-05-23 07:38:56 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:39:14 pyusr evagelos: https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods 2021-05-23 07:39:46 pyusr when will pycon us videos be up ? 2021-05-23 07:40:00 habnabit_ evagelos, id is only unique per-process 2021-05-23 07:40:07 habnabit_ evagelos, it doesn't have to have a new id in the child 2021-05-23 07:40:12 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 07:40:35 evagelos Some more context: a flask endpoint creates a multiprocess.Process while being inside a sqlalchemy session (context manager) where in finally block the session.close() is being called...Inspecting both sessions reveal that are the same, i also printed their id 2021-05-23 07:40:53 evagelos habnabit_: oh good to know thanks! 2021-05-23 07:40:54 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 07:40:55 habnabit_ evagelos, using multiprocessing inside a flask app is an extremely bad idea 2021-05-23 07:41:15 evagelos habnabit_: i know i know, im just trying to understand how/why it works the way it does 2021-05-23 07:41:23 habnabit_ evagelos, use celery or similar to spin off background work 2021-05-23 07:41:41 evagelos habnabit_: yes that is my ultimate goal 2021-05-23 07:41:44 <-- Xalys (~ircusr@unix.xalys.nl) has quit (Quit: leaving) 2021-05-23 07:41:55 <-- DarthGandalf (user@znc/developer/DarthGandalf) has quit (Ping timeout: 250 seconds) 2021-05-23 07:42:27 evagelos the context manager closes the "copied over session" and printing stuff in child seems that the session is still open and the same and i dont get that :| 2021-05-23 07:43:02 habnabit_ evagelos, you have duplicated the session state and now you have two copies of the session, both of which think they're unique 2021-05-23 07:43:10 habnabit_ evagelos, again, very bad use case for multiprocessing 2021-05-23 07:43:20 pyusr evagelos: how do you know the context manager closes the session ? 2021-05-23 07:43:23 maum how can this code: https://bpa.st/UFQA resizable when frame is expanded. 2021-05-23 07:43:25 habnabit_ evagelos, there is no way to reconcile the two 2021-05-23 07:43:30 evagelos habnabit_: right, but how can i verify that they are different? 2021-05-23 07:43:54 evagelos pyusr: yields session and in finally block session.close() 2021-05-23 07:44:14 habnabit_ evagelos, i mean.. there is no 'different' session. each process thinks that there's only one session: the one it owns 2021-05-23 07:44:25 habnabit_ evagelos, neither one knows about the other's, nor can you tell it 2021-05-23 07:44:57 habnabit_ evagelos, fork-without-exec confuses the heck out of any library caught up in the middle of it like this 2021-05-23 07:45:00 evagelos oh so the same id it is just result of copying it, not that they are same objects? 2021-05-23 07:45:36 evagelos I mean when i print the id of them in parent and child..(sry for my English) 2021-05-23 07:45:44 habnabit_ evagelos, again i very strongly recommend against using multiprocessing. it creates these kinds of impossible states 2021-05-23 07:45:46 --> NTBLB (~NTBLB@unaffiliated/ntblb) has joined #python 2021-05-23 07:46:28 evagelos habnabit_: i will replace it for sure! I just want to understsand what is going on before changing stuff 2021-05-23 07:46:36 habnabit_ evagelos, the id is the same because each process thinks it's the same object. fork-without-exec duplicates _all_ state _everywhere_ without any way of being informed that it happened 2021-05-23 07:46:40 pyusr evagelos: hard to know what you are saying without seeing code, but anyhow, creating a session, then forking is bad 2021-05-23 07:46:51 pyusr anyhow, how does pprint.pprint know how to print collections.Counter by the most_common ? 2021-05-23 07:47:03 evagelos habnabit_: awesome thanks! 2021-05-23 07:47:52 evagelos so the parent's session indeed gets closed, while the copied over session is still open, ok got it thanks guys! 2021-05-23 07:48:16 <-- x7b (~ffe4@200116b82c312600f807b689e3dab780.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-23 07:49:02 pyusr here is how redis-py handles this session / fork thingy: https://github.com/andymccurdy/redis-py/blob/1a41cfd95a53a95b078084d8627be6b6fba3bb71/redis/connection.py#L1087 2021-05-23 07:49:23 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-23 07:49:29 pyusr it calls that function evreywhere 2021-05-23 07:50:04 pyusr i think modern python has an option to tell python to call some special code upon forking 2021-05-23 07:50:36 --> DarthGandalf (user@znc/developer/DarthGandalf) has joined #python 2021-05-23 07:51:00 evagelos realizing that copies EVERYTHING in the child was huge for me, i thought seeing same ids means it is the same object 2021-05-23 07:51:28 pyusr again, it doesn't copy 2021-05-23 07:51:58 evagelos oh am i using the term wrongly? i mean duplicate like you said, no? 2021-05-23 07:52:07 habnabit_ it does copy 2021-05-23 07:52:20 --> x7b (~ffe4@200116b82c312600f807b689e3dab780.dip.versatel-1u1.de) has joined #python 2021-05-23 07:52:23 --> brickfat (~brickfat@unaffiliated/brickfat) has joined #python 2021-05-23 07:52:36 pyusr it's copy on write 2021-05-23 07:53:16 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 260 seconds) 2021-05-23 07:53:23 habnabit_ yes. it's a total copy of the process's memory space that uses an optimization to happen lazily instead of one eager copy 2021-05-23 07:53:27 habnabit_ still a copy 2021-05-23 07:53:45 pyusr ok, guess i'll have to read pprint source code 2021-05-23 07:53:51 maum how can this code: https://bpa.st/UFQA resizable when frame is expanded. 2021-05-23 07:54:08 pyusr ok, I see https://github.com/python/cpython/blob/main/Lib/pprint.py#L489 2021-05-23 07:54:26 <-- Jantz (~IceChat95@118-93-133-154.dsl.dyn.ihug.co.nz) has quit (Ping timeout: 260 seconds) 2021-05-23 07:55:17 --> duszek (~duszek@admo172.neoplus.adsl.tpnet.pl) has joined #python 2021-05-23 07:55:26 duszek can anyone help find an error in my program? 2021-05-23 07:55:48 pyusr you won't know if you don't ask 2021-05-23 07:56:06 --> Jantz (~IceChat95@2407:7000:8d04:100:71af:646c:edbc:e261) has joined #python 2021-05-23 07:56:12 <-- nkuttler (~nkuttler@unaffiliated/nkuttler) has left #python ("Move to Libera! https://libera.chat/") 2021-05-23 07:56:16 ChrisWarrick duszek: Show your code, tell us what’s wrong with the output 2021-05-23 07:56:26 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 07:57:30 duszek ChrisWarrick: look here: https://www.online-python.com/Xf8hU1GMjH 2021-05-23 07:57:43 --> Seiryu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has joined #python 2021-05-23 07:57:50 habnabit_ duszek, that's empty for me 2021-05-23 07:57:52 ChrisWarrick duszek: I get a blank screen, please just use bpaste 2021-05-23 07:58:01 pyusr maybe that's the error 2021-05-23 07:58:13 <-- Seiryuu (~Seiryuu@ip174-103-176-143.adsl2.static.versatel.nl) has quit (Ping timeout: 260 seconds) 2021-05-23 07:58:30 duszek well, I wanted you to ask to launch program online (no, it's not a virus, but better safe than sorry) 2021-05-23 07:58:48 <-- pyusr (6d409d3e@unaffiliated/db42) has left #python 2021-05-23 07:59:02 ChrisWarrick duszek: bpaste your code, input, output 2021-05-23 07:59:14 <-- maum (01f5931e@1.245.147.30) has quit (Quit: Connection closed) 2021-05-23 07:59:37 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 08:01:33 duszek ChrisWarrick: https://bpa.st/WRUQ 2021-05-23 08:01:51 duszek should be saved in same directory as "dane_obrazki.txt": https://pastebin.com/YDqHmE4j 2021-05-23 08:02:10 duszek you can import these two files to http://online-python.com 2021-05-23 08:02:56 <-- KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-05-23 08:03:01 ChrisWarrick duszek: It looks like you overwrote `wiersz` with a number somewhere 2021-05-23 08:03:08 --> KeithAdams (KeithAdams@gateway/vpn/privateinternetaccess/keithadams) has joined #python 2021-05-23 08:03:32 ChrisWarrick duszek: line 123 to be precise 2021-05-23 08:04:04 --> ibenn (~ibenn@2a02:8071:4290:3c00:1973:ba5a:c5b7:f043) has joined #python 2021-05-23 08:04:22 ChrisWarrick PS. Mixing Polish and English variable names is fairly confusing, pick one (I’d suggest English) and stick with it 2021-05-23 08:04:46 duszek ChrisWarrick: ah, you are right 2021-05-23 08:05:13 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 260 seconds) 2021-05-23 08:06:17 <-- audioburn (~theology@unaffiliated/theology) has quit (Ping timeout: 258 seconds) 2021-05-23 08:08:29 --> xhalc (~xhalc@p5dcafec1.dip0.t-ipconnect.de) has joined #python 2021-05-23 08:09:16 duszek ChrisWarrick: still, the program doesn't work how it should 2021-05-23 08:09:33 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-23 08:09:36 --> contagious_meow (~contagiou@197.156.190.177) has joined #python 2021-05-23 08:10:46 <-- taru9 (~taru@unaffiliated/taru9) has quit (Ping timeout: 260 seconds) 2021-05-23 08:11:16 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-23 08:11:49 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-23 08:12:02 --> gelignite (~gelignite@55d474fc.access.ecotel.net) has joined #python 2021-05-23 08:13:27 <-- duszek (~duszek@admo172.neoplus.adsl.tpnet.pl) has quit (Quit: Leaving) 2021-05-23 08:14:28 arecaceae is it fine in python to default to nested dicts for structure data, or is it idiomatic to tend to default to laying out classes and then composing them together and foregoing dicts? - I'm always a bit unsure what to prefer here, working with dictionaries seems less ergonomic than working with explicit class objects, so it feels a lot like Python wants me to use dicts only sparingly - any pointers / 2021-05-23 08:14:30 arecaceae opinions for best practices here? 2021-05-23 08:15:03 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-23 08:16:21 <-- sec^nd (~second@gateway/tor-sasl/sec0nd) has quit (Ping timeout: 240 seconds) 2021-05-23 08:16:54 --> sec^nd (~second@gateway/tor-sasl/sec0nd) has joined #python 2021-05-23 08:16:59 --> hemstock (~hemstock@213-50-227.netrunf.cytanet.com.cy) has joined #python 2021-05-23 08:17:00 amo arecaceae, that depends very much on the actual case 2021-05-23 08:17:07 --> gareppa (~gareppa@unaffiliated/gareppa) has joined #python 2021-05-23 08:17:26 amo arecaceae, what are you working on? 2021-05-23 08:17:37 MacGyver Also don't forget there's also named tuples. 2021-05-23 08:17:51 MacGyver And dataclasses now? 2021-05-23 08:17:52 amo and many other datastructures 2021-05-23 08:18:05 d42 and typeddicts :^) 2021-05-23 08:18:06 MacGyver There's a few more options beyond the dichotomy you mentioned. 2021-05-23 08:18:31 --> brutamontes (~brutamont@89.26.182.103) has joined #python 2021-05-23 08:18:33 brutamontes https://pastebin.com/TTV6B20P 2021-05-23 08:18:34 infobob https://bpaste.net/4Z5A (repasted for brutamontes) 2021-05-23 08:18:56 arecaceae sure, I'm thinking of nested/composite data structures that don't have methods attached, just "pure" data right -- dataclass are very comfortable to use for sure 2021-05-23 08:19:19 arecaceae I'm just wondering if there's a good heuristic that would inform one when to stray off dicts 2021-05-23 08:19:44 amo whenever it better fits the problem.. 2021-05-23 08:19:48 arecaceae or if dicts tend to be so unergonomic that you might just be better off laying out your data with say dataclasses in the first place 2021-05-23 08:19:52 arecaceae amo: sure 2021-05-23 08:20:05 arecaceae I'm sure there's use cases for every single feature of python 2021-05-23 08:20:21 arecaceae I'm asking more wrt best practices for newcomers 2021-05-23 08:21:29 amo flat is better than nested? 2021-05-23 08:21:57 amo although practicability beats purity 2021-05-23 08:22:06 amo just quoting the zen of python here ^^ 2021-05-23 08:22:15 arecaceae sure 2021-05-23 08:22:41 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Remote host closed the connection) 2021-05-23 08:23:01 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-23 08:24:28 --> CalimeroTeknik (~calimero@88.120.126.87) has joined #python 2021-05-23 08:24:40 amo with regard to annotations, i would prefer flat classes 2021-05-23 08:25:07 amo then you can use basic data types for annotation 2021-05-23 08:25:45 arecaceae makes sense 2021-05-23 08:26:26 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 08:26:47 john2gb0 is there a static analyzer that would show me impure functions? 2021-05-23 08:27:21 --> Gustavo6046_ (~Gustavo60@unaffiliated/gustavo6046) has joined #python 2021-05-23 08:28:02 <-- Gustavo6046 (~Gustavo60@unaffiliated/gustavo6046) has quit (Ping timeout: 246 seconds) 2021-05-23 08:28:26 --> JPT (~jpt@classified.name) has joined #python 2021-05-23 08:28:56 --> Suwacc (~Mija@144.48.39.44) has joined #python 2021-05-23 08:30:17 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 08:30:29 amo john2gb0, you mean static type analysis? 2021-05-23 08:30:36 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 260 seconds) 2021-05-23 08:31:08 john2gb0 i need to find functions that read or write to global variables 2021-05-23 08:31:43 john2gb0 is it possible to autmate that? 2021-05-23 08:32:06 <-- Funke (~funke@unaffiliated/Funke) has quit 2021-05-23 08:32:17 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-23 08:32:18 john2gb0 amo forgot to tag you 2021-05-23 08:32:20 <-- mcsontos (~mcsontos@ip-78-45-136-55.net.upcbroadband.cz) has quit (Quit: Leaving) 2021-05-23 08:32:23 amo o.O 2021-05-23 08:32:33 amo you mean functions with side-effects? 2021-05-23 08:33:08 amo that's a tough nut 2021-05-23 08:33:24 f8e4 sourceing a venv and 'pip install -e /my/github/repo'; now: if the repo is updated by checking out a new tag does it reflect in venv too or do i need to source&install it again? 2021-05-23 08:33:43 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 08:33:52 --> Blankspace (~asddf@unaffiliated/blankspace) has joined #python 2021-05-23 08:34:12 john2gb0 amo, i suppose so. i am working with a person who is inexperienced in good practices and decided to put most things in global variables instead of arguments, and now i am tasked with fixing it. listing all of the problematic functions would make the task a lot easier. 2021-05-23 08:34:30 --> Funke (~funke@unaffiliated/Funke) has joined #python 2021-05-23 08:34:47 amo hmmm.. i'm not sure if it's possible to do that with a static analyzer 2021-05-23 08:34:53 amo john2gb0, but you can do it dynamically 2021-05-23 08:35:04 john2gb0 how would that be? 2021-05-23 08:35:14 --> Muimi_ (~ReedK0@unaffiliated/reedk0) has joined #python 2021-05-23 08:35:16 <-- Muimi_ (~ReedK0@unaffiliated/reedk0) has quit (Excess Flood) 2021-05-23 08:35:43 amo you could wrap the global variable with a decorator of sorts which tracks the stack whenever there's an access to that variable 2021-05-23 08:36:23 <-- hif2 (hifi@m.vi.fi) has quit (Remote host closed the connection) 2021-05-23 08:36:43 --> hif2 (hifi@m.vi.fi) has joined #python 2021-05-23 08:36:43 amo then you get a ping whenever a function tries to access the variable 2021-05-23 08:37:10 --> smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has joined #python 2021-05-23 08:37:36 <-- Muimi (~ReedK0@unaffiliated/reedk0) has quit (Ping timeout: 260 seconds) 2021-05-23 08:37:52 --> englosh (3eb0fd20@pool-32.253.176.62.dynamic.wobline-ip.de) has joined #python 2021-05-23 08:38:11 amo which raises the question how to do that in a global context *hmm* 2021-05-23 08:38:24 amo easy to do that in a class 2021-05-23 08:38:30 john2gb0 yeah, that sounds quite dodgy in the context of this specific codebase 2021-05-23 08:38:43 john2gb0 but ill have a go, thanks! amo 2021-05-23 08:38:46 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-23 08:38:48 amo yw 2021-05-23 08:39:16 <-- Ergo (~ergo@91.238.59.144) has quit (Remote host closed the connection) 2021-05-23 08:41:21 amo sounds like another potential scenario for aspect-oriented wrappers in use() imports 2021-05-23 08:44:15 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 08:44:33 <-- brutamontes (~brutamont@89.26.182.103) has quit (Remote host closed the connection) 2021-05-23 08:44:37 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 08:45:08 <-- Gerula (~Gerula@unaffiliated/gerula) has quit (Read error: Connection reset by peer) 2021-05-23 08:45:40 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-23 08:46:47 --> nitrowheels (~nwheels@151.49.226.43) has joined #python 2021-05-23 08:47:30 --> SpinTronix (~SpinTroni@HSI-KBW-091-089-020-221.hsi2.kabelbw.de) has joined #python 2021-05-23 08:47:34 --> salitos (~contagiou@197.156.190.247) has joined #python 2021-05-23 08:47:46 <-- Death916_lap (~UserNick@unaffiliated/death916) has quit (Ping timeout: 240 seconds) 2021-05-23 08:48:31 <-- fbiagent (~fbiagent@unaffiliated/fbiagent) has quit (Remote host closed the connection) 2021-05-23 08:50:26 <-- contagious_meow (~contagiou@197.156.190.177) has quit (Ping timeout: 260 seconds) 2021-05-23 08:51:03 --> Gerula (~Gerula@unaffiliated/gerula) has joined #python 2021-05-23 08:51:11 <-- code-witch (~code-witc@171.61.113.75) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-05-23 08:52:59 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Read error: Connection reset by peer) 2021-05-23 08:53:23 --> DTZUZU_ (~DTZUZO@207.81.119.43) has joined #python 2021-05-23 08:54:27 <-- greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has quit (Remote host closed the connection) 2021-05-23 08:54:41 --> dntreou (~yakiza@vpn1.datalogix.com) has joined #python 2021-05-23 08:55:26 --> greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has joined #python 2021-05-23 08:56:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 08:56:43 <-- spinningCat (~qweasdzxc@vps46179.public.cloudvps.com) has quit (Read error: Connection reset by peer) 2021-05-23 08:57:09 <-- joocain2 (~joocain2@gateway/tor-sasl/joocain2) has quit (Ping timeout: 240 seconds) 2021-05-23 08:57:33 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 265 seconds) 2021-05-23 08:59:15 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 08:59:47 <-- smokecraft (~smokecraf@2804:14c:109:2d8c:6deb:c07f:bc58:124b) has quit (Quit: Leaving) 2021-05-23 09:00:30 --> pmcnabb (~pmcnabb@pool-71-114-33-160.washdc.fios.verizon.net) has joined #python 2021-05-23 09:01:52 <-- x7b (~ffe4@200116b82c312600f807b689e3dab780.dip.versatel-1u1.de) has quit (Ping timeout: 258 seconds) 2021-05-23 09:01:59 <-- Orlando^_ (~kenny@178.74.16.236) has quit (Ping timeout: 246 seconds) 2021-05-23 09:03:23 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 246 seconds) 2021-05-23 09:04:33 --> Orlando^_ (~kenny@178.74.16.236) has joined #python 2021-05-23 09:04:59 -- jess is now known as jess1 2021-05-23 09:07:10 -- jess1 is now known as jess 2021-05-23 09:08:07 --> whatsupboy (~whatsupbo@unaffiliated/scobydoo) has joined #python 2021-05-23 09:08:16 <-- vuoto (~vuoto@80.71.142.174) has quit (Quit: WeeChat 2.9-dev) 2021-05-23 09:08:54 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-23 09:10:36 --> stree (~stree@68.36.8.116) has joined #python 2021-05-23 09:10:51 <-- Rudd0 (~Rudd0@185.189.115.103) has quit (Ping timeout: 260 seconds) 2021-05-23 09:10:56 --> ramsub07 (c137b0a8@gateway/web/cgi-irc/kiwiirc.com/ip.193.55.176.168) has joined #python 2021-05-23 09:11:06 <-- DarthGandalf (user@znc/developer/DarthGandalf) has quit (Quit: Bye) 2021-05-23 09:11:42 <-- englosh (3eb0fd20@pool-32.253.176.62.dynamic.wobline-ip.de) has quit (Quit: Connection closed) 2021-05-23 09:11:48 ramsub07 Hello. I've strings with information on weight of an object. such as "Xg" or "X.Yg". Where X and Y are integers. How do I write a regex to capture both int and str that precedes the 'g'? 2021-05-23 09:11:50 --> DarthGandalf (user@znc/developer/DarthGandalf) has joined #python 2021-05-23 09:13:46 <-- Orlando^_ (~kenny@178.74.16.236) has quit (Ping timeout: 260 seconds) 2021-05-23 09:13:57 <-- salitos (~contagiou@197.156.190.247) has quit (Read error: Connection reset by peer) 2021-05-23 09:15:38 --> contagious_meow (~contagiou@197.156.190.160) has joined #python 2021-05-23 09:15:53 --> Orlando^_ (~kenny@178.74.16.236) has joined #python 2021-05-23 09:16:54 <-- dff (~dff@unaffiliated/dff) has quit (Quit: WeeChat 3.1) 2021-05-23 09:17:25 --> joocain2 (~joocain2@gateway/tor-sasl/joocain2) has joined #python 2021-05-23 09:18:50 --> lmt (uid107697@gateway/web/irccloud.com/x-ubsrcxpapmqrxmcf) has joined #python 2021-05-23 09:18:59 <-- nubonix (uid492751@gateway/web/irccloud.com/x-yikvwrjbyzlnezmx) has quit (Quit: Connection closed for inactivity) 2021-05-23 09:20:11 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 246 seconds) 2021-05-23 09:20:14 <-- gitesh_ (uid423739@gateway/web/irccloud.com/x-krldqryqlteuibga) has quit (Quit: Connection closed for inactivity) 2021-05-23 09:22:58 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-23 09:24:10 amo ramsub07, weights as in physical measures? 2021-05-23 09:24:37 ramsub07 yes 2021-05-23 09:24:46 ramsub07 specifically 'g' -> grams 2021-05-23 09:24:48 amo X.Yg doesn't look like an integer 2021-05-23 09:25:24 amo are you parsing those strings from some text or why is everything a str? 2021-05-23 09:26:23 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 09:26:38 amo because when it comes to units, i'd recommend a lib like pint instead of doing things yourself 2021-05-23 09:28:26 <-- spiri (~spiri@unaffiliated/spiri) has quit (Ping timeout: 240 seconds) 2021-05-23 09:28:33 --> Tennis (~Tennis@unaffiliated/tennis) has joined #python 2021-05-23 09:29:58 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 09:30:24 --> bsdbandit-01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined #python 2021-05-23 09:32:22 --> x7b (~ffe4@200116b82c312600f807b689e3dab780.dip.versatel-1u1.de) has joined #python 2021-05-23 09:32:26 <-- cthulchu_ (~Cthulchu@193.194.107.250) has quit (Ping timeout: 260 seconds) 2021-05-23 09:32:42 <-- bsdbandit-01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-05-23 09:33:09 --> otisolsen70 (~otisolsen@0x3e2c865c.mobile.telia.dk) has joined #python 2021-05-23 09:33:22 --> Guest20 (~textual@192.146.154.3) has joined #python 2021-05-23 09:33:57 void09 anyone here that for some strange reason is stuck on using ubuntu 18.04 LTS? how do you install the pip for python3.7 ? 2021-05-23 09:34:27 void09 python3-pip packages is for python3.6 and pulls a lot of gunk with it 2021-05-23 09:34:29 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 09:34:45 void09 they have python3.7 packages but for some reason it does not come with pip 2021-05-23 09:34:52 <-- Alzadoua (~Alzadoua@unaffiliated/alzadoua) has quit (Read error: Connection reset by peer) 2021-05-23 09:35:19 --> Alzadoua (~Alzadoua@unaffiliated/alzadoua) has joined #python 2021-05-23 09:35:42 <-- petan (~g@wikimedia/Petrb) has quit (Quit: GrumpyChat - Shutting down for maintenance. https://github.com/grumpy-irc/grumpy) 2021-05-23 09:35:46 <-- Alzadoua (~Alzadoua@unaffiliated/alzadoua) has quit (Read error: Connection reset by peer) 2021-05-23 09:35:50 --> led1 (~Thunderbi@217.66.160.14) has joined #python 2021-05-23 09:36:19 --> Alzadoua (~Alzadoua@unaffiliated/alzadoua) has joined #python 2021-05-23 09:36:39 <-- x7b (~ffe4@200116b82c312600f807b689e3dab780.dip.versatel-1u1.de) has quit (Ping timeout: 245 seconds) 2021-05-23 09:36:40 tumbleweed void09: does the python3-pip not work? 2021-05-23 09:36:59 tumbleweed void09: otherwise create a virtualenv, and it'll have pip in it 2021-05-23 09:37:01 void09 tumbleweed: it works, once I set the default python version to 3.7 2021-05-23 09:37:20 void09 but I was wondering if there's a ppa or something where all this crap is fixed 2021-05-23 09:37:23 tumbleweed even if you don't, python3 -m pip should work? 2021-05-23 09:37:27 void09 don't need python3.6-dev and such 2021-05-23 09:37:40 void09 python3 -m pip 2021-05-23 09:37:40 void09 /usr/bin/python3: No module named pip 2021-05-23 09:37:53 tumbleweed you have python3-pip installed? 2021-05-23 09:37:59 tumbleweed sorry, I meant python3.7 -m pip 2021-05-23 09:38:02 void09 nah, I am trying to avoid that if possible 2021-05-23 09:38:12 void09 as it pulls unneeded stuff 2021-05-23 09:38:12 tumbleweed if you don't install pip, you won't have pip 2021-05-23 09:38:16 <-- Guest20 (~textual@192.146.154.3) has quit (Ping timeout: 260 seconds) 2021-05-23 09:38:23 --> wei2912 (~wei2912@unaffiliated/wei2912) has joined #python 2021-05-23 09:38:27 void09 I am attempting to install it "cleanly" 2021-05-23 09:38:38 void09 I thik I get python 3.6 pip which just happens to work with 3.7 2021-05-23 09:38:40 tumbleweed it's a non-default version, you won't get it completely clean 2021-05-23 09:38:53 tumbleweed a virtualenv with pip in it is probably the cleanest you'll get 2021-05-23 09:39:06 tumbleweed you get a python3 pip, which happens to work with 3.7 2021-05-23 09:39:06 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 240 seconds) 2021-05-23 09:39:12 tumbleweed it's not specific to 3.6 2021-05-23 09:39:23 tumbleweed but its dependencies will be based around the current defaults (3.6) 2021-05-23 09:40:35 void09 I see this ppa refferenced often: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa - anyone use it for 18.04 ? 2021-05-23 09:40:39 <-- Suwacc (~Mija@144.48.39.44) has quit (Quit: Suwacc) 2021-05-23 09:40:46 <-- fran (~fran@unaffiliated/fran) has quit (Ping timeout: 240 seconds) 2021-05-23 09:41:12 <-- led1 (~Thunderbi@217.66.160.14) has quit (Quit: led1) 2021-05-23 09:41:19 --> Suwacc (~Mija@144.48.39.44) has joined #python 2021-05-23 09:42:03 --> Leonarbro (~Leonet@S01067824af93741c.cg.shawcable.net) has joined #python 2021-05-23 09:42:53 --> fran (~fran@unaffiliated/fran) has joined #python 2021-05-23 09:43:25 <-- Tennis (~Tennis@unaffiliated/tennis) has quit (Quit: Leaving) 2021-05-23 09:43:38 --> petan (~g@wikimedia/Petrb) has joined #python 2021-05-23 09:44:18 tumbleweed void09: presumably that's where you got your python3.7 2021-05-23 09:45:26 <-- subho (~subho@fedora/subho) has quit (Quit: laptop going to sleep. ZZZzzz…) 2021-05-23 09:47:35 <-- mwichmann (~mats@209-188-119-117.taosnet.com) has quit (Quit: Leaving) 2021-05-23 09:48:05 --> sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has joined #python 2021-05-23 09:48:18 --> salitos (~contagiou@197.156.190.187) has joined #python 2021-05-23 09:48:19 --> maum (01f5931e@1.245.147.30) has joined #python 2021-05-23 09:48:21 maum hello 2021-05-23 09:48:25 amo hello 2021-05-23 09:48:35 maum can someone help me about tkinter? 2021-05-23 09:49:04 amo ask your question and hope :) 2021-05-23 09:49:13 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-23 09:49:30 maum how can I resize buttons automatically when frame is expanded : https://bpa.st/LWGQ 2021-05-23 09:50:31 <-- contagious_meow (~contagiou@197.156.190.160) has quit (Ping timeout: 260 seconds) 2021-05-23 09:50:40 amo i'm not familiar enough with tkinter to answer that question, but when it comes to more advanced features like that, i'd use something more modern 2021-05-23 09:50:54 maum modern? 2021-05-23 09:50:58 amo why did you choose tkinter in the first place? 2021-05-23 09:51:15 maum I don't know the modern thing 2021-05-23 09:51:44 --> parapan (51c4809f@81.196.128.159) has joined #python 2021-05-23 09:52:06 --> subho (~subho@fedora/subho) has joined #python 2021-05-23 09:52:18 amo pyqt5 or gtk4 is what i'd call modern 2021-05-23 09:52:44 amo https://wiki.python.org/moin/GuiProgramming 2021-05-23 09:52:46 maum ah 2021-05-23 09:53:26 <-- Laibsch (~Laibsch@dynamic-002-243-150-174.2.243.pool.telefonica.de) has quit (Ping timeout: 260 seconds) 2021-05-23 09:53:42 amo the only big advantage of tkinter over the other frameworks is that it's included in the stlib 2021-05-23 09:54:08 amo so, is that why you chose it? do you require that advantage? 2021-05-23 09:54:08 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-23 09:54:59 maum hm.. if pyqt5 is easy, not doubt to choose it 2021-05-23 09:55:10 parapan hi all; does anyone has a clue what the syntax will be to scrap "dateCreated"   from https://bpa.st/SUVQ , with BeautifulSoup ? 2021-05-23 09:56:11 amo maum, it's not easy per se, but there are good tools like qtdesigner that help a great deal 2021-05-23 09:56:16 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-23 09:56:25 --> fungi (~fungi@cthulhu.yuggoth.org) has joined #python 2021-05-23 09:56:25 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 09:56:31 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Ping timeout: 265 seconds) 2021-05-23 09:56:34 maum ah 2021-05-23 09:56:37 --> tips (~tips@pool-173-72-12-154.cmdnnj.fios.verizon.net) has joined #python 2021-05-23 09:56:52 --> Laibsch (~Laibsch@dynamic-002-243-150-174.2.243.pool.telefonica.de) has joined #python 2021-05-23 09:57:04 --> lakrass (~lakrass@5.18.84.94) has joined #python 2021-05-23 09:58:06 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 09:58:15 --> cemotyz09 (~cemotyz09@cpe-76-186-0-3.tx.res.rr.com) has joined #python 2021-05-23 09:58:21 --> mwichmann (~mats@209-188-119-117.taosnet.com) has joined #python 2021-05-23 09:58:28 <-- pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-05-23 09:59:02 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-23 09:59:13 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 09:59:14 --> gitesh_ (uid423739@gateway/web/irccloud.com/x-vzwiyvepfvywcodc) has joined #python 2021-05-23 10:00:01 --> jetchisel (jetchisel@opensuse/member/jetchisel) has joined #python 2021-05-23 10:00:07 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 10:00:46 <-- electrostat (~dag@unaffiliated/electrostat) has quit (Ping timeout: 240 seconds) 2021-05-23 10:01:17 <-- jetchisel (jetchisel@opensuse/member/jetchisel) has quit (Max SendQ exceeded) 2021-05-23 10:01:23 --> electrostat (~dag@unaffiliated/electrostat) has joined #python 2021-05-23 10:02:48 --> PantelicGR (~PantelicG@unaffiliated/pantelicgr) has joined #python 2021-05-23 10:03:21 <-- brickfat (~brickfat@unaffiliated/brickfat) has quit (Ping timeout: 260 seconds) 2021-05-23 10:03:21 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-23 10:03:35 --> bsdbandit-01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined #python 2021-05-23 10:03:38 -- dob1_ is now known as dob1 2021-05-23 10:04:23 --> Vornicus (~Vornicus@2603-8000-5d07-7ef0-d81a-a4b5-d267-cc3e.res6.spectrum.com) has joined #python 2021-05-23 10:05:02 <-- nitrowheels (~nwheels@151.49.226.43) has quit (Quit: Leaving) 2021-05-23 10:05:10 <-- bsdbandit-01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-05-23 10:05:57 --> MyStartx (~X@79.117.220.15) has joined #python 2021-05-23 10:06:39 --> Numero-6 (~Numero-6@85.203.15.11) has joined #python 2021-05-23 10:06:47 <-- tm007 (uid287041@gateway/web/irccloud.com/x-oxmisyzztzajkord) has quit (Quit: Connection closed for inactivity) 2021-05-23 10:07:57 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 260 seconds) 2021-05-23 10:09:07 --> urodna (~urodna@unaffiliated/urodna) has joined #python 2021-05-23 10:10:15 --> pwnd_ (~robs@ool-18b88100.dyn.optonline.net) has joined #python 2021-05-23 10:13:11 <-- rsx (~rsx@ppp-188-174-151-161.dynamic.mnet-online.de) has quit (Quit: rsx) 2021-05-23 10:13:14 --> orbyt_ (~orbyt@172.92.4.78) has joined #python 2021-05-23 10:13:31 --> rsx (~rsx@ppp-188-174-151-161.dynamic.mnet-online.de) has joined #python 2021-05-23 10:13:50 <-- denisse (~denisse@gateway/tor-sasl/alephzer0) has quit (Remote host closed the connection) 2021-05-23 10:14:14 --> denisse (~denisse@gateway/tor-sasl/alephzer0) has joined #python 2021-05-23 10:15:22 <-- appinv (~appinv@unaffiliated/appinventormu) has quit (Ping timeout: 265 seconds) 2021-05-23 10:15:44 -- Abrax is now known as Samus 2021-05-23 10:15:52 -- Samus is now known as Abrax 2021-05-23 10:16:32 -- Abrax is now known as Cloud_Strife 2021-05-23 10:16:39 -- Cloud_Strife is now known as Abrax 2021-05-23 10:17:06 <-- markfxd (~mark@cpc160877-lutn15-2-0-cust136.9-3.cable.virginm.net) has quit (Ping timeout: 240 seconds) 2021-05-23 10:17:45 Numero-6 How can i send all request from all client, to a html data for see in web browser by all client ? I use do_get from BASEHTTPRequest, i do make an other class http.server for put all info in htlm page ? 2021-05-23 10:20:15 <-- amo (~amogorkon@port-83-236-35-4.dynamic.as20676.net) has quit (Read error: Connection reset by peer) 2021-05-23 10:20:50 Andy_Kw quick one : let's say I have a list with multiples dictionnaries like here https://gitlab.com/-/snippets/2125164 What would be the best way to parse it to look for the cheapest, knowing I have the car id and the part needed that goes with it? 2021-05-23 10:22:54 --> amogorkon (~amogorkon@port-83-236-35-4.dynamic.as20676.net) has joined #python 2021-05-23 10:23:13 Xavierdarkness Andy_Kw: you probably could do a list comprehension on the key and call the min() function on it. 2021-05-23 10:23:35 <-- petan (~g@wikimedia/Petrb) has quit (Quit: GrumpyChat - Shutting down for maintenance. https://github.com/grumpy-irc/grumpy) 2021-05-23 10:23:37 Andy_Kw oh that's smart! Thank you 2021-05-23 10:23:44 Andy_Kw Xavierdarkness 2021-05-23 10:23:51 maum how can I resize buttons automatically when frame is expanded : https://bpa.st/LWGQ 2021-05-23 10:24:08 Xavierdarkness Np, happy to help Andy_Kw 2021-05-23 10:24:13 --> a1paca (a1paca@gateway/vpn/protonvpn/a1paca) has joined #python 2021-05-23 10:25:02 <-- MyStartx (~X@79.117.220.15) has quit (Ping timeout: 265 seconds) 2021-05-23 10:25:18 --> Lando-SpacePimp (~Lando@unaffiliated/lando-spacepimp) has joined #python 2021-05-23 10:25:43 Andy_Kw Ty. It should make me go forward 2021-05-23 10:26:11 <-- MJ (~mjpieters@unaffiliated/mj) has quit (Ping timeout: 240 seconds) 2021-05-23 10:26:13 --> joshcom (~joshcom@2600:8800:a706:1800:55ee:bbec:b145:4fe2) has joined #python 2021-05-23 10:26:19 <-- bitdex (~bitdex@gateway/tor-sasl/bitdex) has quit (Quit: = "") 2021-05-23 10:26:29 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 10:26:57 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-23 10:27:46 --> Fauve (~Fauve@unaffiliated/fauve) has joined #python 2021-05-23 10:27:50 <-- parapan (51c4809f@81.196.128.159) has quit (Quit: Connection closed) 2021-05-23 10:27:58 --> MJ (~mjpieters@unaffiliated/mj) has joined #python 2021-05-23 10:28:15 --> cthulchu_ (~Cthulchu@193.194.107.250) has joined #python 2021-05-23 10:28:48 --> petan (~g@wikimedia/Petrb) has joined #python 2021-05-23 10:29:35 <-- mossman93 (~quassel@unaffiliated/mossman93) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-05-23 10:29:36 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 10:29:40 <-- joshcom (~joshcom@2600:8800:a706:1800:55ee:bbec:b145:4fe2) has quit (Client Quit) 2021-05-23 10:30:19 --> mossman93 (~quassel@unaffiliated/mossman93) has joined #python 2021-05-23 10:30:57 --> Norore (~Norore@2a01:e0a:23a:5600:b9d3:ae19:12de:25b) has joined #python 2021-05-23 10:31:29 --> desh (~desh@unaffiliated/desh) has joined #python 2021-05-23 10:31:33 <-- rsx (~rsx@ppp-188-174-151-161.dynamic.mnet-online.de) has quit (Quit: rsx) 2021-05-23 10:31:48 <-- bodom (~bodom@host-82-61-117-205.retail.telecomitalia.it) has quit (Ping timeout: 265 seconds) 2021-05-23 10:32:46 <-- lbalhar (~lbalhar@93.185.13.26) has quit (Ping timeout: 265 seconds) 2021-05-23 10:33:15 <-- petan (~g@wikimedia/Petrb) has quit (Client Quit) 2021-05-23 10:34:16 <-- Blankspace (~asddf@unaffiliated/blankspace) has quit (Ping timeout: 260 seconds) 2021-05-23 10:34:17 --> tarneo (~tarneo@2a01cb040a69ec00b541d52cd55f7d34.ipv6.abo.wanadoo.fr) has joined #python 2021-05-23 10:34:24 --> petan (~g@wikimedia/Petrb) has joined #python 2021-05-23 10:34:41 <-- carbolymer (~carbolyme@dropacid.net) has left #python 2021-05-23 10:35:17 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 10:37:57 <-- stevieh (~skrodzki@p2e58495f.dip0.t-ipconnect.de) has quit (Quit: Leaving.) 2021-05-23 10:38:19 --> YaknotiS (~YaknotiS@cpc1-cmbg18-2-0-cust87.5-4.cable.virginm.net) has joined #python 2021-05-23 10:38:51 Andy_Kw I tried the following 2021-05-23 10:38:55 Andy_Kw `test = [min(float(json_data['parts'][val]['price'])) for val in range(len(json_data['parts']))]` 2021-05-23 10:39:13 --> gonzo (~gonzo@ip-212-239-220-149.dsl.scarlet.be) has joined #python 2021-05-23 10:39:46 <-- electrostat (~dag@unaffiliated/electrostat) has quit (Ping timeout: 240 seconds) 2021-05-23 10:40:09 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-23 10:40:24 <-- PoopieHead (~PoopieHea@static.99.181.69.159.clients.your-server.de) has quit (Quit: imded) 2021-05-23 10:40:41 <-- leo60228 (~leo60228@098-121-230-017.res.spectrum.com) has quit (Ping timeout: 246 seconds) 2021-05-23 10:40:44 --> PoopieHead (~PoopieHea@static.99.181.69.159.clients.your-server.de) has joined #python 2021-05-23 10:41:06 --> electrostat (~dag@unaffiliated/electrostat) has joined #python 2021-05-23 10:41:31 --> englosh (3eb0fd20@pool-32.253.176.62.dynamic.wobline-ip.de) has joined #python 2021-05-23 10:42:49 --> rond_ (5940206b@89-64-32-107.dynamic.chello.pl) has joined #python 2021-05-23 10:43:17 <-- mps31 (~mps31@cpc144186-bsfd9-2-0-cust150.5-3.cable.virginm.net) has quit (Remote host closed the connection) 2021-05-23 10:43:53 <-- Orlando^_ (~kenny@178.74.16.236) has quit (Ping timeout: 265 seconds) 2021-05-23 10:44:19 --> cow[moo] (~asanger@c-69-244-155-110.hsd1.mi.comcast.net) has joined #python 2021-05-23 10:44:26 <-- dntreou (~yakiza@vpn1.datalogix.com) has quit (Ping timeout: 240 seconds) 2021-05-23 10:46:16 --> Orlando^_ (~kenny@178.74.16.236) has joined #python 2021-05-23 10:46:25 --> leo60228 (~leo60228@098-121-230-017.res.spectrum.com) has joined #python 2021-05-23 10:47:06 <-- cow[moo] (~asanger@c-69-244-155-110.hsd1.mi.comcast.net) has quit (Client Quit) 2021-05-23 10:47:35 --> yamz (~contagiou@197.156.190.128) has joined #python 2021-05-23 10:48:19 --> roadie (~user@2a02:8108:ec0:1427:a5f3:7593:d49d:f762) has joined #python 2021-05-23 10:48:30 <-- tarneo (~tarneo@2a01cb040a69ec00b541d52cd55f7d34.ipv6.abo.wanadoo.fr) has quit (Quit: Leaving) 2021-05-23 10:49:14 <-- kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has quit (Remote host closed the connection) 2021-05-23 10:49:43 --> kristijonas (~kristijon@78-56-32-39.static.zebra.lt) has joined #python 2021-05-23 10:50:36 <-- salitos (~contagiou@197.156.190.187) has quit (Ping timeout: 260 seconds) 2021-05-23 10:50:57 <-- yamz (~contagiou@197.156.190.128) has quit (Read error: Connection reset by peer) 2021-05-23 10:51:01 <-- river (~rain1@unaffiliated/rain1) has quit (Read error: Connection reset by peer) 2021-05-23 10:51:09 <-- roadie (~user@2a02:8108:ec0:1427:a5f3:7593:d49d:f762) has quit (Client Quit) 2021-05-23 10:51:23 --> yamz (~contagiou@197.156.190.161) has joined #python 2021-05-23 10:51:33 --> gnoirzox (~gnoirzox@178.170.103.136) has joined #python 2021-05-23 10:51:37 <-- otisolsen70 (~otisolsen@0x3e2c865c.mobile.telia.dk) has quit (Ping timeout: 265 seconds) 2021-05-23 10:51:53 --> zenox (~a@153.58.189.80.dyn.plus.net) has joined #python 2021-05-23 10:52:18 zenox hi, is it possible to find a slice in a series? 2021-05-23 10:52:38 zenox e.g. find [1,2,3] in [5,4,6,1,2,3,5,6,6,] etc 2021-05-23 10:53:04 zenox all i find is about how to perform slicing 2021-05-23 10:53:36 supakeen Sure, you could iterate over the list in slices and compare them to your target slice for example. 2021-05-23 10:53:46 gnoirzox You'll need to iterate over the list to check the values 2021-05-23 10:53:57 gnoirzox Doesn 2021-05-23 10:54:06 <-- leo60228 (~leo60228@098-121-230-017.res.spectrum.com) has quit (Ping timeout: 240 seconds) 2021-05-23 10:54:08 gnoirzox 't seem too complicated 2021-05-23 10:54:51 maum how can I resize buttons automatically when frame is expanded : https://bpa.st/LWGQ 2021-05-23 10:56:23 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 10:56:24 zenox yeah, i was hoping to avoid doing that - i'm lazy, but sure not too difficult 2021-05-23 10:56:35 zenox i was thinking something like a .index for slices 2021-05-23 10:57:05 supakeen Don't think there is though you can find all instances of the first element of your sublist and then compare the slice after it ;) 2021-05-23 10:57:45 --> lbalhar (~lbalhar@78-80-25-227.customers.tmcz.cz) has joined #python 2021-05-23 10:57:51 nedbat zenox: def slice_index(big, little): ll = len(little); for i in range(len(big)-ll+1): if big[i:i+ll] == little: return i 2021-05-23 10:58:06 <-- hussam (~hussam@unaffiliated/hussam) has quit (Ping timeout: 240 seconds) 2021-05-23 10:58:07 nedbat zenox: and supakeen has an optimization 2021-05-23 10:58:15 --> leo60228 (~leo60228@098-121-230-017.res.spectrum.com) has joined #python 2021-05-23 10:58:25 supakeen Is it an optimization? :) 2021-05-23 10:58:30 <-- yamz (~contagiou@197.156.190.161) has quit (Read error: Connection reset by peer) 2021-05-23 10:58:34 --> salitos (~contagiou@197.156.190.224) has joined #python 2021-05-23 10:58:35 supakeen Not that I know big-O in any case. 2021-05-23 10:59:23 zenox ned that's neater than what i would have done! thanks 2021-05-23 10:59:44 --> CrowX- (~CrowX-@185.167.46.134) has joined #python 2021-05-23 10:59:51 <-- salitos (~contagiou@197.156.190.224) has quit (Read error: Connection reset by peer) 2021-05-23 10:59:56 <-- Andy_Kw (4ec717be@gateway/web/cgi-irc/kiwiirc.com/ip.78.199.23.190) has quit (Ping timeout: 246 seconds) 2021-05-23 11:00:10 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 11:00:16 --> salitos (~contagiou@197.156.190.136) has joined #python 2021-05-23 11:00:42 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-23 11:01:21 nedbat supakeen: it's not a better time complexity, but yours will be faster 2021-05-23 11:01:21 zenox i only started with python yesterday and its slicing notation is baffling to me 2021-05-23 11:02:06 zenox ned supakeen the big array has 5 elements and the small 3 elements, so... :) 2021-05-23 11:02:09 supakeen It's quite powerful zenox, but a bit weird to get started with. 2021-05-23 11:02:17 <-- whatsupboy (~whatsupbo@unaffiliated/scobydoo) has quit (Quit: brb) 2021-05-23 11:02:23 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-23 11:02:33 <-- terps (~gaymer@im.a.beast.wit.da.diarhea.flakes.water.and.yeast.lol) has quit (Excess Flood) 2021-05-23 11:02:37 zenox yep totally agree. the best way though is to get stuck in 2021-05-23 11:02:50 --> parapan (51c4809f@81.196.128.159) has joined #python 2021-05-23 11:03:01 parapan hi all; does anyone has a clue what the syntax will be to scrap "dateCreated"   from https://bpa.st/SUVQ , with BeautifulSoup ? 2021-05-23 11:03:11 --> xioton (~xioton@41.113.87.171) has joined #python 2021-05-23 11:04:18 --> rgr (~rgr@p200300e4170c807c604b9344c5789d71.dip0.t-ipconnect.de) has joined #python 2021-05-23 11:04:30 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-23 11:06:59 supakeen Ehhh, you can get the content of that script tag and then parse the contents with a library that understands JSON-LD. 2021-05-23 11:07:27 <-- jjhoo (~jahakala@dsl-trebng21-b048b5-171.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-05-23 11:07:45 supakeen I don't know BeautifulSoup syntax but if it does xpath something akin to `//script[@type='application/ld+json']/text()` would work. 2021-05-23 11:09:08 <-- greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has quit (Remote host closed the connection) 2021-05-23 11:09:23 --> greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has joined #python 2021-05-23 11:09:41 --> terps (~gaymer@im.a.beast.wit.da.diarhea.flakes.water.and.yeast.lol) has joined #python 2021-05-23 11:09:59 --> plutoniix (~q@node-uii.pool-125-24.dynamic.totinternet.net) has joined #python 2021-05-23 11:10:19 --> dbrownns (adfc2120@host-173-252-33-32.public.eastlink.ca) has joined #python 2021-05-23 11:11:17 parapan supakeen: well, "script" tag with {"type":"application/ld+json} give me all that in the bpaste; I don't know how to dig further down .... it also seems I have tuple inside dictionary ....; going directly for the "dateCreated" returns an empty [ ] . . . 2021-05-23 11:11:17 <-- finkata1 (~finkata@83.222.188.39) has quit (Read error: Connection reset by peer) 2021-05-23 11:11:51 --> finkata1 (~finkata@83.222.188.39) has joined #python 2021-05-23 11:12:12 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-23 11:12:56 --> Notgnoshi (~nots@2001-48F8-8-40-2EF0-5DFF-FE04-24F7-dynamic.midco.net) has joined #python 2021-05-23 11:12:57 <-- salitos (~contagiou@197.156.190.136) has quit (Read error: Connection reset by peer) 2021-05-23 11:12:59 supakeen I'm unsure but you need to parse the text that comes out of the tag with a fitting library. 2021-05-23 11:13:18 SnoopJ unfortunately BS doesn't do XPath :( 2021-05-23 11:13:23 --> contagious_meow (~contagiou@197.156.190.246) has joined #python 2021-05-23 11:13:34 supakeen I'm sure it has a different way to do the same! 2021-05-23 11:13:37 SnoopJ it does, yep 2021-05-23 11:13:40 parapan supakeen - exactly ... 2021-05-23 11:14:03 SnoopJ I think the reason is because valid HTML docs (BS's concern) are not necessarily valid XML docs 2021-05-23 11:14:12 parapan SnoopJ: do you know the syntax ? 2021-05-23 11:14:22 --> dark_paket (~dark_pake@213.154.0.250) has joined #python 2021-05-23 11:14:36 SnoopJ parapan, I don't know what "dig further down" means here 2021-05-23 11:15:09 --> x7b (~ffe4@200116b82c31260050fe398e8737f203.dip.versatel-1u1.de) has joined #python 2021-05-23 11:15:14 <-- Alina-malina (~Alina-mal@unaffiliated/alina-malina) has quit (Quit: Bye!) 2021-05-23 11:15:18 SnoopJ It sounds like you are able to extract the contents of that tag, and if so, you're done with the BeautifulSoup part of the problem, as supakeen says 2021-05-23 11:15:34 <-- xioton (~xioton@41.113.87.171) has quit (Quit: leaving) 2021-05-23 11:16:56 <-- greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has quit (Remote host closed the connection) 2021-05-23 11:17:40 <-- rgr (~rgr@p200300e4170c807c604b9344c5789d71.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-05-23 11:18:00 --> greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has joined #python 2021-05-23 11:18:39 --> Alina-malina (~Alina-mal@unaffiliated/alina-malina) has joined #python 2021-05-23 11:18:44 parapan SnoopJ: well, I do, but I cannot get the value of "dateCreated" .....looks like a key:value pair ....maybe direct python command ? 2021-05-23 11:19:11 <-- stree (~stree@68.36.8.116) has quit (Ping timeout: 260 seconds) 2021-05-23 11:19:37 --> Wr4i7h (~abc@a85-139-110-118.cpe.netcabo.pt) has joined #python 2021-05-23 11:20:29 <-- dark_paket (~dark_pake@213.154.0.250) has quit (Remote host closed the connection) 2021-05-23 11:20:51 <-- JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has quit (Read error: Connection reset by peer) 2021-05-23 11:21:13 <-- sand_dull (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) has quit (Ping timeout: 260 seconds) 2021-05-23 11:21:14 --> carljm (~carljm@django/moderator/carljm) has joined #python 2021-05-23 11:22:13 <-- carljm (~carljm@django/moderator/carljm) has quit (Client Quit) 2021-05-23 11:22:37 --> fbiagent (~fbiagent@unaffiliated/fbiagent) has joined #python 2021-05-23 11:23:34 fbiagent I came here to ask a question but as I typed it out I realized how dumb it was, thanks guys 2021-05-23 11:23:36 --> dark_paket (~dark_pake@213.154.0.250) has joined #python 2021-05-23 11:24:28 <-- tkazi (~tkazi@unaffiliated/tkazi) has quit (Ping timeout: 252 seconds) 2021-05-23 11:25:29 a1paca zenox: if you care about complexity that's the classic string search problem and there are faster ways 2021-05-23 11:25:43 a1paca overkill for a length of 5 though 2021-05-23 11:25:51 supakeen parapan, the text inside the tag is in a variant of JSON, you need a separate library to parse that bit but if it's only a single line it will work with the normal json library, see for example: https://stackoverflow.com/questions/43655169/how-to-parse-ldjson-using-python 2021-05-23 11:26:18 --> appinv (~appinv@unaffiliated/appinventormu) has joined #python 2021-05-23 11:26:26 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 11:26:53 <-- Orlando^_ (~kenny@178.74.16.236) has quit (Ping timeout: 246 seconds) 2021-05-23 11:27:39 parapan supakeen: ok, thanks, could be helpful at least to understand smth ... 2021-05-23 11:27:40 --> ShahNaim (~shahnaim@193.36.225.3) has joined #python 2021-05-23 11:28:07 <-- Kanjizai (~kanjizai@unaffiliated/kanjizai) has quit (Ping timeout: 250 seconds) 2021-05-23 11:28:13 <-- dark_paket (~dark_pake@213.154.0.250) has quit (Ping timeout: 260 seconds) 2021-05-23 11:29:12 <-- gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has quit (Read error: Connection reset by peer) 2021-05-23 11:29:36 --> Orlando^_ (~kenny@178.74.16.236) has joined #python 2021-05-23 11:29:40 --> Kanjizai (~kanjizai@unaffiliated/kanjizai) has joined #python 2021-05-23 11:30:12 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 11:30:12 --> tkazi (~tkazi@unaffiliated/tkazi) has joined #python 2021-05-23 11:30:30 --> gschanuel (~gschanuel@200-181-252-244.user3p.brasiltelecom.net.br) has joined #python 2021-05-23 11:31:00 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-23 11:31:51 --> stree (~stree@68.36.8.116) has joined #python 2021-05-23 11:31:58 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-23 11:32:06 <-- wyclif (~wyclif@unaffiliated/wyclif) has quit (Ping timeout: 240 seconds) 2021-05-23 11:32:36 <-- ramsub07 (c137b0a8@gateway/web/cgi-irc/kiwiirc.com/ip.193.55.176.168) has quit (Ping timeout: 260 seconds) 2021-05-23 11:32:54 <-- kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has quit (Ping timeout: 258 seconds) 2021-05-23 11:33:07 <-- gonzo (~gonzo@ip-212-239-220-149.dsl.scarlet.be) has quit (Remote host closed the connection) 2021-05-23 11:33:31 --> bodom (~bodom@host-82-61-117-205.retail.telecomitalia.it) has joined #python 2021-05-23 11:33:46 --> wyclif (~wyclif@unaffiliated/wyclif) has joined #python 2021-05-23 11:34:04 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-23 11:36:03 <-- desh (~desh@unaffiliated/desh) has quit (Quit: Leaving) 2021-05-23 11:36:07 --> twobitsprite (~isaac.fre@107.13.62.21) has joined #python 2021-05-23 11:36:17 <-- DTZUZU_ (~DTZUZO@207.81.119.43) has quit (Read error: Connection reset by peer) 2021-05-23 11:36:49 <-- av_ (uid87081@gateway/web/irccloud.com/x-pkujgpgutcvuissx) has quit (Quit: Connection closed for inactivity) 2021-05-23 11:37:28 SnoopJ parapan, have a look at this: https://bpaste.net/SOPQ 2021-05-23 11:38:05 --> kas50 (~ksa50@2a01:118f:822:9c00:2132:cd52:1e4a:f46a) has joined #python 2021-05-23 11:38:19 --> JavaBean (~JavaBean@228.sub-174-238-140.myvzw.com) has joined #python 2021-05-23 11:38:35 --> DTZUZU (~DTZUZO@205.ip-149-56-132.net) has joined #python 2021-05-23 11:39:07 parapan SnoopJ: WOW ! this is "study" material , thanks; I'm on it . . . 2021-05-23 11:39:24 SnoopJ parapan, if any part of it is unclear, please ask a clarifying question about it 2021-05-23 11:40:49 <-- twobitsprite (~isaac.fre@107.13.62.21) has quit (Ping timeout: 260 seconds) 2021-05-23 11:41:47 parapan SnoopJ: are you kiddin' me ? is commented like in school tutorials ...:D; if I don't get it ....I should be seriously worried about my IQ 2021-05-23 11:42:02 * SnoopJ doesn't agree 2021-05-23 11:42:56 MacGyver Unfortunately I think you overestimate the quality of a lot of teaching material. 2021-05-23 11:43:19 MacGyver Also clarifying questions are always valid. 2021-05-23 11:44:17 --> wildlander (~wildlande@unaffiliated/wildlander) has joined #python 2021-05-23 11:44:44 --> ClaymorePT (~Claymore@2001:8a0:e4e3:f700:8122:53f9:fefc:3f17) has joined #python 2021-05-23 11:44:54 parapan SnoopJ: MacGyver: I've got every bit out of it, thank you . . . . 2021-05-23 11:45:19 parapan I'll even copy that to my learning materials .... 2021-05-23 11:45:41 --> contingo (~textual@213.205.200.36) has joined #python 2021-05-23 11:45:52 <-- anonyme (~anonyme@gateway/tor-sasl/anonyme) has quit (Remote host closed the connection) 2021-05-23 11:46:02 <-- ClaymorePT (~Claymore@2001:8a0:e4e3:f700:8122:53f9:fefc:3f17) has quit (Client Quit) 2021-05-23 11:46:59 --> salitos (~contagiou@197.156.190.245) has joined #python 2021-05-23 11:47:27 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-23 11:47:36 --> anonyme (~anonyme@gateway/tor-sasl/anonyme) has joined #python 2021-05-23 11:48:21 <-- vuoto (~vuoto@80.71.142.174) has quit (Ping timeout: 260 seconds) 2021-05-23 11:48:27 <-- greedom (~greedom@2001:16b8:2ef9:1000:7dd9:4450:df3b:d883) has quit (Remote host closed the connection) 2021-05-23 11:49:21 --> vuoto (~vuoto@80.71.142.174) has joined #python 2021-05-23 11:50:06 <-- contagious_meow (~contagiou@197.156.190.246) has quit (Ping timeout: 260 seconds) 2021-05-23 11:50:46 <-- Ice__101 (~jorge@pool-72-95-136-29.pitbpa.fios.verizon.net) has quit (Quit: WeeChat 3.1) 2021-05-23 11:50:52 --> cow[moo] (~asanger@12.245.227.10) has joined #python 2021-05-23 11:51:16 <-- tkazi (~tkazi@unaffiliated/tkazi) has quit (Ping timeout: 260 seconds) 2021-05-23 11:52:35 <-- vuoto (~vuoto@80.71.142.174) has quit (Client Quit) 2021-05-23 11:52:41 --> Left_Turn (~Matthew@unaffiliated/turn-left/x-3739067) has joined #python 2021-05-23 11:52:56 -- xiaomiao is now known as bonsaikitten 2021-05-23 11:53:10 <-- purplex (~purplex@unaffiliated/purplex88) has quit (Quit: Going offline, see ya! (www.adiirc.com)) 2021-05-23 11:54:24 <-- adema (~adema@ns509503.ip-198-245-51.net) has left #python ("Leaving") 2021-05-23 11:54:47 --> gambl0r3 (~gambl0re@unaffiliated/gambl0re) has joined #python 2021-05-23 11:55:13 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-23 11:55:14 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Ping timeout: 246 seconds) 2021-05-23 11:55:32 --> tos9 (~tos9@python/site-packages/tos9) has joined #python 2021-05-23 11:56:11 --> aslicedbanjo (~aslicedba@host31-48-146-91.range31-48.btcentralplus.com) has joined #python 2021-05-23 11:56:40 zenox alpaca yeah overkill for len=5, but thanks. i'm not too worried about performance atm. i am using python and all! 2021-05-23 11:56:41 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 11:57:17 <-- Suwacc (~Mija@144.48.39.44) has quit (Quit: Suwacc) 2021-05-23 11:59:32 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 12:00:32 --> Rudd0 (~Rudd0@185.189.115.108) has joined #python 2021-05-23 12:01:06 <-- rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-05-23 12:01:45 --> rpkilby (~rpkilby@c-24-20-208-106.hsd1.or.comcast.net) has joined #python 2021-05-23 12:02:43 <-- hussam (~hussam@unaffiliated/hussam) has quit (Quit: leaving) 2021-05-23 12:03:09 --> Codaraxis (Codaraxis@gateway/vpn/mullvad/codaraxis) has joined #python 2021-05-23 12:03:40 <-- Jantz (~IceChat95@2407:7000:8d04:100:71af:646c:edbc:e261) has quit (Read error: Connection reset by peer) 2021-05-23 12:04:41 <-- salitos (~contagiou@197.156.190.245) has quit (Ping timeout: 260 seconds) 2021-05-23 12:05:38 --> tkazi (~tkazi@unaffiliated/tkazi) has joined #python 2021-05-23 12:05:49 <-- gambl0r3 (~gambl0re@unaffiliated/gambl0re) has quit (Ping timeout: 250 seconds) 2021-05-23 12:05:51 <-- Codaraxis_ (Codaraxis@gateway/vpn/mullvad/codaraxis) has quit (Ping timeout: 260 seconds) 2021-05-23 12:06:55 <-- veek (~veek@unaffiliated/veek) has quit (Quit: Leaving) 2021-05-23 12:07:01 <-- tos9 (~tos9@python/site-packages/tos9) has quit (Quit: leaving) 2021-05-23 12:08:12 --> MrBungle (~BLORGA@2604:3d08:1776:ea00:a515:7294:f1f5:8fdb) has joined #python 2021-05-23 12:08:48 --> Jantz (~IceChat95@2407:7000:8d04:100:71af:646c:edbc:e261) has joined #python 2021-05-23 12:10:16 <-- ibenn (~ibenn@2a02:8071:4290:3c00:1973:ba5a:c5b7:f043) has quit (Quit: Leaving) 2021-05-23 12:10:36 --> stormkl (~stormkl@176.40.33.3) has joined #python 2021-05-23 12:12:13 <-- cow[moo] (~asanger@12.245.227.10) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-23 12:14:50 --> ralof_ (~ralof@dynamic-077-004-052-178.77.4.pool.telefonica.de) has joined #python 2021-05-23 12:15:18 --> ranran8888 (6d40b154@gateway/web/cgi-irc/kiwiirc.com/ip.109.64.177.84) has joined #python 2021-05-23 12:16:43 --> cow[moo] (~asanger@12.245.227.10) has joined #python 2021-05-23 12:17:55 maum how can I resize buttons automatically when frame is expanded : https://bpa.st/LWGQ 2021-05-23 12:17:57 <-- Jerrynicki (~niklas@p200300f577331a00845b814337980cff.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-05-23 12:18:08 <-- ralof (~ralof@dynamic-077-004-052-178.77.4.pool.telefonica.de) has quit (Ping timeout: 265 seconds) 2021-05-23 12:19:53 --> hussam (~hussam@unaffiliated/hussam) has joined #python 2021-05-23 12:20:06 <-- rinwa (~rinwa@212-29-253-205.bb.netvision.net.il) has quit (Ping timeout: 240 seconds) 2021-05-23 12:20:43 --> acresearch (~acresearc@unaffiliated/acresearch) has joined #python 2021-05-23 12:21:05 acresearch people, is ther a way to pretty dump an xml file that i generated? the root element? 2021-05-23 12:23:00 --> ov3rmind (~over0-07@unaffiliated/ov3rmind) has joined #python 2021-05-23 12:23:14 --> s2013 (~textual@cpe-24-243-154-189.rgv.res.rr.com) has joined #python 2021-05-23 12:23:27 --> ramsub07 (c137b0a8@gateway/web/cgi-irc/kiwiirc.com/ip.193.55.176.168) has joined #python 2021-05-23 12:23:58 --> Sheilong (uid293653@gateway/web/irccloud.com/x-bdbgkmumykjlzvuc) has joined #python 2021-05-23 12:23:59 --> karx (~yashkaran@47.187.163.80) has joined #python 2021-05-23 12:24:02 ramsub07 Hello. I've filenames like ['100', '1000', '90', '990'..]. how do I sort them based on their integer values? 2021-05-23 12:24:12 <-- cow[moo] (~asanger@12.245.227.10) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-05-23 12:24:15 meridion acresearch: I use "xmllint --format " to pretty print xml files 2021-05-23 12:25:33 nedbat ramsub07: sorted(that_list, key=int) 2021-05-23 12:25:52 ramsub07 nedbat thank you 2021-05-23 12:26:22 <-- tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has quit (Read error: Connection reset by peer) 2021-05-23 12:26:31 ramsub07 a bit curious, what if the list contained some strings? as in ['abc_100', 'def_1000', 'ghi_90', 'lmn_990'..] 2021-05-23 12:26:50 <-- gareppa (~gareppa@unaffiliated/gareppa) has quit (Quit: Leaving) 2021-05-23 12:26:58 SnoopJ you would probably want to use a more complicated key function to turn those into the appropriate integers 2021-05-23 12:27:05 --> pinusc (~pinusc@unaffiliated/pinusc) has joined #python 2021-05-23 12:27:42 ChrisWarrick or `pip install natsort` 2021-05-23 12:28:39 --> bsdbandit-01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined #python 2021-05-23 12:28:41 ramsub07 I tried, key=lambda word : int(word.split('/')[-1]) 2021-05-23 12:29:06 ramsub07 what am i doing wrong? 2021-05-23 12:29:06 SnoopJ '/' doesn't appear in any of those strings 2021-05-23 12:29:12 --> jwhisnant (~jwhisnant@unaffiliated/jwhisnant) has joined #python 2021-05-23 12:29:14 ramsub07 sorry '_' 2021-05-23 12:29:52 SnoopJ That would work for the data you've shown us. You may have other data that doesn't fit the pattern we've seen. If you've hit an error, please share the complete error report: https://bpaste.net/+python+pytb 2021-05-23 12:30:15 --> tiin57 (~tiin57@ec2-3-94-63-186.compute-1.amazonaws.com) has joined #python 2021-05-23 12:31:13 nedbat ramsub07: i find this works well: https://nedbatchelder.com/blog/200712/human_sorting.html 2021-05-23 12:31:29 --> spiri (~spiri@unaffiliated/spiri) has joined #python 2021-05-23 12:33:07 <-- Neomex (~Neomex@176-114-249-197.rychlydrat.cz) has quit (Ping timeout: 265 seconds) 2021-05-23 12:33:31 ramsub07 SnoopJ yes there were some trailing useless strings in the list that didn't match the pattern and I wasn't aware of 2021-05-23 12:33:55 SnoopJ nedbat's solution is a good general one if you care any every group of integers in a filename 2021-05-23 12:34:32 parapan SnoopJ: only one thing on your solution ...data.text doesn't work on the