[issue10160] operator.attrgetter slower than lambda after adding dotted names ability
Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the comment: Modules/operator.c grows by ~70 lines, most of it the setup code for ag-attr; also I loop twice over the args of attrgetter_new, choosing fast code that runs once per attrgetter creation than temporary data. Alex's suggestion to make use of Python-level functions to shorten the code of attrgetter_new could obviously work to decrease the source lines. I don't know how fast I would produce such a version if requested, though. Whatever the way attrgetter_new sets up the data, I would suggest that you keep the logic changes in general, i.e. set-up in attrgetter_new and keep a thinner dotted_getattr , since it avoids running the same checks and splitting over and over again for every attrgetter_call invocation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)
Case Van Horsen cas...@gmail.com added the comment: I've attached a patch that fixes hashing for numerical types, sys.hash_info is now correct, fixes typeobject.c/wrap_hashfunc and tupleobject.c/tuplehash to use Py_ssize_t instead of long, and uses Py_ssize_t instead of Py_hash_t. I think it is clearer to use Py_ssize_t instead of Py_hash_t. I found two occurances where PyLong_FromLong needed to be replaced by PyLong_FromSsize_t and I think bugs like that would be easier to catch if Py_ssize_t is used. -- Added file: http://bugs.python.org/file19317/py_ssize_t_hash_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9778 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10159] rlcompleter's tests depend on dict order
Georg Brandl ge...@python.org added the comment: Applied in r85766. Thanks! -- nosy: +georg.brandl resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10159 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10162] mimetypes read_windows_registry should tolerate permissions errors
Tim Golden m...@timgolden.me.uk added the comment: I've only read the patch and not applied it, yet. But in principle I'm +1 on this. If Brian doesn't get there first, I'll try to apply later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10162 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10092] calendar does not restore locale properly
Tim Golden m...@timgolden.me.uk added the comment: I'm afraid this falls outside my particular area of knowledge, and also outside the remit of the bug tracker. Perhaps you could post to python-list to see if anyone there can help? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10157] Memory leak (r70152)
Antoine Pitrou pit...@free.fr added the comment: Your traceback suggests it's a string allocated when reading a module file... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10157 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add Systemtap/DTrace probes
Antoine Pitrou pit...@free.fr added the comment: I've the same question as Jesús Cea Avión: what is needed to get this in 3.2? Same as usual: someone to review, apply, commit. Why do you ask? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names
Marc-Andre Lemburg m...@egenix.com added the comment: Martin v. Löwis wrote: Martin v. Löwis mar...@v.loewis.de added the comment: Sorry, I didn't mean how Windows constructs the result for the A interface - I was talking about Python code being able to map the result from the Unicode interface to the form used in the protocol (e.g. DNS). I believe the proposal is to use the DNS name I disagree with the proposal - it should return whatever name gethostname from winsock.dll returns (which I expect to be the netbios name). so since the DNS is byte oriented, I would have thought that the Unicode DNS name result would always have a bytes equivalent that the DNS resolver code would use - perhaps its UTF-8 encoding? No no no. When Microsoft calls it the DNS name, they don't actually mean that it has to do anything with DNS. In particular, it's not byte-oriented. Just to clarify: I was proposing to use the GetComputerNameExW() win32 API with ComputerNamePhysicalDnsHostname, which returns Unicode without needing any roundtrip via bytes and the issues associated with this. I don't understand why Martin insists that the MS DNS name doesn't have anything to with DNS... the fully qualified DNS name of a machine is determined as hostname.domainname, just like you would expect in DNS. http://msdn.microsoft.com/en-us/library/ms724301(v=VS.85).aspx http://msdn.microsoft.com/en-us/library/ms724224(v=VS.85).aspx As I said earlier: NetBIOS is being phased out in favor of DNS. MS is using a convention which mandates that NetBIOS names match DNS names. The only difference between the two is that NetBIOS names have a length limitation: http://msdn.microsoft.com/en-us/library/ms724931(v=VS.85).aspx Perhaps Martin could clarify why he insists on using the ANSI WinSock interface gethostname instead. PS: WinSock provides many other Unicode APIs for socket module interfaces as well, so at least for that platform, we could use those to resolve uncertainties about the encoding used in name resolution. On other platforms, I guess we'll just have to do some trial and error to see what works and what not. E.g. on Linux it is possible to set the hostname to a non-ASCII value, but then the resolver returns an error, so it's not very practical: # hostname l\303\266wis # hostname löwis # hostname -f hostname: Resolver Error 0 (no error) Using the IDNA version doesn't help either: # hostname xn--lwis-5qa # hostname xn--lwis-5qa # hostname -f hostname: Resolver Error 0 (no error) Python2 happily returns the host name, but fails to return a fully qualified domain name: 'l\xc3\xb6wis' socket.getfqdn() 'l\xc3\xb6wis' and 'xn--lwis-5qa' socket.getfqdn() 'xn--lwis-5qa' Just for comparison: # hostname newton # hostname newton # hostname -f newton.egenix.internal and 'newton' socket.getfqdn() 'newton.egenix.internal' So at least on Linux, using non-ASCII hostnames doesn't really appear to be an option at this time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10158] BadInternalCall running test_multiprocessing
Bob Halley hal...@dnspython.org added the comment: I rebuilt using --with-pydebug and -O0 -g. It now triggers an assertion a bit earlier. test_finalize (__main__.WithProcessesTestFinalize) ... Assertion failed: (op-ob_refcnt == 0), function _PyTrash_destroy_chain, file Objects/object.c, line 2433 (gdb) bt #0 0x7fff8791c3d6 in __kill () #1 0x7fff879bc972 in abort () #2 0x7fff879a99b4 in __assert_rtn () #3 0x0001000796e0 in _PyTrash_destroy_chain () at Objects/object.c:2433 #4 0x000100053efe in list_dealloc (op=0x10114cc18) at Objects/listobject.c:317 #5 0x00010007905b in _Py_Dealloc (op=0x10114cc18) at Objects/object.c:2228 #6 0x00010005aee7 in listiter_next (it=0x10160d610) at Objects/listobject.c:2917 #7 0x0001001158c8 in PyEval_EvalFrameEx (f=0x1014c72c0, throwflag=0) at Python/ceval.c:2496 [ ... snip ... ] (gdb) f 3 #3 0x0001000796e0 in _PyTrash_destroy_chain () at Objects/object.c:2433 2433assert(op-ob_refcnt == 0); (gdb) list 2428 * fool Py_DECREF into calling it indirectly, but 2429 * Py_DECREF was already called on this object, and in 2430 * assorted non-release builds calling Py_DECREF again ends 2431 * up distorting allocation statistics. 2432 */ 2433assert(op-ob_refcnt == 0); 2434++_PyTrash_delete_nesting; 2435(*dealloc)(op); 2436--_PyTrash_delete_nesting; 2437} (gdb) p *op $2 = { _ob_next = 0x0, _ob_prev = 0x0, ob_refcnt = 1, ob_type = 0x101441d70 } (gdb) p *op-ob_type $4 = { _ob_next = 0x10076d798, _ob_prev = 0x101442930, ob_refcnt = 9, ob_type = 0x1001f84e0, ob_size = 0, tp_name = 0x1013e88b4 Semaphore, tp_basicsize = 48, tp_itemsize = 0, tp_dealloc = 0x10009dd9d subtype_dealloc, tp_print = 0, tp_getattr = 0, tp_setattr = 0, tp_compare = 0, tp_repr = 0x1000af4a0 slot_tp_repr, tp_as_number = 0x101441f08, tp_as_sequence = 0x101442058, tp_as_mapping = 0x101442040, tp_hash = 0x1000761bc _Py_HashPointer, tp_call = 0, tp_str = 0x1000a44e4 object_str, tp_getattro = 0x10007728a PyObject_GenericGetAttr, tp_setattro = 0x100077676 PyObject_GenericSetAttr, tp_as_buffer = 0x1014420a8, tp_flags = 940027, tp_doc = 0x0, tp_traverse = 0x10009da40 subtype_traverse, tp_clear = 0x10009dce5 subtype_clear, tp_richcompare = 0, tp_weaklistoffset = 40, tp_iter = 0, tp_iternext = 0x100076c13 _PyObject_NextNotImplemented, tp_methods = 0x0, tp_members = 0x1014420e8, tp_getset = 0x0, tp_base = 0x1014499f0, tp_dict = 0x101442930, tp_descr_get = 0, tp_descr_set = 0, tp_dictoffset = 32, tp_init = 0x1000b06dd slot_tp_init, tp_alloc = 0x10009d7a7 PyType_GenericAlloc, tp_new = 0x1000a3f03 object_new, tp_free = 0x10016bda4 PyObject_GC_Del, tp_is_gc = 0, tp_bases = 0x1010bc840, tp_mro = 0x100744060, tp_cache = 0x0, tp_subclasses = 0x10074d240, tp_weaklist = 0x10075f528, tp_del = 0, tp_version_tag = 194 } -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10158 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10157] Memory leak (r70152)
Stefan Krah stefan-use...@bytereef.org added the comment: I also thought that it might be a pointer that's lost in marshal.c. However, perhaps a pointer is lost in Py_Finalize. With this ... Index: Modules/main.c === --- Modules/main.c (revision 85766) +++ Modules/main.c (working copy) @@ -697,6 +697,7 @@ sts = PyRun_AnyFileFlags(stdin, stdin, cf) != 0; } +exit(0); Py_Finalize(); #ifdef __INSURE__ ... Valgrind does not report the leak. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10157 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10160] operator.attrgetter slower than lambda after adding dotted names ability
Changes by Éric Araujo mer...@netwok.org: -- components: -Documentation nosy: -d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10163] 7/200 and 7%200 show weird results
New submission from Henry Eshbaugh newts...@gmail.com: This may be happening with other numbers, but I got weird results with the modulus and division operators, after I imported the math module. I tried to do 7/200 and got 0, and 200%7 yielded 7, an impossibility with modulus. -- messages: 119274 nosy: Henry.Eshbaugh priority: normal severity: normal status: open title: 7/200 and 7%200 show weird results ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10163] 7/200 and 7%200 show weird results
Georg Brandl ge...@python.org added the comment: The result of 7 / 200 is easy to explain -- this is how integer division works in Python 2. (To get a floating result, one of the numbers must be a float.) 200 % 7 giving 7 however is strange. Are you sure this is what you calculated? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings
Éric Araujo mer...@netwok.org added the comment: When working as a filter, reindent should use sys.{stdin,stdout}.encoding (defaulting to sys.getdefaultencoding()) for reading and writing, respectively. Detecting encoding on streams is not worth it IMO. People can set PYTHONIOENCODING for baroque needs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1349106] email.Generator does not separate headers with \r\n
R. David Murray rdmur...@bitdance.com added the comment: Updated patch that adds a missing test for BytesGenerator.flatten and fixes the bugs in it. Also added versionchanged tags to the docs for the linesep argument. I think this is ready to go in. -- stage: patch review - commit review Added file: http://bugs.python.org/file19318/email_linesep.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1349106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1349106] email.Generator does not separate headers with \r\n
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file19291/email_linesep.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1349106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1349106] email.Generator does not separate headers with \r\n
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file19318/email_linesep.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1349106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1349106] email.Generator does not separate headers with \r\n
R. David Murray rdmur...@bitdance.com added the comment: Removed some debugging cruft from the latest patch. -- Added file: http://bugs.python.org/file19319/email_linesep.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1349106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10163] 7/200 and 7%200 show weird results
Eric Smith e...@trueblade.com added the comment: Which version of python? Could you run this from the command line and paste the complete session, including the version info that python prints on startup? -- nosy: +eric.smith, mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10161] unittest: use ascii() instead of repr() to display values on error
Changes by Éric Araujo mer...@netwok.org: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10161 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5017] import suds help( suds ) fails
Changes by Georg Brandl ge...@python.org: -- components: +Library (Lib) -Demos and Tools ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5017 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10164] Add an assertBytesMultiLineEqual to unittest and use it for bytes assertEqual
New submission from R. David Murray rdmur...@bitdance.com: Just as with regular strings, when comparing failed output involving bytes strings it is really helpful to have a diff showing which bytes have changed. The attached patch adds an assertMultiLineEqual method to unittest and uses it for comparing bytes in assertEqual. The diff output is created by first breaking the byte strings into lines using 'splitlines(True)' just as in assertMultiLineEqual, but then each line is converted to a string using 'repr' before the lines sets are passed to ndiff. This results in output containing escaped bytes, making it easier to compare the differences in the byte strings. (NB: this patch is the end result of several attempts to make the unittest output more useful in the email package when testing bytes handling). -- files: bytes_multi_line_equal.diff keywords: patch messages: 119280 nosy: michael.foord, r.david.murray priority: normal severity: normal stage: patch review status: open title: Add an assertBytesMultiLineEqual to unittest and use it for bytes assertEqual type: feature request versions: Python 3.2 Added file: http://bugs.python.org/file19320/bytes_multi_line_equal.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8999] Add Mercurial support to patchcheck
Georg Brandl ge...@python.org added the comment: Applied in r85767. -- nosy: +georg.brandl resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9095] patchcheck should handle extraneous whitespace in .rst files
Georg Brandl ge...@python.org added the comment: Now done in r85767. -- dependencies: -`make patchcheck` should check the whitespace of .c/.h files nosy: +georg.brandl status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9095 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3964] quiet the freeze makefile
Georg Brandl ge...@python.org added the comment: Closing as works for me. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3964 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9919] gdbinit lineno result is one line in excess
Georg Brandl ge...@python.org added the comment: Patch looks good, committed in r85768. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6364] freeze tool broken in Python 3.x
Georg Brandl ge...@python.org added the comment: An equivalent patch had already been committed in r83606. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6364 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1772721] [python-mode] Properly highlight lambda with no arguments
Georg Brandl ge...@python.org added the comment: python-mode.el is not maintained in Python anymore. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1772721 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3077] h2py char literal doesn't work
Georg Brandl ge...@python.org added the comment: Fixed in r85770. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9102] pybench: Cannot compare 2.x and 3.x benchmarks
Changes by Georg Brandl ge...@python.org: -- assignee: - lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
New submission from anatoly techtonik techto...@gmail.com: I never used Python console much, but now I see it has a very annoying behavior under Windows Vista. By default entered char overwrites the char under cursor. If you press Insert key once - it allows to insert key, but after you press enter - overwrite mode is back. -- messages: 119289 nosy: techtonik priority: normal severity: normal status: open title: char overwrite mode is by default on in Python console under Vista versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)
Changes by Georg Brandl ge...@python.org: -- assignee: - d...@python components: +Documentation -Demos and Tools nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5978 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1203650] Allow larger programs to be frozen under Win32
Georg Brandl ge...@python.org added the comment: Applied in r85771. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1203650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
Brian Curtin cur...@acm.org added the comment: This has nothing to do with Python. IIRC from another issue, you have pyreadline installed. Your cmd.exe settings may be conflicting with something that pyreadline is trying to do. -- nosy: +brian.curtin resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6088] Python3.0.1.1 is not available when system locale is zh_TW.eucTW
Georg Brandl ge...@python.org added the comment: This is very probably resolved in 3.1 or 3.2, where lots of environment vs Unicode bugs were fixed. -- nosy: +georg.brandl status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6088 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3486] bytes.join does not accept a sequence of bytearrays
Georg Brandl ge...@python.org added the comment: py3k bytes won't be backported now. -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3486 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10089] Add support for arbitrary -X options
Antoine Pitrou pit...@free.fr added the comment: Committed in r85772. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10089 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4829] confusing error for file(foo, w++)
Georg Brandl ge...@python.org added the comment: Amended error message in r85773. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4829 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message
Georg Brandl ge...@python.org added the comment: Is this ready to commit? -- assignee: - pitrou nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5218 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
Tim Golden m...@timgolden.me.uk added the comment: If you don't often use the console, then I expect your console settings have Insert mode off. (Alt-Space Properties Options Insert Mode [x]) -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10154] locale.normalize strips - from UTF-8, which fails on Mac
Stephen Hansen me+pyt...@ixokai.io added the comment: Mark, the locals() right before if encoding: (line 399) are: locale.normalize(en_US.UTF-8) {'code': 'en_US.ISO8859-1', 'langname': 'en_US', 'encoding': 'UTF8', 'norm_encoding': 'utf_8', 'defenc': 'ISO8859-1', 'localename': 'en_US.UTF-8', 'lookup_name': 'en_us.utf-8', 'fullname': 'en_us.utf-8'} 'en_US.UTF8' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10163] 7/200 and 7%200 show weird results
Mark Dickinson dicki...@gmail.com added the comment: Seconding Eric's comment. This is what I get on my machine; can you cut and paste the equivalent output on yours (including whatever else is required to reproduce the results you describe) Python 2.6.1 (r261:67515, Feb 11 2010, 15:47:53) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help, copyright, credits or license for more information. 200 % 7 4 In any case, please let us know which version of Python you're using, and where you got it from. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10163] 7/200 and 7%200 show weird results
Georg Brandl ge...@python.org added the comment: The bug title interestingly says 7%200, which does result in 7. I therefore think the OP just confused the order of operands for %. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10154] locale.normalize strips - from UTF-8, which fails on Mac
Marc-Andre Lemburg m...@egenix.com added the comment: Stephen Hansen wrote: Stephen Hansen me+pyt...@ixokai.io added the comment: Mark, the locals() right before if encoding: (line 399) are: locale.normalize(en_US.UTF-8) {'code': 'en_US.ISO8859-1', 'langname': 'en_US', 'encoding': 'UTF8', 'norm_encoding': 'utf_8', 'defenc': 'ISO8859-1', 'localename': 'en_US.UTF-8', 'lookup_name': 'en_us.utf-8', 'fullname': 'en_us.utf-8'} 'en_US.UTF8' Thanks. Line 646 in the alias table is wrong: 'utf_8':'UTF8', should read: 'utf_8':'UTF-8', I wonder why this wasn't reported earlier - did the GlibC change the UTF-8 spelling at some point ? I do vaguely remember that I had to remove the hyphen due to problems with setlocale() not accepting 'UTF-8', but that was at the time I wrote that part of locale.py, i.e. many years ago. It doesn't appear to be necessary anymore. I checked on openSUSE 10.3 and 11.3. Both work fine with 'UTF-8' and 'UTF8'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
anatoly techtonik techto...@gmail.com added the comment: I don't have pyreadline installed. But I had Insert Mode disabled for Python, indeed. I wonder if the setting comes disabled by default? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
Brian Curtin cur...@acm.org added the comment: I wonder if the setting comes disabled by default? Correct. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
anatoly techtonik techto...@gmail.com added the comment: I wonder if the setting comes disabled by default? Correct. Can we turn it on by default in Windows installer? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10157] Memory leak (r70152)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Hello. Does this patch fix the problem? -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file19321/py3k_issue10157.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10157 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10162] mimetypes read_windows_registry should tolerate permissions errors
Brian Curtin cur...@acm.org added the comment: Fixed in py3k (r85774, minor correction in r85775), and release27-maint (r85776). Thanks for the patches! -- assignee: - brian.curtin resolution: - fixed stage: - committed/rejected status: open - closed type: feature request - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10162 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
Brian Curtin cur...@acm.org added the comment: I'm not sure if it's possible, but even if so, I don't think we should do it. For cmd.exe itself and all processes that run in it, the default is to have it off, and you can enable it on a case-by-case basis. Insert mode really should only be enabled by those who know what it does. For example, left clicking while a process is using stdout will block until you left click, and I can see that confusing users who are not aware of what happened or why. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
Brian Curtin cur...@acm.org added the comment: will block until you left click should be... will block until you right click (or hit enter) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10154] locale.normalize strips - from UTF-8, which fails on Mac
Georg Brandl ge...@python.org added the comment: If other Posix-y systems accept both spellings and only Macs insist on the dash, we should probably indeed change the alias entry to use it. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
anatoly techtonik techto...@gmail.com added the comment: You must have been mistaken this for QuickEdit mode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10165] char overwrite mode is by default on in Python console under Vista
Agree that it's not really up to us; and that it's trivial to change once for all future python processes. As to the left-click blocking, I think that's Quick Edit mode you're thinking of, not Insert TJG ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10166] maximum recursion depth exceeded in lib\pstats.py
New submission from Adam Bielański abg...@gmail.com: There's a bug in module lib\pstats.py, line 150. Let me paste a little piece of surrounding code: class Stats: () def add(self, *arg_list): if not arg_list: return self if len(arg_list) 1: self.add(*arg_list[1:]) #Line 150, the problem is right here! other = arg_list[0] (... do some processing with first item from arg_list ...) This is the code for adding profiling stats from multiple files (names are on arg_list) so that they can be displayed in cumulated and readable form. As you can see it chops off the first item from the list and then uses recursion to process the rest of it. It's no wonder then that when you profiled a little too many function calls, you're bound to see RuntimeError with 'maximum recursion depth exceeded' message when you try using this. IMO this should be done with iteration instead, like: def add(self, *arg_list): if not arg_list: return self for other in arg_list: #Preserved variable name only for sake of comparison with previous snippet (... do some processing with each item from arg_list, merging results in some rightful manner ...) You can find a patch for this issue in the attachment. -- components: Library (Lib) files: pstats.patch keywords: patch messages: 119311 nosy: Adam.Bielański priority: normal severity: normal status: open title: maximum recursion depth exceeded in lib\pstats.py type: crash versions: Python 2.6 Added file: http://bugs.python.org/file19322/pstats.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10166 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2193] Cookie Colon Name Bug
And Clover a...@doxdesk.com added the comment: The various attempts by RFCs to codify HTTP cookies are useless and bear no resemblance to what browsers actually do. In the real world, every byte in the range 0x20-0x7E is allowed, except for the semicolon, the equals (in names), and in Opera, in some places, the double-quote. Many browsers even allow most of the control codes! The question of non-ASCII Unicode characters is tricky, but none of them cause a token break. Contrary to RFC2109 and its successors, no browser takes any notice of quoted-string cookies or backslash-escaping, so the effort Cookie.py puts into producing an encoded string and 'parsing' input cookies is completely wasted. It should do what everyone else does: split on semicolon, left-strip the whitespace, split each cookie on first equals. (In reality cookie names and values have no inherent encoding scheme, so if you want to include out-of-band characters like semicolon, control characters or non-ASCII characters you have to use an ad-hoc encoding scheme, often URL-encoding.) -- nosy: +aclover ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10167] ESET Torgan Alert [python-3.1.2.amd64 ON Win7-64]
New submission from Alexander Collins abdullah.le...@gmail.com: While trying to install 3.1.2 on my windows 7. I was faced with a Trojan alert from my ESET NOD32 anti-virus. The link to the file: http://www.python.org/ftp/python/3.1.2/python-3.1.2.amd64.msi A snapshot is attached. Windows 7 x64 ESET Smart Security 4.2.64.12 -- components: Installation files: pythonSecurityWarningESET.png messages: 119313 nosy: Mr.Collins priority: normal severity: normal status: open title: ESET Torgan Alert [python-3.1.2.amd64 ON Win7-64] type: security versions: Python 3.1 Added file: http://bugs.python.org/file19323/pythonSecurityWarningESET.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10167] ESET Trojan Alert [python-3.1.2.amd64 ON Win7-64]
Changes by Brian Curtin cur...@acm.org: -- title: ESET Torgan Alert [python-3.1.2.amd64 ON Win7-64] - ESET Trojan Alert [python-3.1.2.amd64 ON Win7-64] ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10167] ESET Trojan Alert [python-3.1.2.amd64 ON Win7-64]
Brian Curtin cur...@acm.org added the comment: I just ran that installer on Windows 7 x64 with Sophos AV and got no such warning. FWIW, the checksum of the downloaded installer matched the one listed on http://www.python.org/download/releases/3.1.2/ -- components: +Windows nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10167] ESET Trojan Alert [python-3.1.2.amd64 ON Win7-64]
Alexander Collins abdullah.le...@gmail.com added the comment: Checksum matches. I am not sure why did it detect that. The AV report: ( I shoulda posted that earlier -_-') //- Report starts ... 10/21/2010 11:54:12 AM Real-time file system protection file C:\Windows\Installer\{D40AF016-506C-43FB-A738-BD54FA8C1E86}\python_icon.exe Win32/Agent.RRQ trojan cleaned by deleting - quarantined NT AUTHORITY\SYSTEM Event occurred on a new file created by the application: C:\Windows\System32\msiexec.exe //- Report ends ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10168] tkinter.Canvas.coords should return a list, not a map
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: Apparently a 2.x to 3.x migration artifact. Canvas.coords() is documented as returning a list: def coords(self, *args): Return a list of coordinates for the item given in ARGS. but in 3.x it returns a map object. Attached patch fixes that. -- components: Tkinter files: canvas-coords.diff keywords: patch messages: 119316 nosy: belopolsky priority: normal severity: normal stage: unit test needed status: open title: tkinter.Canvas.coords should return a list, not a map type: behavior versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file19324/canvas-coords.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python
R. David Murray rdmur...@bitdance.com added the comment: Only OSX 10.4.0 I can run test_tk: rdmur...@buddy:~/python/py3k./python.exe -m test.regrtest -uall test_tk [1/1] test_tk Thu Oct 21 12:41:16 buddy.home.bitdance.com python.exe[93560] Error: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged. _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL. 1 test OK. But test_ttk_guionly crashes with the abort trace after printing the above. I presume this means test_ttk_guionly was factored out at some point after this issue was raised, but it is interesting that test_tk produces the warning about the window connection but only _guionly crashes. -- title: test_tk fails on OS X if run from buildbot slave daemon -- crashes Python - test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python versions: -Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8716 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5120] Disabling test_ttk_guionly on mac
R. David Murray rdmur...@bitdance.com added the comment: Presumably this is the same issue 8716. That issue contains additional details and a patch from Ronald, so I'm not closing it as a duplicate. I don't know if the patch on this issue would actually address the issue. I tried to apply it to py3k but it did not apply cleanly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5120 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python
R. David Murray rdmur...@bitdance.com added the comment: See also issue 5120. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8716 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3356] some tests fail with 'make EXTRA_CFLAGS=-DPy_DEBUG' (test_distutils, test_set)
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3356 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10153] Memory leak in pythonrun.c
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10169] socket.sendto raises incorrect exception when passed incorrect types
New submission from Jean-Paul Calderone inva...@example.invalid: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.bind(('', 0)) s.sendto(u'hellé', s.getsockname()) Traceback (most recent call last): File stdin, line 1, in module TypeError: sendto() takes exactly 3 arguments (2 given) s.sendto(3, s.getsockname()) Traceback (most recent call last): File stdin, line 1, in module TypeError: sendto() takes exactly 3 arguments (2 given) s.sendto('hello', s.getsockname()) 5 The TypeError gives the wrong explanation for what's wrong. -- components: Library (Lib) messages: 119320 nosy: exarkun priority: normal severity: normal status: open title: socket.sendto raises incorrect exception when passed incorrect types type: behavior versions: Python 2.6, Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8999] Add Mercurial support to patchcheck
Éric Araujo mer...@netwok.org added the comment: Great, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10168] tkinter.Canvas.coords should return a list, not a map
Changes by Éric Araujo mer...@netwok.org: -- resolution: - duplicate stage: unit test needed - committed/rejected status: open - closed superseder: - changed return type from tkinter.Canvas.coords ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6878] changed return type from tkinter.Canvas.coords
Changes by Éric Araujo mer...@netwok.org: -- nosy: +belopolsky versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6878 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6878] changed return type from tkinter.Canvas.coords
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Searching through tkinter for map() calls reveals many other places where map object is returned instead of a list. For example: def keys(self): Return a list of all resource names of this widget. return map(lambda x: x[0][1:], .. def pack_slaves(self): Return a list of all slaves of this widget in its packing order. return map(self._nametowidget, .. def place_slaves(self): Return a list of all slaves of this widget in its packing order. return map(self._nametowidget, .. def wm_colormapwindows(self, *wlist): ... Return current list of widgets if WLIST is empty. return map(.. While in some cases it may be arguable that returning an iterable is more appropriate for 3.x, I believe preserving backward compatible API is more important. API changes should also be accompanied with 2to3 fixes, so some action is required in any case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6878 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6878] changed return type from tkinter.Canvas.coords
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Attached patch fixes other uses of map() in tkinter. -- Added file: http://bugs.python.org/file19325/issue6878.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6878 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7061] Improve 24.5. turtle doc
Éric Araujo mer...@netwok.org added the comment: From your commit: -Excursus about the use of compound shapes +Compound shapes - Having more hyphens than title characters is not an error for reST, but it’s not done in the rest of the document. I suggest “fixing” that when you do further changes in the file (it’s not worth a commit in itself). Cheers! -- assignee: georg.brandl - d...@python nosy: +d...@python, eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5017] import suds help( suds ) fails
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5017 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10126] test_distutils failure with --enable-shared
Barry A. Warsaw ba...@python.org added the comment: Hi Éric, what's the status on the backport? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10126 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7061] Improve 24.5. turtle doc
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Oct 21, 2010 at 2:03 PM, Éric Araujo rep...@bugs.python.org wrote: .. Having more hyphens than title characters is not an error for reST, but it’s not done in the rest of the document. I suggest “fixing” that when you do further changes in the file (it’s not worth a commit in itself). Cheers! There are other ReST imperfections in turtle doc. For example, :class: tag is often missing on class names. (Search for Turtle with capital 'T'.) The hyphen fix, however seems easier to commit than to remember. I'll do it now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7061] Improve 24.5. turtle doc
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Oct 21, 2010 at 2:12 PM, Alexander Belopolsky belopol...@users.sourceforge.net wrote: The hyphen fix, however seems easier to commit than to remember. I'll do it now. Committed in r85778. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10126] test_distutils failure with --enable-shared
Éric Araujo mer...@netwok.org added the comment: Done in r85779 and r85780, please test. -- components: +Distutils nosy: +Canfield, matejcik, sandro.tosi, valeo resolution: - fixed stage: needs patch - committed/rejected versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10126 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7061] Improve 24.5. turtle doc
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I also wonder if the title should be changed from Turtle graphics for Tk to simply Turtle graphics. As explained in issue3884, msg73465 turtle's use of Tk is an implementation detail and the title may be confusing to the target audience. Presumably turtle module is targeted towards young and novice users who don't know and don need to know about Tk. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7061] Improve 24.5. turtle doc
Éric Araujo mer...@netwok.org added the comment: +1. BTW, aren’t the fixes relevant for 2.7 too? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10167] ESET Trojan Alert [python-3.1.2.amd64 ON Win7-64]
Brian Curtin cur...@acm.org added the comment: I'm not really sure if there's anything we can or should do here. Martin, has this happened before, and if so is there anything to be done by us? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10153] Memory leak in pythonrun.c
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file19294/pythonrun.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10153] Memory leak in pythonrun.c
Stefan Krah stefan-use...@bytereef.org added the comment: There is actually a second refleak of the same kind. New patch attached. -- Added file: http://bugs.python.org/file19326/pythonrun2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10157] Memory leak (r70152)
Stefan Krah stefan-use...@bytereef.org added the comment: Hirokazu, the patch looks good to me. Unfortunately Valgrind still reports the leak. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10157 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10170] Relationship between turtle speed setting and actual speed is not documented
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: As Terry J. Reedy mentioned in his comment on issue 7061, turtle documentation is lacking information on how speed codes 0-10 translate into actual turtle speed. Attached script measures the speed of the two primitive operations that form the basis of turtle functionality at various speed settings. The results below show highly irregular pattern. The columns are: the speed code, time to draw a 200 unit line, time to complete a 360 degrees turn and the ratio of the two times. 0: 0.01 0.01 0.83 1: 1.04 2.05 0.51 2: 0.49 1.06 0.46 3: 0.30 0.72 0.42 4: 0.23 0.54 0.44 5: 0.17 0.44 0.38 6: 0.13 0.39 0.35 7: 0.08 0.32 0.26 8: 0.08 0.28 0.30 9: 0.10 0.27 0.37 10: 0.08 0.23 0.36 From the source code, it appears that the on-screen speed is controlled by the number of animation steps while each step takes approximately time controlled by the delay setting that defaults to 10 milliseconds. The number of steps is determined by somewhat peculiar computations. For a rotation by angle of a degrees at speed setting s, the number of steps is n = 2 + int(a / (3 * s)) and for drawing a line of length d, n = 1 + int(d / (3 * 1.1**s * s)) I am not sure what was the reason for these choices, but I think it would be better if numeric speed code had a more direct relationship to the apparent speed. -- assignee: d...@python components: Demos and Tools, Documentation messages: 119334 nosy: belopolsky, d...@python, eric.araujo, georg.brandl, gregorlingl, terry.reedy priority: normal severity: normal status: open title: Relationship between turtle speed setting and actual speed is not documented versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4117] missing update() in _Screen.setup() of Lib/turtle.py
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: See also turtle.py update for 3.1 post on python-dev specifically mentioning this bug as fixed. http://mail.python.org/pipermail/python-dev/2009-May/089383.html -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7061] Improve 24.5. turtle doc
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Oct 21, 2010 at 3:00 PM, Éric Araujo rep...@bugs.python.org wrote: .. +1. [remove reference to Tk from title] If we do that, I think we should move turtle documentation out of the Graphical User Interfaces with Tk chapter. It would be more appropriate to place it under Program Frameworks. BTW, aren’t the fixes relevant for 2.7 too? They probably are, but for a purely educational module such as turtle, I don't see much value in improving it in 2.x releases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7061] Improve 24.5. turtle doc
Éric Araujo mer...@netwok.org added the comment: Agreed that Program Frameworks is the most adequate section. For the backport, I don’t see that turtle should have different rules than other modules, but I’m not firmly attached to this, so do as you wish. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10167] ESET Trojan Alert [python-3.1.2.amd64 ON Win7-64]
Alexander Collins abdullah.le...@gmail.com added the comment: I'll attempt to contact my anti-virus provider and see what they have to say about that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10126] test_distutils failure with --enable-shared
Éric Araujo mer...@netwok.org added the comment: The backport fixed test_build_ext (the method) but not test_get_outputs. Barry and I are on it. -- resolution: fixed - stage: committed/rejected - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10126 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5639] Support TLS SNI extension in ssl module
Antoine Pitrou pit...@free.fr added the comment: Here is a patch for py3k, including http.client and urllib support. -- Added file: http://bugs.python.org/file19327/sni.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10143] Update os.pathconf values
Éric Araujo mer...@netwok.org added the comment: Can you produce a patch? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10149] Data truncation in expat parser
Éric Araujo mer...@netwok.org added the comment: Would you like to turn your suggestions (+ hinting at buffer_text someplace) into a patch for Doc/library/pyexpat.rst? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10076] Regex objects became uncopyable in 2.5
Changes by Éric Araujo mer...@netwok.org: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10076 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10126] test_distutils failure with --enable-shared
Barry A. Warsaw ba...@python.org added the comment: It's possible the proposed patch for 2.7 should be used in python 3 also. Or as __ap__ suggestions in irc, os.path.dirname(sys.executable) -- Added file: http://bugs.python.org/file19328/10126-py27.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10126 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10126] test_distutils failure with --enable-shared
Barry A. Warsaw ba...@python.org added the comment: Fixed in 2.7 by r85784 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10126 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10060] python.exe crashes or hangs on help() modules when bad modules found
Éric Araujo mer...@netwok.org added the comment: There are half a dozen duplicate bugs of this one, with various suggestions on each. They should be summed up and linked. I should be able to do it this week-end if no-one does it first. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10060 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names
David Watson bai...@users.sourceforge.net added the comment: On other platforms, I guess we'll just have to do some trial and error to see what works and what not. E.g. on Linux it is possible to set the hostname to a non-ASCII value, but then the resolver returns an error, so it's not very practical: # hostname l\303\266wis # hostname löwis # hostname -f hostname: Resolver Error 0 (no error) Using the IDNA version doesn't help either: # hostname xn--lwis-5qa # hostname xn--lwis-5qa # hostname -f hostname: Resolver Error 0 (no error) I think what's happening here is that simply that you're setting the hostname to something which doesn't exist in the relevant name databases - the man page for Linux's hostname(1) says that The FQDN is the name gethostbyname(2) returns for the host name returned by gethostname(2).. If the computer's usual name is newton, that may be why it works and the others don't. It works for me if I add 127.0.0.9 löwis.egenix.com löwis to /etc/hosts and then set the hostname to löwis (all UTF-8): hostname -f prints löwis.egenix.com, and Python 2's socket.getfqdn() returns the corresponding bytes; non-UTF-8 names work too. (Note that the FQDN must appear before the bare hostname in the /etc/hosts entry, and I used the address 127.0.0.9 simply to avoid a collision with existing entries - by default, Ubuntu assigns the FQDN to 127.0.1.1.) -- title: socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names - socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9807] deriving configuration information for different builds with the same prefix
Éric Araujo mer...@netwok.org added the comment: FTR, the ld bug with --enable-shared is tracked in #10126. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9807 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4359] at runtime, distutils uses buildtime files
Éric Araujo mer...@netwok.org added the comment: ... and #9807 spawned #9878. -- superseder: deriving configuration information for different builds with the same prefix - Avoid parsing pyconfig.h and Makefile by autogenerating extension module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4359 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com