Re: authentication with python-ldap

2013-05-25 Thread Dieter Maurer
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

Re: Python Magazine

2013-05-25 Thread Chris Angelico
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

RE: Python Magazine

2013-05-25 Thread Carlos Nepomuceno
> 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

Re: CrazyHTTPd - HTTP Daemon in Python

2013-05-25 Thread cdorm245
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:

Re: Python Magazine

2013-05-25 Thread Chris Angelico
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

Re: Python Magazine

2013-05-25 Thread Chris Angelico
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Chris Angelico
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

RE: CrazyHTTPd - HTTP Daemon in Python

2013-05-25 Thread Carlos Nepomuceno
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Dan Sommers
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

Re: CrazyHTTPd - HTTP Daemon in Python

2013-05-25 Thread Mark Lawrence
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

Re: Python Magazine

2013-05-25 Thread Steven D'Aprano
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

RE: Python Magazine

2013-05-25 Thread Carlos Nepomuceno
> 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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Chris Angelico
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

CrazyHTTPd - HTTP Daemon in Python

2013-05-25 Thread cdorm245
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

Re: Python Magazine

2013-05-25 Thread Steven D'Aprano
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.

Re: Python Magazine

2013-05-25 Thread Chris Angelico
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Steven D'Aprano
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

Re: Python Magazine

2013-05-25 Thread Mark Lawrence
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

Re: Python Magazine

2013-05-25 Thread Roy Smith
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Steven D'Aprano
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

Automate Grabbing Email From Outlook On Shared Folder

2013-05-25 Thread darin . hensley
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

Re: Python Magazine

2013-05-25 Thread John Ladasky
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

Re: Python Magazine

2013-05-25 Thread Chris Angelico
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

Re: Python Magazine

2013-05-25 Thread Roy Smith
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

Re: Simple algorithm question - how to reorder a sequence economically

2013-05-25 Thread Roy Smith
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

Re: Total Beginner - Extracting Data from a Database Online (Screenshot)

2013-05-25 Thread John Ladasky
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

Re: Simple algorithm question - how to reorder a sequence economically

2013-05-25 Thread John Ladasky
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

Re: Python Magazine

2013-05-25 Thread John Ladasky
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

Re: Total Beginner - Extracting Data from a Database Online (Screenshot)

2013-05-25 Thread logan . c . graham
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

Re: Newbie question about evaluating raw_input() responses

2013-05-25 Thread Fábio Santos
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

Re: Newbie question about evaluating raw_input() responses

2013-05-25 Thread Chris Angelico
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

Re: Newbie question about evaluating raw_input() responses

2013-05-25 Thread Nobody
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

RE: authentication with python-ldap

2013-05-25 Thread Joseph L. Casale
> 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

Re: authentication with python-ldap

2013-05-25 Thread Jorge Alberto Diaz Orozco
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

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> 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

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> 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

RE: Python Magazine

2013-05-25 Thread Carlos Nepomuceno
> 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

RE: Learning Python

2013-05-25 Thread Carlos Nepomuceno
> 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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Chris Angelico
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

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> 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

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> 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

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> 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

Re: Text-to-Sound or Vice Versa (Method NOT the source code)

2013-05-25 Thread rusi
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

RE: Ldap module and base64 oncoding

2013-05-25 Thread Joseph L. Casale
> 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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Chris Angelico
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

Re: Python Magazine

2013-05-25 Thread Roy Smith
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

Re: Python Magazine

2013-05-25 Thread Chris Angelico
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

Re: Python Magazine

2013-05-25 Thread Roy Smith
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Mark Lawrence
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

Re: Python Magazine

2013-05-25 Thread Daniel
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Jussi Piitulainen
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Fábio Santos
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

Re: Learning Python

2013-05-25 Thread Steven D'Aprano
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Steven D'Aprano
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Steven D'Aprano
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

Re: Python Magazine

2013-05-25 Thread Steven D'Aprano
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Dave Angel
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Roy Smith
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Roy Smith
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

Learning Python

2013-05-25 Thread Asad Hasan
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/

Re: Text-to-Sound or Vice Versa (Method NOT the source code)

2013-05-25 Thread Günther Dietrich
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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Mark Lawrence
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

Text-to-Sound or Vice Versa (Method NOT the source code)

2013-05-25 Thread Rakshith Nayak
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

Total Beginner - Extracting Data from a Database Online (Screenshot)

2013-05-25 Thread neil.suffi...@gmail.com
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

Total Beginner - Extracting Data from a Database Online (Screenshot)

2013-05-25 Thread neil.suffi...@gmail.com
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

Py_Initialize and Py_Finalize and MatPlotlib

2013-05-25 Thread Rene Grothmann
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

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
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,

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Chris Angelico
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.

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> 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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Chris Angelico
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

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
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,

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Chris Angelico
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. :

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> 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

Re: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Chris Angelico
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

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> 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