Change by George Zhang :
--
versions: +Python 3.9
___
Python tracker
<https://bugs.python.org/issue37771>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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('
George Shuklin added the comment:
Unfixed crash of code interpreter? This is sad.
--
___
Python tracker
<http://bugs.python.org/issue30734>
___
___
Python-bug
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
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!
--
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
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
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.
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
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
Changes by George Collins :
--
pull_requests: +3114
___
Python tracker
<http://bugs.python.org/issue31183>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Changes by George King :
--
pull_requests: +3277
___
Python tracker
<http://bugs.python.org/issue24900>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by George King :
--
pull_requests: +3278
___
Python tracker
<http://bugs.python.org/issue29400>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by George King :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue29935>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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
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
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
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
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
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
Change by George King :
--
pull_requests: +4016
___
Python tracker
<https://bugs.python.org/issue31681>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by George King :
--
keywords: +patch
pull_requests: +4017
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31618>
___
___
Python-
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
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
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
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
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
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://
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
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
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
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
Changes by George Peristerakis :
--
nosy: +George.Peristerakis
___
Python tracker
<http://bugs.python.org/issue16190>
___
___
Python-bugs-list mailing list
Unsub
Changes by George Peristerakis :
--
nosy: -George.Peristerakis
___
Python tracker
<http://bugs.python.org/issue16190>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
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
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.
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
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
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
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
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
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
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
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'
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
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
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
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
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:
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 "
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
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
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
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
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
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
Changes by George Sakkis :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue5669>
___
___
Python-bugs-list mailing list
Unsubscri
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
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)
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
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
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
___
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.''
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
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
George Sakkis added the comment:
Also updated url: http://code.activestate.com/recipes/551779/
--
___
Python tracker
<http://bugs.python.org/issue3135>
___
___
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
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 @@
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
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 "
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
George Fischhof added the comment:
Hi,
issue 28788 created as feature request
BR,
George
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issu
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
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
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
George King added the comment:
(I meant the github mirror: github.com/python/cpython)
--
___
Python tracker
<http://bugs.python.org/issue29057>
___
___
Python-bug
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
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
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
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
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
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
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.
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
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
101 - 200 of 241 matches
Mail list logo