Changes by Marco Buttu :
--
pull_requests: +509
___
Python tracker
<http://bugs.python.org/issue27200>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Changes by Marco Buttu :
--
pull_requests: +561
___
Python tracker
<http://bugs.python.org/issue29820>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Marco Buttu :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Marco Buttu :
--
pull_requests: +727
___
Python tracker
<http://bugs.python.org/issue27200>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Marco Buttu :
--
pull_requests: +1236
___
Python tracker
<http://bugs.python.org/issue30055>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Changes by Marco Buttu :
--
pull_requests: +1603
___
Python tracker
<http://bugs.python.org/issue30217>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Marco Buttu :
--
pull_requests: +2190
___
Python tracker
<http://bugs.python.org/issue30217>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Marco Buttu :
--
pull_requests: +2191
___
Python tracker
<http://bugs.python.org/issue30217>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Marco Buttu :
--
pull_requests: +2192
___
Python tracker
<http://bugs.python.org/issue30217>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Marco Rougeth :
--
title: Argument typo in dam.ndbm.open -> Argument typo in dbm.ndbm.open
___
Python tracker
<https://bugs.python.org/issu
Change by Marco Rougeth :
--
keywords: +patch
pull_requests: +12453
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36322>
___
___
Py
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
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
Marco Rougeth added the comment:
You're right @josh.r! Thank you!
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.pyth
Change by Marco Rougeth :
--
keywords: +patch
pull_requests: +5774
stage: test needed -> patch review
___
Python tracker
<https://bugs.python.org/issu
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
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
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
Change by Marco Strigl :
--
pull_requests: +6307
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33365>
___
___
Python-bugs-list mai
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: "
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'
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
Changes by Marco Buttu :
--
title: OverflowError during division: wrong message -> OverflowError in
division: wrong message
___
Python tracker
<http://bugs.python.org/issu
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
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
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
Changes by Marco Buttu :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue16046>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
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
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
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
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
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
>
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
Changes by Marco Buccini :
--
nosy: -markon
___
Python tracker
<http://bugs.python.org/issue6975>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Marco Buccini :
--
nosy: -markon
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Marco Buccini :
--
nosy: -markon
___
Python tracker
<http://bugs.python.org/issue6074>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Marco Buttu :
Added file: http://bugs.python.org/file31821/py2howto.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list mailin
Changes by Marco Buttu :
--
keywords: +patch
Added file: http://bugs.python.org/file31820/py3howto.patch
___
Python tracker
<http://bugs.python.org/issue19
Changes by Marco Buttu :
Removed file: http://bugs.python.org/file31820/py3howto.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list m
Changes by Marco Buttu :
Removed file: http://bugs.python.org/file31821/py2howto.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list m
Changes by Marco Buttu :
Added file: http://bugs.python.org/file31829/py2howto.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list mailin
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
Changes by Marco Buttu :
Removed file: http://bugs.python.org/file31829/py2howto.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list m
Changes by Marco Buttu :
Added file: http://bugs.python.org/file31830/py2howto.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list mailin
Changes by Marco Buttu :
Removed file: http://bugs.python.org/file31828/py3howto.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list m
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.
--
Changes by Marco Buttu :
Removed file: http://bugs.python.org/file31831/py3howto.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list m
Changes by Marco Buttu :
Removed file: http://bugs.python.org/file31830/py2howto.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list m
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
Changes by Marco Buttu :
--
resolution: invalid -> works for me
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Pyth
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
Changes by Marco Buttu :
Removed file: http://bugs.python.org/file31834/py3full.patch
___
Python tracker
<http://bugs.python.org/issue19054>
___
___
Python-bugs-list m
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
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
Marco Buttu added the comment:
$ python -c "import this" | grep "silently"
Errors should never pass silently
--
___
Python tracker
<http://bug
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
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
Changes by Marco Buttu :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue19068>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Marco Buccini :
Added file: http://bugs.python.org/file15136/test_subprocess.patch
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bug
Changes by Marco Buccini :
Removed file: http://bugs.python.org/file15136/test_subprocess.patch
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bug
Changes by Marco Buccini :
Added file: http://bugs.python.org/file15137/test_subprocess.patch
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bug
Changes by Marco Buccini :
Removed file: http://bugs.python.org/file15135/subprocess.patch
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bugs-list m
Changes by Marco Buccini :
Added file: http://bugs.python.org/file15141/subprocess.patch
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bugs-list m
Changes by Marco Buccini :
Removed file: http://bugs.python.org/file15141/subprocess.patch
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bugs-list m
Changes by Marco Buccini :
Removed file: http://bugs.python.org/file15137/test_subprocess.patch
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bug
Changes by Marco Buccini :
Added file: http://bugs.python.org/file15142/test_subprocess.patch
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bug
Changes by Marco Buccini :
Added file: http://bugs.python.org/file15143/subprocess.patch
___
Python tracker
<http://bugs.python.org/issue6973>
___
___
Python-bugs-list m
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.
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
Marco Buccini added the comment:
> I should close this bug.
I *would* close this bug. Sorry :)
--
___
Python tracker
<http://bugs.python.org/issue7158>
___
_
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
Changes by Marco Buccini :
--
nosy: +markon
___
Python tracker
<http://bugs.python.org/issue1646838>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Marco Buccini :
--
nosy: +brett.cannon
___
Python tracker
<http://bugs.python.org/issue6975>
___
___
Python-bugs-list mailing list
Unsubscribe:
201 - 300 of 402 matches
Mail list logo