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

2011-05-25 Thread Erik Cederstrand
Erik Cederstrand e...@1calendar.dk added the comment: Getting a date from ISO week /weekday is not possible with the %W and %w directives. ISO week numbers and normal week numbers are calculated differently (see my libc qoute in the original post). Also, using %w instead of %u would be

[issue12173] PyImport_ImportModuleLevel doesn't have 'const' on its argument

2011-05-25 Thread Chris Angelico
New submission from Chris Angelico ros...@gmail.com: An anomaly in the argument types of similar functions: PyImport_ImportModuleLevel takes char *, while the related functions PyImport_AddModule, PyImport_ImportModule, and PyImport_ImportModuleNoBlock all take const char *. This made a

[issue12173] PyImport_ImportModuleLevel doesn't have 'const' on its argument

2011-05-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +needs review nosy: +brett.cannon, haypo stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12173 ___

[issue12172] IDLE crashes when I use F5 to run

2011-05-25 Thread Ned Deily
Ned Deily n...@acm.org added the comment: How are you launching IDLE? Are you sure you aren't launching the IDLE for the Apple-supplied Python 2.6? The two easiest ways to launch IDLE 3.2 are to either double-click on the IDLE file in the /Applications/Python 3.2 folder or, from a terminal

[issue12171] Reset method of the incremental encoders of CJK codecs calls the decoder reset function

2011-05-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Amaury Forgeot d'Arc wrote: Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Do we need an additional method? It seems that this reset() could also be written encoder.encode('', final=True) +1 I think that's a much more

[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 96a82c973224 by Victor Stinner in branch 'default': Issue #12049: test_ssl now checks also that RAND_bytes() raises an error if http://hg.python.org/cpython/rev/96a82c973224 -- ___ Python

[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 178d367c9733 by Victor Stinner in branch 'default': Issue #12049: Document errors cases of ssl.RAND_bytes() and http://hg.python.org/cpython/rev/178d367c9733 -- ___ Python tracker

[issue12165] Does nonlocal include global?

2011-05-25 Thread Lukas Petru
Lukas Petru lukas.pe...@seznam.cz added the comment: Well, I read that text before, but it may be because I am not native english speaker that I interpret the text differently. Let's go through it one step at a time and show me where I am wrong. 1) The nonlocal statement causes the listed

[issue11272] input() has trailing carriage return on windows

2011-05-25 Thread Giuseppe Laurenza
Giuseppe Laurenza giuseppe.laure...@gmail.com added the comment: On my pc with both architecture (x86 and x64) the bug is still presentes -- nosy: +Phoenix Fire ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11272

[issue11272] input() has trailing carriage return on windows

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: On my pc with both architecture (x86 and x64) the bug is still presentes Which version of Python are you using? Python 3.1, Python 3.2.1 and Python 3.3 doesn't have the bug, Python 3.2.0 has the bug. Python 3.2.1 doesn't have the

[issue11272] input() has trailing carriage return on windows

2011-05-25 Thread Giuseppe Laurenza
Giuseppe Laurenza giuseppe.laure...@gmail.com added the comment: I'm using the 3.2, the 3.0 has the bug? 2011/5/25 STINNER Victor rep...@bugs.python.org STINNER Victor victor.stin...@haypocalc.com added the comment: On my pc with both architecture (x86 and x64) the bug is still

[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 195de3d10879 by Victor Stinner in branch 'default': Issue #12049: cleanup the warning in the random module doc http://hg.python.org/cpython/rev/195de3d10879 -- ___ Python tracker

[issue12174] Multiprocessing logging levels unclear

2011-05-25 Thread JJeffries
New submission from JJeffries jamesjeffri...@gmail.com: It is unclear without reference to the logging module where the multiprocessing logging levels fit in the normal logging provided by the logging module, even though it says above the table The table below illustrates where theses fit in

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: FileIO.readall() reads the file position and size before each call to read(), to adjust the buffer size. Moreover FileIO.readall() calls lseek() on Windows: it should use _lseeki64() instead, to handle correctly file bigger than

[issue12174] Multiprocessing logging levels unclear

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: It seems that the documentation of logging no longer gives a table with numeric values for levels (I remember seeing it before). Maybe it would be most useful to remove the table from multiprocessing documentation and state it explicitly that

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: BufferedReader.read() calls FileIO.read() until FileIO.read() returns an empty byte string. Why not calling FileIO.read() only once? BufferedReader doesn't call FileIO.read, it calls rawio.read(). The latter can be e.g. a socket and call

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: FileIO.readall() reads the file position and size before each call to read(), to adjust the buffer size. Moreover FileIO.readall() calls lseek() on Windows: it should use _lseeki64() instead, to handle correctly file bigger than 2 GB (or

[issue12174] Multiprocessing logging levels unclear

2011-05-25 Thread JJeffries
Changes by JJeffries jamesjeffri...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file22106/multiprocessing_logging.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12174

[issue12174] Multiprocessing logging levels unclear

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: The patch is in an invalid format. See http://docs.python.org/devguide/patch.html for instructions on working with patches. If you cannot/won't use Mercurial, use two separate directories for original and modified cpython source tree, and

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, FileIO.readall() doesn't raise a ValueError if the file is closed = patch attached to fix this. -- Added file: http://bugs.python.org/file22107/fileio_readall_closed.patch ___ Python

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +raw = f +if hasattr(raw, 'buffer'): +raw = raw.buffer +if hasattr(raw, 'raw'): +raw = raw.raw f.close() self.assertRaises(ValueError, f.flush)

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Carl Crowder
Carl Crowder carl.crow...@gmail.com added the comment: Flume certainly could avoid parsing certain values. However, while a syslog application should avoid octet values below 32, they are still legal [1]. I don't think that adjusting flume to reject legal values due to legacy behaviour in

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: RawIOBase.readall() fails if .read() returns None: fix attached. -- Added file: http://bugs.python.org/file22108/rawiobase_readall.patch ___ Python tracker rep...@bugs.python.org

[issue12173] PyImport_ImportModuleLevel doesn't have 'const' on its argument

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a9126e8770e5 by Benjamin Peterson in branch 'default': make PyImport_ImportModuleLevel's first arg const like similiar functions (closes #12173) http://hg.python.org/cpython/rev/a9126e8770e5 -- nosy: +python-dev resolution:

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: bufferedreader_readall.patch: BufferedReader.read(None) calls raw.readall() if available. bufferedreader_readall.patch requires fileio_readall_closed.patch and rawiobase_readall.patch fixes. -- Added file:

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: bufferedreader_readall.patch: BufferedReader.read(None) calls raw.readall() if available. Have you run any benchmarks? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12175

[issue12174] Multiprocessing logging levels unclear

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Converted the patch by JJeffries to a valid format. -- Added file: http://bugs.python.org/file22110/multiprocessing_logging_2.patch ___ Python tracker rep...@bugs.python.org

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Number of syscalls without the patch - with the patch: - read the README file, text mode: 17 - 12 syscalls (-5) - read the README file, binary mode: 15 - 11 syscalls (-4) - read a binary file of 10 MB: 17 - 12 syscalls (-5) Quick

[issue11272] input() has trailing carriage return on windows

2011-05-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You are using the only version that has the bug (3.2.0, also called 3.2). The fixed version will be released shortly (3.2.1). -- nosy: +r.david.murray ___ Python tracker

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: About rawiobase_readall.patch: why do you use PyObject_Size() if you know chunks is a list? PyList_GET_SIZE is much more efficient. About bufferedreader_readall.patch: +PyBytes_Concat(data, all); +if (data == NULL) +

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: And it goes on to say: [...] but a syslog application MAY modify these characters upon reception. For example, it might change them into an escape sequence (e.g., value 0 may be changed to \0) Flume should not break if it receives

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Carl Crowder
Carl Crowder carl.crow...@gmail.com added the comment: Oh, I understand. Flume doesn't break, it handles the \0 just fine, the problem is that I ended up with a message with that additional byte on the end. Sorry for the confusion! -- ___ Python

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: FWIW, I once stumbled on this problem, and solved it by making my own log handler that uses functions from the syslog module. -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Petri Lehtinen pe...@digip.org added the comment: FWIW, I once stumbled on this problem, and solved it by making my own log handler that uses functions from the syslog module. @Petri: It's great that it worked for you, but IIRC the

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Vinay Sajip wrote: @Petri: It's great that it worked for you, but IIRC the syslog module has had thread-safety issues at least on some platforms, which is why it's not used in the SysLogHandler implementation (disclaimer: this was a while

[issue12045] external shell command executed twice in ctypes.util._get_soname

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset c540b18b00b9 by Antoine Pitrou in branch 'default': Issue #12045: Avoid duplicate execution of command in ctypes.util._get_soname(). http://hg.python.org/cpython/rev/c540b18b00b9 -- nosy: +python-dev

[issue12176] Compiling Python 2.7.1 on Ubuntu 11.04 (Natty Narwhale)

2011-05-25 Thread Pavel Bogdanovic
New submission from Pavel Bogdanovic pabo3...@googlemail.com: Compiling of Python does end with an error. It has to do with changes in Ubuntu: https://wiki.ubuntu.com/MultiarchSpec I added one line after python's setup.py after line 351 add_dir_to_list(self.compiler.library_dirs,

[issue12098] Child process running as debug on Windows

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, thanks for the patches. Some further comments: - the function generating the flags should be exported (with a private name), so that it can be reused by Lib/test/[test_]support.py. Duplicate code is error-prone, especially when enumerating

[issue12045] external shell command executed twice in ctypes.util._get_soname

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed, thank you! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12045

[issue12176] Compiling Python 2.7.1 on Ubuntu 11.04 (Natty Narwhale)

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Are you on a 64-bit Ubuntu? Could you attach or copy/paste the error message? -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12176

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e2363b1c4bca by Senthil Kumaran in branch 'default': Fix closes issue #11109 - socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass. http://hg.python.org/cpython/rev/e2363b1c4bca New changeset

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-05-25 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: The feature is in 3.3. I did not remove the handle_timeout method from the Mixin class, because it might be used in the production by the existing servers. It is not appropriate to remove methods all of sudden without deprecation warnings

[issue12170] Bytes objects do not accept integers to many functions

2011-05-25 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___ ___ Python-bugs-list

[issue12176] Compiling Python 2.7.1 on Ubuntu 11.04 (Natty Narwhale)

2011-05-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This should have been fixed in issue 11715. Could you try to build from a mercurial checkout? -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12176

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-05-25 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: This is fixed in 3.3 now. Keeping it open for test_socketserver update. After a ForkingServer service call, it should be asserted the collect_children routine is run. -- resolution: - fixed stage: patch review -

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: So, SOCK_CLOEXEC is available. Note that I don't like the idea of falling back to FD_CLOEXEC since it's not atomic, and some people might rely on this. Can we close this issue? -- ___ Python

[issue12071] test_concurrent_futures.test_context_manager_shutdown() hangs on OpenIndiana

2011-05-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Since it's a OOM issue, can we close? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12071 ___

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So, SOCK_CLOEXEC is available. Note that I don't like the idea of falling back to FD_CLOEXEC since it's not atomic, and some people might rely on this. Can we close this issue? Well, this is apparently a feature request for

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, the best effort approach is already used in subprocess (check subprocess_cloexec_pipe() in Modules/_posixsubprocess.c). Speaking of which, the os module could expose the pipe2() function. --

[issue12176] Compiling Python 2.7.1 on Ubuntu 11.04 (Natty Narwhale)

2011-05-25 Thread Pavel Bogdanovic
Pavel Bogdanovic pabo3...@googlemail.com added the comment: yes, the patch mentioned in issue 11715 works. Sorry for crossposting the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12176

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Please note: this change is too late for inclusion in Python 3.2.1 :-( as it has already rc status. So I will probably push this change once 3.2.1 is out. -- ___ Python tracker

[issue12176] Compiling Python 2.7.1 on Ubuntu 11.04 (Natty Narwhale)

2011-05-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Thanks for testing. I guess we can close this one then. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue12165] Does nonlocal include global?

2011-05-25 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Lukas, I'll fix-up the docs. Thanks for pointing out the deficiency. -- assignee: - rhettinger components: +Documentation -Interpreter Core nosy: +rhettinger versions: +Python 3.3 ___

[issue12170] Bytes.index() and bytes.count() do not accept byte ints

2011-05-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: It is certainly unusual for n to be in the sequence, but not to be able to find it. Agreed. Doc Lib: 4.6. Sequence Types — str, bytes, bytearray, list, tuple, range says ''' s.index(i) index of the first occurence of i in s s.count(i)

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-05-25 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: Bytes.index() and bytes.count() do not accept byte ints - Bytes.index() and bytes.count() should accept byte ints ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Well, this is apparently a feature request for socketserver.TCPServer. Honestly, I'm not sure what this request is about. The original request seemed to imply this should be made the default. I don't agree, and think this should be

[issue12177] re.match raises MemoryError

2011-05-25 Thread EungJun Yi
New submission from EungJun Yi semtlen...@gmail.com: re.match raises MemoryError when trying to match r'()+?1' to 'a1', as shown below. ~$ python Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. import re

[issue12178] csv writer doesn't escape escapechar

2011-05-25 Thread Eric Breck
New submission from Eric Breck ebr...@gmail.com: Consider the attached two files. A reader and writer with the same dialect parameters (escapechar \ quotechar doublequote False) read, then write a CSV cell that looks like C\\. It's written C\. The problem is, when doublequote=False, the

[issue12165] Does nonlocal include global?

2011-05-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Another problem with the current text is that it fails to exclude enclosing class scopes, and I had to test to be sure they were., and some of the phrasing strikes me as awkward. Here is a possible rewrite. When the definition of a function

[issue12165] Nonlocal does not include global; clarify doc

2011-05-25 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: Does nonlocal include global? - Nonlocal does not include global; clarify doc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12165 ___

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-05-25 Thread Max
Max m...@alleged.net added the comment: Fair enough. I think it would make sense for the string methods to also accept single ints where possible as well: For haystack and needles both strings: [haystack.find(n) for n in needles] For both bytes, it's a bit contortionist:

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-05-25 Thread Max
Changes by Max m...@alleged.net: -- type: - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___ ___

[issue12172] IDLE crashes when I use F5 to run

2011-05-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Did I read right? Clicking F5 crashes while clicking Run and then 'Run Module F5' works? (They ought to be the same thing.) If so, check the key bindings. Options/Configure IDLE .../Keys. There should be an entry 'Run Module - Key-F5'. Is F5

[issue3754] cross-compilation support for python build

2011-05-25 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: Would it be possible to get list of steps required to test this patch? 1. hg clone 2. copy config.sub and config.guess? 3. autoreconf 4. configure... 5. make What else? -- ___ Python tracker

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

2011-05-25 Thread Ashley Anderson
Ashley Anderson agande...@gmail.com added the comment: OK, here is my second attempt. I think it functions as desired, but a code review may reveal flaws in my implementation. I'm sure there are associated tests and documentation to write, but I have basically no experience with that yet. If

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

2011-05-25 Thread Ashley Anderson
Changes by Ashley Anderson agande...@gmail.com: Removed file: http://bugs.python.org/file22101/12006.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12006 ___

[issue3754] cross-compilation support for python build

2011-05-25 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Usually this is not a question for bug-tracking system . configure .. --host= will enter into cross-compilation mode. You could find more details into respective manual. Roumen -- ___

[issue12179] Race condition using PyGILState_Ensure on a new thread

2011-05-25 Thread Sye van der Veen
New submission from Sye van der Veen syeber...@rogers.com: I'm wanting to call PyThreadState_SetAsyncExc from a function registered with SetConsoleCtrlHandler. To do so, I need to call PyGILState_Ensure, which asserts that Python is initialized, so I need to check for that. However, I

[issue12179] Race condition using PyGILState_Ensure on a new thread

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +charles-francois.natali, haypo, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12179 ___

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

2011-05-25 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: Right! I updated the patch and added a test for the aligned stream/buffer case. -- Added file: http://bugs.python.org/file22114/cpython-bz2-streams.patch ___ Python tracker rep...@bugs.python.org

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

2011-05-25 Thread Nir Aides
Changes by Nir Aides n...@winpdb.org: Removed file: http://bugs.python.org/file22087/cpython-bz2-streams.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1625 ___

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: There are still a couple of issues on the Fedora buildbot. Most of them are caused by the absence of threading. -- components: Tests keywords: buildbot messages: 136890 nosy: skrah, tarek priority: normal severity: normal

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 742ff94cdd20 by Victor Stinner in branch '3.1': Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if http://hg.python.org/cpython/rev/742ff94cdd20 New changeset 745e373c0b8e by Victor Stinner in branch

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset f2414bb35c96 by Victor Stinner in branch '2.7': Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if http://hg.python.org/cpython/rev/f2414bb35c96 -- ___ Python

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread rpointel
New submission from rpointel pyt...@xiri.fr: Hello, on OpenBSD (arch: sparc64), when I run the regress tests, I have a SIGBUS error during the test_kqueue.py: (gdb) run /tmp/test_kqueue.py Starting program: /usr/local/bin/python2.7 /tmp/test_kqueue.py testPair (__main__.TestKQueue) ...

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: New changeset 3e3cd0ed82bb by Senthil Kumaran in branch 'default': News entry for issue11109. http://hg.python.org/cpython/rev/3e3cd0ed82bb Please try to format NEWS entries using Issue #xxx: xxx instead of Issue #xxx - xxx.

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12180 ___ ___

[issue12161] StringIO AttributeError instead of ValueError after close..

2011-05-25 Thread Catalin Iacob
Catalin Iacob iacobcata...@gmail.com added the comment: Attached patch + test case. Also tested cStringIO in 2.7 and io.StringIO in 3.2 and 3.3 tip and they aren't affected. -- keywords: +patch nosy: +catalin.iacob Added file: http://bugs.python.org/file22116/12161.patch

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

2011-05-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm not familiar with this module, so at the moment I just gave the patch a quick scan. The approach looks OK to me. Hopefully Alexander can review it. In the meantime I think you should go ahead and work on tests and doc. It is

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 4a7118cff1d3 by Victor Stinner in branch '3.1': Issue #12175: RawIOBase.readall() now returns None if read() returns None. http://hg.python.org/cpython/rev/4a7118cff1d3 New changeset fb29dc650d24 by Victor Stinner in branch '3.2':

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It's an unaligned access: addr=0x21007b72c case T_LONGLONG: v = PyLong_FromLongLong(*(PY_LONG_LONG *)addr); sizeof(PY_LONG_LONG) == 8, but addr % 8 = 0x21007b72c % 8 == 4 -- nosy: +charles-francois.natali

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12181 ___ ___

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

2011-05-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I'll try to give this a more thorough review by the end of the week. For now, just a nit-pick, but _calc_julian_from_V jumped at me as a really odd name. Either iso_to_julian or julian_from_iso would be much clearer.

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: looking -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12180 ___ ___ Python-bugs-list

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12180 ___ ___ Python-bugs-list

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Don't hesitate to ask me if you need information. It looks like the crash occurs on r[0].data in testPair() of test_kqueue. Can you confirm this? Comment the line in test_kqueue.py to check if it works around the crash. What is

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Attached patch [fileio_readall.patch] fixes both problems. Looks ok to me. Did you test under Windows? Yes, test_io pass on Windows Vista 64 bits. Did you run some benchmarks? Yes, see msg136853. Do you mean that I should not

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: You must Py_DECREF(all) first. Also, you should check that all is either None or a bytes object. Right, fixed in bufferedreader_readall-2.patch. By the way, thanks for your reviews. So, do you think that fileio_readall.patch and

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file22117/bufferedreader_readall-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12175 ___

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file22118/bufferedreader_readall-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12175 ___

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file22109/bufferedreader_readall.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12175 ___

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file22107/fileio_readall_closed.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12175 ___

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread rpointel
rpointel pyt...@xiri.fr added the comment: It looks like the crash occurs on r[0].data in testPair() of test_kqueue. Can you confirm this? Comment the line in test_kqueue.py to check if it works around the crash. Yes, it does not crash if I comment this line. What is the size of intptr_t

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file22108/rawiobase_readall.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12175 ___

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 8aa1ae77cfe1 by Tarek Ziade in branch 'default': Issue #12180: Fixed a few remaining errors in test_packaging when no threading. http://hg.python.org/cpython/rev/8aa1ae77cfe1 -- nosy: +python-dev

[issue12177] re.match raises MemoryError

2011-05-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Confirmed. The test case quickly uses 8GB of memory. -- nosy: +ezio.melotti, pitrou, skrah stage: - needs patch versions: +Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue12071] test_concurrent_futures.test_context_manager_shutdown() hangs on OpenIndiana

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Since it's a OOM issue, can we close? Yes, I don't want to investigate, and I already changed the size of my swap partition, so I cannot reproduce the bug anymore. -- resolution: - wont fix status: open - closed

[issue12171] Reset method of the incremental encoders of CJK codecs calls the decoder reset function

2011-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le mercredi 25 mai 2011 à 08:23 +, Marc-Andre Lemburg a écrit : Do we need an additional method? It seems that this reset() could also be written encoder.encode('', final=True) +1 I think that's a much more natural way

[issue12175] FileIO.readall() read the file position and size at each read

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So, do you think that fileio_readall.patch and bufferedreader_readall-2.patch should be commited, or these changes are useless? They should be committed. Thank you :) -- ___ Python tracker

  1   2   >