New submission from Adam [EMAIL PROTECTED]:
In section 4.4 of the Python Tutorial
(http://docs.python.org/tut/node6.html) there is a code example using
prime numbers that results extraneous output. The else is incorrectly
indented one tab too far to the right and is nested under (for x in
range
Adam [EMAIL PROTECTED] added the comment:
You know what, you're absolutely right. My apologies for sending the bad
submission. =\
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3490
New submission from Adam a...@netbsd.org:
int_pow() (from Objects/intobject.c) shows incorrect results when Python is
compiled with Clang (llvm.org); long story short: int_pow() function should use
'unsigned long' type instead of 'long' or some code gets optimised out.
Please, refer
New submission from Adam:
I think dynload_shlib (and maybe some of the other non-ldl dynamic library
loaders?) should close the libraries when the interpreter is shut down.
Currently the handles are not ever closed and in ldl's case sometimes leaked.
The reason I desire this behavior is I
Adam added the comment:
Is this enhancement still open? I've run into this problem previously, and
would be more than happy to implement this feature.
--
nosy: +azsorkin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17908
Changes by Adam <azsor...@gmail.com>:
--
nosy: +azsorkin
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24821>
___
___
Python
Changes by Adam <azsor...@gmail.com>:
--
nosy: +azsorkin
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25344>
___
___
Python
Adam added the comment:
Any comments about this proposed patch?
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17908>
___
___
Changes by Adam <azsor...@gmail.com>:
--
nosy: +azsorkin
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10716>
___
___
Python
Changes by Adam <azsor...@gmail.com>:
--
nosy: +azsorkin
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24899>
___
___
Python
Changes by Adam <azsor...@gmail.com>:
--
nosy: +azsorkin
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24249>
___
___
Python
Changes by Adam <azsor...@gmail.com>:
--
nosy: +azsorkin
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24928>
___
___
Python
Changes by Adam <azsor...@gmail.com>:
--
nosy: +azsorkin
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25041>
___
___
Python
New submission from Adam:
See below code to show you can't round-trip units through pickle:
Python 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:49:46) [MSC
v.1900 64 bit AMD64)]
import units
u = units.unit('myUnit')
x = u(3.0)
import pickle
f = open('C:/temp/what.pkl', 'wb
New submission from Adam:
The docs for heapq.merge are a little misleading. Iterables passed into
heapq.merge with the reversed flag set to True must be sorted from largest to
smallest to achieve the desired sorting effect, but the paragraph describing
the function in the general case states
Changes by Adam <adam.niede...@gmail.com>:
--
title: heapq.merge docs don't handle reverse flag well -> heapq.merge docs are
misleading with the "reversed" flag
___
Python tracker <rep...@bugs.python.org>
<http:
Adam <a...@netbsd.org> added the comment:
Some systems might have both uuid.h and uuid/uuid.h. For example, NetBSD
provides /usr/include/uuid.h, and one might also install libuuid from a
package, and the latter has uuid/uuid.h.
To fix this, do not include both files, when both hav
Adam <adam.g...@wp.pl> added the comment:
It occurs both on Python 3.6 and 3.7 RC, so maybe it should be fixed in the 3.7
release.
--
nosy: +adampl
type: -> behavior
versions: +Python 3.7
Added file: https://bugs.python.org/file47531/asyncio_encodin
Adam <adam.g...@wp.pl> added the comment:
After reading the docs more carefully, it's now plain to me that text encoding
is not supported yet, so actually it's not a bug :)
However the docs should be improved (and then an assertion could be added too)
to prevent people from f
New submission from Adam :
When running 3.7, we noticed a memory leak in threading._shutdown_locks when
non-deamon threads are started but "join()" or "is_alive()" is never called.
Here's a test to illustrate the growth:
=
import threading
import time
imp
Change by Adam :
--
type: resource usage -> security
___
Python tracker
<https://bugs.python.org/issue39074>
___
___
Python-bugs-list mailing list
Unsubscrib
Adam added the comment:
Looks like this issue might be a duplicate of https://bugs.python.org/issue37788
--
___
Python tracker
<https://bugs.python.org/issue39
Adam added the comment:
I ran into this bug as well, and opened an issue for it (before I saw this
issue): https://bugs.python.org/issue39074
Was there a conclusion on the best way to fix this? It seems like the previous
__del__ implementation would correct the resource leakage by removing
Adam added the comment:
I filed a bug for this a few weeks ago, and then found another ticket about the
same issue before:
https://bugs.python.org/issue37788
My ticket:
https://bugs.python.org/issue39074
The memory leak was from a change introduced about 6 months ago:
https://github.com
Adam added the comment:
The 64 installer doesn't even show up in the ARP table, only Python Launcher.
--
___
Python tracker
<https://bugs.python.org/issue43
New submission from Adam :
1. Install 3.9.0 using the following command line options:
python-3.9.0.exe /quiet InstallAllUsers=1
2. Install 3.9.2 using the following command line options:
python-3.9.2.exe /quiet InstallAllUsers=1
3. Observe that 3.9.2 successfully installed, however
Adam added the comment:
Update, the Pyenv team confirmed that they do not install OpenSSL in linux, its
only installed for MacOS, and it should be built using the system OpenSSL
within Linux.
We're investigating further to attempt to debug the issue. Interestingly the
OpenSSL build flags
Adam added the comment:
Thanks for the quick reply. On both Ubuntu and Centos, I’m installing Python
using Pyenv, testing with 3.9.10 and 3.10.2. Pyenv provides a verbose install
flag, I can rebuild the Python versions and review the build commands, if
helpful? I’m testing with clean Linux
Adam added the comment:
I found the Python build recipes and Pyenv does appear to install OpenSSL from
source. The only difference I can see, aside from the Python version, is an
update on the OpenSSL versions; openssl-1.1.1l (3.9.10) to openssl-1.1.1k
(3.10.2). The OpenSSL release notes do
Adam added the comment:
Yes agreed, it may well be a Pyenv issue. Interestingly we can demonstrate that
the global OpenSSL crypto policies is respected with the 3.9.10 version,
through adjusting the policy. The ssl error occurs with the default policy
setting and is resolved with the legacy
Adam added the comment:
Many thanks Christian, see the attached for the output of the commands on
Python 3.9.10 and 3.10.2, along with a diff removing version numbers and memory
addresses.
I've run the commands on the Ubuntu distribution, we can also run the same for
the Centos VM
Adam added the comment:
Many thanks Christian, that resolved the issue! I really appreciate your
efforts here.
--
___
Python tracker
<https://bugs.python.org/issue46
Change by Adam :
--
nosy: +achhina
nosy_count: 7.0 -> 8.0
pull_requests: +30326
pull_request: https://github.com/python/cpython/pull/32257
___
Python tracker
<https://bugs.python.org/issu
Adam added the comment:
Hi,
First-time contributor here, I've made a patch in follow-up to the discussions
that happened in Amir's patch in regards to this. I'd appreciate it if someone
would be able to take a look and review it!
https://github.com/python/cpython/pull/32257
New submission from Adam Hupp:
It would be useful for tempfile.TemporaryFile and friends to pass
newline and encoding arguments to the underlying io.open call. For
example, several tests in test_csv use TemporaryFile and need to handle
unicode file output or preserve exact newlines
Adam Hupp added the comment:
One change I forgot to mention that may need discussion. I've changed
the 'bufsize' arguments in tempfile to 'buffering', since that is
consistent with the same change in os.fdopen.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org
New submission from Adam Olsen:
In the large else branch in decode_unicode (if encoding is not NULL or
iso-8859-1), the new string it produces is not nul-terminated. This
then hits PyUnicode_DecodeUnicodeEscape's octal escape case, which reads
past the end of the string (but would stop
On 11/19/2010 08:21 AM, Alexander Belopolsky wrote:
Alexander Belopolskybelopol...@users.sourceforge.net added the comment:
On Thu, Nov 18, 2010 at 2:37 AM, Ron Adamrep...@bugs.python.org wrote:
..
I'll try reading and writing directly to the socket and working up some tests
from that.
I
Ron Adam ron_a...@users.sourceforge.net added the comment:
I added an empty _pydoc.css file. The server does read it and you'll be able
to play around with it, but don't expect it to be pretty if you do until the
rest of the html is updated.
Should I put that in the pydoc_data?
It just
Ron Adam ron_a...@users.sourceforge.net added the comment:
Here is the latest patch with tests.
In order to test the html pages I separated out the URL handler. So now we
have three new functions.
pydoc._start_server(urlhandler, port)
pydoc._url_handler(url, content_type=text/html
Ron Adam ron_a...@users.sourceforge.net added the comment:
Is this a duplicate of issue 9319?
--
nosy: +ron_adam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10509
Ron Adam ron_a...@users.sourceforge.net added the comment:
Thanks for the review and style edits Éric. I think it's a much better patch
with the changes and suggestions from you, Nick, and Alexander.
I'll check my white space settings. Thanks for noticing it.
As Nick points out, parts
Changes by Ron Adam ron_a...@users.sourceforge.net:
--
nosy: +ron_adam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10588
___
___
Python-bugs
Adam Byrtek adambyr...@gmail.com added the comment:
What happened with there should be one-- and preferably only one --obvious way
to do it?
--
nosy: +adambyrtek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
Changes by Adam Byrtek adambyr...@gmail.com:
--
nosy: -adambyrtek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
___
Python-bugs-list
Ron Adam ron_a...@users.sourceforge.net added the comment:
Pydoc skips the badsysntax_pep3120 file for now. When this gets fixed that
workaround should be removed. The work around is commented and refers to this
issue #.
--
___
Python tracker rep
Ron Adam ron_a...@users.sourceforge.net added the comment:
I uploaded the css file I used in an experimental version of pydoc. It may
give some useful starting values.
Before this is done, the old server code should be removed (also for 3.3).
(another issue?) There are two files
Ron Adam ron_a...@users.sourceforge.net added the comment:
Eric, most of what's in that file is what I figured out by trial and error in
order to get it to work on the different browsers at that time. (about 3 years
ago.) You are probably more experienced with css than I am, so you are more
Ron Adam ron_a...@users.sourceforge.net added the comment:
I think that's how I ended up with the style sheet I uploaded. It works, but
it can be a slow process.
Another factor is the pydoc server will reread an external style sheet on
browser refreshes. So you can see the results of style
Ron Adam ron_a...@users.sourceforge.net added the comment:
Ok, I just looked at them again, I didn't remember how different it was. They
probably won't be much help other than maybe seeing how some things could be
done. Here's a zip file of some saved pages, so you can take a look
Changes by Ron Adam ron_a...@users.sourceforge.net:
--
nosy: +ron_adam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8916
___
___
Python-bugs-list
Changes by Ron Adam ron_a...@users.sourceforge.net:
--
nosy: +ron_adam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10087
___
___
Python-bugs
Ron Adam ron_a...@users.sourceforge.net added the comment:
The problem is in the following line...
return ''.join(v).encode(encoding, xmlcharrefreplace)
The .encode(encoding, xmlcharrefreplace) is returning a bytes object.
Here is the simplest change to resolve the problem.
return
Ron Adam ron_a...@users.sourceforge.net added the comment:
Oops. You're right.
I miss understood how the encode method works in this particular case. ;-/
I agree with your comments as well.
--
___
Python tracker rep...@bugs.python.org
http
Ron Adam ron_a...@users.sourceforge.net added the comment:
The issue10573.diff file with the time stamp 20:03 has a lot of document
changes that don't have corresponding code changes?
--
nosy: +ron_adam
___
Python tracker rep...@bugs.python.org
http
Ron Adam ron_a...@users.sourceforge.net added the comment:
Here is a tentative start on this. (css_v1.diff)
The css file is much better. It's shorter, simpler and validated.
The header and navbar panel use it in the new server.
Added a markup call to the topic page contents. (The same
Ron Adam ron_a...@users.sourceforge.net added the comment:
The HtmlDoc class has methods that take colors. Can this be changed or does it
need to be depreciated first?
def heading(self, title, fgcol, bgcol, extras=''):
Format a page heading.
return '''
table width=100
Ron Adam ron_a...@users.sourceforge.net added the comment:
It may be useful to change those to 'id=' and 'class=' if possible.
It isn't clear to me how much of pydoc is still part of the public api in
python 3.x. pydoc.__all__ is set only to ['help'].
Entering help(pydoc) just gives
Ron Adam ron_a...@users.sourceforge.net added the comment:
Here is a new diff which updates all the new pydoc pages to use the css file.
The css file is simpler and cleaner. I also made a few adjustments to the url
handler error handling, and changed the titles in the head sections so
Changes by Ron Adam ron_a...@users.sourceforge.net:
Removed file: http://bugs.python.org/file20081/defaultstyle.css
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10716
Changes by Ron Adam ron_a...@users.sourceforge.net:
Removed file: http://bugs.python.org/file20088/pydoc sample html files.zip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10716
Changes by Ron Adam ron_a...@users.sourceforge.net:
Removed file: http://bugs.python.org/file20183/css_v1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10716
Ron Adam ron_a...@users.sourceforge.net added the comment:
If the colors are passed directly to the HTML they should be
removed and left to the CSS(s) only. I don't know the code
well enough to say if this is doable and/or if it requires a
deprecation first;
We may have to do dome
Ron Adam ron_a...@users.sourceforge.net added the comment:
To go forward I can create a new private api instead of changing HTMLDoc, that
would be preferable.
Should the -w option also use the new html pages? Or do we need a new option
Ron Adam ron_a...@users.sourceforge.net added the comment:
No refactoring is needed.
The second copies are part of the new server. The old server was depreciated
in 3.2 and is supposed to be removed along with the tk panel for 3.3. After
that there will only be one of each again
Ron Adam ron_a...@users.sourceforge.net added the comment:
Here is a patch for this. Not much to it as the hard parts were already done.
Apparently there was no tests for this, test_pydoc still passes without it.
Does there need to be any messages for the -g option? Pydoc help is displayed
Ron Adam ron_a...@users.sourceforge.net added the comment:
Why is this surprising?
def foo(c, c=None):
... pass
...
File stdin, line 1
SyntaxError: duplicate argument 'c' in function definition
In the previous examples, it finds the duplicate at run time instead of compile
time due
Ron Adam ron_a...@users.sourceforge.net added the comment:
Is this issue referring to something in Python's library, or a hypothetical
function someone may write?
If it's in the library, we can look at that case in more detail, otherwise,
it's just a bad program design issue and there's
Ron Adam ron_a...@users.sourceforge.net added the comment:
Here is the whole method for reference...
def submit(self, fn, *args, **kwargs):
with self._shutdown_lock:
if self._shutdown_thread:
raise RuntimeError('cannot schedule new futures after shutdown
Ron Adam ron_a...@users.sourceforge.net added the comment:
Change...
are never unpacked within submit.
to...
Are completely separate.
It's the attempt to mix two function signatures together as one, that was/is
the problem
Ron Adam ron_a...@users.sourceforge.net added the comment:
Yes, you are correct. Pulling the first value off of args would work.
This is new for 3.2, can it still be changed?
One more thing to consider...
One of the things I look at for functions like these is, how easy is it to
separate
New submission from Ron Adam ron_a...@users.sourceforge.net:
A collection of small fix's that only effect the new browser mode.
* Change title of html pages from Python ... to PyDoc
* Fixed unterminated div float for items returned without a header.
example: str, None, True
Ron Adam ron_a...@users.sourceforge.net added the comment:
new patch...
Adjusted a comment in the _gettopic method.
Everything else the same.
--
Added file: http://bugs.python.org/file20468/pydoc_misc_fix.diff
___
Python tracker rep
Changes by Ron Adam ron_a...@users.sourceforge.net:
Removed file: http://bugs.python.org/file20467/pydoc_misc_fix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10961
Ron Adam ron_a...@users.sourceforge.net added the comment:
A few last minute changes.. I think this will be all.
Run topic contents through html.markup. That makes ref:, pep:, and html: links
if they exist. (I meant to this earlier.)
Fix case where topic reference links are to objects
Changes by Ron Adam ron_a...@users.sourceforge.net:
Removed file: http://bugs.python.org/file20468/pydoc_misc_fix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10961
Changes by Ron Adam ron_a...@users.sourceforge.net:
--
nosy: +eric.araujo, rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10961
Ron Adam ron_a...@users.sourceforge.net added the comment:
George, My apologies to you for the late corrections. And thanks for doing
this.
Eric, I replied to your comments on Rietveld. Thanks for taking a look.
I'll wait until you have a chance to reply and test it, then upload a new patch
Changes by Ron Adam ron_a...@users.sourceforge.net:
Removed file: http://bugs.python.org/file20473/pydoc_misc_fix_c.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10961
Ron Adam ron_a...@users.sourceforge.net added the comment:
New and hopefully last patch... pydoc_misc_fix_e.diff
I removed the .html in the ?key= links as Eric suggested.
I checked the navbar float behavior on browsershots.org. Multiple versions of
MSIE, firefox, opera, chrome, and safari
Ron Adam ron_a...@users.sourceforge.net added the comment:
A reminder: Check for instances where html.escape is not called on data
inserted into the html pages.
I'll update the patch as the non-css (error handling) parts made it into python
3.2
Ron Adam ron_a...@users.sourceforge.net added the comment:
I agree. It is close enough to be a duplicate. I suggest closing it.
As Ka-Ping noted in the other issue:
There's a link to the base class provided if you want to find out what the
base class does.
This is easy to do if your viewing
Changes by Ron Adam ron_a...@users.sourceforge.net:
--
nosy: +ron_adam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9364
___
___
Python-bugs-list
New submission from Ron Adam ron_a...@users.sourceforge.net:
There doesn't seem to be any references to it in any other part of pydoc, or
the Library for that matter. Searching for it on google code search (and also
google web search) only turns up auto generated API references for python
Changes by Ron Adam ron_a...@users.sourceforge.net:
--
nosy: +ron_adam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2571
___
___
Python-bugs-list
New submission from Adam Olsen:
type_new() allocates the exact number of slots it's going to use, but
various other functions assume there's one more slot with a NULL name
field serving as a sentinel. I'm unsure why it doesn't normally crash.
--
components: Interpreter Core
messages
Adam Olsen added the comment:
typeobject.c:1842:type_new
type = (PyTypeObject *)metatype-tp_alloc(metatype, nslots);
nslots may be 0.
typeobject.c:1966:type_new assigns this just-past-the-end address to
tp_members
type-tp_members = PyHeapType_GET_MEMBERS(et);
type_new later
New submission from Adam Doherty:
Hello:
I'm am trying to conduct some tests on a list of data that checks for
the position of values in list elements using the bisect module. To
store the results of these tests for output to a template I have build a
dictionary with 47 keys the values
Adam Olsen added the comment:
The problem with being tolerate as you suggest is you lose the ability
to round-trip. Read in a file using the UTF-8 signature, write it back
out, and suddenly nothing else can open it.
Conceptually, these signatures shouldn't even be part of the encoding;
they're
Adam Olsen added the comment:
On 11/1/07, James G. sack (jim) [EMAIL PROTECTED] wrote:
James G. sack (jim) added the comment:
Adam Olsen wrote:
Adam Olsen added the comment:
The problem with being tolerate as you suggest is you lose the ability
to round-trip. Read in a file using
New submission from Adam Hupp:
The attached patch resolves the intermittent test_xmlrpc failures
reported by Neal Norwitz[0].
test_xmlrpc starts the XMLRPC server with a socket timeout. This puts
the socket into non-blocking mode which is incompatible with the use of
socket.makefile as used
New submission from Adam Hupp:
The attached patch resolves test failues in test_asynchat and
test_asyncore.
The asynchat failure was due to interpolating a byte string into a
unicode string using %s. This resulted in a b'' byte representation
in the final string. The fix is to use string
Ron Adam added the comment:
Yes, I will update it.
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1720390
_
___
Python-bugs-list mailing list
Unsubscribe:
http
New submission from Ron Adam:
Replaced Unicode literals in tokenize.py and it's tests files with byte
literals.
Added a compile step to the test to make sure the text file used in the
test are valid python code. This will catch changes that need to be
done in to the text (gold file) for future
Ron Adam added the comment:
George is correct. The changes are minimal.
The only addition is to run the tokenize_tests.txt file though compile()
as a way to force an exception if it needs updating in the future. The
results of the compile are not used
Ron Adam added the comment:
It looks like the disabling of \u and \U in raw strings is done. Does
tokenize.py need to be fixed, to match?
While working on this I was able to clean up the string parsing parts of
tokenize.c, and have a separate patch with just that.
And an updated patch
Changes by Ron Adam:
Added file: http://bugs.python.org/file8763/no_raw_escapes_patch.diff
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1720390
_
___
Python-bugs-list
Changes by Adam Olsen:
--
nosy: +rhamphoryncus
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1225584
_
___
Python-bugs-list mailing list
Unsubscribe:
http
New submission from Adam Olsen:
(thanks go to my partner in crime, jorendorff, for helping flesh this out.)
lookdict calls PyObject_RichCompareBool without using INCREF/DECREF on
the key passed. It's possible for the comparison to delete the key from
the dict, causing its own argument
Adam Olsen added the comment:
The minimal patch doesn't initialize dummy_char or dummy_c. It's
harmless here, but please fix it. ;)
sizeof(dummy_char) will always be 1 (C defines sizeof as multiples of
char.) The convention seems to be hardcoding 1 instead
1 - 100 of 678 matches
Mail list logo