Ryan Pecor added the comment:
Actually, hasattr() specifically states that it uses getattr() so that behavior
is expected from getattr() so I will not be creating a separate issue for that.
Now that I see hasattr() uses getattr(), it looks like the tab completion issue
might not stem from
Ryan Pecor added the comment:
Wow, that was quick and the code looks clean too! Thanks for fixing that up!
--
___
Python tracker
<https://bugs.python.org/issue44
Ryan Mast added the comment:
Should this be closed? It looks like the PR is only changing a file in
distutils, and according to https://bugs.python.org/issue30925#msg386350
distutils is deprecated and only release blocking issues will be considered.
--
nosy: +rmast
Change by Ryan May :
--
nosy: +Ryan May
___
Python tracker
<https://bugs.python.org/issue44556>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ryan Thornton :
## Expected Behavior
pip install should download dependencies matching the architecture of the
python executable being used.
## Actual Behavior
When calling pip install from a Visual Studio command prompt configured to
cross compile from x64 to x86, pip
New submission from Ryan McCampbell :
The email.contentmanager.set_bytes_content function which handles bytes content
for raw_data_manager fails when passed cte="7bit" with an AttributeError:
'bytes' object has no attribute 'encode'. This is probably not a m
New submission from Ryan Batchelder :
I would like to propose that the mimetype for markdown files ending in .md to
text/markdown is included in the mimetypes library. This is registered here:
https://www.iana.org/assignments/media-types/text/markdown
--
messages: 359931
nosy: Ryan
Change by Ryan Batchelder :
--
keywords: +patch
pull_requests: +17398
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17995
___
Python tracker
<https://bugs.python.org/issu
Ryan Govostes added the comment:
This absolutely should be documented. If adding an earlier event is not
supported then it should raise an exception. Appearing the enqueue the event
but not triggering the callback is especially confusing. It may be obvious
behavior to someone who has spent
New submission from Ryan McCampbell :
In Python 3.6 the following works:
class HexInt(int):
def __repr__(self):
return hex(self)
class MyEnum(HexInt, enum.Enum):
A = 1
B = 2
C = 3
>>> MyEnum.A
However in Python 3.7/8 it instead prints
>>> MyE
Ryan Petrello added the comment:
I believe I'm also encountering some version of this bug while importing code
from the kombu library within a multi-threaded context.
For what it's worth, I'm able to reproduce the reported deadlock
(https://bugs.python.org/file48737/issue3
Change by Ryan Ware :
--
nosy: +ware
___
Python tracker
<https://bugs.python.org/issue38576>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Change by Ryan Ware :
--
nosy: +ware
___
Python tracker
<https://bugs.python.org/issue39503>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Ryan McCampbell added the comment:
This seems like a pretty straightforward fix. What's holding it up?
--
nosy: +rmccampbell7
___
Python tracker
<https://bugs.python.org/is
Ryan Gonzalez added the comment:
Oh my god this was still open? I think you can just use the CC variable, not
sure what 6-years-younger-and-more-stupid me was thinking here. Sorry about the
noise.
--
stage: patch review -> resolved
status: open ->
Ryan Tu added the comment:
#Maybe not a good solution
I do not know the should we delete the code in cgitb.py or adjust the
configration of apache httpd. My solution is deleting some code as follows:
```
return '''
-->
--> -->
''
New submission from Ryan Govostes :
The documentation for weakref.proxy() does not describe how the proxy object
behaves when the object it references is gone.
The apparent behavior is that it raises a ReferenceError when an attribute of
the proxy object is accessed.
It would probably be a
Ryan Hileman added the comment:
traceback's `tb_code` attribute also allows you to bypass the
`object.__getattr__` audit event for `__code__`.
Perhaps accessing a traceback object's `tb_code` and `tb_frame` should both
raise an `object.__getattr__` event?
--
nosy: +l
Ryan Hileman added the comment:
I'm definitely not proposing to hook all of object.__getattr__, as my intuition
says that would be very slow. I simply refer to "object.__getattr__" as the
event name used by a couple of rare event audit hooks. This is how getting
__code__ is
Ryan Hileman added the comment:
Oops, by tb_code I meant traceback.tb_frame.f_code. So you can get to a frame
from traceback.tb_frame (without triggering audit) or sys._getframe (which has
an audit hook already), and you can get to __code__ from a frame via
frame.f_code (without triggering
Change by Ryan Hileman :
--
keywords: +patch
pull_requests: +23010
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24182
___
Python tracker
<https://bugs.python.org/issu
Ryan Hileman added the comment:
PR submitted, waiting on CLA process.
I added documentation at the field sites, but the audit event table generation
does not handle attributes or object.__getattr__ very well at all, so I'm not
updating the audit table for now.
The `.. audit-event:: o
New submission from Ryan Heisler :
In the documentation for `weakref.finalize`
(https://docs.python.org/3.9/library/weakref.html#weakref.finalize), it says:
"Note It is important to ensure that func, args and kwargs do not own any
references to obj, either directly or indirectly,
Ryan Heisler added the comment:
Perfect, thanks for your quick response. I was passing a bound method of obj as
the func to `weakref.finalize(obj, func, /, *args, **kwargs)`. It slipped my
mind that an instance variable like self.name and a bound method like
self.clean_up, though they both
Ryan Hileman added the comment:
I just found out that generator object variants have their own code attributes.
I investigated the stdlib usage and it seems to be for debug / dis only, so
adding these attributes shouldn't impact performance.
I updated the PR to now cover the foll
Ryan Hileman added the comment:
My personal motivation is not to unilaterally prevent access to globals, but to
close a simpler gap in the audit system that affects a currently deployed high
performance production system (which is not trying to be a sandbox). I am also
already using a C
Ryan Hileman added the comment:
My understanding as per the outline in PEP 551 as well as PEP 578, is that the
audit system is meant primarily to observe the behavior of code rather than to
have good sandbox coverage / directly prevent behavior.
I am using audit hooks to observe the
Ryan Hileman added the comment:
How's this for maintainable?
https://github.com/lunixbochs/cpython/commit/2bf1cc93d19a49cbed09b45f7dbb00212229f0a1
--
___
Python tracker
<https://bugs.python.org/is
Ryan Hileman added the comment:
I agree that READ_RESTRICTED would work, and I'm strongly in support of
refactoring my patch around that kind of flag, as it simplifies it quite a bit
and the if statement is already there.
However, using the seemingly legacy RESTRICTED flag names for
Ryan Hileman added the comment:
Just updated the PR with another much simpler attempt, using a new READ_AUDIT
flag (aliased to READ_RESTRICTED, and newtypes documentation updated).
I re-ran timings for the new build, and in all cases they match or slightly
beat my previous reported timings
Ryan Hileman added the comment:
> Sounds good to me. We can deprecate RESTRICTED with no intention to
remove it, since it's documented.
> Do you want to prepare a PR for this?
In case you missed it, the attached PR 24182 as of commit d3e998b is based on
the steps I listed - I m
Ryan Schmidt added the comment:
What needs to happen to get this 15 year old bug fixed? It prevents C++ Python
modules from being compiled in situations where the user needs to supply
CXXFLAGS.
--
nosy: +ryandesign
___
Python tracker
<ht
Ryan Schmidt added the comment:
Christian, thanks for the pointer. I think you're right, I probably am actually
wanting this to be fixed in setuptools, not distutils, since setuptools is what
people are using today. Since setuptools is an offshoot of distutils, I had
assumed tha
New submission from Ryan Westlund :
```
>>> re.sub('a*', '-', 'a')
'--'
>>> re.sub('a*', '-', 'aa')
'--'
>>> re.sub('a*', '-', 'aaa')
'--'
```
Ryan Westlund added the comment:
Sorry, I forgot the pydoc docs don't have as much information as the online
docs.
On Mon, Jun 22, 2020 at 1:54 PM Ezio Melotti wrote:
>
> Ezio Melotti added the comment:
>
> This behavior was changed in 3.7: "Empty matches for the
Change by Ryan Hiebert :
--
nosy: +ryanhiebert
___
Python tracker
<https://bugs.python.org/issue33129>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from john ryan :
I am building an application that is made up of several separate processes,
where each process is a python program. They are all started by the supervisord
utility and execute within a venv running Python 3.8.5 (default, Aug 13 2020,
15:42:06) [GCC 7.5.0] on
Ryan Sobol added the comment:
It's worth pointing out that a similar error is produced for a
forward-referenced return type of a registered method, but only for python3.9.
For example:
from __future__ import annotations
from functools import singledispatchmethod
class Integer:
New submission from john ryan :
My test environment runs Ubuntu 18.04 in a virtualbox hosted on Windows 8.1 and
Python executes within a venv running Python 3.9.0 (Python 3.9.0 (default, Oct
26 2020, 09:02:51)
[GCC 7.5.0] on linux
Running a test with unittest.IsolatedAsyncioTestCase my code
john ryan added the comment:
Thanks. That is understandable. I reported it in case it was helpful.
--
___
Python tracker
<https://bugs.python.org/issue42
Ryan Sobol added the comment:
Does anyone know why the treatment of unresolved references was changed in 3.9?
--
___
Python tracker
<https://bugs.python.org/issue41
Ryan Sobol added the comment:
Also, I'm a bit puzzled about something from the previously mentioned Integer
class and its use of __future__.annotations.
Why is it possible to declare an Integer return type for the add() method, but
only possible to declare an "Integer" forwar
Ryan Govostes added the comment:
Thanks Michael for all of the examples. After reading them all, I concur that
"it can be hard to conceptualize what the exact behavior should be." A
documentation change is warranted, at the least.
However the argparse documentation, while great
New submission from Ryan Petrello :
It's possible to cause Python child processes to encountered a deadlock and
hang on fork by:
1) Spawning one or more threads in a parent process
2) Have one of those threads emit log lines
3) Have the main thread use os.fork()
4) In the child
Ryan Petrello added the comment:
This issue seems _very_ similar to https://bugs.python.org/issue6721, but I
wasn't able to encounter the exact stack I've been seeing on my end.
Specifically, when I run the reproducer script in this issue (hang.py) for a
few minutes, hung child
Ryan Petrello added the comment:
Here's the stack of one the hung child processes under py2.7:
(gdb) py-bt
#4 Waiting for a lock (e.g. GIL)
#5 Waiting for a lock (e.g. GIL)
#7 Frame 0x7f346a925430, for file /usr/lib64/python2.7/Queue.py, line 118, in
put (self=, maxsize=0, all_tasks
Ryan Petrello added the comment:
Also, for what it's worth, I'm *not* able to reproduce this hang in Python
3.7.0.
--
___
Python tracker
<https://bugs.python.o
Ryan Petrello added the comment:
Actually, I think I *am* seeing this on 3.7:
(gdb) bt
#0 0x7f130d530adb in futex_abstimed_wait (cancel=true, private=, abstime=0x0, expected=0,
futex=0x142c6d0) at ../nptl/sysdeps/unix/sysv/linux/sem_waitcommon.c:43
#1 do_futex_wait (sem=sem@entry
New submission from Ryan McCampbell :
The ctypes.create_string_buffer function uses the length of the string to
create the buffer if no size is provided. Since windows wide chars are UTF-16
the buffer may actually need to be larger to store surrogate pairs. This code
crashes on windows
Change by Ryan McCampbell :
--
components: +ctypes
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue37536>
___
___
Python-bugs-list mai
Change by Ryan McCampbell :
--
versions: +Python 3.6
___
Python tracker
<https://bugs.python.org/issue37536>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ryan McCampbell added the comment:
Oops my bad, didn't realize this was already fixed
--
___
Python tracker
<https://bugs.python.org/issue37536>
___
___
New submission from Ryan Gonzalez :
If e.g. a tar archive is extracted that has dates from several months ago, if
systemd-tmpfiles runs to clean up data, then it may delete that data while the
directory is still being used. This can be avoided by holding a LOCK_SH on the
directory while it
New submission from Ryan Finnie:
At the moment, SSLContext.verify_mode() allows for three modes when dealing
with Purpose.CLIENT_AUTH / server_side=True:
- CERT_NONE (server does not request client certificate, client does not
provide it)
- CERT_OPTIONAL (server requests client certificate
New submission from Ryan McCampbell:
On windows, shutil.which does not match the semantics of built-in command
lookup. If you pass the name of a script like foo.py and the PATHEXT variable
doesn't include .py it will search for foo.py.exe, foo.py.bat, foo.py.cmd, etc.
but not foo.py,
Ryan G. added the comment:
This functionality is useful to me. Is this issue still alive? If not, how can
I help?
--
nosy: +Ryan G.
___
Python tracker
<https://bugs.python.org/issue31
New submission from Ryan McCampbell :
The mimetypes.guess_all_extensions function is defined as:
def guess_all_extensions(self, type, strict=True):
type = type.lower()
extensions = self.types_map_inv[True].get(type, [])
if not strict:
for ext in self.types_map_inv[False
New submission from Ryan Govostes :
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('things', nargs=argparse.REMAINDER, default=['nothing'])
parser.parse_args([])
>>> Namespace(things=[])
Since there were no unparsed arguments remaini
Change by Ryan Govostes :
--
versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue35
Change by Matthew Ryan :
--
nosy: +mryan1539
___
Python tracker
<https://bugs.python.org/issue28494>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ryan Gonzalez added the comment:
Serhiy: if you want, you can give me your email and I'll submit a PR for you.
If you want to do it yourself, just:
Download hub: https://hub.github.com/
git clone python/cpython cpython-git
cd cpython-git
git fork
curl
https://raw.githubuserconten
Changes by Ryan Gonzalez :
--
pull_requests: +754
___
Python tracker
<http://bugs.python.org/issue11913>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ryan Gonzalez added the comment:
FWIW, I opened a PR for this: https://github.com/python/cpython/pull/563
--
nosy: +refi64
___
Python tracker
<http://bugs.python.org/issue11
New submission from Ryan Jarvis:
Currently the Python curses documentation refers to `WindowObject` multiple
times in the documentation. The actual type signature is `_curses.curses
window`. WindowObject does not exist.
Seen at 16.11.1. Textbox objects and curses.initscr() for both
New submission from Ryan Morshead:
When the `__get__`, `__set__`, or `__delete__` attribute of a descriptor is not
a method, and is instead a generic callable, the first argument of that
callable is inconsistent:
class Callable(object):
def __call__(self, first, *args, **kwargs
Ryan Morshead added the comment:
Is there a reason that `call_method` is not used in `slot_tp_descr_get`
--
___
Python tracker
<http://bugs.python.org/issue30
Change by Ryan Ware :
--
nosy: +ware
___
Python tracker
<https://bugs.python.org/issue30458>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Change by Ryan Ware :
--
nosy: +ware
___
Python tracker
<https://bugs.python.org/issue35906>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Change by Ryan Ware :
--
nosy: +ware
___
Python tracker
<https://bugs.python.org/issue35907>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
New submission from Ryan Avery :
I am trying to use shutil.copytree on an Azure VM that has Azure FileStorage
mounted with SMB 3.0. When I run the following to copy directories from one
location on my Azure File Storage to another location on my File Storage, the
whole directory
Ryan Avery added the comment:
I'm actually not sure what the expected behavior would be, because I can
use the os module to copy, rename, and remove files and folders in this
mounted File Share. Before encountering this error, I would expect shutil
to do the same. But since this error com
Ryan Govostes added the comment:
Just don’t run the last line which is just an echoing of the output of
parser.parse_args() repeated. The Namespace type would need to be imported
if you really wanted to but there’s no point.
On Tuesday, May 7, 2019, Michael Blahay wrote:
>
> Michael
New submission from Ryan Govostes :
On macOS, shutil.copystat() uses chflags() to try to copy filesystem flags from
the source to destination.
In recent years, Apple introduced System Integrity Protection, which prevents
modification of system files. These files have the non-standard
Change by Ryan Govostes :
--
keywords: +patch
pull_requests: +4806
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32347>
___
___
Py
Ryan McCampbell added the comment:
This is how windows looks up commands, as well as the built in "where" command.
(Note that windows doesn't actually distinguish between "executable" files and
just plain old files, so this could be confusing for UNIX users... a tex
Ryan Petrello added the comment:
Any chance this patch was every applied to Python3? It looks to me like 3.6
has the old code:
https://github.com/python/cpython/blob/3.6/Modules/_multiprocessing/semaphore.c#L448
--
nosy: +ryan.petrello
Change by Ryan Zoeller :
--
nosy: +rtzoeller
___
Python tracker
<https://bugs.python.org/issue26660>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ryan Gonzalez:
A have created to patches(for ccompiler.py and cygwinccompiler.py) to add Clang
as a compiler in distutils. The patches are here:
ccompiler.py: http://pastebin.com/yMGYys0P
cygwinccompiler.py: http://pastebin.com/a49qNP6n
I used the distutils version from
Changes by Ryan Gonzalez :
Added file: http://bugs.python.org/file31477/cygwinccompiler.diff
___
Python tracker
<http://bugs.python.org/issue18834>
___
___
Python-bug
Changes by Ryan Gonzalez :
--
keywords: +patch
Added file: http://bugs.python.org/file31476/ccompiler.diff
___
Python tracker
<http://bugs.python.org/issue18
New submission from Ryan Kelly :
PyLong_FromString will raise a ValueError if the given string doesn't contain a
null byte after the digits. For example, this will result in a ValueError
char *pend;
PyLong_FromString("1234 extra", &pend, 10)
While this will successfu
New submission from Ryan Lortie:
http://bugs.python.org/file19849/mkdirs.tr.diff introduced a patch with this
code in it:
+def _get_masked_mode(mode):
+mask = umask(0)
+umask(mask)
+return mode & ~mask
This changes the umask of the entire process. If another thread manage
New submission from Ryan Calhoun:
OpenSSL, specifically libcrypto, includes functions EVP_MD_CTX_create() and
EVP_MD_CTX_destroy(), such that the application code only needs to forward
declare the EVP_MD_CTX* pointer type.
Declaring the EVP_MD_CTX variable type directly requires compile-time
New submission from Ryan McCampbell:
I'm not sure if this is really a bug, but it is unexpected behavior. When you
call "bind" on a Python 3.3 signature object, if you omit an optional argument,
the default is not provided in the arguments dict. Similarly, if there is a
&quo
Ryan McCampbell added the comment:
If this is decided against, a partial solution would be to set the "default"
attribute of VAR_POSITIONAL and VAR_KEYWORD args to an empty tuple/dict,
respectively. Then you could get a parameter's value no matter what with
boundargs
Changes by Ryan Gonzalez :
--
nosy: +Ryan.Gonzalez
___
Python tracker
<http://bugs.python.org/issue16991>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ryan Z:
After I installed a wrong version pygame on OSX 10.9, and may updated something
OSX, Then, I can't launch the IDLE,
It appears on the dock, then quit at the same moment.
bogon:~ RyanZ$ /usr/local/bin/python3.3 -m idlelib
Traceback (most recent call last):
Ryan McCampbell added the comment:
Copying defaults still doesn't give you var positional/keyword arguments, which
means, you have to explicitly check the parameter type, and then add them in. I
still think it would more useful to have an "official" way of getting all
function
Ryan McCampbell added the comment:
It's not really a particular use case. I was making a function decorator for
automatic type checking using annotations (ironically I discovered later there
is an almost identical example in the PEP for signatures). But I can't think of
any use ca
Ryan Wilson added the comment:
The reason behind this was that zipfile.py currently handles empty directories
in zipfiles incorrectly.
On lines 1774 - 1778 in Lib/zipfile.py:
tgtdir = os.path.dirname(tgt)
if not os.path.exists(tgtdir):
os.makedirs(tgtdir)
with open(tgt, 'wb
New submission from Ryan Wilson:
Running command:
$ mkdir foo; python -mzipfile -c foo.zip foo; python -mzipfile -e foo.zip dest
ls: cannot access dest: No such file or directory
This is because 'foo.zip' is empty since running 'python -mzipfile -c foo.zip
foo' does not z
New submission from Ryan McCampbell:
Is there a reason register() doesn't check for abstract methods, like
subclassing does? Would it fail for some builtin classes? It seems that this
would be a better guarantee that, say, something really is iterable when you
check isins
Ryan McCampbell added the comment:
Obviously, I meant isinstance(o, Collections.Iterable).
--
___
Python tracker
<http://bugs.python.org/issue22487>
___
___
Pytho
New submission from Ryan Gonzalez:
This should work (but doesn't):
Python 2.7.8+ (2.7:63dc1e32b715, Sep 30 2014, 19:24:46)
[GCC 4.2.1 Compatible Clang 3.5.0 (207381)] on linux2
Type "help", "copyright", "credits" or "license" for more informat
New submission from Ryan Gordon:
On SunOS 5.11, both the _findLib_crle and _get_soname are broken.
With _findLib_crle, the function returns the following:
# env LC_ALL=C /usr/bin/crle -64
Default configuration file (/var/ld/64/ld.config) not found
Platform: 64-bit LSB AMD64
Default
New submission from Ryan Govostes:
I cannot find a way to break a long number across multiple lines, other than to
write the number as a string, take advantage of string literal concatenation,
and then convert the string to an integer.
I'd like to be able to write, for exampl
Ryan Tucker added the comment:
I can reproduce this problem with Python 2.6. It manifests itself as a
lengthy iteration through an IMAP SSL mailbox locking up after a long
while and the interpreter consuming all available system memory.
I suspect this to be the combination of doom
New submission from Ryan Leslie :
The zipfile.ZipFile.open() behavior with mode 'U' or 'rU' is not quite
as advertised in
http://docs.python.org/library/zipfile.html#zipfile.ZipFile.open
Here is an example:
$ echo -ne "This is an example\r\nWhich demonstrates a pro
Ryan Leslie added the comment:
Hi Art,
Thanks for working on this. I've taken a look at the patch.
The fix to read_test looks correct. Of course, I would consider a more
descriptive variable name than 'b'.
The changes to read() are an improvement, but I think we need to be
New submission from Ryan McGuire :
Opening a UTF-8 encoded file with unix newlines ("\n") on Win32:
codecs.open("whatever.txt","r","utf-8").read()
replaces the newlines ("\n") with CR+LF ("\r\n").
The docs specifically say that :
101 - 200 of 425 matches
Mail list logo