mmcc | ok, that's enough for today | 01:34 |
---|---|---|
JamesTait | Happy Friday, folks! :-D | 08:17 |
mandel | morning all! | 08:48 |
gatox | good morning! | 11:14 |
mandel | gatox, hola! | 11:24 |
gatox | mandel, feliz cumpleaños!! :D | 11:24 |
gatox | mandel, i can't believe you are already here jejej | 11:24 |
mandel | gatox, gracias! | 11:24 |
mandel | gatox, I'm getting too old for this hehehe | 11:25 |
gatox | jejej | 11:25 |
gatox | mandel, i'm not going to deny that you are old...... | 11:28 |
gatox | jejjee | 11:28 |
alecu | hello all! | 12:14 |
alecu | hola mandel, happy happy, joy joy! | 12:15 |
mandel | alecu, lol thx! | 12:16 |
gatox | alecu, hi | 12:16 |
mandel | I'm off to have lunch :) | 12:18 |
* mandel lunch | 12:18 | |
ralsina | good morning! | 12:37 |
gatox | ralsina, hi | 12:38 |
=== yofel_ is now known as yofel | ||
=== slank` is now known as slank | ||
ralsina | gatox: you are in trouble mister | 13:41 |
gatox | ralsina, oh oh..... | 13:42 |
gatox | ralsina, what happend? | 13:42 |
ralsina | gatox: I just approved your NZ trip and now you don't have enough free days left to cover the company christmas shutdown | 13:42 |
ralsina | gatox: you are going to have to work national holidays | 13:42 |
gatox | ralsina, i have one holiday and a couple of remaining swap before the end of the year | 13:42 |
alecu | gatox: stop slacking! | 13:43 |
ralsina | gatox: what swaps? ;-) | 13:43 |
ralsina | gatox: remember that you have to load the swaps before you swap them (not sure if you did that) | 13:43 |
gatox | ralsina, obtober 12, november 20, december 8 still didn't happend | 13:44 |
ralsina | gatox: ok, so you are going to work national holidays. Ok! | 13:44 |
gatox | ralsina, yap! | 13:44 |
gatox | that was the plan | 13:44 |
ralsina | gatox: just so you can see hobbiton | 13:44 |
ralsina | gatox: ;-) | 13:45 |
* gatox is tooooo excited about this trip .P | 13:45 | |
gatox | :P | 13:45 |
briancurtin | ralsina: as an alternative to working the nat'l holidays in that case, it's also an option to not work the holiday but also not get paid for that day, right? | 13:45 |
ralsina | gatox: feel free to setup the swaps in canonicaladmin soon so we don't forget | 13:45 |
ralsina | briancurtin: yes, I think | 13:45 |
gatox | ralsina, ok...... doing it now! | 13:45 |
ralsina | briancurtin: but I think unpaid vacation is frowned upon | 13:45 |
briancurtin | certainly | 13:46 |
alecu | gatox: and august 20, too: http://bit.ly/feriados-AR-2012 | 13:46 |
gatox | alecu, i'm going to take that one :P i only need 3 | 13:46 |
gatox | jeje | 13:46 |
briancurtin | ralsina: how many days do we need to keep around for the christmas shutdown? | 13:46 |
ralsina | briancurtin: depends on what days are holidays where you live | 13:47 |
alecu | gatox: and do you have enough days for pyconar and for pyday? | 13:47 |
ralsina | for example in the UK the 26th is a holiday, and here in .ar it isn't | 13:47 |
* mandel back | 13:47 | |
gatox | alecu, pyday is on saturday, and i'm going to skip pycon for this | 13:47 |
alecu | gatox: makes a lot of sense :-) | 13:48 |
mandel | gatox, so you are going to pycon nz and not ar.. | 13:53 |
gatox | mandel, yap..... when i realize you were coming to this one, i cancel the trip | 13:54 |
gatox | jejeje | 13:54 |
beuno | mandel, I think gatox sees it as PyCon LOR | 13:54 |
gatox | mandel, but you can come a couple of days to cordoba if you want ejeje | 13:54 |
mandel | gatox, ein.. probably not hehe | 13:55 |
mandel | I'm going o also have problems with holidays at the end of the year.. | 13:55 |
gatox | mandel, jeje | 13:55 |
ralsina | mandel: http://www.youtube.com/watch?v=JkEhWVazBqc ! | 14:08 |
mandel | ralsina, puf.. we also had those here.. miliki era un pesado! | 14:08 |
mandel | :) | 14:08 |
mmcc | hi folks. bit of a late start this morning… | 14:35 |
dobey | hi mmcc | 14:35 |
briancurtin | rebooting...suddenly i have no sound, which is great | 14:38 |
briancurtin | for hangout, besides mandel's personal gmail, does anyone have any special address to be invited from? | 14:53 |
briancurtin | (i still haven't figured out the automatic hangout, doing this one manually) | 14:54 |
ralsina | briancurtin: my personal gmail too | 14:54 |
ralsina | briancurtin: roberto.alsina @ gmail | 14:54 |
alecu | alecura @ | 14:54 |
gatox | diego.sarmentero @ | 14:55 |
mmcc | michael.mccracken@ | 14:55 |
=== zyga is now known as zyga-afk | ||
ralsina | my chromium is "having trouble connecting to the plugin" | 14:58 |
gatox | alecu, ralsina a small review if you can: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/menu/+merge/118117 (i'm doing this in small independent branches, to avoid complex and long branches :P) | 14:59 |
ralsina | gatox: sure | 14:59 |
ralsina | Sorry people, my hangout is broken | 15:00 |
ralsina | so mumble | 15:00 |
thisfred | let's hope mumble doesn't crash my compiz again then ;) | 15:01 |
dobey | probability of mumble being broken for someone is very high | 15:01 |
dobey | also | 15:01 |
dobey | don't forget joshuahoover this time | 15:01 |
ralsina | joshuahoover: we are in mumble | 15:02 |
ralsina | joshuahoover: because my hangout exploded | 15:02 |
ralsina | and thisfred ping | 15:02 |
thisfred | ping? | 15:02 |
ralsina | oh, you joined | 15:02 |
ralsina | nevermind | 15:02 |
briancurtin | alecu: two metaclasses - one in ipc impl, one in an ipc test | 15:17 |
alecu | briancurtin: I'd be very happy if we get rid of those before porting to 3 | 15:20 |
briancurtin | alecu: that was my first thought. get rid of it if we can, if not, port it | 15:22 |
=== salgado is now known as salgado-lunch | ||
thisfred | buenas vacaciones manuel! | 15:48 |
dobey | heh | 15:49 |
ralsina | thisfred: tu español está mejorando! | 15:49 |
thisfred | yo sabe! :P | 15:49 |
thisfred | sabo | 15:49 |
thisfred | doh | 15:49 |
ralsina | and there goes the neighborhood ;-) | 15:49 |
ralsina | sé | 15:49 |
ralsina | irregular verb | 15:50 |
thisfred | ah | 15:50 |
thisfred | hate those | 15:50 |
dobey | it's spanish. all the verbs are irregular | 15:50 |
thisfred | hoy como con el juez | 15:50 |
ralsina | thisfred: o the 5 most used verbs in spanish only 3 are irregular! | 15:50 |
dobey | heh | 15:51 |
thisfred | ralsina, much better than Dutch then | 15:51 |
ralsina | or english where verb conjugation is basically luck | 15:51 |
dobey | ralsina: doing a test build in pbuilder of cp with the scrollbar patch, and will upload to q when it's done building (so in like 3 hours or so because for some reason it's insanely slow for me now) | 15:51 |
dobey | and with that, off to lunch :) | 15:51 |
thisfred | yeah, english is not really a language | 15:51 |
ralsina | dobey: awesome! | 15:51 |
ralsina | thisfred: he | 15:51 |
thisfred | buen almuerzo | 15:52 |
* gatox lunch! | 16:05 | |
=== gatox is now known as gatox_lunch | ||
=== gatox_lunch is now known as gatox | ||
dobey | ugh; marking a bug as a dup in lp is now more work :-/ | 17:18 |
* briancurtin lunch | 17:18 | |
dobey | gatox: please file bugs as bugs, not as tasks | 17:18 |
gatox | dobey, ok | 17:19 |
dobey | ie, describe the problem, not the fix | 17:19 |
gatox | dobey, like this? https://bugs.launchpad.net/ubuntuone-client/+bug/1032659 | 17:21 |
ubot5 | Ubuntu bug 1032659 in Ubuntu One Client "Publish SyncMenu data via ipc" [High,In progress] | 17:21 |
dobey | gatox: "There is no way to access recent and current transfers information over IPC." might be a better description, and the summary should summarize the problem as well, not the solution :) | 17:24 |
dobey | hrmm, i wonder if the pbuilder and apt-get speed issues i'm having are because i'm running kernel 3.5 on 12.04; or if it's just because it's new hardware (the controller) | 17:26 |
* briancurtin back | 17:47 | |
dobey | doh | 18:07 |
dobey | brb | 18:38 |
dobey | oops. | 19:19 |
thisfred | burp | 19:21 |
dobey | wtf | 19:21 |
dobey | how can assertTrue and assertFalse both not fail on the same thing? | 19:21 |
thisfred | if they test for is False / is True respectively? | 19:22 |
thisfred | and that thing is neither? | 19:22 |
gatox | dobey, http://youtu.be/x0yQg8kHVcI | 19:22 |
dobey | thisfred: how can a value that is assigned to False both be False and True? | 19:23 |
dobey | also, why is print() not working for me now in this test :( | 19:23 |
thisfred | dobey, that does not make sense, you cannot assign to False | 19:23 |
thisfred | so a variable is set to False, and then assertFalse fails? | 19:24 |
dobey | thisfred: no, assertFalse and assertTrue are both failing to fail | 19:24 |
thisfred | dobey, well if it's False I would assume assertFalse to succeed, so that's not strange | 19:24 |
thisfred | dobey, do you have a code sample demonstrating this? | 19:25 |
thisfred | alternatively, you could read up on intuitionism | 19:27 |
thisfred | http://en.wikipedia.org/wiki/Intuitionism | 19:28 |
dobey | http://pastebin.ubuntu.com/1127669/ | 19:29 |
thisfred | looking | 19:29 |
thisfred | dobey, what does print repr(options['foo']) tell you? | 19:30 |
dobey | it doesn't print | 19:30 |
dobey | anything | 19:30 |
thisfred | that is pretty unlikely | 19:31 |
thisfred | repr should print something even if it's only None | 19:31 |
thisfred | or '' | 19:31 |
dobey | well it's not going to the console | 19:31 |
dobey | wherever it is going | 19:31 |
thisfred | dobey, perhaps the test is not succeeding at all, and the deferred in the setup is messing things up? | 19:32 |
dobey | could be, but not sure how to get around that; it doesn't like me using unittest.TestCase :( | 19:32 |
thisfred | dobey, if it doesn't print anything, it's likely the test is never executed, so we're not actually testing anything | 19:34 |
dobey | it's not printing anything | 19:35 |
ralsina | dobey: False = True; assertFalse(False) | 19:35 |
ralsina | dobey: although that doesn't work on python 3 ;-) | 19:35 |
dobey | and i added a thing to open a log file and write the data to that instead, and there is no log file | 19:35 |
thisfred | dobey, that's what I'm saying: this test is never executed | 19:36 |
ralsina | maybe a typo in the test name? It happened to me once ;-) | 19:36 |
dobey | ralsina: typo how? | 19:36 |
thisfred | nah, it is called | 19:36 |
dobey | trial is saying it is being executed :) | 19:36 |
ralsina | dobey: _test_foo instead of test_foo | 19:36 |
ralsina | ok, so not that | 19:36 |
thisfred | it just never gets past setUp, is my intuition | 19:36 |
dobey | nope, it's definitely being called | 19:36 |
dobey | thisfred: indeed. if i add assertFalse(True) to seUp, all the tests fail | 19:37 |
thisfred | dobey, if you take out the super call, or just do it without the defer/inline? | 19:37 |
dobey | thisfred: well i can, but our check for that will fail, so the test won't run; because we check for the inlineCallbacks/yield for twisted test case stuff | 19:38 |
thisfred | I hate twisted | 19:38 |
thisfred | it's like herpes | 19:38 |
thisfred | once you have it, it never goes away | 19:39 |
dobey | oh | 19:39 |
dobey | i am an idiot | 19:39 |
dobey | __init__ != setUp | 19:39 |
ralsina | is setUp returninga deferred? | 19:39 |
thisfred | ha | 19:39 |
* dobey wonders how to test for that | 19:39 | |
thisfred | I would have never spotted that in a million years | 19:39 |
dobey | 'make sure super is actually calling the right thing' | 19:39 |
thisfred | dobey, won't pylint tell you you're not calling the method on the super class? | 19:40 |
thisfred | or is it as stupid as I fear it is, and only looks for the word super | 19:41 |
dobey | yeah pylint doesn't complain | 19:41 |
thisfred | dobey, you have found a pretty good way to make all tests pass if we're ever in a hurry ;) | 19:43 |
dobey | heh, indeed | 19:44 |
dobey | but it sucks when i want them to fail because i know things are broken :) | 19:44 |
* mmcc heads to the cheese shop for lunch | 19:47 | |
dobey | and apparently i know nothing about ast | 19:48 |
briancurtin | alecu: if you're still around, http://ubuntuone.com/7O01iFMjvTQSFWtZIKdcaI is a 3.0.2 installer with PyQt 4.9.4 (Qt 4.8.2) | 19:56 |
dobey | so how the heck do i check that super is calling the right method | 19:56 |
briancurtin | alecu: i haven't changed any versioning or anything like that yet. it's just 3.0.2 with the updated PyQt/Qt | 19:56 |
thisfred | dobey, sounds like the kind of evil that Chipaca do | 19:57 |
gatox | dobey, maybe i can help you with ast if you need..... i've been playing with that a lot | 19:58 |
dobey | gatox: do you know how to match the bar in super(foo).bar()? | 20:02 |
gatox | dobey, all that line should be a Call..... and "super" should be Attribute, and "bar" should be accesible from Attribute.attr..... which should be Call also..... i can check exactly how to do it if you want | 20:05 |
dobey | gatox: that would be a big help, thanks | 20:06 |
gatox | dobey, give me a couple of minutes | 20:06 |
* dobey files a bug about that | 20:09 | |
gatox | dobey, let me know if this helps: http://paste.ubuntu.com/1127745/ | 20:15 |
gatox | dobey, maybe this is better: http://paste.ubuntu.com/1127749/ | 20:17 |
gatox | there you can see super and __init__ | 20:17 |
gatox | dobey, there you can have the idea how to process each line in the body of the function __init__ and check if it is a super expression and what the "bar" part is | 20:19 |
alecu | gatox: you've probably seen this branch failing on tarmac, right? https://code.launchpad.net/~diegosarmentero/ubuntuone-client/darwin-tests-refactoring/+merge/113289 | 20:21 |
alecu | briancurtin: looking | 20:21 |
gatox | dobey, little improve: http://paste.ubuntu.com/1127754/ | 20:22 |
gatox | alecu, nop.... i miss that | 20:22 |
* alecu would have loved a pycon talk about ast by gatox | 20:22 | |
gatox | alecu, i wasn't sure if propose it, because..... it not something that is fun for everyone.... but you can do a lot of crazy things with that | 20:23 |
gatox | alecu, i'll probably going to give a lightning talk about kanzen in the PyDayCba | 20:24 |
gatox | (kanzen: the code completion module of ninja-ide) | 20:24 |
gatox | alecu, i'm doing another tool right now using ast.... maybe i could propose a talk about that next year :P | 20:24 |
alecu | briancurtin: is there a way to name the installer package (and the corresponding installed bits) say "3.0.2b" instead of "3.0.2" ? | 20:25 |
alecu | gatox: or on pyday!!!! | 20:25 |
alecu | gatox: btw: what talk should I submit to your pyday? | 20:25 |
gatox | alecu, i've the impression that people is going to fall asleep listening a talk about ast jeje | 20:25 |
gatox | alecu, twisted? :P | 20:26 |
gatox | alecu, you can submit more than once also..... twisted and dbus | 20:26 |
alecu | gatox: no way. A lot of people interested in compilers are your target | 20:26 |
alecu | gatox: booooring! | 20:26 |
gatox | or if you are doing something python-related to arduino also insteresting | 20:26 |
alecu | gatox: yup, arduino would be much better. | 20:26 |
gatox | yap! | 20:26 |
alecu | gatox: though I've not done any python+arduino yet. | 20:27 |
gatox | alecu, nice chance to learn :P | 20:27 |
gatox | wowwwwwww....... 5:27 already! | 20:27 |
alecu | :-) | 20:27 |
dobey | ugh | 20:28 |
dobey | this code is broken anyway :( | 20:28 |
gatox | dobey, i can show you a trick to use when ast fails because of broken code... but is not clean :P | 20:29 |
gatox | alecu, btw..... i already submit two talks to pyday.... but we should see with the other people in the organization which ones are going to be the best....... i submit: "Creating Games and fanzy UI with QML", and "Small steps to start developing ninja-ide" | 20:29 |
dobey | gatox: i mean the code we're using already is broken; and i'm not sure how to fix it :( | 20:29 |
alecu | gatox: QML FTW! | 20:29 |
gatox | dobey, ahhhhh i thought the ast compiler was failing | 20:30 |
alecu | gatox: there's been no QML talk ever in our PyCons! | 20:30 |
gatox | alecu, yes, also..... is really cool how you can do awesome games 100% in qml..... and that can be executed from a python or c++ app or from a mobile | 20:30 |
dobey | gatox: no, the current check is not exactly right | 20:30 |
gatox | ah | 20:30 |
ralsina | gatox: "fancy" != "fanzy" :-) | 20:32 |
ralsina | gatox: but +1 on QML talks, QML rocks | 20:32 |
gatox | ralsina, which one is for cool and elegant? | 20:33 |
ralsina | if QML components were actually release quality, it would make little sense to develop in other things | 20:33 |
ralsina | fancy | 20:33 |
gatox | ralsina, thx | 20:33 |
ralsina | but I would rather use sleek :) | 20:33 |
gatox | ralsina, the title of the talk was in spanish anyway.... jejee i translate it for this channel :P | 20:34 |
gatox | ok..... eod for me!! have a nice weekend everyone! | 20:37 |
thisfred_ | crear juegos y UI elegante con QML | 20:37 |
gatox | thisfred_, groso! | 20:38 |
thisfred_ | :D | 20:38 |
gatox | bye people!! see you on monday! | 20:38 |
thisfred_ | I have been doing duolingo :) | 20:38 |
thisfred_ | adios! | 20:38 |
gatox | thisfred_, ahhhhh yes, doulingo seems really cool! | 20:39 |
thisfred_ | it is | 20:39 |
thisfred_ | goes pretty fast | 20:39 |
dobey | bah; getting nowhere fast, here | 20:39 |
ralsina | thisfred_: en 2013 te esperamos para hablar en pycon argentina ;-) | 20:41 |
thisfred_ | heh, that may be a bit ambitious, but who knows :) | 20:41 |
ralsina | thisfred_: you can't do worse than Leah Culver | 20:43 |
dobey | she did a talk in spanish at pycon.ar? | 20:43 |
ralsina | dobey: no | 20:43 |
thisfred_ | pyoauth wasn't that bad | 20:43 |
thisfred_ | :) | 20:43 |
ralsina | dobey: just a very very bad talk | 20:43 |
dobey | oh | 20:43 |
thisfred_ | I'll just have to work a lot of horses and turtles and blue shirts into my code examples ;) | 20:44 |
dobey | the turtle with the purple mask | 20:45 |
thisfred_ | la tortuga con la mascára ppura | 20:46 |
thisfred_ | púrpura | 20:46 |
thisfred_ | I need to change my dead key | 20:46 |
ralsina | donatello? | 20:47 |
* ralsina is rusty re: mutant ninja turtles | 20:47 | |
ralsina | thisfred_: how do you feel about doing a u1db screencast? | 20:50 |
ralsina | thisfred_: I can put it in planet python and other interesting places :-) | 20:50 |
thisfred_ | ralsina, I hate screencasts, that sounds more like a job for aquarius, who is actually good at that kind of thing | 20:54 |
ralsina | thisfred_: ack | 20:55 |
ralsina | thisfred_: I am planning on doing one myself eventually | 20:55 |
thisfred_ | I just hate to hear myself talk :) | 20:56 |
thisfred_ | I know everybody does. I do so more ;) | 20:56 |
=== pfibiger` is now known as pfibiger | ||
ralsina | thisfred_: you can always use a voice synthetizer | 20:57 |
thisfred_ | oooh, vocoder | 20:57 |
thisfred_ | that *is* tempting | 20:57 |
thisfred_ | pac jam! | 20:57 |
ralsina | there was a site that took a script and made 3d movies with it (with bunnies and things like that as characters) | 20:58 |
thisfred_ | yeah I know. I still get spam from them | 20:58 |
ralsina | or a darth vader helmet | 20:58 |
thisfred_ | maybe the robot woman who is teaching me spanish at duolingo has time ;) | 20:59 |
ralsina | thisfred_: do yu have the name of that site handy? | 20:59 |
ralsina | the one that did the movies. I just can't recall it. | 20:59 |
thisfred_ | no, I forget. If I think of it again I'll tell you. Didn't the mongo is webscale video use it? | 21:00 |
thisfred_ | maybe you can find it that way | 21:00 |
dobey | u1db is web scale? | 21:01 |
thisfred_ | dobey, it's 1.35 webscale | 21:02 |
dobey | heh | 21:02 |
aquarius | thisfred_, ya, that's a me thing, I think | 21:02 |
thisfred_ | hey! | 21:02 |
thisfred_ | welcome back | 21:02 |
* aquarius is indeed back | 21:03 | |
thisfred_ | and go to bed or go get drunk or summat | 21:03 |
aquarius | ha | 21:03 |
aquarius | am staying in tonight. I drank a lot on holiday :) | 21:03 |
thisfred_ | no really? | 21:03 |
thisfred_ | ;) | 21:03 |
dobey | aquarius: hey. did you see my request re: u1db docs/ | 21:05 |
aquarius | I didn't, sorry | 21:05 |
aquarius | couldn't face looking back through a week of stuff to find the highlighted lines :) | 21:05 |
thisfred_ | we'll just assume you agree to everything | 21:06 |
briancurtin | alecu: whoops, didn't see your earlier messages. i think we can do that, let me try in the installer. the least we could do is probably change the name that shows up in the log files | 21:06 |
thisfred_ | you'll look great in a bunny suit | 21:06 |
dobey | aquarius: ah, well it was only from last night. but can you make your u1db-docs/ dir on people.c.c redirect to packages.python.org/u1db/ instead? | 21:06 |
dobey | aquarius: since we have docs on there now thanks to pypi uploads | 21:06 |
aquarius | ooh, good idea | 21:06 |
aquarius | um | 21:07 |
aquarius | actually... can I? Am I allowed htaccess files on pcc? | 21:07 |
aquarius | I suppose I could just meta refresh | 21:07 |
aquarius | party like it's 1995 | 21:07 |
thisfred_ | hehe | 21:07 |
dobey | well presumably you can acces your .htaccess | 21:07 |
alecu | briancurtin: no hurry. I should still test this one installer first :-) | 21:07 |
dobey | i don't know if mod_rewrite is enabled though | 21:07 |
dobey | also, for what it's worth, i have no idea how to put files on that server anyway :) | 21:08 |
aquarius | ssh people.c.c :) | 21:08 |
dobey | ah, well then | 21:08 |
aquarius | it is never a good day when I have to read the mod_rewrite documentation | 21:09 |
dobey | oh, people.u.c i can't get to i guess | 21:09 |
ralsina | thisfred_: yay, mongo is webscale was done with that thanks | 21:09 |
dobey | anyways | 21:09 |
ralsina | And the site is http://www.xtranormal.com/ | 21:10 |
dobey | at least i have got some tests written and working now (and some small issues fixed as a result) | 21:10 |
thisfred_ | ralsina, in the US it was used in TV commercials even though I forget for whom | 21:10 |
dobey | maybe sprint used it for the htc evo vs. iphone 4 one | 21:10 |
ralsina | thisfred_: must have been the cheapest commercial ever :-) | 21:10 |
thisfred_ | probably geico, since every other commercial is geico | 21:10 |
briancurtin | haha, the mongodb webscale video was done by a guy i know from the local python meetup | 21:11 |
dobey | autotune-screencast ftw. | 21:11 |
thisfred_ | ralsina, yeah the point of the commercial was that it was made in 15 minutes | 21:11 |
thisfred_ | I think | 21:12 |
thisfred_ | while we're (not really) on the topic: who remembers dictionaraoke? | 21:13 |
thisfred_ | that was fun | 21:13 |
aquarius | werq | 21:14 |
aquarius | it is done | 21:14 |
aquarius | and mod_alias is enabled on the server, usefully | 21:14 |
aquarius | no rewriterule needed! | 21:14 |
thisfred_ | awesome | 21:14 |
thisfred_ | now I need to check in some incendiary documentation | 21:15 |
thisfred_ | and share the p.c.c link | 21:16 |
aquarius | good catch, dobey | 21:16 |
dobey | eh, someone asked for updated docs on your page last night. figured it was time to point them at the new place :) | 21:20 |
dobey | now, how do i get the name of the function i'm in, in python? | 21:20 |
dobey | have to inspect? | 21:21 |
dobey | eh, i guess it doesn't matter :-/ | 21:22 |
* dobey wonders how to test the TestRunner class exactly | 21:25 | |
ralsina | dobey: you can't | 21:27 |
ralsina | dobey: "get the name of the function you're in" I mean | 21:27 |
dobey | yeah, it doesn't matter i found. i can't do what i wanted with it anyway | 21:28 |
thisfred_ | ok, have a good weekend all, I gotta walk some dogs | 21:30 |
dobey | later | 21:31 |
mmcc | dobey, would this work for you? inspect.currentframe().f_code.co_name ? | 21:32 |
dobey | probably; aside from the being able to do what i wanted bit | 21:34 |
mmcc | oh. what is it that you wanted to do? | 21:35 |
dobey | twisted's option parsing requires you to define an opt_foo() method for the options, even the flags which are just boolean toggles, so to change the value from 0 to 1 (or false to true), you have to define a method to assign the variable; so i wanted to define an opt_flag and have it infer the name of the option (since it's not passed in), and just do opt_otherflag = opt_flag, and have it work right | 21:37 |
dobey | and the weird thing is, for another flag, i don't have to define that method in the class | 21:38 |
dobey | yay twisted :( | 21:38 |
mmcc | I see. hmmm. | 21:40 |
ralsina | mmcc: that gives you the name of where it's defined, but yes, close enough :-) | 21:40 |
ralsina | ok, EOW for me, have fun! | 21:41 |
mmcc | ok, have a good weekend ralsina | 21:45 |
mmcc | maybe something with a set_option_name(name, val) then functools.partial and setattr(self, "opt_%s" %optname) | 21:48 |
* mmcc did not actually try any of that | 21:48 | |
dobey | eh, it's only the one flag that is causing issues right now, so i just defined it | 21:54 |
mmcc | dobey: is this about adding -3 to u1trial? | 22:02 |
mmcc | also, I'm sure just defining it was the right way to go. fun to mess around with other ways though | 22:03 |
dobey | no | 22:03 |
dobey | fixing a bug in the refactor | 22:03 |
mmcc | ah ok | 22:05 |
dobey | https://code.launchpad.net/~dobey/ubuntuone-dev-tools/fix-coverage/+merge/118207 | 22:05 |
dobey | well, time to go. later all, have a good weekend. | 22:20 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!