[issue9991] xmlrpc client ssl check faulty

2010-11-14 Thread Julius Tuomisto

Julius Tuomisto zforz...@gmail.com added the comment:

Renderfarm.fi's python based uploader for Blender 2.5 (GPL licensed and a 
part of the main distribution of Blender) is still suffering from this bug. 
We're hopeful that this issue would be fixed in the next versions of Python. 
Thank you!

--
nosy: +Julius.Tuomisto

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



[issue9991] xmlrpc client ssl check faulty

2010-11-14 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

That's sad. The fix is very simple. We shall have it before 3.2 alpha4 or beta1.

--

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



[issue10410] Is iterable a container type?

2010-11-14 Thread INADA Naoki

INADA Naoki songofaca...@gmail.com added the comment:

 Likewise, and objects of any classes you define
 with an __iter__() or __getitem__() method. is
 wrong because __getitem__ method is not relate to
 iterable

 That wording is correct.  Sequences are automatically
 iterable even if they don't define __iter__.  For example:

Wow, thank you!

--

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



[issue10414] socket.gethostbyname doesn't return an ipv6 address

2010-11-14 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Python has a policy of exposing low-level APIs as-is, i.e. the way the 
operating system implements them. gethostbyname is an old BSD socket API 
function that is limited to IPv4, and Python exposes it as such.

If you want another convenience function, I recommend to write it yourself, and 
then use it in your code.

--
nosy: +loewis
resolution:  - wont fix
status: open - closed

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



[issue3493] No Backslash (\) in IDLE 1.2.2

2010-11-14 Thread Peter Nielsen

Peter Nielsen peter.ev...@gmail.com added the comment:

I have the same problem with a danish keyboard and OSX snowleopard..
I can use \ in both the command editor and pretty everywhere else but not in 
Idle.

--
nosy: +Peter.Nielsen
versions: +Python 2.6, Python 3.1 -Python 2.7

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



[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-11-14 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Hirokazu's patch works for me. Could this approach be taken in general to
suppress all buildbot pop-ups?

--

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



[issue10416] UnicodeDecodeError when 2to3 is run on a dir with numpy .npy files

2010-11-14 Thread Zbyszek Szmek

New submission from Zbyszek Szmek zbys...@in.waw.pl:

1. 2to3 should work only only files ending with '.py', but it takes
   anything which has a dot and ends with 'py'. I'm having trouble
   with numpy .npy files.
2. 2to3 tries to decode the file and fails with traceback that is not useful:
   the name of the failing file is not given.

A patch is attached.

% ls *.npy|head -n1
S_18_7000_899811b572b309161cbb34f185b82fb618ed81da.npy

% 2to3-3.2 /usr/local/bin/2to3-3.2 .
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
Traceback (most recent call last):
  File /usr/local/bin/2to3-3.2, line 6, in module
sys.exit(main(lib2to3.fixes))
  File /usr/local/lib/python3.2/lib2to3/main.py, line 172, in main
options.processes)
  File /usr/local/lib/python3.2/lib2to3/refactor.py, line 699, in refactor
items, write, doctests_only)
  File /usr/local/lib/python3.2/lib2to3/refactor.py, line 294, in refactor
self.refactor_dir(dir_or_file, write, doctests_only)
  File /usr/local/lib/python3.2/lib2to3/refactor.py, line 313, in refactor_dir
self.refactor_file(fullname, write, doctests_only)
  File /usr/local/lib/python3.2/lib2to3/refactor.py, line 740, in 
refactor_file
*args, **kwargs)
  File /usr/local/lib/python3.2/lib2to3/refactor.py, line 335, in 
refactor_file
input, encoding = self._read_python_source(filename)
  File /usr/local/lib/python3.2/lib2to3/refactor.py, line 331, in 
_read_python_source
return _from_system_newlines(f.read()), encoding
  File /usr/local/lib/python3.2/codecs.py, line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x93 in position 0: invalid 
start byte

--
components: 2to3 (2.x to 3.0 conversion tool)
files: diff.diff
keywords: patch
messages: 121188
nosy: zbysz
priority: normal
severity: normal
status: open
title: UnicodeDecodeError when 2to3 is run on a dir with numpy .npy files
type: crash
versions: Python 3.2
Added file: http://bugs.python.org/file19605/diff.diff

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



[issue10416] UnicodeDecodeError when 2to3 is run on a dir with numpy .npy files

2010-11-14 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
assignee:  - benjamin.peterson
nosy: +benjamin.peterson

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



[issue1553375] Add traceback.print_full_exception()

2010-11-14 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

As per my response to RDM on python-dev, I think the patch is misguided as it 
currently stands.

The traceback on an exception is built up as the stack unwinds. The stack above 
the frame containing the exception handler obviously hasn't been unwound yet, 
so it isn't included in the traceback object.

Since the frame containing the exception handler is live, it and the frame 
stack above it reflect the state of the exception handler, while the tracebacks 
on the chain of exceptions currently being handled reflect the parts of the 
stack that have already been unwound.

For explicit printing, a separate section printing the stack with print_stack() 
is a better option than trying to embed the information in the stack trace of 
the exception currently being handled.

For the logging use case, a separate stack_trace flag to request inclusion of 
stack trace details independent of the exception state seems like a preferable 
option.

--
nosy: +ncoghlan

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



[issue1553375] Add traceback.print_full_exception()

2010-11-14 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

If the allframes flag is pursued further, then the stack trace should be added 
(with an appropriate header clause) after the entire exception chain has been 
printed (including the exception currently being handled).

--

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



[issue10383] test_os leaks under Windows

2010-11-14 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

I agree that the buffer should be released. The patch fixes this leak
and another one. All tests pass.

--
keywords: +patch
nosy: +skrah
Added file: http://bugs.python.org/file19606/posixmodule_leak.patch

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



[issue1553375] Add traceback.print_full_exception()

2010-11-14 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Note that after the loop over the values is complete, the final value of tb 
should correctly refer to the traceback for the exception currently being 
handled regardless of whether or not any chaining is involved.

So moving the stack printing code that is currently inside the loop after the 
loop should do the right thing.

With my suggested change in the display layout, I think this idea is still 
worthwhile (getting it right in handling code is tricky, especially if the 
exception is passed around before being displayed).

--
keywords:  -easy

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



[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Johannes Ammon

New submission from Johannes Ammon johannes.am...@gmail.com:

When there is a non-ASCII character in the docstring of a test function, 
unittest triggers an UnicodeEncodeError when called with --verbose.

I have this file unicodetest.py:
-
# -*- coding: utf-8 -*-
import unittest

class UnicodeTest(unittest.TestCase):
def test_unicode_docstring(self):
utäst - docstring with unicode character
self.assertEqual(1+1, 2)

if __name__ == '__main__':
unittest.main()
-

Running it normally is ok:

$ python unicodetest.py 
.
--
Ran 1 test in 0.000s

OK


But with --verbose it breaks:

$ python unicodetest.py --verbose
Traceback (most recent call last):
  File unicodetest.py, line 10, in module
unittest.main()
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 817, in __init__
self.runTests()
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 861, in runTests
result = testRunner.run(self.test)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 753, in run
test(result)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 464, in __call__
return self.run(*args, **kwds)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 460, in run
test(result)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 464, in __call__
return self.run(*args, **kwds)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 460, in run
test(result)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 300, in __call__
return self.run(*args, **kwds)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 266, in run
result.startTest(self)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py,
 line 693, in startTest
self.stream.write(self.getDescription(test))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 1: 
ordinal not in range(128)


Found with Python 2.6 on MacOS X 10.6.4

--
components: Tests, Unicode
messages: 121193
nosy: jammon
priority: normal
severity: normal
status: open
title: unittest triggers UnicodeEncodeError with non-ASCII character in the 
docstring of the test function
type: behavior
versions: Python 2.6

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



[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti, michael.foord

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



[issue10418] test_io hangs on 3.1.3rc1

2010-11-14 Thread Virgil Dupras

New submission from Virgil Dupras hs...@hardcoded.net:

I downloaded Python 3.1.3rc1 this morning to do my civic duty of testing it. I 
don't know what I'm doing wrong, but for me, test_io hangs and never completed. 
I'm on OS X 10.6.5. I ran it with:

$ ./python.exe Lib/test/regrtest.py test_io

And I got:

test_io

Testing large file ops skipped on darwin.
It requires 2147483648 bytes and a long time.
Use 'regrtest.py -u largefile test_io' to run it.

Testing large file ops skipped on darwin.
It requires 2147483648 bytes and a long time.
Use 'regrtest.py -u largefile test_io' to run it.
python.exe(12242) malloc: *** mmap(size=9223372036854775808) failed (error 
code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
python.exe(12242) malloc: *** mmap(size=9223372036854775808) failed (error 
code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
python.exe(12242) malloc: *** mmap(size=9223372036854775808) failed (error 
code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
hangs at this point

I build Python with this configuration:

$ ./configure --enable-universalsdk=/ --enable-framework 
--with-universal-archs=intel

Oh, and it's being run as 64-bit.
By looking at the size being allocated, by guess that it's some kind of 
overflow thing or something.

--
components: Tests
messages: 121194
nosy: vdupras
priority: release blocker
severity: normal
status: open
title: test_io hangs on 3.1.3rc1
type: crash
versions: Python 3.1

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



[issue9807] deriving configuration information for different builds with the same prefix

2010-11-14 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

Could you also fix issue #10262, which is related to this issue?

--

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



[issue10416] UnicodeDecodeError when 2to3 is run on a dir with numpy .npy files

2010-11-14 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

r86464

--
resolution:  - fixed
status: open - closed

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



[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Is this a duplicate of #1293741?  That issue was closed as out of date, but I'm 
not 100% convinced that was the correct closure.  What do you think?

Does it still happen with 2.7?  (2.6 is in security fix only mode.)

--
nosy: +r.david.murray

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



[issue10418] test_io hangs on 3.1.3rc1

2010-11-14 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +pitrou

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



[issue10418] test_io hangs on 3.1.3rc1

2010-11-14 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Can you run regrtest with the -v option, to know which test case fails?

(we have several OS X buildbots which run this test fine, by the way, including 
a Snow Leopard instance)

Note: 9223372036854775808 is 2**63 or 0x8000.

--
nosy: +ronaldoussoren

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



[issue10418] test_io hangs on 3.1.3rc1

2010-11-14 Thread Virgil Dupras

Virgil Dupras hs...@hardcoded.net added the comment:

I ran the test with the -v option flag. The malloc error don't happen at the 
same place the hang up happens. The first one happens at:

test_readline (test.test_io.PyIOTest) ... ok
test_unbounded_file (test.test_io.PyIOTest) ... skipped 'test can only run in a 
32-bit address space'
test_with_open (test.test_io.PyIOTest) ... ok
test_buffering (test.test_io.CBufferedReaderTest) ... ok
test_constructor (test.test_io.CBufferedReaderTest) ... python.exe(24083) 
malloc: *** mmap(size=9223372036854775808) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ok
test_context_manager (test.test_io.CBufferedReaderTest) ... ok
test_detach (test.test_io.CBufferedReaderTest) ... ok

And the second one happens at:

test_readlines (test.test_io.PyBufferedReaderTest) ... ok
test_repr (test.test_io.PyBufferedReaderTest) ... ok
test_threads (test.test_io.PyBufferedReaderTest) ... skipped resource 'cpu' is 
not enabled
test_constructor (test.test_io.CBufferedWriterTest) ... python.exe(24083) 
malloc: *** mmap(size=9223372036854775808) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ok
test_context_manager (test.test_io.CBufferedWriterTest) ... ok
test_destructor (test.test_io.CBufferedWriterTest) ... ok

And finally, the hang:

test_io_after_close (test.test_io.CMiscIOTest) ... ok
test___all__ (test.test_io.PyMiscIOTest) ... ok
test_abc_inheritance (test.test_io.PyMiscIOTest) ... ok
test_abc_inheritance_official (test.test_io.PyMiscIOTest) ... ok
test_abcs (test.test_io.PyMiscIOTest) ... ok
test_attributes (test.test_io.PyMiscIOTest) ... ok
test_blockingioerror (test.test_io.PyMiscIOTest) ... ok
test_io_after_close (test.test_io.PyMiscIOTest) ... ok
test_interrupted_write_buffered (test.test_io.CSignalsTest) ... hang

--

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



[issue10418] test_io hangs on 3.1.3rc1

2010-11-14 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 I ran the test with the -v option flag. The malloc error don't happen
 at the same place the hang up happens. The first one happens at:

The malloc error is normal, then, it's part of that test. It's a pity OS
X dumps something on stderr, though.

 And finally, the hang:
 
 test_io_after_close (test.test_io.CMiscIOTest) ... ok
 test___all__ (test.test_io.PyMiscIOTest) ... ok
 test_abc_inheritance (test.test_io.PyMiscIOTest) ... ok
 test_abc_inheritance_official (test.test_io.PyMiscIOTest) ... ok
 test_abcs (test.test_io.PyMiscIOTest) ... ok
 test_attributes (test.test_io.PyMiscIOTest) ... ok
 test_blockingioerror (test.test_io.PyMiscIOTest) ... ok
 test_io_after_close (test.test_io.PyMiscIOTest) ... ok
 test_interrupted_write_buffered (test.test_io.CSignalsTest) ... hang

Ok. I guess you would need to investigate what happens in that
particular sub-test.

--

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



[issue10413] Comments in unicode.h are out of date

2010-11-14 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Alexander Belopolsky wrote:
 
 New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
 
 Attached patch updates some comments in unicode.h mostly reflecting the fact 
 that the default encoding is now unconditionally UTF-8.

Looks good.

--

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



[issue10418] test_io hangs on 3.1.3rc1

2010-11-14 Thread Virgil Dupras

Virgil Dupras hs...@hardcoded.net added the comment:

Nobody else can reproduce the bug? I'm not sure I can fix this (although I can 
try).

I tried to re-compile 3.1.2 with the same flags and run test_io and it passes, 
so something happened between 3.1.2 and 3.1.3rc1.

So, I'll give it a look, but if someone more experienced can reproduce it...

--

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



[issue10418] test_io hangs on 3.1.3rc1

2010-11-14 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Ronald hasn't replied yet and he's the most likely to be in a position to try 
to reproduce it.

Even if you can't fix it, figuring out more about how that individual test is 
arriving at the hang could be useful.  If you've got the chops to look at the 
hang in a debugger that would be even more helpful.

--
nosy: +ned.deily, r.david.murray

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



[issue10418] test_io hangs on 3.1.3rc1

2010-11-14 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Be careful when running a framework build from the build directory without 
installing it.  Chances are you are actually dynamically linking to an older 
existing framework in /Library/Frameworks.  (Try looking at sys.modules to see 
what I mean.)  You'll either need to temporarily move the old fw out of the way 
and do the install or use a different fw path to configure or don't use a fw 
build.

--

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



[issue10418] test_io hangs on 3.1.3rc1

2010-11-14 Thread Virgil Dupras

Virgil Dupras hs...@hardcoded.net added the comment:

Ooh, darn, that was it. I installed it and afterwards, the tests passed.

Sorry for the fuss, I'll keep that gotcha in mind next time.

--
resolution:  - invalid
status: open - closed

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



[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Johannes Ammon

Johannes Ammon johannes.am...@gmail.com added the comment:

Same behaviour with 2.7

--
versions: +Python 2.7

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



[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2010-11-14 Thread Hagen Fürstenau

New submission from Hagen Fürstenau ha...@zhuliguan.net:

As suggested in issue 9561, I'm creating a new bug for the encoding problem in 
build_scripts: If a script file can't be decoded with the (locale dependent) 
standard encoding, then build_scripts fails with UnicodeDecodeError. 
Reproducable e.g. with LANG=C and a script file containing non ASCII chars near 
the beginning (so that they're read on a single readline()).

Attaching a patch that uses surrogateescape, as proposed for issue 6011.

--
assignee: tarek
components: Distutils
files: surrogateescape.patch
keywords: patch
messages: 121207
nosy: eric.araujo, hagen, tarek
priority: normal
severity: normal
status: open
title: distutils command build_scripts fails with UnicodeDecodeError
type: crash
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file19607/surrogateescape.patch

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



[issue2405] Drop w9xpopen and all dependencies

2010-11-14 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

It is still time to add to 3.2 a DeprecationWarning when w9xpopen is used, and 
remove the feature in 3.3.
See attached patch

--
keywords: +patch
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file19608/deprecate-w9xpopen.patch

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



[issue1553375] Add traceback.print_full_exception()

2010-11-14 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

I've implemented an optional keyword argument stack_info (defaulting to False) 
for all logging calls. If specified as True, a line 

Stack (most recent call last):

is printed, followed by the output of traceback.print_stack(). This is output 
after any exception information.

Checked into py3k (r86467), please can interested parties check if it meets the 
logging use case mentioned when the ticket was created?

Regression tests pass OK, and docs updated in this checkin.

--

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



[issue1553375] Add traceback.print_full_exception()

2010-11-14 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

Re. the change in r86467, you can test using this simple script:

http://pastebin.com/ZXs3sXDW

--

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



[issue10420] Document of Bdb.effective is wrong.

2010-11-14 Thread INADA Naoki

New submission from INADA Naoki songofaca...@gmail.com:

http://docs.python.org/library/bdb.html#bdb.effective

Determine if there is an effective (active) breakpoint at this line of code.
Return breakpoint number or 0 if none.

bdb.effective doesn't return 0. If no breakpoint is found, it returns
(None, None).

--
assignee: d...@python
components: Documentation
messages: 121211
nosy: d...@python, naoki
priority: normal
severity: normal
status: open
title: Document of Bdb.effective is wrong.
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue10421] Failed issue tracker submission

2010-11-14 Thread admin

New submission from admin roundup-ad...@psf.upfronthosting.co.za:

You are not a registered user.

Unknown address: Order Real Pfizer trac...@psf.upfronthosting.co.za

--
files: unnamed
messages: 121212
nosy: admin
priority: normal
severity: normal
status: open
title: Failed issue tracker submission
Added file: http://bugs.python.org/file19609/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10421
___Return-Path: trac...@psf.upfronthosting.co.za
X-Original-To: trac...@psf.upfronthosting.co.za
Delivered-To: trac...@psf.upfronthosting.co.za
Received: from [190.232.74.29] (unknown [190.232.74.29])
by psf.upfronthosting.co.za (Postfix) with ESMTP id 911921DE56
for trac...@psf.upfronthosting.co.za; Mon, 15 Nov 2010 00:30:42 +0100 
(CET)
From: Order Real Pfizer trac...@psf.upfronthosting.co.za
To: trac...@psf.upfronthosting.co.za
Reply-To: trac...@psf.upfronthosting.co.za
Subject: Hi tracker, Best Deals. of advent were
Mime-Version: 1.0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Message-Id: 20101114233043.911921d...@psf.upfronthosting.co.za
Date: Mon, 15 Nov 2010 00:30:42 +0100 (CET)

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;
html
head
meta http-equiv=Content-Type content=text/html; charset=utf-8
titleNewsletter/title
/head
body
table width=650 cellspacing=0 cellpadding=0 bgcolor=#F2F2F2 
align=center
tr
td height=52 style=text-align:center;
span style=color:#464646; font-size:10px; font-family:arial, 
helvetica, sans-serif;View a href=http://youve.demedics.ru/?94e8CA7dE5856; 
style=color:#0093D9;Mobile/a | View
a href=http://ado.demedics.ru/?23ed94aB61C; 
style=color:#0093D9;Webpage/a/span/td
/tr
tr
td
table width=600 bgcolor=#FF cellspacing=0 
cellpadding=0 align=center
tr
td style=text-align: center
a href=http://ho.demedics.ru/?be6b30bBAD37E;
img alt=Cheapest Pills. Click here 
src=http://b.demedics.ru/vue.jpg; style=border-width: 0px/a/td
/tr
/table
table width=600 bgcolor=#F2F2F2 cellspacing=0 
cellpadding=0 align=center
tr
td height=27 /td
/tr
tr
td align=left
font color=#A2A2A2 face=arial, helvetica, 
sans-serif size=1
PLEASE DO NOT REPLY TO THIS MESSAGE.br
This is a system-generated Newsletter email. 
Replies will not be read or forwarded for handling.brbr
This message was sent to 
trac...@psf.upfronthosting.co.za.brbr
a href=http://lelim.demedics.ru/?4855711607; 
style=color:#817979;Contact Us/a |
a 
href=http://yn.demedics.ru/?3B3d0AeC42ba61remove=trac...@psf.upfronthosting.co.za;
 style=color:#817979;Unsubscribe/a |
a href=http://iibe.demedics.ru/?969972df718296E4; 
style=color:#817979;Update Email Address/a |
a href=http://pele.demedics.ru/?08D96a30dEf400B7; 
style=color:#817979;Privacy Policy/abrbr
Copyright 2010 leadership of Warrior. All rights 
reserved.
/font
/td
/table
/td
/tr
/table
IMG 
SRC=http://www.hufisymawa.com/55f8dc5160986988F81ca99e7f7C6fb6e15380bAA67AB;/body
/html
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo
versions:  -Python 2.6

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



[issue10421] Failed issue tracker submission

2010-11-14 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy:  -admin
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue10421] Failed issue tracker submission

2010-11-14 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Removed file: http://bugs.python.org/file19609/unnamed

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



[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2010-11-14 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
status: closed - open
type:  - feature request
versions: +Python 3.2 -Python 2.7

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



[issue7140] imp.new_module does not function correctly if the module is returned from a function and used directly

2010-11-14 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

But there were r85393 (2.7) and r85394 (3.1).

--
nosy: +Arfrever
versions: +Python 2.7, Python 3.1

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



[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2010-11-14 Thread Jessica McKellar

Jessica McKellar jesst...@mit.edu added the comment:

Thomas, I think the weirdness you were sensing when trying to adapt the 
nameCheck calls in test__RandomNameSequence after adding the abspath check is 
that those test cases really don't need nameCheck.

For example, test_get_six_char_str should be testing that _RandomNameSequence 
returns something that is both a string and 6 characters, not properties of 
some path manufactured around it.

I've attached a patch based on Thomas's that factors out the string check in 
nameCheck and has the tests in test__RandomNameSequence just use the string 
check.

The patch is against release27-maint.

--
nosy: +jesstess
title: tempfile.mkdtemp() does not return absolute pathname when dir is 
specified - tempfile.mkdtemp() does not return absolute pathname when relative 
dir is specified
Added file: http://bugs.python.org/file19610/issue7325.patch

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



[issue9561] distutils: set encoding to utf-8 for input and output files

2010-11-14 Thread Hagen Fürstenau

Hagen Fürstenau ha...@zhuliguan.net added the comment:

Created issue 10419 for the encoding problem in build_scripts.

--

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