Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Likewise, this fails with 3.2::
import os
os.write(1, ba * 66000)
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11395
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11395
___
___
Charles-Francois Natali neolo...@free.fr added the comment:
It's probably a Windows limitation regarding the number of bytes that can be
written to stdout in one write.
As for the difference between python versions, what does
python -c import sys; print(sys.getsizeof('a')) return ?
--
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Please fix the word Builtin to Built-in as well. Thank you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11373
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11373
___
___
Python-bugs-list
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
no, it works with 3.2b2 (r32b2:87398), and fails with 3.2 final (r32:88445)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11395
STINNER Victor victor.stin...@haypocalc.com added the comment:
Extract of issue #1602:
WriteConsoleW has one bug that I know of, which is that it a
href=http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1232;fails when writing
more than 26608 characters at once/a. That's easy to work around by
STINNER Victor victor.stin...@haypocalc.com added the comment:
Extract of the WriteConsole Function:
The storage for this buffer is allocated from a shared heap for the process
that is 64 KB in size. The maximum size of the buffer will depend on heap
usage.
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This changed with r87824
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11395
___
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Please also update the table entry for MutableSequence in
Doc/library/collections.abc.rst
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11388
STINNER Victor victor.stin...@haypocalc.com added the comment:
This changed with r87824
Yes, I changed Python to open all files in binary mode. With Python 3.2, you
can open sys.std* streams in binary mode using -u command line option (u like
unbuffered, not Unicode ;-)).
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Indeed, Python3.1 fails with the -u option.
Before r87824, the C call to write() performed CRLF conversion. In the
implementation of MSVCRT, a local buffer is used (1025 chars in vs8.0, 5*1024
in vs10.0), so WriteFile is called with
STINNER Victor victor.stin...@haypocalc.com added the comment:
Anyway, use os.write() to write unicode into the Windows console is not the
right thing to do. We should use WriteConsoleW(): #1602 is the correct fix for
this issue.
--
___
Python
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I'm writing bytes here: os.write(1, bb * 66000)
And WriteConsole has the same issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11395
STINNER Victor victor.stin...@haypocalc.com added the comment:
And WriteConsole has the same issue.
print() (sys.stdout and sys.stderr) should use WriteConsoleW() and use small
chunks (smaller than 64 KB, I don't know the safest size).
--
___
Eli Bendersky eli...@gmail.com added the comment:
Documentation fix and some unit tests committed in revision 88742
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11388
___
Antoine Pitrou pit...@free.fr added the comment:
IIUC, this is a Windows bug? Is there any easy workaround for us?
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11395
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
It may be a windows bug, but it's also an a python regression!
A fix is to limit the number of chars:
===
--- D:/py3k/Modules/_io/fileio.c (revision 87824)
+++
Stephen Evans step...@recombinant.co.uk added the comment:
As suggested by Mark following my post on comp.lang.python I am adding further
comments to the discussion on this (closed) issue.
For a more mathematical consideration of the issue:
Stepanov, Alexander and Paul McJones. 2009. Elements
STINNER Victor victor.stin...@haypocalc.com added the comment:
r88746: Add PyModule_NewObject() function
r88747: Add PyImport_AddModuleObject() and PyImport_ExecCodeModuleObject()
--
___
Python tracker rep...@bugs.python.org
anatoly techtonik techto...@gmail.com added the comment:
I still struggling to find a way to apply
http://effbot.org/zone/element.htm#accessing-parents in my specific case.
Unfortunately, it doesn't seem trivial to me.
--
___
Python tracker
david db.pub.m...@gmail.com added the comment:
I have also hit this bug. It is slightly interesting that urllib is able to
connect to hosts that trigger a segfault under urllib2 without an issue...
--
nosy: +db
___
Python tracker
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This is a question for comp.lang.python ;-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11368
___
Ram Rachum cool...@cool-rr.com added the comment:
I don't have the time and the ability to write the patch that implements this.
I'll be happy to write tests if you think this will help.
--
___
Python tracker rep...@bugs.python.org
New submission from nestor nestornis...@gmail.com:
Many programs written for Python 2.x use simple string interpolation to create
byte strings with specific layout, this is gone in 3.x. Is it possible to
support the format method but maybe only supporting field names like '{}'
'{1}{2}'
Eric Smith e...@trueblade.com added the comment:
There have been a number of discussions about this, but no concrete proposal.
The last one I recall was to add a __bformat__ method, but I couldn't find the
email trail just now.
See also issue 3982.
--
nosy: +eric.smith
nestor nestornis...@gmail.com added the comment:
My search fu has failed me this time. This is indeed a duplicate of issue 3982.
I think the issue is real and not going to go away, but finding a beautiful
solution has been elusive so far.
--
resolution: - duplicate
Eric Smith e...@trueblade.com added the comment:
I found part of the discussion I was looking for:
http://mail.python.org/pipermail/python-dev/2010-July/102252.html
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Izidor Matušov izidor.matu...@gmail.com added the comment:
This bug is still present in Gentoo. Find while trying to Steps to reproduce
1, install gentoo (testing on amd64 machine)
2, run commands in python
from gtk import glade
import uuid
uuid.uuid4()
It results in Segmentation fault.
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6059
___
___
Python-bugs-list mailing
New submission from Mikhail Kovtun mikhail.kov...@duke.edu:
This bug appears in Python 2.4, 2.5, 2.6; not tested in Python 2.7.
How to reproduce on Linux:
{{{
$ mkdir ~/testsymlinks
$ cd ~/testsymlinks
$ mkdir adir
$ ln -s ../adir adir/blink
$ mkdir -p adir/cdir/ddir
$ ln -s adir/cdir/ddir/..
Izidor Matušov izidor.matu...@gmail.com added the comment:
After searching at Gentoo's bugzilla, I've found that there is probably problem
in gentoo's libuuid library implementation:
http://bugs.gentoo.org/show_bug.cgi?id=317557
--
___
Python
Changes by Daniel Stutzbach stutzb...@google.com:
--
nosy: +stutzbach
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
___
William Hart whart...@gmail.com added the comment:
Vinay:
Yes, the bulk of the time was spent in getEffectiveLevel(). Since that
method is only called by isEnabledFor(), it made sense to cache
isEnabledFor(). But, that probably reflects the characteristics of my use
of logging. I never call
Changes by Daniel Stutzbach stutzb...@google.com:
--
dependencies: +Add traceback.print_full_exception()
nosy: +stutzbach
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9427
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
Gentoo uses standard libuuid.so from util-linux without any custom patches.
Izidor Matušov actually reproduced
https://bugs.gentoo.org/show_bug.cgi?id=351897.
--
___
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
___
Python-bugs-list
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
components: +Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11395
___
___
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
Steps to reproduce segmentation fault:
python2.7 -c 'import cairo, uuid; print(uuid.uuid1().hex)'
--
assignee: - theller
components: +ctypes -Extension Modules
nosy: +theller
title: uuid.uuid4 cause segfault
Marc-Andre Lemburg m...@egenix.com added the comment:
M.-A. Lemburg wrote:
Raymond Hettinger wrote:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
If you agree, Raymond, I'll backport the patch.
Yes. That will address Antoine's legitimate concern about making other
Boštjan Mejak bostjan.me...@gmail.com added the comment:
I am uploading a patch that fixes both of these typos in the docs. Please apply
it and keep up the good work.
--
versions: +Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file20998/stdtypes_2.patch
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11393
___
New submission from chris nojima chrisnoj...@gmail.com:
There is an issue where on windows os.environ keys are all uppercase. If i run
set a=hello, in python it will appear as a key A.
urllib.request.getproxies_environment looks for all _proxy environment vars by
looking for _proxy. Since
New submission from Santoso Wijaya santoso.wij...@gmail.com:
Observe:
C:\Users\santaC:\Python27\python.exe -u
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on
win32
Type help, copyright, credits or license for more information.
print 'Hello world'
File stdin,
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
title: python.exe -u fails to parse input to the interactive interpreter -
cmd.exe: python.exe -u fails to parse input to the interactive interpreter
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Amazing. This issue is unreported for years, Victor fixes it in python3, and
*then* we get two bug reports for it against 2.7 in as many months :)
Anyway, this is a duplicate of issue 11098. If you have a real use case for
this, we
R. David Murray rdmur...@bitdance.com added the comment:
Ah, I'm wrong, this has been reported earlier issue 707576.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11399
___
New submission from Terry J. Reedy tjre...@udel.edu:
In Language Ref, 6.2 assignments, delete
(This rule is relaxed as of Python 1.5; in earlier versions, the object had to
be a tuple. Since strings are sequences, an assignment like a, b = xy is now
legal as long as the string has the right
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
Hello, David, the error from Issue 6 occurred again,
and it still can be healed with the patch file20675.
(I'm opening a new issue because 6 turned over to
the mailbox fix.
My repo and installation is at:
21:34
Terry J. Reedy tjre...@udel.edu added the comment:
Agreed. The footnote is [1] It may occur within an except or else clause. The
restriction on occurring in the try clause is implementor’s laziness and will
eventually be lifted.
I searched chapter for all occurences of '1' and also found no
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11337
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
Conversion is underway today. Completion should be announced at least on the
pydev list.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11338
Terry J. Reedy tjre...@udel.edu added the comment:
The basic problem is that the class object is defined after the class
definitions have been made,
I have sometimes thought the the class statement could start with binding the
name to a blank object or new, blank class object. But then people
Terry J. Reedy tjre...@udel.edu added the comment:
I agree that compile-time stack exhaustion is different from runtime
object-heap exhaustion and could/should have a different error.
I agree with Martin (from 2000) that SyntaxError is not right either. Perhaps a
new ParseError subclass
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I had somewhat shallow logger hierarchies (3-4 deep). The real problem was
that this was being called in a kernel of my code ... so even that
additional cost was noteworthy.
I think it's smart to focus on Python 3.3. As it
Terry J. Reedy tjre...@udel.edu added the comment:
I am inclined to -1 also.
a. The proposed behavior is anti-obvious to me: the higher the height, the
shorter the result. Calling param 'drop' would be better.
b. Not every one-liner should be wrapped.
path.rsplit('/',0)[0]
Antoine Pitrou pit...@free.fr added the comment:
Except that dirname() isn't a one-liner, so you are giving rather bad advice
here.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11344
Terry J. Reedy tjre...@udel.edu added the comment:
os.makedir (and, I presume, makedirat) are intentionally thin wrapperws around
the libc system calls
From #9299, msg111014 (Guido)
I wonder if os.mkdir() should not be left alone (so as to continue
to match the system call most exactly, as is
Antoine Pitrou pit...@free.fr added the comment:
As for use cases, I have used it quite commonly in test scripts in order to
find out the base directory of the source tree (and/or other resources such as
data files).
e.g.:
basepath =
Changes by Terry J. Reedy tjre...@udel.edu:
--
title: suggestion for os.kill(pid,CTRL_C_EVENT) - suggestion for
os.kill(pid,CTRL_C_EVENT) in tests
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11361
Terry J. Reedy tjre...@udel.edu added the comment:
No IANA registration. According to
https://secure.wikimedia.org/wikipedia/en/wiki/Webp
this is a Google-specific proposal rather than a standard.
Thus addition would seem premature at this time.
--
nosy: +terry.reedy
Terry J. Reedy tjre...@udel.edu added the comment:
Have you tried this with 3.2 (or 3.1)?
What behavior do you expect when pipe goes first?
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11380
Changes by Terry J. Reedy tjre...@udel.edu:
--
type: - performance
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11382
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
type: - crash
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11383
___
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11401
___
___
Terry J. Reedy tjre...@udel.edu added the comment:
Doc issues should be 'tested' and reported against the latest versions. 2.6.6
doc is effectively the last 2.6 version.
TextTextRunner is not completely undocumented.
In 3.2
help(t.run)
Help on function run in module unittest.runner:
Terry J. Reedy tjre...@udel.edu added the comment:
I also see that TextTestRunner has an attribute resultclass, which is
TextTestResult. Is this intended to be ever changed?
The docstring for TTRunner says It prints out the names of tests as they are
run, errors as they occur, and a summary
Michael Foord mich...@voidspace.org.uk added the comment:
Except the former is incorrect as the responsibility for printing results as
they occur is with the TestResult and not the runner. I'll look at this and
improve the docs for the runner.
(And yes unittest.main() creates and uses a
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
hmm, the code of urllib.request.getproxies_environment contains::
for name, value in os.environ.items():
name = name.lower()
if value and name[-6:] == '_proxy':
proxies[name[:-6]] = value
So the
Terry J. Reedy tjre...@udel.edu added the comment:
In 2.7 or 3.2, winxp, when I enclose your code with
from tkinter import tk #or Tkinter
...
App()
I get a window with a buttom that sinks and raises as I press and release the
left button.
Please post complete runnable code that exhibits the
Terry J. Reedy tjre...@udel.edu added the comment:
class unittest.TextTestRunner(stream=None, descriptions=True, verbosity=1,
runnerclass=None, warnings=None)
stream is documented, the others are not (except for some garbled text about
warnings). This class has a few configurable parameters,
New submission from Daniel Stutzbach stutzb...@google.com:
By the time _PyUnicode_Init is called and does the following:
/* Init the implementation */
free_list = NULL;
numfree
Terry J. Reedy tjre...@udel.edu added the comment:
The undocumented verbosity parameter?
--
nosy: +michael.foord, terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11389
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +gregorlingl, terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11392
___
___
Changes by Daniel Stutzbach stutzb...@google.com:
--
keywords: +needs review, patch
Added file: http://bugs.python.org/file20999/unicode-leak.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11402
Michael Foord mich...@voidspace.org.uk added the comment:
If the verbosity parameter isn't sufficient (which needs documenting but that
is issue 11385) then it would need to be a feature request on DocFileSuite
(part of doctest).
--
___
Python
Michael Foord mich...@voidspace.org.uk added the comment:
TextTestRunner was more meant to be an *example* of a test runner. It just
turned out to be the only one and widely used.
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
I thought I posted this on another issue, but cannot find it.
My installed 3.2 Tools directory only has i8n, pynche, and scripts directories.
The 3.2 repository has 12 other directories in Tools that are missing from the
installation.
Terry J. Reedy tjre...@udel.edu added the comment:
print(a*66000)
works (after some delay) running from an IDLE edit window (but see #144249).
Works means that I get a working prompt back with no errors.
Unlike IDLE, the Command Prompt Windows keeps a limited number of lines in its
buffers
Martin v. Löwis mar...@v.loewis.de added the comment:
These directories aren't missing - they are simply not included. Each such
inclusion should be preceded by an explicit request (preferably with some
rationale).
Including the demo directory is fine with me.
--
New submission from Santoso Wijaya santoso.wij...@gmail.com:
Here's a patch for .hgignore file to include some more build files emitted on
Windows.
--
components: None
files: pcignore.patch
keywords: patch
messages: 130097
nosy: santa4nt
priority: normal
severity: normal
status: open
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
versions: +Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11403
___
Mathieu Bridon boche...@fedoraproject.org added the comment:
So, now that Python 3.2 was released, here is a patch rebased on top of the
py3k branch.
--
Added file:
http://bugs.python.org/file21001/0001-Curly-brace-expansion-in-glob.patch
___
Changes by Mathieu Bridon boche...@fedoraproject.org:
Removed file:
http://bugs.python.org/file20129/0001-Curly-brace-expansion-in-glob.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9584
___
Mathieu Bridon boche...@fedoraproject.org added the comment:
The sys module is imported in glob but never used.
It's not related to this feature request but I saw it when implementing the
patch, so here is a second patch removing the import.
--
Added file:
Santoso Wijaya santoso.wij...@gmail.com added the comment:
I'm adding a test that will reproduce the crash.
--
keywords: +patch
Added file: http://bugs.python.org/file21003/writeconsole.patch
___
Python tracker rep...@bugs.python.org
New submission from Марк Коренберг socketp...@gmail.com:
allow to call subprocess.check_call(stderr=subprocess.DEVNULL)
--
components: Library (Lib)
messages: 130101
nosy: mmarkk
priority: normal
severity: normal
status: open
title: support /dev/null for subprocess.call() and friends
Марк Коренберг socketp...@gmail.com added the comment:
I've never used negative terminators in asynchat and I'm not even sure why
one would want to.
no one wants :), but terminator numeric value may be achieved from the net, and
hackers sometimes use such technique.
attached shorttest.py
Марк Коренберг socketp...@gmail.com added the comment:
When using non-blocking IO, we issue select (or poll,epoll), and after that
kernel should guarantee, that recv or send will complete immediatelly,
transferring data as needed. But sometimes (as Linux is buggy), such operations
results in
Марк Коренберг socketp...@gmail.com added the comment:
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2008-02/msg00457.html
Okay, linux is not buggy :)))
EINTR may occur if SA_RESTART is not specified in sigaction.
--
___
Python tracker
New submission from INADA Naoki songofaca...@gmail.com:
http://docs.python.org/py3k/tutorial/inputoutput.html#fancier-output-formatting
The standard module string contains some useful operations for padding
strings to a given column width; these will be discussed shortly.
The document uses
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment:
Here's a similar bug: http://bugs.python.org/issue7978.
EINTR may occur if SA_RESTART is not specified in sigaction.
Some syscalls (like select) will generate EINTR despite SA_RESTART. man 7 signal
--
nosy: +nvetoshkin
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
My point was that unix hasn't found it useful
to add a level option to the dirname API.
ISTM, that is a strong indication that this isn't needed in the form it has
been proposed.
I don't know that I personally have ever
93 matches
Mail list logo