Martin v. Löwis mar...@v.loewis.de added the comment:
Ok, closing the issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13279
___
___
Changes by Martin v. Löwis mar...@v.loewis.de:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13279
___
Charles-François Natali neolo...@free.fr added the comment:
Why it is closed as duplicate? nothing said about CLOEXEC in issue12797
See http://bugs.python.org/issue12760#msg146686
--
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
And to be explicit, you can now write:
def open_cloexex(filename, mode='r'):
return open(filename, mode,
opener=lambda path, mod: os.open(path, mod|os.O_CLOEXEC))
--
___
New submission from Charles-François Natali neolo...@free.fr:
Here's a patch fixing test_httpservers failures when run as root (a couple
buildbots are consistently failing on this, e.g.
http://python.org/dev/buildbot/all/builders/x86 FreeBSD 7.2
3.x/builds/2282/steps/test/logs/stdio).
The
Petri Lehtinen pe...@digip.org added the comment:
You should change issue # with the real issue number now that there's an
issue for this :)
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13308
Georg Brandl ge...@python.org added the comment:
Two comments:
* The new parameter to __init__ should be added at the end of the parameter
list.
* A documentation update would be nice.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
Le 01/11/2011 00:07, Roundup Robot a écrit :
Roundup Robotdevn...@psf.upfronthosting.co.za added the comment:
New changeset 3f025427f02b by Florent Xicluna in branch 'default':
Fix regression due to changeset 2096158376e5
Марк Коренберг socketp...@gmail.com added the comment:
Well, I understand. So why not to add 'e' (and 'N', which is the same meaning)
character, which:
* use O_CLOEXEC in modern Linux
* generate Exception if O_CLOEXEC is not supported (or does not work) on
platform.
Also, implement
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 230f0956aaa3 by Florent Xicluna in branch 'default':
Strengthen the tests for format '%Y', in relation with issue #13305.
http://hg.python.org/cpython/rev/230f0956aaa3
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
So why not to add 'e' character
You said it: because it can't be written consistently on all platforms.
For example, python does not use CreateFile on Windows, see #12939.
--
___
Python
Antoine Pitrou pit...@free.fr added the comment:
Instead of rewriting your own RawIO implementation, why not use _open_osfhandle?
This should be simple now with the opener argument.
http://msdn.microsoft.com/en-us/library/bdts1c9x.aspx
--
nosy: +pitrou
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 0a5eb57d5876 by Ezio Melotti in branch '2.7':
#670664: Fix HTMLParser to correctly handle the content of
``script.../script`` and ``style.../style``.
http://hg.python.org/cpython/rev/0a5eb57d5876
New changeset
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks to everyone who contributed to this over the years!
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6107a84e3c44 by Ezio Melotti in branch '3.2':
#12008: add a test.
http://hg.python.org/cpython/rev/6107a84e3c44
New changeset 495b31a8b280 by Ezio Melotti in branch 'default':
#12008: merge with 3.2.
Ezio Melotti ezio.melo...@gmail.com added the comment:
This seems to be already fixed in 3.2/3.3, so I extracted the test from your
script and added to the test suite. If you can find a way to break the parser
let me know.
--
assignee: - ezio.melotti
nosy: +ezio.melotti
resolution:
Ezio Melotti ezio.melo...@gmail.com added the comment:
I think xy z=o //x should be parser as xy z= //x, and the o
should be ignored.
xy z= //x should be parser as xy z= //x, and the last two
should be ignored. This is what Firefox seems to do.
Currently the parser doesn't seem to handle
Charles-François Natali neolo...@free.fr added the comment:
Please provide more information, because this looks really strange...
--
nosy: +neologix
stage: - test needed
status: open - pending
___
Python tracker rep...@bugs.python.org
Changes by Charles-François Natali neolo...@free.fr:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13303
___
New submission from Florent Xicluna florent.xicl...@gmail.com:
After changeset 55a3b563f0db the Gentoo buildbot is complaining.
==
FAIL: test_strptime (test.test_time.TimeTestCase)
Antoine Pitrou pit...@free.fr added the comment:
It's already in the 3.x docs (but not 2.x):
“Strings and buffers
These formats allow to access an object as a contiguous chunk of memory. You
don’t have to provide raw storage for the returned unicode or bytes area. Also,
you won’t have to
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2771f7e96a52 by Florent Xicluna in branch 'default':
Add temporary tests to troubleshoot issue #13309 on Gentoo buildbot.
http://hg.python.org/cpython/rev/2771f7e96a52
--
nosy: +python-dev
Charles-François Natali neolo...@free.fr added the comment:
The first problem is a duplicate of issue #6056.
As for the second problem, no, it doesn't limit the number of concurrent
connections. Server.serve_forever() creates a new thread for each new incoming
connection.
Closing as
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset bb0ae7df08f8 by Florent Xicluna in branch 'default':
Troubleshoot issue #13309 on Gentoo buildbot.
http://hg.python.org/cpython/rev/bb0ae7df08f8
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 70dedd8ce8f3 by Senthil Kumaran in branch 'default':
issue13287 - Define __all__ for urllib.request and urllib.error and expose only
http://hg.python.org/cpython/rev/70dedd8ce8f3
--
nosy: +python-dev
Senthil Kumaran sent...@uthcode.com added the comment:
Thanks flox for the patch.
Just the News item is added. I don't think, this requires any Docs update. One
change I had to make in the patch is to remote HTTPSHandler from __all__
because that is only conditionally available when
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1745761
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5b1e1967ea9d by Florent Xicluna in branch 'default':
Replace temporary tests with the real test case for issue #13309 on Gentoo.
http://hg.python.org/cpython/rev/5b1e1967ea9d
--
New submission from Xavier de Gaye xdeg...@gmail.com:
Add the following lines to test_handle_expt (this makes sense, a
dispatcher instance is supposed to implement handle_read and call recv
in order to detect that the remote end has closed the socket):
--- a/Lib/test/test_asyncore.py
+++
New submission from Xavier de Gaye xdeg...@gmail.com:
When the remote end disconnects, handle_close is only called if recv
is called (from handle_read). The default implementation of
handle_read does not call recv.
Not having the default implementation of handle_read call recv, has
the
Ezio Melotti ezio.melo...@gmail.com added the comment:
Attached patch includes the tests in diff.txt. On Python 3, with strict=False,
the first test (adjacent attributes) passes, but the other two still fail.
See also #12629.
--
nosy: +ezio.melotti -BreamoreBoy
type: feature request -
Ross Lagerwall rosslagerw...@gmail.com added the comment:
import time
import sys
t = time.gmtime(time.time())
s = time.strftime('%Z', t)
print(s)
time.mktime((-1, 1, 1, 0, 0, 0, -1, -1, -1))
t = time.gmtime(time.time())
s = time.strftime('%Z', t)
print(s)
outputs:
SAST
LMT
on my Gentoo
Марк Коренберг socketp...@gmail.com added the comment:
why not use _open_osfhandle?
Because it is wrapper for other CRT functions for Windows, like close(). In
other words it is an emulation. I think Python should not create wrapper around
wrapper around wrapper...
For example, in Python3,
Antoine Pitrou pit...@free.fr added the comment:
why not use _open_osfhandle?
Because it is wrapper for other CRT functions for Windows, like
close(). In other words it is an emulation. I think Python should not
create wrapper around wrapper around wrapper...
Why do you think it makes a
Florent Xicluna florent.xicl...@gmail.com added the comment:
It seems that mktime is buggy on Gentoo.
You can try to reset its state in some way before to retry strftime:
t = time.gmtime(time.time())
s = time.strftime('%Z', t)
print(s)
time.mktime((-1, 1, 1, 0, 0, 0, -1, -1, -1))
s =
Ross Lagerwall rosslagerw...@gmail.com added the comment:
It outputs:
SAST
LMT
LMT
An equivalent C program to the first test:
#include time.h
#include stdlib.h
#include stdio.h
int main() {
time_t t;
struct tm *tmp;
t = time(NULL);
tmp = localtime(t);
char str[200];
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
An implementation of RawIO with the win32 API can be useful (and I'd be
interested to compare the performance)
But maybe not for all usages: some Python interfaces are defined in terms of
file descriptors, imp.load_module(), and
New submission from Florent Xicluna florent.xicl...@gmail.com:
On builder AMD64 FreeBSD 8.2 3.x for the TIME_MINYEAR:
==
FAIL: test_negative (test.test_time.TestStrftime4dyear)
Марк Коренберг socketp...@gmail.com added the comment:
Why do you think it makes a difference?
Because adding one more dependency on unneeded libraries add the pain. Also it
limit us on very restricted API of that wrapper. Windows native API is stable.
So it's OK to rely on it's documented
New submission from Florent Xicluna florent.xicl...@gmail.com:
On builder x86 FreeBSD 7.2 3.x :
==
FAIL: test_tzset (test.test_time.TimeTestCase)
--
Traceback
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13309
___
___
Марк Коренберг socketp...@gmail.com added the comment:
The good example of implemetation is QT. I think we can get some things from
this library. (Like using \\?\ for long paths (or always, as in QT)).
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Why do you think it makes a difference?
Because adding one more dependency on unneeded libraries add the pain.
MSVCRT is unneeded?? What are you talking about?
Also it limit us on very restricted API of that wrapper. Windows
native API is
Florent Xicluna florent.xicl...@gmail.com added the comment:
See also issue #13313 on timezone, seen on x86 FreeBSD 7.2
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13309
___
New submission from Rob Bairos rbai...@gmail.com:
When adding hooks to sys.meta_path, to correctly deal with arbitrarily named
non-disk module definitions, module names with slashes should still be
processed.
As it stands when executing statements such as:
import my_module_123#/123
or
even
Changes by Rob Bairos rbai...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13314
___
___
Python-bugs-list mailing
New submission from Dave Flogeras dfloger...@gmail.com:
I am trying to unpack boost_1_46_1.tar.bz2 (you can grab it here
http://mirror.its.dal.ca/gentoo/distfiles/boost_1_46_1.tar.bz2) with the
following code:
import tarfile
t = tarfile.open( boost_1_46_1.tar.bz2 );
t.extractall()
On OSX
Petri Lehtinen pe...@digip.org added the comment:
More specifically, this happens if the Maildir instance is created two seconds
before items() is called:
import time
from mailbox import Maildir
x = Maildir('test') # has messages
time.sleep(2.5)
x.items()
[]
This happens because
Charles-François Natali neolo...@free.fr added the comment:
Here's a patch adding support for RDS sockets (with test and documentation
update).
--
keywords: +needs review, patch
nosy: +haypo, neologix, pitrou
stage: needs patch - patch review
versions: +Python 3.3 -Python 2.7, Python
Petri Lehtinen pe...@digip.org added the comment:
Attached a patch. It makes _refresh() re-read the _toc uncoditionally when
called the first time.
--
keywords: +needs review, patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file23584/issue13254.patch
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
It's more likely an issue with the chown call. Indeed, the tar file contains a
gid of 4294967295, which is too large for an int. Normally this was fixed by
issue1747858, which was included in Python 2.6.5 and 2.7.
Are you sure you
Antoine Pitrou pit...@free.fr added the comment:
A couple of things:
- the tests are skipped with unable to bind RDS socket here (even under
root). Is it expected?
- socket.error is the same as OSError now
- there are some ResourceWarnings abount unclosed sockets when running the tests
Changes by Eric V. Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13314
___
___
Python-bugs-list
Charles-François Natali neolo...@free.fr added the comment:
Hello Xavier,
select (an poll) returns a read event and an exceptional condition
for the socket, but there is no normal data to read, only out-of-band
data.
That's against POSIX:
POLLIN
Data other than high-priority data may be
New submission from simohe sim...@besonet.ch:
When I use build_py_2to3 and there is an error while converting a file with
2to3, convert is skipped on the next run.
The reason is that build_module in build_py_2to3 (in module
distutils.command.build_py) only appends the file for converting when
New submission from simohe sim...@besonet.ch:
We need build_ext before build_py. Otherwise, when 2to3 is called (in
build_py), it will not find ext modules, thinking that those modules are global
and, consequently, making a mess, now that all module imports are global.
--
components:
Changes by simohe sim...@besonet.ch:
--
components: +2to3 (2.x to 3.x conversion tool)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13316
___
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
The patch by Petri looks good.
I've uploaded a variant which set the initial mtimes to epoch instead of
creating a _toc_read attribute. The tests are not changed.
--
nosy: +flox
Added file:
Changes by simohe sim...@besonet.ch:
--
title: build_py_2to3 does not execute when there was an error before -
build_py_2to3 does not convert when there was an error in the last run
type: behavior -
___
Python tracker rep...@bugs.python.org
Florent Xicluna florent.xicl...@gmail.com added the comment:
Re-uploaded, because we can set initialize _last_read to 0 instead of
time.time(). It is more consistent.
--
Added file: http://bugs.python.org/file23586/issue13254_v2.diff
___
Python
Changes by Florent Xicluna florent.xicl...@gmail.com:
Removed file: http://bugs.python.org/file23585/issue13254_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13254
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
Finally, the patch can be only 5 lines...
--
Added file: http://bugs.python.org/file23587/issue13254_v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13254
Ned Deily n...@acm.org added the comment:
The issue is indeed with chown call. The call that fails has a gid of -1,
truncated to 4294967295, which is a valid gid on OS X ('nogroup'). The
Apple-supplied Python 2.7.1 in OS X 10.7 fails running under sudo as root:
Python 2.7.1 (r271:86832, Jun
Charles-François Natali neolo...@free.fr added the comment:
- the tests are skipped with unable to bind RDS socket here (even
under root). Is it expected?
Oops. I did a quick test to force the socket family (because RDS sockets really
use sockaddr_in), and apparently I overwrote my original
Ned Deily n...@acm.org added the comment:
For some reason, Apple is patching Modules/posixmodule.c in a way that reverts
the fixes to chown in Issue1747858. You can see the patches for their 10.7.2
python 2.7 here:
http://opensource.apple.com/source/python/python-57/2.7/fix/posixmodule.c.ed
Changes by Ned Deily n...@acm.org:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13315
___
___
Python-bugs-list mailing
Changes by Ned Deily n...@acm.org:
--
status: pending - open
title: Unable to deal with large tarfile - tarfile extract fails on OS X
system python due to chown of gid=-1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13315
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 23ffaf975267 by Florent Xicluna in branch '3.2':
Closes #2892: preserve iterparse events in case of SyntaxError.
http://hg.python.org/cpython/rev/23ffaf975267
New changeset ca1e2cf2947b by Florent Xicluna in branch
New submission from Chris Piekarski ch...@cpiekarski.com:
Shelve object second tier array subscript key generation doesn't behave the
same way dictionary object do.
import shelve
x = shelve.open(tst1.shelve)
x[one] = {}
x
{'one': {}}
x[one][two] = 2
x
{'one': {}}
Whereas with a
Ned Deily n...@acm.org added the comment:
shelve is behaving as documented. Because the shelve dictionary entry is
mutable (a dictionary), you need to set writeback=True to get the behavior you
expect. http://docs.python.org/library/shelve.html
--
nosy: +ned.deily
resolution: -
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 9cb1b85237a9 by Florent Xicluna in branch 'default':
Issue #13312: skip the single failing value for now.
http://hg.python.org/cpython/rev/9cb1b85237a9
--
nosy: +python-dev
New submission from Roger Serwy roger.se...@gmail.com:
This is a minor interface issue. The accelerator for opening the _Options menu
in an editor conflicts with the F_ormat menu.
I suggest changing the Options accelerator to i since Alt-t is for toggling
tabs. (Perhaps the accelerator for
Brett Cannon br...@python.org added the comment:
If it is importlib._diagnostics then I'm fine with it, but I definitely don't
want it exposed in a public API.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13306
New submission from Inverness inverness...@gmail.com:
I am using a custom Python executable for an application I'm developing. I also
build PYDs to extend this Python environment. I decided to upgrade them and my
executable to use Visual C++ 10 while the Python DLL and other third party
PYDs,
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - tarek
components: +Distutils, Distutils2
nosy: +alexis, eric.araujo, loewis, tarek
versions: +Python 3.3 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13320
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13298
___
___
Python-bugs-list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d877d7f3b679 by Florent Xicluna in branch 'default':
Actually, there's more than one failing value. (changeset 9cb1b85237a9, issue
#13312).
http://hg.python.org/cpython/rev/d877d7f3b679
--
New submission from Matt Joiner anacro...@gmail.com:
os.fstat doesn't not accept an object with the fileno() method.
Probably a bunch of other similar functions will not either.
In some parts of the standard library it's common practice to call
PyObject_AsFileDescriptor on fd-wrapping
Matt Joiner anacro...@gmail.com added the comment:
Also affects 3.3.
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12684
___
Changes by Matt Joiner anacro...@gmail.com:
--
resolution: - works for me
status: open - languishing
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12684
___
80 matches
Mail list logo