[ANN]: Simple 0.6 (Lightweight python markdown blog)

2013-03-01 Thread tom Tom
Simple 0.6 has been released and is available from https://github.com/orf/simple Whats new in 0.6? --- * Redesigned editing interface (http://i.imgur.com/KkGtlTx.png) * Drag and drop image uploads * Better settings migration support What is Simple? ---

tox-1.4.3: quickstart command, -l option and fixes

2013-03-01 Thread holger krekel
tox 1.4.3: the Python virtualenv-based testing automatizer = tox 1.4.3 fixes some bugs and introduces a new script and two new options: - tox-quickstart - run this script, answer a few questions, and get a tox.ini

[ANN] PyLint 0.27 / logilab-astng 0.24.2

2013-03-01 Thread Sylvain Thénault
Hi there, I'm very pleased to announce the release of pylint 0.27 [1] and logilab-astng 0.24.2 [2] . There has been a lot of enhancements and bug fixes since the latest release, so you're strongly encouraged to upgrade. See ChangeLog for details. Many thanks to all the people who contributed to

WebElements - QT Inspired web development framework for python released

2013-03-01 Thread timothy . crosley
Hi Everyone, I've been working on a web development framework that integrates several popular QT features (such as a graphical template builder, signal / slots, ui's built by objects) for the last few years, and I was hoping that some people here might find it useful. If you are interested

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 mortene...@gmail.com 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 =

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 it

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 of

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',

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])

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 leopards...@gmail.com 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:

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 leopards...@gmail.com 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:

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 c...@rebertia.com wrote: On Fri, Mar 1, 2013 at 12:43 AM, Honghe Wu leopards...@gmail.com wrote: env:

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

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 ros...@gmail.com To: python-list@python.org Cc: Date: Fri, 1 Mar 2013 18:59:16 +1100 Subject: Re: Issue with continous

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

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

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 would

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: 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

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: 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,

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't do that in

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 winef...@gmail.com 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.

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: snip 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 =

Re: text formatting question

2013-03-01 Thread Chris Angelico
On Sat, Mar 2, 2013 at 12:52 AM, Dave Angel da...@davea.name 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

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)

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) --

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()

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 jaiprakashsingh...@gmail.com 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

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

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 serializes a lot

Re: Writing to same file from two threads

2013-03-01 Thread Antoine Pitrou
Steven D'Aprano steve+comp.lang.python at 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 ;)

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 jaiprakashsingh...@gmail.com wrote: [a lot of code involving ssh and paramiko] Here's a few general suggestions: 1) Try to reduce this to the smallest possible

Re: Speeding up Python's exit

2013-03-01 Thread Antoine Pitrou
Steven D'Aprano steve+comp.lang.python at 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

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

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:

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 winef...@gmail.com wrote: while c 24: for columns in

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 winef...@gmail.com 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

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: 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: 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

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 =

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

2013-03-01 Thread Chris Angelico
On Sat, Mar 2, 2013 at 3:55 AM, 김용빈 kyb...@gmail.com 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

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

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 =

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 https://launchpad.net/oqapy .

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: 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

Re: IMAP4_SSL and OpenSSL compatibility

2013-03-01 Thread Antoine Pitrou
W. Martin Borgert debacle at 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: 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()

Re: Speeding up Python's exit

2013-03-01 Thread Antoine Pitrou
Grant Edwards invalid at 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: 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 Dave Angel
On 03/01/2013 02:10 PM, Antoine Pitrou wrote: Grant Edwards invalid at invalid.invalid writes: snip 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

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

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 l.se...@icloud.com wrote: hi guys i typed the following program: class ball: def _init_(self, color, size, direction): self.color = color

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 ' +

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

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 timothy.cros...@gmail.com 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

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

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

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

Re: book advice

2013-03-01 Thread Joel Goldstick
On Fri, Mar 1, 2013 at 3:59 PM, leonardo selmi l.se...@icloud.com 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:

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 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 l.se...@icloud.com wrote: hi is there anyone can suggest me a good book to learn python? i read many but there is

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. -

Re: Speeding up Python's exit

2013-03-01 Thread Antoine Pitrou
Dave Angel davea at 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

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.

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: 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.

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

2013-03-01 Thread Vlastimil Brom
2013/3/2 andydtay...@gmail.com: 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.

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 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 | *

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: 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: 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 Python

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: Store a variable permanently

2013-03-01 Thread Roy Smith
In article 51315957$0$30001$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info 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

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 each

Re: Speeding up Python's exit

2013-03-01 Thread Jason Swails
On Fri, Mar 1, 2013 at 5:51 PM, Antoine Pitrou solip...@pitrou.net wrote: Dave Angel davea at 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

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

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 Python

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 steve+comp.lang.pyt...@pearwood.info 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

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 ros...@gmail.com 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

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 Chris Angelico
On Sat, Mar 2, 2013 at 5:09 PM, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Fri, Mar 1, 2013 at 10:54 PM, Chris Angelico ros...@gmail.com 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

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:

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

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

[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-01 Thread Ezio Melotti
New submission from Ezio Melotti: I suggest to disable the [X refs, Y blocks] ouput in debug builds by default, and provide an option to enable it if/when necessary. Most of the time these values are not necessary, and they end up getting in the way while copy/pasting code from the interpreter

[issue11955] 3.3 : test_argparse.py fails 'make test'

2013-03-01 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch adds the list of args to the output of assertRaises in case of error, e.g.: FAIL: test_failures_one_group_sysargs (test.test_argparse.TestPositionalsNargsZeroOrMoreNone) --

[issue14468] Update cloning guidelines in devguide

2013-03-01 Thread Ezio Melotti
Ezio Melotti added the comment: Yes, it should be added back in the FAQs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14468 ___ ___

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-03-01 Thread Larry Hastings
New submission from Larry Hastings: To reproduce: 1) Create a file called foo.txt in the local directory, put whatever you like in it. 2) Run python -m SimpleHTTPServer or python3 -m http.server. 3) Point your web browser at http://127.0.0.1:8000/foo.txt/;. 4) Note that the server has served

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-03-01 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17324 ___

[issue17079] Fix test discovery for test_ctypes.py

2013-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42d4a29509c4 by Ezio Melotti in branch '3.3': #17079: test_ctypes now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/42d4a29509c4 New changeset e222f24837dd by Ezio Melotti in branch 'default': #17079:

[issue17079] Fix test discovery for test_ctypes.py

2013-03-01 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17079

[issue17082] Fix test discovery for test_dbm*.py

2013-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset b62317fe1a22 by Ezio Melotti in branch '3.3': #17082: test_dbm* now work with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/b62317fe1a22 New changeset e35c053cc4ec by Ezio Melotti in branch 'default': #17082:

[issue17082] Fix test discovery for test_dbm*.py

2013-03-01 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! There are still two failures, but they will be addressed in #16935. -- assignee: - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue17325] improve organization of the PyPI distutils docs

2013-03-01 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to improve the organization of the PyPI section of the Distutils documentation, now that the information has been combined into one page. A patch is attached. Improvements include: (1) Creating a section for command options common to both

[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: The refs output also complicates testing in some cases, e.g. http://hg.python.org/cpython/file/bc4458493024/Lib/test/test_subprocess.py#l61 http://hg.python.org/cpython/file/bc4458493024/Lib/test/test_subprocess.py#l786 -- nosy: +chris.jerdonek

[issue17288] cannot jump from a return after setting f_lineno

2013-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nosying Benjamin Peterson who knows frame_setlineno (issue 14612) and nosying Jesús Cea Avión. Hoping they don't mind. This problem occurs also when setting f_lineno from an exception debug event. One may crash the interpreter (or get a SystemError: unknown

[issue17288] cannot jump from a return after setting f_lineno

2013-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: The proposed patch fixes the problem: * f_lineno cannot be set now from an exception trace function or from a return trace function. * The broken arithmetic involving a null pointer (f-f_stacktop, at the end of frame_setlineno when popping blocks that are

  1   2   >