[issue36859] sqlite3 dml statement detection does not account for CTEs

2021-02-09 Thread Charles
Charles added the comment: Yeah, go for it erlendaasland - I abandoned all hope of getting it merged, and have just been maintaining my own pysqlite3 which simplifies my life greatly. -- ___ Python tracker <https://bugs.python.org/issue36

[issue34916] Add create_window_function() to sqlite3.Connection

2019-08-12 Thread Charles
Charles added the comment: I've implemented this in a fork / standalone packaging of the Python 3.x sqlite3 module. You can find the relevant portions (and a couple unrelated changes) in this commit: https://github.com/coleifer/pysqlite3/commit/91c20016fd3fd3d1d7ade475893046958f7

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2019-08-12 Thread Charles
Charles added the comment: > With isolation_level set to None, the sqlite3 library is in autocommit mode, > so changes will get committed immediately inside the with, which is simply > broken. Not necessarily. When sqlite is in autocommit mode, you can still open transactions by

[issue36859] sqlite3 dml statement detection does not account for CTEs

2019-05-08 Thread Charles
New submission from Charles : In statement.c, there is some logic which detects whether or not an incoming statement is a DML-type. The logic, as of 2019-05-08, I am referring to is here: https://github.com/python/cpython/blob/fc662ac332443a316a120fa5287c235dc4f8739b/Modules/_sqlite

[issue36859] sqlite3 dml statement detection does not account for CTEs

2019-05-08 Thread Charles
Charles added the comment: Sqlite since 3.7.11 provides sqlite3_stmt_readonly() API for determining if a prepared statement will affect the database. I made the change, removing the SQL scanning code and replacing it with: self->is_dml = !sqlite3_stmt_readonly(self->st); But then I

[issue36859] sqlite3 dml statement detection does not account for CTEs

2019-05-08 Thread Charles
Charles added the comment: Oh, one more thing that is actually quite important -- since BEGIN IMMEDIATE and BEGIN EXCLUSIVE "modify" the database, these statements (intended to begin a transaction) are treated as "is_dml" when using the sqlit

[issue36859] sqlite3 dml statement detection does not account for CTEs

2019-05-08 Thread Charles
Charles added the comment: I've got a patch working now that: - retains complete backwards-compatibility for DDL (as well as BEGIN EXCLUSIVE/IMMEDIATE) -- tests are passing locally. - retains previous behavior for old sqlite that do not have the sqlite3_stmt_readonly API. I think

[issue36859] sqlite3 dml statement detection does not account for CTEs

2019-05-08 Thread Charles
Change by Charles : -- pull_requests: +13127 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36859> ___ ___ Python-bugs-list mai

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Charles
New submission from Charles : On macOS I could build python 2.7.14 with libressl 2.6.4 without any problems. If I try to build that same version of python with libressl 2.7.0, I get the failure pasted in below. /Users/chdiza/.tmp/tmpdir/python27-20180323-74284-f2auy2/Python-2.7.14/Modules

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Charles
Charles added the comment: I'm not sure it's a beta release. I think they just forgot to update on their homepage what the latest stable is. Nothing on the releases page or the release notes says it's a beta. -- ___ Python

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-24 Thread Charles
Charles added the comment: FYI, the 'cryptography' package from pypi no longer builds after this fix. (I applied the patch to the 2.7.14 source code tarball.) I don't know if that's because of the fix, or because LibreSSL 2.7.X broke 'cryptography' too: cla

[issue46110] `eval("-"*3000000 + "4")` in cmd causes hard crash

2021-12-16 Thread Charles McMarrow
New submission from Charles McMarrow : `eval("-"*300 + "4")` in cmd causes hard crash -- components: Parser messages: 408753 nosy: charles.mcmarrow.4, lys.nikolaou, pablogsal priority: normal severity: normal status: open title: `eval("-"*300 +

[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

[issue46742] Add '-d $fd' option to trace module, akin to bash -x feature

2022-02-13 Thread Charles Howes
New submission from Charles Howes : The 'trace' module logs trace output to stdout, intermingled with regular program output. This is a problem when you want to read either the trace output or the normal output of the program separately. To separate the trace output, it could be

[issue46742] Add '-d $fd' option to trace module, akin to bash -x feature

2022-02-13 Thread Charles Howes
Change by Charles Howes : -- keywords: +patch pull_requests: +29478 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31319 ___ Python tracker <https://bugs.python.org/issu

[issue9181] Solaris extension building does not work with 64 bit python

2010-09-13 Thread Charles Solar
Charles Solar added the comment: I just recompiled using your suggested flags and it is now properly linking my extensions. I guess using CFLAGS and LDFLAGS was causing the problem. Is specifying CC the recommended way to build 64 bit python? If so when I guess this issue is not really an

[issue9181] Solaris extension building does not work with 64 bit python

2011-03-28 Thread Charles Solar
Charles Solar added the comment: Hello again, I got a copy of the latest python from the 2.7 branch, recompiled with CFLAGS="-m64 -O3" and LDFLAGS="-m64" and my extension compiled just fine. So I can verify this bug fixed -- __

[issue10613] gzip._PaddedFile calls getattr with arguments in reversed order

2010-12-02 Thread Charles Harris
New submission from Charles Harris : The attached patch fixes the problem. -- components: Library (Lib) files: gzip.patch keywords: patch messages: 123171 nosy: charris44 priority: normal severity: normal status: open title: gzip._PaddedFile calls getattr with arguments in reversed

[issue10613] gzip._PaddedFile calls getattr with arguments in reversed order

2010-12-02 Thread Charles Harris
Charles Harris added the comment: Hi Eric, On Thu, Dec 2, 2010 at 8:12 PM, Éric Araujo wrote: Where are the guidelines for writing python tests? Chuck -- Added file: http://bugs.python.org/file19921/unnamed ___ Python tracker <h

[issue10613] gzip._PaddedFile calls getattr with arguments in reversed order

2010-12-02 Thread Charles Harris
Changes by Charles Harris : Removed file: http://bugs.python.org/file19921/unnamed ___ Python tracker <http://bugs.python.org/issue10613> ___ ___ Python-bugs-list mailin

[issue10613] gzip._PaddedFile calls getattr with arguments in reversed order

2010-12-02 Thread Charles Harris
Charles Harris added the comment: Looks like this was fixed by r86555 and a test added. I think you can close the ticket. -- ___ Python tracker <http://bugs.python.org/issue10

[issue2212] Cookie.BaseCookie has ambiguous unicode handling

2010-12-15 Thread Charles Duffy
Charles Duffy added the comment: Only the Comment field of a cookie is required by RFC2965 to support Unicode -- and several major browsers either mangle or discard cookies containing even high-ASCII values. Consequently, while some kind of unicode support is appropriate to implement, any

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2010-01-18 Thread Charles Cazabon
Changes by Charles Cazabon : Removed file: http://bugs.python.org/file14987/worker-lifetime-python2.6.2.patch ___ Python tracker <http://bugs.python.org/issue6

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2010-01-18 Thread Charles Cazabon
Charles Cazabon added the comment: No problem, Jesse, I realize you're busy. I've updated the patch very slightly to handle an issue I had where the worker maintainer hung once. -- Added file: http://bugs.python.org/file15940/worker-lifetime-python2

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2010-01-26 Thread Charles Cazabon
Charles Cazabon added the comment: Thanks, Jesse -- it looks good. If there are bugs remaining in the patch, they're mine and not yours. -- ___ Python tracker <http://bugs.python.org/i

[issue7970] email.Generator fails to flatten message parsed by email.Parser

2010-02-19 Thread Charles Cazabon
New submission from Charles Cazabon : email.Generator fails to flatten a message parsed by email.Parser; it throws an exception with an odd (but apparently legal) message. First, the exception: File "/usr/local/lib/python2.6/email/generator.py", line 84, in flatten self.

[issue2684] Logging Module still failing for %(filename)s, __init__

2008-04-24 Thread Charles Merriam
New submission from Charles Merriam <[EMAIL PROTECTED]>: About same as problem in 2.4 Issue1470422 closed without a test case on MacOS X/Python 2.4. Also same as http://mail.python.org/pipermail/python-bugs-list/2004-July/024111.html and so on back for years. What happens: [EMAIL PRO

[issue2684] Logging Module still failing for %(filename)s, __init__

2008-04-24 Thread Charles Merriam
Charles Merriam <[EMAIL PROTECTED]> added the comment: oops, last line should be "exits the stack frames for the logging module. This should be a once-per-program-execution event" Hmm.. tracker should have a preview button. __ Tracker <[EMAI

[issue2684] Logging Module still failing for %(filename)s, __init__

2008-04-25 Thread Charles Merriam
Charles Merriam <[EMAIL PROTECTED]> added the comment: In my installation, line 1327 is within the logging.debug() function, specifically at the call to apply(root.debug, (msg,)+args, kwargs) [EMAIL PROTECTED]:~/py$ rm *.pyc [EMAIL PROTECTED]:~/py$ python x.py DEBUG:logging/__init__.p

[issue2734] 2to3 converts long(itude) argument to int

2008-05-01 Thread Charles McCreary
New submission from Charles McCreary <[EMAIL PROTECTED]>: The 2to3 converter converts variables named "long" to "int". Original: long is an argument (longitude) def add_test_qtrmin(tdb, lat, long, area_id, call_center=""): Converted: def add_test_qtrmin

[issue4840] Compile dbm in Ubuntu

2009-01-04 Thread Charles Hans
New submission from Charles Hans : I tried and failed in compile python 3.0 in ubuntu 8.10. Then I found the scripts in setup.py use "gdbm/ndbm.h" while in ubuntu 8.10 it should be gdbm-ndbm.h. So I made the following change which make the compiling ok: setup.p

[issue38286] tarfile forgets set sgid when targetpath has it

2019-09-26 Thread Charles Coulombe
New submission from Charles Coulombe : An archive that does not have sgid that is extracted in a directory with sgid set does not end up having its sgid set since the targetpath is chmod with the mode of the tarinfo. (Lib/tarfile.py#L2277) For comparison, an archive extracted with tar has

[issue38286] tarfile forgets set sgid when targetpath has it

2019-10-25 Thread Charles Coulombe
Change by Charles Coulombe : Added file: https://bugs.python.org/file48678/tarfile_sgid.patch ___ Python tracker <https://bugs.python.org/issue38286> ___ ___ Python-bug

[issue38286] tarfile forgets set sgid when targetpath has it

2019-10-25 Thread Charles Coulombe
Change by Charles Coulombe : Removed file: https://bugs.python.org/file48626/tarfile_sgid.patch ___ Python tracker <https://bugs.python.org/issue38286> ___ ___ Python-bug

[issue29753] [Linux] ctypes packs bitfields Incorrectly

2021-07-11 Thread Charles Machalow
Charles Machalow added the comment: Maybe we need to add a __packing__ option to specify how packing should work and default to legacy behavior. Then allow users to specify if they want similar behavior cross-os. Otherwise changing this does change packing for existing users and can lead to

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-24 Thread Charles Burkland
Change by Charles Burkland : -- keywords: +patch nosy: +chaburkland nosy_count: 6.0 -> 7.0 pull_requests: +25887 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27346 ___ Python tracker <https://bugs.p

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2021-12-09 Thread Charles Coulombe
Charles Coulombe added the comment: Any update on this issue? This would be helpful to HPC systems that don't have libraries installed in standard place, and to standardize find_library as well! -- nosy: +Charles Coulombe versions: -Pytho

[issue38833] Issue with multiprocessing.Pool & multiprocessing.Queue

2019-11-17 Thread Charles Anderson
New submission from Charles Anderson : When calling mp.Pool().apply_async(), and passing a mp.Queue() instance as an argument the execution halts. This is contrasted by using mp.Manager().Queue() which when passed to apply_async() works as expected. -- components: Library (Lib

[issue39108] Documentation for "random.gauss" vs "random.normalvariate" is lacking

2019-12-20 Thread Charles Newey
New submission from Charles Newey : The Python 3 documentation for the "random" module mentions two possible ways to generate a random variate drawn from a normal distribution - "random.gauss" and "random.normalvariate" (see: https://docs.python.org/3/library/ra

[issue39920] Pathlib path methods do not work with Window Dos devices

2020-03-09 Thread Charles Machalow
New submission from Charles Machalow : I ran the following as admin in the Python interpreter (on Windows): >>> d = pathlib.Path(r'\\.\PHYSICALDRIVE0') >>> print(d) \\.\PHYSICALDRIVE0\ >>> d.exists() Traceback (most recent call last): File "",

[issue36144] Dictionary union. (PEP 584)

2020-03-10 Thread Charles Burkland
Change by Charles Burkland : -- nosy: +chaburkland nosy_count: 12.0 -> 13.0 pull_requests: +18266 pull_request: https://github.com/python/cpython/pull/18911 ___ Python tracker <https://bugs.python.org/issu

[issue42916] Support for DICOM image file format in imghdr module

2021-01-12 Thread Charles Law
New submission from Charles Law : DICOM is a file format used frequently in medical imaging (it is also a communications protocol). It has been used since the 80's, and is still widely used by modern medical equipment. It has a well defined format: http://dicom.nema.org/dicom/2013/o

[issue43088] Regression in math.hypot

2021-01-31 Thread Charles Karney
New submission from Charles Karney : It would be nice if math.hypot had the property If 0 < y1 < y2 then math.hypot(x, y1) <= math.hypot(x, y2) This is not the case in python3 with x = 0.6102683302836215 y1 = 0.7906090004346522 y2 = y1 + 1e-16 python2's imp

[issue43088] Regression in math.hypot

2021-01-31 Thread Charles Karney
Charles Karney added the comment: Many thanks! Was the 3.9 version of hypot introduced in 3.0? I'm fixing my code to call sqrt(x**2 + y**2) if necessary and I'd like to know what range of versions this version should apply for. --

[issue43088] Regression in math.hypot

2021-01-31 Thread Charles Karney
Charles Karney added the comment: Thanks for the info. -- ___ Python tracker <https://bugs.python.org/issue43088> ___ ___ Python-bugs-list mailing list Unsub

[issue40972] Add a recurse flag to Path.rmdir()

2020-06-13 Thread Charles Machalow
New submission from Charles Machalow : I think it would make sense to add a recurse flag to the Path.rmdir() method. It would default to False (to allow for current behavior). If set to True, the method would act very similarly to shutil.rmtree() in that it would delete all files in the

[issue33498] pathlib.Path wants an rmtree method

2020-06-14 Thread Charles Machalow
Charles Machalow added the comment: I'm disappointed to see this closed. For new (and old) users, it makes complete sense to have an rmtree method on the Path object itself. If I'm using pathlib, I try not to delegate to os. for file operations, since it also tends to seem more OO

[issue41312] add !p to pprint.pformat() in str.format() an f-strings

2020-07-15 Thread Charles Machalow
New submission from Charles Machalow : Right now in str.format(), we have !s, !r, and !a to allow us to call str(), repr(), and ascii() respectively on the given expression. I'm proposing that we add a !p conversion to have pprint.pformat() be called to convert the given expression

[issue41312] add !p to pprint.pformat() in str.format() an f-strings

2020-07-15 Thread Charles Machalow
Charles Machalow added the comment: Fair enough. Didn't really know that list existed. Sent this there. Awaiting moderator approval. Thanks. -- ___ Python tracker <https://bugs.python.org/is

[issue41312] add !p to pprint.pformat() in str.format() an f-strings

2020-07-16 Thread Charles Machalow
Charles Machalow added the comment: One of the key things for ppformat here is to format long spanning dicts/lists to multiple lines, that look easy to read in a log. I feel as though that feature/usefulness outweigh potential indentation weirdness. A lot of the usage would probably be

[issue41312] add !p to pprint.pformat() in str.format() an f-strings

2020-07-16 Thread Charles Machalow
Charles Machalow added the comment: In terms of multiple parameters, I propose adding a method to control the defaults used by !p. Though the defaults would work more than well enough for basic log and print usage. -- ___ Python tracker <ht

[issue42178] failed pickle hangs python on exit in CMD.exe only

2020-10-27 Thread Charles McMarrow
New submission from Charles McMarrow : This bug only happens for me in Windows 10 when using cmd.exe. This bug does not happen IDLE. It sometimes happens in PowerShell. I ran mp_hang.py with 3.9.0 hangs on cmd/powershell 3.8.6 hangs on cmd 3.8.5 hangs on cmd/powershell Microsoft Windows

[issue42335] Python Crashes Exception code 0xc0000374 ntdll.dll

2020-11-12 Thread Charles Staton
New submission from Charles Staton : Hello, I am experiencing crashes of Python 3.8.5 (32 bit) on multiple identical Windows 10 x64 (Enterprise 2016 LTSB) machines. The Crashes are of the sort with the Windows popup "Python has stopped working" and there is no traceback. The cra

[issue42335] Python Crashes Exception code 0xc0000374 ntdll.dll

2020-11-16 Thread Charles Staton
Charles Staton added the comment: I'm closing this. I have done a lot of research that seems to point to the way I'm handling threads as the cause, not Python itself. -- resolution: -> not a bug stage: -> resolved status

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
New submission from Charles Wohlganger: Sorry, I'm new to this, and I've done it out of order. Commit #2306 covers the following: In IDLE, parenmatch extension: Add highlighting left and right parens to styles. Make flash-delay setting independent of parens highlighting style. Curre

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2362 ___ Python tracker <http://bugs.python.org/issue30723> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: -2362 ___ Python tracker <http://bugs.python.org/issue30723> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2363 ___ Python tracker <http://bugs.python.org/issue30723> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2366 ___ Python tracker <http://bugs.python.org/issue30723> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
Charles Wohlganger added the comment: There are two changes: First - The flash-delay option is for how until the parens that are highlighted will stop highlighting. The flash-delay option for the ParenMatch only affects the 'default' style. Similarly the 'expressions' st

[issue29910] Ctrl-D eats a character on IDLE

2017-06-27 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2504 ___ Python tracker <http://bugs.python.org/issue29910> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Charles Wohlganger
Charles Wohlganger added the comment: 'opener' sounds fine to me. I agree it makes much more sense than 'default'. I don't know much about Emacs, and couldn't find what their parens highlighting styles were. I can't think of anything sensible that isn't

[issue30809] IDLE parenmatch - highlighting options

2017-06-29 Thread Charles Wohlganger
New submission from Charles Wohlganger: Current IDLE parenmatch highlighting uses the 'hilite' style when highlighting the parens/expression. Desired behavior is to use a user-setting based style that is independent from the hilite style (which is used for highlighting selected text

[issue30809] IDLE parenmatch - highlighting options

2017-06-29 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2554 ___ Python tracker <http://bugs.python.org/issue30809> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Charles Wohlganger
Charles Wohlganger added the comment: The pull request has been changed to only have the theme element able to be selected. #22705 hasn't had activity in a few years. Is there something I can do to move it along? -- ___ Python tracker

[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Charles Wohlganger
Charles Wohlganger added the comment: Implimenting #27099 seems the more reasonable solution to me, so I'll work on that when I have free time. -- ___ Python tracker <http://bugs.python.org/is

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-07 Thread Charles Wohlganger
Charles Wohlganger added the comment: Progress Update: I've moved all of the basic functionality of the extensions into the regular parts of IDLE, including menus and keyboard shortcuts. parenmatch and codecontext have all of their settings now in the Highlighting settings tab. I have

[issue30809] IDLE parenmatch - highlighting options

2017-07-07 Thread Charles Wohlganger
Charles Wohlganger added the comment: I've rolled pretty much all this was going to do, other than underlining and font work into #27099. Trying to bring parenmatch into main otherwise would have been just as much of a hassle. -- ___ Python tr

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-10 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2718 ___ Python tracker <http://bugs.python.org/issue27099> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-11 Thread Charles Wohlganger
Charles Wohlganger added the comment: Pull request won't pass build test, but passes the full idle test on my workstation. Primary cause seems to be: ImportError: cannot import name 'EditorWindow' from 'idlelib.editor' I can also import EditorWindow by itself on my

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-11 Thread Charles Wohlganger
Charles Wohlganger added the comment: Thank you, Cheryl Sabella. I think I've found which tests I've missed running. Now to fix all the bugs... -- ___ Python tracker <http://bugs.python.o

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-12 Thread Charles Wohlganger
Charles Wohlganger added the comment: Pull Request is passing build tests. Please check for pushing to master at your convenience. -- ___ Python tracker <http://bugs.python.org/issue27

[issue9262] IDLE: Use tabbed shell and edit windows

2017-07-13 Thread Charles Wohlganger
Charles Wohlganger added the comment: I modified Mark Rosen's newTabExtension to work with more recent versions of IDLE, as it wasn't working when I tried it on mine. It's not clear if it ever could when it was originally working, but I can't get it to move tabs betw

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-07-17 Thread Charles Wohlganger
Charles Wohlganger added the comment: I've written an extension (see file) that does auto insertion of closing parens, brackets, braces, ticks, and quotes. It also (optionally) skips the closers when they are typed right next to the already exiting one. It also takes into account triple-

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-07-18 Thread Charles Wohlganger
Charles Wohlganger added the comment: I (foolishly) was committing to master for a different IDLE enhancement. Until that one is pulled, I don't think I can make a new PR without it also having all the changes from my previous one. New uploaded file has docstrings for the ParenClose

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-19 Thread Charles Wohlganger
Charles Wohlganger added the comment: Changes to master have introduced tests with hardcoded values for what extensions are expected to be loaded by IDLE. Given that this patch turn all current extensions into mainlined modules, none of them are loaded as extensions and all of the related

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-20 Thread Charles Wohlganger
Charles Wohlganger added the comment: Menus items were placed where they appeared as extensions. It would be no difficulty for me to move them around. -- ___ Python tracker <http://bugs.python.org/issue27

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-07-20 Thread Charles Wohlganger
Changes by Charles Wohlganger : Added file: http://bugs.python.org/file47029/test_parenclose.py ___ Python tracker <http://bugs.python.org/issue18875> ___ ___ Python-bug

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-07-20 Thread Charles Wohlganger
Charles Wohlganger added the comment: I've uploaded a test file and updated ParenClose. -- Added file: http://bugs.python.org/file47030/ParenClose.py ___ Python tracker <http://bugs.python.org/is

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-07-21 Thread Charles Wohlganger
Changes by Charles Wohlganger : Added file: http://bugs.python.org/file47031/test_parenclose.py ___ Python tracker <http://bugs.python.org/issue18875> ___ ___ Python-bug

[issue12528] Implement configurable bitfield allocation strategy

2017-07-22 Thread Charles Machalow
Charles Machalow added the comment: Was browsing and found this. This option would be very useful as it could help avoid a current bug I've had to deal with : https://bugs.python.org/issue29753. My use case works with data/structs from another device all-together, so I can't co

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-24 Thread Charles Wohlganger
Charles Wohlganger added the comment: The patch moves all config variables to config-main, config-highlight (for highlight colors), and config-keys (for keys). Keys and highlights are configurable in their respective tabs. Parens and Code Context options are in the Highlighting tab, Format

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-25 Thread Charles Wohlganger
Charles Wohlganger added the comment: Unfortunately, it looks like config deletes settings for extensions when they are not found - which is what will happen with this patch. One solution would be to have separate config files for 2 and 3

[issue31021] Clarify programming faq.

2017-07-25 Thread Charles Wohlganger
Charles Wohlganger added the comment: Modulo is defined mathematically as the remainder of Euclidian division. I.E. a positive r where a % b = r is equivalent to a = b * x + r. I think it confuses the issue to say "-190 % 12 were the mathematical equivalent -10", when that is t

[issue31111] Python 3.6 has an inaccessible attribute on FileNotFoundError

2017-08-02 Thread Charles Ferguson
New submission from Charles Ferguson: Whilst debugging a problem in some of my code (which turned out to be a misspelt filename), I found that I could not access one of the properties of the FileNotFoundError object. Essentially, if you get a 'FileNotFoundError' for opening a file

[issue27099] IDLE: turn builting extensions into regular modules

2017-08-24 Thread Charles Wohlganger
Charles Wohlganger added the comment: I am not sure I understand your concern. As part of mainlining the extensions, all of their keybindings were moved to config-keys.def . There is nothing to prevent users from changing the keybindings or preventing us from making the defaults different

[issue27099] IDLE: turn builting extensions into regular modules

2017-08-24 Thread Charles Wohlganger
Charles Wohlganger added the comment: ZoomHeight has been put back into being an extension. This was because configdialog assumes autoexpand was an extension, and the idleconf tests all need at least one extension to exist to be useful. Zoomheight is pointless in almost any modern desktop

[issue20580] IDLE should support platform-specific default config defaults

2017-08-26 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +3253 ___ Python tracker <http://bugs.python.org/issue20580> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-09-12 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- keywords: +patch pull_requests: +3517 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue18875> ___ _

[issue30809] IDLE parenmatch - highlighting options

2017-09-14 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- keywords: +patch pull_requests: +3565 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue30809] IDLE parenmatch - highlighting options

2017-09-14 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: -2554 ___ Python tracker <https://bugs.python.org/issue30809> ___ ___ Python-bugs-list mailing list Unsub

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-09-20 Thread Charles Wohlganger
Charles Wohlganger added the comment: The PR contains all the requested features, as well as mutual deletion (requested on PR page), and I have separated out the options for mutual deletion triggered by delete or triggered by backspace. I've found in usage that it was irritating to have

[issue29753] Ctypes Packing Incorrectly - Linux

2017-03-07 Thread Charles Machalow
New submission from Charles Machalow: There appears to be a bug related to sizing/packing of ctypes Structures on Linux. I'm not quite sure how, but this structure: class MyStructure(Structure): _pack_ = 1 _fields_= [ ("P", c_uint16

[issue29753] Ctypes Packing Incorrectly - Linux

2017-03-07 Thread Charles Machalow
Charles Machalow added the comment: Took a quick look at the c code for this. The area at fault appears to be this section in cfield.c: #ifndef MS_WIN32 } else if (bitsize /* this is a bitfield request */ && *pfield_size /* we have a bitfield open */ &&

[issue29753] Ctypes Packing Incorrectly - Linux

2017-03-07 Thread Charles Machalow
Charles Machalow added the comment: Some more debug with print statements in the c code seems to confirm my suspicion: bitsize, pfield_size, bitofs, dict->size prints were added just above the if chain to determine fieldtype and fieldtype was just after that if chain. That code lo

[issue30018] multiprocessing.Pool garbles call stack for __new__

2017-04-07 Thread Charles McEachern
New submission from Charles McEachern: I'm calling the constructor of Foo, a subclass of str. Expected output: Called Foo.__new__ with args = ('TIMESTAMP', 'INPUT0') TIMESTAMP OUTPUT0 When I make the call using a multiprocessing.pool.ThreadPool, it works fine. But whe

[issue30018] multiprocessing.Pool garbles call stack for __new__

2017-04-07 Thread Charles McEachern
Charles McEachern added the comment: This caused me several hours of misery yesterday, trying to isolate what was going wrong. I am unfortunately not at liberty to share the code I'm working on. The example on GitHub has the general thrust of it: my constructor was always called

[issue30018] multiprocessing.Pool garbles call stack for __new__

2017-04-07 Thread Charles McEachern
Charles McEachern added the comment: That seems to do it! Looks like the trick is to define __reduce__ to help out the serializer. Thanks! -- ___ Python tracker <http://bugs.python.org/issue30

[issue30161] Using `with` statement causes dict to start papering over attribute errors

2017-04-25 Thread Charles Cazabon
New submission from Charles Cazabon: This is a weird one. I've reproduced it with 3 versions of 2.7, including the latest 2.7.13. I didn't find an open bug about this, but I had difficulty crafting a search string for it, so I may have missed something. Basically, using a `with`

[issue30161] Using `with` statement causes dict to start papering over attribute errors

2017-04-25 Thread Charles Cazabon
Charles Cazabon added the comment: oh ffs ;) -- ___ Python tracker <http://bugs.python.org/issue30161> ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   3   4   5   6   7   8   9   10   >