New submission from Vajrasky Kok:
ethan@amiau:~/Documents/code/python/cpython3.4$ cat
Lib/test/test_asyncio/tests.txt
test_asyncio.test_base_events
test_asyncio.test_events
test_asyncio.test_futures
test_asyncio.test_locks
test_asyncio.test_proactor_events
test_asyncio.test_queues
Vajrasky Kok added the comment:
The second is the permanent fix so we don't need to add new test to tests.txt
every time we want to add new test to asyncio test bundle.
--
Added file:
http://bugs.python.org/file34115/permanent_fix_for_executing_test_asyncio_in_bundle.patch
Vajrasky Kok added the comment:
This is the preliminary patch for this bug.
The bug happens because AddressFamily.AF_UNSPEC is 0. Then you have this if
condition:
getattr(object, name, None) or homecls.__dict__[name]
I'll contemplate whether we should add unit test for this or not.
Vajrasky Kok added the comment:
I just realized that Enum member could be None. I'll think how to improve this
patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20654
___
STINNER Victor added the comment:
I prefer to dynamically discover tests, as we do in all other Python tests. I
don't like hardcoded list, it leads to such issue.
@Guido: What do you think?
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset ea4c74cc4da5 by Victor Stinner in branch 'default':
Close #20652: asyncio doc: close the event loop in run_forever() example. Fix
http://hg.python.org/cpython/rev/ea4c74cc4da5
--
nosy: +python-dev
resolution: - fixed
stage: -
STINNER Victor added the comment:
changeset: 89231:ea4c74cc4da5
tag: tip
user:Victor Stinner victor.stin...@gmail.com
date:Mon Feb 17 10:54:30 2014 +0100
files: Doc/library/asyncio-task.rst
description:
Close #20652: asyncio doc: close the event loop in
Xavier de Gaye added the comment:
$ hg log -r tip
changeset: 89198:72f9b6222476
tag: tip
parent: 89195:dcbbff7e6b56
parent: 89197:f45d4823f63c
user:Ezio Melotti ezio.melo...@gmail.com
date:Sat Feb 15 16:59:39 2014 +0200
summary: #19890: merge with 3.3.
Georg Brandl added the comment:
Thanks for the feedback. This was not the latest tip anyway: in the current tip
the checked-out toolchain is gone and your system Sphinx is used.
--
resolution: - out of date
status: open - closed
___
Python tracker
Changes by Masato HASHIMOTO cabezon.hashim...@gmail.com:
--
nosy: +hashimo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16468
___
___
Gareth Rees added the comment:
Sorry about that; here it is. I had second thoughts about recommending zip() as
an alternative (that would only work for cases where the None was constant; in
other cases you might need lambda *args: args, but this seemed too
complicated), so the note now says
Serhiy Storchaka added the comment:
Thank you Zbyszek and Steven for your report and patch, but this was fixed in
issue13107.
--
nosy: +serhiy.storchaka
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - Text width in optparse.py can become
Serhiy Storchaka added the comment:
Just use getattr() without third argument and catch AttributeError.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20654
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
keywords: +easy
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20654
___
New submission from STINNER Victor:
select.select() doesn't work on OpenBSD 64-bit because timeval.tv_sec is a
long, whereas Python uses a time_t.
Attached patch should fix this issue.
--
messages: 211410
nosy: belopolsky, haypo, neologix, rpointel
priority: normal
severity: normal
STINNER Victor added the comment:
Hum, Python 3.3 seems to be also affected. Nobody tried Python 3 on OpenBSD
since at lease Python 3.2?
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20656
Remi Pointel added the comment:
Hi,
I think you forgot to attach the diff.
Python 3.3 is in OpenBSD since 5.4.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20656
___
New submission from STINNER Victor:
OpenBSD has its own collection of patches for Python 3.3:
http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/3.3/patches/
These patches should be merged into Python directly.
--
messages: 211413
nosy: haypo, rpointel
priority: normal
severity:
STINNER Victor added the comment:
I think you forgot to attach the diff.
Oops.
Python 3.3 is in OpenBSD since 5.4.
So you should work more with upstream (Python) ;-) = see issue #20657
--
keywords: +patch
Added file: http://bugs.python.org/file34118/pytime_objectotimeval.patch
New submission from daniel hahler:
posix.unsetenv fails to clear the environment if there's an entry with an empty
key.
TEST CASE:
Python 2.7.6 (default, Jan 6 2014, 17:05:19)
[GCC 4.8.1] on linux2
Type help, copyright, credits or license for more information.
import os
New submission from the mulhern:
The problems is that it is quite possible to define a property using @property
in a class and then later to realize that it really ought to be a class method,
not an instance method. But then, if you change it to a class method, using
@classmethod annotation,
the mulhern added the comment:
Yes. I'ld check if it was a string or a regex object...there is already code
that converts the string to a regular expression in there.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20145
Vajrasky Kok added the comment:
Here is the second preliminary patch. I'll think about the way to avoid
dependency to socket module.
--
Added file:
http://bugs.python.org/file34119/pydoc_display_enum_member_value_0.patch
___
Python tracker
Vajrasky Kok added the comment:
Here is the second patch, avoiding dependency to socket.AddressFamily (though
it adds dependency to enum library) in test.
--
Added file:
http://bugs.python.org/file34120/pydoc_display_enum_member_value_0_v2.patch
Barry A. Warsaw added the comment:
On Feb 17, 2014, at 07:03 AM, Serhiy Storchaka wrote:
Currently enums are pickled by values. It means that if the value of enum is
platform depending, pickling one enum you can unpickle other enum on other
platform.
It's probably a good idea to pickle by
New submission from mythsmith:
I seems that upon the start of a second manager, all objects referenced in the
first one gets an INCREF. On the third start, all objects created by the first
and the second manager get another INCREF. And so on. I cannot understand why
the start of a totally new
Larry Hastings added the comment:
Yeah, I considered getting fussy about you didn't follow instructions. But
this actually is better for me, as it means I can apply the patches in
chronological order.
Like Guido said, I intend to be permissive when it comes to asyncio for 3.4.0.
I'm
New submission from Georg Brandl:
3.4 cherry-pick: eef7899ea7ab use system doc toolchain instead of checking out
of svn
--
assignee: larry
messages: 211423
nosy: georg.brandl, larry
priority: release blocker
severity: normal
status: open
title: 3.4 cherry-pick: eef7899ea7ab use system
Changes by Benjamin Peterson bp+pyb...@benjamin-peterson.org:
--
assignee: - larry
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20619
___
Changes by Benjamin Peterson bp+pyb...@benjamin-peterson.org:
--
nosy: +benjamin.peterson, georg.brandl
priority: high - release blocker
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
Changes by Benjamin Peterson bp+pyb...@benjamin-peterson.org:
--
assignee: - larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20594
___
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17899
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
The fix itself looks good, but the test can be better. You write temporary file
in current directory. this can fail for different reasons, Python can crash and
left undeleted file, this file can overwrite existing file. The render_doc()
function is last
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18352
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
Interesting, that the documentation for AddressFamily (unlike to SocketType)
isn't generated in html doc. May be this is unrelated issue, but if this is
related, it would be good to fix it too. Otherwise it needs separate issue.
--
New submission from Serhiy Storchaka:
Pydoc doesn't escape parameter defaults in generated html files. For example
for the socket.__init__() method in the socket module following html code is
generated:
dldta name=socket-__init__strong__init__/strong/a(self,
family=AddressFamily.AF_INET: 2,
Benjamin Peterson added the comment:
1. You removed the note about files being on the same filesystem on Unix.
That's useful.
2. I don't think it needs to be mentioned that you'll get an error if *src*
doesn't exist.
3. The table is strange because the destination header spans 2 columns, while
Guido van Rossum added the comment:
Please apply the fix and make sure it gets cherry-picked.
I agree on dynamic test recovery but don't find it a high priority.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20655
Serhiy Storchaka added the comment:
To pickle by value, the subclass needs only restore current implementation of
__reduce_ex__():
def __reduce_ex__(self, proto):
return self.__class__, (self.value,)
--
___
Python tracker
New submission from Ram Rachum:
See discussion:
https://groups.google.com/forum/#!searchin/python-ideas/iter/python-ideas/UCaNfAHkBlQ/5vX7JbpCxDkJ
`iter` has a very cool `sentinel` argument. I suggest an additional argument
`exception`; when it's supplied, instead of waiting for a sentinel
Serhiy Storchaka added the comment:
I don't think that adding underscored parameter to public API is best solution,
but we need the fix for 3.3. So here is a patch for backporting d68df99d7a57 to
3.3.
--
___
Python tracker rep...@bugs.python.org
Ethan Furman added the comment:
I agree that pickling by name is the better solution.
Serhiy, could you explain how the un-pickling works with protocol 4?
--
assignee: - ethan.furman
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
This is new feature of protocol 4 (PEP 3154, section 'Serializing more
lookupable objects'). When __reduce_ex__() returns a string (instead of a
tuple), this is interpreted as the name of a global, and qualnames with dots
are now supported in protocol 4.
Serhiy Storchaka added the comment:
May be a number of tests which test pickling subclasses with or without some
special methods are not needed longer. Fell free to improve my patch if you
want to make all cleanup changes in one commit.
--
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: +Python 3.5 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15871
___
___
Larry Hastings added the comment:
Okay.
I'm holding off a couple days just to get all the requests lined up, so I can
apply them in chronological order--that'll cut down on the conflicts.
--
___
Python tracker rep...@bugs.python.org
Itamar Turner-Trauring added the comment:
This is not specifically a signal issue; it can happen with garbage collection
as well if you have a Queue.put that runs in __del__ or a weakref callback
function.
This can happen in real code. In my case, a thread that reads log messages from
a
Gregory P. Smith added the comment:
Thanks for trying. :) I've got a complicated test case of zipping up the
stdlib into python27.zip and running the Python test suite against that
which also tends to trigger the bugs. Some tests failing with SystemError
and such.
It smells like a memory
New submission from Ryan Gordon:
On SunOS 5.11, both the _findLib_crle and _get_soname are broken.
With _findLib_crle, the function returns the following:
# env LC_ALL=C /usr/bin/crle -64
Default configuration file (/var/ld/64/ld.config) not found
Platform: 64-bit LSB AMD64
Default
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: docs@python - terry.reedy
nosy: +terry.reedy
stage: test needed - patch review
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12691
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: - terry.reedy
nosy: +terry.reedy
stage: - patch review
versions: +Python 2.7, Python 3.3, Python 3.4 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8478
Larry Hastings added the comment:
I created a cherry-pick issue (#20665) to track that separately.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20594
New submission from Larry Hastings:
Creating new issue from #20594 to track cherry-picking this into 3.4.0.
--
assignee: larry
components: Build
messages: 211439
nosy: larry
priority: release blocker
severity: normal
stage: commit review
status: open
title: 3.4 cherry-pick: 400a8e4599d9
Larry Hastings added the comment:
400a8e4599d9 is the revision.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20665
___
___
Python-bugs-list
Zachary Ware added the comment:
The plan is to eventually have enough time to pick through the file and make
sure everything is actually up to date :).
From just a quick glance, here's a couple of the things that still need to be
done:
- all of the external links should be checked for whether
Larry Hastings added the comment:
Okay. I'll do the first round of cherry-picking Tuesday or Wednesday (my
time). I'm waiting for the list of requests to settle down so I can do them in
chronological order.
--
___
Python tracker
Larry Hastings added the comment:
Okay.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20645
___
___
Python-bugs-list mailing list
Unsubscribe:
Zachary Ware added the comment:
The newer patch looks good to me, I'll get it committed as soon as I can test
it. Thanks!
--
assignee: - zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20510
Larry Hastings added the comment:
This one worries me a little. Antoine, do you agree that this should be
cherry-picked for 3.4.0?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20646
Larry Hastings added the comment:
When you land this fix, please create the separate 3.4 cherry-pick issue.
Those issues are helping me a lot with keeping track of everything.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset c896d292080a by Terry Jan Reedy in branch '2.7':
Untokenize: An logically incorrect assert tested user input validity.
http://hg.python.org/cpython/rev/c896d292080a
New changeset 51e5a89afb3b by Terry Jan Reedy in branch '3.3':
Untokenize: An
Roundup Robot added the comment:
New changeset c896d292080a by Terry Jan Reedy in branch '2.7':
Untokenize: An logically incorrect assert tested user input validity.
http://hg.python.org/cpython/rev/c896d292080a
New changeset 51e5a89afb3b by Terry Jan Reedy in branch '3.3':
Untokenize: An
Ned Deily added the comment:
According to the Open Group Base Specification (Issue 7 2013 Issue):
The setenv() function shall fail if:
[EINVAL]
The envname argument points to an empty string or points to a string containing
an '=' character.
So it seems to me that the issue here is that
Changes by Ned Deily n...@acm.org:
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20660
___
___
Python-bugs-list mailing list
Ned Deily added the comment:
OTOH, the specification for putenv, which is what is actually used by
posixmodule.c, does not contain that requirement.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/putenv.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setenv.html
Larry Hastings added the comment:
key and default are keyword-only arguments, the signature should have a '*'.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20620
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +doko, haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20210
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +doko, haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20212
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +doko, haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20211
___
___
Ned Deily added the comment:
Georg, why do you want to cherry-pick this for 3.4.0? As noted in Issue20644,
it definitely breaks OS installer builds and it may break Windows installer
builds as well. We would need to address those problems as wee before rc2,
which seems to me to make this
Roundup Robot added the comment:
New changeset b3987d758e49 by Victor Stinner in branch 'default':
Issue #20655: Fix test_asyncio, run also subprocess tests. Patch written by
http://hg.python.org/cpython/rev/b3987d758e49
--
nosy: +python-dev
___
STINNER Victor added the comment:
changeset: 89237:b3987d758e49
tag: tip
user:Victor Stinner victor.stin...@gmail.com
date:Tue Feb 18 00:11:21 2014 +0100
files: Lib/test/test_asyncio/tests.txt
description:
Issue #20655: Fix test_asyncio, run also subprocess tests.
STINNER Victor added the comment:
Thanks Vajrasky for your fix. You may open a new issue for
permanent_fix_for_executing_test_asyncio_in_bundle.patch.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from STINNER Victor:
On old FreeBSD versions and on the latest OpenBSD (5.4), the multiprocessing
module is not available because POSIX semaphores are not supported by the OS.
See issues #5725 and #10348 to use SysV semaphores. #10348 was closed because
implementing SysV
Changes by Westley Martínez aniko...@gmail.com:
--
nosy: +anikom15
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1100942
___
___
Python-bugs-list
New submission from STINNER Victor:
test_read_pty_output() hangs on OpenBSD 5.4, as it hangs on Mac OS older than
10.9 and FreeBSD. Attached patch skips the test.
See also issue #20666: asyncio is not available yet on OpenBSD.
--
messages: 211458
nosy: haypo
priority: normal
severity:
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: asyncio: test_read_pty_output() of test_asyncio hangs on OpenBSD 5.4 -
asyncio: KqueueEventLoopTests.test_read_pty_output() of test_asyncio hangs on
OpenBSD 5.4
___
Python tracker
Changes by STINNER Victor victor.stin...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file34123/read_pty_openbsd.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20667
STINNER Victor added the comment:
Python 3.3 is in OpenBSD since 5.4.
Oh, it looks like select.select() works fine when I install Python 3.3 from
OpenBSD. It's maybe a regression of Python 3.4?
--
___
Python tracker rep...@bugs.python.org
Geoffrey Spear added the comment:
Attached patch to ignore OSError attempting to F_NOTIFY on a machine without
dnotify but with sys/fcntl.h including #defines for F_NOTIFY and DN_MULTISHOT.
The test as written attempts to skip the test, but fails when the header
doesn't match the actual
Westley Martínez added the comment:
I personally like this page about environment variables:
http://www.computerhope.com/issues/ch000549.htm
It is clear, concise, and has pretty pictures. However, it does not address
Windows 8. Since Windows 8 is becoming more popular everyday, and since it
STINNER Victor added the comment:
So this looks like a bug.
Or a different design choice?
It looks like the kernel restarts the wait if it was interrupted.
ignore interruptions other than cancelation
http://ftp.cc.uoc.gr/mirrors/OpenBSD/src/lib/librthread/rthread_sem.c
test that
Roundup Robot added the comment:
New changeset d548829765cd by Victor Stinner in branch 'default':
Issue #20667: test_asyncio: Skip KqueueEventLoopTests.test_read_pty_output() on
http://hg.python.org/cpython/rev/d548829765cd
--
nosy: +python-dev
___
STINNER Victor added the comment:
Oh, we have a new OpenBSD 5.5 buildbot and it looks like test_asyncio is
running on it. So let's try this new buildbot with my fix!
I keep the issue open until I get feedback from the buildbot and then I will
port the change to Tulip.
Roundup Robot added the comment:
New changeset 79ccf36b0fd0 by Victor Stinner in branch 'default':
Close #20656: Fix select.select() on OpenBSD 64-bit
http://hg.python.org/cpython/rev/79ccf36b0fd0
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
status: open -
STINNER Victor added the comment:
Oh, it looks like concurrent.futures and asyncio now works on OpenBSD 5.5:
http://buildbot.python.org/all/builders/x86%20OpenBSD%205.5%203.x/builds/10/steps/test/logs/stdio
(at least tests are running)
OpenBSD 5.5 added support of POSIX semaphores?
--
Westley Martínez added the comment:
I'm curious what the best way to do this would be. Obviously the simplest
would just be 'See also list comprehensions.' However since this is a
tutorial, I was thinking of adding something like this:
'In other languages, for loops are often used to fill a
Changes by Westley Martínez aniko...@gmail.com:
--
nosy: +westley.martinez
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20146
___
___
Saimadhav Heblikar added the comment:
Patch for adding configHelpsourceEdit test for python 3.3.I have hand tested it
along with tests and it works well.
Also removes certain pep8 violation in configHelpSourceEdit
Adds a mock Entry class to idle_test/mock_tk (required for a .focus_set())
Terry J. Reedy added the comment:
While I am closing this as a duplicate, I will use some of your patch,
including one test, and credit you as well.
Switching from 5-tuples to 2-tuples, as in one of your test cases, is not
currently a supported use case, Compat currently re-iterates the
Terry J. Reedy added the comment:
The problem of the first iterator pair token being discarded is the subject of
#8478. Consider that part of this issue as being closed as a duplicate.
The issue of a string being returned if there is no encoding should have been
opened as a separate issue,
Vajrasky Kok added the comment:
Thanks for the review, Serhiy! Here is the patch addressing Serhiy's concern.
--
Added file:
http://bugs.python.org/file34126/pydoc_display_enum_member_value_0_v3.patch
___
Python tracker rep...@bugs.python.org
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: needs patch - patch review
versions: -Python 2.6, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7247
___
Guido van Rossum added the comment:
I'd prefer not to add a bad hack to support such a broken platform. If it
doesn't have semaphores, not much Python code will run.
Maybe the dummy_threading module can be used instead?
--
___
Python tracker
Changes by Mike Short bmsh...@gmail.com:
--
keywords: +patch
nosy: +Mike.Short
Added file: http://bugs.python.org/file34127/asyncio-dev.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20649
Saimadhav Heblikar added the comment:
Corresponding patch for 2.7
--
Added file: http://bugs.python.org/file34128/test-config-helpsource-27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20640
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: - terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9974
___
___
Guido van Rossum added the comment:
For now, can we just add to the asyncio docs that timeouts shouldn't exceed one
day? Then we can fix it later without breaking expectations.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset c2517a37c13a by Terry Jan Reedy in branch '2.7':
Issue #8478: Untokenizer.compat now processes first token from iterator input.
http://hg.python.org/cpython/rev/c2517a37c13a
New changeset b6d6ca792b64 by Terry Jan Reedy in branch '3.3':
Issue
Terry J. Reedy added the comment:
The no encoding issue was mentioned in #12691, but needed to be opened in a
separate issue, which is this one. The doc, as opposed to the docstring, says
Converts tokens back into Python source code. Python 3.3 source code is
defined in the reference manual
1 - 100 of 103 matches
Mail list logo