[issue9183] Intern UTC timezone

2010-07-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Updated issue9183a.diff patch combines C and Python code changes since datetime.py is now in stdlib. Does anyone want to review before it goes in? -- components: +Library (Lib) resolution: -> accepted Added file: http://bugs.python.

[issue9183] Intern UTC timezone

2010-07-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +fdrake ___ Python tracker <http://bugs.python.org/issue9183> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9051] Improve pickle format for aware datetime instances

2010-07-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Intern UTC timezone ___ Python tracker <http://bugs.python.org/issue9051> ___ ___ Python-bugs-list mailin

[issue3173] external strftime for Python?

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Jul 28, 2010 at 11:22 PM, Guido van Rossum wrote: .. > What about the licensing? That look like the BSD license *with* > advertising clause... > I am not a lawyer and I am not intimately familiar with PSF policies, but this license does

[issue9410] Add Unladden Swallow's optimizations to Python 3's pickle.

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: For those not familiar with Unladen Swallow, can you describe what the "most interesting optimizations" are? Maybe there is an Unladen Swallow document you can point to. Would any of these optimizations apply to python impl

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This was discussed in issue1545463 which was deemed not to be worth fixing. The particular bug described in issue1545463 would also be fixed by the still open issue812369. So yes, there are cases where these cycles are a problem even with gc

[issue3873] Unpickling is really slow

2010-07-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue3873> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I wonder if complex addition/subtraction should preserve -0.0 when it is added to a purely imaginary number. I.e., >>> -0.0+1j (-0+1j) -- nosy: +belopolsky ___ Python tracker <http://bug

[issue9315] The trace module lacks unit tests

2010-07-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Eli, Thanks a lot for your continuing effort. I would like to check in your work before any further enhancement. Please find a reasonable stop point and post a commit ready patch preferably with a news file entry describing the bug that is fixed

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2010-07-30 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +georg.brandl ___ Python tracker <http://bugs.python.org/issue9325> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9428] profile.py bug with the main file being profiled

2010-07-30 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Attached patch, profile-run.diff, fixes the same bug as in issue9323, only in the profile rather than the trace module. Even though the affected code is small, it may be a good idea to share it between the trace and profile modules as well as unify

[issue9264] trace.py documentation is incomplete

2010-07-30 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue9264> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9315] The trace module lacks unit tests

2010-07-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Eli, Did you attach a wrong file? New issue9315.1.patch looks the same as old issue9315.1.patch. -- ___ Python tracker <http://bugs.python.org/issue9

[issue9429] 2to3 does not rename test.test_support to test.support

2010-07-30 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Even though test.support is an internal module, it is helpful to have a 2to3 fixer for the 'test_support' to 'support' rename. My naive attempt to add a fix (see patch pasted below), worked for "from test import test_sup

[issue9430] Document str() and repr() of timedelta.

2010-07-30 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Attaching a tentative patch. I think it is better to document these as operations rather than special methods. It may need to be clarified that "-2 days, 0:00:22" is timedelta(-2, 22) rather than -timedelta(2, 22), but I cannot co

[issue9430] Document str() and repr() of timedelta.

2010-07-30 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue9430> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9430] Document str() and repr() of timedelta.

2010-07-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: First revision: issue9430.diff -- Added file: http://bugs.python.org/file18278/issue9430.diff ___ Python tracker <http://bugs.python.org/issue9

[issue9315] The trace module lacks unit tests

2010-07-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Eli, I was about to commit issue9315.3.patch, which is a lightly modified version of issue9315.2.patch, but it turned out that test_trace cannot be run by regrtest.py: $ ./python.exe Lib/test/regrtest.py test_trace test_trace test test_trace failed

[issue9315] The trace module lacks unit tests

2010-07-30 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file18279/issue9315.3.patch ___ Python tracker <http://bugs.python.org/issue9315> ___ ___ Python-bug

[issue9315] The trace module lacks unit tests

2010-07-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file18293/issue9315.3.patch ___ Python tracker <http://bugs.python.org/issue9315> ___ ___ Python-bug

[issue9315] The trace module lacks unit tests

2010-07-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file18279/issue9315.3.patch ___ Python tracker <http://bugs.python.org/issue9315> ___ ___ Python-bug

[issue9315] The trace module lacks unit tests

2010-07-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker <http://bugs.python.org/issue9315> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9315] The trace module lacks unit tests

2010-07-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching updated patches for py3k and release27-maint branches. Unfortunately I cannot commit them as is. When I run make test, I still get some strange failures. Eli, Why do you need to generated fakemodule inside test_trace? Why not take

[issue9315] The trace module lacks unit tests

2010-07-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file18304/issue9315.4-p3k.patch ___ Python tracker <http://bugs.python.org/issue9315> ___ ___ Pytho

[issue9441] increase logging handlers test coverage

2010-08-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I noticed that you use timedelta.total_seconds in secs which returns a float while no test covers fractional number of seconds. While not a problem with your choice of tests, equality comparison of floating point values commonly leads to fragile tests

[issue8078] add more baud constants to termios

2010-08-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +easy ___ Python tracker <http://bugs.python.org/issue8078> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8994] pydoc does not support non-ascii docstrings

2010-08-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Library (Lib) ___ Python tracker <http://bugs.python.org/issue8994> ___ ___ Python-bugs-list mailing list Unsub

[issue9276] pickle should support methods

2010-08-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Not a proposed solution, but food for thought. Methods do have __reduce_ex__ method which works with protocol 3: >>> class X: ... def f(self): ... pass >>> X.f.__reduce_ex__(3) (, (,), {}, None, None) This result is useless f

[issue9315] The trace module lacks unit tests

2010-08-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: While it may be instructive to get to the bottom of what causes this behavior, I believe the right thing to do is to simply place traced code in a separate file in the test directory. Faking a module by manipulating sys.modules is hard to make robust

[issue9315] The trace module lacks unit tests

2010-08-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Aug 1, 2010 at 11:05 PM, Eli Bendersky wrote: .. > The fake module was the least intrusive way I could think of to simulate > stuff for trace.py - > it's a scalable approach if I'll need more than one module in the future

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Aug 2, 2010 at 9:25 AM, Marc-Andre Lemburg wrote: .. >> You can *already* trick unpickling code into executing serialized code.  You >> don't need > this feature in order to be able to do it. > > How ? > >>&g

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker <http://bugs.python.org/issue9276> ___ ___ Python-bugs-list mailin

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Aug 2, 2010 at 10:05 AM, Marc-Andre Lemburg wrote: .. > Without the definition of class x on the receiving side, there > would be no exploit. You are mistaken. Try adding del x (or del evil in my example) between dumps and loads and

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Aug 2, 2010 at 10:11 AM, Marc-Andre Lemburg wrote: .. > Hmm, I just tried the code and it seems that you're right: > > The pickle string does not contain a reference to class x, > but only the name of the function to call. W

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Aug 2, 2010 at 10:32 AM, Jean-Paul Calderone wrote: > > Jean-Paul Calderone added the comment: > >> I also like Antoine's idea of pickling the function/method name instead of >> the whole code object. > > I like

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I'll try to meet the deadline. :-) -- ___ Python tracker <http://bugs.python.org/issue9264> ___ ___ Python-bugs-l

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Oh, this is not assigned to me. Terry, do you need help with this? -- ___ Python tracker <http://bugs.python.org/issue9

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in release26-maint, r83549, to beat the rc1 deadline. I'll comment on a few improvements that we can do for 3.x later. Eli, I needed to fix white space issues in your patch before committing. Please run make patchcheck on your ch

[issue1170] shlex have problems with parsing unicode

2010-08-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't like my patch anymore because it breaks code that manipulates public wordchars attribute. Users may want to set it to their own alphabet or append additional characters to the default list. Maybe wordchars should always be "

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2010-08-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is clearly an invalid issue for python, but I wanted to keep it open until I or someone else gets a chance to report it to numpy project. I was hoping to close this with a link to numpy tracker

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2010-08-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Terry, Realistically, though, if you close this issue it is virtually guaranteed that not further action will be taken. I have not been involved with numpy for a couple of years now, so it would take me some time to find their tracker and restore my

[issue2651] Strings passed to KeyError do not round trip

2010-08-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Unassigning because others seem to be ahead of me reviewing this patch. I will keep an eye on this, though. Please note that I marked issue #614557 to depend on this one. Adding 'key' attribute to exceptions is the subject of that issue

[issue614557] LookupError etc. need API to get the key

2010-08-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: belopolsky -> ___ Python tracker <http://bugs.python.org/issue614557> ___ ___ Python-bugs-list mailing list Un

[issue9079] Make gettimeofday available in time module

2010-08-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Updated the patch to reflect recent datetimemodule.c renaming to _datetimemodule.c. No other changes between issue9079b.diff and issue9079c.diff. I am going to commit issue9079c.diff soon unless someone wants more time to review. -- Added

[issue9079] Make gettimeofday available in time module

2010-08-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed issue9079c.diff as r83744. This commit does not provide time.gettimeofday() and therefore does not close the issue. -- keywords: -needs review, patch stage: commit review -> needs patch ___ Pyt

[issue9315] The trace module lacks unit tests

2010-08-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Eli, Are you still working on this? Please note that Georg committed "beginnings of a trace.py unittest" in r83527, so your tests will need to be merged with his. -- nosy: +georg.brandl ___ Pyth

[issue9315] The trace module lacks unit tests

2010-08-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Aug 5, 2010 at 2:04 PM, Eli Bendersky wrote: .. > Georg, > > Are you having plans for writing comprehensive tests for the module, or is > this just a placeholder? I think I can answer for Georg (subject to being corrected, of cours

[issue9527] Add aware local time support to datetime module

2010-08-05 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : See python-dev post for motivation. http://mail.python.org/pipermail/python-dev/2010-August/102842.html I am attaching a patch implementing the proposed method in datetime.py. I will also paste the code below. Note that this is only prototype

[issue2736] datetime needs an "epoch" method

2010-08-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- superseder: -> Add aware local time support to datetime module ___ Python tracker <http://bugs.python.org/issue2736> ___ _

[issue1647654] No obvious and correct way to get the time zone offset

2010-08-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- superseder: -> Add aware local time support to datetime module ___ Python tracker <http://bugs.python.org/issue1

[issue9527] Add aware local time support to datetime module

2010-08-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Merging nosy lists from issues #1647654 and #2736. If datetime.localtime() is implemented, I argue that the features requested in these two issues will become unnecessary. -- nosy: +Neil Muller, amaury.forgeotdarc, andersjm, catlee

[issue9528] Add pure Python implementation of time module to CPython

2010-08-05 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The original RFE at issue 7989 was: """ After discussion on numerous issues, python-dev, and here at the PyCon sprints, it seems to be a good idea to move timemodule.c to _timemodule.c and convert as much as possible into pure Python.

[issue9528] Add pure Python implementation of time module to CPython

2010-08-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Aug 6, 2010 at 3:44 AM, Marc-Andre Lemburg wrote: .. > Why are you calling the ticket "*Add* pure Python implementation of time > module to CPython" when you appear to be after *replacing* the C > implementation of the time m

[issue9315] The trace module lacks unit tests

2010-08-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Comments on issue9315.27-maint.5.patch: 1. I think you forgot to svn add Lib/test/__init__.py. 2. Instead of "import tracedmodules.testmod", please use something like "from test.tracedmodules import testmod". There is no need to u

[issue9264] trace.py documentation is incomplete

2010-08-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The fixed up version is just r83549. It may merge cleanly with py3k - I believe doc changes are trivial if any between 2.6 and 3.x. I would like this to go through another round of reviews without release calendar pressure. I would like to see some

[issue9323] trace.py bug with the main file being traced

2010-08-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Reopening because I think this fix is responsible for a new problem: $ ./python.exe -m trace -C. -s -c Lib/test/regrtest.py Traceback (most recent call last): ... File "Lib/test/regrtest.py", line 1458, in assert __file__ == os.pa

[issue8685] set(range(100000)).difference(set()) is slow

2010-08-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Andrew, This issue is somewhat similar to issue8425. I may be reading too much into the "priority" field, but it looks like Raymond would like to review #8425 first. You can help by commenting on how the two issues relate to each other.

[issue8834] Define order of Misc/ACKS entries

2010-08-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in release27-maint branch in r83893. I am not sure this belongs in 2.6 and there is a small practical problem with the merge due to Latin-1 encoding used in the 2.6 version. I am also not sure whether keeping separate 2.x and 3.x versions

[issue8834] Define order of Misc/ACKS entries

2010-08-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Aug 9, 2010 at 2:16 PM, Terry J. Reedy wrote: .. > I am surprised that there are separate lists. I thought there was just one > which distributions grabbed when made. I don't think this is intentional. More likely com

[issue665761] reduce() masks exception

2010-08-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file18453/issue665761-release27.diff ___ Python tracker <http://bugs.python.org/issue665761> ___ ___

[issue8834] Define order of Misc/ACKS entries

2010-08-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r83937 (py3k) and r83938 (release31-maint). The py3k version is now a superset of the lists in the maintenance branches. I don't want to generate any more commit traffic by bringing all branches in sync. I'll leave it t

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2016-12-01 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: Python 3.7.0a0 (default:be70d64bbf88, Dec 1 2016, 21:21:25) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>

[issue29024] Add Kivy entry to Graphic User Interface FAQ

2016-12-20 Thread Alexander Taylor
Changes by Alexander Taylor : -- assignee: docs@python components: Documentation files: gui_faq_kivy.patch keywords: patch nosy: docs@python, inclement priority: normal severity: normal status: open title: Add Kivy entry to Graphic User Interface FAQ type: enhancement versions: Python

[issue29024] Add Kivy entry to Graphic User Interface FAQ

2016-12-20 Thread Alexander Taylor
Changes by Alexander Taylor : -- type: enhancement -> ___ Python tracker <http://bugs.python.org/issue29024> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue29097] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2016-12-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I think we should just clip the negative lower probe value to 0 on Windows before passing it to local(). Also, if we still care about platforms with 32-bit time_t, we should check for over/under flow *before* calling local

[issue29159] Regression in bytes constructor

2017-01-04 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: Consider the following code: $ cat bug.py from array import array class C(array): def __new__(cls): return array.__new__(cls, 'B', b'abc') def __index__(self): raise TypeError x = C() print(bytes(x)) It wo

[issue29159] Regression in bytes constructor

2017-01-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: My test code may seem contrived, but numpy arrays exhibit similar behavior: >>> a = numpy.array([2, 2]) >>> bytes(a) Traceback (most recent call last): File "", line 1, in TypeError: only integer arrays with one element

[issue29159] Regression in bytes constructor

2017-01-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't think we should put too much effort into preserving numpy behavior. Consider this python 3.5 session: >>> import numpy >>> a = numpy.array([1]) >>> bytes(a) __main__:1: VisibleDeprecationWarning: converting an

[issue29159] Regression in bytes constructor

2017-01-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +ncoghlan ___ Python tracker <http://bugs.python.org/issue29159> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29159] Regression in bytes constructor

2017-01-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Also relevant: * #20895 - Add bytes.empty_buffer and deprecate bytes(17) for the same purpose * PEP 467 - Minor API improvements for binary sequences -- ___ Python tracker <http://bugs.python.

[issue29159] Regression in bytes constructor

2017-01-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Inada, Can you explain what your patch does? I don't understand why you single out the OverflowError. When is __index__ expected to raise it? >>> (2**

[issue29159] Regression in bytes constructor

2017-01-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: @inada.naoki Sorry, I still don't understand the role of OverflowError. With respect to my earlier suggestion that buffer protocol should have priority over __index__, note that the documentation implies the same order: >>> help(bytes

[issue29159] Regression in bytes constructor

2017-01-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On the other hand, the documentation for the bytearray constructor [1] lists integer argument first. [1]: https://docs.python.org/3/library/functions.html#bytearray -- ___ Python tracker <h

[issue28130] Document that time.tzset updates time module globals

2017-01-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in ec3b08b361c0. Thanks, Greg. Leaving open until 2.7 docs are fixed as well. -- resolution: -> fixed stage: -> resolved versions: +Python 2.7 -Python 3.6 ___ Python tracker

[issue28130] Document that time.tzset updates time module globals

2017-01-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: closed -> open ___ Python tracker <http://bugs.python.org/issue28130> ___ ___ Python-bugs-list mailing list Un

[issue29302] add contextlib.AsyncExitStack

2017-01-17 Thread Alexander Mohr
New submission from Alexander Mohr: ExitStack is a really useful class and would be a great to have an async version. I've gone ahead and created an implementation based on the existing Python 3.5.2 implementation. Let me know what you guys think. I think it would be possible to co

[issue29346] datetime.utcfromtimestamp() returns strange result for very large values

2017-01-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This looks like a duplicate of issue #29100 ("datetime.fromtimestamp() doesn't check min/max year anymore: regression of Python 3.6"). -- keywords: +3.6regression nosy: +haypo ___ Python

[issue29302] add contextlib.AsyncExitStack

2017-01-27 Thread Alexander Mohr
Changes by Alexander Mohr : Removed file: http://bugs.python.org/file46322/exit_stack.py ___ Python tracker <http://bugs.python.org/issue29302> ___ ___ Python-bugs-list m

[issue29302] add contextlib.AsyncExitStack

2017-01-27 Thread Alexander Mohr
Alexander Mohr added the comment: created gist: https://gist.github.com/thehesiod/b8442ed50e27a23524435a22f10c04a0 I've now updated the imple to support both __aenter__/__aexit__ and __enter__/__exit__ so I don't need two ExitStacks --

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-01-31 Thread Alexander Mohr
New submission from Alexander Mohr: with the attached code note how HttpClient.connection_lost callback is never called for the madis server. The madis server is an apache server, I tried with the OSX apache server and could not reproduce the issue so it seems something particular about their

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-01-31 Thread Alexander Mohr
Changes by Alexander Mohr : Removed file: http://bugs.python.org/file46469/scratch_1.py ___ Python tracker <http://bugs.python.org/issue29406> ___ ___ Python-bugs-list m

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-01-31 Thread Alexander Mohr
Alexander Mohr added the comment: updating to make default the error case (madis) -- Added file: http://bugs.python.org/file46470/scratch_1.py ___ Python tracker <http://bugs.python.org/issue29

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-02-01 Thread Alexander Mohr
Alexander Mohr added the comment: Thanks so much for the patch! may want to change spelling of what was supposed to be "shutdown" =) Also think it's worth a comment stating why it's needed? Like certain Apache servers were noticed to not complete the

[issue29547] Add c code coverage to codecov

2017-02-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: I had it done in my fork of cpython-mirror: https://github.com/abalkin/cpython/tree/ci -- assignee: belopolsky components: Tests messages: 287710 nosy: belopolsky priority: normal severity: normal status: open title: Add c code coverage to

[issue22087] asyncio: support multiprocessing (support fork)

2017-02-21 Thread Alexander Mohr
Alexander Mohr added the comment: I believe this is now worse due to https://github.com/python/asyncio/pull/452 before I was able to simply create a new run loop from sub-processes however you will now get the error "Cannot run the event loop while another loop is running". The st

[issue29673] Some gdb macros are broken in 3.6

2017-02-27 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: Some gdb macros defined in Misc/gdbinit got broken when _PyUnicode_AsString was renamed to PyUnicode_AsUTF8. (gdb) pystack No symbol "_PyUnicode_AsString" in current context. -- messages: 288684 nosy: belopolsky priority: norma

[issue29673] Some gdb macros are broken in 3.6

2017-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I tried to simply replace _PyUnicode_AsString with PyUnicode_AsUTF8, but it looks like code structure has changed and the pyframe and pystack macros don't work anymore. -- ___ Python tracker

[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: Printing the backtrace in gdb results in Python errors: (gdb) bt ... #6 0x77ba9745 in _PyEval_EvalCodeWithName (_co=, globals=Traceback (most recent call last): File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 1358, in

[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue29680> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- pull_requests: +308, 309 ___ Python tracker <http://bugs.python.org/issue29680> ___ ___ Python-bugs-list mailing list Unsub

[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- pull_requests: +308 ___ Python tracker <http://bugs.python.org/issue29680> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-02-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Demos and Tools stage: -> patch review ___ Python tracker <http://bugs.python.org/issue29680> ___ ___ Python-

[issue29302] add contextlib.AsyncExitStack

2017-03-01 Thread Alexander Mohr
Alexander Mohr added the comment: Thanks for the feedback Nick! If I get a chance I'll see about refactoring my gist into a base class and two sub-classes with the async supporting non-async but not vice-versa. I think it will be cleaner. Sorry I didn't spend too much effort on th

[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor, the gdb commit that you mentioned introduced gdb.GdbError which is different from gdb.error. [1] The correct commit is 621c83642d17cf523c20f55f2ed945a7ec95ea6a. [2] [1] https://sourceware.org/gdb/current/onlinedocs/gdb/Exception-Handling.html

[issue22232] str.splitlines splitting on non-\r\n characters

2016-05-31 Thread Alexander Schrijver
Alexander Schrijver added the comment: This diff updates the cpython (tip) documentation to document the different behaviour when using splitlines on bytes objects or string objects. -- keywords: +patch nosy: +Alexander Schrijver Added file: http://bugs.python.org/file43071

[issue22232] str.splitlines splitting on non-\r\n characters

2016-05-31 Thread Alexander Schrijver
Alexander Schrijver added the comment: This diff synchronizes the cpython 2.7 with that from 3.5 and also describes the difference between bytes objects and unicode objects (from the other diff) -- Added file: http://bugs.python.org/file43072/cpython3.5_splitlines.diff

[issue22232] str.splitlines splitting on non-\r\n characters

2016-05-31 Thread Alexander Schrijver
Alexander Schrijver added the comment: Oops, wrong diff. Sorry, this is the correct one for 2.7. -- Added file: http://bugs.python.org/file43075/cpython2.7_splitlines.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22232] str.splitlines splitting on non-\r\n characters

2016-06-01 Thread Alexander Schrijver
Alexander Schrijver added the comment: I appeared to have missed the reference to that issue when I read this issue the first time. Re-opening that issue makes sense to me. -- ___ Python tracker <http://bugs.python.org/issue22

[issue22797] urllib.request.urlopen documentation falsely guarantees that a URLError will be raised on errors

2016-06-02 Thread Alexander Liu
Alexander Liu added the comment: Fixed the docs to specifically note that only protocol related errors raise the UrlError exception. -- nosy: +alex_thebear versions: +Python 3.6 -Python 3.4 Added file: http://bugs.python.org/file43131/urlopen_doc.patch

[issue15657] Error in Python 3 docs for PyMethodDef

2016-06-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue15657> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    30   31   32   33   34   35   36   37   38   39   >