[issue10461] Use with statement throughout the docs

2010-11-20 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue10461
___
___
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 michael.mischurow+...@gmail.com added the comment:

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

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
___
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 michael.mischurow+...@gmail.com added the comment:

Patch for Doc/library/collections.rst

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
___
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 michael.mischurow+...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue10461
___
___
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 michael.mischurow+...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue10461
___
___
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 michael.mischurow+...@gmail.com:


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

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



[issue5800] make wsgiref.headers.Headers accept empty constructor

2010-11-20 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Correct and update patch + update test case

--
keywords: +patch
nosy: +SilentGhost
Added file: http://bugs.python.org/file19680/headers.py.diff

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



[issue5800] make wsgiref.headers.Headers accept empty constructor

2010-11-20 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

here is the updated test case

--
Added file: http://bugs.python.org/file19681/test_wsgiref.py.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5800
___
___
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 michael.mischurow+...@gmail.com added the comment:

None of the changes are about file reading, they only about using with 
statement throughout. May be nofix then?

--

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



[issue9746] All sequence types support .index and .count

2010-11-20 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Here is the patch for the table in Doc/library/stdtypes.rst

.count on range by some reason returns a boolean. Should it not be an int?

--
keywords: +patch
nosy: +SilentGhost
Added file: http://bugs.python.org/file19715/stdtypes.rst.diff

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



[issue10474] range.count returns boolean

2010-11-20 Thread SilentGhost

New submission from SilentGhost michael.mischurow+...@gmail.com:

 a = range(5)
 a.count(5)
False
 a.count(2)
True

I believe this is related to the issue9213 that introduced count and index 
method on the range object. According to the documentation accompanying that 
fix it should return an integer.

--
components: Interpreter Core
messages: 121799
nosy: SilentGhost
priority: normal
severity: normal
status: open
title: range.count returns boolean
type: behavior
versions: Python 3.2

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



[issue10474] range.count returns boolean

2010-11-20 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Benjamin, the docs say that it's possible to have count more than 1, depending 
on comparison rules. If that's the case, I'm afraid your solution might need to 
be adjusted.

--

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



[issue5800] make wsgiref.headers.Headers accept empty constructor

2010-11-21 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Do I have to resubmit the patch or can you use the existing one?

--

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



[issue6878] changed return type from tkinter.Canvas.coords

2010-11-22 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

In my original post, I mentioned that it might be just a documentation issue. 
Could someone confirm that having map object returned is actually causing any 
problems?

--

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



[issue5800] make wsgiref.headers.Headers accept empty constructor

2010-11-24 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


Removed file: http://bugs.python.org/file19680/headers.py.diff

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



[issue5800] make wsgiref.headers.Headers accept empty constructor

2010-11-24 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Re-submitting the patch for Lib/wsgiref/headers.py w/o the isinstance change

--
keywords: +patch
Added file: http://bugs.python.org/file19797/headers.py.diff

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



[issue10518] Bring back callable()

2010-11-24 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

What is the reason for this? Why do we need it?

--
nosy: +SilentGhost

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



[issue5800] make wsgiref.headers.Headers accept empty constructor

2010-11-24 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Here is the correction for the docs. I would love to see this making it into 
3.2 release.

--
Added file: http://bugs.python.org/file19804/wsgiref.rst.diff

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-11-24 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Attached patch with the try-except clause as suggested by Steven, Doug's 
example now produces the following output:

$ ./python argparse_filetype_error.py
usage: argparse_filetype_error.py [-h] [-i I]
argparse_filetype_error.py: error: no such file or directory 
'file-does-not-exist.txt'

I have digressed and fixed an issue with _bufsize 0. I thought it would be just 
natural to default to -1 which is default buffering size for a simple open call 
anyway. It also makes for a cleaner try-except clause. All tests pass, 
including akira's.

--
nosy: +SilentGhost
Added file: http://bugs.python.org/file19805/argparse.py.diff

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-11-25 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Ammended akira's patch for Lib/test/test_argparse.py to include suggested in 
review changes: with statement, import statement

--
Added file: http://bugs.python.org/file19815/test_argparse.py.diff

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



[issue10518] Bring back callable()

2010-11-25 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Just for the reference: What's new in Python 3.0 page says:

 Removed callable(). Instead of callable(f) you can use isinstance(f, 
 collections.Callable). The operator.isCallable() function is also gone.

There doesn't seem to be any indication than in two-versions time anyone would 
feel a need to resurrect it.

It might be not obvious, but it's consistent with the check for other 
attributes. And I doubt that it's any more non-obvious than the need to use it 
in a first place.

--

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



[issue10518] Bring back callable()

2010-11-25 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

surely, such a relevant bit of information is worth linking to!

--

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



[issue10518] Bring back callable()

2010-11-25 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

I wouldn't consider it approving, what Guido says is:

 I admit defeat on this one

http://mail.python.org/pipermail/python-ideas/2010-November/008747.html

Which incidentally is in response to your e-mails with the actual discussion 
following it.

--

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-11-26 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


Removed file: http://bugs.python.org/file19815/test_argparse.py.diff

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-11-26 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

On windows proposed changes to Lib/test/test_argparse.py cause it to enter an 
infinite loop in TempDirMixin.tearDown method.

As it seemed exclusively Windows issue, this new patch replaces while loop with 
the ignore_errors parameter for shutil.rmtree.

Now all test pass.

--
Added file: http://bugs.python.org/file19827/test_argparse.py.diff

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-11-27 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Steven, I'm not sure why you're insisting on ArgumentTypeError, when it should 
be ArgumentError. The file name is not coerced into a different file type, but 
rather the error occurs when trying to use parameter passed.

In any way, my patch is still available. Do you not like something about it?

--

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



[issue10518] Bring back callable()

2010-11-27 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

I thought PEP 3003 was quite unambiguous:

This PEP proposes a temporary moratorium (suspension) of **all changes** to 
the Python language syntax, semantics, and built-ins for a period of at least 
two years from the release of Python 3.1. In particular, the moratorium would 
include Python 3.2 (to be released 18-24 months after 3.1) but allow Python 
3.3 (assuming it is not released prematurely) to once again include language 
changes.

--

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



[issue10518] Bring back callable()

2010-11-27 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

I thought that moratorium meant Guido dis/approval is not applicable to the 3.2

Another listed change was help ease adoption of py3k. How's that helping?

--

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



[issue10518] Bring back callable()

2010-11-27 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

yes, my problem is that callable was removed and a way was shown how to do this 
check. The way which is consistent with the check for any other type (ABC). Now 
out of the blue, w/o any justification this way is going to be ignored, because 
ah, sure. I can't be bothered typing extra three characters and the old 
function is reintroduced. 

I don't like that we're heading into Perl's direction. that's all.

--

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



[issue10518] Bring back callable()

2010-11-27 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

 ABCs are still the exception in Python, and duck typing is still the
rule.

Then why do we callable again?

Don't worry, I'll deal with it. It's not like this whole discussion mattered.

--

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

It returns False on the latest py3k checkout as well.

--
nosy: +SilentGhost

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


--
versions: +Python 3.2

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

It's not just this character. isspace() is also False for \u200c and \u200d 
(from the same category). and \u2060, \u2800 and \ufeff

--

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



[issue10567] Some unicode space characters are not recognized as a space

2010-11-28 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


--
title: Unicode space character \u200b unrecognised a space - Some unicode 
space characters are not recognized as a space

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

I'm not quoting anything. Thank you very much.

--

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


--
nosy:  -SilentGhost

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



[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-11-29 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


--
title: (Fancy) URL opener stucks whet try to open page - (Fancy) URL opener 
stuck when trying to open redirected url

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



[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-11-29 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

@xhresko: This is not valid py3k code.

It is 302 redirect. I get the following error:

IOError: [Errno socket error] [Errno 10060] A connection attempt failed because 
the connected party did not properly respond after a period of time, or 
established connection failed because connected host has failed to respond

--
nosy: +SilentGhost

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



[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-11-29 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

@xhresko: why are you passing empty dict to the constructor? it works just fine 
with opener = urllib.request.FancyURLopener() 

resolution: invalid ?

--

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



[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-11-29 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


--
versions:  -Python 2.7

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



[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-11-29 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


--
versions: +Python 2.7

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



[issue2690] Precompute range length and enhance range subscript support

2010-12-10 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Not sure this worth a patch, to me it looks like a removal of a single word. 
But here it goes anyway.

--
nosy: +SilentGhost
Added file: http://bugs.python.org/file20003/stdtypes.rst.diff

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



[issue2690] Precompute range length and enhance range subscript support

2010-12-11 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

here is the patch for the py3k docs.

--
Added file: http://bugs.python.org/file20021/stdtypes.rst.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2690
___
___
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-12-19 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
___
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-12-19 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

following re-organization of the logging docs, I'm attaching updated patch.

--
nosy: +vinay.sajip
Added file: http://bugs.python.org/file20112/logging-cookbook.rst.diff

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



[issue10793] hashlib.hash.digest() documentation incorrect re return type

2010-12-29 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

One-word patch attached.

--
keywords: +patch
nosy: +SilentGhost
Added file: http://bugs.python.org/file20191/hashlib.rst.diff

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



[issue8013] time.asctime segfaults when given a time in the far future

2011-01-02 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

Sasha, commit is not working. It doesn't pass test on Ubuntu and returns the 
string with a trailing \n. Seems like that hunk of code is misplaced.

--
nosy: +SilentGhost

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



[issue8013] time.asctime segfaults when given a time in the far future

2011-01-02 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

I'm not sure that whether it's related to the current issue, but asctime 
doesn't seem to accept years  1900. Which might be fair enough, has this been 
documented.

--

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



[issue8013] time.asctime segfaults when given a time in the far future

2011-01-02 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

yes, sorry. what I meant to say is that fixing only upper bound for the year 
(according to CERT recommendation cited above) and leaving the lower bound in 
its current state is somewhat unsatisfactory.

--

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



[issue8013] time.asctime segfaults when given a time in the far future

2011-01-03 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

All tests pass and all works as documented with the latest patch on Ubuntu 
(glibc 2.11).

--

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



[issue10873] String formatting example invalid

2011-01-09 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Works as advertised for me. Unless more information is added, it looks like an 
invalid issue.

--
nosy: +SilentGhost

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




[issue10874] test_urllib2 shouldn't use is operator for comparing strings

2011-01-09 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Shouldn't that be:

self.assertIs(req.type == ftp, ftp)

?

--
nosy: +SilentGhost

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



[issue10874] test_urllib2 shouldn't use is operator for comparing strings

2011-01-09 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


Added file: http://bugs.python.org/file20326/test_urllib2.diff

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



[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Here is the patch implementing all but the url suggestion.

Doctest still has 11 failures (changing to '0x...' didn't help).

--
keywords: +patch
nosy: +SilentGhost
Added file: http://bugs.python.org/file20329/regex.rst.diff

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



[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

A few bits and pieces fixed compared to the previous patch.

 doctest.testfile(/home/mischa/pydev/Doc/howto/regex.rst, module_relative 
 = False, optionflags=doctest.ELLIPSIS)
TestResults(failed=0, attempted=98)

--
Added file: http://bugs.python.org/file20331/regex.rst.diff

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



[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


Removed file: http://bugs.python.org/file20329/regex.rst.diff

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



[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

It seems that the special sequences description in Matching Characters section 
need to be updated to incorporate information on unicode and bytes. I don't 
think, however, that it's a good idea just to copy that information from the 
Doc/library/re.rst May be the section could be shortened and linked to that RE 
Syntax section? there aren't any deeper links available unfortunately.

--

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



[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

I don't know whether it would be easy to strip down py3k version to 2.7 version.

Seeing how it's just a basic introduction, I would think that a single 
statement re unicode support might be sufficient. For exhaustive description of 
special sequences refer the docs and carry on with ascii strings.

Attached patch fixes path issue.

--
Added file: http://bugs.python.org/file20332/regex.rst.diff

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



[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


Removed file: http://bugs.python.org/file20331/regex.rst.diff

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



[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

 While the changes all look innocuous to me with respect to building the docs, 
 I am curious if you have tried to rebuild the HOWTO (if you have the tool 
 chain, which I do not).

I did rebuild the docs with 'make html'. Build was clean every time. If you 
meant something else please let me know.

--

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



[issue10894] Making stdlib APIs private

2011-01-12 Thread SilentGhost

New submission from SilentGhost ghost@gmail.com:

Following suggestion in the Developers Guide 
(http://docs.python.org/devguide/#index-5) and the rules proposed by Michael 
Foord (http://mail.python.org/pipermail/python-dev/2010-November/105476.html):

 If a module or package defines __all__ that authoritatively defines the 
public interface. Modules with __all__ SHOULD still respect the naming 
conventions (leading underscore for private members) to avoid confusing 
users. Modules SHOULD NOT export private members in __all__.

 Names imported into a module a never considered part of its public API 
unless documented to be so or included in __all__.

 Methods / functions / classes and module attributes whose names begin 
with a leading underscore are private.

 If a class name begins with a leading underscore none of its members are 
public, whether or not they begin with a leading underscore.

 If a module name in a package begins with a leading underscore none of 
its members are public, whether or not they begin with a leading underscore.

 If a module or package doesn't define __all__ then all names that don't 
start with a leading underscore are public.

 All public members MUST be documented. Public functions, methods and 
classes SHOULD have docstrings. Private members may have docstrings.

 Where in the standard library this means that a module exports stuff 
that isn't helpful or shouldn't be part of the public API we need to 
migrate to private names and follow our deprecation process for the 
public names.


The following deprecation method is adopted:

from warnings import warn as _warn

def no_underscore(parameters):
_warn(The module.no_underscore() function is deprecated,
 DeprecationWarning, 2)
return _no_underscore(parameters)

Note: this is a meta-issue. It should only depend on all individual issues 
fixing APIs. It's currently dependant only on resolved issue10371.

As I don't think it's reasonable to create an issue per stdlib module, I'm 
going to group a few modules in issue. However, when submitting patches, please 
create a patch per module to minimize disturbance. The files to check: 
Lib/module.py, Lib/test/test_module.py, Doc/library/module.rst

--
components: Library (Lib)
messages: 126094
nosy: SilentGhost, brett.cannon
priority: normal
severity: normal
status: open
title: Making stdlib APIs private
versions: Python 3.3

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



[issue10895] Private stdlib API: getopt, getpass, glob, gzip, genericpath, gettext

2011-01-12 Thread SilentGhost

New submission from SilentGhost ghost@gmail.com:

Module generic path is in order (added here only for completeness).

Attached patch is for getopt.

--
components: Library (Lib)
files: getopt_api.diff
keywords: patch
messages: 126095
nosy: SilentGhost
priority: normal
severity: normal
status: open
title: Private stdlib API: getopt, getpass, glob, gzip, genericpath, gettext
versions: Python 3.3
Added file: http://bugs.python.org/file20365/getopt_api.diff

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



[issue10894] Making stdlib APIs private

2011-01-12 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Depends on issue10895

--

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



[issue10895] Private stdlib API: getopt, getpass, glob, gzip, genericpath, gettext

2011-01-12 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Attached patch is for glob.

While I haven't touched it, I find it strange that Doc/library/glob.rst draws 
special attention to the actual source code of the glob module. Since, in my 
view, it's pertaining to the public API, I would consider deleting that See 
also note.

--
Added file: http://bugs.python.org/file20366/glob_api.diff

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



[issue10895] Private stdlib API: getopt, getpass, glob, gzip, genericpath, gettext

2011-01-12 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Attached patch is for getpass.

Additionally, I let myself remove superfluous import.

--
Added file: http://bugs.python.org/file20367/getpass_api.diff

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



[issue10893] The docs mark staticmethod as a function

2011-01-12 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

So, is int, str, bool and enumerate. And many others. The preface on functions 
page (http://docs.python.org/dev/library/functions.html) says: 

The Python interpreter has a number of functions and types built into it that 
are always available.

I would think it's clear enough.

--
nosy: +SilentGhost

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



[issue10895] Private stdlib API: getopt, getpass, glob, gzip, genericpath, gettext

2011-01-12 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Attached patch is for gzip.

Additionally, I had to fix import and removed two unused (?) functions. Let me 
know if that's inappropriate. I wasn't sure what to do about constants (all 
caps vars) so I left them as they were.

--
Added file: http://bugs.python.org/file20371/gzip_api.diff

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



[issue10895] Private stdlib API: getopt, getpass, glob, gzip, genericpath, gettext

2011-01-12 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


Removed file: http://bugs.python.org/file20367/getpass_api.diff

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



[issue10895] Private stdlib API: getopt, getpass, glob, gzip, genericpath, gettext

2011-01-12 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


Added file: http://bugs.python.org/file20372/getpass_api.diff

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



[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-12 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

It's due to the os.path.normpath not normalizing case. Here is the patch.

Also affects 3.x

--
keywords: +patch
nosy: +SilentGhost
versions: +Python 3.1, Python 3.2
Added file: http://bugs.python.org/file20378/trace.diff

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



[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-12 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
nosy: +belopolsky

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



[issue10895] Private stdlib API: getopt, getpass, glob, gzip, genericpath, gettext

2011-01-12 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Attached patch is fro gettext

None of the public members of the module has any docstrings. I'm not sure that 
simple copying from Doc/library/gettext.rst would be satisfactory. But if it 
is, please let me know.

--
Added file: http://bugs.python.org/file20379/gettext_api.diff

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



[issue10897] UNIX mmap unnecessarily dup() file descriptor

2011-01-12 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
nosy: +SilentGhost

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



[issue10894] Making stdlib APIs private

2011-01-12 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
nosy: +rhettinger

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



[issue10897] UNIX mmap unnecessarily dup() file descriptor

2011-01-12 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

version of the lorenz's patch agains py3k branch.

--
Added file: http://bugs.python.org/file20380/mmap.diff

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



[issue10874] test_urllib2 shouldn't use is operator for comparing strings

2011-01-12 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Committed for 2.7 in r87964, for 3.1 in r87965.

--

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



[issue2650] re.escape should not escape underscore

2011-01-12 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
nosy: +SilentGhost

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



[issue2650] re.escape should not escape underscore

2011-01-13 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Here is the patch, including adjustment to the test.

--
Added file: http://bugs.python.org/file20388/issue2650.diff

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



[issue10013] fix `./libpython2.6.so: undefined reference to `_PyParser_Grammar´` in parallel builds

2011-01-13 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
resolution:  - accepted
status: open - closed
versions: +Python 3.1, Python 3.2

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



[issue2650] re.escape should not escape underscore

2011-01-13 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


Removed file: http://bugs.python.org/file20388/issue2650.diff

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



[issue2650] re.escape should not escape underscore

2011-01-13 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

The naïve version of the code proposed was about 3 times slower than existing 
version. However, the test, I think, is valuable enough. So, I'm reinstating it.

--
Added file: http://bugs.python.org/file20389/test_re.diff

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



[issue10013] fix `./libpython2.6.so: undefined reference to `_PyParser_Grammar´` in parallel builds

2011-01-13 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
resolution: accepted - fixed

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



[issue2650] re.escape should not escape underscore

2011-01-13 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

James, I think the setup statement should have been:

import re\ndef escape(s):\n return re.sub(r'([][.^$*+?{}\\|()])', r'\\\1', 
s))

note the raw string literals.

The timings that I got after applying file20388 
(http://bugs.python.org/file20388/issue2650.diff) were:
PCbuild\python.exe -m timeit -s import re, string 
re.escape(string.printable)
1 loops, best of 3: 63.3 usec per loop

python.exe -m timeit -s import re, string re.escape(string.printable)
10 loops, best of 3: 19.3 usec per loop

--

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



[issue10900] bz2 module fails to uncompress large files

2011-01-13 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
nosy: +gustavo

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



[issue10900] bz2 module fails to uncompress large files

2011-01-13 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
nosy: +niemeyer -gustavo

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



[issue10901] Python 3 MIME generator dies if not given boundary

2011-01-13 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

It is a duplicate of #1243654. Closing.

--
nosy: +SilentGhost
resolution:  - duplicate
status: open - closed
superseder:  - Faster output if message already has a boundary

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



[issue1243654] Faster output if message already has a boundary

2011-01-13 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Issue #10901 was closed as a duplicate of this issue.

--
nosy: +SilentGhost
versions: +Python 3.1, Python 3.2

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



[issue10908] Improvements to trace._Ignore

2011-01-14 Thread SilentGhost

New submission from SilentGhost ghost@gmail.com:

In the course of fixing #10896 I've noticed a few things:

 1. --ignore-dir='$prefix' doesn't work on windows. I don't know if it has to, 
there is no information in docs regarding it at all. It does work on Unix.
 2. The way module check is done is inefficient.
 3. I'm not sure if filename could ever get the value of None in _Ignore.names 
(there is check for that though)
 4. it's not clear why _Ignore initialised with default values of None, that 
path was never exercised and while I've added a test for it, I'm actually not 
sure if it's needed.
 5. general clean up was needed for the code dealing with ignoring.

Attached is the patch.
 The only change, that I consider beneficial, is that the ignored dir doesn't 
have actually be a directory.

--
components: Library (Lib)
files: trace_ignore.diff
keywords: easy, patch
messages: 126271
nosy: SilentGhost, belopolsky, vrutsky
priority: normal
severity: normal
status: open
title: Improvements to trace._Ignore
versions: Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file20407/trace_ignore.diff

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



[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-14 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

#10908 is dealing with this and other issue re ignored dirs.

--
status: open - closed
superseder:  - Improvements to trace._Ignore

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



[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-01-15 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
status: open - languishing

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



[issue10908] Improvements to trace._Ignore

2011-01-15 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

The patch aside from fixing directory names on case-insensitive file systems, 
also:
 * implements more efficient handling of directory and module comparison (put 
into _Ignoore.__init__ instead of _Ignore.names).
 * changes integer return codes to boolean
 * doesn't require any more that the directory is actually a directory name.
 * moves --ignore-dir processing into a directory so that it can be expanded if 
$prefix support on windows is needed.
 * adds tests.

--
stage:  - patch review

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



[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-15 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
status: closed - open

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



[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-15 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
nosy:  -SilentGhost

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



[issue10908] Improvements to trace._Ignore

2011-01-15 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
dependencies: +trace module compares directories as strings (--ignore-dir)
type:  - performance

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



[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-19 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Vladimir, superseder's patch fixes that too.

--

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



[issue9509] argparse FileType raises ugly exception for missing file

2011-01-19 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
status: open - languishing

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



[issue9509] argparse FileType raises ugly exception for missing file

2011-01-19 Thread SilentGhost

SilentGhost ghost@gmail.com added the comment:

Here is the single patch. All tests pass.

--
Added file: http://bugs.python.org/file20456/argparse.diff

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



[issue9509] argparse FileType raises ugly exception for missing file

2011-01-19 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


Removed file: http://bugs.python.org/file19827/test_argparse.py.diff

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



[issue9509] argparse FileType raises ugly exception for missing file

2011-01-19 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


Removed file: http://bugs.python.org/file19805/argparse.py.diff

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



[issue9509] argparse FileType raises ugly exception for missing file

2011-01-19 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


Added file: http://bugs.python.org/file20458/argparse.diff

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



  1   2   3   4   5   6   7   8   9   10   >