On 30 Dez., 00:11, Terry Reedy wrote:
> On 12/29/2010 4:06 PM, jmfauth wrote:
>
>
>
> > On 29 Dez., 21:14, Terry Reedy wrote:
> >> On 12/29/2010 2:31 PM, Terry Reedy wrote:
>
> >>> "Changed in version 3.2: Allowed use of Windows and Mac newlines. Also
> >>> input in 'exec' mode does not have to e
Hi everyone,
I'm just beginning to learn python language and i'm trying to do something and i
can't figure it out.
I want to test if a file exists but my path contain a directory name that
differs from a server to another.
In shell i would have done something like that :
#!/bin/bash
mypath=/d
Hello,
2010/12/30 :
> How can i do the same thing (wildcard in a directory name) in python please ?
You can get the contents of a directory with os.listdir and filter
with fnmatch.fnmatch more or less as in the example from the
documentation:
-
import fnmatch
import os
for f
Selvam, 30.12.2010 08:30:
I have some HTML string which I would like to feed to BeautifulSoup.
But, One malformed attribute breaks BeautifulSoup.
My String
Didn't try with BS (and you forgot to say what "breaks" means exactly in
your case), but it parses in a somewhat reasonable way w
On 30Dec2010 09:36, smain...@free.fr wrote:
| I want to test if a file exists but my path contain a directory name that
| differs from a server to another.
| In shell i would have done something like that :
| #!/bin/bash
| mypath=/dire*/directory02/
| myfile=filename
| myfile=toto
| if [ -f $mypat
smain...@free.fr wrote:
> I'm just beginning to learn python language and i'm trying to do something
> and i can't figure it out.
>
> I want to test if a file exists but my path contain a directory name that
> differs from a server to another.
> In shell i would have done something like that :
>
On Tue, 2010-12-28, Adam Tauno Williams wrote:
> On Tue, 2010-12-28 at 03:25 +0530, Anurag Chourasia wrote:
>> Hi All,
>
>> I have a requirement to digitally sign a XML Document using SHA1+RSA
>> or SHA1+DSA
>> Could someone give me a lead on a library that I can use to fulfill
>> this requirement?
Jorgen Grahn, 30.12.2010 10:41:
If you really *do* have a requirement to make the result XML-like and
incompatible with anything else, I'm afraid you're on your own
Well, there's always xmlsec if you need it.
http://www.aleksey.com/xmlsec/
Stefan
--
http://mail.python.org/mailman/listinfo/py
Hi Ppl,
I'm trying to use python for a macro recorder. In short I have a windows
based application, which has a macro recorder. The macros are captured as a
python script and when the script is executed they accomplish the user
action done on my application. I've written python scripts that can in
Hi Cameron,
Ok, i'll try that :)
Thanks
Smaine
Selon Cameron Simpson :
> On 30Dec2010 09:36, smain...@free.fr wrote:
> | I want to test if a file exists but my path contain a directory name that
> | differs from a server to another.
> | In shell i would have done something like that :
> | #!/b
Hi, I'm writing a test tool to simulate Web browser. Is there anyway
to run JavaScript in python? Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 29, 7:48 pm, "Octavian Rasnita" wrote:
> First, the interface should look exactly as the native interfaces for each
> system named, and it should provide the same features, because otherwise the
> interface would look strange for all the users on all the operating systems.
> And of course
In article
,
crow wrote:
> Hi, I'm writing a test tool to simulate Web browser. Is there anyway
> to run JavaScript in python? Thanks in advance.
The answer to the question you asked is, "Probably. You might want to
check out SpiderMonkey as a starting point".
The answer to the question you
On 12/29/10 6:58 PM, rantingrick wrote:
The answer is simple. We need a 100% Python GUI. A GUI coded in Python
from top to bottom. A GUI that is cross platform to the big three
(Windows, Linux, and Mac). A GUI that not only is easy as Tkinter but
also a GUI that can be manipulated by the average
Am 30.12.2010 14:52, schrieb crow:
> Hi, I'm writing a test tool to simulate Web browser. Is there anyway
> to run JavaScript in python? Thanks in advance.
See PyV8: http://pypi.python.org/pypi/PyV8
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 30, 8:59 am, Kevin Walzer wrote:
> On 12/29/10 6:58 PM, rantingrick wrote:
> Any GUI framework is going to require at least some heavy lifting in C,
> C++ or Objective-C (depending on the platform). A pure-Python approach
> to GUI development is technically infeasible.
This is a very goo
On Thursday, December 30, 2010 9:59:09 AM UTC-5, kw wrote:
> Any GUI framework is going to require at least some heavy lifting in C,
> C++ or Objective-C (depending on the platform). A pure-Python approach
> to GUI development is technically infeasible.
>
> --
> Kevin Walzer
> Code by Kevin
>
rantingrick, 30.12.2010 00:58:
So what should we do?
The answer is simple. We need a 100% Python GUI. A GUI coded in Python
from top to bottom. A GUI that is cross platform to the big three
(Windows, Linux, and Mac). A GUI that not only is easy as Tkinter but
also a GUI
On 12/30/10 10:24 AM, rantingrick wrote:
On Dec 30, 8:59 am, Kevin Walzer wrote:
On 12/29/10 6:58 PM, rantingrick wrote:
Any GUI framework is going to require at least some heavy lifting in C,
C++ or Objective-C (depending on the platform). A pure-Python approach
to GUI development is techni
On 12/30/10 10:28 AM, Hank Fay wrote:
On Thursday, December 30, 2010 9:59:09 AM UTC-5, kw wrote:
Any GUI framework is going to require at least some heavy lifting in C,
C++ or Objective-C (depending on the platform). A pure-Python approach
to GUI development is technically infeasible.
--
Kevin
In article ,
Valery Khamenya wrote:
>
>However it doesn't look possible to use it to initialize each Pool's
>worker with some individual value (I'd wish to be wrong here)
>
>So, how to initialize each multithreading Pool worker with the
>individual values?
>
>The typical use case might be a conne
On 12/30/10 10:52 AM, Stefan Behnel wrote:
rantingrick, 30.12.2010 00:58:
So what should we do?
The answer is simple. We need a 100% Python GUI. A GUI coded in Python
from top to bottom. A GUI that is cross platform to the big three
(Windows, Linux, and Mac). A GUI that
On Dec 30, 9:52 am, Stefan Behnel wrote:
> I hope you invested as much time into writing this "expose" as you did
> searching the web before writing it.
And ditto to you. If you would have followed the thread so far, in my
second post i said...
"""However i need to stress that my intention is t
rantingrick, 30.12.2010 17:02:
On Dec 30, 9:52 am, Stefan Behnel wrote:
I hope you invested as much time into writing this "expose" as you did
searching the web before writing it.
in my second post i said...
"""However i need to stress that my intention is towards a 100% Python
GUI. Not a bi
> These days, Tkinter has pretty much everything that other GUI toolkits
have: tree views, multi-column listboxes, plus all the basics, available
through the core widget, the themed ttk widgets, or extension packages.
***Today, there's no excuse for developing an ugly Tk GUI--if a new Tk
app i
On Thu, 2010-12-30 at 08:01 -0800, Aahz wrote:
> In article ,
> Valery Khamenya wrote:
> >However it doesn't look possible to use it to initialize each Pool's
> >worker with some individual value (I'd wish to be wrong here)
> >So, how to initialize each multithreading Pool worker with the
> >indi
On Dec 30, 9:51 am, Kevin Walzer wrote:
>
> Tcl is not a domain-specific language for creating GUI's. Tcl is a
> full-featured, general-purpose programming language that is a peer to
> Python in its capabilities,
Anybody can gloat and gush about their favorite programming language
however what se
On Dec 30, 10:02 am, Kevin Walzer wrote:
> >http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
> This library isn't much different from other Python GUI toolkits--it's
> dependent on underlying, rather large, platform-specific
> implementations--but it provides an even higher level of abstr
Octavian,
> Not all the people were happy because the darkness disappeared partially for
> some of them and more and more blind people started to use a computer, and
> discovered that the Tk interfaces are absolutely inaccessible for them.
Might this package help? (I have no experience with thi
That (the desktop app issue) was the big game-change for me. It looks like a
desktop app, it acts like a desktop app, and our enterprise customers would be
delighted to a) have no installs to do for fat clients; or b) not have to run a
TS or Citrix farm.
--
http://mail.python.org/mailma
From:
Subject: Tkinter accessability options (was Re: Tkinter: The good, the bad, and
the ugly!)
> Octavian,
>
>> Not all the people were happy because the darkness disappeared partially for
>> some of them and more and more blind people started to use a computer, and
>> discovered that the
There's some_object.some_method.func_defaults and
some_function.func_defaults both are a settable attribute. How to set
the methods func_defaults? You'd have to have code in
_getattribute__(yourmethod) if not __getattr__(yourmethod)
def __getattribute__(self, attr):
if attr == self.my_method:
On Thu, 30 Dec 2010 07:24:04 -0800, rantingrick wrote:
> Also one could argue that C and Python are very similar.
One could also argue that black is white, that diamond is softer than
chalk, and that bananas are a type of spaceship. Doesn't make it so.
How to add two numbers in C:
#include
in
On 12/30/2010 10:51 AM, Kevin Walzer wrote:
In 2010, Tk only lacks two major features common to GUI toolkits:
1. A cross-platform printing API. This is mainly an issue on Windows,
which lacks a rich command-line printing framework. The canvas widget
can generate PostScript,
Uh.
1. Postscript
On Thu, 30 Dec 2010 11:26:50 -0800, DevPlayer wrote:
> There's some_object.some_method.func_defaults
Not quite -- method objects don't expose the function attributes
directly. You need some_object.some_method.im_func to get the function
object, which then has a func_defaults attribute.
> and
Steven D'Aprano wrote:
> On Thu, 30 Dec 2010 07:24:04 -0800, rantingrick wrote:
>
>> Also one could argue that C and Python are very similar.
>
> One could also argue that black is white, that diamond is softer than
> chalk, and that bananas are a type of spaceship. Doesn't make it so.
>
> How
Hi,
I am writing some multithreaded code which aims to automate three
sequential data processing applications and distribute the processing
on my 16GB RAM, 64 bit Ubuntu box running Python 2.6.5
The basic class that orchestrates these jobs use Queue.Queue() to feed
the product of the first job int
At 03:46 PM 12/30/2010, harijay wrote:
Hi,
I am writing some multithreaded code which aims to automate three
sequential data processing applications and distribute the processing
on my 16GB RAM, 64 bit Ubuntu box running Python 2.6.5
The basic class that orchestrates these jobs use Queue.Queue()
On 12/30/10 12:36 PM, rantingrick wrote:
On Dec 30, 9:51 am, Kevin Walzer wrote:
Tcl is not a domain-specific language for creating GUI's. Tcl is a
full-featured, general-purpose programming language that is a peer to
Python in its capabilities,
Anybody can gloat and gush about their favorit
On 12/30/2010 4:46 PM, harijay wrote:
"OSError: [Errno 26] Text file busy" error
Searching 'errno 26', the third Google response suggests that you are
trying to write to a file (especially an executable or shared library?)
that is already in use. Perhaps just trying to read when locked will
On Dec 30, 1:51 pm, Steven D'Aprano wrote:
> How to add two numbers in C:
>
> [...snip code example...]
>
> None of the three are exactly clones of each other, but it seems to me
> that Tcl and Python are quite close in spirit, if not syntax.
Yes i'll agree to that if you also agree that Python a
On Dec 30, 4:44 pm, Kevin Walzer wrote:
> You can build web servers, database tools, FTP clients, test
> suite/automation tools, chat clients, and drivers of other CLI tools
> with Tcl, just to name a few.
Ok, thats swell. But do you have any real examples, links, or some
evidence of this? Or ar
On Dec 30, 4:24 am, Roy Smith wrote:
> In article <87k4irhpoa@benfinney.id.au>,
> Ben Finney wrote:
>
> > Roy Smith writes:
>
> > > I've got a problem that I'm sure many people have solved many times.
>
> > > Our project has a bunch of python scripts
>
> > A very common problem. The solutio
rantingrick schrieb:
On Dec 29, 6:41 pm, Gerry Reno wrote:
wxPython looks good but I don't see anyone developing support for things
like smartphones.
No wx is not the answer to our problems
Rather: ... to *your* problem...
Also, what do you think about frameworks such as pyjamas? It
I am writing to a unique script file . Each script file has prefixes
like script1.sh script2.sh and they reside in different directories .
The scripts will never trample each other since they are all
sequential and shell scripts and no directory will have more than one
shell script.
The only thing
On 12/30/10 6:17 PM, rantingrick wrote:
Ok, thats swell. But do you have any real examples, links, or some
evidence of this? Or are we witnessing more wishful thinking?
http://tcl.apache.org/rivet/
http://www.amsn-project.net/
http://thecoccinella.org/
http://personal5.iddeo.es/andresgarci/tcl
On 2010-12-30 13:04:19 -0500, rantingrick said:
On Dec 30, 10:02 am, Kevin Walzer wrote:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
This library isn't much different from other Python GUI toolkits--it's
dependent on underlying, rather large, platform-specific
implementations--
On 2010-12-30 11:02:46 -0500, rantingrick said:
On Dec 30, 9:52 am, Stefan Behnel wrote:
I hope you invested as much time into writing this "expose" as you did
searching the web before writing it.
And ditto to you. If you would have followed the thread so far, in my
second post i said...
"
On 2010-12-30 18:12:21 -0500, rantingrick said:
On Dec 30, 1:51 pm, Steven D'Aprano wrote:
How to add two numbers in C:
[...snip code example...]
None of the three are exactly clones of each other, but it seems to me
that Tcl and Python are quite close in spirit, if not syntax.
Yes i'll ag
On Dec 30, 6:32 pm, Robert wrote:
> Exactly how is Tcl too limited in your view?
Well Robert if have explain to you why C and Python make Tcl look
limited by comparison then explaining will probably do neither of us
any good. But if you think Tcl is so great by all means go spend the
next couple
Hello Matt,
On 2010-12-23 01:03, Matt Funk wrote:
> i was wondering whether someone can point me whether the following
> already exists.
>
> I want to connect to a server , download various files (for whose name i
> want to be able to use a wildcard), and store those files in a given
> location o
In article ,
mpnordland wrote:
>
>First, to pacify those who hate google groups: What is a good usenet
>client?
trn3.6 ;-)
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"Think of it as evolution in action." --Tony Rand
--
http://mail.python.org/mailman/lis
For those that are lurking, this might provide a little background:
http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong
Essentially, there is nothing "wrong" with Tcl and Tkinter. They are
part of a long evolutionary chain of how we got to where we are today.
They deserve to
On Thu, Dec 30, 2010 at 12:15 AM, rantingrick wrote:
>
> However i need to stress that my intention is towards a 100% Python
> GUI. Not a binding, not a wrapping (except for OS calls!) but a *real*
> Python GUI. The only thing that i know of at this point is pyGUI
> although there are probably oth
Big chance in Management careers. Careers recruitment in Management
work. http://topcareer.webs.com/executivemanager.htm
http://topcareer.webs.com/executivemanager.htm
Government Jobs in site lot of opportunities for graduates.
http://rojgars1.webs.com/gov.htm http://printmediajobs.webs.com/fl.htm
On 2010-12-30 19:43:21 -0500, Gerry Reno said:
For those that are lurking, this might provide a little background:
http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong
Essentially, there is nothing "wrong" with Tcl and Tkinter. They are
part of a long evolutionary chain of
On 2010-12-30 19:46:24 -0500, rantingrick said:
On Dec 30, 6:32 pm, Robert wrote:
Exactly how is Tcl too limited in your view?
Well Robert if have explain to you why C and Python make Tcl look
limited by comparison then explaining will probably do neither of us
any good. But if you think Tcl
On Thu, 30 Dec 2010 13:46:35 -0800, harijay wrote:
[...]
> But I get the same "OSError: [Errno 26] Text file busy" error
>
> Everytime I run the same job queue a different part of the job fails.
>
> Unfortunately I dont see anybody else reporting this OSError. ANy help
> in troubleshooting my "
On Dec 30, 6:43 pm, Gerry Reno wrote:
> For those that are lurking, this might provide a little background:
>
> http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong
That was a great and thought provoking article Gerry. Thanks!
--
http://mail.python.org/mailman/listinfo/python-l
Latest job listing with IT manager job search and government jobs
http://topcareer.webs.com/itmanagement.htm
Are you looking for a job in government, this is the right place to
start.
http://rojgars1.webs.com/gov.htm http://printmediajobs.webs.com/fl.htm
--
http://mail.python.org/mailman/listinf
On Dec 30, 7:54 pm, Katie T wrote:
> It's very hard to write a good gui framework, very very few people
> have managed to do it well.
This is a very good point Katie. Creating a Python GUI is a huge
undertaking and it will take much time to work out the bugs. A truly
Pythonic GUI may be (i must
On Dec 30, 8:41 pm, Robert wrote:
> On 2010-12-30 19:46:24 -0500, rantingrick said:
> Just to clarify...I like Python. I am learning it at the moment.
Glad to have you aboard Robert!
> > 3. What is your opinion of Tkinter as to it's usefulness within the
> > stdlib?
>
> No, I really don't see t
On 12/30/2010 10:28 PM, rantingrick wrote:
>
> Hmm, wxPython is starting to look like the answer to all our problems.
> WxPython already has an IDE so there is no need to rewrite IDLE
> completely. What do we have to loose by integrating wx into the
> stdlib, really?
>
>
In the spirit of "batte
On 2010-12-30 22:06:57 -0500, rantingrick said:
What is your opinion (or anyone) on wxPython?
Ok, I am curious again. Have you even tried wxPython or PySide/PyQt?
--
Robert
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-12-30 22:44:52 -0500, Gerry Reno said:
On 12/30/2010 10:28 PM, rantingrick wrote:
Hmm, wxPython is starting to look like the answer to all our problems.
WxPython already has an IDE so there is no need to rewrite IDLE
completely. What do we have to loose by integrating wx into the
stdli
On 2010-12-30 22:28:39 -0500, rantingrick said:
On Dec 30, 8:41 pm, Robert wrote:
On 2010-12-30 19:46:24 -0500, rantingrick said:
Just to clarify...I like Python. I am learning it at the moment.
Glad to have you aboard Robert!
Thanks!
3. What is your opinion of Tkinter as to it's usef
On Thu, 30 Dec 2010 23:04:33 -0500, Robert wrote:
> The
> second way the Tcl community irks me is the "not invented here"
> attitude. I like the syntax of Tcl and I like the community. They are
> some good folks. Try asking "I want to build a Nagios clone in Tcl" type
> question and invariably you
On Dec 30, 9:44 pm, Gerry Reno wrote:
> In the spirit of "batteries included", Python needs to have "something"
> in the stdlib as far as gui. But it cannot be overwhelming.
Agreed!
> The problem with wx is that it is BIG. And so if we want something like
> wx to be in the stdlib then it woul
On Dec 30, 9:51 pm, Robert wrote:
> Ok, I am curious again. Have you even tried wxPython or PySide/PyQt?
Yes i have used wxPython on a few projects and was very happy with the
feature rich nature of it. I found previously (with Tkinter) i would
have to build my own compound widgets due to non-exi
On Dec 30, 11:24 pm, rantingrick wrote:
>
> > The problem with wx is that it is BIG. And so if we want something like
> > wx to be in the stdlib then it would have to be refactored so that there
> > was a small basic wx that was part of stdlib and then import
> > wx-the-whole-enchilada if you nee
On Dec 30, 10:04 pm, Robert wrote:
> wxPython is really good. The downside is that is shows (or did show)
> its C++ roots.
Well i will admit the api is not as simplistic as Tkinter. However i
noticed over time that wx had started adopting a slight Tkinter "feel"
to the API and that is a good thi
On Dec 30, 10:41 pm, Adam Skutt wrote:
> On Dec 30, 11:24 pm, rantingrick wrote:
> > Exactly! All we need to do is replace the existing Tkinter with a
> > small sub-set of wxPython widgets that mirrors exactly what we have
> > now...
>
> > Toplevel
> > Label
> > Entry
> > Button
> > Radiobutton
>
On Thu, 30 Dec 2010 13:46:35 -0800, harijay wrote:
> Each Thread receives a dynamically generated shell script from some
> classes I wrote and then runs the script using
>
> subprocess.call(["shell_script_file.sh"])
> But I get the same "OSError: [Errno 26] Text file busy" error
"Text file bus
Hi,
I stumbled on a small bug with httplib2 that I reduced to the example below.
It seems that with Python 3, when an exception is handled it "unbound" the
previously declared local variable. This did not occurs with Python 2.5.
It is a Python 3 feature? I did not find anything in the what's news
Hey all... I just started with Python, and I chose Python3 because it
seemed a subtle choice as compared to doing Pthon 2.x now and then
porting to Python3.x later... I plan to start with Web Development
soon... I wanted to know what all web frameworks are available for
Python3... I heard the Djang
On 2010-12-30 12:36:05 -0500, rantingrick said:
On Dec 30, 9:51 am, Kevin Walzer wrote:
Tcl is not a domain-specific language for creating GUI's. Tcl is a
full-featured, general-purpose programming language that is a peer to
Python in its capabilities,
Anybody can gloat and gush about their
76 matches
Mail list logo