[issue12831] 2to3 and integer division

2011-08-25 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Pyth

[issue12831] 2to3 and integer division

2011-08-25 Thread Mark Dickinson
Mark Dickinson added the comment: > "/ 2" is an integer division, so it should be "// 3" in Python 3. No, I don't think that's right: 2to3 has no way of knowing that the programmer intended an integer division here (self.maxstars could be a float). Instead, you should always use '//' in Pytho

[issue12835] Missing SSLSocket.sendmsg() wrapper allows programs to send unencrypted data by mistake

2011-08-25 Thread Nick Coghlan
Nick Coghlan added the comment: As Antoine said, good catch. I'll be able to incorporate this in the next couple of days. -- ___ Python tracker ___

[issue12843] file object read* methods in append mode overflows

2011-08-25 Thread Otacon Karurosu
Otacon Karurosu added the comment: I have confirmed that this only happens in windows. -- components: +Windows ___ Python tracker ___ ___

[issue12844] Support more than 255 arguments

2011-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: On python-dev a few month ago, Guido agreed with you that this is an arbitrary limitation that should be removed at some point. In particular, he worried that programmatically generated code would tend to run into this limitation. -- nosy: +rhetti

[issue11241] ctypes: subclassing an already subclassed ArrayType generates AttributeError

2011-08-25 Thread Meador Inge
Meador Inge added the comment: This patch was marked as accepted, but it doesn't seem to be committed. Will someone commit it? -- ___ Python tracker ___ __

[issue12844] Support more than 255 arguments

2011-08-25 Thread Anders Kaseorg
Anders Kaseorg added the comment: I guess the desugaring is slightly more complicated in the case where the original function call already used *args or **kwargs: f(arg0, …, arg999, *args, k0=v0, …, k999=v999, **kwargs) becomes something like f(*((arg0, …, arg999) + args), **dict({'k0':

[issue12844] Support more than 255 arguments

2011-08-25 Thread Anders Kaseorg
New submission from Anders Kaseorg : This feels like an arbitrary restriction (obvious sequences have been replaced with ‘…’ to save space in this report): >>> zip([0], [1], [2], …, [1999]) File "", line 1 SyntaxError: more than 255 arguments especially when this works: >>> zip(*[[0], [1],

[issue12843] file object read* methods in append mode overflows

2011-08-25 Thread Otacon Karurosu
New submission from Otacon Karurosu : When opening a file in append mode and attempting to read after doing a write operation causes the read method to overflow and read memory directly (instead of returning an empty string) The following code prints garbage: f2 = open("test", "w+b") f2.write

[issue12833] raw_input misbehaves when readline is imported

2011-08-25 Thread Mads Kiilerich
Changes by Mads Kiilerich : -- nosy: +kiilerix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12835] Missing SSLSocket.sendmsg() wrapper allows programs to send unencrypted data by mistake

2011-08-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> ncoghlan type: behavior -> security ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue12835] Missing SSLSocket.sendmsg() wrapper allows programs to send unencrypted data by mistake

2011-08-25 Thread David Watson
David Watson added the comment: On Thu 25 Aug 2011, Antoine Pitrou wrote: > Adding an explanation message to the NotImplementedError would be more > helpful. Otherwise, good catch. OK, I've copied the messages from the ValueErrors the other methods raise. -- Added file: http://bugs.p

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2011-08-25 Thread David Watson
David Watson added the comment: On Wed 24 Aug 2011, Charles-François Natali wrote: > > I included this test deliberately, because msg_controllen may be > > of signed type [...] POSIX allows socklen_t to be signed > > http://pubs.opengroup.org/onlinepubs/007908799/xns/syssocket.h.html > """ >

[issue12842] Docs: first parameter of tp_richcompare() always has the correct type

2011-08-25 Thread Stefan Krah
New submission from Stefan Krah : I've noticed that assumptions about the operand types in tp_richcompare() are not always consistent. As far as I can see, the first parameter in tp_richcompare() is guaranteed to be of the correct type. But in some places the first parameter's type is still chec

[issue12786] subprocess wait() hangs when stdin is closed

2011-08-25 Thread Charles-François Natali
Charles-François Natali added the comment: Patch committed. Idan, thanks for the report. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue3871] cross and native build of python for mingw32 with packaging

2011-08-25 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: eric, if you recall there was some discussion that it was acceptable to use distutils but *only* for python 2.N (on the basis that its use is so well entrenched that it would be impossible to force python2.N applications to start using distutil

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2011-08-25 Thread Philipp Weinfurter
Philipp Weinfurter added the comment: Oops. Misread the code, that part of skip() is fine. Patch removed. Sorry about that. -- ___ Python tracker ___ ___

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2011-08-25 Thread Philipp Weinfurter
Changes by Philipp Weinfurter : Removed file: http://bugs.python.org/file23045/chunk2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12786] subprocess wait() hangs when stdin is closed

2011-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 498b03a55297 by Charles-François Natali in branch '2.7': Issue #12786: Set communication pipes used by subprocess.Popen CLOEXEC to avoid http://hg.python.org/cpython/rev/498b03a55297 -- nosy: +python-dev ___

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-08-25 Thread Vinay Sajip
Vinay Sajip added the comment: BTW, IIRC I have fixed it in the pythonv branch. https://bitbucket.org/vinay.sajip/pythonv -- ___ Python tracker ___

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2011-08-25 Thread Charles-François Natali
Charles-François Natali added the comment: > Oooh, I'm confused. I removed this stupid patch. chown_hpux-3.diff has a problem too: it skips the successful chown call (that's why I put the SkipTest at the end). -- ___ Python tracker

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-08-25 Thread trevor
trevor added the comment: i see the same behavior - the error occurs leaving an empty RESOURCES file -- ___ Python tracker ___ ___ Py

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-08-25 Thread Vinay Sajip
Vinay Sajip added the comment: Éric: I only meant that when writing data resources, one might reasonably use 'wb', but when writing scripts, which are text, 'w' is more appropriate. -- ___ Python tracker

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-25 Thread Charles-François Natali
Charles-François Natali added the comment: > The OS X buildbots show some failures: It seems to fail consistently on every OS X version. I've had another look both at the code and the test, and couldn't find anything wrong with it. Since there are a number of known bugs pertaining to FD passin

[issue12656] test.test_asyncore: add tests for AF_INET6 and AF_UNIX sockets

2011-08-25 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue3329] API for setting the memory allocator used by Python

2011-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: All this needs is a patch. Note that there are some places where we call malloc()/free() without going through our abstraction API. This is not in allocation-heavy paths, though. -- nosy: +pitrou versions: +Python 3.3 -Python 3.2 _

[issue12333] test_distutils and test_packaging failures under Solaris

2011-08-25 Thread Éric Araujo
Éric Araujo added the comment: Thanks for applying the same fix to test_distutils! -- title: test_packaging failures under Solaris -> test_distutils and test_packaging failures under Solaris ___ Python tracker __

[issue12333] test_packaging failures under Solaris

2011-08-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: +Python 3.2 ___ Python tracker ___

[issue12333] test_packaging failures under Solaris

2011-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0ec01c95a73 by Antoine Pitrou in branch '3.2': Issue #12333: fix test_distutils failures under Solaris and derivatives http://hg.python.org/cpython/rev/c0ec01c95a73 New changeset 80f814dca274 by Antoine Pitrou in branch 'default': Issue #12333: fi

[issue12840] "maintainer" value clear the "author" value when register

2011-08-25 Thread Éric Araujo
Éric Araujo added the comment: > Is not simpler (to understand) to keep always the approach to keep both? Well, there needs to be one point of contact. If someone takes the responsibility to make a project available on PyPI without asking the author to do it themselves, then that someone is r

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-08-25 Thread Éric Araujo
Éric Araujo added the comment: Vinay: I don’t understand your message. I wasn’t part of the effort that added the resources subsystem, so I will work on a patch for this bug to learn more about it. -- ___ Python tracker

[issue12333] test_packaging failures under Solaris

2011-08-25 Thread Éric Araujo
Éric Araujo added the comment: This is strange; TempdirManager.tearDown already changes back to self._olddir (set to os.getcwd() in setUp). -- ___ Python tracker ___ __

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 262e03bbe7a9 by Éric Araujo in branch 'default': Another (hopefully last) fix for test_packaging on Windws (#12678) http://hg.python.org/cpython/rev/262e03bbe7a9 -- ___ Python tracker

[issue12840] "maintainer" value clear the "author" value when register

2011-08-25 Thread Luca Fabbri
Luca Fabbri added the comment: I'm quite sure that after gettint ownership on an already existent package (with a different author inside) and I added the maintainer (with my name) I get the author override. But maybe I don't remember exactly... Is not simpler (to understand) to keep always t

[issue3871] cross and native build of python for mingw32 with packaging

2011-08-25 Thread Éric Araujo
Éric Araujo added the comment: Please read msg136382 and take it into account. Also, I suggest you wait a bit for packaging patches: GSoC projects need to be reviewed and integrated, which may change large parts of the codebase. -- title: cross and native build of python for mingw32

[issue3754] cross-compilation support for python build

2011-08-25 Thread Éric Araujo
Éric Araujo added the comment: Copy-pasting of a previous comment: I see some “fix for issue #NNN is bogus” in your patch: would you open separate bug reports for those? A diff file is not a very useful way to report bugs or express opinions . Copy-pasting of many previous comments: distutil

[issue12840] "maintainer" value clear the "author" value when register

2011-08-25 Thread Éric Araujo
Éric Araujo added the comment: I think this is intended behavior. When the author of a project is the one to register with PyPI, they use the author and author_email fields, which get displayed at PyPI. When it is not the original author but someone else who packages and registers a project

[issue12841] Incorrect tarfile.py extraction

2011-08-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12841] Incorrect tarfile.py extraction

2011-08-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: Lars, any comment? -- assignee: -> lars.gustaebel nosy: +lars.gustaebel, loewis ___ Python tracker ___ __

[issue12841] Incorrect tarfile.py extraction

2011-08-25 Thread Sebastien Luttringer
New submission from Sebastien Luttringer : This patch fix extraction of tarfile which override tarfile uid/gid tarfile.py extract function override uid/gid of a file if uid/gid is not existant on the system. When user is not root (uid 0), common behaviour of extracting is correct. When user is

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your latest patch was committed, thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset cdc6c1b072a5 by Antoine Pitrou in branch 'default': Issue #12803: SSLContext.load_cert_chain() now accepts a password argument http://hg.python.org/cpython/rev/cdc6c1b072a5 -- nosy: +python-dev ___ Pytho

[issue12835] Missing SSLSocket.sendmsg() wrapper allows programs to send unencrypted data by mistake

2011-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Adding an explanation message to the NotImplementedError would be more helpful. Otherwise, good catch. -- ___ Python tracker ___ _

[issue12835] Missing SSLSocket.sendmsg() wrapper allows programs to send unencrypted data by mistake

2011-08-25 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: +ncoghlan, pitrou priority: normal -> high type: -> behavior ___ Python tracker ___ ___

[issue12786] subprocess wait() hangs when stdin is closed

2011-08-25 Thread Ross Lagerwall
Ross Lagerwall added the comment: Patch looks good after Victor's comment. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2011-08-25 Thread Yap Sok Ann
Yap Sok Ann added the comment: Just want to mention that until the patch get included, it will be impossible to use the standard library to generate a working BCP (Bulk Copy Program) XML format file for SQL Server, which always requires a TERMINATOR="\r\n" or TERMINATOR=" " attribute. -

[issue12838] FAQ/Programming typo: range[3] is used

2011-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0abe03195d09 by Georg Brandl in branch '3.2': Close #12838: fix range() call. http://hg.python.org/cpython/rev/0abe03195d09 New changeset 16a90cdb5ee4 by Georg Brandl in branch '2.7': Close #12838: fix range() call. http://hg.python.org/cpython/rev

[issue12839] zlibmodule cannot handle Z_VERSION_ERROR zlib error

2011-08-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: Thanks for the bug report and patch. I'll take a look at it over the weekend. -- assignee: -> nadeem.vawda components: +Extension Modules -None nosy: +nadeem.vawda ___ Python tracker

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2011-08-25 Thread Philipp Weinfurter
Philipp Weinfurter added the comment: >From AIFF-C Draft '91, Section 5, Sound Data Chunk: "If soundData[] contains an odd number of bytes, a pad byte with a value of zero is added at the end to preserve an even length for this Chunk." So I think aifc.patch is wrong. However, Chunk.skip() is

[issue11576] timedelta subtraction glitch on big timedelta values

2011-08-25 Thread Gökçen Eraslan
Gökçen Eraslan added the comment: I can still reproduce that error with Python 2.7.2: Python 2.7.1 (r271:86832, Apr 27 2011, 15:42:42) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from datetime import * >>> timedelta(9, 86399, 99)

[issue12840] "maintainer" value clear the "author" value when register

2011-08-25 Thread Luca Fabbri
New submission from Luca Fabbri : I reported this problem in the pypi site issue tracker (issue 3396924): https://sourceforge.net/tracker/?func=detail&atid=513503&aid=3396924&group_id=66150 However it seems that is a python bug. If in one package's setup.py I provide maintainer (with email) and

[issue12839] zlibmodule cannot handle Z_VERSION_ERROR zlib error

2011-08-25 Thread rmtew
rmtew added the comment: Attached is a patch to fix the issue, generated using "p4 diff -du" which should hopefully be usable. -- keywords: +patch Added file: http://bugs.python.org/file23044/zlibmodule.patch ___ Python tracker