New submission from R :
I'm working on trying to run python under SerenityOS.
At the moment, SerenityOS doesn't implement the TCP_NODELAY socket option. This
makes the HTTPConnection.connect() method raise an OSError for an operation
that is otherwise optional. Additionally, the
New submission from R :
This is a problem caused by https://bugs.python.org/issue13305.
When running python in SerenityOS (https://serenityos.org/), the xmlrpc.client
module fails to be imported. This is because the code that decides which format
to use for getting 4-digit years, which
New submission from Raja R:
Hi,
I downloaded the python-2.5.msi yesterday and tried installing it
but i am getting the following error "This installation package could
not be opened . cOntact the application vendor to verify that this is
a valid WIndows Installer package."
I w
New submission from R Blackmore :
Using Python 3.2.2 on Windows 7
See attached file
Was having problem with a program I was doing... couldn't get around issue
unless I changed from "while" loop to "for" loop... WTF???
So restarted computer and then Python Shell and I
R Blackmore added the comment:
for loop works correctly
prints
divisor 1
divisor 2
divisor 5 (original post incorrectly listed divisor 3,)
--
___
Python tracker
<http://bugs.python.org/issue13
R Blackmore added the comment:
I knew it was late...
Should have slept on it
Thanks
--- On Tue, 10/18/11, Mark Dickinson wrote:
> From: Mark Dickinson
> Subject: [issue13206] while loop vs for loop test
> To: squan...@yahoo.com
> Date: Tuesday, October 18, 2011, 12:13
New submission from Andrew R. <[EMAIL PROTECTED]>:
I am confused by the socket docs for Python 3000. It says to pass a
string through socket.send or socket.sendall, however, it does not seem
to account for the ASCII to Unicode transition. Trying to send an
ordinary Python 3k string t
Andrew R. <[EMAIL PROTECTED]> added the comment:
http://docs.python.org/dev/3.0/library/socket.html
The examples at the bottom also add to the confusion.
Also, changed title to be friendlier (failure? Mistake, more likely) and
changed type to no selection.
--
title: Socket Pyt
Brett R added the comment:
I'm marking this closed. We're past the issue, and won't be providing any more
details or chasing this further. Feel free to reopen if others want to push it.
Thanks for the tips.
--
stage: -> resolved
stat
New submission from Gabe R. :
I have both Python 3.1-64 and 3.10-64 installed on the same Windows machine. If
I attempt to launch Python 3.1 using the command `py -3.1-64`, the launcher
incorrectly starts Python 3.10.
--
components: Windows
messages: 405054
nosy: Marsfan, paul.moore
Change by r n :
--
components: Library (Lib)
nosy: r n2
priority: normal
severity: normal
status: open
title: cpython/queue.py: put() does not acquire not_empty lock before notifying
on it
type: behavior
versions: Python 3.8
___
Python tracker
Change by r n :
--
versions: +Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue40907>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by r n :
--
title: cpython/queue.py: put() does not acquire not_empty lock before notifying
on it -> cpython/queue.py: put() does not acquire not_empty before notifying on
it
___
Python tracker
<https://bugs.python.org/issu
Change by r n :
--
nosy: +rhettinger -r n2
title: cpython/queue.py: put() does not acquire not_empty before notifying on
it -> cpython/lib/queue.py: put() does not acquire not_empty before notifying
on it
___
Python tracker
<
Change by r n :
--
versions: +Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.org/issue40907>
___
___
Python-bugs-list mailing list
Unsubscribe:
r n added the comment:
Thanks for the response.
However, if you see, every condition object has their own queue of waiters in
self._waiters, that get notified during notify(), which are different for
not_empty and not_full.
I see a hang very very rarely, like 1/25 times, in my program, which
r n added the comment:
Sorry, please ignore my previous comment, I can see that the issue is not in
the queue, but probably be somewhere in my setup.
I'll close this bug therefore. Thanks again for the clarification.
--
resolution: -> not a bug
stage: -> resolved
s
New submission from Prasanth R :
Got this error on Ubuntu-18 alone
```
_PYTHON_PROJECT_BASE=python3-3.8.3/Python-3.8.3
_PYTHON_HOST_PLATFORM=linux-x86_64
PYTHONPATH=python3-3.8.3/Python-3.8.3/build/lib.linux-x86_64-3.8/sysconfigdata:./Lib
_PYTHON_SYSCONFIGDATA_NAME
New submission from Abhi R :
I tried to create a new virtual environment using virtualenv and the newly
released Python3.9 version and I got a runtime error saying " failed to find
interpreter for Builtin discover of python_spec='python3.9'".
--
components: In
New submission from Athul R :
rstrip removes the trailing `e`s.
i = "external_e_object"
i = i.rstrip('_object')
print(i)
"""
It should have printed `external_e` but it prints only `external_`.
"""
It happens only w
New submission from Brett R :
We are seeing a crash apparently in crypt.py when invoked via SaltStack and
have narrowed it down to some change in the Linux kernel introduced by this
security update: https://access.redhat.com/errata/RHSA-2018:3083
Linux kernel 3.10.0-862.14.4.el7.x86_64 works
Brett R added the comment:
Karthikeyan,
Thank you for looking into this. I have been trying, in the background, to make
further progress on this issue but progress is slow and other issues crop up.
While the version of Python here is old, it was the latest in RHEL/CentOS 7.5.
We are trying
Leonid R. added the comment:
I think this is a "last resort" optimization and shouldn't be encouraged,
especially in the official documentation. There are plenty of real
optimizations you can do before doing micro-optimizations like this, and there
is no reason it should be m
New submission from Naris R :
if a generator passed to min/max throws an exception, the stack trace is
normally shown on the line that caused the exception, but if the exception is a
StopIteration, the trace only shows the line where the max/min function was
called.
I was writing a minimax
Naris R added the comment:
This is a little bit contrived but it demonstrates the problem.
```
def good_exception():
raise Exception('something bad happened')
def bad_exception():
return next(iter([]))
def good(n):
return good_exception() + n
def bad(n):
New submission from Naris R :
Example:
```
from typing import MutableSequence, TypeVar
CliffordGate = TypeVar('CliffordGate')
class QCircuit(MutableSequence[CliffordGate]):
def __init__(self, gates):
self.gates = list(gates)
def __repr__(self):
retu
Naris R added the comment:
I forgot to copy over __len__ in the example
--
___
Python tracker
<https://bugs.python.org/issue34427>
___
___
Python-bugs-list m
Change by Naris R :
--
nosy: +rhettinger, stutzbach
___
Python tracker
<https://bugs.python.org/issue34427>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Naris R :
--
keywords: +patch
pull_requests: +8291
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34427>
___
___
Python-
New submission from R. Jayakrishnan:
Continuing the IDLE unittest framework initiated in
http://bugs.python.org/issue15392.
A small unit test for IDLE Delegator.py module. This patch introduces a test
module named test_delegator.py inside Lib/idlelib/idle_test, considering the
points README
Changes by R. Jayakrishnan :
--
versions: +Python 2.7, Python 3.3
___
Python tracker
<http://bugs.python.org/issue18189>
___
___
Python-bugs-list mailin
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue18103>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue18104>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. Jayakrishnan added the comment:
The "from test.resource import requires" give me errors saying no module named
resource in test (Am I missing anything?)
For the moment I use "from test.support import requires" as in
test_delegator1.patch
.
from test.support impo
Changes by R. Jayakrishnan :
Removed file: http://bugs.python.org/file30626/test_delegator1.patch
___
Python tracker
<http://bugs.python.org/issue18189>
___
___
Python-bug
Changes by R. Jayakrishnan :
Added file: http://bugs.python.org/file30627/test_delegator1.patch
___
Python tracker
<http://bugs.python.org/issue18189>
___
___
Python-bug
Changes by R. Jayakrishnan :
--
nosy: +ncoghlan
___
Python tracker
<http://bugs.python.org/issue18189>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. Jayakrishnan added the comment:
I wrapped requires('gui') as submitted in patch2. But this time commands
"python -m test test_idle" and with -ugui does not skip delegatortest (it runs
successfully to both).
I took Lib/test/test_tk.py as an example.
It calls runtkt
New submission from R. Jayakrishnan:
Continuing the IDLE unittest framework initiated in #15392. Writing test for
AutoExpand.py
--
components: IDLE, Tests
messages: 191795
nosy: JayKrish
priority: normal
severity: normal
status: open
title: IDLE Improvements: Unit test for
New submission from R. Jayakrishnan:
Continuing the IDLE unittest framework #15392, unit test for IdleHistory.py.
This test depends on mockText and uses the patch by Terry at issue #18365.
Because the mockText is still about to commit, first patch
http://bugs.python.org/file30865/mock_text2
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue17535>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue18365>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. Jayakrishnan added the comment:
Now we have the mockText, So I updated my test for Idlehistory.
The submitted patch2 contains tests for two methods in Idlehistory
(history_store and History_do).
I hope the tests for history_store are done. But the history_do method tests
fails.
I explored a
R. Jayakrishnan added the comment:
Thanks Terry for "we have the option of gui tests when mocking becomes too
complicated"
I put two separate classes IdleHistoryMockTest and IdleHistoryTKTest for mock
and TK text usages and used TK Text to test IdleHistory.history_do function.
T
New submission from R. Jayakrishnan:
Following the Idle: mock Text class and test thereof created #18365
I am trying to improve the _decode function because most of the Idletests needs
the mock text and requires some more features to handle indexes.
Started improving the mockText _decode method
Changes by R. Jayakrishnan :
Added file: http://bugs.python.org/file30979/decodeChecklist.txt
___
Python tracker
<http://bugs.python.org/issue18504>
___
___
Python-bug
Changes by R. Jayakrishnan :
Removed file: http://bugs.python.org/file30978/decodeTest.py
___
Python tracker
<http://bugs.python.org/issue18504>
___
___
Python-bugs-list m
Changes by R. Jayakrishnan :
Added file: http://bugs.python.org/file30980/decodeTest.py
___
Python tracker
<http://bugs.python.org/issue18504>
___
___
Python-bugs-list m
R. Jayakrishnan added the comment:
I am trying to improve the _decode function of mock Text class because most of
the Idletests needs the mock text and requires some more features to handle
indexes.
Created an issue IDLE:Improvements- Improving Mock_Text
http://bugs.python.org/issue18504
Changes by R. Jayakrishnan :
--
resolution: -> works for me
___
Python tracker
<http://bugs.python.org/issue18425>
___
___
Python-bugs-list mailing list
Un
Changes by R. Jayakrishnan :
--
nosy: +Todd.Rovito
___
Python tracker
<http://bugs.python.org/issue18504>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. Jayakrishnan added the comment:
Yes,correcting myself. I should aim indexes which actual idlelib uses. Thank
you Terry for the grammar. Fighting with the index parsing last week, and
finally came up with a level to break the index into base and modifier and
decode it along with using
New submission from R. Jayakrishnan:
This is to create an IDLE extension that would integrate PEP8 (Syntax Style
Checker https://pypi.python.org/pypi/pep8 ) into the IDLE editor window,so the
developer who is using the IDLE editor can quickly and frequently check the
PEP8 standards of the
Changes by R. Jayakrishnan :
--
nosy: +Todd.Rovito
___
Python tracker
<http://bugs.python.org/issue18704>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. Jayakrishnan :
--
nosy: +philwebster
___
Python tracker
<http://bugs.python.org/issue18704>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue18583>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Simon R:
I've simply tested the example reported in the py3k documentation, and it don't
works.
See the site:
http://docs.python.org/py3k/library/multiprocessing.html?highlight=multiprocessing#module-multiprocessing.sharedctypes
The program exit with this error:
New submission from Ganesh R.:
Python 2.7.3 Windows MSI installer installs the VC++ 9 dlls directly to WinSxS
folder. The recommended way to distribute VC++ dlls is to either install the
VC++ Redistributable as a pre-requisite or just add the dll to local folder.
Directly installing the VC
R. Jayakrishnan added the comment:
Thanks for showing great interest on this idea.
As usual, it seems this will going to be another nice project with IDLE for me.
Better to close this issue then, and create an appropriate initiation with the
suggested points(preferring a commencement by core
R. Jayakrishnan added the comment:
I would prefer this issue concludes with a navigation to the new proposed
enhancement.
--
___
Python tracker
<http://bugs.python.org/issue18
Cary R. added the comment:
That is the manual I am referencing and the last time I looked it was
the most recent.
I'm not to familiar with the Python port of Tix, but I am using the
command, label, state, and variable options and they already work fine.
I could try the other options if
New submission from Cary R. :
The Tix Optionmenu is documented to support a labelside option that is
used to specify where the label should be relative to the selection.
I have verified that adding 'labelside' to the static_options when
calling the base constructor (TixWidget.__init_
Changes by Cary R. :
--
versions: +Python 2.5
___
Python tracker
<http://bugs.python.org/issue5961>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thayu R added the comment:
Just to add:
select.error was made an alias of OSError following PEP 3151 from 3.3 onwards.
Up to 3.2, it was a pair containing the error code and the error string.
http://docs.python.org/3.3/library/select.html?highlight=select.error#select.error
--
nosy
New submission from Shreevatsa R:
Summary: This is about int(u'१२३४') == 1234.
At https://docs.python.org/2/library/functions.html and also
https://docs.python.org/3/library/functions.html the documentation for
class int(x=0)
class int(x, base=10)
says (respectively):
Shreevatsa R added the comment:
Minor difference, but the relevant function for int() is not quite isdigit(),
e.g.:
>>> import unicodedata
>>> s = u'\u2460'
>>> unicodedata.name(s)
'CIRCLED DIGIT ONE'
>>> print
Shreevatsa R added the comment:
About the mismatch: of course it's probably not a good idea to change the
parser (so that simply typing १२३४ in Python 3 code is like typing 1234), but
how about changing the behaviour of int()? Not sure whether anyone should be
relying on int(u'१२
New submission from Tony R.:
Python has wonderful, detailed documentation. I love it!
Unfortunately, I have often found myself reading the otherwise-excellent
documentation on a class/function/whatever, only to find out at the END of my
reading that it is deprecated.
This is frustrating
Tony R. added the comment:
> Thanks for the report and the patch.
Thank you for the review!
> I think a better way to handle this would be to add a "tag" next to the
> function name for both deprecations and "new in", and leave the actual
> deprecation/new-i
Tony R. added the comment:
> On Oct 26, 2015, at 1:49 PM, Ezio Melotti wrote:
>
> Not sure if there's a clever way to do it though (maybe a CSS class can be
> added to the directives and the labels can be added with CSS :after).
I was thinking something along th
Tony R. added the comment:
> On Oct 26, 2015, at 4:28 PM, Ezio Melotti wrote:
>
> This is true, but on the other hand you might want to see the [new in 3.4]
> while looking at 3.6 docs and working on a program that must support Python
> 3.3+. Anyway we can discuss this again
New submission from R. Jones:
I am trying to compile Python-2.7.10. This is being done as a user, not root
and I don't have access to /usr/local other than to avoid all the broken stuff
in it.
My local is /appl/local
I am installing Python in /appl/local/python-2.7.10
I have ncurse
R. Jones added the comment:
Note: This issue is on Solaris 10 using GCC 4.7.2 and the Solaris linker "ld".
--
title: Python with ncurses6.0 will not load _curses module. -> Python with
ncurses6.0 will not load _curses module
New submission from Tony R.:
In the documentation, I noticed several uses of ``.. versionchanged::`` that
described things which had been added.
I love Python, and its documentation, and I wanted to contribute. So, I
figured a low-risk contribution would be to change ``.. versionchanged
Tony R. added the comment:
> My weak opinion is that a new parameter is a new API item, not just a change
> in behaviour, so should probably have “versionadded”.
This was my reasoning as well.
Also, when I noticed so many instances of ``.. versionchanged`` that all say
“Added
Tony R. added the comment:
> Here are the original descriptions of the old LaTeX version.
Holy crap! You all used to use LaTeX?! :D
(I know--LaTeX is still going strong in academia. I just had no idea it was
ever part of Python’s documentation, except as an output format.)
> Ad
Tony R. added the comment:
> Part of the problem is getting the granularity right. The initial intent was
> that 'version*' were annotations for the enclosing object (function, class,
> method, etc.). If we want to have something more granular (parameter
> added / depr
New submission from Sudharsan R:
I was browsing through the code for queue.full and queue.put methods. The
queue.full method claims it is not a reliable one. But, the same internal
implementation - _qsize is used for put as well as full. "put" is thread safe
and reliable and &qu
Sudharsan R added the comment:
Just add on to it..
q=queue.Queue()
with q.not_full:
q.put_nowait(1)
this will hang. So if we acquire the not_full while computing size, all puts
will wait. Same is the case for q.empty() and q.not_empty method and condition
respectively
Change by Jason R. Coombs :
--
keywords: +patch
pull_requests: +28369
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30150
___
Python tracker
<https://bugs.python.org/issu
New submission from Jason R. Coombs :
In https://github.com/python/importlib_metadata/issues/357, a user reported an
issue where a requirement generated by importlib.metadata from egg info
metadata would result in a parse error attempting to parse the error. A fix was
released in
Change by Jason R. Coombs :
--
pull_requests: +28371
pull_request: https://github.com/python/cpython/pull/30151
___
Python tracker
<https://bugs.python.org/issue44
Change by Jason R. Coombs :
--
keywords: +patch
pull_requests: +28370
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30151
___
Python tracker
<https://bugs.python.org/issu
Jason R. Coombs added the comment:
The change as implemented for importlib_metadata involves refactorings that
can't be backported, so the fix will only go into Python 3.11. I'll consider
backporting a more selective fix for this issue if it's important, but I
suspect t
Change by Jason R. Coombs :
--
pull_requests: -28371
___
Python tracker
<https://bugs.python.org/issue44893>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jason R. Coombs added the comment:
New changeset 109d96602199a91e94eb14b8cb3720841f22ded7 by Jason R. Coombs in
branch 'main':
bpo-46105: Honor spec when generating requirement specs with urls and extras.
(GH-30151)
https://github.com/python/cpyt
Jason R. Coombs added the comment:
New changeset 04deaee4c8d313717f3ea8f6a4fd70286d510d6e by Jason R. Coombs in
branch 'main':
bpo-44893: Implement EntryPoint as simple class with attributes. (GH-30150)
https://github.com/python/cpython/commit/04deaee4c8d313717f3ea8f6a4fd70
Change by Jason R. Coombs :
--
pull_requests: +28376
pull_request: https://github.com/python/cpython/pull/30157
___
Python tracker
<https://bugs.python.org/issue46
Jason R. Coombs added the comment:
New changeset 864ec170e14b663f999eb415a4f1a0067ec6833a by Jason R. Coombs in
branch '3.9':
[3.9] bpo-46105: Honor spec when generating requirement specs with urls and
extras. (GH-30151). (GH-30157)
https://github.com/python/cpyt
Change by Jason R. Coombs :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Jason R. Coombs added the comment:
Expect the fix in 3.11a3.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Jason R. Coombs :
The `importlib` documentation is fairly long and covers a number of topics.
Furthermore, the `importlib.metadata` is separately documented and presents a
good example of breaking out major aspects. Let's do the same with `.abc` and
`.reso
Change by Jason R. Coombs :
--
keywords: +patch
pull_requests: +28379
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30160
___
Python tracker
<https://bugs.python.org/issu
Jason R. Coombs added the comment:
My main motivation for moving `.abc` was because it contains classes
exclusively relevant to `.resources` (those also present in
`importlib_resources.abc`. I want to explore moving those classes to the
resources documentation so they're available tog
New submission from Jason R. Coombs :
The importlib.resources module has several modules on which it relies
(_adapters, _legacy, simple) and some classes in other modules shared by other
parts of importlib (namely abc).
Because these implementations overlap, it adds difficulty in maintaining
Jason R. Coombs added the comment:
I wonder if maybe it's more important to address issue46118 first.
--
___
Python tracker
<https://bugs.python.org/is
Change by Jason R. Coombs :
--
keywords: +patch
pull_requests: +28393
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30176
___
Python tracker
<https://bugs.python.org/issu
Jason R. Coombs added the comment:
Compatibility considerations:
- importlib.readers and importlib.simple are public, so probably need aliases.
- Same abc classes.
Should we embark on an effort to migrate users to the new names in
`importlib.resources`, or simply leave the `importlib.{mod
Jason R. Coombs added the comment:
I would hope that normalize_path would not be needed. It might be for drop-in
compatibility. If it's needed for zoneinfo, I'd like to consider why and what
implications that has for the deprecation of the
Change by Jason R. Coombs :
--
assignee: -> jaraco
___
Python tracker
<https://bugs.python.org/issue46124>
___
___
Python-bugs-list mailing list
Unsubscrib
1 - 100 of 12187 matches
Mail list logo