[issue5639] Support TLS SNI extension in ssl module

2009-08-31 Thread Daniel Black
Daniel Black dan...@cacert.org added the comment: The small deficiency with these patches is that the specified server_hostname is almost always the hostname that is used in the socket pair of connect. Is it appropriate to grab the hostname value and use it in the SNI extension header?

[issue6788] codecs.open on Win32 does not force binary mode

2009-08-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I think your test is invalid: it creates the file in w mode, so \n are written as two bytes \r\n on the disk. codecs.open just reads them back. -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - pending

[issue6809] Python string.lstrip bug?

2009-08-31 Thread Andrew Liu
New submission from Andrew Liu mushywu...@gmail.com: A simple lstrip on the following causes an extra character to be stripped, as per the below. Tried on 2.6.1 and on 2.4.3, as below. Python 2.6.1 (r261:67515, Feb 27 2009, 02:54:13) [GCC 4.3.2 20081105 (Red Hat 4.3.2-7)] on linux2 Type help,

[issue6801] symmetric_difference_update documentation fix

2009-08-31 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, in that case I don't understand how it is different from difference_update() ? It's different from difference_update because that takes multiple arguments. The operator form shows an equivalent and therefore shows how to write an

[issue6809] Python string.lstrip bug?

2009-08-31 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This is not a bug: the argument to lstrip effectively specifies a set of characters to be removed; in your example, 'c' is in that set, so the 'c' at the beginning of city gets removed. 'i' is not in that set, so it stays. lstrip(...)

[issue2973] _ssl compiler warnings

2009-08-31 Thread Daniel Black
Daniel Black dan...@cacert.org added the comment: The changeset that changed the definitions is here: http://cvs.openssl.org/chngview?cn=12024 (2004-Mar-14 23:15:13 (UTC)) As you can see there is no easy identifier in the changeset (i'm not sure how portable an ifdef on a typedef is (possible

[issue6810] add link to the documentation of signal.signal

2009-08-31 Thread Yinon Ehrlich
New submission from Yinon Ehrlich yino...@users.sourceforge.net: in http://docs.python.org/library/signal.html#signal.signal the reader is referred to see the reference manual section on the standard type hierarchy. It would be generous if we will supply a link like

[issue3212] ssl module - should test for a wrong cert

2009-08-31 Thread Daniel Black
Daniel Black dan...@cacert.org added the comment: Is fixed in p3k Mon Sep 8 16:45:19 2008 UTC http://svn.python.org/view/python/branches/py3k/Lib/test/test_ssl.py?r1=65837r2=66311 -- nosy: +grooverdan versions: +Python 3.1, Python 3.2 ___ Python

[issue6802] build fails on Snow Leopard

2009-08-31 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The patch works for me. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___

[issue6297] Added Misc/python.pc to 'distclean' Rule

2009-08-31 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the patch. Applied in r74604 (trunk), r74605 (py3k), r74606 (release31-maint). -- assignee: georg.brandl - marketdickinson components: +Build -Documentation nosy: +marketdickinson resolution: - accepted stage: -

[issue2637] urllib.quote() escapes characters unnecessarily and contrary to docs

2009-08-31 Thread Senthil
Senthil orsent...@gmail.com added the comment: Fixed and Committed revision 74608 - trunk Committed revision 74609 - py3k -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2637

[issue6802] build fails on Snow Leopard

2009-08-31 Thread Ned Deily
Ned Deily n...@acm.org added the comment: With the patch installed, no regressions were seen running my standard set of OSX installer builds/installs/regtests on 10.4 and 10.5. -- ___ Python tracker rep...@bugs.python.org

[issue6811] add a filename argument to marshal.load*

2009-08-31 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: For compatibility w/ import, importlib needs the ability to set code.co_filename to the actual location of the bytecode used to create a module and not the path embedded in the marshal data. But since co_filename is read-only it can't be done

[issue6811] add a filename argument to marshal.load*

2009-08-31 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6811 ___ ___ Python-bugs-list mailing

[issue6802] build fails on Snow Leopard

2009-08-31 Thread Jason Montleon
Changes by Jason Montleon mont...@hotmail.com: -- nosy: +xaoslaad ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list

[issue992389] attribute error after non-from import

2009-08-31 Thread Adam Olsen
Adam Olsen rha...@gmail.com added the comment: The key distinction between this and a bad circular import is that this is lazy. You may list the import at the top of your module, but you never touch it until after you've finished importing yourself (and they feel the same about you.) An ugly

[issue992389] attribute error after non-from import

2009-08-31 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I have done a lazy importer like you describe, Adam, and it does help solve this issue. And it does have the problem of import errors being triggered rather late and in an odd spot. -- ___ Python

[issue992389] attribute error after non-from import

2009-08-31 Thread Adam Olsen
Adam Olsen rha...@gmail.com added the comment: It'd probably be sufficient if we raised NameError: lazy import 'foo' not yet complete. That should require a set of what names this module is lazy importing, which is checked in the failure paths of module attribute lookup and global/builtin

[issue6812] Snow Leopard python program fails because _PyType_Modified is missing from python framework

2009-08-31 Thread Seamus O'Shea
New submission from Seamus O'Shea os...@uleth.ca: Attempts to compile a simple example using XCode 3.2 (Xcode IDE: 1610.0, Xcode Core: 1608.0, ToolSupport: 1591.0)under Snow Leopard fail with error message Traceback (most recent call last): File /Users/seamus/Science/xcode exploration/Objc-

[issue5639] Support TLS SNI extension in ssl module

2009-08-31 Thread Phil Pennock
Phil Pennock python-...@spodhuis.org added the comment: (Sorry for dropping this, lost available time) I see your point. OTOH, use of SNI needs to be something that can be disabled and people need to be able to connect to host A while supplying host B, not necessarily using IP addresses for

[issue5468] urlencode does not handle bytes, and could easily handle alternate encodings

2009-08-31 Thread Miles Kaufmann
Changes by Miles Kaufmann mile...@umich.edu: Removed file: http://bugs.python.org/file14796/urllib_parse.py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5468 ___

[issue6813] update format() documentation and tutorial

2009-08-31 Thread Daniel Black
New submission from Daniel Black dan...@cacert.org: Release notes show the use of '{}'.format('this') and the attached patch updates this to be the default example in the tutorial. Library references are updated to show field_name as optional and a few examples are added. Relates to the