*** derek has joined #gnuenterprise *** derek has quit IRC *** johannesV has joined #gnuenterprise good morning *** reinhard has joined #gnuenterprise *** btami has joined #gnuenterprise good morning good morning all good morning again ... :) *** johannesV has quit IRC *** johannesV has joined #gnuenterprise *** kilo has joined #gnuenterprise *** johannesV has quit IRC good morning *** yure has joined #gnuenterprise *** johannesV has joined #gnuenterprise reinhard, have you already posted the pylint config ? oops no will do in a second how do we use it ? symlink to ~/.pylintrc ? ah, ok ... saw it in the header reinhard, how to use pylint with gcvs ? gcvs /usr/bin/pylint file.py or gcvs /usr/bin/pylint -rn file.py wow, that's simply great :) hm, what about having constant names built from uppercase letters ? *lol* Not enough public methods (0/2) i feel i'll love pylint ... what do you mean with "contant"? in python, everything is a variable, isn't it? constants like SIOCGIFCONF = ... ah you could add that to the regex for variable names line 138 in .pylintrc I'm sure that you can build a regex to match words that are either all lowercase or all uppercase lol # Bad variable names which should always be refused, separated by a comma bad-names=foo,bar,baz,toto,tutu,tata :) hm, so i changed a try: ... except: ... into a try: ... except Exception: ... and i still get a warning ?? how to solve a catch-all then ? what kind of warning? and another one ... why should we *not* use the builtin functions map and filter ? W0703:239:NetworkInterfaces.__load_via_ifconf: Catch "Exception" and what about the usage of acronyms within function names ? like "generate_SHA1" or "generate_MD5" ? should the be called generate_sha1 and generate_md5 instead ? I think yes for example the command is "md5sum" not "MD5sum" so I think it's ok to change those acronyms to lowercase you can do pylint --help-msg W0703 to get more detail about a message (which doesn't help much in this specific case) lol ok, W0703 only happens if Exception is caught via "except Exception" and there is no "raise" in the handling code which I agree is something that is unusual and in most cases not wanted you could disable that check for this module then # pylint: disable-msg=W0703 somewhere in the code be more precise about 'somewhere' please :) I'm not sure where just thinking about what would be best maybe at the very end of the file? or after the gpl header? i think after gpl header, as we might have module-selftesting code at the end fine with me ok, another situation i need to iterate some statements for a given number of times but the iteration-index isn't use at all which leads to a W0612 like: for i in range(12): print "Blabla" for dummy in range(12): print "Blabla" # List of variable names used for dummy variables (i.e. not used). dummy-variables=_,dummy ah, ok, great hm, ok, so i'm at 9.91/10 now F0401: 46: Unable to import 'win32com.client.GetObject' (No module named win32co m) FWIW, I always run it with "-rn" then it only displays warnings is still in there as that module is not available on linux hm, no same messages but no statistics yes that's what I meant, sorry it displays messages, but not the whole blurb at the end ok F0401 might go away if you do import win32com and then later err sorry, forget what I said I think you have to disable this check, too but then the same check isn't applied to all the other modules ... yes I don't like this, either ok, and then there's the design checker complaining about the number of attributes R0902:344:Generator: Too many instance attributes (10/7) we might globally want to icrease that number hm, yeah maybe jamest has some experience here *** jamest has joined #gnuenterprise *** jamest has left #gnuenterprise *** sjc has joined #gnuenterprise *** jamest has joined #gnuenterprise good morning jamest morning do you have any experiences with the "design" pylint checks? min/max number of instance attributes, public methods etc the checks seem pretty limiting, and I wonder whether we should fiddle with the knobs a little bit there i'd just been trying to hit it's defaults and if I can't on a function then I live with it :) which ones you wanting to tweak? I was hoping for your experiences on exactly *that* question :) lol honestly, i figured anywhere I was against the defaults then I was probably following bad design hm, it took me about an hour to make pylint being happy with uuid.py (and that is 9.95/10) but i think it is worth the additional work ... as this amount should shrink the longer we're using pylint and it's just impressive to see pylint working ... as it is really able to detect bugs yes! i'm no longer the only one saying that now! :) * jamest was lonely :) johannes: did you get an answer on why it complains about map and filter? yes okay doing a pylint --help-msg W.... it said that one should better use list comprehension well, the real reason I think is that Guido wants those dropped from Python 3 so instead of map(int, [16, 16, 16], data) one should do [int(a, 16) for a in data] http://www.artima.com/weblogs/viewpost.jsp?thread=98196 whois this Guido and why does he want to change Python :D:D and after comparing that snippets i think the list comprehension looks better *** kilo has quit IRC lambda, reduce, map, and filter will all be dropped in python 3 I've never used reduce, map, and filter (on purpose) but I'll miss anonymous methods in event-driven systems like wx nice article ... hm, i don't like lambda very much and i'm not using it at all ... i think it makes stuff unreadable true I won't argue with you there but honestly, I find list comprehensions equally unreadable (but am starting to like them too) hm, it takes some time to get used to it but i like it (after getting used to it :)) *** yure has quit IRC is it correct that different triggers of the same object don't share the execution context? and if yes, is this on purpose? by context, you mean a shared namespace dictionary? I mean an ExecutionContext object that - in the case of python - more or less is only a wrapper around the namespace dictionary i'm not familiar with the ExectoinContext *** derek has joined #gnuenterprise *** klasstek has joined #gnuenterprise *** johannesV has quit IRC *** johannesV has joined #gnuenterprise why is "apply" also listed as a bad function? *** sacha has quit IRC oh, found it *** klasstek has quit IRC *** btami has quit IRC why? *** yure has joined #gnuenterprise apply(func, args, params) is equivalent to func(*args, **params) and the latter is preferred apply is depreciated though pylint complains about the use of func(*args, **params) as well kind of a catch 22 isn't it? yeah, I didn't quite understand that yes well apply() iirc has been discouraged since python 2.0, though I think that targets at things like "__init__(self, *args, **params):" where you're just too lazy to look up the param list of the parent lol fwiw, when I do that it's never out of laziness it's that I don't want my class to track stuff it has no business/need to track (just for the record) j/k jcater: nice cover okay, maybe I occasionally do it out of laziness * jcater points over there look,?a goat! ah yes that reminds me of something boy lol you don't see that conversation thread often http://goatonapole.com/ lol sombody had too much free time *** Morphous has joined #gnuenterprise *** Amorphous has quit IRC *** klasstek has joined #gnuenterprise *** yure has quit IRC *** Morphous is now known as Amorphous *** lupo__ has joined #gnuenterprise *** yure has joined #gnuenterprise *** johannesV has quit IRC *** d4rkstar has joined #gnuenterprise good evening there is someone out there? yes hi reinhard i'm searching for info about gnu/bayonne hmmm not exactly my field of expertise... it seems that from the version 2 there isn't documentation or it hasn't been updated so the software is unusable i think i've entered the wrong channel :D most probably maybe there is a #bayonne yeah man thanks for the first hint reinhard: may queens? I was just remembering led zeppelin ah lol cool but with that no one can tease me about "synching machines" again :) well i took that commit msgs to mean "cleanup and pep8-ification" I said not again * jcater covers his ears where as "synching machines" translates to jamest: you're right :) *** d4rkstar has left #gnuenterprise "james, i'm breaking all your existing apps" a propos app breaking jamest: did you read the logs about trigger namespace? jamest: I'd consider those to be spring cleaning too how else would you be reminded about scripts you haven't looked at in years? reinhard: no, i've been preping to roll out new sales app tonight so haven't looked at anything GNUe since friday jamest: pasted you in private window if you have a minut it's not urgent however so self.firstRecord() works but firstRecord() doesn't? jamest: I've undone that change because of jcater's remark lol reinhard: I'm not opposed to breaking massive amounts of jamest's forms I hope you didn't get that impression just ask him honestly, i think I've got in the habbit of working from form because things were flaky for awhile I would like to know if adding self.__dict__ to the local namespace is intentional or should be depreciated so most my stuff is form.block.firstRecord() or block.firstRecord() i don't think I ever just assume a function is callable at the level I'm at well except for the ones declared global so that change should be the least of my worries regarding svn head forms :) reinhard: it was intentional so I should remove it again? the question is, was it a good idea? lol reinhard: i'm ok with the removal i would prefer to do self.function() in those cases anyway ok so I could tell the form level global built-ins from the widget specific functions i should probably svn up soon and start testing :) as there are some issues here I told accounting they were going to live with for a few months changed back jamest: any feedback welcome I think nobody uses triggers as much as you do i luvs my triggers *** jamest has left #gnuenterprise *** yure has quit IRC *** kilo has joined #gnuenterprise *** jcater has quit IRC *** klasstek has quit IRC *** lupo__ has quit IRC *** sjc has quit IRC good night all *** reinhard has quit IRC *** kilo has left #gnuenterprise *** jcater has joined #gnuenterprise *** derek has quit IRC *** jcater has left #gnuenterprise *** sacha has joined #gnuenterprise *** derek has joined #gnuenterprise