Adam Woodbeck added the comment:
So what we're looking for is comprehensive HOWTOs for installing and running
Python on Windows, OSX and Linux to be added to
http://docs.python.org/howto/index.html?
--
___
Python tracker
<http://bugs.py
New submission from Adam Simpkins :
The SSLContext.load_cert_chain() method should accept a password argument to
use if the private key is encrypted. Currently it always uses OpenSSL's
default password callback, which prompts the user interactively for a password.
I've attached a
Adam Simpkins added the comment:
> It seems a bit strange to me to accept string types or callable in the
> same argument. If it just supported strings, people could still write
> password=somefunction(), right?
The function is only called if the private key is encrypted and a
pa
Adam Simpkins added the comment:
Here's a new patch that accepts any callable. The old patch only accepted
actual function objects.
--
Added file: http://bugs.python.org/file22975/ssl-password.2.patch
___
Python tracker
<http://bugs.py
Adam Simpkins added the comment:
Good catch. Here's an updated patch to fix the missing decref in
_pwinfo_set()
The length check in _password_callback() applies to both callback
functions and predefined strings. The C API always uses a callback,
so _password_callback() is used even whe
Adam Simpkins added the comment:
OpenSSL doesn't appear to do any special handling for i18n, and just
treats the strings as binary data. It uses fgets() to read the password
from the terminal, so it will receive it however the terminal encodes
it.
It's not clear
Adam Simpkins added the comment:
Here's a patch with updates to the documentation to more fully specify the
behavior of the password field, including specifying that strings will be
encoded using UTF-8.
--
Added file: http://bugs.python.org/file23043/ssl-password.4.
Changes by Adam Woodbeck :
--
nosy: +adam.woodbeck
___
Python tracker
<http://bugs.python.org/issue12409>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Adam Woodbeck :
--
nosy: +adam.woodbeck
___
Python tracker
<http://bugs.python.org/issue11176>
___
___
Python-bugs-list mailing list
Unsubscribe:
Adam Olsen added the comment:
I don't believe there's anything to debate on this, so all it really needs is a
patch, followed by getting someone to review and commit it.
--
___
Python tracker
<http://bugs.python.org
Adam Olsen added the comment:
As far as I know.
--
___
Python tracker
<http://bugs.python.org/issue1441>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Adam Nemecek :
I'm not sure if this is the intended behavior, but it seems unusual to me.
a = [set([]) for i in range(2)] evaluates to a list [set([]),set([])] and
b= 2*[set([])] evaluates to [set([]),set([])].
Nothing wrong here.
Nevertheless, if I do a[0].add(1), a ha
Adam Olsen added the comment:
Signals can directly kill a process. Try SIGTERM to see this. SIGINT is
caught and handled by Python, which just happens to default to a graceful exit
(unless stuck in a lib that prevents that.) Try pasting your script into an
interactive interpreter session
Ron Adam added the comment:
The test in the patch isn't quite right. The following still fails.
Python 3.2a3+ (py3k:85719, Oct 18 2010, 22:32:47)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more informat
New submission from Adam Bielański :
There's a bug in module lib\pstats.py, line 150.
Let me paste a little piece of surrounding code:
class Stats:
()
def add(self, *arg_list):
if not arg_list: return self
if len(arg_list) > 1: self.add(*
Ron Adam added the comment:
Nick, I can update the patch and move the server back into pydoc.py if that
will help you get this into 3.2 beta.
I can also changed the docstrings of the new parts to # comments.
--
___
Python tracker
<h
Changes by Ron Adam :
Removed file: http://bugs.python.org/file16517/pydoc_gui.diff
___
Python tracker
<http://bugs.python.org/issue2001>
___
___
Python-bugs-list mailin
Changes by Ron Adam :
Removed file: http://bugs.python.org/file18165/pydoc_server3.diff
___
Python tracker
<http://bugs.python.org/issue2001>
___
___
Python-bugs-list m
Changes by Ron Adam :
Removed file: http://bugs.python.org/file18271/pydoc_server4.diff
___
Python tracker
<http://bugs.python.org/issue2001>
___
___
Python-bugs-list m
Ron Adam added the comment:
Here you go Nick. One file with Underscores for the new class's and functions.
Where there was some overlap in names, like where some of the older server
class's were reused, but don't have exactly the same behavior, I started those
with undersco
Ron Adam added the comment:
> What about http://bugs.python.org/issue2001#msg114326 ?
Thanks for the reminder.
To Nick:
>However, the public (albeit undocumented) nature of the APIs >implementing the
>old Tk GUI means I'm not comfortable committing the >patch in a form
Ron Adam added the comment:
Ok, here is the latest patch for review. "issue2001_a.diff'
I restored the pydoc.py file and then put most of the new code in these two
functions,
_startserver(urlhandler, port)
_browse(port=0, *, open_browser=True)
This creates a bettor organized
New submission from Adam Bielański :
XMLRPC standard doesn't support None/nil/null values. Element `` was
added as an extension to original protocol.
Currently sending None object through xmlrpclib produces
`` string. This causes parsing errors in more
sophisticated XMLRPC parsers
Ron Adam added the comment:
This should be done or very close to done.
The -g option, gui(), and serve() functions are deprecated.
The new features are browse(port, *, open_browser=True), and a '-b' option.
The '-p port' option does browse(port=port, open_browser=Fals
Changes by Ron Adam :
Removed file: http://bugs.python.org/file19604/issue2001_a.diff
___
Python tracker
<http://bugs.python.org/issue2001>
___
___
Python-bugs-list mailin
Changes by Ron Adam :
Removed file: http://bugs.python.org/file19476/pydoc_r86133.diff
___
Python tracker
<http://bugs.python.org/issue2001>
___
___
Python-bugs-list m
Adam Bielański added the comment:
Ok, I apologize for being to hasty. Below you can find my answers:
1. SlowParser used in xmlrpclib doesn't deal with namespaces in any reasonable
way. If there's a namespace prefix for tag, it's not separated from tag name,
but passed as p
Adam Bielański added the comment:
It is. It might go. Didn't notice issue8792 before, thanks for pointing it out.
Whole ex:nil issue is discussed there, so this issue might be closed.
--
___
Python tracker
<http://bugs.python.org/is
Adam Bielański added the comment:
To make example provided by Amaury complete I'll add that in order to support
both ways you also need to replace xmlrpclib.dumps() with code from attached
file.
Changes to original xmlrpclib.dumps() function are outlined with comments. In
short - it
Ron Adam added the comment:
You may also want to update help topics.
help("PRIVATENAMES").
Identifiers (Names)
***
An identifier occurring as an atom is a name. See section
*Identifiers and keywords* for lexical definition and section *Naming
and binding* for doc
New submission from Adam Ernst :
This is my first report, apologies if I missed any tracker etiquette.
The logging module registers shutdown() to run via atexit. shutdown() calls
flush() and close() on each handler.
However if a FileHandler is writing to a file while shutdown() is executing
New submission from Adam Matan :
shutil.copy2(file, dest) fails when dest has unicode characters:
[2011-04-02 17:19:54 adam@adam-laptop ~/personal :) ]$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credi
Adam Matan added the comment:
Don't you think that shutil should be able to handle mixed data types, for
example byte string as file name and unicode destination directory? This is, in
my opinion, a very common scenario.
Would you consider converting all arguments to Un
Adam Matan added the comment:
Don't you think it should be changed in Python 2.x, so that the ASCII filename
will be automatically converted to to Unicode?
--
___
Python tracker
<http://bugs.python.org/is
Adam Matan added the comment:
Do you think it should be fixed at the module level?
--
___
Python tracker
<http://bugs.python.org/issue11741>
___
___
Python-bug
New submission from Adam Groszer :
The documentation http://docs.python.org/library/configparser.html states that
optionxform() is used only beginning ConfigParser.ConfigParser, whereas it is
ALSO in effect for ConfigParser.RawConfigParser. (As I checked in the source)
--
assignee
Ron Adam added the comment:
I just noticed I used "depreciated" in place of "deprecated" in one of the doc
strings. I can upload a new patch with that fixed.
Before I do that, is there any thing else I can do?
Do you agree that the browse function should be public?
If
Ron Adam added the comment:
I noticed in your patch, the disclaimer only prints when pydoc can find a doc
location (docloc is not None). So it may not get displayed at all depending on
how python is installed. I also think having it on every page may be a bit
overly cautious. (IMHO)
I
Ron Adam added the comment:
Thanks for the review Éric! The more eyes on this the better it will be.
I'm not familiar with rietveld yet. But no time like the present to get
started. Here's the link.
http://codereview.appspot.com/3151042/
I didn't play around with th
Ron Adam added the comment:
Sense these features reuse other parts of pydoc, they are are covered to some
degree by the existing tests.
An easy test would be to just start the server and then shut it down after a
short timeout. Better than nothing.
I'll try reading and writing dir
Ron Adam added the comment:
Here is the patch in the current state which includes the changes in
issue2001_c.diff as well as most of the changes Éric suggested.
Still to do:
* Use the with statement in several places to ensure closing.
* Add tests for the server.
I did try to make the
On 11/19/2010 08:21 AM, Alexander Belopolsky wrote:
Alexander Belopolsky added the comment:
On Thu, Nov 18, 2010 at 2:37 AM, Ron Adam wrote:
..
I'll try reading and writing directly to the socket and working up some tests
from that.
I don't suppose there's something like
Ron Adam 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 needs tests now, whi
Ron Adam 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")
pydoc.bro
Ron Adam added the comment:
Is this a duplicate of issue 9319?
--
nosy: +ron_adam
___
Python tracker
<http://bugs.python.org/issue10509>
___
___
Python-bug
Ron Adam 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 of the patch was writte
Changes by Ron Adam :
--
nosy: +ron_adam
___
Python tracker
<http://bugs.python.org/issue10588>
___
___
Python-bugs-list mailing list
Unsubscribe:
Adam Byrtek added the comment:
What happened with "there should be one-- and preferably only one --obvious way
to do it"?
--
nosy: +adambyrtek
___
Python tracker
<http://bugs.python.o
Changes by Adam Byrtek :
--
nosy: -adambyrtek
___
Python tracker
<http://bugs.python.org/issue10562>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ron Adam 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
<http://bugs.python.
Ron Adam 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 in the tools/scripts directory that may
Ron Adam 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
than welcome to updat
Ron Adam 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 sheet changes wi
Ron Adam 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.
--
A
Changes by Ron Adam :
--
nosy: +ron_adam
___
Python tracker
<http://bugs.python.org/issue8916>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Ron Adam :
--
nosy: +ron_adam
___
Python tracker
<http://bugs.python.org/issue10087>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ron Adam 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.
Ron Adam 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
<http://bugs.python.org/is
Ron Adam 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
<http://bugs.python.org/is
Ron Adam 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 markup call is
already use
Ron Adam 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
Ron Adam 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 gi
Ron Adam 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 they say
"Pydoc" instead
Changes by Ron Adam :
Removed file: http://bugs.python.org/file20081/defaultstyle.css
___
Python tracker
<http://bugs.python.org/issue10716>
___
___
Python-bugs-list m
Changes by Ron Adam :
Removed file: http://bugs.python.org/file20088/pydoc sample html files.zip
___
Python tracker
<http://bugs.python.org/issue10716>
___
___
Python-bug
Changes by Ron Adam :
Removed file: http://bugs.python.org/file20183/css_v1.diff
___
Python tracker
<http://bugs.python.org/issue10716>
___
___
Python-bugs-list mailin
Ron Adam 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 depreciating
Ron Adam 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
for that?
--
___
Python tracker
<h
Ron Adam 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.
This issue can be used for that purpose
Ron Adam 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
in the case -g is used. That
Ron Adam added the comment:
Why is this surprising?
>>> def foo(c, c=None):
... pass
...
File "", 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 to no
Ron Adam 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&
Ron Adam 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 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.
--
___
Python
Ron Adam 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 the data from the program
New submission from Ron Adam :
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, Fals
Ron Adam 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
<http://bugs.python.org/issue10
Changes by Ron Adam :
Removed file: http://bugs.python.org/file20467/pydoc_misc_fix.diff
___
Python tracker
<http://bugs.python.org/issue10961>
___
___
Python-bugs-list m
Ron Adam 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 rather than another topic
Changes by Ron Adam :
Removed file: http://bugs.python.org/file20468/pydoc_misc_fix.diff
___
Python tracker
<http://bugs.python.org/issue10961>
___
___
Python-bugs-list m
Changes by Ron Adam :
--
nosy: +eric.araujo, rhettinger
___
Python tracker
<http://bugs.python.org/issue10961>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ron Adam 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
with any needed ch
Changes by Ron Adam :
Removed file: http://bugs.python.org/file20473/pydoc_misc_fix_c.diff
___
Python tracker
<http://bugs.python.org/issue10961>
___
___
Python-bug
Ron Adam added the comment:
Ok, after input from Eric, Here is another patch.
Removed a set of unneeded parentheses.
Changed the title of the pages from PyDoc to Pydoc.
A better fix for the uncaught floats. Wrap the main content in div with
style="clear:both;". Should work
Ron Adam 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 were tested on Ubuntu and
Ron Adam 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. :-)
--
___
Python tr
Ron Adam 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 pydoc output i
Changes by Ron Adam :
--
nosy: +ron_adam
___
Python tracker
<http://bugs.python.org/issue9364>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Ron Adam :
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
editing tools like VIM, a
Changes by Ron Adam :
--
nosy: +ron_adam
___
Python tracker
<http://bugs.python.org/issue2571>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Adam Olsen <[EMAIL PROTECTED]> added the comment:
Here's another approach to avoiding set_swap_bodies. The existing
semantics are retained. Rather than creating a temporary frozenset and
swapping the contents, I check for a set and call the internal hash
function directly
Adam Olsen <[EMAIL PROTECTED]> added the comment:
Revised again. sets are only hashed after PyObject_Hash raises a TypeError.
This also fixes a regression in test_subclass_with_custom_hash. Oddly,
it doesn't show up in trunk, but does when my previous patch is applied
to py3k.
New submission from Adam Olsen <[EMAIL PROTECTED]>:
sets are based on dicts' code, so they have the same problem as bug
1517. Patch attached.
--
files: python-lookkeycompare.diff
keywords: patch
messages: 66829
nosy: Rhamphoryncus
severity: normal
status: open
title: loo
Adam Olsen <[EMAIL PROTECTED]> added the comment:
There is no temporary hashability. The hash value is calculated, but
never stored in the set's hash field, so it will never become out of
sync. Modification while __hash__ or __eq__ is running is possible, but
for __eq__ that app
Changes by Adam Olsen <[EMAIL PROTECTED]>:
--
nosy: +Rhamphoryncus
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue689895>
___
Python-bugs
New submission from Adam Olsen <[EMAIL PROTECTED]>:
Patch allows any iterable (such as set and frozenset) to be used for
__all__.
I also add some blank lines, making it more readable.
--
files: python-importall.diff
keywords: patch
messages: 67104
nosy: Rhamphoryncus
severity:
Adam Olsen <[EMAIL PROTECTED]> added the comment:
tuples are already allowed for __all__, which breaks attempts to
monkey-patch it.
I did forget to check the return from PyObject_GetIter.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Adam Olsen <[EMAIL PROTECTED]> added the comment:
Is there any reason not to name it ProxyMixin, ala DictMixin?
--
nosy: +Rhamphoryncus
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.
Adam Olsen <[EMAIL PROTECTED]> added the comment:
The patch for issue 1856 should fix the potential crash, so we could
eliminate that scary blurb from the docs.
--
nosy: +Rhamphoryncus
_
Tracker <[EMAIL PROTECTED]>
<http://
Adam Olsen <[EMAIL PROTECTED]> added the comment:
_deref won't work for remote objects, will it? Nor _unwrap, although
that starts to get "fun".
Tracker <[EMAIL PROTECTED]>
<http
101 - 200 of 696 matches
Mail list logo