[issue7619] imaplib shouldn't use cause DeprecationWarnings in 2.6

2010-01-02 Thread djc

djc  added the comment:

Awesome, thanks! Will this be ported to the 2.6.x branch?

--

___
Python tracker 

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



[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2010-01-02 Thread Mark Dickinson

Mark Dickinson  added the comment:

The last two functions to consider adding are exp2 and log2.  Does anyone 
care about these?

--

___
Python tracker 

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



[issue7619] imaplib shouldn't use cause DeprecationWarnings in 2.6

2010-01-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

2010/1/2 djc :
>
> djc  added the comment:
>
> Awesome, thanks! Will this be ported to the 2.6.x branch?

It already is.

--

___
Python tracker 

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



[issue1759169] clean up Solaris port and allow C99 extension modules

2010-01-02 Thread anders musikka

anders musikka  added the comment:

Just wanted to chip in my $.02: 

Defining _XOPEN_SOURCE in the python headers causes problems for
Solaris. It also causes problems for Ubuntu Linux.

Because _XOPEN_SOURCE is defined, Python.h must included first in any
program under Ubuntu.

Perhaps the right fix is to just not define _XOPEN_SOURCE at all? Which
platforms disable important features when you don't define _XOPEN_SOURCE?

Sometimes there are standards which nobody follows. In such cases it can
be advantageous to "just do what everyone expects".

--
nosy: +avl

___
Python tracker 

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



[issue7615] unicode_escape codec does not escape quotes

2010-01-02 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Richard Hansen wrote:
> 
> New submission from Richard Hansen :
> 
> The description of the unicode_escape codec says that it produces "a
> string that is suitable as Unicode literal in Python source code." [1] 
> Unfortunately, this is not true as it does not escape quotes.  For example:
> 
>   print u'a\'b"c\'\'\'d"""e'.encode('unicode_escape')
> 
> outputs:
> 
>   a'b"c'''d"""e

Indeed. Python only uses the decoder of that codec internally.

> I have attached a patch that fixes this issue by escaping single quotes.
>  With the patch applied, the output is:
> 
>   a\'b"c\'\'\'d"""e
> 
> I chose to only escape single quotes because:
>   1.  it simplifies the patch, and
>   2.  it matches string_escape's behavior.

If we change this, the encoder should quote both single and double
quotes - simply because it is not known whether the literal
will use single or double quotes.

The raw_unicode_escape codec would have to be fixed as well.

--

___
Python tracker 

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



[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2010-01-02 Thread Daniel Stutzbach

Daniel Stutzbach  added the comment:

Any time I've ever needed log2(x), log(x)/log(2) was sufficient.

In Python, exp2(x) can be spelled 2.0**x.  What would exp2(x) gain us?

--

___
Python tracker 

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



[issue7592] ssl module documentation: SSLSocket.unwrap description shown twice

2010-01-02 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in r77236.

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



[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2010-01-02 Thread Mark Dickinson

Mark Dickinson  added the comment:

> In Python, exp2(x) can be spelled 2.0**x.  What would exp2(x) gain us?

Not much, I suspect.  :)

I'd expect (but am mostly guessing) exp2(x) to have better accuracy than 
pow(2.0, x) for some math libraries;  I'd further guess that it's somewhat 
more likely to give exact results for (small) integral x.

Similarly for log2:  log2(n) should be a touch more accurate than 
log(n)/log(2), and the time you're most likely to notice the difference is 
when n is an exact power of 2.

But we've already got the 'bit_length' method for integers, which fills 
some of the potential uses for log2.  So unless there's a feeling that 
these functions are needed, I'd rather leave them out.

--

___
Python tracker 

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



[issue7620] Vim syntax highlight

2010-01-02 Thread July Tikhonov

New submission from July Tikhonov :

'python.vim' syntax rules script was created for python 2 
(automatically, using script 'vim_python.py').

This patch updates it to run by python 3.

Some bugs with highlighting strings and numbers are resolved, too.

Also, 'syntax_test.py' is updated; relatively extensive tests on 
numbers, strings and statements added.

--
components: Demos and Tools
files: vimsyntax.diff
keywords: patch
messages: 97134
nosy: July
severity: normal
status: open
title: Vim syntax highlight
type: feature request
versions: 3rd party
Added file: http://bugs.python.org/file15719/vimsyntax.diff

___
Python tracker 

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



[issue1619] Test

2010-01-02 Thread Georg Brandl

New submission from Georg Brandl :

Testing submission of long lines:
http://www.gnu.org/software/autoconf/manual/html_node/Specifying-Target-Triplets.html

http://www.gnu.org/software/autoconf/manual/html_node/Specifying-
Target-Triplets.html

http://www.gnu.org/software/autoconf/manual/html_node/Specifyin
g-Target-Triplets.html

--
nosy: +georg.brandl

___
Python tracker 

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



[issue5576] Don't use PyLong_SHIFT with _PyLong_AsScaledDouble()

2010-01-02 Thread Mark Dickinson

Mark Dickinson  added the comment:

Applied in r77234 (trunk), r77237 (py3k).

--
resolution:  -> accepted
stage: patch review -> committed/rejected
status: open -> closed
versions: +Python 3.2 -Python 3.1

___
Python tracker 

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



[issue7621] Test issue

2010-01-02 Thread Georg Brandl

New submission from Georg Brandl :

[Test]

`configure` should support --with-system-expat option (similarly to
--with-system-ffi) to use an internal copy of expat. It will be useful
for some distributions (e.g. Gentoo), which prefer to use system
libraries instead internal copies.

--
messages: 97137
nosy: georg.brandl
severity: normal
status: open
title: Test issue

___
Python tracker 

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



[issue7621] Test issue

2010-01-02 Thread Georg Brandl

Changes by Georg Brandl :


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



[issue7621] Test issue

2010-01-02 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis  added the comment:

http://www.gnu.org/software/autoconf/manual/html_node/Specifying-Target-Triplets.html

--
nosy: +Arfrever

___
Python tracker 

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



[issue7621] Test issue

2010-01-02 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis  added the comment:

http://www.gnu.org/software/autoconf/manual/html_node/Specifying-

--

___
Python tracker 

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



[issue7621] Test issue

2010-01-02 Thread Georg Brandl

Georg Brandl  added the comment:

http://www.gnu.org/software/autoconf/manual/html_node/Specifying-Target-

--

___
Python tracker 

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



[issue7621] Test issue

2010-01-02 Thread Ezio Melotti

Ezio Melotti  added the comment:

http://www.gnu.org/software/autoconf/manual/html_node/Specifying-Target-

---

http://www.gnu.org/software/autoconf/manual/html_node/Specifying-Target-

---

http://www.gnu.org/software/autoconf/manual/html_node/Specifying-Target-

--
nosy: +ezio.melotti

___
Python tracker 

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



[issue7621] Test issue

2010-01-02 Thread Ezio Melotti

Ezio Melotti  added the comment:

'aabbccddeeffgghh

--

___
Python tracker 

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



[issue7618] optparse library documentation has an insignificant formatting issue

2010-01-02 Thread July Tikhonov

July Tikhonov  added the comment:

Also, I found 4 similar problems in this text (seach 'usage:' to find 
them).

These are resolved in this patch.

--
keywords: +patch
nosy: +July
Added file: http://bugs.python.org/file15720/doc-library-optparse.diff

___
Python tracker 

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



[issue7618] optparse library documentation has an insignificant formatting issue

2010-01-02 Thread Georg Brandl

Changes by Georg Brandl :


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



[issue7621] Test issue

2010-01-02 Thread Ezio Melotti

Ezio Melotti  added the comment:

More testing:
'aabbccddeeffgghhiijjkk'

--

___
Python tracker 

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



[issue7621] Test issue

2010-01-02 Thread Ezio Melotti

Ezio Melotti  added the comment:

http://psf.upfronthosting.co.za/roundup/meta/issue309

--

___
Python tracker 

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



[issue7462] Implement fastsearch algorithm for rfind/rindex

2010-01-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I've added a version number to stringbench and committed the changes in r77240.

--

___
Python tracker 

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



[issue7620] Vim syntax highlight

2010-01-02 Thread July Tikhonov

July Tikhonov  added the comment:

Reuploaded (some syntax groups fixed).

--
Added file: http://bugs.python.org/file15721/misc-vim-syntax.diff

___
Python tracker 

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



[issue7620] Vim syntax highlight

2010-01-02 Thread July Tikhonov

Changes by July Tikhonov :


Removed file: http://bugs.python.org/file15719/vimsyntax.diff

___
Python tracker 

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



[issue7620] Vim syntax highlight

2010-01-02 Thread Brett Cannon

Changes by Brett Cannon :


--
assignee:  -> brett.cannon
nosy: +brett.cannon
priority:  -> low
stage:  -> patch review

___
Python tracker 

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



[issue7620] Vim syntax highlight

2010-01-02 Thread Brett Cannon

Changes by Brett Cannon :


--
versions: +Python 3.2 -3rd party

___
Python tracker 

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



[issue7462] Implement fastsearch algorithm for rfind/rindex

2010-01-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The main patch has been committed in r77241 (trunk) and r77246 (py3k).
I've ommitted the tests you had added for issue7458.
Thank you!

--
resolution:  -> fixed
stage: commit review -> 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



[issue7619] imaplib shouldn't use cause DeprecationWarnings in 2.6

2010-01-02 Thread djc

djc  added the comment:

Perfect.

--

___
Python tracker 

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



[issue7458] crash in str.rfind() with an invalid start value

2010-01-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Ok, I've committed the tests after the patch for issue7462 removed the 
offending code. 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



[issue3745] _sha256 et al. encode to UTF-8 by default

2010-01-02 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

trunk r77252 switches python 2.7 to use 's*' for argument parsing.  unicodes 
can be hashed (encoded to the system default encoding by s*) again.

This change has been blocked from being merged into py3k unless someone decides 
we actually want this magic unicode encoding behavior to exist there as well.

setup.py has also been updated to compile all versions of the hash algorithm 
modules when Py_DEBUG is defined.  I'll update tests run on all implementations 
next so that it is easier for developers to maintain identical behavior across 
all implementations without needing to explicitly remember to reconfigure their 
setup and test those.

--

___
Python tracker 

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



[issue3745] _sha256 et al. encode to UTF-8 by default

2010-01-02 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

In order to get a -3 PyErr_WarnPy3k warning for unicode being passed to hashlib 
objects (a nice idea) I suggest creating an additonal 's*' like thing ('s3' 
perhaps?) in Python/getargs.c for that purpose rather than modifying all of the 
hashlib modules to accept an O, type check it and warn, and then re-parse it as 
a s* (that'd be a lot of tedious code duplication).

--

___
Python tracker 

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



[issue3745] _sha256 et al. encode to UTF-8 by default

2010-01-02 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

I believe everything in here has been addressed.  Please open new issues with 
details for anything that doesn't quite right.

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



[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2010-01-02 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

trunk r77263 and r77264 add this feature, including documentation and tests.

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



[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2010-01-02 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Here is the corrected patch for caching the 301 redirections.

* It caches only the redirection not the response.
* It retains cacheable=True kwarg for http_error_301 method. ( I feel, it 
should be useful)
* Have made the cached dict as private.

I have updated the tests. The existing tests for 301 see no changes too.

If you have any review comments, please pitch in. (I shall add the docs and 
news entry before commit)

Thanks!

--
Added file: 
http://bugs.python.org/file15722/urllib2-301-redirection-CORRECTED.diff

___
Python tracker 

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



[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2010-01-02 Thread Senthil Kumaran

Changes by Senthil Kumaran :


Removed file: http://bugs.python.org/file15677/urllib2-301-redirection.diff

___
Python tracker 

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