[Python-announce] Pygments 2.17.2 released

2023-11-21 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.17.2. Pygments is a generic syntax highlighter written in Python. Pygments 2.17.2 is a patch release addressing a packaging problem affecting macOS. See for details. Report bugs and feature requests in the

[Python-announce] Pygments 2.17.1 released

2023-11-19 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.17.1. Pygments is a generic syntax highlighter written in Python. Pygments 2.17.1 is a patch release addressing a specific issue with the TOML parser. See for details. Report bugs and feature requests in

[Python-announce] Pygments 2.17 released

2023-11-18 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.17. Pygments is a generic syntax highlighter written in Python. Pygments 2.17 provides a seven new lexers and many improvements to existing lexers. It also the first version to officially support Python 3.12. Please have a look at the changelog

[Python-announce] Pygments 2.16.1 released

2023-08-06 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.16.1. Pygments is a generic syntax highlighter written in Python. Pygments 2.16.1 is a hotfix release. Please have a look at the changelog . Report bugs and feature requests in the issue tracker:

[Python-announce] Pygments 2.16 released

2023-08-06 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.16. Pygments is a generic syntax highlighter written in Python. Pygments 2.16 provides a dozen new lexers and many improvements to existing lexers, as well as new styles. Please have a look at the changelog .

[Python-announce] Pygments 2.15.1 released

2023-04-18 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.15.1. Pygments is a generic syntax highlighter written in Python. Pygments 2.15.1 provides two important fixes. Please have a look at the changelog . Report bugs and feature requests in the issue tracker:

[Python-announce] Pygments 2.15 released

2023-04-10 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.15. Pygments is a generic syntax highlighter written in Python. Pygments 2.15 provides half a dozen new lexers and many improvements to existing lexers, as well as official support for Python 3.11. Please have a look at the changelog

recent-files

2023-03-28 Thread g...@uol.com.br
In Python 3.11.2,  the recent-files list keeps always increasing because it is impossible to edit the list; the corresponding .txt file has disappeared. Please help! Giorgio Gambirasio g...@uol.com.br       -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] Pygments 2.14 released

2023-01-01 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.14. Pygments is a generic syntax highlighter written in Python. Pygments 2.14 provides a dozen new lexers and many improvements to existing lexers. Please have a look at the changelog . Report bugs and

[Python-announce] Pygments 2.13 released

2022-08-15 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.13. Pygments is a generic syntax highlighter written in Python. Pygments 2.13 provides several new lexers, themes and many improvements to existing lexers. Please have a look at the changelog . Report bugs

[Python-announce] Pygments 2.12 released

2022-04-24 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.12. Pygments is a generic syntax highlighter written in Python. Pygments 2.12 provides several new lexers and various improvements to existing lexers. Please have a look at the changelog . This release drops

How best to handle SystemError in ctypes callback

2022-01-05 Thread Jarrod G
With the following code: import ctypes > import readline > from ctypes.util import find_library > > rl = ctypes.cdll.LoadLibrary(find_library('readline')) > > rl_redisplay = rl.rl_redisplay > rl_redisplay.restype = None > rl_redisplay.argtypes = None > > rl_redisplay_function =

[Python-announce] Pygments 2.11 released

2021-12-30 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.11. Pygments is a generic syntax highlighter written in Python. Pygments 2.11 provides ten new lexers and various improvements to existing lexers. Please have a look at the changelog . Report bugs and

[issue35228] Index search in CHM help crashes viewer

2021-12-17 Thread Charles G.
Charles G. added the comment: My previous Windows version (Win 10 1803) does not have this crashing problem. It only crashed after upgrading to 21H1. So I replaced hhctrl.ocx in system32 (Win 10 21H1) with hhctrl.ocx from Windows.old. 2019/03/19 11:45 696.320 hhctrl.ocx 2021/09

[issue46089] Problems with AF_PACKET sockets

2021-12-15 Thread G. Allard
G. Allard added the comment: Next 3 steps must be (in decreasing priorities): - fix the code - write a mini-howto. It will be used for test purposes - write documentation (a Howto/tutorial) For the 3rd step, I would accept to join a team

[issue46089] Problems with AF_PACKET sockets

2021-12-15 Thread G. Allard
New submission from G. Allard : For educational purposes, I'm developing my own IP stack in Python. It's going well but I'm stuck at a low level. I need to implement the following (simple) task: - open an AF_PACKET socket (socket.socket) - bind it to a specific interface (socket.bind) Python

Re: getting source code line of error?

2021-11-20 Thread Paolo G. Cantore
Am 20.11.21 um 20:15 schrieb Ulli Horlacher: Stefan Ram wrote: r...@zedat.fu-berlin.de (Stefan Ram) writes: except Exception as inst: print( traceback.format_exc() ) More to the point of getting the line number: As I wrote in my initial posting: I already have the line number. I am

[issue45555] Object stays alive for weak reference if an exception happens in constructor

2021-10-22 Thread Matias G
Matias G added the comment: About the reference in exception: I thought that Python 3 didn't have the need for `sys.exc_clear()` (which has been removed), specifically for this kind of problem. The code I use is in fact more complex than the small snippet I posted here to reproduce

[issue45555] Object stays alive for weak reference if an exception happens in constructor

2021-10-21 Thread Matias G
New submission from Matias G : Hi Python developers, I stumbled on a weird behavior, which might be a bug actually. I am surprised by the output of the following piece of code: ``` import weakref refs = [] class A: def __init__(self): refs.append(weakref.ref(self

[Python-announce]Pygments 2.10 released

2021-08-15 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.10. Pygments is a generic syntax highlighter written in Python. Pygments 2.10 provides five new lexers and various improvements to existing lexers. Please have a look at the changelog . Report bugs and

[issue44711] Optimize type check in pipes.py

2021-07-22 Thread Anton G.
New submission from Anton G. : When I did some work on typeshed I found some weird syntax in pipes.py. if type(cmd) is not type(''): which can easily be changed to if not isinstance(cmd, str): There are two occurrences and I will directly create the PR :) -- components: Library

[issue44152] [not a bug] .isupper() does not support Polytonic Greek (but .islower() does)

2021-05-16 Thread E G
E G added the comment: Oops: this is not a bug. The isupper() method tests ALL chars. Only the first char in the examples was a capital. All of the logic/tests succeed. Sorry for the error. Thanks to Serhiy S. for swift attention on this. -- resolution: -> not a bug ti

[issue44152] .isupper() does not support Polytonic Greek (but .islower() does)

2021-05-16 Thread E G
New submission from E G : Δημοϲθενικοί starts with an upper-case delta. 'Δημοϲθενικοί'.isupper() should yield "True". Ἀεὶ also fails this test: it begins with a capital Alpha with a breathing. εἰϲ is properly parsed: isupper() is False and islower() is True. Despite t

Pygments 2.9 released

2021-05-03 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.9. Pygments is a generic syntax highlighter written in Python. Pygments 2.9 provides over half a dozen new lexers, various improvements to existing lexers and some small styling tweaks. Please have a look at the changelog

[issue43467] IDLE: horizontal scrollbar

2021-03-10 Thread David E. Franco G.
David E. Franco G. added the comment: How is that clutter? Even the most basic text editor (window notepad) have it, and knowing that yours or whoever code you are looking at extend horizontally beyond the size of your current windows size is a relevant information. -- Added file

[issue43467] IDLE: horizontal scrollbar

2021-03-10 Thread David E. Franco G.
New submission from David E. Franco G. : I noticed that the horizontal scroll bar is missing, I think it was present in previous version, regardless it would be nice if its be present. Thanks. -- assignee: terry.reedy components: IDLE files: no scroll bar.PNG messages: 388469 nosy

Pygments 2.8 released

2021-02-14 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.8. Pygments is a generic syntax highlighter written in Python. Pygments 2.8 provides new lexers, various improvements to existing lexers and some small styling tweaks. It also introduces significant changes to the test infrastructure to make

[issue42615] Redundant jump instructions due to deleted unreachable bytecode blocks

2020-12-16 Thread Om G
Change by Om G : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42615> ___ ___

[issue42615] Redundant jump instructions due to deleted unreachable bytecode blocks

2020-12-10 Thread Om G
Change by Om G : -- keywords: +patch pull_requests: +22591 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23733 ___ Python tracker <https://bugs.python.org/issu

[issue42615] Redundant jump instructions due to deleted unreachable bytecode blocks

2020-12-10 Thread Om G
New submission from Om G : During optimization, the compiler deletes blocks that are marked as unreachable. In doing so, it can render jump instructions that used to jump over the now-deleted blocks redundant, since simply falling through to the next non-empty block is now equivalent

[issue40900] uuid module build fix on FreeBSD proposal

2020-09-16 Thread Danilo G. Baio
Change by Danilo G. Baio : -- nosy: +dbaio ___ Python tracker <https://bugs.python.org/issue40900> ___ ___ Python-bugs-list mailing list Unsubscribe:

Pygments 2.7 released

2020-09-12 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.7. Pygments is a generic syntax highlighter written in Python. Pygments 2.7 is an absolutely massive release, with a dozen new languages added and over 50 pull requests merged in total -- a big thank you to our many new first-time contributors.

[issue41753] subprocess.run on windows does not convert path to string

2020-09-09 Thread Kaushik G
Kaushik G added the comment: Thank you for your response. There are two concerns I have here. 1. Python's promise of being straightforward. In MOST cases pathlib.Path objects do the right thing, casting to a string such that pathlib.Path is a drop in replacement. This exception

[issue41753] subprocess.run on windows does not convert path to string

2020-09-09 Thread Kaushik G
New submission from Kaushik G : a call of the form `subprocess.run([x, y, z])` where one of the elements is a `pathlib.Pat`h fails on windows because the path is not converted to a string as it should. This works fine (as expected) on macOS and Linux. A typical error message is: `TypeError

[issue41647] MutableMapping ".setdefault()" to return default value via __getitem__

2020-08-27 Thread Matias G
New submission from Matias G : Hi, This is more a question/proposal than a real issue. I apologize in advance if this has already been debated or if it is not relevant. I noticed `setdefault` method of mutable mapping objects is returning the default value as passed in the call, when

Re: Errors in python\3.8.3\Lib\nntplib.py

2020-04-29 Thread G Connor
On 4/29/2020 5:29 PM, Chris Angelico wrote: > Try opening the file in binary mode instead. Changed: f = open(postfile,'r')to : f = open(postfile,'rb') and it worked. Thanks man! -- https://mail.python.org/mailman/listinfo/python-list

Errors in python\3.8.3\Lib\nntplib.py

2020-04-29 Thread G Connor
module: python\3.8.2\Lib\nntplib.py lines 903-907 --- for line in f: if not line.endswith(_CRLF): line = line.rstrip(b"\r\n") + _CRLF if line.startswith(b'.'): line = b'.' + line --- When I try

SonarCloud, SonarQube support Python 3.8, find method signature & visibility issues

2020-03-30 Thread G. Ann Campbell
! Ann --- *G. Ann Campbell* | SonarSource *Product Marketing Manager* @GAnnCampbell https://sonarsource.com -- Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le...@python.org https://mail.python.org/mailman3/lists/python

Re: How to create an Excel app that runs Python?

2020-03-28 Thread Paolo G. Cantore
Am 25.03.20 um 15:21 schrieb farayao...@gmail.com: Hello Paolo, Thanks for your reply, indeed now I'm thinking on building a web app, do you have any suggestions for this? I am thinking of using Tkinter, the method that you describe using HTML is also using Javascript? Kind Regards Felipe

Re: How to create an Excel app that runs Python?

2020-03-24 Thread Paolo G. Cantore
On Tue, Mar 24, 2020, 4:45 PM wrote: I have the following scenario: I have created lots of python files that I use to calculate a Cashflow model, when I run these files I get a beautiful pandas DataFrame that contains my final model. My mission is to show this table to the rest of the

[issue39380] ftplib uses latin-1 as default encoding

2020-03-22 Thread Sebastian G Pedersen
Sebastian G Pedersen added the comment: Yes, I will update the PR before the end of next week. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39380] ftplib uses latin-1 as default encoding

2020-03-15 Thread Sebastian G Pedersen
Sebastian G Pedersen added the comment: Thanks again for the engagement. I am also in favor of adding the encoding to the constructor. However, following Giampaolo's comment, that utf-8 is standard and has been for a long time (and the RFC dating back to year 1999), I am also in favor

[ANN] SonarQube, SonarCloud add rules for Exception handling

2020-03-11 Thread G. Ann Campbell
for open source projects on sonarcloud.io. It's also free in SonarQube, with taint analysis available in commercial editions. Thx! Ann --- *G. Ann Campbell* | SonarSource *Product Marketing Manager* @GAnnCampbell https://sonarsource.com -- Python-announce-list mailing list -- python-announce-list

Pygments 2.6.1 released

2020-03-08 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.6.1. Pygments is a generic syntax highlighter written in Python. Pygments 2.6 is a major new release removing support for Python 2.x. From Pygments 2.6, we require Python 3.5 or newer to run Pygments. (Python 2 can be still highlighted with Pygments

[issue39380] ftplib uses latin-1 as default encoding

2020-01-25 Thread Sebastian G Pedersen
Sebastian G Pedersen added the comment: Thank you for the feedback. I will elaborate a little bit on the reasons and thoughts behind the pull request: Since RFC 2640, the industry standard within FTP Clients is UTF-8 (see e.g. FileZilla here: https://wiki.filezilla-project.org

[issue39438] better handling of foreign signal handlers in signal.signal

2020-01-23 Thread Steven G. Johnson
New submission from Steven G. Johnson : In embedded Python, if the embedding code sets a signal handler (e.g. for SIGINT), then signal.getsignal(SIGINT) returns None. However, signal.signal(SIGINT, signal.getsignal(SIGINT)) throws a TypeError, even though it should logically be a no-op

[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen
Change by Sebastian G Pedersen : -- keywords: +patch pull_requests: +17443 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18048 ___ Python tracker <https://bugs.python.org/issu

[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen
Change by Sebastian G Pedersen : -- components: Library (Lib) nosy: SebastianGPedersen priority: normal severity: normal status: open title: ftplib uses latin-1 as default encoding type: behavior versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

Pygments 2.5.0 released, moved to Github

2019-11-26 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.5.0. Pygments is a generic syntax highlighter written in Python. Pygments 2.5 is a major new release, adding new lexers as well as providing a large amount of fixes and lexer updates. Please have a look at the changelog

'python' is not recognized as an internal or external command

2019-09-01 Thread G Kishore
Hi Team, I was installing python in my new windows 10 machine and cpuld able to access python from command window when the location is where I have installed python. The same I have tried to enter the command from Desktop location but "'python' is not recognized as an internal or external

[issue37806] Infinite recursion with typing.get_type_hints

2019-08-09 Thread Valerio G
Change by Valerio G : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue37806> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37806] Infinite recursion with typing.get_type_hints

2019-08-09 Thread Valerio G
New submission from Valerio G : I encountered one condition where calling get_type_hints causes infinite recursion when dealing with forward declaration and cyclic types. Here's an example: from typing import Union, List, get_type_hints ValueList = List['Value'] Value = Union[str, ValueList

Re: Python help needed

2019-08-08 Thread Paolo G. Cantore
Am 08.08.19 um 01:18 schrieb MRAB: On 2019-08-07 21:36, Kuyateh Yankz wrote: #trying to write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Shane G
Shane G added the comment: This issue was created because I ran across a plist like this when parsing entitlements in an IPA. I assume that this happened by some unusual step in the toolchain when building the application. To some other points: * agreed lstrip()ing just the key would

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-06-19 Thread Shane G
New submission from Shane G : plistlib in Python 3.7.3 (and earlier) does not autodetect plist data as XML if it contains whitespace before the "https://github.com/python/cpython/blob/3.7/Lib/plistlib.py#L493 -- messages: 346089 nosy: shaneg priority: normal severity: normal s

[issue37229] bisect: Allow a custom compare function

2019-06-11 Thread G
G added the comment: What do you propose to do for objects outside your project? Replace their __lt__ method with a context manager which replaces the original implementation, for lists at a time? __lt__ is not good enough as a one-way-to-do-it solution. issue4356 is also a good-enough

[issue4356] Add "key" argument to "bisect" module functions

2019-06-11 Thread G
G added the comment: I did, thanks! -- ___ Python tracker <https://bugs.python.org/issue4356> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4356] Add "key" argument to "bisect" module functions

2019-06-11 Thread G
G added the comment: I opened a relevant PR, https://github.com/python/cpython/pull/11781. I believe a key parameter is inferior to a comparison callback. The former is a specific case of the latter, and in my use case would force me to create another class to serve as a comparator for my

[issue37229] bisect: Allow a custom compare function

2019-06-11 Thread G
Change by G : -- keywords: +patch pull_requests: +13837 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13970 ___ Python tracker <https://bugs.python.org/issu

[issue37229] bisect: Allow a custom compare function

2019-06-11 Thread G
New submission from G : All of bisect's functions (insort_{left,right}, bisect_{left,right}) can only use comparison of objects via __lt__. They should support providing a custom comparison function. -- components: Library (Lib) messages: 345216 nosy: gpery priority: normal severity

Pygments 2.4.0/2.4.1 released

2019-06-04 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.4.1 (as well as 2.4.0). Pygments is a generic syntax highlighter written in Python. Pygments 2.4 is a major new release, adding over a dozen new lexers, as well as providing a large amount of fixes and lexer updates. Please have a look at the

[issue4356] Add "key" argument to "bisect" module functions

2019-05-25 Thread Kevin G
Kevin G added the comment: Can anyone add "reverse" support? Key and reverse support are both functional requirement. -- nosy: +flyingosprey ___ Python tracker <https://bugs.python.

[issue36706] Python script on startup stucks at import

2019-04-23 Thread serge g
New submission from serge g : I am not sure if it is python's issue (correct me if this is wrong place for report). But sometimes (probably every 3-4 attempt) when I run script, interpreter just stucks for some time (0.5-3 minutes) and then actually runs the script normally. To figure out

[issue35100] urllib.parse.unquote_to_bytes: needs "escape plus" option

2019-04-18 Thread andrew-g
andrew-g added the comment: pinging the issue to try get the PR reviewed -- nosy: +andrew-g ___ Python tracker <https://bugs.python.org/issue35100> ___ ___ Pytho

[issue35100] urllib.parse.unquote_to_bytes: needs "escape plus" option

2019-03-16 Thread andrew-g
Change by andrew-g : -- keywords: +patch pull_requests: +12331 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35100> ___ ___ Python-

RE: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Marcin G
Hmm. From looking at your full log (THANK YOU for posting that, btw - so many people don't), it looks like an issue with certificate checking. Might be a bug in the test itself. Does the same thing happen with a more recent Python build? It could be a weirdness with specific versions of OpenSSL.

Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Marcin G
My boss wants my code to run on Python 3.5, so I thought I'd install 3.5 to be able to ascertain this. But Linux Mint 19 ships with Python 3.6 and python.org only provides source code for 3.5.6. So I thought I'd try compiling 3.5.6 myself.

Pygments 2.3.1 released

2018-12-21 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.3.1. Pygments is a generic syntax highlighter written in Python. This is a maintenance release with over a dozen improvements to various lexers, as well as Python 3.7 compatibility fixes. Please have a look at the changelog

[issue31956] Add start and stop parameters to the array.index()

2018-11-29 Thread Ryan G.
Ryan G. added the comment: This functionality is useful to me. Is this issue still alive? If not, how can I help? -- nosy: +Ryan G. ___ Python tracker <https://bugs.python.org/issue31

Pygments 2.3 released

2018-11-29 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.3. Pygments is a generic syntax highlighter written in Python. The main changes over 2.2 are Python 3.7 support, new lexers, and various small fix accumulated over the last two years. Please have a look at the changelog

[issue34489] subprocess: execution of batch-files (.cmd/.bat) is vulnerable in python for windows / insufficient escape

2018-08-30 Thread Sergey G. Brester
Sergey G. Brester added the comment: I have extended the PR a bit (more tests and corresponding documentation part). -- ___ Python tracker <https://bugs.python.org/issue34

[issue34489] subprocess: execution of batch-files (.cmd/.bat) is vulnerable in python for windows / insufficient escape

2018-08-29 Thread Sergey G. Brester
Sergey G. Brester added the comment: > Would you consider adding your test suite into the regression tests as well? Sure. Done. > Right now, this is a well known issue on all platforms Really? I can't imagine this for something else as windows (and it is currently fixed also for w

[issue34489] subprocess: execution of batch-files (.cmd/.bat) is vulnerable in python for windows / insufficient escape

2018-08-24 Thread Sergey G. Brester
New submission from Sergey G. Brester : There is a vulnerability "insufficient escape of special chars for quoting of arguments by exec process" for python-language, if executing windows batch-files (bat/cmd). ### What version of python is affected? All ### Does this issue

[issue33515] subprocess.Popen on a Windows batch file always acts as if shell=True

2018-08-24 Thread Sergey G. Brester
Change by Sergey G. Brester : -- keywords: +patch pull_requests: +8375 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue34353] stat's python implementation of filemode (fallback) doesn't behave like the C implementation

2018-08-07 Thread G
Change by G : -- keywords: +patch pull_requests: +8193 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34353> ___ ___ Python-bugs-lis

[issue34353] stat's python implementation of filemode (fallback) doesn't behave like the C implementation

2018-08-07 Thread G
New submission from G : stat.py (Lib/stat.py)'s implementation of filemode doesn't account for socket-type files, while _stat (Modules/_stat.c) does, using S_IFSOCK. -- components: Library (Lib) messages: 323248 nosy: gpery priority: normal severity: normal status: open title: stat's

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread Jonathan G. Underwood
Jonathan G. Underwood added the comment: Thanks to both Serhiy Storchaka and David Murray - indeed you're both correct, and that is the issue in 21074, and the workaround from there of declaring a variable for that size fixes the problem

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread Jonathan G. Underwood
Jonathan G. Underwood added the comment: Seeing a very similar problem - very high memory useage during byte compilation. Consider the very simple code in a file: ``` def test_huge(): try: huge = b'\0' * 0x1 # this allocates 4GB of memory! except MemoryError

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-20 Thread Geldenhuys, J, Prof &lt;g...@sun.ac.za>
iate Professor: Computer Science Fakulteit Natuurwetenskappe | Faculty of Science e: g...@sun.ac.za | t: +27 21 808 4232 | a: Algemene Ingenieurswese Gebou A519 | General Engineering Building A519 <https://www.facebook.com/stellenboschuniversity> <https://twitter.com/Stellenbosc

[issue19495] context manager for measuring duration of blocks of code

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue19495> ___

[issue32751] wait_for(future, ...) should wait for the future (even if a timeout occurs)

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32751> ___

[issue24255] Replace debuglevel-related logic with logging

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue24255> ___

[issue32767] Mutating a list while iterating: clarify the docs

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32767> ___

[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32810> ___

[issue32590] Proposal: add an "ensure(arg)" builtin for parameter validation

2018-02-01 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32590> ___

[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-31 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32703> ___

[issue32637] Android: set sys.platform to android

2018-01-30 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32637> ___

[issue32623] Resize dict on del/pop

2018-01-30 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32623> ___

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-30 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30491> ___

[issue22499] [SSL: BAD_WRITE_RETRY] bad write retry in _ssl.c:1636

2018-01-22 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue22499> ___

[issue31122] SSLContext.wrap_socket() throws OSError with errno == 0

2018-01-22 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31122> ___

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2018-01-17 Thread Angie G
Change by Angie G <angelynn68...@gmail.com>: -- components: +Build, SSL type: resource usage -> performance ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32561] Add API to io objects for non-blocking reads/writes

2018-01-15 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32561> ___

Re: acircle.getCenter() to (x,y) coordinates in Python

2017-12-24 Thread G Yu
Ah, I get it now. I have to store the acircle.getCenter() in a point Point, and then access Point.getX() and Point.getY() separately. It was just that middle step that I was missing. Thanks so much! -- https://mail.python.org/mailman/listinfo/python-list

Re: acircle.getCenter() to (x,y) coordinates in Python

2017-12-23 Thread G Yu
> But your code has: > > moving_circle.move(P_to_R/P_to_E, E_to_R/P_to_E) > > so won't that move the circle and change what: > > moving_circle.getCenter() > > returns? Yes, moving the circle changes the value of moving_circle.getCenter(). The problem is interpreting the output. The

Re: acircle.getCenter() to (x,y) coordinates in Python

2017-12-23 Thread G Yu
I did try that. The problem is that I already declared a point moving_object_center = (-555,-555), because that's the point I used as the center to draw the moving_object circle itself. So the moving_object_center.getX() will return -555 no matter what I do. That's why I need to calculate

acircle.getCenter() to (x,y) coordinates in Python

2017-12-23 Thread G Yu
My program has two circles: one stationary circle, drawn at a random location; and one moving circle, consistently drawn in the same place in the graphics window. The moving circle moves towards the stationary one. However, when the moving circle hits the stationary one (when the

[issue32292] Building fails on Windows

2017-12-12 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32292> ___

[issue32226] Implement PEP 560: Core support for typing module and generic types

2017-12-12 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32226> ___

[issue31901] atexit callbacks should be run at subinterpreter shutdown

2017-12-12 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31901> ___

  1   2   3   4   5   6   >