Friday, 2015-06-12

*** annashen has quit IRC00:02
*** cpallares1 has quit IRC00:03
*** annashen has joined #openstack-glance00:17
*** julim has quit IRC00:27
*** tsekiyam_ has joined #openstack-glance00:28
*** mtanino has quit IRC00:30
*** tsekiyama has quit IRC00:32
*** tsekiyam_ has quit IRC00:33
*** sjmc7 has quit IRC00:39
*** sigmavirus24 is now known as sigmavirus24_awa00:39
*** annashen has quit IRC00:39
*** haomaiwa_ has quit IRC00:43
*** annashen has joined #openstack-glance00:44
*** r-daneel_ has joined #openstack-glance00:45
*** r-daneel has quit IRC00:45
*** annashen has quit IRC00:47
*** vilobhmm1 has quit IRC00:52
*** annashen has joined #openstack-glance00:53
*** ducttape_ has joined #openstack-glance00:54
*** ducttape_ has quit IRC01:13
*** annashen has quit IRC01:23
*** annegentle has joined #openstack-glance01:26
*** annegentle has quit IRC01:31
*** dims_ has quit IRC01:35
*** stpierre has quit IRC01:37
*** sigmavirus24_awa is now known as sigmavirus2401:43
*** r-daneel_ has quit IRC01:46
*** ayoung has joined #openstack-glance01:49
*** spzala has quit IRC01:52
openstackgerritLong Quan Sha proposed openstack/glance: member-create should handle the previous deleted image-member  https://review.openstack.org/19089502:00
*** arnaud____ has joined #openstack-glance02:02
*** dims has joined #openstack-glance02:05
*** dims has quit IRC02:39
*** julim has joined #openstack-glance02:58
*** julim has quit IRC03:09
*** annashen has joined #openstack-glance03:13
*** sigmavirus24 is now known as sigmavirus24_awa03:18
*** annashen has quit IRC03:19
*** vilobhmm has joined #openstack-glance03:20
*** arnaud____ has quit IRC03:23
openstackgerritLong Quan Sha proposed openstack/glance: member-create should handle the previous deleted image-member  https://review.openstack.org/19089503:26
openstackgerritMerged openstack/glance: Fix DbError when image params are out of range  https://review.openstack.org/18270303:34
*** dims has joined #openstack-glance03:40
*** fifieldt has joined #openstack-glance03:42
*** dims has quit IRC03:45
*** tobe has joined #openstack-glance04:04
openstackgerritMerged openstack/glance: Cleanup TODO in glance/gateway.py for elasticsearch being unavailable  https://review.openstack.org/19082304:06
*** annashen has joined #openstack-glance04:09
*** annashen has quit IRC04:11
*** jwang_ has quit IRC04:30
*** jwang_ has joined #openstack-glance04:31
*** frickler has quit IRC04:31
*** annashen has joined #openstack-glance04:40
*** annashen has quit IRC04:42
*** frickler has joined #openstack-glance04:54
*** chlong is now known as chlong_mtg04:59
*** tobe has quit IRC05:06
*** Murali has joined #openstack-glance05:09
*** kebray has quit IRC05:17
openstackgerritLong Quan Sha proposed openstack/glance: member-create should handle the previous deleted image-member  https://review.openstack.org/19089505:28
*** tobe has joined #openstack-glance05:28
*** vilobhmm has quit IRC05:42
*** arnaud____ has joined #openstack-glance05:43
*** groen692 has joined #openstack-glance05:50
*** zz_naotok has quit IRC05:54
*** tobe has quit IRC06:05
*** chlong_mtg is now known as chlong06:06
*** haomaiwang has joined #openstack-glance06:08
*** arnaud____ has quit IRC06:13
*** arnaud____ has joined #openstack-glance06:13
*** ajayaa has joined #openstack-glance06:15
*** arnaud____ has quit IRC06:33
*** belmoreira has joined #openstack-glance06:40
*** tobe has joined #openstack-glance06:42
*** ajayaa has quit IRC06:57
*** TravT_ has joined #openstack-glance07:06
*** ajayaa has joined #openstack-glance07:13
*** markus_z has joined #openstack-glance07:14
*** arnaud____ has joined #openstack-glance07:34
*** frickler_ has joined #openstack-glance07:37
*** frickler_ has quit IRC07:37
*** arnaud____ has quit IRC07:38
*** dims has joined #openstack-glance08:02
*** ajayaa has quit IRC08:02
*** dims has quit IRC08:07
*** TravT_ has quit IRC08:09
*** chlong is now known as chlong_afk08:16
*** ajayaa has joined #openstack-glance08:19
*** jistr has joined #openstack-glance08:20
*** sgotliv__ has quit IRC08:25
*** e0ne has joined #openstack-glance08:38
flaper87ativelkov: hey there08:39
flaper87ativelkov: any patches I should look at ?08:39
*** ajayaa has quit IRC08:40
*** MattMan has quit IRC08:41
*** arnaud____ has joined #openstack-glance08:44
*** tobe has quit IRC08:47
*** tobe has joined #openstack-glance08:48
openstackgerritFlavio Percoco proposed openstack/glance: Switch from MySQL-python to PyMySQL  https://review.openstack.org/18437308:49
*** arnaud____ has quit IRC08:49
flaper87mfedosin: (read my previous 2 messages to ativelkov)08:52
flaper87:D08:52
*** e0ne has quit IRC08:57
*** chlong_afk has quit IRC09:03
openstackgerritFlavio Percoco proposed openstack/glance: Updated from global requirements  https://review.openstack.org/18611409:07
flaper87ativelkov: mfedosin guys, one of you should take a look here: https://review.openstack.org/#/c/184829/09:09
openstackgerritFlavio Percoco proposed openstack/glance: Fix Python 3 issues  https://review.openstack.org/18483509:15
*** haomaiwang has quit IRC09:17
*** aix has joined #openstack-glance09:22
openstackgerritKamil Rykowski proposed openstack/glance: Change status code from 500 to 400 for image update request  https://review.openstack.org/18402309:40
*** pdb has quit IRC09:40
*** pdb has joined #openstack-glance09:41
*** dims has joined #openstack-glance09:49
*** dims has quit IRC09:50
openstackgerritMerged openstack/glance: Correct bad documentation merge  https://review.openstack.org/18973209:52
*** GB21 has joined #openstack-glance09:55
*** dims has joined #openstack-glance09:56
openstackgerritMerged openstack/glance: Remove duplicate creation of use_user_token  https://review.openstack.org/18979309:57
*** aix has quit IRC10:00
*** GB21 has quit IRC10:02
*** e0ne has joined #openstack-glance10:04
*** e0ne is now known as e0ne_10:04
*** e0ne_ is now known as e0ne10:06
openstackgerritMerged openstack/glance: Make properties roles check case-insensitive  https://review.openstack.org/16354810:06
flaper87LOL, we have patches older than 1 year10:11
flaper87jeeez10:11
kragnizflaper87: :(10:11
flaper87I'm abandoning those10:12
*** pdb has quit IRC10:12
* flaper87 is doing a massive clean up10:13
*** pdb has joined #openstack-glance10:18
*** Miouge has joined #openstack-glance10:20
*** aix has joined #openstack-glance10:28
*** arnaud___ has joined #openstack-glance10:50
*** arnaud___ has quit IRC10:55
openstackgerritMike Fedosin proposed openstack/glance: Add info how to avoid issues with token expiration  https://review.openstack.org/18882510:58
*** fifieldt has quit IRC10:58
*** tobe has quit IRC11:10
flaper87nikhil_k: I started abandoning some patches today that were crazy old: https://review.openstack.org/#/q/status:abandoned+project:openstack/glance,n,z (not all of those, just look at the updated field)11:27
flaper87don't freak out, I'm not drunk11:27
flaper87it's just that really... 1y 1month old patches?11:28
flaper87And we're now down to 4 pages of patches11:28
flaper87which is still insanely huge11:28
*** vijendar has joined #openstack-glance11:38
*** e0ne is now known as e0ne_11:38
*** vijendar has quit IRC11:41
*** vijendar has joined #openstack-glance11:41
*** e0ne_ has quit IRC11:49
*** ducttape_ has joined #openstack-glance11:58
*** GB21 has joined #openstack-glance11:59
*** vijendar has quit IRC12:01
openstackgerritMerged openstack/glance: Replace types.NameType with name  https://review.openstack.org/18482912:04
*** GB21 has quit IRC12:07
*** stpierre has joined #openstack-glance12:17
*** ducttape_ has quit IRC12:17
*** julim has joined #openstack-glance12:19
*** raildo has joined #openstack-glance12:27
*** sgotliv__ has joined #openstack-glance12:37
*** MattMan has joined #openstack-glance12:38
*** arnaud___ has joined #openstack-glance12:39
*** sgotliv__ has quit IRC12:41
*** sgotliv has joined #openstack-glance12:41
*** arnaud___ has quit IRC12:43
*** spzala has joined #openstack-glance12:51
*** e0ne has joined #openstack-glance13:01
*** dims is now known as dimsum__13:02
*** annegentle has joined #openstack-glance13:04
*** ducttape_ has joined #openstack-glance13:08
*** Murali has quit IRC13:12
*** peristeri has joined #openstack-glance13:15
*** ducttape_ has quit IRC13:15
*** ducttape_ has joined #openstack-glance13:20
*** ducttape_ has quit IRC13:29
*** annegentle has quit IRC14:00
*** sigmavirus24_awa is now known as sigmavirus2414:01
*** vilobhmm has joined #openstack-glance14:01
*** vilobhmm1 has joined #openstack-glance14:04
*** vilobhmm has quit IRC14:07
*** annegentle has joined #openstack-glance14:07
*** vilobhmm1 has quit IRC14:11
nikhil_kflaper87: ooh, that's amazing ! ~25 -- that's a lot of stale ones. I was thinking of re-invoking some..14:19
*** annegentle has quit IRC14:20
nikhil_kbut for now they can sit there14:20
nikhil_kthanks for doing that14:20
nikhil_kwonder whatever happened to the jokke_'r proposal of auto abandoning, anyone know more?14:20
*** Miouge has quit IRC14:20
flaper87nikhil_k: I think it went nowhere so I just decided to do it manually14:20
nikhil_kjokke_'s *14:20
flaper87and leave a message that was fair and gentle enough14:21
flaper87(at least it sounded like that to me :P)14:21
nikhil_khah :) cool14:21
flaper87I redirected some to glance_store14:21
nikhil_kmakes sense14:21
flaper87others were already fixed, etc14:21
flaper87and I went through our bugs Critical -> high14:21
flaper87and checked the patches14:21
flaper87I stopped when I got to Medium14:22
sigmavirus24gertty actually provides a nice interface to abandoning patches14:22
sigmavirus24You can do it from the revision list if you know you want to abandon it14:22
nikhil_k.g gertty14:22
nikhil_kflaper87: awesome! thanks..14:23
nikhil_ksigmavirus24: looks pretty amazing. you use it much?14:25
sigmavirus24nikhil_k: I do. It's great for when your'e travelling since it syncs everything offline14:25
sigmavirus24I leave it running in a terminal tab 24/714:25
sigmavirus24It also is great for addressing review comments since I don't have to switch back and forth between a browser and the terminal14:26
sigmavirus24just terminal tab to terminal tab14:26
sigmavirus24I did about 40 reviews with gertty on the plane to the summit and spammed flaper87 and kragniz ;)14:26
* flaper87 uses gerrty14:27
flaper87gertty14:27
*** GB21 has joined #openstack-glance14:27
*** arnaud___ has joined #openstack-glance14:27
sigmavirus24gerrtttttttttyyyyyyyyyyyy14:28
* sigmavirus24 was introduced to it by a keystone core14:28
sigmavirus24it also syncs the changes locally and will interact with the local git clone for you14:28
* flaper87 by an email thread14:28
*** pdb is now known as SamYaple14:29
flaper87sigmavirus24: do you pip install gertty or use it from source ?14:29
*** SamYaple is now known as pdb_14:30
*** pdb_ is now known as pdb14:30
sigmavirus24Cloned it, installed in a virtual environment in editable mode14:30
flaper87idem14:30
sigmavirus24pdb.set_trace()14:30
nikhil_kcool! I was always educated on gerrit basically since the rackspace team here used it much. It's so much like gmail so kinda find it convenient. But modern browsers are diluting the fun with all the memory and file caches these days14:30
sigmavirus24nikhil_k: gertty live updates too14:30
sigmavirus24so if you're on the review overview and something changes, the next time it syncs it'll just update it for you14:31
sigmavirus24I think the alternate way of browsing gerrit does that too, but the default UI (which I prefer) doesn't14:31
sigmavirus24gertty will also react to mouse scroll events now and let's you click on things like gate job links14:32
*** arnaud___ has quit IRC14:32
sigmavirus24I've had a couple times where I had to kill -9 it14:32
*** pdb is now known as pbourke14:32
sigmavirus24but that was only ever in LAX on their terrible wifi14:32
nikhil_kgotcha, seems pretty thorough14:34
nikhil_kI'm definitely trying this14:34
nikhil_krestarting, my mac doesn't have any space left. Wonder what's the new osx caching does to the m/c14:35
kragnizsigmavirus24: I need to get using gertty14:37
kragnizsigmavirus24: just so I can pay you back for the review spam14:37
*** zz_jgrimm is now known as jgrimm14:39
flaper87kragniz: you can also write a bot that sends emails identical to gerrit's14:40
kragnizwhat a great idea!14:40
*** jgrimm is now known as zz_jgrimm14:41
*** sjmc7 has joined #openstack-glance14:42
sigmavirus24kragniz: do it14:44
sigmavirus24kragniz: thing is I don't check my email for gerrit stuff anymore14:44
sigmavirus24=/14:44
flaper87sigmavirus24: that's the fun thing, it'll not come from a gerrit address14:45
* flaper87 hides14:45
sigmavirus24"muahahahahahahah" -- flaper87 probably14:46
flaper87:D14:49
*** e0ne is now known as e0ne_14:49
* kragniz sets a reminder to do this when sigmavirus24 has forgotten about it14:50
flaper87Would it be sane to have the scrubber deleting images that have been "queued" for longer than "user-max-queued-time-configured-parameter" ?14:50
flaper87I don't think we have a way to scrub staled, queued, images14:50
*** kebray has joined #openstack-glance14:51
*** kebray has quit IRC14:51
nikhil_ksounds reasonable14:54
nikhil_kas long as we can configure it as -1 (duality for infinite)14:55
nikhil_kand possibly disallow 0 :P14:55
*** e0ne_ is now known as e0ne14:55
flaper87yeah14:56
flaper87ok14:56
flaper87I might write a spec14:56
* flaper87 looks for time in his backpack14:56
*** kebray has joined #openstack-glance14:56
*** annegentle has joined #openstack-glance14:58
nikhil_kflaper87: sigmavirus24 https://review.openstack.org/#/c/173738/415:08
nikhil_kflwang: ^15:09
*** belmoreira has quit IRC15:10
* flaper87 clicks15:10
sigmavirus24nikhil_k: I haven't had a chance to test that15:11
sigmavirus24That's why I didn't +2 +W it15:11
*** alex_xu is now known as alexus15:11
* flaper87 will let sigmavirus24 test it15:11
sigmavirus24flaper87: I won't be able to test it before tomorrow at the earliest15:11
sigmavirus24so if you have a moment =p15:11
flaper87I don't right now :(15:12
openstackgerritLouis Taylor proposed openstack/glance_store: Add swift store functional testing support  https://review.openstack.org/18928915:14
openstackgerritLouis Taylor proposed openstack/glance_store: Add base for functional tests  https://review.openstack.org/18814515:14
openstackgerritLouis Taylor proposed openstack/glance_store: Add RBD store functional testing support  https://review.openstack.org/19110815:14
nikhil_ksigmavirus24: thanks.15:14
openstackgerritLouis Taylor proposed openstack/glance_store: Add RBD store functional testing support  https://review.openstack.org/19110815:15
openstackgerritLouis Taylor proposed openstack/glance_store: Add swift store functional testing support  https://review.openstack.org/18928915:15
openstackgerritLouis Taylor proposed openstack/glance_store: Move glance_store tests into the main package  https://review.openstack.org/17517015:15
openstackgerritLouis Taylor proposed openstack/glance_store: Add base for functional tests  https://review.openstack.org/18814515:15
openstackgerritLouis Taylor proposed openstack/glance_store: Add functional testing devstack gate hooks  https://review.openstack.org/18647115:15
sigmavirus24nikhil_k: jokke_ might have time15:15
sigmavirus24And he's on IRC =P15:15
nikhil_ksigmavirus24: I'm just checking15:16
nikhil_ksigmavirus24: good point on functional tests. I took the liberty of first +2 :)15:16
nikhil_kbut now feel like moving it ahead15:16
sigmavirus24nikhil_k: sure. I just want to make sure it does what it says it does against devstack or an osad aio15:17
*** e0ne is now known as e0ne_15:18
nikhil_kright you are Mr. Ian15:19
nikhil_kIf I say that in Irish it may ryhmn with My. Wayne15:20
GB21hey sigmavirus2415:24
sigmavirus24GB21: what's up?15:26
*** e0ne_ is now known as e0ne15:27
GB21sigmavirus24, I was thinking if I could work on this bug  https://bugs.launchpad.net/glance/+bug/145020915:27
openstackLaunchpad bug 1450209 in Glance "Glance API logs a never ending stream of 404 tracebacks from glance-registry " [Medium,Confirmed] - Assigned to Ian Cordasco (icordasc)15:27
sigmavirus24go for it15:27
*** arnaud___ has joined #openstack-glance15:28
GB21sigmavirus24, thanks :D15:28
*** annegentle has quit IRC15:28
*** spzala has quit IRC15:28
*** annegentle has joined #openstack-glance15:29
*** arnaud___ has quit IRC15:32
*** tsekiyama has joined #openstack-glance15:37
*** haomaiwang has joined #openstack-glance15:44
*** belmoreira has joined #openstack-glance15:55
*** belmoreira has quit IRC15:55
*** spzala has joined #openstack-glance15:56
*** spzala_ has joined #openstack-glance15:57
*** groen692 has quit IRC16:00
*** spzala has quit IRC16:01
*** spzala_ is now known as spzala16:01
*** frickler_ has joined #openstack-glance16:14
*** frickler_ has quit IRC16:14
*** e0ne has quit IRC16:24
*** arnaud___ has joined #openstack-glance16:26
*** annegentle has quit IRC17:05
*** markus_z has quit IRC17:13
*** TravT_ has joined #openstack-glance17:21
*** jaypipes has joined #openstack-glance17:22
*** vilobhmm has joined #openstack-glance17:30
*** jistr has quit IRC17:48
*** annashen has joined #openstack-glance17:48
*** kebray has quit IRC17:53
*** kebray has joined #openstack-glance17:53
*** annegentle has joined #openstack-glance17:58
*** e0ne has joined #openstack-glance18:00
*** annashen has quit IRC18:00
*** annashen has joined #openstack-glance18:01
*** cloudnull is now known as cloudkiller18:03
*** harshs has joined #openstack-glance18:03
*** annegentle has quit IRC18:05
harlowjaharshs hey nikhil_k yt18:05
*** cloudkiller is now known as cloudnull18:06
*** e0ne has quit IRC18:13
*** TravT_ has quit IRC18:14
*** e0ne has joined #openstack-glance18:19
*** aix has quit IRC18:22
*** e0ne is now known as e0ne_18:25
*** annegentle has joined #openstack-glance18:30
*** e0ne_ has quit IRC18:30
*** jaypipes is now known as leakypipes18:33
*** leakypipes has quit IRC18:41
*** jaypipes has joined #openstack-glance18:43
*** annashen has quit IRC18:43
nikhil_kharshs: harlowja o/18:43
harlowjanikhil_k hi there!18:43
harshshi nikhil_k18:44
nikhil_khey hey18:44
harlowjanikhil_k hey, the weekly meetings are on thursday ya?18:46
* harlowja was thinking harshs could start attending those, getting to know whats happening and all18:47
harshsharlowja: yes absolutely18:47
*** TravT_ has joined #openstack-glance18:48
nikhil_kharlowja: oh yeah, absolutely. meetings are great to know people. Here's more info -> https://wiki.openstack.org/wiki/Meetings/Glance18:49
harlowjathx18:49
nikhil_kWe do introductions every so often. May be harshs can enchant us with a poem :P18:49
harlowjalol18:49
harshslol18:50
*** jaypipes is now known as leakypipes18:50
harshsi will try18:50
* harlowja has to see this18:50
harlowjalol18:50
*** annegentle has quit IRC18:50
nikhil_kI would suggest a Limerick but our channels are logged18:51
harlowjais that something sfw to serach for?18:52
harlowjall18:52
harlowjalol18:52
harlowja*search18:52
*** GB21 has quit IRC18:52
*** annegentle has joined #openstack-glance18:54
nikhil_kharlowja: sure, safe enough. But prolly a poem on the channel would get them kicked18:56
harlowjalol18:56
harlowjahaha18:56
harlowjahttp://limerickpoems.org/ ?18:57
nikhil_kheh yes18:57
harlowjagood find, didn't know about that18:57
nikhil_k:)18:58
*** ayoung is now known as ayoung-mtg19:00
*** dontalton has joined #openstack-glance19:09
*** e0ne has joined #openstack-glance19:09
*** e0ne is now known as e0ne_19:18
*** e0ne_ is now known as e0ne19:22
*** annegentle has quit IRC19:24
*** dontalton has quit IRC19:52
*** sjmc7 has quit IRC19:54
*** sgotliv has quit IRC20:07
*** stpierre has quit IRC20:07
*** frickler has quit IRC20:07
*** redrobot has quit IRC20:07
*** frickler_ has joined #openstack-glance20:07
*** stpierre has joined #openstack-glance20:07
*** sgotliv has joined #openstack-glance20:07
*** redrobot has joined #openstack-glance20:08
*** redrobot is now known as Guest6707420:08
*** EmilienM is now known as EmilienM|afk20:10
*** e0ne has quit IRC20:19
*** greghaynes has quit IRC20:27
*** annegentle has joined #openstack-glance20:29
*** ayoung-mtg has quit IRC20:36
*** TravT_ has quit IRC20:36
*** sjmc7 has joined #openstack-glance20:39
sigmavirus24nikhil_k: how often do people -1 their own spec: https://review.openstack.org/189537 ?20:40
nikhil_ksigmavirus24: heh, nice :)20:40
sigmavirus24Helping David on the ML with his proxy woes reminded me that was the third option that I thought we'd need to add to the HTTP Store =P20:41
kragnizsigmavirus24: isn't it normal to -workflow it?20:41
nikhil_kI think he still wants reviews20:42
kragnizaha20:42
nikhil_koh boy, those proxy issues never reduce. we have a few every 6 moths during intern application phases20:46
sigmavirus24nikhil_k: yeah20:46
nikhil_kmight be a good idea to create a handbook at infra20:46
*** raildo has quit IRC20:46
kragnizalso, sigmavirus24 speaking of proxies could you port ansible away from httplib pretty please?20:46
kragnizit makes me sad :(20:47
sigmavirus24kragniz: ansible supports 2.420:47
sigmavirus24so no20:47
kragnizaw20:47
nikhil_kwat20:47
sigmavirus24kragniz: did you see the unreleased CVE fix they included in 1.9.2?20:47
kragnizdreams are ruined20:47
kragnizsigmavirus24: nope, what was it?20:47
sigmavirus24nikhil_k: Ansible Inc has customers on ancient RHEL versions20:47
nikhil_kmy my20:47
sigmavirus24kragniz: they were trying to verify HTTPS connections with httplib, and like everyone else, were doing it wrong in get_url20:47
kragnizoh dear...20:48
sigmavirus24nikhil_k: all discussion of porting to Python 3 is off the table20:48
sigmavirus24kragniz: oh yes20:48
nikhil_k:)20:48
sigmavirus24kragniz: go to the stable_1.9 branch in GitHub and look at CHANGELOG.md20:48
*** annegentle has quit IRC20:48
sigmavirus24nikhil_k: dont' smile. You know you'd rather be writing Python 320:48
nikhil_kI actually am planning to write and not yet write in20:49
nikhil_kthough once I am offloaded with a huge tech debt20:49
kragnizsigmavirus24: ew I looked20:50
sigmavirus24python 3 is faster and a better language over all20:50
sigmavirus24the AST in Py3 is so much cleaner20:50
*** ayoung-mtg has joined #openstack-glance20:50
kragnizpy3k4lyfe20:51
*** arnaud___ has quit IRC20:51
nikhil_kgotcha. though I founda  few things in py3 that seemed to not be conventional pythonic20:52
nikhil_kwhich is a side-effect of evolution..20:52
nikhil_kI just meant implicit vs. explicit seemed to have been lowered in the list20:53
nikhil_kthough your points makes me think if the source is much clearner20:53
*** TravT_ has joined #openstack-glance20:53
nikhil_kbut given the amount of issues we see in py27, I am looking forward to py320:54
nikhil_k(in general)20:54
*** TravT_ has quit IRC20:54
sigmavirus24yeah20:57
sigmavirus24so did you ever notice on Py2 that you can compare '0' and 120:57
sigmavirus24(a string and an int)20:57
sigmavirus24do '0' < 120:57
sigmavirus24then do '0' > 120:57
sigmavirus24And no, there is no TypeError there20:57
sigmavirus24(That's fixed on Py3 btw)20:58
nikhil_ktrue that, I always realize after writing :P20:58
sigmavirus24Do you know why '0' > 1 is true?20:58
nikhil_kin a bunch of unit tests ..20:58
nikhil_kI guess we are playing trivia20:58
sigmavirus24We don't have to20:58
nikhil_kbecause it's int value is more20:58
nikhil_kI don't really remember the integer value for '0'. is that 'a' + 26 or something20:59
*** peristeri has quit IRC21:00
sigmavirus24That's not it21:00
sigmavirus24:D21:00
sigmavirus24tl;dr is here: http://www.coglib.com/~icordasc/blog/2012/08/weirdness-in-python2.html21:00
nikhil_kwat21:01
nikhil_ksigmavirus24: ah nice, that's your blog21:03
sigmavirus24http://codrspace.com/durden/comparing-unrelated-python-types/21:05
sigmavirus24that too21:05
sigmavirus24It falls back to 's' > 'i'21:05
sigmavirus24and ord('s') > ord('i')21:05
sigmavirus24also in python `a = 2\na is 2` is True, while `a = 300\na is 300` is False21:06
sigmavirus24fun stuff is fun21:06
*** vilobhmm has quit IRC21:09
*** vilobhmm has joined #openstack-glance21:09
nikhil_ksigmavirus24: nice.21:14
nikhil_kthe second one was a great one too.21:14
sigmavirus24the secret is in the bytecode21:15
sigmavirus24'300 is 300' but the example I gave you isn't21:15
sigmavirus24actually in that example 'a = 300; a is 300' will be True too21:15
sigmavirus24because bytecode ~~~~21:15
kragnizsigmavirus24: speaking of bytecode21:16
kragnizsigmavirus24: you should totally add one of these: https://github.com/AbstractBeliefs/BadBuzz/blob/master/Python/kragniz.py21:16
*** annegentle has joined #openstack-glance21:19
*** ayoung-mtg has quit IRC21:20
sigmavirus24hah21:20
kragnizthe worst fizzbuzzes you can think of21:20
sigmavirus24lol21:22
sigmavirus24I should do it in Ruby or C21:22
kragnizwe must have more21:22
kragnizmy C one isn't very good21:22
kragnizI mean bad21:22
sigmavirus24I trained for a few months to compete in IOCCC21:22
sigmavirus24Then stopped21:22
sigmavirus24Because I realized it was a bad talent to have21:22
kragnizikr21:23
kragnizdo a ruby one21:23
kragnizdoooo iittt21:23
nikhil_ksigmavirus24: I see. Wonder why 2 is assigned the same id as a?21:28
sigmavirus24nikhil_k: like I said, the secret's in the bytecode21:29
nikhil_ksigmavirus24: btw, your website looks nice.. I missed your messages and was busy lurking those links :P21:29
sigmavirus24import dis; dis.dis('...')21:29
*** ayoung-mtg has joined #openstack-glance21:32
*** zz_jgrimm is now known as jgrimm21:33
nikhil_kinterstingly I am finding weirdness in dis module now21:40
nikhil_kyou can't compare 'a == a' or even assign 'a = a' without it breaking on index range21:41
-openstackstatus- NOTICE: Gerrit will be offline for project renames between 22:00 and 22:30 UTC21:42
*** ChanServ changes topic to "Gerrit will be offline for project renames between 22:00 and 22:30 UTC"21:42
*** tpeoples has joined #openstack-glance21:49
*** pbourke has quit IRC21:52
*** pbourke has joined #openstack-glance21:53
*** pdb has joined #openstack-glance21:54
*** pbourke has quit IRC21:54
*** pdb has quit IRC21:55
*** pdb has joined #openstack-glance21:56
-openstackstatus- NOTICE: Gerrit is offline for project renames. ETA 20:3022:03
*** ChanServ changes topic to "Gerrit is offline for project renames. ETA 20:30"22:03
*** spzala has quit IRC22:05
nikhil_ksigmavirus24: Thanks! I've learnt something interesting today ;-)22:08
-openstackstatus- NOTICE: Gerrit is offline for project renames. ETA 22:4022:08
*** ChanServ changes topic to "Gerrit is offline for project renames. ETA 22:40"22:08
*** pdb has quit IRC22:14
*** ayoung-mtg is now known as ayoung22:16
*** vilobhmm has quit IRC22:17
*** BitSmith has joined #openstack-glance22:19
*** leakypipes has quit IRC22:26
*** vilobhmm has joined #openstack-glance22:28
*** annegentle has quit IRC22:34
*** annegentle has joined #openstack-glance22:34
sigmavirus24nikhil_k: you're welcome22:36
sigmavirus24nikhil_k: btw, ruby has some fun quirks too22:37
sigmavirus24if you're ever interested22:37
*** TravT_ has joined #openstack-glance22:38
*** ChanServ changes topic to "Gerrit is offline for project renames. ETA 20:30"22:42
-openstackstatus- NOTICE: Gerrit is back online. Zuul reconfiguration for renamed projects is still in progress, ETA 23:30.22:42
*** pdb has joined #openstack-glance22:42
*** annegentle has quit IRC22:45
*** marcusvrn_ has joined #openstack-glance22:47
*** ChanServ changes topic to "Discussion of OpenStack Glance | logs at http://eavesdrop.openstack.org/irclogs/%23openstack-glance/"22:50
*** marcusvrn_ is now known as marcusvrn22:52
*** sigmavirus24 is now known as sigmavirus24_awa22:54
*** TravT_ has quit IRC22:55
*** TravT_ has joined #openstack-glance22:56
*** BitSmith has quit IRC23:02
*** TravT_ has quit IRC23:21
*** openstackgerrit has quit IRC23:22
*** openstackgerrit has joined #openstack-glance23:22
*** tpeoples has quit IRC23:26
*** harshs has quit IRC23:38
*** tsekiyam_ has joined #openstack-glance23:38
*** tsekiyama has quit IRC23:42
*** tsekiyam_ has quit IRC23:42
*** arnaud___ has joined #openstack-glance23:52
*** harshs has joined #openstack-glance23:54
*** arnaud___ has quit IRC23:56

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!