[issue46223] asyncio cause infinite loop during debug

2022-01-01 Thread aaron
New submission from aaron : When running code in debug mode, asyncio sometimes enter into infinite loop, shows as the following: ``` Current thread 0x7f1c15fc5180 (most recent call first): File "/root/miniconda3/envs/omicron/lib/python3.9/asyncio/events.py", line 58 in __rep

[issue46223] asyncio cause infinite loop during debug

2022-01-13 Thread aaron
aaron added the comment: "When running code in debug mode" means we're debug the code. We have used both vscode and pycharm. Same result. -- ___ Python tracker <https://bugs.pyt

[issue46223] asyncio cause infinite loop during debug

2022-01-13 Thread aaron
aaron added the comment: '@reprlib.recursive_repr' decorator to 'events.Handle.__repr__()' could you tell me which file should I change? and why? -- ___ Python tracker <https://bug

[issue8381] New Window Error

2010-04-12 Thread Aaron
New submission from Aaron : When ever I try to open a new window or open a saved file in the IDLE (on a mac) it freezes. I am running snow leppord on a very new mac. -- components: IDLE messages: 102987 nosy: aaron.the.cow severity: normal status: open title: New Window Error type

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Aaron
Aaron added the comment: I just used the biult in mac softwere -- ___ Python tracker <http://bugs.python.org/issue8381> ___ ___ Python-bugs-list mailin

[issue43306] Error in multiprocessing.Pool's initializer doesn't stop execution

2021-08-23 Thread Aaron
Aaron added the comment: I ran into this bug answering this question on Stack Overflow: https://stackoverflow.com/questions/68890437/cannot-use-result-from-multiprocess-pool-directly I have minimized the code required to replicate the behavior, but it boils down to: when using "spaw

[issue43306] Error in multiprocessing.Pool's initializer doesn't stop execution

2021-08-23 Thread Aaron
Aaron added the comment: What should the behavior be if an exception is raised in a pool worker during bootstrapping / initialization function execution? I think an exception should be raised in the process owning the Pool, and in the fix I'm tinkering around with I just ra

[issue4640] optparse doesn’t disallow adding one-dash long options (“-option”)

2012-07-09 Thread Aaron
Aaron added the comment: I came across this bug report and was unable to reproduce the described behavior. I wrote a few test cases demonstrating that the behavior is indeed correct. It passes both against 2.5.2 (the version described in the report) and the lastest 2.7. The relevant code

[issue15882] _decimal.Decimal constructed from tuple

2012-09-07 Thread Aaron
New submission from Aaron: I think I may have found a problem with the code that constructs Infinity from tuples in the C _decimal module. # pure python (3.x or 2.x) >>> decimal.Decimal( (0, (0, ), 'F')) Decimal('Infinity') # _decimal >>> decimal.Dec

[issue15882] _decimal.Decimal constructed from tuple

2012-09-08 Thread Aaron
Aaron added the comment: I did not encounter this in a regular application. I do use the decimal module, and was excited to see the adoption of a faster C version, so I was just reading through the code to see how it worked. I can't think of a situation where I would need to constr

[issue2716] Reimplement audioop because of copyright issues

2012-09-09 Thread Aaron
Aaron added the comment: The license from http://sox.sourcearchive.com/documentation/12.17.7/g711_8c-source.html /* * This source code is a product of Sun Microsystems, Inc. and is provided * for unrestricted use. Users may copy or modify this source code without * charge. * * SUN SOURCE

[issue13212] json library is decoding/encoding when it should not

2012-09-09 Thread Aaron
Aaron added the comment: I think it's worth pointing out that both Firefox and Chrome support the non-standard JSON that Python supports (serializing and deserializing basic types). I'm guessing that communicating with web browsers is the vast majority of JSON IPC. That

[issue22719] os.path.isfile & os.path.exists but in while loop

2014-10-24 Thread Aaron
New submission from Aaron: When using os.path.isfile() and os.path.exists() in a while loop under certain conditions, os.path.isfile() returns True for paths that do not actually exist. Conditions: The folder "C:\Users\EAARHOS\Desktop\Python Review" exists, as do the files "C

[issue22719] os.path.isfile & os.path.exists bug in while loop

2014-10-24 Thread Aaron
Changes by Aaron : -- title: os.path.isfile & os.path.exists but in while loop -> os.path.isfile & os.path.exists bug in while loop ___ Python tracker <http://bugs.python.

[issue22719] os.path.isfile & os.path.exists bug in while loop

2014-10-24 Thread Aaron
Aaron added the comment: Interesting. It continues to reuse the last one's stats once the path is no longer valid. >>> bak_path = r"C:\Users\EAARHOS\Desktop\Python Review\baseExcel.py" >>> print(os.stat(bak_path)) nt.stat_result(st_mode=33206, st_ino=81627

[issue22719] os.path.isfile & os.path.exists bug in while loop

2014-10-24 Thread Aaron
Aaron added the comment: If I use a separate temp variable, the bug doesn't show, but if I use the same variable, even with + instead of +=, it still happens. >>> bak_path = r"C:\Users\EAARHOS\Desktop\Python Review\baseExcel.py" >>> print(os.stat(bak_path)) nt.

[issue22719] os.path.isfile & os.path.exists bug in while loop

2014-11-10 Thread Aaron
Aaron added the comment: Python 3.3.0, Windows 7, both 64 bit. Has it been resolved with the newer version, then? On Mon, Nov 3, 2014 at 11:15 PM, Zachary Ware wrote: > > Zachary Ware added the comment: > > Aaron, what version of Python are you using on what version of Windows? &

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2021-12-23 Thread Aaron Gokaslan
New submission from Aaron Gokaslan : Hello, I am a maintainer with the PyBind11 project. We have been following the 3.11 development branch and have noticed an issue we are encountering with changes to the C-API. Particularly, we have an edge case in our overloading dispatch mechanism that

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-01-31 Thread Aaron Gokaslan
Aaron Gokaslan added the comment: We didn't want to read colocalsplus directly because we were worried about the stability of that approach and the code complexity / readability. Also, I wasn't aware that colocalsplus would work or if that was lazily populated as well. The func

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-01-31 Thread Aaron Gokaslan
Aaron Gokaslan added the comment: `PyCodeObject_GetVariableName()` and `PyCodeObject_GetVariableKind()` work? - Some public-gettters such as these functions would be ideal. OOI, how do you cope with non-local self? - We only care about checking self to prevent an infinite recursion in our

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-04 Thread Aaron Gokaslan
Aaron Gokaslan added the comment: I saw the latest Python 3.11 5A release notes on the frame API changes. Do the notes mean the only officially supported way of accessing co_varnames is now through the Python interface and the inspect module? By using PyObject_GetAttrString? Also, the

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread Aaron Gokaslan
Aaron Gokaslan added the comment: The frame object I am referring to was: PyFrameObject *frame = PyThreadState_GetFrame(PyThreadState_Get()); This frame can not be used with PyObject_GetAttrString. Is there anyway to get the PyObject* associated with a PyFrameObject*? It seems weird that

[issue1057] Incorrect URL with webbrowser and firefox under Gnome

2007-08-29 Thread Aaron Bingham
New submission from Aaron Bingham: Under Gnome, Firefox will open the wrong URL when launched by webbrowser. For example after running the following interactive session: [EMAIL PROTECTED]:~> python Python 2.5.1 (r251:54863, Jun 6 2007, 13:42:30) [GCC 4.1.2 20061115 (prerelease) (SUSE Li

[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2007-10-07 Thread Aaron Swartz
Aaron Swartz added the comment: Just a note for those who think this is a purely theoretical issue: We've been using the python-markdown module on our web app for a while, only to notice the app has been repeatedly going down. After tracking down the culprit, we found that a speech from H

[issue13106] Incorrect pool.py distributed with Python 2.7 windows 32bit

2011-10-04 Thread Aaron Staley
New submission from Aaron Staley : The multiprocess/pool.py distributed with the Python 2.7.2 Windows Installer is different from the one distributed with the 64 bit windows installer or source tarball - and is buggy. Specifically, see Pool._terminate_pool: def _terminate_pool(cls

[issue13106] Incorrect pool.py distributed with Python 2.7 windows 32bit

2011-10-05 Thread Aaron Staley
Aaron Staley added the comment: Never mind; looks like this functionality was moved to handle_workers. I had inadvertently been testing under a modified pool.py. Sorry for the inconvenience! -- resolution: -> invalid status: open ->

[issue13060] allow other rounding modes in round()

2011-10-07 Thread Aaron Robson
Aaron Robson added the comment: When i run into I have to bodge around it in ways like the below code. I've only ever used round half up, has anyone here even used Bankers Rounding by choice before? For reference here are the other options: http://en.wikipedia.org/wiki/Rounding#Tie-bre

[issue13332] execfile fixer produces code that does not close the file

2011-11-03 Thread Aaron Meurer
Changes by Aaron Meurer : -- nosy: +Aaron.Meurer ___ Python tracker <http://bugs.python.org/issue13332> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13666] datetime documentation typos

2012-01-07 Thread Aaron Maenpaa
Aaron Maenpaa added the comment: This patch fixes the rzinfo typo as well as the GMT2 issue (GMT +2 should behave exactly the same as GMT +1 with regards to DST, it's base offset should simply be +2 hours instead of +1). This does not; however, address the comment about the first line o

[issue13666] datetime documentation typos

2012-01-07 Thread Aaron Maenpaa
Aaron Maenpaa added the comment: Looks like the issue of the first line of utcoffsect was also raised in issue 8810. -- ___ Python tracker <http://bugs.python.org/issue13

[issue12005] modulo result of Decimal differs from float/int

2012-01-07 Thread Aaron Maenpaa
Aaron Maenpaa added the comment: Here is a patch that adds an explination for the difference in the behaviour to the FAQ section of the Decimal documentation. -- keywords: +patch nosy: +zacherates Added file: http://bugs.python.org/file24162/issue12005.diff

[issue13730] Grammar mistake in Decimal documentation

2012-01-07 Thread Aaron Maenpaa
New submission from Aaron Maenpaa : In the sentance: "In contrast, numbers like 1.1 and 2.2 do not have an exact representations in binary floating point." there is a mismatch in number between "an" and "representations". I suggest removing "an" to m

[issue13731] Awkward phrasing in Decimal documentation

2012-01-07 Thread Aaron Maenpaa
New submission from Aaron Maenpaa : The paragraph: "The exactness carries over into arithmetic. In decimal floating point, 0.1 + 0.1 + 0.1 - 0.3 is exactly equal to zero. In binary floating point, the result is 5.5511151231257827e-017. While near to zero, the differences prevent rel

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

2012-01-07 Thread Aaron Maenpaa
Aaron Maenpaa added the comment: Here's a patch that makes the WWW-Authenticate headers in howto/urllib2 agree with rfc2617. -- keywords: +patch nosy: +zacherates Added file: http://bugs.python.org/file24166/issue13587.diff ___ Python tr

[issue13731] Awkward phrasing in Decimal documentation

2012-01-07 Thread Aaron Maenpaa
Aaron Maenpaa added the comment: That's fine. I'm not particularly attached to that phrasing. The one thing I would push for is to add a comma to "... decimal is preferred in accounting applications which have strict equality invariants." ... since, as far as I can tell

[issue13050] RLock support the context manager protocol but this is not documented

2012-01-07 Thread Aaron Maenpaa
Aaron Maenpaa added the comment: Here is a patch that adds an note about using Locks, RLocks, Conditions, and Semaphores as context managers to each of their descriptions as well as a link to the "Using locks, conditions, and semaphores in the with statement" section. -

[issue13731] Awkward phrasing in Decimal documentation

2012-01-07 Thread Aaron Maenpaa
Aaron Maenpaa added the comment: I can understand what was meant. You're welcome to close the issue. Sorry for the nitpick. -- ___ Python tracker <http://bugs.python.org/is

[issue12534] Tkinter doesn't support property attributes

2011-07-11 Thread Aaron Stevens
New submission from Aaron Stevens : When using Tkinter in Python 2.6.6, it is impossible to use the new-style properties, as the base classes (Misc, Pack, Place, and Grid) do not use the new style classes. It is easily fixed by changing the class declarations, i.e.: class Misc: becomes

[issue12534] Tkinter doesn't support property attributes

2011-07-11 Thread Aaron Stevens
Aaron Stevens added the comment: I forgot add that this is a problem only when inheriting from a Tkinter widget, such as a Frame. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12611] 2to3 crashes when converting doctest using reduce()

2011-07-25 Thread Aaron Meurer
Changes by Aaron Meurer : -- nosy: +Aaron.Meurer ___ Python tracker <http://bugs.python.org/issue12611> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12613] itertools fixer fails

2011-07-25 Thread Aaron Meurer
Changes by Aaron Meurer : -- nosy: +Aaron.Meurer ___ Python tracker <http://bugs.python.org/issue12613> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12616] zip fixer fails on zip()[:-1]

2011-07-25 Thread Aaron Meurer
Changes by Aaron Meurer : -- nosy: +Aaron.Meurer ___ Python tracker <http://bugs.python.org/issue12616> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12611] 2to3 crashes when converting doctest using reduce()

2011-07-28 Thread Aaron Meurer
Aaron Meurer added the comment: Vladimir will need to confirm how to reproduce this exactly, but here is corresponding SymPy issue: http://code.google.com/p/sympy/issues/detail?id=2605. The problem is with the sympy/ntheory/factor_.py file at https://github.com/sympy/sympy/blob/sympy-0.7.1

[issue12664] Path variable - Windows installer

2011-07-31 Thread Aaron Robson
New submission from Aaron Robson : One of the main barriers to getting a working development environment for me was having to discover that I needed, learn about and find out how to set up the Path variable in Windows. I propose an option in the installer (perhaps even set to be on by default

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2011-08-11 Thread Aaron Robson
Changes by Aaron Robson : -- nosy: +AaronR ___ Python tracker <http://bugs.python.org/issue3561> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12006] strptime should implement %V or %u directive from libc

2011-08-11 Thread Aaron Robson
Changes by Aaron Robson : -- nosy: +AaronR ___ Python tracker <http://bugs.python.org/issue12006> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12942] Shebang line fixer for 2to3

2011-09-08 Thread Aaron Meurer
New submission from Aaron Meurer : As suggested in this thread in the Python porting list (http://mail.python.org/pipermail/python-porting/2011-September/000231.html), it would be nice if 2to3 had a fixer that translated shebang lines from #! /usr/bin/env python to #! /usr/bin/env python3

[issue2090] __import__ with fromlist=

2010-09-19 Thread Aaron Sterling
Aaron Sterling added the comment: FWIW, I also get this behavior on 2.6.5 and there are claims that it occurs on 2.6.4 and 3.1.1. see http://stackoverflow.com/questions/3745221/import-calls-init-py-twice/3745273#3745273 -- nosy: +Aaron.Sterling versions: +Python 2.6 -Python 2.7

[issue2090] __import__ with fromlist=

2010-09-19 Thread Aaron Sterling
Changes by Aaron Sterling : -- versions: +Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue2090> ___ ___ Python-bugs-list mailing list Unsub

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-02-24 Thread Aaron Sherman
New submission from Aaron Sherman : I wrote some code a while back which used os.popen. I recently got a warning about popen being deprecated so I tried a test with the new subprocess module. In that test, subprocess.Popen appears to have a 40% process creation overhead penalty over os.popen

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-02-24 Thread Aaron Sherman
Aaron Sherman added the comment: "Python 3.2 has a _posixsubprocess: some parts of subprocess are implemented in C. Can you try it?" I don't have a Python 3 installation handy, but I can see what I can do tomorrow evening to get one set up and try it out. "disagre

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-02-25 Thread Aaron Sherman
Aaron Sherman added the comment: "That's why I asked for absolute numbers for the overhead difference." Did you not follow the link in my first post? I got pretty detailed, there. "os.popen just calls the popen(3) library call, which just performs a fork/execve and some

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-03-02 Thread Aaron Sherman
Aaron Sherman added the comment: I think it's still safe to say that high performance applications which need to create many hundreds or thousands of children (e.g. large monitoring systems) will still need another solution that isn't subprocess. That being said, you're right

[issue10776] os.utime returns an error on NTFS-3G partition

2010-12-26 Thread Aaron Masover
New submission from Aaron Masover : I'm working with Anki (http://ankisrs.net/) on a linux NTFS-3G partition. Anki requires access to modification times in order to handle its backup files. This works fine on my ext3 partition, but on an NTFS partition accessed with NTFS-3G an err

[issue10776] os.utime returns an error on NTFS-3G partition

2010-12-26 Thread Aaron Masover
Aaron Masover added the comment: The Anki author suggested that it was a python bug. However, that example command works on a drive set with different permissions, so this looks more like an NTFS-3G bug. -- status: open -> closed ___ Pyt

[issue2228] Imaplib speedup patch

2011-02-10 Thread Aaron Kaplan
Aaron Kaplan added the comment: Let me clarify. Offlineimap used to ship a modified version of imaplib in its distribution, but eventually the author decided he no longer wanted to maintain his imaplib fork, so he dropped it and went with stock imaplib (at a significant performance penalty

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2008-05-18 Thread Aaron Gallagher
New submission from Aaron Gallagher <[EMAIL PROTECTED]>: With the advent of collections.namedtuple, I thought that having a counterpart in the struct module would make having to deal with unpacked data much easier. Per suggestion, this extends the behavior of _struct.Struct rather

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2008-05-18 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: Okay, here's a new version of my patch. Instead of replacing the default functionality of struct.Struct, this patch now adds the functionality to a separate class called NamedStruct, so as to not break backwards compatibility.

[issue3119] pickle.py is limited by python's call stack

2008-06-15 Thread Aaron Gallagher
New submission from Aaron Gallagher <[EMAIL PROTECTED]>: Currently, pickle.py in the stdlib is limited by the python call stack. For deeply recursive data structures, the default recursion limit of 1000 is not enough. The patch attached modifies pickle.py to instead use a deque objec

[issue2480] eliminate recursion in pickling

2008-06-29 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: I've provided an alternate implementation of this that works with very minimal modification to pickle.py. See issue 3119 for the patch. -- nosy: +habnabit ___ Python tracker <[E

[issue3119] pickle.py is limited by python's call stack

2008-07-02 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: Ah, I didn't know that a list would be as fast for appending and popping. I knew that lists were optimized for .append() and .pop(), but I didn't know that a list would be just as fast as a deque if it was just used as a

[issue3119] pickle.py is limited by python's call stack

2008-08-19 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: Alright, sorry this took so long. Hopefully this can still be included in 3.0. Included is a patch that no longer uses collections.deque and also adds a test case to test/test_pickle.py. The test catches RuntimeError and fail

[issue4092] inspect.getargvalues return type not ArgInfo

2008-10-09 Thread Aaron Brady
New submission from Aaron Brady <[EMAIL PROTECTED]>: Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> import inspect >>>

[issue7972] Have sequence multiplication call int() or return NotImplemented so that it can be overridden with __rmul__

2010-02-20 Thread Aaron Meurer
New submission from Aaron Meurer : This works in Python 2.5 but not in Python 2.6. If you do [0]*5, it gives you [0, 0, 0, 0, 0]. I tried getting this to work with SymPy's Integer class, so that [0]*Integer(5) would return the same, but unfortunately, the sequence multiplication doesn&#

[issue4453] MSI installer shows error message if "Compile .py files to bytecode" option is selected

2010-04-15 Thread Aaron Thomas
Aaron Thomas added the comment: I can verify this will all versions of Windows 7, and the versions of python 32 and 64 bit. I install this at my work to many machines, and every one of them crashes when trying to 'compile py scripts to bytecode' during install. I have to left

[issue8465] Backreferences vs. escapes: a silent failure solved

2010-04-19 Thread Aaron Sherman
New submission from Aaron Sherman : I tested this under 2.6 and 3.1. Under both, the common mistake that I'm sure many others have made, and which cost me quite some time today was: re.sub(r'(foo)bar', '\1baz', 'foobar') It's obvious, I'm sure,

[issue8465] Backreferences vs. escapes: a silent failure solved

2010-04-20 Thread Aaron Sherman
Aaron Sherman added the comment: Matthew, thank you for replying. I still think the primary issue is the potential for confusion between single digit escapes and backreferences, and the ease with which they could be addressed, but to cover what you said: Quote: the normal way to handle &quo

[issue1792] o(n*n) marshal.dumps performance for largish objects with patch

2008-01-11 Thread Aaron Watters
Aaron Watters added the comment: Facundo 1) the +1024 was an accelerator to jump up to over 1k at the first resize. I think it's a good idea or at least doesn't hurt. 2) Here is an example program: def test(): from marshal import dumps from time import time testStr

[issue1792] o(n*n) marshal.dumps performance for largish objects with patch

2008-01-11 Thread Aaron Watters
New submission from Aaron Watters: Much to my surprise I found that one of my applications seemed to be running slow as a result of marshal.dumps. I think the culprit is the w_more(...) function, which grows the marshal buffer in 1k units. This means that a marshal of size 100k will have 100

[issue1792] o(n*n) marshal.dumps performance for largish objects with patch

2008-01-11 Thread Aaron Watters
Aaron Watters added the comment: also: I just modified the code to do iterations using increasingly large data sizes and I see the kind of very unpleasant behaviour for the old implementation (max time varies wildly from min time) that I saw in my more complex program. The new implementation

[issue1997] unicode and string compare should not cause an exception

2008-02-01 Thread Aaron Watters
New submission from Aaron Watters: As I understand it comparisons between two objects should always work. I get this at the interpreter prompt: Python 2.6a0 (trunk, Jan 11 2008, 11:40:59) [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2 Type "help", "copyright", "

[issue1997] unicode and string compare should not cause an exception

2008-02-02 Thread Aaron Watters
Aaron Watters added the comment: Okay. I haven't looked but this should be well documented somewhere because I found it very surprising (it crashed a large run somewhere in the middle). In the case of strings versus unicode I think it is possible to hack around this by catching the except

[issue2228] Imaplib speedup patch

2008-03-03 Thread Aaron Kaplan
New submission from Aaron Kaplan: In some versions of John Goergen's program offlineimap, he includes a copy of imaplib.py with the attached changes. It results in a speedup of more than 50% compared to using the stock imaplib.py. -- files: imaplib-patch messages: 63237

[issue2573] Can't change the framework name on OS X builds

2008-04-07 Thread Aaron Gallagher
New submission from Aaron Gallagher <[EMAIL PROTECTED]>: There is currently no way in the configure script to specify an alternate name for Python.framework. If I want to completely separate versions of Python (e.g. for 3.0 alphas and/or Stackless), I have to manually edit configure.

[issue2573] Can't change the framework name on OS X builds

2008-04-07 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: Here's a framework that implements the necessary change. I'm not very good at autoconf, so it might need to be touched up. -- keywords: +patch Added file: http://bugs.python.org/file9977

[issue2573] Can't change the framework name on OS X builds

2008-04-07 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: Okay, here's the same patch but now with Mac/Makefile.in patched. I changed all references to Python to the framework name, because I believe it won't work properly otherwise. Added file: http://bugs.python.org/file9979/

[issue4376] Nested ctypes 'BigEndianStructure' fails

2008-11-21 Thread Aaron Brady
New submission from Aaron Brady <[EMAIL PROTECTED]>: Nested 'BigEndianStructure' fails in 2.5 and 2.6.: TypeError: This type does not support other endian Example and traceback in attached file. -- assignee: theller components: ctypes files: ng36.py messages: 76171

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: I can't reproduce this on python 2.5.1, 2.5.2, or 2.6.0 on Mac OS 10.5.4. Both .read() and .readline() raise an EBADF IOError. 3.0.0 fails in the same way. -- nosy: +habnabit ___ Pyt

[issue4708] os.pipe should return inheritable descriptors (Windows)

2008-12-20 Thread Aaron Brady
New submission from Aaron Brady : os.pipe should return inheritable descriptors on Windows. Patch below, test attached. New pipe() returns descriptors, which cannot be inherited. However, their permissions are set correctly, so msvcrt.get_osfhandle and msvcrt.open_osfhandle can be used to

[issue4708] os.pipe should return inheritable descriptors (Windows)

2009-01-14 Thread Aaron Brady
Aaron Brady added the comment: This is currently accomplished in 'multiprocessing.forking' with a 'duplicate' function. Use (line #213): rfd, wfd = os.pipe() # get handle for read end of the pipe and make it inheritable rhandle = duplicate(msvc

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-23 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: sigh.. adding myself to nosy here too in the hope that this gets any traction -- nosy: +habnabit ___ Python tracker <https://bugs.python.org/i

[issue38719] Surprising and possibly incorrect passing of InitVar to __post_init__ method of data classes

2019-11-06 Thread Aaron Ecay
New submission from Aaron Ecay : I have discovered that InitVar's are passed in a surprising way to the __post_init__ method of python dataclasses. The following program illustrates the problem: = from dataclasses import InitVar, dataclass @dataclass class Foo: bar: InitVa

[issue14965] super() and property inheritance behavior

2021-05-17 Thread Aaron Gallagher
Change by Aaron Gallagher : -- nosy: +Aaron Gallagher nosy_count: 20.0 -> 21.0 pull_requests: +24811 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26194 ___ Python tracker <https://bugs.p

[issue14965] super() and property inheritance behavior

2021-05-17 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: @daniel.urban I'm attempting to move this patch along, but since the contributing process has changed in the years since your patch, you'll need to sign the CLA. Are you interested in picking this back up at all? I haven&#

[issue14965] super() and property inheritance behavior

2021-05-28 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: @daniel.urban would you kindly resubmit your patch as a PR to the cpython repo? I've learned out-of-band from someone else that putting patches on bpo is considered obsolete. you can use the PR I've submitted (https://g

[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2021-06-02 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: This is definitely not windows-specific. On macos: $ python3.9 Python 3.9.4 (default, Apr 5 2021, 01:47:16) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin Type "help", "copyright", "credits" or "lic

[issue44455] compileall should exit nonzero for nonexistent directories

2021-06-18 Thread Aaron Meurer
New submission from Aaron Meurer : $ ./python.exe -m compileall doesntexist Listing 'doesntexist'... Can't list 'doesntexist' $ echo $? 0 It's standard for a command line tool that processes files to exit nonzero when given a directory that doesn't exist

[issue16959] rlcompleter doesn't work if __main__ can't be imported

2021-06-18 Thread Aaron Meurer
Aaron Meurer added the comment: A quick glance at the source shows that it still imports __main__ at the top-level. I have no idea how legitimate it is that the App Engine (used to?) makes it so that __main__ can't be imported. -- nosy: +asm

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Aaron Meurer
Aaron Meurer added the comment: When talking about making exit only work when typed at the interpreter, something to consider is the confusion that it can cause when there is a mismatch between the interactive interpreter and noninteractive execution, especially for novice users. I've

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2021-09-30 Thread Aaron Smith
Aaron Smith added the comment: I encountered the similar behavior unexpectedly when dealing with LEGB scope of names. Take the following example run under Python 3.9.2: def doSomething(): x = 10 del x print(x) x = 5 doSomething() This produces a UnboundLocalError at print(x

[issue45473] Enum add "from_name" and "from_value" class methods

2021-10-14 Thread Aaron Koch
New submission from Aaron Koch : Documentation: https://docs.python.org/3/library/enum.html#creating-an-enum Current behavior: SomeEnum[name] is used to construct an enum by name SomeEnum(value) is used to construct an enum by value Problem: As a user of enums, it is difficult to remember

[issue45473] Enum add "from_name" and "from_value" class methods

2021-10-14 Thread Aaron Koch
Aaron Koch added the comment: Are there any other names that you would contemplate besides `from_name` and `from_value`? My reading of your response indicates that you are fundamentally opposed to the addition of class methods, since they would limit the space of possible instance methods

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-11-08 Thread Aaron Meurer
Change by Aaron Meurer : -- nosy: +asmeurer ___ Python tracker <https://bugs.python.org/issue42109> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14965] super() and property inheritance behavior

2021-12-08 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: I will note, Raymond, that I’ve wanted this for years before discovering this bpo issue, and I found it because you linked it on Twitter. ;) On Wed, Dec 8, 2021 at 19:08 Raymond Hettinger wrote: > > Raymond Hettinger added

[issue36144] Dictionary addition. (PEP 584)

2019-12-12 Thread Aaron Hall
Aaron Hall added the comment: Another obvious way to do it, but I'm +1 on it. A small side point however - PEP 584 reads: > To create a new dict containing the merged items of two (or more) dicts, one > can currently write: > {**d1, **d2} > but this is neither o

[issue39854] f-strings with format specifiers have wrong col_offset

2020-03-04 Thread Aaron Meurer
New submission from Aaron Meurer : This is tested in CPython master. The issue also occurs in older versions of Python. >>> ast.dump(ast.parse('f"{x}"')) "Module(body=[Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='x',

[issue39820] Bracketed paste mode for REPL

2020-05-18 Thread Aaron Meurer
Aaron Meurer added the comment: Related issue https://bugs.python.org/issue32019 -- nosy: +asmeurer ___ Python tracker <https://bugs.python.org/issue39

[issue21821] The function cygwinccompiler.is_cygwingcc leads to FileNotFoundError under Windows 7

2021-02-03 Thread Aaron Meurer
Aaron Meurer added the comment: Is find_executable() going to be extracted from distutils to somewhere else? It's one of those functions that is useful outside of packaging, and indeed, I've seen it imported in quite a few codes that aren't related to packaging. If so, the pa

[issue42819] readline 8.1 enables the bracketed paste mode by default

2021-02-15 Thread Aaron Meurer
Aaron Meurer added the comment: Instead of enabling it by default, why not just keep it but emulate the old behavior by splitting and buffering the input lines? That way you still get some of the benefits of bracketed paste, i.e., faster pasting, but without the hard work of fixing the REPL

[issue39820] Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly

2021-02-17 Thread Aaron Meurer
Aaron Meurer added the comment: To reiterate some points I made in the closed issues https://bugs.python.org/issue42819 and https://bugs.python.org/issue32019. A simple "fix" would be to emulate the non-bracketed paste buffering. That is, accept the input using bracketed paste, bu

  1   2   3   4   >