New submission from Scott Dial sc...@scottdial.com:
I'm not sure if it's intended to be a supported workflow, but I personally have
come to like using mq for projects where I am an outsider submitting small
changes as patches. However, this appears to be a broken workflow due to way
Johannes Schönberger johannes.schoenber...@tum.de added the comment:
sorry, I totally forgot about this...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7769
___
July Tikhonov july.t...@gmail.com added the comment:
There is an XXX just before the definition of ast_error. Wouldn't it be
useful?
The idea is to merge ast_error() and ast_error_finish().
This requires redefinition of most functions in ast.c, adding const char
*filename to their parameters.
Ezio Melotti ezio.melo...@gmail.com added the comment:
The svn repos and viewvc won't disappear soon because they are used for other
things (e.g. the tracker). I think it's better to avoid redirects until svn
and/or viewvc are definitely gone.
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
That's why I thought that calling PyErr_NormalizeException with the new
tuple is the simplest thing to do, becuase I guess that'll take care of
all fields automatically.
You could also call PyErr_NormalizeException at the beginning,
Lars Gustäbel l...@gustaebel.de added the comment:
If I understand correctly, the solution to your problem would be to use the
stream mode w| instead of w. Could you please try that?
--
assignee: - lars.gustaebel
___
Python tracker
Ned Deily n...@acm.org added the comment:
I've added a more prominent warning to the 3.2 download page
(http://python.org/download/releases/3.2/) along the lines suggested by Raymond
(although I wasn't able to get it formatted as a separate line without causing
other spacing to change):
*
Roundup Robot devnull@devnull added the comment:
New changeset c731e02472c5 by Ned Deily in branch '2.7':
Issue #5622: Fix curses.wrapper to raise correct exception if curses
http://hg.python.org/cpython/rev/c731e02472c5
--
nosy: +python-dev
___
Antoine Pitrou pit...@free.fr added the comment:
Can't we simply add os.xlistdir() leaving listdir() as is?
We could, but someone must:
1) provide a patch
2) demonstrate a significant improvement in some real-world situation
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
The svn repos and viewvc won't disappear soon because they are used
for other things (e.g. the tracker). I think it's better to avoid
redirects until svn and/or viewvc are definitely gone.
The redirect is only for the py3k branch, something
Graham Wideman initcont...@grahamwideman.com added the comment:
(Not clear how to reopen this issue. Hopefully my change here does that.)
OK, so as it currently stands, backslash at end of string is prohibited in the
interests of allowing backslash to escape quotes that might be embedded
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +georg.brandl
stage: - needs patch
type: feature request - behavior
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11450
New submission from Graham Wideman initcont...@grahamwideman.com:
This is a copy of issue 1271 because I couldn't find a way to reopen it.
So, repeating my comment here:
As it currently stands, backslash at end of string is prohibited, apparently in
the interests of supposedly allowing
Roundup Robot devnull@devnull added the comment:
New changeset 6b6b8af33811 by Ned Deily in branch '3.1':
Issue #5622: Fix curses.wrapper to raise correct exception if curses
http://hg.python.org/cpython/rev/6b6b8af33811
New changeset e6c45cd46cb2 by Ned Deily in branch '3.2':
Issue #5622:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1271
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
I reopened #1271, please continue the discussion there.
--
nosy: +ezio.melotti
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - Raw string parsing fails with backslash as last character
Changes by Ned Deily n...@acm.org:
--
assignee: - ned.deily
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5622
Changes by SilentGhost ghost@gmail.com:
--
nosy: +SilentGhost
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11450
___
___
Python-bugs-list
Changes by July Tikhonov july.t...@gmail.com:
Removed file: http://bugs.python.org/file21061/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11441
___
Nadeem Vawda nadeem.va...@gmail.com added the comment:
I don't seem to be able to reproduce the failure in test_platform.
Nevertheless, the behaviour is broken. Here's a patch that should fix it
without allocating too much extra space.
--
keywords: +patch
nosy: +nvawda
Added file:
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Ah, now I see - the code that fails isn't test_platform, it's the regrtest code
that prints out the version info at the beginning of the test results. This
doesn't get displayed when you explicitly tell regrtest what tests to run
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
r55334 removed popen2, popen3 and popen4 from the os module from Python 3
(before the 3.0 release), but not os.popen.
Python 3.2 has now
Yaroslav sbojc...@gmail.com added the comment:
Ok, i try that example in new versions 3+, and it works there. Thanks
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11443
Roundup Robot devnull@devnull added the comment:
New changeset 0f9e5042907c by Antoine Pitrou in branch '3.1':
Issue #11450: Don't truncate hg version info in Py_GetBuildInfo() when
http://hg.python.org/cpython/rev/0f9e5042907c
New changeset 605c74139754 by Antoine Pitrou in branch '3.2':
Merge
Antoine Pitrou pit...@free.fr added the comment:
Thanks you for the patch! Fixed now.
--
nosy: +pitrou
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
I'm now using a completely brain-damaged way to have two 3.x python(1)s
installed: symlinks; i.e. 3.2rc2 is ~/usr/opt/.py-3.2rc2 and tip is
~/usr/opt/.cpython. Whenever i need to test the thing i'm working on
in my free time
Daniel Urban urban.dani...@gmail.com added the comment:
You could also call PyErr_NormalizeException at the beginning, and
update the fields directly in the PySyntaxErrorObject structure. No
need to deal with any tuple.
Sorry, but I don't really understand. If I call
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
hmm, you are right, of course. I forgot that e.args is part of the SyntaxError
members.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11441
Changes by SilentGhost ghost@gmail.com:
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11435
___
___
Python-bugs-list
Ronald Oussoren ronaldousso...@mac.com added the comment:
It is --enable-shared that is the culprit, but in the negated form...
The OSX linker will search the entire link path for a shared library before
trying to look for a static library. As a workaround you could use
'--enable-shared', and
Éric Araujo mer...@netwok.org added the comment:
Checked distutils2 too, it’s okay.
--
type: compile error - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9270
___
Sandro Tosi sandro.t...@gmail.com added the comment:
but that will generate class collections.abc.Container as text in the first
column of the table: do you really like it? I don't :)
--
___
Python tracker rep...@bugs.python.org
New submission from Aldona Majorek pyt...@ada.majorek.org:
asyncore.file_wrapper duplicates file descriptor of given file and closes it in
it's close method.
But unlike socket.socket class it does not automatically call close when object
is garbage collected.
Users of regular sockets and
Ezio Melotti ezio.melo...@gmail.com added the comment:
Apparently during a merge from trunk (r72477) the addCleanup and other methods
ended up in 3.1rc1, even if they are documented as new in 3.2. I'll update the
doc to say new in 3.1.
--
nosy: +ezio.melotti
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
This sounds even more silly now, but i can't reproduce the problem
any more!
I could do so easily this noon, before i've opened this issue!
You *do* see the tracebacks!
I wanted to (try to) write a patch (use
New submission from Ross Lagerwall rosslagerw...@gmail.com:
While importing most modules has little effect on the start up time,
importing urllib.request seems to take a considerable time.
E.g.: without importing urllib.request:
real0m0.072s
user0m0.070s
sys 0m0.000s
with importing
New submission from Michael Foord mich...@voidspace.org.uk:
It is valid in CPython to create a new type with non-string keys in the dict.
This is a problem for other implementations (neither pypy nor jython support
it).
This should raise a warning.
--
components: Interpreter Core
Yuval Greenfield ubershme...@gmail.com added the comment:
I fixed the bugs I found, added tests and documentation. What do you guys think?
--
keywords: +patch
Added file: http://bugs.python.org/file21063/zipfile.remove.patch
___
Python tracker
Alex alex.gay...@gmail.com added the comment:
2 ways to do it:
class A(object):
locals()[42] = abc
or
type(A, (object,), {42: abc})
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11455
Michael Foord mich...@voidspace.org.uk added the comment:
Note that other implementations not supporting this has been agreed by Guido.
The language spec says that the class dict is a namespace and should have
string keys.
--
___
Python tracker
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6818
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
I don’t either. The one thing I’d like is that :class:`collections.Set`
generates a link to the table which documents the ABCs.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment:
We could, but someone must:
1) provide a patch
While working on a straightforward patch for linux, I had to make a lot of
copy-paste job. posixmodule.c is quite a mess already :(
2) demonstrate a significant improvement in some
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10617
___
___
New submission from Tony Wallace t...@tony.gen.nz:
Change to documentation preamble for csv module:
From:
There is no “CSV standard”, so the format is operationally defined by the many
applications which read and write it. The lack of a standard means that subtle
differences often exist in
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. I’ve added Skip, at his request on the CSV list.
--
assignee: docs@python - skip.montanaro
keywords: +patch
nosy: +eric.araujo, skip.montanaro
stage: - patch review
versions: -Python 2.5, Python 2.6
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Thanks for the great review Eric.
Patch in attachment provides the following changes:
- return a generator object
- remove callback parameter
- each yielded entry is a (name, {...}) tuple
- fix for ; in file name
- fix for in file name
-
Antoine Pitrou pit...@free.fr added the comment:
I'm afraid there's a misunderstanding here about the scope of the issue.
fileobject.c is not really used in py3k (except for a couple very specific uses
such as the tokenizer or the import machinery).
The standard I/O stack uses object in the
STINNER Victor victor.stin...@haypocalc.com added the comment:
I created the features/unicode_import repository with a unicode_import branch:
http://hg.python.org/features/unicode_import/
It's my huge patch splitted into small and atomic commits.
--
SilentGhost ghost@gmail.com added the comment:
facts_found.strip( ).rstrip(;)
strip is redundant since facts_found is a first element of partitioning by the
same string. rstrip is wrong since you're potentially deleting more than one
character (there is no test for that).
In your test
Terry J. Reedy tjre...@udel.edu added the comment:
Temporary output will break all doctests, not just those with exception
traceback. One should fix, disable debug output, and then rerun doctest to make
sure fix did not break anything else.
A function that prints and raises *can* be tested as
Giampaolo Rodola' g.rod...@gmail.com added the comment:
You're right about r/strip(), thanks (new patch in attachment).
In your test you're checking whether returned facts
contain every requested fact, this is not guaranteed by RFC.
Yes, but we're using a dummy FTP server returning static
Nasos Dousis ndou...@gmail.com added the comment:
I'm upgrading from Python 2.6.5 to 2.7.1, and I'm getting the error below when
compiling my code using Boost 1.45 and gcc 4.2.1 in OSX 10.6.6. The following
thread describes similar symptoms related to the ordering of header files and
macro
New submission from Kris Henriksson kthenriks...@gmail.com:
The most recent (issue 7) release of the POSIX standard mandates support for
nanosecond precision in certain system calls. For example, the stat structure
include a timespec struct for each of mtime, atime, and ctime that provides
Kris Henriksson kthenriks...@gmail.com added the comment:
Also, a new function similar to os.utime would be needed as well, perhaps
something named like os.utimens. This would be needed to allow setting times
with nanosecond precision.
--
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +mark.dickinson
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11457
___
R. David Murray rdmur...@bitdance.com added the comment:
This patch isn't going to be accepted, so I'm closing the issue. Someone else
can propose a different wording in a new issue if they wish.
--
resolution: - rejected
stage: - committed/rejected
status: open - closed
Scott Dial sc...@scottdial.com added the comment:
I'm well aware of the limited use of Py_UniversalNewlineFgets() in py3k, but it
remains the case that it is a public API that fails to work correctly under the
conditions specified by the reporter, and Alexander confirmed the original
patch
New submission from Alex Leach beamesle...@gmail.com:
Hi,
I'm trying to parse the contents of tar archives (.tgz) on the fly, and failing
to do so. The tar archives in question have directory hierarchies, and only if
a TarInfo object is a file (.isreg() ) will I try and read it's contents.
I
Martin v. Löwis mar...@v.loewis.de added the comment:
What operating system is that on?
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11454
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I fail to see the need to warn about this, though. Users using the feature are
likely aware that this violates the language specification, and will find out
quickly when they do port it to another Python implementation.
There are many many
Martin v. Löwis mar...@v.loewis.de added the comment:
a cron script which must process just a bunch of them at a time.
There's no need to gather them all.
Can you please be more explicit? What's the application in which you
have several millions of files in a directory? What's the task that
R. David Murray rdmur...@bitdance.com added the comment:
I believe you are looking for mode 'r|'.
--
nosy: +r.david.murray
resolution: - works for me
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Ubuntu 10.10.
I haven't investigated whether it is actually urllib.request that is causing
the long import time or a module that it is dependent on.
--
___
Python tracker
New submission from Novimir Pablant amici...@gmail.com:
I am trying to get the output from an external program into python using
`subprocess.Popen` and `select.select`. For some reason though select.select
is at times telling me that stdout is not ready to read, even when it is
(reading
Novimir Pablant amici...@gmail.com added the comment:
I forgot to mention, I am running on OS X 10.6.6.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11459
___
Ned Deily n...@acm.org added the comment:
I see the problem now. Using a --enable-shared configure similar to Skip's, the
gcc step that builds python.exe is:
gcc -L/opt/local/lib -u _PyMac_Error -o python.exe \
Modules/python.o \
-L. -lpython2.7 -ldl -framework CoreFoundation
Ray.Allen ysj@gmail.com added the comment:
Updated patch which can apply to current py3k cleanly and with changes follow
eric's review comments.
--
Added file: http://bugs.python.org/file21067/issue_2142.diff
___
Python tracker
Changes by Lars Gustäbel l...@gustaebel.de:
--
nosy: +lars.gustaebel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11457
___
___
Python-bugs-list
69 matches
Mail list logo