New submission from Pablo :
import random
mylist = ["apple", "banana", "cherry"]
print(random.shuffle(mylist))
Result: None
Expected result: A shuffle list
It works in Python 3.7.3 but it fails in Python 3.8.5 (Ubuntu 20.04.2)
--
messages: 386807
no
Pablo added the comment:
```
import random
mylist = ["apple", "banana", "cherry"]
print(random.shuffle(mylist))
```
Result: None
Expected result: A shuffled list
It works in Python 3.7.3 but it fails in Python 3.8.5 (Ubuntu 20.04.2)
--
Pablo added the comment:
random shuffle is supposed to change the list in place.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Pablo:
There are two documentation issues regarding the ZeroMQSocketListener and
ZeroMQSocketHandler examples in the Logging Cookbook:
The first issue is that in the 'init' method for the 'ZeroMQSocketListener' the
base class 'init' is
New submission from Pablo :
Based on bpo-29762
(https://github.com/python/cpython/commit/5affd23e6f42125998724787025080a24839266e),
there is an inconsistency on one exception chain in
/Lib/xml/etree/ElementPath.py:
try:
selector.append(ops[token[0]](next, token
Change by Pablo :
--
title: Inconsistent exception chaining in /Lib/xml/etree/ElementPath.py ->
Missing "raise from None" in /Lib/xml/etree/ElementPath.py
___
Python tracker
<https://bugs.pytho
Change by Pablo :
--
keywords: +patch
pull_requests: +3953
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31776>
___
___
Python-
Change by Pablo :
--
pull_requests: +3954
___
Python tracker
<https://bugs.python.org/issue29762>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Pablo :
--
keywords: +patch
pull_requests: +3956
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue29696>
___
___
Python-
Change by Pablo :
--
keywords: +patch
pull_requests: +3975
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue31780>
___
___
Py
Change by Pablo :
--
keywords: +patch
pull_requests: +3976
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31786>
___
___
Python-
Pablo added the comment:
I have added a Pull Request fixing this issue. The current implementation is
checking in the syscall if the value for ms before rounding was negative.
To test for this, I call poll.poll in a thread and check that the thread is
alive after a join with timeout (so this
New submission from Pablo:
I used the IMAP library and I feel it lacks a lot of documentation regarding
types and encoding.
Example:
IMAP4.list([directory[, pattern]]):
It doesn't state if it expects the directory argument to be an string (unicode)
or a imap_utf7 encoded string or byte
New submission from Pablo:
IMAP library doesn't encode parameters to the required charset.
The library is useful, but when it comes to complex mailbox names, the user
needs to convert strings to and from the custom imap_utf7 encoding.
I think this conversion could be implemented in the li
Pablo Mouzo added the comment:
I'm attaching a patch against py3k trunk that moves the function to the html
module and fixes the documentation as Brett asked for. It also changes all the
occurrences of cgi.escape I found for html.escape .
--
keywords: +patch
nosy: +pablomouzo
Pablo Mouzo added the comment:
Thanks Georg for the review, I'm attaching a new patch with those problems
fixed.
The new patch escapes ' when the quote parameter is true, and / always.
--
Added file: http://bugs.python.org/file18619/issu
Changes by Pablo Mouzo :
Removed file: http://bugs.python.org/file18612/issue2830.diff
___
Python tracker
<http://bugs.python.org/issue2830>
___
___
Python-bugs-list m
Changes by Pablo Mouzo :
Removed file: http://bugs.python.org/file18619/issue2830.diff
___
Python tracker
<http://bugs.python.org/issue2830>
___
___
Python-bugs-list m
Pablo Mouzo added the comment:
Sorry about that, I have no idea how I managed to generate that diff.
I'm attaching the correct patch.
About the slash, there's a link in #9061 that recommends to escape the slash
too because it's used to close tags in HTML. Is there any chanc
Changes by Pablo Mouzo :
Removed file: http://bugs.python.org/file18636/issue2830.diff
___
Python tracker
<http://bugs.python.org/issue2830>
___
___
Python-bugs-list m
Pablo Mouzo added the comment:
I'm attaching a new patch without escaping the slash.
--
Added file: http://bugs.python.org/file18667/issue2830.diff
___
Python tracker
<http://bugs.python.org/i
Pablo Mouzo added the comment:
I'm attaching a new patch with the documentation updated.
I agree with Georg that it'd be better to escape everything by default. Are
there any good reasons not to?
--
Added file: http://bugs.python.org/file18677/issu
Changes by Pablo Mouzo :
Removed file: http://bugs.python.org/file18667/issue2830.diff
___
Python tracker
<http://bugs.python.org/issue2830>
___
___
Python-bugs-list m
Pablo Bitton added the comment:
Has anybody had a chance to look into the problem I encountered yet?
Do you need more information?
--
___
Python tracker
<http://bugs.python.org/issue5
Pablo Mouzo added the comment:
I'm attaching a draft patch for patch. Éric, is this patch implementing patch
as you expected?
This patch is not finished because there are many cases where patch can leave
patched objects if it fails to unpatch.
--
keywords: +patch
nosy: +pablo
Pablo Bitton added the comment:
Has anybody had a chance to look into the problem I encountered yet?
Do you need more information?
--
___
Python tracker
<http://bugs.python.org/issue5
Pablo Mouzo added the comment:
I'm attaching a correction to sqlite3 documentation, removing all 'buffer'
references and setting bytes as BLOB equivalent.
--
keywords: +patch
nosy: +pablomouzo
Added file: http://bugs.python.org/file15977/issue7723
Changes by Pablo Mouzo :
--
nosy: +pablomouzo
___
Python tracker
<http://bugs.python.org/issue6045>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pablo Mouzo added the comment:
The patch changes the default to True, and updates the tests and the docs to
reflect this.
--
keywords: +patch
nosy: +pablomouzo
Added file: http://bugs.python.org/file16377/issue7834.diff
___
Python tracker
<h
Changes by Pablo Mouzo :
--
nosy: +pablomouzo
___
Python tracker
<http://bugs.python.org/issue7300>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Pablo Castagnino :
Something in python's timezone handling needs to be
updated. Python does not take into account 'daylight saving' clock time
changes.
The thing is my clock time is correct. If you
ask anyone here for the time, they will tell you it'
Pablo Castagnino added the comment:
Ok, first of all I want to say I'm no Python programmer/developer.
However, I recently posted a 'bug' for a Linux/Windows program I'm using
very much which is based in Python. The program is called Anki and it's
designed to help yo
Pablo Castagnino added the comment:
the last post on that link is the point - python supports daylight
savings, but if
your city recently started using daylight savings, and didn't before,
then either
python or linux needs to be updated to know that.
I'm using Ubuntu Int
Pablo Castagnino added the comment:
Ok, everything seems to be working now in Ubuntu. However, I can't get
it work in WIN XP (at work). :(
Thanks for all your help!
___
Python tracker
<http://bugs.python.org/i
Pablo Castagnino added the comment:
Ok. I installed the WIN XP patch loewis talked about...and now
everything works smoothly in Windows too. Thanks!
___
Python tracker
<http://bugs.python.org/issue4
New submission from Pablo Dumas :
float('nan')==math.nan does NOT evaluate to True (as suggested by
documentation).
On the other hand, float('inf')==math.inf DOES evaluate to True (as
suggested by documentation).
Documentation we're referring to: https://do
New submission from Pablo Conesa :
Hi, one of our users is reporting this starting to happen in a GPFS. All has
been working fine for NTFS so far for many years.
I had a look at my shutil code, and I can see the try/except code trying to
fall back to the "slower" copyfileobj(
Pablo Conesa added the comment:
So, is it ok, when the fast copy fails, not to _GiveupOnFastCopy(err)?
I can understand that fast copy might fail, but then the Giveup part should
happen and it wasn't.
Additionally, _USE_CP_SENDFILE could be taken, optionally from an environment
variab
New submission from Pablo Aguilar :
Hey, I'm not sure if this is really a bug but I'd like to show to prevent some
undesired behavior!
I'm working in the `match` support for returns
(https://github.com/dry-python/returns) library when I saw a behavior similar
to the describ
Pablo Aguilar added the comment:
But, `Maybe.empty` works like a `Literal Pattern` or `Constant Pattern`?
--
___
Python tracker
<https://bugs.python.org/issue44
Pablo Aguilar added the comment:
In fact, I'm worried about how to explain some behaviors.
Look here:
```python
# `Maybe` here is the same class described in the first message
Nothing = Maybe()
Maybe.empty = Nothing
if __name__ == '__main__':
my_maybe = Maybe()
New submission from Pablo Dumas :
Shouldn't os.setxattr() errno EEXIST be when "XATTR_CREATE was specified, and
the attribute exists already" and errno ENODATA be when "XATTR_REPLACE was
specified, and the attribute does not exist."? In the current os module
document
New submission from Pablo Oliveira :
I'm using Python 2.7.3rc2 from debian sid packages.
If a mailbox.Maildir object is created with a unicode dirname,
retrieving a message tagged with maildir flags with get() or get_message()
fails with the following exception:
Traceback (most recent
New submission from Pablo Acosta:
The Greatest Common Divisor (gcd) algorithm sometimes breaks because the modulo
operation does not always return a strict integer number, but one very, very
close to one. This is enough to drive the algorithm astray from that point on.
Example:
>>
Pablo Acosta added the comment:
Actually probably int(round(a%b)) would be better.
--
___
Python tracker
<http://bugs.python.org/issue21712>
___
___
Python-bug
Pablo Acosta added the comment:
I will correct myself one more time (hopefully the last):
while b:
a, b = b, round(a % b, 10)
return a
a b fractions.gcd proposed_algorithm
--
48
Pablo Acosta added the comment:
Understood and agreed. My bad too for not reading the documentation more
carefully. Thank you for the detailed explanation.
Pablo
> On Jun 11, 2014, at 2:52 PM, Tim Peters wrote:
>
>
> Tim Peters added the comment:
>
> @pacosta, if Ma
Pablo Sole added the comment:
I found another case where the result of ismount() is misleading. I'm using a
FUSE-based filesystem controlled by a python supervisor daemon.
When the fuse daemon dies and you try to access the filesystem with os.stat()
it returns:
OSError: [Errno 107] Tran
New submission from Pablo Mouzo :
FPT class doesn't support the rest parameter in storbinary method.
--
components: None
messages: 92287
nosy: pablomouzo
severity: normal
status: open
title: ftplib rest support for storbinary
type: feature request
versions: Pytho
Pablo Mouzo added the comment:
I attached a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file14841/issue6845.patch
___
Python tracker
<http://bugs.python.org/issue6
Changes by Pablo Mouzo :
--
nosy: +facundobatista
___
Python tracker
<http://bugs.python.org/issue6845>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Pablo Mouzo :
Removed file: http://bugs.python.org/file14841/issue6845.patch
___
Python tracker
<http://bugs.python.org/issue6845>
___
___
Python-bugs-list m
Pablo Mouzo added the comment:
I'm changing the title to something clearer (I hope).
The patch I submitted adds the retr optional parameter to the storbinary
method.
--
title: ftplib rest support for storbinary -> Restart support in binary upload
for ftplib
Added fi
Pablo Mouzo added the comment:
I attached some tests.
--
Added file: http://bugs.python.org/file15027/issue6845.diff
___
Python tracker
<http://bugs.python.org/issue6
Changes by Pablo Mouzo :
Removed file: http://bugs.python.org/file14876/issue6845.patch
___
Python tracker
<http://bugs.python.org/issue6845>
___
___
Python-bugs-list m
Changes by Pablo Mouzo :
--
nosy: +gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue6845>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pablo Mouzo added the comment:
I think that a non-digit REST argument is an error. But I've tested some
ftp servers and they don't return an error code, they just set REST to 0
and return some OK code. Finally, ftplib doesn't check that, so if
someone accidentally passes a non-di
Pablo Mouzo added the comment:
Here is a new patch. It works with both ints and strings.
I'm working on a patch for py3k.
--
Added file: http://bugs.python.org/file15302/issue6845-trunk.diff
___
Python tracker
<http://bugs.python.org/i
Changes by Pablo Mouzo :
Removed file: http://bugs.python.org/file15027/issue6845.diff
___
Python tracker
<http://bugs.python.org/issue6845>
___
___
Python-bugs-list m
New submission from pablo veloz :
sorry for my english, but how can i reparer that problem? help me pls thank.
--
messages: 95273
nosy: pveloz
severity: normal
status: open
title: SOLUTION pls? /usr/lib/python2.6/dist-packages/visual/__init__.py", line
59, in import cv
Changes by Pablo Mouzo :
Removed file: http://bugs.python.org/file15302/issue6845-trunk.diff
___
Python tracker
<http://bugs.python.org/issue6845>
___
___
Python-bug
Pablo Mouzo added the comment:
Thanks Antoine, I'm attaching both patches. Now the test isn't failing.
--
Added file: http://bugs.python.org/file15401/issue6845-trunk.diff
___
Python tracker
<http://bugs.python.
Changes by Pablo Mouzo :
Added file: http://bugs.python.org/file15402/issue6845-py3k.diff
___
Python tracker
<http://bugs.python.org/issue6845>
___
___
Python-bugs-list m
Pablo Mouzo added the comment:
This patch solves the problem with the VRFY command, but I'm still
wondering if this happens with other commands too.
--
keywords: +patch
nosy: +pablomouzo
Added file: http://bugs.python.org/file15674/issue7484-trunk
Changes by Pablo Mouzo :
Added file: http://bugs.python.org/file15675/issue7484-py3k.diff
___
Python tracker
<http://bugs.python.org/issue7484>
___
___
Python-bugs-list m
Pablo Mouzo added the comment:
The problem here is that the headers are not updated if they already
exists. The solution is quite simple but breaks the tests because it
"clobbers the existing headers".
You can do this:
...
req.add_data(some_data)
req.add_unredirected_header('
New submission from pablo stapff :
We use umlaut in our docstrings and when we use the help() function to extract
the documentation, the function reports an error:
UnicodeEncodeError: 'ascii' codec can't encode character
Our docstrings are specified as unicode literals and
Changes by Pablo Bitton :
--
nosy: +Pablo.Bitton
___
Python tracker
<http://bugs.python.org/issue5673>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pablo Bitton added the comment:
I'd like to report a problem I encountered with the discussed use pattern using
subprocess-timeout-v5.patch on linux. I don't have python3 installed at work,
sorry.
When running:
p = subprocess.Popen("tcpdump -i eth0 > file &", std
Pablo Bitton added the comment:
I've been using the subprocess-timeout-v5.patch patch with 2.x. Isn't that
version supposed to work with 2.x?
Other than the stated problem, the patched module generally works, and is very
helpful.
--
Pablo Bitton added the comment:
I reproduced the problem with the latest patch,
subprocess-timeout-py3k-v7.patch, on py3k on Linux.
Attached is the code to reproduce the problem and the resulting traceback.
--
Added file: http://bugs.python.org/file18468/tcpdump error.txt
New submission from pablo sacristan:
The code is very simple:
import sys
sys.setrecursionlimit(1<<20)
test=lambda test:test(test)
test(test)
It basically works by changing the recursion limit and then starting an
infinite recursion, this quickly gives a segfault.
This can be used to
New submission from pablo sacristan:
The code is also simple on this one:
from types import CodeType as code
exec code(0, 2, 3, 0, "lol lolol", (), (), (), "", "", 0, "")
The interpreter isn't checking if the code object is correct, therefore
pablo sacristan added the comment:
I can also reproduce on 3.5 and on 3.4.
Thank you.
--
versions: +Python 3.4, Python 3.5
___
Python tracker
<http://bugs.python.org/issue27
pablo sacristan added the comment:
I do agree it is not a very big problem, but it is still a problem. If a python
program took user input (maybe HTTP server) took user input (POST values) and
construct a code object with that input. It would be possible to crash it and
that can be bad for
pablo sacristan added the comment:
Yes, but it is possible to blacklist some bytecode (it may be possible to
blacklist all or almost all malicious bytecode) and even more if the attacker
just wants to crash the target then the segfault would be an easy crash. It is
still an attack scenario
New submission from pablo sacristan:
There is an integer overflow because python doesn't check the length as it does
with bytearray() and it still goes on, so by doing something like:
>>> import array
>>> float(array.array("L",b"a"*0x
New submission from pablo sacristan:
There is an integer overflow because python doesn't check the length correctly
on bytearray:
bytearray(0xFFF**100**8)
That will not return an overflow message, and even though my hex knowledge is
very bad I do be
New submission from pablo sacristan:
There is an integer overflow in bin() because python incorrectly checks the
length of the input in bin().
bin(0xFFF+10**80)
That line will freeze python until you restart it, which basically is a crash
because python stops working
New submission from pablo sacristan:
There is an integer overflow because python doesn't check the length correctly
on print() statements:
print(0xFFF**100**8)
That will overflow and python would stop working, so it would be as good as
crashed :)
Ho
New submission from pablo sacristan:
There is an integer overflow because python doesn't check the length correctly
on arithmetic operations:
0xFFF**100**8
Just that line will freeze python, no oveflow message appears, no memory error,
and python basi
New submission from pablo sacristan:
There is an integer overflow on min() statements because python incorrectly
checks the length to put the overflow message, so it is possible to overflow
min()
min(0xFFF+10**80)
That line freezes python until you restart it, which is
New submission from pablo sacristan:
There is an integer overflow in unicode() because python incorrectly checks the
length of unicode():
unicode(0xFFF+10**80)
That freezes python until you restart it which is basically the same effect as
crashing python.
Hope it helps
New submission from pablo sacristan:
There is an integer overflow in dir():
dir(0xFFF+10**80)
That line will freeze python until you restart it, which makes it have the same
effect as a crash.
Hope it helps ;)
--
messages: 270708
nosy: pabstersac
priority
New submission from pablo sacristan:
There is an integer overflow on oct() because of incorrectly checking the
length.
oct(0xFFF+10**80)
That line will freeze python until you restart it, which is as good as crashed.
Hope it helps ;)
--
messages: 270709
nosy
New submission from pablo sacristan:
There is an integer overflow on hex() because python incorrectly checks the
length of the value to return overflow message if it were too big.
hex(0xFFF+10**80)
That line will freeze python until you restart it, which is the same
New submission from pablo sacristan:
There is an integer overflow on int() because python incorrectly checks the
length of the input.
int(0xFFF+10**80)
That line of code will freeze python until you restart it, which is as annoying
as if python had crashed.
Hope it
New submission from pablo sacristan:
There is a crash on bytearray(), not really a crash but rather the process gets
killed by the kernel, but that is a crash, and the keyboard interrupt stops
working while bytearray is working, so you can either restart python or wait
for python to get
New submission from pablo sacristan:
zlib.compress crashes when you put a lot of stuff into it and even when you try
keyboard interrupts it doesn't work for some reason, and Python gets killed
because trying to compress so much data gets the Python process get killed by
the kernel. If yo
pablo sacristan added the comment:
I know, but then shouldn't you try limiting the amount of data it allocates? Or
maybe allow for keyboard interrupts to be used while the it is going on,
because keyboard interrupts weren't working while it was working.
--
resolution:
pablo sacristan added the comment:
I'd like to but I don't have enough memory either, sorry.
--
versions: +Python 3.5, Python 3.6
___
Python tracker
<http://bugs.python.o
Changes by Pablo Aguiar :
--
nosy: +scorphus
___
Python tracker
<http://bugs.python.org/issue14787>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from pablo sacristan:
import ctypes, struct, sys, os
while 1:
os.system('python /Users/pabstersac/Desktop/Python\ Files/crash.py')
#Change to your full path to the file
inner = ()
outer = (inner,)
c_outer = (ctypes.c_char * sys.getsizeof(outer)).from_
pablo sacristan added the comment:
Then it is no bug that it crashes python? You don't have to put it in a loop,
but by looping it I am adding the part that makes it take more time but will
keep on crashing infinitely, take away the while loop but not what it has
inside and then also d
pablo sacristan added the comment:
New content for crash.py:
import ctypes, struct, sys, os
inner = ()
outer = (inner,)
c_outer = (ctypes.c_char * sys.getsizeof(outer)).from_address(id(outer))
inner_index = c_outer[:].find(struct.pack('P', id(inner)))
Changes by pablo sacristan :
--
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue26508>
___
___
Python-bugs-list mailing list
Unsubscrib
Pablo Galindo Salgado added the comment:
Steve, could this be related to the changes in getpath?
--
nosy: +steve.dower
___
Python tracker
<https://bugs.python.org/issue46
Change by Pablo Galindo Salgado :
--
priority: normal -> release blocker
___
Python tracker
<https://bugs.python.org/issue46028>
___
___
Python-bugs-list mai
Pablo Galindo Salgado added the comment:
Ned, are you able to bisect this or provide a simpler reproducer that doesn't
involve tox?
--
___
Python tracker
<https://bugs.python.org/is
Change by Pablo Galindo Salgado :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
1 - 100 of 4560 matches
Mail list logo