Jeff Bradberry jeff.bradbe...@gmail.com added the comment:
As it turns out, someone had previously made this adjustment to str()
and unicode(). My updated patch adds this behavior to unicode.decode
and unicode.encode, adds a couple of tests to test_unicode.py, and
updates the documentation to
Georg Brandl ge...@python.org added the comment:
Added in r74865.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6912
___
Changes by Georg Brandl ge...@python.org:
--
assignee: - loewis
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6915
___
___
Marc-Andre Lemburg m...@egenix.com added the comment:
The patch looks fine, the idea is good as well.
I'm just a little worried about the performance impact this might have
(not much though).
Could you run a quick comparison of before applying the patch compared
to after the patch is applied,
Martin v. Löwis mar...@v.loewis.de added the comment:
Please do try this out on your system. Installing autoconf locally is
really not difficult: download 2.61, then do
./configure --prefix=$HOME/ac261
make
make install
This will give you $HOME/ac261/bin/auto{conf|header}; automake is not
Martin v. Löwis mar...@v.loewis.de added the comment:
Your patch looks right, although I have a few style issues:
- the if chaining looks complicated: we don't usually have an else when
the if returns
- make sure you use tabs consistently with the rest of the file
- it may be better to use
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
It will seem to work for simple scripts, but many extension modules
won't behave properly because:
- some API functions (PyFile_AsFile, many PyRun_*functions,
PyMarshal_*+FromFile) pass FILE* structures, which differ between
instances of
Mark Dickinson dicki...@gmail.com added the comment:
Do the remove_history_item and replace_history_item functions also need
the off-by-one adjustment?
--
nosy: +marketdickinson
___
Python tracker rep...@bugs.python.org
anatoly techtonik techto...@gmail.com added the comment:
This bug may be fixed. Unfortunately I do not possess original setup
anymore. The primary issue is still issue648658 and that affects bzr +
launchpad integration, XML-RPC access to bugzilla and probably more.
--
anatoly techtonik techto...@gmail.com added the comment:
And I want to add that I am glad that is finally fixed, so I really
appreciate the work people done in this direction in their free time.
--
___
Python tracker rep...@bugs.python.org
Ronald Oussoren ronaldousso...@mac.com added the comment:
Mark: yes those functions need to be changed as well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6877
___
New submission from Pascal Chambon chambon.pas...@gmail.com:
It seems the properties of the write methods of these two classes are
mixed up in documentation. I've checked the sources, and actually it
seems the behviour is inverted :
rawiobase streams, which can be pipes or other limited streams,
Georg Brandl ge...@python.org added the comment:
This patch fixes it (seems like a refactoring oversight, I used the
UTF16 decoder for reference, where it works fine) and adds a test,
assigning to MAL for review.
Marking as a release blocker so that 2.6.3 won't get released without a fix.
Changes by Georg Brandl ge...@python.org:
--
assignee: georg.brandl - pitrou
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6929
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2517
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
The (en|dis)able_interspersed_args accessors are already documented, so
I see no reason to document the attribute as well...
--
nosy: +georg.brandl
resolution: - works for me
status: open - pending
Marc-Andre Lemburg m...@egenix.com added the comment:
The patch looks good. Thanks.
Aside: This is what you get when using too many single character
variable names in a function...
The function should really do just one cast to (unsigned char *) at the
very top and then work with that variable
Tarek Ziadé ziade.ta...@gmail.com added the comment:
To be able to do this fix, I also need to change the way commands are
registered in Distutils.
Right now, Distutils scans packages that were provided as command
packages and just adds all commands from the namespace, using the class
name.
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
priority: - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6516
___
___
Python-bugs-list
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
resolution: - accepted
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1180
___
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
priority: critical - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1180
___
___
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
assignee: - tarek
priority: - low
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3984
___
Changes by S Arrowsmith si...@chiark.greenend.org.uk:
--
nosy: +siona
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6925
___
___
Python-bugs-list
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
resolution: - accepted
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue793069
___
Georg Brandl ge...@python.org added the comment:
I'm leaving a refactoring to someone with more time :)
Committed in r74869, backported to 2.6 in r74870.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Hm, first, which version of the documentation are you looking at?
For the new IO lib, you should probably refer to the current py3k docs:
http://docs.python.org/py3k/library/io.html
Then, the documentation looks confused indeed. But your
Antoine Pitrou pit...@free.fr added the comment:
I might add, in case it wasn't clear, that you will only encounter a raw
IO object (rather than a buffered one) if you construct one directly, or
if you give buffering=0 to open().
--
___
Python
Georg Brandl ge...@python.org added the comment:
Free variables *are* returned by locals(). (Note that globals *aren't*
free variables.) For example, try this:
def f():
x = 1
def g():
print locals()
g()
f()
--
nosy: +georg.brandl
___
Changes by Georg Brandl ge...@python.org:
--
assignee: - georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6925
___
___
Python-bugs-list
Eric Smith e...@trueblade.com added the comment:
The patch looks okay to me, and solves the issue on my Fedora box.
But perhaps a context manager in a with block would be clearer? I've
attached a patch.
--
Added file: http://bugs.python.org/file14908/issue6882-contextlib.diff
Robert Lehmann lehman...@gmail.com added the comment:
I think you're misquoting Python's shelve module documentation in your
first sentence. The documentation says:
By default modified objects are written only when assigned to the shelf
[...]. If the optional writeback parameter is set to True,
Thomas Heller thel...@ctypes.org added the comment:
Since ctypes should stay compatible with Python versions down to 2.4, a
with block cannot be used.
Of course would closing the object returned by os.popen() explicitely be
better style, but I wonder what the real problem is. My observations
Thomas Heller thel...@ctypes.org added the comment:
Would you like to work on a patch?
--
versions: +Python 2.7, Python 3.0, Python 3.1, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6729
Changes by Radim Novotny novotny.ra...@gmail.com:
--
nosy: +naro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6918
___
___
Python-bugs-list
New submission from Jon Foster jon.fos...@cabot.co.uk:
The documentation for the C API function PyUnicode_DecodeUTF16() does
not match the code.
If *byteorder is 1 or -1, the documentation says that the function looks
for a BOM. It doesn't. This patch updates the documentation to match
the
Gregory P. Smith g...@krypto.org added the comment:
For reference, this is related to http://bugs.python.org/issue6721 but
deals with the C API side of things for an atfork mechanism to be used by
extension modules.
--
nosy: +gregory.p.smith
___
Gregory P. Smith g...@krypto.org added the comment:
issue 6923 has been opened to provide a C API for an atfork mechanism for
use by extension modules.
--
components: +Library (Lib)
___
Python tracker rep...@bugs.python.org
Eric Smith e...@trueblade.com added the comment:
The py3k version of the file already contains 3.x only code, and it's
missing the comment at the top that it should be compatible. But it's
not really a big deal to me.
The py3k version also already has some try/finally logic on some popen
calls
New submission from Heiðar Rafn Harðarson heidar.r...@hrolfsskali.net:
Relatively small set of lines with differences in most lines can destroy
the performance of difflib.HtmlDiff.make_table and difflib.ndiff.
I am using it like this:
...
htmldiffer = HtmlDiff()
return
Changes by Heiðar Rafn Harðarson heidar.r...@hrolfsskali.net:
--
title: awful performance in difflib: ndiff and HtmlDiff - dreadful performance
in difflib: ndiff and HtmlDiff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6931
Martin v. Löwis mar...@v.loewis.de added the comment:
If you do not *want* to change it, that is your prerogative, but it
*can* definitely work.
I don't believe it can work; Amaury has already given a number of
reasons. If you still believe otherwise, and want to see something
change, please
Eric Smith e...@trueblade.com added the comment:
Indeed, the code that introduced this bug was in r68489, so it was
written after Guido went through the module and cleaned it up to use
try/finally. And since r68489 was a merge of r68487, the change was
originally made on the 2.x version (which
Thomas Heller thel...@ctypes.org added the comment:
The py3k version of the file already contains 3.x only code, and it's
missing the comment at the top that it should be compatible. But it's
not really a big deal to me.
Yes, I had deleted the comment since the 3.x code cannot be compatible
Changes by Thomas Heller thel...@ctypes.org:
--
assignee: theller - eric.smith
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6882
___
Joel Martin pythonb...@martintribe.org added the comment:
I can reproduce the problem (or at least get the same symptom) by doing
this (in 2.4.6, 2.5.4 and 2.6.2):
import subprocess, signal
signal.signal(signal.SIGCLD, signal.SIG_IGN)
subprocess.Popen(['echo','foo']).wait()
The echo command
New submission from Robert Lehmann lehman...@gmail.com:
I'm reopening issue5483 by Zhigang Wang (zhigang) as a separate bug.
Shelves that are still open when Python terminates will try to sync. If
writeback=True, this pickles cached items.
In this example, serialization of Test() re-imports
Changes by Robert Lehmann lehman...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file14913/shelve-warning.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6932
___
Robert Lehmann lehman...@gmail.com added the comment:
I addressed the other bug you were experiencing in issue6932.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5483
___
Nikolaus Rath nikol...@rath.org added the comment:
I can give it a shot if you give me a rough idea where I have to make
the appropriate changes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6729
Georg Brandl ge...@python.org added the comment:
Fixed docs (a bit differently) in r74876.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6932
Skip Montanaro s...@pobox.com added the comment:
Georg The (en|dis)able_interspersed_args accessors are already
Georg documented, so I see no reason to document the attribute as
Georg well...
But it is documented in the class's docstring and there are no docstrings
for the methods.
Georg Brandl ge...@python.org added the comment:
The methods do have docstrings (trunk rev, line 1283 and 1291).
And usually, when there are accessors for a property, they are the
preferred way to change it.
Anyway, I don't see a reason to do something here, so please propose a
patch if you
Pascal Chambon chambon.pas...@gmail.com added the comment:
Allright, then only rawIoBase's documentation is wrong... and I'll have
to modify my work-in-progress library to mimic FileIo more accurately.
Thansk for teh info B-)
--
___
Python tracker
Pascal Chambon chambon.pas...@gmail.com added the comment:
I forgot to note - yep I was actually improperly looking at the python
2.6 documentation, which is erroneous ocncerning the io module.
But the py3k doc seems to summarize it allright B-)
--
New submission from Moray Grieve m...@progress.com:
The attached file has an example where a Tk GUI is launched as a
seperate thread - this all works fine in Python 2.5, but in Python 2.6
the thread hangs.
The issue seems to be in the line;
self.messageBoxDetails.insert(INSERT, Hello world)
Moray Grieve m...@progress.com added the comment:
I should say this is running on Windows XP
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6933
___
Santhosh Thottingal santhosh.thottin...@gmail.com added the comment:
Attached the testcases as a patch to Lib/test/test_locale.py
--
Added file: http://bugs.python.org/file14915/test_locale.py.diff
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Checked in a bunch of corrections and precisions in r74879, and r74880.
--
resolution: - fixed
status: open - closed
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
Patrick Näf herzb...@herzbube.ch added the comment:
To be able to do this fix, I also need to change the way commands are
registered in Distutils.
Hm, I thought commands were registered in the setup() function with the
cmdclass dict. Like this:
setup(
# test is the name that should be
New submission from Svetoslav Agafonkin svet...@gmail.com:
postflight.framework fails during installation:
. . .
Sep 17 17:36:53 mcfro Installer[1613]: run postflight script for Python
Framework
Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: /Volumes/Python
Changes by Svetoslav Agafonkin svet...@gmail.com:
Removed file: http://bugs.python.org/file14916/postflight.framework.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6934
___
Changes by Svetoslav Agafonkin svet...@gmail.com:
Added file: http://bugs.python.org/file14917/postflight.framework.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6934
___
Eric Smith e...@trueblade.com added the comment:
Yes, I'll take care of this.
I can't think of any way to add a test that the zombie process doesn't
exist, but if anyone has an idea I'd like to hear about it.
--
___
Python tracker
Travis H. travis+w-python@subspacefield.org added the comment:
Simplified if/else chaining
Uploading here before testing on new machine (m4 was too old on previous
machine)
--
Added file: http://bugs.python.org/file14918/foo.txt
___
Python
Jeff Bradberry jeff.bradbe...@gmail.com added the comment:
Before:
~/python2.7$ ./python -mtimeit u'Andr\202 x'.encode('ascii', 'replace')
100 loops, best of 3: 1.8 usec per loop
After:
~/python2.7-patched$ ./python -mtimeit u'Andr\202 x'.encode('ascii',
'replace')
100 loops, best of
Changes by Matías Ribecky m...@mribecky.com.ar:
--
nosy: +mribecky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5207
___
___
Python-bugs-list
Travis H. travis+w-python@subspacefield.org added the comment:
I applied the same patch to Python 2.6.2 and believe that I got the
tab/space situation worked out so that it's consistent with the rest of
posixmodule.c
I also executed autoconf to convert configure.in to configure, and
judging
Changes by Svetoslav Agafonkin svet...@gmail.com:
--
title: postflight.framework script (from the Mac OS X .dmg installer) fails
(patch given). - {PATCH} postflight.framework script (from the Mac OS X .dmg
installer) fails.
___
Python tracker
Changes by Svetoslav Agafonkin svet...@gmail.com:
--
title: {PATCH} postflight.framework script (from the Mac OS X .dmg installer)
fails. - [PATCH] postflight.framework script (from the Mac OS X .dmg
installer) fails.
___
Python tracker
Marc-Andre Lemburg m...@egenix.com added the comment:
Perfect. Thanks for checking.
Benjamin, could you please check this in ? Thanks.
--
assignee: - benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6300
Changes by Thomas Heller thel...@ctypes.org:
--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5042
___
Thomas Heller thel...@ctypes.org added the comment:
The problem is the implementation of the current __init__ method, in
Modules/_ctypes/_ctypes.c, line 4024. Rewritten in Python, and slightly
simplified it looks like this:
def __init__(self, *args, **kw):
The current BUGGY
Jason R. Coombs jar...@jaraco.com added the comment:
Heh. Me neither.
Is it possible to use something like Cython to generate the C code?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5042
Jason R. Coombs jar...@jaraco.com added the comment:
That was easier than I thought. The generated code is _ugly_ but it did
seem to be able to generate it.
I created init.pyx
{{{
class X(object):
def __init__(self, *args, **kw):
This is how the Structure's
Benjamin Peterson benja...@python.org added the comment:
I still have a few things I would like changed:
- Instead of listing which methods take keyword arguments at the top of
the section, I would prefer that each used the versionchanged: 2.7
directive and indicated the added ability to use
nh2 n...@deditus.de added the comment:
Me too. This makes developing applications with good localizations in
Python really difficult.
--
nosy: +nh2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
Changes by Georg Brandl ge...@python.org:
--
assignee: - loewis
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6895
___
___
Bill Janssen bill.jans...@gmail.com added the comment:
Looks like 1431 was closed by removing a line from the documentation, so
it's not surprising that it's not clear.
--
nosy: +janssen
___
Python tracker rep...@bugs.python.org
New submission from Mitchell Model m...@acm.org:
Footnote 1 in section 2.1 of the Tutorial and the example of invoking
Python in the middle of the page need their version number upped to 3.2
in both the invocation and the greeting.
The same page in the 3.1 documentation should have the 'a'
New submission from Mitchell Model m...@acm.org:
Section 2.1 of the tutorial describes using import sys; sys.exit() if ^D
or ^Z doesn't work. However, both quit() and exit() work, as documented
in the Built-in Constants section of the Library documentation. Is
there something about them that
Changes by Jim Baker jba...@zyasoft.com:
--
nosy: +jbaker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4111
___
___
Python-bugs-list mailing list
Terry J. Reedy tjre...@udel.edu added the comment:
Except for the variable name and 3.1 print(), that is exactly what I
tested before posting:
{}
Was 2.x different?
Anyway, from Wikipedia: In computer programming, a free variable is a
variable referred to in a function that is not a local
New submission from aaditya sood aadi...@sood.net.in:
On a Snow Leopard system, doing this core dumps:
import multiprocessing
lck1=multiprocessing.Lock()
with lck1:
print foo
The stack trace:
Process: Python [23100]
Path:
aaditya sood aadi...@sood.net.in added the comment:
Additional Info: Snow Leopard is shipping with Python 2.6.1 64 bit build.
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6937
Ned Deily n...@acm.org added the comment:
Reproducible here. Fails with Apple 2.6.1 in 64-bit mode but *not* in
32-bit mode. Also does not fail on 10.6 with recent 64-bit 4-way trunk
built on 10.5.
$ arch -i386 /usr/bin/python2.6
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1
85 matches
Mail list logo