[issue43197] random.shuffle() returning None

2021-02-10 Thread Pablo
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

[issue43197] random.shuffle() returning None

2021-02-10 Thread Pablo
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) --

[issue43197] random.shuffle() returning None

2021-02-10 Thread Pablo
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

[issue31294] ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working

2017-08-28 Thread Pablo
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

[issue31776] Inconsistent exception chaining in /Lib/xml/etree/ElementPath.py

2017-10-12 Thread Pablo
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

[issue31776] Missing "raise from None" in /Lib/xml/etree/ElementPath.py

2017-10-12 Thread Pablo
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

[issue31776] Missing "raise from None" in /Lib/xml/etree/ElementPath.py

2017-10-12 Thread Pablo
Change by Pablo : -- keywords: +patch pull_requests: +3953 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31776> ___ ___ Python-

[issue29762] Use "raise from None"

2017-10-12 Thread Pablo
Change by Pablo : -- pull_requests: +3954 ___ Python tracker <https://bugs.python.org/issue29762> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29696] Use namedtuple in string.Formatter.parse iterator response

2017-10-12 Thread Pablo
Change by Pablo : -- keywords: +patch pull_requests: +3956 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue29696> ___ ___ Python-

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-14 Thread Pablo
Change by Pablo : -- keywords: +patch pull_requests: +3975 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue31780> ___ ___ Py

[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-14 Thread Pablo
Change by Pablo : -- keywords: +patch pull_requests: +3976 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31786> ___ ___ Python-

[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-15 Thread Pablo
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

[issue24027] IMAP library lacks documentation about expected parameter types

2015-04-22 Thread Pablo
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

[issue24030] IMAP library encoding enhancement

2015-04-22 Thread Pablo
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

[issue2830] Copy cgi.escape() to html

2010-08-22 Thread Pablo Mouzo
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

[issue2830] Copy cgi.escape() to html

2010-08-23 Thread Pablo Mouzo
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

[issue2830] Copy cgi.escape() to html

2010-08-23 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file18612/issue2830.diff ___ Python tracker <http://bugs.python.org/issue2830> ___ ___ Python-bugs-list m

[issue2830] Copy cgi.escape() to html

2010-08-24 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file18619/issue2830.diff ___ Python tracker <http://bugs.python.org/issue2830> ___ ___ Python-bugs-list m

[issue2830] Copy cgi.escape() to html

2010-08-24 Thread Pablo Mouzo
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

[issue2830] Copy cgi.escape() to html

2010-08-28 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file18636/issue2830.diff ___ Python tracker <http://bugs.python.org/issue2830> ___ ___ Python-bugs-list m

[issue2830] Copy cgi.escape() to html

2010-08-28 Thread Pablo Mouzo
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

[issue2830] Copy cgi.escape() to html

2010-08-29 Thread Pablo Mouzo
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

[issue2830] Copy cgi.escape() to html

2010-08-29 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file18667/issue2830.diff ___ Python tracker <http://bugs.python.org/issue2830> ___ ___ Python-bugs-list m

[issue5673] Add timeout option to subprocess.Popen

2010-09-20 Thread Pablo Bitton
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

[issue11664] Add patch method to unittest.TestCase

2011-03-26 Thread Pablo Mouzo
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

[issue5673] Add timeout option to subprocess.Popen

2010-12-07 Thread Pablo Bitton
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

[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2010-01-22 Thread Pablo Mouzo
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

[issue6045] Fix dbm interfaces

2010-01-22 Thread Pablo Mouzo
Changes by Pablo Mouzo : -- nosy: +pablomouzo ___ Python tracker <http://bugs.python.org/issue6045> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7911] unittest.TestCase.longMessage should default to True in Python 3.2

2010-02-25 Thread Pablo Mouzo
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

[issue7300] Unicode arguments in str.format()

2010-03-07 Thread Pablo Mouzo
Changes by Pablo Mouzo : -- nosy: +pablomouzo ___ Python tracker <http://bugs.python.org/issue7300> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4881] Python's timezon handling: daylight saving option

2009-01-08 Thread Pablo Castagnino
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'

[issue4881] Python's timezon handling: daylight saving option

2009-01-09 Thread Pablo Castagnino
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

[issue4881] Python's timezon handling: daylight saving option

2009-01-11 Thread Pablo Castagnino
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

[issue4881] Python's timezon handling: daylight saving option

2009-01-12 Thread Pablo Castagnino
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

[issue4881] Python's timezon handling: daylight saving option

2009-01-13 Thread Pablo Castagnino
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

[issue47020] float('nan')==math.nan does NOT evaluate to True (as suggested by documentation).

2022-03-14 Thread Pablo Dumas
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

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-04-06 Thread Pablo Conesa
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(

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-05-10 Thread Pablo Conesa
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

[issue44617] Undesired Behavior on `match` using Singleton object

2021-07-12 Thread Pablo Aguilar
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

[issue44617] Undesired Behavior on `match` using Singleton object

2021-07-13 Thread Pablo Aguilar
Pablo Aguilar added the comment: But, `Maybe.empty` works like a `Literal Pattern` or `Constant Pattern`? -- ___ Python tracker <https://bugs.python.org/issue44

[issue44617] Undesired Behavior on `match` using Singleton object

2021-07-13 Thread Pablo Aguilar
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()

[issue41277] documentation: os.setxattr() errno EEXIST and ENODATA

2020-07-10 Thread Pablo Dumas
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

[issue14922] mailbox.Maildir.get_message() may fail when Maildir dirname is a unicode string

2012-05-25 Thread Pablo Oliveira
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

[issue21712] fractions.gcd failure

2014-06-10 Thread Pablo Acosta
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: >>

[issue21712] fractions.gcd failure

2014-06-10 Thread Pablo Acosta
Pablo Acosta added the comment: Actually probably int(round(a%b)) would be better. -- ___ Python tracker <http://bugs.python.org/issue21712> ___ ___ Python-bug

[issue21712] fractions.gcd failure

2014-06-10 Thread Pablo Acosta
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

[issue21712] fractions.gcd failure

2014-06-11 Thread Pablo Acosta
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

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2014-07-07 Thread Pablo Sole
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

[issue6845] ftplib rest support for storbinary

2009-09-05 Thread Pablo Mouzo
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

[issue6845] ftplib rest support for storbinary

2009-09-05 Thread Pablo Mouzo
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

[issue6845] ftplib rest support for storbinary

2009-09-06 Thread Pablo Mouzo
Changes by Pablo Mouzo : -- nosy: +facundobatista ___ Python tracker <http://bugs.python.org/issue6845> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6845] ftplib rest support for storbinary

2009-09-10 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file14841/issue6845.patch ___ Python tracker <http://bugs.python.org/issue6845> ___ ___ Python-bugs-list m

[issue6845] Restart support in binary upload for ftplib

2009-09-10 Thread Pablo Mouzo
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

[issue6845] Restart support in binary upload for ftplib

2009-10-02 Thread Pablo Mouzo
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

[issue6845] Restart support in binary upload for ftplib

2009-10-06 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file14876/issue6845.patch ___ Python tracker <http://bugs.python.org/issue6845> ___ ___ Python-bugs-list m

[issue6845] Restart support in binary upload for ftplib

2009-10-08 Thread Pablo Mouzo
Changes by Pablo Mouzo : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue6845> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6845] Restart support in binary upload for ftplib

2009-10-20 Thread Pablo Mouzo
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

[issue6845] Restart support in binary upload for ftplib

2009-11-09 Thread Pablo Mouzo
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

[issue6845] Restart support in binary upload for ftplib

2009-11-09 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file15027/issue6845.diff ___ Python tracker <http://bugs.python.org/issue6845> ___ ___ Python-bugs-list m

[issue7326] SOLUTION pls? /usr/lib/python2.6/dist-packages/visual/__init__.py", line 59, in import cvisual AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-onl

2009-11-14 Thread pablo veloz
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

[issue6845] Restart support in binary upload for ftplib

2009-11-26 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file15302/issue6845-trunk.diff ___ Python tracker <http://bugs.python.org/issue6845> ___ ___ Python-bug

[issue6845] Restart support in binary upload for ftplib

2009-11-26 Thread Pablo Mouzo
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.

[issue6845] Restart support in binary upload for ftplib

2009-11-26 Thread Pablo Mouzo
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

[issue7484] smtplib: verify breaks with Postfix servers

2009-12-25 Thread Pablo Mouzo
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

[issue7484] smtplib: verify breaks with Postfix servers

2009-12-25 Thread Pablo Mouzo
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

[issue7540] urllib2 request does not update content length after new add_data

2009-12-27 Thread Pablo Mouzo
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('

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread pablo stapff
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

[issue5673] Add timeout option to subprocess.Popen

2010-08-08 Thread Pablo Bitton
Changes by Pablo Bitton : -- nosy: +Pablo.Bitton ___ Python tracker <http://bugs.python.org/issue5673> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5673] Add timeout option to subprocess.Popen

2010-08-08 Thread Pablo Bitton
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

[issue5673] Add timeout option to subprocess.Popen

2010-08-09 Thread Pablo Bitton
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. --

[issue5673] Add timeout option to subprocess.Popen

2010-08-10 Thread Pablo Bitton
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

[issue27537] Segfault Via Resource Exhaustion

2016-07-16 Thread pablo sacristan
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

[issue27538] Segfault on error in code object checking

2016-07-16 Thread pablo sacristan
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

[issue27538] Segfault on error in code object checking

2016-07-17 Thread pablo sacristan
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

[issue27538] Segfault on error in code object checking

2016-07-17 Thread pablo sacristan
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

[issue27538] Segfault on error in code object checking

2016-07-17 Thread pablo sacristan
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

[issue27547] Integer Overflow Crash On float(array.array())

2016-07-17 Thread pablo sacristan
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

[issue27549] Integer Overflow Crash On bytearray()

2016-07-17 Thread pablo sacristan
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

[issue27548] Integer Overflow On bin()

2016-07-17 Thread pablo sacristan
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

[issue27551] Integer Overflow On print()

2016-07-17 Thread pablo sacristan
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

[issue27550] Integer Overflow Crash On Arithmetic Operations

2016-07-17 Thread pablo sacristan
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

[issue27552] Integer Overflow On min()

2016-07-17 Thread pablo sacristan
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

[issue27553] Integer Overflow On unicode()

2016-07-17 Thread pablo sacristan
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

[issue27554] Integer Overflow On dir()

2016-07-17 Thread pablo sacristan
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

[issue27555] Integer Overflow on oct()

2016-07-17 Thread pablo sacristan
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

[issue27556] Integer overflow on hex()

2016-07-17 Thread pablo sacristan
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

[issue27557] Integer Overflow on int()

2016-07-17 Thread pablo sacristan
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

[issue27559] Crash On bytearray()

2016-07-18 Thread pablo sacristan
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

[issue27560] zlib.compress() crash and keyboard interrupt stops working

2016-07-18 Thread pablo sacristan
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

[issue27559] Crash On bytearray()

2016-07-18 Thread pablo sacristan
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:

[issue27560] zlib.compress() crash and keyboard interrupt stops working

2016-07-18 Thread pablo sacristan
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

[issue14787] pkgutil.walk_packages returns extra modules

2014-12-09 Thread Pablo Aguiar
Changes by Pablo Aguiar : -- nosy: +scorphus ___ Python tracker <http://bugs.python.org/issue14787> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26508] Infinite crash leading to DoS

2016-03-07 Thread pablo sacristan
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_

[issue26508] Infinite crash leading to DoS

2016-03-08 Thread pablo sacristan
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

[issue26508] Infinite crash leading to DoS

2016-03-08 Thread pablo sacristan
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)))

[issue26508] Infinite crash leading to DoS

2016-03-08 Thread pablo sacristan
Changes by pablo sacristan : -- status: closed -> open ___ Python tracker <http://bugs.python.org/issue26508> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-09 Thread Pablo Galindo Salgado
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

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker <https://bugs.python.org/issue46028> ___ ___ Python-bugs-list mai

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-09 Thread Pablo Galindo Salgado
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

[issue43931] Add the Python version to the API data.

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

  1   2   3   4   5   6   7   8   9   10   >