> Date: Fri, 24 May 2013 23:05:17 -0700
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: lokeshkopp...@gmail.com
> To: python-list@python.org
[...]
> ya steven i had done the similar logic but that
On Sat, May 25, 2013 at 5:53 PM, Carlos Nepomuceno
wrote:
>
>> Date: Fri, 24 May 2013 23:05:17 -0700
>> 1. No in-built functions should be used
> count[2] = len(l)
Fail! :)
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
> Date: Sat, 25 May 2013 18:28:32 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sat, May 25, 2013 at 5:53 PM, Carlos Nepomuceno
> wrot
On Sat, May 25, 2013 at 6:43 PM, Carlos Nepomuceno
wrote:
>
> lol I forgot to include this monkey patch! ;)
>
> def length(l):
> x=0
> y=l[:]
> while y:
> x+=1
> y.pop()
> return x
Nice. Now eliminate abs (easy) and range. :
lol
def absolute(x):
return x if x>0 else -x
def reach(x):
y=[]
z=0
while z Date: Sat, 25 May 2013 18:47:24 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sat,
On Sat, May 25, 2013 at 6:54 PM, Carlos Nepomuceno
wrote:
> lol
>
> def absolute(x):
> return x if x>0 else -x
>
> def reach(x):
> y=[]
> z=0
> while z y.append(z)
> z+=1
> return y
Very good. You are now in a position to get past the limitations of a
restricte
> Date: Sat, 25 May 2013 19:01:09 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
[...]
> Very good. You are now in a position to get past the l
On Sat, May 25, 2013 at 7:10 PM, Carlos Nepomuceno
wrote:
>
>> Date: Sat, 25 May 2013 19:01:09 +1000
>> Subject: Re: help how to sort a list in order of 'n' in python without using
>> inbuilt functions??
>> From: ros...@gmail.com
>> To: python-list@python.
lol http://search.dilbert.com/comic/Random%20Nine
> Date: Sat, 25 May 2013 19:14:57 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sat,
This is a known problem, but I want to ask the experts for the best way to
solve it for me.
I have a project (Euler Math Toolbox), which runs Python as a script language.
For this, a library module "python.dll" is loaded at run time, which is linked
against "python27.lib". Then Py_Initialize is
If you are talking about accessing a web page, rather than an image, then you
want to do what is known as screen scraping.
One of the best tools for this is called BeautifulSoup.
http://www.crummy.com/software/BeautifulSoup/
--
http://mail.python.org/mailman/listinfo/python-list
If you are talking about accessing a web page, rather than an image, then what
you want to do is known as 'screen scraping'.
One of the best tools for this is called BeautifulSoup.
http://www.crummy.com/software/BeautifulSoup/
--
http://mail.python.org/mailman/listinfo/python-list
Always wondered how sound is generated from text. Googling couldn't help. Devs
having knowledge about this could provide, the information, Links, URLs or
anything that could help.
--
http://mail.python.org/mailman/listinfo/python-list
On 25/05/2013 09:54, Carlos Nepomuceno wrote:
lol
def absolute(x):
return x if x>0 else -x
def reach(x):
y=[]
z=0
while z
In my book this is another fail as lists are inbuilt (yuck!) and so is
the add function that'll be called for z+=1.
--
If you're using GoogleCrap™ pl
Rakshith Nayak wrote:
>Always wondered how sound is generated from text. Googling couldn't help. Devs
>having knowledge about this could provide, the information, Links, URLs or
>anything that could help.
Perhaps try 'text to speech' instead of 'text to sound'?
Best regards,
Günther
--
h
Hi All ,
I have started leaning Python through web . Would like to know if
I should follow any book so that basics become clear with examples also
want to know like in perl i use to invoke perl -d to get a debugged output
is there any option in python.
THanks,
--
http://mail.python.org/
In article <78192328-b31b-49d9-9cd6-ec742c092...@googlegroups.com>,
lokeshkopp...@gmail.com wrote:
> On Friday, May 24, 2013 1:34:51 PM UTC+5:30, lokesh...@gmail.com wrote:
> > i need to write a code which can sort the list in order of 'n' without use
> > builtin functions
> >
> > can anyone h
In article <74e33270-a79a-4878-a400-8a6cda663...@googlegroups.com>,
lokeshkopp...@gmail.com wrote:
> ya steven i had done the similar logic but thats not satisfying my professor
> he had given the following constrains
> 1. No in-built functions should be used
> 2. we are expecting a O(n) solut
On 05/25/2013 10:03 AM, Roy Smith wrote:
In article <74e33270-a79a-4878-a400-8a6cda663...@googlegroups.com>,
lokeshkopp...@gmail.com wrote:
ya steven i had done the similar logic but thats not satisfying my professor
he had given the following constrains
1. No in-built functions should be u
On Sat, 25 May 2013 16:41:58 +1000, Chris Angelico wrote:
> On Sat, May 25, 2013 at 4:38 PM, zoom wrote:
>> But why would anyone want to use IPv6?
>
> I hope you're not serious :)
He's planning to drop off the Internet once the IP address run out.
--
Steven
--
http://mail.python.org/mailman
On Sat, 25 May 2013 19:14:57 +1000, Chris Angelico wrote:
> def random_number():
> return 7
I call shenanigans! That value isn't generated randomly, you just made it
up! I rolled a die *hundreds* of times and not once did it come up seven!
--
Steven
--
http://mail.python.org/mailman/lis
On Fri, 24 May 2013 23:05:17 -0700, lokeshkoppaka wrote:
> On Saturday, May 25, 2013 11:27:38 AM UTC+5:30, Steven D'Aprano wrote:
>> tally = 0
>> for item in list_of_items:
>> if item == 0:
>> tally = tally + 1
>>
>> print "The number of zeroes equals", tally
>
>
> ya steven i had d
On Sat, 25 May 2013 18:11:11 +0530, Asad Hasan wrote:
> I have started leaning Python through web . Would like to know
> if I should follow any book so that basics become clear with examples
Reading books is a good thing to do.
> also
> want to know like in perl i use to invoke perl -d to get
On 25 May 2013 15:35, "Steven D'Aprano" <
steve+comp.lang.pyt...@pearwood.info> wrote:
>
> On Sat, 25 May 2013 19:14:57 +1000, Chris Angelico wrote:
>
> > def random_number():
> > return 7
>
> I call shenanigans! That value isn't generated randomly, you just made it
> up! I rolled a die *hundre
Roy Smith writes:
> In article <78192328-b31b-49d9-9cd6-ec742c092...@googlegroups.com>,
> lokeshkopp...@gmail.com wrote:
>
> > On Friday, May 24, 2013 1:34:51 PM UTC+5:30, lokesh...@gmail.com wrote:
> > > i need to write a code which can sort the list in order of 'n'
> > > without use builtin fu
All of the above, plus:
- Best Pythonic tools for GUI
- notorious projects (in science, education, NGOs, etc) using python
Please keep us informed, and best wishes
Daniel
El 25/05/2013, a las 07:29, Michael Poeltl
escribió:
> * DRJ Reddy [2013-05-25 05:26]:
>> Planning to start a python on
On 25/05/2013 15:28, Steven D'Aprano wrote:
On Sat, 25 May 2013 19:14:57 +1000, Chris Angelico wrote:
def random_number():
return 7
I call shenanigans! That value isn't generated randomly, you just made it
up! I rolled a die *hundreds* of times and not once did it come up seven!
Lie
In article ,
Chris Angelico wrote:
> > Also, comparison of Python flavors (CPython, PyPy, Cython, Stackles, etc.)
Stackles? That sounds like breakfast cereal.
"New all-natural stackles, with 12 essential vitamins, plus fiber!"
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, May 26, 2013 at 1:24 AM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> > Also, comparison of Python flavors (CPython, PyPy, Cython, Stackles, etc.)
>
> Stackles? That sounds like breakfast cereal.
>
> "New all-natural stackles, with 12 essential vitamins, plus fiber!"
He
In article <51a0caac$0$30002$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Sat, 25 May 2013 16:41:58 +1000, Chris Angelico wrote:
>
> > On Sat, May 25, 2013 at 4:38 PM, zoom wrote:
> >> But why would anyone want to use IPv6?
> >
> > I hope you're not serious :)
>
> He's pl
On Sun, May 26, 2013 at 12:28 AM, Steven D'Aprano
wrote:
> On Sat, 25 May 2013 19:14:57 +1000, Chris Angelico wrote:
>
>> def random_number():
>> return 7
>
> I call shenanigans! That value isn't generated randomly, you just made it
> up! I rolled a die *hundreds* of times and not once did it
> Can you give an example of the code you have?
I actually just overrode the regex used by the method in the LDIFWriter class
to be far more broad
about what it interprets as a safe string. I really need to properly handle
reading, manipulating and
writing non ascii data to solve this...
Shame
On May 25, 3:52 pm, Rakshith Nayak wrote:
> Always wondered how sound is generated from text. Googling couldn't help.
> Devs having knowledge about this could provide, the information, Links, URLs
> or anything that could help.
>
>
look for speech synthesis
http://en.wikipedia.org/wiki/Speech
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> Date: Sat, 25 May 2013 13:01:06 +0100
[...]
> In my book this is another fail as lists are in
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> Date: Sat, 25 May 2013 14:28:33 +
> To: python-list@python.org
>
> On Sat, 25 May 2013 19:14:57 +1000, Ch
> Date: Sun, 26 May 2013 01:41:58 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sun, May 26, 2013 at 12:28 AM, Steven D'Aprano
> wrote
On Sun, May 26, 2013 at 3:17 AM, Carlos Nepomuceno
wrote:
> def f(x):
> return x+1
>
> or you can just go:
>
> f(roll_d6())
Hmm. Interesting. So now we have a question: Does adding 1 to a random
number make it less random? It adds determinism to the number; can a
number be more deterministic
> Date: Sat, 25 May 2013 18:11:11 +0530
> Subject: Learning Python
> From: pythona...@gmail.com
> To: Python-list@python.org
>
> Hi All ,
>
> I have started leaning Python through web . Would like to know
> if I should follow any book so that ba
> From: r...@panix.com
> Subject: Re: Python Magazine
> Date: Sat, 25 May 2013 11:24:03 -0400
> To: python-list@python.org
>
> In article ,
> Chris Angelico wrote:
>
>>> Also, comparison of Python flavors (CPython, PyPy, Cython, Stackles, etc.)
>
> Stackles
> Date: Sun, 26 May 2013 03:23:44 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sun, May 26, 2013 at 3:17 AM, Carlos Nepomuceno
> wrot
> Date: Fri, 24 May 2013 23:05:17 -0700
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: lokeshkopp...@gmail.com
[...]
> ya steven i had done the similar logic but thats not satisfying my professo
I have been doing the same thing and I tried to use java for testing the
credentials and they are correct. It works perfectly with java.
I really don´t know what we´re doing wrong.
You are accessing a protected operation of the LDAP server
and it (the server) rejects it due to invalid credential
> I have been doing the same thing and I tried to use java for testing the
> credentials and they are correct. It works perfectly with java.
> I really don´t know what we´re doing wrong.
>
>
> You are accessing a protected operation of the LDAP server
> and it (the server) rejects it due to invali
On Thu, 23 May 2013 17:20:19 +1000, Chris Angelico wrote:
> Aside: Why was PHP's /e regexp option ever implemented?
Because it's a stupid idea, and that's the only requirement for a feature
to be implemented in PHP.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, May 26, 2013 at 4:27 AM, Nobody wrote:
> On Thu, 23 May 2013 17:20:19 +1000, Chris Angelico wrote:
>
>> Aside: Why was PHP's /e regexp option ever implemented?
>
> Because it's a stupid idea, and that's the only requirement for a feature
> to be implemented in PHP.
Hey, don't be rude. I m
On 25 May 2013 19:37, "Chris Angelico" wrote:
> Ah, who am I kidding. Be as rude as you like. I have to work with PHP all
week.
>
> ChrisA
> --
> http://mail.python.org/mailman/listinfo/python-list
I have cried.
--
http://mail.python.org/mailman/listinfo/python-list
Sorry to be unclear -- it's a screenshot of the webpage, which is publicly
accessible, but it contains sensitive information. A bad combination,
admittedly, and something that'll be soon fixed.
--
http://mail.python.org/mailman/listinfo/python-list
On Saturday, May 25, 2013 8:30:19 AM UTC-7, Roy Smith wrote:
> From my phone, I
> can call any other phone anywhere in the world. But I can't talk
> directly to the file server in my neighbor's house across the street?
Hmmm... I've been an advocate of IPv6, but... now you've got me thinking of
On Friday, May 24, 2013 10:33:47 AM UTC-7, Yours Truly wrote:
> If you don't reshuffle p, it guarantees the maximum interval between reusing
> the same permutation.
Of course, that comes at a certain price. Given two permutations p[x] and
p[x+1], they will ALWAYS be adjacent, in every repetition
On Friday, May 24, 2013 4:36:35 PM UTC-7, Carlos Nepomuceno wrote:
> #to create the tables list
> tables=[[re.findall('(.*?)',r,re.S) for r in
> re.findall('(.*?)',t,re.S)] for t in
> re.findall('(.*?)',page,re.S)]
>
>
> Pretty simple.
Two nested list comprehensions, with regex pattern matchi
In article <15a1bb3a-514c-454e-a966-243c84123...@googlegroups.com>,
John Ladasky wrote:
> Because someone's got to say it... "The generation of random numbers is too
> important to be left to chance." Robert R. Coveyou
Absolutely. I know just enough about random number generation to
unders
In article <7cd17be8-d455-4db8-b8d0-ccc757db5...@googlegroups.com>,
John Ladasky wrote:
> On Saturday, May 25, 2013 8:30:19 AM UTC-7, Roy Smith wrote:
> > From my phone, I
> > can call any other phone anywhere in the world. But I can't talk
> > directly to the file server in my neighbor's ho
On Sun, May 26, 2013 at 11:54 AM, Roy Smith wrote:
> In article <7cd17be8-d455-4db8-b8d0-ccc757db5...@googlegroups.com>,
> John Ladasky wrote:
>
>> On Saturday, May 25, 2013 8:30:19 AM UTC-7, Roy Smith wrote:
>> > From my phone, I
>> > can call any other phone anywhere in the world. But I can't
A perfectly fair point, Roy. It's just when you started suggesting connecting
to your neighbor's file server -- well, that's not something that many people
would ordinarily do. So, my mind leaped to the possibility of uninvited
connections.
Related question: would denial-of-service attacks be
I am trying to automate Outlook mail client by retrieving a message with an
attachment, using win32com. The message box is a shared folder that is not
really underneath root folder inbox, so I had no success with inbox =
mapi.GetDefaultFolder(6). However, I did have some success with:
impor
On Sun, 26 May 2013 01:41:58 +1000, Chris Angelico wrote:
> On Sun, May 26, 2013 at 12:28 AM, Steven D'Aprano
> wrote:
>> On Sat, 25 May 2013 19:14:57 +1000, Chris Angelico wrote:
>>
>>> def random_number():
>>> return 7
>>
>> I call shenanigans! That value isn't generated randomly, you just
In article <8f19e20c-4f77-43dc-a732-4169e482d...@googlegroups.com>,
John Ladasky wrote:
> A perfectly fair point, Roy. It's just when you started suggesting
> connecting to your neighbor's file server -- well, that's not something that
> many people would ordinarily do. So, my mind leaped to
On 26/05/2013 02:58, Chris Angelico wrote:
On Sun, May 26, 2013 at 11:54 AM, Roy Smith wrote:
In article <7cd17be8-d455-4db8-b8d0-ccc757db5...@googlegroups.com>,
John Ladasky wrote:
On Saturday, May 25, 2013 8:30:19 AM UTC-7, Roy Smith wrote:
From my phone, I
can call any other phone any
On Sun, 26 May 2013 03:23:44 +1000, Chris Angelico wrote:
> Does adding 1 to a random
> number make it less random? It adds determinism to the number; can a
> number be more deterministic while still no less random?
>
> Ah! I know. The answer comes from common sense:
[snip spurious answer]
I kno
On Sun, May 26, 2013 at 1:04 PM, John Ladasky
wrote:
> A perfectly fair point, Roy. It's just when you started suggesting
> connecting to your neighbor's file server -- well, that's not something that
> many people would ordinarily do. So, my mind leaped to the possibility of
> uninvited conn
On Sat, 25 May 2013 21:54:43 -0400, Roy Smith wrote:
> Of course not every IPv6 endpoint will be able to talk to every other
> IPv6 endpoint, even if the both have globally unique addresses. But,
> the access controls will be implemented in firewalls with appropriately
> coded security policies.
This is a small little Project that I have started. Its a light little Web
Server (HTTPd) coded in python. Requirements: Python 2.7 =< And Linux / BSD. I
believe this could work in a CLI Emulator in windows too.
Welcome to check out the website powered by CrazyHTTPd:
http://web.crazycoder.me:140
On Sun, May 26, 2013 at 1:09 PM, Steven D'Aprano
wrote:
> You're right, all my dice are eight-sided and complex:
>
> 1+0i
> 1+1i
> 1-1i
> -1+0i
> -1+1i
> -1-1i
>
>
> :-)
Now THAT is a dice of win!
>> Now, I have here with me
>> a set used for maths drill (to be entirely accurate, what I have her
> Date: Sat, 25 May 2013 20:04:28 -0700
> Subject: Re: Python Magazine
> From: john_lada...@sbcglobal.net
> To: python-list@python.org
>
> A perfectly fair point, Roy. It's just when you started suggesting connecting
> to your neighbor's file server -- well
On Sun, 26 May 2013 11:58:09 +1000, Chris Angelico wrote:
> On Sun, May 26, 2013 at 11:54 AM, Roy Smith wrote:
>> Of course not every IPv6 endpoint will be able to talk to every other
>> IPv6 endpoint, even if the both have globally unique addresses. But,
>> the access controls will be implemen
On 26/05/2013 04:55, cdorm...@gmail.com wrote:
This is a small little Project that I have started. Its a light little Web Server
(HTTPd) coded in python. Requirements: Python 2.7 =< And Linux / BSD. I believe
this could work in a CLI Emulator in windows too.
Welcome to check out the website pow
On Sun, 26 May 2013 03:38:12 +, Steven D'Aprano wrote:
> ... adding a constant to a random variable still leaves it equally
> random. Adding, multiplying, dividing or subtracting a constant from a
> random variable X just shifts the possible values X can take ...
That's mathematically true, b
Your code isn't threaded. I suggest you consider[1] and take that road! ;) Good
luck!
[1] http://bulk.fefe.de/scalable-networking.pdf
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
> Subject: Re: CrazyHTTPd - HTTP Daemon in Python
> Date: Su
On Sun, May 26, 2013 at 1:38 PM, Steven D'Aprano
wrote:
> On Sun, 26 May 2013 03:23:44 +1000, Chris Angelico wrote:
>
>> Does adding 1 to a random
>> number make it less random? It adds determinism to the number; can a
>> number be more deterministic while still no less random?
>>
>> Ah! I know. T
On Sun, May 26, 2013 at 2:01 PM, Carlos Nepomuceno
wrote:
>
>> Date: Sat, 25 May 2013 20:04:28 -0700
>> Subject: Re: Python Magazine
>> From: john_lada...@sbcglobal.net
>> To: python-list@python.org
>>
>> A perfectly fair point, Roy. It's just when you star
On Sun, May 26, 2013 at 2:03 PM, Steven D'Aprano
wrote:
> On Sun, 26 May 2013 11:58:09 +1000, Chris Angelico wrote:
>
>> On Sun, May 26, 2013 at 11:54 AM, Roy Smith wrote:
>
>>> Of course not every IPv6 endpoint will be able to talk to every other
>>> IPv6 endpoint, even if the both have globally
On Sunday, May 26, 2013 12:21:46 PM UTC+8, Carlos Nepomuceno wrote:
> Your code isn't threaded. I suggest you consider[1] and take that road! ;)
> Good luck!
>
> [1] http://bulk.fefe.de/scalable-networking.pdf
>
>
> > To: python-list@python.org
> > From:
> Date: Sun, 26 May 2013 14:31:57 +1000
> Subject: Re: Python Magazine
> From: ros...@gmail.com
> To: python-list@python.org
[...]
> I expect that IP blocks will be upgraded to /64 block blocks, if that
> starts being a problem. But it often won't, and speci
On Sun, May 26, 2013 at 3:00 PM, Carlos Nepomuceno
wrote:
>
>> Date: Sun, 26 May 2013 14:31:57 +1000
>> Subject: Re: Python Magazine
>> From: ros...@gmail.com
>> To: python-list@python.org
> [...]
>> I expect that IP blocks will be upgraded to /64 block blo
Jorge Alberto Diaz Orozco wrote at 2013-5-25 14:00 -0400:
>I have been doing the same thing and I tried to use java for testing the
>credentials and they are correct. It works perfectly with java.
>I really don´t know what we´re doing wrong.
Neither do I.
But the error message definitely origina
75 matches
Mail list logo