Guido van Rossum added the comment:
Oh wait, it looks like the assert failed because KeyboardInterrupt hit right at
that point. I ran the program a few times and when I hit ^C I get a traceback
at a different point in the code each time. This is as expected. You must have
hit the rare case
akira added the comment:
I'm confused. Why is blocksize necessary at all?
My guess, it may be used to implement socket.send()-based fallback. Its meaning
could be the same as *length* parameter in shutil.copyfileobj
The fallback is useful if os.sendfile doesn't exists or it doesn't accept
Stefan Krah added the comment:
This looks like a duplicate of #7511.
--
nosy: +skrah
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - msvc9compiler.py: ValueError when trying to compile with VC
Express
___
Python
Roundup Robot added the comment:
New changeset 4f79c3827adc by Kristján Valur Jónsson in branch '2.7':
Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_Resize
http://hg.python.org/cpython/rev/4f79c3827adc
--
nosy: +python-dev
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21349
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset e33a036fd784 by Andrew Kuchling in branch '3.4':
#21225: copy docstrings from base classes
http://hg.python.org/cpython/rev/e33a036fd784
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Eric V. Smith added the comment:
I'm going to close this as not a bug. Feel free to reopen it if there's use
case for passing in None.
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
yaccz added the comment:
Also fails on group + which is afaik a thing for ldap.
tested with python 2.6.9 on suse linux enterprise
--
nosy: +yaccz
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1465646
New submission from Brian Kearns:
In file.writelines, the conditions in this if statement are bogus. If
f-f_binary and AsReadBuffer succeeds (returns 0), AsCharBuf is still tried.
So, for example, passing an array('c') to a file('wb').writelines fails, when
it seems the intention of the
Changes by Brian Kearns bdkea...@gmail.com:
Removed file: http://bugs.python.org/file35036/fix_file_writelines-py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21350
___
Changes by Brian Kearns bdkea...@gmail.com:
Added file: http://bugs.python.org/file35037/fix_file_writelines-py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21350
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21305
___
___
New submission from Zachary Ware:
The new test fails with the patch applied:
==
ERROR: test_setvalueex_with_memoryview (__main__.LocalWinregTests)
--
Traceback
Brian Kearns added the comment:
Oops, updated test.
--
Added file: http://bugs.python.org/file35038/fix_winreg_setvalueex-py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21349
___
Changes by Brian Kearns bdkea...@gmail.com:
Removed file: http://bugs.python.org/file35031/fix_winreg_setvalueex-py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21349
___
Giampaolo Rodola' added the comment:
Given the opinions expressed so far I:
- got rid of the blocksize parameter
- got rid of the use_fallback parameter
- added a count parameter
- used os.fstat() to figure out the total file size and passed it directly to
sendfile()
I'm attaching
Russell Ballestrini added the comment:
Adding patch to update tests to use Tim Peters suggestion of assertListEqual
over assertEqual for list compares.
--
Added file:
http://bugs.python.org/file35040/diff-lib-tim-peters-assert-list-equals.patch
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: +Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21347
___
Éric Araujo added the comment:
Patch looks to me comprehensive and backward-compatible. Thanks Thomas!
--
nosy: +eric.araujo
stage: needs patch - commit review
type: - enhancement
___
Python tracker rep...@bugs.python.org
New submission from Min RK:
Reference counts appear to be ignored at process cleanup, which allows
inter-dependent `__del__` methods to hang on exit. The problem does not seem to
occur for garbage collection of any other context (functions, etc.).
I have a case where one object must be
Nathan Stocks added the comment:
This affects me as well. I have to manually clean up objects in the correct
order in script I am working on under 3.4.0. I have this problem under both OS
X 10.9.2 Mavericks and under CentOS 6.5
--
nosy: +nathan.stocks
New submission from bob gailer:
Inconsistencies / confusion with documentation Index Tab. Example (line numbers
added for comments that follow):
1 max
2 built-in function
3 max (datetime.date attribute)
4 (datetime.datetime attribute)
5 (datetime.time attribute)
6 max() built-in
Changes by Zachary Ware zachary.w...@gmail.com:
--
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21352
___
Tim Peters added the comment:
Russell, I'm still looking for a sufficiently compelling use case here:
something tangible and useful that can be done with the new function that can't
be easily done now.
I plan to write a web API that accepts a word, 'doge' and returns a list of
possible
Tim Peters added the comment:
Just noting that, for me, the problem goes away if
del c, c2
is added as the last line of the test. This suggests the problem is due to
changes in end-of-life module cleanup.
Without that line, I see 3 kinds of output:
1.
del child
del child
del parent
parent
Jim Jewett added the comment:
ProcessPoolExecutor already defaults to using cpu_count if max_workers is None.
Consistency with that might be useful too. (and a default of 1 to mean
nothing in parallel is sensible...)
--
nosy: +Jim.Jewett
___
Changes by Tim Peters t...@python.org:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21351
___
___
Python-bugs-list mailing list
Russell Ballestrini added the comment:
Tim,
You bring up some great points and insight I was missing.
To me the scores just aren't interesting beyond which words' scores exceed a
cutoff, and the ordering of words based on their similarity scores - but
`get_close_matches()` already captures
Changes by William Tisäter will...@defunct.cc:
--
nosy: +tiwilliam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20050
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
status: open -
title: Bizarre help - Document '/' in signatures
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21314
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.5 -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21321
___
Terry J. Reedy added the comment:
Generic ideas like this, without specific patch or patch prospect, should be
first posted on python-ideas. You can reopen this if there is a concrete
proposal with some support.
However, I agree with Brett about an Exif module. We do not even have an image
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21337
___
___
Terry J. Reedy added the comment:
This appears to be a tcl/tk(ttk) issue. You rediscovered what is documented
here:
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/ttk-Entry.html
Table 40. ttk.Entry options
fontUse this option to specify the font of the text that will appear in the
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8387
___
___
Antoine Pitrou added the comment:
(the 3 kinds of output are probably due to hash randomization)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21351
___
Antoine Pitrou added the comment:
Looking into it, it's normal for refcounts to be ignored: those objects
belong to reference cycles:
tstgc.__dict__
- p (or c, or c2)
- p.__class__ (i.e. Parent, or Child respectivel))
- Parent.__dict__
- Parent.__del__ (or Parent.__init__, or Parent.child)
-
Tim Peters added the comment:
I think Antoine is right on all counts. The most surprising bit may be that p,
c, and c2 are in reference cycles, but - surprising or not - that's always been
true. The reason it worked before 3.4 is that CPython happened to break the
cycles via the nasty hack
Antoine Pitrou added the comment:
Haven't reviewed the patch, but you should definitely add a unit test for the
bugfix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21321
___
Antoine Pitrou added the comment:
Brian, it's not obvious (to me) what the original issue is (crash?) and why
the new test expects a TypeError.
Also, is it a 2.7-only issue or does it also affect Python 3?
--
nosy: +pitrou, stutzbach
___
Python
Brian Kearns added the comment:
Are you aware of the old/new buffer interfaces and their usages? Did you
actually try the code? crash would be obvious.
Objects that support only the new buffer interface define tp_as_buffer with
fields representing the old buffer interface as null.
So,
New submission from akira:
It is convenient to have Popen.args available. Especially when dealing
with multiple processes e.g., to log failures mentioning the command
that was used to spawn the child process.
subprocess module itself uses it while raising CalledProcessError or
TimeoutExpired
42 matches
Mail list logo