Re: Further evidence that Python may be the best language forever

2013-01-28 Thread Stefan Behnel
Michael Torrie, 29.01.2013 02:15: > On 01/28/2013 03:46 PM, Malcolm McCrimmon wrote: >> My company recently hosted a programming competition for schools >> across the country. One team made it to the finals using the Python >> client, one of the four default clients provided (I wrote it). Most >>

Re: python: HTTP connections through a proxy server requiring authentication

2013-01-28 Thread Saju M
Hi , Thanks barry, I solved that issue. I reconfigured squid3 with ncsa_auth, now its working same python code. Earlier I used digest_pw_auth. Actually I am trying to fix an issue related to python boto API. Please check this post https://groups.google.com/forum/#!topic/boto-users/1qk6d7v2HpQ

Re: what is the difference between commenting and uncommenting the __init__ method in this class?

2013-01-28 Thread Mitya Sirenef
On 01/28/2013 09:09 PM, iMath wrote: what is the difference between commenting and uncommenting the __init__ method in this class? > > > class CounterList(list): > counter = 0 > > ## def __init__(self, *args): > ## super(CounterList, self).__init__(*args) > > def __getitem__(self, index): > >

Re: what is the difference between commenting and uncommenting the __init__ method in this class?

2013-01-28 Thread Dave Angel
On 01/28/2013 09:09 PM, iMath wrote: what is the difference between commenting and uncommenting the __init__ method in this class? class CounterList(list): counter = 0 ##def __init__(self, *args): ##super(CounterList, self).__init__(*args) def __getitem__(self, index):

what is the difference between commenting and uncommenting the __init__ method in this class?

2013-01-28 Thread iMath
what is the difference between commenting and uncommenting the __init__ method in this class? class CounterList(list): counter = 0 ##def __init__(self, *args): ##super(CounterList, self).__init__(*args) def __getitem__(self, index): self.__class__.coun

Re: Python GUI able to display a spatial image

2013-01-28 Thread eagleds88
On Friday, January 25, 2013 8:34:16 AM UTC-8, Alex wrote: > Hello, does python have capabilities to display a spatial image and read the > coordinates from it? If so, what modules or extension do I need to achieve > that? I'll appreciate any help. > > > > Thanks, > > Alex Try basemap: http

Re: Further evidence that Python may be the best language forever

2013-01-28 Thread Michael Torrie
On 01/28/2013 03:46 PM, Malcolm McCrimmon wrote: > My company recently hosted a programming competition for schools > across the country. One team made it to the finals using the Python > client, one of the four default clients provided (I wrote it). Most > of the other teams were using Java or C

Re: python: HTTP connections through a proxy server requiring authentication

2013-01-28 Thread Barry Scott
The shipped python library code does not work. See http://bugs.python.org/issue7291 for patches. Barry -- http://mail.python.org/mailman/listinfo/python-list

Further evidence that Python may be the best language forever

2013-01-28 Thread Malcolm McCrimmon
My company recently hosted a programming competition for schools across the country. One team made it to the finals using the Python client, one of the four default clients provided (I wrote it). Most of the other teams were using Java or C#. Guess which team won? http://www.windward.net/cod

Re: WLAN tester

2013-01-28 Thread Wanderer
On Monday, January 28, 2013 12:32:50 PM UTC-5, Rob Day wrote: > On 28 January 2013 17:07, Wanderer wrote: > > > Yes. I noticed this variability. I've been using the Totusoft > > Lan_Speedtest.exe to test some modules. I've tested through the wifi to our > > intranet and saw variations I believe

Re: looking for advice python

2013-01-28 Thread twiztidtrees
On Sunday, January 27, 2013 1:57:47 PM UTC-5, twizti...@gmail.com wrote: > I am in a class and was just looking for different advice. This is the first > time iv ever tried to do this. That's all that iv taken from two chapters and > wondering how bad I did. I also like to learn. Thanks for ev

pip and distutils

2013-01-28 Thread Vraj Mohan
I have created a source distribution using distutils which specifies external packages using: setup( ..., requires = ['Foo (>= 0.7)', 'Bar (>= 2.4.5)'], ... ) When I use pip to install this distribution, I find that it does not automatically install the packages Foo and Ba

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Virgil Stokes
On 28-Jan-2013 15:49, Chris Angelico wrote: On Tue, Jan 29, 2013 at 1:37 AM, Dave Angel wrote: What you want is the zip() function for l,s in zip(f1, f2): #you now have one line from each file, # which you can then validate and process Note, this assumes that when a line is "bad"

The London Python Group:Switch to Python 3… Now… Immediately - February 12th

2013-01-28 Thread Theo
Russel Winder gives numerous reasons why now is the time for you to switch to Python 3 RIGHT NOW! With Python 3.2 and even more with Python 3.3, Python 3 became usable for release products. Indeed given the things that are in Python 3 that are not being back-ported to Python 2, using Python 3 s

Re: WLAN tester

2013-01-28 Thread Rob Day
On 28 January 2013 17:07, Wanderer wrote: > Yes. I noticed this variability. I've been using the Totusoft > Lan_Speedtest.exe to test some modules. I've tested through the wifi to our > intranet and saw variations I believe do to network traffic. I also tried > peer to peer and the write time a

Arpex Capital Seleciona: Programador Python Pleno/RJ

2013-01-28 Thread zughumancapital
Arpex Capital seleciona para uma de suas startups: Programador Python Pleno Descrição: Programador para Web Crawler Python - Experiência mínima de 1 ano em python - Conhecimento de padrões de projeto - Sólido conhecimento OO - Ser auto-gerenciável - Conhecimento de SQL Desejável: - Ter gi

Re: I have issues installing pycrypto (and thus fabric) with pip

2013-01-28 Thread Kwpolska
On Mon, Jan 28, 2013 at 4:21 PM, Nicholas Kolatsis wrote: > I'm not sure this is the right place for this It is > but I'm don't know where else to put this. Here. (s/I’m/I/) > I want to give fabric a try (as recommended here: > http://www.jeffknupp.com/blog/2012/10/24/starting-a-django-14-proj

Re: WLAN tester

2013-01-28 Thread Wanderer
On Monday, January 28, 2013 11:30:47 AM UTC-5, Dave Angel wrote: > On 01/28/2013 10:47 AM, Wanderer wrote: > > > I'm looking to make a WLAN tester for a manufacturing test. Something that > > could send and receive a bunch of files and measure how long it took. I > > would repeat this a number o

Re: WLAN tester

2013-01-28 Thread Dave Angel
On 01/28/2013 10:47 AM, Wanderer wrote: I'm looking to make a WLAN tester for a manufacturing test. Something that could send and receive a bunch of files and measure how long it took. I would repeat this a number of times for a device under test and then use some metric to decide pass/fail an

WLAN tester

2013-01-28 Thread Wanderer
I'm looking to make a WLAN tester for a manufacturing test. Something that could send and receive a bunch of files and measure how long it took. I would repeat this a number of times for a device under test and then use some metric to decide pass/fail and create a report. What libraries are avai

I have issues installing pycrypto (and thus fabric) with pip

2013-01-28 Thread Nicholas Kolatsis
I'm not sure this is the right place for this but I'm don't know where else to put this. I want to give fabric a try (as recommended here: http://www.jeffknupp.com/blog/2012/10/24/starting-a-django-14-project-the-right-way/). Installing fabric results in two dependencies (paramiko and pycrypto)

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread inshu chauhan
>> >> >> > That's "zip" not "Zip" > > Have you tried looking at the docs? Or even typing help(zip) at the > python interpreter prompt? > > In rough terms, zip takes one element (line) from each of the iterators, > and creates a new list that holds tuples of those elements. If you use it > in t

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Dave Angel
On 01/28/2013 09:47 AM, inshu chauhan wrote: Your current logic tries to scan through the first file, and for each line that has 12 elements, scans through the entire second file. It fails to actually do it, because you never do a seek on the second file. Now it appears your requirement is en

RE: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Wolfgang Maier
Hi, as many others I am not exactly sure what the purpose of your code really is. However, if what you´re trying to do here is to take one line from f1, one line from f2 and then write some combined data to nf, it is not surprising that you're not getting what you expect (the main reason being that

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread inshu chauhan
Your current logic tries to scan through the first file, and for each line that has 12 elements, scans through the entire second file. It fails to actually do it, because you never do a seek on the second file. > > Now it appears your requirement is entirely different. I believe you have > two t

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Chris Angelico
On Tue, Jan 29, 2013 at 1:37 AM, Dave Angel wrote: > What you want is the zip() function > > for l,s in zip(f1, f2): > #you now have one line from each file, > # which you can then validate and process > > Note, this assumes that when a line is "bad" from either file, you're going > to a

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Dave Angel
On 01/28/2013 09:12 AM, inshu chauhan wrote: Yes Chris, I understand, My Original code was for l in f1: sp = l.split(",") if len(sp)!= 12: continue else: ix = sp[0].strip() iy = sp[1].strip() for s in f2: st = s.split(",") if l

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Chris Angelico
On Tue, Jan 29, 2013 at 1:24 AM, inshu chauhan wrote: >> In that case, Dave's suggestion to read into a list and iterate over >> the list is to be strongly considered. But I'm not entirely sure what >> your goal is here. Are you trying to make the Cartesian product of the >> two files, where you h

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread inshu chauhan
> In that case, Dave's suggestion to read into a list and iterate over > the list is to be strongly considered. But I'm not entirely sure what > your goal is here. Are you trying to make the Cartesian product of the > two files, where you have one line in the output for each possible > pair of matc

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Chris Angelico
On Tue, Jan 29, 2013 at 1:12 AM, inshu chauhan wrote: > where f1 contains something like : > > 297, 404, , > 298, 404, , .. > 299, 404, . > . .. > 295, 452, > > and f2 contains something like : > > 7 > . 2 > 2 > .7 > > and what I want to be written in th

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread inshu chauhan
Yes Chris, I understand, My Original code was for l in f1: sp = l.split(",") if len(sp)!= 12: continue else: ix = sp[0].strip() iy = sp[1].strip() for s in f2: st = s.split(",") if len(st)!= 11: continue else:

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Dave Angel
On 01/28/2013 08:31 AM, inshu chauhan wrote: In the code below I am trying to read 2 files f1 and f2 , extract some data from them and then trying to write them into a single file that is 'nf'. import cv f1 = open(r"Z:\modules\Feature_Vectors_300.arff") f2 = open(r"Z:\modules\Feature_Vectors_300

Re: [Python-ideas] while conditional in list comprehension ??

2013-01-28 Thread Chris Angelico
Argh, sorry folks. Hit the wrong list. :( On Tue, Jan 29, 2013 at 12:55 AM, Chris Angelico wrote: > On Tue, Jan 29, 2013 at 12:33 AM, Wolfgang Maier > wrote: >> Why not extend this filtering by allowing a while statement in addition to >> if, as in: >> >> [n for n in range(1,1000) while n < 400]

Re: [Python-ideas] while conditional in list comprehension ??

2013-01-28 Thread Chris Angelico
On Tue, Jan 29, 2013 at 12:33 AM, Wolfgang Maier wrote: > Why not extend this filtering by allowing a while statement in addition to > if, as in: > > [n for n in range(1,1000) while n < 400] The time machine strikes again! Check out itertools.takewhile - it can do pretty much that: import iterto

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Jean-Michel Pichavant
- Original Message - > > - Original Message - > > > In the code below I am trying to read 2 files f1 and f2 , extract > > some data from them and then trying to write them into a single > > file > > that is 'nf'. > > [snip code] > > > I think my code is not so correct , as I am

Re: Reading data from 2 different files and writing to a single file

2013-01-28 Thread Chris Angelico
On Tue, Jan 29, 2013 at 12:31 AM, inshu chauhan wrote: > I think my code is not so correct , as I am not getting desired results... Firstly, what results are you getting, and what are you desiring? It helps to be clear with that. > import cv What module is this? Do you need it? Does it affect t

Reading data from 2 different files and writing to a single file

2013-01-28 Thread inshu chauhan
In the code below I am trying to read 2 files f1 and f2 , extract some data from them and then trying to write them into a single file that is 'nf'. import cv f1 = open(r"Z:\modules\Feature_Vectors_300.arff") f2 = open(r"Z:\modules\Feature_Vectors_300_Pclass.arff") nf = open(r"Z:\modules\trial.arf

software app and Python: any experience?

2013-01-28 Thread mikprog
Hi guys, I am thinking of driving a DJ application from Python. I am running Linux and I found the Mixxx app. Does anyone know if there are python bindings, or if this is possible at all? or does anyone have experience with another software that does the same DJ thing? I have also found the pym

Arpex Capital Seleciona: Desenvolvedor Python/Django Sênior – RJ

2013-01-28 Thread zughumancapital
Arpex Capital seleciona para uma de suas startups: Desenvolvedor Python/Django Sênior Estamos em busca daqueles(as) que: acham que meritocracia é indispensável, programam desde a infância, possuem sede por aprender e programar e querem trabalhar muito para fazer algo especial! O desenvolved

Re: Hello All

2013-01-28 Thread Dave Angel
On 01/28/2013 07:34 AM, Huey Mataruse wrote: I have been learning Python on my own and its been 1yr now and i still feel i dont know anything, is there a way that i can use to increase my way of learning. I feel there is more that i can do with python that other languages cannot. Please help.

Hello All

2013-01-28 Thread Huey Mataruse
I have been learning Python on my own and its been 1yr now and i still feel i dont know anything, is there a way that i can use to increase my way of learning. I feel there is more that i can do with python that other languages cannot. Please help. -- http://mail.python.org/mailman/listinfo/py

Re: Reading file issue

2013-01-28 Thread Tim Chase
On Mon, 28 Jan 2013 03:47:07 -0800 (PST) loial wrote: > I am parseing a file to extract data, but am seeing the file being > updated even though I never explicitly write to the file. It is > possible that another process is doing this at some later time, but > I just want to check that opening th

Re: Reading file issue

2013-01-28 Thread Oscar Benjamin
On 28 January 2013 11:47, loial wrote: > I am parseing a file to extract data, but am seeing the file being updated > even though I never explicitly write to the file. It is possible that another > process is doing this at some later time, but I just want to check that > opening the file as fol

Re: Reading file issue

2013-01-28 Thread loial
Thanks for confirming my sanity On Monday, 28 January 2013 11:57:43 UTC, Chris Angelico wrote: > On Mon, Jan 28, 2013 at 10:47 PM, loial wrote: > I am > parseing a file to extract data, but am seeing the file being updated even > though I never explicitly write to the file. It is possible tha

Re: Reading file issue

2013-01-28 Thread Chris Angelico
On Mon, Jan 28, 2013 at 10:47 PM, loial wrote: > I am parseing a file to extract data, but am seeing the file being updated > even though I never explicitly write to the file. It is possible that another > process is doing this at some later time, but I just want to check that > opening the fil

Reading file issue

2013-01-28 Thread loial
I am parseing a file to extract data, but am seeing the file being updated even though I never explicitly write to the file. It is possible that another process is doing this at some later time, but I just want to check that opening the file as follows and ignoring a record would not result in t

Re: [SPAM] Fonts & Tinker

2013-01-28 Thread Łukasz Posadowski
Dnia 2013-01-25, pią o godzinie 20:41 -0800, Angel pisze: > but the real displayed fonts in the window are smaller (default size of 12, > maybe). > > Am I missing something? > > Thanks in advance, > A. > Did you tried this by simple: --- root = Tk() root.option_add('*

Re: Formatting a column's value output

2013-01-28 Thread Κώστας Παπαδόπουλος
Τη Δευτέρα, 28 Ιανουαρίου 2013 12:27:12 π.μ. UTC+2, ο χρήστης ru...@yahoo.com έγραψε: > On 01/27/2013 01:50 PM, Mitya Sirenef wrote: > > > On 01/27/2013 03:24 PM, Κώστας Παπαδόπουλος wrote: > > >> Τη Κυριακή, 27 Ιανουαρίου 2013 9:12:16 μ.μ. UTC+2, ο χρήστης > >> ru...@yahoo.com έγραψε: > > >

Re: Formatting a column's value output

2013-01-28 Thread Κώστας Παπαδόπουλος
Τη Κυριακή, 27 Ιανουαρίου 2013 10:50:33 μ.μ. UTC+2, ο χρήστης Mitya Sirenef έγραψε: > On 01/27/2013 03:24 PM, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ > οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ wrote: > > > οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½, 27 οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ 2013 > > 9:12:16 οΏ½.οΏ½. UTC+2, οΏ½ οΏ½οΏ½οΏ½οΏ½

Re: Need Pattern For Logging Into A Website

2013-01-28 Thread Jan Wąsak
On Friday, January 25, 2013 2:29:51 AM UTC+1, Tim Daneliuk wrote: > I need to write a Python script to do the following: > > > >- Connect to a URL and accept any certificate - self-signed or > authoritative > >- Provide login name/password credentials > >- Fill in some presented f

Re: Algorithm. Tony Gaddis book 2 Starting python3

2013-01-28 Thread Gene Heskett
On Sunday 27 January 2013 13:05:27 george...@talktalk.net did opine: Message additions Copyright Sunday 27 January 2013 by Gene Heskett > Hi > Question 3 Chp2 Page 76 > Adds2 to a and assigns the result to b. > I have several attemtps,would like to check my answer.help please > At 80 i need all th

Re: Python Programming - 28 hours training in New York for $3999

2013-01-28 Thread Dave Angel
On 01/26/2013 06:57 PM, Chris Angelico wrote: On Sun, Jan 27, 2013 at 3:38 AM, Juhani Karlsson wrote: Or take this course for free and buy 500 lunches. Your choice. You spend $8 on lunch? Wow, that's taking TANSTAAFL a long way... ChrisA MYCROFTXXX I remember when lunches at IBM were nev