Ezio Melotti ezio.melo...@gmail.com added the comment:
The attached patch seems to do the trick (not sure if it's the best way to fix
the issue though):
open('woo\raa')
open file 'woo\raa', mode 'r' at 0xb77c2aa8
open('woo\ra\'a', 'w')
open file woo\ra'a, mode 'w' at 0xb77c2b88
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14150
___
___
Stefan Krah stefan-use...@bytereef.org added the comment:
From the PEP: The buffer interface (type Py_buffer, type slots bf_getbuffer
and bf_releasebuffer, etc) has been omitted from the ABI, since the stability
of the Py_buffer structure is not clear at this time. Inclusion in the ABI
can
Éric Araujo mer...@netwok.org added the comment:
Still an issue with 3.2: zipimport considers both pyc and pyo with or without
-O.
The discussion starts here:
http://mail.python.org/pipermail/python-dev/2006-November/thread.html#69822
(This was originally closed instead of asking for another
Éric Araujo mer...@netwok.org added the comment:
I need to qualify something: I reproduced the bug with legacy/pre-PEP
3147/in-the-same-dir pyc and pyo files. One could argue that pycache
directories in 3.2+ make this irrelevant and that it’s too late for 2.x.
--
Stefan Krah stefan-use...@bytereef.org added the comment:
I'm trying to understand what you want to be able to write. Do you
perhaps have a short example? Also, to get the bigger picture: Is
this related to your strview proposal?
Nick Coghlan ncogh...@gmail.com added the comment:
Consider a Python wrapper around a bytes object, or mmap or similar that
wants to pass PEP 3118 buffer requests through to the underlying object.
Currently, there's no way to write such a delegation - the delegating class
has to be written in C.
Ezio Melotti ezio.melo...@gmail.com added the comment:
Do you think I should mention that you can still use match and a regex that
starts to ^ in combination with the start argument of r.match to match at the
beginning of a line?
I'm not sure that's necessary.
--
Robin Becker rgbec...@users.sourceforge.net added the comment:
I cheated on the building both versions. I had 32 bit python installed and with
the help of a colleague got hold of the installed files for the 64 bit version.
I noticed that distutils was looking for the 64bit files in new_lib =
Michael Foord mich...@voidspace.org.uk added the comment:
Yes, it would definitely be useful (as would a count of how far through the
test run we are [27/129] style). Getting to completing (even for testing) the
extensible unittest is something I will still do (and nose2 is being built
off
New submission from John Napster john.nap...@gmail.com:
This patch fixes some small grammar things in the docs. Hope you like my
contribution.
--
assignee: docs@python
components: Documentation
files: patch.diff
keywords: patch
messages: 154688
nosy: docs@python, joenapnap
priority:
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
stage: - patch review
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14164
___
Yury Selivanov yseliva...@gmail.com added the comment:
As expected, it seems that the patch fixes the issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14159
___
STINNER Victor victor.stin...@gmail.com added the comment:
Another frozendict usage example: freeze the dict of a new type if it contains
__final__ in its namespace.
Example:
class Classic:
... pass
...
Classic.attr=1
class FinalizedType:
... __final__=True
...
Petri Lehtinen pe...@digip.org added the comment:
See also #13868 by Retro.
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14164
___
Nick Coghlan ncogh...@gmail.com added the comment:
To answer your other question, no, strview isn't related - that's strictly a
PEP 3118 *consumer*, which is well supported from the Python side now that
memoryview is fixed.
The trick will be to allow a Python implemented object to be a PEP
Changes by Éric Araujo mer...@netwok.org:
Added file: http://bugs.python.org/file22671/getpath.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12572
___
New submission from Sven Marnach s...@marnach.net:
The function shlex.quotes() [1] does not yet exist in Python 3.2 [2], so it
should be marked New in version 3.3. in the docs.
I double-checked that it really does not yet exist in 3.2 and is not only
missing from the 3.2 documentation.
[1]:
Eli Bendersky eli...@gmail.com added the comment:
John, thanks for the contribution, however this is not a valid fix.
See the Wikipedia page for floating point:
http://en.wikipedia.org/wiki/Floating_point
No dash!
There is no need to go over the Python docs fixing such mistakes. If you
New submission from sbt shibt...@gmail.com:
Currently the only documented way to have customised pickling for a type is to
register a reduction function with the global dispatch table managed by the
copyreg module. But such global changes are liable to disrupt other code which
uses pickling.
Matthew Johnson mat.joh...@gmail.com added the comment:
I think he's right to fix those mistakes. Just see the first sentence @
http://docs.python.org/tutorial/floatingpoint.html#floating-point-arithmetic-issues-and-limitations
It reads: Floating-point numbers are represented in [...]
So as
New submission from Yury Selivanov yseliva...@gmail.com:
I think that the documentation should put more emphasis on the `return`
statement in a `finally` block.
Example:
def test():
try:
1/0
finally:
return 10
test()
10
I think we need to add a
Brett Cannon br...@python.org added the comment:
I like that argument. =) If this is not an issue in Python 3.3 then this should
be closed as out of date since it will break code if it is changed.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 1cd0688ff004 by Antoine Pitrou in branch '3.2':
Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary,
WeakValueDictionary) to return a better approximation when some objects are
dead or dying.
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset b6acfbe2bdbe by Antoine Pitrou in branch '2.7':
Issue #14159: Fix the len() of weak sets to return a better approximation when
some objects are dead or dying.
http://hg.python.org/cpython/rev/b6acfbe2bdbe
Antoine Pitrou pit...@free.fr added the comment:
2.7 didn't have the weak dict issue, but I still backported the tests there.
Closing, should be fixed now. Thanks for reporting!
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
Antoine Pitrou pit...@free.fr added the comment:
1. PyObject_Repr() should IMO be preferred (it's the abstract, high-level
function).
2. You must check the result for NULL before calling PyString_AsString() on it.
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
It entirely depends on how much you care about pyc-only/pyo-only zipfile
distributions, and compatibility between zipimport and importlib (i.e. if you
don’t plan on matching the zipimport bug in importlib, might as well fix
zipimport in 2.7 and
Changes by Berker Peksag berker.pek...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file24698/issue5626_v1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5626
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5626
___
___
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14165
___
___
Python-bugs-list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 73be78d21003 by Eli Bendersky in branch 'default':
Add missing 'versionadded' for shlex.quote; closes #14165
http://hg.python.org/cpython/rev/73be78d21003
--
nosy: +python-dev
resolution: - fixed
stage: -
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk:
The following script, minidom_test.py,
from xml.dom import minidom
data = b'''
rss xmlns:atom=http://www.w3.org/2005/Atom; version=2.0
channel
linkhttps://example.com/blog//link
atom:link href=https://example.com/rss2/;
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Updated patch available on Rietveld - I'll commit it four hours from now if
there are no objections.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14158
New submission from Fabio Menegazzo menega...@esss.com.br:
compiler.compile fails on if statement in attached file.
When executing the code
compiler.compile(contents, 'string', 'exec')
passing the attached file contents, the following error is raised:
ValueError: chr() arg not in
poq p...@gmx.com added the comment:
It is generally considered more correct to write floating-point number,
because floating-point is a compound adjective here. The hyphen clarifies
that it should be parsed as ((floating point) number) instead of (floating
(point number)).
However, in
Brian Curtin br...@python.org added the comment:
Hyphenation changes are not going to be made unless the current text is
actually incorrect, confusing, or leads to people misunderstanding what is
meant.
--
nosy: +brian.curtin
resolution: - rejected
stage: patch review -
Andrew Smith smith.cookies...@gmail.com added the comment:
I think he was trying to say that there is inconsistency in the docs... And
since you guys are all about consistency... Why the punch below the belt?
--
nosy: +Andrew.Smith
___
Python
Changes by Brian Curtin br...@python.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14164
___
___
Python-bugs-list
Brett Cannon br...@python.org added the comment:
I don't care about compatibility between zipimport and importlib.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1346572
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d2cf730de195 by Petri Lehtinen in branch '2.7':
sqlite3: Port relevant documentation changes from 3.2
http://hg.python.org/cpython/rev/d2cf730de195
New changeset 5f492397ccb8 by Petri Lehtinen in branch '3.2':
Petri Lehtinen pe...@digip.org added the comment:
All patches applied, thanks everybody!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13491
___
py.user port...@yandex.ru added the comment:
this sentence was deleted:
http://docs.python.org/py3k/library/re.html#matching-vs-searching
The “match” operation succeeds only if the pattern matches
at the start of the string regardless of mode,
or at the starting position given by the optional
py.user port...@yandex.ru added the comment:
I won't open another topic:
1)
http://docs.python.org/py3k/library/re.html#regular-expression-syntax
Most of the standard escapes supported by Python string literals
are also accepted by the regular expression parser:
\a \b \f \n
\r
Brett Cannon br...@python.org added the comment:
I have replied to Antoine's review and so generated a new patch.
At this point my bootstrap_importlib branch is 5% slower in a standard build in
the normal_startup benchmark (11% if you use a debug build).
This is still w/o profiling the Python
Changes by Brett Cannon br...@python.org:
Added file: http://bugs.python.org/file24700/131d1d107f26.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2377
___
Changes by Brett Cannon br...@python.org:
Removed file: http://bugs.python.org/file24418/f0b459af26fb.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2377
___
Antoine Pitrou pit...@free.fr added the comment:
At this point my bootstrap_importlib branch is 5% slower in a standard
build in the normal_startup benchmark (11% if you use a debug build).
I think that's fine.
--
___
Python tracker
Changes by Matthew Miller mat...@mattdm.org:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14160
___
___
Python-bugs-list
Giovanni Funchal gafunc...@gmail.com added the comment:
This is still an issue as of python 3.2.2 and is affecting me.
--
nosy: +Giovanni.Funchal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10484
Senthil Kumaran sent...@uthcode.com added the comment:
Oh Sorry. I shall fix this by this weekend.
--
assignee: - orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10484
___
Glenn Linderman v+pyt...@g.nevcal.com added the comment:
issue 13893 contains code that fixes this, and several other open issues.
Sadly, I created that code by debugging and rewriting until it worked, and
only then teased apart the specific, separable issues that I had debugged and
fixed,
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 707586c70195 by Vinay Sajip in branch '3.2':
Closes #14158: improved resilience to test files left behind.
http://hg.python.org/cpython/rev/707586c70195
New changeset a92e73dfbff6 by Vinay Sajip in branch 'default':
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13797
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
That would be caused by Martin’s change in 5d27a32ebbcc. I don’t see the docs
marking _attrs public, so I think this is not a bug.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Thanks, I forgot that :) shlex.quote used to be pipes.quote, an undocumented
but used function; do you think this should be mentioned in shlex.quote’s doc
to let people know thaw if they used pipes.quote they have an official upgrade
path, or
New submission from nkxyz niklen...@gmail.com:
print u'测试中文'
睺raceback (most recent call last):
File C:\Users\__test.py, line 96, in module
sys.exit(main())
File C:\Users\__test.py, line 84, in main
print u'娴嬭瘯涓枃'
IOError: [Errno 28] No space left on device
the unicode must start
Changes by nkxyz niklen...@gmail.com:
--
title: print unicode string error in cmd console - print unicode string error
in win8 cmd console
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14170
Éric Araujo mer...@netwok.org added the comment:
I agree with Ezio and Raymond. Tentatively editing the title to reflect the
reduction in scope.
--
nosy: +eric.araujo
title: accept keyword arguments on all base type methods and builtins - accept
keyword arguments on most base type
Éric Araujo mer...@netwok.org added the comment:
Could you give the RFC section or URI? I glanced at the page about status
codes but did not find a prohibition on POST.
--
nosy: +eric.araujo
title: urllib2 HTTPRedirectHandler not handling POST data in redirect -
urllib2
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +alexandre.vassalotti, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14166
___
___
Éric Araujo mer...@netwok.org added the comment:
This behavior surprised me for a second, but it makes sense. An example in the
docs is certainly appropriate. Would you like to suggest a place and phrasing
for it?
--
keywords: +easy
nosy: +eric.araujo
stage: - needs patch
versions:
Éric Araujo mer...@netwok.org added the comment:
Ralf, could you test my patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13719
___
___
Éric Araujo mer...@netwok.org added the comment:
Python has a lot of known and unknown bugs that need to be fixed, many missing
features needing to be implemented, and a lot of room for improvement in its
documentation. That’s why we welcome people who want to help.
You’re not the first one
Senthil Kumaran sent...@uthcode.com added the comment:
Here is a section which talks about 3xx redirection
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
10.3 Redirection 3xx
This class of status code indicates that further action needs to be taken by
the user agent in order to
Eli Bendersky eli...@gmail.com added the comment:
IMHO just leave it. The documentation is mainly for reference, i.e. describing
in the best way possible what's available *now*. If you want to mention an
upgrade path, write a blog :)
--
___
Python
Éric Araujo mer...@netwok.org added the comment:
That’s clear as mud :) If I read correctly, the text means that the user agent
is free to follow redirects without asking the user if the request is GET or
HEAD, and needs to ask the user if the request is e.g. POST. That’s in line
with what
Éric Araujo mer...@netwok.org added the comment:
OK, I’m leaving this open until the next weekly report just in case someone
interested comes here and weighs in, otherwise I’ll close as wontfix.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Is 2.7 not affected?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14158
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 81e606862a89 by Eli Bendersky in branch '3.2':
Issue #11379: add a note in xml.dom.minidom suggesting to use etree in some
cases
http://hg.python.org/cpython/rev/81e606862a89
--
nosy: +python-dev
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ccd16ad37544 by Eli Bendersky in branch '2.7':
Issue #11379: add a note in xml.dom.minidom suggesting to use etree in some
cases
http://hg.python.org/cpython/rev/ccd16ad37544
--
Eli Bendersky eli...@gmail.com added the comment:
Committed to 2.7, 3.2 and 3.3
I suppose this issue can be closed now?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11379
___
Nick Coghlan ncogh...@gmail.com added the comment:
Does compileall generate both .pyc and .pyo by default? Or do you have to run
it twice? If the latter, does pysetup handle that for you?
MvL is correct that zipimport should ignore .pyo files when __debug__ is set
and vice-versa, but the
Éric Araujo mer...@netwok.org added the comment:
Does compileall generate both .pyc and .pyo by default?
python3 -m compileall generates pyc, python3 -O -m compileall pyo. Functions
in py_compile and compileall gained an optimize argument in 3.2.
does pysetup handle that for you?
You’ll
Martin v. Löwis mar...@v.loewis.de added the comment:
What is the code page of your console (try: chcp).
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14170
___
Nick Coghlan ncogh...@gmail.com added the comment:
Status quo sounds fine then. +1 for closing it again.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1346572
___
New submission from Zooko O'Whielacronx zo...@zooko.com:
The buildbot for the Tahoe-LAFS and pycryptopp projects runs CPython under
valgrind on Fedora, and valgrind emits warnings like this:
==30127== Conditional jump or move depends on uninitialised value(s)
==30127== at 0x4C2AD01: bcmp
Gregory P. Smith g...@krypto.org added the comment:
restricting the scope of this makes sense.
also: just because an argument is listed in the docs with a name does not mean
that that name is the most appropriate; part of adding keyword support should
be choosing a sensible name. Keyword
Petri Lehtinen pe...@digip.org added the comment:
I think this issue was closed too hastily. Only the logging documentation has
been fixed.
@grubert: I agree with the assumption that /tmp is mostly used because it's
writable. In my opinion, the directory could just be left out and only leave
Ezio Melotti ezio.melo...@gmail.com added the comment:
also: just because an argument is listed in the docs with a name does
not mean that that name is the most appropriate; part of adding keyword
support should be choosing a sensible name.
I agree, but other implementations might not
Stefan Krah stefan-use...@bytereef.org added the comment:
Since this issue targeted 2.7 and 3.2:
In a brief discussion on python-dev it was decided that the 3.3 fixes
from #10181 won't be backported for a number of reasons, see:
Stefan Krah stefan-use...@bytereef.org added the comment:
Since this issue targeted 2.7 and 3.2:
In a brief discussion on python-dev it was decided that the 3.3 fixes
from #10181 won't be backported for a number of reasons, see:
Gregory P. Smith g...@krypto.org added the comment:
I kicked off a discussion on python-ideas. Lets take this there for the time
being.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8706
83 matches
Mail list logo