Wakari 1.0 Released (In-Browser Python Data Analytics Environment)

2013-05-24 Thread Corinna Bahr
Continuum Analytics released Wakari (www.wakari.io) version 1.0, a cloud-based, collaborative Python environment for analyzing, exploring and visualizing large data sets. * Access to a full range of Amazon AWS compute nodes and clusters * Share analyses and results via IPython notebook

ANN: SfePy 2013.2

2013-05-24 Thread Robert Cimrman
I am pleased to announce release 2013.2 of SfePy. Description --- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by the finite element method. The code is based on NumPy and SciPy packages. It is distributed under the

Portable Python 3.2.5.1 released

2013-05-24 Thread Perica Zivkovic
Dear people, I would like to announce a new release of Portable Python based on Python 3.2.5 Included in this release: - PyScripter v2.5.3 NymPy 1.7.1 SciPy 0.12.0 Matplotlib 1.2.1 PyWin32 218 NetworkX 1.7 Lxml 2.3 PySerial 2.5 PyODBC 3.0.2 PyQt 4.9.6-1 IPython 0.13.1

ANN: python-blosc 1.1 (final) released

2013-05-24 Thread Francesc Alted
=== Announcing python-blosc 1.1 === What is it? === python-blosc (http://blosc.pydata.org/) is a Python wrapper for the Blosc compression library. Blosc (http://blosc.org) is a high performance compressor optimized for binary data. It

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

2013-05-24 Thread lokeshkoppaka
i need to write a code which can sort the list in order of 'n' without use builtin functions can anyone help me how to do? -- 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-24 Thread Chris Angelico
On Fri, May 24, 2013 at 6:04 PM, lokeshkopp...@gmail.com wrote: i need to write a code which can sort the list in order of 'n' without use builtin functions can anyone help me how to do? -- http://mail.python.org/mailman/listinfo/python-list http://lmgtfy.com/?q=sorting+algorithm

Simple algorithm question - how to reorder a sequence economically

2013-05-24 Thread Peter Brooks
What is the easiest way to reorder a sequence pseudo-randomly? That is, for a sequence 1,2,3,4 to produce an arbitrary ordering (eg 2,1,4,3) that is different each time. I'm writing a simulation and would like to visit all the nodes in a different order at each iteration of the simulation to

Using ACLs in JSON

2013-05-24 Thread Peter Brooks
I'm designing a system that should allow different views to different audiences. I understand that I can use application logic to control the access security, but it seems to me that it'd make more sense to have this documented in the data-stream so that it's data-driven. I was wondering if there

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

2013-05-24 Thread Chris Angelico
On Fri, May 24, 2013 at 6:14 PM, Peter Brooks peter.h.m.bro...@gmail.com wrote: What is the easiest way to reorder a sequence pseudo-randomly? That is, for a sequence 1,2,3,4 to produce an arbitrary ordering (eg 2,1,4,3) that is different each time. I'm writing a simulation and would like to

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

2013-05-24 Thread Fábio Santos
On 24 May 2013 09:41, Chris Angelico ros...@gmail.com wrote: On Fri, May 24, 2013 at 6:14 PM, Peter Brooks peter.h.m.bro...@gmail.com wrote: What is the easiest way to reorder a sequence pseudo-randomly? That is, for a sequence 1,2,3,4 to produce an arbitrary ordering (eg 2,1,4,3) that

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

2013-05-24 Thread Chris Angelico
On Fri, May 24, 2013 at 6:47 PM, Fábio Santos fabiosantos...@gmail.com wrote: On 24 May 2013 09:41, Chris Angelico ros...@gmail.com wrote: On Fri, May 24, 2013 at 6:14 PM, Peter Brooks peter.h.m.bro...@gmail.com wrote: What is the easiest way to reorder a sequence pseudo-randomly? That

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

2013-05-24 Thread Terry Jan Reedy
On 5/24/2013 4:14 AM, Peter Brooks wrote: What is the easiest way to reorder a sequence pseudo-randomly? That is, for a sequence 1,2,3,4 to produce an arbitrary ordering (eg 2,1,4,3) that is different each time. I'm writing a simulation and would like to visit all the nodes in a different

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

2013-05-24 Thread Steven D'Aprano
On Fri, 24 May 2013 01:14:45 -0700, Peter Brooks wrote: What is the easiest way to reorder a sequence pseudo-randomly? import random random.shuffle(sequence) The sequence is modified in place, so it must be mutable. Lists are okay, tuples are not. That is, for a sequence 1,2,3,4 to

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

2013-05-24 Thread Ned Batchelder
On 5/24/2013 6:52 AM, Steven D'Aprano wrote: On Fri, 24 May 2013 01:14:45 -0700, Peter Brooks wrote: What is the easiest way to reorder a sequence pseudo-randomly? import random random.shuffle(sequence) The sequence is modified in place, so it must be mutable. Lists are okay, tuples are

Polymoprhism question

2013-05-24 Thread RVic
I'm trying to figure out (or find an example) of polymorphism whereby I pass a commandline argument (a string) which comports to a class (in java, you would say that it comports to a given interface bu I don't know if there is such a thing in Python) then that class of that name, somehow gets

Re: Debugging parallel nose tests?

2013-05-24 Thread Roy Smith
On May 24, 2013, at 5:05 AM, Jean-Michel Pichavant wrote: - Original Message - In article mailman.2027.1369333910.3114.python-l...@python.org, Dave Angel da...@davea.name wrote: On 05/23/2013 09:09 AM, Roy Smith wrote: SNIP nosetests --process-timeout=60 --processes=40

Re: Polymoprhism question

2013-05-24 Thread Steven D'Aprano
On Fri, 24 May 2013 04:40:22 -0700, RVic wrote: I'm trying to figure out (or find an example) of polymorphism whereby I pass a commandline argument (a string) which comports to a class (in java, you would say that it comports to a given interface bu I don't know if there is such a thing in

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

2013-05-24 Thread Dave Angel
On 05/24/2013 04:04 AM, lokeshkopp...@gmail.com wrote: i need to write a code which can sort the list in order of 'n' without use builtin functions can anyone help me how to do? You could sort, but you couldn't print out the results, so what's the point? In Python 3.3 at least, print() is

Utility to locate errors in regular expressions

2013-05-24 Thread Malte Forkel
Finding out why a regular expression does not match a given string can very tedious. I would like to write a utility that identifies the sub-expression causing the non-match. My idea is to use a parser to create a tree representing the complete regular expression. Then I could simplify the

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

2013-05-24 Thread Carlos Nepomuceno
lol wtf? If 'n' is the quantity of elements to be sorted there's no way you can write an algorithm with complexity O(n) for the worst case not knowing something special about the data. For example, Quicksort will give you O(n*(log(n)) on average case (O(n^2) in the worst case). You gotta be

Re: Read txt file, add to iptables not working on new host

2013-05-24 Thread JackM
Thanks for answering. Do you mean something like this? outPut = os.popen('uname -a' '/sbin/iptables -V INPUT -s' + ' ' + IP + ' ' + '-j REJECT' ) Sorry but like I said, I have no experience with any of this. On 5/23/2013 11:10 PM, Carlos Nepomuceno wrote: Send the output of the following

Re: Utility to locate errors in regular expressions

2013-05-24 Thread Devin Jeanpierre
On Fri, May 24, 2013 at 8:58 AM, Malte Forkel malte.for...@berlin.de wrote: As a first step, I am looking for a parser for Python regular expressions, or a Python regex grammar to create a parser from. the sre_parse module is undocumented, but very usable. But may be my idea is flawed? Or a

RE: Read txt file, add to iptables not working on new host

2013-05-24 Thread Carlos Nepomuceno
No, there's no need to change your python script, although it can be improved because as it is it may flush (delete all) iptables rules and let you vulnerable and don't create the new rules. All you need to do is enter the commands in the shell and send it's output. The 'iptables' have

Re: Utility to locate errors in regular expressions

2013-05-24 Thread Roy Smith
In article mailman.2062.1369400329.3114.python-l...@python.org, Malte Forkel malte.for...@berlin.de wrote: Finding out why a regular expression does not match a given string can very tedious. I would like to write a utility that identifies the sub-expression causing the non-match. My idea is

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

2013-05-24 Thread Peter Brooks
Thank you all for those most helpful suggestions! random.shuffle does precisely the job that I need quickly. Thank you for introducing me to itertools, though, I should have remembered APL did this in a symbol or two and I'm sure that itertools will come in handy in future. Thanks for the

Re: Utility to locate errors in regular expressions

2013-05-24 Thread Roy Smith
In article mailman.2065.1369401265.3114.python-l...@python.org, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Fri, May 24, 2013 at 8:58 AM, Malte Forkel malte.for...@berlin.de wrote: As a first step, I am looking for a parser for Python regular expressions, or a Python regex grammar to

Re: Read txt file, add to iptables not working on new host

2013-05-24 Thread Chris Angelico
On Fri, May 24, 2013 at 12:44 PM, JackM notr...@earthlink.net wrote: outPut = os.popen( '/sbin/iptables -A INPUT -s' + ' ' + IP + ' ' + '-j REJECT' ) There's so much about this script that's less than Pythonic, but the one thing I'd really like to see is a log of the exact command being

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-24 Thread nn
On May 23, 2:42 pm, Dave Angel da...@davea.name wrote: On 05/23/2013 11:26 AM, Carlos Nepomuceno wrote: Date: Thu, 23 May 2013 06:44:05 -0700 Subject: Re: PEP 378: Format Specifier for Thousands Separator From: prueba...@latinmail.com To:

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

2013-05-24 Thread Steven D'Aprano
On Fri, 24 May 2013 06:23:14 -0700, Peter Brooks wrote: Thanks for the warnings about random numbers too - I hope my lists will be short enough for the permutations of the function to be irrelevant. I don't need every single sequence to be unique, only that the same sequence only occurs

Re: Utility to locate errors in regular expressions

2013-05-24 Thread Neil Cerutti
On 2013-05-24, Roy Smith r...@panix.com wrote: Of course, most of Python user community are wimps and shy away from big hairy regexes [ducking and running]. I prefer the simple, lumbering regular expressions like those in the original Night of the Regular Expressions. The fast, powerful ones

Re: suppress newlines in my script

2013-05-24 Thread sloan949
On Thursday, May 23, 2013 1:49:02 PM UTC-7, sloa...@gmail.com wrote: I am importing lines from an external csv file and when I iterate through the lines and increment, new lines are introduced. How would I cut out the newlines. I have attempted several pythonic strip() and rstrip() how

Piping processes works with 'shell = True' but not otherwise.

2013-05-24 Thread Luca Cerone
Hi everybody, I am new to the group (and relatively new to Python) so I am sorry if this issues has been discussed (although searching for topics in the group I couldn't find a solution to my problem). I am using Python 2.7.3 to analyse the output of two 3rd parties programs that can be

Re: Utility to locate errors in regular expressions

2013-05-24 Thread rusi
On May 24, 5:58 pm, Malte Forkel malte.for...@berlin.de wrote: Finding out why a regular expression does not match a given string can very tedious. I would like to write a utility that identifies the sub-expression causing the non-match. My idea is to use a parser to create a tree representing

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

2013-05-24 Thread duncan smith
On 24/05/13 10:11, Chris Angelico wrote: On Fri, May 24, 2013 at 6:47 PM, Fábio Santos fabiosantos...@gmail.com wrote: On 24 May 2013 09:41, Chris Angelico ros...@gmail.com wrote: On Fri, May 24, 2013 at 6:14 PM, Peter Brooks peter.h.m.bro...@gmail.com wrote: What is the easiest way to

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

2013-05-24 Thread Carlos Nepomuceno
Date: Fri, 24 May 2013 01:14:45 -0700 Subject: Simple algorithm question - how to reorder a sequence economically From: peter.h.m.bro...@gmail.com To: python-list@python.org What is the easiest way to reorder a sequence pseudo-randomly? That is, for

RE: PEP 378: Format Specifier for Thousands Separator

2013-05-24 Thread Carlos Nepomuceno
Date: Thu, 23 May 2013 19:29:14 -0700 Subject: Re: PEP 378: Format Specifier for Thousands Separator From: dihedral88...@gmail.com [...] Could a separate instance like the I/O device of a subprocess to be easily available in Python? The next question

RE: Using ACLs in JSON

2013-05-24 Thread Carlos Nepomuceno
Not exactly what you want but you may consider Google ACL XML[1]. If there aren't any system integration restrictions you can do what you think it's best... for now. [1] https://developers.google.com/storage/docs/accesscontrol#applyacls Date: Fri, 24

Re: Read txt file, add to iptables not working on new host

2013-05-24 Thread JackM
So Chris, does this version look better? Changed to inFile to with. #!/usr/bin/python import os import time # Input, Output, and TimeStamp logFile = open('/var/www/html/statistics/logs/banList.log','w') stamp = time.asctime(time.localtime()) # Daily Flush of blockList rules before re-applying

Re: Using ACLs in JSON

2013-05-24 Thread Michael Torrie
On 05/24/2013 02:18 AM, Peter Brooks wrote: I'm designing a system that should allow different views to different audiences. I understand that I can use application logic to control the access security, but it seems to me that it'd make more sense to have this documented in the data-stream so

Re: Read txt file, add to iptables not working on new host

2013-05-24 Thread Chris Angelico
On Sat, May 25, 2013 at 2:32 AM, JackM notr...@earthlink.net wrote: So Chris, does this version look better? Changed to inFile to with. Heh, I didn't know you knew about with :) Since you know how to use it, you probably also know why it's useful. Anyway, the main thing is to see the exact

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-24 Thread Andreas Perstinger
On 24.05.2013 17:25, Carlos Nepomuceno wrote: Date: Thu, 23 May 2013 19:29:14 -0700 Subject: Re: PEP 378: Format Specifier for Thousands Separator From: dihedral88...@gmail.com [some typical dihedral stuff] I'm sorry but I don't understand your

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

2013-05-24 Thread logan . c . graham
Hey guys, I'm learning Python and I'm experimenting with different projects -- I like learning by doing. I'm wondering if you can help me here: http://i.imgur.com/KgvSKWk.jpg What this is is a publicly-accessible webpage that's a simple database of people who have used the website. Ideally

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

2013-05-24 Thread John Ladasky
On Friday, May 24, 2013 3:52:18 AM UTC-7, Steven D'Aprano wrote: On Fri, 24 May 2013 01:14:45 -0700, Peter Brooks wrote: That is, for a sequence 1,2,3,4 to produce an arbitrary ordering (eg 2,1,4,3) that is different each time. You can't *guarantee* that it will be different each time.

Re: Error with python 3.3.2 and https

2013-05-24 Thread asianavatar
So apparently switching the http to https in the proxyHandler call did the trick. Thanks for all the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Utility to locate errors in regular expressions

2013-05-24 Thread Christian Gollwitzer
Am 24.05.13 14:58, schrieb Malte Forkel: Finding out why a regular expression does not match a given string can very tedious. I would like to write a utility that identifies the sub-expression causing the non-match. Try http://laurent.riesterer.free.fr/regexp/ it shows the

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

2013-05-24 Thread Peter Brooks
On May 24, 5:00 pm, Carlos Nepomuceno carlosnepomuc...@outlook.com wrote: I don't know what spurious evidence of correlation is. Can you give a mathematical definition? If I run the simulation with the same sequence, then, because event E1 always comes before event E2, somebody might believe

Re: Using ACLs in JSON

2013-05-24 Thread Peter Brooks
On May 24, 6:42 pm, Michael Torrie torr...@gmail.com wrote: On 05/24/2013 02:18 AM, Peter Brooks wrote: I'm designing a system that should allow different views to different audiences. I understand that I can use application logic to control the access security, but it seems to me that

Re: Using ACLs in JSON

2013-05-24 Thread Peter Brooks
On May 24, 6:13 pm, Carlos Nepomuceno carlosnepomuc...@outlook.com wrote: Not exactly what you want but you may consider Google ACL XML[1]. If there aren't any system integration restrictions you can do what you think it's best... for now.

Re: Polymoprhism question

2013-05-24 Thread RVic
Thanks Steven, Yes, I see Python isn't going to do this very well, from what I can understand. Lets say I have a type of class, and this type of class will always have two methods, in() and out(). Here is, essentially, what I am trying to do, but I don't know if this will make sense to you or

Re: suppress newlines in my script

2013-05-24 Thread Dave Angel
On 05/24/2013 09:59 AM, sloan...@gmail.com wrote: SNIP massive double-spaced nonsense from googlegroups misuse, see http://wiki.python.org/moin/GoogleGroupsPython print PE2.format(count) Thanks for the tip about the CSV module. I did not know about that. So

Re: Read txt file, add to iptables not working on new host

2013-05-24 Thread Dave Angel
On 05/24/2013 12:32 PM, JackM wrote: So Chris, does this version look better? Changed to inFile to with. #!/usr/bin/python import os import time # Input, Output, and TimeStamp logFile = open('/var/www/html/statistics/logs/banList.log','w') stamp = time.asctime(time.localtime()) # Daily Flush

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

2013-05-24 Thread Dave Angel
On 05/24/2013 01:32 PM, logan.c.gra...@gmail.com wrote: Hey guys, I'm learning Python Welcome. and I'm experimenting with different projects -- I like learning by doing. I'm wondering if you can help me here: na What this is is a publicly-accessible webpage No, it's just a jpeg file,

Plotting with PyQwt

2013-05-24 Thread Sara Lochtie
Hi, I'm trying to plot temperature vs. time using Qwt. I have temp data that i get in real time and I want to plot against time. So I thought I would have to use QwtPlot and QwtPlotCurve, so I did this first: self.tempGraph = Qwt.QwtPlot(self) curve = QwtPlotCurve() curve.setData(x, temp)

Re: Plotting with PyQwt

2013-05-24 Thread Sara Lochtie
isn't correct* On Friday, May 24, 2013 12:58:50 PM UTC-7, Sara Lochtie wrote: Hi, I'm trying to plot temperature vs. time using Qwt. I have temp data that i get in real time and I want to plot against time. So I thought I would have to use QwtPlot and QwtPlotCurve, so I did this

Re: Polymoprhism question

2013-05-24 Thread Neil Cerutti
On 2013-05-24, RVic rvinc...@gmail.com wrote: Thanks Steven, Yes, I see Python isn't going to do this very well, from what I can understand. Lets say I have a type of class, and this type of class will always have two methods, in() and out(). Here is, essentially, what I am trying to do,

Ldap module and base64 oncoding

2013-05-24 Thread Joseph L. Casale
I have some data I am working with that is not being interpreted as a string requiring base64 encoding when sent to the ldif module for output. The base64 string parsed is ZGV0XDMzMTB3YmJccGc= and the raw string is det\3310wbb\pg. I'll admit my understanding of the handling requirements of non

RE: PEP 378: Format Specifier for Thousands Separator

2013-05-24 Thread Carlos Nepomuceno
lol that reminds me of George! lol ;) Date: Fri, 24 May 2013 19:28:29 +0200 From: andiper...@gmail.com To: python-list@python.org Subject: Re: PEP 378: Format Specifier for Thousands Separator On 24.05.2013 17:25, Carlos Nepomuceno wrote:

RE: Using ACLs in JSON

2013-05-24 Thread Carlos Nepomuceno
You welcome! Can you send me whatever you decide is best to your case? I'd like to have an example just in case I have to do that in the future. I think that approach is gonna become more prevalent in the coming years. ;) Date: Fri, 24 May 2013 12:08:03

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

2013-05-24 Thread Carlos Nepomuceno
Date: Fri, 24 May 2013 12:01:35 -0700 Subject: Re: Simple algorithm question - how to reorder a sequence economically From: peter.h.m.bro...@gmail.com To: python-list@python.org On May 24, 5:00 pm, Carlos Nepomuceno carlosnepomuc...@outlook.com

Prepending string @ to usernames

2013-05-24 Thread Thomas Murphy
Hi beloved list, I'm having a dumb and SO doesn't seem to have this one answered. I was sent a long list of instagram usernames to tag for a nightlife announcement in this format(not real names(i hope)) cookielover93 TheGermanHatesSaurkraut WhatsThatBoy932834 I'd like to turn this raw text into

Re: Prepending string @ to usernames

2013-05-24 Thread Dan Stromberg
On Fri, May 24, 2013 at 3:53 PM, Thomas Murphy thomasmurphymu...@gmail.comwrote: Hi beloved list, I'm having a dumb and SO doesn't seem to have this one answered. I was sent a long list of instagram usernames to tag for a nightlife announcement in this format(not real names(i hope))

Re: Prepending string @ to usernames

2013-05-24 Thread Thomas Murphy
Maybe this is what you're looking for? raw_address = cookielover93 TheGermanHatesSaurkraut WhatsThatBoy932834 address_library = raw_address.split() print address_library final_address = [] for address in address_library: final_address.append(@ + str(address)) print final_address

Survey of Python-in-browser technologies

2013-05-24 Thread Dan Stromberg
I'm putting together a spreadsheet about Python-in-the-browser technologies for my local python user group. I've been hitting the mailing lists for the various implementations already, but I thought I should run it by people here at least once. Anyway, here it is:

Re: Prepending string @ to usernames

2013-05-24 Thread Andrew Berg
On 2013.05.24 17:53, Thomas Murphy wrote: I know I'm iterating wrong. May I ask how? .split() already returns a list, so instead of iterating over the list and getting a single username, you iterate over the list and get a single list. -- CPython 3.3.2 | Windows NT 6.2.9200 / FreeBSD 9.1 --

Re: Prepending string @ to usernames

2013-05-24 Thread Mark Lawrence
On 25/05/2013 00:04, Thomas Murphy wrote: Maybe this is what you're looking for? raw_address = cookielover93 TheGermanHatesSaurkraut WhatsThatBoy932834 address_library = raw_address.split() print address_library final_address = [] for address in address_library: final_address.append(@ +

Re: Prepending string @ to usernames

2013-05-24 Thread Tim Chase
On 2013-05-24 19:04, Thomas Murphy wrote: raw_address = cookielover93 TheGermanHatesSaurkraut WhatsThatBoy932834 address_library = raw_address.split() print address_library final_address = [] for address in address_library: final_address.append(@ + str(address)) print final_address

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

2013-05-24 Thread Carlos Nepomuceno
### table_data_extraction.py ### # Usage: table[id][row][column] # tables[0]   : 1st table # tables[1][2]    : 3rd row of 2nd table # tables[3][4][5] : cell content of 6th column of 5th row of 4th table # len(table)  : quantity of tables # len(table[6])   : quantity of rows of 7th table #

RE: Survey of Python-in-browser technologies

2013-05-24 Thread Carlos Nepomuceno
Thanks Dan! All of that is relevant but I'm specially concerned about security issues and think another column for that purpose would improve your database, although I'm not sure if there's data available or how it would be presented. Date: Fri, 24 May 2013

Re: Prepending string @ to usernames

2013-05-24 Thread Thomas Murphy
Which can be tidily written as a list comprehension: final_address = ['@' + address for address in raw_address.split()] -tkc Ah! Thanks Tim…that tidiness is something I'm trying to head towards in my own code. I'm trying to transition from the need to visually write every little step out

Re: Survey of Python-in-browser technologies

2013-05-24 Thread Dan Stromberg
Security is an important topic... but I'm not sure how I could gather info about the security of these implementations. Still, it's an idea worth at least keeping in the back of my mind. On Fri, May 24, 2013 at 4:43 PM, Carlos Nepomuceno carlosnepomuc...@outlook.com wrote: Thanks Dan! All of

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

2013-05-24 Thread Peter Brooks
On May 24, 11:33 pm, Carlos Nepomuceno carlosnepomuc...@outlook.com wrote: Date: Fri, 24 May 2013 12:01:35 -0700 Subject: Re: Simple algorithm question - how to reorder a sequence economically From: peter.h.m.bro...@gmail.com To:

RE: Survey of Python-in-browser technologies

2013-05-24 Thread Carlos Nepomuceno
Date: Fri, 24 May 2013 17:11:18 -0700 Subject: Re: Survey of Python-in-browser technologies From: drsali...@gmail.com To: carlosnepomuc...@outlook.com CC: python-list@python.org Security is an important topic... but I'm not sure how I could gather

Why won't Python 2/3 compile when I have valgrind installed?

2013-05-24 Thread Yves S. Garret
This isn't a huge issue, but I'm wondering. I'm running Mac OS X, I tried to configure with --with-valgrind and this is the error that I got: configure: error: Valgrind support requested but headers not available Now, I have valgrind installed, so it should work, yes? If someone has any extra

RE: Why won't Python 2/3 compile when I have valgrind installed?

2013-05-24 Thread Carlos Nepomuceno
You probably need 'valgrind-devel' package installed. Date: Fri, 24 May 2013 20:59:22 -0400 Subject: Why won't Python 2/3 compile when I have valgrind installed? From: yoursurrogate...@gmail.com To: python-list@python.org This isn't a huge issue, but

RE: Ldap module and base64 oncoding

2013-05-24 Thread Carlos Nepomuceno
Can you give an example of the code you have? From: jcas...@activenetwerx.com To: python-list@python.org Subject: Ldap module and base64 oncoding Date: Fri, 24 May 2013 21:00:01 + I have some data I am working with that is not being interpreted

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

2013-05-24 Thread Dave Angel
On 05/24/2013 07:36 PM, Carlos Nepomuceno wrote: SNIP page = urllib2.urlopen(http://example.com/page.html;).read().strip() #to create the tables list tables=[[re.findall('TD(.*?)/TD',r,re.S) for r in re.findall('TR(.*?)/TR',t,re.S)] for t in re.findall('TABLE(.*?)/TABLE',page,re.S)]

Is python.org powered by CPython?

2013-05-24 Thread Carlos Nepomuceno
Is python.org powered by CPython? Is it using WSGI? What Python version is been used? I already checked it's using Apache. Is it using mod_wsgi? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is python.org powered by CPython?

2013-05-24 Thread Ned Deily
In article blu176-w964412bfd2e5188e8078bd7...@phx.gbl, Carlos Nepomuceno carlosnepomuc...@outlook.com wrote: Is python.org powered by CPython? Like many websites, the python.org domain consists of a number of subdomains with several different webservers on various hosts. AFAIK, the main

Re: Debugging parallel nose tests?

2013-05-24 Thread Roy Smith
In article roy-1cc2ea.09092123052...@news.panix.com, Roy Smith r...@panix.com wrote: Is there some way to make nose print a report of how it partitioned the tests across the various processes? I never found such a feature, but I did figure out a way to do what I needed. We use a system of

Preventing nose from finding setup.py

2013-05-24 Thread Roy Smith
We've got a package (with an empty __init__.py), which contains a setup.py file. When I run nosetests, the test discovery code finds setup.py, thinks it's a test, and tries to run it (with predictably poor results). Is there some way to mark this file as not a test? If it was a method in a

Re: Preventing nose from finding setup.py

2013-05-24 Thread Roy Smith
In article roy-51d3e2.23121724052...@news.panix.com, Roy Smith r...@panix.com wrote: We've got a package (with an empty __init__.py), which contains a setup.py file. When I run nosetests, the test discovery code finds setup.py, thinks it's a test, and tries to run it (with predictably poor

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

2013-05-24 Thread Chris Angelico
On Sat, May 25, 2013 at 3:32 AM, logan.c.gra...@gmail.com wrote: http://i.imgur.com/KgvSKWk.jpg What this is is a publicly-accessible webpage... If that's a screenshot of something that we'd be able to access directly, then why not just post a link to the actual thing? More likely I'm

Python Magazine

2013-05-24 Thread DRJ Reddy
Planning to start a python online chronicle.What you want to see in it. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Prepending string @ to usernames

2013-05-24 Thread Larry Hudson
On 05/24/2013 03:53 PM, Thomas Murphy wrote: snip Here's where I got to: raw_address = cookielover93 TheGermanHatesSaurkraut WhatsThatBoy932834 address_library = [raw_address.split()] print address_library for address in address_library: final_address = @ + str(address) print

Re: Python Magazine

2013-05-24 Thread Mark Janssen
I always liked the daily Python-URL from Dr. Dobbs. Summaries of salient discussions on python-dev, ideas, list. interviews with devs on philosophies. quote of the week --m On 5/24/13, DRJ Reddy rama29...@gmail.com wrote: Planning to start a python online chronicle.What you want to see in

Re: Python Magazine

2013-05-24 Thread Roy Smith
In article 27969350-4dd8-4afa-881a-b4a2364b3...@googlegroups.com, DRJ Reddy rama29...@gmail.com wrote: Planning to start a python online chronicle.What you want to see in it. :) Issue 1: Whitespace as syntax: mistake or magic? Python 3 vs. IPv6: who will win the race for early adoption? Did

Re: Python Magazine

2013-05-24 Thread DRJ Reddy
Issue 1: Whitespace as syntax: mistake or magic? Thanks Roy :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Magazine

2013-05-24 Thread DRJ Reddy
On Saturday, May 25, 2013 9:08:28 AM UTC+5:30, zipher wrote: I always liked the daily Python-URL from Dr. Dobbs. quote of the week Thanks zipher we have already planned to continue Python-URL and quote of the week. We will plan for other things that you have mentioned. Thanks again :) --

RE: Python Magazine

2013-05-24 Thread Carlos Nepomuceno
In-depth articles about Python! Like security analisys of modules, packages, frameworks, everything Python related. Performance benchmarks. How a Python technology/solution compares to other competitor technologies. Python competitions/contests/challenges!

Re: Python Magazine

2013-05-24 Thread Chris Angelico
On Sat, May 25, 2013 at 1:35 PM, Roy Smith r...@panix.com wrote: Python 3 vs. IPv6: who will win the race for early adoption? I think Py3 is winning that one so far. But really, both need to get moving. Neither of my ISPs does IPv6 :( Seconding the recommendation for QOTW, that's good fun.

Re: suppress newlines in my script

2013-05-24 Thread Jason Friedman
Here are two lines from the CSV file: ,,172.20.{0}.0/27,172.20.{0}.32/27,172.20.{0}.64/27,29,172.20.{0}.96/27172.21.{0}.0/27,172.21.{0}.32/27,172.21.{0}.64/27,29,172.21.{0}.96/27

Source code as text/plain

2013-05-24 Thread Carlos Nepomuceno
I'd like to have the option to download the source code as text/plain from the docs.python.org pages. For example: when I'm a docs page, such as: http://docs.python.org/2/library/string.html and I click the source code link I'm taken to a Mercurial page:

Re: Source code as text/plain

2013-05-24 Thread Chris Rebert
On May 24, 2013 9:02 PM, Carlos Nepomuceno carlosnepomuc...@outlook.com wrote: I'd like to have the option to download the source code as text/plain from the docs.python.org pages. For example: when I'm a docs page, such as: http://docs.python.org/2/library/string.html and I click the

RE: Source code as text/plain

2013-05-24 Thread Carlos Nepomuceno
Oh great! Thank you! Date: Fri, 24 May 2013 21:06:05 -0700 Subject: Re: Source code as text/plain From: c...@rebertia.com To: carlosnepomuc...@outlook.com CC: python-list@python.org On May 24, 2013 9:02 PM, Carlos Nepomuceno

Re: Python Magazine

2013-05-24 Thread DRJ Reddy
On Saturday, May 25, 2013 9:13:56 AM UTC+5:30, Carlos Nepomuceno wrote: In-depth articles about Python! Like security analisys of modules, packages, frameworks, everything Python related. Performance benchmarks. How a Python technology/solution compares to other competitor technologies.

Re: Python Magazine

2013-05-24 Thread DRJ Reddy
This is what i love with python community faster responses. :) -- http://mail.python.org/mailman/listinfo/python-list

RE: Python Magazine

2013-05-24 Thread Carlos Nepomuceno
Date: Fri, 24 May 2013 21:10:02 -0700 Subject: Re: Python Magazine From: rama29...@gmail.com To: python-list@python.org On Saturday, May 25, 2013 9:13:56 AM UTC+5:30, Carlos Nepomuceno wrote: In-depth articles about Python! Like security analisys of

Re: Python Magazine

2013-05-24 Thread Chris Angelico
On Sat, May 25, 2013 at 2:22 PM, Carlos Nepomuceno carlosnepomuc...@outlook.com wrote: Also, comparison of Python flavors (CPython, PyPy, Cython, Stackles, etc.) -- How do they differ? What's the benefits and hindrances? Good point. Could go even more general than that: Just highlight some

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

2013-05-24 Thread lokeshkoppaka
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 help me how to do? Note: the list only contains 0's,1's,2's need to sort them in order of 'n' --

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

2013-05-24 Thread Chris Angelico
On Sat, May 25, 2013 at 3:15 PM, 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 help me how to do? Note: the list only contains

  1   2   >