[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Scott Dial
Changes by Scott Dial : Removed file: http://bugs.python.org/file15459/test_imaplib-r76683.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Scott Dial
Changes by Scott Dial : Added file: http://bugs.python.org/file15460/test_imaplib-r76683.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Scott Dial
Changes by Scott Dial : Removed file: http://bugs.python.org/file15458/test_imaplib-r76683.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Scott Dial
Changes by Scott Dial : Added file: http://bugs.python.org/file15459/test_imaplib-r76683.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Scott Dial
Scott Dial added the comment: I found myself in the mood to code, so in the spirit of "every step counts", I have attached a patch that updates test_imaplib accordingly. The construction of the test framework is based loosely on test_ssl and test_socketserver. If someone felt so moved to add mor

[issue5596] memory leaks in py3k

2009-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/12/5 Scott Dial : > > Scott Dial added the comment: > > Ben, I understand that we are all volunteers here. My frustration in the > lack of a de facto owner of the imaplib module and not with you > personally or any other committer for that matter.\ Unf

[issue7316] Add a timeout functionality to common locking operations

2009-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Scott Dial
Scott Dial added the comment: Ben, I understand that we are all volunteers here. My frustration in the lack of a de facto owner of the imaplib module and not with you personally or any other committer for that matter. As it is, there is no unittests for the imaplib module, and I am not in a pos

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Rest assured it has little to do with the difficultly of reviewing it. Rather we are all volunteers. Do you think a test would be easy to write for this? -- assignee: janssen -> ___ Python tracker

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Scott Dial
Changes by Scott Dial : Removed file: http://bugs.python.org/file15013/imaplib-r75166.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Scott Dial
Scott Dial added the comment: Alright, I am attaching a new patch to correct the brain-fart inefficiency of slicing versus endswith(). I don't understand why this is so difficult to review. I don't think Janssen is the right person to have been assigned to this. While it is related to SSL, I do

[issue6727] ImportError when package is symlinked on Windows

2009-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5985] Implement os.path.samefile and os.path.sameopenfile on Windows

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please note: patch for http://bugs.python.org/issue1578269 is already has implementation for samefile. It's easer to add sameopenfile is same way than maintain two different approaches. Unfortunately solution will work only starting from Windows Vista and Wi

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Jason, as I see you implemented os.samefile (actually ntpath.samefile) but os.sameopenfile is still not implemented. Looks like it's easy to do: while GetFinalPathNameByHandle already accept file handle you can use CRT function _get_osfhandle(fd) to convert

[issue7434] pprint doesn't know how to print a namedtuple

2009-12-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: We need a more generic solution that allows multi-line reprs for a variety of types. Here is an example that doesn't involve named tuples: >>> pprint(s, width=15) [OrderedDict([('x', 300), ('y', 40), ('z', 50)]), OrderedDict([('x',

[issue7447] Sum() doc and behavior mismatch

2009-12-05 Thread Terry J. Reedy
New submission from Terry J. Reedy : "sum(iterable[, start]) Sums start and the items of an iterable from left to right and returns the total. start defaults to 0. The iterable‘s items are normally numbers, and are not allowed to be strings." The last sentence is not currently true (3.1, assume

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: You right, problem is not in os.unlink (Windows call DeleteFile) itself. I have TortoiseSVN (very popular Explorer extension to work with Subversion) installed. This tool run TSVNCache.exe process to update own data in background. TSVNCache.exe receive Notify

[issue7434] pprint doesn't know how to print a namedtuple

2009-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: You could make all namedtuples inherit from a common base class, e.g. `BaseNamedTuple`. -- nosy: +pitrou ___ Python tracker ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: .endswith() is a good alternative to [-2:] == -- nosy: +benjamin.peterson ___ Python tracker ___

[issue7446] http.cookies.BaseCookie (and SimpleCookie) can't be load from dict

2009-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This was already corrected with issue5275. Thanks however for the report. -- nosy: +amaury.forgeotdarc resolution: -> out of date status: open -> closed superseder: -> BaseCookie.load doesn't create Morsel objects for mappings _

[issue7442] decimal.py: format failure with locale specifier

2009-12-05 Thread Stefan Krah
Stefan Krah added the comment: This fails in _localemodule.c: str2uni(). mbstowcs(NULL, s, 0) is LC_CTYPE sensitive, but LC_CTYPE is UTF-8 in my terminal. If I set LC_CTYPE and LC_NUMERIC together, things work. This raises the question: If LC_CTYPE and LC_NUMERIC differ (and since they are sep

[issue7446] http.cookies.BaseCookie (and SimpleCookie) can't be load from dict

2009-12-05 Thread Thomas Courbon
New submission from Thomas Courbon : Hi there ! According the documentation [1], the following code should work : >>> from http.cookies import SimpleCookie >>> c = SimpleCookie({'field1': 'value1', 'field2': 'value2'}) >>> print(c) 'Set-Cookie: field1=value1\r\nSet-Cookie: field2=value2' But an

[issue7435] Int/Long: some tests are duplicate and error messages refer to "long"

2009-12-05 Thread Mark Dickinson
Mark Dickinson added the comment: Patch applied in r76681 (I took the liberty of doing the MyLong -> MyInt and Long -> Int renames). Many thanks, flox! -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python trac

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

2009-12-05 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: I wrote a wrapper around the PostgreSQL implementation of setproctitle (probably the most portable around). I've only tested it on Linux: probably will require tweaking constants to compile on other platforms (something postgres does at configure time) but

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm fairly skeptical that your analysis is right. Can you prove that a file still exists after unlink returns? -- nosy: +loewis ___ Python tracker

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +needs review priority: -> low stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue7439] Bug or expected behavior? I cannot tell.

2009-12-05 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7438] Allow to use a part of subprocess module during building Python

2009-12-05 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +needs review priority: -> low stage: -> patch review type: -> behavior ___ Python tracker ___ __

[issue7435] Int/Long: some tests are duplicate and error messages refer to "long"

2009-12-05 Thread Eric Smith
Eric Smith added the comment: > Eric, this patch affects a bunch of formatting tests, particularly > in Lib/test/test_types.py; I don't know whether you're trying to > keep trunk and py3k formatting tests synchronized for ease of > maintenance. Are you? No, I've basically given up on keeping

[issue7444] Allow for a default method in the JSON decoder

2009-12-05 Thread Bob Ippolito
Changes by Bob Ippolito : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7444] Allow for a default method in the JSON decoder

2009-12-05 Thread Bob Ippolito
Bob Ippolito added the comment: If it had JavaScript style Date objects in it, it wasn't a JSON document. While it may be easy enough to do this in the version that happens to be included with Python, the optimizations in later versions of simplejson make this no longer possible. You'd have t

[issue7439] Bug or expected behavior? I cannot tell.

2009-12-05 Thread David W. Lambert
David W. Lambert added the comment: Thank you! A prime sieve variant is a better way to generate the generalized Hamming numbers I'm after, at least if the maximum is known ahead of time. Dave Lambert -- ___ Python tracker

[issue7406] int arithmetic relies on C signed overflow behaviour

2009-12-05 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-05 Thread flox
flox added the comment: There's many differences between both implementations. I don't know if we can live with them or not. ~ $ ./python Python 3.1.1+ (release31-maint:76650, Dec 3 2009, 17:14:50) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >

[issue7439] Bug or expected behavior? I cannot tell.

2009-12-05 Thread Matthew Barnett
Matthew Barnett added the comment: The problem with the shorthand form is that the generators use the values that are bound to 'a' and 'p' when they are iterated, not when they are created. You can test this by inserting: a = "X" just before the assert: you'll get a TypeError later on. Yo

[issue7444] Allow for a default method in the JSON decoder

2009-12-05 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> bob.ippolito nosy: +bob.ippolito ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5509] cPickle - module object has no attribute

2009-12-05 Thread rb
rb added the comment: I've just been stung by this. I've noticed that this seems to apply to both cPickle and pickle. Even worse, it causes different behaviour when a program is run under pdb because __main__ is suddenly pdb rather than the program itself. So, in summary, neither pickle nor cPi

[issue7445] urllib2 (and urllib) should raise error for incomplete response

2009-12-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: urllib and urllib2, by definition, returns a file-like object which provides a variety of facilities, most common one being a reading the object to get the content. What you are asking for is, to read the content, verify if it matches the Content-Length header

[issue7435] Int/Long: some tests are duplicate and error messages refer to "long"

2009-12-05 Thread Mark Dickinson
Mark Dickinson added the comment: Looks fine to me. I'd probably keep MyInt rather than MyLong in Lib/test/pickletester.py, and Int rather than Long in Lib/test/test_getargs2.py, but that's just a matter of renaming. I note the major deletions in test_long; maybe the remaining tests in te

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-05 Thread flox
Changes by flox : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue7445] urllib2 (and urllib) should raise error for incomplete response

2009-12-05 Thread Chris Lasher
New submission from Chris Lasher : This question is motivated by a question on Stack Overflow: http://stackoverflow.com/questions/1824069/urllib2-not-retrieving-entire-http-response In the event the user receives an incomplete response when using urllib2 (and urllib), the library should raise an

[issue7444] Allow for a default method in the JSON decoder

2009-12-05 Thread Daniel Goldman
New submission from Daniel Goldman : I encountered JavaScript-style Date objects in a JSON document that I wanted to parse, and these objects were causing the Python JSON decoder to raise an error with a message that said "Expecting object," followed by the line and column numbers. Here is an

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Problem can be reproduced with several run of test_bufio in both python versions. trunk contains more tests (+1 test case) so it's easer to catch 'access denied' exception on it. -- ___ Python tracker

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: patch for python 2 is attached -- Added file: http://bugs.python.org/file15455/python2.patch ___ Python tracker ___

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Andrew Svetlov
New submission from Andrew Svetlov : On Windows there are tiny delay between call to os.unlink and real file removing. Periodically it leads to unittest crashes in cases like this: test.support.unlink(filename) f = open(filename, 'wb') Proposed solution: wait in support.unlink for end of delet

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-05 Thread Milko Krachounov
Milko Krachounov added the comment: This isn't just a documentation issue. A function named getiterator(), for which the docs say that it returns an iterator, should return an iterator, not just an iterable. They have different semantics and can't be used interchangeably, so the behaviour of get

[issue6058] Add cp65001 to encodings/aliases.py

2009-12-05 Thread flox
Changes by flox : -- versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue7441] Py3.1: Fatal Python Error: Py_Initialize...unknown encoding: chcp 65001.

2009-12-05 Thread flox
flox added the comment: there's a patch proposed to add cp65001 alias: issue6058 -- nosy: +flox ___ Python tracker ___ ___ Python-bugs

[issue7442] decimal.py: format failure with locale specifier

2009-12-05 Thread Stefan Krah
New submission from Stefan Krah : Hi, the following works in 2.7 but not in 3.x: >>> import locale >>> from decimal import * >>> locale.setlocale(locale.LC_NUMERIC, 'fi_FI') 'fi_FI' >>> format(Decimal('1000'), 'n') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python

[issue7441] Py3.1: Fatal Python Error: Py_Initialize...unknown encoding: chcp 65001.

2009-12-05 Thread Lie Ryan
New submission from Lie Ryan : maybe related to #6501 Vista 32-bit SP1, Python 3.1: """ Microsoft Windows [Version 6.0.6000] Copyright (c) 2006 Microsoft Corporation. All rights reserved. D:\>chcp 65001 Active code page: 65001 D:\>python -c 'print("")' Fatal Python error: Py_Initialize: can't

[issue7406] int arithmetic relies on C signed overflow behaviour

2009-12-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Tim. I see that is back in 3.2 rather than in the shift and mask sections. At least I know what to refer to now. -- ___ Python tracker __