[issue37771] No equivalent of `inspect.getcoroutinestate` for PyAsyncGenASend instances

2019-08-06 Thread George Zhang
Change by George Zhang : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue37771> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2019-08-08 Thread George Zhang
George Zhang added the comment: Also, while the PEP first introducing asynchronous generators stated that its .asend() and .athrow() methods will return a "coroutine-like object", it doesn't allow any introspection into its state or parent async generator. My workaround

[issue30707] Incorrect description of "async with" in PEP492 and documentation

2017-06-19 Thread Damien George
Changes by Damien George : -- assignee: docs@python components: Documentation nosy: Damien George, docs@python priority: normal severity: normal status: open title: Incorrect description of "async with" in PEP492 and documentation type: behavior versions: Python 3.5, Python 3

[issue30707] Incorrect description of "async with" in PEP492 and documentation

2017-06-19 Thread Damien George
New submission from Damien George: The behaviour of the "async with" statement in CPython does not match the description of it in PEP492, nor the language documentation. The implementation uses a try/except/finally block, while the PEP and documentation describe the behaviour u

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-22 Thread George Shuklin
New submission from George Shuklin: If there is too many indexes python crashes: a[0][0][0][0] segfault at 7ffd25fe6ff8 ip 564528c8cfe6 sp 7ffd25fe7000 error 6 in python2.7[564528b6a000+324000] code to generate code: >>> i="[0]"*20 >>> file('

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-25 Thread George Shuklin
George Shuklin added the comment: Unfixed crash of code interpreter? This is sad. -- ___ Python tracker <http://bugs.python.org/issue30734> ___ ___ Python-bug

[issue30894] Python 3.6.1 String Literal Error Not Going to sys.stderr

2017-07-10 Thread George Gillan
New submission from George Gillan: Python 3.6.1 String Literal Error Not Going to sys.stderr Using Windows 7 and Python 3.6.1. Attempting to redirect sys.stderr to a file. The application will be deployed via .pyw file instead of .py so the GUI application runs without a console window. Is

[issue25571] Improve the lltrace feature with the Py_Debug mode

2017-07-16 Thread George King
George King added the comment: @matrixise, I'm the author of the alternative in issue29400, and I'm finally finding the time to get back into it. I'm going to make a push this week to clean it up; your feedback would be much appreciated! --

[issue29400] Add instruction level tracing via sys.settrace

2017-07-16 Thread George King
George King added the comment: After reviewing the thread, I'm reminded that the main design problem concerns preserving behavior of this idiom: "old=sys.gettrace(); ...; sys.settrace(old)" If we add more state, i.e. the `trace_instructions` bool, then the above idiom no l

[issue30940] Documentation for round() is incorrect.

2017-07-16 Thread George K
New submission from George K: The documentation for round states "The return value is an integer if called with one argument, otherwise of the same type as number." This is not the case if the second argument is None. -- assignee: docs@python components: Documentation messag

[issue29400] Add instruction level tracing via sys.settrace

2017-08-07 Thread George King
George King added the comment: I've updated the patch and I think it's ready for a more serious review. A few notes: * settracestate now takes a flag `trace_instructions`. This describes slightly better the behavior, which is that line events take precedence over instructions.

[issue29400] Add instruction level tracing via sys.settrace

2017-08-07 Thread George King
George King added the comment: (Also I did prototype instruction filtering but it had mild performance implications when tracing so I have shelved it for the moment.) -- ___ Python tracker <http://bugs.python.org/issue29

[issue31183] `Dis` module doesn't know how to disassemble async generator or coroutine objects

2017-08-11 Thread George Collins
New submission from George Collins: Issue 21947 informed the `dis` module about the `gi_code` attribute, which stores code objects for generator objects. This allows inspection of generator objects, not just functions which return them. However, asynchronous generator objects use `ag_code

[issue31183] `Dis` module doesn't know how to disassemble async generator or coroutine objects

2017-08-11 Thread George Collins
Changes by George Collins : -- pull_requests: +3114 ___ Python tracker <http://bugs.python.org/issue31183> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31183] `Dis` module doesn't know how to disassemble async generator or coroutine objects

2017-08-12 Thread George Collins
George Collins added the comment: Hm--either/both? I encountered it as a bug ("dis works on my generator object and my async generator function, why does it break on my async generator object?") but strictly speaking it's a new feature (just as issue21947 was). To my mind, ad

[issue31183] `Dis` module doesn't know how to disassemble async generator or coroutine objects

2017-08-12 Thread George Collins
George Collins added the comment: Makes sense. I'll update the PR in a bit, and if anyone is hitting this repeatedly and thinks it should be added to 3.6 they can advocate for a policy change in the maintaining-consistency-with-previous-new-features corner case. Thanks

[issue31251] Diameter protocol in Python

2017-08-21 Thread George Lane
New submission from George Lane: Diameter protocol in Python -- components: Library (Lib) messages: 300643 nosy: George Lane priority: normal severity: normal status: open title: Diameter protocol in Python type: resource usage versions: Python 3.7

[issue31251] Diameter protocol in Python

2017-08-21 Thread George Lane
George Lane added the comment: Hi, ¿can you tell me about Diameter protocol implemented by Python?, ¿where can I found documentation and package for downloading? Best regards 2017-08-21 14:36 GMT-03:00 Serhiy Storchaka : > > Serhiy Storchaka added the comment: > > Could you

[issue24900] Raising an exception that cannot be unpickled causes hang in ProcessPoolExecutor

2017-08-29 Thread George King
Changes by George King : -- pull_requests: +3277 ___ Python tracker <http://bugs.python.org/issue24900> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29400] Add instruction level tracing via sys.settrace

2017-08-29 Thread George King
George King added the comment: Attached updated demo script. -- Added file: http://bugs.python.org/file47107/settracestate-demo.py ___ Python tracker <http://bugs.python.org/issue29

[issue29400] Add instruction level tracing via sys.settrace

2017-08-29 Thread George King
Changes by George King : -- pull_requests: +3278 ___ Python tracker <http://bugs.python.org/issue29400> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27035] Cannot set exit code in atexit callback

2019-01-23 Thread George King
George King added the comment: I agree that regardless of the underlying issue, the docs should match the behavior. Additionally, I hope the docs will note the exact release at which the behavior changed. @serhiy-storchaka do you have any opinion on this? I took a brief look at your commit

[issue29935] list and tuple index methods should accept None parameters

2017-03-28 Thread George King
New submission from George King: As of python3.6, passing None to the start/end parameters of `list.index` and `tuple.index` raises the following exception: "slice indices must be integers or None or have an __index__ method" This suggests that the intent is to support None as a v

[issue29935] list and tuple index methods should accept None parameters

2017-03-28 Thread George King
Changes by George King : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue29935> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue29935] list and tuple index methods should accept None parameters

2017-03-29 Thread George King
George King added the comment: I think it is a mistake not to support None values. Please consider: The existing message clearly suggests that the intent is to support the same set of values as the start/stop parameters of the slice type. str, bytes, and bytearray all support None for `index

[issue36507] frozenset type breaks ZFC

2019-04-02 Thread George Shuklin
New submission from George Shuklin : ZFC (https://en.wikipedia.org/wiki/Zermelo%E2%80%93Fraenkel_set_theory) defines numbers as nested empty sets. 0 is {} 1 is {{}} 2 is {{{}}} Sets can not be nested in python (as they are mutable), so next best type is frozen set. Unfortunately, nested

[issue36519] Blake2b/s implementations have minor GIL issues

2019-04-03 Thread George King
New submission from George King : I was browsing the Blake2b module implementation in master and noticed two subtle issues in blake2b_impl.c. There are two places where the GIL gets released; both of them appear flawed. py_blake2b_new_impl, line 221. The ALLOW_THREADS block fails to acquire

[issue36662] asdict/astuple Dataclass methods

2019-04-18 Thread George Sakkis
New submission from George Sakkis : I'd like to propose two new optional boolean parameters to the @dataclass() decorator, `asdict` and `astuple`, that if true, the respective methods are generated as equivalent to the module-level namesake functions. In addition to saving an extra imp

[issue36662] asdict/astuple Dataclass methods

2019-04-19 Thread George Sakkis
George Sakkis added the comment: > I think the best thing to do is write another decorator that adds this > method. I've often thought that having a dataclasses_tools third-party module > would be a good idea. I'd be happy with a separate decorator in the standard libra

[issue31618] Change sys.settrace opcode tracing to occur after frame line number update

2017-09-28 Thread George King
New submission from George King : This patch moves the new opcode tracing added in commit 5a85167 to happen after frame->f_lineno is updated. With this patch, when both f_trace_lines and f_trace_opcodes are enabled the trace function will see the same line number for both the 'l

[issue31618] Change sys.settrace opcode tracing to occur after frame line number update

2017-09-28 Thread George King
George King added the comment: The feature was was implemented in bpo-31344. See bpo-29400 for my parallel effort, which has been abandoned. -- ___ Python tracker <https://bugs.python.org/issue31

[issue29400] Add instruction level tracing via sys.settrace

2017-09-28 Thread George King
George King added the comment: Nick's implementation of f_trace_lines/f_trace_opcodes serves the same purpose as my proposal, and is a simpler solution so I'm abandoning this patch and working with that feature instead. -- stage: test needed -> resolved status: o

[issue31681] pkgutil.get_data() leaks open files in Python 2.7

2017-10-19 Thread George King
Change by George King : -- pull_requests: +4016 ___ Python tracker <https://bugs.python.org/issue31681> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31618] Change sys.settrace opcode tracing to occur after frame line number update

2017-10-19 Thread George King
Change by George King : -- keywords: +patch pull_requests: +4017 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31618> ___ ___ Python-

[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread George King
New submission from George King : On my newish macOS laptop using Python 3.6 or 3.7, a no-op script takes 3 times as long to invoke using the entry_points machinery as it does to invoke directly. Here are some exemplary times (best times after several tries). $ time python3.6 entrypoint.py

[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread George King
George King added the comment: Thanks Barry. My question then is, what relationship does cpython have with pip, setuptools, distutils and pkg_resources? Since pip comes bundled with Python now it seems a little bit closer than "3rd party&quo

[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread George King
George King added the comment: OK, thanks. I agree that this is best pursued with the developers of the relevant modules. I appreciate your quick and detailed responses! -- ___ Python tracker <https://bugs.python.org/issue33

[issue35026] Winreg's documentation lacks mentioning required permission at some points

2018-10-19 Thread George Fischhof
New submission from George Fischhof : Winreg's documentation lacks mentioning required permission at some points Hi there, on page https://docs.python.org/3/library/winreg.html it is not mentioned in the description of the following functions: winreg.DeleteKey winreg.Delete

[issue15082] [httplib] httplib.BadStatusLine on any HTTPS connection in certain unknown cases.

2012-06-15 Thread George Stephanos
New submission from George Stephanos : When trying to POST /anything/ @ https://grooveshark.com/, I get an httplib.BadStatusLine exception (server returns nothing at all. It's a timeout since it waits a while). The many Grooveshark webclients however works perfectly, along with a

[issue15082] [httplib] httplib.BadStatusLine on any HTTPS connection in certain unknown cases.

2012-06-16 Thread George Stephanos
George Stephanos added the comment: I can confirm that. I built a 1.0.1c version of both _ssl.pyd and _ssl.lib and now the problem's solved (they're attached if ever needed). Thanks! Can't the next Python 2.7 release include 1.0.1c instead ? -- Added file: http://

[issue15869] Include .desktop file and icon

2012-09-06 Thread Dominik George
New submission from Dominik George: As a graphical application, IDLE, is shipped, a .desktop file should be included for intallation to /usr/share/applications. Furthermore, a 16x16 pixel version in XPM format of the Python icon should be shipped to accompany the menu entries. Attached is a

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2012-10-28 Thread George Peristerakis
George Peristerakis added the comment: Here's a patch to the problem. I refactored the code to work the same way on posix, nt, os2 environments. Plus a unit test for the posix environment that the bug was initially for. -- nosy: +George.Peristerakis Added file: http://bugs.pytho

[issue16371] typo in ctypes

2012-10-31 Thread George Yoshida
New submission from George Yoshida: In the following sentence: http://docs.python.org/3.3/library/ctypes.html > 16.17.1.19. Surprises > There are some edges in ctypes where you may be expect something else than > what actually happens. "you may be expect" should r

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2012-11-03 Thread George Peristerakis
George Peristerakis added the comment: Correction a typo error in the test. -- Added file: http://bugs.python.org/file27870/issue9674.patch ___ Python tracker <http://bugs.python.org/issue9

[issue16190] Misleading warning in random module docs

2012-11-03 Thread George Peristerakis
Changes by George Peristerakis : -- nosy: +George.Peristerakis ___ Python tracker <http://bugs.python.org/issue16190> ___ ___ Python-bugs-list mailing list Unsub

[issue16190] Misleading warning in random module docs

2012-11-09 Thread George Peristerakis
Changes by George Peristerakis : -- nosy: -George.Peristerakis ___ Python tracker <http://bugs.python.org/issue16190> ___ ___ Python-bugs-list mailing list Unsub

[issue16530] documentation of os.wait3

2012-11-22 Thread George Yoshida
New submission from George Yoshida: Documentation defines os.wait3 function as : > os.wait3([options]) but, this argument is required(no default options are set), so > os.wait3(options) is the correct definition. http://docs.python.org/3.3/library/os.html#os.wait3 -- assignee

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread George King
New submission from George King: I can crash python2.7.5 python3.3.2 from the REPL consistently: $ python3 Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread George King
George King added the comment: actually, the second line of any interactive session is segfaulting; my installation must be corrupted. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread George King
George King added the comment: this is probably due to system upgrade from OS X 10.8 to 10.9 (mavericks) yesterday. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19366] Segfault in REPL due to escaped tab.

2013-10-23 Thread George King
George King added the comment: thank you. i worked around this by building python3 from source, with gnu readline libs i had previously compiled (those did not require a rebuild on osx 10.9). -- ___ Python tracker <http://bugs.python.

[issue20445] HAVE_BROKEN_NICE detected incorrectly due to configure.ac typo

2014-01-30 Thread George Kouryachy
New submission from George Kouryachy: It's declared in pyconfig.h that HAVE_BROKEN_NICE is set if nice() returns success/failure instead of the new priority. But configure checks just opposite (as for http://hg.python.org/cpython/file/03fc7449f204/configure.ac#l4234): if (val1

[issue20445] HAVE_BROKEN_NICE detected incorrectly due to configure.ac typo

2014-01-30 Thread George Kouryachy
George Kouryachy added the comment: It seems to be permanent typo through all branches :( -- versions: +Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue20

[issue20445] HAVE_BROKEN_NICE detected incorrectly due to configure.ac typo

2014-02-01 Thread George Kouryachy
George Kouryachy added the comment: Oops, looks like my local build system artifact. Thank you for your attention, all-clear. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue7565] Increasing resource.RLIMIT_NOFILE has no effect

2009-12-22 Thread George King
New submission from George King : My builds from trunk fail to open a number of files greater than the default 2660, even when I increase the limit using: resource.setrlimit(resource.RLIMIT_NOFILE, (test_limit, -1)) Attached is a script that doubles the default limit, sets it, queries it to

[issue2279] distutils sdist add_defaults does not add data_files

2009-02-16 Thread George Sakkis
George Sakkis added the comment: > > FWIW I wrote a module that overrides the default build_py and sdist > > commands with versions that allow specifying package_data recursively > > Maybe that could be a new feature ? That would be nice, especially if we want to reimplem

[issue2279] distutils sdist add_defaults does not add data_files

2009-02-16 Thread George Sakkis
George Sakkis added the comment: > done in r69692 and r69696. Great, thanks. The data_files part though seems incorrect; for one thing each item in data_files can be either a (dir,files) tuple or a plain string, and for two 'dir' is the output (installation) directory, not the r

[issue5300] Distutils ignores file permissions

2009-02-17 Thread George Sakkis
New submission from George Sakkis : Distutils ignores file permissions when copying modules and package_data files to the build directory, and consequently to the installation directory too. According to an XXX comment at distutils/command/build_py.py, this is deliberate so that the built files

[issue5302] Allow package_data globs match directories

2009-02-17 Thread George Sakkis
New submission from George Sakkis : Currently each glob defined in package_data must match files only; if it matches a directory, it raises an exception later when calling copy_file(). This means that a glob like 'mydata/*' will fail if there is any subdirectory under 'mydata'

[issue2279] distutils sdist add_defaults does not add data_files

2009-02-17 Thread George Sakkis
George Sakkis added the comment: Opened #5300 and #5302 for the mentioned issues. Btw in your patch, I believe `os.path.join(dirname, f)` should be replaced by `f` alone; `dirname` refers to the dir under the installation directory, not the source

[issue5302] Allow package_data globs match directories

2009-02-18 Thread George Sakkis
George Sakkis added the comment: > I am no in favor of MANIFEST.in removal because I find it very > convenient to define what is included in a package and I rarely use > package_data or data_files. AFAIK the MANIFEST is used only by sdist; what's the point of including files

[issue5300] Distutils ignores file permissions

2009-02-18 Thread George Sakkis
George Sakkis added the comment: > what is your use case of having executable file here ? > > I'd use the 'scripts' metadata for that ? For one thing they are external binaries, not python scripts, and second they are used internally only (through Subprocess), the

[issue5344] typo in what's new in 2.6

2009-02-21 Thread George Yoshida
New submission from George Yoshida : In "What's new in 2.6" PEP 343 section, the following sentence lacks a closing parenthesis: > The expression is evaluated, and it should result in an object that supports the context management protocol (that is, has __enter__() and __exit

[issue5464] msgfmt.py does not work with plural form

2009-03-09 Thread Stephen George
New submission from Stephen George : It seems that C:\Python26\Tools\i18n\msgfmt.py does not work with PO files that use plural form. Get the following error. ERRORTraceback (most recent call last): File "C:\Python26\Tools\i18n\msgfmt.py", line 203, in main() File "C:

[issue5662] py3k interpreter leak

2009-04-01 Thread George Yoshida
New submission from George Yoshida : In py3k interpreter, every time you hit enter, refcount is incremented one by one. It looks like r70823 is the culprit. (tested with py3k:70823 and release30-maint:70831) Python 3.1a1+ (py3k:70823, Apr 2 2009, 10:21:55) [GCC 4.3.2] on linux2 Type "

[issue5669] Extra heap nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
New submission from George Sakkis : It would be useful in many cases if heapq.nlargest and heapq.nsmallest grew an optional boolean parameter, say `ties` (defaulting to False) that when True, it would return more than `n` items if there are ties. To illustrate: >>> s = [4,3,5,7,4,7,4,3

[issue5669] Extra heap nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: The second call should of course be: >>> for i in xrange(1,len(s)+1): print i,heapq.nsmallest(i,s,ties=True) -- ___ Python tracker <http://bugs.python.o

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
Changes by George Sakkis : -- title: Extra heap nlargest/nsmallest option for including ties -> Extra heapq nlargest/nsmallest option for including ties ___ Python tracker <http://bugs.python.org/iss

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: There's nothing special about my use cases; I'd even go as far as to suggest that this is more often than not the desired behavior in general. Say that you have to select the top 3 chess players and there are two players with equal Elo rating at posit

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: > In that case, I think it best to leave nsmallest/nlargest as-is. By > appending ties to the result, it becomes harder to implement policy > decisions on what to do with those ties (perhaps listing them separately > or splitting their prizes n

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: > That should have been: last = result[-1]; [last]*s.count(last). Nice, though that's not equivalent if the objects' identity is significant for what happens next (which typically is the case when ties are preserved). The sorted/bisect solution

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
Changes by George Sakkis : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue5669> ___ ___ Python-bugs-list mailing list Unsubscri

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: > I recommend posting an ASPN recipe. That's what I do with a lot of > ideas that are under development or that don't clear the bar for going > into the standard library. Will do. Thanks for t

[issue5697] heapq.nlargest does not perform stable sort

2009-04-05 Thread George Sakkis
New submission from George Sakkis : According to the docs, heapq.nlargest should be equivalent to sorted(iterable, key=key, reverse=True)[:n], and since sorted() is stable, so should heapq.nlargest be. This is not the case: >>> s =[ ('Mike', -1), ('John', 3)

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-05 Thread George Sakkis
George Sakkis added the comment: Posted recipe at http://code.activestate.com/recipes/576712/. You were right, the implementation gets significantly hairier but I think it's worth having this option. It's also faster than using sorted/bisect as len(seq)/N increases and t

[issue5697] heapq.nlargest does not perform stable sort

2009-04-05 Thread George Sakkis
George Sakkis added the comment: Should have checked a recent version first; that's from 2.5 (r25:51908, Sep 19 2006, 09:52:17). Sorry for the noise. -- status: open -> closed ___ Python tracker <http://bugs.python.or

[issue5744] multiprocessing.managers.BaseManager.connect example typos

2009-04-12 Thread George Yoshida
George Yoshida added the comment: > The example ... has *2* typos I guess the reporter wants to point out - extra parenthesis(fixed in r71544) - closing quote is missing for authkey argument -- nosy: +quiver status: closed -> open ___

[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-04-30 Thread George Sakkis
New submission from George Sakkis : Is the following behavior expected ? class MyProp(property): pass class Foo(object): @property def bar(self): '''Get a bar.''' @MyProp def baz(self): '''Get a baz.''

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-09 Thread George Sakkis
New submission from George Sakkis : It would be nice if classmethod/staticmethod exposed the wrapped function as a read-only attribute/property. Currently the function can be retrieved indirectly but it's obscure (and perhaps not always correct, I'm not sure): In [147]: de

[issue3135] inspect.getcallargs()

2009-05-14 Thread George Sakkis
George Sakkis added the comment: I updated the recipe to also return a `missing_args` tuple - the tuple of the formal parameters whose value was not provided. This is useful in cases where one want to distinguish f() from f(None) given "def f(x=None)". -- versions: +Python 2

[issue3135] inspect.getcallargs()

2009-05-14 Thread George Sakkis
George Sakkis added the comment: Also updated url: http://code.activestate.com/recipes/551779/ -- ___ Python tracker <http://bugs.python.org/issue3135> ___ ___

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-19 Thread George Sakkis
George Sakkis added the comment: I don't remember the exact use case but it had to do with making a decorator robust enough to work for different kinds of callables (and a few common non-callables such as classmethod/staticmethod). It's not a show stopper by any means but I thought i

[issue9431] 2to3 reapplies fix_dict

2010-07-30 Thread George Boutsioukis
New submission from George Boutsioukis : This only happens on somewhat complex files, I haven't been able yet to isolate the source of this but here goes: For django trunk, running 2to3 on django/contrib/admin/options.py yields the following: @@ -282,7 +282,7 @@

[issue9431] 2to3 reapplies fix_dict

2010-08-08 Thread George Boutsioukis
George Boutsioukis added the comment: Tried it on 2 machines(Debian & Ubuntu) with both the sandbox and py3k versions. Maybe my setup is tainted on both, I'll try to find a clean one and try again from scratch. Meanwhile, can you/someone pipe 2to3's output for the whole django

[issue28714] Addition to Documentation of configparser.ConfigParser.write()

2016-11-24 Thread George Fischhof
George Fischhof added the comment: Hi Berker, It is true, I agree ;-) But this way ConfigParser works different than xml parsers (for example elementtree from system lib), as when I use elementtree.write it wil create a file with full and valid xml content. But ConfigParser is "

[issue28788] Feature request: ConfigParser should be able to write config to a given filename, not only into file object

2016-11-24 Thread George Fischhof
New submission from George Fischhof: Hi There, I started to use ConfigParser, and found that it has no write to file_name option, but xml paarser (ElementTree) has. This way ConfigParser works different than xml parsers, as when I use elementtree.write it will create a file with full and

[issue28714] Addition to Documentation of configparser.ConfigParser.write()

2016-11-24 Thread George Fischhof
George Fischhof added the comment: Hi, issue 28788 created as feature request BR, George -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-12-23 Thread Carl George
Carl George added the comment: While attempting to build a Python 3.6 RPM for RHEL/CentOS 6, I noticed the following warning. *** WARNING: renaming "_sqlite3" since importing it failed: build/lib.linux-i686-3.6-pydebug/_sqlite3.cpython-36dm-i386-linux-gnu.so: undefi

[issue29098] document minimum sqlite version

2016-12-28 Thread Carl George
New submission from Carl George: While attempting to build a Python 3.6 RPM for RHEL/CentOS 6, I noticed the following warning. *** WARNING: renaming "_sqlite3" since importing it failed: build/lib.linux-i686-3.6-pydebug/_sqlite3.cpython-36dm-i386-linux-gnu.so: undefi

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-09 Thread George King
George King added the comment: I am encountering this problem on macOS 10.12.2, with Xcode 8.2.1 (latest). I have tried building from the following cpython branches today (using the github fork): 2.7: 13a39142c047 In file included from ../../Python/random.c:7: /usr/include/sys/random.h:37:32

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-09 Thread George King
George King added the comment: (I meant the github mirror: github.com/python/cpython) -- ___ Python tracker <http://bugs.python.org/issue29057> ___ ___ Python-bug

[issue29223] Settable defaulting to decimal instead of float

2017-01-10 Thread George Fischhof
New submission from George Fischhof: Hi There, Settable defaulting to decimal instead of float It would be good to be able to use decimal automatically instead of float if there is a setting. For example an environment variable or a flag file. Where and when accuracy is more important than

[issue29224] OS related file operations (copy, move, delete, rename...) should be placed into one module

2017-01-10 Thread George Fischhof
New submission from George Fischhof: Hi There, OS related file operations (copy, move, delete, rename...) should be placed into one module... As it quite confusing that they are in two moduls (os and shutil). I have read that one is higher level than other, but actually to use them I have

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-11 Thread George King
George King added the comment: Still seeing this problem. Here was my exact process: $ git clone g...@github.com:python/cpython.git $ cd cpython $ git checkout 2.7 $ mkdir build $ cd build $ ../configure $ make In file included from ../Python/random.c:7: /usr/include/sys/random.h:37:32: error

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-11 Thread George King
George King added the comment: This is using the latest apple toolchain on latest macOS 10.12.2: $ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-11 Thread George King
George King added the comment: I reinstalled the command line tools by downloading from developer.apple.com/download/more and the problem went away. No idea how they broke; I had previously installed the same version. In any case, sorry for the noise

[issue29400] Instruction level tracing via sys.settrace

2017-01-31 Thread George King
New submission from George King: I have recently put some effort into developing a code coverage tool that shows correct results for intraline branches. In order to get intraline trace data, I patched CPython, adding an optional "trace instructions" flag to sys.settrace. The patch

[issue29400] Instruction level tracing via sys.settrace

2017-01-31 Thread George King
George King added the comment: Here is the patch from git; if you need a patch for hg I can work on that tomorrow! -- keywords: +patch Added file: http://bugs.python.org/file46475/inst-tracing.diff ___ Python tracker <http://bugs.python.

[issue29400] Instruction level tracing via sys.settrace

2017-02-01 Thread George King
George King added the comment: Xavier, this is a misunderstanding; sorry for not being more clear. When I said "remove the `else`", I was proposing this: + if (tstate->inst_tracing) { + result = call_trace(func, obj, tstate, frame, PyTrace_INSTRUCTION, Py_None); + } Line-ori

[issue29400] Instruction level tracing via sys.settrace

2017-02-01 Thread George King
George King added the comment: Attached is a demo of using the feature as a fancy replacement for __ltrace__. It demonstrates using a closure for the local trace function to track the previous offset, and prints the offset transitions as src -> dst pairs. This helped me learn a lot about

<    1   2   3   >