[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse
New submission from Jeremy Hylton jer...@alum.mit.edu: import io import urllib.request f_bytes = urllib.request.urlopen(http://www.python.org/;) f_string = io.TextIOWrapper(f_bytes, iso-8859-1) print(f_string.read()) -- components: Library (Lib) messages: 84840 nosy: jhylton severity: normal status: open title: TextIOWrapper fails with SystemError when reading HTTPResponse versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5628 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue970783] PyObject_GenericGetAttr is undocumented
Georg Brandl ge...@python.org added the comment: Documented in r70842.c -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue970783 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1569040] Speed up using + for string concatenation
Larry Hastings la...@hastings.org added the comment: Thanks for pointing that out! I think I found it; the discussion is actually about lazy string slices, and it starts here: http://mail.python.org/pipermail/python-dev/2000-February/002317.html If I were to resubmit lazy string slices (which wouldn't be in this patch), the slices would only have weakrefs on the original string and render when the original string was destroyed. That addresses some of the concerns about lazy string slices, though they are still uncomfortably (internally) complex. As for the second concern: the official way is to use the accessors, and CPython consistently uses them itself. I don't know what the right answer is. We *could* make PyStringObject a private type to force the issue, though that would add overhead. (Well, PyUnicodeObject really, this would never be accepted in the 2.x series at this point.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1569040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5629] PEP 0 date and revision not being set
New submission from Brett Cannon br...@python.org: The date and revision data for PEP 0 is not being set since it is trying to use svn substitution when the PEP itself is not in svn. -- components: None messages: 84843 nosy: benjamin.peterson, brett.cannon priority: low severity: normal stage: needs patch status: open title: PEP 0 date and revision not being set type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue992389] attribute error after non-from import
Torsten Bronger bron...@physik.rwth-aachen.de added the comment: Maybe it's better to leave it open, waiting for someone to pick it up, even if this is some time in the future? In my opinion, this is suprising behaviour without an actual rationale, and a current implementation feature. I'd be a pitty for me to see it becoming an official part of the language. What bothers me most is that from . import moduleX doesn't work but import package.moduleX does work. So the circular import itself works without problems, however, not with a handy identifier. This is would be an odd asymmetry, I think. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue992389 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1664] nntplib is not IPv6-capable
Derek Morr derekm...@psu.edu added the comment: Any chance of this being applied soon? It's been sitting in the bugtracker for over a year now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL
Changes by Derek Morr derekm...@psu.edu: -- nosy: +dmorr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5111 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1664] nntplib is not IPv6-capable
STINNER Victor victor.stin...@haypocalc.com added the comment: @dmorr: It would be faster if nntplib has some tests :-/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1664] nntplib is not IPv6-capable
Derek Morr derekm...@psu.edu added the comment: I'm confused by that. In order to apply a 3 line patch (which replaces one standard library function with another), you want an entire test suite written for nntplib? If we're willing to accept that nttplib works reasonably well now, why is the testsuite necessary? socket.create_connection() is already used in several other modules. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5400] patches for multiprocessing module on NetBSD
Jesse Noller jnol...@gmail.com added the comment: Applied in r70849 python-trunk, merging to py3k and 26maint -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5400 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1161031] Neverending warnings from asyncore
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: You are right. Handling OOB data is within the exceptional condition that the select document specifies. I've added a check for error conditions within handle_expt_event(), which induces a handle_close() on discovery of an error, handle_expt() otherwise. One thing to consider is that when there is OOB data, and when handle_expt() isn't overridden, we will get churn because that data will never be read from the socket. I'm thinking about tossing a handle_close() as part of the default handle_expt() call. Attached is an updated patch without the handle_close() in handle_expt(). -- Added file: http://bugs.python.org/file13517/async_no_warn.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1161031 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1161031] Neverending warnings from asyncore
Changes by Josiah Carlson josiahcarl...@users.sourceforge.net: Removed file: http://bugs.python.org/file13516/async_no_warn.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1161031 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1370380] async_chat.push() can trigger handle_error(). undocumented.
Changes by Josiah Carlson josiahcarl...@users.sourceforge.net: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1370380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5627] PyDict_SetItemString() fails when the second argument is null
Euler Taveira de Oliveira eu...@timbira.com added the comment: It seems PyDict_DelItemString() and PyDict_SetItem() suffer from the same disease. :( Both use assert() to detect a null pointer but fail to prevent it. As I stated in the previous comment, maybe the right fix is to replace assert() with the 'if (foo == NULL) return whatever'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue837577] cryptic os.spawnvpe() return code
Georg Brandl ge...@python.org added the comment: Documented in r70851. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue837577 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5245] PyRun_SimpleStringFlags() documentation
Georg Brandl ge...@python.org added the comment: Documented in r70855. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5227] Py_Main() does not return on sys.exit()
Georg Brandl ge...@python.org added the comment: Documented in r70857. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5227 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1161031] Neverending warnings from asyncore
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment: Ah, you're right. I hadn't thought about the exceptional condition being used to signal anything besides OOB. Looks really good to me. s/close/_exception/ in the select-based poll(), and i don't have anything more to add. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1161031 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5387] mmap.move crashes by integer overflow
Jack Diederich jackd...@gmail.com added the comment: running a fresh 2.7 trunk a mmap.mmap object at 0xb7d9f9c0 a.move(-1, -1, -1 ... ) Segmentation fault j...@sprat:~/src/python-rw$ ./python Python 2.7a0 (trunk:70847M, Mar 31 2009, 14:14:31) [GCC 4.3.2] on linux2 Type help, copyright, credits or license for more information. import mmap a = mmap.mmap(-1, 1000) a.move(0, 0, 0) a.move(-1, -1, 1) Segmentation fault -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5241] Missing flags in the Regex howto
Georg Brandl ge...@python.org added the comment: Fixed in r70859, r70861. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)
John Ehresman j...@wingware.com added the comment: Attached is a patch, though I have mixed feelings about it. The OS error can still occur even if a smaller amount is written in each WriteFile call; I think an internal OS buffer fills up and the error is returned if that buffer is full because the other process hasn't read yet. The patch just ignores ERROR_NO_SYSTEM_RESOURCES and writes again. I don't know though if ERROR_NO_SYSTEM_RESOURCES can mean something else is wrong and the write will never succeed. The message is also broken up into 32K parts and a recv_bytes on the other end must be called multiple times to read it all. The patch is one option. Another might be to let the application decide to continue or not and essentially treat the pipes as nonblocking. -- keywords: +patch Added file: http://bugs.python.org/file13518/win32_pipe.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3551 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1717] Get rid of more references to __cmp__
Georg Brandl ge...@python.org added the comment: Documentation updated in r70863. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1717 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5387] mmap.move crashes by integer overflow
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Yes, you are right... My patch was not correct neigher. :-( Here is revised patch. -- resolution: fixed - status: closed - open Added file: http://bugs.python.org/file13519/fix_mmap_move_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2578] additional unittest type equality methods
Gregory P. Smith g...@krypto.org added the comment: def's of the methods changed to be the official assert* names in trunk r70864. unittests added to confirm that all known method names continue to work. Guido - If we fix 2to3 to fixup unittests that use the fail* method names to use the assert* names would you be okay with adding the deprecation warning in 3.1 or should it really wait for 3.2 with a removal in 3.3? I'm fine with leaving the deprecation out for 2.7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2578 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5604] imp.find_module() mixes UTF8 and MBCS
Andrew Svetlov andrew.svet...@gmail.com added the comment: Continuing work over import.c I fixed bad error message encoding in generated ImportError exception. Tests for checking in case of non-ascii characters added. -- Added file: http://bugs.python.org/file13520/import.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5604 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4882] Behavior of backreferences to named groups in regular expressions unclear
Georg Brandl ge...@python.org added the comment: Committed a similar patch in r70866. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5630] Update CObject API so it is safe and regular
New submission from Larry Hastings la...@hastings.org: The CObject API has two flaws. First, there is no usable type safety mechanism. You can store a void *object, and a void *description. There is no established schema for the description; it could be an integer cast to a pointer, or it could point to memory of any configuration, or it could be NULL. Thus users of the CObject API generally ignore it--thus working without any type safety whatsoever. A programmer could crash the interpreter from pure Python by mixing and matching CObjects from different modules (e.g. give curses a CObject from _ctypes). Second, the destructor callback is defined as taking *either* one *or* two parameters, depending on whether the descr pointer is non-NULL. One can debate the finer points of what is and isn't defined behavior in C, but at its heart this is a sloppy API. MvL and I discussed this last night and decided to float a revision of the API. I wrote the patch, though, so don't blame Martin if you don't like my specific approach. The color of this particular bike shed is: * The PyCObject is now a private data structure; you must use accessors. I added accessors for all the members. * The constructors and the main accessor (PyCObject_AsVoidPtr) now all *require* a const char *type parameter, which must be a non-NULL C string of non-zero length. If you call that accessor and the type is invalid *or doesn't match,* it fails. * The destructor now takes the PyObject *, not the PyCObject *. You must use accessors to get your hands on the data inside to free it. Yes, you can easily skip around the matching type restriction by calling PyCObject_AsVoidPtr(cobj, PyCObject_GetType(cobj)). The point of my API changes is to *encourage* correct use. The attached patch was written py3k/trunk r70718. It compiles with no new warnings/errors and doesn't seem to cause any new failures in the regression test. Note: this patch is not complete; I fixed all the .c and .h files, but I have yet to update the documentation. I figure I don't want to put the effort in until the dust settles. -- components: Interpreter Core files: cobject.diff keywords: patch messages: 84864 nosy: lhastings severity: normal status: open title: Update CObject API so it is safe and regular versions: Python 3.1 Added file: http://bugs.python.org/file13521/cobject.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5630 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5604] imp.find_module() mixes UTF8 and MBCS
Andrew Svetlov andrew.svet...@gmail.com added the comment: Martin von Loewis added to nosy list -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5604 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5241] Missing flags in the Regex howto
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2578] additional unittest type equality methods
Michael Foord mich...@voidspace.org.uk added the comment: If the deprecation causes noise people can just turn off the deprecation warning surely? Especially as transforming a codebase really is as simple as a global search and replace. Personally I'd prefer earlier deprecation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2578 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5623] test_fdopen fails with vs2005, release build on Windows 2000
Martin v. Löwis mar...@v.loewis.de added the comment: We could also simply redistribute the MSVCRT in python/bin, as we are allowed to. We *do* distribute the CRT with Python, and it works just fine. The report is about VS 2005 -- title: test_fdopen fails with vs2005, release build on Windows 2000 - test_fdopen fails with vs2005, release build on Windows 2000 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1096310] sys.__stdout__ doco isn't discouraging enough
Georg Brandl ge...@python.org added the comment: Amended documentation in r70867. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1096310 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5190] optparse doex not export make_option
Georg Brandl ge...@python.org added the comment: As commented in optparse.py, make_option is the preferred way to create options, so I've added it to __all__ in r70868. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5190 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5228] multiprocessing not compatible with functools.partial
Jesse Noller jnol...@gmail.com added the comment: I agree that this is a nice feature, however it requires adding a getstate/setstate within the functools C code. I would need a patch which does this, and adds tests to the functools/pickle test suite for this. Also, the feature will only be accepted for py3k (3.1) currently. Features such as this will not be backported to the 2.x branch -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5228 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5228] multiprocessing not compatible with functools.partial
Jesse Noller jnol...@gmail.com added the comment: Jack offered to take a peek -- assignee: jnoller - jackdied nosy: +jackdied ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5228 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5391] mmap: read_byte/write_byte and object type
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- dependencies: +only accept byte for getarg('c') and unicode for getarg('C') ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5410] msvcrt bytes cleanup
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- dependencies: +only accept byte for getarg('c') and unicode for getarg('C') ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5503] multiprocessing/connection.py wrong pipe name under win32
Jesse Noller jnol...@gmail.com added the comment: I need to know what the exception/error is, given multiprocessing is working fine on WIN32. Setting status to pending - without a test case that shows the issue or more information, I can not move forward with this. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5499] only accept byte for getarg('c') and unicode for getarg('C')
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5499] only accept byte for getarg('c') and unicode for getarg('C')
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Note: #5391 and #5410 are depends on this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4411] __mro__ documentation
Georg Brandl ge...@python.org added the comment: Documented in r70870. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4411 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5618] PyMemberDef type T_UBYTE incorrectly documtented
Georg Brandl ge...@python.org added the comment: Fixed in r70871. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5618 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5387] mmap.move crashes by integer overflow
Jack Diederich jackd...@gmail.com added the comment: Looks good. Attached is a more thorough test_mmap.py patch that would have found the bugs in both our patches ;) -- resolution: - fixed status: open - closed Added file: http://bugs.python.org/file13522/test_mmap_harder.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1681974] mkdtemp fails on Windows if username has non-ASCII character
Georg Brandl ge...@python.org added the comment: Why are you using a unicode string as your temp directory prefix? Does it raise something different if you don't? -- assignee: - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1681974 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1161031] Neverending warnings from asyncore
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: Fixed the close() call and committed to trunk. Python 2.6 tests pass with the new version of the library. Calling it good :) . -- keywords: -needs review resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1161031 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1243678] httplib gzip support
Georg Brandl ge...@python.org added the comment: Sounds reasonable. -- resolution: - duplicate status: open - closed superseder: - [gzip] Performance for small reads and fix seek problem ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1243678 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1590068] Error piping output between scripts on Windows
Georg Brandl ge...@python.org added the comment: Duplicate of #1675026. -- nosy: +georg.brandl resolution: - duplicate status: open - closed superseder: - Redirect cause invalid descriptor error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1590068 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5208] urllib2.build_opener(
Georg Brandl ge...@python.org added the comment: Closing as invalid. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5208 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5510] patches for Modules/socketmodule.c for NetBSD
Changes by Piotr Meyer an...@smutek.pl: -- nosy: +aniou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue808164] socket.close() doesn't play well with __del__
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Daniel, _closedsocket is a global, so it isn't safe to be used within __del__ during shutdown. In the py3k branch, socket.__del__ calls socket._real_close which references the global _socket. So it's not safe their, either. -- nosy: +stutzbach versions: +Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue808164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5631] Distutils upload command does not show up in --help-commands output.
New submission from Martin Blais bl...@furius.ca: The output of running python setup.py --help-commands does not include the upload command. -- components: Library (Lib) messages: 84884 nosy: blais severity: normal status: open title: Distutils upload command does not show up in --help-commands output. versions: Python 2.4, Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5631 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2578] additional unittest type equality methods
Gregory P. Smith g...@krypto.org added the comment: trunk r70878 has the code issue an actual PendingDeprecationWarning for the fail* methods and documents them as deprecated. If anyone has a better idea of a better way to state those deprecations in the docs, feel free to jump in here. I was unaware of the PendingDeprecationWarning (ignored by default) prior to this. I think that is what Guido was suggesting. The question of if we can do an actual DeprecationWarning for 3.1 or not still stands. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2578 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)
Mike Coleman m...@users.sourceforge.net added the comment: Just to confirm, the real problem here was that tiny packets were being sent out by default, and the obvious fix (altering ac_out_buffer_size) didn't work. Looking at the code, it appears that the change by Josiah Carlson (#64062) causes ac_out_buffer_size (which currently defaults to 4096) to be obeyed. Should that 4096 be larger? MTU for jumbo packets is ~9000, I think, plus there's less system call overhead for larger values. (I use 62000 for my app, but I haven't studied alternatives lately.) Also, there are still two constants '512' in asyncore/asynchat. Shouldn't these be changed to match the 4096 default? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5387] mmap.move crashes by integer overflow
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I've committed your test with some modification. (r70879) Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: In my experience I noticed that 65536 is a pretty good compromise, at least when moving big amounts of data: http://code.google.com/p/pyftpdlib/issues/detail?id=94 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2266] Missing documentation about old/new-style classes
Georg Brandl ge...@python.org added the comment: The new docs already have glossary entries that point to the datamodel doc. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2266 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5631] Distutils upload command does not show up in --help-commands output.
Maksim Kozyarchuk maksim_kozyarc...@yahoo.com added the comment: adding upload to __init__.py of commands package fixes this Patch on Appshot. http://codereview.appspot.com/32087/show -- nosy: +Kozyarchuk versions: +Python 3.1 -Python 2.4, Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5631 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1714773] python throws an error when unpacking bz2 file
Georg Brandl ge...@python.org added the comment: This was apparently fixed sometime in trunk. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1714773 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1161031] Neverending warnings from asyncore
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: I still get some occasional EBADF failures when running pyftpdlib test suite by using poll(). I think that it makes more sense moving the: if flags (select.POLLHUP | select.POLLERR | select.POLLNVAL): obj.handle_close() ...lines at the top and return if handle_close() is called, as I did in the patch attached to issue 4501, which is: if flags (select.POLLHUP | select.POLLERR | select.POLLNVAL): obj.handle_close() else: if flags select.POLLIN: obj.handle_read_event() if flags select.POLLOUT: obj.handle_write_event() if flags select.POLLPRI: obj.handle_expt_event() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1161031 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1161031] Neverending warnings from asyncore
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: ...after all no read/write methods should be called after the socket has been closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1161031 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5616] Distutils 2to3 support doesn't have the doctest_only flag.
Lennart Regebro rege...@gmail.com added the comment: Also, the run_2to3 method takes the explicit parameter, but does not pass it into the DistutilsRefactoringTool. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5616 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674032] Make threading.Event().wait(timeout=3) return isSet
Georg Brandl ge...@python.org added the comment: Added a pony test and committed in r70883. -- assignee: tim_one - georg.brandl resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1674032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674555] Python 2.5 testsuite sys.path contains system dirs
Changes by David Christian d...@rpath.com: -- nosy: +dugan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1674555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue978604] wait_variable hangs at exit
Guilherme Polo ggp...@gmail.com added the comment: You can also reproduce it with a shorter test that doesn't need any interaction: import Tkinter root = Tkinter.Tk() waitvar = Tkinter.BooleanVar() root.after(50, lambda: waitvar.set(True)) root.after(10, root.destroy) root.wait_variable(waitvar) root.mainloop() Verifying. -- nosy: +gpolo versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue978604 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1530012] Literal strings use BS as octal escape character
Georg Brandl ge...@python.org added the comment: Swapped the sections in r70893. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1530012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1711605] CGIHttpServer leaves traces of previous requests in env
Changes by David Christian d...@rpath.com: -- nosy: +dugan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1711605 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5623] test_fdopen fails with vs2005, release build on Windows 2000
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The problem with Windows 2000 is that it is not enough to distribute the CRT. For example, I am sure that a few months ago the version ending with .1433 was not present on my machine; the version in the system32 directory was .762 (the one shipped with vs2005 sp1). Trying several sizes is a good idea IMO, and is not likely to segfault if we only try with a low fd (1 or 2). I'll try to come with a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1651995] sgmllib _convert_ref UnicodeDecodeError exception, new in 2.5
Daniel Darabos darabos.dan...@gmail.com added the comment: Attached patch against SVN trunk including unittest. The test is not great, because it practically only checks if the patch was applied and not the real-life situation where the exception occurs, but I'm not too handy with sgmllib (I only encountered this problem through BeautifulSoup). -- Added file: http://bugs.python.org/file13523/issue1651995.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1651995 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5603] Garbled sentence in documentation of urllib.request.urlopen
Georg Brandl ge...@python.org added the comment: Already fixed in dev docs. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5603 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5632] Bug - threading.currentThread().ident returns None in main thread
New submission from Skip Montanaro s...@pobox.com: The main thread has an ident, but the threading module doesn't recognize that fact. I shouldn't have to start the main thread. Example: % python Python 2.7a0 (trunk:70084, Feb 28 2009, 20:51:51) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type help, copyright, credits or license for more information. import threading import thread print threading.currentThread(), threading.currentThread().ident, thread.get_ident() _MainThread(MainThread, started) None -1602627808 % python3.1 Python 3.1a0 (py3k:70084M, Feb 28 2009, 20:46:48) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type help, copyright, credits or license for more information. import threading print (threading.current_thread(), threading.current_thread().ident)_MainThread(MainThread, started) None -- components: Library (Lib) messages: 84901 nosy: skip.montanaro severity: normal status: open title: Bug - threading.currentThread().ident returns None in main thread type: behavior versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5632 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5633] timeit breaks when the statment is a string and the setup is not
New submission from Tim Driscoll tdris...@gmail.com: The patch and test is here: http://codereview.appspot.com/28161/show There were no tests so i added a few of them. The one that breaks without the patch to timeit is: test_setup_is_called_when_the_statment_is_string_and_the_setup_is_not() (sorry for the long name) Even if the patch is no good perhaps the test could be useful. -- components: Library (Lib) messages: 84902 nosy: tdriscol severity: normal status: open title: timeit breaks when the statment is a string and the setup is not type: behavior versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5602] Slight punctuation problem in documentation of urllib.request.urlopen
Georg Brandl ge...@python.org added the comment: Actually, that style is fine as well and even indicates a bit better that you don't have to give data if you give timeout. We'll likely try to get the style of writing optional parameters more consistent in the future. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5602 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5633] timeit breaks when the statment is a string and the setup is not
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5563] Document bdist_msi
Georg Brandl ge...@python.org added the comment: I'll wait for a patch from you, Steven. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5563 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1641] asyncore delayed calls feature
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: I fixed some bugs with my patch, merged in Giampaolo's tests and documentation, and altered the API to match Giampaolo's API almost completely. This new version differs from Giampaolo's patch only in underlying implementation; this uses a modified sched.py, and doesn't have a standard execute outstanding methods function built into asyncore (asynchat.scheduled_tasks.run(time.time()) is sufficient). The major difference is that the modifications to sched.py offer a fast cancel/reschedule operation, which Giampaolo's lacks. -- Added file: http://bugs.python.org/file13524/scheduler.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1641 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1641] asyncore delayed calls feature
Changes by Josiah Carlson josiahcarl...@users.sourceforge.net: Removed file: http://bugs.python.org/file13238/scheduler_partial.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1641 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5601] webbrowser doesn't just open browsers
Georg Brandl ge...@python.org added the comment: I'm inclined not to document that. webbrowser is meant for URLs, the behavior if you call it with file names is undefined. -- resolution: - wont fix status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5601 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5633] fix for timeit when the statment is a string and the setup is not (and tests)
Changes by Tim Driscoll tdris...@gmail.com: -- title: timeit breaks when the statment is a string and the setup is not - fix for timeit when the statment is a string and the setup is not (and tests) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5337] Scanner class in re module undocumented
Georg Brandl ge...@python.org added the comment: OK, so we'll wait for that. -- dependencies: +Regexp 2.7 (modifications to current re 2.2.2) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5598] paths argument missing in DocFileSuite documentation
Georg Brandl ge...@python.org added the comment: Fixed in r70896. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5598 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5632] Bug - threading.currentThread().ident returns None in main thread
Skip Montanaro s...@pobox.com added the comment: Here's a test case which reveals the problem as I see it. -- keywords: +patch stage: - needs patch Added file: http://bugs.python.org/file13525/threading.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5632 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5633] fix for timeit when the statment is a string and the setup is not (and tests)
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Georg, this was your patch: http://bugs.python.org/issue1533909 I don't think it should have been accepted so readily. It is not harmonious with all of the other proposals for improving timeit. No that it is out in the wild, I think all you can do is fix-up the docs. Also, the inner template function should have a func=func argument so that the func() call is localized. This affects the timings. Part of the concept of the module is to make the surrounding timing apparatus be as light-weight as possible so that the timings reflect the thing being timed without being obscured by the overhead of the timing module itself. -- assignee: rhettinger - georg.brandl nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2953] _zip_directory_cache untested and undocumented
Georg Brandl ge...@python.org added the comment: That's fortunate, because I can just reassign this to him :) -- assignee: georg.brandl - brett.cannon nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue909005] asyncore fixes and improvements
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment: not the handle_close_event() replacements, stick with handle_close(). I'm guessing this has to do with breaking the abstraction? I can't think of a situation where handle_close() is called, but close() should not be called. If indeed so, i feel it's weird to require the user remember to call close(), and it should IMHO be done automatically. (I feel like i'm bitten by this each and every time i replace the default handle_close().. :) If the naming of handle_close_event() is not appropriate (as it sounds like a layer 1 method), how about adding do_close(), and making other places call that? def do_close(self): self.close() self.handle_close() -- nosy: +alexer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue909005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5619] Pass MS CRT debug flags into subprocesses
Andrew Svetlov andrew.svet...@gmail.com added the comment: Patch for multiprocessing added. Using with regrtest -n option now allows to pass all regression test stack without any popup assertion dialog on Windows box. Probably have to be backported to Python 2.7 branch -- components: +Tests versions: +Python 2.7, Python 3.1 Added file: http://bugs.python.org/file13526/_multiprocessing.patch.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5619 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5337] Scanner class in re module undocumented
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Whether this should be exposed is up to effbot. It's his code. He knows its limitations and he made the original decision to leave it undocumented. -- assignee: benjamin.peterson - effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1608921] PyThread_release_lock with pthreads munges errno
Changes by David Christian d...@rpath.com: -- nosy: +dugan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1608921 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5634] cPickle error in case of recursion limit
New submission from vadim suvorov zzpythontrac...@stelary.com: In case of heavily recursive data structure cPickle produces intermittent random exceptions (AttributeError, etc.). The expected is RuntimeError: ('maximum recursion depth exceeded in ...'). In addition, the behavior differs for classic/new classes. The reason: the cPickle needs several optional methods (__getstate__, __getinitargs__) for each object. In their absence an AttributeError is generated. It is normally suppressed, but suppression itself causes recursion. The error in exception processing leads to fancy errors. The proposed solution: temporary (for call of PyErr_ExceptionMatches()) increase recursion limit. -- files: !!! messages: 84915 nosy: bad severity: normal status: open title: cPickle error in case of recursion limit type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file13527/!!! ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5634 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue909005] asyncore fixes and improvements
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment: I just remembered that level 1 function handle_connect_event() is also called from level 2, so i actually can't see why the close helper could not be called handle_close_event(). Is there some other reason besides breaking abstraction to not introduce it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue909005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue909005] asyncore fixes and improvements
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: I can't think of a situation where handle_close() is called, but close() should not be called. If indeed so, i feel it's weird to require the user remember to call close(), and it should IMHO be done automatically. It's already done automatically if you don't override handle_close. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue909005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5632] Bug - threading.currentThread().ident returns None in main thread
Benjamin Peterson benja...@python.org added the comment: Fixed in r70897. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5632 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue909005] asyncore fixes and improvements
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment: It's already done automatically if you don't override handle_close. Sorry, i meant the case where you need to override it. If we always need to call close() from handle_close(), it feels redundant having to remember to add it, when it could be done automatically instead. Why not do it automatically, if every overriding user must otherwise always remember to add it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue909005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3786] _curses, _curses_panel _multiprocessing can't be build in 2.6b3 w/ SunStudio 12
Tim Mooney enchan...@users.sourceforge.net added the comment: Solaris has both traditional System V curses and an XPG4-compatible curses that does include mvwchgat. The traditional system V curses is the default, for backward compatibility. If you want the XPG4 compatible curses, you need to make sure -I/usr/xpg4/include and -L/usr/xpg4/lib -R/usr/xpg4/lib (or their 64-bit equivalents) are in CPPFLAGS/CFLAGS/LDFLAGS so that the XPG4 curses is discovered. See the man page for mvwchgat(3XCURSES) on Solaris for more info. The difficulty for Python is that it also tries to build a readline module, and the libreadline was more than likely linked against the default system V curses. That means that if you add the -I and -L/-R flags to get XPG4 curses for all of the Python build, you'll probably get a link failure or worse when building the readline module. There are at least two ways around this: - rebuild readline to use XPG4 curses, and then rebuild every single application that links against readline. Then build Python, using the -I and -L/-R flags to get XPG4 curses for the entire Python build. - modify the setup.py for the _curses module so that logic is added for Solaris to look for the XPG4 curses only during the build of the _curses module. There is, however, no XPG4 panels library, since panels was not part of the XPG4 specification. That means that with the appropriate Python code in setup.py it would be possible to build _curses against XPG4 curses lib, but _curses_panel either couldn't be built or would have to somehow be linked against the standard (system V) panel library and the standard curses library. -- nosy: +enchanter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3786 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue978604] wait_variable hangs at exit
Guilherme Polo ggp...@gmail.com added the comment: Patch attached, but didn't test it at all. This is a trick so it doesn't get committed without a test (hopefully) :) -- keywords: +patch Added file: http://bugs.python.org/file13528/issue978604.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue978604 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue992389] attribute error after non-from import
Nick Coghlan ncogh...@gmail.com added the comment: I just had a thought: we may be able to eliminate this behaviour without mucking about in the package globals. What if the import semantics were adjusted so that, as a last gasp effort before bailing out with an ImportError, the import process checked sys.modules again with the full module name? Not a fully fleshed out idea at this point (and possibly symptomatic of not being fully awake yet), but I'll bring it up in the current python-dev thread anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue992389 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5563] Document bdist_msi
Steven Bethard steven.beth...@gmail.com added the comment: Here you go. I built the docs with the attached patch, and everything looks about right to me now. -- keywords: +patch Added file: http://bugs.python.org/file13529/python3-bdist-msi-docs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5563 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1675026] Redirect cause invalid descriptor error
Georg Brandl ge...@python.org added the comment: Documented in README in r70902. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1675026 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: The spare 512 values are for code that I expect no one is actually using. In terms of increasing the buffer size from 4096 to something larger, that can be done, but I think that more than just a 10mbit switched lan test should be performed. I would tend to believe that a larger size would tend to perform better, but my concern is sending blocks too large to the OS and having it say sorry, but you need to chop it up more via sock.send() returning 1 or 2 (I've experienced this on Windows with stdio and sockets). Considering how easy it is to adjust, and considering that the value is respected everywhere that matters (performance-conscious users aren't using simple_producer, nor are they using dispatcher_with_send), I think that 4096 is sufficient for the time being. Adjusting it up to 16k in Python 2.8/3.2 seems reasonable to me. Someone ping me in a year ;) . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4706] try to build a C module, but don't worry if it doesn't work
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek resolution: - duplicate status: open - closed superseder: - Optional extensions in setup.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5337] Scanner class in re module undocumented
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: One of the limitations is that it identifies what matched by using capture groups, so if the expressions provided contain captures then it gets confused! :-) I handled that by 1) rejecting named captures and 2) changing unnamed captures into non-captures. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com