PyGUI 2.3.3 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Minor update to fix a problem with the previous release on
some versions of MacOSX.
What is PyGUI?
--
PyGUI is a cross-platform GUI toolkit designed to be lightweight
and have a highly Pythonic
Dmitry Groshev lambdadmi...@gmail.com writes:
-I can't find any information about reverse's complexity in python
docs, but it seems that deque is a linked list. Maybe this is the one
I need.
Deques are not linked lists. They're just like regular Python lists
(i.e. resizeable arrays) except
On Sat, 18 Dec 2010 19:59:45 -0800, Carl Banks wrote:
On Dec 17, 12:23 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Thu, 16 Dec 2010 20:32:29 -0800, Carl Banks wrote:
Even without the cleanup issue, sometimes you want to edit a function
to affect all return values
On Sat, 18 Dec 2010 22:18:07 -0800, Dmitry Groshev wrote:
Is there any way to use a true lists (with O(c) insertion/deletion and
O(n) search) in python?
Python lists have amortized constant time insertion and deletion at the
end of the list, O(N) insertion and deletion at the beginning of
Am 19.12.2010 09:24, schrieb Paul Rubin:
Deques are not linked lists. They're just like regular Python lists
(i.e. resizeable arrays) except they can grow and shrink at both ends
rather than just one. The amortized complexity of an append or pop
operation (at either end) is O(1) but
hi! i'm newbie about python and i want to measure the value of cwnd in TCP
socket.
I have searched from an internet and got that we could handle it from SOL_TCP,
TCP_INFO...since unix had #include netinet/tcp.h and we could refer to
tcp_info
for getting the information of TCP by using this
Am 19.12.2010 11:39, schrieb plz:
hi! i'm newbie about python and i want to measure the value of cwnd in TCP
socket.
I have searched from an internet and got that we could handle it from SOL_TCP,
TCP_INFO...since unix had #includenetinet/tcp.h and we could refer to
tcp_info
for getting the
Steven D'Aprano wrote:
I can't see any way to go from this linked list:
node1 - node2 - node3 - node4 - node5 - node6 - node7
to this:
node1 - node6 - node5 - node4 - node3 - node2 - node7
in constant time. You have to touch each of the nodes being reversed.
very crude example:
Am 19.12.2010 11:39, schrieb plz:
hi! i'm newbie about python and i want to measure the value of cwnd in TCP
socket.
I have searched from an internet and got that we could handle it from SOL_TCP,
TCP_INFO...since unix had #includenetinet/tcp.h and we could refer to
tcp_info
for getting the
Dmitry Groshev wrote:
Is there any way to use a true lists (with O(c) insertion/deletion
and O(n) search) in python?
Inserting/deleting in the middle requires shuffling elements around, since
Python's list is an array/vector. If you don't rely on the ordering, insert
or delete at the end
Am 19.12.2010 07:18, schrieb Dmitry Groshev:
Is there any way to use a true lists (with O(c) insertion/deletion and
O(n) search) in python? For example, to make things like reversing
part of the list with a constant time.
reversing part of the list could also be interpreted as reading it
in the
On 12/18/2010 10:41 PM, Dmitry Groshev wrote:
On Dec 19, 9:18 am, Dmitry Groshevlambdadmi...@gmail.com wrote:
Is there any way to use a true lists (with O(c) insertion/deletion and
O(n) search) in python? For example, to make things like reversing
part of the list with a constant time.
I
On 2010-12-18 22:18:07 -0800, Dmitry Groshev said:
Is there any way to use a true lists (with O(c) insertion/deletion and
O(n) search) in python? For example, to make things like reversing
part of the list with a constant time.
I assume you mean a C extension that implements doubly linked
On Sun, Dec 19, 2010 at 5:59 AM, Vito 'ZeD' De Tullio
zak.mc.kra...@libero.it wrote:
Steven D'Aprano wrote:
I can't see any way to go from this linked list:
node1 - node2 - node3 - node4 - node5 - node6 - node7
to this:
node1 - node6 - node5 - node4 - node3 - node2 - node7
in constant
On Sun, 19 Dec 2010 20:45:55 +0100
Stefan Sonnenberg-Carstens stefan.sonnenb...@pythonmeister.com wrote:
Am 19.12.2010 07:18, schrieb Dmitry Groshev:
Is there any way to use a true lists (with O(c) insertion/deletion and
O(n) search) in python? For example, to make things like reversing
Dear list
I have to read some data from an ASCII text file, filter it, and then
export it to a .dbf file. Basically a straight forward task...
My problem is that the input files contains some special national
(Danish) characters, and it appears that I have to do something special
to handle
2010/12/19 Martin Hvidberg mar...@hvidberg.net:
Dear list
I have to read some data from an ASCII text file, filter it, and then export
it to a .dbf file. Basically a straight forward task...
My problem is that the input files contains some special national (Danish)
characters, and it appears
PyGUI 2.3.3 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Minor update to fix a problem with the previous release on
some versions of MacOSX.
What is PyGUI?
--
PyGUI is a cross-platform GUI toolkit designed to be lightweight
and have a highly Pythonic
hi
many thanks for helping me
i also tried to manipulate it last night
here is my code...
import socket
import struct
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
tcp_info = sock.getsockopt(socket.SOL_TCP, socket.TCP_INFO,
struct.calcsize('BBB'))
print
In article nad-84a6b3.18002019102...@news.gmane.org,
Ned Deily n...@acm.org wrote:
In article
aanlktimuzubyj7r8mbzpsfas0comobacgt8cvfysq...@mail.gmail.com,
Vincent Davis vinc...@vincentdavis.net wrote:
On Tue, Oct 19, 2010 at 3:55 PM, Philip Semanchuk phi...@semanchuk.com
wrote:
On
Hi Experts,
I am still struggling with handling output generated after execution of
command/script on host unix machine using windows client machine
ssh code :
import sys
import datetime
import time
# setup logging
paramiko.util.log_to_file('darshak_simple.log')
ssh=paramiko.SSHClient()
Changes by Ned Deily n...@acm.org:
Added file: http://bugs.python.org/file20108/issue10735-py3k.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10735
___
Changes by Ned Deily n...@acm.org:
Added file: http://bugs.python.org/file20109/issue10735-27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10735
___
Changes by Ned Deily n...@acm.org:
Removed file: http://bugs.python.org/file20106/issue10735-py3k.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10735
___
Changes by Ned Deily n...@acm.org:
Removed file: http://bugs.python.org/file20107/issue10735-27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10735
___
Georg Brandl ge...@python.org added the comment:
Deferring.
--
priority: release blocker - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10734
___
Georg Brandl ge...@python.org added the comment:
Attaching a patch that should fix it. The delegation of the links to the
Makefile is not ideal, but I don't see how to easily do it otherwise.
While this is reviewed, deferring as it should not block beta2.
--
priority: release blocker
Changes by Georg Brandl ge...@python.org:
--
keywords: +patch
Added file: http://bugs.python.org/file20110/altinstall_scripts.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10679
___
Georg Brandl ge...@python.org added the comment:
Deferring, this is not a bug.
--
priority: release blocker - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8754
___
Georg Brandl ge...@python.org added the comment:
I've committed in the py3k branch as r87394, so that this can get testing
during beta, although your list of test systems looks quite exhaustive already.
Lowering priority and leaving open for the backports.
--
priority: release
Georg Brandl ge...@python.org added the comment:
I disabled the test temporarily in r87395 -- it needs to be reenabled after
fixing this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10734
Senthil Kumaran orsent...@gmail.com added the comment:
This is committed in r87399. Documentation and NEWS is added. Thanks for the
patch and review comments.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Xuanji Li xua...@gmail.com added the comment:
Hello, sorry for commenting on a closed issue... but I think the documentation
change is incorrect. In urllib.request.rst, it says data is a string. However
as seen in the changes to test_urllib2.py, data must be a bytes object rather
than a
Xuanji Li xua...@gmail.com added the comment:
Also, the patch for request.py contains a debug statement, print(data)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3243
___
Georg Brandl ge...@python.org added the comment:
Good catch, fixed in r87400.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3243
___
___
Xuanji Li xua...@gmail.com added the comment:
Also, I am not familiar with the backward-comparability requirements of py3k,
but orsenthil's patch will break py3k code that relies on data being a string,
shouldn't this be mentioned somewhere?
Finally, I do not understand why my proposed
Georg Brandl ge...@python.org added the comment:
Hmm, indeed: Senthil, could data be a string in earlier versions?
If yes, the code should be changed to still allow that. (But after beta2
please, it's already tagged.)
--
status: closed - open
___
Georg Brandl ge...@python.org added the comment:
Raising priority so that this gets sorted out before final.
--
priority: normal - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3243
Changes by Xuanji Li xua...@gmail.com:
--
nosy: +xuanji
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10680
___
___
Python-bugs-list mailing list
Changes by Xuanji Li xua...@gmail.com:
--
nosy: +xuanji
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9938
___
___
Python-bugs-list mailing list
Changes by Xuanji Li xua...@gmail.com:
--
nosy: +xuanji
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10702
___
___
Python-bugs-list mailing list
New submission from Ned Deily n...@acm.org:
3.2b2(~)
The following two test failures are seen with the newly released Cocoa-based
ActiveState Tcl 8.5.9 on OS X 10.6. No failures are reported when using the
Apple Tcl/Tk 8.5 supplied with 10.6.
Changes by Ned Deily n...@acm.org:
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10736
___
___
Python-bugs-list mailing
New submission from Antoine Pitrou pit...@free.fr:
This has been happening recently on our Windows Server 2008 buildbot:
==
FAIL: test_first_completed (test.test_concurrent_futures.ThreadPoolWaitTests)
Changes by Georg Brandl ge...@python.org:
--
priority: high - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10737
___
___
Georg Brandl ge...@python.org added the comment:
Are you in a position to debug this a bit more?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10736
___
Antoine Pitrou pit...@free.fr added the comment:
Instead of the platform module, one must resort to hacks like examining
sys.maxsize
I'm not sure why you think it's a hack. To me, it's, by construction, the right
way to check for 64-bitness (and also the easiest since it doesn't involved
Ned Deily n...@acm.org added the comment:
I'll look into it. No need to hold up beta2 for this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10736
___
Ned Deily n...@acm.org added the comment:
It's only a hack in the sense that platform.architecture is the documented
interface in the std library to report bits and, unfortunately, users try to
use it to determine whether running in 64-bit or 32-bit mode. For instance,
see here:
Antoine Pitrou pit...@free.fr added the comment:
It's only a hack in the sense that platform.architecture is the
documented interface in the std library to report bits and,
unfortunately, users try to use it to determine whether running in
64-bit or 32-bit mode. For instance, see here:
Xuanji Li xua...@gmail.com added the comment:
Hi, it seems to me that section 4.6.5. Bytes and Byte Array Methods covers this
already. It says:
Bytes and bytearray objects, being “strings of bytes”, have all methods found
on strings, with the exception of encode(), format() and
Senthil Kumaran orsent...@gmail.com added the comment:
Xuanji, Thanks for the comments on 'data' being bytes. I had just cared to add
the feature information. I think that data detail should have been updated too.
I think for your other two questions, we discussed it msg123051 - socket in
Michael Foord mich...@voidspace.org.uk added the comment:
Committed to Python 2.7 in revision 87406.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from NE1 garb...@verizon.net:
Tested with Python 2.7.1 / Linux 2.6.33.2 / Opera 10.63. Build 6450 for Linux
class Opera(UnixBrowser) shows:
raise_opts = [, -raise]
-raise is not a valid command line option for Opera.
This causes all webbrowser open methods (that use
R. David Murray rdmur...@bitdance.com added the comment:
I agree that the unquoted single column cases look weird. But changing it could
affect other cases were there is more data. I'll leave that problem to you :)
But I do not think that should be backported.
The locals trick I stole from
Michael Foord mich...@voidspace.org.uk added the comment:
Improved implementation committed to 2.7 revision 87407. Method name unchanged
there.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10242
Skip Montanaro s...@pobox.com added the comment:
Also, this comment in test_csv.py puzzles me:
# given that all three lines in sample3 are equal,
# I think that any character could have been 'guessed' as the
# delimiter, depending on dictionary order
As a human looking
Changes by Ron Adam ron_a...@users.sourceforge.net:
--
nosy: +ron_adam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8916
___
___
Python-bugs-list
Skip Montanaro s...@pobox.com added the comment:
Here's my candidate patch. Instead of returning an empty string
as the delimiter it returns a comma.
--
Added file: http://bugs.python.org/file20111/csv_delimiter_tests.patch
___
Python tracker
Changes by SilentGhost michael.mischurow+...@gmail.com:
Removed file: http://bugs.python.org/file19671/logging.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
SilentGhost michael.mischurow+...@gmail.com added the comment:
following re-organization of the logging docs, I'm attaching updated patch.
--
nosy: +vinay.sajip
Added file: http://bugs.python.org/file20112/logging-cookbook.rst.diff
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
Why was sys.setsegfaultenabled() omitted?
Just because I forgot your message, sorry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8863
Gregory P. Smith g...@krypto.org added the comment:
In your back traces notice that the size= argument is clearly nonsensical.
Regardless, i can't reproduce this on any of my systems (I don't have a suse
system of any sort). If that is the only place you are seeing this I strongly
suspect
Gregory P. Smith g...@krypto.org added the comment:
unassigning, i don't had time to look at this one.
--
assignee: gregory.p.smith -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3566
___
Terry J. Reedy tjre...@udel.edu added the comment:
Vinay, you should look at the logging-cookbook patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10461
___
Éric Araujo mer...@netwok.org added the comment:
This apparently lacks a 2.7 backport.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10728
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10663
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
If nobody objects, I will commit this when py3k is unfrozen.
--
assignee: - eric.araujo
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10639
Éric Araujo mer...@netwok.org added the comment:
What I’m saying is: If you would like to contribute a patch, here are some
helpful guidelines to follow. They help you getting set up and catch some
common errors, and they help us review the patch to accept or comment it.
--
Éric Araujo mer...@netwok.org added the comment:
Thanks for the explanations and fix!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9286
___
Ned Deily n...@acm.org added the comment:
Thanks for the suggested code. As suggested, it would be helpful to supply a
complete patch (or patches) ready to be reviewed and applied to the tips of the
currently maintained source trees (py3k, 3.1, and 2.7) including adding an
appropriate test
Changes by Senthil Kumaran orsent...@gmail.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3566
___
___
Python-bugs-list
Changes by Ned Deily n...@acm.org:
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10738
___
___
Python-bugs-list mailing
STINNER Victor victor.stin...@haypocalc.com added the comment:
Version 10 of my patch:
- the fault handler restores the previous signal handler instead of calling
(DebugBreak() and) abort(): the previous signal handler will be called later to
keep the orignal behaviour
- _testcapi.sigill()
Kevin Hendricks kevin.hendri...@sympatico.ca added the comment:
Final patches against the trees make no sense as no developer has decided which
way they want to actually handle the problem.
My patch is only one way and I note it may not be the way the owners of the
code want.
Also, this
Martin v. Löwis mar...@v.loewis.de added the comment:
The problem is that the nested group doesn't share/propagate mutually exclusive
groups with its parent container. The attached patch fixes this.
--
keywords: +patch
Added file: http://bugs.python.org/file20114/argparse.diff
Ned Deily n...@acm.org added the comment:
Adding a warning sounds like a good idea. Is it reasonable to include a
recommended cross-platform approach in the platform doc, like either the
sys.maxsize test or the struct.calsize(P) test (which is used as a default
fallback in
Ned Deily n...@acm.org added the comment:
Not to belabor the point but the most useful part of a ready-to-go patch would
be to have a fully automated test case that fits into the existing
test_zipfile.py structure and that demonstrates the failure. Somebody has to
write a test case one way or
R. David Murray rdmur...@bitdance.com added the comment:
Actually our normal procedure currently (this will change a bit after the
migration to mercurial) is a patch against the py3k branch, and the committer
will do the backport to the other active branches. If the 2.7 code is very
R. David Murray rdmur...@bitdance.com added the comment:
Like Georg, I'll get to that when I do a mass backport of all my doc fixes. My
apologies for missing the beta2 deadline on doing that, but there aren't many
of them.
--
___
Python tracker
Chris Lieb chris.lieb.hotmail+pyt...@gmail.com added the comment:
I don't have any way to test this anymore since they removed pretty much the
entire toolchain on that server and I really don't feel like trying to get an
entire toolchain built and installed just to test this.
--
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - wont fix
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10733
___
Scott Dial sc...@scottdial.com added the comment:
FYI, in v10,
+#define NFAULT_SIGNALS (sizeof(fault_signals) / sizeof(fault_signals[0]))
+static fault_handler_t fault_handlers[4];
, should use NFAULT_SIGNALS instead of 4.
However, this bit of code bothers me a lot:
+const int fd = 2; /*
New submission from Ross Lagerwall rosslagerw...@gmail.com:
On Windows, creating a subprocess does not work when stdin (or stdout or
stderr) is set as a file object created from socket.makefile(). An IOError is
thrown.
This works fine on Unix so I assume it is a platform limitation rather
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Attached is a patch to document this.
--
keywords: +patch
Added file: http://bugs.python.org/file20116/subprocessdoc.diff
___
Python tracker rep...@bugs.python.org
85 matches
Mail list logo