LG Optimus Black review

2013-03-01 Thread 23alagmy
LG Optimus Black review http://natigtas7ab.blogspot.com/2012/10/lg-optimus-black-review.html -- http://mail.python.org/mailman/listinfo/python-list

Vodafone Smart review

2013-03-01 Thread 23alagmy
Vodafone Smart review http://natigtas7ab.blogspot.com/2012/10/vodafone-smart-review.html -- http://mail.python.org/mailman/listinfo/python-list

Re: "No symbol" error using pystack gdb macro

2013-03-01 Thread dieter
de...@josesmex.com writes: > I'm relatively new to Python, running Python 3.3 on FreeBSD > > I have a process which has started to spike CPU usage. I'm trying to find > out what it's doing. > > I tried the "pystack" macro suggested here: > > http://stackoverflow.com/questions/132058/showing-the-

Re: [Python-ideas] string.format() default variable assignment

2013-03-01 Thread Chris Angelico
On Sat, Mar 2, 2013 at 5:09 PM, Devin Jeanpierre wrote: > On Fri, Mar 1, 2013 at 10:54 PM, Chris Angelico wrote: >>> No offence Chris, but you're the only person I know who *regularly* >>> replies to the wrong list. Does your mail client not have a "Reply to >>> List" command, or "Reply All"? If

How to install development package on linux?

2013-03-01 Thread Sarbjit singh
Sorry for this basic question but I am having problem compiling mod_wsgi on Linux. As per mod_wsgi package site, user must have python development package installed on system. I had installed Python2.7 on my Linux system from source code, using the following configuration few months back :- ./

Re: [Python-ideas] string.format() default variable assignment

2013-03-01 Thread Devin Jeanpierre
On Fri, Mar 1, 2013 at 10:54 PM, Chris Angelico wrote: >> No offence Chris, but you're the only person I know who *regularly* >> replies to the wrong list. Does your mail client not have a "Reply to >> List" command, or "Reply All"? If so, then you should use it rather than >> manually typing the

Re: [Python-ideas] string.format() default variable assignment

2013-03-01 Thread Chris Angelico
On Sat, Mar 2, 2013 at 12:43 PM, Steven D'Aprano wrote: > On Sat, 02 Mar 2013 04:07:19 +1100, Chris Angelico replied to a thread of > Python-ideas: > >> You're asking for a facility whereby variables magically get pulled from >> the caller's scope. > > As interesting as that is, I think you sent i

Re: Having problems crashing IDLE

2013-03-01 Thread Quintessence
Thank you for the advice! I checked the setting you specified and "Open Shell Window" at startup was already selected. Is there another bug this could be related to? Thank you! On Friday, March 1, 2013 3:00:40 AM UTC-5, Peter Otten wrote: > Quintessence wrote: > > > > > I've been learning Py

Re: book advice

2013-03-01 Thread Dave Angel
On 03/01/2013 03:59 PM, leonardo selmi wrote: hi is there anyone can suggest me a good book to learn python? i read many but there is always something unclear or examples which give me errors. how can I start building a sound educational background thanks for any help best regards The ques

Re: Speeding up Python's exit

2013-03-01 Thread Jason Swails
On Fri, Mar 1, 2013 at 5:51 PM, Antoine Pitrou wrote: > Dave Angel davea.name> writes: > > > > Note he didn't say the python buffers would be flushed. It's the OS > > buffers that are flushed. > > Now please read my message again. The OS buffers are *not* flushed > according > to POSIX. > I ha

Re: Store a variable permanently

2013-03-01 Thread Steven D'Aprano
On Fri, 01 Mar 2013 11:19:22 +0100, Jean-Michel Pichavant wrote: > - Original Message - >> So i have a variable called funds that i want to store the value of >> even after the program is exited. My funds variable holds the total >> value of funds i have. I add a certain number of funds ea

Re: Store a variable permanently

2013-03-01 Thread Roy Smith
In article <51315957$0$30001$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > On Fri, 01 Mar 2013 07:42:38 -0700, Michael Torrie wrote: > > > Another solution is to use a database system. Either SQLite > > (file-based) or something server-based like PosgreSQL or MariaDB. > > The

Re: Store a variable permanently

2013-03-01 Thread Modulok
>> Installing and running a database for a single integer is like using a >> using a bulldozer for moving your keyboard half an inch to the left. I'd like to see that sometime XD -Modulok- -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-01 Thread Steven D'Aprano
On Fri, 01 Mar 2013 08:48:34 +0100, Stefan Behnel wrote: > Steven D'Aprano, 01.03.2013 04:47: >> On Thu, 28 Feb 2013 22:03:09 +0100, Stefan Behnel wrote: >> >>> The most widely used static Python compiler is Cython >> >> Cython is not a Python compiler. Cython code will not run in a vanilla >> P

Re: Store a variable permanently

2013-03-01 Thread Steven D'Aprano
On Fri, 01 Mar 2013 07:42:38 -0700, Michael Torrie wrote: > Another solution is to use a database system. Either SQLite > (file-based) or something server-based like PosgreSQL or MariaDB. The data in this case is a single integer value. Installing and running a database for a single integer is

Re: [Python-ideas] string.format() default variable assignment

2013-03-01 Thread Steven D'Aprano
On Sat, 02 Mar 2013 04:07:19 +1100, Chris Angelico replied to a thread of Python-ideas: > You're asking for a facility whereby variables magically get pulled from > the caller's scope. As interesting as that is, I think you sent it to the wrong list :) Again. O_o No offence Chris, but you're

Re: Best way to convert number of minutes to hh:mm AM/PM?

2013-03-01 Thread Cameron Simpson
On 01Mar2013 16:12, andydtay...@gmail.com wrote: | I need to create a list of equally spaced times (as in hh:mm | AM/PM) within a day to loop through. Having selected 30 minute | intervals I figured I could: | | * Create a list from 1 to 48 | * Multiply each value by 30 | * Convert minutes to a t

Re: Best way to convert number of minutes to hh:mm AM/PM?

2013-03-01 Thread Vlastimil Brom
2013/3/2 : > Hi, > > I need to create a list of equally spaced times (as in hh:mm AM/PM) within a > day to loop through. Having selected 30 minute intervals I figured I could: > > * Create a list from 1 to 48 > * Multiply each value by 30 > * Convert minutes to a time. datetime.timedelta seems to

Re: Best way to convert number of minutes to hh:mm AM/PM?

2013-03-01 Thread MRAB
On 2013-03-02 00:12, andydtay...@gmail.com wrote: Hi, I need to create a list of equally spaced times (as in hh:mm AM/PM) within a day to loop through. Having selected 30 minute intervals I figured I could: * Create a list from 1 to 48 * Multiply each value by 30 * Convert minutes to a time. d

Best way to convert number of minutes to hh:mm AM/PM?

2013-03-01 Thread andydtaylor
Hi, I need to create a list of equally spaced times (as in hh:mm AM/PM) within a day to loop through. Having selected 30 minute intervals I figured I could: * Create a list from 1 to 48 * Multiply each value by 30 * Convert minutes to a time. datetime.timedelta seems to do this, but it's not a

Re: need for help

2013-03-01 Thread Rick Johnson
On Friday, March 1, 2013 12:35:14 PM UTC-6, leonardo selmi wrote: > class ball: > > [...] > Now that you've gotten the exceptions sorted, it may be time to join the *other* 99% of programmers by editing that class identifier. All class symbols should start with (at minimum) a capitol letter.

Re: Speeding up Python's exit

2013-03-01 Thread Antoine Pitrou
Dave Angel davea.name> writes: > > Note he didn't say the python buffers would be flushed. It's the OS > buffers that are flushed. Now please read my message again. The OS buffers are *not* flushed according to POSIX. -- http://mail.python.org/mailman/listinfo/python-list

ANN: pathlib 0.8

2013-03-01 Thread Antoine Pitrou
pathlib 0.8 has been released at https://pypi.python.org/pypi/pathlib/ Changes --- - Add PurePath.name and PurePath.anchor. - Add Path.owner and Path.group. - Add Path.replace(). - Add Path.as_uri(). - Issue #10: when creating a file with Path.open(), don't set the executable bit. - Issue

Re: book advice

2013-03-01 Thread Matty Sarro
Google "learn python the hard way" by Zed A. Shaw. It's free and fantastic. Read it, and once you're done read "The Pragmatic Programmer " On Mar 1, 2013 4:04 PM, "leonardo selmi" wrote: > hi > > is there anyone can suggest me a good book to learn python? i read many > but there is always someth

Re: need for help

2013-03-01 Thread Alister
On Fri, 01 Mar 2013 19:35:14 +0100, leonardo selmi wrote: > hi guys > > i typed the following program: > > class ball: > def _init_(self, color, size, direction): > self.color = color self.size = size self.direction = direction > > def _str_(self): > msg = 'hi, i am a '

Re: book advice

2013-03-01 Thread Joel Goldstick
On Fri, Mar 1, 2013 at 3:59 PM, leonardo selmi wrote: > hi > > is there anyone can suggest me a good book to learn python? i read many > but there is always something unclear or examples which give me errors. > how can I start building a sound educational background > start here: http://www.pyt

book advice

2013-03-01 Thread leonardo selmi
hi is there anyone can suggest me a good book to learn python? i read many but there is always something unclear or examples which give me errors. how can I start building a sound educational background thanks for any help best regards -- http://mail.python.org/mailman/listinfo/python-list

comment tracer des neoudspar Click

2013-03-01 Thread olsr . kamal
comment tracer des neouds aprés Click sur un canvas par un buttoun tkinter qui prendre les coordonnées et tracer un neoud? -- http://mail.python.org/mailman/listinfo/python-list

Re: QT Inspired web development framework for python

2013-03-01 Thread timothy crosley
Hi Ian, The intention would be to invoke WebElements at view run time, this way the developer can write code to interact with the elements and effect the produced HTML dynamically on every request Timothy -- http://mail.python.org/mailman/listinfo/python-list

Re: QT Inspired web development framework for python

2013-03-01 Thread Ian Kelly
On Fri, Mar 1, 2013 at 1:02 PM, timothy crosley wrote: > Thanks! Since it simply produces html it can integrate very cleanly with > django, or > Any other framework that allows returning raw html. To be more specific, in > django withing a view function you can return a response object that con

Re: QT Inspired web development framework for python

2013-03-01 Thread timothy crosley
Hi Michael, Thanks! Since it simply produces html it can integrate very cleanly with django, or Any other framework that allows returning raw html. To be more specific, in django withing a view function you can return a response object that contains the HTML produced by WebElements. In the fut

Re: need for help

2013-03-01 Thread Dave Angel
On 03/01/2013 01:35 PM, leonardo selmi wrote: hi guys i typed the following program: class ball: def _init_(self, color, size, direction): self.color = color self.size = size self.direction = direction def _str_(self): msg = 'hi, i am a ' + self.si

Re: need for help

2013-03-01 Thread Rob Day
It looks like you're using single underscores, not double: the methods should be __init__ and __str__. On 1 March 2013 18:35, leonardo selmi wrote: > hi guys > > i typed the following program: > > class ball: > def _init_(self, color, size, direction): > self.color = color > s

need for help

2013-03-01 Thread leonardo selmi
hi guys i typed the following program: class ball: def _init_(self, color, size, direction): self.color = color self.size = size self.direction = direction def _str_(self): msg = 'hi, i am a ' + self.size + ' ' + self.color + 'ball!' return msg my

Re: Speeding up Python's exit

2013-03-01 Thread Dave Angel
On 03/01/2013 02:10 PM, Antoine Pitrou wrote: Grant Edwards invalid.invalid> writes: All open files (including sockets, pipes, serial ports, etc) will be flushed (from an OS standpoint) and closed. According to POSIX, no, open files will not be flushed: “The _Exit() and _exit() functions s

Re: os.system() not responding on django... any reason?

2013-03-01 Thread Mark Lawrence
On 01/03/2013 16:23, Jaiky wrote: it is running in view.. When replying can you please ensure we have the complete context, otherwise we have to spend time looking, thanks. -- Cheers. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Speeding up Python's exit

2013-03-01 Thread Antoine Pitrou
Grant Edwards invalid.invalid> writes: > > > I assume that the memory used by the Python process will be reclaimed > > by the operating system, but other resources such as opened files may > > not be. > > All open files (including sockets, pipes, serial ports, etc) will be > flushed (from an OS

Re: tracer une cercle dans python tkinter?

2013-03-01 Thread Peter Otten
olsr.ka...@gmail.com wrote: > comment tracer une cercle contient un numéro au un symbole dans le center > dans python tkinter? [I hope you can cope with English] Use a Canvas widget: import tkinter as tk root = tk.Tk() canvas = tk.Canvas(root, width=240, height=240) canvas.pack() canvas.crea

Re: IMAP4_SSL and OpenSSL compatibility

2013-03-01 Thread Antoine Pitrou
W. Martin Borgert debian.org> writes: > > > > There is already the ssl_context option for that: > > http://docs.python.org/3.3/library/imaplib.html#imaplib.IMAP4_SSL > > Many thanks! Two more questions: > > 1. Is there any plan to backport this Python >= 3.3 feature to > Python 2? No, we

Re: Putting the loop inside of loop properly

2013-03-01 Thread MRAB
On 2013-03-01 18:07, Isaac Won wrote: I just would like to make my previous question simpler and I bit adjusted my code with help with Ulich and Chris. The basic structure of my code is: for c in range(5,25): for columns in ( raw.strip().split() for raw in f ): [snip] When you're us

Re: tracer une cercle dans python tkinter?

2013-03-01 Thread Karim
On 01/03/2013 19:10, Vincent Vande Vyvre wrote: Le 01/03/13 18:53, olsr.ka...@gmail.com a écrit : comment tracer une cercle contient un numéro au un symbole dans le center dans python tkinter? Posez votre question ici: http://www.developpez.net/forums/f96/autres-langages/python-zope/ Heuu

Re: tracer une cercle dans python tkinter?

2013-03-01 Thread Vincent Vande Vyvre
Le 01/03/13 18:53, olsr.ka...@gmail.com a écrit : > comment tracer une cercle contient un numéro au un symbole dans le center > dans python tkinter? Posez votre question ici: http://www.developpez.net/forums/f96/autres-langages/python-zope/ -- Vincent V.V. Oqapy .

Putting the loop inside of loop properly

2013-03-01 Thread Isaac Won
I just would like to make my previous question simpler and I bit adjusted my code with help with Ulich and Chris. The basic structure of my code is: for c in range(5,25): for columns in ( raw.strip().split() for raw in f ): a.append(columns[c]) x = np.arra

tracer une cercle dans python tkinter?

2013-03-01 Thread olsr . kamal
comment tracer une cercle contient un numéro au un symbole dans le center dans python tkinter? -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] string.format() default variable assignment

2013-03-01 Thread Chris Angelico
On Sat, Mar 2, 2013 at 3:55 AM, 김용빈 wrote: > why we bother with '{variable}'.format(variable=variable) ? > can we just '{variable}.format()' ? > > if variable is exist, then assign it. > if variable is not exist, then raise error > > I am not language expert. so sorry if this is not a good idea, o

Re: Issue with continous incrementing of unbroken sequence for a entire working day

2013-03-01 Thread Morten Engvoldsen
Hi, Yes, i think checking only date is sufficient . here is my code: from datetime import date def read_data_file(): with open("workfile.txt", 'r') as f: for line in f.readlines(): read_data = line.split(' ') return read_data def write_data_file(data): fo = open("

Re: Triple nested loop python (While loop insde of for loop inside of while loop)

2013-03-01 Thread Isaac Won
Thank you Ulich for reply, What I really want to get from this code is m1 as I told. For this purpose, for instance, values of fpsd upto second loop and that from third loop should be same, but they are not. Actually it is my main question. Thank you, Isaac On Friday, March 1, 2013 6:00:42 AM UTC

Re: os.system() not responding on django... any reason?

2013-03-01 Thread Jaiky
in django inviroment.. -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system() not responding on django... any reason?

2013-03-01 Thread Jaiky
it is running in view.. -- http://mail.python.org/mailman/listinfo/python-list

Re: Triple nested loop python (While loop insde of for loop inside of while loop)

2013-03-01 Thread Isaac Won
On Friday, March 1, 2013 7:41:05 AM UTC-6, Chris Angelico wrote: > On Fri, Mar 1, 2013 at 7:59 PM, Isaac Won wrote: > > > while c <24: > > > for columns in ( raw.strip().split() for raw in f ): > > > while d <335: > > > > Note your indentation levels: the code does not agree

Re: Triple nested loop python (While loop insde of for loop inside of while loop)

2013-03-01 Thread Isaac Won
Thank you, Chris. I just want to acculate value from y repeatedly. If y = 1,2,3...10, just have a [1,2,3...10] at onece. On Friday, March 1, 2013 7:41:05 AM UTC-6, Chris Angelico wrote: > On Fri, Mar 1, 2013 at 7:59 PM, Isaac Won wrote: > > > while c <24: > > > for columns in ( raw.strip

"No symbol" error using pystack gdb macro

2013-03-01 Thread debby
I'm relatively new to Python, running Python 3.3 on FreeBSD I have a process which has started to spike CPU usage. I'm trying to find out what it's doing. I tried the "pystack" macro suggested here: http://stackoverflow.com/questions/132058/showing-the-stack-trace-from-a-running-python-applica

Best Practices with Python

2013-03-01 Thread Stephane Wirtel
Hi all, How are you ? me ? fine ;-) I have a lot of questions about the development with Python. I want to discuss about the tools for the enhancement of the quality of a project, not about the debugging (I don't want to discuss about pdb, ipdb, pudb, ...) I use these tools 1. Documentation

Re: Speeding up Python's exit

2013-03-01 Thread Antoine Pitrou
Steven D'Aprano pearwood.info> writes: > > I just quit an interactive session using Python 2.7 on Linux. It took in > excess of twelve minutes to exit, with the load average going well past 9 > for much of that time. > > I think the reason it took so long was that Python was garbage-collecting

Re: os.system() not responding on django... any reason?

2013-03-01 Thread mar...@python.net
On Fri, Mar 1, 2013, at 09:24 AM, Roy Smith wrote: > In article <4fcc93b7-3be9-416f-a2d4-bdc6cba21...@googlegroups.com>, > Jaiky wrote: > > [a lot of code involving ssh and paramiko] > > Here's a few general suggestions: > > 1) Try to reduce this to the smallest possible amount of code which

Re: Writing to same file from two threads

2013-03-01 Thread Antoine Pitrou
Steven D'Aprano pearwood.info> writes: > > On Wed, 27 Feb 2013 13:26:18 +, Antoine Pitrou wrote: > > > For the record, binary files are thread-safe in Python 3, but text files > > are not. > > Where is this documented please? In the documentation, of course ;) http://docs.python.org/3.3/li

Re: Store a variable permanently

2013-03-01 Thread Michael Torrie
On 03/01/2013 03:19 AM, Jean-Michel Pichavant wrote: > I would serialize the data. > > http://docs.python.org/2/library/pickle.html > > funds=5 pickle.dump(funds, 'funds.pickle') > > # to reload funds: > > funds = pickle.load('funds.pickle') > > > The good thing with pickle is that it seriali

Re: [ANN] PyLint 0.27 / logilab-astng 0.24.2

2013-03-01 Thread Melton Low (devl)
Hi Sylvain, Clicking on the download linked from [1] below gives me an error. Same with logilab-astng link [2]. Not Found The requested URL /pub/pylint/pylint-0.27.0.tar.gz was not found on this server. Apache/2.2.16 (Debian) mod_ssl/2.2.16 OpenSSL/0.9.8o Server at download.logilab.org P

Re: os.system() not responding on django... any reason?

2013-03-01 Thread Roy Smith
In article <4fcc93b7-3be9-416f-a2d4-bdc6cba21...@googlegroups.com>, Jaiky wrote: [a lot of code involving ssh and paramiko] Here's a few general suggestions: 1) Try to reduce this to the smallest possible amount of code which demonstrates the problem. You gave us a page full of complicated s

os.system() not responding on django... any reason?

2013-03-01 Thread Jaiky
import sys,os sys.stderr = open('/dev/null') import paramiko sys.stderr = sys.__stderr__ os.system("echo \'s3\' >> myfile.txt ") #debug first in ssh2 def ssh2_connect(host, user, pswd, port=22): try: ssh = paramiko.SSHClient() ssh.load_system_host_keys() ssh.set_missin

Re: Issue with continous incrementing of unbroken sequence for a entire working day

2013-03-01 Thread MRAB
On 2013-03-01 09:42, Morten Engvoldsen wrote: Hi, Thanks.. :) so simply i can use time.strftime("%d%-m-%y %H:%M") , and then i can compare the date I think you're only interested in the date, not the time of day: time.strftime("%d-%m-%y") -- http://mail.python.org/mailman/listinfo/pytho

Python Trademark Dispute - Update?

2013-03-01 Thread Giles Coochey
Is there an update on the trademark dispute that was mentioned the other week on this list? I can't help but notice that the .co.uk site that was attempting to trademark the Python name no longer returns a homepage, just a 404. -- Regards, Giles Coochey, CCNA, CCNAS NetSecSpec Ltd +44 (0) 79

Re: text formatting question

2013-03-01 Thread Chris Angelico
On Sat, Mar 2, 2013 at 12:52 AM, Dave Angel wrote: > The assumption Chris made is that the characters XYC do *not* appear > anywhere else in each string. if they do, then you need to write a spec as > to what criteria you can count on for the data. > Right. I should have mentioned that. Let's ho

Re: text formatting question

2013-03-01 Thread Dave Angel
On 03/01/2013 02:08 AM, idy wrote: On Friday, March 1, 2013 12:23:41 PM UTC+5:30, Chris Angelico wrote: You want to break the line immediately before the 'XYC'? That's quite easy; the line break is a character like any other, and can be used in a replace() call: formatted_error = Error.

Re: Triple nested loop python (While loop insde of for loop inside of while loop)

2013-03-01 Thread Chris Angelico
On Fri, Mar 1, 2013 at 7:59 PM, Isaac Won wrote: > while c <24: > for columns in ( raw.strip().split() for raw in f ): > while d <335: Note your indentation levels: the code does not agree with your subject line. The third loop is not actually inside your second. Should it be? Ch

Re: Triple nested loop python (While loop insde of for loop inside of while loop)

2013-03-01 Thread Joel Goldstick
On Fri, Mar 1, 2013 at 7:00 AM, Ulrich Eckhardt < ulrich.eckha...@dominolaser.com> wrote: > Am 01.03.2013 09:59, schrieb Isaac Won: > > try to make my triple nested loop working. My code would be: >> c = 4 >> > [...] > > while c <24: >> c = c + 1 >> > > This is bad style and you shouldn

Re: In win32 and linux platform, os modules has diffreent output order, is it a bug?

2013-03-01 Thread Nobody
On Fri, 01 Mar 2013 17:24:05 +0800, Honghe Wu wrote: > Thanks! Cause I need sorted returnd list, and the arbitrary list makes the > other procedure go wrong. Maybe the I/O speed is more important in other > cases. You can sort the lists of files and subdirectories with e.g.: for root, di

Re: Triple nested loop python (While loop insde of for loop inside of while loop)

2013-03-01 Thread Ulrich Eckhardt
Am 01.03.2013 09:59, schrieb Isaac Won: try to make my triple nested loop working. My code would be: c = 4 [...] while c <24: c = c + 1 This is bad style and you shouldn't do that in python. The question that comes up for me is whether something else is modifying "c" in that loop,

Re: Do you feel bad because of the Python docs?

2013-03-01 Thread Jean-Michel Pichavant
[snip hostile replies] It's somehow funny to read such posts on a thread about someone complaining about the community python being hostile. I think we should really try to resist the urge of answering trolls because no matter how many times we slap them, they'll stay trolls and probably get eve

Re: Issue with continous incrementing of unbroken sequence for a entire working day

2013-03-01 Thread Morten Engvoldsen
Hi, I have wrote the below code for getting the serial number: look like i am able to get correct serial number: from datetime import date def read_data_file(): with open("workfile.txt", 'r') as f: for line in f.readlines(): read_data = line.split(' ') return read_data

Re: Store a variable permanently

2013-03-01 Thread Jean-Michel Pichavant
- Original Message - > So i have a variable called funds that i want to store the value of > even after the program is exited. My funds variable holds the total > value of funds i have. I add a certain number of funds each time i > run the program by entering how much i want to add. How wou

RE: Twisted or Tornado?

2013-03-01 Thread Andriy Kornatskyy
The following benchmarks are related to: a) python web frameworks http://mindref.blogspot.com/2012/09/python-fastest-web-framework.html http://mindref.blogspot.com/2012/10/python-web-routing-benchmark.html http://mindref.blogspot.com/2012/10/python-web-reverse-urls-benchmark.html http://mindref.b

Failure of Python devs to deliver - Battle Police SIG

2013-03-01 Thread Mark Lawrence
Hi all, It has become quite clear over the years that Python developers aren't doing enough to push the language forward. A Battle Police SIG will therefore be needed. Their sole task will be to ensure that all the volunteers spend their time working on Python and not frivilous pursuits lik

Re: Issue with continous incrementing of unbroken sequence for a entire working day

2013-03-01 Thread Morten Engvoldsen
Hi, Thanks.. :) so simply i can use time.strftime("%d%-m-%y %H:%M") , and then i can compare the date -- Forwarded message -- From: Chris Angelico To: python-list@python.org Cc: Date: Fri, 1 Mar 2013 18:59:16 +1100 Subject: Re: Issue with continous incrementing of unbroken

Re: Twisted or Tornado?

2013-03-01 Thread Sven
Although these articles are a _little_ old they are probably useful to help you decide which solution is most suitable for you in terms of performance http://nichol.as/benchmark-of-python-web-servers http://nichol.as/asynchronous-servers-in-python I would also be interested if any one on this lis

Re: In win32 and linux platform, os modules has diffreent output order, is it a bug?

2013-03-01 Thread Honghe Wu
Thanks! Cause I need sorted returnd list, and the arbitrary list makes the other procedure go wrong. Maybe the I/O speed is more important in other cases. On Mar 1, 2013 4:55 PM, "Chris Rebert" wrote: > On Fri, Mar 1, 2013 at 12:43 AM, Honghe Wu wrote: > > env: python 2.7.3 > > > > 6 test files'

Re: In win32 and linux platform, os modules has diffreent output order, is it a bug?

2013-03-01 Thread Chris Rebert
On Fri, Mar 1, 2013 at 12:43 AM, Honghe Wu wrote: > env: python 2.7.3 > > 6 test files' name in a directory as below: > 12ab Abc Eab a1bc acd bc > > the following is test code: > for root, dirs, files in os.walk(os.getcwd()): > print files > > the output in win32 platform is: > ['12ab', '

Re: In win32 and linux platform, os modules has diffreent output order, is it a bug?

2013-03-01 Thread Benjamin Kaplan
On Fri, Mar 1, 2013 at 12:43 AM, Honghe Wu wrote: > env: python 2.7.3 > > 6 test files' name in a directory as below: > 12ab Abc Eab a1bc acd bc > > the following is test code: > for root, dirs, files in os.walk(os.getcwd()): > print files > > the output in win32 platform is: > ['12ab', '

Triple nested loop python (While loop insde of for loop inside of while loop)

2013-03-01 Thread Isaac Won
try to make my triple nested loop working. My code would be: c = 4 y1 = [] m1 = [] std1 = [] while c <24: c = c + 1 a = [] f.seek(0,0) for columns in ( raw.strip().split() for raw in f ): a.append(columns[c])

In win32 and linux platform, os modules has diffreent output order, is it a bug?

2013-03-01 Thread Honghe Wu
env: python 2.7.3 6 test files' name in a directory as below: 12ab Abc Eab a1bc acd bc the following is test code: for root, dirs, files in os.walk(os.getcwd()): print files the output in win32 platform is: ['12ab', 'a1bc', 'Abc', 'acd', 'bc', 'Eab'] but in linux is: ['Eab', 'acd', 'a1

Re: How would you do this?

2013-03-01 Thread Jean-Michel Pichavant
- Original Message - > How would you find the slope, y intercept, and slope-intercept form > equation for a line in python? > -- > http://mail.python.org/mailman/listinfo/python-list > See http://docs.scipy.org/doc/scipy/reference/interpolate.html -- IMPORTANT NOTICE: The contents o

Re: Having problems crashing IDLE

2013-03-01 Thread Peter Otten
Quintessence wrote: > I've been learning Python over the past week or so and I keep running into > an issue where opening saved files will crash IDLE (not consistently, > sometimes the same files with no changes will open and sometimes not). I > was originally running Python 3.2.3, but I removed i

Re: Issue with continous incrementing of unbroken sequence for a entire working day

2013-03-01 Thread Chris Angelico
On Fri, Mar 1, 2013 at 6:50 PM, Morten Engvoldsen wrote: > Hi, > No i don't want user to blame when date is changed and serial number > reset when it should not. Do you think the following function will > help for this: > > import datetime as dt import pytz utc = pytz.timezone("UTC") >>>