Karrigell 3.0.4 published

2010-02-27 Thread Pierre Quentel
Hi, A new version of the web framework Karrigell is on line The main changes are : - more robust session management in multi-threaded and multi-process environments - Unicode management in the HTMLTags module (HTML generation in Python) - Unicode management and error reports in Karrigell

Updates about Tk

2010-02-27 Thread Fabiano
Hi, I'm going to start my little journey into the Python's lands. I have already red the old posts about but I suppose this is an evolving topic. I have understood Tk is the default Python's GUI toolkit, I have also read that version 8.5 has native widgets and visual improvements. My question is:

Re: Karrigell 3.0.4 published

2010-02-27 Thread Pierre Quentel
On 27 fév, 08:57, Pierre Quentel quentel.pie...@wanadoo.fr wrote: Hi, A new version of the web framework Karrigell is on line The main changes are : - more robust session management in multi-threaded and multi-process environments - Unicode management in the HTMLTags module (HTML

Re: Updates about Tk

2010-02-27 Thread Sean DiZazzo
Are the new Tk comaprable with other toolkits(Qt, GTK,Wx?)? Does Tk lack other features compared to the Qt,GTK,Wx...? (Or: is there things you can't simply do with Tk?) Thanks in advance for replying tkinter is a good starting point. You can get some definite benefits going to wx or Qt. I

Re: Karrigell 3.0.4 published

2010-02-27 Thread jkn
Hi Pierre Oops ! wrong group, sorry. It's for c.l.p.announce Well, I for one was happy to learn of this release here - thanks J^n -- http://mail.python.org/mailman/listinfo/python-list

Re: Signature-based Function Overloading in Python

2010-02-27 Thread alex23
Michael Rudolf spamfres...@ch3ka.de wrote: In Java, Method Overloading is my best friend Guido wrote a nice article[1] on multimethods using decorators, which Ian Bicking followed up on[2] with a non-global approach. 1: http://www.artima.com/weblogs/viewpost.jsp?thread=101605 2:

Re: Exception in pydoc

2010-02-27 Thread Florian Ludwig
On Fri, 2010-02-26 at 13:49 -0300, Ricardo Aráoz wrote: Does pydoc only deal with ASCII? UTF-8 in docstrings works for me. Maybe: * Its actually not UTF-8 * The console you're using doesn't support UTF-8 well (note: I'm on linux, maybe its a problem with windows?) code #!/usr/bin/env

Python dos2unix one liner

2010-02-27 Thread @ Rocteur CC
Hi, This morning I am working though Building Skills in Python and was having problems with string.strip. Then I found the input file I was using was in DOS format and I thought it be best to convert it to UNIX and so I started to type perl -i -pe 's/ and then I though, wait, I'm

Re: Python dos2unix one liner

2010-02-27 Thread Martin P. Hellwig
On 02/27/10 09:36, @ Rocteur CC wrote: cut dos2unix oneliners;python vs perl/sed/awk Hi a couple of fragmented things popped in my head reading your question, non of them is very constructive though in what you actually want, but here it goes anyway. - Oneline through away script with re as a

Re: Python dos2unix one liner

2010-02-27 Thread Peter Otten
@ Rocteur CC wrote: But then I found http://wiki.python.org/moin/Powerful%20Python%20One-Liners and tried this: cat file.dos | python -c import sys,re; [sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in sys.stdin] file.unix And it works.. - Don't build list

Re: Python dos2unix one liner

2010-02-27 Thread Steven D'Aprano
On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote: cat file.dos | python -c import sys,re; [sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in sys.stdin] file.unix Holy cow!!! Calling a regex just for a straight literal-to-literal string replacement! You've been

Re: DreamPie - The Python shell you've always dreamed about!

2010-02-27 Thread Steven D'Aprano
On Fri, 26 Feb 2010 21:31:47 -0800, alex23 wrote: Mensanator mensana...@aol.com wrote: You're not getting the point. If every link has to be accompanied by a summary of all of the information at the end of it, what point is there to linking? (Programmers are the _only_ people I know of

Re: Variable definition

2010-02-27 Thread Andreas Waldenburger
On 27 Feb 2010 03:33:57 GMT Steven D'Aprano st...@remove-this-cybersource.com.au wrote: exec 'myPrefix_turquoise' = 42 Not quite: In [1]: exec 'myPrefix_turquoise' = 42 File string, line 1 SyntaxError: can't assign to literal

Call For Manuscripts: International Journal of Signal Processing (IJSP)

2010-02-27 Thread org ijsp
Call For Manuscripts The Journal is currently accepting original high-quality research manuscripts for publication. The Journal welcomes the submission of manuscripts that meet the scientific criteria of significance and academic excellence. All research articles submitted for the journal will be

Re: Python dos2unix one liner

2010-02-27 Thread @ Rocteur CC
On 27 Feb 2010, at 12:44, Steven D'Aprano wrote: On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote: cat file.dos | python -c import sys,re; [sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in sys.stdin] file.unix Holy cow!!! Calling a regex just for a straight

Re: Docstrings considered too complicated

2010-02-27 Thread John Pinner
On Feb 24, 8:23 pm, Andreas Waldenburger use...@geekmail.invalid wrote: Hi all, a company that works with my company writes a lot of of their code in Python (lucky jerks). I've seen their code and it basically looks like this: Function that does stuff def doStuff():     while not

Re: Python dos2unix one liner

2010-02-27 Thread sstein...@gmail.com
On Feb 27, 2010, at 10:01 AM, @ Rocteur CC wrote: Nothing to do with Perl, Perl only takes a handful of characters to do this and certainly does not require the creation an intermediate file Perl may be better for you for throw-away code. Use Python for the code you want to keep (and read

Re: Python dos2unix one liner

2010-02-27 Thread Stefan Behnel
@ Rocteur CC, 27.02.2010 10:36: cat file.dos | python -c import sys,re;[sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in sys.stdin] file.unix See: http://partmaps.org/era/unix/award.html Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: importing libraries not working 2.6.4

2010-02-27 Thread Rami Chowdhury
On Friday 26 February 2010 21:49:00 Isaiah Coberly wrote: Thanks for your help Rami.. I got it working.. I did some digging around and found out that I needed to install opencv as admin.. Now Im trying to run one of the samples and up against my next chalange. Argg.. There are so many pit

Re: Python dos2unix one liner

2010-02-27 Thread Grant Edwards
On 2010-02-27, @ Rocteur CC mac...@rocteur.cc wrote: Nothing to do with Perl, Perl only takes a handful of characters to do this and certainly does not require the creation an intermediate file, Are you sure about that? Or does it just hide the intermediate file from you the way that sed -i

Re: Spam from gmail

2010-02-27 Thread Emile van Sebille
On 2/24/2010 1:52 PM Arnaud Delobelle said... a...@pythoncraft.com (Aahz) writes: That seems to miss the point to some extent. If I post my recipe for spinach lasagne here, is that spam? Are they really good? Sounds good, spinach lasagne, I don't know a recipe for them. Maybe you could

Re: Updates about Tk

2010-02-27 Thread Kevin Walzer
On 2/27/10 3:05 AM, Fabiano wrote: Hi, I'm going to start my little journey into the Python's lands. I have already red the old posts about but I suppose this is an evolving topic. I have understood Tk is the default Python's GUI toolkit, I have also read that version 8.5 has native widgets and

Re: importing libraries not working 2.6.4

2010-02-27 Thread Isaiah Coberly
Will do.. Thanks again.. Sent from my iPhone On Feb 27, 2010, at 8:36 AM, Rami Chowdhury rami.chowdh...@gmail.com wrote: On Friday 26 February 2010 21:49:00 Isaiah Coberly wrote: Thanks for your help Rami.. I got it working.. I did some digging around and found out that I needed to

Re: Docstrings considered too complicated

2010-02-27 Thread John Bokma
Steven D'Aprano st...@remove-this-cybersource.com.au writes: Also, some assemblies perform the move in different directions according to the arguments. So you might have: mv AX,BX ; move contents of BX into AX mv @CX,DX ; move contents of @CX into DX Horrible, yes, but apparently some

Re: Python dos2unix one liner

2010-02-27 Thread John Bokma
sstein...@gmail.com sstein...@gmail.com writes: On Feb 27, 2010, at 10:01 AM, @ Rocteur CC wrote: Nothing to do with Perl, Perl only takes a handful of characters to do this and certainly does not require the creation an intermediate file Perl may be better for you for throw-away code. Use

Re: Updates about Tk

2010-02-27 Thread rantingrick
On Feb 27, 11:11 am, Kevin Walzer k...@codebykevin.com wrote: (...snip...) Kevin Walzer Code by Kevinhttp://www.codebykevin.com Great post Kevin! The only thing i would like to add are my two favorite references for learning Tkinter. They are not geared around the new ttk stuff, but still 95%

Re: Challenge: escape from the pysandbox

2010-02-27 Thread Daniel Fetchinson
On 2/26/10, Victor Stinner victor.stin...@haypocalc.com wrote: Le vendredi 26 février 2010 15:37:43, Daniel Fetchinson a écrit : pysandbox is a new Python sandbox project Out of curiosity, the python sandbox behind google app engine is open source? If so, how is it different from your

Re: Python dos2unix one liner

2010-02-27 Thread Alf P. Steinbach
* @ Rocteur CC: On 27 Feb 2010, at 12:44, Steven D'Aprano wrote: On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote: cat file.dos | python -c import sys,re; [sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in sys.stdin] file.unix Holy cow!!! Calling a regex just for

Re: Python dos2unix one liner

2010-02-27 Thread Steven D'Aprano
On Sat, 27 Feb 2010 16:01:53 +0100, @ Rocteur CC wrote: On 27 Feb 2010, at 12:44, Steven D'Aprano wrote: On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote: cat file.dos | python -c import sys,re; [sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in sys.stdin] file.unix

Re: Python dos2unix one liner

2010-02-27 Thread sstein...@gmail.com
On Feb 27, 2010, at 12:27 PM, John Bokma wrote: sstein...@gmail.com sstein...@gmail.com writes: On Feb 27, 2010, at 10:01 AM, @ Rocteur CC wrote: Nothing to do with Perl, Perl only takes a handful of characters to do this and certainly does not require the creation an intermediate file

Re: Python dos2unix one liner

2010-02-27 Thread Grant Edwards
On 2010-02-27, @ Rocteur CC mac...@rocteur.cc wrote: On 27 Feb 2010, at 12:44, Steven D'Aprano wrote: On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote: cat file.dos | python -c import sys,re; [sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in sys.stdin] file.unix

Re: Docstrings considered too complicated

2010-02-27 Thread Andreas Waldenburger
On Sat, 27 Feb 2010 07:29:46 -0800 (PST) John Pinner funth...@gmail.com wrote: A good way to control Python contractors is (given that firstly there are functional specifications to comply with, and tests to pass) is to impose the following condition: that all code delivered must reach a

Re: Python dos2unix one liner

2010-02-27 Thread John Bokma
sstein...@gmail.com sstein...@gmail.com writes: I'm not sure how use it for what it's good for has anything to do with toes. I've the feeling that some people who use Python are easily offended by everthing Perl related. Which is silly; zealotism in general is, for that matter. I've written

Re: Python dos2unix one liner

2010-02-27 Thread ssteinerx
On Feb 27, 2010, at 1:15 PM, John Bokma wrote: I sure don't want to maintain Perl applications though; even ones I've written. Ouch, I am afraid that that tells a lot about your Perl programming skills. Nah, it tells you about my preferences. I can, and have, written maintainable things

Re: Karrigell 3.0.4 published

2010-02-27 Thread Terry Reedy
On 2/27/2010 3:21 AM, Pierre Quentel wrote: Oops ! wrong group, sorry. It's for c.l.p.announce Announcements also come to c.l.p and python-list. C.l.p.a should be a low-traffic subset, perhaps with followups set to c.l.p for discussion. --

Re: Python dos2unix one liner

2010-02-27 Thread Aahz
In article 87mxyuzj13@castleamber.com, John Bokma j...@castleamber.com wrote: Amusing how long those Python toes can be. In several replies I have noticed (often clueless) opinions on Perl. When do people learn that a language is just a tool to do a job? When do people learn that language

Re: Bizarre arithmetic results

2010-02-27 Thread Aahz
In article pan.2010.02.23.08.11...@remove.this.cybersource.com.au, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: [st...@sylar ~]$ cat ws-example.rb Ahhh, you're a Heroes fan. ;-) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Many customs in

stripping fields from xml file into a csv

2010-02-27 Thread Hal Styli
Hello, Can someone please help. I have a sed solution to the problems below but would like to rewrite in python... I need to strip out some data from a quirky xml file into a csv: from something like this . cust=dick product=eggs ... quantity=12 cust=tom product=milk

Re: Spam from gmail

2010-02-27 Thread Aahz
In article mailman.328.1267290305.4577.python-l...@python.org, Emile van Sebille em...@fenx.com wrote: On 2/24/2010 1:52 PM Arnaud Delobelle said... a...@pythoncraft.com (Aahz) writes: That seems to miss the point to some extent. If I post my recipe for spinach lasagne here, is that spam?

Re: stripping fields from xml file into a csv

2010-02-27 Thread John Bokma
Hal Styli silly...@yahoo.com writes: Hello, Can someone please help. I have a sed solution to the problems below but would like to rewrite in python... I need to strip out some data from a quirky xml file into a csv: from something like this . cust=dick product=eggs ...

Re: scope of generators, class variables, resulting in global na

2010-02-27 Thread dontspamleo
I think a big part of the problem is that the scoping rules in Python are inconsistent because classes are a different kind of object. An example helps: This works: x = 1 def f(y): return y + x This works: def f(): x = 1 def g(y): return x + y return g(2) But this doesn't work... class

Re: scope of generators, class variables, resulting in global na

2010-02-27 Thread sstein...@gmail.com
On Feb 27, 2010, at 6:57 PM, dontspamleo wrote: http://bioscreencastwiki.com/Python_Variable_scope_gymnastics Broken link: Site settings could not be loaded We were unable to locate the API to request site settings. Please see below for debugging information. HTTP Response Status Code:

Re: python dowload

2010-02-27 Thread Aahz
In article 2fwdnxofjat-whnwnz2dnuvz_rgdn...@insightbb.com, monkeys paw mon...@joemoney.net wrote: On 2/23/2010 3:17 PM, Tim Chase wrote: Sure you don't need this to be 'wb' instead of 'w'? 'wb' does the trick. Thanks all! import urllib2 a = open('adobe.pdf', 'wb') i = 0 for line in

Pyrhon2.5 to 2.4 conversion

2010-02-27 Thread tarek...@gmail.com
Hi, I am currently using oauth2.py library, and it works fine on one of my PC's (python2.5), but later on when I tried to use it with python2.4 the following line (line 332 in http://github.com/simplegeo/python-oauth2/blob/master/oauth2/__init__.py) showed a syntax error items = [(k, v if

Re: Pyrhon2.5 to 2.4 conversion

2010-02-27 Thread Benjamin Kaplan
On Sat, Feb 27, 2010 at 8:41 PM, tarek...@gmail.com tarek...@gmail.comwrote: Hi, I am currently using oauth2.py library, and it works fine on one of my PC's (python2.5), but later on when I tried to use it with python2.4 the following line (line 332 in

help with Python installation

2010-02-27 Thread gujax
Hi, I have been trying to install python on my Win ME system for over two years - gave up for a while and now I am back with a resolve to solve the problem. I tried all versions of python but having installation problems for all. Installation does not proceed and I get a message saying dll

Re: stripping fields from xml file into a csv

2010-02-27 Thread Zaphod
On Sat, 27 Feb 2010 12:50:38 -0800, Hal Styli wrote: Hello, Can someone please help. I have a sed solution to the problems below but would like to rewrite in python... I need to strip out some data from a quirky xml file into a csv: from something like this . cust=dick

Re: Pyrhon2.5 to 2.4 conversion

2010-02-27 Thread Chris Rebert
On Sat, Feb 27, 2010 at 5:41 PM, tarek...@gmail.com tarek...@gmail.com wrote: Hi, I am currently using oauth2.py library, and it works fine on one of my PC's (python2.5), but later on when I tried to use it with python2.4 the following line (line 332 in

Re: staticmethod and namespaces

2010-02-27 Thread Gregory Ewing
darnzen wrote: Well, I got around this mess by putting all those static callbacks into a separate module in a new class. I set them up to call a bound method of that class which passes the arguments to the appropriate bound methods of other class instances. I just have to keep a little dict of

Re: Pyrhon2.5 to 2.4 conversion

2010-02-27 Thread Steven D'Aprano
On Sat, 27 Feb 2010 17:41:09 -0800, tarek...@gmail.com wrote: Hi, I am currently using oauth2.py library, and it works fine on one of my PC's (python2.5), but later on when I tried to use it with python2.4 the following line (line 332 in

Re: Python dos2unix one liner

2010-02-27 Thread Steven D'Aprano
On Sat, 27 Feb 2010 11:27:04 -0600, John Bokma wrote: When do people learn that a language is just a tool to do a job? When do people learn that there are different sorts of tools? A professional wouldn't use a screwdriver when they need a hammer. Perl has strengths: it can be *extremely*

Re: Pyrhon2.5 to 2.4 conversion

2010-02-27 Thread MRAB
tarek...@gmail.com wrote: Hi, I am currently using oauth2.py library, and it works fine on one of my PC's (python2.5), but later on when I tried to use it with python2.4 the following line (line 332 in http://github.com/simplegeo/python-oauth2/blob/master/oauth2/__init__.py) showed a syntax

Re: Docstrings considered too complicated

2010-02-27 Thread Gregory Ewing
Mel wrote: You could think of it as a not bad use of the design principle Clear The Simple Stuff Out Of The Way First. Destinations are commonly a lot simpler than sources That's not usually true in assembly languages, though, where the source and destination are both very restricted and

Re: python dowload

2010-02-27 Thread Tim Chase
Aahz wrote: monkeys paw mon...@joemoney.net wrote: On 2/23/2010 3:17 PM, Tim Chase wrote: Sure you don't need this to be 'wb' instead of 'w'? 'wb' does the trick. Thanks all! import urllib2 a = open('adobe.pdf', 'wb') i = 0 for line in

Re: help with Python installation

2010-02-27 Thread rantingrick
On Feb 27, 7:48 pm, gujax rjngrj2...@gmail.com wrote: Hi, I have been trying to install python on my Win ME system for over two years - Wow 2 years!, you must have the patience of a saint! Installation does not proceed and I get a message saying dll required for installation could not be

Re: help with Python installation

2010-02-27 Thread sstein...@gmail.com
I do not even know what to do next. I also tried Activepython. It installs but when I try to open it from Start-Programs-ActivePython 2.6, I get an error window saying - upgrade windows. Hmm, have you tried upgrading windows, just a wild guess! Hey, not everyone can afford to upgrade

Re: help with Python installation

2010-02-27 Thread Rick Dooling
Hi, I have been trying to install python on my Win ME system Try this: http://tinyurl.com/w7wgp RD -- http://mail.python.org/mailman/listinfo/python-list

Re: scope of generators, class variables, resulting in global na

2010-02-27 Thread Steven D'Aprano
On Sat, 27 Feb 2010 15:57:15 -0800, dontspamleo wrote: I think a big part of the problem is that the scoping rules in Python are inconsistent because classes are a different kind of object. An example helps: [...] But this doesn't work... class C: x = 1 def f(self,y): return x + y

Re: Docstrings considered too complicated

2010-02-27 Thread MRAB
Gregory Ewing wrote: Mel wrote: You could think of it as a not bad use of the design principle Clear The Simple Stuff Out Of The Way First. Destinations are commonly a lot simpler than sources That's not usually true in assembly languages, though, where the source and destination are both

Re: help with Python installation

2010-02-27 Thread Steve Holden
Rick Dooling wrote: Hi, I have been trying to install python on my Win ME system Try this: http://tinyurl.com/w7wgp That explains how to install Python on Windows *XP*. Windows ME is no longer a supported platform - the tools used to create it just aren't able to support platforms that

Re: help with Python installation

2010-02-27 Thread staticd
On Feb 27, 8:48 pm, gujax rjngrj2...@gmail.com wrote: I have been trying to install python on my Win ME system for over two years - gave up for a while and now I am back with a resolve to solve the problem. Dude. Give up. There are a ton of __free__ distroz of linux out there. Your

Re: help with Python installation

2010-02-27 Thread Arnaud Delobelle
On 28 Feb, 01:48, gujax rjngrj2...@gmail.com wrote: Hi, I have been trying to install python on my Win ME system for over two years - gave up for a while and now I am back with a resolve to solve the problem. I tried all versions of python but having installation problems for all.

Re: Python dos2unix one liner

2010-02-27 Thread staticd
Amusing how long those Python toes can be. In several replies I have noticed (often clueless) opinions on Perl. When do people learn that a language is just a tool to do a job? When do people learn that language makes a difference?  I used to be a Perl programmer; these days, you'd have to

Re: stripping fields from xml file into a csv

2010-02-27 Thread Hai Vu
On Feb 27, 12:50 pm, Hal Styli silly...@yahoo.com wrote: Hello, Can someone please help. I have a sed solution to the problems below but would like to rewrite in python... I need to strip out some data from a quirky xml file into a csv: from something like this . cust=dick

Re: random.gauss: range

2010-02-27 Thread Gregory Ewing
Steven D'Aprano wrote: def pinned_gaussian(a, b, mu, sigma): Return a Gaussian random number pinned to [a, b]. return min(b, max(a, random.gauss(mu, sigma))) def truncated_gauss(a, b, mu, sigma): Return a random number from a truncated Gaussian distribution. while 1: x =

Re: Turtle graphics speed(). Seems broken

2010-02-27 Thread Dr. Phillip M. Feldman
Stefan Behnel-3 wrote: alexander@gmail.com wrote: I think the speed function may be broken from the turtle graphics package from turtle import * speed('fastest') forward(50) I have tried all of the different speed settings, but I get no change in the turtle's speed

Re: help with Python installation

2010-02-27 Thread gujax
On Feb 27, 9:36 pm, Rick Dooling rpdool...@gmail.com wrote: Hi, I have been trying to install python on my Win ME system Try this: http://tinyurl.com/w7wgp RD I gave it a shot but the site installs the same version of ActivePython which did install on my computer but does not open any

Re: Turtle graphics speed(). Seems broken

2010-02-27 Thread Alf P. Steinbach
* Dr. Phillip M. Feldman: Stefan Behnel-3 wrote: alexander@gmail.com wrote: I think the speed function may be broken from the turtle graphics package from turtle import * speed('fastest') forward(50) I have tried all of the different speed settings, but I get no change in the

Re: help with Python installation

2010-02-27 Thread gujax
On Feb 27, 9:56 pm, staticd stat...@gmail.com wrote: On Feb 27, 8:48 pm, gujax rjngrj2...@gmail.com wrote: I have been trying to install python on my Win ME system for over two years - gave up for a while and now I am back with a resolve to solve the problem. Dude.  Give up.  There are a

Re: Signature-based Function Overloading in Python

2010-02-27 Thread Michael Rudolf
Am 27.02.2010 10:00, schrieb alex23: Michael Rudolfspamfres...@ch3ka.de wrote: In Java, Method Overloading is my best friend Guido wrote a nice article[1] on multimethods using decorators, which Ian Bicking followed up on[2] with a non-global approach. 1:

Re: Creating variables from dicts

2010-02-27 Thread Aahz
In article mailman.145.1266968505.4577.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: Luis M. González wrote: If you want a list of items, you use tuples or lists. Examples: ('a', 'm', 'p') --- this is a tuple, and it's made with parenthesis () Actually, a tuple

Re: Is this secure?

2010-02-27 Thread Aahz
In article mailman.247.1267115557.4577.python-l...@python.org, Robert Kern robert.k...@gmail.com wrote: If you are storing the password instead of making your user remember it, most platforms have some kind of keychain secure password storage. I recommend reading up on the APIs available on your

Paper Presentation Topics

2010-02-27 Thread trstrstrs trstrstrs
Paper Presentation Topics. Our database posses huge collection of topics for paper presentations in all areas. Check all our paper presentation topics at http://pptcontent.blogspot.com/ Paper Presentation Topics a href=a href=Paper presentation topics for ece/a Paper presentation topics

[issue6471] errno and strerror attributes incorrectly set on socket errors wrapped by urllib

2010-02-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Can this be fixed without breaking compatibility? It also affects Python2.7 and maybe also Python 3.x (there the error is different and might be intentional). Copy/pastable snippet to reproduce the error on 2.x: from urllib import urlopen

[issue6519] Reorder 'with' statement for files in Python Tutorial

2010-02-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: All the examples there assume that a file object called f has already been created. Using a 'with' there it's not a good idea because the users will have to keep the instructions indented under the 'with'. However I agree that it would be

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2010-02-27 Thread Alexander Sulfrian
New submission from Alexander Sulfrian alexan...@sulfrian.net: Hi, if using ccache (CC=ccache gcc --flags, CXX=g++) distutils will try to execute something like g++ gcc --flags as linker for c++ libraries. Patch attached. Alex -- assignee: tarek components: Distutils files:

[issue7793] regrtest fails with RuntimeError: maximum recursion depth exceeded in some cases

2010-02-27 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Fixed in r78497. -- resolution: accepted - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7793

[issue4199] add shorthand global and nonlocal statements

2010-02-27 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I do think a brief discussion after the moratorium is over would be good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4199 ___

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-02-27 Thread 5houston
New submission from 5houston cadab...@gmail.com: Try to execute python -OO crashingMain.py using python 3.1 or 3.1.1. It creates and starts 5 SendingProcess(es). SendingProcess inherits from multiprocessing.Process and multiprocessing.queue.Queue. Each process starts a loop. In the meanwhile

[issue8029] bug in 2to3 dealing with print FOO, followed by sys.stdout.write('')

2010-02-27 Thread Trent Mick
New submission from Trent Mick tre...@gmail.com: According to http://docs.python.org/reference/simple_stmts.html#the-print-statement the following with result in the print statement NOT printing a trailing space: import sys print uASD,; sys.stdout.write(u) However, 2to3 currently

[issue7232] Support of 'with' statement fo TarFile class

2010-02-27 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: What about changing the exception test to something like what I did in issue7232.4.diff? That is definitely more succinct, but Lars' solution provides more information about _why_ the test fails. IMHO, the descriptiveness is more important

[issue7162] 2to3 does not convert __builtins__.file

2010-02-27 Thread Ryan Coyner
Ryan Coyner rcoy...@gmail.com added the comment: Patch attached. Unit test and documentation included. COMMITMSG: Adds a new fixer to lib2to3 which replaces the deprecated builtin file with open. -- keywords: +patch nosy: +rcoyner Added file:

[issue7232] Support of 'with' statement fo TarFile class

2010-02-27 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Good point. How about version 5? It uses base Exception in the context manager, which will allow us to differentiate between no exception being raised, and the wrong one being raised. After the context manager, we check the type of the exception

[issue7232] Support of 'with' statement fo TarFile class

2010-02-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello Minor note: I think magic methods shouldn’t have docstrings, because their name is enough doc (or at least enough to go read the doc). At most a one-line comment like “context protocol” can be useful. (The exception is __init__, which