[issue7028] hex function should work with floats

2009-10-01 Thread Mark Dickinson
Mark Dickinson added the comment: I agree it would be useful. That's why this facility already exists in Python >= 2.6 (including Python 3.x). :-) Python 2.6.2 (r262:71600, Jul 8 2009, 09:56:31) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type "help", "copyright", "credits" or "license"

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-10-01 Thread Scott Dial
Scott Dial added the comment: It would seem the logical patch would be to return the line when the empty string is returned. This would fall in line with the behavior of other objects with a readline() in python. In following with that, the patch I have attached returns a truncated line. Therein

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

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

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-10-01 Thread Scott Dial
Changes by Scott Dial : Added file: http://bugs.python.org/file15013/imaplib-r75166.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7028] hex function should work with floats

2009-10-01 Thread Mark Dickinson
Mark Dickinson added the comment: > I agree it would be useful. That's why this facility already exists Ahem. Embarrassing causation fail. To clarify, Raymond Hettinger proposed this addition some time ago, and others on python-dev supported it. *That's* why it was implemented. :) --

[issue7028] hex function should work with floats

2009-10-01 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7026] test_urllib: unsetting missing 'env' variable

2009-10-01 Thread Georg Brandl
Georg Brandl added the comment: Can this issue be closed then? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mail

[issue7022] Doc update for io module

2009-10-01 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7026] test_urllib: unsetting missing 'env' variable

2009-10-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: This needs to be changed in python2.6 branch as well. I was hesitant as barry was making the build. After the branch opens, I shall make the changes in that and close the issue. -- nosy: +barry ___ Python tracker <

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-10-01 Thread Ralf Schmitt
Ralf Schmitt added the comment: I'd rather have an extractall version which just throws a RuntimeError than one which overwrites any file with any content on my filesystem if I'm trying to unzip a zip file. Then I at least know that I have to write my own version. Adding a warning to the docume

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is something that sometimes happens when running the test suite due to module initialization or finalization oddities (I don't understand the precise reasons myself). It isn't specific to test_io, I think. -- versions: +Python 2.7, Python 3.1, Pyth

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: If you are requesting new `start` and `end` arguments to readinto(), the way to do that today is to use a memoryview: # b is your bytearray, f your IO object m = memoryview(b)[start:end] f.readinto(m) If you still want that feature, please open a sepa

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, I'm not sure what is wrong with the current doc: read(n=-1)¶ Read and return up to n bytes from the stream. As a convenience, if n is unspecified or -1, readall() is called. Otherwise, only one system call is ever made. An empty bytes object is re

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: -> normal type: feature request -> behavior versions: +Python 2.6, Python 2.7 ___ Python tracker ___

[issue7028] hex function should work with floats

2009-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file15010/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue1759169] clean up Solaris port and allow C99 extension modules

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: We're in the middle of a release so this will have to wait until we are done. Apart from that, is there a reason *not* to apply the patch? (it only seems to affect Solaris after all, and Solaris users here seem consensual that the patch should be applied) -

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-10-01 Thread Nick Coghlan
Nick Coghlan added the comment: Probably too late for 2.6.3 - assigning to Barry to check anyway. -- assignee: -> barry nosy: +barry, ncoghlan ___ Python tracker ___ ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-10-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm afraid so. Please consider this for landing after 2.6.3 is released. -- assignee: barry -> ___ Python tracker ___ ___

[issue2986] difflib.SequenceMatcher not matching long sequences

2009-10-01 Thread Geoffrey Bache
Changes by Geoffrey Bache : -- nosy: +gjb1002 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7028] hex function should work with floats

2009-10-01 Thread Josh Cogliati
Josh Cogliati added the comment: Thank you for telling me about that function. I read the documentation on hex() and never realized that there was a second instance method float.hex(). I am curious why the proper way to turn a number into hex is the following: import types def to_hex(a):

[issue7028] hex function should work with floats

2009-10-01 Thread Mark Dickinson
Mark Dickinson added the comment: Josh, see the issue 3008 discussion. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue6733] curses line wrap broken when mixing full- and half-width unicode characters

2009-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue1625] bz2.BZ2File doesn't support multiple streams

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some notes about posting patches: - you should post the patch alone, not in an archive - generally you should post patches against the 2.7 trunk, we take care of merging them to py3k ourselves (but in this case the difference should be minimal anyway) - I'm not

[issue1625] bz2.BZ2File doesn't support multiple streams

2009-10-01 Thread David Bonner
David Bonner added the comment: Thanks for the reply. My company's legal dept. told me that we needed to put the boilerplate into the files as part of releasing it under the apache license. I used a tarball because they also recommended including a full copy of the license with the patch. I'm

[issue1625] bz2.BZ2File doesn't support multiple streams

2009-10-01 Thread R. David Murray
R. David Murray added the comment: If the patch is substantial enough that legal boilerplate is even an issue, then I'm pretty sure a contributor agreement will be required for patch acceptance, at which point I think the boilerplate won't be needed. The Apache license is certainly acceptable.

[issue6992] PEP 314 inconsistency (authors/author/maintainer)

2009-10-01 Thread Dariusz Suchojad
Dariusz Suchojad added the comment: Hello, funny the bug report should surface in the very same time I was looking for a way to put 2 authors in the 'author' field :-) [Antoine Pitrou (pitrou)] > It is still unknown what use case the new "author" scheme would solve > that the old one doesn't

[issue7022] Doc update for io module

2009-10-01 Thread Pascal Chambon
Pascal Chambon added the comment: Thanks for the memoryview tip - I though I was up-to-date with python's features but obviously I wans't ^^ (I searched through dict views but that wasn't it...) It should be exactly what's needed to replace these unnecessary additional arguments. As for the sim

[issue7019] unmarshaling of artificial strings can produce funny longs.

2009-10-01 Thread Carl Friedrich Bolz
Carl Friedrich Bolz added the comment: [...] > How did you encounter this in the first place? I was working on PyPy's marshaler, broke it in such a way that it was producing the bad input that I gave above. Then I fixed it, but didn't kill my .pyc files. So a few days later I got a long zero

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've improved the docs a bit in r75168. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7020] regression in pywin32 build due to 2.6.3rc1

2009-10-01 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Apparently Zope2 build fails for the same reason on 2.6.3rc1 (I'm attaching the log file) File "c:\python26\lib\distutils\command\build_ext.py", line 633, in get_ext_fullpath filename = self.get_ext_filename(modpath[-1]) File "c:\python26\lib\si

[issue7020] regression in pywin32 build due to 2.6.3rc1

2009-10-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: Its a setuptools bug. That's because it uses Setuptools, which patches Distutils behavior, as soon as you "import setuptools". Matthias Klose and I have fixed this flaw in debian, and it is also fixed in Distribute, but not in Setuptools. -- ___

[issue7020] regression in pywin32 build due to 2.6.3rc1

2009-10-01 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Tarek was referring to this bug - http://bitbucket.org/tarek/distribute/ issue/41/ - above. -- ___ Python tracker ___ __

[issue7029] Improve pybench

2009-10-01 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : The attached patch contains suggested fixes to pybench.py: 1) add a processtime timer for windows 2) fix a bug in timer selection: timer wasn't put in 'self' 3) Collect 'gross' times for each round 4) show statistics for per-round sums, both for sum of

[issue7029] Improve pybench

2009-10-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Kristján Valur Jónsson wrote: > Thanks for the patch. Here's a quick review (a bit terse, but hope you don't mind)... > The attached patch contains suggested fixes to pybench.py: > 1) add a processtime timer for windows I'm not sure why you added this: th

[issue6958] Add Python command line flags to configure logging

2009-10-01 Thread Thomas Heller
Thomas Heller added the comment: I retract this request. It seems the idea is not liked or a solution is not easy. (The solution I now use is to start Python from a batch file that parses some command line flags itself, sets environment variables, and my sitecustomize.py file configures loggin

[issue7030] Update version{added, changed} entries in py3k unittest docs

2009-10-01 Thread Mark Dickinson
New submission from Mark Dickinson : The py3k unittest docs have a few instances of: .. versionadded:: 2.7 and .. versionchanged:: 2.7 Presumably all of these should be either 3.1 or 3.2. I'd fix them, but I think Michael has a much better chance of getting all the version numbers righ

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-10-01 Thread Thomas W. Barr
Thomas W. Barr added the comment: Even if we can't fix things for this release, presumably it's not too late to fix things for 2.7, right? Yes, there certainly are cases where you might want to have creative usage of symlinks and stored paths to allow overwriting existing files, and placing fil

[issue7031] add assertIsInstance

2009-10-01 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: michael.foord components: Library (Lib) files: assertIsInstance.diff keywords: easy, needs review, patch, patch nosy: georg.brandl, michael.foord priority: normal severity: normal status: open title: add assertIsInstance type: feature request versio

[issue7031] add assertIsInstance

2009-10-01 Thread Georg Brandl
New submission from Georg Brandl : Change negated method name to assertNotIsInstance. -- Added file: http://bugs.python.org/file15018/assertIsInstance2.diff ___ Python tracker ___

[issue7029] Improve pybench

2009-10-01 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Hello Marc-Andre. 1) yes, this is nonsense. I thought that "systimes" was some archaeic module that had been discontinued, since I didn't find it in the standard modules (where "time" is). I didn't realize that it was a special helper sibling-module

[issue7031] add assertIsInstance

2009-10-01 Thread Georg Brandl
Georg Brandl added the comment: Committed in r75180. -- assignee: michael.foord -> georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue7032] Make assertMultilineEqual default for unicode string comparison in

2009-10-01 Thread Michael Foord
New submission from Michael Foord : unittest.TestCase.assertEqual uses the new type equality functions for comparing containers. In Python 2.7 assertMultilineEqual should be the default comparison method for unicode strings and in Python 3.2 for comparing strings. assertMultilineEqual should o

[issue6958] Add Python command line flags to configure logging

2009-10-01 Thread Vinay Sajip
Vinay Sajip added the comment: Ok. I think it's a reasonable request, but I can see that implementing it naively without some further thought will lead to (justifiable) complaints from some users that the behaviour is contradictory or unintuitive in terms of which configuration "wins" in the eve

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-10-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: yes this will be fixed in 2.7/3.2. as for creative uses where someone might want the out of supplied path overwriting behavior? those people are insane and should be made to jump through extra hoops to get it. ;) -- __

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-10-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue7028] hex function should work with floats

2009-10-01 Thread Josh Cogliati
Josh Cogliati added the comment: Okay. Thank you. I looked at the issue 3008 discussion. I see why hex() was not changed. Can int.hex() and int.fromhex() be added for symmetry? I am willing to work on the patch, it just might be a bit. As well, either way, it might be useful for the documen