Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Adam Skutt
On Jan 17, 3:08 pm, "Octavian Rasnita" wrote: >> From: "Adam Skutt" >> And we're not discussing those languages, we're discussing Python, >> which has an explicit policy of "batteries included".  As such, >> criticism of the st

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Adam Skutt
On Jan 18, 3:49 am, "Octavian Rasnita" wrote: > From: "Adam Skutt" > Subject: Re: Tkinter: The good, the bad, and the ugly! > > On Jan 17, 3:08 pm, "Octavian Rasnita" wrote: > > "Batteries included"? > > > Python doesn't

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Adam Skutt
ipal, practice is pretty heavily divorced from principal here. Principal doesn't help me write GUI applications today. > wxWidgets is not suitable for a modern type > GUI ad thus clearly not the toolkit/framework > of the 21st century. None of the toolkits accessible from CPython

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Adam Skutt
On Jan 18, 2:11 pm, rantingrick wrote: > Adam now you are making sense. Everything you said here is true. > This > is why we must push for the OpenGUI standard. Funny, I write considerable detail about why such a thing is a pipedream and useless even if it came to fruition, and yo

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Adam Skutt
yout capabilities are both simultaneously far advanced and far worse. Yet, it is likely the way of the future for a large portion of us, like it or not. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Adam Skutt
On Jan 18, 4:45 pm, Arndt Roger Schneider wrote: > Adam Skutt schrieb: > > Until we have pixel-perfect touch sensors, toolkits for devices with > > pointer interfaces (e.g., PCs) and toolkits for devices with touch > > interfaces (e.g., phones and tablets) will necessarily be

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Adam Skutt
On Jan 18, 6:36 pm, rantingrick wrote: On Jan 18, 4:57 pm, Adam Skutt wrote: > On Jan 18, 4:45 pm, Arndt Roger Schneider > > > E.g. a button is: > > > A function gets asychnronously performed in response to > > > a finger/mouse click and release inside a certain sc

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Adam Skutt
imized version of wxWidgets in the standard library by now as opposed to the whole damn thing. He dodges technical questions because he lacks even the most elementary understanding. He'll do the same to you and only offer absurd platitudes and insults in return, as opposed to actual working

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Adam Skutt
n distribution does not change the size of the dependency set one bit, and that dwarfs the python code in any case. That is what you want to avoid in my opinion. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread Adam Skutt
; on those platforms (screen readers). Or we have cross-platform support as a requirement and no desire to develop the GUI interface three times over. Hence the continued popularity of Java GUIs. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread Adam Skutt
nd I don't see how changing toolkits gets away from this. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread Adam Skutt
apps by > default, without even knowing this. Have you written an accessible application in any toolkit whatsoever? It is not magic, and it does not happen by default, even when solely using the standard widgets. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: UTF-8 question from Dive into Python 3

2011-01-19 Thread Adam Skutt
do it without altering the meaning of the samples; it is a completely non-nonsensical operation. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread Adam Skutt
esire to > > develop the GUI interface three times over.  Hence the continued > > popularity of Java GUIs. > > Java GUIS are accessible. Maybe that's the reason. No, the reason is as I stated, no more, no less. Accessibility doesn't enter into most designs. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread Adam Skutt
On Jan 19, 11:09 am, "Octavian Rasnita" wrote: > From: "Adam Skutt" > > Accessibility always requires special effort, and I don't see how > > changing toolkits gets away from this. > > This is the most false thing I ever heard and the most dan

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread Adam Skutt
d software are built correctly, so again, your argument is really for Qt, not for wxWidgets. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
gt; I just did, NVDA was able to read my button text and its accessibility description just fine, both in C++ and Python versions of my Qt application. I didn't bother testing Linux or OS X, but I'm sure it would work there too. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
custom building Qt yourself. On Linux, you have to set QT_ACCESSIBILITY = 1, but Linux is the exception. > And most important, have you tested it with JAWS screen reader? (Or > WindowEyes at least) because these are the most used screen readers. > NVDA is pretty poor and it can't b

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
On Jan 20, 10:44 am, "Octavian Rasnita" wrote: > From: "Adam Skutt" > Actually, JAWS uses MSAA dead last, as I understand it, because the > API is truly that awful.  But MSAA is necessary whenever you're not > using a Win32 common control or most of the other

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
entire discussion. I didn't think it worth mentioning because I didn't think it all that relevant to any of the discussions that end ed up occurring here. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
On Jan 20, 3:02 pm, "Octavian Rasnita" wrote: > From: "Adam Skutt" > Yet, for some unfathomable reason, you > keep promoting > I would be glad if you could tell me about a portable solution which is > accessible with JAWS and Window Eyes, the most used screen

Re: examples of realistic multiprocessing usage?

2011-01-21 Thread Adam Skutt
u land in. > > So pardon me, but not even looking at code you might learn from > is pretty hysteric. Not at all. Separating ideas from implementation can be difficult, and convincing a judge of that vastly more so. It's a legitimate concern, and people who intend to ship proprietary s

Re: WxPython versus Tkinter.

2011-01-23 Thread Adam Skutt
#x27;t tell Mr. "rantingrick" Johnson about them. It can be our little secret ;) Adam [1] I think there might even be more, but I got lazy. -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-23 Thread Adam Skutt
ou didn't even test the functionality you provided in your own code, or that if you did, you're entirely clueless about GUI design fundamentals. > The main point is to create a > ListCtrl that has two view modes, icons, and editable items. You lack > simple reading and com

Re: WxPython versus Tkinter.

2011-01-23 Thread Adam Skutt
the grand scheme of things. Qt, Swing, Gtk, and Win32 common controls[1] don't provide the same exact control either, should we view it as deficient? But regardless of the challenge, I don't think you're capable of posting a worthwhile example, which is why you dismiss all the p

Re: WxPython versus Tkinter.

2011-01-23 Thread Adam Skutt
prints tracebacks, much less tracebacks that assist you in debugging. Put plainly, you have no clue whatsoever what your code actually does or how it accomplishes it, which is exactly what we'd expect. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Shared memory python between two separate shell-launched processes

2011-02-11 Thread Adam Skutt
none of the three are implemented with perfect consistency across Unicies. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Shared memory python between two separate shell-launched processes

2011-02-12 Thread Adam Skutt
loading stuff into RAM. It's not different from using memcached, or sqlite, or any other database for that matter. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing & more

2011-02-13 Thread Adam Skutt
o return duplicate entries; this is what I expect is happening to you. The right thing to do is actually check to see if all the files you want exist, if you can. If not, you'll have to keep waiting until you've opened all the files you expect to open. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing & more

2011-02-14 Thread Adam Skutt
key off of that. Those (or slight variants on them) are the common ways. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Missing SIGCHLD

2011-02-15 Thread Adam Skutt
at.  :(  Sadly, many > application programmers tend to ignore the EINTR possibility. This can be disabled by signal.siginterrupt(). Regardless, the signal handling facilities provided by Python are rather poor. Adam [1] Ok, I lied, there's regular signals and realtime signals, which have a few minor differences. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to gain root privileges

2011-02-16 Thread Adam Skutt
d to be root, of course, or make the users members of that group anyway (in which case, just use the damn ACL). Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to gain root privileges

2011-02-16 Thread Adam Skutt
I'm not even remotely convinced that 'removing skill' is a good idea. It especially doesn't help you very much when the whole point of your script is just a wrapper to elevate privileges (execute another programs) or copy files about. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to gain root privileges

2011-02-17 Thread Adam Skutt
On Thu, Feb 17, 2011 at 2:12 AM, Dan Stromberg wrote: > > On Wed, Feb 16, 2011 at 6:59 PM, Adam Skutt wrote: >> On Feb 16, 9:00 pm, Dan Stromberg wrote: >>> So yeah, whether you use perl or anything else invoked with #!, you're >>> pretty much better off with

Re: Best way to gain root privileges

2011-02-17 Thread Adam Skutt
larger design issues mandating the need for privilege when it's not really necessary. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to gain root privileges

2011-02-17 Thread Adam Skutt
needing privilege escalation, you should go back and see if there is another way to achieve what you want. There's a good chance the other way will be a better way. It sounds to me like you need to better define all the operations that your software needs to be able to accomplish and what pri

Re: Best way to gain root privileges

2011-02-18 Thread Adam Skutt
legal privileges to modify the program, then there > *is* a security hole and the program is not really the problem. sudo already does this to a limited degree. If you want more granularity than sudo, you're looking at mandatory access controls. Adam -- http://mail.python.org/mailman/listinfo/python-list

Porting Python2 C-API/Swig based modules to Python 3

2011-02-23 Thread Adam Pridgen
any advice/insght about how I can troubleshoot, diagnose, and resolve this issue? Thanks in advance, -- Adam 0:pylibpcap-0.6.2$ python3 Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credi

Re: Porting Python2 C-API/Swig based modules to Python 3

2011-02-23 Thread Adam Pridgen
unicode and number. Hopefully these details will be helpful to others in the future. Thanks again for the nudge, -- Adam. On Wed, Feb 23, 2011 at 11:58 AM, casevh wrote: > On Feb 23, 8:54 am, Adam Pridgen > wrote: >> Hello, >> >> I am trying to get a compiled module to wor

Re: Porting Python2 C-API/Swig based modules to Python 3

2011-02-23 Thread Adam Pridgen
Link to pastebin: http://pastebin.com/102fhkgp On Wed, Feb 23, 2011 at 6:18 PM, Adam Pridgen wrote: > Thanks for the help.  That information got me started in the right > direction.  I put my notes up on paste bin for others to use in the > future. > > For the future reference of

Classes and threading

2010-05-18 Thread Adam W.
(args=('fruit'),name='charlie') pants.start() Traceback (most recent call last): File "C:\Users\Adam\Desktop\PyTiVo\task_master.py", line 13, in pants = nThread(args=('fruit'),name='charlie') TypeError: __init__() got an unexpected keywor

Re: Classes and threading

2010-05-19 Thread Adam W.
On May 19, 12:04 am, Erik Max Francis wrote: > Adam W. wrote: > > I thought I knew how classes worked, but this code sample is making my > > second guess myself: > > > import threading > > > class nThread(threading.Thread): > >     def __init__(self): >

Re: Classes and threading

2010-05-19 Thread Adam W.
On May 19, 4:30 am, Gregory Ewing wrote: > Or if you do need to override it for some reason, you > need to accept the extra args and pass them on: > >    class nThread(threading.Thread): > >        def __init__(self, *args, **kwds): >            threading.Thread.__init__(self, *args, **kwds) >    

Re: Python -- floating point arithmetic

2010-07-08 Thread Adam Skutt
On Jul 8, 12:53 am, "Zooko O'Whielacronx" wrote: > I don't understand. I described two different problems: problem one is > that the inputs, outputs and literals of your program might be in a > different encoding (in my experience they have most commonly been in > decimal). Problem two is that you

Re: Python -- floating point arithmetic

2010-07-08 Thread Adam Skutt
On Jul 8, 7:23 am, Mark Dickinson wrote: > On Jul 8, 11:58 am, Adam Skutt wrote: > > > accurately.  Moreover, in general, it's impossible to even round > > operations involving transcendental functions to an arbitrary fixed- > > precision, you may need effectively i

Re: Python -- floating point arithmetic

2010-07-08 Thread Adam Skutt
On Jul 8, 9:22 am, Mark Dickinson wrote: > On Jul 8, 2:00 pm, Adam Skutt wrote: > > > On Jul 8, 7:23 am, Mark Dickinson wrote:> On Jul 8, > > 11:58 am, Adam Skutt wrote: > > > > > accurately.  Moreover, in general, it's impossible to even round &g

Re: Python -- floating point arithmetic

2010-07-08 Thread Adam Skutt
deal out of than is appropriate. The fact that I may not be able to complete a given calculation for an arbitrary precision is not something that can be ignored. It's the same notional problem with arbitrary-precision integers: is it better to run out of memory or overflow the calculation? The answer, of course, is a trick question. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Python -- floating point arithmetic

2010-07-08 Thread Adam Skutt
On Jul 8, 12:38 pm, "Zooko O'Whielacronx" wrote: > On Thu, Jul 8, 2010 at 4:58 AM, Adam Skutt wrote: > > > I can't think of any program I've ever written where the inputs are > > actually intended to be decimal.  Consider a simple video editing >

Re: Python -- floating point arithmetic

2010-07-08 Thread Adam Skutt
mentary functions if you can tolerate intermediate calculations that are more than twice as large as your double in the corner cases. Certainly, for a single calculation, this is acceptable, but at how many calculations is it no longer acceptable? Adam -- http://mail.python.org/mailman/listinfo/python-list

M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-13 Thread Adam Mercer
before ')' token 339 :info:build SWIG/_m2crypto_wrap.c:22582: error: expected expression before ')' token 340 :info:build SWIG/_m2crypto_wrap.c:22615: warning: passing argument 4 of 'pkcs7_sign1' makes integer from pointer without a cast 341 :info:build SWIG/_m2crypto_wrap.c:22615: error: too many arguments to function 'pkcs7_sign1' 342 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_pkcs7_verify1': 343 :info:build SWIG/_m2crypto_wrap.c:22628: error: 'STACK' undeclared (first use in this function) 344 :info:build SWIG/_m2crypto_wrap.c:22628: error: 'arg2' undeclared (first use in this function) 345 :info:build SWIG/_m2crypto_wrap.c:22628: error: expected expression before ')' token 346 :info:build SWIG/_m2crypto_wrap.c:22659: error: expected expression before ')' token 347 :info:build SWIG/_m2crypto_wrap.c:22692: warning: passing argument 3 of 'pkcs7_verify1' from incompatible pointer type 348 :info:build SWIG/_m2crypto_wrap.c:22692: warning: passing argument 4 of 'pkcs7_verify1' makes integer from pointer without a cast 349 :info:build SWIG/_m2crypto_wrap.c:22692: error: too many arguments to function 'pkcs7_verify1' 350 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_pkcs7_verify0': 351 :info:build SWIG/_m2crypto_wrap.c:22707: error: 'STACK' undeclared (first use in this function) 352 :info:build SWIG/_m2crypto_wrap.c:22707: error: 'arg2' undeclared (first use in this function) 353 :info:build SWIG/_m2crypto_wrap.c:22707: error: expected expression before ')' token 354 :info:build SWIG/_m2crypto_wrap.c:22734: error: expected expression before ')' token 355 :info:build SWIG/_m2crypto_wrap.c:22755: warning: passing argument 3 of 'pkcs7_verify0' makes integer from pointer without a cast 356 :info:build SWIG/_m2crypto_wrap.c:22755: error: too many arguments to function 'pkcs7_verify0' 357 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_pkcs7_get0_signers': 358 :info:build SWIG/_m2crypto_wrap.c:23188: error: 'STACK' undeclared (first use in this function) 359 :info:build SWIG/_m2crypto_wrap.c:23188: error: 'arg2' undeclared (first use in this function) 360 :info:build SWIG/_m2crypto_wrap.c:23188: error: expected expression before ')' token 361 :info:build SWIG/_m2crypto_wrap.c:23199: error: 'result' undeclared (first use in this function) 362 :info:build SWIG/_m2crypto_wrap.c:23211: error: expected expression before ')' token 363 :info:build SWIG/_m2crypto_wrap.c:23227: error: expected expression before ')' token 364 :info:build error: command '/usr/bin/gcc-4.2' failed with exit status 1 Anyone know a way to resolve this? Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-14 Thread Adam Mercer
Anyone have any ideas about this? Cheers Adam On Tue, Jul 13, 2010 at 16:18, Adam Mercer wrote: > Hi > > I'm trying to build M2Crypto on Mac OS X 10.6.4 against python2.5 > (python2.6 fails in the same way), with SWIG 2.0.0 and OpenSSL 1.0.0a > and it is failing with th

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-15 Thread Adam Mercer
rchitecture, i.e. everything is 64 bit. The last time I build M2Crypto on this box was against SWIG-1.3.x and OpenSSL-0.9.8? So one of these (or both) has broken something... Looks like I'll have to revert each one at a time... Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-16 Thread Adam Mercer
ee > http://chandlerproject.org/Projects/MeTooCrypto for details on how to get > the sources. Thanks any ETA on a new release supporting OpenSSL 1.0.x? Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-17 Thread Adam Mercer
icular fire has been put out. Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils extension configuration problem

2009-06-13 Thread jenifer adam
On May 27, 2:10 am, Ron Garret wrote: > I'm trying to build PyObjC on an Intel Mac running OS X 10.5.7.  The > build is breaking because distutils seems to want to build extension > modules as universal binaries, but some of the libraries it depends on > are built for intel-only, i.e.: > > [...@mi

Re: Can't run PyQt apps with MacPython

2009-06-13 Thread jenifer adam
On May 13, 8:53 pm, Morad wrote: > I recently got a new MacBook Pro with Leopard, and would like to > develop using Python and PyQt. I installed the latest QtSDK, updated > MacPython to V 2.5.4 and then proceeded to install SIP and PyQt as > described in Mark Summerfield's book on PyQt Programming

Re: Help AIX 5.3 build on Python-3.1a2

2009-06-13 Thread jenifer adam
On Apr 26, 2:14 pm, Jeroen Ruigrok van der Werven wrote: > -On [20090425 19:17], Aahz (a...@pythoncraft.com) wrote: > > >In article > >, > > wrote: > >>"Include/token.h", line 42.9: 1506-213 (S) Macro name TILDE cannot be > >>redefined. > >>"Include/token.h", line 42.9: 1506-358 (I) "TILDE" is d

Re: moving Connection/PipeConnection between processes

2009-06-13 Thread jenifer adam
On Jun 13, 1:11 pm, Mike Kazantsev wrote: > On Sat, 13 Jun 2009 02:23:37 -0500 > > > > > > Randall Smith wrote: > > I've got a situation in which I'd like to hand one end of a pipe to > > another process.  First, in case you ask why, a spawner process is > > created early before many modules are

Re: Lexical scope: converting Perl to Python

2009-06-13 Thread jenifer adam
On Jun 13, 10:44 am, Mike Kazantsev wrote: > On Fri, 12 Jun 2009 22:02:53 -0700 (PDT) > > > > > > Andrew Savige wrote: > > I'd like to convert the following Perl code to Python: > > >  use strict; > >  { > >    my %private_hash = ( A=>42, B=>69 ); > >    sub public_fn { > > my $param = shift

Re: Using easy_install, reduncant?

2009-08-06 Thread Adam N
On Jul 27, 7:53 pm, David Lyon wrote: > On Mon, 27 Jul 2009 09:42:06 -0700 (PDT), ray > wrote: > > > I am working on a Trac installation.  I am new to Python.  To install > > packages, it is suggested to use setuptools.  I have not understood > > the directions. > > > I execute ez_install.py. > >

Re: The future of Python immutability

2009-09-04 Thread Adam Skutt
e fact "Foo" and "Bar" are immutable isn't enough to solve the problem. The variables themselves, since they obey pointer semantics, must also be forbidden from being reseated (i.e., they must be references in the C++ sense or become 'T const * const' pointers). Thanks, Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: The future of Python immutability

2009-09-05 Thread Adam Skutt
On Sep 5, 12:06 am, Steven D'Aprano wrote: > On Fri, 04 Sep 2009 06:36:59 -0700, Adam Skutt wrote: > > Nope, preventing mutation of the objects themselves is not enough. You > > also have to forbid variables from being rebound (pointed at another > > object).  Co

Re: The future of Python immutability

2009-09-05 Thread Adam Skutt
On Sep 5, 11:29 am, Terry Reedy wrote: > > This is a pointless replacement for 'def b(x): return x+a' And? That has nothing to do with anything I was saying whatsoever. Point is: any mutable shared state is bad, and making objects immutable isn't enough to remove all shared state, or even reduce

Re: The future of Python immutability

2009-09-06 Thread Adam Skutt
On Sep 5, 7:38 pm, Steven D'Aprano No. Lambdas are a *syntactical construct*, not an object. You wouldn't > talk about "while objects" and "if objects" and "comment objects" > *because they're not objects*. This rhetoric precludes functions objects as well and is entirely non- compelling. > Funct

Re: The future of Python immutability

2009-09-06 Thread Adam Skutt
On Sep 5, 10:34 pm, Terry Reedy wrote: > Adam Skutt wrote: > > On Sep 5, 11:29 am, Terry Reedy wrote: > >> This is a pointless replacement for 'def b(x): return x+a' > > > And?  That has nothing to do with anything I was saying whatsoever. > > Agreed.  

urllib, can't seem to get form post right

2009-09-24 Thread Adam W.
I'm trying to scrape some historical data from NOAA's website, but I can't seem to feed it the right form values to get the data out of it. Heres the code: import urllib import urllib2 ## The source page http://www.erh.noaa.gov/bgm/climate/bgm.shtml url = 'http://www.erh.noaa.gov/bgm/climate/pic

Re: Pythonic way of saying 'at least one of a, b, or c is in some_list'

2010-10-29 Thread Adam Przybyla
in days_off]): >doSomething > > Is there a better pythonic idiom for this situation? ... hmmm, try this: if set(['monday', 'tuesday'])&set(days_off): dosomething Regards Adam Przybyla -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing signal defect

2010-10-30 Thread Adam Skutt
On Oct 29, 10:08 am, Adam Tauno Williams wrote: > No, I don't think so.  You're asking the module to over generalize > behavior.  Reaping of the child is important, and that the child needs > to be reaped may matter to the master child (why? did something go > wrong?). A

managing the RDFLib NamespaceManager

2017-03-14 Thread Adam Funk
ource/> . @prefix ns3: <http://dbpedia.org/resource/Category%3> . @prefix ns5: <http://dbpedia.org/resource/2> . and obviously the QName outputs are wrong. Is there any way to make an RDFLib NamespaceManager *not* generate any namespaces automatically? Thanks, Adam -- https://mail.python.org/mailman/listinfo/python-list

Re: Basic python understanding

2017-07-26 Thread Adam M
, > jave-Swing and/or GWT > > Much respect, > > Monica > 941-212-9085 You can try these websites: https://www.toptal.com/python/interview-questions https://devskiller.com/screen-python-developers-skills-find-best-guide-recruitment/ Regards Adam M. -- https://mail.python.org/mailman/listinfo/python-list

Re: Object Models - decoupling data access - good examples ?

2012-08-07 Thread Adam Tauno Williams
On Sat, 2012-08-04 at 20:26 -0700, shearich...@gmail.com wrote: > > > > Just out of curiosity, why do you eschew ORMs? > Good question ! > I'm not anti-ORM (in fact in many circs I'm quite pro-ORM) but for > some time I've been working with a client who doesn't want ORMs used > (they do have quit

Re: pycups

2012-08-20 Thread Adam Tauno Williams
On Thu, 2012-08-09 at 04:30 -0700, loial wrote: > I am looking to monitor print jobs on linux via python. > pycups looks a possibility, but I cannot find any useful tutorial, examples > of how to use it. > Can anyone help? Modern CUPs can provide event notifications via RSS; perhaps that would w

Re: Looking for an IPC solution

2012-09-22 Thread Adam Tauno Williams
On Fri, 2012-08-31 at 21:04 +0200, Laszlo Nagy wrote: > I have seen a stand alone cross platform IPC server before that could > serve "channels", and send/receive messages using these channels. But I > don't remember its name and now I cannot find it. Can somebody please help? I strongly recomm

Re: Basic JSON question: Do I really need the quotes

2012-10-12 Thread Adam Tauno Williams
On Fri, 2012-10-12 at 19:27 +0200, Roel Schroeven wrote: > moo...@yahoo.co.uk schreef: > > Hi, > > I need to define some configuration in a file that will be manually created. > > Internally, the data will be stored as a dict, which contains various > > properties related to a design > > e.g. Desi

Escaping from the tedium of naive datetime objects.

2012-10-26 Thread Adam Tauno Williams
ns. <http://www.whitemiceconsulting.com/2012/10/setting-course-for-utc.html> [constructive] Feedback and other suggestions appreciated. -- Adam Tauno Williams -- http://mail.python.org/mailman/listinfo/python-list

Re: date and time comparison how to

2012-11-02 Thread Adam Tauno Williams
On Mon, 2012-10-29 at 16:13 -0700, noydb wrote: > All, > I need help with a date and time comparison. > Say a user enters a date-n-time and a file on disk. I want to compare > the date and time of the file to the entered date-n-time; if the file > is newer than the entered date-n-time, add the fil

Re: changing process name

2012-12-30 Thread Adam Tauno Williams
On Mon, 2012-11-19 at 10:39 +, andrea crotti wrote: > I have very long processes to spawn which I want to lauch as separate > processes (and communicate with ZeroMQ), but now the problem is that the > forked process appears in "ps" with the same name as the launcher > process. > This is a simpl

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-31 Thread Adam Tauno Williams
really need a real IDE, as the windows guys around me say I do, You don't need one. You are crazy if you don't WANT one. Check out geany <http://www.geany.org/> -- Adam Tauno Williams -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading Adobe PDF File

2012-01-30 Thread Adam Tauno Williams
<http://www.whitemiceconsulting.com> OpenGroupware Developer <http://www.opengroupware.us> Adam Tauno Williams -- http://mail.python.org/mailman/listinfo/python-list

Can't get around HTTP/401 response using SUDS

2012-03-08 Thread Adam Tauno Williams
en(self, request) File "/usr/local/lib/python2.7/site-packages/suds-0.4-py2.7.egg/suds/transport/http.py", line 64, in open raise TransportError(str(e), e.code, e.fp) suds.transport.TransportError: HTTP Error 401: Unauthorized -- System & Network Administrator [ LPI & NCLA ] <http://www.whitemiceconsulting.com> OpenGroupware Developer <http://www.opengroupware.us> Adam Tauno Williams -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI components in python

2012-03-08 Thread Adam Tauno Williams
t a more useful answer? -- System & Network Administrator [ LPI & NCLA ] <http://www.whitemiceconsulting.com> OpenGroupware Developer <http://www.opengroupware.us> Adam Tauno Williams signature.asc Description: This is a digitally signed message part -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't get around HTTP/401 response using SUDS [SOLVED]

2012-03-10 Thread Adam Tauno Williams
On Fri, 2012-03-09 at 00:03 +0100, Rafael Durán Castañeda wrote: > El 08/03/12 16:44, Adam Tauno Williams escribió: > > SUDS version 0.4 pn x86_64 Python 2.7 > > I'm having a bear of a time getting HTTP Basic Authentication to work > > for a SOAP request via suds. Also

Re: Is it technically possible to give Python option of naming process of running script?

2012-03-24 Thread Adam Tauno Williams
On Wed, 2012-03-14 at 07:43 -0700, xliiv wrote: > Like the topic.. . > I use Python a lot, both Windows and Linux, and it's little weird to > have many python process without fast distinction which is what. I'm not sure of my interpretation of your problem but if you want to set the name of the ru

Re: Overlayong PDF Files

2012-04-26 Thread Adam Tauno Williams
/hgweb/coils/coils/file/9d6c304dd405/src/coils/logic/workflow/actions/doc/watermark.py> -- Adam Tauno Williams <http://www.whitemiceconsulting.com> System Administrator, OpenGroupware Developer, LPI / CNA Fingerprint 8C08 209A FBE3 C41A DD2F A270 2D17 8FA4 D95E D383 signature.asc Descripti

Re: Communication between C++ server and Python app

2012-05-01 Thread Adam Tauno Williams
On Sat, 2012-04-28 at 17:45 -0700, kenk wrote: > I've got a server process written in C++ running on Unix machine. > On the same box I'd like to run multiple Python scripts that will > communicate with this server. > Can you please suggest what would be best was to achieve this ? Time to start us

Re: indexed property? Can it be done?

2012-05-08 Thread Adam Tauno Williams
On Mon, 2012-05-07 at 20:15 -0700, Charles Hixson wrote: > class Node: > def__init__(self, nodeId, key, value, downRight, downLeft, parent): > dirty=True > dlu=utcnow() > self.node=[nodeId, downLeft, [key], [value], > [downRight], parent

Re: Questions on __slots__

2012-05-19 Thread Adam Tauno Williams
On Fri, 2012-05-18 at 09:53 -0700, Charles Hixson wrote: > Does __slots__ make access to variables more efficient? Absolutely, yes. > If one uses property() to create a few read-only pseudo-variables, does > that negate the efficiency advantages of using __slots__? > (Somehow I feel the documen

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-19 Thread Adam Tauno Williams
On Thu, 2012-05-17 at 11:13 +1000, Chris Angelico wrote: > On Thu, May 17, 2012 at 9:01 AM, Ethan Furman wrote: > > A record is an interesting critter -- it is given life either from the user > > or from the disk-bound data; its fields can then change, but those changes > > are not reflected on

Re: cmd2, an extenstion of cmd that parses its argument list

2012-05-31 Thread Adam Tauno Williams
On Thu, 2012-04-26 at 12:16 -0700, anntzer@gmail.com wrote: > On Sunday, March 18, 2012 10:12:24 PM UTC-7, anntz...@gmail.com wrote: > > Dear all, > > I would like to announce the first public release of cmd2, an extension of > > the standard library's cmd with argument parsing, here: > > ht

Re: cmd2, an extenstion of cmd that parses its argument list

2012-05-31 Thread Adam Tauno Williams
On Thu, 2012-05-31 at 15:21 -0400, Adam Tauno Williams wrote: > On Thu, 2012-04-26 at 12:16 -0700, anntzer@gmail.com wrote: > > On Sunday, March 18, 2012 10:12:24 PM UTC-7, anntz...@gmail.com wrote: > > > Dear all, > > > I would like to announce the first public re

Re: Unshelving the data?

2011-06-02 Thread Adam Tauno Williams
On Wed, 2011-06-01 at 19:49 -0700, Uncle Ben wrote: > Shelving is a wonderfully simple way to get keyed access to a store of > items. I'd like to maintain this cache though. +1 > Is there any way to remove a shelved key once it is hashed into the > system? I could do it manually by removing the

Re: smtp - python

2011-06-09 Thread Adam Tauno Williams
import message_from_file message = message_from_file(stream) The best way to serialize a Message to a stream seems to be from email.generator import Generator tmp = BLOBManager.ScratchFile() # Create a stream g = Generator(tmp, mangle_from_=False, maxheaderlen=60) g.flatten(message)

Re: Python Card alternatives?

2011-06-12 Thread Adam Tauno Williams
On Sat, 2011-06-11 at 13:07 +, rzed wrote: > Desktop apps don't seem to be the wave of the future, but they still > serve a useful purpose today. They can be ideal for a quick database > table management screen, +1, they are perfect for that, and will be around for a *long* *long* time. An

Re: HTTPConncetion - HEAD request

2011-06-17 Thread Adam Tauno Williams
On Thu, 2011-06-16 at 15:43 -0700, gervaz wrote: > Hi all, can someone tell me why the read() function in the following > py3 code returns b'' > >>> h = http.client.HTTPConnection("www.twitter.com") > >>> h.connect() > >>> h.request("HEAD", "/", "HTTP 1.0") > >>> r = h.getresponse() > >>> r.read()

Re: User Authentication

2011-06-22 Thread Adam Tauno Williams
On Wed, 2011-06-22 at 06:34 -0700, Anurag wrote: > Hi All, > > I am working on application which needs to do a authentication against > LDAP, if LDAP not installed then local system account (administrator > user in windows and root user in Linux). This should work on both > Windows and Linux. See

Re: Want to build an app for linux

2011-06-24 Thread Adam Tauno Williams
On Fri, 2011-06-24 at 15:55 +0530, saurabh verma wrote: > Hi all , > May be I'm just asking a silly/old question . > I have some open web APIs which i can use , on it I want to develop an > desktop application , probably cross platform but mostly I'm aiming at > *unix platforms . > I've got no

Re: Does hashlib support a file mode?

2011-07-06 Thread Adam Tauno Williams
On Tue, 2011-07-05 at 22:54 -0700, Phlip wrote: > Pythonistas > Consider this hashing code: > import hashlib > file = open(path) > m = hashlib.md5() > m.update(file.read()) > digest = m.hexdigest() > file.close() > If the file were huge, the file.read() would allocate a big string and >

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-10 Thread Adam Tauno Williams
On Sun, 2011-07-10 at 15:50 -0700, Ivan Kljaic wrote: > Ok Guys. I know that most of us have been expiriencing the need for a > nice Gui builder tool for RAD and most of us have been googling for it > a lot of times. But seriously. Why is the not even one single RAD tool > for Python. I mean what h

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-10 Thread Adam Tauno Williams
>Because RAD tools are for GUI toolkits, not for languages. If you're >using GTK, Glade works fine. Same with QT and QTDesigner. If you're >using WPF with IronPython, t These [Glade, etc...] are *NOT* RAD tools. They are GUI designers. A RAD tool provides a GUI designer that can be bound to a b

Re: How to get or set the text of a textfield?

2011-07-11 Thread Adam Tauno Williams
On Mon, 2011-07-11 at 03:44 +, John Gordon wrote: > In Anthony Papillion > writes: > > So I've built a UI with Glade and have loaded it using the standard > > Python code. In my UI, I have a textfield called txtUsername. How do I > > get and set the text in this field from my Python code? f

<    7   8   9   10   11   12   13   14   >