SPLASH-13 CfPs: OOPSLA | Onward! | DLS | Wavefront

2013-03-05 Thread Carl Friedrich Bolz
ACM Conference on Systems, Programming, Languages, and Applications: Software for Humanity SPLASH-13 Indiana, Indianapolis October 26-31, 2013 http://www.splashcon.org

RE: Twisted or Tornado?

2013-03-05 Thread Andriy Kornatskyy
Jake, Don't you lock yourself in twisted application server only? I doubt you will be able easily migrate to WSGI compatible application server as your needs grow. Andriy From: jake.ang...@gmail.com Date: Mon, 4 Mar 2013 10:35:41 +1100 Subject: Re: Twisted

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

2013-03-05 Thread James Griffin
[- Tue 5.Mar'13 at 2:42:07 + Steven D'Aprano :-] On Mon, 04 Mar 2013 11:09:10 -0500, David Robinow wrote: But here's what I don't understand. Why does somebody who posts as much as Steven (and thanks for that. Getting cussed at occasionally is a cheap price for

Re: Twisted or Tornado?

2013-03-05 Thread Werner Thie
Hi On 3/1/13 1:39 AM, Michael Torrie wrote: On 02/28/2013 05:28 PM, Jake Angulo wrote: My requirements for this framework in descending order: 1) Easy to use API 2) Widely available documentation / Examples / Community contributions 3) Feature-wise - kinda most that you commonly need is there

Downloading a file form a displayed table

2013-03-05 Thread Νίκος Γκρ33κ
# = # display download button for each file and downlaod it on click # =

Re: Downloading a file form a displayed table

2013-03-05 Thread Dave Angel
On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote: # = # display download button for each file and downlaod it on click #

testfixtures 3.0.0 Released!

2013-03-05 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 3.0.0. The big change for this release is that testfixtures now supports Python 2.6, 2.7, 3.2 and 3.3! As a result, some changes have been made to TempDirectory to support encoding and decoding. There's also a nice little addition

Re: Downloading a file form a displayed table

2013-03-05 Thread Dave Angel
On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote: snip for filename in os.walk(path): But os.walk() doesn't return a filename. It returns a tuple. Have you tested any of this code outside of a server? Also, you're using tabs here. They don't show up in most email programs, so

Re: Downloading a file form a displayed table

2013-03-05 Thread Νίκος Γκρ33κ
Τη Τρίτη, 5 Μαρτίου 2013 11:45:09 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε: It would be useful to actually specifying the context of this fragment of code. Presumably it's running on a web server somewhere, and you're expecting the filenames to somehow show up on a browser. Which OS and

Re: Downloading a file form a displayed table

2013-03-05 Thread Dave Angel
On 03/05/2013 04:48 AM, Νίκος Γκρ33κ wrote: Τη Τρίτη, 5 Μαρτίου 2013 11:45:09 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε: It would be useful to actually specifying the context of this fragment of code. Presumably it's running on a web server somewhere, and you're expecting the filenames to

Re: Downloading a file form a displayed table

2013-03-05 Thread Νίκος Γκρ33κ
Τη Τρίτη, 5 Μαρτίου 2013 11:51:41 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε: On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote: snip for filename in os.walk(path): But os.walk() doesn't return a filename. It returns a tuple. Have you tested any of this code outside of a

Re: Question on for loop

2013-03-05 Thread Bryan Devaney
On Monday, March 4, 2013 4:37:11 PM UTC, Ian wrote: On Mon, Mar 4, 2013 at 7:34 AM, Bryan Devaney bryan.deva...@gmail.com wrote: if character not in lettersGuessed: return True return False assuming a function is being used to pass each letter of the

Re: Downloading a file form a displayed table

2013-03-05 Thread Lele Gaifax
Νίκος Γκρ33κ nikos.gr...@gmail.com writes: How is this lien supposed to be written do to iterate over a list of filenames? for filename in list( os.walk(path) ): i tried the above but still it doesn't work out. Please learn how Python itself can help you: $ python Python 2.7.3

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

2013-03-05 Thread Mark Lawrence
On 05/03/2013 02:54, Chris Angelico wrote: On Tue, Mar 5, 2013 at 1:42 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: It's easy for him to deal with it, all he has to do is get a goat to eat the garden waste I toss over the fence, and his problem is solved. Sounds like

Re: book advice

2013-03-05 Thread Bryan Devaney
On Friday, March 1, 2013 8:59:12 PM UTC, 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

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

2013-03-05 Thread Gene Heskett
On Tuesday 05 March 2013 06:54:14 Mark Lawrence did opine: On 05/03/2013 02:54, Chris Angelico wrote: On Tue, Mar 5, 2013 at 1:42 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: It's easy for him to deal with it, all he has to do is get a goat to eat the garden waste

RE: book advice

2013-03-05 Thread fjctlzy
I suggest theses( answers from quora: https://www.quora.com/Python-programming-language-1/How-can-I-learn-to-program-in-Python): The Official Python Tutorial - docs.python.org/tutorial/ Dive Into Python, by Mark Pilgrim - www.diveintopython.net/ A Byte of Python - swaroopch.com/notes/Python

Re: Downloading a file form a displayed table

2013-03-05 Thread Νίκος Γκρ33κ
Please help me correct thois code, iam tryign ti for hours and i cant seem to get it workingit irritates me path = /home/nikos/public_html/data/files/ for filename in os.walk(path): try: #find the needed counter for the page URL

Re: Downloading a file form a displayed table

2013-03-05 Thread Joel Goldstick
On Tue, Mar 5, 2013 at 8:01 AM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote: Please help me correct thois code, iam tryign ti for hours and i cant seem to get it workingit irritates me There is no question here. No indication of what isn't working as you like. No traceback. path =

Re: Downloading a file form a displayed table

2013-03-05 Thread Mark Lawrence
On 05/03/2013 09:00, Νίκος Γκρ33κ wrote: # = # display download button for each file and downlaod it on click #

Re: Downloading a file form a displayed table

2013-03-05 Thread Νίκος Γκρ33κ
Τη Τρίτη, 5 Μαρτίου 2013 3:38:49 μ.μ. UTC+2, ο χρήστης Vytas D. έγραψε: Hi, It is really complicated to reproduce the errors you get by running your code since it involves database queries. Though one thing that really needs your attention is how you handle the results from

simple GUI environment

2013-03-05 Thread Eric Johansson
I need a simple GUI toolkits like easygui pythoncard. The main reason I discount both of those is that they are effectively dead as I can see. Last updates in the 2010/2011 range. Has there been some toolkit to replace them? And no, the existing wxpython/gtk/qt/... toolkits really aren't

Re: simple GUI environment

2013-03-05 Thread Kevin Walzer
On 3/5/13 9:20 AM, Eric Johansson wrote: The main reason I discount both of those is that they are effectively dead as I can see. Last updates in the 2010/2011 range. Why not give EasyGUI a try? The site is still active, and two years isn't without an update doesn't mean a project is dead,

Re: simple GUI environment

2013-03-05 Thread Tim Golden
On 05/03/2013 14:55, Kevin Walzer wrote: On 3/5/13 9:20 AM, Eric Johansson wrote: The main reason I discount both of those is that they are effectively dead as I can see. Last updates in the 2010/2011 range. Why not give EasyGUI a try? or PyGUI:

Recursive function

2013-03-05 Thread Ana Dionísio
Hello! I have to make a script that calculates temperature, but one of the parameters is the temperature in the iteration before, for example: temp = (temp_-1)+1 it = 0 temp = 3 it = 1 temp = 3+1 it = 2 temp = 4+1 How can I do this in a simple way? Thanks a lot! --

Re: simple GUI environment

2013-03-05 Thread Vlastimil Brom
2013/3/5 Eric Johansson e...@harvee.org: I need a simple GUI toolkits like easygui pythoncard. The main reason I discount both of those is that they are effectively dead as I can see. Last updates in the 2010/2011 range. Has there been some toolkit to replace them? And no, the existing

Psychopath Jack Wesolowski takes another spam dump on the UseNet (was: Gary Sokolich - 3463)

2013-03-05 Thread Mamma Wesolowski
Psychopath Jack Wesolowski trolling and spamming the UseNet as Gary Sokolisch sokolischspe...@moonbat.com wrote in news:tv04oi1c11wu.1gv33jqjim98d$.d...@40tude.net: 3463 W Gary Sokolich 801 Kings Road Newport Beach, CA 92663-5715 (949) 650-5379 Local PD 949-644-3681 Residence:

Re: Recursive function

2013-03-05 Thread Dave Angel
On 03/05/2013 10:32 AM, Ana Dionísio wrote: Hello! I have to make a script that calculates temperature, but one of the parameters is the temperature in the iteration before, for example: temp = (temp_-1)+1 it = 0 temp = 3 it = 1 temp = 3+1 it = 2 temp = 4+1 How can I do this in a simple

Re: Recursive function

2013-03-05 Thread Vlastimil Brom
2013/3/5 Ana Dionísio anadionisio...@gmail.com: Hello! I have to make a script that calculates temperature, but one of the parameters is the temperature in the iteration before, for example: temp = (temp_-1)+1 it = 0 temp = 3 it = 1 temp = 3+1 it = 2 temp = 4+1 How can I do this in

Re: Recursive function

2013-03-05 Thread Ana Dionísio
Yes, I simplified it a lot. I need to run it 24 times. What I don't really understand is how to put the final temperature (result) in it = 0 in temp_-1 in it =1 -- http://mail.python.org/mailman/listinfo/python-list

comment récupérer les valeurs de canvas dans python

2013-03-05 Thread olsr . kamal
comment récupérer la couleur d'un canvas ou id d'un canvas? -- http://mail.python.org/mailman/listinfo/python-list

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Νίκος Γκρ33κ
Any ideas on hopw to embed some html data at the end of each python script? -- http://mail.python.org/mailman/listinfo/python-list

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Mark Lawrence
On 05/03/2013 17:11, Νίκος Γκρ33κ wrote: Any ideas on hopw to embed some html data at the end of each python script? Write some code. -- Cheers. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding a for inside an html template for substitution

2013-03-05 Thread Roland Koebler
Hi, On Mon, Mar 04, 2013 at 09:22:38AM -0800, Ferrous Cranus wrote: can i just put the liens you provided me inside files.html and thwy will work? Thats pure pythjon code! There are several template-engines where you more or less include python-code into the template, e.g.: empy, mako,

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Joel Goldstick
On Tue, Mar 5, 2013 at 12:19 PM, Mark Lawrence breamore...@yahoo.co.ukwrote: On 05/03/2013 17:11, Νίκος Γκρ33κ wrote: Any ideas on hopw to embed some html data at the end of each python script? http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Write some code. -- Cheers.

Re: simple GUI environment

2013-03-05 Thread Eric Johansson
On 3/5/2013 10:06 AM, Tim Golden wrote: On 05/03/2013 14:55, Kevin Walzer wrote: On 3/5/13 9:20 AM, Eric Johansson wrote: The main reason I discount both of those is that they are effectively dead as I can see. Last updates in the 2010/2011 range. Why not give EasyGUI a try? or PyGUI:

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Joel Goldstick
On Tue, Mar 5, 2013 at 12:39 PM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote: But i did, I just tried this: # open html template if htmlpage.endswith('.html'): f = open( /home/nikos/public_html/ + htmlpage ) htmldata = f.read()

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Νίκος Γκρ33κ
What extra triple quote? There are 2 sets of triple quotes the counter's and the print's !! in case htmlpage variable is a .py file i must append a print '''html''' in order for .py code to absorve that code properly no? -- http://mail.python.org/mailman/listinfo/python-list

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Mark Lawrence
On 05/03/2013 17:39, Νίκος Γκρ33κ wrote: But i did, I just tried this: # open html template if htmlpage.endswith('.html'): f = open( /home/nikos/public_html/ + htmlpage ) htmldata = f.read() counter = ''' centera

collaborative editing environments

2013-03-05 Thread Eric Johansson
I finally have an intern helping me with my various accessibility projects. We need to do pair programming so he can write the code in my head that I can't express by broken hand or speech recognition (yet). The best technique with come up with so far is to use putty sessions with the same

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Dave Angel
On 03/05/2013 12:49 PM, Νίκος Γκρ33κ wrote: What extra triple quote? There are 2 sets of triple quotes the counter's and the print's !! There are 3 pairs of triple-quotes. But one pair is nested inside the other, so the interpreter will not handle it the way you apparently want. If you

Re: collaborative editing environments

2013-03-05 Thread Dave Angel
On 03/05/2013 12:56 PM, Eric Johansson wrote: I finally have an intern helping me with my various accessibility projects. We need to do pair programming so he can write the code in my head that I can't express by broken hand or speech recognition (yet). The best technique with come up with so

Re: collaborative editing environments

2013-03-05 Thread Eric Johansson
On 3/5/2013 1:38 PM, Dave Angel wrote: On 03/05/2013 12:56 PM, Eric Johansson wrote: I finally have an intern helping me with my various accessibility projects. We need to do pair programming so he can write the code in my head that I can't express by broken hand or speech recognition (yet).

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Νίκος Γκρ33κ
Let's focus on just the following snipper please: f = open( some_python_file ) htmldata = f.read() counter = ''' print( centera href=mailto:supp...@superhost.gr; img src=/data/images/mail.png /a centertable border=2

Re: Recursive function

2013-03-05 Thread Neil Cerutti
On 2013-03-05, Ana Dion?sio anadionisio...@gmail.com wrote: Yes, I simplified it a lot. I need to run it 24 times. What I don't really understand is how to put the final temperature (result) in it = 0 in temp_-1 in it =1 One way to compose a function that recurses by calling itself is to

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Joel Goldstick
On Tue, Mar 5, 2013 at 1:53 PM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote: Let's focus on just the following snipper please: f = open( some_python_file ) htmldata = f.read() counter = ''' print( centera href=mailto:supp...@superhost.gr; img

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Dave Angel
On 03/05/2013 01:53 PM, Νίκος Γκρ33κ wrote: Let's focus on just the following snipper please: Once again, I repeat. Make a fragment that contains enough information to actually run. Explain in what environment it's running, and what you hoped would happen. For example, why on earth would

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Νίκος Γκρ33κ
#open html template if htmlpage.endswith('.html'): f = open( /home/nikos/public_html/ + htmlpage ) htmldata = f.read() counter = ''' centera href=mailto:supp...@superhost.gr; img src=/data/images/mail.png /a

Config ConfigParser

2013-03-05 Thread Chuck
I'm curious about using configuration files. Can someone tell me how they are used? I'm writing a podcast catcher and would like to set up some default configurations, e.g. directory, etcOther than default directory, what are some of the things that are put in a configuration file?

Controlling number of zeros of exponent in scientific notation

2013-03-05 Thread faraz
Instead of: 1.8e-04 I need: 1.8e-004 So two zeros before the 4, instead of the default 1. -- http://mail.python.org/mailman/listinfo/python-list

Re: Controlling number of zeros of exponent in scientific notation

2013-03-05 Thread Dave Angel
On 03/05/2013 03:09 PM, fa...@squashclub.org wrote: Instead of: 1.8e-04 I need: 1.8e-004 So two zeros before the 4, instead of the default 1. You could insert a zero two characters before the end, num = 1.8e-04 num = num[:-2] + 0 + num[-2:] But to get closer to your problem, could you

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Dave Angel
On 03/05/2013 03:04 PM, Νίκος Γκρ33κ wrote: #open html template if htmlpage.endswith('.html'): f = open( /home/nikos/public_html/ + htmlpage ) htmldata = f.read() counter = ''' centera href=mailto:supp...@superhost.gr; img

Re: Config ConfigParser

2013-03-05 Thread Tim Chase
On 2013-03-05 12:09, Chuck wrote: I'm curious about using configuration files. Can someone tell me how they are used? I'm writing a podcast catcher and would like to set up some default configurations, e.g. directory, etcOther than default directory, what are some of the things that are

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Michael Ross
On Tue, 05 Mar 2013 21:04:59 +0100, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote: #open html template if htmlpage.endswith('.html'): f = open( /home/nikos/public_html/ + htmlpage ) htmldata = f.read() counter = ''' centera

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Νίκος Γκρ33κ
Τη Τρίτη, 5 Μαρτίου 2013 11:02:18 μ.μ. UTC+2, ο χρήστης Dave Angel έγραψε: In other words, you're just trying to waste our time. Thanks for telling us. Honestly, its not in my intentions to waste your time. I appreciate all the great help you have provided me in all of my questions, i

comment prendre la valeur de couleur de point dans canvas python tkinter

2013-03-05 Thread olsr . kamal
comment prendre la valeur de couleur de point dans canvas python tkinter comme : (x,y).cget('bg')!='white'??? -- http://mail.python.org/mailman/listinfo/python-list

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Michael Ross
On Tue, 05 Mar 2013 23:47:18 +0100, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote: Thank you very much! This is what i was looking for and here is my code after receiving your help. So, with the command you provided to me i can actually run the .py script ans save its output and then append

Re: simple GUI environment

2013-03-05 Thread Gregory Ewing
Eric Johansson wrote: the only thing that would make it better is if either of these kits used standard Rich text edit controls under Windows so I can speech enable these applications. PyGUI's TextEditor is based on the rich edit control in Windows. It doesn't currently expose all of its

Input wont work with if statement if it has a space

2013-03-05 Thread eli m
Hi guys, i have a program like this: (A lot of code is not included) run = 0 while run == 0: raw_input(Type in a function:) if function == Example: print (Hello World!) else: print (blah blah blah) The problem is that whenever i type in example with a space after it then it

Re: Input wont work with if statement if it has a space

2013-03-05 Thread eli m
On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote: Hi guys, i have a program like this: (A lot of code is not included) run = 0 while run == 0: raw_input(Type in a function:) if function == Example: print (Hello World!) else: print (blah blah blah)

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Νίκος Γκρ33κ
htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' + htmlpage ) htmldata = subprocess.check_output( ['/usr/bin/python', '/home/nikos/public_html/cgi-bin/' + htmlpage] ) Both of the above statemnts fail i'am afraid with the same error message. --

Re: Input wont work with if statement if it has a space

2013-03-05 Thread emile
On 03/05/2013 03:33 PM, eli m wrote: On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote: Hi guys, i have a program like this: (A lot of code is not included) run = 0 while run == 0: function = raw_input(Type in a function:) if function == Example: whenever function isn't

Re: Config ConfigParser

2013-03-05 Thread Chuck
Thanks Tim! So much stuff I haven't thought of before. Out of curiosity, what's the benefit of caching the download, instead of downloading to the final destination? So much stuff they never teach you school.So much theory not enough practice. :( --

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Michael Ross
On Wed, 06 Mar 2013 00:39:31 +0100, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote: htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' + htmlpage ) htmldata = subprocess.check_output( ['/usr/bin/python', '/home/nikos/public_html/cgi-bin/' + htmlpage] ) Both of the above

Re: Config ConfigParser

2013-03-05 Thread Tim Chase
On 2013-03-05 15:58, Chuck wrote: Thanks Tim! So much stuff I haven't thought of before. Out of curiosity, what's the benefit of caching the download, instead of downloading to the final destination? If your connection gets interrupted, the server goes down, etc, you have a partial

listbox binding..what is the current selection?

2013-03-05 Thread Rex Macey
I have a listbox with two strings Fixed and Random. It is bound by the following statement: lbLengthtype.bind('ButtonRelease-1',set_lengthtype) Here's the beginning of the set_lengthtype code: def set_lengthtype(event=None): s=lbLengthtype.get(tk.ACTIVE) print(s) . The

Re: listbox binding..what is the current selection?

2013-03-05 Thread Rick Johnson
On Tuesday, March 5, 2013 6:54:45 PM UTC-6, Rex Macey wrote: I have a listbox with two strings Fixed and Random. [...] Here's the beginning of the set_lengthtype code: def set_lengthtype(event=None): s=lbLengthtype.get(tk.ACTIVE) print(s) . The print(s) statement is for

Re: simple GUI environment

2013-03-05 Thread Eric Johansson
On 3/5/2013 6:18 PM, Gregory Ewing wrote: Eric Johansson wrote: the only thing that would make it better is if either of these kits used standard Rich text edit controls under Windows so I can speech enable these applications. PyGUI's TextEditor is based on the rich edit control in Windows.

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

2013-03-05 Thread Bob Hanson
On Wed, 27 Feb 2013 15:25:25 -0800 (PST), alex23 wrote: On Feb 27, 1:13 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: [...] do you /really/ expect that people have the time to open an issue on the bug tracker? If someone can write a paragraph on their blog or this list

Re: Input wont work with if statement if it has a space

2013-03-05 Thread eli m
On Tuesday, March 5, 2013 3:47:31 PM UTC-8, emile wrote: On 03/05/2013 03:33 PM, eli m wrote: On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote: Hi guys, i have a program like this: (A lot of code is not included) run = 0 while run == 0: function =

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

2013-03-05 Thread Bob Hanson
[Sorry for the double-post -- I somehow had Followup-To set to poster in the first post.] On Wed, 27 Feb 2013 15:25:25 -0800 (PST), alex23 wrote: On Feb 27, 1:13 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: [...] do you /really/ expect that people have the time to open an issue on

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

2013-03-05 Thread Bob Hanson
[Sorry for the double-post -- I somehow had Followup-To set to poster in the first post.] On Wed, 27 Feb 2013 15:25:25 -0800 (PST), alex23 wrote: On Feb 27, 1:13 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: [...] do you /really/ expect that people have the time to open an issue on

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

2013-03-05 Thread Mark Lawrence
On 06/03/2013 01:43, Bob Hanson wrote: On Wed, 27 Feb 2013 15:25:25 -0800 (PST), alex23 wrote: On Feb 27, 1:13 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: [...] do you /really/ expect that people have the time to open an issue on the bug tracker? If someone can write a paragraph

Re: Config ConfigParser

2013-03-05 Thread Steven D'Aprano
On Tue, 05 Mar 2013 12:09:38 -0800, Chuck wrote: I'm curious about using configuration files. Can someone tell me how they are used? I'm writing a podcast catcher and would like to set up some default configurations, e.g. directory, etcOther than default directory, what are some of the

Re: Twisted or Tornado?

2013-03-05 Thread system . healer
Second on django. This'll do. https://bitbucket.org/jespern/django-piston/ Build whatever data models you want on the back-end and start spitting out JSON with a couple lines of code. Used this to build an IAP server for iOS apps. This one hasn't gone into production yet but I know of at

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

2013-03-05 Thread Steven D'Aprano
On Tue, 05 Mar 2013 17:51:36 -0800, Bob Hanson wrote: I've tried twice to register with the bug tracker -- including just before sending this post. Both times I got something like this: Subject: Failed issue tracker submission From: Python tracker

Re: Config ConfigParser

2013-03-05 Thread Steven D'Aprano
On Tue, 05 Mar 2013 18:15:20 -0600, Tim Chase wrote: On 2013-03-05 15:58, Chuck wrote: Thanks Tim! So much stuff I haven't thought of before. Out of curiosity, what's the benefit of caching the download, instead of downloading to the final destination? If your connection gets

Re: Config ConfigParser

2013-03-05 Thread Chris Angelico
On Wed, Mar 6, 2013 at 2:31 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: What configuration settings does your podcast catcher software need? What makes you think it needs any? Don't over-engineer your application from the start. Begin with the simplest thing that works, and

Re: Config ConfigParser

2013-03-05 Thread Chuck
I guess my question was more what is a config.file why/how do I use one. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Config ConfigParser

2013-03-05 Thread Chris Angelico
On Wed, Mar 6, 2013 at 3:07 PM, Chuck galois...@gmail.com wrote: I guess my question was more what is a config.file why/how do I use one. Thanks In its simplest form, a config file is one way to change a program's behaviour without editing the code. They're helpful when you want to be able to

Re: Config ConfigParser

2013-03-05 Thread Steven D'Aprano
On Wed, 06 Mar 2013 15:19:53 +1100, Chris Angelico wrote: On Wed, Mar 6, 2013 at 3:07 PM, Chuck galois...@gmail.com wrote: I guess my question was more what is a config.file why/how do I use one. Thanks In its simplest form, a config file is one way to change a program's behaviour without

Re: simple GUI environment

2013-03-05 Thread Gregory Ewing
Eric Johansson wrote: On 3/5/2013 6:18 PM, Gregory Ewing wrote: PyGUI's TextEditor is based on the rich edit control in Windows. It doesn't currently expose all of its capabilities, but if speech is all you want, it might be sufficient. Do you know which one? Vendor Control Class Microsoft

Re: Controlling number of zeros of exponent in scientific notation

2013-03-05 Thread Terry Reedy
On 3/5/2013 3:09 PM, fa...@squashclub.org wrote: Instead of: 1.8e-04 I need: 1.8e-004 So two zeros before the 4, instead of the default 1. The standard e and g float formats do not give you that kind of control over the exponent. You have to write code that forms the string you want. You

Re: Config ConfigParser

2013-03-05 Thread Chris Angelico
On Wed, Mar 6, 2013 at 3:54 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 06 Mar 2013 15:19:53 +1100, Chris Angelico wrote: On Wed, Mar 6, 2013 at 3:07 PM, Chuck galois...@gmail.com wrote: I guess my question was more what is a config.file why/how do I use one.

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Νίκος Γκρ33κ
Τη Τετάρτη, 6 Μαρτίου 2013 2:06:33 π.μ. UTC+2, ο χρήστης Michael Ross έγραψε: On Wed, 06 Mar 2013 00:39:31 +0100, Νίκος Γκρ33κ wrote: htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' + htmlpage ) htmldata = subprocess.check_output(

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Νίκος Γκρ33κ
Τη Τετάρτη, 6 Μαρτίου 2013 2:06:33 π.μ. UTC+2, ο χρήστης Michael Ross έγραψε: check_output is available as of Python 2.7 I guess you are still on version 2.6 ? Indeed! i just checked it's Python 2.6.6: /usr/bin/python and i have asked the linxu admins @ hostgator.com to update python.

sync databse table based on current directory data without losign previous values

2013-03-05 Thread Νίκος Γκρ33κ
I'am using this snipper to read a current directory and insert all filenames into a databse and then display them. But what happens when files are get removed form the directory? The inserted records into databse remain. How can i update the databse to only contain the existing filenames

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset c31d700dea8b by Senthil Kumaran in branch '2.7': Fix Issue #12921: BaseHTTPServer's send_error should send the correct error http://hg.python.org/cpython/rev/c31d700dea8b New changeset 5126e62c60af by Senthil Kumaran in branch '3.2': Fix Issue

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Karl - thanks for your telnet debugging session output. Helped realized the problem better. So I had been thinking that sending message is okay. But had not realized that same variable name was used and was causing problem. I have gone ahead with the fix for

[issue17354] TypeError when running setup.py upload --show-response

2013-03-05 Thread Dmitry Shachnev
New submission from Dmitry Shachnev: When running `python3 setup.py sdist upload --show-response`, one may get this exception: Traceback (most recent call last): File setup.py, line 47, in module requires=['dbus'] File /usr/lib/python3.2/distutils/core.py, line 148, in setup

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: There is a test failure. which leads me to believe that Error message may probably be relied upon by some applications. FAIL: test_header_length (test.test_httpservers.BaseHTTPRequestHandlerTestCase)

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e6c46d5f77d by Senthil Kumaran in branch '2.7': Reverting the changeset c31d700dea8b made for Issue #12921 http://hg.python.org/cpython/rev/4e6c46d5f77d New changeset 637d7c953b10 by Senthil Kumaran in branch '3.2': Reverting the changeset

[issue6419] Broken test_kqueue.py on OpenBSD

2013-03-05 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: -mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6419 ___ ___

[issue15465] Improved documentation for C API version info

2013-03-05 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: Added file: http://bugs.python.org/file29313/issue15465v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15465 ___

[issue15465] Improved documentation for C API version info

2013-03-05 Thread Kushal Das
Kushal Das added the comment: version 4 of the patch contains a new column in table as Bytes as suggested by Ezio Melotti -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15465 ___

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread karl
karl added the comment: The culprit is here http://hg.python.org/cpython/file/3.3/Lib/http/server.py#l320 That an application or a person decides to send another message is ok. Designer choice. That the library is sending something optional as a test seems more uncomfortable. The list of

[issue17355] http tests testing more than the error code are fragile

2013-03-05 Thread karl
New submission from karl: Some of the tests of the HTTP Test suite are checking for the full status-line, instead of just the error code. Why is it an issue? 1. The only mandatory part in the status-line is the error code. The phrase is optional. For example the response is made of 3 parts.

[issue17355] http tests testing more than the error code are fragile

2013-03-05 Thread karl
Changes by karl karl+pythonb...@la-grange.net: -- components: +Library (Lib), Tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17355 ___ ___

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread karl
karl added the comment: Senthil, I created another bug reports for the tests which are fragile. http://bugs.python.org/issue17355 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12921 ___

[issue17025] reduce multiprocessing.Queue contention

2013-03-05 Thread Charles-François Natali
Charles-François Natali added the comment: No. I only looked at the diff and assumed both changes were for Queue. OK, great. Since you marked issue 10886 as superceded, do you intend to do the pickling in put()? Actually no, I'll reopen it. I find the performance hit important, though.

  1   2   >