On Sep 22, 10:23?pm, [EMAIL PROTECTED] wrote:
> On Sep 22, 9:10 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote:
>
> > Certainly xgcd should be in the math library or somewhere similar.
>
> It does feel odd to have modular exponentiation in the core but no
> other num
On Sep 23, 2:58 am, Karthik Gurusamy <[EMAIL PROTECTED]> wrote:
> On Sep 22, 8:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Let's say I have this Python file called loop.py:
>
> > import sys
> > print 'h
I have a pretty simple XMLRPCServer, something along the lines of the
example:
server = SimpleXMLRPCServer(("localhost", 8000))
server.register_function(pow)
server.register_function(lambda x,y: x+y, 'add')
server.serve_forever()
Now what I want to do is catch any errors that happen on requests,
On Sep 27, 3:55 pm, "Jeff McNeil" <[EMAIL PROTECTED]> wrote:
> Instead of register_function, use register_instance and provide a
> _dispatch method in that instance that handles your exception logging.
>
> Pseudo:
>
> class MyCalls(object):
> def _dispat
On Sep 27, 5:08 pm, "Jeff McNeil" <[EMAIL PROTECTED]> wrote:
> Yeah, that code was out of memory and I didn't test it, my apologies.
> Need to actually return a value from _dispatch.
>
> class MyCalls(object):
>def _dispatch(self, method, args):
>
Hello,
i'm debating if i should buy this book. it received good reviews at
Amazon: http://tinyurl.com/24zvrf. but it was published in 2004 and
i'm afraid quite some materials might be outdated? any input?
thanks,
kelie
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 28, 12:10 pm, TheFlyingDutchman <[EMAIL PROTECTED]> wrote:
> I have not read this book but just wanted to say, in case you don't
> already know, they have Chapter 13 on FTP available as a free download
> at the publisher's web site:
>
> http://www.apress.com/b
On Sep 28, 12:38 pm, "sean tierney" <[EMAIL PROTECTED]> wrote:
> I just read it (though I bought it half a year ago...don't judge :).
>
> Author recommends Python 2.3 and above...and as far as I know the
> examples are good. And if anything IS outdated --
Hi all,
I have the following code:
for i in generator_a: # the first "for" cycle
for j in generator_b:
if something_happen:
# do something here ..., I want the outer cycle to break
break
What should I do if I want the outer "for" cycle to continue or brea
[EMAIL PROTECTED] wrote:
> On 29 sep, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>> for i in generator_a: # the first "for" cycle
>> for j in generator_b:
>> if something_happen:
>>
All Quick Test Professional (QTP) FAQs
QuickTest Professional (QTP) Questions and Answers Part # 1
http://softwareqatestings.com/content/view/188/38/
QuickTest Professional (QTP) Questions and Answers Part # 2
http://softwareqatestings.com/content/view/189/38/
QuickTest Professional (QTP
George Sakkis wrote:
> On Sep 29, 10:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>> [EMAIL PROTECTED] wrote:
>>
>> > On 29 sep, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>> >
>> >>
hi, please help me,, a newbie...send me code for a programme
in which the computer tell u the number that u guessed
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 30, 8:35?pm, andresj <[EMAIL PROTECTED]> wrote:
> I was doing some programming in Python, and the idea came to my mind:
> using fractions instead of floats when doing 2/5.
>
> The problem arises when you try to represent some number, like 0.4 in
> a float. It will tel
hi
I want understanding pictures colorfull
for examle colorfull or black-white
image.google.com there are understand it .Can I understand it
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 1, 7:09 pm, andresj <[EMAIL PROTECTED]> wrote:
> > > On 2007-10-01, Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
>
> > > > Finally, arithmetic would become very confusing if there were
> > > > three distinct numeric types; it already causes e
On Oct 1, 7:20 pm, [EMAIL PROTECTED] wrote:
> On Oct 1, 8:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
>
> > >>> mpq(1,3)+0.6
> > mpq(14,15)
>
> Golly! That's quite impressive. And more than a little bit magic as
> well, since 0.6 is def
On Oct 1, 10:03?pm, rjcarr <[EMAIL PROTECTED]> wrote:
> Sorry if this is a completely newbie question ...
>
> I was trying to get information about the logging.handlers module, so
> I imported logging, and tried dir(logging.handlers), but got:
>
> AttributeError: 'mo
On Oct 1, 8:17?pm, [EMAIL PROTECTED] wrote:
> On Oct 1, 9:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > On Oct 1, 7:20 pm, [EMAIL PROTECTED] wrote:
>
> > > On Oct 1, 8:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
>
> > &g
if i have a dictionary name number and i want toask the list
whether a particular key already
exists.
>>> print number
{'octal': '1234567', 'binary': '10100101', 'decimal': '1234567890',
'hexadecimal': '1-9,a-f'}
i got error..after execute
>>>number._contains_("test")
Traceback (mos
cale Shape and Motion Reconstruction; Multi-scale
Modeling and Analysis; Scientific Visualization, Bio-medical Software
Libraries, Environments; etc.), in order to set the major lines of
developments for the near future.
Mini-symposium Organizers:
João Manuel R.S. Tavares ([EMAIL PROTECTED], FEUP, P
On Oct 2, 1:12 am, Robert Kern <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Oct 1, 8:17?pm, [EMAIL PROTECTED] wrote:
> >> On Oct 1, 9:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> >>> On Oct 1, 7:20 pm, [EMAIL PROT
On Oct 2, 5:43 pm, [EMAIL PROTECTED] wrote:
> On Oct 2, 5:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > But it is still wrong to say "0.6 is definitely not the same as 3/5".
>
> Out of context, I'd certainly agree. But from the con
On Oct 2, 10:12?pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 02 Oct 2007 01:59:35 -0300, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribi :
>
> > How does gmpy make the conversion from float to rational?
>
> Well, you know, these days val
I have found an excellent resource on Object Oriented Programming.
http://technical-talk.com/SoftDev/OOP/OOPBASICS.asp
--
http://mail.python.org/mailman/listinfo/python-list
hii
ı think you know spam page is the most pest for net user.I want
distinguish spam page to usefull page
if you have a idea whit this problem pleas share to me
thank you
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 4, 1:02 pm, brad <[EMAIL PROTECTED]> wrote:
> Does anyone else feel that unittesting is too much work? Not in general,
> just the official unittest module for small to medium sized projects?
>
> It seems easier to write some quick methods that are used when needed
> r
On Oct 4, 6:36 pm, Evenbit <[EMAIL PROTECTED]> wrote:
>
> This is extremely easy to answer. The average RosAsm coder tends to
> only make use of the libraries documented here:
>
> http://msdn2.microsoft.com/en-us/library/aa383749.aspx
Which is a bit limiting, wouldn't y
I'm studying python and very interested in cgi written in python, but
i can't find a free host suporting it.who can tell where can i sign up
for a free python host?
I just wanna have a try, the space dont have to be very large, 20M or
50M is OK
thanks!
--
http://mail.python.org/mailman/listinfo/p
On Oct 5, 2:50 am, John Nagle <[EMAIL PROTECTED]> wrote:
> Johny wrote:
> > Martin and John,
> > Thank you both for your replies
> > Must I have OpenSSL imported in my Python program?
> > So far I have been using only SSL support.
> > Built-in SSL suppo
hii my friends
ı want to a filter for porn picture
if you know , please help me :S:S
how do ı separate porn form not porn
I don't want my web site porn;)
(my english bad I hope understant it. very very thans )
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 5, 10:42 am, [EMAIL PROTECTED] wrote:
> On Oct 5, 10:22 am, Paul Rudin <[EMAIL PROTECTED]> wrote:
>
> > István <[EMAIL PROTECTED]> writes:
> > > Could somebody suggest me a novice Python list, please?
>
> > Here you go:
>
> > ['novic
I compiled the c program that is supposed to allow you to call a
procedure from the command line promt.. (it is from the embeding
example).. I am a little confused as to what all I am supposed to
distribute to make it work.. Do I just need the python .dll for the
version I compiled or is it
On Oct 6, 11:31 pm, goldtech <[EMAIL PROTECTED]> wrote:
> Can anyone link me or explain the following:
>
> I open a file in a python script. I want the new file's location to be
> on the user's desktop in a Windows XP environment. fileHandle = open
> (., 'w
On Oct 7, 11:00?am, [EMAIL PROTECTED] wrote:
> On Oct 7, 11:54 am, Wildemar Wildenburger
>
>
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > Kay Schluehr wrote:
> > > On Oct 7, 8:05 am, Dick Moores <[EMAIL PROTECTED]> wrote:
> > >> <htt
On Oct 7, 1:24 am, Scott David Daniels <[EMAIL PROTECTED]> wrote:
> goldtech wrote:
> > ... I want the new file's location to be on the user's desktop in
> > a Windows XP environment
>
> How about:
> import os.path
> handle = open(os.pat
On Oct 7, 8:17 pm, Michal Bozon <[EMAIL PROTECTED]> wrote:
> On Sun, 07 Oct 2007 09:02:09 -0700, Abandoned wrote:
> > On Oct 7, 4:47 pm, Michal Bozon <[EMAIL PROTECTED]> wrote:
> >> On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote:
> >> > Hi..
>
hello all
i researching a graphics table with python.haeve you got this how it
have got design and fast making
thanks for your help
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 8, 2:32 am, Sanjay <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am using pytz.common_timezones to populate the timezone combo box of
> some user registration form. But as it has so many timezones (around
> 400),
There are only 25 timezones: -12, -11, ... -1, 0 (GMT),
On Oct 8, 1:00 pm, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 08, 2007 at 10:41:03AM -0700, [EMAIL PROTECTED] wrote regarding
> Re: pytz has so many timezones!:
>
>
>
> > On Oct 8, 2:32 am, Sanjay <[EMAIL PROTECTED]> wrote:
> > &
On Oct 8, 1:03 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Mon, 2007-10-08 at 10:41 -0700, [EMAIL PROTECTED] wrote:
> > For example, Windows has seperate listings for
>
> > Central America
> > Central Time (US & Canada)
> > Guadalahara, Mexico City
On Oct 8, 5:48 pm, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote:
> On 10/8/07, *J. Clifford Dyer* <[EMAIL PROTECTED]
>
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> On Mon, Oct 08, 2007 at 01:13:24PM -0700, [EMAIL PROTECTED]
> <mailto:[EMAIL
On Oct 8, 3:23 pm, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 08, 2007 at 01:12:32PM -0700, [EMAIL PROTECTED] wrote regarding
> Re: pytz has so many timezones!:
>
> > [ I wrote ]
> > > Reducing them to a single time zone will result in
On Oct 8, 3:27 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Oct 8, 1:00 pm, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote:
> > > On Mon, Oct 08, 2007
On Oct 8, 8:27?pm, "Nicholas Bastin" <[EMAIL PROTECTED]> wrote:
> On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > > What do you mean by "the military" and why do you think they're
> > > authoritative on the topic of time
On Oct 7, 2:47 pm, "Francesco Guerrieri" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Today I've been thinking a bit about the "python internals". Inspired
> by this recipe:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66062
> I found out a little
That sounds to easy I will give it a shot..
On Oct 6, 11:08 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 05 Oct 2007 20:40:40 -0300, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribi?:
>
> > I compiled the c program that is supposed to a
I compiled the comand line example and I am getting an error when I
try to use the program when the program is cleaning up (I don't know
that it would prevent the program from running though I will run more
tests)... ebedpython test testt
result of call: -1
exception exceptions.TypeError: 'an inte
On Oct 9, 6:11 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I compiled the comand line example and I am getting an error when I
> try to use the program when the program is cleaning up (I don't know
> that it would prevent the program from running
On Oct 9, 2:09 am, "." <[EMAIL PROTECTED]> wrote:
> On Tue, 09 Oct 2007 05:15:49 +, gnuist006 wrote:
> > (3) Is it present in python and java ?
>
> Certainly not Java, I dunno about Python. I've never seen someone use
> them in Python, but the pythonist
Hi.
I've got a question on the differences and how to define static and
class variables. AFAIK, class methods are the ones which receives the
class itself as an argument, while static methods are the one which
runs statically with the defining class.
Hence, my understanding is that static variabl
On Oct 9, 2:58 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Mon, 08 Oct 2007 10:41:03 -0700, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>
>
> > There are only 25 timezones: -12, -11, ... -1, 0 (
On Oct 9, 8:34 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Oct 8, 1:03 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> >> On Mon, 2007-10-08 at 10:41 -0700, [EMAIL PROTECTED] wrote:
> >> > For example
I apologize for being a dick. It won't happen again.
I was actually thinking that the 25 standard
timezones (which make a reasonable list or
can be easily generated by clicking a map)
could serve as a filter to make the detail
list reasonably sized.
Something like this:
import pytz
import dateti
On Oct 10, 12:30 pm, Robin Kåveland <[EMAIL PROTECTED]> wrote:
> Hi there. I'm basically in the process of writing my first substantial
> application in Python, and I've made a couple of (I'd like to say)
> design decisions so it won't just be a jumble. So, I
On Oct 10, 12:43 pm, Robin Kåveland <[EMAIL PROTECTED]> wrote:
> On Oct 10, 8:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On Oct 10, 12:30 pm, Robin Kåveland <[EMAIL PROTECTED]> wrote:
>
> > > Hi there.
Artur Siekielski wrote:
> On Oct 11, 2:27 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> > But why? Default getters and setters are unnecessary and if you need
> > something other than the default you need to write it anyway more
> > explicit
I'm trying to get a notification from the NT event for any new event
using the DispatchWithEvents() function. Everything seems to be
working the way I wanted, but I don't know how to get the properties
of the event (ie. event type, message, etc.) from the OnObjectReady()
callback.
class SinkClass(
I'm trying to get a notification from the NT event for any new event
using the DispatchWithEvents() function. Everything seems to be
working the way I wanted, but I don't know how to get the properties
of the event (ie. event type, message, etc.) from the OnObjectReady()
callback.
class SinkClass(
Dear All,
I am new to Python and SWIG, and I tried to search the SWIG
mailinglist for my specific question, but I did not find it. And for a
simple one c++ file, I can handle it successfully.
Now I have a small project including several C files, file1.C file2.C
file3.C file2.h file3.h , file1.C i
350 N. La Salle St. Chicago, IL 60610
please contact [EMAIL PROTECTED] and [EMAIL PROTECTED] if interested.
--
http://mail.python.org/mailman/listinfo/python-list
I have found a couple of ways to include python in my pascal program
http://arctrix.com/nas/python/standalone.html
and an example I compiled from the embeded examples and I was wanting
to know if there are more examples or comiled versions I can execute
from my program... I am getting an error f
I've been programming in Python for 5 or more years now and whenever I
want a quick-n-dirty GUI, I use Tkinter. This is partly because it's
the first toolkit I learnt, but also because it's part of the standard
Python distribution and therefore easy to get Python apps to work
cross platform - it us
I have a file containing following data. But the dimension can be
different.
A B C D E F G
3 4 1 5 6 2 4
7 2 4 1 6 9 3
3 4 1 5 6 2 4
7 2 4 1 6 9 3
.
.
.
.
What is the best approach to make a column vector with the name such
as A B, etc?
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 15, 11:07 am, xkenneth <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm working on developing an XML-RPC interface from LabVIEW to
> python and I would really like to see how python is forming it's XML-
> RPC requests/responses. Is there any way I can force these
On Oct 15, 12:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Oct 15, 11:07 am, xkenneth <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm working on developing an XML-RPC interface from LabVIEW to
> > python and I would real
i am trying to get the pixel data using im.getpixel()
i am getting a tuple like (152,118,106) for a pixel in a RGB jpeg
image .
what i really want is an integer value representing a pixel ,like waht
i can get from java's BufferedImage.getRGB(x,y) ..
i am wondering if someone can advise me on how i
> Just pack the RGB values into an `int` by shifting and or-ing. Untested:
>
> red, green, blue = img.getpixel(x, y)
> pixel_as_int = red << 16 | green << 8 | blue
>
> Ciao,
> Marc 'BlackJack' Rintsch
thanx Marc
will try that
dn
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 16, 11:38 pm, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2007-10-16, Robert Kern <[EMAIL PROTECTED]> wrote:
> > I use GMane to read and post to this list because I like my lists to act
> > like
> > USENET.
> > http://gmane.org
>
> Since &quo
On Oct 17, 4:58 pm, Ixiaus <[EMAIL PROTECTED]> wrote:
> Thank you for the quick responses.
>
> I did not know that about integer literals beginning with a '0', so
> thank you for the explanation. I never really use PHP except for
> handling basic forms and silly web
Version 1.4 of my scalar class is available at
http://RussP.us/scalar.htm
No major changes. I have corrected the "repr" function to make it more
useful, and I have added a "unit_type" function that returns the type
of a unit (e.g., time, length, force). The unit_type function is
intended mainly f
On Oct 18, 1:38 pm, Bruno Desthuilliers wrote:
> Abandoned a écrit :
> (snip)
>
> > I'm very confused :(
> > I try to explain main problem...
> > I have a table like this:
> > id-1 | id-2 | value
> > 23 24 34
> > 56 68 66
> > 56 98 32455
> > 55 62 655
> > 56
hi
I'm following the python's translation of SICP:
http://codepoetics.com/wiki/index.php?title=Topics:SICP_in_other_languages:Python:Chapter_1
...
a = 3
b = a + 1
print a + b + (a * b)
print (a == b)
print b if ((b > a) and (b < (a * b))) else a
everything was fine till this point, and I got:
Hi,
Does any one know whare I can find some code to phrase a rss feeds?
Thank you,
Ted
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 18, 6:12 pm, Monty Taylor <[EMAIL PROTECTED]> wrote:
> Hey everybody,
>
> MySQL has put up a poll onhttp://dev.mysql.comasking what your primary
> programming language is.
But it doesn't ask that, it asks what your
primary programming language is FOR DEVELOPING
MYS
chech wat is happening here..
http://www.createthefuturecontest.com/pages/view/entriesdetail.html?entryID=798
--
http://mail.python.org/mailman/listinfo/python-list
hi
what is the difference between the two kinds of brackets?
I tried a few examples but I can't make out any real difference:
lst = [10, 20, 30]
print lst[0]
print lst[2]
print lst
lst = (10, 20, 30)
print lst[0]
print lst[2]
print lst
lst = [10, 20, 40, "string", 302.234]
print lst[0:2]
print ls
On Oct 22, 7:50 am, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Py-Fun <[EMAIL PROTECTED]> wrote:
> > I'm stuck trying to write a function that generates a factorial of a
> > number using iteration and not recursion. Any simple ideas would be
> > appreciated.
On Oct 22, 1:35 pm, Paul Rudin <[EMAIL PROTECTED]> wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> > On Oct 22, 7:50 am, Duncan Booth <[EMAIL PROTECTED]> wrote:
> >> Py-Fun <[EMAIL PROTECTED]> wrote:
> >> > I
On Oct 22, 3:38 pm, Paul Rudin <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] writes:
> > On 22 oct, 20:35, Paul Rudin <[EMAIL PROTECTED]> wrote:
>
> >> import operator
> >> def fact(x):
> >> return reduce(operator.mul, xrange(1,x)
On Oct 22, 3:22 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > def fact(x):
> > if x == 0 or x == 1:
> > return 1
> > else:
> > return reduce(operator.mul, xrange(1,x+1))
>
> If obscurity is the name of the game,
>
>>>
On Oct 22, 4:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Oct 22, 3:38 pm, Paul Rudin <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > [EMAIL PROTECTED] writes:
> > > On 22 oct, 20:35, Paul Rudin <[EMAIL PROTECTED]> wrote:
>
>
On Oct 22, 5:22 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Mon, 22 Oct 2007 18:17:56 -0400, Shawn Minisall wrote:
> > #Intro
> > print "*"
> > print "WELCOM
On Oct 22, 5:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Oct 22, 5:22 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Mon, 22 Oct 2007 18:17:56 -
On Oct 22, 5:39 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> >> If obscurity is the name of the game,
>
> >>>>> from operator import mul
> >>>>> fact = lambda i: i > 1 and reduce(mul, xrange(1,i+1)) or i
> >> >= 0 and 1 or
On Oct 22, 9:12?pm, Shawn Minisall <[EMAIL PROTECTED]> wrote:
> Thanks, everyone! Using everyone's suggestions and points, the program
> is working great now.
Actually, it's not. I assume not printing the population
was a copy error.
But, by adding the "if (p>1):
Trying to figure out how to add login verfication. I believe it is
logging me in, but theres no way to really tell..any ideas? or
tutorials out there that can exaplain this to me?
Thanks
import urllib,urllib2,cookielib
passlst = open(passfile, 'r').readlines()
url="http://somesite";
cj = cookiel
hi:
i have a decorator given below.
def checkdb(web):
def decorator(func):
def proxyfunc(self, args=(), kw=None):
#DO STUFF with web
return func(self, *args, **kw)
return proxyfunc
return
On Oct 23, 6:58 am, [EMAIL PROTECTED] wrote:
> On 22 oct, 23:39, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Nope, still doesn't work:
>
> > def fact(x):
> > return reduce(operator.mul,xrange(1,x+1),1)
>
> > fact() should
On Oct 23, 5:55 am, Marco Mariani <[EMAIL PROTECTED]> wrote:
> Tim Chase wrote:
> >>>> fact = lambda i: i > 1 and reduce(mul, xrange(1, i+1)) or not
> > i and 1 or None
>
> > Stunts like this would get a person fired around here if they
> > w
On Oct 23, 3:21 am, [EMAIL PROTECTED] wrote:
> This was from a random website I found on practising good programming
> techniques and I thought I'd see what ways people could find to write
> out this example. Below are my two examples (which should work...).
>
> I am merely
On Oct 23, 4:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Oct 23, 3:21 am, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > This was from a random website I found on practising good programming
> > techniques and I thought I'd see what w
import urllib2
# Create an OpenerDirector with support for Basic HTTP
Authentication...
auth_handler = urllib2.HTTPBasicAuthHandler()
auth_handler.add_password('realm', 'https://www.somesite.com/
loginform.ws?mod=ticketing', 'myid', 'passwd')
opener = urllib2.build_opener(auth_handler)
# install i
On Oct 23, 9:46?pm, james_027 <[EMAIL PROTECTED]> wrote:
> hi,
>
> i have a list from a resultset like this
> 1,"Chicago Bulls",,,""
> 2,"Cleveland Caveliers",,,""
^ ^^^ ^
| ||| |
1
On Oct 23, 12:55 am, Ralf Schönian <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] schrieb:
>
>
>
>
>
> > Trying to figure out how to add login verfication. I believe it is
> > logging me in, but theres no way to really tell..any ideas? or
> > tutori
On Oct 24, 4:05 pm, Lou Pecora <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Py-Fun <[EMAIL PROTECTED]> wrote:
> > > I'm stuck trying to write a function
On Oct 24, 5:19 pm, [EMAIL PROTECTED] wrote:
> Tim Golden napisa (a):
>
> > It's only a moment before the metaclass and
> > the Twisted solution come along. :)
>
> I couldn't resist. It's not as elegant as I hoped, but hey, at least
> it memoizes the
On Oct 24, 5:20 pm, none <""atavory\"@(none)"> wrote:
> Hello,
>
> Is there some package to calculate combinatorical stuff like (n over
> k), i.e., n!/(k!(n - k!) ?
Sure, the gmpy module.
>>> import gmpy
>>> for m in xrange(10):
for n in xrange(m+1):
print
On Oct 24, 5:44 pm, Michal Bozon <[EMAIL PROTECTED]> wrote:
> many Python newcomers are confused why
> range(10), does not include 10.
How can they be confused?
Does base 10 have a digit ten?
Does base 2 have a digit two?
Does base 16 have a digit sixteen?
Haven't you stopped
hi to everyone
I wondered if this might be the right place to ask for some ideas for
python project for university.
I'd like it to be something useful and web-based. And the project must
be complete in 2-3 months by 2-3 person group.
May be something useful for open source or python community ...
W
3301 - 3400 of 4914 matches
Mail list logo