Changes by Arif Widi Nugroho a...@sainsmograf.com:
--
nosy: +arifwn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9665
___
___
Python-bugs-list
Hobs hobsonl...@gmail.com added the comment:
shutil.whatever with os.startfile(..., 'edit').
That's why I thought an 'auto' option might be useful--to allow the caller
to indicate that they want to respect the OS settings for open/run, if
possible.
--
Hynek Schlawack h...@ox.cx added the comment:
The patch LGTM, but Pam seemed to have problems to find your account
(http://mail.python.org/pipermail/python-committers/2012-May/002037.html) – did
you get the reply and followed up on that?
--
___
Changes by Richard Oudkerk shibt...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14930
___
Richard Oudkerk shibt...@gmail.com added the comment:
It seems the real issue here is that buffer objects are picklable (depending on
protocol) but the resulting string is not unpicklable.
There are probably lots of other examples where this happens: for instance
Exception subclasses which do
Ralf Schlatterbeck r...@runtux.com added the comment:
On Mon, May 28, 2012 at 08:15:05PM +, R. David Murray wrote:
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
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
The Using section has 4 sub-sections: one on the Python command line, + 3 on
Python usage on Windows, Linux and OS X.
I propose to add a fourth sub-section Additional Tools and Scripts (feel free
to suggest an alternative title) and under
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 9e64084f9980 by Hynek Schlawack in branch 'default':
#14835: Make plistlib output empty arrays dicts like OS X
http://hg.python.org/cpython/rev/9e64084f9980
--
nosy: +python-dev
Hynek Schlawack h...@ox.cx added the comment:
Thank you for your contribution!
But please help Pam to work out your contribution form.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Alexis Metaireau ale...@notmyidea.org added the comment:
Good catch,
One solution would be to have the pysetup script name suffixed by the
version of python is comes with. For instance, for python 3.3 it would
be pysetup3.3 (that's how it is atm).
This means that pysetup would point to
Alexis Metaireau ale...@notmyidea.org added the comment:
While I kind of agree with you, this field is proposed by the PEP 345
and had been approved as it is. It seems probably better to stick with
what's defined there mainly because any change to the PEP is a heavy
process and we won't have
New submission from Alexis Metaireau ale...@notmyidea.org:
The packaging tutorial currently talks about pysetup run install_dist and
pysetup install which aren't doing the same thing: one fetches the
dependencies while the other doesn't.
This should be stated clearly.
--
assignee:
New submission from Alexis Metaireau ale...@notmyidea.org:
The packaging.install module doesn't have a clear API defined and it's doing
a lot of indirections between all the functions to get metadata, fetch the
dependencies and install what's need to be installed.
We might be able to come
Alexis Metaireau ale...@notmyidea.org added the comment:
Did someone changed anything in the codebase regarding this (or did it solved
itself magically?)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12355
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 22b56b0b8619 by Victor Stinner in branch 'default':
Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args
and str.format(args)
http://hg.python.org/cpython/rev/22b56b0b8619
--
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Done in ace7c340d95d.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14939
New submission from Damien Cassou damien.cas...@gmail.com:
Hi,
I've just executed a dynamic program analyzer (kvasir frontend for daikon) on
the python runtime with an hello world python input. I got a lot of errors (796
errors from 61 contexts), potentially showing bugs in cpython. The
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 717632ae7b3f by Eli Bendersky in branch 'default':
Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and
subclassable.
http://hg.python.org/cpython/rev/717632ae7b3f
--
STINNER Victor victor.stin...@gmail.com added the comment:
Did you read Misc/README.valgrind? Did you compile Python using
./configure --with-valgrind?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14951
Eli Bendersky eli...@gmail.com added the comment:
I'm working on completing this issue. It will be done in stages, with each
stage committed as a separate chunk of functionality.
* Make TreeBuilder an actual exported type (subclassable) from _elementtree
* TreeBuilder constructor should accept
Damien Cassou damien.cas...@gmail.com added the comment:
I didn't read the document before. Sorry about that.
The document makes it clear that what I report is not an error. This report
should be closed.
--
status: open - closed
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d7881a371c41 by R David Murray in branch 'default':
#10839: raise an error on add of duplicate unique headers in new email policies
http://hg.python.org/cpython/rev/d7881a371c41
--
nosy: +python-dev
R. David Murray rdmur...@bitdance.com added the comment:
Committed. It is almost never the right thing to do to allow duplicates of
unique headers, but an application that does need it can create a policy
subclass and override the header_max_count method.
--
resolution: - fixed
Changes by devurandom devuran...@gmx.net:
--
nosy: +devurandom
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8537
___
___
Python-bugs-list mailing
Nick Coghlan ncogh...@gmail.com added the comment:
Added some review comments. I'm thinking the docs for str.splitlines() could
really do with an update to say explicitly that a trailing newline *doesn't*
append an empty string to the result.
--
Hynek Schlawack h...@ox.cx added the comment:
I think this issue is still valid. However, I’d favor the attached (simpler)
patch that keeps track whether self-fd is our own (i.e. a result of an open()
operation) or from outside.
A couple of notes:
- I'm not sure why your test skipped if the
Éric Araujo mer...@netwok.org added the comment:
I’m afraid that won’t work: depending on how python3 is installed, it may
install both pysetup3.3 and pysetup3, so distutils2-python3 can’t use any of
these names.
Note that on Debian and probably other systems, two packages really cannot use
Éric Araujo mer...@netwok.org added the comment:
Sorry, Alexis is right. The fields in setup.cfg directly come from the PEP.
Tarek insisted on that. We’ve only added some fields, like description-file,
but never changed the names.
--
resolution: - works for me
stage: -
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: +Usage documentation for pysetup
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12779
___
Éric Araujo mer...@netwok.org added the comment:
That’s the difference between actions and commands, which people always
understand very well when I explain it. I don’t remember if I already have
written something in my big doc patch (#12779); if you want I can check tonight
and tell you if
Éric Araujo mer...@netwok.org added the comment:
See also #13160.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14949
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
Why would you expect it to?
'a\nb'.splitlines()
['a', 'b']
'a\nb\n'.splitlines()
['a', 'b']
'a\nb\n\n'.splitlines()
['a', 'b', '']
That's exactly what I would intuitively expect, and I don't see how it could
possibly do anything
Alexis Metaireau ale...@notmyidea.org added the comment:
That would be helpful yep. I can add this in the docs if you've not done it
already.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14949
Alexis Metaireau ale...@notmyidea.org added the comment:
I'm +1 on this. Having an install command, on a distribution, makes more
sense than having an install_dist one, because of course the object is a
distribution!
--
___
Python tracker
Changes by Alexis Metaireau ale...@notmyidea.org:
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13160
___
___
Alexis Metaireau ale...@notmyidea.org added the comment:
I think it could be helpful to have this work at least somewhere so we can work
on top of it. For instance if someone wants to do changes in the documentation,
then only thing it would do now would be to cause potential merge conflicts.
Brett Cannon br...@python.org added the comment:
If you can come up with a patch to fix this in a way that is not messy then I
will be happy to look at it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14938
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Perhaps because that's what str.split() does:
a\nb.split(\n)
['a', 'b']
a\nb\n.split(\n)
['a', 'b', '']
a\nb\n\n.split(\n)
['a', 'b', '', '']
--
___
Python tracker rep...@bugs.python.org
New submission from Kristján Valur Jónsson krist...@ccpgames.com:
Running the regression tests from the build directory no longer works for
Amd64/debug, windows build.
D:\pydev\hg\cpython2PCbuild\amd64\python_d.exe -m test.regrtest
Traceback (most recent call last):
File
New submission from Richard Oudkerk shibt...@gmail.com:
The attached patch enables creation of shared objects allocated from shared
memory using memoryview objects instead of ctypes.
This enables the use of shared memory on systems where ctypes is unavailable.
The new functions/classes
R. David Murray rdmur...@bitdance.com added the comment:
That's why it's a different function :) (Well, that and universal newline
support). But I can see that explaining the difference between split and
splitlines would be worthwhile.
--
___
Sidney San Martín s...@sidneysm.com added the comment:
Thanks Hynek, awesome! It looks like it’s in now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14835
___
New submission from Ethan Furman et...@stoneleaf.us:
The weak reference docs could be clearer about when weak ref'ed objects are no
longer available. Attached doc patch attempts to do so.
--
files: weakref_doc_updates.diff
keywords: patch
messages: 161895
nosy: stoneleaf
priority:
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12779
___
___
Python-bugs-list
Petri Lehtinen pe...@digip.org added the comment:
No SQL library that I know of provides a way to escape table names. The quoting
functions are always meant to escape string parameters. This is true for
sqlite3_mprintf(), too (the %q and %Q options).
If you build table names from user input,
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 08857f4e9709 by R David Murray in branch 'default':
#10839: add new test file that was omitted from checkin
http://hg.python.org/cpython/rev/08857f4e9709
--
___
Python
New submission from Jon Oberheide j...@oberheide.org:
Hi all,
I was informed that the hmac.secure_compare() function added in 14532 is not
time-independent when processing unicode values:
The function as given is probably not timing independent if the attacker can
provide unicode values.
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6abab1a103a6 by Victor Stinner in branch 'default':
Issue #14744: Fix compilation on Windows
http://hg.python.org/cpython/rev/6abab1a103a6
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset df0144f68d76 by Victor Stinner in branch 'default':
Issue #14744: Fix compilation on Windows (part 2)
http://hg.python.org/cpython/rev/df0144f68d76
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 98bc9e357f74 by R David Murray in branch 'default':
#14796: improve calendar test coverage.
http://hg.python.org/cpython/rev/98bc9e357f74
--
nosy: +python-dev
___
Python
R. David Murray rdmur...@bitdance.com added the comment:
Thanks, Oleg.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14796
Rene Dudfield ill...@users.sourceforge.net added the comment:
Hi,
Here is an article with people trying to find a solution:
http://stackoverflow.com/questions/6514274/how-do-you-escape-strings-for-sqlite-table-column-names-in-python
The psycopg2 documentation explicitly recommends using normal
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3108331c88ec by Ned Deily in branch '2.7':
Issue #10997: Prevent a duplicate entry in IDLE's Recent Files menu.
http://hg.python.org/cpython/rev/3108331c88ec
New changeset 64a7fae544a6 by Ned Deily in branch '3.2':
Ned Deily n...@acm.org added the comment:
Patch applied for 2.7.4, 3.2.4, and 3.3.0.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10997
New submission from Jan Kratochvil jan.kratoch...@redhat.com:
People use custom Python builds setting PYTHONHOME and PYTHONPATH to these
custom builds. This may be expected to break running system Python binary but
it also unexpectedly breaks various applications which also embed Python:
$
Éric Araujo mer...@netwok.org added the comment:
An alternate idea would be to recommend more strongly in the doc that people
should not shadow standard library module names (in your example, site).
--
nosy: +eric.araujo
___
Python tracker
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +brett.cannon, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14956
___
___
Jan Kratochvil jan.kratoch...@redhat.com added the comment:
This site.py is only an example how it can happen. In reality it is due to .py
files intended for incompatible version of Python. I am not a Python
programmer to have some appropriate incompatible code at hand.
--
Éric Araujo mer...@netwok.org added the comment:
This site.py is only an example how it can happen.
site is special, as it’s one of the modules imported during Python startup.
Can you reproduce the bug with the same file named os.py? (I expect you can.)
Can you reproduce with spam.py? (I
Changes by Éric Araujo mer...@netwok.org:
--
title: custom PYTHONPATH breaks Python-embedded apps - custom PYTHONPATH may
break apps embedding Python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14956
Nicholas DiPiazza nicholas.dipia...@gmail.com added the comment:
In Python3.1.2-src/Modules/main.c
I actually had to use this to get it to work:
#if defined(MS_WINDOWS) || defined(__CYGWIN__)
#include windows.h
#ifdef HAVE_FCNTL_H
#include fcntl.h
#endif
#ifndef HAVE_FCNTL_H
#define PATH_MAX
R. David Murray rdmur...@bitdance.com added the comment:
I think it is up to each embedding application to decide if it wants to respect
the environment variables or not. I don't think that's a decision that core
can make.
Now, if we aren't providing an easy way for an embedding application
Jan Kratochvil jan.kratoch...@redhat.com added the comment:
I fully agree with site.py/os.py/spam.py but I find it offtopic for this Issue.
I do not find too important if some unsetenv/setenv gets called by the app or
by libpython. But the rules should apply for every embedded app the same,
R. David Murray rdmur...@bitdance.com added the comment:
An informational PEP sounds like exactly what I said: each application needs to
decide. The PEP would provide the information on which to base that decision,
and suggestions for how to do it.
An informational PEP on best practices for
Ronan Lamy ronan.l...@gmail.com added the comment:
Well, I can try. I have trouble wrapping my head around all the finders and
loaders, but I'm slowly understanding what does what.
What I don't know is what the expected behaviour is. Should my_pkg.__init__ be
allowed to exist as a separate
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14943
___
___
Changes by R. David Murray rdmur...@bitdance.com:
--
components: +email -Library (Lib)
nosy: +barry, r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14922
___
New submission from Nick Coghlan ncogh...@gmail.com:
The docs for str.splitlines() should explain:
1. That it uses the universal newlines approach to splitting lines
2. That unlike str.split() a trailing empty line is *not* included in the
resulting list
--
assignee: docs@python
STINNER Victor victor.stin...@gmail.com added the comment:
report_windows7: Comparaison of str%args and str.format() on Windows 7.
* Python 2.7 (64 bits)
* Python 3.2 (64 bits), narrow (UTF-16)
* Python 3.3 (*32* bits), PEP 393
The benchmark is not fair because Python 3.3 is compiled in 32
Nick Coghlan ncogh...@gmail.com added the comment:
I created #14957 to cover improving the str.splitlines docs.
For this patch, I think Chris is right that it should be using
str.splitlines(True) and joining on '' instead of '\n' so that Windows line
endings get preserved.
--
Nick Coghlan ncogh...@gmail.com added the comment:
It wouldn't be a PEP, it would be an addition to the embedding docs:
http://docs.python.org/extending/embedding.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14956
Nick Coghlan ncogh...@gmail.com added the comment:
For the more general breakage due to PYTHONHOME and PYTHONPATH, yeah, global
environment variables are bad, particularly when an OS relies on tools written
in (or embedding) Python.
That's the reason virtualenv (and 3.3's forthcoming venv)
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14956
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14744
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset fcb6c4a4ac0e by Brian Curtin in branch '3.2':
Fix #14943. Update the proper default value and list the proper argument names
in the explanation.
http://hg.python.org/cpython/rev/fcb6c4a4ac0e
New changeset
Changes by Brian Curtin br...@python.org:
--
assignee: docs@python - brian.curtin
components: +Windows
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14943
New submission from Roger Serwy roger.se...@gmail.com:
Issue8641 addressed the problem of not highlighting byte literals, but dropped
Unicode literals, as it should have. This happened months before the acceptance
of PEP414.
IDLE 3 should now highlight u as well as b, as well as valid
Dave Malcolm dmalc...@redhat.com added the comment:
I'm able to reproduce this on a RHEL 6 box, and I did some investigating. The
stray .pyc files are indeed reported by file as python 2.6 byte-compiled so
yes, it's using /usr/bin/python to byte-compile them
On RHEL 6, with
New submission from David Beck db...@ualberta.ca:
I am working on an iMac running OS 10.7, TK 8.5.11. I built a simple app
containing a Notebook widget, and with Listboxes and linked tkk.Scrollbars on
each of three tabs. All of the Scrollbars work the first time I manipulate
them, but once
Ned Deily n...@acm.org added the comment:
For what it's worth, I was able to reproduce the behavior you describe (also on
OS X 10.7 using Python 3.3 and the latest ActiveState Tcl/Tk 8.5.11).
Scrolling is a lower level GUI operation that, AFAIK, managed by Tk and OS X
frameworks, and not by
Nick Coghlan ncogh...@gmail.com added the comment:
Now I'm wondering if the problem will also manifest itself on EL rebuilds like
CentOS or Scientific Linux, since that will affect how specific we can get when
it comes to implementing a workaround.
That is, overriding __os_install_post should
Eric Snow ericsnowcurren...@gmail.com added the comment:
here's an updated patch with long options only. I'm only 95% confident about
my changes to getopt.c...there's probably a better way to do it. However, the
patch stands on its own two feet.
--
Added file:
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 94a5bf416e50 by Ned Deily in branch 'default':
Issue #14958: Change IDLE systax highlighting to recognize all string and
http://hg.python.org/cpython/rev/94a5bf416e50
--
nosy: +python-dev
83 matches
Mail list logo