[issue7864] Deprecation markers in unittest docs are unclear

2010-02-06 Thread Georg Brandl

Georg Brandl  added the comment:

I've added "use ... instead" now in r78018.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-06 Thread Florent Xicluna

Florent Xicluna  added the comment:

It looks fine.

Few comments:
 - "{}_python_{}" could be better, to identify the culprit for leftover 
directories.
 - the warning message may be more specific:
   "warnings.warn('tests may fail, unable to switch to ' + name,
  RuntimeWarning, stacklevel=3)"
 - style guide recommends two spaces after a sentence-ending period

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-02-06 Thread Michael Foord

Changes by Michael Foord :


--
nosy: +gregory.p.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7865] io close() swallowing exceptions

2010-02-06 Thread Pascal Chambon

New submission from Pascal Chambon :

The current semantic of io streams is to swallow IOErrors on close(), eg. in 
_pyio from the trunk, we have each time constructs like:
try:
 self.flush()
except IOError:
 pass  # If flush() fails, just give up

and in C files :
/* If flush() fails, just give up */
if (PyErr_ExceptionMatches(PyExc_IOError))
PyErr_Clear();

I'd rather advocate letting exceptions flow, as users have the right to know if 
their io operations lost bytes.
Below is a test case for these swallowed exceptions.


PS : issues like http://bugs.python.org/issue7640 are actually much more 
crucial, so we shall let them higher priority

--
components: IO
files: test_error_close.py
messages: 98940
nosy: pakal
severity: normal
status: open
title: io close() swallowing exceptions
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file16147/test_error_close.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7857] test_logging fails

2010-02-06 Thread Vinay Sajip

Changes by Vinay Sajip :


--
priority: critical -> normal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-06 Thread Meador Inge

Meador Inge  added the comment:

> if complex were made 'new-style' in 2.7, then it *would* be possible to > 
> write fairly obvious code (not using coerce or __coerce__) that operated > in 
> the same way in both 2.7 and 3.2.  So I still think it's worth 
> considering.

Agreed.  I have attached a patch with src, test, and doc changes.

--
Added file: http://bugs.python.org/file16148/issue-5211-patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-02-06 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +Merwok

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Meador Inge

Meador Inge  added the comment:

> Can you please try inserting that include  and see if 10.5 
> builds readline?

This does not work out of trunk for me:

euclid:trunk minge$ sw_vers
ProductName:Mac OS X
ProductVersion: 10.5.7
BuildVersion:   9J61
euclid:trunk minge$ svn diff
Index: Modules/readline.c
===
--- Modules/readline.c  (revision 78019)
+++ Modules/readline.c  (working copy)
@@ -6,6 +6,7 @@
 
 /* Standard definitions */
 #include "Python.h"
+#include 
 #include 
 #include 
 #include 
euclid:trunk minge$ make
---
Modules/Setup.dist is newer than Modules/Setup;
check to make sure you have all the updates you
need in your Modules/Setup file.
Usually, copying Modules/Setup.dist to Modules/Setup will work.
---
running build
running build_ext
building dbm using ndbm
building 'readline' extension
gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-I/Users/minge/Research/Languages/python/trunk/Mac/Include -IInclude 
-I./Include -I/usr/local/include 
-I/Users/minge/Research/Languages/python/trunk/Include -I. -c 
/Users/minge/Research/Languages/python/trunk/Modules/readline.c -o 
build/temp.macosx-10.4-i386-2.7/Users/minge/Research/Languages/python/trunk/Modules/readline.o
/Users/minge/Research/Languages/python/trunk/Modules/readline.c:42: error: 
conflicting types for ‘completion_matches’
/usr/include/readline/readline.h:172: error: previous declaration of 
‘completion_matches’ was here
/Users/minge/Research/Languages/python/trunk/Modules/readline.c: In function 
‘py_remove_history’:
/Users/minge/Research/Languages/python/trunk/Modules/readline.c:379: warning: 
passing argument 1 of ‘free’ discards qualifiers from pointer target type
/Users/minge/Research/Languages/python/trunk/Modules/readline.c: In function 
‘py_replace_history’:
/Users/minge/Research/Languages/python/trunk/Modules/readline.c:416: warning: 
passing argument 1 of ‘free’ discards qualifiers from pointer target type
/Users/minge/Research/Languages/python/trunk/Modules/readline.c: In function 
‘call_readline’:
/Users/minge/Research/Languages/python/trunk/Modules/readline.c:1033: warning: 
assignment discards qualifiers from pointer target type
/Users/minge/Research/Languages/python/trunk/Modules/readline.c:1036: warning: 
assignment discards qualifiers from pointer target type

Python build finished, but the necessary bits to build these modules were not 
found:
_bsddb gdbm   linuxaudiodev   
ossaudiodevspwd   sunaudiodev 
To find the necessary bits, look in setup.py in detect_modules() for the 
module's name.


Failed to build these modules:
readline  

running build_scripts

I am more than happy to run more tests with respect to this issue.  I am tired 
of seeing this build break everyday :)

--
nosy: +minge

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7866] it looks like a typo in unittest

2010-02-06 Thread Mezhenin Artyom

New submission from Mezhenin Artyom :

Try to run any test a you will see something like this:

./.py 
...
--
Ran 7 tests in 0.069s

OK

But there is no word "Ran" in English. I think the word is "Run".

--
components: Tests
messages: 98943
nosy: artech
severity: normal
status: open
title: it looks like a typo in unittest
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7866] it looks like a typo in unittest

2010-02-06 Thread Mezhenin Artyom

Mezhenin Artyom  added the comment:

Same text here:
http://docs.python.org/library/unittest.html#basic-example

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7866] it looks like a typo in unittest

2010-02-06 Thread Éric Araujo

Éric Araujo  added the comment:

Hello

“Ran” is the preterite form of “run”. It is used here because at the time of 
the print, the tests are done, it’s past.

Regards

--
nosy: +Merwok

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7866] it looks like a typo in unittest

2010-02-06 Thread Ezio Melotti

Changes by Ezio Melotti :


--
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7866] it looks like a typo in unittest

2010-02-06 Thread Mezhenin Artyom

Mezhenin Artyom  added the comment:

Sorry, I'm from Russia.

P.S. http://translate.google.com/ sucks =)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7866] it looks like a typo in unittest

2010-02-06 Thread Éric Araujo

Éric Araujo  added the comment:

No problem, I’m from France :)

And yes, automatic translation does not work. Or at least not gratis.

Cheers

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-06 Thread Florent Xicluna

Florent Xicluna  added the comment:

Patch which fixes the "relative import" issue.

 ~ $ cd Lib/
 ~ $ ../python -m test.regrtest


Note: There are some 2-spaces indents for patch readability.
  Change them before commit.

--
versions:  -Python 2.6, Python 3.1
Added file: http://bugs.python.org/file16150/issue7712_context_manager_v2.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-06 Thread Florent Xicluna

Changes by Florent Xicluna :


Removed file: http://bugs.python.org/file15956/issue7712_context_manager.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5341] A selection of spelling errors and typos throughout source

2010-02-06 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, committed as r78024, r78025, respectively.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-06 Thread Florent Xicluna

Florent Xicluna  added the comment:

Slightly more readable, without 2-spaces indent.

--
Added file: http://bugs.python.org/file16151/issue7712_context_manager_v3.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7347] Add {Create|Delete}KeyEx to _winreg, doc and test updates

2010-02-06 Thread Brian Curtin

Brian Curtin  added the comment:

This needs #7860 for properly figuring out the machine architecture for some 
32-bit Python on 64-bit Windows tests.

--
dependencies: +32-bit Python on 64-bit Windows reports incorrect architecture

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

@Meador: confirmed.  This does not fix the 10.5 build.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-06 Thread Florent Xicluna

Changes by Florent Xicluna :


Removed file: http://bugs.python.org/file16150/issue7712_context_manager_v2.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4978] allow unicode keyword args

2010-02-06 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Done in r78027.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-06 Thread Florent Xicluna

Changes by Florent Xicluna :


Removed file: http://bugs.python.org/file16151/issue7712_context_manager_v3.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-06 Thread Florent Xicluna

Florent Xicluna  added the comment:

There were syntax errors in the previous patch. Sorry.

--
Added file: http://bugs.python.org/file16152/issue7712_context_manager_v3a.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread R. David Murray

New submission from R. David Murray :

A while back, after along discussion about variables and their meaning in 
Python on the python-list, I wrote up the attached FAQ entry to summarize what 
I got out of that enlightening discussion.  I'm proposing that this be added to 
the FAQs.  If this doesn't itself cause too much controversy I'll prepare a doc 
patch.

--
assignee: georg.brandl
components: Documentation
files: passbyx.faq
messages: 98956
nosy: georg.brandl, r.david.murray
priority: normal
severity: normal
status: open
title: Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' 
in python
type: feature request
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file16153/passbyx.faq

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread Michael Foord

Michael Foord  added the comment:

Wasn't the description of Python's semantics being 'pass by value where the 
value is a reference' actually very controversial indeed? Do you have a link to 
the discussion on c.l.p?

--
nosy: +michael.foord

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread R. David Murray

R. David Murray  added the comment:

Well, the discussion was *long* and more than a bit contentious.  This is my 
own personal summary.  Here is a message I found somewhere in the middle of the 
thread:

http://mail.python.org/pipermail/python-list/2009-January/1187126.html

Do you have a pointer to where "pass by value where the value is a reference" 
was controversial?  (Other than that thread :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread Ezio Melotti

Ezio Melotti  added the comment:

The 4-point list at the beginning is in my opinion very clear (for people with 
some background in C or similar languages). I think that the following part is 
not really clear, and the example should focus better on the difference about 
mutable and immutable objects.

--
nosy: +ezio.melotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread R. David Murray

R. David Murray  added the comment:

Well, the thrust of the second part is to make it clear that there *are* no 
differences between mutable and immutable objects as far as the assignment 
semantics are concerned.  All objects in Python are treated the same.  What is 
different is what is on the left hand side of the assignment, and yes, it would 
probably be helpful to point that out explicitly.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread Michael Foord

Michael Foord  added the comment:

Over 122 messages so I'm not going to search exhaustively. In this part of the 
thread you can see Fredrik Lundh and Aahz disputing 
"call-by-value-where-the-value-is-a-reference" as a useful way of describing 
Python calling semantices:

http://groups.google.com/group/comp.lang.python/browse_thread/thread/37e00ba1a5200b9b/1d68c7686a9d5417

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread Ezio Melotti

Ezio Melotti  added the comment:

The difference is that mutable objects may give the illusion of a 
pass-by-reference (because changes made inside the function are visible 
outside) whereas immutable objects give the illusion of pass-by-value (because 
you can't affect the original object in any way). This is also related to the 
confusion about assignment and what it really does.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread R. David Murray

R. David Murray  added the comment:

Michael: I didn't read the whole thread, but it has definite echos of the 
thread in which I was involved.  While I agree that in pure computer-science 
terms it may be imprecise to say that python is 'call by value where values are 
pointers to objects", my goal in the FAQ entry is to give people coming from C 
a mental model that *works* in practical terms to help them understand what 
Python does.

The second half is then an attempt to provide a new mental model, one 
independent of any implementation details, that *better* explains what Python 
does.

But apparently, given Ezio's responses, I didn't succeed in the second part :(

Ezio: I've added another paragraph to the end to try to make the point I'm 
trying to get across clearer, but I'm not sure the additional words really do 
that.

--
Added file: http://bugs.python.org/file16154/passbyx.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7868] add a loggerClass attribute to Manager

2010-02-06 Thread Georg Brandl

New submission from Georg Brandl :

This patch adds a loggerClass attribute to logging's Manager, and a 
setLoggerClass() function to set it.  If no loggerClass is set, the global 
_loggerClass is used.  This is for maximum backwards compatibility.

There are no doc updates as the Manager is not documented.

--
assignee: vinay.sajip
files: logging.diff
keywords: easy, patch, patch
messages: 98964
nosy: georg.brandl, vinay.sajip
priority: high
severity: normal
stage: patch review
status: open
title: add a loggerClass attribute to Manager
type: feature request
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16155/logging.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7868] add a loggerClass attribute to Manager

2010-02-06 Thread Éric Araujo

Éric Araujo  added the comment:

Hello

I know the internal style (or lack thereof :) of logging forces you to use 
unReadableNames, but could the ocde use “cls” instead of “class”, as per PEP 8?

Kind regards

--
nosy: +Merwok

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7868] add a loggerClass attribute to Manager

2010-02-06 Thread Éric Araujo

Éric Araujo  added the comment:

s/ocde/code/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7347] Add {Create|Delete}KeyEx to _winreg, doc and test updates

2010-02-06 Thread Brian Curtin

Brian Curtin  added the comment:

Attached is what I believe is the complete patch. You'll need to apply the 
patch on #7860 for proper test coverage of a 32-bit Python running on 64-bit 
Windows.

Here's a summary of what's contained:

1. Documented and tested the previously undocumented and untested 
*ReflectionKey functions
2. Added, documented, and tested CreateKeyEx
3. Added, documented, and tested DeleteKeyEx
4. Fixed QueryReflectionKey to return the key state rather than the return 
value of the underlying Windows call.

Overall the theme is to better our support of 64-bit Windows.

The testing scenario becomes a bit more involved given the spread of Windows 
versions supported and their varying level of support of some of the APIs being 
exposed. I think the tests are documented well enough to explain what scenarios 
are available and which are being tested, but let me know if more detail is 
needed.

I've tested this on the following machines with success:
1. Windows XP SP2 32-bit
2. Windows Server 2003 32-bit
3. Windows Server 2003 64-bit with 32 and 64-bit Python
4. Windows 7 64-bit with 32 and 64-bit Python

--
components: +Windows
keywords: +64bit, needs review
stage: test needed -> patch review
versions: +Python 3.2
Added file: http://bugs.python.org/file16156/issue7347.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7868] add a loggerClass attribute to Manager

2010-02-06 Thread Georg Brandl

Georg Brandl  added the comment:

You mean, instead of "klass"?  It is used in the other setLoggerClass(), and 
therefore consistent.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7868] add a loggerClass attribute to Manager

2010-02-06 Thread Éric Araujo

Éric Araujo  added the comment:

I meant “klass”, right. My fingers are trained not to write it, it seems.

Ok, it’s already used elsewhere in the module. Too bad.

Kind regards

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy: +brian.curtin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7301] Add environment variable $PYTHONWARNINGS

2010-02-06 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +Merwok

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4194] default subprocess.Popen buffer size

2010-02-06 Thread Shashwat Anand

Shashwat Anand  added the comment:

Tested it on mac OSX (Snow leopard)

Shashwat-Anands-MacBook-Pro:Desktop l0nwlf$ python2.5 popentest.py 
time with os.popen :  0.0342061519623
time with subprocess.Popen :  0.0421631336212
Shashwat-Anands-MacBook-Pro:Desktop l0nwlf$ python2.6 --version
Python 2.6.1
Shashwat-Anands-MacBook-Pro:Desktop l0nwlf$ python2.6 popentest.py 
time with os.popen :  0.0282561779022
time with subprocess.Popen :  0.0366630554199


Python 2.5.4s os.popen was faster than subprocess.Popen, the same being the 
case with Python 2.6.1 I do not think it is a mac issue.

--
nosy: +l0nwlf

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-06 Thread Mark Dickinson

Mark Dickinson  added the comment:

Thanks.  I'll try to find time to look at this tomorrow.

--
assignee:  -> mark.dickinson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7301] Add environment variable $PYTHONWARNINGS

2010-02-06 Thread Brian Curtin

Changes by Brian Curtin :


Removed file: http://bugs.python.org/file15889/issue7301.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7301] Add environment variable $PYTHONWARNINGS

2010-02-06 Thread Brian Curtin

Brian Curtin  added the comment:

Updated patch, tests weren't working.

--
Added file: http://bugs.python.org/file16157/issue7301.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7250] wsgiref.handlers.CGIHandler caches os.environ, leaking info between requests

2010-02-06 Thread Guido van Rossum

Guido van Rossum  added the comment:

Marking this as release blocker to ensure the (one-line) fix makes it into 2.7 
and 3.2.

--
priority: high -> release blocker
resolution:  -> accepted

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2010-02-06 Thread Steven D'Aprano

Steven D'Aprano  added the comment:

The patch you suggest is *not* sufficient, at least not by my testing.

However, the attached patch does work, according to my tests.

--
nosy: +stevenjd
Added file: http://bugs.python.org/file16158/patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2010-02-06 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +Merwok

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7857] test_logging fails

2010-02-06 Thread Vinay Sajip

Vinay Sajip  added the comment:

Tests now seem to be fine. Thanks, Benjamin Peterson, for the fix.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7868] add a loggerClass attribute to Manager

2010-02-06 Thread Vinay Sajip

Vinay Sajip  added the comment:

Patch applied to trunk (r78055).

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Meador Inge

Meador Inge  added the comment:

> If not, then we need to make a choice of #ifdef __FreeBSD__ as I 
> suggested in issue4204, or #ifndef __APPLE__ as I used in my first 
> personal version of the patch.

In the off chance that this same problem were to occur on another platform, 
wouldn't be better to test for 'completion_matches' in configure?  Perhaps 
something like the attached patch? (fixes the issue for me on OS X 10.5 in the 
Python trunk)

--
Added file: http://bugs.python.org/file16159/issue-6877.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Zvezdan Petkovic

Zvezdan Petkovic  added the comment:

OK, so issue4204 patch is causing problems.
As I mentioned before we could choose to #ifdef __FreeBSD__ or check whether 
__APPLE__ is not defined.

I'm attaching a new patch for 2.6.5 (2.6 branch) that uses the __APPLE__ check.

--
Added file: http://bugs.python.org/file16160/readline-libedit-2.6.5-1.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Zvezdan Petkovic

Zvezdan Petkovic  added the comment:

The patch with the same correction against trunk is attached so that Meador can 
test it.

--
Added file: http://bugs.python.org/file16161/readline-libedit-trunk.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Zvezdan Petkovic

Zvezdan Petkovic  added the comment:

Meador, I just looked at your patch (it seems we were posting patches at about 
the same time).

That's a good fix too.

Barry it's your call.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Zvezdan Petkovic

Changes by Zvezdan Petkovic :


Removed file: http://bugs.python.org/file16160/readline-libedit-2.6.5-1.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Zvezdan Petkovic

Changes by Zvezdan Petkovic :


Removed file: http://bugs.python.org/file16161/readline-libedit-trunk.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Zvezdan Petkovic

Changes by Zvezdan Petkovic :


Added file: http://bugs.python.org/file16162/readline-libedit-2.6.5-fix1.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-06 Thread Zvezdan Petkovic

Changes by Zvezdan Petkovic :


Added file: http://bugs.python.org/file16163/readline-libedit-trunk.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7869] traceback from logging is unusable.

2010-02-06 Thread INADA Naoki

New submission from INADA Naoki :

When exception raised in logging, traceback is shown but it doesn't tell
me which logging code cause the error.

$ cat unusable_traceback.py 
import logging
logging.warn('%s %s', 1) # not enough arguments.

$ python unusable_traceback.py 
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 768, in emit
msg = self.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 648, in format
return fmt.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 436, in format
record.message = record.getMessage()
  File "/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string

--
components: Library (Lib)
messages: 98981
nosy: naoki
severity: normal
status: open
title: traceback from logging is unusable.
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7869] traceback from logging is unusable.

2010-02-06 Thread INADA Naoki

INADA Naoki  added the comment:

This patch shows filename and lineno.
I can specify my wrong logging code with this patch.

--
keywords: +patch
Added file: http://bugs.python.org/file16164/logging_show_file_and_line.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2010-02-06 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I am not sure whether this would be considered a bugfix or a new feature.
(ie, whether it would apply to 2.6 and 3.1 or not)

But the change is needed for 3.x also.

I am not sure whether the doc needs changing. A testcase should be added to 
doctest-test.

--
nosy: +tjreedy
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com