RE: Fastest web framework

2012-09-23 Thread Andriy Kornatskyy
Alex, > Are you on Python Planet? If not, you might want to syndicate your blog > there to reach more of the Python web framework crowd. Thank you for your advise. I will send a request for addition to Python Planet. http://feeds.feedburner.com/MindReference Thanks. Andriy ---

Re: [RELEASED] Python 3.3.0 release candidate 3

2012-09-23 Thread Ramchandra Apte
On Monday, 24 September 2012 12:07:53 UTC+5:30, Paul Rubin wrote: > Georg Brandl writes: > > > Python 3.3 includes a range of improvements of the 3.x series, as well > > > as easier porting between 2.x and 3.x. Major new features and changes > > > in the 3.3 release series are: [good stuff sn

Re: [RELEASED] Python 3.3.0 release candidate 3

2012-09-23 Thread Paul Rubin
Georg Brandl writes: > Python 3.3 includes a range of improvements of the 3.x series, as well > as easier porting between 2.x and 3.x. Major new features and changes > in the 3.3 release series are: [good stuff snipped] This is cool, and Python 3 is finally starting to show some real advantages

RE: Fastest web framework

2012-09-23 Thread Andriy Kornatskyy
David, Thank you for your comments. Please see my response inline to your questions. > Well, lets break down timing something in a more scientific method > approach through questioning. > > What's your processor speed? Please see environment specification at the end of post. Here is a copy just

[RELEASED] Python 3.3.0 release candidate 3

2012-09-23 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm delighted to announce the third release candidate of Python 3.3.0. This is a preview release, and its use is not recommended in production settings. Python 3.3 includes a range of improvements of the 3.x

Re: Editing Inkscape SVG files with Python?

2012-09-23 Thread Matej Cepl
On 24/09/12 00:53, Steven D'Aprano wrote: Googling for "python inkscape" comes up with too many hits for Inkscape's plugin system to be much help to me. Aside from suggesting lxml, I would ask "So why not to follow the stream and create Inkscape plugin"? I have in similar situation created a

Re: Does python have built command for package skeleton creation?

2012-09-23 Thread Ramchandra Apte
On Monday, 24 September 2012 09:59:12 UTC+5:30, Terry Reedy wrote: > On 9/23/2012 11:59 PM, alex23 wrote: > > > On Sep 21, 10:14 pm, xliiv wrote: > > >> On Friday, September 21, 2012 1:08:23 PM UTC+2, Tarek Ziadé wrote: > > >>> Python Paste is probably what you are looking for - see > > > >

Re: Seome kind of unblocking input

2012-09-23 Thread Ramchandra Apte
On Sunday, 23 September 2012 23:20:37 UTC+5:30, Dennis Lee Bieber wrote: > On Sun, 23 Sep 2012 18:13:57 +0100, Mark Lawrence > > declaimed the following in > > gmane.comp.python.general: > > > > > On 23/09/2012 16:49, Ramchandra Apte wrote: > > > > > > You can clear the buffer by calling

Re: Seome kind of unblocking input

2012-09-23 Thread Chris Angelico
On Mon, Sep 24, 2012 at 3:50 AM, Dennis Lee Bieber wrote: > On Sun, 23 Sep 2012 18:13:57 +0100, Mark Lawrence > declaimed the following in > gmane.comp.python.general: > >> On 23/09/2012 16:49, Ramchandra Apte wrote: > >> > You can clear the buffer by calling file.flush() >> > >> >> Shock, horror

Re: Does python have built command for package skeleton creation?

2012-09-23 Thread alex23
On Sep 24, 2:29 pm, Terry Reedy wrote: > Batteries are batteries, not flashlights, phone, radios, toys, clickers, > etc. I decided not to mention "venv" as it undermines my rant a little :) -- http://mail.python.org/mailman/listinfo/python-list

Re: A little morning puzzle

2012-09-23 Thread Ian Kelly
On Sat, Sep 22, 2012 at 9:44 PM, Dwight Hutto wrote: > Why don't you all look at the code(python and C), and tell me how much > code it took to write the functions the other's examples made use of > to complete the task. > > Just because you can use a function, and make it look easier, doesn't > m

Re: Does python have built command for package skeleton creation?

2012-09-23 Thread Terry Reedy
On 9/23/2012 11:59 PM, alex23 wrote: On Sep 21, 10:14 pm, xliiv wrote: On Friday, September 21, 2012 1:08:23 PM UTC+2, Tarek Ziadé wrote: Python Paste is probably what you are looking for - see It's a nice beast but: - it's not built in. Should it be? I think it should. There needs to be

Re: Does python have built command for package skeleton creation?

2012-09-23 Thread alex23
On Sep 21, 10:14 pm, xliiv wrote: > On Friday, September 21, 2012 1:08:23 PM UTC+2, Tarek Ziadé wrote: > > Python Paste is probably what you are looking for - see > It's a nice beast but: > - it's not built in. Should it be? I think it should. There needs to be a distinction at some point betwee

Re: request for another code review

2012-09-23 Thread alex23
On Sep 23, 6:14 am, "Littlefield, Tyler" wrote: > I've gotten a bit farther into my python mud, and wanted to request > another code review for style and the like. Are you familiar with codereview.stackexchange.com ? (This isn't to dissuade you from posting such requests here, just to help incre

Re: A little morning puzzle

2012-09-23 Thread alex23
On Sep 23, 1:44 pm, Dwight Hutto wrote: > Just because you can use a function, and make it look easier, doesn't > mean the function you used had less code than mine, so if you look at > the whole of what you used to make it simpler, mine was on point. Word of advice: when we use "simpler" around

Re: technologies synergistic with Python

2012-09-23 Thread alex23
On Sep 22, 8:16 am, Ethan Furman wrote: > What is the consensus... okay, okay -- what are some wide ranging > opinions on technologies that I should know if my dream job is one that > consists mostly of Python, and might allow telecommuting? A "technology" that I consider *highly* synergistic wit

Re: One of my joomla webpages has been hacked. Please help.

2012-09-23 Thread alex23
On Sep 22, 4:45 am, Νίκος Γκρεεκ wrote: > One webpage of mine,http://www.varsa.gr/has been *hacked* 15 mins ago. Here is your problem: > joomla If you're looking for a more secure solution: http://plone.org/products/plone/security/overview -- http://mail.python.org/mailman/listinfo/python-lis

Re: cant install livewires

2012-09-23 Thread alex23
On Sep 23, 10:05 pm, james.kenn...@abingdon.org.uk wrote: > i cant install livewires and their help about making a directory is useless > to me as i dont know how > btw im using windows 7 > REALLY DESPERATE :) You're skimming and not reading the README correctly. You are *only* instructed to mak

Re: Pass numeric arrays from C extensions to Python

2012-09-23 Thread Terry Reedy
On 9/23/2012 9:39 PM, JBT wrote: Hi, I am looking for a way to pass numeric arrays, such as *float a[100]; double b[200];*, from C extension codes to python. The use case of this problem is that you have data stored in a particular format, NASA common data format (CDF) in my case, and there exis

Re: Invalid identifier claimed to be valid by docs (methinks)

2012-09-23 Thread Terry Reedy
On 9/23/2012 6:57 PM, Ian Kelly wrote: On Sun, Sep 23, 2012 at 4:24 PM, Joshua Landau wrote: The docs describe identifiers to have this grammar: identifier ::= xid_start xid_continue* id_start ::= id_continue ::= xid_start::= xid_start is a subset of id_start xid_continue

Re: Java singletonMap in Python

2012-09-23 Thread Steven D'Aprano
On Mon, 24 Sep 2012 00:14:23 +0100, Mark Lawrence wrote: > Purely for fun I've been porting some code to Python and came across the > singletonMap[1]. I'm aware that there are loads of recipes on the web > for both singletons e.g.[2] and immutable dictionaries e.g.[3]. I was > wondering how to c

Re: Pass numeric arrays from C extensions to Python

2012-09-23 Thread Oscar Benjamin
On 24 September 2012 02:39, JBT wrote: > Hi, > > I am looking for a way to pass numeric arrays, such as *float a[100]; > double b[200];*, from C extension codes to python. The use case of this > problem is that you have data stored in a particular format, NASA common > data format (CDF) in my cas

Re: List Problem

2012-09-23 Thread Chris Angelico
On Mon, Sep 24, 2012 at 10:56 AM, Littlefield, Tyler wrote: > I've not been following this thread fully, but why not just use x=list(y) to > copy the list? > The issue is that when you assign i=[1,2,3] and then j = i, j is just a > reference to i, which is why you change either and the other chang

Pass numeric arrays from C extensions to Python

2012-09-23 Thread JBT
Hi, I am looking for a way to pass numeric arrays, such as *float a[100]; double b[200];*, from C extension codes to python. The use case of this problem is that you have data stored in a particular format, NASA common data format (CDF) in my case, and there exists an official C library to read

keeping information about players around

2012-09-23 Thread Littlefield, Tyler
ytHello all: I've asked for a couple code reviews lately on a mud I've been working on, to kind of help me with ideas and a better design. I have yet another design question. In my mud, zones are basically objects that manage a collection of rooms; For example, a town would be it's own zone. I

Re: For Counter Variable

2012-09-23 Thread Mark Lawrence
On 24/09/2012 01:05, Tim Chase wrote: On 09/23/12 18:52, Alec Taylor wrote: You can always use a counter if you don't like our fancy for-each loops; foolist = [1,24,24,234,23,423,4] for i in xrange(len(foolist)): print foolist[i] http://www.seas.upenn.edu/~lignos/py_antipatterns.html Th

Re: Editing Inkscape SVG files with Python?

2012-09-23 Thread Ben Finney
Steven D'Aprano writes: > I have some SVG files generated with Inkscape containing many text > blocks (over 100). I wish to programmatically modify those text blocks > using Python. Is there a library I should be using, or any other > guidelines or advice anyone can give me? My first step would

Re: List Problem

2012-09-23 Thread Littlefield, Tyler
On 9/23/2012 3:44 PM, jimbo1qaz wrote: On Sunday, September 23, 2012 2:31:48 PM UTC-7, jimbo1qaz wrote: I have a nested list. Whenever I make a copy of the list, changes in one affect the other, even when I use list(orig) or even copy the sublists one by one. I have to manually copy each cell

Re: For Counter Variable

2012-09-23 Thread Tim Chase
On 09/23/12 18:52, Alec Taylor wrote: > You can always use a counter if you don't like our fancy for-each loops; > > foolist = [1,24,24,234,23,423,4] > for i in xrange(len(foolist)): > print foolist[i] http://www.seas.upenn.edu/~lignos/py_antipatterns.html The first one on the list of anti-p

Re: For Counter Variable

2012-09-23 Thread Alec Taylor
You can always use a counter if you don't like our fancy for-each loops; foolist = [1,24,24,234,23,423,4] for i in xrange(len(foolist)): print foolist[i] On Mon, Sep 24, 2012 at 9:29 AM, Tim Chase wrote: > On 09/23/12 17:54, Steven D'Aprano wrote: > > On Sun, 23 Sep 2012 10:45:53 -0700, jimb

Re: Java singletonMap in Python

2012-09-23 Thread Oscar Benjamin
On 24 September 2012 00:14, Mark Lawrence wrote: > Purely for fun I've been porting some code to Python and came across the > singletonMap[1]. I'm aware that there are loads of recipes on the web for > both singletons e.g.[2] and immutable dictionaries e.g.[3]. I was > wondering how to combine

pyOpenSSL -> m2crypto conversion?

2012-09-23 Thread Matej Cepl
Hi, gajim (http://gajim.org, Jabber/XMPP instatnt messenger written in PyGtk) uses for crypto mix of some functions from the standard library, pyOpenSSL for SSL communication, and python-crypto for E2E (encryption of the messages ... uses RSA and AES; see https://trac.gajim.org/ticket/5294 fo

Re: Invalid identifier claimed to be valid by docs (methinks)

2012-09-23 Thread Joshua Landau
On 23 September 2012 23:57, Ian Kelly wrote: > On Sun, Sep 23, 2012 at 4:24 PM, Joshua Landau > wrote: > > The docs describe identifiers to have this grammar: > > > > identifier ::= xid_start xid_continue* > > id_start ::= Lo, > > Nl, the underscore, and characters with the Other_ID_Sta

Re: For Counter Variable

2012-09-23 Thread Tim Chase
On 09/23/12 17:54, Steven D'Aprano wrote: > On Sun, 23 Sep 2012 10:45:53 -0700, jimbo1qaz wrote: >> On Sunday, September 23, 2012 9:36:19 AM UTC-7, jimbo1qaz wrote: >>> Am I missing something obvious, or do I have to manually put in a >>> counter in the for loops? That's a very basic request, but I

Java singletonMap in Python

2012-09-23 Thread Mark Lawrence
Purely for fun I've been porting some code to Python and came across the singletonMap[1]. I'm aware that there are loads of recipes on the web for both singletons e.g.[2] and immutable dictionaries e.g.[3]. I was wondering how to combine any of the recipes to produce the best implementation,

Re: Editing Inkscape SVG files with Python?

2012-09-23 Thread Oscar Benjamin
On 23 September 2012 23:53, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > I have some SVG files generated with Inkscape containing many text blocks > (over 100). I wish to programmatically modify those text blocks using > Python. Is there a library I should be using, or any othe

Re: Invalid identifier claimed to be valid by docs (methinks)

2012-09-23 Thread Ian Kelly
On Sun, Sep 23, 2012 at 4:24 PM, Joshua Landau wrote: > The docs describe identifiers to have this grammar: > > identifier ::= xid_start xid_continue* > id_start ::= Nl, the underscore, and characters with the Other_ID_Start property> > id_continue ::= categories Mn, Mc, Nd, Pc and oth

Re: For Counter Variable

2012-09-23 Thread Steven D'Aprano
On Sun, 23 Sep 2012 10:45:53 -0700, jimbo1qaz wrote: > On Sunday, September 23, 2012 9:36:19 AM UTC-7, jimbo1qaz wrote: >> Am I missing something obvious, or do I have to manually put in a >> counter in the for loops? That's a very basic request, but I couldn't >> find anything in the documentatio

Editing Inkscape SVG files with Python?

2012-09-23 Thread Steven D'Aprano
I have some SVG files generated with Inkscape containing many text blocks (over 100). I wish to programmatically modify those text blocks using Python. Is there a library I should be using, or any other guidelines or advice anyone can give me? Googling for "python inkscape" comes up with too ma

Re: List Problem

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 2:31:48 PM UTC-7, jimbo1qaz wrote: > I have a nested list. Whenever I make a copy of the list, changes in one > affect the other, even when I use list(orig) or even copy the sublists one by > one. I have to manually copy each cell over for it to work. > > Link to br

Re: Obnoxious postings from Google Groups (was: datetime issue)

2012-09-23 Thread Grant Edwards
On 2012-09-22, Hank Gay wrote: > On 2012-09-21 15:07:09 +, Grant Edwards said: >> >> I told my news client years ago to filter out anything posted from >> Google Groups -- and I know I'm not alone. If one wants the best >> chance of getting a question answered, using something other than >>

Re: List Problem

2012-09-23 Thread Steven D'Aprano
On Sun, 23 Sep 2012 14:31:48 -0700, jimbo1qaz wrote: > I have a nested list. Whenever I make a copy of the list, changes in one > affect the other, Then you aren't making a copy. py> first_list = [1, 2, 3] py> second_list = first_list # THIS IS NOT A COPY py> second_list.append() py> print

Re: List Problem

2012-09-23 Thread Dave Angel
On 09/23/2012 05:44 PM, jimbo1qaz wrote: > On Sunday, September 23, 2012 2:31:48 PM UTC-7, jimbo1qaz wrote: >> I have a nested list. Whenever I make a copy of the list, changes in one >> affect the other, even when I use list(orig) or even copy the sublists one >> by one. I have to manually copy

Re: List Problem

2012-09-23 Thread Chris Angelico
On Mon, Sep 24, 2012 at 7:44 AM, jimbo1qaz wrote: > On Sunday, September 23, 2012 2:31:48 PM UTC-7, jimbo1qaz wrote: >> I have a nested list. Whenever I make a copy of the list, changes in one >> affect the other, even when I use list(orig) or even copy the sublists one >> by one. I have to manu

Re: List Problem

2012-09-23 Thread Oscar Benjamin
On 23 September 2012 22:31, jimbo1qaz wrote: > I have a nested list. Whenever I make a copy of the list, changes in one > affect the other, even when I use list(orig) or even copy the sublists one > by one. I have to manually copy each cell over for it to work. > Link to broken code: http://jimbo

Re: List Problem

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 2:31:48 PM UTC-7, jimbo1qaz wrote: > I have a nested list. Whenever I make a copy of the list, changes in one > affect the other, even when I use list(orig) or even copy the sublists one by > one. I have to manually copy each cell over for it to work. > > Link to br

Re: Capitalization for variable that holds a class

2012-09-23 Thread Steven D'Aprano
On Mon, 24 Sep 2012 02:12:25 +1000, Chris Angelico wrote: > On Mon, Sep 24, 2012 at 1:48 AM, Joshua Landau > wrote: >> Simple question: >> >> [myClass() for myClass in myClasses] >> vs >> [MyClass() for MyClass in myClasses] >> >> Fight. >> >> (When considering, substitute in a more real-world ex

List Problem

2012-09-23 Thread jimbo1qaz
I have a nested list. Whenever I make a copy of the list, changes in one affect the other, even when I use list(orig) or even copy the sublists one by one. I have to manually copy each cell over for it to work. Link to broken code: http://jimbopy.pastebay.net/1090401 -- http://mail.python.org/ma

Re: Fastest web framework

2012-09-23 Thread Alex Clark
On 2012-09-23 09:19:16 +, Andriy Kornatskyy said: I have run recently a benchmark of a trivial 'hello world' application for various python web frameworks (bottle, django, flask, pyramid, web.py, wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might find it interesting

Re: Anyone able to help on installing packages?

2012-09-23 Thread John Mordecai Dildy
On Sunday, September 23, 2012 1:48:52 PM UTC-4, John Mordecai Dildy wrote: > Hello everyone out there. Ive been trying to install packages like > distribute, nose, and virturalenv and believe me it is a hard process to do. > I tried everything I could think of to install. > > > > I have done

Re: Anyone able to help on installing packages?

2012-09-23 Thread Oscar Benjamin
Please send your reply to the mailing list (python-list@python.org) rather than privately to me. On 23 September 2012 20:57, John Dildy wrote: > When I give input at the start of terminal using the command pip install > virtualenv: > > Downloading/unpacking virtualenv > Running setup.py egg_i

Re: write to a file two dict()

2012-09-23 Thread 88888 Dihedral
giuseppe...@gmail.com於 2012年9月24日星期一UTC+8上午1時44分30秒寫道: > Hi > > Have two dict() of the same length and i want print them to a common file. > > > > > > a={1: 1, 2: 2, 3: 3} > > b={1: 11, 2: 22, 3: 33} > > > > in order to obtain > > > > 1 1 1 11 > > 2 2 2 22 > > 3 3 3 33 > > > > I

Re: Fastest web framework

2012-09-23 Thread Dwight Hutto
> Hope I understood you correctly. > Well, lets break down timing something in a more scientific method approach through questioning. What's your processor speed? What is the constant temperature of the internals of your system? What OS, and version? What other processes are running? There's

RE: Fastest web framework

2012-09-23 Thread Andriy Kornatskyy
> On Sun, Sep 23, 2012 at 5:19 AM, Andriy Kornatskyy > wrote: > > > > I have run recently a benchmark of a trivial 'hello world' application for > > various python web frameworks (bottle, django, flask, pyramid, web.py, > > wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9 > > There a

Re: Fastest web framework

2012-09-23 Thread Dwight Hutto
On Sun, Sep 23, 2012 at 5:19 AM, Andriy Kornatskyy wrote: > > I have run recently a benchmark of a trivial 'hello world' application for > various python web frameworks (bottle, django, flask, pyramid, web.py, > wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9 There are other conside

Re: 'str' object does not support item assignment

2012-09-23 Thread Mark Lawrence
On 23/09/2012 19:31, jimbo1qaz wrote: spots[y][x]=mark fails with a "'str' object does not support item assignment" error,even though: a=[["a"]] a[0][0]="b" and: a=[["a"]] a[0][0]=100 both work. Spots is a nested list created as a copy of another list. Looks to me as if there are thre

Re: 'str' object does not support item assignment

2012-09-23 Thread Andrea Crotti
On 09/23/2012 07:31 PM, jimbo1qaz wrote: spots[y][x]=mark fails with a "'str' object does not support item assignment" error,even though: a=[["a"]] a[0][0]="b" and: a=[["a"]] a[0][0]=100 both work. Spots is a nested list created as a copy of another list. But a = "a" a[0] = 'c' fails f

Re: 'str' object does not support item assignment

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 11:48:11 AM UTC-7, MRAB wrote: > On 2012-09-23 19:31, jimbo1qaz wrote: > > > spots[y][x]=mark fails with a "'str' object does not support item > > assignment" error,even though: > > a=[["a"]] > > a[0][0]="b" > > > and: > > a=[["a"]] > > a[0][

Re: 'str' object does not support item assignment

2012-09-23 Thread MRAB
On 2012-09-23 19:31, jimbo1qaz wrote: spots[y][x]=mark fails with a "'str' object does not support item assignment" error,even though: a=[["a"]] a[0][0]="b" and: a=[["a"]] a[0][0]=100 both work. Spots is a nested list created as a copy of another list. The error suggests that spots[y]

Re: Anyone able to help on installing packages?

2012-09-23 Thread Oscar Benjamin
On Sep 23, 2012 6:56 PM, "John Mordecai Dildy" wrote: > > Hello everyone out there. Ive been trying to install packages like distribute, nose, and virturalenv and believe me it is a hard process to do. I tried everything I could think of to install. > > I have done the following: > > pip install

Re: 'str' object does not support item assignment

2012-09-23 Thread Ian Kelly
On Sun, Sep 23, 2012 at 12:31 PM, jimbo1qaz wrote: > spots[y][x]=mark fails with a "'str' object does not support item assignment" > error,even though: a=[["a"]] a[0][0]="b" > and: a=[["a"]] a[0][0]=100 > both work. > Spots is a nested list created as a copy of another lis

RE: Fastest web framework

2012-09-23 Thread Andriy Kornatskyy
The problem is that easy if you have a complete control over what you are caching. Complete control over cache may look a challenging task however with use of cache dependency you can lower it significantly. Take a look here: http://packages.python.org/wheezy.caching/userguide.html#cachedepende

Re: 'str' object does not support item assignment

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 11:31:41 AM UTC-7, jimbo1qaz wrote: > spots[y][x]=mark fails with a "'str' object does not support item assignment" > error,even though: > > >>> a=[["a"]] > > >>> a[0][0]="b" > > and: > > >>> a=[["a"]] > > >>> a[0][0]=100 > > both work. > > Spots is a neste

Re: Capitalization for variable that holds a class

2012-09-23 Thread Tim Chase
On 09/23/12 11:12, Chris Angelico wrote: > On Mon, Sep 24, 2012 at 1:48 AM, Joshua Landau > wrote: >> Simple question: >> >> [myClass() for myClass in myClasses] >> vs >> [MyClass() for MyClass in myClasses] > > Since there's no difference between a "class" and a "variable > containing a class" or

'str' object does not support item assignment

2012-09-23 Thread jimbo1qaz
spots[y][x]=mark fails with a "'str' object does not support item assignment" error,even though: >>> a=[["a"]] >>> a[0][0]="b" and: >>> a=[["a"]] >>> a[0][0]=100 both work. Spots is a nested list created as a copy of another list. -- http://mail.python.org/mailman/listinfo/python-list

RE: Fastest web framework

2012-09-23 Thread Andriy Kornatskyy
Good to know you are in a good humor today. You will be surprised... far not all share your point of view. ;-) Few links for you to stop laughing that loud: http://packages.python.org/wheezy.http/userguide.html#content-cache http://packages.python.org/wheezy.caching/userguide.html#cachedependenc

RE: Fastest web framework

2012-09-23 Thread Andriy Kornatskyy
Good to know you are in a good humor today. You will be surprised... far not all share your point of view. ;-) Few links for you to stop laughing that loud: http://packages.python.org/wheezy.http/userguide.html#content-cache http://packages.python.org/wheezy.caching/userguide.html#cachedependen

RE: Fastest web framework

2012-09-23 Thread Andriy Kornatskyy
Good to know you are in a good humor today. You will be surprised... far not all share your point of view. ;-) Few links for you to stop laughing that loud: http://packages.python.org/wheezy.http/userguide.html#content-cache http://packages.python.org/wheezy.caching/userguide.html#cachedependenc

Re: For Counter Variable

2012-09-23 Thread Oscar Benjamin
On Sep 23, 2012 6:52 PM, "jimbo1qaz" wrote: > > On Sunday, September 23, 2012 9:36:19 AM UTC-7, jimbo1qaz wrote: > > Am I missing something obvious, or do I have to manually put in a counter in the for loops? That's a very basic request, but I couldn't find anything in the documentation. > > Ya, t

Re: write to a file two dict()

2012-09-23 Thread MRAB
On 2012-09-23 18:44, giuseppe.amatu...@gmail.com wrote: Hi Have two dict() of the same length and i want print them to a common file. a={1: 1, 2: 2, 3: 3} b={1: 11, 2: 22, 3: 33} in order to obtain 1 1 1 11 2 2 2 22 3 3 3 33 I tried output = open(dst_file, "w") for (a), b , (c) , d in a.ite

RE: Fastest web framework

2012-09-23 Thread Andriy Kornatskyy
Few facts that doesn't make it less interesting: (1) the test source code available (2) the test itself is pretty famous (3) you can re-run it (4) or even better supply own that in your believe is 100% relevant Not every project has problem with database performance. Some use caching... and pre

Anyone able to help on installing packages?

2012-09-23 Thread John Mordecai Dildy
Hello everyone out there. Ive been trying to install packages like distribute, nose, and virturalenv and believe me it is a hard process to do. I tried everything I could think of to install. I have done the following: pip install "package name" easy_install "package name" Would anyone help

Re: For Counter Variable

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 9:36:19 AM UTC-7, jimbo1qaz wrote: > Am I missing something obvious, or do I have to manually put in a counter in > the for loops? That's a very basic request, but I couldn't find anything in > the documentation. Ya, they should really give a better way, but for now

Re: Fastest web framework

2012-09-23 Thread Stefan Behnel
Andriy Kornatskyy, 23.09.2012 19:42: > If we take a look at web application we can split it into at least two > parts, one that renders things out and the other one that does data > extraction, e.g. from database (this is what you are pointing at). > > If you made a first call to database you get

write to a file two dict()

2012-09-23 Thread giuseppe . amatulli
Hi Have two dict() of the same length and i want print them to a common file. a={1: 1, 2: 2, 3: 3} b={1: 11, 2: 22, 3: 33} in order to obtain 1 1 1 11 2 2 2 22 3 3 3 33 I tried output = open(dst_file, "w") for (a), b , (c) , d in a.items() , b.items() : output.write("%i %i %i %i\n" % (

RE: Fastest web framework

2012-09-23 Thread Andriy Kornatskyy
If we take a look at web application we can split it into at least two parts, one that renders things out and the other one that does data extraction, e.g. from database (this is what you are pointing at). If you made a first call to database you get your list and can easily cache it. The next

Re: Fastest web framework

2012-09-23 Thread Mark Lawrence
On 23/09/2012 16:50, Stefan Behnel wrote: Roy Smith, 23.09.2012 16:02: Andriy Kornatskyy wrote: I have run recently a benchmark of a trivial 'hello world' application for various python web frameworks (bottle,�django, flask, pyramid, web.py, wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/p

Re: Seome kind of unblocking input

2012-09-23 Thread Mark Lawrence
On 23/09/2012 16:49, Ramchandra Apte wrote: On Saturday, 22 September 2012 01:24:46 UTC+5:30, Dennis Lee Bieber wrote: On Fri, 21 Sep 2012 02:13:28 -0700 (PDT), janis.judvai...@gmail.com declaimed the following in gmane.comp.python.general: Since I'm using threads and pipes everything work

Re: Client Needs---QA Manual Tester at Sacramento, CA

2012-09-23 Thread Mark Lawrence
On 23/09/2012 16:47, Ramchandra Apte wrote: I've snipped all the crap that came from gmail. Could you please get yourself a decent email client. This is not related to Python; I have reported this in Google Groups. Thanks for policing this, but how about reporting it on gmane and possib

Re: For Counter Variable

2012-09-23 Thread Chris Angelico
On Mon, Sep 24, 2012 at 2:36 AM, jimbo1qaz wrote: > Am I missing something obvious, or do I have to manually put in a counter in > the for loops? That's a very basic request, but I couldn't find anything in > the documentation. You mean, if you want the indices as well as the values? Try the en

For Counter Variable

2012-09-23 Thread Oscar Benjamin
On Sep 23, 2012 5:42 PM, "jimbo1qaz" wrote: > > Am I missing something obvious, or do I have to manually put in a counter in the for loops? That's a very basic request, but I couldn't find anything in the documentation. Have you seen the enumerate function? Oscar -- http://mail.python.org/mailm

Re: For Counter Variable

2012-09-23 Thread Rodrick Brown
On Sep 23, 2012, at 12:42 PM, jimbo1qaz wrote: > Am I missing something obvious, or do I have to manually put in a counter in > the for loops? That's a very basic request, but I couldn't find anything in > the documentation. for idx in : print (idx) i.e.. for idx in range(10): print(idx) > -

For Counter Variable

2012-09-23 Thread jimbo1qaz
Am I missing something obvious, or do I have to manually put in a counter in the for loops? That's a very basic request, but I couldn't find anything in the documentation. -- http://mail.python.org/mailman/listinfo/python-list

Re: Capitalization for variable that holds a class

2012-09-23 Thread Chris Angelico
On Mon, Sep 24, 2012 at 1:48 AM, Joshua Landau wrote: > Simple question: > > [myClass() for myClass in myClasses] > vs > [MyClass() for MyClass in myClasses] > > Fight. > > (When considering, substitute in a more real-world example like [Token() for > Token in allTokens] or [token() for token in a

QThread.terminate in Python 3

2012-09-23 Thread Lee Harr
Hi; I have asked this on the PyQt list, but have not seen any response yet. Hoping someone will be able to test this on their system to see if they see the same problem. The problem I am seeing is that terminating a QThread running certain code will freeze the program, requiring it to be kill'd.

Re: Client Needs---QA Manual Tester at Sacramento, CA

2012-09-23 Thread Ramchandra Apte
On Saturday, 22 September 2012 04:09:55 UTC+5:30, ram dev wrote: > Good Day, > > We have an urgent Contract Openings in Folsom, CA > > Looking forward to submit your resume for below mentioned Requirement… > > If you are interested, Please forward your latest resume along with location > and

Re: Fastest web framework

2012-09-23 Thread Stefan Behnel
Roy Smith, 23.09.2012 16:02: > Andriy Kornatskyy wrote: >> I have run recently a benchmark of a trivial 'hello world' application for >> various python web frameworks (bottle,�django, flask, pyramid, web.py, >> wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might >> find >>

Re: Seome kind of unblocking input

2012-09-23 Thread Ramchandra Apte
On Saturday, 22 September 2012 01:24:46 UTC+5:30, Dennis Lee Bieber wrote: > On Fri, 21 Sep 2012 02:13:28 -0700 (PDT), janis.judvai...@gmail.com > > declaimed the following in gmane.comp.python.general: > > > > > Since I'm using threads and pipes everything works ok, except that when i > > ca

Re: A dateutil error has appeared, due to updates? How to fix?

2012-09-23 Thread tinnews
Peter Otten <__pete...@web.de> wrote: > tinn...@isbd.co.uk wrote: > [snip description of problem] > > Have I lost a module somewhere in the updates or has something in > > python changed such that my code no longer works as it used to? > > > > Can anyone help diagnose this please. > > You proba

Re: Reading a file in IDLE 3 on Mac-Lion

2012-09-23 Thread Kevin Walzer
On 9/23/12 8:45 AM, Kevin Walzer wrote: There's nothing to do here; it's an aspect of the native dialog. To clarify: there's nothing to do at the C level, which is where the native dialog is invoked. IDLE can probably be patched to accept other file types, such as "dat." -- Kevin Walzer Cod

Re: Fastest web framework

2012-09-23 Thread Roy Smith
In article , Andriy Kornatskyy wrote: > I have run recently a benchmark of a trivial 'hello world' application for > various python web frameworks (bottle, django, flask, pyramid, web.py, > wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might find > it interesting: > > ht

Re: cant install livewires

2012-09-23 Thread Mark Lawrence
On 23/09/2012 13:05, james.kenn...@abingdon.org.uk wrote: i cant install livewires and their help about making a directory is useless to me as i dont know how btw im using windows 7 REALLY DESPERATE :) Please don't shout. And if my experience of the UK education system is anything to go by,

Re: Reading a file in IDLE 3 on Mac-Lion

2012-09-23 Thread Kevin Walzer
On 9/23/12 3:33 AM, Ned Deily wrote: This appears to a difference in behavior between Carbon Tk 8.4 and Cocoa Tk 8.5 on OS X. The python.org 32-bit-only installers are built to link with the former and, with 8.4, the Open file dialog box does have the file-type filter menu as Hans describes. Th

Re: cant install livewires

2012-09-23 Thread Chris Angelico
On Sun, Sep 23, 2012 at 10:05 PM, wrote: > i cant install livewires and their help about making a directory is useless > to me as i dont know how > btw im using windows 7 > REALLY DESPERATE :) May I recommend searching the web for 'make directory windows 7'? That might help. ChrisA -- http://

cant install livewires

2012-09-23 Thread james . kennedy
i cant install livewires and their help about making a directory is useless to me as i dont know how btw im using windows 7 REALLY DESPERATE :) -- Disclaimer -- http://mail.python.org/mailman/listinfo/python-list

Re: A dateutil error has appeared, due to updates? How to fix?

2012-09-23 Thread Peter Otten
tinn...@isbd.co.uk wrote: > I have a python script which uses the dateutil module with the > following:- > > import sys > import datetime > import icalendar > from dateutil.relativedelta import relativedelta > > The section of code which uses relativedelta is as follows:- > >

Re: Blue Screen Python

2012-09-23 Thread 88888 Dihedral
Chris Angelico於 2012年9月22日星期六UTC+8下午10時10分12秒寫道: > On Sat, Sep 22, 2012 at 11:07 PM, Steven D'Aprano > > wrote: > > > As per their partnership agreement, IBM took over development of OS/2 > > > version 2 while Microsoft worked on developing version 3. OS/2 2.0 was > > > significantly improved

A dateutil error has appeared, due to updates? How to fix?

2012-09-23 Thread tinnews
I have a python script which uses the dateutil module with the following:- import sys import datetime import icalendar from dateutil.relativedelta import relativedelta The section of code which uses relativedelta is as follows:- # # # If the event is a rep

wheezy.web presentation - build modern, efficient web

2012-09-23 Thread Andriy Kornatskyy
Here are links to presentation held in Kyiv.Py (Ukraine) on September 22, 2012: "wheezy.web introduction a lightweight, high performance, high concurrency WSGI web framework with the key features to build modern, efficient web" Download from: https://bitbucket.org/akorn/wheezy.web/downloads/ F

[ANN] PyPyODBC 0.8.6 released!

2012-09-23 Thread 江文
PyPyODBC - A Pure Python ctypes ODBC module Features -Pure Python, compatible with IronPython and PyPy (tested on Win32) -Almost totally same usage as pyodbc -Simple and small - the whole module is implemented in a less than 2000 lines python script You can simply try pypy

  1   2   >