[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread Vajrasky Kok
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

[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread Vajrasky Kok
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

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Vajrasky Kok
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.

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Vajrasky Kok
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 ___

[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread STINNER Victor
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

[issue20652] Example in asyncio task gives resource warning

2014-02-17 Thread Roundup Robot
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: -

[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-17 Thread STINNER Victor
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

[issue20638] KeyError building the Python html doc with sphinx

2014-02-17 Thread Xavier de Gaye
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.

[issue20638] KeyError building the Python html doc with sphinx

2014-02-17 Thread Georg Brandl
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

[issue16468] argparse only supports iterable choices

2014-02-17 Thread Masato HASHIMOTO
Changes by Masato HASHIMOTO cabezon.hashim...@gmail.com: -- nosy: +hashimo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16468 ___ ___

[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2014-02-17 Thread Gareth Rees
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

[issue13720] argparse print_help() fails if COLUMNS is set to a low value

2014-02-17 Thread Serhiy Storchaka
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

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Serhiy Storchaka
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 ___

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Serhiy Storchaka
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 ___

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread STINNER Victor
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

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread STINNER Victor
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

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread Remi Pointel
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 ___

[issue20657] OpenBSD: Merge patches

2014-02-17 Thread STINNER Victor
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:

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread STINNER Victor
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

[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2014-02-17 Thread daniel hahler
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

[issue20659] Want to make a class method a property by combining decorators

2014-02-17 Thread the mulhern
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,

[issue20145] unittest.assert*Regex functions should verify that expected_regex has a valid type

2014-02-17 Thread the mulhern
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

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Vajrasky Kok
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

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Vajrasky Kok
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

[issue20653] Pickle enums by name

2014-02-17 Thread Barry A. Warsaw
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

[issue20660] Starting a second multiprocessing.Manager causes INCREF on all object created by the first one.

2014-02-17 Thread mythsmith
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

[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-17 Thread Larry Hastings
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

[issue20661] 3.4 cherry-pick: eef7899ea7ab use system doc toolchain instead of checking out of svn

2014-02-17 Thread Georg Brandl
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

[issue20619] lineno and col_offset attributes of _ast.arg objects are not set

2014-02-17 Thread Benjamin Peterson
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 ___

[issue20594] [PATCH] fail to compile posixmodule due to name clash with posix_close

2014-02-17 Thread Benjamin Peterson
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

[issue20594] [PATCH] fail to compile posixmodule due to name clash with posix_close

2014-02-17 Thread Benjamin Peterson
Changes by Benjamin Peterson bp+pyb...@benjamin-peterson.org: -- assignee: - larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20594 ___ ___

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2014-02-17 Thread Jesús Cea Avión
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

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Serhiy Storchaka
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

[issue18352] collections.Counter with added attributes are not deepcopied properly.

2014-02-17 Thread Jesús Cea Avión
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

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Serhiy Storchaka
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. --

[issue20662] Pydoc doesn't escape parameter defaults in html

2014-02-17 Thread Serhiy Storchaka
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,

[issue16278] Improve os.rename documentation and tests

2014-02-17 Thread Benjamin Peterson
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

[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread Guido van Rossum
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

[issue20653] Pickle enums by name

2014-02-17 Thread Serhiy Storchaka
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

[issue20663] Introduce exception argument to iter

2014-02-17 Thread Ram Rachum
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

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-17 Thread Serhiy Storchaka
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

[issue20653] Pickle enums by name

2014-02-17 Thread Ethan Furman
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

[issue20653] Pickle enums by name

2014-02-17 Thread Serhiy Storchaka
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.

[issue20653] Pickle enums by name

2014-02-17 Thread Serhiy Storchaka
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. -- ___

[issue15871] Online docs: make index search always available.

2014-02-17 Thread Ezio Melotti
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 ___ ___

[issue20651] 3.4 cherry-pick: 52ab9e1ff46a rolls back bad zipimport changes

2014-02-17 Thread Larry Hastings
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

[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks

2014-02-17 Thread Itamar Turner-Trauring
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

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-17 Thread Gregory P. Smith
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

[issue20664] _findLib_crle and _get_soname broken on latest SunOS 5.11

2014-02-17 Thread Ryan Gordon
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

[issue12691] tokenize.untokenize is broken

2014-02-17 Thread Terry J. Reedy
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

[issue8478] tokenize.untokenize first token missing failure case

2014-02-17 Thread Terry J. Reedy
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

[issue20594] [PATCH] fail to compile posixmodule due to name clash with posix_close

2014-02-17 Thread Larry Hastings
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

[issue20665] 3.4 cherry-pick: 400a8e4599d9 rename posix_close to avoid namespace clash

2014-02-17 Thread Larry Hastings
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

[issue20665] 3.4 cherry-pick: 400a8e4599d9 rename posix_close to avoid namespace clash

2014-02-17 Thread Larry Hastings
Larry Hastings added the comment: 400a8e4599d9 is the revision. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20665 ___ ___ Python-bugs-list

[issue20265] Bring Doc/using/windows up to date

2014-02-17 Thread Zachary Ware
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

[issue20661] 3.4 cherry-pick: eef7899ea7ab use system doc toolchain instead of checking out of svn

2014-02-17 Thread Larry Hastings
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

[issue20645] 3.4 cherry-pick: 1166b3321012 Revert changes of issue #19466 (clear thread state earlier)

2014-02-17 Thread Larry Hastings
Larry Hastings added the comment: Okay. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20645 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20510] Test cases in test_sys don't match the comments

2014-02-17 Thread Zachary Ware
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

[issue20646] 3.4 cherry-pick: 180e4b678003 select and kqueue round the timeout aways from zero

2014-02-17 Thread Larry Hastings
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

[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-17 Thread Larry Hastings
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

[issue8478] tokenize.untokenize first token missing failure case

2014-02-17 Thread Roundup Robot
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

[issue12691] tokenize.untokenize is broken

2014-02-17 Thread Roundup Robot
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

[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2014-02-17 Thread Ned Deily
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

[issue20660] Starting a second multiprocessing.Manager causes INCREF on all object created by the first one.

2014-02-17 Thread Ned Deily
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

[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2014-02-17 Thread Ned Deily
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

[issue20620] Update the min()/max() docs for the new default argument

2014-02-17 Thread Larry Hastings
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 ___

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-02-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +doko, haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210 ___ ___

[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-02-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +doko, haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20212 ___ ___

[issue20211] setup.py: do not add invalid header locations

2014-02-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +doko, haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20211 ___ ___

[issue20661] 3.4 cherry-pick: eef7899ea7ab use system doc toolchain instead of checking out of svn

2014-02-17 Thread Ned Deily
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

[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread Roundup Robot
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 ___

[issue20648] 3.4 cherry-pick: multiple changesets for asyncio

2014-02-17 Thread STINNER Victor
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.

[issue20655] test_subprocess is not executed in python -m test.test_asyncio

2014-02-17 Thread STINNER Victor
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

[issue20666] asyncio/OpenBSD: make concurrent.futures dependency optional

2014-02-17 Thread STINNER Victor
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

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2014-02-17 Thread Westley Martínez
Changes by Westley Martínez aniko...@gmail.com: -- nosy: +anikom15 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100942 ___ ___ Python-bugs-list

[issue20667] asyncio: test_read_pty_output() of test_asyncio hangs on OpenBSD 5.4

2014-02-17 Thread STINNER Victor
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:

[issue20667] asyncio: KqueueEventLoopTests.test_read_pty_output() of test_asyncio hangs on OpenBSD 5.4

2014-02-17 Thread STINNER Victor
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

[issue20667] asyncio: KqueueEventLoopTests.test_read_pty_output() of test_asyncio hangs on OpenBSD 5.4

2014-02-17 Thread STINNER Victor
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

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread STINNER Victor
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

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2014-02-17 Thread Geoffrey Spear
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

[issue20265] Bring Doc/using/windows up to date

2014-02-17 Thread Westley Martínez
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

[issue20564] test_threadsignals.py failed on OpenBSD because too slow ( 3sec)

2014-02-17 Thread STINNER Victor
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

[issue20667] asyncio: KqueueEventLoopTests.test_read_pty_output() of test_asyncio hangs on OpenBSD 5.4

2014-02-17 Thread Roundup Robot
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 ___

[issue20667] asyncio: KqueueEventLoopTests.test_read_pty_output() of test_asyncio hangs on OpenBSD 5.4

2014-02-17 Thread STINNER Victor
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.

[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t

2014-02-17 Thread Roundup Robot
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 -

[issue20666] asyncio/OpenBSD: make concurrent.futures dependency optional

2014-02-17 Thread STINNER Victor
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? --

[issue20402] List comprehensions should be noted in for loop documentation

2014-02-17 Thread Westley Martínez
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

[issue20146] UserDict module docs link is obsolete

2014-02-17 Thread Westley Martínez
Changes by Westley Martínez aniko...@gmail.com: -- nosy: +westley.martinez ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20146 ___ ___

[issue20640] Adds idle test for configHelpSourceEdit

2014-02-17 Thread Saimadhav Heblikar
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())

[issue16224] tokenize.untokenize() misbehaves when moved to compatiblity mode

2014-02-17 Thread Terry J. Reedy
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

[issue12691] tokenize.untokenize is broken

2014-02-17 Thread Terry J. Reedy
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,

[issue20654] Pydoc (and help) fails with socket.AddressFamily

2014-02-17 Thread Vajrasky Kok
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

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2014-02-17 Thread Berker Peksag
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 ___

[issue20666] asyncio/OpenBSD: make concurrent.futures dependency optional

2014-02-17 Thread Guido van Rossum
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

[issue20649] Minor grammatical mistake for asyncio dev docs

2014-02-17 Thread Mike Short
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

[issue20640] Adds idle test for configHelpSourceEdit

2014-02-17 Thread Saimadhav Heblikar
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

[issue9974] tokenizer.untokenize not invariant with line continuations

2014-02-17 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9974 ___ ___

[issue20493] asyncio: OverflowError('timeout is too large')

2014-02-17 Thread Guido van Rossum
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

[issue8478] tokenize.untokenize first token missing failure case

2014-02-17 Thread Roundup Robot
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

[issue16223] untokenize returns a string if no encoding token is recognized

2014-02-17 Thread Terry J. Reedy
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   2   >