#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 
Top Prev 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 Next

#python

<ZenMasterJG> i only provide getters/setters if I need to do a lot of stuff to verify that the data is correct
<ZenMasterJG> which is almost never, but...
<ZenMasterJG> in that rare-ish case, they can be quite helpful. otherwise they're pointless.
<encompass> moikka
<kbrooks> test
<kbrooks> ... test.
<kbrooks> is ne1 online
<ZenMasterJG> ... yes.
<hylje> no
<ZenMasterJG> heh. We're just voices in kbrooks' head. er.. monitor. er... text. in kbrooks' monitor. er...
<kbrooks> ok, just checking.
<morpheus74> Sorry, I had to step away for a moment. Was anyone able to determine where my function might be wrong? http://deadbeefbabe.org/paste/3783
<kbrooks> what does -kernel-kqemu do?
<kbrooks> er
<kbrooks> nm
<firsm> Can I make a dictionary that allows duplicates?
<ZenMasterJG> firsm: no. but you can make a dict that stores multiple values in a list.
<esperegu> kbrooks: or r u just helping mankind?
<firsm> ZenMasterJG: Hmm yeah but that won't help in my case, I want something like a dictionary that allows duplicate keys, each key should refer to an object, and then I want to sort this dictionary by its keys
<ZenMasterJG> my solution'll do the same thing... what would you expect to get back if you tried to access a dict with a key that referred to multiple values?
<morpheus74> Does anyone know why this function works fine on my local machine, but has an issue on the server?
<T`> anyone know how to get number of years elapsed between two dates?
<morpheus74> function: http://deadbeefbabe.org/paste/3783
<firsm> ZenMasterJG: hmm, true
<morpheus74> where did everyone go?
<arkanes> firsm: it's common to have the value be a tuple or a list if you want that
<firsm> arkanes: Okay, thanks
<Almondega> how to do sockets dont block the aplicattion while wait msg = con.recv(1024) done ?
<ZenMasterJG> Almondega: a google search for 'python blocking sockets' turns up http://www.amk.ca/python/howto/sockets/sockets.html#SECTION000600000000000000000
<ZenMasterJG> that should help.
<Almondega> yes, i'm doing this now
<Almondega> but tks for help
<ZenMasterJG> the select module'll help as well
<angerman> is there an easy way to cerate anonymous objects?
<angerman> something like a dicitionary but with object like acress to the keys
<insanekane> anonymous objects ?
<insanekane> all objects are already "anonymous"
<AndroidData> is it possible for me to encrypt/compress my data files so others can't access them (that easily)? if so, do tell. in python.
<AndroidData> i.e. graphics, sounds...
<insanekane> angerman: you should look at overriding __getattr__ to do what you want
<angerman> insanekane: well say I have {'foo': 'bar', 'tiny':'huge'}. that's a dictionary. but I'd like it to be an object so i can access object.foo and object.bar
<angerman> err object.tiny
<sirCopyright> Android: compress, use zlib. encrypt, not in standard library.
<insanekane> angerman: yes, i know what what you mean ... read my earlier comment
<Leeds> angerman: and what if you have {1:'bar', '1':'baz'}?
<angerman> Leeds: I'm not
<angerman> I **know** I'm not
<insanekane> angerman: dude ... as i said earlier, override __getattr__
<angerman> insanekane: I am... was just refering to Leeds. sorry.#
<chopin> hey everyone!

Previous Page  Next Page

Search ircarchive.info