[issue27200] make doctest in CPython has failures

2017-03-11 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +509 ___ Python tracker <http://bugs.python.org/issue27200> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29820] Broken link to "GUI Programming with Python: QT Edition" book

2017-03-15 Thread Marco Buttu
New submission from Marco Buttu: In [*] the link to "GUI Programming with Python: QT Edition by Boudewijn Rempt", does not work. I did not find an official web page for this book, but it is really outdated (2002), so maybe we can take only the reference to the Mark Summerfield

[issue29826] " don't work on Mac

2017-03-16 Thread Marco Viscito
New submission from Marco Viscito: When typing the ' key or the " key on the IDLE Python application for macOS, the application. I think it might have something to do with that beta version of Tcl/Tk (8.5.9) as Python says it is 'unstable'. -- files: Screen Shot 20

[issue29820] Broken link to "GUI Programming with Python: QT Edition" book

2017-03-16 Thread Marco Buttu
Marco Buttu added the comment: Hi Mariatta, all the other seealso entries (PyGObject, PySide, ...) have references to some specific books and tutorials. No one has a reference to the wiki, maybe because there is already a reference to it (at the end of the page). IMHO we can keep the PyQt

[issue29820] Broken link to "GUI Programming with Python: QT Edition" book

2017-03-16 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +561 ___ Python tracker <http://bugs.python.org/issue29820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16355] inspect.getcomments() does not work in the interactive shell

2017-03-17 Thread Marco Buttu
Changes by Marco Buttu : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue27200] make doctest in CPython has failures

2017-03-26 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +727 ___ Python tracker <http://bugs.python.org/issue27200> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30055] Missed testcleanup in decimal.rst

2017-04-12 Thread Marco Buttu
New submission from Marco Buttu: The testsetup in Doc/library/decimal.rst is not enough for isolating the tests in respect to the other rst files. Currently we have the following testsetup, without a testcleanup: .. testsetup:: * import decimal import math from decimal import

[issue30055] Missed testcleanup in decimal.rst

2017-04-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +1236 ___ Python tracker <http://bugs.python.org/issue30055> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30055] Missed testcleanup in decimal.rst

2017-04-13 Thread Marco Buttu
Marco Buttu added the comment: We are not executing the doctests on Travis CI, but I executed them locally. That's why I realized there was a missed testcleanup. The issue27200 wants to fix all doctests, and I actually completed the job, but three PRs are still opened, and I am waitin

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-05-08 Thread Marco Buttu
Marco Buttu added the comment: I also noticed that the howto differentiates between objects and classes: "The details of invocation depend on whether obj is an object or a class." I think it is misleading, because a class is actually an object. IMHO is better to differentiate betwe

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-05-08 Thread Marco Buttu
Marco Buttu added the comment: Thanks Eric. I think the reference should be added here, as we do for the other operators: https://docs.python.org/3/library/stdtypes.html#bitwise-operations-on-integer-types -- nosy: +marco.buttu ___ Python tracker

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-05-08 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +1603 ___ Python tracker <http://bugs.python.org/issue30217> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-05-09 Thread Marco Buttu
Marco Buttu added the comment: Looking at Doc/reference/expressions.rst and Doc/reference/datamodel.rst, I do not see any reference to the symbols, but only to the operator name (negation, minus, plus, inversion, etc.). Therefore I think it is better to not change these files. In the PR

[issue30335] Document deprecated alias of assertNotRegex

2017-05-10 Thread Marco Buttu
Marco Buttu added the comment: Hi Jim, I think assertNotRegexpMatches has never been introduced: https://docs.python.org/3/whatsnew/3.1.html https://docs.python.org/3/whatsnew/3.2.html That is why there is no reference in the documentation about that. I also executed a test with Python 3.1

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +2190 ___ Python tracker <http://bugs.python.org/issue30217> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +2191 ___ Python tracker <http://bugs.python.org/issue30217> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +2192 ___ Python tracker <http://bugs.python.org/issue30217> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36232] Improve error message on dbm.open

2019-03-08 Thread Marco Rougeth
New submission from Marco Rougeth : If dbm.open is used with the flags 'r' or 'w' (read-only) to open a file that doesn't exist, it raises an exception with the message "need 'c' or 'n' flag to open new db". It'd be better to hav

[issue36322] Argument typo in dam.ndbm.open

2019-03-16 Thread Marco Rougeth
New submission from Marco Rougeth : Reading the documentation for `dbm.gnu.open` I noticed that there were a typo in the `flags` argument, it was documented as `flag`, in plural form. The same typo was present for `dbm.ndbm.open`, but in this case, `flag` makes more sense than `flags`, since

[issue36322] Argument typo in dbm.ndbm.open

2019-03-16 Thread Marco Rougeth
Change by Marco Rougeth : -- title: Argument typo in dam.ndbm.open -> Argument typo in dbm.ndbm.open ___ Python tracker <https://bugs.python.org/issu

[issue36322] Argument typo in dbm.ndbm.open

2019-03-22 Thread Marco Rougeth
Change by Marco Rougeth : -- keywords: +patch pull_requests: +12453 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36322> ___ ___ Py

[issue36322] Argument typo in dbm.ndbm.open

2019-03-23 Thread Marco Rougeth
Marco Rougeth added the comment: Hi Terry, thanks for reviewing this and sorry for not being clear enough. About dbm.gnu.open: The docs indeed uses “flag”, in singular form, but it’s wrong because 1) the argument accepts, for some cases, 2 flags and, 2) the source code uses “flags” in

[issue33004] Shutil module functions could accept Path-like objects

2018-03-05 Thread Marco Rougeth
New submission from Marco Rougeth : This is issue is to suggest an enhancement to the shutil module, I believe it's quiet similar to the issue32642. I was using shutil.copytree to copy some files around and I tried to pass Path-like objects as input but got the exception "TypeError

[issue33004] Shutil module functions could accept Path-like objects

2018-03-05 Thread Marco Rougeth
Marco Rougeth added the comment: You're right @josh.r! Thank you! -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue30235] Validate shutil supports path-like objects, update docs accordingly

2018-03-06 Thread Marco Rougeth
Change by Marco Rougeth : -- keywords: +patch pull_requests: +5774 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-03-31 Thread Marco Rougeth
New submission from Marco Rougeth : Path has the method `.rmdir()` for removing the directory, but it doesn't have anything if it correspond to a file. The `os.remove` could be used here, but I think it should have a more appropriate/explicit name like `.rmfile()`. If it make sense, I

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-04-01 Thread Marco Rougeth
Marco Rougeth added the comment: Wow, I never saw unlink term related to removing files (obviously I'm not an old-school Unix greybeard). @nsj could you point me the thread you talked about? or help me find it? I looked in the archive in the last three months and couldn't find

[issue33365] http/client.py does not print correct headers in debug

2018-04-26 Thread Marco Strigl
New submission from Marco Strigl : Consider the following script: try: from urllib import request except ImportError: import urllib2 as request handler = request.HTTPSHandler(debuglevel=1) opener = request.build_opener(handler) f = opener.open('https://httpbin.org/user-agent&#

[issue33365] http/client.py does not print correct headers in debug

2018-04-26 Thread Marco Strigl
Change by Marco Strigl : -- pull_requests: +6307 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33365> ___ ___ Python-bugs-list mai

[issue18424] sum() does not return only the sum of a sequence of numbers + PEP8 reccomandation

2013-07-10 Thread Marco Buttu
New submission from Marco Buttu: The documentaion of sum(): Returns the sum of a sequence of numbers (NOT strings) plus the value of parameter 'start' (which defaults to 0). When the sequence is empty, returns start. A. According to the PEP-8 it should be: "

[issue18424] sum() does not return only the sum of a sequence of numbers + PEP8 reccomandation

2013-07-10 Thread Marco Buttu
Marco Buttu added the comment: By reading the Ronald's comment, I realized it is better to keep it simple, so I agree with him. The "extremely inefficient" reason seems to be less important (Python 3.3): $ python -m timeit -s "a=['a']*1; b=['b'

[issue18570] OverflowError during division: wrong message

2013-07-27 Thread Marco Buttu
New submission from Marco Buttu: When the integer division result is too large to converto to float, and the operands are inside the limits, the result is `inf` or `-inf`:: >>> 2**1023 / 2**-3 inf >>> 2**1022 / 2**-4 inf >>> 2**1023 / 2**-1074

[issue18570] OverflowError in division: wrong message

2013-07-27 Thread Marco Buttu
Changes by Marco Buttu : -- title: OverflowError during division: wrong message -> OverflowError in division: wrong message ___ Python tracker <http://bugs.python.org/issu

[issue18839] Wrong sentence in sys.exit.__doc__

2013-08-26 Thread Marco Buttu
New submission from Marco Buttu: Python 3.3:: >>> import sys >>> print(sys.exit.__doc__) exit([status]) Exit the interpreter by raising SystemExit(status). If the status is omitted or None, it defaults to zero (i.e., success). If the status is numeri

[issue15098] "TypeError" can give a misleading message

2012-06-17 Thread Marco Buccini
New submission from Marco Buccini : Suppose that you have an instance method that takes 2 arguments: one is required, while the other is a keyword argument. If you call that method without passing the required argument, but instead you only set the keyword argument, then you will get a

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Marco Buttu
New submission from Marco Buttu: $ echo "print(__file__)" > foo.py $ python3.3 -O -m foo /home/marco/temp/foo.py $ ls foo.py __pycache__ $ rm foo.py $ mv __pycache__/foo.cpython-33.pyo foo.pyo $ rm __pycache__ -r $ ls foo.pyo # The following works in Python3.2, but not in Py

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Marco Buttu
Changes by Marco Buttu : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue16046> ___ ___ Python-bugs-list mailing list Unsubscri

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread Marco Buttu
New submission from Marco Buttu: The documentation for `inspect.getcomments()` says that it returns the "lines of comments immediately preceding an object's source code". It works fine for the comments that immediately preceded an object defined in a module: $ more foo.py imp

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread Marco Buttu
Marco Buttu added the comment: If inspect.getcomments() requires a source file to inspect, I think it would be better to indicate it in the doc. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread Marco Buttu
Marco Buttu added the comment: I saw there is the same lack of clarity in the doc of `inspect.getsource()`: >>> import inspect >>> print(inspect.getsource.__doc__) Return the text of the source code for an object. The argument may be a module, class, method, function

[issue16480] pyvenv 3.3 fails to create symlinks for /local/{bin, lib} to /{bin, lib}

2012-11-15 Thread Marco Amadori
New submission from Marco Amadori: The solution to work around the bug is there: http://ipoveraviancarriers.blogspot.it/2012/11/python-33-and-pyvenv-hackish-solution.html But probably pyvenv should be patched in order to create symlinks. Thanks! -- components: None messages: 175626

[issue16480] pyvenv 3.3 fails to create symlinks for /local/{bin, lib} to /{bin, lib}

2012-11-18 Thread Marco Amadori
Marco Amadori added the comment: > The question is: is this still necessary? Why exactly does > "posix_local" need this, and does it need it for Python 3.3, 3.4 etc? > Adding Carl to nosy, hoping he can shed some light on this. I hope to see the light on that too. ;-) Me

[issue16480] pyvenv 3.3 fails to create symlinks for /local/{bin, lib} to /{bin, lib}

2012-11-21 Thread Marco Amadori
Marco Amadori added the comment: 2012/11/21 Carl Meyer > > Carl Meyer added the comment: > > Here is the bug filed against virtualenv that led to the addition of the > local/ directory: https://github.com/pypa/virtualenv/issues/118 > > As Vinay pointed out, the original f

[issue16480] pyvenv 3.3 fails to create symlinks for /local/{bin, lib} to /{bin, lib}

2012-11-21 Thread Marco Amadori
Marco Amadori added the comment: On Wednesday 21 November 2012 21:32:57 Carl Meyer wrote: > Carl Meyer added the comment: > > What OS are you on, Marco? Linux. Debian GNU/Linux amd64 sid/experimental. > It looks to me like pyvenv probably does need the same hack as virtualenv >

[issue16916] The Extended Iterable Unpacking (PEP-3132) for byte strings doesn't match the specification

2013-01-10 Thread Marco Buttu
New submission from Marco Buttu: The PEP 3132 said: """ ... if seq is a slicable sequence, all the following assignments are equivalent if seq has at least three elements: a, b, c = seq[0], seq[1:-1], seq[-1] a, *b, c = seq [a, *b, c] = seq """ But this d

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-01-14 Thread Marco Buccini
Changes by Marco Buccini : -- nosy: -markon ___ Python tracker <http://bugs.python.org/issue6975> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2013-01-14 Thread Marco Buccini
Changes by Marco Buccini : -- nosy: -markon ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2013-01-14 Thread Marco Buccini
Changes by Marco Buccini : -- nosy: -markon ___ Python tracker <http://bugs.python.org/issue6074> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19054] Descriptors howto

2013-09-19 Thread Marco Buttu
New submission from Marco Buttu: I think in the descriptor howto, at this point: >>> class MyClass(object): x = RevealAccess(10, 'var "x"') y = 5 or the prompt should not have been, or there is a wrong indentation. Furthermore, in Python 3: h

[issue19054] Descriptors howto

2013-09-19 Thread Marco Buttu
Changes by Marco Buttu : Added file: http://bugs.python.org/file31821/py2howto.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list mailin

[issue19054] Descriptors howto

2013-09-19 Thread Marco Buttu
Changes by Marco Buttu : -- keywords: +patch Added file: http://bugs.python.org/file31820/py3howto.patch ___ Python tracker <http://bugs.python.org/issue19

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31820/py3howto.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list m

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31821/py2howto.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list m

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Added file: http://bugs.python.org/file31829/py2howto.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list mailin

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Marco Buttu added the comment: Maybe is better to underline the difference between classes and non-classes objects, instead of between objects and classes, because a class is an object, so it could be confusing). Raymond, what do you think about rewriting this sentence: `The details of

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31829/py2howto.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list m

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Added file: http://bugs.python.org/file31830/py2howto.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list mailin

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31828/py3howto.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list m

[issue19054] Descriptors howto

2013-09-20 Thread Marco Buttu
Marco Buttu added the comment: I saw right now your decision about keeping object in the Python 3 doc: http://bugs.python.org/issue17351#msg183870 So, now the py3 patch takes in account just the indentation of the `RevealAccess` example and the "class or not" suggestion. --

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31831/py3howto.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list m

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31830/py2howto.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list m

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: I think the indentation is a problem, for several reasons. In all the examples in the documentation, the form by using the interactive shell is the following: >>> class MyClass: ... pass otherwise: class MyClass: pass This one

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Changes by Marco Buttu : -- resolution: invalid -> works for me status: closed -> open ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Pyth

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: By looking at the other examples in the howto, I saw there is the same problem in all the definitions in the prompt, and furthermore, we are using a different number of spaces to indent MyClass respect the rest of the classes defined in the prompt. There is

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Changes by Marco Buttu : Removed file: http://bugs.python.org/file31834/py3full.patch ___ Python tracker <http://bugs.python.org/issue19054> ___ ___ Python-bugs-list m

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: You are right. Now it should be ok -- Added file: http://bugs.python.org/file31835/py3full.patch ___ Python tracker <http://bugs.python.org/issue19

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: By the way, it does not pass all the tests in Python 2.7: $ python2.7 -m doctest descriptor_modified.rst | tail -n 1 ***Test Failed*** 3 failures. If we want to be very rigorous, in order to pass the tests in Py2.7 too (kipping the rst aligned between py2 and

[issue19054] Descriptors howto

2013-09-21 Thread Marco Buttu
Marco Buttu added the comment: $ python -c "import this" | grep "silently" Errors should never pass silently -- ___ Python tracker <http://bug

[issue19067] Built-in range docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
New submission from Marco Buttu: The range documentation is not PEP-8 compatible: >>> range.__doc__.splitlines()[-1] 'Returns a virtual sequence of numbers from start to stop by step.' >>> range.__reversed__.__doc__ 'Returns a reverse iterator.' >>&g

[issue19068] Some built-in complex docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
New submission from Marco Buttu: As reported in the title: >>> complex.conjugate.__doc__.splitlines()[-1] 'Returns the complex conjugate of its argument. (3-4j).conjugate() == 3+4j.' >>> complex.__format__.__doc__.splitlines()[-1] 'Converts to a string accord

[issue19068] Some built-in complex docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
Changes by Marco Buttu : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue19068> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue19069] Built-in float docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
New submission from Marco Buttu: As reported in the title: >>> float.as_integer_ratio.__doc__.splitlines()[2] 'Returns a pair of integers, whose ratio is exactly equal to the original' >>> float.as_integer_ratio.__doc__.splitlines()[4] 'Raises OverflowError

[issue19164] Update uuid.UUID TypeError exception: integer should not be an argument.

2013-10-04 Thread Marco Buccini
New submission from Marco Buccini: When you try to use uuid.UUID() without arguments you get a TypeError exception saying that you can actually use an integer (while you cannot). Python 2.6.8 (default, Apr 26 2013, 16:24:53) [GCC 4.6.3] on linux2 >>> uuid.UUID() Traceback (most re

[issue19472] inspect.getsource() raises a wrong exception type

2013-11-01 Thread Marco Buttu
New submission from Marco Buttu: I was looking at inspect.getsource(). In Python 3.3 and 3.4 either the docstring and the online doc say it raises a OSError, and in fact: >>> import inspect >>> def foo(): ... pass ... >>> inspect.getsource(foo) Trace

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Marco Paolini
Marco Paolini added the comment: I finally wrapped my head around this. I wrote a (simpler) script to get a better picture. What happens - When a consumer task is first istantiated, the loop holds a strong reference to it (_ready) Later on, as the loop starts, the consumer task

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Marco Paolini
Marco Paolini added the comment: Asking the user to manage strong refs is just passing the potential leak issue outside of the standard library. It doesn't really solve anything. If the user gets the strong refs wrong he can either lose tasks or leak memory. If the standard library ge

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Marco Paolini
Marco Paolini added the comment: > So you are changing your mind and withdrawing your option #1. I think option #1 (tell users to keep strong refs to tasks) is OK but option #2 is better. Yes, I changed my mind ;) -- ___ Python tracker &l

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Marco Paolini
Marco Paolini added the comment: Submitted a first stab at #2. Let me know what you think. If this works we'll have to remove the test_gc_pending test and then maybe even the code that now logs errors when a pending task is gc'ed -- Added file: http://bugs.python.org

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-19 Thread Marco Paolini
Marco Paolini added the comment: > I don't understand how keeping a strong refrence would fix anything. You > only provided one example (async-gc-bug.py) which uses Queue objects but > keep weak references to them. Keeping strong references to tasks is not the > right fix. You

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-09-20 Thread Marco Paolini
Marco Paolini added the comment: Sorry for keeping this alive. Take a look at the `wait_for.py` just submitted in the unrelated #22448: no strong refs to the tasks are kept. Tasks remain alive only because they are timers and the event loop keeps strong ref. Do you think my proposed patch is

[issue20312] A missing link to Python-3.4.0b2.tar.bz2 in the download page.

2014-01-20 Thread Marco Buttu
New submission from Marco Buttu: At the page: http://www.python.org/getit/releases/3.4.0/ the link: http://www.python.org/ftp/python/3.4.0/Python-3.4.0b2.tar.bz2 does not work. -- assignee: docs@python components: Documentation messages: 208545 nosy: docs@python, marco.buttu

[issue6070] Python 2.6 makes .pyc/.pyo bytecode files executable

2009-07-07 Thread Marco Buccini
Marco Buccini added the comment: @r.david.murray: Does this works on Windows? Are you sure Oleg? :) Since you've done this: #ifndef MS_WINDOWS /* mode = ..*/ #endif but on Windows the compiler "jumps" over this code, so you can get a binding error, since it doesn't fin

[issue7008] str.title() misbehaves with apostrophes

2009-09-28 Thread Marco B
Marco B added the comment: This was already asked some years ago. http://mail.python.org/pipermail/python-list/2006-April/549340.html -- nosy: +markon ___ Python tracker <http://bugs.python.org/issue7

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Marco Buccini added the comment: I agree with Milko. However, I think Popen.send_signal should poll() before sending any signals, without resetting any variables to zero (or None). In this way, if you poll() before sending a signal, if the return code is None, the child is still running. If

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Changes by Marco Buccini : Added file: http://bugs.python.org/file15136/test_subprocess.patch ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bug

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Changes by Marco Buccini : Removed file: http://bugs.python.org/file15136/test_subprocess.patch ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bug

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Changes by Marco Buccini : Added file: http://bugs.python.org/file15137/test_subprocess.patch ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bug

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Changes by Marco Buccini : Removed file: http://bugs.python.org/file15135/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bugs-list m

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Changes by Marco Buccini : Added file: http://bugs.python.org/file15141/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bugs-list m

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Changes by Marco Buccini : Removed file: http://bugs.python.org/file15141/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bugs-list m

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Changes by Marco Buccini : Removed file: http://bugs.python.org/file15137/test_subprocess.patch ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bug

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Changes by Marco Buccini : Added file: http://bugs.python.org/file15142/test_subprocess.patch ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bug

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2009-10-15 Thread Marco Buccini
Changes by Marco Buccini : Added file: http://bugs.python.org/file15143/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6973> ___ ___ Python-bugs-list m

[issue6975] symlinks incorrectly resolved on Linux

2009-10-16 Thread Marco Buccini
Marco Buccini added the comment: I've provided a patch. I've also added a new test, and it passes. -- keywords: +patch nosy: +markon Added file: http://bugs.python.org/file15150/issue6975.patch ___ Python tracker <http://bugs.python.

[issue7158] os.path.basename/split fails

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: I think this is not a Python bug, since it concerns PyQt. You're passing a QString object to os.path.split(), while the official documentation wants you pass a Python string. However, when I tried to run your example, newWF.py, and tried to open a file

[issue7158] os.path.basename/split fails

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: > I should close this bug. I *would* close this bug. Sorry :) -- ___ Python tracker <http://bugs.python.org/issue7158> ___ _

[issue7158] os.path.basename/split fails

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: I cannot close this bug, ahah :) BTW: I'm happy you solved this bug. Bye. -- ___ Python tracker <http://bugs.python.org/i

[issue1646838] os.path, %HOME% set: realpath contradicts expanduser on '~'

2009-10-17 Thread Marco Buccini
Changes by Marco Buccini : -- nosy: +markon ___ Python tracker <http://bugs.python.org/issue1646838> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6975] symlinks incorrectly resolved on Linux

2009-10-17 Thread Marco Buccini
Changes by Marco Buccini : -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue6975> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2   3   4   5   >