[issue12349] Typo in 3.2 "What's New": WGSI / WSGI

2011-06-16 Thread Sandro Tosi
Sandro Tosi added the comment: Fixed by Raymond (thanks!) with these commits: http://hg.python.org/cpython/rev/0fe3b81c7c89 http://hg.python.org/cpython/rev/cf56abd14eef -- nosy: +rhettinger resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-06-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > I don't know yet how Windows do decode bytes filenames > (especially how it handles undecodable bytes), > I suppose that it uses MultiByteToWideChar using cp=CP_ACP and flags=0. It's likely, yes. But you don't need a new codec function for this. What a

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2011-06-16 Thread Derek Wilson
Derek Wilson added the comment: I was wrong about exit behavior of a process that has put to a queue -- it seems to behave as expected. i had been playing with a proxy to a queue rather than a queue (to which, if you put, the process can exit right away because the actual put happens in the p

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-16 Thread ysj.ray
ysj.ray added the comment: > I would not read [str] as implying a list of strings, FWIW. help() on distutils.extension.Extension gives the parameters description like this: .. sources: [string] .. include_dirs: [string] .. So I guess this style can be used as s

[issue12320] test_packaging failures

2011-06-16 Thread R. David Murray
R. David Murray added the comment: Victor, that failure was already reported in issue 12333. -- nosy: +r.david.murray ___ Python tracker ___

[issue12344] Add **kwargs to get_reinitialized_command

2011-06-16 Thread higery
higery added the comment: Not yet tested. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12344] Add **kwargs to get_reinitialized_command

2011-06-16 Thread higery
Changes by higery : -- keywords: +patch Added file: http://bugs.python.org/file22390/6b68c2835d6e.diff ___ Python tracker ___ ___ Pyth

[issue12313] make install misses test dirs for packaging and email modules

2011-06-16 Thread Vinay Sajip
Vinay Sajip added the comment: > OK, now I'm really confused. I tried to reproduce this by installing from > my >checkout into a work dir, and then running regrtest using that installed >python, and discovered that test_email and its data directory got copied by >the >installation proce

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-06-16 Thread STINNER Victor
STINNER Victor added the comment: > What is the use of these code_page_encode() functions? I wrote them to be able to write tests. We can maybe use them to implement the Python code page codecs using a custom codec register function: see msg138246. Windows codecs seem to be less reliable/porta

[issue12313] make install misses test dirs for packaging and email modules

2011-06-16 Thread R. David Murray
R. David Murray added the comment: OK, now I'm really confused. I tried to reproduce this by installing from my checkout into a work dir, and then running regrtest using that installed python, and discovered that test_email and its data directory got copied by the installation process. (The

[issue12320] test_packaging failures

2011-06-16 Thread STINNER Victor
STINNER Victor added the comment: See also: http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.x/builds/1516 http://www.python.org/dev/buildbot/all/builders/sparc%20solaris10%20gcc%203.x/builds/3276 There are many OSError(22, 'Invalid argument: ...') errors on rmdir(). Exampl

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-06-16 Thread STINNER Victor
STINNER Victor added the comment: TODO: add more tests CP_UTF8: if self.vista_or_later: tests.append(('\udc80', 'strict', None)) tests.append(('\udc80', 'ignore', b'')) tests.append(('\udc80', 'replace', b'\xef\xbf\xbd')) else: te

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-06-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: What is the use of these code_page_encode() functions? -- ___ Python tracker ___ ___ Python-b

[issue12351] Update URL for pycrypto project

2011-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0cb49ca95109 by Benjamin Peterson in branch '2.7': update link to pycrypto (closes #12351) http://hg.python.org/cpython/rev/0cb49ca95109 New changeset 4d465cef3257 by Benjamin Peterson in branch '3.2': update link to pycrypto (closes #12351) http:/

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-06-16 Thread STINNER Victor
STINNER Victor added the comment: Patch version 5 fixes the encode/decode flags on Windows XP. The codecs give different result on XP and Seven in some cases: Seven: - b'\x81\x00abc'.decode('cp932', 'replace') returns '\u30fb\x00abc' - '\udc80'.encode(CP_UTF8, 'strict') raises UnicodeEncodeEr

[issue12345] Add math.tau

2011-06-16 Thread Simon Baird
Changes by Simon Baird : -- nosy: +sbaird ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12313] make install misses test dirs for packaging and email modules

2011-06-16 Thread Vinay Sajip
Vinay Sajip added the comment: > R. David Murray added the comment: > > Ah. I wouldn't have expected that. For my information, what was the error >you got? [ 99/356] test_email test test_email crashed -- Traceback (most recent call last): File "regrtest.py", line 1036, in runtest_inn

[issue8887] "pydoc str" works but not "pydoc str.translate"

2011-06-16 Thread R. David Murray
Changes by R. David Murray : -- title: “pydoc str” works but not “pydoc str.translate” -> "pydoc str" works but not "pydoc str.translate" ___ Python tracker ___ _

[issue9344] please add posix.getgrouplist()

2011-06-16 Thread R. David Murray
R. David Murray added the comment: Actually, when it is a feature request rather than a bug fix we usually use 'accepted'. It doesn't matter a whole lot, though. -- nosy: +r.david.murray ___ Python tracker __

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2011-06-16 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2011-06-16 Thread R. David Murray
R. David Murray added the comment: Ah, found it: Issue 10016. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2011-06-16 Thread R. David Murray
R. David Murray added the comment: Ah, bingo. That was what was tickling at my memory but I couldn't remember what the exact issue was I was recalling. I forget what I was doing where that mattered, but as I vaguely remember it there is no portable way to find out what blocksize st_blocks i

[issue1602133] non-framework built python fails to define environ properly

2011-06-16 Thread John Whitney
John Whitney added the comment: I have also been experiencing this problem with _environ (using the latest Python - 2.7.2), and this patch works great. I'd love to see it committed so that I don't have to patch Python. -- nosy: +jjw ___ Python trac

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2011-06-16 Thread David Watson
David Watson added the comment: On Sun 12 Jun 2011, Charles-François Natali wrote: > The patches look good to me, except that instead of passing > (addrlen > buflen) ? buflen : addrlen > as addrlen argument every time makesockaddr is called, I'd > prefer if this min was done inside makesockadd

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2011-06-16 Thread Lars Wirzenius
Lars Wirzenius added the comment: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/stat.h.html says "A file system-specific preferred I/O block size for this object. In some file system types, this may vary from file to file.", which says essentially the same as the Linux stat(2) m

[issue12351] Update URL for pycrypto project

2011-06-16 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-June/004728.html, here's a patch (appliable on 2.7, 3.1, 3.2 and default) to update the pycrypto URL to its new home. -- assignee: docs@python components: Documentation files: pycrypto_new_url-2.7

[issue12313] make install misses test dirs for packaging and email modules

2011-06-16 Thread R. David Murray
R. David Murray added the comment: Ah. I wouldn't have expected that. For my information, what was the error you got? -- ___ Python tracker ___ __

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2011-06-16 Thread R. David Murray
R. David Murray added the comment: Looks good for linux. Do you have a posix reference that confirms this interpretation? -- nosy: +r.david.murray ___ Python tracker ___ _

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2011-06-16 Thread Lars Wirzenius
New submission from Lars Wirzenius : Attached patch adds a few words to the os.stat documentation for the st_blocks and st_blksize fields to clarify them. -- assignee: docs@python components: Documentation files: stat_result.patch keywords: patch messages: 138467 nosy: docs@python, liw

[issue12340] Access violation when using the C version of the io module

2011-06-16 Thread Santoso Wijaya
Santoso Wijaya added the comment: If `write(self, data)` is expected to receive `data` as a memoryview object, then it's up to pyserial to use `data.tobytes()` instead of `bytes(data)`, though this does not seem to be documented in the io module doc. -- __

[issue12349] Typo in 3.2 "What's New": WGSI / WSGI

2011-06-16 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-June/004729.html, here's a patch to correct the WGSI/WSGI typo in 3.2 "What's new" (to be applied in 3.2 and default). -- assignee: docs@python components: Documentation files: 3.2_whatsnew_WSGI-3

[issue12340] Access violation when using the C version of the io module

2011-06-16 Thread Santoso Wijaya
Changes by Santoso Wijaya : Added file: http://bugs.python.org/file22380/test_bufio_nothreading.py ___ Python tracker ___ ___ Python-bugs-list

[issue12340] Access violation when using the C version of the io module

2011-06-16 Thread Santoso Wijaya
Santoso Wijaya added the comment: Note: Removing threading call (lock acquire, release) would remove the crash, but still triggers the "" conversion of PyMemoryView. -- ___ Python tracker

[issue12340] Access violation when using the C version of the io module

2011-06-16 Thread Santoso Wijaya
Santoso Wijaya added the comment: As for the "" string, when _io.BufferedWriter prepares the byte buffer into a PyMemoryView wrapper and passes it into the raw IO object: res = PyObject_CallMethodObjArgs(self->raw, _PyIO_str_write, memobj, NULL); For some reason, memobj.__repr__ is called

[issue12313] make install misses test dirs for packaging and email modules

2011-06-16 Thread Vinay Sajip
Vinay Sajip added the comment: Perhaps not in the general case, but I found the missing test_email and test_email/data through running regrtest using an installed Python 3.3. -- ___ Python tracker ___

[issue12341] Some additions to .hgignore

2011-06-16 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2011-06-16 Thread Collin Winter
Collin Winter added the comment: I don't know that the variables are Python-specific. We used these variables to build various Python modules statically against the versions of openssl and sqlite maintained in Google's internal third-party repository. -- assignee: collinwinter -> __

[issue5572] distutils ignores the LIBS configure env var

2011-06-16 Thread Collin Winter
Collin Winter added the comment: This wasn't so much a feature request as a request for review. I had already implemented the necessary changes and provided a patch. We found this change necessary when working on Unladen Swallow. -- ___ Python trac

[issue8668] Packaging: add a 'develop' command

2011-06-16 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +Add **kwargs to get_reinitialized_command ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12344] Add **kwargs to get_reinitialized_command

2011-06-16 Thread higery
higery added the comment: >No, that’s why I did not close this report but asked you if you could make a >patch to update this method. OK, I think I can try to fix it later. -- ___ Python tracker

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-16 Thread Éric Araujo
Éric Araujo added the comment: > Nor would I assume a plural option meant a list if the text says "a string". Especially in distutils code where we can get space-separated or comma-separated values from the command line or config files. I’m in favor of using explicit “list of strings” wordin

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-16 Thread R. David Murray
R. David Murray added the comment: I would not read [str] as implying a list of strings, FWIW. Nor would I assume a plural option meant a list if the text says "a string". But I'm just a bystander here and haven't even looked the docs you guys are updating :) -- ___

[issue12341] Some additions to .hgignore

2011-06-16 Thread Sandro Tosi
Sandro Tosi added the comment: Awesome, in a 3 line patch I managed to add an error... nice :) -- Added file: http://bugs.python.org/file22378/hgignore_additions-default-v2.patch ___ Python tracker ___

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Hmm, it seems to me that it should be done in _poll() instead. > > Otherwise, recv() will not be interruptible, will it? > > Or maybe WaitForMultipleObjects() should be changed to also wait on > sigint_event if called by the main thread. Indeed, this may

[issue12344] Add **kwargs to get_reinitialized_command

2011-06-16 Thread Éric Araujo
Éric Araujo added the comment: > But can the get_reinitialized_command function reinitialize a command > with a key-value pair? No, that’s why I did not close this report but asked you if you could make a patch to update this method. > BTW,how to set the repository URI? If there is no way to e

[issue12344] A kind of 'reinitialize_command' function which can initialize a command with key-value pair should be added for Command class

2011-06-16 Thread higery
higery added the comment: But can the get_reinitialized_command function reinitialize a command with a key-value pair? e.g. reinitialize_command('build_ext', inplace=1) BTW,how to set the repository URI? -- ___ Python tracker

[issue12348] case sensitivness in packaging.pypi.simple.Crawler

2011-06-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: see also http://mail.python.org/pipermail/catalog-sig/2011-June/003793.html -- ___ Python tracker ___

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-16 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your feedback. My patch assumes that people will understand that an argument that has a plural name (like macros) can’t be a string but a list of strings; I don’t know if relying on this inference is better than your initial patch. An alternate styl

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-16 Thread ysj.ray
ysj.ray added the comment: > FYI, in one packaging doc I added one note instead of changing each cell: > http://docs.python.org/dev/library/packaging.compiler#id6 I like this solution, it seems more concise and to the point. With this the doc need only one change: --- a/Doc/distutils/apire

[issue12348] case sensitivness in packaging.pypi.simple.Crawler

2011-06-16 Thread Tarek Ziadé
New submission from Tarek Ziadé : the PyPI server deals with the package names case issue: if you get webob, it'll find WebOb. That's not true for mirrors, so we need to fallback to the global index when "webob" is not found under simple/webob/, and look for the name with a different case. -

[issue5572] distutils ignores the LIBS configure env var

2011-06-16 Thread Éric Araujo
Éric Araujo added the comment: Reclassifying as a feature request for the packaging module. The distutils docs don’t say using LIBS is supported and there aren’t many people asking for it on this bug report. -- components: +Distutils2 -Distutils nosy: +alexis, eric.araujo versions: +

[issue8668] Packaging: add a 'develop' command

2011-06-16 Thread Éric Araujo
Éric Araujo added the comment: Yes, this should of course be supported. Note that in packaging, packages_dir has been simplified to packages_root, which means that all modules and packages must be in the same directory. -- ___ Python tracker

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-16 Thread Éric Araujo
Éric Araujo added the comment: FYI, in one packaging doc I added one note instead of changing each cell: http://docs.python.org/dev/library/packaging.compiler#id6 -- ___ Python tracker

[issue12346] Python 2.7.2 source code build (release) depends on mercurial

2011-06-16 Thread R. David Murray
R. David Murray added the comment: Ah. For subversion there was a similar check, and the values were set to blank if the subversion binary was not found. For hg it looks like we need to add additional checks on whether or not there is a repo. (We can probably assume that if there is a repo

[issue8668] Packaging: add a 'develop' command

2011-06-16 Thread Peter Waller
Peter Waller added the comment: Hi - Great to see this functionality coming. There is one feature of it that I would really like to see fixed, which is currently broken in setuptools/distribute - I'm sorry if this is the wrong forum for this note, but I wanted to add it to the discussion some

[issue12313] make install misses test dirs for packaging and email modules

2011-06-16 Thread R. David Murray
R. David Murray added the comment: Fixing the missing dirs for email has been on my todo list for a while but obviously hasn't gotten done yet. I talked with Antoine about setting up a buildbot that tested an installed version, but I'm not sure when I'll get around to trying *that* either.

[issue12346] Python 2.7.2 source code build (release) depends on mercurial

2011-06-16 Thread R. David Murray
R. David Murray added the comment: Indeed, I just confirmed that building with a recent version of mercurial installed from the release 2.7.2 source tarball from python.org, the make results in: abort: repository . not found! abort: repository . not found! abort: repository . not found! duri

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-06-16 Thread sbt
sbt added the comment: > Hmm, it seems to me that it should be done in _poll() instead. > Otherwise, recv() will not be interruptible, will it? Or maybe WaitForMultipleObjects() should be changed to also wait on sigint_event if called by the main thread. > Also, after looking at this again,

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2011-06-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2011-06-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12347] add an "extras" in packaging.pypi.simple.Crawler

2011-06-16 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12346] Python 2.7.2 source code build (release) depends on mercurial

2011-06-16 Thread R. David Murray
R. David Murray added the comment: It used to be that the svn version info was pulled from embedded constants in Makefile.pre.in. I agree that depending on having mercurial (and, presumably, a repo!) at build time is wrong. These constants need to be pre-computed when a release tarball is b

[issue12197] non-blocking SSL write fails if a partial write was issued

2011-06-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12347] add an "extras" in packaging.pypi.simple.Crawler

2011-06-16 Thread Tarek Ziadé
New submission from Tarek Ziadé : It occurs to me that our Crawler don't allow us to specify extra locations, like easy_install or pypi We should add that and let the crawler look up to these places because the index -- messages: 138439 nosy: alexis, tarek priority: normal severity: no

[issue8668] Packaging: add a 'develop' command

2011-06-16 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +patch Added file: http://bugs.python.org/file22377/aa68d35988bb.diff ___ Python tracker ___ ___

[issue8668] Packaging: add a 'develop' command

2011-06-16 Thread Éric Araujo
Changes by Éric Araujo : -- hgrepos: +29 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue12344] A kind of 'reinitialize_command' function which can initialize a command with key-value pair should be added for Command class

2011-06-16 Thread Éric Araujo
Éric Araujo added the comment: As I told in another message, we have renamed the function to get_reinitialized_command, to make it consistent with other methods’ names. Instead of adding a function, can you update the existing one? About the repository: You should not put the user in the URI

[issue12343] ssl documentation needs comments about non-blocking behaviour

2011-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: So let's turn this into a documentation issue, then. -- assignee: -> docs@python components: +Documentation, Library (Lib) -Extension Modules nosy: +docs@python priority: critical -> normal resolution: invalid -> status: closed -> open title: Python 2

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If now I can get a "retry" while writing, what is the logic?. Does > Python retry automatically, internally?. No, Python doesn't retry automatically. You have to call send() again with the same buffer. (if Python retried, it would make non-blocking calls blo

[issue12341] Some additions to .hgignore

2011-06-16 Thread Éric Araujo
Éric Araujo added the comment: See also #12255. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Antoine, now I am worried about writes, since my usual aproach would be something like this: """ select says that it is Ok to try to write buf = buf[socket.send(buf):] """ If now I can get a "retry" while writing, what is the logic?. Does Python retry autom

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread STINNER Victor
STINNER Victor added the comment: It's maybe because Python 2.7.2 is faster/slower? :-) -- nosy: +haypo ___ Python tracker ___ ___ Py

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I have write a testcase, but adding a small delay between reads, allowing more data coming from the server, solves the issue, so this seems to be a race condition. Trying with a remote slow SSL server, I get the same error in python 2.6, so I guess I was bei

[issue12345] Add math.tau

2011-06-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/6/16 STINNER Victor : > > STINNER Victor added the comment: > >> Actually, I've heard there are an infinity of them. > > Can you prove that? Don't have to. Axiom of infinity. :) -- ___ Python tracker

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note: the only significant changes in the ssl module on branch 2.7 have been 742d73a99425 and 7f99ac53014a. > Protecting my "reads" retrying when getting this exception does the > trick, but now my code is convoluted and never before I had to manage > this dir

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Protecting my "reads" retrying when getting this exception does the trick, but now my code is convoluted and never before I had to manage this directly. This worked fine in 2.7.1. Previously Python seemed to do the retry itself. -- _

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, ok, looks like your messages crossed each other. Can you try to devise another test case, then? Or, at least, explain the context and how and where it fails? -- ___ Python tracker

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I am not getting the error in the handshake. I am getting it when > transfering data, after a few Kbytes are already transfered. Your traceback (and mine as well) occurs in wrap_socket() which itself calls do_handshake(). I don't understand how you could hav

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I am talking about the code in production, not the code I pasted yesterday. -- ___ Python tracker ___

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I am not getting the error in the handshake. I am getting it when transfering data, after a few Kbytes are already transfered. This code has been working for the last 8 years, including 2.7.1. It is failing now, under 2.7.2. OpenSSL version haven't changed s

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is not a bug. With a non-blocking socket, the handshake itself is non-blocking, so you have to be prepared to retry. Your snippet also fails under Python 2.6 for me, so this isn't a regression either. If you want to know how to do a non-blocking handshak

[issue12345] Add math.tau

2011-06-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12345] Add math.tau

2011-06-16 Thread STINNER Victor
STINNER Victor added the comment: > Actually, I've heard there are an infinity of them. Can you prove that? -- status: pending -> open ___ Python tracker ___ __

[issue12345] Add math.tau

2011-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Nick, you just have to write: tau = 2 * math.pi and you're done. > there are million of other constants Actually, I've heard there are an infinity of them. -- nosy: +pitrou resolution: -> rejected status: open -> pending

[issue12345] Add math.tau

2011-06-16 Thread STINNER Victor
STINNER Victor added the comment: I like this issue number, but I don't think that Python needs this new constant: it's trivial to add it to your own project. We have pi and e, it's enough. If we begin to add a new constant, others will ask to add much more constants, and there are million of

[issue12346] Python 2.7.2 source code build (release) depends on mercurial

2011-06-16 Thread Graeme Winter
Graeme Winter added the comment: Some more information: It has picked up that I have mercurial installed: [gw56@ws050 Python-2.7.2_cci]$ cat config.log | grep HG ac_cv_prog_HAS_HG=found HAS_HG='found' HGBRANCH='hg id -b $(srcdir)' HGTAG='hg id -t $(srcdir)' HGVERSION='hg id -i $(srcdir)' ho

[issue12345] Add math.tau

2011-06-16 Thread Nick Coghlan
Nick Coghlan added the comment: The golden ratio is more commonly denoted with phi (although tau does get used sometimes). Popularity isn't the point though, it's the fact that tau *makes geometric sense* in ways that 2*pi doesn't. -- ___ Python t

[issue12313] make install misses test dirs for packaging and email modules

2011-06-16 Thread Vinay Sajip
Changes by Vinay Sajip : -- nosy: +r.david.murray title: make install misses packaging module -> make install misses test dirs for packaging and email modules ___ Python tracker ___

[issue12344] A kind of 'reinitialize_command' function which can initialize a command with key-value pair should be added for Command class

2011-06-16 Thread higery
Changes by higery : -- hgrepos: +28 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue12313] make install misses packaging module

2011-06-16 Thread Vinay Sajip
Vinay Sajip added the comment: It's not packaging-related, but other directories are also missing from LIBSUBDIRS: test/test_email test/test_email/data IMO it's not ideal to use find(1), as in theory a developer may have some directories with matching names in the source build that they don'

[issue12346] Python 2.7.2 source code build (release) depends on mercurial

2011-06-16 Thread Graeme Winter
New submission from Graeme Winter : Trying to build 2.7.2 from source on RHEL5 32 bit get errors: gcc -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE \ -DSVNVERSION="\"`LC_ALL=C svnversion .`\""