[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-11-01 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Ok, closing the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13279 ___ ___

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-11-01 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13279 ___

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-11-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Why it is closed as duplicate? nothing said about CLOEXEC in issue12797 See http://bugs.python.org/issue12760#msg146686 -- ___ Python tracker rep...@bugs.python.org

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-11-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: And to be explicit, you can now write: def open_cloexex(filename, mode='r'): return open(filename, mode, opener=lambda path, mod: os.open(path, mod|os.O_CLOEXEC)) -- ___

[issue13308] fix test_httpservers failures when run as root

2011-11-01 Thread Charles-François Natali
New submission from Charles-François Natali neolo...@free.fr: Here's a patch fixing test_httpservers failures when run as root (a couple buildbots are consistently failing on this, e.g. http://python.org/dev/buildbot/all/builders/x86 FreeBSD 7.2 3.x/builds/2282/steps/test/logs/stdio). The

[issue13308] fix test_httpservers failures when run as root

2011-11-01 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: You should change issue # with the real issue number now that there's an issue for this :) -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13308

[issue13152] textwrap: support custom tabsize

2011-11-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Two comments: * The new parameter to __init__ should be added at the end of the parameter list. * A documentation update would be nice. -- ___ Python tracker rep...@bugs.python.org

[issue13305] datetime.strftime(%Y) not consistent for years 1000

2011-11-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le 01/11/2011 00:07, Roundup Robot a écrit : Roundup Robotdevn...@psf.upfronthosting.co.za added the comment: New changeset 3f025427f02b by Florent Xicluna in branch 'default': Fix regression due to changeset 2096158376e5

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-11-01 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: Well, I understand. So why not to add 'e' (and 'N', which is the same meaning) character, which: * use O_CLOEXEC in modern Linux * generate Exception if O_CLOEXEC is not supported (or does not work) on platform. Also, implement

[issue13305] datetime.strftime(%Y) not consistent for years 1000

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 230f0956aaa3 by Florent Xicluna in branch 'default': Strengthen the tests for format '%Y', in relation with issue #13305. http://hg.python.org/cpython/rev/230f0956aaa3 --

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-11-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: So why not to add 'e' character You said it: because it can't be written consistently on all platforms. For example, python does not use CreateFile on Windows, see #12939. -- ___ Python

[issue12939] Add new io.FileIO using the native Windows API

2011-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Instead of rewriting your own RawIO implementation, why not use _open_osfhandle? This should be simple now with the opener argument. http://msdn.microsoft.com/en-us/library/bdts1c9x.aspx -- nosy: +pitrou

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0a5eb57d5876 by Ezio Melotti in branch '2.7': #670664: Fix HTMLParser to correctly handle the content of ``script.../script`` and ``style.../style``. http://hg.python.org/cpython/rev/0a5eb57d5876 New changeset

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-11-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks to everyone who contributed to this over the years! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6107a84e3c44 by Ezio Melotti in branch '3.2': #12008: add a test. http://hg.python.org/cpython/rev/6107a84e3c44 New changeset 495b31a8b280 by Ezio Melotti in branch 'default': #12008: merge with 3.2.

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

2011-11-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This seems to be already fixed in 3.2/3.3, so I extracted the test from your script and added to the test suite. If you can find a way to break the parser let me know. -- assignee: - ezio.melotti nosy: +ezio.melotti resolution:

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-11-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I think xy z=o //x should be parser as xy z= //x, and the o should be ignored. xy z= //x should be parser as xy z= //x, and the last two should be ignored. This is what Firefox seems to do. Currently the parser doesn't seem to handle

[issue12578] Erratic socket.gaierror: [Errno 11004] when using smtplib

2011-11-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Please provide more information, because this looks really strange... -- nosy: +neologix stage: - test needed status: open - pending ___ Python tracker rep...@bugs.python.org

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-01 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13303 ___

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-01 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: After changeset 55a3b563f0db the Gentoo buildbot is complaining. == FAIL: test_strptime (test.test_time.TimeTestCase)

[issue13302] Clarification needed in C API arg parsing

2011-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It's already in the 3.x docs (but not 2.x): “Strings and buffers These formats allow to access an object as a contiguous chunk of memory. You don’t have to provide raw storage for the returned unicode or bytes area. Also, you won’t have to

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2771f7e96a52 by Florent Xicluna in branch 'default': Add temporary tests to troubleshoot issue #13309 on Gentoo buildbot. http://hg.python.org/cpython/rev/2771f7e96a52 -- nosy: +python-dev

[issue9897] multiprocessing problems

2011-11-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: The first problem is a duplicate of issue #6056. As for the second problem, no, it doesn't limit the number of concurrent connections. Server.serve_forever() creates a new thread for each new incoming connection. Closing as

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bb0ae7df08f8 by Florent Xicluna in branch 'default': Troubleshoot issue #13309 on Gentoo buildbot. http://hg.python.org/cpython/rev/bb0ae7df08f8 -- ___ Python tracker

[issue13287] urllib.request exposes too many names

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 70dedd8ce8f3 by Senthil Kumaran in branch 'default': issue13287 - Define __all__ for urllib.request and urllib.error and expose only http://hg.python.org/cpython/rev/70dedd8ce8f3 -- nosy: +python-dev

[issue13287] urllib.request exposes too many names

2011-11-01 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Thanks flox for the patch. Just the News item is added. I don't think, this requires any Docs update. One change I had to make in the patch is to remote HTTPSHandler from __all__ because that is only conditionally available when

[issue1745761] Bad attributes/data handling in SGMLib

2011-11-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745761 ___ ___

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5b1e1967ea9d by Florent Xicluna in branch 'default': Replace temporary tests with the real test case for issue #13309 on Gentoo. http://hg.python.org/cpython/rev/5b1e1967ea9d --

[issue13310] asyncore handling of out-of-band data fails

2011-11-01 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: Add the following lines to test_handle_expt (this makes sense, a dispatcher instance is supposed to implement handle_read and call recv in order to detect that the remote end has closed the socket): --- a/Lib/test/test_asyncore.py +++

[issue13311] asyncore handle_read should call recv

2011-11-01 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: When the remote end disconnects, handle_close is only called if recv is called (from handle_read). The default implementation of handle_read does not call recv. Not having the default implementation of handle_read call recv, has the

[issue755670] improve HTMLParser attribute processing regexps

2011-11-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached patch includes the tests in diff.txt. On Python 3, with strict=False, the first test (adjacent attributes) passes, but the other two still fail. See also #12629. -- nosy: +ezio.melotti -BreamoreBoy type: feature request -

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-01 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: import time import sys t = time.gmtime(time.time()) s = time.strftime('%Z', t) print(s) time.mktime((-1, 1, 1, 0, 0, 0, -1, -1, -1)) t = time.gmtime(time.time()) s = time.strftime('%Z', t) print(s) outputs: SAST LMT on my Gentoo

[issue12939] Add new io.FileIO using the native Windows API

2011-11-01 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: why not use _open_osfhandle? Because it is wrapper for other CRT functions for Windows, like close(). In other words it is an emulation. I think Python should not create wrapper around wrapper around wrapper... For example, in Python3,

[issue12939] Add new io.FileIO using the native Windows API

2011-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: why not use _open_osfhandle? Because it is wrapper for other CRT functions for Windows, like close(). In other words it is an emulation. I think Python should not create wrapper around wrapper around wrapper... Why do you think it makes a

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-01 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: It seems that mktime is buggy on Gentoo. You can try to reset its state in some way before to retry strftime: t = time.gmtime(time.time()) s = time.strftime('%Z', t) print(s) time.mktime((-1, 1, 1, 0, 0, 0, -1, -1, -1)) s =

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-01 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: It outputs: SAST LMT LMT An equivalent C program to the first test: #include time.h #include stdlib.h #include stdio.h int main() { time_t t; struct tm *tmp; t = time(NULL); tmp = localtime(t); char str[200];

[issue12939] Add new io.FileIO using the native Windows API

2011-11-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: An implementation of RawIO with the win32 API can be useful (and I'd be interested to compare the performance) But maybe not for all usages: some Python interfaces are defined in terms of file descriptors, imp.load_module(), and

[issue13312] test_time fails: strftime('%Y', y) for negative year

2011-11-01 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: On builder AMD64 FreeBSD 8.2 3.x for the TIME_MINYEAR: == FAIL: test_negative (test.test_time.TestStrftime4dyear)

[issue12939] Add new io.FileIO using the native Windows API

2011-11-01 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: Why do you think it makes a difference? Because adding one more dependency on unneeded libraries add the pain. Also it limit us on very restricted API of that wrapper. Windows native API is stable. So it's OK to rely on it's documented

[issue13313] test_time fails: tzset() do not change timezone

2011-11-01 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: On builder x86 FreeBSD 7.2 3.x : == FAIL: test_tzset (test.test_time.TimeTestCase) -- Traceback

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-01 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13309 ___ ___

[issue12939] Add new io.FileIO using the native Windows API

2011-11-01 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: The good example of implemetation is QT. I think we can get some things from this library. (Like using \\?\ for long paths (or always, as in QT)). -- ___ Python tracker rep...@bugs.python.org

[issue12939] Add new io.FileIO using the native Windows API

2011-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Why do you think it makes a difference? Because adding one more dependency on unneeded libraries add the pain. MSVCRT is unneeded?? What are you talking about? Also it limit us on very restricted API of that wrapper. Windows native API is

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-01 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: See also issue #13313 on timezone, seen on x86 FreeBSD 7.2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13309 ___

[issue13314] ImportError ImportError: Import by filename, should be deferred until sys.meta_path hooks are processed

2011-11-01 Thread Rob Bairos
New submission from Rob Bairos rbai...@gmail.com: When adding hooks to sys.meta_path, to correctly deal with arbitrarily named non-disk module definitions, module names with slashes should still be processed. As it stands when executing statements such as: import my_module_123#/123 or even

[issue13314] ImportError ImportError: Import by filename, should be deferred until sys.meta_path hooks are processed

2011-11-01 Thread Rob Bairos
Changes by Rob Bairos rbai...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13314 ___ ___ Python-bugs-list mailing

[issue13315] Unable to deal with large tarfile

2011-11-01 Thread Dave Flogeras
New submission from Dave Flogeras dfloger...@gmail.com: I am trying to unpack boost_1_46_1.tar.bz2 (you can grab it here http://mirror.its.dal.ca/gentoo/distfiles/boost_1_46_1.tar.bz2) with the following code: import tarfile t = tarfile.open( boost_1_46_1.tar.bz2 ); t.extractall() On OSX

[issue13254] maildir.items() broken

2011-11-01 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: More specifically, this happens if the Maildir instance is created two seconds before items() is called: import time from mailbox import Maildir x = Maildir('test') # has messages time.sleep(2.5) x.items() [] This happens because

[issue7777] Support needed for AF_RDS family

2011-11-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's a patch adding support for RDS sockets (with test and documentation update). -- keywords: +needs review, patch nosy: +haypo, neologix, pitrou stage: needs patch - patch review versions: +Python 3.3 -Python 2.7, Python

[issue13254] maildir.items() broken

2011-11-01 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Attached a patch. It makes _refresh() re-read the _toc uncoditionally when called the first time. -- keywords: +needs review, patch stage: needs patch - patch review Added file: http://bugs.python.org/file23584/issue13254.patch

[issue13315] Unable to deal with large tarfile

2011-11-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It's more likely an issue with the chown call. Indeed, the tar file contains a gid of 4294967295, which is too large for an int. Normally this was fixed by issue1747858, which was included in Python 2.6.5 and 2.7. Are you sure you

[issue7777] Support needed for AF_RDS family

2011-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: A couple of things: - the tests are skipped with unable to bind RDS socket here (even under root). Is it expected? - socket.error is the same as OSError now - there are some ResourceWarnings abount unclosed sockets when running the tests

[issue13314] ImportError ImportError: Import by filename, should be deferred until sys.meta_path hooks are processed

2011-11-01 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13314 ___ ___ Python-bugs-list

[issue13310] asyncore handling of out-of-band data fails

2011-11-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Hello Xavier, select (an poll) returns a read event and an exceptional condition for the socket, but there is no normal data to read, only out-of-band data. That's against POSIX: POLLIN Data other than high-priority data may be

[issue13316] build_py_2to3 does not execute when there was an error before

2011-11-01 Thread simohe
New submission from simohe sim...@besonet.ch: When I use build_py_2to3 and there is an error while converting a file with 2to3, convert is skipped on the next run. The reason is that build_module in build_py_2to3 (in module distutils.command.build_py) only appends the file for converting when

[issue13317] building with 2to3 generates wrong import paths because build_ext is run after build_py

2011-11-01 Thread simohe
New submission from simohe sim...@besonet.ch: We need build_ext before build_py. Otherwise, when 2to3 is called (in build_py), it will not find ext modules, thinking that those modules are global and, consequently, making a mess, now that all module imports are global. -- components:

[issue13316] build_py_2to3 does not execute when there was an error before

2011-11-01 Thread simohe
Changes by simohe sim...@besonet.ch: -- components: +2to3 (2.x to 3.x conversion tool) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13316 ___ ___

[issue13254] maildir.items() broken

2011-11-01 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: The patch by Petri looks good. I've uploaded a variant which set the initial mtimes to epoch instead of creating a _toc_read attribute. The tests are not changed. -- nosy: +flox Added file:

[issue13316] build_py_2to3 does not convert when there was an error in the last run

2011-11-01 Thread simohe
Changes by simohe sim...@besonet.ch: -- title: build_py_2to3 does not execute when there was an error before - build_py_2to3 does not convert when there was an error in the last run type: behavior - ___ Python tracker rep...@bugs.python.org

[issue13254] maildir.items() broken

2011-11-01 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Re-uploaded, because we can set initialize _last_read to 0 instead of time.time(). It is more consistent. -- Added file: http://bugs.python.org/file23586/issue13254_v2.diff ___ Python

[issue13254] maildir.items() broken

2011-11-01 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: Removed file: http://bugs.python.org/file23585/issue13254_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13254 ___

[issue13254] maildir.items() broken

2011-11-01 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Finally, the patch can be only 5 lines... -- Added file: http://bugs.python.org/file23587/issue13254_v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13254

[issue13315] Unable to deal with large tarfile

2011-11-01 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The issue is indeed with chown call. The call that fails has a gid of -1, truncated to 4294967295, which is a valid gid on OS X ('nogroup'). The Apple-supplied Python 2.7.1 in OS X 10.7 fails running under sudo as root: Python 2.7.1 (r271:86832, Jun

[issue7777] Support needed for AF_RDS family

2011-11-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: - the tests are skipped with unable to bind RDS socket here (even under root). Is it expected? Oops. I did a quick test to force the socket family (because RDS sockets really use sockaddr_in), and apparently I overwrote my original

[issue13315] Unable to deal with large tarfile

2011-11-01 Thread Ned Deily
Ned Deily n...@acm.org added the comment: For some reason, Apple is patching Modules/posixmodule.c in a way that reverts the fixes to chown in Issue1747858. You can see the patches for their 10.7.2 python 2.7 here: http://opensource.apple.com/source/python/python-57/2.7/fix/posixmodule.c.ed

[issue13315] tarfile extract fails on OS X system python due to chown of gid=-1

2011-11-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13315 ___ ___ Python-bugs-list mailing

[issue13315] tarfile extract fails on OS X system python due to chown of gid=-1

2011-11-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: pending - open title: Unable to deal with large tarfile - tarfile extract fails on OS X system python due to chown of gid=-1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13315

[issue2892] improve cElementTree iterparse error handling

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 23ffaf975267 by Florent Xicluna in branch '3.2': Closes #2892: preserve iterparse events in case of SyntaxError. http://hg.python.org/cpython/rev/23ffaf975267 New changeset ca1e2cf2947b by Florent Xicluna in branch

[issue13318] Shelve second tier array subscript [ ] key creation doesn't work

2011-11-01 Thread Chris Piekarski
New submission from Chris Piekarski ch...@cpiekarski.com: Shelve object second tier array subscript key generation doesn't behave the same way dictionary object do. import shelve x = shelve.open(tst1.shelve) x[one] = {} x {'one': {}} x[one][two] = 2 x {'one': {}} Whereas with a

[issue13318] Shelve second tier array subscript [ ] key creation doesn't work

2011-11-01 Thread Ned Deily
Ned Deily n...@acm.org added the comment: shelve is behaving as documented. Because the shelve dictionary entry is mutable (a dictionary), you need to set writeback=True to get the behavior you expect. http://docs.python.org/library/shelve.html -- nosy: +ned.deily resolution: -

[issue13312] test_time fails: strftime('%Y', y) for negative year

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9cb1b85237a9 by Florent Xicluna in branch 'default': Issue #13312: skip the single failing value for now. http://hg.python.org/cpython/rev/9cb1b85237a9 -- nosy: +python-dev

[issue13319] IDLE: Menu accelerator conflict between Format and Options

2011-11-01 Thread Roger Serwy
New submission from Roger Serwy roger.se...@gmail.com: This is a minor interface issue. The accelerator for opening the _Options menu in an editor conflicts with the F_ormat menu. I suggest changing the Options accelerator to i since Alt-t is for toggling tabs. (Perhaps the accelerator for

[issue13306] Add diagnostic tools to importlib?

2011-11-01 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: If it is importlib._diagnostics then I'm fine with it, but I definitely don't want it exposed in a public API. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13306

[issue13320] _remove_visual_c_ref in distutils.msvc9compiler causes DLL load fail with embedded Python and multiple CRT versions

2011-11-01 Thread Inverness
New submission from Inverness inverness...@gmail.com: I am using a custom Python executable for an application I'm developing. I also build PYDs to extend this Python environment. I decided to upgrade them and my executable to use Visual C++ 10 while the Python DLL and other third party PYDs,

[issue13320] _remove_visual_c_ref in distutils.msvc9compiler causes DLL load fail with embedded Python and multiple CRT versions

2011-11-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - tarek components: +Distutils, Distutils2 nosy: +alexis, eric.araujo, loewis, tarek versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13320

[issue13298] Result type depends on order of operands for bytes and bytearray

2011-11-01 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13298 ___ ___ Python-bugs-list

[issue13312] test_time fails: strftime('%Y', y) for negative year

2011-11-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d877d7f3b679 by Florent Xicluna in branch 'default': Actually, there's more than one failing value. (changeset 9cb1b85237a9, issue #13312). http://hg.python.org/cpython/rev/d877d7f3b679 --

[issue13321] fstat doesn't accept an object with fileno method

2011-11-01 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: os.fstat doesn't not accept an object with the fileno() method. Probably a bunch of other similar functions will not either. In some parts of the standard library it's common practice to call PyObject_AsFileDescriptor on fd-wrapping

[issue12684] profile does not dump stats on exception like cProfile does

2011-11-01 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Also affects 3.3. -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684 ___

[issue12684] profile does not dump stats on exception like cProfile does

2011-11-01 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- resolution: - works for me status: open - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684 ___