New submission from Jeremy Hylton jer...@alum.mit.edu:
import io
import urllib.request
f_bytes = urllib.request.urlopen(http://www.python.org/;)
f_string = io.TextIOWrapper(f_bytes, iso-8859-1)
print(f_string.read())
--
components: Library (Lib)
messages: 84840
nosy: jhylton
severity:
Georg Brandl ge...@python.org added the comment:
Documented in r70842.c
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue970783
___
Larry Hastings la...@hastings.org added the comment:
Thanks for pointing that out! I think I found it; the discussion is
actually about lazy string slices, and it starts here:
http://mail.python.org/pipermail/python-dev/2000-February/002317.html
If I were to resubmit lazy string slices (which
New submission from Brett Cannon br...@python.org:
The date and revision data for PEP 0 is not being set since it is trying
to use svn substitution when the PEP itself is not in svn.
--
components: None
messages: 84843
nosy: benjamin.peterson, brett.cannon
priority: low
severity: normal
Torsten Bronger bron...@physik.rwth-aachen.de added the comment:
Maybe it's better to leave it open, waiting for someone to pick it up,
even if this is some time in the future?
In my opinion, this is suprising behaviour without an actual rationale,
and a current implementation feature. I'd be
Derek Morr derekm...@psu.edu added the comment:
Any chance of this being applied soon? It's been sitting in the
bugtracker for over a year now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1664
Changes by Derek Morr derekm...@psu.edu:
--
nosy: +dmorr
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5111
___
___
Python-bugs-list mailing list
STINNER Victor victor.stin...@haypocalc.com added the comment:
@dmorr: It would be faster if nntplib has some tests :-/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1664
___
Derek Morr derekm...@psu.edu added the comment:
I'm confused by that.
In order to apply a 3 line patch (which replaces one standard library
function with another), you want an entire test suite written for
nntplib?
If we're willing to accept that nttplib works reasonably well now, why
is
Jesse Noller jnol...@gmail.com added the comment:
Applied in r70849 python-trunk, merging to py3k and 26maint
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5400
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:
You are right. Handling OOB data is within the exceptional condition
that the select document specifies.
I've added a check for error conditions within handle_expt_event(),
which induces a handle_close() on discovery of an
Changes by Josiah Carlson josiahcarl...@users.sourceforge.net:
Removed file: http://bugs.python.org/file13516/async_no_warn.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1161031
___
Changes by Josiah Carlson josiahcarl...@users.sourceforge.net:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1370380
___
Euler Taveira de Oliveira eu...@timbira.com added the comment:
It seems PyDict_DelItemString() and PyDict_SetItem() suffer from the
same disease. :( Both use assert() to detect a null pointer but fail to
prevent it. As I stated in the previous comment, maybe the right fix is
to replace assert()
Georg Brandl ge...@python.org added the comment:
Documented in r70851.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue837577
___
Georg Brandl ge...@python.org added the comment:
Documented in r70855.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5245
___
Georg Brandl ge...@python.org added the comment:
Documented in r70857.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5227
___
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment:
Ah, you're right. I hadn't thought about the exceptional condition being
used to signal anything besides OOB.
Looks really good to me.
s/close/_exception/ in the select-based poll(), and i don't have
anything more to add.
Jack Diederich jackd...@gmail.com added the comment:
running a fresh 2.7 trunk
a
mmap.mmap object at 0xb7d9f9c0
a.move(-1, -1, -1
... )
Segmentation fault
j...@sprat:~/src/python-rw$ ./python
Python 2.7a0 (trunk:70847M, Mar 31 2009, 14:14:31)
[GCC 4.3.2] on linux2
Type help, copyright,
Georg Brandl ge...@python.org added the comment:
Fixed in r70859, r70861.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5241
___
John Ehresman j...@wingware.com added the comment:
Attached is a patch, though I have mixed feelings about it. The OS
error can still occur even if a smaller amount is written in each
WriteFile call; I think an internal OS buffer fills up and the error is
returned if that buffer is full because
Georg Brandl ge...@python.org added the comment:
Documentation updated in r70863.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1717
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Yes, you are right... My patch was not correct neigher. :-(
Here is revised patch.
--
resolution: fixed -
status: closed - open
Added file: http://bugs.python.org/file13519/fix_mmap_move_v2.patch
Gregory P. Smith g...@krypto.org added the comment:
def's of the methods changed to be the official assert* names in trunk
r70864. unittests added to confirm that all known method names continue
to work.
Guido - If we fix 2to3 to fixup unittests that use the fail* method
names to use the
Andrew Svetlov andrew.svet...@gmail.com added the comment:
Continuing work over import.c I fixed bad error message encoding in
generated ImportError exception.
Tests for checking in case of non-ascii characters added.
--
Added file: http://bugs.python.org/file13520/import.zip
Georg Brandl ge...@python.org added the comment:
Committed a similar patch in r70866.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4882
___
New submission from Larry Hastings la...@hastings.org:
The CObject API has two flaws.
First, there is no usable type safety mechanism. You can store a void
*object, and a void *description. There is no established schema for
the description; it could be an integer cast to a pointer, or it
Andrew Svetlov andrew.svet...@gmail.com added the comment:
Martin von Loewis added to nosy list
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5604
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5241
___
___
Python-bugs-list
Michael Foord mich...@voidspace.org.uk added the comment:
If the deprecation causes noise people can just turn off the deprecation
warning surely?
Especially as transforming a codebase really is as simple as a global
search and replace. Personally I'd prefer earlier deprecation.
--
Martin v. Löwis mar...@v.loewis.de added the comment:
We could also simply redistribute the MSVCRT in python/bin, as we are
allowed to.
We *do* distribute the CRT with Python, and it works just fine.
The report is about VS 2005
--
title: test_fdopen fails with vs2005, release build
Georg Brandl ge...@python.org added the comment:
Amended documentation in r70867.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1096310
___
Georg Brandl ge...@python.org added the comment:
As commented in optparse.py, make_option is the preferred way to create
options, so I've added it to __all__ in r70868.
--
resolution: - fixed
status: open - closed
___
Python tracker
Jesse Noller jnol...@gmail.com added the comment:
I agree that this is a nice feature, however it requires adding a
getstate/setstate within the functools C code.
I would need a patch which does this, and adds tests to the
functools/pickle test suite for this. Also, the feature will only be
Jesse Noller jnol...@gmail.com added the comment:
Jack offered to take a peek
--
assignee: jnoller - jackdied
nosy: +jackdied
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5228
___
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
dependencies: +only accept byte for getarg('c') and unicode for getarg('C')
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5391
___
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
dependencies: +only accept byte for getarg('c') and unicode for getarg('C')
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5410
___
Jesse Noller jnol...@gmail.com added the comment:
I need to know what the exception/error is, given multiprocessing is
working fine on WIN32. Setting status to pending - without a test case
that shows the issue or more information, I can not move forward with
this.
--
status: open -
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
priority: - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5499
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Note: #5391 and #5410 are depends on this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5499
___
Georg Brandl ge...@python.org added the comment:
Documented in r70870.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4411
___
Georg Brandl ge...@python.org added the comment:
Fixed in r70871.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5618
___
Jack Diederich jackd...@gmail.com added the comment:
Looks good. Attached is a more thorough test_mmap.py patch that would
have found the bugs in both our patches ;)
--
resolution: - fixed
status: open - closed
Added file: http://bugs.python.org/file13522/test_mmap_harder.patch
Georg Brandl ge...@python.org added the comment:
Why are you using a unicode string as your temp directory prefix? Does
it raise something different if you don't?
--
assignee: - loewis
nosy: +loewis
___
Python tracker rep...@bugs.python.org
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:
Fixed the close() call and committed to trunk. Python 2.6 tests pass
with the new version of the library. Calling it good :) .
--
keywords: -needs review
resolution: - accepted
status: open - closed
Georg Brandl ge...@python.org added the comment:
Sounds reasonable.
--
resolution: - duplicate
status: open - closed
superseder: - [gzip] Performance for small reads and fix seek problem
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Duplicate of #1675026.
--
nosy: +georg.brandl
resolution: - duplicate
status: open - closed
superseder: - Redirect cause invalid descriptor error
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Closing as invalid.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5208
___
Changes by Piotr Meyer an...@smutek.pl:
--
nosy: +aniou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5510
___
___
Python-bugs-list mailing list
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
Daniel,
_closedsocket is a global, so it isn't safe to be used within __del__
during shutdown.
In the py3k branch, socket.__del__ calls socket._real_close which
references the global _socket. So it's not safe their, either.
New submission from Martin Blais bl...@furius.ca:
The output of running python setup.py --help-commands does not include
the upload command.
--
components: Library (Lib)
messages: 84884
nosy: blais
severity: normal
status: open
title: Distutils upload command does not show up in
Gregory P. Smith g...@krypto.org added the comment:
trunk r70878 has the code issue an actual PendingDeprecationWarning for
the fail* methods and documents them as deprecated. If anyone has a
better idea of a better way to state those deprecations in the docs,
feel free to jump in here.
I was
Mike Coleman m...@users.sourceforge.net added the comment:
Just to confirm, the real problem here was that tiny packets were being
sent out by default, and the obvious fix (altering ac_out_buffer_size)
didn't work.
Looking at the code, it appears that the change by Josiah Carlson
(#64062)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I've committed your test with some modification. (r70879) Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5387
___
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment:
In my experience I noticed that 65536 is a pretty good compromise, at
least when moving big amounts of data:
http://code.google.com/p/pyftpdlib/issues/detail?id=94
--
___
Python
Georg Brandl ge...@python.org added the comment:
The new docs already have glossary entries that point to the datamodel doc.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2266
Maksim Kozyarchuk maksim_kozyarc...@yahoo.com added the comment:
adding upload to __init__.py of commands package fixes this
Patch on Appshot.
http://codereview.appspot.com/32087/show
--
nosy: +Kozyarchuk
versions: +Python 3.1 -Python 2.4, Python 2.5, Python 2.6
Georg Brandl ge...@python.org added the comment:
This was apparently fixed sometime in trunk.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1714773
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment:
I still get some occasional EBADF failures when running pyftpdlib test
suite by using poll().
I think that it makes more sense moving the:
if flags (select.POLLHUP | select.POLLERR | select.POLLNVAL):
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment:
...after all no read/write methods should be called after the socket has
been closed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1161031
Lennart Regebro rege...@gmail.com added the comment:
Also, the run_2to3 method takes the explicit parameter, but does not
pass it into the DistutilsRefactoringTool.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5616
Georg Brandl ge...@python.org added the comment:
Added a pony test and committed in r70883.
--
assignee: tim_one - georg.brandl
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by David Christian d...@rpath.com:
--
nosy: +dugan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
___
___
Python-bugs-list mailing
Guilherme Polo ggp...@gmail.com added the comment:
You can also reproduce it with a shorter test that doesn't need any
interaction:
import Tkinter
root = Tkinter.Tk()
waitvar = Tkinter.BooleanVar()
root.after(50, lambda: waitvar.set(True))
root.after(10, root.destroy)
Georg Brandl ge...@python.org added the comment:
Swapped the sections in r70893.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1530012
___
Changes by David Christian d...@rpath.com:
--
nosy: +dugan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1711605
___
___
Python-bugs-list mailing
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The problem with Windows 2000 is that it is not enough to distribute
the CRT. For example, I am sure that a few months ago the version
ending with .1433 was not present on my machine; the version in the
system32 directory was .762
Daniel Darabos darabos.dan...@gmail.com added the comment:
Attached patch against SVN trunk including unittest. The test is not
great, because it practically only checks if the patch was applied and
not the real-life situation where the exception occurs, but I'm not too
handy with sgmllib (I
Georg Brandl ge...@python.org added the comment:
Already fixed in dev docs.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5603
___
New submission from Skip Montanaro s...@pobox.com:
The main thread has an ident, but the threading module doesn't
recognize that fact. I shouldn't have to start the main thread.
Example:
% python
Python 2.7a0 (trunk:70084, Feb 28 2009, 20:51:51)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
New submission from Tim Driscoll tdris...@gmail.com:
The patch and test is here:
http://codereview.appspot.com/28161/show
There were no tests so i added a few of them. The one that breaks
without the patch to timeit is:
test_setup_is_called_when_the_statment_is_string_and_the_setup_is_not()
Georg Brandl ge...@python.org added the comment:
Actually, that style is fine as well and even indicates a bit better
that you don't have to give data if you give timeout.
We'll likely try to get the style of writing optional parameters more
consistent in the future.
--
resolution: -
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5633
___
Georg Brandl ge...@python.org added the comment:
I'll wait for a patch from you, Steven.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5563
___
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:
I fixed some bugs with my patch, merged in Giampaolo's tests and
documentation, and altered the API to match Giampaolo's API almost
completely.
This new version differs from Giampaolo's patch only in underlying
Changes by Josiah Carlson josiahcarl...@users.sourceforge.net:
Removed file: http://bugs.python.org/file13238/scheduler_partial.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1641
___
Georg Brandl ge...@python.org added the comment:
I'm inclined not to document that. webbrowser is meant for URLs, the
behavior if you call it with file names is undefined.
--
resolution: - wont fix
status: open - pending
___
Python tracker
Changes by Tim Driscoll tdris...@gmail.com:
--
title: timeit breaks when the statment is a string and the setup is not - fix
for timeit when the statment is a string and the setup is not (and tests)
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
OK, so we'll wait for that.
--
dependencies: +Regexp 2.7 (modifications to current re 2.2.2)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5337
Georg Brandl ge...@python.org added the comment:
Fixed in r70896.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5598
___
Skip Montanaro s...@pobox.com added the comment:
Here's a test case which reveals the problem as I see it.
--
keywords: +patch
stage: - needs patch
Added file: http://bugs.python.org/file13525/threading.diff
___
Python tracker rep...@bugs.python.org
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Georg, this was your patch: http://bugs.python.org/issue1533909
I don't think it should have been accepted so readily. It is not
harmonious with all of the other proposals for improving timeit.
No that it is out in the
Georg Brandl ge...@python.org added the comment:
That's fortunate, because I can just reassign this to him :)
--
assignee: georg.brandl - brett.cannon
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2953
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment:
not the handle_close_event() replacements, stick with handle_close().
I'm guessing this has to do with breaking the abstraction?
I can't think of a situation where handle_close() is called, but close()
should not be called. If
Andrew Svetlov andrew.svet...@gmail.com added the comment:
Patch for multiprocessing added.
Using with regrtest -n option now allows to pass all regression test
stack without any popup assertion dialog on Windows box.
Probably have to be backported to Python 2.7 branch
--
components:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Whether this should be exposed is up to effbot. It's his code. He
knows its limitations and he made the original decision to leave it
undocumented.
--
assignee: benjamin.peterson - effbot
Changes by David Christian d...@rpath.com:
--
nosy: +dugan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1608921
___
___
Python-bugs-list mailing
New submission from vadim suvorov zzpythontrac...@stelary.com:
In case of heavily recursive data structure cPickle produces
intermittent random exceptions (AttributeError, etc.). The expected is
RuntimeError: ('maximum recursion depth exceeded in ...'). In addition,
the behavior differs for
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment:
I just remembered that level 1 function handle_connect_event() is also
called from level 2, so i actually can't see why the close helper
could not be called handle_close_event(). Is there some other reason
besides breaking
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment:
I can't think of a situation where handle_close() is called, but close()
should not be called. If indeed so, i feel it's weird to require the
user remember to call close(), and it should IMHO be done automatically.
It's
Benjamin Peterson benja...@python.org added the comment:
Fixed in r70897.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5632
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment:
It's already done automatically if you don't override handle_close.
Sorry, i meant the case where you need to override it. If we always need
to call close() from handle_close(), it feels redundant having to
remember to add it,
Tim Mooney enchan...@users.sourceforge.net added the comment:
Solaris has both traditional System V curses and an XPG4-compatible
curses that does include mvwchgat. The traditional system V curses is
the default, for backward compatibility.
If you want the XPG4 compatible curses, you need to
Guilherme Polo ggp...@gmail.com added the comment:
Patch attached, but didn't test it at all. This is a trick so it doesn't
get committed without a test (hopefully) :)
--
keywords: +patch
Added file: http://bugs.python.org/file13528/issue978604.diff
Nick Coghlan ncogh...@gmail.com added the comment:
I just had a thought: we may be able to eliminate this behaviour without
mucking about in the package globals.
What if the import semantics were adjusted so that, as a last gasp
effort before bailing out with an ImportError, the import process
Steven Bethard steven.beth...@gmail.com added the comment:
Here you go. I built the docs with the attached patch, and everything
looks about right to me now.
--
keywords: +patch
Added file: http://bugs.python.org/file13529/python3-bdist-msi-docs.patch
Georg Brandl ge...@python.org added the comment:
Documented in README in r70902.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1675026
___
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:
The spare 512 values are for code that I expect no one is actually
using.
In terms of increasing the buffer size from 4096 to something larger,
that can be done, but I think that more than just a 10mbit switched lan
test
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
assignee: - tarek
resolution: - duplicate
status: open - closed
superseder: - Optional extensions in setup.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4706
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
One of the limitations is that it identifies what matched by using
capture groups, so if the expressions provided contain captures then it
gets confused! :-)
I handled that by 1) rejecting named captures and 2) changing unnamed
101 - 200 of 260 matches
Mail list logo