[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-05-25 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +patch nosy: +petri.lehtinen Added file: http://bugs.python.org/file22122/str_translate_docstring.patch ___ Python tracker ___ __

[issue12174] Multiprocessing logging levels unclear

2011-05-25 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +jnoller, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12182] pydoc.py integer division problem

2011-05-25 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12182] pydoc.py integer division problem

2011-05-25 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-05-25 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-05-25 Thread Ross Lagerwall
Ross Lagerwall added the comment: Python 3.3 (as yet unreleased) supports the lutimes function: http://docs.python.org/dev/py3k/library/os.html#os.lutimes Python 2.7 is not getting any more features so it will not be added. I'm changing the title to the second part of your question, documenti

[issue12184] socketserver.ForkingMixin collect_children routine needs to collect only it's children

2011-05-25 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +charles-francois.natali ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12184] socketserver.ForkingMixin collect_children routine needs to collect only it's children

2011-05-25 Thread Senthil Kumaran
New submission from Senthil Kumaran : socketserver.ForkingMixin class has a collect_children method, that waits for the children to exit. But, that waits for any child process and not just the ones spawned the socketserver alone. try: pid, status = os.waitpid(0, 0)

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

2011-05-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Victor - Sure, I understand Issue #xxx: desc must be useful while generation reST docs. -- ___ Python tracker ___ ___

[issue12177] re.match raises MemoryError

2011-05-25 Thread EungJun Yi
EungJun Yi added the comment: This also raises in 2.6.5 Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> re.match('()+?1', 'a1') Traceback (most recent call last): File "", line 1,

[issue12183] Python does not support lutime() function

2011-05-25 Thread Марк Коренберг
New submission from Марк Коренберг : see http://www.linuxquestions.org/questions/programming-9/utime-on-a-symbolic-link-743085/: -- Hello, The API utime() is not available for symbolic links. However, with kernel 2.6.22 lutimes() API allowed setting times on atime and mtime on symbolic l

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2011-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f3446f08187a by Kurt B. Kaiser in branch '2.7': IDLE: #6378: Further adjust idle.bat to start associated Python http://hg.python.org/cpython/rev/f3446f08187a -- ___ Python tracker

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

2011-05-25 Thread R. David Murray
R. David Murray added the comment: It looks like strftime already support %V and %u (presumably if and only if the platform strftime does). -- ___ Python tracker ___ __

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

2011-05-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, May 25, 2011 at 6:28 PM, Ashley Anderson wrote: > > .. I agree that '_calc_julian_from_V' is a bit strange. I was mimicking a > similar helper function's > name ('_calc_julian_from_U_or_W'), but perhaps that is no defense. This is a perfect defe

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

2011-05-25 Thread STINNER Victor
STINNER Victor added the comment: > I'm not sure what you mean by "discard the output". > > Calling .reset() should still add the closing sequence to the output > buffer, if needed. Incremental encoders don't have any buffer. Python 3.3a0 (default:3c7792ec4547+, May 26 2011, 00:24:51) >>> im

[issue10330] trace module doesn't work without threads

2011-05-25 Thread Stefan Krah
Stefan Krah added the comment: test_trace still fails on 2.7 on the no-threads bot: http://www.python.org/dev/buildbot/all/builders/AMD64%20Fedora%20without%20threads%202.7/builds/22/steps/test/logs/stdio Could you have a short look at the patch. I think it should be correct; the tests pass.

[issue12182] pydoc.py integer division problem

2011-05-25 Thread Ralf W. Grosse-Kunstleve
New submission from Ralf W. Grosse-Kunstleve : The pydoc.HTMLRepr.multicolumn() method fails when using the Python command-line option -Qnew. The attached patch inserts two slashes for floor division. (I think the same change was applied to Python 3 already.) -- components: Library (Li

[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 added the comment: STINNER Victor wrote: > > STINNER Victor 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) >>

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

2011-05-25 Thread Martin
Martin added the comment: New cjk_encreset.patch looks good to me. As with issue 12100 this likely wasn't reported before because decoders are robust against escape sequence oddities. -- ___ Python tracker _

[issue12090] 3.2: build --without-threads fails

2011-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb8bb4db2bc5 by Stefan Krah in branch '3.2': Issue #12090: backport 79fcd71d0356 http://hg.python.org/cpython/rev/bb8bb4db2bc5 -- nosy: +python-dev ___ Python tracker

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Tarek Ziadé
Tarek Ziadé added the comment: all good now -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

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

2011-05-25 Thread STINNER Victor
STINNER Victor added the comment: cjk_encreset.patch: Fix multibytecodec.MultibyteIncrementalEncoder.reset(), call encreset() instead of decreset(). Improve also incremental encoder tests: reset the encoder using .encode('', final=True) and check the output. I also prefer to reuse the existin

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

2011-05-25 Thread Ashley Anderson
Ashley Anderson added the comment: Thanks everyone, please take your time if there are more pressing issues; I'll get to work on tests and documentation in the mean time. I agree that '_calc_julian_from_V' is a bit strange. I was mimicking a similar helper function's name ('_calc_julian_from_

[issue12177] re.match raises MemoryError

2011-05-25 Thread Matthew Barnett
Matthew Barnett added the comment: This also raises MemoryError: re.match(r'()*?1', 'a1') but none of these do: re.match(r'()+1', 'a1') re.match(r'()*1', 'a1') -- nosy: +mrabarnett ___ Python tracker

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

2011-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72c89daace57 by Victor Stinner in branch 'default': Issue #12175: FileIO.readall() now only reads the file position and size once. http://hg.python.org/cpython/rev/72c89daace57 New changeset 3c7792ec4547 by Victor Stinner in branch 'default': Issue

[issue3754] cross-compilation support for python build

2011-05-25 Thread Victor Godoy Poluceno
Changes by Victor Godoy Poluceno : -- nosy: -victorpoluceno ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue3754] cross-compilation support for python build

2011-05-25 Thread wrobell
wrobell added the comment: well, looking at the first comment, there is required more than simple read of the manual (i.e. missing config.guess/config.sub). is anything else missing or required? -- ___ Python tracker

[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-25 Thread STINNER Victor
STINNER Victor added the comment: The initial problem (reset() at each call to .encode()) is fixed in Python 2.7, 3.1, 3.2 and 3.3. I opened a new issue, #12171, for the second problem noticed by Armin (decreset vs encreset). -- resolution: -> fixed status: open -> closed _

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

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou 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

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

2011-05-25 Thread STINNER Victor
STINNER Victor 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 to implement "finaliz

[issue12071] test_concurrent_futures.test_context_manager_shutdown() hangs on OpenIndiana

2011-05-25 Thread STINNER Victor
STINNER Victor 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 _

[issue12177] re.match raises MemoryError

2011-05-25 Thread Stefan Krah
Stefan Krah 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 ___

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Roundup Robot
Roundup Robot 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 ___ Pyt

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

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file22108/rawiobase_readall.patch ___ Python tracker ___ ___ Python-bugs-list

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread rpointel
rpointel 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 and "long

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

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file22107/fileio_readall_closed.patch ___ Python tracker ___ ___ Python-bugs-

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

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file22109/bufferedreader_readall.patch ___ Python tracker ___ ___ Python-bugs

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

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file22118/bufferedreader_readall-2.patch ___ Python tracker ___ ___ Python-bugs

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

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file22117/bufferedreader_readall-2.patch ___ Python tracker ___ ___ Python-bu

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

2011-05-25 Thread STINNER Victor
STINNER Victor 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 bufferedreader_readall-2

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

2011-05-25 Thread STINNER Victor
STINNER Victor 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 touch FileIO.readall() if

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread STINNER Victor
STINNER Victor 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 the size of intptr_t and "lo

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Tarek Ziadé
Tarek Ziadé added the comment: looking -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2011-05-25 Thread Alexander Belopolsky
Alexander Belopolsky 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. The patch also needs tests a

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread Charles-François Natali
Charles-François Natali 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 ___

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

2011-05-25 Thread Roundup Robot
Roundup Robot 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': (Merge 3.1) Issue

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

2011-05-25 Thread R. David Murray
R. David Murray 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 easier to do a detailed r

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

2011-05-25 Thread Catalin Iacob
Catalin Iacob 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 ___

[issue12180] test_packaging: failures --without-threads

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

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

2011-05-25 Thread STINNER Victor
STINNER Victor 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". -- nosy: +haypo

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-25 Thread rpointel
New submission from rpointel : 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) ... Program received sign

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

2011-05-25 Thread Roundup Robot
Roundup Robot 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 tracker

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

2011-05-25 Thread Roundup Robot
Roundup Robot 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 '3.2': (Merge 3.1)

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Stefan Krah
New submission from Stefan Krah : 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 status: open title: test_packagi

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

2011-05-25 Thread Nir Aides
Changes by Nir Aides : Removed file: http://bugs.python.org/file22087/cpython-bz2-streams.patch ___ Python tracker ___ ___ Python-bugs-list mai

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

2011-05-25 Thread Nir Aides
Nir Aides 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

[issue12179] Race condition using PyGILState_Ensure on a new thread

2011-05-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +charles-francois.natali, haypo, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list

[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 : 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 noticed a race condition w

[issue3754] cross-compilation support for python build

2011-05-25 Thread Roumen Petrov
Roumen Petrov 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 -- ___ Python tracker

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

2011-05-25 Thread Ashley Anderson
Changes by Ashley Anderson : Removed file: http://bugs.python.org/file22101/12006.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2011-05-25 Thread Ashley Anderson
Ashley Anderson 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 this looks like the

[issue3754] cross-compilation support for python build

2011-05-25 Thread wrobell
wrobell 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

[issue12172] IDLE crashes when I use F5 to run

2011-05-25 Thread Terry J. Reedy
Terry J. Reedy 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 - '. Is F5 bound to anything else? -

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

2011-05-25 Thread Max
Changes by Max : -- type: -> behavior versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2011-05-25 Thread Max
Max 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: [haystack.find(needles[i:i+1]) for i

[issue12165] Nonlocal does not include global; clarify doc

2011-05-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Does nonlocal include global? -> Nonlocal does not include global; clarify doc ___ Python tracker ___ _

[issue12165] Does nonlocal include global?

2011-05-25 Thread Terry J. Reedy
Terry J. Reedy 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 is nested (enclos

[issue12178] csv writer doesn't escape escapechar

2011-05-25 Thread Eric Breck
New submission from Eric Breck : 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 escapechar is

[issue12177] re.match raises MemoryError

2011-05-25 Thread EungJun Yi
New submission from EungJun Yi : 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 >>> re.matc

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-25 Thread Charles-François Natali
Charles-François Natali 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 made optional. Al

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

2011-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-05-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Bytes.index() and bytes.count() do not accept byte ints -> Bytes.index() and bytes.count() should accept byte ints ___ Python tracker ___ _

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

2011-05-25 Thread Terry J. Reedy
Terry J. Reedy 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) total number of o

[issue12165] Does nonlocal include global?

2011-05-25 Thread Raymond Hettinger
Raymond Hettinger 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 ___ Python tracker

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

2011-05-25 Thread Stefan Krah
Stefan Krah added the comment: Thanks for testing. I guess we can close this one then. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Vinay Sajip
Vinay Sajip 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 Pavel Bogdanovic
Pavel Bogdanovic added the comment: yes, the patch mentioned in issue 11715 works. Sorry for crossposting the issue. -- ___ Python tracker ___ __

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou 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. -- ___ Pyt

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou 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 socketserver.TCPServer. I don

[issue12071] test_concurrent_futures.test_context_manager_shutdown() hangs on OpenIndiana

2011-05-25 Thread Charles-François Natali
Charles-François Natali added the comment: Since it's a OOM issue, can we close? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-25 Thread Charles-François Natali
Charles-François Natali 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 tracker

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

2011-05-25 Thread Senthil Kumaran
Senthil Kumaran 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 -> committed/rejected versions: -Pyth

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

2011-05-25 Thread Stefan Krah
Stefan Krah added the comment: This should have been fixed in issue 11715. Could you try to build from a mercurial checkout? -- nosy: +skrah ___ Python tracker ___ _

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

2011-05-25 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2011-05-25 Thread Senthil Kumaran
Senthil Kumaran 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 and also it is not

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

2011-05-25 Thread Roundup Robot
Roundup Robot 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 3e3cd0ed82bb by Senth

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

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen added the comment: Are you on a 64-bit Ubuntu? Could you attach or copy/paste the error message? -- nosy: +petri.lehtinen ___ Python tracker ___ _

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

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, thank you! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue12098] Child process running as debug on Windows

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou 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 command-line fla

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

2011-05-25 Thread Pavel Bogdanovic
New submission from Pavel Bogdanovic : 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, '/usr/lib/i386-linux-gnu') and it c

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

2011-05-25 Thread Roundup Robot
Roundup Robot 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 ___

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen 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 ago, I don't

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Vinay Sajip
Vinay Sajip added the comment: > Petri Lehtinen 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 syslog module has had thread-safe

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen 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

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Carl Crowder
Carl Crowder 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 tracker

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread R. David Murray
R. David Murray 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 NULs. But there shou

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

2011-05-25 Thread Antoine Pitrou
Antoine Pitrou 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) +re

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

2011-05-25 Thread R. David Murray
R. David Murray 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 __

  1   2   >