[issue10399] AST Optimization: inlining of function calls

2010-11-20 Thread Alex

Alex  added the comment:

There are a couple places you mention not doing the optimization when specific 
functions are used (e.g. dir, globals, locals), how exactly do you verify that, 
given those functions could be bound to any name?

--

___
Python tracker 

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



[issue10464] netrc module not parsing passwords containing #s.

2010-11-20 Thread the_isz

New submission from the_isz :

The netrc module stops parsing passwords at # characters, which can be part of
passwords.

Tested with Python 2.7 and 3.1.

--
components: Extension Modules
messages: 121598
nosy: the_isz
priority: normal
severity: normal
status: open
title: netrc module not parsing passwords containing #s.
type: behavior
versions: Python 2.7, Python 3.1

___
Python tracker 

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



[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-20 Thread Mark Dickinson

Mark Dickinson  added the comment:

> Force it to export that 'round' symbol in the core, perhaps?

Sure.  That might involve first understanding why it's not being exported.  
That's where I'm a bit stuck, especially without a Solaris system to test on.  
If someone can figure out why the symbol isn't being exported in the first 
place, that would be helpful.

--

___
Python tracker 

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



[issue10450] Fix markup in Misc/NEWS

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

I ran Misc/NEWS through rst2hml, and apart from unknown python-specific 
interpreter roles, there are two warnings:

Misc/NEWS:64: (WARNING/2) Inline strong start-string without end-string.
Misc/NEWS:128: (WARNING/2) Inline emphasis start-string without end-string.

Are these warnings what you refer to when you say there are markup errors, or 
is there something else?

--
nosy: +eli.bendersky

___
Python tracker 

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



[issue10450] Fix markup in Misc/NEWS

2010-11-20 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue10450] Fix markup in Misc/NEWS

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

A fix to Misc/NEWS was committed by Georg in revision 86550. Now Misc/NEWS no 
longer causes warnings with `rst2html`. Éric - if this is what you meant, the 
issue can be closed.

--

___
Python tracker 

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



[issue9965] Loading malicious pickle may cause excessive memory usage

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

Closing as "won't fix".

--
nosy: +georg.brandl
resolution:  -> wont 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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

I will write a codecs.rst for this. Any suggestion of where in c-api/index.html 
it should be linked?

--
nosy: +eli.bendersky

___
Python tracker 

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



[issue10325] PY_LLONG_MAX & co - preprocessor constants or not?

2010-11-20 Thread Mark Dickinson

Mark Dickinson  added the comment:

Fixed in r86552.  Thanks!

--
assignee:  -> mark.dickinson
resolution:  -> fixed
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



[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-11-20 Thread joblack

joblack  added the comment:

No it seems a problem of the installation routine. If you have 
installed a program before Python it sometimes doesn't work.

On 11/20/2010 03:59 AM, Brian Curtin wrote:
>
> Brian Curtin  added the comment:
>
> joblack - are you still seeing issues with this?
>
> --
>
> ___
> Python tracker
> 
> ___

--

___
Python tracker 

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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

Please call it codec.rst.  It is probably best placed under "utilities".

--
nosy: +georg.brandl

___
Python tracker 

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



[issue10465] gzip module calls getattr incorrectly

2010-11-20 Thread Neil Muller

New submission from Neil Muller :

gzip._PaddedFile.__getattr__ chains out to getattr, but does so incorrectly 
(found via running the numpy test suite).

The attached patch fixes this.

--
files: gzip_getattr.diff
keywords: patch
messages: 121607
nosy: Neil Muller
priority: normal
severity: normal
status: open
title: gzip module calls getattr incorrectly
Added file: http://bugs.python.org/file19652/gzip_getattr.diff

___
Python tracker 

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



[issue10465] gzip module calls getattr incorrectly

2010-11-20 Thread Neil Muller

Neil Muller  added the comment:

Add a test demonstrating the error.

--
Added file: http://bugs.python.org/file19653/gzip_getattr_test.diff

___
Python tracker 

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



[issue9920] test_cmath on atan fails on AIX

2010-11-20 Thread Mark Dickinson

Mark Dickinson  added the comment:

This should now be fixed in r86553.  If you have a chance to test and report 
back, that would be great!

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> pending

___
Python tracker 

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



[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-20 Thread Jeremy Thurgood

Jeremy Thurgood  added the comment:

Attached a patch to test for and fix the first two issues described in this 
ticket.

Basically, it modifies SimpleHTTPRequestHandler.send_head() to operate on a 
path already stripped of the query string and fragment rather than the 
completely unparsed URL.

--
keywords: +patch
nosy: +jerith
Added file: http://bugs.python.org/file19654/issue10231.diff

___
Python tracker 

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



[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-20 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> orsenthil

___
Python tracker 

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



[issue2244] urllib and urllib2 decode userinfo multiple times

2010-11-20 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

back-ported to release27-maint in r86554.

--
status: open -> closed

___
Python tracker 

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



[issue10465] gzip module calls getattr incorrectly

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks for the catch, fixed in r86555.

--
nosy: +georg.brandl
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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

While preparing a .rst document for this, I ran into a possible inaccuracy in a 
comment in codecs.h:

/* Lookup the error handling callback function registered under the
   name error. As a special case NULL can be passed, in which case
   the error handling callback for "strict" will be returned. */
PyAPI_FUNC(PyObject *) PyCodec_LookupError(const char *name);



The problem may be with the phrase "under the name error". Shouldn't it be just 
"under *name*"?

--

___
Python tracker 

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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

Yes, apparently the parameter was (intended to be) called "error" at some 
point.  Can you put the correction in your patch?

--

___
Python tracker 

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



[issue4236] Crash when importing builtin module during interpreter shutdown

2010-11-20 Thread Simon Cross

Simon Cross  added the comment:

I'm attaching a patch to relax the check in PyModule_Create2 as suggested by 
the Amaury (http://bugs.python.org/issue4236#msg75409).

The patch uses "PyThreadState_Get()->interp->modules == NULL" to determine 
whether the import machinery has been cleaned up yet.

The test suite still appears to pass.

--
nosy: +hodgestar
Added file: http://bugs.python.org/file19655/check-import-machinery-only.diff

___
Python tracker 

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



[issue10466] locale.py throws exception on Windows / Non-UTF8 system

2010-11-20 Thread Sibylle Koczian

New submission from Sibylle Koczian :

Running locale.py as a module on Windows, using the Python command window, 
produces this output:

C:\Python31\Lib>locale.py
Locale aliasing:

Locale defaults as determined by getdefaultlocale():

Language:  de_DE
Encoding:  cp1252

Locale settings on startup:

LC_NUMERIC ...
   Language:  (undefined)
   Encoding:  (undefined)

LC_MONETARY ...
   Language:  (undefined)
   Encoding:  (undefined)

LC_COLLATE ...
   Language:  (undefined)
   Encoding:  (undefined)

LC_CTYPE ...
   Language:  (undefined)
   Encoding:  (undefined)

LC_TIME ...
   Language:  (undefined)
   Encoding:  (undefined)


Locale settings after calling resetlocale():

Traceback (most recent call last):
  File "C:\Python31\Lib\locale.py", line 1798, in 
_print_locale()
  File "C:\Python31\Lib\locale.py", line 1761, in _print_locale
resetlocale()
  File "C:\Python31\Lib\locale.py", line 537, in resetlocale
_setlocale(category, _build_localename(getdefaultlocale()))
locale.Error: unsupported locale setting

Tried with 2.7 on Windows XP, 32bit, 3.1.2 and 3.2a4 on Windows 7, 64bit. 
System character set in all cases cp1252 as usual for a German windows 
installation.

With 2.6, 2.6.5, 3.1.2 on Linux with UTF-8 system character set: no exception, 
expected output.

--
components: Library (Lib)
messages: 121616
nosy: skoczian
priority: normal
severity: normal
status: open
title: locale.py throws exception on Windows / Non-UTF8 system
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



[issue10460] Misc/indent.pro does not reflect PEP 7

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

Done in r86561.  Thanks for the report!

--
nosy: +georg.brandl
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



[issue10467] io.BytesIO.readinto() segfaults when used on BytesIO object seeked beyond end.

2010-11-20 Thread Sebastian Hagen

New submission from Sebastian Hagen :

io.BytesIO().readinto() does not correctly handle the case of being called on a 
BytesIO object that has been seeked past the end of its data. It consequently 
ends up reading into unallocated memory, and (typically?) segfaulting if used 
in this manner. I've confirmed that this bug exists in the same fashion in 2.6, 
2.7, 3.0, 3.1 and 3.2; the following demonstration code works on all of these.

Demonstration:
>>> import io; b = io.BytesIO(b'bytes'); b.seek(42); b.readinto(bytearray(1))
42
Segmentation fault

I'm attaching a simple patch against r32a3:85355 that fixes this problem.

--
components: IO
files: bio_readinto_1.patch
keywords: patch
messages: 121618
nosy: sh
priority: normal
severity: normal
status: open
title: io.BytesIO.readinto() segfaults when used on BytesIO object seeked 
beyond end.
type: crash
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file19656/bio_readinto_1.patch

___
Python tracker 

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



[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

This is the old issue of casting the result of malloc() -- frowned upon in C, 
but required in C++.  Looking at the Python sources, most uses of PyMem_Malloc 
seem to have the cast, so it doesn't seem wrong to add one here (where it 
actually can be configured to be compiled with a C++ compiler).

--
nosy: +georg.brandl

___
Python tracker 

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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

Submitting a patch. What was touched:

1. Include/codecs.h - minor inaccuracy and inconsistency in a comment
2. Doc/c-api/codec.rst - new reST documentation file for the codecs.h C API
3. Doc/c-api/utilities.rst - for linking to codec.rst, per Georg's suggestion

--
keywords: +patch
Added file: http://bugs.python.org/file19657/issue10439.1.patch

___
Python tracker 

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



[issue8705] shutil.rmtree with empty filepath

2010-11-20 Thread R. David Murray

R. David Murray  added the comment:

Just as an FYI, a similar situation exists on Solaris.  I had to fix one of the 
Python test suite tests once because it was naively trying to rmtree the CWD.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Éric Araujo

Éric Araujo  added the comment:

with also replaces open-try-do stuff-finally-close, the correct idiom for 
ensuring file handles are always closes in all VMs.

I don’t think the doc style guide is the right place, since this is a code 
issue.  with is advertised in 
http://docs.python.org/dev/tutorial/inputoutput#methods-of-file-objects and 
http://docs.python.org/dev/howto/doanddont#exceptions ; 
http://docs.python.org/dev/library/functions#open says nothing about closing, 
and http://docs.python.org/dev/library/io tells about the with statement 
without recommending it strongly.

--

___
Python tracker 

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



[issue10464] netrc module not parsing passwords containing #s.

2010-11-20 Thread Xuanji Li

Xuanji Li  added the comment:

Included test case for the reported bug. Test fails on my machine. Also split 
up test_case_1 (in order to put in the new test case cleanly)

--
keywords: +patch
nosy: +xuanji
Added file: http://bugs.python.org/file19658/issue_10464_testcase.diff

___
Python tracker 

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



[issue10450] Fix markup in Misc/NEWS

2010-11-20 Thread Éric Araujo

Éric Araujo  added the comment:

Fixed indeed.

Dave: Please open a feature request, this is a good idea.

--
resolution:  -> fixed
stage: needs patch -> 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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

Éric, although grepping for all such references may be tricky, could you 
specify the places where you did see them? I guess a few fixed places is better 
than none at all.

--
nosy: +eli.bendersky

___
Python tracker 

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



[issue809163] Can't add files with spaces

2010-11-20 Thread John Keyes

John Keyes  added the comment:

I'll change the test to use TESTFN later today. Thanks for the feedback.

--

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Éric Araujo

Éric Araujo  added the comment:

Certainly.  Here is my secret grep:
$ cd py3k/Doc
$ grep -n --color=auto -d skip -I --exclude-dir .svn --exclude-dir .hg -R 
open\(.*\).read *.rst c-api distutils documenting extending faq howto library 
reference tutorial using

List without false positives: 

faq/library.rst
library/pkgutil.rst
library/atexit.rst
library/pipes.rst
library/cmd.rst
library/logging.rst
library/difflib.rst
library/collections.rst
tutorial/interpreter.rst
tutorial/stdlib2.rst

List for open(.*).write:
faq/library.rst
library/ftplib.rst
library/atexit.rst

There is probably a better regex that would catch “open(.*).[valid method 
name]”, but I hate regexes.

--

___
Python tracker 

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



[issue809163] Can't add files with spaces

2010-11-20 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the patch John.  Instead of low-level use of TESTFN, you can use 
distutils.tests.support.TempdirManager to create a temporary directory and 
write files to it in a few lines.

--
assignee: tarek -> eric.araujo
stage: needs patch -> patch review

___
Python tracker 

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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Thanks for the patch, it looks good, I have 2 remarks though:

- "under the name name" could be replaced by "under the given name".

- "The *search_function*'s refcount is incremented by this function."
This information is not useful to the caller - she just wants to know whether 
she still owns the reference she had before.  Most probably here, the refcount 
is incremented because the object is stored in a list; the caller still owns 
the reference to the parameter, like most functions of the API, and there is 
nothing to say about refcounts here.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue10463] Wrong return type for xml.etree.ElementTree.parse()

2010-11-20 Thread Éric Araujo

Changes by Éric Araujo :


--
resolution: works for me -> invalid
stage:  -> committed/rejected

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

Eric, I'm attaching a provisional fix for library/atexit.rst just to be sure 
this is what you mean.

--
Added file: http://bugs.python.org/file19659/atexit.rst

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Changes by Eli Bendersky :


--
keywords: +patch
Added file: http://bugs.python.org/file19660/issue10461.1.diff

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Changes by Eli Bendersky :


Removed file: http://bugs.python.org/file19659/atexit.rst

___
Python tracker 

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



[issue10351] Add autocompletion for keys in dictionaries

2010-11-20 Thread Éric Araujo

Éric Araujo  added the comment:

I will review your patch later today.

--

___
Python tracker 

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



[issue10424] better error message from argparse when positionals missing

2010-11-20 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

Amaury,

Thanks for the review & comments.
I'm attaching a fixed patch.

--
Added file: http://bugs.python.org/file19661/issue10439.2.patch

___
Python tracker 

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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

Please also keep to 3-space indentation in directives.

--

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Éric Araujo

Éric Araujo  added the comment:

Yes, that’s it.  Please don’t change whitespace in your patches.

--

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

FWIW, this doesn't belong in the style guide; it is obvious that the docs 
should exhibit "best practice" Python code, and using the with statement when 
opening resources is certainly such a best practice now.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

Georg,
Thanks. Submitting fixed patch with 3-space indentation in directives.

--
Added file: http://bugs.python.org/file19662/issue10439.3.patch

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

Eric, which whitespace change do you refer to. I changed to 4-spaces 
indentation in the code sample to conform to PEP-8. Shouldn't I have?

--

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread SilentGhost

SilentGhost  added the comment:

Here is the patch for Docs/library/cmd.rst

--
nosy: +SilentGhost
Added file: http://bugs.python.org/file19663/cmd.rst.diff

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread SilentGhost

SilentGhost  added the comment:

Here is the patch for Doc/library/difflib.rst

--
Added file: http://bugs.python.org/file19664/difflib.rst.diff

___
Python tracker 

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



[issue10464] netrc module not parsing passwords containing #s.

2010-11-20 Thread Xuanji Li

Changes by Xuanji Li :


Removed file: http://bugs.python.org/file19658/issue_10464_testcase.diff

___
Python tracker 

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



[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

Reviewed and applied in r86562.  Thanks!

--
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



[issue10468] Document UnicodeError access functions

2010-11-20 Thread Georg Brandl

New submission from Georg Brandl :

There are a couple of functions for accessing UnicodeError subclass properties 
that are needed e.g. in codec error handlers.  They should be documented in 
exceptions.rst.

--
assignee: d...@python
components: Documentation
messages: 121641
nosy: d...@python, georg.brandl
priority: normal
severity: normal
status: open
title: Document UnicodeError access functions

___
Python tracker 

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



[issue10468] Document UnicodeError access functions

2010-11-20 Thread Eli Bendersky

Changes by Eli Bendersky :


--
nosy: +eli.bendersky

___
Python tracker 

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



[issue10468] Document UnicodeError access functions

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

>From IRC:

  the PyUnicode*Error_Foo access functions are not documented
  they are in exceptions.c / pyerrors.h

--

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

I'm trying to port the example in tutorial/stdlib2.rst, but the sample in 
"working with binary data record layouts" fails (before my porting to 'with'...)

  struct.error: unpack requires a bytes argument of length 16

--

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread SilentGhost

SilentGhost  added the comment:

Patch for Doc/library/collections.rst

--
Added file: http://bugs.python.org/file19665/collections.rst.diff

___
Python tracker 

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



[issue10464] netrc module not parsing passwords containing #s.

2010-11-20 Thread Xuanji Li

Xuanji Li  added the comment:

Sorry, patch had a mistake

--
Added file: http://bugs.python.org/file19666/issue_10231_testcase.diff

___
Python tracker 

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



[issue10460] Misc/indent.pro does not reflect PEP 7

2010-11-20 Thread Mick Beaver

Mick Beaver  added the comment:

Georg,

Thanks for looking at this. Before getting your response, I decided to
take a crack at it and came up with something different. We explicitly
disagree on:

1. You had --no-blank-lines-after-declarations, but PEP 7 says:
- Function definition style: function name in column 1, outermost
  curly braces in column 1, blank line after local variable
  declarations.

2. You had --cuddle-else, but PEP 7 has the following listing:
if (mro != NULL) {
...
}
else {
...
}

I merged our two indent.pro files. Between the two of us, we had a
number of switches that were inferred, and should probably be made
more explicit in PEP 7. Those are:
--braces-on-struct-decl-line
--comment-indentation25
--swallow-optional-blank-lines

How do you feel about the following indent.pro?:

--blank-lines-after-declarations
--blank-lines-after-procedures
--braces-after-func-def-line
--braces-on-if-line
--braces-on-struct-decl-line
--break-after-boolean-operator
--comment-indentation25
--comment-line-length79
--continue-at-parentheses
--dont-cuddle-do-while
--dont-cuddle-else
--indent-level4
--line-length79
--no-space-after-casts
--no-space-after-function-call-names
--no-space-after-parentheses
--no-tabs
--procnames-start-lines
--space-after-for
--space-after-if
--space-after-while
--swallow-optional-blank-lines
-T PyCFunction
-T PyObject

Thanks for your help,
Mick

--

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

Attaching patches for library/atexit.rst and for tutorial/stdlib2.rst

--
Added file: http://bugs.python.org/file19667/issue10461.atexit.rst.diff

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Changes by Eli Bendersky :


Added file: http://bugs.python.org/file19668/issue10461.stdlib2.rst.diff

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Changes by Eli Bendersky :


Removed file: http://bugs.python.org/file19660/issue10461.1.diff

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky

Eli Bendersky  added the comment:

SilentGhost,

Your patches look fine. I have a doubt re collections.rst, however - about the 
Python prompt. The same issue is in faq/library.rst and I didn't want to touch 
it because I thought that on the prompt personally I probably wouldn't use 
'with' - why write 2 lines when you can write 1? After all, it's just playing 
on the prompt - I don't care about safe closing of the file, etc.

--

___
Python tracker 

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



[issue10460] Misc/indent.pro does not reflect PEP 7

2010-11-20 Thread Georg Brandl

Georg Brandl  added the comment:

ad 1: yes, that makes sense.

ad 2: "cuddling" and "non-cuddling" else are actually pretty evenly mixed in 
the source.  I didn't explicitly look at PEP 7 for this, but in that case it 
should get preference.

Your suggested profile looked good, applied in r86564.

--

___
Python tracker 

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



[issue9732] Addition of getattr_static for inspect module

2010-11-20 Thread Michael Foord

Michael Foord  added the comment:

Reworked as a patch, including documentation and NEWS update.

--
keywords: +patch
Added file: http://bugs.python.org/file19669/getattr_static.patch

___
Python tracker 

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



[issue10469] test_socket fails

2010-11-20 Thread Daniel Albeseder

New submission from Daniel Albeseder :

Using WinXP I compiled python 3.2 from the current sources using Visual C++ 
2010 Express.

Running

rt -v test_socket

resulted in the attached output.

The tests testSmallReadNonBlocking and testWriteNonBlocking have errors, and an 
assertion fails for test_connect and test_create_connections.

--
components: Library (Lib)
files: test_socket.log
messages: 121651
nosy: Kotan
priority: normal
severity: normal
status: open
title: test_socket fails
versions: Python 3.2
Added file: http://bugs.python.org/file19670/test_socket.log

___
Python tracker 

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



[issue10469] test_socket fails

2010-11-20 Thread Daniel Albeseder

Daniel Albeseder  added the comment:

current revision = svn revision 86553

--

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread SilentGhost

SilentGhost  added the comment:

patch for Doc/library/logging.rst

Also, note the the change of the mode from `'r'` to `'rb'`. `data_to_send` is 
further send through socket and therefore requires to be bytes.

I expressed my opinion in irc, but I can repeat here that I think only the most 
trivial code such as in Doc/library/pipes.rst isn't worth converting.

--
Added file: http://bugs.python.org/file19671/logging.rst.diff

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread SilentGhost

SilentGhost  added the comment:

patch for Doc/library/logging.rst

Also, note the the change of the mode from `'r'` to `'rb'`. `data_to_send` is 
further send through socket and therefore requires to be bytes.

I expressed my opinion in irc, but I can repeat here that I think only the most 
trivial code such as in Doc/library/pipes.rst isn't worth converting.

--
Added file: http://bugs.python.org/file19672/logging.rst.diff

___
Python tracker 

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



[issue10461] Use with statement throughout the docs

2010-11-20 Thread SilentGhost

Changes by SilentGhost :


Removed file: http://bugs.python.org/file19672/logging.rst.diff

___
Python tracker 

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



[issue10462] Handler.close is not called in subclass while Logger.removeHandler is called

2010-11-20 Thread Vinay Sajip

Vinay Sajip  added the comment:

The reason for this behaviour is as follows: the internal list of handlers now 
uses weak references, see

http://bugs.python.org/issue6615#msg95691

If there are no references to a handler, it can disappear at any time: and if 
it does, then it won't get closed at shutdown.

If there are references to it, then the shutdown code will close all handlers 
on application exit.

So: either leave references to your handlers, or close them when you're done 
with them, or add a __del__() which will call close() when the handler is 
garbage collected.

BTW removeHandler() does not call close(), and never has - these are two 
distinct operations.

It wouldn't be right for the logging package to automatically call close() on 
handlers, except at application exit - where the main reason for doing so is to 
flush any pending output and release any resources used by the handler.

Note that adding a __del__(self): self.close() method to MyHandler results in 
the close() being called [during garbage collection].

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue9732] Addition of getattr_static for inspect module

2010-11-20 Thread Michael Foord

Changes by Michael Foord :


Removed file: http://bugs.python.org/file19669/getattr_static.patch

___
Python tracker 

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



[issue9732] Addition of getattr_static for inspect module

2010-11-20 Thread Michael Foord

Changes by Michael Foord :


--
versions: +Python 2.5 -Python 3.2
Added file: http://bugs.python.org/file19673/getattr_static.patch

___
Python tracker 

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



[issue10466] locale.py throws exception on Windows / Non-UTF8 system

2010-11-20 Thread R. David Murray

R. David Murray  added the comment:

unsupported locale setting is a message that comes from the C runtime, IIUC.  
Does it work on windows with 2.6?

--
nosy: +lemburg, r.david.murray

___
Python tracker 

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



[issue10467] io.BytesIO.readinto() segfaults when used on BytesIO object seeked beyond end.

2010-11-20 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +pitrou

___
Python tracker 

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



[issue10464] netrc module not parsing passwords containing #s.

2010-11-20 Thread Xuanji Li

Xuanji Li  added the comment:

The issue seems to be that when shlex (the lexer that netrc uses) sees a '#' 
character it thinks that the rest of the line is a comment. I am not sure what 
the behavior of netrc should be - should it treat '#' as beginning a comment 
only if its the first non-whitespace character on a line? Should shlex be 
changed to reflect this?

--

___
Python tracker 

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



[issue1859] textwrap doesn't linebreak on "\n"

2010-11-20 Thread Jeremy Thurgood

Jeremy Thurgood  added the comment:

The weird behaviour is caused by newlines being treated as normal whitespace 
characters and not actually causing _wrap_chunks() to break the line. This 
means that it builds "lines" of up to 'width' characters which may contain 
newlines:

>>> text = '''\
... aaa aaa aaa
... bbb bbb bbb
... ccc ccc ccc
... ddd ddd ddd'''
>>> T = TextWrapper(replace_whitespace=False, width=17)
>>> T.wrap(text)
['aaa aaa aaa\nbbb', 'bbb bbb\nccc ccc', 'ccc\nddd ddd ddd']
>>> for line in T.wrap(text): print(line)
... 
aaa aaa aaa
bbb
bbb bbb
ccc ccc
ccc
ddd ddd ddd

There's no clean way to deal with this inside _wrap_chunks() (as Greg implied), 
so I think we should just document the existing behaviour and recommend the 
splitlines() workaround.

It might be useful to add a wrap_paragraphs() convenience function that does 
the split/wrap/join, but I don't think that would add enough value to be worth 
the change.

--
nosy: +jerith

___
Python tracker 

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



[issue9732] Addition of getattr_static for inspect module

2010-11-20 Thread Nick Coghlan

Changes by Nick Coghlan :


--
versions: +Python 3.2 -Python 2.5

___
Python tracker 

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



[issue10469] test_socket fails

2010-11-20 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +brian.curtin, loewis, tim.golden

___
Python tracker 

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



[issue10469] test_socket fails

2010-11-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The core problem seems to be that the errno module has mismatching values on 
your Python build (for ECONNREFUSED and EWOULDBLOCK, at least, which explains 
all 4 failures). On a Windows 7 VM here:

>>> errno.ECONNREFUSED
10061
>>> errno.EWOULDBLOCK
10035

--
components: +Build
nosy: +pitrou
type:  -> behavior
versions: +Python 2.7, Python 3.1

___
Python tracker 

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



[issue6490] os.popen documentation in 2.6 is probably wrong

2010-11-20 Thread Neil Muller

Neil Muller  added the comment:

The attached patch grabs the os.popen documentation from python 2.7, throws 
away the deprecation notes, and adds a pointer to subprocess.Popen for more 
details.

--
keywords: +patch
nosy: +Neil Muller
Added file: http://bugs.python.org/file19674/os_popen_doc.diff

___
Python tracker 

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



[issue9732] Addition of getattr_static for inspect module

2010-11-20 Thread Michael Foord

Michael Foord  added the comment:

Committed revision 86566.

--
resolution:  -> accepted
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



[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-20 Thread Simon Cross

Simon Cross  added the comment:

I made the minor changes needed to get Eli Bendersky's patch to apply against 
3.2. Diff attached.

--
nosy: +hodgestar
Added file: http://bugs.python.org/file19675/issue2986.fix32.5.patch

___
Python tracker 

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



[issue10469] test_socket fails

2010-11-20 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue1859] textwrap doesn't linebreak on "\n"

2010-11-20 Thread Jeremy Thurgood

Jeremy Thurgood  added the comment:

Here's a doc patch for py3k. A similar patch for 2.7 (and other versions?) 
might be a good idea.

--
keywords: +patch
Added file: http://bugs.python.org/file19676/issue1859_docs.diff

___
Python tracker 

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



[issue1574217] isinstance swallows exceptions

2010-11-20 Thread Graham Poulter

Graham Poulter  added the comment:

issue1574217.diff still applies against py3k as revision 86545  (offset -8 
lines)

patching file Objects/abstract.c
Hunk #1 succeeded at 2500 (offset -8 lines).
Hunk #2 succeeded at 2523 (offset -8 lines).

And tests pass (./python ./Lib/test/test_isinstance.py)

--
nosy: +greppo

___
Python tracker 

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



[issue9424] Disable unittest.TestCase.assertEquals and assert_ during a regrtest run

2010-11-20 Thread Ezio Melotti

Ezio Melotti  added the comment:

The attached patch addresses the point 1) of msg113147.

--
keywords: +patch
Added file: http://bugs.python.org/file19677/issue9424.diff

___
Python tracker 

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



[issue5412] extend configparser to support mapping access(__*item__)

2010-11-20 Thread Łukasz Langa

Changes by Łukasz Langa :


--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue10326] Can't pickle unittest.TestCase instances

2010-11-20 Thread Michael Foord

Michael Foord  added the comment:

Applied to Python 3.2 in revision 86570.

Python 2.7 will have to be fixed after the next release as we are currently in 
release candidate stage.

--

___
Python tracker 

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



[issue9637] docs do not say that urllib uses HTTP_PROXY

2010-11-20 Thread Neil Muller

Changes by Neil Muller :


--
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-11-20 Thread Brian Curtin

Brian Curtin  added the comment:

I'm not sure how that would work in terms of redistributing, and how we'd 
handle it within our own build process. This close to the beta I'm -1 on adding 
that API.

--

___
Python tracker 

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



[issue9637] docs do not say that urllib uses HTTP_PROXY

2010-11-20 Thread Neil Muller

Neil Muller  added the comment:

The problem is that the getproxies_environment function converts all 
environment variables to lower case before deciding whether to use the name. 
This means that whichever ends up last in os.environment will be used.

The attached patch does two things. It changes the behaviour to prefer the all 
lower case version if it exists, and adds a note to the ProxyHandler 
description noting that the environment variable used is not case sensitive, 
although the all lower case version will be preferred.

The behaviour change is debatable, but preferring the lower case name is likely 
to be less surprising in general.

--
keywords: +patch
nosy: +Neil Muller
Added file: http://bugs.python.org/file19678/urllib_PROXY.diff

___
Python tracker 

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



[issue5871] email.header.Header too lax with embeded newlines

2010-11-20 Thread R. David Murray

Changes by R. David Murray :


--
keywords:  -easy

___
Python tracker 

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



[issue9424] Disable unittest.TestCase.assertEquals and assert_ during a regrtest run

2010-11-20 Thread Ezio Melotti

Ezio Melotti  added the comment:

I uploaded the patch on http://codereview.appspot.com/3232042 too.

--

___
Python tracker 

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



[issue8647] PyUnicode_GetMax is undocumented

2010-11-20 Thread Simon Cross

Simon Cross  added the comment:

This issue is subsumed by #10435 and can probably be closed as a duplicated.

--
nosy: +hodgestar

___
Python tracker 

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



[issue8646] PyUnicode_EncodeDecimal is undocumented

2010-11-20 Thread Simon Cross

Simon Cross  added the comment:

This issue is subsumed by #10435 and can probably be closed as a duplicated.

--
nosy: +hodgestar

___
Python tracker 

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



[issue8645] PyUnicode_AsEncodedObject is undocumented

2010-11-20 Thread Simon Cross

Simon Cross  added the comment:

This issue is subsumed by #10435 and can probably be closed as a duplicated.

--
nosy: +hodgestar

___
Python tracker 

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



[issue10453] Add -h/--help option to compileall

2010-11-20 Thread Michele Orrù

Michele Orrù  added the comment:

I'm still working on this task; the attachment shows how I'm solving the bug. 
The patch is NOT yet completed, there are some problems with the unittests. 
Hoping that Eric will give me a help soon.

--
keywords: +patch
nosy: +ezio.melotti, maker
Added file: http://bugs.python.org/file19679/issue10453.patch

___
Python tracker 

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



[issue10435] Document unicode C-API in reST

2010-11-20 Thread Simon Cross

Changes by Simon Cross :


--
nosy: +hodgestar

___
Python tracker 

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



[issue1486713] HTMLParser : A auto-tolerant parsing mode

2010-11-20 Thread Neil Muller

Neil Muller  added the comment:

#975556 and #1046092 look like they should also be superseded by this.

--
nosy: +Neil Muller

___
Python tracker 

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



[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-20 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

I have doubts on the validity of this bug itself.

- First is, query and fragment are usually for the file being served from the 
webserver, not on the directories. If there are characters such as '?' and '#'  
in the directory names, which may get featured in the path, then those should 
be quoted in the request. So foo/dir?baz is wrong where as foo/dir%3Fbaz it the 
correct request.

We see the 301 redirection code in http.server code, the for the cases wherein 
it the "directory" is not specified with '/'. It just adds the '/' to get to 
the path. The code explicitly checks that path is directory before doing '/' 
added 301 redirection.

In the patch's first case:

+response = self.request(self.tempdir_name + '?foo')

This is wrong because /tmp/somthing?foo (Is invalid path - It should be quoted 
for it be a PATH and follow the 301 redirection to list its contents by 
appending '/')

To verify the above points, just create a file foo?bar and directory foo?baz 
and serve those using http.server, you come to know that the interpretation by 
the OP does not come up here.

If you any counter arguments to the above, please provide good examples or a 
better yet, the test_httpservers patch.

--
status: open -> pending

___
Python tracker 

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



  1   2   3   4   >