Jesús Cea Avión added the comment:
Under Python 3, open(integer) tries to open a file descriptor.
So, "f=open(0,...); f.close()" closes stdin, rightly shutting down the
interpreter. It is not a crash, it is a shutdown. Tested under Linux.
The point is if opening a file descriptor i
Jesús Cea Avión added the comment:
In "help(open)" I see this:
"""
file is either a text or byte string giving the name (and the path
if the file isn't in the current working directory) of the file to
be opened or an integer file descriptor of the file
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue1621>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue11149>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue12976>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue12999>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jesús Cea Avión added the comment:
See too http://bugs.python.org/issue6755#msg143798
--
___
Python tracker
<http://bugs.python.org/issue12999>
___
___
Python-bug
Changes by Jesús Cea Avión :
--
title: _XOPEN_SOURCE usage on Solaris -> _XOPEN_SOURCE and
_XOPEN_SOURCE_EXTENDED usage on Solaris
___
Python tracker
<http://bugs.python.org/issu
Jesús Cea Avión added the comment:
Some rational in issue1759169.
--
___
Python tracker
<http://bugs.python.org/issue12999>
___
___
Python-bugs-list mailin
Changes by Jesús Cea Avión :
--
assignee: -> jcea
nosy: +jcea
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/issu
Jesús Cea Avión added the comment:
I have a question... What about the endianness of the data?. For instance, if
an Intel machine (little endian) creates a GDBM file, can it a) be recognized
as such in Sparc (big endian)? b) Can be open and used in Sparc
Changes by Jesús Cea Avión :
--
assignee: -> jcea
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue13022>
___
___
Python-bugs-list mailing list
Un
Jesús Cea Avión added the comment:
I agree with Martin here. We should *NOT* have first and second class OS
support, if we can avoid it.
That said, I wonder what happens in Windows with the BZ2 module, for instance
:-?. Do we include the BZ2 sourcecode to compile it under windows?.
I know
Jesús Cea Avión added the comment:
Antoine, I am a Linux/Solaris/Illumos guy. I only use Windows (virtualized) to
sync my iPhone with iTunes :)
--
___
Python tracker
<http://bugs.python.org/issue6
Jesús Cea Avión added the comment:
I want to move this forward.
Apparently, "/dev/poll" could be actually used transparently in python
"select.poll()" implementation. The semantics seems to be the same, so we could
use the "poll" syscall or "/dev/pol
Changes by Jesús Cea Avión :
--
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bugs-list mailin
Jesús Cea Avión added the comment:
Is it actually appropiate to commit this to 3.2?. I am neutral to it, just
asking.
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue13
Changes by Jesús Cea Avión :
--
hgrepos: +86
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jesús Cea Avión :
--
keywords: +patch
Added file: http://bugs.python.org/file23524/d014fd90a487.diff
___
Python tracker
<http://bugs.python.org/issue6
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23524/d014fd90a487.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
New submission from Jesús Cea Avión :
"Remote hg repo" accepts remote branches, but the devguide says that the patch
must be in "default" branch.
Update the docs.
I take care of this.
--
assignee: jcea
keywords: easy
messages: 146435
nosy: jcea
priority: nor
Jesús Cea Avión added the comment:
Eric, the original text says:
"""
The Create Patch button will then compute a diff for the head revision of the
remote branch, and attach the diff to the issue.
^^
"""
:-)
--
___
Jesús Cea Avión added the comment:
Eric, the original text says:
"""
The Create Patch button will then compute a diff for the head revision of the
**remote** branch, and attach the diff to the issue.
"""
:-)
--
___
Changes by Jesús Cea Avión :
--
Removed message: http://bugs.python.org/msg146438
___
Python tracker
<http://bugs.python.org/issue13269>
___
___
Python-bugs-list m
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23525/6ea157b9d110.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23525/6ea157b9d110.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23526/0ee4386d8f51.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Jesús Cea Avión added the comment:
First version of the patch. Review 0ee4386d8f51.diff
http://bugs.python.org/file23526/0ee4386d8f51.diff
Details:
1. Current code aliases "devpoll" in platforms with "/dev/poll" (Solaris and
derivatives). Considering all the other
Changes by Jesús Cea Avión :
--
keywords: +needs review
stage: needs patch -> patch review
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-
Jesús Cea Avión added the comment:
I have decided to segregate "select.devpoll" to a separate object, like
"select.epoll".
--
___
Python tracker
<http://bu
Jesús Cea Avión added the comment:
Solved points 1, 3 and 4.
2 will be solved with the documentation.
5 and 6 still pending.
--
___
Python tracker
<http://bugs.python.org/issue6
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23526/0ee4386d8f51.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23531/6becc4e3eece.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23531/6becc4e3eece.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23532/0b701eb5e9e3.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Jesús Cea Avión added the comment:
Documentation added. That solves 2 and 5.
I still have to solve 6.
--
___
Python tracker
<http://bugs.python.org/issue6
Changes by Jesús Cea Avión :
--
title: Implementing Solaris "poll" in the "select" module -> Implementing
Solaris "/dev/poll" in the "select" module
___
Python
Jesús Cea Avión added the comment:
2.7 is a long term maintenance branch, and this patch is trivial enough. I
think it is risk free :)
--
assignee: -> jcea
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issu
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue13288>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jesús Cea Avión added the comment:
Any progress on this?. I still see frequent OpenIndiana Buildbots failures
because of this. Is anybody activelly working on this?. Should I get involved?
--
___
Python tracker
<http://bugs.python.org/issue11
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue13324>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jesús Cea Avión added the comment:
+1 to the optional parameter.
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue13327>
___
___
Python-bugs-list m
Jesús Cea Avión added the comment:
Éric, thanks for paying attention to this. In this particular case, I checked
the code and verified that the variables were not used anywhere. But I will
comply with the policy in the future.
Thanks again for pointing out
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23532/0b701eb5e9e3.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23626/528fdd816160.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Jesús Cea Avión added the comment:
Please, review.
With current code, each devpoll object has capacity for managing 256 fds, by
default. This is about 2048 bytes. The cost seems reasonable, since a normal
program will have only a few devpoll objects around. I have considered an
optional
Jesús Cea Avión added the comment:
Checking the testsuite source code, I see several issues:
The server thread only waits for 3 seconds for the connection. If a connection
is not created before 3 seconds, the server suicides and when the connection is
tried, it will fail. This probably
Jesús Cea Avión added the comment:
About the "support.HOST", changing from "localhost" to "127.0.0.1" could be
problematic is servers without IPv4 support (servers IPv6 only). I guess this
is a theorical problem so far, and that when we find this issue the exce
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue13367>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jesús Cea Avión added the comment:
Charles-François:
The only way for the server thread being around would be if the test fails
badly, not calling teardown (I would do a fake tcp connection to the server in
the teardown, followed by a thread.join). In this case, the thread (being
"d
Jesús Cea Avión added the comment:
Uh doing a fake connection in the teardown would be problematic if the
socket is reused for something else in the meantime. The kernel is suppose to
keep the socket in the "not reuse" state for a while, but...
I am seeing too liberal
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23630/2b155a6d25bb.diff
___
Python tracker
<http://bugs.python.org/issue11812>
___
___
Python-bug
Jesús Cea Avión added the comment:
Antoine:
Deleting the socket timeout doesn't hang the test if we set the thread to
"daemon" and do not do a thread.join() (unneeded in the normal situation, since
garbage collecting the test instance will collect the thread too). If you don&
Jesús Cea Avión added the comment:
Antoine, the problem with this test is the timeout. We can set an arbitrary
timeout, but how big is big enough?.
My change doesn't need a timeout at all. Problem solved.
The only "cosmetic" problem is the risk of "leaking" a thread.
Jesús Cea Avión added the comment:
Antoine: Then you would be satisfied if I increase the timeout from 3 seconds
to 60 seconds and clean the event signaling?. The current event signaling code
has a few race conditions with potential deadlocks
Jesús Cea Avión added the comment:
Consider too that if something goes bad enough in the test to skip the teardown
method, the thread will be alive for a while, possibly contaminating some other
tests, like you commented.
This is actually unsolvable, I think. Code that NEED to be executed
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23631/71ab454bfe19.diff
___
Python tracker
<http://bugs.python.org/issue11812>
___
___
Python-bug
Jesús Cea Avión added the comment:
Please, review 71ab454bfe19.diff . I am not satisfied with the timeout
approach, since the timeout time is arbitrary. I would rather do the fake
connection in teardowm, to be sure the server died.
Anyway, this seems to be the minimal patch to solve the
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23632/b93657b239a5.diff
___
Python tracker
<http://bugs.python.org/issue11812>
___
___
Python-bug
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23631/71ab454bfe19.diff
___
Python tracker
<http://bugs.python.org/issue11812>
___
___
Python-bug
Jesús Cea Avión added the comment:
Stupid mistake. Please, review b93657b239a5.diff (erroneous "sock.close()"
deleted)
--
___
Python tracker
<http://bugs.python.o
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23635/c47a846bed1a.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23635/c47a846bed1a.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23636/518b32ce893e.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Jesús Cea Avión added the comment:
Please, check the new changeset, with all your feedback. Thanks!.
--
___
Python tracker
<http://bugs.python.org/issue6
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23643/2506e49b9f71.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Jesús Cea Avión added the comment:
Another changeset. Hopefully, final :-).
Please, review.
--
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Jesús Cea Avión added the comment:
Thanks, Ross. Your suggestion has been committed in my branch.
Waiting for more feedback.
--
___
Python tracker
<http://bugs.python.org/issue6
Jesús Cea Avión added the comment:
They are operations potentially slow, there are not realtime specifications.
My machine is quite capable (16 CPUs), but let's see what a bit of DTRACE
scripting tells us:
First, let's time the open:
"""
syscall::open*:entry
/co
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23646/9d687fdd924d.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Jesús Cea Avión added the comment:
New changeset, after Ross feedback. Thanks!.
--
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Jesús Cea Avión added the comment:
The timing for the GIL I am providing is for release&acquiring. That is, all
the work. In fact I am having in count too the syscall inside the
release&acquire, to account for cache issues.
That is, between the release and the acquire, there i
Jesús Cea Avión added the comment:
The problem with partial writes is that the data is not an unstructured stream
of bytes, but a concrete binary dump. You can not simply retry again.
My bet is that "/dev/poll" neves does partial writes.
If I am mistaken, I will bug the Illumos
Jesús Cea Avión added the comment:
Tagging this as targeting 3.3.
Nekmo, could you possibly poste some code showing the problem?
--
nosy: +jcea
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue13
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue9523>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jesús Cea Avión added the comment:
Closing. If anybody disagrees, reopen.
--
resolution: -> wont fix
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Jesús Cea Avión added the comment:
Anybody still working on this?.
We missed the 2.7 boat. DO NOT MISS THE 3.3 ONE!!! :-)
--
___
Python tracker
<http://bugs.python.org/issue4
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23684/11f08326afd0.diff
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bug
Jesús Cea Avión added the comment:
New changeset. The only change is:
"""
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -685,8 +685,16 @@
return -1;
}
if (n < size) {
-
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue13396>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jesús Cea Avión added the comment:
Maciej, could you possibly provide a "diff" file to apply?. I care about
Solaris support, but I don't have a Solaris 9 around for testing. Only Solaris
10 and OpenIndiana.
Try to provide a minimal patch, please.
--
nosy: +jcea
s
Jesús Cea Avión added the comment:
BTW, have you tried to compile with GCC?
--
___
Python tracker
<http://bugs.python.org/issue13398>
___
___
Python-bugs-list m
Changes by Jesús Cea Avión :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue6397>
___
___
Python-bugs-list
New submission from Jesús Cea Avión :
I want this to 3.3. I will concentrate in DTrace under Solaris and derivatives,
for now. No SystemTap.
Original details, useful for context: issue4111.
My reference is going to be Solaris/OpenIndiana patches for Python DTrace
support
Changes by Jesús Cea Avión :
--
dependencies: +Add Systemtap/DTrace probes
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailin
Changes by Jesús Cea Avión :
--
resolution: -> out of date
status: open -> closed
superseder: -> Add DTrace probes
___
Python tracker
<http://bugs.python.o
Changes by Jesús Cea Avión :
--
hgrepos: +90
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jesús Cea Avión :
--
keywords: +patch
Added file: http://bugs.python.org/file23690/05fde8943685.diff
___
Python tracker
<http://bugs.python.org/issue13
Jesús Cea Avión added the comment:
Based on work done by skip.montanaro for issue4111.
05fde8943685.diff compiles correctly under Solaris 10 & derivatives, both in 32
and 64 bits.
I am working on 2.7 because I consider this feature important enough for
providing a patch against
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23691/1563b5a70362.diff
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bug
Jesús Cea Avión added the comment:
Can you add the missing library path in CFLAGS and LDFLAGS environment
variables?.
Something like: (from a fresh source code)
./configure OPTIONS CFLAGS=-Ipath LDFLAGS=-Ipath
If that works, we can explore why the path is not detected automatically.
Do
Jesús Cea Avión added the comment:
BTW, is only curses building failing?. Is the rest of the code built
correctly?. That would be a good hint.
--
___
Python tracker
<http://bugs.python.org/issue13
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23696/9fcca74ff413.diff
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bug
Jesús Cea Avión added the comment:
New changeset, with testsuite added.
Compile the code adding "--with-dtrace" to your "configure" command. After
compiling, test the code with
"""
LD_LIBRARY_PATH=current_path
export LD_LIBRARY_PATH
./python Lib/test/reg
Changes by Jesús Cea Avión :
Added file: http://bugs.python.org/file23701/7a2465f6a56a.diff
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bug
Changes by Jesús Cea Avión :
--
nosy: +jcea
___
Python tracker
<http://bugs.python.org/issue13418>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jesús Cea Avión added the comment:
The LD_LIBRARY_PATH is because I am compiling Python as a shared lib and, of
course, I am not installing the development version in the usual system path.
That is, it is not a requirement for this project, but an easy to follow
procedure for unexperienced
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23690/05fde8943685.diff
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bug
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23691/1563b5a70362.diff
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bug
Changes by Jesús Cea Avión :
Removed file: http://bugs.python.org/file23696/9fcca74ff413.diff
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bug
1 - 100 of 1497 matches
Mail list logo