[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2021-12-10 Thread Daniel Diniz
Daniel Diniz added the comment: As Victor notes, this is a controversial issue. And I'll add that the need for this feature seems not to have been brought up up in over a decade. So I'm closing this. -- resolution: -> rejected stage: patch review -> resolved status

[issue1182143] making builtin exceptions more informative

2021-12-10 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue1182143> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue766910] fix one or two bugs in trace.py

2021-12-10 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +ajaksu2 versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.7 ___ Python tracker <https://bugs.python.org/issue766

[issue45959] Teach pprint about dict views

2021-12-16 Thread Daniel Diniz
Change by Daniel Diniz : -- keywords: +patch nosy: +ajaksu2 nosy_count: 4.0 -> 5.0 pull_requests: +28355 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30135 ___ Python tracker <https://bugs.python.org/i

[issue45959] Teach pprint about dict views

2021-12-16 Thread Daniel Diniz
Daniel Diniz added the comment: I have tried to add this. The PR adds: - PrettyPrinter._pprint_dict_view to handle dict_keys and dict_values (sorted with _safe_key). = PrettyPrinter._pprint_dict_items_view to handle dict_items (sorted using _safe_tuple). - Tests. Would a NEWS entry or other

[issue1062277] Pickle breakage with reduction of recursive structures

2021-12-16 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.11 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue1062277> ___ ___ Python-bugs-list mailin

[issue9917] resource max value represented as signed when should be unsigned

2021-12-16 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker <https://bugs.python.org/issue9

[issue678264] test_resource fails when file size is limited

2021-12-16 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker <https://bugs.python.org/issue678

[issue46127] Missing HTML span element in exceptions.html

2021-12-19 Thread Daniel Diniz
Daniel Diniz added the comment: That happens because EncodingWarning isn't highlighted as an Exception by Pygments[0]. The doc page gets its exceptions diagram by: ".. literalinclude:: ../../Lib/test/exception_hierarchy.txt" and all other entries are recognized by Pygments, so

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2021-12-19 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue23224> ___ ___ Python-bug

[issue46168] Incorrect format specified for the "style" key in the configuration file format formatter example

2021-12-23 Thread Daniel Diniz
Daniel Diniz added the comment: This example was added in issue 43047. It only seems to affect 3.10+ docs. Ian, is this something you'd like to tackle? -- keywords: +easy nosy: +ajaksu2, iwienand stage: -> needs patch versions: +Python 3.10, Python 3.11 -Py

[issue504219] locale.resetlocale is broken

2021-12-23 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +ajaksu2 versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker <https://bugs.python.org/issue504

[issue46169] Same-moment datetimes with different ZoneInfo timezones are not considered ==

2021-12-23 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed for 3.11 in Windows. The C datetime code can be trivially fixed so your equality test returns True, but there are two Python tests that depend on current behavior so it might not be so easy. They were added with current code in issue 24773, to

[issue46169] Same-moment datetimes with different ZoneInfo timezones are not considered ==

2021-12-24 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +belopolsky ___ Python tracker <https://bugs.python.org/issue46169> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue978604] wait_variable hangs at exit

2021-12-25 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed on Python 3.11.0a3+, assuming older versions also affected. This issue has different versions of tests to confirm it, but I think not in a test suite-friendly format yet. There's also a patch and detailed analysis by gpolo indicating that it

[issue1438480] shutil.move raises OSError when copystat fails

2021-12-26 Thread Daniel Diniz
Change by Daniel Diniz : -- keywords: -easy versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3 ___ Python tracker <https://bugs.python.org/issue1438

[issue14844] netrc does not handle accentuated characters

2021-12-26 Thread Daniel Diniz
Daniel Diniz added the comment: Now that a PR has landed in #28806 to improve shlex, we need to check whether this issue can/needs to move forward. -- nosy: +ajaksu2, asvetlov type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python

[issue7687] Bluetooth support untested

2021-12-26 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue7687> ___ ___ Python-bugs-list mailing list Unsub

[issue25044] bring BTPROTO_SCO inline with other Bluetooth protocols

2021-12-26 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.11 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue25044> ___ ___ Python-bug

[issue2548] Undetected error in exception handling

2008-08-13 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: FWIW, rev58032 introduced this: tstate = PyThreadState_GET(); if (++tstate->recursion_depth > Py_GetRecursionLimit()) { --tstate->recursion_depth; PyErr_SetObject(PyExc_RuntimeError, PyExc_Rec

[issue3555] Regression: nested exceptions crash (Cannot recover from stack overflow)

2008-08-14 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: The following code works[1] on trunk and 2.5.1, but crashes with "Fatal Python error: Cannot recover from stack overflow," on py3k as of rev65676: ## # Python 3.0b2+ (py3k:65676, Aug 14 2008, 14:37:38) # [GCC 4.1.3 2007

[issue3555] Regression: nested exceptions crash (Cannot recover from stack overflow)

2008-08-14 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Antoine, Thanks for your analysis. I still believe this is a regression for the case described, but take my opinion with a grain of salt :) >> looking at the code for _Py_CheckRecursiveCall(), I don't think it >> is a

[issue3605] Py_FatalError causes infinite loop

2008-08-19 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3605> ___ ___ Python

[issue3639] segfaults calling warnings.warn() with non-string message

2008-08-21 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Two small clues. First, a backtrace: #0 0xb7df102a in strcmp () from /lib/tls/i686/cmov/libc.so.6 #1 0x0809e678 in warn_explicit (category=0x81dd140, message=0xb7ac58f4, filename=0xb7acced0, lineno=1, module=0xb7f53300, re

[issue3639] segfaults calling warnings.warn() with non-string message

2008-08-22 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Brett, I don't think I know C (and CPython) enough to fix this. I was able to get rid of this specific segfault with this: -const char *text_char = _PyUnicode_AsString(text); +const char *text_char = _PyUnico

[issue3555] Regression: nested exceptions crash (Cannot recover from stack overflow)

2008-08-22 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Antoine, All the cases I could find would be more "test" than "use" cases. Given that most ways to abort I find in 3.0 are related to "undetected error"s in trunk, I'm almost convinced that 3.0 is rig

[issue3643] Add more checks to testcapi

2008-08-23 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3643> ___ ___ Python

[issue3653] segfault calling sys.excepthook with non-Exception argument

2008-08-23 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: Calling sys.excepthook(1,'1',1) crashes 3.0: Python 3.0b3+ (py3k:65987, Aug 23 2008, 10:04:31) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "c

[issue3661] sys.call_tracing segfaults

2008-08-24 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: The following code causes a segfault for me: import sys; sys.call_tracing(type,2) Running on: Python 3.0b3+ (py3k:66015, Aug 24 2008, 16:21:19) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 gdb output: [New

[issue3662] _fileio._FileIO segfaults

2008-08-24 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: This snippet causes a segfault from fileio_init calling PyMem_Free: import _fileio; _fileio._FileIO("1",0, 0 ) Found using Fusil [Switching to Thread -1210070848 (LWP 10184)] 0x0805f5ff in _PyObject_DebugCheckAddress (

[issue3664] Pickler.dump from a badly initialized Pickler segfaults

2008-08-24 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: This script segfaults: ## import _pickle obj = _pickle.Pickler(open("/bin/ls")) #can be open(__file__) for scripts try: obj.__init__('pouet', 87) except Exception as err: pass obj.dump(0) ### [Switching to Thr

[issue3666] atexit.register with bad input segfaults on exit

2008-08-24 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: The following crashes the interpreter on exit: import sys, atexit; atexit.register(lambda: 1, 0, 0, (x for x in (1,2)), 0, 0); sys.exit() Found with Fusil. -- messages: 71862 nosy: ajaksu2 severity: normal status: open

[issue3638] tkinter.mainloop() is meanling less and crash: remove it

2008-08-25 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3638> ___ ___ Python

[issue3634] invalid result value of _weakref.__init__()

2008-08-25 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3634> ___ ___ Python

[issue3694] Undetected error in _struct.pack_into

2008-08-26 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: The following code leads to XXX Undetected errors in debug builds of trunk and 3.0: import _struct _struct.pack_into(b"8", bytearray(1), None) Besides that, there's something fishy happening in non-debug builds: 2.6:

[issue3692] improper scope in list comprehension, when used in class declaration

2008-08-26 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: I believe the problem is that list comprehensions in 3.0 have scope like that of genexprs in 2.5, but the change was deliberate (as it also avoids leaking of temp variables). Compare to 2.5: >>> class Foo(object): ...class

[issue3623] _json: fix raise_errmsg(), py_encode_basestring_ascii() and linecol()

2008-08-27 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3623> ___ ___ Python

[issue3521] file.readline: bad exception recovery

2008-08-27 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Patch attached, suggested test below. def test_readline(): for mode in ('r', 'rb', 'r+', 'r+b'): f = open(__file__, mode) try: f.readline(0.1)

[issue3708] os.urandom(1.1): infinite loop

2008-08-27 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: Calling os.urandom(1 + float(x)) ends in a infinite loop due to a naive condition check: while len(bytes) < n: bytes += read(_urandomfd, n - len(bytes)) Trivial patch attached. -- components: Library (Lib) files: ura

[issue3675] Python 2.6 can't read sets pickled with Python 3.0

2008-08-28 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Hagen, does this simple patch (against 2.6) solve it for you? Index: Lib/pickle.py === --- Lib/pickle.py (revision 66050) +++ Lib/pickle.py (working copy) @@ -

[issue3675] Python 2.6 can't read sets pickled with Python 3.0

2008-08-28 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: FWIW, there's a mapping of 2.6:3.0 modules in lib2to3: from lib2to3.fixes.fix_imports import MAPPING The attached patch uses that for a quick and dirty way of loading 3.0 pickles in 2.6. -- keywords: +patch Added

[issue2501] xml.sax.parser() doesn't terminate when given a filename

2008-08-28 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: ISTM that this release blocker can be solved by changing xml.sax.xmlreader.py line 122 from: while buffer != "": to while buffer != b"": -- nosy: +ajaksu2

[issue3708] os.urandom(1.1): infinite loop

2008-08-28 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Gregory, IMHO your patch is better in all aspects. Regarding my patch, the API wouldn't change at all, as the source reads: while len(bytes) < int(n): bytes += read(_urandomfd, n - len(bytes)) So "n - le

[issue3720] segfault in for loop with evil iterator

2008-08-29 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: This patch fixes Armin's list of crashers for trunk. Looking for others like them. -- nosy: +ajaksu2 versions: +Python 2.6 Added file: http://bugs.python.org/file11311/itercrashers.diff ___

[issue3720] segfault in for loop with evil iterator

2008-08-29 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11311/itercrashers.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3720] segfault in for loop with evil iterator

2008-08-29 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Hopefully the right patch this time :/ Added file: http://bugs.python.org/file11312/itercrashers.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3720] segfault in for loop with evil iterator

2008-08-29 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Raymond, I think a different solution would be great, as the performance penalty might become nasty in tight loops if we miss some detail. Regarding the possible impact, I hope we can get a better estimate since the other examp

[issue2501] xml.sax.parser() doesn't terminate when given a filename

2008-09-01 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Looks like this is a duplicate of issue3590, so this patch fixes two release blockers ;) ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2016] Crash when modifying the **kwargs passed to a function.

2008-09-08 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2016> ___ ___ Python

[issue3811] Update Unicode database to 5.1.0

2008-09-10 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: #66363 breaks test_unicode and test_format on 3.0. -- nosy: +ajaksu2 versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3844] Script: find untested C functions

2008-09-11 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: The attached script reports C functions not flexed by unittests. It needs a 'coverage' build and a run of the tests. Coverage data is then passed to gcov and those functions with zero calls written to a text file, groupe

[issue3844] Script: find untested C functions

2008-09-11 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Here's example output of a run against 3.0. The number after a function name is its length in lines (as gcov counts them :). False positives include: ./Objects/weakrefobject.c gc_clear ./Modules/readline.c on_completion_display_m

[issue3321] _multiprocessing.Connection() doesn't check handle

2008-09-12 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3321> ___ ___ Python

[issue1681984] unittest documentation is incomplete

2008-09-12 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1681984> ___ __

[issue3632] use string_print() in gdb

2008-09-12 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: I would love to have this patch, along with those of #3631 and #3610, included in Misc as diffs. This would make it easier to get the improved functionality in a new development box, besides allowing distributions to apply them a

[issue8260] When I use codecs.open(...) and f.readline() follow up by f.read() return bad result

2010-03-30 Thread Daniel Diniz
Daniel Diniz added the comment: Hi Stephane, I think you're seeing different buffering behavior, which I suspect is correct according to docs. codecs.open should default to line buffering[1], while open uses the system default[2]. The read() where the assert fails is returnin

[issue8198] Importing pydoc and overwriting sys.stdout, causes one char to be sent to the console when calling help()

2010-03-30 Thread Daniel Diniz
Daniel Diniz added the comment: Nice buglet, please take a look at Lib/pydoc.py to follow :) As you point out, this is issue 1700304. 'plainpager', which outputs the help in these cases, uses 'sys.stdout.write(plain(text))', but Helper.help has a "self.outp

[issue1700304] pydoc.help samples sys.stdout and sys.stdin at import time

2010-03-30 Thread Daniel Diniz
Daniel Diniz added the comment: >From #8198: I see a solution by turning Helper.output into a property, but it smells of over-engineering :) Passing all output to pagers should work too, unless we need Helper.output as a sort of sys.stderr. -- keywords: +easy nosy: +ajak

[issue6650] sre_parse contains a confusing generic error message

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Thanks for the patch, LGTM assuming we don't need a test for this. Do you think the vague message could be less cryptic for users that didn't want lookbehind (or don't know what it is)? -- nosy: +ajaksu2 priority: -> low stage

[issue6700] inspect.getsource() returns incorrect source lines

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed in trunk and py3k. Also affects inspect.getsourcelines. -- nosy: +ajaksu2 priority: -> normal stage: -> patch review ___ Python tracker <http://bugs.python.org/

[issue6878] outdated docstring in tkinter.Canvas.coords

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: I think the obvious code fix of list(map()) is less likely to cause surprises than updating the docstring to the new map in 3.x. -- keywords: +easy nosy: +ajaksu2 priority: -> low stage: -> needs patch type: ->

[issue7007] Tiny inconsistency in the orthography of "url encoded" in the doc of urllib.parse

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Hits from py3k: Doc/library/urllib.rst:239: Convert a mapping object or a sequence of two-element tuples to a "url-encoded" Doc/library/urllib.rst:263: Convert the path component *path* from an encoded URL to the local syntax for a D

[issue7163] IDLE suppresses sys.stdout.write() return value

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: sys.stdout is a idlelib.rpc.RPCProxy in IDLE. It calls Idlelib.PyShell.PseudoFile.write -> .PyShell.write -> .OutputWindow.OutputWindow.write -> .Percolator.Percolator.insert -> ... I suppose we could mimic the return value patching PseudoFil

[issue7370] patch: BaseHTTPServer reinventing rfc822

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Thanks for the patch. Per issue 2849, use of rfc822 should be gone from the stdlib. Please re-open if you disagree. -- nosy: +ajaksu2 priority: -> normal resolution: -> invalid stage: -> committed/rejected status: open

[issue7425] [PATCH] Improve the robustness of "pydoc -k" in the face of broken modules

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Nice improvement. This would also solve the "help(), modules" brokenness, right? -- nosy: +ajaksu2 priority: -> normal stage: -> test needed type: -> behavior ___ Python tracker <http://bug

[issue7378] unexpected truncation of traceback

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Patch still applies to py3k, not applying cleanly to trunk anymore. Tests pass with patch on py3k. -- nosy: +ajaksu2 priority: -> normal stage: -> patch review ___ Python tracker <http://bugs.python.org/

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: It looks like feed generators need this feature[1]. See also issue 5207 and a current implementation[2]. [1] http://validator.w3.org/feed/docs/error/InvalidRFC3339Date.html [2] http://code.google.com/p/formattime/ -- keywords: +easy nosy: +ajaksu2

[issue7865] io close() swallowing exceptions

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Wouldn't this break code that currently works? -- nosy: +ajaksu2 priority: -> low stage: -> needs patch type: -> behavior versions: -Python 2.5 ___ Python tracker <http://bugs.pyt

[issue7842] py_compile.compile SyntaxError output

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Change went into py3k without tests, do we want them? If so, please update Stage to "test needed". -- nosy: +ajaksu2 priority: -> normal stage: -> patch review ___ Python tracker <http://bugs.p

[issue7943] Memory leak due to circular references in ssl.SSLSocket

2010-04-08 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: -> normal stage: -> test needed ___ Python tracker <http://bugs.python.org/issue7943> ___ ___ Python-bugs-list

[issue7927] SSL socket is not closed properly

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed on trunk. -- nosy: +ajaksu2 priority: -> normal stage: -> test needed versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/

[issue4007] make clean fails to delete .a and .so.X.Y files

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Skip, was there a patch here? I can't find it in the bug lists, so I think we both missed it? Pinging Martin in case the tracker ate the patch :) -- nosy: +ajaksu2, loewis stage: -> needs patch versions: +Python 2.7, Py

[issue8026] strftime bug when timedelta is negative

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed on trunk, needs a simpler repro :) -- components: +Library (Lib) -None nosy: +ajaksu2 priority: -> normal stage: -> test needed versions: +Python 2.6, Python 2.7 -Python 2.5 ___ Python tracker

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-13 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: unit test needed -> patch review ___ Python tracker <http://bugs.python.org/issue7559> ___ ___ Python-bugs-list mai

[issue8370] change module "builtins" to "__builtin__" in __import__ documentation

2010-04-13 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: -> normal stage: -> patch review ___ Python tracker <http://bugs.python.org/issue8370> ___ ___ Python-bugs-list

[issue8297] AttributeError message text should include module name

2010-04-13 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +ajaksu2 stage: unit test needed -> patch review ___ Python tracker <http://bugs.python.org/issue8297> ___ ___ Python-

[issue2536] itertools.permutations docstring is misleading

2008-04-02 Thread Daniel Diniz
New submission from Daniel Diniz <[EMAIL PROTECTED]>: Currently, Modules/itertoolsmodule.c lines 2471-2475 are: PyDoc_STRVAR(permutations_doc, "permutations(iterables[, r]) --> permutations object\n\ \n\ Return successive r-length permutations of elements in the iterable.\n\n

[issue2525] class USTimeZone in Doc/includes/tzinfo-examples.py is out of date

2008-04-02 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: This patch updates the behavior as per "The Energy Policy Act of 2005": Start: Second Sunday in March End: First Sunday in November Time: 2 am local time -- keywords: +patch nosy: +ajaksu2

[issue2210] Nested module import clutters package namespace

2008-04-02 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Not a bug IMHO, but a gotcha. Change x.py to "from pack import y as q" and you get the desired result. Check http://effbot.org/zone/import-confusion.htm -- nosy: +ajaksu2 __ Tracker &

[issue2534] Speed up isinstance and issubclass

2008-04-02 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: The test fails on this: def g(): try: return g() except ValueError: return -1 self.assertRaises(RuntimeError, g) Changing that "return -1" to "return sys.exc_info()" shows that a RuntimeErr

[issue2525] class USTimeZone in Doc/includes/tzinfo-examples.py is out of date

2008-04-02 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: That was a such silly mistake, sorry :) Updated patch tries to keep the old behavior, but I just found out it's mostly wrong too (DST start and end days changed a bit in the last 80 years). >From http://aa.usno.nav

[issue2525] class USTimeZone in Doc/includes/tzinfo-examples.py is out of date

2008-04-02 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Er... 2007- : from the second Sunday in March to the first Sunday in November. :/ __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2525] class USTimeZone in Doc/includes/tzinfo-examples.py is out of date

2008-04-02 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9926/tzinfo-examples.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2534] Speed up isinstance and issubclass

2008-04-02 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Thomas: I confirm your patch triggers this behavior. I can reliably get a __subclasscheck__ error by trying to "import sys" after the bogus catching happens: >>> def g(): ... try: ... return g() ... except V

[issue2542] PyErr_ExceptionMatches must not fail

2008-04-03 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: The tests pass and prints the ignores. But I still see an issue: import sys def g(): try: return g() except: return sys.exc_info() >>> g() (, 'maximum recursion depth exceeded while cal

[issue2548] Undetected error in exception handling

2008-04-04 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2548> __ ___ Python-bugs-list mailing

[issue2525] class USTimeZone in Doc/includes/tzinfo-examples.py is out of date

2008-04-05 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: New patch. I added the new rule and changed the old behavior to be wrong (a bit) less often. It may mess with code that depended on the previous wrong results. Given the (AFAIK) exemplificative nature of this file, this should not be

[issue508157] urllib.urlopen results.readline is slow

2008-04-05 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Well, this issue is still hurting performance, the most recent example was with a developer of a download manager. I suggest adding a buffer size argument to HTTPResponse.__init__ (defaulting to zero), along with docs that explain the pr

[issue2548] Undetected error in exception handling

2008-04-06 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: I've identified rev58032 [1] as the one introducing this issue. It's Brett's code, fixing a nasty crasher and adding a pre-built exception (PyExc_RecursionErrorInst). [1] http://svn.python.org/view?rev=58032&view=rev

[issue2525] class USTimeZone in Doc/includes/tzinfo-examples.py is out of date

2008-04-07 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Changed the local dststart, dstend variables to lowercase, "dates" to "times" (in "find start and end times") and the diff was created from trunk/ this time (as opposed to trunk/Doc/includes/). Added f

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2008-04-07 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: I don't think it should stop using raw_input just because you changed stdin, as you can change it to something that will work with raw_input. Consider: >>> import sys >>> sys.stdin = open("/dev/tty") >&

[issue2576] httplib read() very slow due to lack of socket buffer

2008-04-07 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: The code patch is trivial. I believe it needs docs (both explaining how to use and warning against the problems it may cause), a NEWS entry and tests (at least to check what happens when an invalid value lands). I can work on those chan

[issue1285086] urllib.quote is too slow

2008-04-08 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: This is what I found doing some timings: For the short-circuit path, the regexp can make quote 10x as fast in exceptional cases, even comparing to the faster version in trunk. The average win for short-circuit seems to be twice as fast

[issue2576] httplib read() very slow due to lack of socket buffer

2008-04-08 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: "The code patch is trivial", he said, only to find out it was not :) Facundo, thanks in advance for taking a look at this! This patch tries to implement, document and test an optional argument to HTTPConnection, wh

[issue902061] pydoc insists upon producing file: URLs

2008-04-12 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- versions: +Python 2.6 Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue902061> ___ Python-bugs

[issue2600] BindingHTTPConnectionWithTimeout and BindingHTTPHandlerWithTimeout

2008-04-12 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- versions: +Python 2.6 -Python 2.4, Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2600> __ _

[issue836088] Update htmllib to HTML 4.01

2008-04-12 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- versions: +Python 2.6 -Python 2.5 Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue836088> __

[issue2576] httplib read() very slow due to lack of socket buffer

2008-04-12 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Also reported in #1542407 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2576> __ ___ Python-bugs

[issue1156280] cmd.Cmd().cmdloop() can't read from file

2008-04-12 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Superseded by #2571 The user can change cmd.Cmd.use_rawinput to False and get the desired behaviour. -- nosy: +ajaksu2 _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1721241] code that writes the PKG-INFO file doesnt handle unicode

2008-04-12 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: Currently tracked in #2562 -- nosy: +ajaksu2 versions: +Python 2.6 _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

  1   2   3   4   5   6   7   8   9   10   >