| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Comments:
<0> a_thing: launch python with -vvv as flags and it'll tell you why it can't find the module <1> ne1uno: Does bitfields mean, bools or what? <2> hence the qyestion <3> struct { char b:4 } <3> how do do it in python <2> probably compiler specidic abd you have to fiddle with the bits after getting the int anyway. <3> define a value to be of 4 bits as a struct <0> jtza8: it's a bunch of bits, that's it <1> hmm... <0> ne1uno: it depends on packing, most structures are word aligned <2> looks for bits.py for how to get or set one bit. <3> one way i can think of it read in the full char do & and << <2> py2.4 promotes int to long, you may have to x&0xffff as well <1> Yep, Python isn't very friendly with bits. <2> read the bits into a list then work from there
<3> thx guyz <4> There's still the error with sys.path="/usr/local/lib/python2.4/site-packages/smart" <1> a_thing: sys.path is a list... <3> a_thing : in ur script make the first 2 lines like this <3> import sys <3> sys.path.append("ur module path") <3> that shuld help <0> a_thing: don't mess with sys.path, get PYTHONPATH to work <5> http://pastebin.com/526972 < amazing code, eh? <4> It's not adding $PYTHONPATH to sys.path. <4> Using sys.path.append works, but I'd like this to work for all other modules installed to /usr/local. <3> a_thing in ur bash_profile write "export PYTHONPATH=$PYTHONPATH:/usr/local" <3> and then source bash_profile , start python <3> things shopuld work good <4> TestDrive6: no difference <3> a_thing did u sourced it <3> ? <4> yeah <6> xbmodder_lappy: out.setformat(getattr(alsaaudio, 'PCM_FORMAT_S%s_LE' % d['bits'])) <6> xbmodder_lappy: ...will also work <7> Pir8: you everywhere man <1> xbmodder_lappy: I just don't get why people can't read + signs in a sting like that? <1> xbmodder_lappy: Though, I think your code could be simplified by changing the if statements like so: http://pastebin.com/526994 <8> this is off-topic, but... how can i scrub my cvs repository of all the "****" and "****" splattered all over commit comments? <9> convince youre comiters not to commit them in the start? :) <8> yeah, heh. funny. <9> i thought so, yes <9> muhoo: you could just go and change all the cvsfile replacing **** with f*** or something <6> jtza8: was that in response to my comment? the point was to get rid of exec, not the string concatenation. i just chose to improve that in the process ;-) <8> i wonder if that will confuse cvs though? <8> editing the ,v files doesn't look like a task for the faint of heart <9> indeed not <8> 129 instances of '****', 177 instances of '****' <9> but if you only edit the text it shouldnt change anything.. but ofcourse take backups first <8> of course <8> only 61 instances of 'crap' though, prolly leave those in. <9> hehe <8> and way too many '***', those are staying since it's part of too many other words <8> 14 instances of 'dude' <8> that's staying <8> what a nightmare this project was <8> 175 instances of 'duh' <9> =) <9> give an example with dude in <8> here's one with a few all in one: "duh. stupid *** endless loop bug fixed. i++ ****head." <8> IcE^: "field order dude" <8> also, "do not expose html in emails dude." <9> hehe you have strange coders =) <8> my fave is the dozen or so commit comments that not only contain "duh", but are composed solely and completely of "duh" <9> why are you cencuring them ? <8> well this is a website for a preschool, and it'll be time to deliver the code to them soon. <9> yea.. they always say make good cvs comments.. 'duh' rocks =) <8> i don't want to freak out the moms. <9> hehe <9> have you checked the code comments to? <8> "who are these maniacal deviants who have been working on our children's website!???!" <8> oh yes, the code comments are rife with profanity <8> but, easier to fix <8> simple sed script <9> same for cvs i think <8> i hope so
<8> also love the comments for initial entry of a file into cvs <8> most common one is "FIRST!!11!!" <8> or "first post" <9> hehe a description of what the file is for would be better i think <8> that's in the code comments <9> good <8> man i love python docstrings. this profane-commented website is all in PHP, which is probably why so much profanity <1> joedj: ...Ah, sorry :) <8> but PHPdoc is lame compared to python docstrings <10> muhoo: and it being in PHP is also why you are able to read the website source code? ;) <8> teratorn: hm? no, i'd be able to read it in python too, i expect <8> and would find it a lot easier to read as well <11> why linux distros dont upgrade the python.. they upgrade the perl but not the python .. wh;ich makes me sick .. and use the perl :( <8> xerophyte: which distro? <10> xerophyte: redhat? <11> RHEL <10> everyone else that i'm aware of keeps python up-to-date <11> redhat <10> xerophyte: there you go. <11> does not its some of the has 1.x <8> well, except debian stable, which is perpetually years out of date <12> Gentoo had 2.3 as a default for quite a while, last time I checked. <10> muhoo: no, it keeps python up-to-date as well. <10> muhoo: it's just that they only release every 15 years <8> teratorn: unstable does <8> teratorn: ah <8> but stable is never up to date <10> muhoo: that's part of the point. <11> fc2 and fc3 has very old ones ..but they are new distro :) <10> muhoo: but you're right, debian stable doesn't ever release bleeding-edge versions of anything <10> muhoo: and that's on purpose, of course <10> redhat is just insane <8> well, yes. <8> redhat is corporate <13> hm, I write a program that uses multiple files and after just a little while it starts using the backup-files, wich I have stored in a VERY other folder. what is the problem? <10> Gasten: hold still while I read your mind <13> Teratorn: well, what info do you want? I dont know what info I can give you! the traceback just tell me that its changing file-directory in the middlr of no-were! <10> Gasten: i don't even know where to start... <13> teratorn: would a traceback help? <13> teratorn: no forgett it. <14> ?>unicode@ <15> moin <15> anyone firm with import hooks? <16> hello <16> (it's not a troll), i've to work on windows and i'm looking for a scripting language to help me to automate my job (auto generate docbook documents, use svn ...) is python a good choice in my case ? <17> re <17> hey is there a urllib timeout feature? <12> _gpg_, should be. Python is good with text manipulation and calling other processes. <16> ty <18> sungsung: Not directly, but you could use socket.setdefaulttimeout <16> is python 2.5 realesed ? <16> cause in download section theres just links to 2.4 <17> hm.... my program downloads rssfeeds from several sites (all urls in a dictionary) i used for feed in feeds: get(feed) (pseudo code) to get everything <17> but, there's a big catch: the loop holds when one of the sites is down <19> Whu? 2.5? When? Wha? O_o <20> Check the site firs.t.? <17> how would you guys solve that problem? <20> Threads! <20> Select! <20> Hurrah! <18> sungsung: As I said.. <18> socket.setdefaulttimeout(.5); d = urllib.urlopen('http://reddit.com/').read() <18> IOError: [Errno socket error] timed out <17> Erwin: and that works with urllib? :) <17> Erwin: sorry, didn't read your last lines <17> Erwin: thanks <21> morning Erwin <18> hi there <18> A fascinating article, about, of all things, a children's entertainer.. http://www.washingtonpost.com/wp-dyn/content/article/2006/01/18/AR2006011801434.html <22> Moin <12> It seems that a magic method (addition, for example) is slower than a "regular" method, when used in a custom cl***. How come? <18> Well, when you do foo + bar, either foo.__add__ or bar.__radd__ can be invoked <18> but if foo.__add__ is there, that should be It
Return to
#python or Go to some related
logs:
/var/secure fedora /sbin/init: 432: cannot open dev/console open latte open late
#php rpministry debian unmet dependencies opteron squalleh #python #linux +vmware +diskmounter
|
|