[issue11962] Buildbot reliability

2011-05-05 Thread Stefan Krah
Stefan Krah added the comment: The FreeBSD bot had these error messages in the log files: 1) kernel: swap_pager: indefinite wait buffer: device 2) Approaching the limit on PV entries, consider increasing either the vm.pmap.shpgperproc or the vm.pmap.p v_entry_max sysctl. I set up the bot fro

[issue11962] Buildbot reliability

2011-05-05 Thread Stefan Krah
Stefan Krah added the comment: On second thought, I don't want to debug possible qcow2 issues, so I made another change: d) Use raw format for the image. -- ___ Python tracker

[issue12005] modulo result of Decimal differs from float/int

2011-05-05 Thread Daniel Albeseder
New submission from Daniel Albeseder : I know that the modulo operation for negative values is not well defined, but I would at least expect that the result is the same no matter if you use ints, floats or decimals. However Decimal seem to behave else than the builtin types. Python 3.1.2 (rele

[issue12005] modulo result of Decimal differs from float/int

2011-05-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12006] strptime should implement %V or %u directive from libc

2011-05-05 Thread Erik Cederstrand
New submission from Erik Cederstrand : Python is via datetime.isocalendar() able to produce the ISO week number and ISO weekday from a given date. But it is not possible to do the reverse; calculate the date from a year, ISO week number and weekday. libc strptime()/strftime() mentions a %V and

[issue11015] Bring test.support docs up to date

2011-05-05 Thread Ezio Melotti
Ezio Melotti added the comment: I left a few comments on rietveld for the testdoc and remove_fcmp patches. Unless I'm missing something, assertEqual works just fine in all the places where fcmp was used, so there's no need to use assertAlmostEqual. -- nosy: +ezio.melotti _

[issue12006] strptime should implement %V or %u directive from libc

2011-05-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1046092] HTMLParser fix to accept malformed tag attributes

2011-05-05 Thread svilen dobrev
svilen dobrev added the comment: this seems to eat too much into data and gets past endpos of the chunk processed, and parser gets confused and treats any subsequent stuff as data. i didn't think out how to fix the regexp as such, but instead limited its span to :endpos so it doesnot eat too

[issue1046092] HTMLParser fix to accept malformed tag attributes

2011-05-05 Thread svilen dobrev
Changes by svilen dobrev : Added file: http://bugs.python.org/file21892/test-htmlparser-attrs.py ___ Python tracker ___ ___ Python-bugs-list

[issue1046092] HTMLParser fix to accept malformed tag attributes

2011-05-05 Thread Ezio Melotti
Ezio Melotti added the comment: This issue is closed, so it's better if you create a new issue. Even better if you can attach a patch that adds a testcase to Lib/test/test_htmlparser.py -- nosy: +ezio.melotti ___ Python tracker

[issue12007] Console commands won't work

2011-05-05 Thread Jakob Aga
New submission from Jakob Aga : [PCLOS KDE 2010.12] Console commands (in Konsole & Yakuake) won't work in Python 3.2. Like ctrl+l for clearing the screen, arrow keys up & down for scrolling through previous python commands. Instead I get e.g. ^L (ctrl+l) and ^[[A (arrow up) on the interpreter

[issue12008] HtmlParser non-strict goes wrong with unquoted attributes

2011-05-05 Thread svilen dobrev
New submission from svilen dobrev : nonstrict mode seems to eat too much into data and gets past endpos of the chunk processed, and parser gets confused and treats any subsequent stuff as data. i didn't think out how to fix the regexp as such, but instead limited its span to :endpos so it does

[issue12008] HtmlParser non-strict goes wrong with unquoted attributes

2011-05-05 Thread svilen dobrev
Changes by svilen dobrev : -- components: +Library (Lib) type: -> behavior versions: +Python 3.2 Added file: http://bugs.python.org/file21894/test-htmlparser-attrs.py ___ Python tracker ___

[issue12008] HtmlParser non-strict goes wrong with unquoted attributes

2011-05-05 Thread svilen dobrev
svilen dobrev added the comment: (the nonstrict regexp came with Issue1046092) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, 5 May 2011 03:52:29 +0200, R. David Murray wrote: > [..] the shell [..] I believe it just looks at the mtime/atime. /* check_mail () is useful for more than just checking mail. Since it has the paranoids dream ability of telling you when so

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, 5 May 2011 03:52:29 +0200, R. David Murray wrote: > [..] the shell [..] I believe it just looks at the mtime/atime. Pretty good, huh? Mr. Mojo says: Prowd to be a part of this number. Successful hills are here to stay. Everythi

[issue12002] ftplib.FTP.abort fails with TypeError on Python 3.x

2011-05-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue11997] One typo in Doc/c-api/init.rst

2011-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76a2354aa427 by Ezio Melotti in branch '2.7': #11997: fix typo in init.rst. http://hg.python.org/cpython/rev/76a2354aa427 New changeset 3aa51217492c by Ezio Melotti in branch '3.1': #11997: fix typo in init.rst. http://hg.python.org/cpython/rev/3aa

[issue11997] One typo in Doc/c-api/init.rst

2011-05-05 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch. -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2011-05-05 Thread Ezio Melotti
Ezio Melotti added the comment: Can you prove that the second one is useless (did it cause you any problem or did you just find it reading the source)? There might be reasons why there are two calls to fp.tell() (e.g. the result is different in the two places and/or zinfo.header_offset is read

[issue12005] modulo result of Decimal differs from float/int

2011-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: I believe that this was a deliberate design decision, though now that I look it seems it's not well documented. That should probably be fixed, so I see this as a documentation issue. More details: The specification on which the decimal module is based requi

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Yes if you are a member of group mail you would not need setgid mail, obviously. The problem report in question was submitted by one of the Debian maintainers, so I have to believe that the system in question was not misconfigured. This part of the discussi

[issue12005] modulo result of Decimal differs from float/int

2011-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: The doc change should also note that // and divmod suffer from a similar mismatch: >>> Decimal(-2) // Decimal(3) Decimal('-0') >>> -2 // 3 -1 >>> -2.0 // 3 -1.0 However, the invariant that x = x // y * y + x % y is retained, as it should be. --

[issue12002] ftplib.FTP.abort fails with TypeError on Python 3.x

2011-05-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2011-05-05 Thread Johan Euphrosine
Johan Euphrosine added the comment: I just find it while reading the source, for fixing #11980 zinfo.header_offset is only read in self._write_check, and it seems to me that no file operation are performed on self.fp between the two call. So I can't see see how it could different. Also the t

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-05-05 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: -ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11690] Devguide: Add "communication" FAQ

2011-05-05 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: docs@python -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11647] function decorated with a context manager can only be invoked once

2011-05-05 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mail

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: @sdaoden(, @pitrou): Antoine proposes to skip the zlib "big buffer" (1 GB) test on 32 bits system. What do you think? On 64 bits system, we check a buffer of 2 GB-1 byte (0x7FFF bytes). Is the test useful or not? What do we test? Can you check if the tes

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2011-05-05 Thread Johan Euphrosine
Johan Euphrosine added the comment: Here is a log that shows zinfo.header_offset value after each .tell() when running test_zipfile -- Added file: http://bugs.python.org/file21895/zinfo.header_offset.log ___ Python tracker

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: > If the user base cannot be calculated, paths > starting with ~ should not exist or be used at all in this context. It's not "~" but "{userbase}" substitution variable. Here is a new patch implementing this idea: don't create the variables using the user dir

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-05 Thread Ruslan Mstoi
New submission from Ruslan Mstoi : It seems recent patch from Issue 10464 has introduced problems into one line comment handling of netrc module. Problem 1: If there is a line starting with a comment sign the following traceback is shown: Traceback (most recent call last): File "/usr/lib/py

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: Ah ah, this bug is funny :-) test_regexp doesn't fail because of a race condition or a file system issue, but because of the regex! The regex "ba.*" is applied on the fullname, not only on the basename. If the temporary contains "ba", the test fails :-) Repla

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: Ah ah, this bug is funny :-) test_regexp doesn't fail because of a race condition or a file system issue, but because of the regex! The regex "ba.*" is applied on the fullname, not only on the basename. If the temporary contains "ba", the test fails :-) Repla

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: Ah ah, this bug is funny :-) test_regexp doesn't fail because of a race condition or a file system issue, but because of the regex! The regex "ba.*" is applied on the fullname, not only on the basename. If the temporary contains "ba", the test fails :-) Repla

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg135199 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Are you sure about "if not san and not dnsnames"? It is even more restrictive than the currently condition. "if not dnsnames" looks like it would fit the bill better. Also, better if you can provide a complete patch, including additional test(s) in Lib/test/

[issue11888] Add C99's log2() function to the math library

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: Updated patch to use the system log2() if it is available. The test pass with the system log2() on Linux (Debian Sid, eglibc 2.11.2). -- Added file: http://bugs.python.org/file21897/issue11888-2.patch ___ Python tra

[issue12005] modulo result of Decimal differs from float/int

2011-05-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue11965] Simplify context manager in os.popen

2011-05-05 Thread Chris Rose
Chris Rose added the comment: I'm pretty sure that the os._wrap_close wrapper is not the same thing as the Popen context manager. I don't think it's useful to try refactor this. As Antoine points out, the current wrapper serves a very different purpose. -- nosy: +offby1 _

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: @haypo: trouble, trouble on the dev-list, as i've seen currently. Sorry, sorry. (Cannot subscribe, my DynIP's are often blacklisted ;) Of course my comments were completely wrong, as Ethan has pointed out correctly. This is all s**t. These are mmap(2)

[issue11647] function decorated with a context manager can only be invoked once

2011-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4ba097123f6 by Nick Coghlan in branch '3.2': Issue #11647: allow contextmanager objects to be used as decorators as described in the docs. Initial patch by Ysj Ray. http://hg.python.org/cpython/rev/e4ba097123f6 New changeset b23d1df7e47e by Nick

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: P.S.: if you're really right ('have those RFC's, but didn't read them yet), you could also open an issue for Mercurial at http://mercurial.selenic.com/bts - i think those guys do the very same. Thanks, Steffen! -- nosy: +sdaoden __

[issue11647] function decorated with a context manager can only be invoked once

2011-05-05 Thread Nick Coghlan
Nick Coghlan added the comment: The core bug has been fixed for 3.2.1 and forward ported to 3.3. I credited the patch to "Ysj Ray" in ACKS and NEWS, let me know if you'd prefer a different attribution. Leaving the issue open for now, since _recreate_cm() should be renamed and documented for

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, 5 May 2011 13:42:29 +0200, R. David Murray wrote: > what does mutt do in the case you are talking about? 16 -rwxr-s--- 1 steffen mail 14832 23 Jan 19:13 usr/bin/mutt_bitlock set bitlock_program="~/usr/bin/mutt_bitlock -p" I see. Un

[issue12006] strptime should implement %V or %u directive from libc

2011-05-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is a reasonable request and easy to implement. I am not sure how often this functionality is needed, so I am only +0 on this feature. -- keywords: +easy stage: -> needs patch versions: +Python 3.3 ___ P

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > The problem report in question was submitted by one of the > Debian maintainers. Yeah, a documentainer at least. I've used Debian (Woody i think that was 3.1). Actually great because Lehmanns, Heidelberg, Germany did not include the sources but they'v

[issue6116] frame.f_locals keeps references to things for too long

2011-05-05 Thread Facundo Batista
Facundo Batista added the comment: Making a copy of f_locals values to return a dictionary that doesn't hold references to the locals of the frame is not that simple (for me, at least): - shallow copy: we'll return always a new dict, with the values being a copy of locals; this is simpler, bu

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Rather than shoehorning datetime class support into existing functions, I think a separate set of functions should be written to convert between RFC 2822 timestamps and datetime instances. Currently, email.utils has three functions dealing with date-ti

[issue11965] Simplify context manager in os.popen

2011-05-05 Thread Éric Araujo
Éric Araujo added the comment: Looks like I’ve misunderstood and there is no duplication. If you feel sure about it, please reject and close this report. -- ___ Python tracker ___

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Steffen, your sense of humor is great, but oftentimes I have no clue what you are talking about. Where does ftruncate factor in? I was asking what mutt does when it modifies a file in the hopes that it had some pithy algorithm for making sure the mailbox at

[issue6116] frame.f_locals keeps references to things for too long

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Making a copy of f_locals values to return a dictionary that doesn't > hold references to the locals of the frame is not that simple I think you misunderstood the bug report. The issue here is not that locals are referenced from the dict, it's that the dict

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12007] Console commands won't work

2011-05-05 Thread R. David Murray
R. David Murray added the comment: I believe this is out of scope for Python itself, and is a platform distribution issue. The platform must do some special magic to make those things work; they don't in a vanilla python build as far as I know. You might look to your readline configuration

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-05 Thread R. David Murray
Changes by R. David Murray : -- keywords: +easy nosy: +r.david.murray stage: -> test needed type: crash -> behavior ___ Python tracker ___ __

[issue6116] frame.f_locals keeps references to things for too long

2011-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: I vote for option 1. We already eschew hacks with locals(). -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76bd26565cc7 by R David Murray in branch '3.2': #11873: Improve test regex so random directory names don't cause test to fail http://hg.python.org/cpython/rev/76bd26565cc7 New changeset 83e069281810 by R David Murray in branch 'default': Merge: #11

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread R. David Murray
R. David Murray added the comment: I ran the patched version 2945 times without failure. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: +self.assertRunOK('-q', '-x', 'ba[^\/]*$', self.pkgdir) This regex matchs 'ba(...)\'. I think that you wanted to write r'[^\\/]'. -- ___ Python tracker __

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Quick review at http://bugs.python.org/review/8407/show -- ___ Python tracker ___ ___ Python-bugs-li

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: After half an hour of shallow inspection. mutt really modifies mailbox files in place (mbox_sync_mailbox()) after creating (all the new tail in) a temporary file. Then seek()/write()/truncate() etc.. It however has mutt_dotlock(1) and it does block si

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Do you think we can get 9527 in? My patch was based on the non-existence of a LocalTimezone facility in the stdlib. Good point about the special interpretation of -. Given 9527 (and only given 9527) it would indeed make sense to restrict email to aware

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread R. David Murray
R. David Murray added the comment: You are right that I got the regex wrong (I'm bad at regexes), but in fact it is fine the way it is. Since there's no r, the regex is actually "ba[^/]$", which is exactly what I meant. -- ___ Python tracker

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: "prepare new tail" means all of the text from the first modified line to the end? (As opposed to "just the new mail"?) mailbox does locking. I see no reason in principle it couldn't stat/restore, it would just be setting the times on the new file rather th

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Oh, and does mutt's behavior apply to any mbox, or only the one in the system spool? -- ___ Python tracker ___ __

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, May 5, 2011 at 12:44 PM, R. David Murray wrote: .. > Do you think we can get 9527 in? I hope we can. Pure Python implementation can be improved by deducing the TZ offset from localtime() and gmtime() calls. In C we can use additional struct tm

[issue10399] AST Optimization: inlining of function calls

2011-05-05 Thread Pas
Changes by Pas : -- nosy: +pas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue9527] Add aware local time support to datetime module

2011-05-05 Thread R. David Murray
R. David Murray added the comment: LocalTimezone support would be *really* helpful for the email module. It would allow us to have unambiguous semantics for datetime objects representing timestamps exacted from or inserted into email messages (see issue 665194 for recent discussion). The em

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Yes, since the package will save the original text anyway, I think just clamping to 59 is best. Hmm. Maybe instead I could put in an assert that says "please report this incident to bugs.python.org so we can argue that datetime should get support for leap

[issue1479611] speed up function calls

2011-05-05 Thread Pas
Changes by Pas : -- nosy: +pas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue6116] frame.f_locals keeps references to things for too long

2011-05-05 Thread Facundo Batista
Facundo Batista added the comment: Antoine, to see if I understood correctly... if we build the dict, and just return it but don't save it in the frame, this leak would be solved? (yes, it'd be slower because everytime it's asked, it'd need to be built again) -- _

[issue8498] Cannot use backlog = 0 for sockets

2011-05-05 Thread Charles-François Natali
Charles-François Natali added the comment: > Thanks for the tip. I added the unit test and uploaded my final patch > (which includes all changes). A couple comments (note that I'm not entitled to accept or commit a patch, so feel free to ignore them if I'm just being a pain): - "the maximum va

[issue9971] Optimize BufferedReader.readinto

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As I think about this more... I'm not sure how much performance there > is to gain here in practice. It seems like any time I'd want to use > readinto(), it's because I want to do my own buffering, in which case > why would I use a BufferedReader? The differ

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-05-05 Thread Charles-François Natali
Charles-François Natali added the comment: > You can not pickle individual objects larger than 2**31. Indeed, but that's not what's happening here, the failure occurs with much smaller objects (also, note the OP's "cPickle is perfectly capable of pickling these objects"). The problem is reall

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-05-05 Thread Ismail Donmez
Ismail Donmez added the comment: Ping? Shall I submit a fix for Modules/_ctypes/libffi/configure.ac or better yet will you sync in-tree libffi? -- ___ Python tracker ___ __

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, ctypes is kindof unmaintained right now, and the private libffi copy belongs to that module. (the reason we have a libffi copy is that, IIUC, it's patched) -- nosy: +pitrou ___ Python tracker

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-05-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Brett, can you test this? -- assignee: -> brett.cannon nosy: +rhettinger ___ Python tracker ___ ___

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-05-05 Thread Ismail Donmez
Ismail Donmez added the comment: Patch for configure.ac then? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue12006] strptime should implement %V or %u directive from libc

2011-05-05 Thread Erik Cederstrand
Erik Cederstrand added the comment: At least in Denmark, week numbers are used regularly in everyday communication and planning, and the numbering follows the ISO rules. Also, the week starts on Monday. -- ___ Python tracker

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Bryce Verdier
Bryce Verdier added the comment: Here is the patch to fix the documentation. Asked some core developers off the bug tracker how to handle this bug in relation to the bigger issue regarding "STOP" leading to an infinite loop. -- keywords: +patch nosy: +louiscipher Added file: http://bu

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: In fact i like my idea of using iterations. I have some time tomorrow, so if nobody complains until then, i write diffs for the tests of 3.x and 2.7 with these updates: - Two different target sizes: 1. 0x + x (7) 2. 0x7FFF + x (7) -

[issue7359] mailbox cannot modify mailboxes in system mail spool

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Issue #11935 becomes gigantic and may even swamp this one over! -- nosy: +sdaoden ___ Python tracker ___ ___

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this is the wrong patch for reasons given below. The example should be replaced instead. Readline is documented as returning '' at EOF for text files. Iter(func,sentinel) is documented as calling func until sentinel is returned. If that never happens,

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Python

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-05 Thread David Coles
New submission from David Coles : On Android platforms bionic defines wchar_t as char. This causes compiling of unicodeobject.c to fail with "#error "unsupported wchar_t and PyUNICODE sizes, see issue #8670". The unusual thing is that the configure script does detect if wchar_t is usable (HAV

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : Treating RuntimeError as if it could take an errno is no good: >>> try: signal.siginterrupt(32, 12345) ... except RuntimeError as e: print(e.errno) ... Traceback (most recent call last): File "", line 1, in RuntimeError: (22, 'Invalid argument') During h

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: I asked if I should use RuntimeError or OSError for the new signal functions (#8407) on python-dev. Georg Brandl answered: "If it has an errno, it should be a subclass of EnvironmentError." -- ___ Python tracker <

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9971] Optimize BufferedReader.readinto

2011-05-05 Thread John O'Connor
John O'Connor added the comment: Attached patch draft for buffered_readinto(). patchcheck removed some whitespace as well. Daniel, I agree. BufferedReader.readinto seemingly defeats the purpose of using a BufferedReader to begin with. Though, for the difference Antoine pointed out it makes s

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll replace this with a better example using binary chunked reads that terminate with an empty string. -- priority: normal -> low ___ Python tracker _

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you want to propose a patch? I'm not sure any of us can test on an Android setup. -- nosy: +pitrou stage: -> needs patch versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker

[issue12010] Compile fails when sizeof(wchar_t) == 1

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

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, 5 May 2011 19:04:16 +0200, R. David Murray wrote: > "prepare new tail" means all of the text from the first modified > line to the end? (As opposed to "just the new mail"?) mailbox > does locking. I see no reason in principle it couldn't > sta

[issue9971] Optimize BufferedReader.readinto

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you for the patch. A couple of comments: - the whole slow path (which loops calling _bufferedreader_raw_read()) should be surrounded by calls to ENTER_BUFFERED() and LEAVE_BUFFERED() - other things: +if (!PyArg_ParseTuple(args, "O:readinto", &buffe

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-05 Thread David Coles
David Coles added the comment: Sure. There are a few other build issues (mainly missing types/structs in Bionic) that are preventing a complete build. I'll put together a patch once I have a working build and can verify that HAVE_USABLE_WCHAR_T is set correctly set on a normal Linux build. -

[issue9971] Optimize BufferedReader.readinto

2011-05-05 Thread John O'Connor
John O'Connor added the comment: Thanks for the feedback. I made the changes, PTAL. -- Added file: http://bugs.python.org/file21900/buffered_readinto2.patch ___ Python tracker __

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: > http://bugs.python.org/review/8407/show Updated patch (version 2). Note: sigpending() doesn't return an error code but -1 on error. -- Added file: http://bugs.python.org/file21901/pending_signals-2.patch ___ Pyth

  1   2   >