Alex alex.gay...@gmail.com added the comment:
There are a couple places you mention not doing the optimization when specific
functions are used (e.g. dir, globals, locals), how exactly do you verify that,
given those functions could be bound to any name?
--
New submission from the_isz the_...@gmx.de:
The netrc module stops parsing passwords at # characters, which can be part of
passwords.
Tested with Python 2.7 and 3.1.
--
components: Extension Modules
messages: 121598
nosy: the_isz
priority: normal
severity: normal
status: open
title:
Mark Dickinson dicki...@gmail.com added the comment:
Force it to export that 'round' symbol in the core, perhaps?
Sure. That might involve first understanding why it's not being exported.
That's where I'm a bit stuck, especially without a Solaris system to test on.
If someone can figure
Eli Bendersky eli...@gmail.com added the comment:
I ran Misc/NEWS through rst2hml, and apart from unknown python-specific
interpreter roles, there are two warnings:
Misc/NEWS:64: (WARNING/2) Inline strong start-string without end-string.
Misc/NEWS:128: (WARNING/2) Inline emphasis start-string
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10450
___
___
Eli Bendersky eli...@gmail.com added the comment:
A fix to Misc/NEWS was committed by Georg in revision 86550. Now Misc/NEWS no
longer causes warnings with `rst2html`. Éric - if this is what you meant, the
issue can be closed.
--
___
Python tracker
Georg Brandl ge...@python.org added the comment:
Closing as won't fix.
--
nosy: +georg.brandl
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9965
Eli Bendersky eli...@gmail.com added the comment:
I will write a codecs.rst for this. Any suggestion of where in c-api/index.html
it should be linked?
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Fixed in r86552. Thanks!
--
assignee: - mark.dickinson
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
joblack johannes.bl...@gmail.com added the comment:
No it seems a problem of the installation routine. If you have
installed a program before Python it sometimes doesn't work.
On 11/20/2010 03:59 AM, Brian Curtin wrote:
Brian Curtincur...@acm.org added the comment:
joblack - are you still
Georg Brandl ge...@python.org added the comment:
Please call it codec.rst. It is probably best placed under utilities.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10439
New submission from Neil Muller drnlmuller+b...@gmail.com:
gzip._PaddedFile.__getattr__ chains out to getattr, but does so incorrectly
(found via running the numpy test suite).
The attached patch fixes this.
--
files: gzip_getattr.diff
keywords: patch
messages: 121607
nosy: Neil
Neil Muller drnlmuller+b...@gmail.com added the comment:
Add a test demonstrating the error.
--
Added file: http://bugs.python.org/file19653/gzip_getattr_test.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10465
Mark Dickinson dicki...@gmail.com added the comment:
This should now be fixed in r86553. If you have a chance to test and report
back, that would be great!
--
resolution: - fixed
stage: - committed/rejected
status: open - pending
___
Python
Jeremy Thurgood fir...@gmail.com added the comment:
Attached a patch to test for and fix the first two issues described in this
ticket.
Basically, it modifies SimpleHTTPRequestHandler.send_head() to operate on a
path already stripped of the query string and fragment rather than the
Changes by Georg Brandl ge...@python.org:
--
assignee: - orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10231
___
___
Python-bugs-list
Senthil Kumaran orsent...@gmail.com added the comment:
back-ported to release27-maint in r86554.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2244
___
Georg Brandl ge...@python.org added the comment:
Thanks for the catch, fixed in r86555.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10465
Eli Bendersky eli...@gmail.com added the comment:
While preparing a .rst document for this, I ran into a possible inaccuracy in a
comment in codecs.h:
/* Lookup the error handling callback function registered under the
name error. As a special case NULL can be passed, in which case
the
Georg Brandl ge...@python.org added the comment:
Yes, apparently the parameter was (intended to be) called error at some
point. Can you put the correction in your patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10439
Simon Cross hodges...@gmail.com added the comment:
I'm attaching a patch to relax the check in PyModule_Create2 as suggested by
the Amaury (http://bugs.python.org/issue4236#msg75409).
The patch uses PyThreadState_Get()-interp-modules == NULL to determine
whether the import machinery has been
New submission from Sibylle Koczian nulla.epist...@web.de:
Running locale.py as a module on Windows, using the Python command window,
produces this output:
C:\Python31\Liblocale.py
Locale aliasing:
Locale defaults as determined by getdefaultlocale():
Georg Brandl ge...@python.org added the comment:
Done in r86561. Thanks for the report!
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10460
New submission from Sebastian Hagen sh_pyb...@memespace.net:
io.BytesIO().readinto() does not correctly handle the case of being called on a
BytesIO object that has been seeked past the end of its data. It consequently
ends up reading into unallocated memory, and (typically?) segfaulting if
Georg Brandl ge...@python.org added the comment:
This is the old issue of casting the result of malloc() -- frowned upon in C,
but required in C++. Looking at the Python sources, most uses of PyMem_Malloc
seem to have the cast, so it doesn't seem wrong to add one here (where it
actually can
Eli Bendersky eli...@gmail.com added the comment:
Submitting a patch. What was touched:
1. Include/codecs.h - minor inaccuracy and inconsistency in a comment
2. Doc/c-api/codec.rst - new reST documentation file for the codecs.h C API
3. Doc/c-api/utilities.rst - for linking to codec.rst, per
R. David Murray rdmur...@bitdance.com added the comment:
Just as an FYI, a similar situation exists on Solaris. I had to fix one of the
Python test suite tests once because it was naively trying to rmtree the CWD.
--
nosy: +r.david.murray
___
Éric Araujo mer...@netwok.org added the comment:
with also replaces open-try-do stuff-finally-close, the correct idiom for
ensuring file handles are always closes in all VMs.
I don’t think the doc style guide is the right place, since this is a code
issue. with is advertised in
Xuanji Li xua...@gmail.com added the comment:
Included test case for the reported bug. Test fails on my machine. Also split
up test_case_1 (in order to put in the new test case cleanly)
--
keywords: +patch
nosy: +xuanji
Added file:
Éric Araujo mer...@netwok.org added the comment:
Fixed indeed.
Dave: Please open a feature request, this is a good idea.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Eli Bendersky eli...@gmail.com added the comment:
Éric, although grepping for all such references may be tricky, could you
specify the places where you did see them? I guess a few fixed places is better
than none at all.
--
nosy: +eli.bendersky
___
John Keyes johnke...@gmail.com added the comment:
I'll change the test to use TESTFN later today. Thanks for the feedback.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue809163
___
Éric Araujo mer...@netwok.org added the comment:
Certainly. Here is my secret grep:
$ cd py3k/Doc
$ grep -n --color=auto -d skip -I --exclude-dir .svn --exclude-dir .hg -R
open\(.*\).read *.rst c-api distutils documenting extending faq howto library
reference tutorial using
List without
Éric Araujo mer...@netwok.org added the comment:
Thanks for the patch John. Instead of low-level use of TESTFN, you can use
distutils.tests.support.TempdirManager to create a temporary directory and
write files to it in a few lines.
--
assignee: tarek - eric.araujo
stage: needs patch
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Thanks for the patch, it looks good, I have 2 remarks though:
- under the name name could be replaced by under the given name.
- The *search_function*'s refcount is incremented by this function.
This information is not useful to the
Changes by Éric Araujo mer...@netwok.org:
--
resolution: works for me - invalid
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10463
___
Eli Bendersky eli...@gmail.com added the comment:
Eric, I'm attaching a provisional fix for library/atexit.rst just to be sure
this is what you mean.
--
Added file: http://bugs.python.org/file19659/atexit.rst
___
Python tracker
Changes by Eli Bendersky eli...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file19660/issue10461.1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
Changes by Eli Bendersky eli...@gmail.com:
Removed file: http://bugs.python.org/file19659/atexit.rst
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
Éric Araujo mer...@netwok.org added the comment:
I will review your patch later today.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10351
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10424
___
___
Python-bugs-list
Eli Bendersky eli...@gmail.com added the comment:
Amaury,
Thanks for the review comments.
I'm attaching a fixed patch.
--
Added file: http://bugs.python.org/file19661/issue10439.2.patch
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Please also keep to 3-space indentation in directives.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10439
___
Éric Araujo mer...@netwok.org added the comment:
Yes, that’s it. Please don’t change whitespace in your patches.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
Georg Brandl ge...@python.org added the comment:
FWIW, this doesn't belong in the style guide; it is obvious that the docs
should exhibit best practice Python code, and using the with statement when
opening resources is certainly such a best practice now.
--
nosy: +georg.brandl
Eli Bendersky eli...@gmail.com added the comment:
Georg,
Thanks. Submitting fixed patch with 3-space indentation in directives.
--
Added file: http://bugs.python.org/file19662/issue10439.3.patch
___
Python tracker rep...@bugs.python.org
Eli Bendersky eli...@gmail.com added the comment:
Eric, which whitespace change do you refer to. I changed to 4-spaces
indentation in the code sample to conform to PEP-8. Shouldn't I have?
--
___
Python tracker rep...@bugs.python.org
SilentGhost michael.mischurow+...@gmail.com added the comment:
Here is the patch for Docs/library/cmd.rst
--
nosy: +SilentGhost
Added file: http://bugs.python.org/file19663/cmd.rst.diff
___
Python tracker rep...@bugs.python.org
SilentGhost michael.mischurow+...@gmail.com added the comment:
Here is the patch for Doc/library/difflib.rst
--
Added file: http://bugs.python.org/file19664/difflib.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
Changes by Xuanji Li xua...@gmail.com:
Removed file: http://bugs.python.org/file19658/issue_10464_testcase.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10464
___
Georg Brandl ge...@python.org added the comment:
Reviewed and applied in r86562. Thanks!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10439
New submission from Georg Brandl ge...@python.org:
There are a couple of functions for accessing UnicodeError subclass properties
that are needed e.g. in codec error handlers. They should be documented in
exceptions.rst.
--
assignee: d...@python
components: Documentation
messages:
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10468
___
___
Python-bugs-list
Eli Bendersky eli...@gmail.com added the comment:
From IRC:
the PyUnicode*Error_Foo access functions are not documented
they are in exceptions.c / pyerrors.h
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10468
Eli Bendersky eli...@gmail.com added the comment:
I'm trying to port the example in tutorial/stdlib2.rst, but the sample in
working with binary data record layouts fails (before my porting to 'with'...)
struct.error: unpack requires a bytes argument of length 16
--
SilentGhost michael.mischurow+...@gmail.com added the comment:
Patch for Doc/library/collections.rst
--
Added file: http://bugs.python.org/file19665/collections.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
Xuanji Li xua...@gmail.com added the comment:
Sorry, patch had a mistake
--
Added file: http://bugs.python.org/file19666/issue_10231_testcase.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10464
Mick Beaver myheartinamer...@gmail.com added the comment:
Georg,
Thanks for looking at this. Before getting your response, I decided to
take a crack at it and came up with something different. We explicitly
disagree on:
1. You had --no-blank-lines-after-declarations, but PEP 7 says:
- Function
Eli Bendersky eli...@gmail.com added the comment:
Attaching patches for library/atexit.rst and for tutorial/stdlib2.rst
--
Added file: http://bugs.python.org/file19667/issue10461.atexit.rst.diff
___
Python tracker rep...@bugs.python.org
Changes by Eli Bendersky eli...@gmail.com:
Added file: http://bugs.python.org/file19668/issue10461.stdlib2.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
Changes by Eli Bendersky eli...@gmail.com:
Removed file: http://bugs.python.org/file19660/issue10461.1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
Eli Bendersky eli...@gmail.com added the comment:
SilentGhost,
Your patches look fine. I have a doubt re collections.rst, however - about the
Python prompt. The same issue is in faq/library.rst and I didn't want to touch
it because I thought that on the prompt personally I probably wouldn't
Georg Brandl ge...@python.org added the comment:
ad 1: yes, that makes sense.
ad 2: cuddling and non-cuddling else are actually pretty evenly mixed in
the source. I didn't explicitly look at PEP 7 for this, but in that case it
should get preference.
Your suggested profile looked good,
Michael Foord mich...@voidspace.org.uk added the comment:
Reworked as a patch, including documentation and NEWS update.
--
keywords: +patch
Added file: http://bugs.python.org/file19669/getattr_static.patch
___
Python tracker rep...@bugs.python.org
Daniel Albeseder ko...@gmx.at added the comment:
current revision = svn revision 86553
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10469
___
SilentGhost michael.mischurow+...@gmail.com added the comment:
patch for Doc/library/logging.rst
Also, note the the change of the mode from `'r'` to `'rb'`. `data_to_send` is
further send through socket and therefore requires to be bytes.
I expressed my opinion in irc, but I can repeat here
SilentGhost michael.mischurow+...@gmail.com added the comment:
patch for Doc/library/logging.rst
Also, note the the change of the mode from `'r'` to `'rb'`. `data_to_send` is
further send through socket and therefore requires to be bytes.
I expressed my opinion in irc, but I can repeat here
Changes by SilentGhost michael.mischurow+...@gmail.com:
Removed file: http://bugs.python.org/file19672/logging.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
The reason for this behaviour is as follows: the internal list of handlers now
uses weak references, see
http://bugs.python.org/issue6615#msg95691
If there are no references to a handler, it can disappear at any time: and if
it does,
Changes by Michael Foord mich...@voidspace.org.uk:
Removed file: http://bugs.python.org/file19669/getattr_static.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9732
___
Changes by Michael Foord mich...@voidspace.org.uk:
--
versions: +Python 2.5 -Python 3.2
Added file: http://bugs.python.org/file19673/getattr_static.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9732
R. David Murray rdmur...@bitdance.com added the comment:
unsupported locale setting is a message that comes from the C runtime, IIUC.
Does it work on windows with 2.6?
--
nosy: +lemburg, r.david.murray
___
Python tracker rep...@bugs.python.org
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10467
___
___
Python-bugs-list
Xuanji Li xua...@gmail.com added the comment:
The issue seems to be that when shlex (the lexer that netrc uses) sees a '#'
character it thinks that the rest of the line is a comment. I am not sure what
the behavior of netrc should be - should it treat '#' as beginning a comment
only if its
Jeremy Thurgood fir...@gmail.com added the comment:
The weird behaviour is caused by newlines being treated as normal whitespace
characters and not actually causing _wrap_chunks() to break the line. This
means that it builds lines of up to 'width' characters which may contain
newlines:
text
Changes by Nick Coghlan ncogh...@gmail.com:
--
versions: +Python 3.2 -Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9732
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +brian.curtin, loewis, tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10469
___
___
Antoine Pitrou pit...@free.fr added the comment:
The core problem seems to be that the errno module has mismatching values on
your Python build (for ECONNREFUSED and EWOULDBLOCK, at least, which explains
all 4 failures). On a Windows 7 VM here:
errno.ECONNREFUSED
10061
errno.EWOULDBLOCK
Neil Muller drnlmuller+b...@gmail.com added the comment:
The attached patch grabs the os.popen documentation from python 2.7, throws
away the deprecation notes, and adds a pointer to subprocess.Popen for more
details.
--
keywords: +patch
nosy: +Neil Muller
Added file:
Michael Foord mich...@voidspace.org.uk added the comment:
Committed revision 86566.
--
resolution: - accepted
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9732
Simon Cross hodges...@gmail.com added the comment:
I made the minor changes needed to get Eli Bendersky's patch to apply against
3.2. Diff attached.
--
nosy: +hodgestar
Added file: http://bugs.python.org/file19675/issue2986.fix32.5.patch
___
Python
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10469
___
___
Jeremy Thurgood fir...@gmail.com added the comment:
Here's a doc patch for py3k. A similar patch for 2.7 (and other versions?)
might be a good idea.
--
keywords: +patch
Added file: http://bugs.python.org/file19676/issue1859_docs.diff
___
Python
Graham Poulter graham.poul...@gmail.com added the comment:
issue1574217.diff still applies against py3k as revision 86545 (offset -8
lines)
patching file Objects/abstract.c
Hunk #1 succeeded at 2500 (offset -8 lines).
Hunk #2 succeeded at 2523 (offset -8 lines).
And tests pass (./python
Ezio Melotti ezio.melo...@gmail.com added the comment:
The attached patch addresses the point 1) of msg113147.
--
keywords: +patch
Added file: http://bugs.python.org/file19677/issue9424.diff
___
Python tracker rep...@bugs.python.org
Changes by Łukasz Langa luk...@langa.pl:
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5412
___
Michael Foord mich...@voidspace.org.uk added the comment:
Applied to Python 3.2 in revision 86570.
Python 2.7 will have to be fixed after the next release as we are currently in
release candidate stage.
--
___
Python tracker rep...@bugs.python.org
Changes by Neil Muller drnlmuller+b...@gmail.com:
--
versions: +Python 3.2 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9637
___
___
Brian Curtin cur...@acm.org added the comment:
I'm not sure how that would work in terms of redistributing, and how we'd
handle it within our own build process. This close to the beta I'm -1 on adding
that API.
--
___
Python tracker
Neil Muller drnlmuller+b...@gmail.com added the comment:
The problem is that the getproxies_environment function converts all
environment variables to lower case before deciding whether to use the name.
This means that whichever ends up last in os.environment will be used.
The attached patch
Changes by R. David Murray rdmur...@bitdance.com:
--
keywords: -easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5871
___
___
Python-bugs-list
Ezio Melotti ezio.melo...@gmail.com added the comment:
I uploaded the patch on http://codereview.appspot.com/3232042 too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9424
___
Simon Cross hodges...@gmail.com added the comment:
This issue is subsumed by #10435 and can probably be closed as a duplicated.
--
nosy: +hodgestar
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8647
Simon Cross hodges...@gmail.com added the comment:
This issue is subsumed by #10435 and can probably be closed as a duplicated.
--
nosy: +hodgestar
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8646
Simon Cross hodges...@gmail.com added the comment:
This issue is subsumed by #10435 and can probably be closed as a duplicated.
--
nosy: +hodgestar
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8645
Michele Orrù maker...@gmail.com added the comment:
I'm still working on this task; the attachment shows how I'm solving the bug.
The patch is NOT yet completed, there are some problems with the unittests.
Hoping that Eric will give me a help soon.
--
keywords: +patch
nosy:
Neil Muller drnlmuller+b...@gmail.com added the comment:
#975556 and #1046092 look like they should also be superseded by this.
--
nosy: +Neil Muller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1486713
Senthil Kumaran orsent...@gmail.com added the comment:
I have doubts on the validity of this bug itself.
- First is, query and fragment are usually for the file being served from the
webserver, not on the directories. If there are characters such as '?' and '#'
in the directory names, which
Neil Muller drnlmuller+b...@gmail.com added the comment:
This should probably be solved as part of #1486713 .
--
nosy: +Neil Muller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue975556
___
Neil Muller drnlmuller+b...@gmail.com added the comment:
I think this change is makes the parser far too lenient. Something like the
explicit tolerant mode proposed in #1486713 is a better solution.
--
nosy: +Neil Muller
___
Python tracker
1 - 100 of 363 matches
Mail list logo