Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +rhettinger
title: add not about int to shuffle - add Do not supply int argument to
random.shuffle docstring
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
It seems the patch relies on a two's complement representation of
integers. Mark, do you think that's ok?
(1) Relying on two's complement integers seems fine to me: we're already
relying on it in other places in Python (e.g., bitwise
Christopher Smith smi...@users.sourceforge.net added the comment:
nosy: +rhettinger
title: add not about int to shuffle - add Do not supply int argument to
random.shuffle docstring
versions: +Python 2.7, Python 3.3
Thanks. I couldn't even figure out what my own subject meant! (I see
Eli Bendersky eli...@gmail.com added the comment:
Hi Leon,
Do you have an interest in pursuing this issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14078
___
Eli Bendersky eli...@gmail.com added the comment:
I don't think this is an enhancement to ET, because ET was not designed to be a
streaming parser, which is what is required here. ET was designed to read a
whole valid XML document. There is 'iterparse', as Antoine mentioned, but it is
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12716
___
___
Python-bugs-list
Richard Oudkerk shibt...@gmail.com added the comment:
New patch.
--
Added file: http://bugs.python.org/file25742/memoryview-weakref.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14930
Serhiy Storchaka storch...@gmail.com added the comment:
See also issue1767933.
Instead of codecs.StreamWriter better to use io.TextIOWrapper, because the
first is slower and has numerous flaws.
--
nosy: +storchaka
versions: +Python 3.3
___
Python
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2005
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 3.3 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2005
___
___
New submission from Thomas Robitaille thomas.robitai...@gmail.com:
I can build Python 2.6 to 3.2 on MacOS 10.7 with XCode 4.3.2 using solely:
./configure
make
But if I do this with Python 3.3 alpha 3 I get the following error:
gcc -framework CoreFoundation -o python.exe
Changes by Thomas Robitaille thomas.robitai...@gmail.com:
--
type: - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14932
___
___
Serhiy Storchaka storch...@gmail.com added the comment:
Mickey, you can wrap file-like object returned by urlopen with io.TextIOWrapper.
config = configparser.RawConfigParser()
config.read_file(io.TextIOWrapper(urlopen(path_config), encoding='utf-8'))
Because there is no bug and new
Walter Dörwald wal...@livinglogic.de added the comment:
An alternative would be to use an incremental encoder instead of a
StreamWriter. (Which is what TextIOWrapper does internally).
--
nosy: +doerwalter
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka storch...@gmail.com added the comment:
If you add the encoding parameter, you should also add at least errors and
newline parameters. And why not just use io.TextIOWrapper?
page.decode_content() bad that compels to read and to decode at once all of the
data, while
Hynek Schlawack h...@ox.cx added the comment:
Hello Thomas,
I presume your gcc is Apple's llvm-gcc (gcc --version output starts with
i686-apple-darwin11-llvm-gcc-4.2), which is unfortunately a known to
miscompile Python 3.3.
If you want to compile the latest Python 3.3 on OS X, use clang
Antoine Pitrou pit...@free.fr added the comment:
In the test, you should call gc.collect() so that it works on non-reference
counted implementations. Also, I would call PyObject_ClearWeakRefs() after
memory_release() and Py_CLEAR(self-mbuf), not before (in case a weakref
callback relies on
Thomas Robitaille thomas.robitai...@gmail.com added the comment:
Thanks for the quick reply - wouldn't it make sense to add a directive to the
configure script so that if the compiler matches
'i686-apple-darwin11-llvm-gcc-4.2', clang is used instead?
--
Changes by Nick Coghlan ncogh...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14703
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3d61e27cc570 by Nick Coghlan in branch '3.2':
Issue #14443: Tell rpmbuild to use the correct version of Python
http://hg.python.org/cpython/rev/3d61e27cc570
--
nosy: +python-dev
Nick Coghlan ncogh...@gmail.com added the comment:
Applied to 3.2 and trunk (I forgot to mention the issue name in the merge
commit message).
I tweaked Ross's patch slightly to:
1. Use self.python rather than sys.executable
2. Also default self.python to python3 if neither --python nor
Cory Zito mtntr...@gmail.com added the comment:
I hit this issue today with 2.7.3 (Solaris 9, Sun Studio 12).
Adding Python/pymath.o to $(BUILDPYTHON) worked for me.
Should a check in configure of is Solaris and no round should just go ahead and
add this to $(BUILDPYTHON)?
--
Nick Coghlan ncogh...@gmail.com added the comment:
I'm not sure what platform this was on, but if it was a Fedora system then
test_distutils should also be working as non-root now (see #14443)
--
nosy: +ncoghlan
___
Python tracker
Changes by Cory Zito mtntr...@gmail.com:
--
nosy: +CoryZ
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue877121
___
___
Python-bugs-list mailing
Richard Oudkerk shibt...@gmail.com added the comment:
In the test, you should call gc.collect() so that it works on non-
reference counted implementations.
I did think about using gc.collect(), but I was not sure whether it was
guaranteed to collect everything possible if you only call it
Hynek Schlawack h...@ox.cx added the comment:
Have a look at issue13241 which is dedicated to this problem, especially at
msg160081.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14932
Charles-François Natali neolo...@free.fr added the comment:
I did think about using gc.collect(), but I was not sure whether it was
guaranteed to collect everything possible if you only call it only once.
(I know nothing about garbage collectors.)
You could use support.gc_collect() for
Antoine Pitrou pit...@free.fr added the comment:
Doing it after Py_CLEAR(self-mbuf) seems to contradict
http://docs.python.org/dev/extending/newtypes.html?highlight=pyobject_clearweakrefs#weak-reference-support
which says
The only further addition is that the destructor
New submission from Antoine Pitrou pit...@free.fr:
In
http://docs.python.org/dev/extending/newtypes.html?highlight=pyobject_clearweakrefs#weak-reference-support,
you can read:
“The only further addition is that the destructor needs to call the weak
reference manager to clear any weak
New submission from Antoine Pitrou pit...@free.fr:
In Objects/genobject.c, gen_dealloc() calls PyObject_ClearWeakRefs() before
trying to finalize the generator, during which the generator object can be
resurrected. This is probably a bug, since weakrefs are supposed to be cleared
(and their
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Unfortunately, it seems like it's still failing on the RHEL 6 buildbot.
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14443
Éric Araujo mer...@netwok.org added the comment:
IIUC checking trove classifiers / requires-python or something else before
installing may be a good idea, but this bug is about something else: a project
can be half-installed. You could reproduce it with a Python 2 project with one
file
STINNER Victor victor.stin...@gmail.com added the comment:
So, do you have any comment or complain? Or can I commit the patch?
Le 24 mai 2012 11:57, STINNER Victor rep...@bugs.python.org a écrit :
STINNER Victor victor.stin...@gmail.com added the comment:
For Python 3.3, _PyUnicodeWriter
Stefan Krah stefan-use...@bytereef.org added the comment:
This is just a suggestion, but the easiest way of getting good support
for a non-mainstream platform is to provide a build slave:
http://www.python.org/dev/buildbot/
Setting up a build slave takes 20 min:
Nick Coghlan ncogh...@gmail.com added the comment:
My original report looks like a misdiagnosis. What appears to be happening is
that pysetup3.3 install is case *insensitive* (thus allowing pysetup3.3
install distutils2, but pysetup3.3 remove is case *sensitive*, thus
requiring pysetup3.3
Nick Coghlan ncogh...@gmail.com added the comment:
Dave, sending this one back in your direction. Is there a relevant difference
between rpmbuild in RHEL6 and rpmbuild in current Fedora?
--
assignee: eric.araujo - dmalcolm
___
Python tracker
Richard Oudkerk shibt...@gmail.com added the comment:
Updated patch.
--
Added file: http://bugs.python.org/file25744/memoryview-weakref.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14930
Serhiy Storchaka storch...@gmail.com added the comment:
So, do you have any comment or complain? Or can I commit the patch?
I beg your pardon, I will do a review and additional benchmarks today.
So far away I have to say, it is better to use stringlib approach, than the
massive macros, which
Stefan Krah stefan-use...@bytereef.org added the comment:
I can confirm that test_distutils runs fine on Fedora both as root
and as non-root (rpmbuild is installed).
Also, I don't see any test failures when running the whole test suite
as root. IMO this means that all remaining issues in this
New submission from Robin Schreiber robin.schrei...@me.com:
Corresponding to my previous Issue #14732 I have now applied the Heap-Type
Refactoring from PEP 341 to the _csv module. As I will apply this refactoring
for almost every Standard Module, I will bundle my PEP3121 and PEP341
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +loewis
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14935
___
___
Robin Schreiber robin.schrei...@me.com added the comment:
I was of course referring to PEP 384. Sorry for the inconvenience.
--
title: PEP 341 Refactoring applied to _csv module - PEP 384 Refactoring
applied to _csv module
___
Python tracker
New submission from Robin Schreiber robin.schrei...@me.com:
I have now applied the Heap-Type Refactoring from PEP 384 to the curses_panel
module. Currently I still provide seperate patches for the PEP 3121 and PEP 384
refactoring. As mentioned in Issue #14935 I am planning to release single
Changes by Robin Schreiber robin.schrei...@me.com:
Added file: http://bugs.python.org/file25747/curses_panel_pep3121.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14936
___
Robin Schreiber robin.schrei...@me.com added the comment:
I have now also added the PEP3121 patch for the curses_panel module.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14936
___
New submission from Francisco Gracia fgragu...@gmail.com:
I find specially nice the completion feature for filenames of IDLE when they
include long paths, something that is more mand more frequent with big disks
and infinite amounts of files.
But there is a small problem with it. If the name
Martin v. Löwis mar...@v.loewis.de added the comment:
Would you like to contribute a patch?
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14937
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14930
___
___
Python-bugs-list mailing list
Antoine Pitrou pit...@free.fr added the comment:
Updated patch.
Looks good to me!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14930
___
___
R. David Murray rdmur...@bitdance.com added the comment:
I almost applied this patch, but my gut is having second thoughts about it. I
don't think this is the correct solution. The correct solution would be to
delay the encoding of the body part until the message generation phase, and use
New submission from Ronan Lamy ronan.l...@gmail.com:
If an __init__.py file contains relative imports, doing 'import
my_pkg.__init__' or calling __import__('my_pkg.__init__') creates duplicate
versions of the relatively imported modules, which (I believe) causes cryptic
errors in some cases
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14938
___
___
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14938
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
The pre 3.3 email package does not do any header unfolding. You can make this
work by doing the header unfolding before passing it to getaddresses:
email.utils.getaddresses([''.join(m['to'].splitlines())])
[('A (B)', 'c...@d.org'),
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8a65eceea56c by Meador Inge in branch '2.7':
Issue #9041: raised exception is misleading
http://hg.python.org/cpython/rev/8a65eceea56c
New changeset a2e140b083e0 by Meador Inge in branch '3.2':
Issue #9041: raised
Changes by Meador Inge mead...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9041
___
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14928
___
___
Python-bugs-list
Tim Silk sil...@googlemail.com added the comment:
Thank you for doing this!
No problem. I've been thinking about getting involved with python development
for a while - this seemed a good place to start!
Do you have a real name so that I can credit you?
Yes (thankfully) - I've added it to
R. David Murray rdmur...@bitdance.com added the comment:
Ralf, thanks very much for this patch. I'm considering applying it. Given
that the current code breaks on parsing various legitimate constructs, it seems
like the behavior change (preserving whitespace in the non-EW parts...which IMO
Changes by R. David Murray rdmur...@bitdance.com:
--
components: +email -Library (Lib)
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13700
___
Changes by R. David Murray rdmur...@bitdance.com:
--
components: +email -Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14360
___
___
Changes by R. David Murray rdmur...@bitdance.com:
--
components: +email -Library (Lib)
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10839
___
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: r.david.murray -
components: +email
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12037
___
Changes by R. David Murray rdmur...@bitdance.com:
--
components: +email -Library (Lib)
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11783
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 47e6217d0e84 by Antoine Pitrou in branch '3.2':
Issue #14775: Fix a potential quadratic dict build-up due to the garbage
collector repeatedly trying to untrack dicts.
http://hg.python.org/cpython/rev/47e6217d0e84
Antoine Pitrou pit...@free.fr added the comment:
No problem. I've been thinking about getting involved with python
development for a while - this seemed a good place to start!
It is. You can also subscribe to the core-mentorship mailing-list if you want:
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset bc0281f85409 by Richard Oudkerk in branch 'default':
Issue #14930: Make memoryview objects weakrefable.
http://hg.python.org/cpython/rev/bc0281f85409
--
nosy: +python-dev
R. David Murray rdmur...@bitdance.com added the comment:
I'm finally getting back around to this. Torsten, could you submit a
contributor agreement, please? (http://www.python.org/psf/contrib/)
And to answer the question you had about the 'still failing' test, parseaddr
isn't currently
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: r.david.murray -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11783
___
___
Francisco Gracia fgragu...@gmail.com added the comment:
I would be delighted, but unfortunately I am a very poor programmer and do not
have the slightest idea of how all this works.
--
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14920
___
___
Python-bugs-list
Brett Cannon br...@python.org added the comment:
You can't have it both ways. If you explicitly import __init__ then it becomes
just another module to Python, but you still need the implicit package module
(i.e. without the __init__ name) for everything else to work since so much of
the
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14938
___
STINNER Victor victor.stin...@gmail.com added the comment:
So far away I have to say, it is better to use stringlib
approach, than the massive macros, which are more difficult
to read and edit.
Ah, you don't like the two macros in longobject.c. Functions to write digits
into a string may be
R. David Murray rdmur...@bitdance.com added the comment:
My original fix for this for email6 got lost in a refactoring. Here is a patch
that fixes it in the code I recently checked in. It may not cover all the
headers that should be unique, since I haven't implemented parsers for all
Roger Serwy roger.se...@gmail.com added the comment:
The open_completions method in AutoComplete.py is where the bug exists. When
mode == COMPLETE_FILES, the code searches for characters within the ASCII set,
plus a few others contained in FILENAME_CHARS.
Attached is a patch to also include
Serhiy Storchaka storch...@gmail.com added the comment:
I just sent you a patch which does not use any macros or stringlib.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14744
___
STINNER Victor victor.stin...@gmail.com added the comment:
Functions to write digits into a string may be appropriate
in the stringlib.
Oh, stringlib is specific to unicodeobject.c: it cannot be used outside.
--
___
Python tracker
New submission from Nick Coghlan ncogh...@gmail.com:
Command line documentation for pyvenv must be provided under
http://docs.python.org/dev/using/index.html before 3.3 is released.
--
assignee: docs@python
components: Documentation
messages: 161815
nosy: docs@python, ncoghlan,
New submission from Nick Coghlan ncogh...@gmail.com:
Command line documentation for pysetup must be provided under
http://docs.python.org/dev/using/index.html before 3.3 is released.
--
messages: 161816
nosy: eric.araujo, ncoghlan, tarek
priority: deferred blocker
severity: normal
New submission from Nick Coghlan ncogh...@gmail.com:
The following docs should be updated based on the automatic PATH manipulation
in the updated installer:
http://docs.python.org/dev/using/windows.html#using-python-on-windows
The section on script execution should also mention the -m switch
Brian Curtin br...@python.org added the comment:
#14668
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14941
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
superseder: - Document the path option in the Windows installer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14941
___
Nick Coghlan ncogh...@gmail.com added the comment:
See #14941 for a couple of other issues I noticed with the current Windows docs
(specifically, -m means finding the stdlib location could probably be
de-emphasised and the docs on compiling should be replaced with a reference to
the devguide)
New submission from Eric Snow ericsnowcurren...@gmail.com:
Nick Coghlan suggested[1] exploring an easier spelling for type(name, (), {})
in the C API. I've attached a patch that adds a function that does so:
_PyType_New(). It's private in the patch, but only because I am reticent to
expand
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
components: +Interpreter Core
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14942
___
Éric Araujo mer...@netwok.org added the comment:
I agree the doc needs work (I have a patch in progress), but don’t think it
should be in “Python Setup and Usage” any more than pydoc or 2to3 or -m
unittest, so suggest this be closed in favor of #12779.
--
New submission from Glenn Linderman v+pyt...@g.nevcal.com:
My first time to use winreg and I am sure that some of this report is
documentation, but depending on behavior in other versions, maybe it is a
regression in code as well, but I doubt it.
I'm reading the 3.3 documentation, but using
Terry J. Reedy tjre...@udel.edu added the comment:
Lennart, I saw your response on StackOverflow ;-).
--
nosy: +terry.reedy
resolution: out of date -
stage: committed/rejected - test needed
status: closed - open
versions: +Python 3.3 -Python 2.6, Python 2.7
Éric Araujo mer...@netwok.org added the comment:
I would document it in library/venv, just like other tools are documented in
the relevant module docs. I’m nonetheless +1 to listing all scripts installed
by Python in the Setup and Usage docs, with links.
--
nosy: +eric.araujo
Changes by Frank Wierzbicki fwierzbi...@gmail.com:
--
nosy: +fwierzbicki
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14895
___
___
Ronan Lamy ronan.l...@gmail.com added the comment:
my_pkg.__init__ isn't treated as just another module but as a package. That is
the reason why the bogus my_pkg.__init__.module1 is created, I guess:
import sys
sorted(name for name in sys.modules if name.startswith('my_'))
[]
import
Ronan Lamy ronan.l...@gmail.com added the comment:
Grmf. I didn't mean to change the status.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14938
Nick Coghlan ncogh...@gmail.com added the comment:
No, we need to start using the Setup Usage docs *more*, not less.
All tools with useful command line behaviour (especially those that are
directly installed as scripts) should eventually be documented here.
The fact this has historically
Terry J. Reedy tjre...@udel.edu added the comment:
I am reopening just as a reminder to revise the comment.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12510
___
Nick Coghlan ncogh...@gmail.com added the comment:
See my reply on #14939. We need to start getting command line usage information
*out* of the standard library reference and documenting it here.
--
nosy: +ncoghlan
___
Python tracker
Changes by Nick Coghlan ncogh...@gmail.com:
--
Removed message: http://bugs.python.org/msg161829
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14942
___
Nick Coghlan ncogh...@gmail.com added the comment:
See my reply on #14939. We need to start getting command line usage information
*out* of the standard library reference and documenting it here.
--
___
Python tracker rep...@bugs.python.org
New submission from Nick Coghlan ncogh...@gmail.com:
pydoc is installed as a script by Python. It should be documented under
http://docs.python.org/dev/using/index.html.
--
assignee: docs@python
components: Documentation
messages: 161831
nosy: docs@python, ncoghlan
priority: normal
New submission from Nick Coghlan ncogh...@gmail.com:
Some stdlib modules have officially documented and supported behaviour when
executed via -m. These should be referenced from the Setup Usage
documentation at http://docs.python.org/dev/using/index.html
Current candidates:
python -m
1 - 100 of 129 matches
Mail list logo