| Ciantic | which is nicer indeed |
| ZenMasterJG | ivazquez: doesn't that use is, not == ? |
| ivazquez | I don't think so... |
| ZenMasterJG | hmm |
| Peng | >>> 1 in (1.0,) True Looks like ==. |
| ZenMasterJG | yep, guess so |
| starGaming | 1 in Eq(foo, bar, baz) where Eq defines __contains__ could be a way. |
| ZenMasterJG | thats pretty ugly if you're going to be using more complex objects. i would've expected is. whats a good way to flatten a dict into something hashable? |
| ivazquez | Why not just turn it into a tuple? |
| ZenMasterJG | ivazquez: how? |
| ivazquez | tuple([1, 2, 3]) |
| jon___blaze | hi, I'm new to python and not sure about the os module |
| ZenMasterJG | ivazquez: a dict, not a list. tuple({'key er |
| innervision | jon___blaze: what's the problem? |
| ZenMasterJG | stupid enter key |
| ivazquez | Oh. Dict. |
| ZenMasterJG | tuple( {'key': 'value'} ) == ('key',) yeah |
| ivazquez | I think I remember seeing an immutable dict somewhere. Did you check the libref?? Worst case you could use .items(). |
| tnks | I'm confused by the documentation that says that Popen3 objects are generated by the popen3 factory. popen3 seems to return a 3-tuple of file descriptors. |
| jon___blaze | I have a directory with 7 sub-directories with a file named all docs (i.e main_dir/sub(7)/docs) I've googled and can't understand how |
| tnks | Can someone help me sort this out? |
| ZenMasterJG | ivazquez: yeah, items would work i guess it doens't need to be pretty, it just needs to be quick & hashable |
| jon___blaze | sorry and I want to have them listed for reading (file/sub_file/docs) |
| pbx | jon___blaze: Listed? |
| ivazquez | tnks: Which popen3? |
| douglas_ | hello all. quick question from a total noob. I have an array and I want put something it it. a[0]=1 but it fails. How do I set up the array? |
| ivazquez | a=[] |
| Peng | "list" :P |
| jon___blaze | pbx: like return each with the name doc... (e.g. - ./dir1/doc - ./dir2/doc) |
| douglas_ | and then a[0]=1 still fails. I tried it. :-} |
| Peng | a.append(1) |