[issue9980] str(float) failure

2010-09-29 Thread John Machin
Changes by John Machin : -- nosy: +sjmachin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9980] str(float) failure

2010-09-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +eric.smith, mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9979] Create PyUnicode_AsWideCharString() function

2010-09-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: +1 from me as well. But shouldn't PyUnicode_AsWideCharString() merge surrogate pairs when it can? The implementation doesn't do this. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue9980] str(float) failure

2010-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: This sounds similar to issue 9215, which was due to a compiler optimization bug. Certainly it points to something going wrong in _Py_dg_dtoa. What platform are these results from? Do you have minimal code that can be used to reproduce? I'm surprised that 3.

[issue9980] str(float) failure

2010-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: > I'm surprised that 3.2 fixes this: the float-to-string conversion code > is > pretty much identical in both 3.1 and 3.2. Whoops---not quite. The conversion code *is* pretty much identical, but 3.2 now uses a different algorithm for str (it's equal to repr

[issue1669539] Change (fix!) os.path.isabs() semantics on Win32

2010-09-29 Thread Ulrich Eckhardt
Changes by Ulrich Eckhardt : -- nosy: +eckhardt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9982] Pointer problem in initializing array of arrays

2010-09-29 Thread Marvin Mundry
New submission from Marvin Mundry : >>> m1=[[0,0,0,0]]*4 >>> m1 [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] >>> m1[0][0]+=1 >>> m1 [[1, 0, 0, 0], [1, 0, 0, 0], [1, 0, 0, 0], [1, 0, 0, 0]] after initializing an array of arrays as done in the first line of the code snippet all elemen

[issue1669539] Change (fix!) os.path.isabs() semantics on Win32

2010-09-29 Thread Ulrich Eckhardt
Ulrich Eckhardt added the comment: I just stumbled across the issue with isabs(). I'd also say that Mark Hammond already provided the typical use case for this, i.e. that you allow relative paths for convenience when storing them or putting them on the commandline, but for actual use you firs

[issue5117] os.path.relpath problem with root directory

2010-09-29 Thread Ulrich Eckhardt
Changes by Ulrich Eckhardt : -- nosy: +eckhardt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9980] str(float) failure

2010-09-29 Thread Eric Smith
Eric Smith added the comment: >From their web page, it looks like PyScripter only runs on Windows, so I >assume these results are generated there. I won't be able to test on Windows until tonight. Kiriakos: Does this only happen within PyScripter, or does it also happen when you use the pyth

[issue9980] str(float) failure

2010-09-29 Thread Kiriakos Vlahos
Kiriakos Vlahos added the comment: PyScripter is a Windows only IDE. I am using the official release *** Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32. *** Python 3.2a2 fixes this since, according to SVN, str is now using the same code (or at least the s

[issue9980] str(float) failure

2010-09-29 Thread Kiriakos Vlahos
Kiriakos Vlahos added the comment: Answer to Mark's question: *** Python 3.2a2 (r32a2:84522, Sep 5 2010, 22:35:34) [MSC v.1500 32 bit (Intel)] on win32. *** >>> '%.12g' % 38210.0 '3820:' So indeed the error still exists in _Py_dg_dtoa. The internal engine uses an embedded python.dll. The r

[issue9979] Create PyUnicode_AsWideCharString() function

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: > But shouldn't PyUnicode_AsWideCharString() merge surrogate pairs when it > can? The implementation doesn't do this. I don't want to do two different things at the same time. My plan is: - create PyUnicode_AsWideCharString() - use PyUnicode_AsWideCharString(

[issue9981] let make_buildinfo use a temporary directory on windows

2010-09-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ooops, here is the patch. -- keywords: +patch Added file: http://bugs.python.org/file19056/make_buildinfo.patch ___ Python tracker ___ _

[issue9873] Allow bytes in some APIs that use string literals internally

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > A possible duck-typing approach here would be to replace the > "instance(x, str)" tests with "hasattr(x, 'encode')" checks instead. Looks more ugly than useful to me. People wanting to emulate str had better subclass it anyway... -- nosy: +pitrou _

[issue9975] Incorrect use of flowinfo and scope_id in IPv6 sockaddr tuple

2010-09-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis stage: -> patch review versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___ Pytho

[issue9982] Pointer problem in initializing array of arrays

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's expected behaviour, syntactically. Multiplying a sequence doesn't deep-copy its elements. If you want an array of distinct arrays, just write: >>> m1 = [[0,0,0,0] for i in range(4)] >>> m1[1][0] = 6 >>> m1 [[0, 0, 0, 0], [6, 0, 0, 0], [0, 0, 0, 0], [0,

[issue9978] test_os failures on XP-4 buildbot

2010-09-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I cannot reproduce this in my environment... E:\python-dev\py3k>py3k -m test.regrtest test_os [1/1] test_os [33503 refs] 1 test OK. [85140 refs] -- ___ Python tracker _

[issue5131] pprint doesn't know how to print a defaultdict

2010-09-29 Thread Nick Craig-Wood
Nick Craig-Wood added the comment: Raymond Hettinger (rhettinger) wrote: > Ben, I don't think there is any value is opening more issues like > pprint-doesn't-handle-object-x (named tuples, defautdicts, deques, > generators, etc). > > As it is currently designed, pprint doesn't offer usable ho

[issue9979] Create PyUnicode_AsWideCharString() function

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: I fixed in this issue in multiple commits: - r85093: create PyUnicode_AsWideCharString() - r85094: use it in import.c - r85095: use it for _locale.strcoll() - r85096: use it for time.strftime() - r85097: use it in _ctypes module > So, you agree with the AP

[issue9630] Reencode filenames when setting the filesystem encoding

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: Forget my previous message, I forgot important points. > So the only reason why you have to go through > all those hoops is to > > * allow the complete set of Python supported encoding > names for the PYTHONFSENCODING > > * make sure that the Py_FilesystemDef

[issue9962] GzipFile doesn't have peek()

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85100. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue9630] Redecode filenames when setting the filesystem encoding

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: Patch version 4: - Rename "reencode" to "redecode" - Return -1 (instead of 1) on error -- title: Reencode filenames when setting the filesystem encoding -> Redecode filenames when setting the filesystem encoding Added file: http://bugs.python.org/fil

[issue9630] Redecode filenames when setting the filesystem encoding

2010-09-29 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18996/reencode_modules_path-3.patch ___ Python tracker ___ ___ Python-bugs

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread david
New submission from david : please add a large NOTE explaining that urllib does not perform any ssl validation. -- assignee: d...@python components: Documentation messages: 117596 nosy: db, d...@python priority: normal severity: normal status: open title: please add a large NOTE explain

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread david
david added the comment: --> (out of the box) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sounds reasonable to me. (although I would like that to change, see issue1589) -- nosy: +pitrou ___ Python tracker ___ _

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread david
david added the comment: This is issue is in respect to https connections :) -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread david
david added the comment: Hi pitrou, that bug you linked to is really long can state a summary of any changes made to python and their impact - alternatively the lack of (changes) and their impact. -- ___ Python tracker

[issue9984] please add a large NOTE explaining that urllib2 does not perform any ssl validation

2010-09-29 Thread david
New submission from david : please add a large NOTE explaining that urllib2 does not perform any ssl (for https connection) validation out of the box. Also see 9983 for urrlib. -- messages: 117601 nosy: db priority: normal severity: normal status: open title: please add a large NOTE ex

[issue9984] please add a large NOTE explaining that urllib2 does not perform any ssl validation

2010-09-29 Thread david
Changes by david : -- assignee: -> d...@python components: +Documentation nosy: +d...@python versions: +Python 2.7 ___ Python tracker ___

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Hi pitrou, that bug you linked to is really long can state a summary > of any changes made to python and their impact - alternatively the > lack of (changes) and their impact. No changes yet unfortunately. As for the impact, you already know it, since you fil

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've added warnings for httplib, urllib, urllib2 in r85101, r85102 and r85103. The changes can take a day or two to appear online. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue9984] please add a large NOTE explaining that urllib2 does not perform any ssl validation

2010-09-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> duplicate status: open -> closed superseder: -> please add a large NOTE explaining that urllib does not perform any ssl validation ___ Python tracker

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread david
david added the comment: thank you :) -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mail

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- Removed message: http://bugs.python.org/msg58435 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Py

[issue9630] Reencode filenames when setting the filesystem encoding

2010-09-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > Forget my previous message, I forgot important points. > >> So the only reason why you have to go through >> all those hoops is to >> >> * allow the complete set of Python supported encoding

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: Removed this message by mistake. Author ahasenack Date2007-12-11.21:11:53 Ups, typo in the script: cert = "verisign-inc-class-3-public-primary.pem" -- nosy: +orsenthil ___ Python tracker

[issue9630] Reencode filenames when setting the filesystem encoding

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: Le mercredi 29 septembre 2010 13:45:15, vous avez écrit : > Marc-Andre Lemburg added the comment: > > STINNER Victor wrote: > > STINNER Victor added the comment: > > > > Forget my previous message, I forgot important points. > > > >> So the only reason why

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread david
david added the comment: @pitrou you should also put an example of how to ACTUALLY establish a connection that can't be MITMed. Because lots of people are getting this wrong -- ___ Python tracker

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > @pitrou you should also put an example of how to ACTUALLY establish a > connection that can't be MITMed. Because lots of people are getting > this wrong It would require writing the code for checking hostnames that the ssl module currently lacks, so if I

[issue6640] urlparse should parse mailto: URL headers as query parameters

2010-09-29 Thread R. David Murray
R. David Murray added the comment: Which would be a bug. According to RFC3986 it should be the path. So the change can't be quite so simple as adding mailto to uses_query. Since the query component is defined for generic uris according to the RFC, it sounds like urllib's parser needs some

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread david
david added the comment: Yes totally imho these modules should get fixed to actually do ssl checking. This means that most users of these methods, even if they think they are doing it properly as per the ssl module page, are still vulnerable to attack. I will add this comment to the bug you lin

[issue9985] difflib.SequenceMatcher has slightly buggy and undocumented caching behavior

2010-09-29 Thread Marien Zwart
New submission from Marien Zwart : SequenceMatcher caches the result of get_matching_blocks and get_opcodes. There are some problems with this: What get_matching_blocks caches is a list of tuples. The first call does not return that list: it returns map(Match._make, self.matching_blocks) (conv

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread david
david added the comment: Welcome to 2010. SSL shouldn't be difficult to use anymore or support in python applications. But yet, until the changes in http://bugs.python.org/issue9983 was fixed python devs were using modules without any warning of the security implications. pycurl works ... but

[issue9986] PDF files of python docs have text missing

2010-09-29 Thread Amber Jain
New submission from Amber Jain : CC: d...@python.org I was planning to print the official python "2.7" tutorial: http://docs.python.org/tutorial/index.html. So, I went over to Download page: http://docs.python.org/download.html and downloaded the PDF file. But the PDF have some missing text du

[issue9978] test_os failures on XP-4 buildbot

2010-09-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I created the patch to fix this issue. WINFUNCTYPE is not member of ctypes.wintypes, but ctypes. -- keywords: +patch Added file: http://bugs.python.org/file19058/py3k_fix_test_os.patch ___ Python tracker

[issue9978] test_os failures on XP-4 buildbot

2010-09-29 Thread Brian Curtin
Brian Curtin added the comment: I just checked in the importing changes to r85109 and r85110 (I saw your branch checkins happening at the same time, sorry). -- ___ Python tracker __

[issue9978] test_os failures on XP-4 buildbot

2010-09-29 Thread Brian Curtin
Brian Curtin added the comment: Do you think we need the other parts of that patch? It seems like the only real issue here was the importing. -- resolution: -> fixed stage: needs patch -> commit review ___ Python tracker

[issue9360] nntplib cleanup

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the latest patch in r85111. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue9986] PDF files of python docs have text missing

2010-09-29 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> d...@python components: +Documentation -None nosy: +d...@python type: -> behavior ___ Python tracker ___ ___

[issue9980] str(float) failure

2010-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: > The puzzling thing is that the same Python.dll when used by python.exe and > not PyScripter produces correct results. Yes, this is indeed puzzling. Are you absolutely sure that both python.exe and PyScripter are using the exact same Python.dll file? E.g.,

[issue9980] str(float) failure

2010-09-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9963] test_sysconfig when LDFLAGS defined in the user's environment

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks like a duplicate of #9437, and there's a patch you can review there :) -- nosy: +pitrou resolution: -> duplicate status: open -> closed superseder: -> can't build extensions with non-default ldflags (e.g. -m32) _

[issue9980] str(float) failure

2010-09-29 Thread Eric Smith
Eric Smith added the comment: It's interesting to note that '9' is ascii 57, and ':' is 58. It's like the code is incrementing the wrong digit. If it's related to that, that indeed sounds like a compiler optimization bug to me, but of course I'm just guessing. And I'm not sure that conclusion

[issue9980] str(float) failure

2010-09-29 Thread Brian Curtin
Brian Curtin added the comment: I get different results than Kiriakos' last example. >PCbuild\amd64\python_d.exe Python 3.2a2+ (py3k, Sep 29 2010, 09:43:42) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> '%.12g' % 38210.0 '38210

[issue9980] str(float) failure

2010-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: > It's interesting to note that '9' is ascii 57, and ':' is 58. Right; it's that part that convinces me that the problem is somewhere deep in _Py_dg_dtoa, in the guts of the float to string conversion, where a xxx99... result is rounded up to xx(x+1)

[issue9978] test_os failures on XP-4 buildbot

2010-09-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Other parts are needed for my environment. If machine is really slow, there is possibility of subprocess being killed before execution reaches "wintypes.WINFUNCTYPE" line. -- ___ Python tracker

[issue9621] Graphviz output for 2to3 fixer patterns

2010-09-29 Thread Matt Bond
Matt Bond added the comment: Huh. I must have diffed the wrong version of my code - how embarrassing! I'll update the attached patch later this week. Thanks for catching that. -- ___ Python tracker ___

[issue5672] Implement a way to change the python process name

2010-09-29 Thread Ludvig Ericson
Ludvig Ericson added the comment: I use the setproctitle module extensively. It has worked flawlessly. What would be needed for this to get accepted? I realize one shouldn't stress such a decision, but still I feel this is something the standard library should be able to do. My justification

[issue5672] Implement a way to change the python process name

2010-09-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9987] usenetrc option broken

2010-09-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : The nntplib cleanup broke the "usenetrc" option to NNTP: Traceback (most recent call last): File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_nntplib.py", line 167, in setUp self.server = NNTP(self.NNTP_HOST, timeout=TIMEOUT) File

[issue9987] usenetrc option broken

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r85114. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-09-29 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9630] Reencode filenames when setting the filesystem encoding

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: I commited redecode_modules_path-4.patch as r85115 in Python 3.2. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: r85115 closes #9630: an important patch for #9425, redecode all filenames when setting the filesystem encoding. Next tasks (maybe not in this order): - merge getpath.c - redecode argv[0] used by PySys_SetArgvEx() to feed sys.path (encode argv[0] with the lo

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread STINNER Victor
New submission from STINNER Victor : $ PYTHONFSENCODING=latin-1 ./python Lib/test/test_warnings.py ... == FAIL: test_nonascii (__main__.CEnvironmentVariableTests) -

[issue5131] pprint doesn't know how to print a defaultdict

2010-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: >IMHO pprint should be able to make a decent job of all the built in types Agreed, already true as far as I know, and irrelevant. This issue is not about built-in types in the builtins module, as documented Lib Ref chapter 5 *Built-in Types*. Collections is

[issue9647] os.confstr() does not handle value changing length between calls

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: If I understood correctly, you don't want the value to be truncated if the variable grows between the two calls to confstr(). Which behaviour would you expect? A Python exception? > but Victor Stinner has expressed concern that a buggy > confstr() could creat

[issue9630] Reencode filenames when setting the filesystem encoding

2010-09-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > Le mercredi 29 septembre 2010 13:45:15, vous avez écrit : >> Marc-Andre Lemburg added the comment: >> >> STINNER Victor wrote: >>> STINNER Victor added the comment: >>> >>> Forget my previo

[issue9971] Optimize BufferedReader.readinto

2010-09-29 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: This appears to be a concern for some people. Maybe the builtin ssl module should be deprecated if there isn't a lot of manpower to maintain it and instead the well-maintained pyOpenSSL package should become the recommended tool? Here is a letter that I

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread Ryan Tucker
Changes by Ryan Tucker : -- nosy: +Ryan.Tucker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here is a letter that I just received, in my role as a developer of > Tahoe-LAFS, from a concerned coder who doesn't know much about Python: > > > An FYI on Python. > > > > I'm not sure how businesses handle this (I've always worked in > Windows > > shops),

[issue9989] ctypes bitfield problem

2010-09-29 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : The following program should print "0xdead" but instead prints "0x0". This came from the following stackoverflow question: http://stackoverflow.com/questions/3824617/python-structure-always-stuck-at-0-no-matter-what-value-you-assign-to-it import ctypes cl

[issue9980] str(float) failure

2010-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: Added the extra test cases (for py3k only) in r85119. -- ___ Python tracker ___ ___ Python-bugs-list

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread Devin Cook
Devin Cook added the comment: > Correct me if I'm wrong, but the "well-maintained pyOpenSSL > package" doesn't have the missing functionality (hostname > checking in server certificates), either. I'm pretty sure it's just a wrapper around the openssl library, which does not include it. That wa

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread geremy condra
geremy condra added the comment: On Wed, Sep 29, 2010 at 11:34 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> Here is a letter that I just received, in my role as a developer of >> Tahoe-LAFS, from a concerned coder who doesn't know much about Python: >> >> > An FYI on Py

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Correct me if I'm wrong, but the "well-maintained pyOpenSSL > > package" doesn't have the missing functionality (hostname > > checking in server certificates), either. > > I'm pretty sure it's just a wrapper around the openssl library, which > does not incl

[issue8879] Implement os.link on Windows

2010-09-29 Thread Brian Curtin
Brian Curtin added the comment: Now that I think of it, that behavior is expected. Hard links are *supposed* to be different directory entries, so they would come out of that function as-is, and the current tests are correctly implemented. Uploaded to http://codereview.appspot.com/2290042 --

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What would the approximate cost on that be, do you think? My > understanding was that the code was pretty much written given John > Nagle's patch and M2Crypto. To err on the safe side and account for integration work (unit tests, coding style, and use in http

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-09-29 Thread Lenard Lindstrom
New submission from Lenard Lindstrom : If an exporter returns a Py_buffer with ndim 1, PyMemoryView_FromObject changes the shape and strides pointer fields to point to a local Py_buffer array field. This array field is undocumented. Any heap memory these pointers reference is lost. Should the

[issue9959] int(math.log(4,2)) == 1 instead of 2

2010-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: Applied further tweaks in r85120: for an integer n, log(n) is now computed as log(float(n)), provided only that n is small enough to be converted to a float without overflow. This puts log on a more equal footing with all the other math module functions, an

[issue9980] str(float) failure

2010-09-29 Thread Stefan Krah
Stefan Krah added the comment: I can reproduce this using the internal (embedded python) of PyScripter (nice work BTW!). I can't reproduce it under any other circumstances. The test case from #9215 runs fine in VS, and also this produces the correct output: #include int main(int argc, char

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-09-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou nosy: +pitrou stage: -> needs patch versions: +Python 2.7, Python 3.1 ___ Python tracker ___ _

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread david
david added the comment: imho it would be nice to be 'secure by default' in say the next python stable releases... (or perhaps only 3.X ? ). -- ___ Python tracker ___ __

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread Brett Cannon
Brett Cannon added the comment: OK, so who's messing up: subprocess or Py_main()? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue9980] str(float) failure

2010-09-29 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread Philip Jenvey
Changes by Philip Jenvey : -- nosy: +pjenvey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please don't say that "urllib does not perform any ssl validation". It certainly *does* perform ssl validation, namely it validates whether the payload received over ssl matches the certificate received from the server. What it does not do is to validate the

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread david
david added the comment: @loewis yes.. that is assumed imho. This ticket is closed, is this a real issue? -- ___ Python tracker ___ __

[issue9983] please add a large NOTE explaining that urllib does not perform any ssl validation

2010-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What it does not do is to validate the server certificate in any form (AFAIU). The warning I have added says “When opening HTTPS (or FTPS) URLs, it is not attempted to validate the server certificate.” (see http://docs.python.org/library/urllib.html ) So I d

[issue9969] tokenize: add support for tokenizing 'str' objects

2010-09-29 Thread Nick Coghlan
Nick Coghlan added the comment: As per Antoine's comment on #9873, requiring a real string via isinstance(source, str) to trigger the string IO version is likely to be cleaner than attempting to duck-type this. Strings are an area where we make so many assumptions about the way their internal

[issue9873] Allow bytes in some APIs that use string literals internally

2010-09-29 Thread Nick Coghlan
Nick Coghlan added the comment: Agreed - I think there's a non-zero chance of triggering the str-path by mistake if we try to duck-type it (I just added a similar comment to #9969 regarding a possible convenience API for tokenisation) -- ___ Python

[issue9873] Allow bytes in some APIs that use string literals internally

2010-09-29 Thread Nick Coghlan
Nick Coghlan added the comment: Added to Reitveld: http://codereview.appspot.com/2318041/ -- ___ Python tracker ___ ___ Python-bugs-li

  1   2   3   >