PyCon Australia 2011: Sprints

2011-06-29 Thread Ryan Kelly
Hi Everyone, We have confirmed arrangements for two days of Sprints following PyCon Au this year. This will be a great opportunity to contribute to the Python ecosystem under the guidance of experienced developers, so bring your laptops! PyCon Australia is Australia's only conference dedicated

Cape Town Python Users Group meeting - 02/07/2011

2011-06-29 Thread Neil Muller
The next Cape Town Python Users Group meeting will this Saturday, 2nd of July, starting at 14:00. We will be using the Events room at the Bandwidth Barn. Simon Cross will talk a bit about python's Method Resolution Order. Maciej Fijałkowski will a lead a hands-on PyPy session. See

Re: Change the name with the random names in a text file

2011-06-29 Thread Chris Rebert
On Tue, Jun 28, 2011 at 12:17 PM, Amaninder Singh asingh0...@gmail.com wrote: Hi Guys, I am fairly new to the language and programing. I am trying to solve a problem in a text file. Where names are something like in this  manner [**Name2 (NI) 98**] [**Last Name (STitle) 97**]  [**First

PyCon Australia 2011: Sprints

2011-06-29 Thread Ryan Kelly
Hi Everyone, We have confirmed arrangements for two days of Sprints following PyCon Au this year. This will be a great opportunity to contribute to the Python ecosystem under the guidance of experienced developers, so bring your laptops! PyCon Australia is Australia's only conference dedicated

Re: Change the name with the random names in a text file

2011-06-29 Thread Ulrich Eckhardt
Amaninder Singh wrote: I am fairly new to the language and programing. I am trying to solve a problem in a text file. Where names are something like in this manner [**Name2 (NI) 98**] [**Last Name (STitle) 97**] [**First Name4 (NamePattern1) 93**] [**Last Name (NamePattern1) 94**]

OT, but very funny

2011-06-29 Thread Frank Millman
Hope you find the following as amusing as I did - http://www.davidnaylor.co.uk/eu-cookies-directive-interactive-guide-to-25th-may-and-what-it-means-for-you.html Background - On 26 May new legislation came into force in the UK regulating how web sites use cookies. It is the outcome of

Re: Using decorators with argument in Python

2011-06-29 Thread jigar tanna
yes for this case you will have to use @memoize() as all the arguments are optional ... Thanks, J --- On Tue, 28/6/11, Ian Kelly ian.g.ke...@gmail.com wrote: From: Ian Kelly ian.g.ke...@gmail.com Subject: Re: Using decorators with argument in Python To: Jigar Tanna poisonousratt...@gmail.com

Attribute Error in xml.sax.saxutils.XMLGenerator on Arch Linux (64bit)

2011-06-29 Thread Andreas Hasenkopf
Hi there, after switching from Ubuntu to Arch Linux I noticed a disturbing problem in a Python script I wrote (see http://sourceforge.net/projects/emcdutilityprog/files/). Using Windows (Python 2.6) and Ubuntu 11.04 (Python 2.7) I did not experience any problems. Using Arch Linux (Python 2.7) I

Re: Using decorators with argument in Python

2011-06-29 Thread jigar tanna
okie i agree with  your comment, if the case is simple we would prefer not to make it complex but if required there would be nor harm in using decorators with Arguments Thanks, J --- On Tue, 28/6/11, Lie Ryan lie.1...@gmail.com wrote: From: Lie Ryan lie.1...@gmail.com Subject: Re:

using an instance of Object as an empty class

2011-06-29 Thread AlienBaby
Hi, I'm just wondering why something is so, and whats going on under the hood. Now and again I use something like class empty(object): pass simply so I can make an instance, and set some attributes on it. a=empty() a.whatever=something Poking around with this, I assumed I could instead

Re: using an instance of Object as an empty class

2011-06-29 Thread Peter Otten
AlienBaby wrote: I'm just wondering why something is so, and whats going on under the hood. Now and again I use something like class empty(object): pass simply so I can make an instance, and set some attributes on it. a=empty() a.whatever=something Poking around with this,

Python Ldap Compiliation Issue

2011-06-29 Thread Lunershot
Hi Everyone, I am having an issue with getting python-ldap to compile in my RHEL enviroment. I am running python 2.7.2 from source, and I have the openldap-devel package installed but still can not get this to work. Here is the output: extra_compile_args: -g extra_objects: include_dirs:

Re: using an instance of Object as an empty class

2011-06-29 Thread Ulrich Eckhardt
Peter Otten wrote: Examples for classes that don't accept attributes are builtins like int, tuple, and -- obviously -- dict. You can make your own using the __slot__ mechanism: class A(object): ... __slots__ = [x, y] ... a = A() a.x = 42 a.y = yadda a.z = 123 Traceback (most

Re: using an instance of Object as an empty class

2011-06-29 Thread Christian Heimes
Am 29.06.2011 16:58, schrieb Ulrich Eckhardt: Now, follow-up question: 1. The slots are initialized to None, right? Or are they just reserved? IOW, would print a.x right after creation of the object print anything or raise an AttributeError? No, slots don't have a default value. It would

Re: Automatic placement of a text box? ie empty legend [matplotlib]

2011-06-29 Thread Christopher Barrington-Leigh
I still need help with this. I'd like to have the Sample A box place itself in the optimal empty space, so as not to overly any graphing elements (if possible): import numpy.random import matplotlib.pyplot as plt fig = plt.figure(1, figsize=(5,5)) fig.clf() ax = fig.add_subplot(111)

Re: using an instance of Object as an empty class

2011-06-29 Thread Peter Otten
Ulrich Eckhardt wrote: Peter Otten wrote: Examples for classes that don't accept attributes are builtins like int, tuple, and -- obviously -- dict. You can make your own using the __slot__ mechanism: class A(object): ... __slots__ = [x, y] ... a = A() a.x = 42 a.y = yadda a.z =

Re: using an instance of Object as an empty class

2011-06-29 Thread steve+comp . lang . python
Ulrich Eckhardt wrote: Peter Otten wrote: Examples for classes that don't accept attributes are builtins like int, tuple, and -- obviously -- dict. You can make your own using the __slot__ mechanism: class A(object): ... __slots__ = [x, y] ... a = A() a.x = 42 a.y = yadda a.z =

how to call a function for evry 10 secs

2011-06-29 Thread hisan
Hi All, I need to call a function for evry 10 secs how can i achieve this in python -- http://mail.python.org/mailman/listinfo/python-list

Safely modify a file in place -- am I doing it right?

2011-06-29 Thread steve+comp . lang . python
I have a script running under Python 2.5 that needs to modify files in place. I want to do this with some level of assurance that I won't lose data. E.g. this is not safe: def unsafe_modify(filename): fp = open(filename, 'r') data = modify(fp.read()) fp.close() fp = open(filename,

Re: how to call a function for evry 10 secs

2011-06-29 Thread Steven D'Aprano
hisan wrote: Hi All, I need to call a function for evry 10 secs how can i achieve this in python import time while True: time.sleep(10) function() -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Using decorators with argument in Python

2011-06-29 Thread John Posner
On 2:59 PM, Lie Ryan wrote: Can any of you guys explain me advantages and disadvantages of using each of them Simplicity is one, using @decor() means you have at least three-level nested functions, which means the code is likely to be very huge and perhaps unnecessarily. Bruce Eckel pointed

Re: how to call a function for evry 10 secs

2011-06-29 Thread Max Countryman
Yeah it won't work. Recursion depth will be reached. Steven's suggestion is much better. -- Max Countryman +1-917-971-8472 On Wednesday, June 29, 2011 at 2:05 PM, santosh h s wrote: how to end ths over a period of time On Wed, Jun 29, 2011 at 11:25 PM, Max Countryman m...@me.com

Re: Automatic placement of a text box? ie empty legend [matplotlib]

2011-06-29 Thread Cousin Stanley
Christopher Barrington-Leigh wrote: I'd like to have the Sample A box place itself in the optimal empty space, so as not to overlay any graphing elements (if possible): A simple alternative might be to place the label just outside of the plot region either at the top or the

Re: Safely modify a file in place -- am I doing it right?

2011-06-29 Thread Grant Edwards
On 2011-06-29, steve+comp.lang.pyt...@pearwood.info steve+comp.lang.pyt...@pearwood.info wrote: I have a script running under Python 2.5 that needs to modify files in place. I want to do this with some level of assurance that I won't lose data. E.g. this is not safe: def

Re: Using decorators with argument in Python

2011-06-29 Thread Ethan Furman
John Posner wrote: Investigating how this fact fit in with the current thread, I came up with an alternative to the three levels of def (pronounced three levels of death). Following is code for two decorators: * the first one encloses the output of a function with lines of # characters, and is

get() attribute for Entry in Tkinter

2011-06-29 Thread Robert Upton
Dear Pythoners, I am in the process of generating a simple GUI that wants to read a string and print it to the terminal after engaging a button. I am running into a problem where Python says it does not understand the get() attribute for Entry. My code is very simple and is shown below. Please

Re: Using decorators with argument in Python

2011-06-29 Thread Ian Kelly
On Wed, Jun 29, 2011 at 1:30 PM, Ethan Furman et...@stoneleaf.us wrote: How about just having one bit of code that works either way? How would you adapt that code if you wanted to be able to decorate a function that takes arguments? This also won't work if the argument to the decorator is

google docs / apps API

2011-06-29 Thread milosh zorica
am new to the list and kinda new to python too would like to meet fellow developers who work on google docs API and app engine am developing an app for that will add extra security layer to google docs -- http://mail.python.org/mailman/listinfo/python-list

Is the Usenet to mailing list gateway borked?

2011-06-29 Thread Andrew Berg
I didn't get at least two messages from the call a function every 10 seconds thread, and possibly some other messages, and I access the group via the mailing list. I use the latest stable Thunderbird, if that matters. I've only noticed this recently, and I'm still getting other messages. In fact,

Re: Safely modify a file in place -- am I doing it right?

2011-06-29 Thread Chris Torek
In article 4e0b6383$0$29996$c3e8da3$54964...@news.astraweb.com steve+comp.lang.pyt...@pearwood.info wrote: I have a script running under Python 2.5 that needs to modify files in place. I want to do this with some level of assurance that I won't lose data. ... I have come up with this approach:

Re: Is the Usenet to mailing list gateway borked?

2011-06-29 Thread Noah Hall
On Wed, Jun 29, 2011 at 9:34 PM, Andrew Berg bahamutzero8...@gmail.com wrote: I didn't get at least two messages from the call a function every 10 seconds thread, and possibly some other messages, and I access the group via the mailing list. I use the latest stable Thunderbird, if that

Re: Is the Usenet to mailing list gateway borked?

2011-06-29 Thread Andrew Berg
On 2011.06.29 03:53 PM, Noah Hall wrote: I think the more likely answer is that it was sent without being also sent to python-list. Possible, but they were two messages from two different people and happened within a few hours of each other, so it could be that the two messages didn't go

Re: Is the Usenet to mailing list gateway borked?

2011-06-29 Thread Andrew Berg
I forgot to mention I don't have Usenet access, and Google Groups' archives don't have messages from the last couple of days, so I can't check the Usenet side. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using decorators with argument in Python

2011-06-29 Thread Ethan Furman
Ian Kelly wrote: On Wed, Jun 29, 2011 at 1:30 PM, Ethan Furman et...@stoneleaf.us wrote: How about just having one bit of code that works either way? How would you adapt that code if you wanted to be able to decorate a function that takes arguments?

Re: Is the Usenet to mailing list gateway borked?

2011-06-29 Thread Patty
- Original Message - From: Andrew Berg bahamutzero8...@gmail.com To: comp.lang.python python-list@python.org Sent: Wednesday, June 29, 2011 1:34 PM Subject: Is the Usenet to mailing list gateway borked? I didn't get at least two messages from the call a function every 10 seconds

Re: Using decorators with argument in Python

2011-06-29 Thread Ian Kelly
On Wed, Jun 29, 2011 at 3:29 PM, Ethan Furman et...@stoneleaf.us wrote: 8 class enclose(object):    func = None    def __init__(self, char='#'):        self.char = char        if callable(char):  # was a function passed in

Re: get() attribute for Entry in Tkinter

2011-06-29 Thread Peter Otten
Robert Upton wrote: I am in the process of generating a simple GUI that wants to read a string and print it to the terminal after engaging a button. I am running into a problem where Python says it does not understand the get() attribute for Entry. Please don't paraphrase Python's error

Re: Using decorators with argument in Python

2011-06-29 Thread Ethan Furman
Ian Kelly wrote: @enclose def test5(string, func): print(func(string)) test5('broken', func=str.upper) Yes, that is a limitation -- one loses the func keyword for the decorated function. If I were to actually use this, I'd probably go with '_func' as the keyword. ~Ethan~ PS Thanks

Re: Is the Usenet to mailing list gateway borked?

2011-06-29 Thread Thomas 'PointedEars' Lahn
Andrew Berg wrote: […] As for your question in the Subject, I do not know since I am reading the newsgroup. Therefore, however, I can tell you that the mailing list to Usenet gateway is seriously borked, as missing References header fields are not generated by the gateway. As a result,

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2011-06-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Marking the PEP 380 implementation as a dependency, as I expect it to be easier to update this patch to cope with those changes than it would be the other way around. -- dependencies: +PEP 380 reference implementation for 3.3

[issue12417] Inappropriate copyright on profile files

2011-06-29 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Thanks Benjamin! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12417 ___ ___

[issue12352] multiprocessing.Value() hangs

2011-06-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Nice work! I also think heap_gc_deadlock_lockless.diff is good, except for Victor's reservation: is it deliberate that you reversed the following two statements in _free_pending_blocks(), compared to the code in free()? +        

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Oh, the problem is that sigwait() behaviour changes after a fork: it is interrupted if an unexpected signal is received, but the signal handler is not called. It behaves correctly (the signal handler is called) without the fork.

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 00ca0c2c7bc0 by Victor Stinner in branch 'default': Issue #12303: run sig*wait*() tests in a subprocesss http://hg.python.org/cpython/rev/00ca0c2c7bc0 -- ___ Python tracker

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: But I think we could just remove this test The test pass on Linux and FreeBSD 6 using a subprocess. I commited my patch to replace fork() by subprocess, let's see how it works on buildbots. --

[issue12439] BaseHTTPServer's send_reponse adds extra \r\n when using HTTPMessage in input

2011-06-29 Thread Yoav Weiss
New submission from Yoav Weiss yoav.weiss...@gmail.com: I'm using BaseHTTPServer's send_response (from within a class that inherits BaseHTTPRequestHandler) with the following: self.send_response(response.code, response.headers) self.end_headers() self.wfile.write(content)

[issue7117] Backport py3k float repr to trunk

2011-06-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Wondered if you guys had heard of some recent advances in the state of the art in this field. I'm sure you have, but thought I'd link it here anywhere. Quote taken from this article (which links to relevant papers):

[issue12440] test_ssl.test_options() failure on Snow Leopard: can't clear options before OpenSSL 0.9.8m

2011-06-29 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Seen on AMD64 Snow Leopard 2 3.x buildbot: = ERROR: test_options (test.test_ssl.ContextTests)

[issue12440] test_ssl.test_options() failure on Snow Leopard: can't clear options before OpenSSL 0.9.8m

2011-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The OpenSSL version linked against is OpenSSL 0.9.8r 8 Feb 2011, but apparently the source headers are still those for an earlier version, hence the apparent failure (the headers don't have the necessary API). Bill, could you please upgrade the

[issue12139] Add CCC command support to ftplib

2011-06-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12139 ___

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 949e0c0f5a38 by Victor Stinner in branch '3.2': Issue #12400: regrtest -W doesn't rerun the tests twice anymore, but captures http://hg.python.org/cpython/rev/949e0c0f5a38 New changeset 0172d40fdcd4 by Victor Stinner in branch

[issue12441] _GLOBAL_DEFAULT_TIMEOUT remains as an object() in HTTPConnection and the connection hangs

2011-06-29 Thread Juanjo Alvarez
New submission from Juanjo Alvarez juan...@gmail.com: I was testing a jsonrpc server using a small Python client. I noticed that sometimes when the RPC returned some long test, the response object returned by URLOpener.open(), in my case an HTTPResponse, would hang about 70% of the time when

[issue12441] _GLOBAL_DEFAULT_TIMEOUT remains as an object() in HTTPConnection and the connection hangs

2011-06-29 Thread Juanjo Alvarez
Juanjo Alvarez juan...@gmail.com added the comment: PS: This only happens to my on Windows XP, works perfectly under Linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12441 ___

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset af799df478c6 by Victor Stinner in branch 'default': Issue #12400: oops, remove debug code... http://hg.python.org/cpython/rev/af799df478c6 -- ___ Python tracker rep...@bugs.python.org

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 69e102bfed2b by Victor Stinner in branch '3.2': Issue #12400: remove unused variable http://hg.python.org/cpython/rev/69e102bfed2b New changeset 9d53612333c7 by Victor Stinner in branch 'default': (merge 3.2) Issue #12400: remove

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I will not backport the change in Python 2.7, because regrtest already captures stdout (but not in verbose mode), and it checks that the output is empty. -- ___ Python tracker

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 80c7d63325f6 by Victor Stinner in branch 'default': Issue #12400: fix test_faulthandler if regrtest captures sys.stderr http://hg.python.org/cpython/rev/80c7d63325f6 -- ___ Python tracker

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 74c6afbb524a by Victor Stinner in branch '3.2': Issue #12400: don't use sys.stderr in test_kqueue because it may be replaced by http://hg.python.org/cpython/rev/74c6afbb524a New changeset c0afc8d00c0a by Victor Stinner in branch

[issue12438] IDLE problem displaying warning message

2011-06-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The problem isn't with getpass, the problem is that getpass is generating a warning message on first call and idle isn't handling that correctly. Your suggested fix is probably correct. -- nosy: +r.david.murray, terry.reedy

[issue12439] BaseHTTPServer's send_reponse adds extra \r\n when using HTTPMessage in input

2011-06-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12439 ___ ___ Python-bugs-list

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 6c54c334ea7a by Victor Stinner in branch '3.2': Issue #12400: runtest() reuses the same io.StringIO instance for all calls http://hg.python.org/cpython/rev/6c54c334ea7a New changeset 8897c755633b by Victor Stinner in branch

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 2d07b1b4466a by Victor Stinner in branch '3.2': Issue #12400: regrtest, force verbose mode to True with option -W http://hg.python.org/cpython/rev/2d07b1b4466a New changeset 561974b760eb by Victor Stinner in branch 'default': (merge

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d8ba59de860a by Victor Stinner in branch '3.2': Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymore http://hg.python.org/cpython/rev/d8ba59de860a New changeset bb7c9308c846 by Victor Stinner in branch

[issue2193] Cookie Colon Name Bug

2011-06-29 Thread Luke Plant
Luke Plant l.plant...@cantab.net added the comment: First, I agree with others who say that RFCs are basically irrelevant for cookies. For Django we've discovered this in various ways e.g. issue 9824 - http://bugs.python.org/issue9824 - which has now been applied. We have also had to work

[issue2193] Cookie Colon Name Bug

2011-06-29 Thread Luke Plant
Luke Plant l.plant...@cantab.net added the comment: Same patch backported to python 2.7 branch -- Added file: http://bugs.python.org/file22514/issue2193_patch_python27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2193

[issue12406] msi.py needs updating for Python 3.3

2011-06-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Packaging has two wininst*.exe files that distutils has not. If the code already uses a glob, it should be fine; if it uses a fixed list, then we have to add an if block. -- ___ Python tracker

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hmm. I thought Antoine got rid of the output checking when he added -j support. Well, he was the one who did it, anyway, so there may be a change set you could backport to get rid of the output checking if you want to backport this to

[issue2193] Cookie Colon Name Bug

2011-06-29 Thread Luke Plant
Luke Plant l.plant...@cantab.net added the comment: Found a bug with patch - this supersedes old one. -- Added file: http://bugs.python.org/file22515/issue2193_patch_2_trunk.diff ___ Python tracker rep...@bugs.python.org

[issue2193] Cookie Colon Name Bug

2011-06-29 Thread Luke Plant
Luke Plant l.plant...@cantab.net added the comment: Same against Python 2.7 -- Added file: http://bugs.python.org/file22516/issue2193_patch_2_python27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2193

[issue2193] Cookie Colon Name Bug

2011-06-29 Thread Luke Plant
Changes by Luke Plant l.plant...@cantab.net: Removed file: http://bugs.python.org/file22513/issue2193_patch_trunk.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2193 ___

[issue2193] Cookie Colon Name Bug

2011-06-29 Thread Luke Plant
Changes by Luke Plant l.plant...@cantab.net: Removed file: http://bugs.python.org/file22514/issue2193_patch_python27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2193 ___

[issue12431] urllib2.Request.get_full_url() broken in newer versions of Python

2011-06-29 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: As Santosa said, this was discovered and fixed in 2.7 itself, surprised that you discovered it in any release Jon. If it was from a checkout, please update. -- resolution: - invalid stage: - committed/rejected status: open -

[issue2193] Cookie Colon Name Bug

2011-06-29 Thread karl
karl karl+pythonb...@la-grange.net added the comment: @Luke did you have the opportunity to look at http://greenbytes.de/tech/webdav/rfc6265.html If there is something which doesn't match reality in that document that would be cool to have feedback about it. --

[issue10403] Use member consistently

2011-06-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not -1 on using “attributes” to denote methods, since they *are* and it’s not difficult to understand, and I’m not opposed either to using “attributes” to replace “members” (i.e. attributes that are not methods.) For those wanting to see

[issue11363] Curses - add missing functions to doc

2011-06-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: A typo slipped into the 3.2 commit: x``'\033[6;4H'`` In addition, I tried the example in my shell and got a bytes/str error; that’s probably another report. -- nosy: +eric.araujo status: closed - open

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset fdb98a7ef9be by Victor Stinner in branch '3.2': Issue #12400: Add missing import (os) to test_kqueue http://hg.python.org/cpython/rev/fdb98a7ef9be New changeset 37877d19c2c9 by Victor Stinner in branch 'default': (merge 3.2) Issue

[issue7117] Backport py3k float repr to trunk

2011-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hadn't seen that. Interesting! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7117 ___ ___

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7bd23115b6c4 by Victor Stinner in branch '3.2': Issue #12400: runtest() truncates the StringIO stream before a new test http://hg.python.org/cpython/rev/7bd23115b6c4 New changeset fc831c49216d by Victor Stinner in branch 'default':

[issue2193] Cookie Colon Name Bug

2011-06-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for taking a crack at this. IMO the thing that needs to be fixed here is that receiving an invalid cookie makes it difficult to receive the valid cookies. I'd love to accept your patch, but silently ignore sounds like a bad

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: One more time, commit messages using the present tense are ambiguous: when you write “runtest() truncates the StringIO stream before a new test“, it’s not clear at all whether you describe the previous, incorrect behavior or the new, fixed one.

[issue2193] Cookie Colon Name Bug

2011-06-29 Thread Luke Plant
Luke Plant l.plant...@cantab.net added the comment: I had a quick look, and there are these relevant bits: There are two audiences for this specification: developers of cookie-generating servers and developers of cookie-consuming user agents. And: To maximize interoperability with user

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: One more time, commit messages using the present tense are ambiguous: when you write “runtest() truncates the StringIO stream before a new test“, it’s not clear at all whether you describe the previous, incorrect behavior or the

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It’s irrelevant, please provide unambiguous commit message. This was discussed two or three times already. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12400

[issue12425] gettext breaks on empty plural-forms value

2011-06-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: IIUC, this comes up with invalid po files, so this report is about graceful error handling, not strictly a bug. If https://bugzilla.redhat.com/attachment.cgi?id=489427 was applied, gettext would not fail anymore, but the invalid line would not

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset bc2f3fbda7e3 by Victor Stinner in branch '3.2': Issue #12400: test_zipimport_support doesn't restore original sys.stdout http://hg.python.org/cpython/rev/bc2f3fbda7e3 New changeset ff5abf93db80 by Victor Stinner in branch 'default':

[issue12406] msi.py needs updating for Python 3.3

2011-06-29 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Packaging has two wininst*.exe files that distutils has not. If the code already uses a glob, it should be fine; if it uses a fixed list, then we have to add an if block. Yes, it's using glob :-) --

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Eric is right. I don't see the patch when reading hg log output, or looking up revisions given by hg annotate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12400

[issue12442] shutil.disk_usage()

2011-06-29 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: Patch in attachment adds a new disk_usage() function to shutil module which retrieves total, used and free disk space given a certain path plus the percentage usage. See original discussion on python-ideas ml:

[issue12442] shutil.disk_usage()

2011-06-29 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12442 ___ ___ Python-bugs-list

[issue12442] shutil.disk_usage()

2011-06-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Typo. It's: http://mail.python.org/pipermail/python-ideas/2011-June/010480.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12442

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Eric is right. I don't see the patch when reading hg log output I'm using hg log -p. or looking up revisions given by hg annotate. hg annotate doesn't display the changelog, only the commit number or hash, which option do you

[issue12442] shutil.disk_usage()

2011-06-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12442 ___ ___

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 450209efe272 by Victor Stinner in branch '3.2': Issue #12400: regrtest.runtest() uses stream.seek(0) before .truncate() http://hg.python.org/cpython/rev/450209efe272 New changeset 3ce22f1b9540 by Victor Stinner in branch 'default':

[issue11363] Curses - add missing functions to doc

2011-06-29 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: I think the same typo is also on default (since merged from 3.2): Ezio, do you want me to upload a patch or you'll fix it? Éric: I can see the tparm() example is failing, since tgetstr() is returning bytes while it expects a string: did you

[issue7117] Backport py3k float repr to trunk

2011-06-29 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Thanks for the link :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7117 ___

[issue12443] locale.setlocale(locale.LC_ALL, locale.getlocale()) fails for some locales

2011-06-29 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone invalid@example.invalid: Consider this transcript from OS X 10.6: import locale locale.getlocale() (None, None) locale.setlocale(locale.LC_ALL, _) 'C' locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') 'en_US.UTF-8' locale.getlocale() ('en_US', 'UTF8')

[issue12443] locale.setlocale(locale.LC_ALL, locale.getlocale()) fails for some locales

2011-06-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Good news: it's a duplicate and it's already fixed! See issues #10090 and #10154. The fix is part of Python 3.1.4 (released the 12th june 2011) and Python 2.7.2 (released the 12 june 2011), and will be part of Python 3.2.1.

[issue12443] locale.setlocale(locale.LC_ALL, locale.getlocale()) fails for some locales

2011-06-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: (Python 2.6 only accepts security fixes, no more bug fixes. It's time to upgrade to 2.7!) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12443

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Eric is right. I don't see the patch when reading hg log output ... or when looking at the issue tracker. Yes, one can probably figure out the intent by looking at the whole patch but it's kind of rude to force people to do that. That's what the

[issue12444] accept sets or collections for str.strip/lstrip/rstrip

2011-06-29 Thread Peter Eisentraut
New submission from Peter Eisentraut pete...@gmx.net: It appears to be a pretty common mistake to think that the argument of str.strip/lstrip/rstrip is a substring rather than a set of characters. To allow a more clearer notation, it would be nice if these functions also accepted an argument

  1   2   >