Richard added the comment:
Sorry to be obscure, Ronald. I mistook my configuration problem, described
below for the original problem. But I can reproduce the problem with opening an
existing file under IDLE, which is a segmentation fault. When opening a new
window, I get a blank screen but
New submission from Richard :
Whenever I paste anything into the IDLE shell, the program freezes, and then
crashes.
I'm using Python 2.7.1rcl with a Version 10.6.4 Mac OSX
--
components: IDLE
messages: 122441
nosy: 5ragar5
priority: normal
severity: normal
status: open
title:
New submission from Richard <[EMAIL PROTECTED]>:
I open python3.0 (rc1) IDLE from command line and it works fine, but
when i press the arrows key they writes: ^[[A ^[[B ^[[C ^[[D
also pagUP and pagDOWN writes: ^[[5~ ^[[6~
so I'm not able to browse the history and the all things with
Change by Richard :
--
keywords: +patch
nosy: +immortalplants
nosy_count: 1.0 -> 2.0
pull_requests: +25274
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26686
___
Python tracker
<https://bugs.python.org/i
New submission from Richard :
When one of the items in the iterable passed to shlex.join() is a pathlib.Path
object, it throws an exception saying it must be str or bytes. I believe it
should accept Path objects just like other parts of the standard library such
as subprocess.run() already
Richard added the comment:
While it may be primarily intended to combine output from shlex.split() again,
IMO it's useful for manually constructed command lines as well, for example
displaying instructions to a user where a path may contain spaces and special
characters and needs
Richard added the comment:
IMO comparing shlex.join() to str.join() is a mistake. Comparing it to
subprocess.run() is more appropriate.
What do you mean by "proposal"? subprocess.run() already converts Path
arguments to str since Python 3.6 (though IIRC this was broken on Windows
Richard added the comment:
I would like for this to be reconsidered. Yes, you can use str(), but
converting back and forth becomes really clunky:
log_dir = 'logs/{date}'
log_file = Path(str(path).format(time.strftime('%Y-%m-%d')) / 'log.txt'
Richard added the comment:
Sorry, that should have been:
log_dir = Path('logs/{date}')
--
___
Python tracker
<https://bugs.python.org/issue38222>
___
___
Richard added the comment:
I agree this would be nice. For now, I'm doing this as a hack:
class Path(type(pathlib.Path())):
...
--
nosy: +nyuszika7h
___
Python tracker
<https://bugs.python.org/is
New submission from Richard :
Starting in Python 3.10, TLS connections to certain servers (e.g.
websocket-cs.vudu.com:443) are failing when it worked fine on Python 3.9 and
earlier on the same system.
Minimal working example:
```
#!/usr/bin/env python3
import socket
import ssl
HOST
Richard added the comment:
Note that the same happens with pyenv-compiled Python 3.9.7 (same way as I
compiled 3.10 and 3.11), to rule out issues with different installation methods:
```
❯ python3.9 -VV
Python 3.9.7 (default, Oct 8 2021, 10:30:22)
[GCC 10.2.1 20210110
Richard added the comment:
Sorry, I mean it works fine with Python 3.9.2 from apt as well as Python 3.9.7
from pyenv. But 3.10.0 and 3.11-dev from pyenv are broken.
--
___
Python tracker
<https://bugs.python.org/issue45
Richard added the comment:
Never mind, I found the root cause after some debugging. Adding
AES256-GCM-SHA384 to the cipher string resolved the issue.
And now I see that the release notes say this:
> The ssl module now has more secure default settings. Ciphers without forward
> secr
Richard added the comment:
Sorry for reviving a 9 months old issue, but IMO there was no good reason to
reject this especially when a patch was provided. Even if the context manager
can be replaced with 3 lines of code, I still don't consider that very
user-friendly.
My use case wou
New submission from Richard:
I'm building a Python library with a C++ component composed of a number of
source .cpp files.
After some changes today, compiling and loading in Python3 resulted in a
segfault:
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Richard added the comment:
I'm thinking that the Snow Leopard abort trap when invoking IDLE from the
command line is a permissions problem somewhere because it works ok when
invoked with sudo. The console displays an odd message "2010-08-07 20:38:23.375
Python[
New submission from Richard:
No idea if I should be reporting this here, but it came with the default
installation, so here goes:
On a mac, I supplied a basicConfig object to the logging class that contains a
PosixPath instance for the "filename" attribute.
consequently, it fail
Richard added the comment:
Yeah, figured as much. But thanks:)
I'm kind of new to Python and was having some problems determining whether this
is as it should be, or if it should be improved.
After all, I could not find any documentation that states what the permitted
variable-types are
Changes by Richard :
--
assignee: docs@python
components: Documentation
nosy: PyRW, docs@python
priority: normal
severity: normal
status: open
title: Python docs on 3.52 Math module lists math.log2 as function but it does
not exist
versions: Python 3.5
Changes by Richard :
--
title: Python docs on 3.52 Math module lists math.log2 as function but it does
not exist -> Python docs on 9.52 Math module lists math.log2 as function but it
does not exist
___
Python tracker
<https://bugs.pyth
Changes by Richard :
--
title: Python docs on 9.52 Math module lists math.log2 as function but it does
not exist -> Python docs on 9.2 Math module lists math.log2 as function but it
does not exist
___
Python tracker
<https://bugs.pyth
Changes by Richard :
Added file: https://bugs.python.org/file44244/docbugmathlog2.jpg
___
Python tracker
<https://bugs.python.org/issue27882>
___
___
Python-bugs-list m
New submission from Richard Katz:
Is there supposed to be a way to do
for x in 1,2,3: print x,
If so, it's appears to be not working. Is it just not in this release?
If not, I would think that leaving out the print statement (just
because there is a print function) would repres
Richard Katz added the comment:
"What's wrong with
py> for x in 1,2,3:print(x,end=" ")"
-
I'd like to suggest (for those of us just now focusing on Python 3.0) replacing
the last 3 bullet points of the paragraph "Common Stumbling Bl
New submission from Richard Saunders :
In discussions of memcmp performance, (http://www.picklingtools.com/study.pdf)
it was noted how well Python 2.7 can take advantage of faster memcmps (indeed,
the rich comparisons are all memcmp calls).
There have been some discussion on python
Richard Saunders added the comment:
This is a potential patch:
I believe it follows the C-style of PEP 7
There is a test as well, testing 1 and 2 byte kinds.
I have run it through the python tests and have added no new breakages
(there were some tests that failed, but they failed with and
Richard Saunders added the comment:
Here's a test demonstrating the memcmp optimization effect:
---
more ~/PickTest5/Python/string_test3.py
a = []
b = []
c = []
d = []
for x in range(0,1000) :
a.append("the quick brown
Richard Saunders added the comment:
Added branches for specializing for UCS2 and UCS4 types
--
Added file:
http://bugs.python.org/file23574/unicode_with_memcmp_and_ucs_specialization.patch
___
Python tracker
<http://bugs.python.org/issue13
Richard Saunders added the comment:
Some more information:
Bob Arendt and I have been playing with the Fedora Core .spec file
for python on Fedora Core 15:
the compile options we found seem to automatically (as we did non invoke
this option) invoke '-fno-builtin-memcmp' so
Richard Jones added the comment:
Thanks for the investigation Antoine.
In r84088 I've added a call to asyncore.close_all in the smtpd test tearDown
methods.
--
resolution: -> fixed
status: open -> closed
___
Python tra
New submission from Richard Fuhr :
When running Python 2.7 if you invoke
help(divmod)
the first line of the resulting help displays
Help on built-in function divmod in module __builtin__:
but I believe that the name of the module is __builtins__
so the line should say
Help on built-in
Richard Fuhr added the comment:
I had a typo in my own bug report that was reporting a typo; what I intended to
say was the following ( the q should not have been there at the end )
When running Python 2.7 if you invoke
help(divmod)
the first line of the resulting help displays
Help on
Richard Fuhr added the comment:
OK, thanks for the clarification. I am new to Python.
Sent from my iPod
On Nov 9, 2010, at 3:54 PM, Andreas Stührk wrote:
>
> Andreas Stührk added the comment:
>
> __builtin__ is the correct name for the module (see
> http://docs.pyt
New submission from Richard Rabbat :
image/webp is missing from the mimetypes.py list of valid mimetypes.
webp is an open-source image format and uses vp8 as a codec.
--
components: Library (Lib)
messages: 129786
nosy: Richard.Rabbat
priority: normal
severity: normal
status: open
title
Richard Lowe added the comment:
I don't find anything lacking about the error messages, I meant that there were
no more specific exceptions, or fields in GetoptError to allow the caller to
tell what was specifically wrong and provide its own localized messages. So
while the default
Richard Lowe added the comment:
Sure, just localizing them in the getopt implementation would be fine.
I suggested subclassing to solve the more general problem of the caller being
able to tell one getopt error from another, for which it is a pretty common
solution
New submission from Richard Nienaber :
According to Microsoft documentation
(http://msdn.microsoft.com/en-us/library/ms724884(v=vs.85).aspx) when using the
REG_EXPAND_SZ value type, environment variables (e.g. %programfiles%) should be
expanded to their values (e.g. 'C:\Program
Richard Nienaber added the comment:
Further documentation on the RegEnumValue function (used by the _winreg
module): http://msdn.microsoft.com/en-us/library/ms724865(v=vs.85).aspx. The
documentation doesn't say whether the string is expanded or not on retrieval.
Given the current beha
Richard King <[EMAIL PROTECTED]> added the comment:
There were some other things I wanted too so I just made my own cmd.py.
-Rick
Raghuram Devarakonda wrote:
> Raghuram Devarakonda <[EMAIL PROTECTED]> added the comment:
>
> Richard, I see the following very clearly mentione
New submission from Richard Jones <[EMAIL PROTECTED]>:
The Python 2.5 "-m" command-line option allowed execution of a package
directly, by invoking the __init__.py module.
Python 2.6 no longer allows this.
This is a quite unfortunate regression, and I would urge the decision to
Changes by Richard Jones <[EMAIL PROTECTED]>:
--
type: -> behavior
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3441>
___
___
Richard Jones <[EMAIL PROTECTED]> added the comment:
I'm afraid it's all a bit opaque to an outsider like me. I've no idea
what subtle breakage the feature was causing. I just saw it working
quite nicely for me in 2.5 :)
___
Python trac
Richard Boulton <[EMAIL PROTECTED]> added the comment:
I don't think it's reasonable not to support multiple interpreters in a
single process - they're quite widely used by mod_python and mod_wsgi,
and probably by others. I'm not sure whether that's a problem here
Richard Hansen added the comment:
Any comments on the patches? I'd love to see at least patches 1-3 make it into
Python 2.7. :)
--
___
Python tracker
<http://bugs.python.org/i
Changes by Richard Cohen:
--
nosy: +vmlinuz
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1702>
__
___
Python-bugs-list mailing list
Unsubs
Richard Cooper added the comment:
I think I was just bitten by the non-SSL version of this bug on Python 2.5.1
(r251:54863) on Mac
OS 10.5. It manifested itself as a "malloc error: can't allocate region" while
downloading a
message using imaplib.
As suggested by effbot
New submission from Richard Mason:
The following test script works OK on all windows platforms apart from
Windows Server 2003 R2:
import win32pdh
win32pdh.EnumObjects(None, None, 0, 1)
When I run on Windows Server 2003 R2 get the following dump:
E:\fusiondx\lib>test.py
Traceback (most rec
New submission from Richard King <[EMAIL PROTECTED]>:
The module global value use_rawinput is initialized to 1 but not reset
when stdin is replaced with a passed-in value.
--
components: Extension Modules
messages: 65094
nosy: rickbking
severity: normal
status: open
title: cmd.py
New submission from Richard King <[EMAIL PROTECTED]>:
Add an "input" method or property that saves the current input file
object and resets the input file object; when input results in an "EOF",
the input file object stack is popped and reading continues from there.
A m
Richard King <[EMAIL PROTECTED]> added the comment:
(this is really 2 mails because my home email address was not registered so
they were rejected at first)
Right - I wasn't too clear. The module stashes stdin, whether from sys
or passed in, in self.stdin. When it reads input it
New submission from Richard Esplin <[EMAIL PROTECTED]>:
I would like it to leave my ' alone, just like it does with my <
and >
Python 2.5.1 (r251:54863, Sep 21 2007, 22:46:31)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits&qu
New submission from Richard Jones <[EMAIL PROTECTED]>:
Executive summary of the patch:
The attached patch removes the use of __private attributes in the smtpd
module allowing it to be extensible without needing to use the
"___" hack.
Summary of the patch's changes:
Richard urwin <[EMAIL PROTECTED]> added the comment:
This is a bug in two halves.
1. Not all characters in the file are UTF-16. The initial xml header
isn't, and the individual < > etc characters are not. This is just a
matter of extending the methodology to encode all charac
Richard urwin <[EMAIL PROTECTED]> added the comment:
Here is a patch of my quick hack, more for interest than any suggestion
it gets used. Although it does produce good output so long as you avoid
the BOM.
The full solution is beyond my (very weak) Python skills. The character
encoding i
New submission from Richard Philips :
On Solaris 10 (Solaris 10 5/08 s10x_u5wos_10 X86),
with python 2.5 (Python 2.5.2 (r252:60911, Sep 8 2008, 16:53:36) [C] on
sunos5),
tempfile.NamedTemporaryFile creates - as advertised - a temporary file.
After closing this file object (e.g. by exiting the
Richard Philips added the comment:
[Replaces msg 79727]
On Solaris 10 (Solaris 10 5/08 s10x_u5wos_10 X86),
with python 2.5 (Python 2.5.2 (r252:60911, Sep 8 2008, 16:53:36) [C] on
sunos5),
tempfile.NamedTemporaryFile creates - as advertised - a temporary file.
After closing this file object
New submission from Richard Purdie :
I've been struggling to get signal.pthread_sigmask to do what I expected it to
do from the documentation. Having looked at the core python code handling
signals I now (think?!) I understand what is happening. It might be possible
for python to improv
New submission from Richard Purdie :
We've seen tracebacks in production like:
File "", line 1004, in
_find_and_load(name='oe.gpg_sign', import_=)
File "", line 158, in
_ModuleLockManager.__enter__()
File "", line 110, in _ModuleLock.acqu
Richard Purdie added the comment:
This is a production backtrace after I inserted code to traceback if tid was
already in _blocking_on. It is being triggered by a warning about an unclosed
asyncio event loop and confirms my theory about nested imports, in the
production case I'd guess
Richard Purdie added the comment:
I think the python code implementing pthread_sigmask already does trigger
interrupts if any have been queued before the function returns from blocking or
unblocking.
The key subtlety which I initially missed is that if you have another thread in
your
New submission from Richard Purdie :
We had a python hang at shutdown. The gdb python backtrace and C backtraces are
below. It is hung in the COND_WAIT(gil->switch_cond, gil->switch_mutex) call in
drop_gil().
Py_FinalizeEx -> handle_system_exit() -> PyGC_Collect ->
New submission from Richard Jayne :
In Lib/http/server.py
if args.cgi:
handler_class = CGIHTTPRequestHandler
else:
handler_class = partial(SimpleHTTPRequestHandler,
directory=args.directory)
Notice that CGIHTTPRequestHandler does not
New submission from Richard Pausch :
The issue was first reported in
https://github.com/ipython/ipython/issues/11918.
Some non-ascii characters like φ (\u03c6) and ϕ (\u03d5) map/link to the same
data/identifier.
```python
ϕ = 1
φ = 2
print(ϕ) # results in 2 - should be 1
print(φ
Change by Richard Pausch :
--
components: +Unicode
nosy: +ezio.melotti, vstinner
___
Python tracker
<https://bugs.python.org/issue38612>
___
___
Python-bug
Richard Levasseur added the comment:
Here's a self-contained repro:
```
import pickle
class MyList(list):
def __init__(self, required, values):
self.required = required
super().__init__(values)
def __getstate__(self):
return self.required
def __setstate__(self,
New submission from Richard Mines :
Documentation page:
https://docs.python.org/3/library/locale.html#locale.LC_MESSAGES
Code comment saying that locale.LC_MESSAGES doesn't exist sometimes:
https://github.com/python/cpython/blob/62f1d2b3d7dda99598d053e10b785c463fdcf591/Lib/locale.py#L2
Richard Mines added the comment:
If you need a proof that it is possible that locale.LC_MESSAGES doesn't exist,
I've attached a screenshot. Even more I'm showing that locale.LC_TIME may be
equal to 5 which is a placeholder for locale.LC_MESSAGES if there is an
Imp
New submission from Richard Barnes :
PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords currently accept
`kwlist` as `char **`; however, is not modified by either function. Therefore,
a `const char **` might be better since this allows calling code to take
advantage of `const
Change by Richard Sheridan :
--
nosy: +Richard Sheridan
___
Python tracker
<https://bugs.python.org/issue42560>
___
___
Python-bugs-list mailing list
Unsub
New submission from Richard Tollerton :
1. https://github.com/python/cpython/blob/3.9/Lib/pipes.py#L6
> Suppose you have some data that you want to convert to another format,
> such as from GIF image format to PPM image format.
2. https://docs.python.org/3.9/library/pipes.html
> Be
New submission from Richard Hinerfeld :
Please note that test_tk and test_ttk_guionly fail when running testall
when compiling 3.8.9 python from source code.
Compiling on Linux Debian 64-bit bullseye 11.1.0 on a 2008 Mac Book.
--
components: Build
files: TestTK.txt
messages: 404942
Richard Hinerfeld added the comment:
running build_scripts
copying and adjusting /home/richard/Python-3.8.9/Tools/scripts/pydoc3 ->
build/scripts-3.8
copying and adjusting /home/richard/Python-3.8.9/Tools/scripts/idle3 ->
build/scripts-3.8
copying and adjusting /home/richard/Python
Richard Hinerfeld added the comment:
I just get an error when I visit the URL
On Sun, Oct 24, 2021 at 4:57 PM Python tracker
wrote:
> To complete your registration of the user "rhinerfeld1" with
> Python tracker, please visit the following URL:
>
>
> https:/
Richard Xia added the comment:
I'd like to provide another, non-performance-related use case for changing the
default value of Popen's close_fds parameters back to False.
In some scenarios, a (non-Python) parent process may want its descendant
processes to inherit a parti
New submission from Richard Decal :
In brief:
```
from collections import Counter
x = Counter({'a': 0, 'b': 1})
x.update(x) # works: Counter({'a': 0, 'b': 2})
x += x # expected: Counter({'a': 0, 'b': 3}) actual: Counter({'b
Change by Qualyn Richard :
--
components: email
files: PSX_20210903_080553.jpg
nosy: barry, oktaine57, r.david.murray
priority: normal
severity: normal
status: open
title: kids10yrsap...@gmail.com
type: behavior
versions: Python 3.11
Added file: https://bugs.python.org/file50463
New submission from Richard Warfield :
I have an application (https://github.com/litxio/ptghci) using embedded Python,
which needs to set a signal handler (and use the prompt-toolkit library which
itself sets signal handlers).
My call to signal.signal is guarded by a check that we're ru
Richard Warfield added the comment:
I should mention, this behavior is new in 3.8.0. It did not occur in 3.7.x.
--
___
Python tracker
<https://bugs.python.org/issue38
Richard Warfield added the comment:
Thanks for looking into this. Changing the behavior of the
"threading" module to be consistent with the runtime and "signal" module
would be sufficient, at least for my particular case. If the "if
threading.current_thread()
Richard Warfield added the comment:
I think so, yes.
On Wed, Dec 18, 2019 at 1:10 AM Eric Snow wrote:
>
> Eric Snow added the comment:
>
> So resolving issue39042 would be enough, particularly if we backported
> th
Richard Bruskiewich added the comment:
This "bug" is buzzing around my project head right now, interfering with the
operation of the Python Fire CLI library when it attempts to interrogate the
Python Pandas DataFrame using the inspect.getmembers() call. See
https://github.com/
New submission from Richard K :
Currently within the ast module, `dump` generates a string representation of
the AST for example,
>>> ast.dump(node)
'Module(body=[], type_ignores=[])'
The proposed enhancement would provide a complementary function, `dump_json` as
in a
Change by Richard K :
--
keywords: +patch
pull_requests: +17938
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18558
___
Python tracker
<https://bugs.python.org/issu
Richard K added the comment:
Batuhan & Pablo thank you for your thoughts! Just wanted to reply to a few of
the comments to clarify my position on the issue.
> IMHO this is not a feature that has a general usage. If you want, as far as I
> can see, there are some packages for doi
Richard K added the comment:
> I don't think the clang argument holds because clang is a command-line tool
> after all and it makes sense that it can produce several outputs while the
> ast module is exposes APIs that you can further process inside the language.
> Having js
New submission from Richard King :
x = ['a']
x += ' ' results in ['a',' ']
x = x + ' ' results in an exception:
Traceback (most recent call last):
File "", line 1, in
TypeError: can only concatenate list (not "str") to
New submission from Richard Neumann :
Currently only plain strings can be used as docstrings, such as:
class Foo:
"""Spamm eggs."""
For dynamic class generation, it would be useful to allow format strings as
docstrings as well:
doc = 'egg
New submission from Richard Neumann :
I have use cases in which I use named tuples to represent data sets, e.g:
class BasicStats(NamedTuple):
"""Basic statistics response packet."""
type: Type
session_id: BigEndianSignedInt32
motd: str
New submission from Richard Neumann :
When sublassing the built-in list, the invocation of super().__new__ will
unexpectedly expand the passed arguments:
class MyTuple(tuple):
def __new__(cls, *items):
print(cls, items)
return super().__new__(cls, items)
class MyList
Richard Neumann added the comment:
I could have sworn, that this worked before, but it was obviously me being
tired at the end of the work day.
Thanks for pointing this out and sorry for the noise.
--
___
Python tracker
<https://bugs.python.
Richard Neumann added the comment:
Thank you all for your input.
I had a look at aforementioned discussion and learned something new.
So I tried to implement the dict data model by implementing keys() and
__getitem__() accordingly:
from typing import NamedTuple
class Spamm(NamedTuple
Richard Neumann added the comment:
Okay, I found the solution. Not using super() works:
from typing import NamedTuple
class Spamm(NamedTuple):
foo: int
bar: str
def __getitem__(self, index_or_key):
if isinstance(index_or_key, str):
try
Richard Neumann added the comment:
I just stumbled across this issue trying to resolve this:
https://bugs.python.org/issue42765?
While this fails:
from typing import NamedTuple
class Spamm(NamedTuple):
foo: int
bar: str
def __getitem__(self, index_or_key):
"&quo
New submission from Richard Wise :
from datetime import datetime, timezone, timedelta
datetime_in_sgt = datetime(2021, 2, 16, 8, 0, 0,
tzinfo=timezone(timedelta(hours=8)))
datetime_in_utc = datetime(2021, 2, 16, 0, 0, 0, tzinfo=timezone.utc)
print(datetime_in_sgt == datetime_in_utc
New submission from Richard Wise :
I am trying to use wraps to delegate a call to a decorated patch mock to
another method. By examining the source code, I was able to achieve this using
the (apparently undocumented) `Mock._mock_wraps` attribute instead of the
`wraps` attribute which would
New submission from Richard Sheridan :
This could also be considered a "behavior" type issue.
`TkappObject` has a member `dispatching` that could usefully be exposed by a
very simple read-only method for users to determine at runtime if the tkinter
mainloop is running. Matplotl
Richard Sheridan added the comment:
Removing `WaitForMainloop` would surely break some existing programs, but
that's why I suggested deprecation instead of just removing it suddenly. We
could issue a RuntimeWarning if `WaitForMainloop` actually waits and tell
the client to take responsib
Change by Richard Sheridan :
--
keywords: +patch
pull_requests: +20448
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21299
___
Python tracker
<https://bugs.python.org/issu
Richard Sheridan added the comment:
I'd like to consider one more possibility for future behavior that sort of came
to mind while discussing the PR. In current behavior, it is possible to use
`willdispatch` to trick `WaitForMainloop` into letting a thread pass through
the timeout, whe
1 - 100 of 1064 matches
Mail list logo