Testing out NewsProxy
Please excuse this post, but I am seeing if NewsProxy actually filters out Google Groups or not. -- http://mail.python.org/mailman/listinfo/python-list
Re: Dictionary bidirectional
On Jul 13, 4:21 pm, Kless [EMAIL PROTECTED] wrote: I need a dictionary where get the result from a 'key' (on left), but also from a 'value' (on right), how to get it? I know that dictionaries aren't bidirectional, but is there any way without use two dictionaries? Thanks in advance! You want to print the key as well as the value? -- http://mail.python.org/mailman/listinfo/python-list
Re: Using the Random Module.
On Jul 12, 10:06 am, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: On Fri, 11 Jul 2008 12:27:32 -0700, castironpi wrote: You want a random integer. Is there a range you want it in? Past a certain point, you'll exceed the granularity of the random number generator, and some values in the range will never be generated. You might want to produce an unbounded random integer, where *every* integer has a chance to be returned: def unbounded_randint(): i = 0 while True: if random.random() 0.5: return i i += 1 This returns 0 with probability 1/2, 1 with probability 1/4, 2 with probability 1/8, etc. The probability distribution is centered close to zero (the mode and median are both zero, and I'm too lazy to calculate the mean) and it has an infinitely long tail. -- Steven Thanks Steven. I like how that bit works. No range in particular. I was just wondering if there was a better way than what I had been doing. Thanks for help. -- http://mail.python.org/mailman/listinfo/python-list
Re: spam [EMAIL PROTECTED] [EMAIL PROTECTED]
On Jul 11, 7:21 pm, Nobody Here [EMAIL PROTECTED] wrote: rickman [EMAIL PROTECTED] wrote: spam No fucking shit, Sherlock, why double the volume by pointing out the obvious? Calm down you all. BTW I reported it, yo should too. -- http://mail.python.org/mailman/listinfo/python-list
Using the Random Module.
I am currently learning, and loving, Python and have a question about random(). Right now, what I have to do to get a whole number and not a decimal using random.random() is this: random.random() 0.84765728501856734 _ * 10**17 84765728501856734.0 Is there a better way to do that besides doing this: random.randint(0, 9) 09657398671238769 Thanks for your time. David -- http://mail.python.org/mailman/listinfo/python-list
Re: Using the Random Module.
On Jul 11, 2:15 pm, Michiel Overtoom [EMAIL PROTECTED] wrote: You wrote... Is there a better way to do that besides doing this: random.randint(0, 9) 09657398671238769 Maybe this? random.randint(0, 9e16) -- The ability of the OSS process to collect and harness the collective IQ of thousands of individuals across the Internet is simply amazing. - Vinod Vallopillilhttp://www.catb.org/~esr/halloween/halloween4.html That would work yes, but is there a random() function that would do that without the attributes? Not trying to be lazy, I just want to know if there is a built in way. Thanks Michiel. -- http://mail.python.org/mailman/listinfo/python-list
Re: Simple question, how do you tell how many items in a list?
On Jul 11, 2:53 pm, Terry Reedy [EMAIL PROTECTED] wrote: Alex Bryan wrote: I am just wondering how you get an integer value for how many items there are in a list, preferably w/o a for loop. Read the library reference sections on built-in functions and classes. Quite simple. If I understand you correctly, you have a list like this: list = ['a', 'b', 'c', 'd'] As you can see, the list has 4 entries. The len() function also says that we have 4 entries. len(list) 4 Now, if we wanted a particular entry, we would do this: list[0] 'a' (Remember, when calling something in a list we count zero.) list[3] 'd' Hope this helped. David -- http://mail.python.org/mailman/listinfo/python-list
Re: paypal wholesale men jordans 17 (paypal accept)(www super-saler com
On Jul 10, 10:33 pm, 128 [EMAIL PROTECTED] wrote: paypal wholesale men jordans (paypal accept)(www super-saler com paypal wholesale men jordans 1 (paypal accept)(www super-saler com paypal wholesale men jordans 2 (paypal accept)(www super-saler com paypal wholesale men jordans 3 (paypal accept)(www super-saler com paypal wholesale men jordans 4 (paypal accept)(www super-saler com paypal wholesale men jordans 5 (paypal accept)(www super-saler com paypal wholesale men jordans 6 (paypal accept)(www super-saler com paypal wholesale men jordans 7 (paypal accept)(www super-saler com paypal wholesale men jordans 8 (paypal accept)(www super-saler com paypal wholesale men jordans 9 (paypal accept)(www super-saler com paypal wholesale men jordans 10 (paypal accept)(www super-saler com paypal wholesale men jordans 11 (paypal accept)(www super-saler com paypal wholesale men jordans 12 (paypal accept)(www super-saler com paypal wholesale men jordans 13 (paypal accept)(www super-saler com paypal wholesale men jordans 14 (paypal accept)(www super-saler com paypal wholesale men jordans 15 (paypal accept)(www super-saler com paypal wholesale men jordans 16 (paypal accept)(www super-saler com paypal wholesale men jordans 17 (paypal accept)(www super-saler com paypal wholesale men jordans (paypal accept)(www super-saler com paypal wholesale men jordans 1 (paypal accept)(www super-saler com paypal wholesale men jordans 2 (paypal accept)(www super-saler com paypal wholesale men jordans 3 (paypal accept)(www super-saler com paypal wholesale men jordans 4 (paypal accept)(www super-saler com paypal wholesale men jordans 5 (paypal accept)(www super-saler com paypal wholesale men jordans 6 (paypal accept)(www super-saler com paypal wholesale men jordans 7 (paypal accept)(www super-saler com paypal wholesale men jordans 8 (paypal accept)(www super-saler com paypal wholesale men jordans 9 (paypal accept)(www super-saler com paypal wholesale men jordans 10 (paypal accept)(www super-saler com paypal wholesale men jordans 11 (paypal accept)(www super-saler com paypal wholesale men jordans 12 (paypal accept)(www super-saler com paypal wholesale men jordans 13 (paypal accept)(www super-saler com paypal wholesale men jordans 14 (paypal accept)(www super-saler com paypal wholesale men jordans 15 (paypal accept)(www super-saler com paypal wholesale men jordans 16 (paypal accept)(www super-saler com paypal wholesale men jordans 17 (paypal accept)(www super-saler com paypal wholesale men jordans (paypal accept)(www super-saler com paypal wholesale men jordans 1 (paypal accept)(www super-saler com paypal wholesale men jordans 2 (paypal accept)(www super-saler com paypal wholesale men jordans 3 (paypal accept)(www super-saler com paypal wholesale men jordans 4 (paypal accept)(www super-saler com paypal wholesale men jordans 5 (paypal accept)(www super-saler com paypal wholesale men jordans 6 (paypal accept)(www super-saler com paypal wholesale men jordans 7 (paypal accept)(www super-saler com paypal wholesale men jordans 8 (paypal accept)(www super-saler com paypal wholesale men jordans 9 (paypal accept)(www super-saler com paypal wholesale men jordans 10 (paypal accept)(www super-saler com paypal wholesale men jordans 11 (paypal accept)(www super-saler com paypal wholesale men jordans 12 (paypal accept)(www super-saler com paypal wholesale men jordans 13 (paypal accept)(www super-saler com paypal wholesale men jordans 14 (paypal accept)(www super-saler com paypal wholesale men jordans 15 (paypal accept)(www super-saler com paypal wholesale men jordans 16 (paypal accept)(www super-saler com paypal wholesale men jordans 17 (paypal accept)(www super-saler com paypal wholesale men jordans (paypal accept)(www super-saler com paypal wholesale men jordans 1 (paypal accept)(www super-saler com paypal wholesale men jordans 2 (paypal accept)(www super-saler com paypal wholesale men jordans 3 (paypal accept)(www super-saler com paypal wholesale men jordans 4 (paypal accept)(www super-saler com paypal wholesale men jordans 5 (paypal accept)(www super-saler com paypal wholesale men jordans 6 (paypal accept)(www super-saler com paypal wholesale men jordans 7 (paypal accept)(www super-saler com paypal wholesale men jordans 8 (paypal accept)(www super-saler com paypal wholesale men jordans 9 (paypal accept)(www super-saler com paypal wholesale men jordans 10 (paypal accept)(www super-saler com paypal wholesale men jordans 11 (paypal accept)(www super-saler com paypal wholesale men jordans 12 (paypal accept)(www super-saler com paypal wholesale men jordans 13 (paypal accept)(www super-saler com paypal wholesale men jordans 14 (paypal accept)(www super-saler com paypal wholesale men jordans 15 (paypal accept)(www super-saler com paypal wholesale men jordans 16 (paypal accept)(www super-saler com paypal wholesale men
Re: error with configure (svn 64857)
On Jul 10, 6:57 pm, Mathieu Prevot [EMAIL PROTECTED] wrote: 2008/7/10 Martin v. Löwis [EMAIL PROTECTED]: I have the following error when I run configure: checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t) what can I do ? Study config.log for the source of the problem. Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ? configure:21939: checking for wchar_t configure:21970: icc -c -g -O2 conftest.c 5 conftest.c(123): warning #279: controlling expression is constant if ((ac__type_new_ *) 0) ^ configure:21976: $? = 0 configure:21991: result: yes configure:21998: checking size of wchar_t configure:22306: icc -o conftest -g -O2 conftest.c 5 ld: library not found for -lgcc_s configure:22309: $? = 1 configure: program exited with status 1 Mathieu I think he wanted YOU to find the problem. The best way to learn is to figure it out yourself! Good luck. -- http://mail.python.org/mailman/listinfo/python-list