[issue5639] Support TLS SNI extension in ssl module

2010-05-23 Thread Daniel Black

Daniel Black  added the comment:

> msg106323 - Author: Antoine Pitrou (pitrou) Date: 2010-05-22 20:17

I quite like your proposed alternative here. Not sure when/if I'll get to 
implement this.

> msg106324  - Author: Jean-Paul Calderone (exarkun) Date: 2010-05-22 22:17
Sorry I don't like this as much. I believe following the RFC for TLS SNI should 
be implicit and not something the programmer need to put effort into achieving. 
I acknowledge this approach does go against some explicit behaviour programming 
quality metrics.

--

___
Python tracker 

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



[issue8793] IDLE crashes on opening invalid file

2010-05-23 Thread royf

New submission from royf :

1. Create a file containing this line:
'\xdk'

2. Open the file for editing in IDLE 2.6.4. Banner:
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on 
win32

3. Run Module (F5) -> Bug#1: no error is shown

4. Run Module 7 more times (exactly!) -> Bug#2: IDLE crashes

--
components: IDLE
messages: 106328
nosy: royf
priority: normal
severity: normal
status: open
title: IDLE crashes on opening invalid file
type: crash
versions: Python 2.6

___
Python tracker 

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



[issue8794] Python, reynaldo bendijo wants to chat

2010-05-23 Thread reynaldo

New submission from reynaldo :

I've been using Google Talk and thought you might like to try it out.
We can use it to call each other for free over the internet. Here's an
invitation to download Google Talk. Give it a try!

---

reynaldo bendijo wants to stay in better touch using some of Google's
coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-bea89ac769-8aa0f7d30c-M7u-8vnkjuK6niiM4o2sjhHHJRw
You'll need to click this link to be able to chat with reynaldo bendijo.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with reynaldo bendijo, visit:
http://mail.google.com/mail/a-bea89ac769-8aa0f7d30c-M7u-8vnkjuK6niiM4o2sjhHHJRw

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

--
messages: 106329
nosy: renben
priority: normal
severity: normal
status: open
title: Python, reynaldo bendijo wants to chat

___
Python tracker 

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



[issue8794] spam

2010-05-23 Thread Mark Dickinson

Changes by Mark Dickinson :


--
resolution:  -> invalid
status: open -> closed
title: Python, reynaldo bendijo wants to chat -> spam

___
Python tracker 

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



[issue8794] spam

2010-05-23 Thread Mark Dickinson

Changes by Mark Dickinson :


--

___
Python tracker 

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



[issue8791] spam

2010-05-23 Thread Mark Dickinson

Changes by Mark Dickinson :


--
title: See "Hamster" on your Google homepage -> spam

___
Python tracker 

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



[issue8790] spam

2010-05-23 Thread Mark Dickinson

Changes by Mark Dickinson :


--
title: See "Hamster" on your Google homepage -> spam

___
Python tracker 

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



[issue8789] spam

2010-05-23 Thread Mark Dickinson

Changes by Mark Dickinson :


--
title: See "Hamster" on your Google homepage -> spam

___
Python tracker 

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



[issue1368368] prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page

2010-05-23 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
assignee:  -> orsenthil
stage: unit test needed -> needs patch

___
Python tracker 

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



[issue8795] Error sending utf8 strings over syslog udp protocol

2010-05-23 Thread Arie Skliarouk

New submission from Arie Skliarouk :

I am trying to send utf8 strings over syslog/udp and get strange error:
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/handlers.py", line 788, in emit
self.socket.sendto(msg, self.address)
TypeError: sendto() takes exactly 3 arguments (2 given)

See the attached program, at the beginning it has two parameters - log to file 
or udp and use utf8 or not. It works in all cases but the udp+utf8.

--
components: Unicode
files: logger_udp_utf8.py
messages: 106330
nosy: skliarie
priority: normal
severity: normal
status: open
title: Error sending utf8 strings over syslog udp protocol
versions: Python 2.6
Added file: http://bugs.python.org/file17445/logger_udp_utf8.py

___
Python tracker 

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



[issue8795] Error sending utf8 strings over syslog udp protocol

2010-05-23 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
assignee:  -> vinay.sajip
nosy: +vinay.sajip

___
Python tracker 

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



[issue5639] Support TLS SNI extension in ssl module

2010-05-23 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
> ctx.set_tlsext_host_name("foo.bar")

Well, the hostname should be specific to a connection, so I'm not sure it makes 
sense to set it on the context.
(besides, the OpenSSL APIs only allow it to be set on the SSL structure)

--

___
Python tracker 

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



[issue8792] xmlrpclib compatibility issues with Apache XML-RPC library

2010-05-23 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +loewis
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



[issue6900] Sub-optimal "Locate" button behaviour in Windows CHM file

2010-05-23 Thread Georg Brandl

Georg Brandl  added the comment:

OK, I've now deactivated the "Binary TOC" setting in Sphinx' repo; it will be 
used for Python when I release a new version.

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



[issue8188] Unified hash for numeric types.

2010-05-23 Thread Mark Dickinson

Mark Dickinson  added the comment:

Committed the hash changes in r81486.  This commit just changes the method for 
computing hash values;  it doesn't include the changes to the decimal module 
that make Decimal instances comparable with Fraction instances.

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



[issue1628205] socket.readline() interface doesn't handle EINTR properly

2010-05-23 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

Backported to release26-maint in r81488.

--
nosy: +exarkun

___
Python tracker 

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



[issue8354] siginterrupt with flag=False is reset when signal received

2010-05-23 Thread vila

Changes by vila :


--
nosy: +vila

___
Python tracker 

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



[issue1628205] socket.readline() interface doesn't handle EINTR properly

2010-05-23 Thread vila

Changes by vila :


--
nosy: +vila

___
Python tracker 

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



[issue5639] Support TLS SNI extension in ssl module

2010-05-23 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

> Sorry I don't like this as much. I believe following the RFC for TLS SNI 
> should be implicit and not something the programmer need to put effort into 
> achieving. I acknowledge this approach does go against some explicit 
> behaviour programming quality metrics.

It's almost always wrong for Python to enforce a particular *policy*, 
particularly in a very low level API (which is what the ssl module should be).  
Python's main job is to make it *possible* to do things.  It's the application 
developer's job to decide what things should be done.

It would be entirely appropriate, though, for a higher-level interface (for 
example, the httplib module) to take care of this itself and not require users 
to explicitly specify things separately.

> Well, the hostname should be specific to a connection, so I'm not sure it 
> makes sense to set it on the context.

That doesn't make sense to me.  For example, consider the case where you're 
talking to a web service.  The hostname lookup might result in 10 A records, 
which you then drop into a connection pool.  Your application doesn't care 
which server you talk to (and maybe it talks to serveral, or all, of them).  
But it does want to specify the same hostname for each.

> (besides, the OpenSSL APIs only allow it to be set on the SSL structure)

Nope, I checked before making the suggestion.  There's an SSL_CTX_ version of 
this API (in addition to the SSL_ version).

--

___
Python tracker 

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



[issue5639] Support TLS SNI extension in ssl module

2010-05-23 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

> Nope, I checked before making the suggestion.  There's an SSL_CTX_ version of 
> this API (in addition to the SSL_ version).

Sorry, I just checked again, and it seems you're right.  Perhaps I saw 
SSL_CTX_set_tlsext_servername_callback and got the two confused.

--

___
Python tracker 

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



[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-23 Thread Andrew Svetlov

Andrew Svetlov  added the comment:

I'm skeptical about surrogates particularly for that problem.
>From my perspective the solution is only to use native unicode support for 
>windows file operation functions.
Conversions utf-8 -> mbcs -> utf8 will loose encoding information thanks to 
tricky Microsoft mbcs encoding schema.
If I'm wrong please correct me.

--

___
Python tracker 

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



[issue1436346] yday in datetime module

2010-05-23 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Attaching a documentation patch.

--
Added file: http://bugs.python.org/file17446/issue1436346-doc.diff

___
Python tracker 

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



[issue1436346] yday in datetime module

2010-05-23 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
assignee: belopolsky -> 
components: +Documentation
keywords: +needs review
versions: +Python 2.7

___
Python tracker 

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



[issue7983] The encoding map from Unicode to CP932 is different from that of Windows'

2010-05-23 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +haypo, lemburg

___
Python tracker 

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



[issue8796] Deprecate codecs.open()

2010-05-23 Thread STINNER Victor

New submission from STINNER Victor :

codecs module (and codecs.open() function) was added to Python 2.0. 
codecs.open() creates a StreamReaderWriter object which use two other objects: 
StreamReader and StreamWriter.

Python 2.6 and 3.0 have a new API: the io module. io.open() creates a 
TextIOWrapper object which is fully compatible with the file object API (it 
*is* the (text) file object API :-)). TextIOWrapper supports univeral newline 
and does better support reading+writing than StreamReaderWriter. TextIOWrapper 
has a better test suite and is used by default to read and write text files in 
Python3 (since Python 3.0). The io module has an *optimized* design and the io 
module was rewritten in C (in Python 2.7 and 3.1).

codecs.open() should be deprecated in Python 3.2 and removed in Python 3.3 (not 
in Python 2.7). Maybe also StreamReader, StreamWriter and StreamReaderWriter: I 
don't know if any program use directly these classes, but I think that 
TextIOWrapper can be used instead.

--
components: Library (Lib), Unicode
messages: 106339
nosy: haypo, pitrou
priority: normal
severity: normal
status: open
title: Deprecate codecs.open()
versions: Python 3.2, Python 3.3

___
Python tracker 

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



[issue8796] Deprecate codecs.open()

2010-05-23 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +lemburg, loewis

___
Python tracker 

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



[issue8446] buildbot: DeprecationWarning not raised for icglue (test_py3kwarn.TestStdlibRemovals)

2010-05-23 Thread Bill Janssen

Bill Janssen  added the comment:

Not sure I understand this patch.  Either the icglue module is removed in 
python 3, in which case it should raise the deprecation warning, or it is not, 
in which case it should be removed from the list of modules checked in 
test_py3kwarn.  Shouldn't the patch also address one of these two cases?

--
nosy: +janssen

___
Python tracker 

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



[issue1436346] yday in datetime module

2010-05-23 Thread Georg Brandl

Georg Brandl  added the comment:

Committed in r81489.  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



[issue8750] Many of MutableSet's methods assume that the other parameter is not self

2010-05-23 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
resolution:  -> accepted

___
Python tracker 

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



[issue1368368] prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page

2010-05-23 Thread Ray.Allen

Ray.Allen  added the comment:

Since urllib.urlopen() is removed in py3k, and is intended to be replaced by 
urllib2.urlopen(), I think we'd better just leave as it is.

--
nosy: +ysj.ray

___
Python tracker 

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



[issue8446] buildbot: DeprecationWarning not raised for icglue (test_py3kwarn.TestStdlibRemovals)

2010-05-23 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The patch somewhat works, in that it makes test_py3kwarn pass but I'd add more 
filterwarning calls:

filterwarnings("ignore", ".*the icglue module is removed",
DeprecationWarning)
filterwarnings("ignore", ".*the MacOS module is removed",
DeprecationWarning)
filterwarnings("ignore", ".*the macostools module is removed",
DeprecationWarning)

This ensures that importing webbrowser won't trigger py3k warnings.
 
It is probably safe to remove the import of 'ic' and related code the block 
with guard "if sys.platform == 'darwin'" just below that overrides the IC based 
browser detection by one that doesn't use IC (that one is added to the front of 
the search list, which means the IC one never gets used).

--

___
Python tracker 

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