[issue12634] Random Remarks in class documentation

2011-07-24 Thread Ashutosh Swain
New submission from Ashutosh Swain : URL: http://docs.python.org/tutorial/classes.html section: 9.4 Random Remarks The first sentense is bit confusing: "Data attributes override method attributes with the same name" Is it possible to change the sentense something like this: "Data attributes se

[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

2011-07-24 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a patch which tests all combinations and includes a testcase. -- nosy: +pitrou Added file: http://bugs.python.org/file22747/i12607_v2.patch ___ Python tracker

[issue12102] mmap requires file to be synced

2011-07-24 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks! -- assignee: -> rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker

[issue12102] mmap requires file to be synced

2011-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset e75715f27ce7 by Ross Lagerwall in branch '2.7': Issue #12102: Document that buffered files must be flushed before being used http://hg.python.org/cpython/rev/e75715f27ce7 -- ___ Python tracker

[issue12102] mmap requires file to be synced

2011-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 198627bbe242 by Ross Lagerwall in branch '3.2': Issue #12102: Document that buffered files must be flushed before being used http://hg.python.org/cpython/rev/198627bbe242 New changeset 4898b14dcd69 by Ross Lagerwall in branch 'default': Issue #1210

[issue12633] sys.modules gets special treatment

2011-07-24 Thread Eric Snow
New submission from Eric Snow : The sys.modules dict is a special object. It is the only variable of the CPython interpreter object that is exposed in the sys module[1]. Everything else in sys lives in the module. However, the modules dict lives in the interpreter object and is bound to the

[issue12632] Windows GPF with Code Page 65001

2011-07-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12632] Windows GPF with Code Page 65001

2011-07-24 Thread Bruce Ferris
Changes by Bruce Ferris : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12632] Windows GPF with Code Page 65001

2011-07-24 Thread Bruce Ferris
New submission from Bruce Ferris : The following scenario GPFs on Windows Vista using cmd.exe... D:\>python Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> ^Z D:\>chcp 6

[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-07-24 Thread py.user
Changes by py.user : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-07-24 Thread py.user
New submission from py.user : 4.6.4 Mutable Sequence Types | s.remove(x) | same as del s[s.index(x)] | >>> b = bytearray() >>> b.extend(range(1, 6)) >>> b bytearray(b'\x01\x02\x03\x04\x05') >>> b.remove(2) >>> del b[b.index(2)] Traceback (most recent call last): File "", line 1, in Type

[issue12576] urlib.request fails to open some sites

2011-07-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: I propose the attached patch as fix to this issue. All it does is, moves the code of getting http response to the finally block of the http request. It closes the sockets if the getting the response fails for some reason, otherwise it proceeds normally. P

[issue12618] py_compile cannot create files in current directory

2011-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: It's rare to receive fixes from Windows users that don't have a dev environment set up (i.e. they just edited their stdlib code in place, or copied it and created a modified version). Thanks for persisting in the face of invalid assumptions on our part. --

[issue12448] smtplib's __main__ doesn't flush when prompting

2011-07-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looks good. Thx. -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python

[issue12630] pydoc does not remove '#'-s from doc comments

2011-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: The best solution is to modify the offending code to use real docstrings. Failing that, a simple explicit "'\n'.join(line.lstrip('#' for line in comment.split('\n'))" (i.e. not as part of pydoc) will handle most cases. Anything more sophisticated would need to

[issue12630] pydoc does not remove '#'-s from doc comments

2011-07-24 Thread tkiss80
New submission from tkiss80 : If an entity does not have a docstring, pydoc.getdoc() reads the comment associated with that entity and uses that as the source of documentation. However, inspect.getcomments() returns the raw comment with the comment signs ('#') in it, thus the resulting documen

[issue12626] run test cases based on a glob filter

2011-07-24 Thread Eric Snow
Changes by Eric Snow : -- nosy: +ericsnow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I mentioned pipes because half of the subprocess chapter, it seems, talks about them. ASo I got the mis-impression that they are special for subprocess-started processes. But if the subprocess gets the args it needs to connect to a socket, it should not care

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-24 Thread Éric Araujo
Éric Araujo added the comment: higery’s message was this: > I have already set the option as you said earlier, but how to > 'push' it to remote repository? It's just a configuration file under > the .hg directory... I was mistaken; setting the diff git option is important if you generate patc

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-24 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22744/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10141] SocketCan support

2011-07-24 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks for updating your patch. I've done a review, available here: http://bugs.python.org/review/10141/show -- ___ Python tracker ___

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-07-24 Thread Charles-François Natali
Changes by Charles-François Natali : -- components: +Library (Lib) -IO stage: -> needs patch type: -> behavior versions: +Python 3.2, Python 3.3 ___ Python tracker ___

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-07-24 Thread Charles-François Natali
Charles-François Natali added the comment: Hello, > Actually the class asyncore.dispatcher_with_send do not handle properly > disconnection. When the endpoint shutdown his sending part of the socket, > but keep the socket open in reading, the current implementation of > dispatcher_with_send wil

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Charles-François Natali
Charles-François Natali added the comment: Patch committed. Stefan, thanks for the report and the patch! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a095cbed24c3 by Charles-François Natali in branch 'default': Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling. http://hg.python.org/cpython/rev/a095cbed24c3 -- ___ Python tracker

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1fdad36ac838 by Charles-François Natali in branch '3.2': Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling. http://hg.python.org/cpython/rev/1fdad36ac838 -- ___ Python tracker

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 33be4896003a by Charles-François Natali in branch '2.7': Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling. http://hg.python.org/cpython/rev/33be4896003a -- nosy: +python-dev ___ Pyth

[issue12448] smtplib's __main__ doesn't flush when prompting

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10731] UnicodeDecodeError in OS X tkinter when binding to

2011-07-24 Thread Marc Culler
Marc Culler added the comment: I am running OSX 10.5.8 on this macbook. The Tcl/Tk package on the system is ActiveState Tcl/Tk 8.4.19. I just installed Python 3.2 (r32:88452, Feb 20 2011, 10:19:59) from http://www.python.org/getit/releases/3.2/ and I am still seeing this bug. It does not o

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-07-24 Thread Kevin Stock
New submission from Kevin Stock : Given the input '', HTMLParser only detects the opening x tag, and then stops parsing. Ideally this should behave like the case '' which raises an error and then can continue parsing the close x tag. -- components: Library (Lib) files: test.py messages

[issue11869] Include information about the bug tracker Rietveld code review tool

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11694] xdrlib raises ConversionError in inconsistent way

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- stage: -> test needed versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue11708] argparse: suggestion for formatting optional positional args

2011-07-24 Thread Petri Lehtinen
Petri Lehtinen added the comment: I think this is a good idea, and seems to me more like a bug than a feature request. -- stage: -> needs patch type: feature request -> versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-07-24 Thread Petri Lehtinen
Petri Lehtinen added the comment: ysj.ray: As you're on Debian, the real cause of this might be issue 11715. The Modules/Setup.dist line for zlib is commented out, so it's only an example of how to enable zlib if it's not found automatically. Can you try again now that issue 11715 has been f

[issue12174] Multiprocessing logging levels unclear

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +needs review stage: -> patch review versions: +Python 3.2 ___ Python tracker ___ ___ Python

[issue12063] tokenize module appears to treat unterminated single and double-quoted strings inconsistently

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12294] multiprocessing.Pool: Need a way to find out if work are finished.

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11784] multiprocessing.Process.join: timeout argument doesn't specify time unit.

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

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

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-24 Thread higery
higery added the comment: remote repository? It's just a configuration file under the .hg directory... -- Added file: http://bugs.python.org/file22744/unnamed ___ Python tracker ___

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-24 Thread Éric Araujo
Éric Araujo added the comment: You haven’t set the git option for the diff commands in your config file. -- ___ Python tracker ___ __

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2011-07-24 Thread Éric Araujo
Éric Araujo added the comment: Some scripts are installed by setup.py I’ll find time to read the latest version of the PEP in the coming days. -- nosy: +eric.araujo ___ Python tracker

[issue12626] run test cases based on a glob filter

2011-07-24 Thread Michael Foord
Michael Foord added the comment: I love the functionality. Running individual tests (or groups of tests) with unittest is a *pain*. I had hoped to solve this through unittest extensions, but this is taking me longer to get to than I had hoped. So I would like to add this to unittest, but obvi

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Charles-François Natali
Charles-François Natali added the comment: The patch looks good to me. As for the other failures, it would probably be interesting to open a separate issue, no? -- ___ Python tracker __

[issue12625] sporadic test_unittest failure

2011-07-24 Thread Charles-François Natali
Charles-François Natali added the comment: > No, it's a feature of the new GIL. When I look at 2.7's code, I see something different - _Py_Ticker is reset in Py_AddPendingCall(): int Py_AddPendingCall(int (*func)(void *), void *arg) { [...] /* signal main loop */ _Py_Ticker = 0; p

Re: [issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-24 Thread Senthil Kumaran
Okay, got it. Thanks. I was a subtle one within the description. I missed it in the first place. ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen : Added file: http://bugs.python.org/file22742/2.7.txt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen : Added file: http://bugs.python.org/file22741/3.2.txt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-24 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attached outputs of the following commands in the corresponding head revisions (from yesterday, as hg.python.org seems to be down today): 3.3: for x in {bytes,bytearray}.{find,rfind} str.{find,rfind}; do echo === $x ===; ./python -c "help($x)" | cat; echo; d