[issue45381] IDLE cannot kill process. "interupt" ctl+c and "restart shell" freeze program.

2021-10-05 Thread A A
New submission from A A : Idle3 with python 3.7.3 on Debian Buster and XFCE. Attempting to run the line 'print ("Hello World" * 8**8)' from either the Idle shell window or Idle editor will cause Idle to hang and one CPU core runs 100%.(allowed it to run for several min

[issue9290] IDLE and Command line present different behavior for sys.stdin

2012-03-11 Thread a
a added the comment: Other quirks apparently caused by this bug: msvcrt.getch() does not block and wait for a keypress in IDLE. Returns immediately with b'\xff'. Some of the suggested usage in the manual for sys.stdin does not work under IDLE. E.g. sys.stdin.detach() doesn'

[issue31809] ssl module unnecessarily pins the client curve when using ECDH

2017-10-18 Thread A
New submission from A : When using elliptic curves in combination with the ssl module to wrap a socket, the only curve the client accepts is prime256v1. Expected behavior is to accept all curves that are on the default list and supported by the server. We noticed the issue when connecting to

[issue46599] Objects/object.c:767:24: runtime error: member access within null pointer of type 'PyObject' (aka 'struct _object')

2022-02-01 Thread A-Shvedov
New submission from A-Shvedov : Hello. Got an error with AFLplusplus, with crafted sample: https://github.com/a-shvedov/res/blob/master/fuzzing/python/crashes/id:00%2Csig:11%2Csrc:009074%2Ctime:446401660%2Cexecs:16120011%2Cop:arith8%2Cpos:16%2Cval:-21 Compiled with: clang (version 6.0.0-3

[issue38364] inspect.iscoroutinefunction / isgeneratorfunction / isasyncgenfunction can't handle partialmethod objects

2022-03-05 Thread Jameel A.
Change by Jameel A. : -- versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue38364> ___ ___ Python-bugs-list mailing list Unsub

[issue13587] Correcting the typos error in Doc/howto/urllib2.rst

2011-12-12 Thread Bithin A
New submission from Bithin A : In the documentation 'HOWTO Fetch Internet Resources Using urllib2' there is a correction under the heading 'Basic Authentication' In the line 'The header looks like : ``Www-authenticate: SCHEME realm="REALM"``. ' the word

[issue13737] bugs.python.org's Django settings file DEBUG=True

2012-01-07 Thread Bithin A
New submission from Bithin A : I am getting an Django error when I was trying to review a patch. This error has occurred in the site as the DEBUG mode in the Django settings file is set to True. It is a security issue and should be set to false. I am attaching the screen shot of the error

[issue13737] bugs.python.org/review's Django settings file DEBUG=True

2012-01-08 Thread Bithin A
Bithin A added the comment: The bugs.python.org/review is a running application and it is very bad to see debug error messages. -- ___ Python tracker <http://bugs.python.org/issue13

[issue25299] TypeError: __init__() takes at least 4 arguments (4 given)

2019-08-17 Thread A. Skrobov
A. Skrobov added the comment: Joannah, I see that under #25314, the docs were updated to match the implementation: https://github.com/python/cpython/commit/b4912b8ed367e540ee060fe912f841cc764fd293 On the other hand, the discussion here (from 2015) and on #25314 (from 2016) includes

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-04 Thread Anj-A
Anj-A <2017...@gmail.com> added the comment: Hi all, I'm a newcomer interested in doing a small fix. Wondering if anyone's working on this at the moment? ------ nosy: +Anj-A ___ Python tracker <https://bugs.py

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-04 Thread Anj-A
Anj-A <2017...@gmail.com> added the comment: Hey, I'm not exactly clear what the required fix is here and would appreciate some guidance, is it in the documentation or in the way the error is handled? -- ___ Python tracker <https://b

[issue37838] typing.get_type_hints not working with forward-declaration and decorated functions

2019-11-04 Thread Anj-A
Change by Anj-A <2017...@gmail.com>: -- keywords: +patch pull_requests: +16560 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17047 ___ Python tracker <https://bugs.python.or

[issue38652] Remove/update provisional note for asyncio.BufferedProtocol

2019-11-04 Thread Anj-A
Anj-A <2017...@gmail.com> added the comment: Hey, I've done the change and opened a pull request for it (I'm working with Ben and I've let him know) -- nosy: +Anj-A ___ Python tracker <https://bu

[issue38652] Remove/update provisional note for asyncio.BufferedProtocol

2019-11-04 Thread Anj-A
Change by Anj-A <2017...@gmail.com>: -- keywords: +patch pull_requests: +16563 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17047 ___ Python tracker <https://bugs.python.or

[issue44910] Floating point issue

2021-08-13 Thread A wilson
New submission from A wilson : 0.01 + 273.15 should equal 273.16 but in python 3.9.5 or earlier report as 273.159997. -- messages: 399550 nosy: afw2alan priority: normal severity: normal status: open title: Floating point issue type: behavior versions: Python 3.9

[issue44910] Floating point issue

2021-08-13 Thread A wilson
A wilson added the comment: Eric, I was unaware of this document and its implementation in python. where 0.01+0.15 = 0.16 but 0.01+273.15=273.159997 the latter which should be 273.16 which is triple point temperature of water in Kelvin. This floating point variance explains some

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-12 Thread Anj-A
Anj-A <2017...@gmail.com> added the comment: Hey, if there is no bug here, could we get this issue closed? Alternatively, I'd be interested in doing the required change in documentation/error type if that's seen to be the right solution. Personally, I think returning False in

[issue40439] Error in an external reference

2020-04-29 Thread Patrick A.
New submission from Patrick A. : This URL doesn't exist anymore. If you click on this URL you have a 404 not found. https://www.dcl.hpi.uni-potsdam.de/home/loewis/table-3131.html The website was changed and Dr. Martin v. Löwis is not hosted on the new site. Regards -- assignee:

[issue40543] Tamil locale is using outdated encoding

2020-05-07 Thread Muthu A
New submission from Muthu A : Tamil locale (TA_IN, TA_SL, TA_SG, TA_MY) is using outdated encoding of TSCII. Tamil community is widely using UTF-8 encoding. Further, the 'locale' standard library package in Python3 should be updated with these strings. Should the maintain

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Bithin A
New submission from Bithin A : In urllib/parse.py the collections module is imported twice which is against the PEP8-- Style Guide for Python Code. -- components: Library (Lib) files: multiple_imports.patch keywords: patch messages: 153780 nosy: Bithin.A priority: normal severity

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Bithin A
Changes by Bithin A : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue14064> ___ ___ Python-bugs-list mailing list Unsubscri

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Bithin A
Changes by Bithin A : Removed file: http://bugs.python.org/file24577/multiple_imports.patch ___ Python tracker <http://bugs.python.org/issue14064> ___ ___ Python-bug

[issue14524] Python-2.7.3rc2/Modules/_ctypes/libffi/src/dlmalloc.c won't compile on ia64-hp-hpux11.31 without -DHAVE_USR_INCLUDE_MALLOC_H

2012-04-07 Thread Paul A.
New submission from Paul A. : Shouldn't configure be able to arrive at that without me adding manually? Anyway, after the build finishes thing soon come crashing down; my stack trace is at the end... running build_scripts creating build/scripts-2.7 copying and adjusting /usr/local/src/P

[issue14524] Python-2.7.3rc2/Modules/_ctypes/libffi/src/dlmalloc.c won't compile on ia64-hp-hpux11.31 without -DHAVE_USR_INCLUDE_MALLOC_H

2012-04-07 Thread Paul A.
Changes by Paul A. : -- type: -> crash ___ Python tracker <http://bugs.python.org/issue14524> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue14525] ia64-hp-hpux11.31 won't compile Python-2.6.8rc2 without -D_TERMIOS_INCLUDED

2012-04-07 Thread Paul A.
New submission from Paul A. : I can't help thinking that configure should be able to figure out the need for this -- Modules/termios.c won't compile without adding -D_TERMIOS_INCLUDED by hand. This is far from new, all 2.5+ versions I've tried to compile are like that o

[issue14526] Python-2.6.8rc2 test never finishes ia64-hp-hpux11.31

2012-04-07 Thread Paul A.
New submission from Paul A. : Perhaps I'm not interpreting something happening earlier, but `make test' here only seems to run a short time but doesn't actually finish. It appears not to be using any cpu, or waiting for input, so I'm not sure what's happening. ...

[issue14527] How to link with an external libffi?

2012-04-07 Thread Paul A.
New submission from Paul A. : I trying to build python using an external libffi package I have installed -- is there some trick in directing --with-system-ffi to the path where it's located. I don't see clues in config.log or anywhere to help. -- messages: 157776 nosy: pd

[issue14524] Python-2.7.3rc2/Modules/_ctypes/libffi/src/dlmalloc.c won't compile on ia64-hp-hpux11.31 without -DHAVE_USR_INCLUDE_MALLOC_H

2012-04-08 Thread Paul A.
Paul A. added the comment: On Sun, Apr 08, 2012 at 02:01:05AM +, R. David Murray wrote: > > R. David Murray added the comment: > > Is this a bug report about configure, or a bug report about a crash during > compilation after you've adjusted the configure parame

[issue14525] ia64-hp-hpux11.31 won't compile Python-2.6.8rc2 without -D_TERMIOS_INCLUDED

2012-04-08 Thread Paul A.
Paul A. added the comment: On Sun, Apr 08, 2012 at 02:06:46AM +, R. David Murray wrote: > > R. David Murray added the comment: > > Can you suggest a patch? As I said on the other issue I don't believe any > core developers have access to hpux. Sure, once I figure

[issue14526] Python-2.6.8rc2 test never finishes ia64-hp-hpux11.31

2012-04-08 Thread Paul A.
Paul A. added the comment: On Sun, Apr 08, 2012 at 02:13:39AM +, R. David Murray wrote: > > R. David Murray added the comment: > > Oh, wait, I see you are testing the security RC. Is this a new problem, or > does it also occur with the previous released version of 2.6?

[issue14527] How to link with an external libffi?

2012-04-08 Thread Paul A.
Paul A. added the comment: On Sun, Apr 08, 2012 at 05:58:29AM +, Ross Lagerwall wrote: > > Ross Lagerwall added the comment: > > If it is in a non-standard location, try setting the environment variables: > > LDFLAGS linker flags, e.g. -L if you have libraries i

[issue14526] Python-2.6.8rc2 test never finishes ia64-hp-hpux11.31

2012-04-08 Thread Paul A.
Paul A. added the comment: On Sun, Apr 08, 2012 at 04:16:39PM +, R. David Murray wrote: > > R. David Murray added the comment: > > Can you clarify? In what sense has the 2.7.3 rc regressed? Shouldn't have left that out -- I was referring to the crash in that other

[issue14540] Crash in Modules/_ctypes/libffi/src/dlmalloc.c on ia64-hp-hpux11.31

2012-04-09 Thread Paul A.
New submission from Paul A. : The following stack trace happened towards the end of a Python-2.7.3rc2 build, but I also get much the same results with 2.7.2; one difference I noticed was I didn't think I needed to add -DHAVE_USR_INCLUDE_MALLOC_H there. running build_scripts creating

[issue14526] Python-2.6.8rc2 test never finishes ia64-hp-hpux11.31

2012-04-09 Thread Paul A.
Paul A. added the comment: Apparently my memory was faulty the other day... 2.7.2 does crash the same way as Python-2.7.3rc2 on this box. I opened a new bug report for that, so will close this one. I'll also sign up for core-mentorship as you suggest, and see what I can do to

[issue14524] Python-2.7.3rc2/Modules/_ctypes/libffi/src/dlmalloc.c won't compile on ia64-hp-hpux11.31 without -DHAVE_USR_INCLUDE_MALLOC_H

2012-04-09 Thread Paul A.
Paul A. added the comment: Will close this -- I'll try to help improve configure as I can get time. -- resolution: -> postponed status: open -> closed ___ Python tracker <http://bugs.python.

[issue14527] How to link with an external libffi?

2012-04-09 Thread Paul A.
Paul A. added the comment: Yes, I think my libffi setup is okay, but python apparently doesn't (according to the deeper-down log files I didn't initially know about). The following is a suspicious-looking snippet from build/temp.hp-ux-B.11.31-ia64-2.7/libffi/config.log... I have t

[issue14540] Crash in Modules/_ctypes/libffi/src/dlmalloc.c on ia64-hp-hpux11.31

2012-04-10 Thread Paul A.
Paul A. added the comment: I'd be more than happy to use my own installation of libffi instead, but it seems the --with-system-ffi configure flag doesn't work. I've also opened a different bug for that. -- ___ Python

[issue14527] How to link with an external libffi?

2012-04-10 Thread Paul A.
Paul A. added the comment: While this is no solution by any means, I think it'd be better for the scenario to be a fatal configure error. After all, if I say --with-system-ffi, it means I really, really want want to use my own l

[issue14540] Crash in Modules/_ctypes/libffi/src/dlmalloc.c on ia64-hp-hpux11.31

2012-04-11 Thread Paul A.
Paul A. added the comment: Yes indeed, sorry for not answering that question the first time. The trace is complete, and is from python... although most of it is really in the shared lib rather than the executable. -- ___ Python tracker <h

[issue26415] Excessive peak memory consumption by the Python parser

2017-07-24 Thread A. Skrobov
A. Skrobov added the comment: To bump this year-old issue, I have delivered a talk at EuroPython 2017, explaining what my patch does, how it does what it does, and why it's a good thing to do. You can watch my talk at https://www.youtube.com/watch?v=dyRDmcsTwhE&t

[issue26415] Excessive peak memory consumption by the Python parser

2018-12-06 Thread A. Skrobov
A. Skrobov added the comment: @Serhiy: incredibly, this patch from 2.5 years ago required very minor changes to apply to the latest master. Shows how ossified the parser is :-) Now posted as https://github.com/python/cpython/pull/10995

[issue26415] Excessive peak memory consumption by the Python parser

2018-12-14 Thread A. Skrobov
A. Skrobov added the comment: I've run pyperformance (0.7.0) with my updated patch, and posted results at the PR page. They look encouraging enough. -- ___ Python tracker <https://bugs.python.org/is

[issue11776] Constructor signatures missing in types module documentation

2019-02-24 Thread Tz a
Change by Tz a : -- nosy: +Tz a ___ Python tracker <https://bugs.python.org/issue11776> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36256] parser module fails on legal input

2019-03-10 Thread A. Skrobov
New submission from A. Skrobov : Under #26526, I had optimised the validation code in parser module to use the actual parser DFAs, but my code considers only the token types in the input, and doesn't distinguish between different NAMEs (e.g. different keywords). The result is this: P

[issue36256] parser module fails on legal input

2019-03-11 Thread A. Skrobov
A. Skrobov added the comment: > The major problem with the parser module is that is unsynchronized with the > actual parser The parser module is "sort of" synchronised with the actual parser, in that it uses the same _PyParser_Grammar; this doesn't mean they always beha

[issue36440] more helpful diagnostics for parser module

2019-03-26 Thread A. Skrobov
Change by A. Skrobov : -- keywords: +patch pull_requests: +12510 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36440> ___ ___ Py

[issue36440] more helpful diagnostics for parser module

2019-03-26 Thread A. Skrobov
New submission from A. Skrobov : Seeing that the implicit resolution at #36256 was to keep the parser module in place, may I suggest that the diagnostics it produces be improved, so that instead of "Expected node type 305, got 11", it would raise "Expected namedexpr_

[issue36440] more helpful diagnostics for parser module

2019-03-26 Thread A. Skrobov
A. Skrobov added the comment: > Nothing was really "decided", just that meanwhile is better not to ship a > broken parser module. Totally true, but the issue is closed and resolved, meaning that no one will ever look at it again. -- __

[issue36256] parser module fails on legal input

2019-04-05 Thread A. Skrobov
A. Skrobov added the comment: Is it intentional that the fix is not backported to 3.6 as well? -- ___ Python tracker <https://bugs.python.org/issue36

[issue18036] "How do I create a .pyc file?" FAQ entry is out of date

2013-07-16 Thread A Kaptur
A Kaptur added the comment: Here is a suggestion for updated documentation in this section. I've added the description of __pycache__, included a very short description of what a .pyc file is, and moved the troubleshooting to the end of the section. I'm not sure whether the descr

[issue20984] 'Add/Remove Programs' dialog missing entries for 32-bit CPython 'current user only' installations on 64-bit Windows

2014-03-20 Thread A Hettinger
A Hettinger added the comment: There was a request on the python-dev to check this on windows 8. I confirm the same behavior. Windows 8.1 Pro 64bit Python 3.4.0 32bit (release) Installed current user: Does not show up in Add/Remove Programs Installer correctly sees installation and can remove

[issue20469] ssl.getpeercert() should include extensions

2014-03-25 Thread A Hettinger
Changes by A Hettinger : Added file: http://bugs.python.org/file34623/Client.py ___ Python tracker <http://bugs.python.org/issue20469> ___ ___ Python-bugs-list mailin

[issue20469] ssl.getpeercert() should include extensions

2014-03-25 Thread A Hettinger
Changes by A Hettinger : Added file: http://bugs.python.org/file34624/Server.py ___ Python tracker <http://bugs.python.org/issue20469> ___ ___ Python-bugs-list mailin

[issue20469] ssl.getpeercert() should include extensions

2014-03-25 Thread A Hettinger
Changes by A Hettinger : Added file: http://bugs.python.org/file34625/cert.pem ___ Python tracker <http://bugs.python.org/issue20469> ___ ___ Python-bugs-list mailin

[issue20469] ssl.getpeercert() should include extensions

2014-03-25 Thread A Hettinger
A Hettinger added the comment: The specific thing I'm interested in is the custom extension "1.3.6.1.4.43167.0.0", but all of the X509 data should be imported. Client shows both the openssl and python outputs. I would expect anything the ssl system doesn't explicitly know

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-14 Thread A Kaptur
A Kaptur added the comment: This patch adds tests demonstrating broken behavior inspect.getsource and inspect.getsourcelines of decorators containing lambda functions, and modifies inspect.getsourcelines to behave correctly. We use co_lnotab to extract line numbers on all objects with a code

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-15 Thread A Kaptur
A Kaptur added the comment: v2 of the patch incorporating the comments at http://bugs.python.org/review/21217/ -- Added file: http://bugs.python.org/file34882/issue21217-v2.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-15 Thread A Kaptur
A Kaptur added the comment: v3 of patch, including misc/news update, docstring for function, and removing class decorator tests, since it sounds like those are better handled in http://bugs.python.org/issue1764286. -- Added file: http://bugs.python.org/file34885/issue21217-v3.patch

[issue16482] pdb.set_trace() clobbering traceback on error

2012-11-15 Thread A Kaptur
New submission from A Kaptur: pdb.set_trace() is overwriting the actual traceback when exiting with an error. See minimal recreation here: https://gist.github.com/4079971 -- messages: 175630 nosy: akaptur priority: normal severity: normal status: open title: pdb.set_trace() clobbering

[issue14525] ia64-hp-hpux11.31 won't compile Python-2.6.8rc2 without -D_TERMIOS_INCLUDED

2012-11-20 Thread Paul A.
Paul A. added the comment: On Sun, Nov 18, 2012 at 08:01:39PM +, Terry J. Reedy wrote: > I should have added 'please try compiling 3.x to make sure it has the same > problem' since configure might behave differently. I'm fairly sure I did, that was quite a few mon

[issue14540] Crash in Modules/_ctypes/libffi/src/dlmalloc.c on ia64-hp-hpux11.31

2014-06-22 Thread Paul A.
Paul A. added the comment: I believe this problem has been gone since around 2.7.5, so can I close this myself? -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue22008] Symtable's syntax warning should contain the word "because"

2014-07-18 Thread A Kaptur
New submission from A Kaptur: The symbol table's syntax error about unqualified exec is missing the word "because". >>> def foo(): ... exec "a = 1" ... def bar(): ... print a ... File "", line 2 SyntaxError: unqualified exec is

[issue22146] Error message for __build_class__ contains typo

2014-08-05 Thread A Kaptur
New submission from A Kaptur: One of the error messages for __build_class__ has an extra underscore in the middle. -- files: build_class_typo.patch keywords: patch messages: 224874 nosy: akaptur priority: low severity: normal status: open title: Error message for __build_class__

[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-25 Thread A. Libotean
New submission from A. Libotean: There are significant memory leaks when multiple insert statements are executed with distinct values. sqlite3 version is 2.6.0 The attached file contains two variants: * one which uses string interpolation to build the query: this generates severe leakeage

[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-25 Thread A. Libotean
A. Libotean added the comment: > I'm not sure that it's a leak because it doesn't depend on the number of > queries nor the number of run of the test. It's maybe an internal sqlite > cache. You're right, the "leak"

[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-27 Thread A. Libotean
A. Libotean added the comment: > Can we close this issue then? Yes, please. Sorry for the false alarm. -- ___ Python tracker <http://bugs.python.org/issu

[issue20136] Logging: StreamHandler does not use OS line separator.

2014-01-06 Thread A. Libotean
New submission from A. Libotean: The StreamHandler implementation uses hardcoded Unix/Linux line separators. This generates inconveniences when running on Windows as the file viewers expect DOS line terminators. I've attached a fix that will use os.linesep as the line terminator thus m

[issue20137] Logging: RotatingFileHandler computes string length instead of byte representation length.

2014-01-06 Thread A. Libotean
New submission from A. Libotean: Current implementation of RotatingFileHandler ignores the encoding when computing the entry byte length. I've attached a modified version that will compute the entry lenght in bytes. -- components: Library (Lib) files: rotatingfilehandler.py mes

[issue20137] Logging: RotatingFileHandler computes string length instead of byte representation length.

2014-01-13 Thread A. Libotean
A. Libotean added the comment: Sure, will come back shortly with a patch. -- ___ Python tracker <http://bugs.python.org/issue20137> ___ ___ Python-bugs-list mailin

[issue20136] Logging: StreamHandler does not use OS line separator.

2014-01-13 Thread A. Libotean
A. Libotean added the comment: Let me write also a test for this and come back with a reply. -- ___ Python tracker <http://bugs.python.org/issue20136> ___ ___

[issue20469] ssl.getpeercert() should include extensions

2014-01-31 Thread A Hettinger
New submission from A Hettinger: I have crafted an ssl cert which contains a custom extension, when I check the cert using OpenSSL on the commandline, I clearly see the extension, but when I have the server try to pprint.pprint(s.getpeercert()), I do not see these fields. Overall, I think it

[issue20469] ssl.getpeercert() should include extensions

2014-01-31 Thread A Hettinger
Changes by A Hettinger : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue20469> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue20136] Logging: StreamHandler does not use OS line separator.

2014-02-05 Thread A. Libotean
A. Libotean added the comment: You can go ahead and close this. I ran some tests and concluded that indeed the IO system will take care of the line separators. Sorry to have wasted your time. -- ___ Python tracker <http://bugs.python.

[issue20137] Logging: RotatingFileHandler computes string length instead of byte representation length.

2014-02-05 Thread A. Libotean
A. Libotean added the comment: > Which encoding are you using, such that the difference in length between > encoded and decoded messages is significant? I agree right off the bat that the error in size is not significant. Only the length of the last appended line is computed erroneously

[issue7135] AttributeError: 'module' object has no attribute 'HTTPSConnection'

2009-10-14 Thread A Welch
Changes by A Welch : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue7135> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7135] AttributeError: 'module' object has no attribute 'HTTPSConnection'

2009-10-14 Thread A Welch
A Welch added the comment: Thank you for your response and my apologies for posting this in the incorrect support forum. I thought that this forum was for all the various versions of Python. -- ___ Python tracker <http://bugs.python.

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2017-01-25 Thread A. Skrobov
A. Skrobov added the comment: Oh btw, the comment in the beginning of Grammar/Grammar > # Note: Changing the grammar specified in this file will most likely > #require corresponding changes in the parser module > #(../Modules/parsermodule.c). is no longer true: a

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-05-31 Thread A. Skrobov
A. Skrobov added the comment: Thank you Fred for your review! I don't have commit access myself; can anybody please commit it for me? -- ___ Python tracker <http://bugs.python.org/is

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-05-31 Thread A. Skrobov
Changes by A. Skrobov : -- keywords: +patch Added file: http://bugs.python.org/file43069/issue26526_16704_63395.diff ___ Python tracker <http://bugs.python.org/issue26

[issue26415] Fragmentation of the heap memory in the Python parser

2016-06-06 Thread A. Skrobov
A. Skrobov added the comment: Now that #26526 landed (thanks to everybody involved!), I'm requesting a review on an updated version of my patch, which addresses the excessive memory consumption by the parser. The description of my original patch still applies: > The attached patch

[issue26415] Fragmentation of the heap memory in the Python parser

2016-06-07 Thread A. Skrobov
A. Skrobov added the comment: An arena might help reclaim the memory once the parsing is complete, but it wouldn't reduce the peak memory consumption by the parser, and so it wouldn't prevent a MemoryError when parsing a 35MB source on a PC with

[issue26415] Fragmentation of the heap memory in the Python parser

2016-06-07 Thread A. Skrobov
A. Skrobov added the comment: My current patch avoids the memory peak *and* doesn't add any memory fragmentation on top of whatever is already there. In other words, it makes the parser better in this one aspect, and it doesn't make it worse in

[issue26415] Excessive peak memory consumption by the Python parser

2016-06-07 Thread A. Skrobov
A. Skrobov added the comment: (Updating the issue title, to avoid confusion between two orthogonal concerns) -- title: Fragmentation of the heap memory in the Python parser -> Excessive peak memory consumption by the Python parser ___ Python trac

[issue26415] Excessive peak memory consumption by the Python parser

2016-07-08 Thread A. Skrobov
A. Skrobov added the comment: Fixing whitespace in the patch, and including an update for the docs -- Added file: http://bugs.python.org/file43664/patch ___ Python tracker <http://bugs.python.org/issue26

[issue26415] Excessive peak memory consumption by the Python parser

2016-07-08 Thread A. Skrobov
Changes by A. Skrobov : Added file: http://bugs.python.org/file43665/devguide_patch ___ Python tracker <http://bugs.python.org/issue26415> ___ ___ Python-bugs-list mailin

[issue25571] Improve the lltrace feature with the Py_Debug mode

2016-08-03 Thread A Kaptur
Changes by A Kaptur : -- nosy: +akaptur ___ Python tracker <http://bugs.python.org/issue25571> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-08-15 Thread A. Skrobov
A. Skrobov added the comment: Thanks Xavier! Yes, this is the same DFA that's used by the main Python parser. For some reason, parsermodule didn't previously reuse it, but instead did its own thing. Any volunteers to review the other patch for Python parser, at http://bugs.

[issue26415] Excessive peak memory consumption by the Python parser

2016-08-15 Thread A. Skrobov
A. Skrobov added the comment: Xavier, the big picture description of my patch is in http://bugs.python.org/file43665/devguide_patch The heap fragmentation was observed by Victor, not by myself. Victor, could you please create a new ticket for your python_memleak.py reproducer

[issue24857] mock: Crash on comparing call_args with long strings

2015-09-03 Thread A Kaptur
A Kaptur added the comment: It looks like there's a related bug in call_args around __ne__: >>> m = Mock() >>> m(1,2) >>> m.call_args call(1, 2) >>> m.call_args == call(1,2) True >>> m.call_args != call(1,2) True Any reason not to define __ne

[issue24857] mock: Crash on comparing call_args with long strings

2015-09-03 Thread A Kaptur
A Kaptur added the comment: Here's a simple patch + test for the original bug. I'll file the __ne__ question separately. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file40348/issue24857.patch _

[issue24997] mock.call_args compares as equal and not equal

2015-09-03 Thread A Kaptur
New submission from A Kaptur: mock.call_args can be both equal to and not equal to another object: >>> m = Mock() >>> m(1,2) >>> m.call_args call(1, 2) >>> m.call_args == call(1,2) True >>> m.call_args != call(1,2) True This appears to be a recen

[issue25299] TypeError: __init__() takes at least 4 arguments (4 given)

2015-10-02 Thread A. Skrobov
New submission from A. Skrobov: Python 2.7.3 (default, Dec 18 2014, 19:10:20) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from argparse import ArgumentParser >>> parser = ArgumentPa

[issue25299] TypeError: __init__() takes at least 4 arguments (4 given)

2015-10-02 Thread A. Skrobov
A. Skrobov added the comment: Thank you for confirming that the mismatch between the documentation and the behaviour is preserved in Python 3! Adding it to the list of affected versions. -- versions: +Python 3.5 ___ Python tracker <h

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-22 Thread A. Skrobov
New submission from A. Skrobov: I have a one-line module that assigns a tuple->int dictionary: holo_table = {(0, 0, 0, 0, 0, 0, 1, 41, 61, 66, 89): 9, (0, 0, 0, 70, 88, 98, 103, 131, 147, 119, 93): 4, [35MB skipped], (932, 643, 499, 286, 326, 338, 279, 200, 280, 262, 115): 5} When I try

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-24 Thread A. Skrobov
A. Skrobov added the comment: A practical note: if, instead of importing crash.py, I do a json.loads, with a few extra transformations: with open("crash.py") as f: holo_table={tuple(int(z) for z in k.split(', ')):v for k,v in json.loads(f.readlines()[0][13:].repl

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-25 Thread A. Skrobov
A. Skrobov added the comment: Mine is on Windows. I've now installed both 2.7.10 and 3.4.3 to reconfirm, and it's still the same, on both of them, except that on 3.4.3 it crashes with a MemoryError much faster (within a couple minutes). -- components: +Windows nosy: +

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-25 Thread A. Skrobov
A. Skrobov added the comment: My Python is 64-bit, but my computer only has 2GB physical RAM. -- ___ Python tracker <http://bugs.python.org/issue26415> ___ ___

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-25 Thread A. Skrobov
A. Skrobov added the comment: Yes, I understand that this is a matter of memory consumption, which is why I submitted this ticket as "resource usage". What I don't understand is, what could possibly require gigabytes of memory

[issue26415] Out of memory, trying to parse a 35MB dict

2016-03-08 Thread A. Skrobov
A. Skrobov added the comment: OK, I've now looked into it with a fresh build of 3.6 trunk on Linux x64. Peak memory usage is about 3KB per node: $ /usr/bin/time -v ./python -c 'import ast; ast.parse("0,"*100, mode="eval")' Command being timed: &q

[issue26415] Fragmentation of the heap memory in the Python parser

2016-03-08 Thread A. Skrobov
A. Skrobov added the comment: @Serhiy: if your build is 32-bit, then every node is half the size, as it mostly consists of pointers. The amount of heap fragmentation can also depend on gcc/glibc version. -- ___ Python tracker <h

  1   2   3   4   5   6   7   8   9   10   >