[issue11027] Allow spaces around section header in ConfigParser

2011-01-27 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: I doubt anyone is looking for section names with leading or trailing whitespace. One approach to dealing with this is to provide and sectionxform similar to optionxform. If we're wrong and someone really is expecting leading or trailing

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-21 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Fri, Jan 21, 2011 at 2:58 AM, Christopher Dunn rep...@bugs.python.org wrote: For narrow-width screens, there really shouldn't be a sidebar. Maybe a dynamic element would be better. Right. I'd be in favor of removing the sidebar

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-20 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: As Ezio noted, the coming versions of the Python 3 documentation provide a way to collapse the sidebar completely. Perhaps a min-width should be specified, but I'm not convinced that's a good idea. The sidebar problem is fairly significant

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-20 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Thu, Jan 20, 2011 at 11:18 PM, Ezio Melotti rep...@bugs.python.org wrote: If it gets too narrow it would start getting unusable and the text will start overflowing. If someone is zooming that much, it's because they really need the size

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-01-19 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Wed, Jan 19, 2011 at 12:42 PM, Éric Araujo rep...@bugs.python.org wrote: I understand this line to mean that only the basename of the file will be used in the target directory, IOW that ('config', ['cfg/data.cfg']) will create a file

[issue10697] host and port attributes not documented well in function urllib.parse.urlparse and urlsplit

2010-12-13 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: These attributes were added in Python 2.5. Documentation improvements should be backported to 2.7 and 3.1. -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue10697] host and port attributes not documented well in function urllib.parse.urlparse and urlsplit

2010-12-13 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10697 ___ ___ Python-bugs

[issue10664] xml.sax.expatreader should support namespace prefixes

2010-12-09 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. fdr...@acm.org: The xml.sax.expatreader module pre-dates prefix reporting from Expat, and should be modified to support the feature_namespace_prefixes feature instead of complaining that Expat doesn't support prefixes. -- assignee: fdrake

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-12-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Though msg104261 suggests this change be documented in NEWS.txt, it doesn't appear to have made it. Sure enough, we just found application code that this broke. -- nosy: +fdrake ___ Python

[issue10589] I/O ABC docs should specify which methods have implementations

2010-11-30 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +d...@python, fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10589 ___ ___ Python

[issue10499] Modular interpolation in configparser

2010-11-28 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Review posted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10499 ___ ___ Python-bugs

[issue10434] Document the rules for public names

2010-11-19 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10434 ___ ___ Python-bugs-list

[issue9173] logger statement not guarded in shutil._make_tarball

2010-11-17 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: By the way, the logger argument is not documented in shutil.rst. This documentation issue is distinct from this; this bug affects applications that *don't* use the logger argument. -- ___ Python

RE: What was your strategy?

2010-11-16 Thread Sells, Fred
It helps to try to solve a real (to you) problem, that way you discover what you don't know. If your code ends up nested 3 levels or your methods are more than 10 lines, ask for help. -Original Message- From: python-list-bounces+frsells=adventistcare@python.org

[issue10373] Setup Script example incorrect

2010-11-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: perhaps the web page should be checked for an incorrect link. The link from the Python documentation to the Python bug tracker is fine. If you were using distutils directly, it would be an issue for the Python tracker. You're

[issue10403] Use member consistently

2010-11-12 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. fdr...@acm.org: Some portions of the documentation are using the term member to mean data attribute. This appears to be an aberration at this time, but occurrences should be identified and corrected, and Documenting Python updated to note correct usage

[issue10403] Use member consistently

2010-11-12 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10403 ___ ___ Python-bugs-list

[issue10386] token module should define __all__

2010-11-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Normally, I'd recommend leaving the main name alone, but in the case of modules that use it as an tool for module maintenance (symbol, token), I don't think it matters either way. Ok to commit. -- assignee: - belopolsky nosy

RE: { '0':'c-c-a' ,'1':'a-b-a' .........}

2010-11-09 Thread Sells, Fred
Since your keys are not unique, I would think that you would want a list of values for the object corresponding to each key. Something like Mydict = {} Mydict.setdefault(mykey, []).append(avalue) -Original Message- From: python-list-bounces+frsells=adventistcare@python.org

[issue10358] Doc styles for print should only use dark colors

2010-11-08 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. fdr...@acm.org: The HTML version of the documentation should include style settings for printing that use fairly dark colors, so that printed copies of pages are more readable. Using a printer that reduces colors to grays causes the light colors in code

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-05 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Code - The __name__-aversion in the mapping interface is a little heavy-handed, but given the implementation of __name__ elsewhere, I think this can be revisited separately if anyone cares enough. In particular, it should

[issue10299] Add index with links section for built-in functions

2010-11-03 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10299 ___ ___ Python-bugs-list

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Alternately, the Python implementation may be thought of as definitive and the optimizations are broken. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10038

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: The incomplete testing and C/Python implementation mismatch are covered by issue 5723 and issue 9233. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10038

RE: Generating PDF file in Python

2010-10-27 Thread Sells, Fred
I just shell down and use pdftk to merge fdf and pdf -Original Message- From: python-list-bounces+frsells=adventistcare@python.org [mailto:python-list-bounces+frsells=adventistcare@python.org] On Behalf Of Steve Piercy - Web Site Builder Sent: Wednesday, October 27, 2010 8:24 AM

[issue10108] ExpatError not property wrapped

2010-10-27 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10108 ___ ___ Python-bugs-list

[issue10038] Returntype of json.loads() on strings

2010-10-27 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: I'll note that it seems relevant that this package is not considered externally maintained by the terms of PEP 360: http://www.python.org/dev/peps/pep-0360/ Given the level of attention this has received from the originator of the code

[issue10038] json.loads() on str should return unicode, not str

2010-10-27 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- title: Returntype of json.loads() on strings - json.loads() on str should return unicode, not str ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10038

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10045 ___ ___ Python-bugs-list

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Causing perfectly good Python 2 applications to degrade in performance is bad, even if something else is available. This should be fixed as a regression. -- ___ Python tracker rep

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Ok, reading more carefully, it's not a regression. But it's certainly a bug, and should be fixed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10045

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Assigning to myself for review. -- assignee: - fdrake keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10045

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Committed with minor changes in r85366 (release27-maint branch). -- keywords: -needs review resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue10038] Returntype of json.loads() on strings

2010-10-07 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: As I understand it, the decision to return str instead of unicode values for the simplejson module was simply inherited by the standard library. As such, it still needs to be evaluated in the context of the standard library, because

[issue10038] Returntype of json.loads() on strings

2010-10-06 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: This is related to this issue from simplejson: http://code.google.com/p/simplejson/issues/detail?id=28 This problem is why I still use simplejson 1.x; moving forward to simplejson 2.x or Python's json is unlikely. -- nosy: +fdrake

[issue976869] Stripping script extensions with distutils

2010-09-30 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: At this point, I'm more in favor of adopting something closer to the setuptools scripts based on console_scripts entry points, and dropping old-style scripts entirely (most *because* of the issues I mentioned at the start

[issue870479] Scripts need platform-dependent handling

2010-09-30 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: As noted in issue 976869, I'm very much in the camp of entry-point based generated scripts, which should clearly use the right line endings for the host platform. Hacking around with the file copy just doesn't make sense moving forward

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: My question in IRC wasn't intended to mean why are we passing settings to the constructor so my much as why are these configuration settings; sorry I wasn't clear. Have we encountered actual use cases that are not covered by the existing

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Regardless, my concerns about including delimiters and comment_prefixes as settings is irrelevant to this issue. The changes to them probably shouldn't have been part of this issue to begin with, but I'll try not to lose sleep over

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: The patch has been commited largely as-is (r84486). I'm not happy with the documentation yet: - Markup like this: .. method:: ConfigParser.getint(section, option, raw=False, [vars, default]) doesn't sit well with me

[issue7005] ConfigParser does not handle options without values

2010-09-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: I've attached a diagnostic script that I ran with Python 2.4..3.2 (current py3k HEAD); there are two output variants: old style: [section] option = None new style: [section] option This is the output I get when running

[issue7005] ConfigParser does not handle options without values

2010-09-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Attached fix test for Python 2; adjusting to Python 3 is trivial. The test could be added to 2.6 as well to protect against regressions there, though that's unlikely to be a significant issue. -- Added file: http://bugs.python.org

[issue7005] ConfigParser does not handle options without values

2010-09-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Commited as r84443 (release27-maint), r8 (py3k) -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7005

[issue7005] ConfigParser does not handle options without values

2010-08-26 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Re-opening for investigation. (The previous message really should have been a new issue.) -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7005

[issue7005] ConfigParser does not handle options without values

2010-08-26 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7005 ___ ___ Python-bugs-list

[issue2830] Copy cgi.escape() to html

2010-08-24 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Encoding the forward slash should not cause problems, but the quote “forward slash is included as it helps end an HTML entity” is confused; there's no need or additional value in escaping the forward slash. -- nosy: +fdrake

[issue1055864] HTMLParser not compliant to XHTML spec

2010-08-19 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Indeed it is. Closing, won't fix. HTMLParser tries to deal with XHTML constructs only so much as HTML ends up with that stuff, not because it's trying to handle everything. (The claimed example appears not to have been attached, anyway

[issue9584] Allow curly braces in fnmatch

2010-08-17 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: It's worth noting that the sh-like shells are far more widely used than the csh-like shells, so csh-like behavior may surprise more people. From the sh-like shell perspective, the {...,...} syntax just isn't part of the globbing handling

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-08-10 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: - Using _UNSET similar in the docs is not good; there used to be a way to note a parameter as optional. Not sure whether there is any more. - Docs for methods which take vars/default should include a note indicating where to find

[issue9551] ConfigParser.SafeConfigParser.set fails when no value provided

2010-08-10 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Committed on the release27-maint branch as 83931. -- keywords: -needs review resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-08-10 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Even I think the leading underscore screams don't use this from outside, doofus! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9421

[issue9452] configparser support for reading from strings and dictionaries

2010-08-09 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Patch committed on py3k branch in r83889. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9452

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-08-09 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: The getters should all accept a `default` argument that's used when no value is found in the configuration. If the default is given, that should be returned (without conversion), instead of raising an exception. This can be included

[issue9551] ConfigParser.SafeConfigParser.set fails when no value provided

2010-08-09 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Patch still requires a test. Sorry if I was unclear in IRC. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9551

[issue9292] Dead code in Modules/pyexpat.c

2010-08-08 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: This patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9292

[issue9452] configparser support for reading from strings and dictionaries

2010-08-05 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: (Apparently I don't have the right permissions on Rietveld.) - Docstrings should be written in the standard PEP-8 way (single line summary + additional explanation as needed following a blank line). - read_sting and read_dict should still

[issue9452] configparser support for reading from strings and dictionaries

2010-08-05 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: - Summmary lines in docstrings are one line, as Éric points out. They're summaries, so need not be complete. Use elaboration text as needed, and omit anything that's not relevant in context. An alternate wording to consider

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: 2010/8/3 Łukasz Langa rep...@bugs.python.org: 1) In 3.2 we add an alias: InterpolatingConfigParser = SafeConfigParser I'd rather see the class renamed and SafeConfigParser made the alias in 3.2. Otherwise, +1 for this plan (msg 112589

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Making ConfigParser an alias for SafeConfigParser creates a silent behavioral change. An application developer may not realize that users rely on the full ConfigParser anti-glory and end up breaking their configurations without so much

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Such constructs are notoriously tedious to grep for; patches are welcome. -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9061

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: It doesn't make sense to make any of these changes to Python 2; this really should have been separate from the documentation issue. That's probably understood by everyone, but explicit is better. Merging implementations

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: +1 to making support for `vars` consistent across the parser classes. This needs to include documentation (stand-alone + docstrings) that actually make sense; the current docs require reading the code to understand what is going

[issue9452] configparser support for reading from strings and dictionaries

2010-08-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: I agree that the existing defaults={...} should never have been added to the stdlib. It made sense in the originating application, but should have been implemented differently to keep application-specific behavior out of what eventually

[issue9452] configparser support for reading from strings and dictionaries

2010-08-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Reading from a string is certainly fairly common, though I'm pretty happy with using an io.StringIO seems reasonable and straightforward. I've never stumbled over the need to read from dictionaries as described. -- nosy: +fdrake

[issue5412] extend configparser to support mapping access(__*item__)

2010-08-02 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5412 ___ ___ Python-bugs-list mailing

[issue9292] Dead code in Modules/pyexpat.c

2010-08-02 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9292 ___ ___ Python-bugs-list mailing

[issue803422] sgmllib doesn't support hex or Unicode character references

2010-08-01 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Rejected since this didn't make it into Python 2.7. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue803422

[issue6517] configparser: add possibility to escape formatstrings

2010-07-24 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: We're in agreement; I was specifically adding weight to *not* selecting the second optoin Łukasz Langa presented: 2. We deprecate ConfigParser in the code and in the documentation. -- ___ Python

[issue9173] logger statement not guarded in shutil._make_tarball

2010-07-23 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9173 ___ ___ Python-bugs-list mailing

[issue6517] configparser: add possibility to escape formatstrings

2010-07-23 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: I disagree. The documentation should promote RawConfigParser, and note SafeConfigParser and ConfigParser as remaining for backward compatibility for existing software. Maintainers of legacy software using ConfigParser should be encouraged

[issue9173] logger statement not guarded in shutil._make_tarball

2010-07-22 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Patch looks good, but needs a test. -- keywords: +easy nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9173

[issue9328] str.__format__.__doc__ backport glitch

2010-07-21 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Wed, Jul 21, 2010 at 8:34 PM, Eric Smith rep...@bugs.python.org wrote: Although why all of the methods say string and not str isn't clear to me. Probably historical. Indeed; we used string in the docs as an informal way to say what

[issue9328] str.__format__.__doc__ backport glitch

2010-07-21 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: -fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9328 ___ ___ Python-bugs-list

[issue9305] Don't use east/west of UTC in date/time documentation

2010-07-20 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Tue, Jul 20, 2010 at 10:46 AM, anatoly techtonik techto...@gmail.com wrote: I believe the correct convention is Return timedelta This is handled inconsistently in the documentation; I'm hoping the current maintainers reinforce

[issue9305] Don't use east/west of UTC in date/time documentation

2010-07-20 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Tue, Jul 20, 2010 at 12:08 PM, anatoly techtonik rep...@bugs.python.org wrote: I've took the convention from here. I thought docs are generated from docstrings. They're not, but I don't think that really matters. Older documentation

[issue9233] json.load failure when C optimizations aren't built

2010-07-12 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. fdr...@acm.org: The json decoder doesn't pass tests when the C optimizations in the _json module aren't available. The actual test failures appear fairly superficial, but aren't the limit of the problems. Empty objects are converted to empty lists

[issue5723] Incomplete json tests

2010-07-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: This lack of tests is an issue for Python 2.6 as well. Issue 9233 might have been avoided were the pure-Python implementation tested. -- nosy: +fdrake versions: +Python 2.6 ___ Python tracker rep

[issue9233] json.load failure when C optimizations aren't built

2010-07-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: The attached test only fails for Python 2.7; removing Python 2.6 from this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9233

[issue9182] argparse: optional argument w/ narg='+' conflicts w/ positional argsument

2010-07-06 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Tue, Jul 6, 2010 at 4:33 PM, Éric Araujo rep...@bugs.python.org wrote: Using “--” to explicitly signal positional arguments is most certainly right and standard, but people have to read about that for the first time somewhere

[issue9120] Reduce pickle size for an empty set

2010-06-29 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Fred was a proponent of small pickle sizes in the past, so I am adding him to the nosy list. Thanks! I am a proponent of small pickle sizes, in cases where it matters. I'm not convinced this is such a case. The case for a small pickle

[issue9051] Improve pickle format for aware datetime instances

2010-06-25 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: As part of this, we should ensure references to common timezones, like UTC, only create references to a single instance rather than filling memory with multiple instances. One consequence of this is that shared instances should probably

[issue9056] Adding additional level of bookmarks and section numbers in python pdf documents.

2010-06-22 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Mon, Jun 21, 2010 at 11:00 PM, pengyu.ut rep...@bugs.python.org wrote: Current pdf version of python documents don't have bookmarks for sussubsection. For example, there is no bookmark for the following section

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-06-17 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3874

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread fred lore
On 8 juin, 23:44, Deadly Dirk d...@plfn.invalid wrote: I am a total beginner with Python. I am reading a book (The Quick Python Book, 2nd edition, by Vernon Ceder) which tells me that print function takes end= argument not to print newline character. I tried and here is what happens:

[issue8832] automate minidom.unlink() with a context manager

2010-06-08 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: +1 -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8832 ___ ___ Python-bugs

[issue8939] Use C type names (PyUnicode etc;) in the C API docs

2010-06-08 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8939 ___ ___ Python-bugs-list mailing

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Tue, May 25, 2010 at 1:41 PM, AdamN rep...@bugs.python.org wrote: Although I see that nowhere in the documentation. It needn't be in the urlparse documentation; the RFCs on URL syntax apply here. None of what's going on with the urlparse

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: The module is documented as supporting Relative Uniform Resource Locators, in which a value with a non-rooted path is supported using simply non/rooted/path. See the third paragraph in the Python 2.6 documentation, starting The module has

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Tue, May 25, 2010 at 3:03 PM, AdamN rep...@bugs.python.org wrote: I'm still confused about when anybody would use a relative path with a default scheme and no netloc but I'll leave that decision to you guys. The strings are not pseudo

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-07 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Fri, May 7, 2010 at 6:35 PM, Terry J. Reedy rep...@bugs.python.org wrote: This is such an advanced and rarely used feature that it hardly seems appropriate for the tutorial. The problem with just leaving it out is that learners

Re: print executed query

2010-05-03 Thread Fred C
On Apr 29, 2010, at 9:49 AM, Philip Semanchuk wrote: On Apr 29, 2010, at 12:01 PM, someone wrote: Hello! Is there a way to print a query for logging purpose as it was or will be sent to database, if I don't escape values of query by myself? cursor.execute(query, [id, somestring])

Re: print executed query

2010-05-03 Thread Fred C
, including the queries it executes. Yes you can fiddle like that: cur.mogrify(INSERT INTO test (num, data) VALUES (%s, %s), (42, 'bar')) INSERT INTO test (num, data) VALUES (42, E'bar') -fred- smime.p7s Description: S/MIME cryptographic signature -- http://mail.python.org/mailman/listinfo

[issue7540] urllib2 request does not update content length after new add_data

2010-03-10 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: The reverts in SVN look good to me; re-closing this issue as no further action is required. If there's a proposal for specific changes to urllib2 to improve diagnostics in unsupported cases, that should be detailed in a separate issue

[issue7540] urllib2 request does not update content length after new add_data

2010-03-04 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Reopening; per discussion on IRC, the change needs to be reverted on the other three branches to which it was applied. If code changes are needed to make unsupported usage fail early, they need to be considered carefully and only applied

[issue7540] urllib2 request does not update content length after new add_data

2010-03-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: This change breaks existing uses of Python 2.6.4. The mechanize library frequently re-initializes the data in the request without re-using the request. Applications (including tests) that use mechanize now break with this TypeError

[issue7540] urllib2 request does not update content length after new add_data

2010-03-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: To clarify: Multiple calls to add_data on a urllib2 request, when the request isn't being reused, are in no way invalidated by the problem initially reported. -- ___ Python tracker rep

[issue7540] urllib2 request does not update content length after new add_data

2010-03-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: I'd like to hear at least one other say-so (which can be yours if you agree this is the right thing), so there's more recognized consensus on the matter. We also need an explicit go-ahead from Barry as the release manager. At this point

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-02-28 Thread Fred Fettinger
New submission from Fred Fettinger fetti...@gmail.com: Handling of long integers is broken for arguments to sqlite functions created with the create_function api. Integers passed to a sqlite function are always converted to int instead of long, which produces an incorrect value for integers

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-02-28 Thread Fred Fettinger
Fred Fettinger fetti...@gmail.com added the comment: I've never really looked at the python source before, but this is my best guess at the problem: For the standard SELECT query: In Modules/_sqlite/cursor.c, _pysqlite_fetch_one_row() has this code: PY_LONG_LONG intval; ... } else if (coltype

[issue7005] ConfigParser does not handle options without values

2010-02-18 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Patch and documentation merged to the py3k branch (r78233). Work on this is complete. -- resolution: - accepted stage: - committed/rejected status: open - closed type: - feature request

<    1   2   3   4   5   6   >