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.
Changes by Alexander Belopolsky :
--
nosy: +fdrake
___
Python tracker
<http://bugs.python.org/issue9183>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alexander Belopolsky :
--
dependencies: +Intern UTC timezone
___
Python tracker
<http://bugs.python.org/issue9051>
___
___
Python-bugs-list mailin
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
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
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
Changes by Alexander Belopolsky :
--
nosy: +belopolsky
___
Python tracker
<http://bugs.python.org/issue3873>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Alexander Belopolsky :
--
nosy: +georg.brandl
___
Python tracker
<http://bugs.python.org/issue9325>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Alexander Belopolsky :
--
nosy: +belopolsky
___
Python tracker
<http://bugs.python.org/issue9264>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Changes by Alexander Belopolsky :
--
nosy: +pitrou
___
Python tracker
<http://bugs.python.org/issue9430>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Alexander Belopolsky :
Added file: http://bugs.python.org/file18279/issue9315.3.patch
___
Python tracker
<http://bugs.python.org/issue9315>
___
___
Python-bug
Changes by Alexander Belopolsky :
Added file: http://bugs.python.org/file18293/issue9315.3.patch
___
Python tracker
<http://bugs.python.org/issue9315>
___
___
Python-bug
Changes by Alexander Belopolsky :
Removed file: http://bugs.python.org/file18279/issue9315.3.patch
___
Python tracker
<http://bugs.python.org/issue9315>
___
___
Python-bug
Changes by Alexander Belopolsky :
--
___
Python tracker
<http://bugs.python.org/issue9315>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
Changes by Alexander Belopolsky :
Added file: http://bugs.python.org/file18304/issue9315.4-p3k.patch
___
Python tracker
<http://bugs.python.org/issue9315>
___
___
Pytho
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
Changes by Alexander Belopolsky :
--
keywords: +easy
___
Python tracker
<http://bugs.python.org/issue8078>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alexander Belopolsky :
--
components: +Library (Lib)
___
Python tracker
<http://bugs.python.org/issue8994>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
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
Changes by Alexander Belopolsky :
--
nosy: +alexandre.vassalotti, pitrou
___
Python tracker
<http://bugs.python.org/issue9276>
___
___
Python-bugs-list mailin
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
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
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
Alexander Belopolsky added the comment:
I'll try to meet the deadline. :-)
--
___
Python tracker
<http://bugs.python.org/issue9264>
___
___
Python-bugs-l
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
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
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
"
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
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
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
Changes by Alexander Belopolsky :
--
assignee: belopolsky ->
___
Python tracker
<http://bugs.python.org/issue614557>
___
___
Python-bugs-list mailing list
Un
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
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
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
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
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
Changes by Alexander Belopolsky :
--
superseder: -> Add aware local time support to datetime module
___
Python tracker
<http://bugs.python.org/issue2736>
___
_
Changes by Alexander Belopolsky :
--
superseder: -> Add aware local time support to datetime module
___
Python tracker
<http://bugs.python.org/issue1
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
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.
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
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
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
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
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.
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
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
Changes by Alexander Belopolsky :
Added file: http://bugs.python.org/file18453/issue665761-release27.diff
___
Python tracker
<http://bugs.python.org/issue665761>
___
___
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
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.
>>>
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
Changes by Alexander Taylor :
--
type: enhancement ->
___
Python tracker
<http://bugs.python.org/issue29024>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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
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
Changes by Alexander Belopolsky :
--
nosy: +ncoghlan
___
Python tracker
<http://bugs.python.org/issue29159>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
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**
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
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
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
Changes by Alexander Belopolsky :
--
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue28130>
___
___
Python-bugs-list mailing list
Un
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
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
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
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
--
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
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
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
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
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
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
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
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
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
Changes by Alexander Belopolsky :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue29680>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alexander Belopolsky :
--
pull_requests: +308, 309
___
Python tracker
<http://bugs.python.org/issue29680>
___
___
Python-bugs-list mailing list
Unsub
Changes by Alexander Belopolsky :
--
pull_requests: +308
___
Python tracker
<http://bugs.python.org/issue29680>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alexander Belopolsky :
--
components: +Demos and Tools
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issue29680>
___
___
Python-
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
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
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
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
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
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
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
Changes by Alexander Belopolsky :
--
nosy: +belopolsky
___
Python tracker
<http://bugs.python.org/issue15657>
___
___
Python-bugs-list mailing list
Unsubscribe:
3401 - 3500 of 4097 matches
Mail list logo