On Sep 6, 9:12 am, "exhuma.twn" <[EMAIL PROTECTED]> wrote:
> I defined a simple "update" method in the model which I call on
> certain events to fetch the new data in the DB. I tried to "emit" the
> "dataChanged()" signal of the Model without success. I don't know
> where I should get the two requi
On Sep 5, 10:47 pm, Harry George <[EMAIL PROTECTED]> wrote:
> Jurian Botha <[EMAIL PROTECTED]> writes:
> > Sorry if this is a real dumb question, but I'm totally stumped.
>
> > I'm trying to connect to a https url in order to do some xml-rpc method
> > calls, but I'm getting the following error:
>
On Sep 7, 1:24 am, "exhuma.twn" <[EMAIL PROTECTED]> wrote:
> Still, nothing is happening when I call this method. Do I still need
> to handle the "dataChanged" signal somehow? Or does the ListView take
> care of this?
You might have better luck asking these kinds of questions in the Qt
or PyQt for
On Sep 7, 9:19 am, Gary Robinson <[EMAIL PROTECTED]> wrote:
> > This all seems a bit too complicated. Are you sure you want to do
> > this? Maybe you need to step back and rethink your problem.
>
> In version 2.1 Python added the ability to add function attributes --
> seehttp://www.python.org/dev
On Sep 11, 1:07 pm, Tom Brown <[EMAIL PROTECTED]> wrote:
>
> I have had a lot of good luck with PostgreSQL. It is easy to install and use.
> It is also very stable. It maybe overkill for a client side database. The
> psycopg package makes interfacing to PostgreSQL very easy and there is a
> package
On Sep 11, 1:39 pm, Jonathan Gardner
<[EMAIL PROTECTED]> wrote:
>
> For client-side apps, managing a PostgreSQL installation might be
> asking too much. But for a web site or web service, I absolutely
> recommend it.
I should mention that I wrote a medical billing software app
On Sep 11, 5:56 am, Harry George <[EMAIL PROTECTED]> wrote:
> I use postgresql as well. I wonder if Pythonistas do so out of
> concern for rigor, clarity, and scalability. It works fine for a
> quick one-off effort and still works fine after scaling to a DBMS
> server supporting lots of clients,
On Sep 12, 9:38 pm, Prateek <[EMAIL PROTECTED]> wrote:
> Have you checked out Brainwave?http://www.brainwavelive.com
>
> We provide a schema-free non-relational database bundled with an app
> server which is basically CherryPy with a few enhancements (rich JS
> widgets, Cheetah/Clearsilver template
On Sep 13, 11:37 am, [EMAIL PROTECTED] wrote:
> No currently I am using a canvas from the Tkinter module
> What I actually want is to show how a line is plotted pixel by pixel
> using a delay loop. I want functions something like putpixel not
> draw_line
Try drawing 1px wide rectangles.
--
http:
ble = '/wobble'
===
And when a distribution is created and installed
we get
===
$ python setup.py install
running install
running build
running install_data
creating /wibble
copying data/wibble.txt -> /wibble
creating /wobble
copying data/wobble.txt -> /wobble
===
This is an exa
on my solution.
--
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> On Mar 20, 10:33 am, Jonathan Fine <[EMAIL PROTECTED]> wrote:
>>My problem is that I want a Python 2.4 module on
>>a server that is running Python 2.3. I definitely
>>want to use the 2.4 module, and I don't want to
>>require th
Alex Martelli wrote:
> Jonathan Fine <[EMAIL PROTECTED]> wrote:
>...
>
>>In other words, I'm asking for a python24 package that
>>contains all (or most) of the modules that are new to
>>Python 2.4.
>
>
> For subprocess specifically, s
quite right about the use of __future__. I decided to
put subprocess in a package, so that my system can choose
which one to find, whether running Python 2.3 or 2.4.
(Well, in 2.3 there's no choice, but in 2.4 I don't want
the "just for 2.3" module to hide the real 2.4 module
Linus Nordström wrote:
> Hello
> Im planing playing a bit whit bittorrent, but I'm having some trouble
> about where to start. So if anyone could point me in the right
> direction it would be much appreciated.
> The best would be if there are some already written modules that
> handle downloading a
; doesn't have a closing tag. Another example is that the contents of a
> lot of the tag attributes like "color" and "size" are not surrounded
> by quotes.
Maybe you can try BeautifulSoup module which aims to handle things like
that : http://www.crummy.com/soft
oject/showfiles.php?group_id=204046
--
Jonathan Fine
--
http://mail.python.org/mailman/listinfo/python-list
iour? So that's another feature request.
While I'm in favour of using Metatest to write tests for Metatest
(eating your own dogfood), I'm more interested in real world examples.
But I've added second feature request, that Metatest be able to test
Metatest.
http://sourceforge.net/tracker/index.php?func=detail&aid=1797202&group_id=204046&atid=988038
--
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
g/downloads/python/pycvs/
Or for Subversion
http://pysvn.tigris.org/
If you use Subversion, you call then also use Trac (which is written in
Python)
http://trac.edgewall.org/
Please let us know how you get on.
--
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
s perhaps unfair towards the woman. The man, after all, is
someone who has offered a woman money in return for sex.
The whole story reads differently if we replace 'philosopher' by 'man'
and 'attractive lady' by 'woman'.
--
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
> Jonathan Fine <[EMAIL PROTECTED]> writes:
>
>>Here's how to write some tests using Metatest. We can think of the
>>tests as an executable specification.
>>
>>from metatest.py.mymod import plus, Point
>>
>>#
e should be a nice solution. I hope that the tests we want to
write are the same as the ones Metatest allows us to write.
My goal is to finding the simplest way, using Python syntax, to express
or state the test we wish to run, and to then code Metatest to give the
required meaning to he statement.
--
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
> [Jonathan, please don't send me copies of messages sent to the
> discussion thread. I follow comp.lang.python via a non-mail interface,
> and it's irritating to get unwanted copies of messages via email.]
[Thank you for letting me know your preference.
Kay Schluehr wrote:
> On 19 Sep., 01:30, Jonathan Fine <[EMAIL PROTECTED]> wrote:
>
>
>>>there is no fundamental reason why it can't be separated from
>>>eeconsole.py.
>>
>>OK. That might be a good idea.
>
>
> Ironically, I liked
This is a bug in python 2.4 under Linux 2.6.
I occasionally see subprocess.Popen() fail to return, and I have
finally figured out roughly what's going on. It involves the GC and
stderr.
1. os.fork()
2. Parent blocks reading from errpipe_read (subprocess.py:982)
3. In child, a GC occurs before t
On Oct 25, 12:56 pm, robert <[EMAIL PROTECTED]> wrote:
> On a server the binary (red hat) installed python2.4 and also a
> fresh compiled python2.5 spits "sem_post: Invalid argument".
> What is this and how can this solved?
> ...
> Python 2.4.3 (#1, Jun 6 2006, 21:10:41)
> [GCC 3.2.3 20030502 (Red
On Oct 25, 2:19 pm, robert <[EMAIL PROTECTED]> wrote:
> Jonathan Gardner wrote:
> > On Oct 25, 12:56 pm, robert <[EMAIL PROTECTED]> wrote:
> >> On a server the binary (red hat) installed python2.4 and also a
> >> fresh compiled python2.5 spits "sem_po
On Oct 26, 10:35 am, owl <[EMAIL PROTECTED]> wrote:
> I love easy_install.
>
> I love watching it search and complete.
> It's when it doesn't complete that causes me grief.
> I don't program a lot these days and am relatively new to python but I
> often wind up installing packages on both unix and
On Oct 30, 2:25 pm, chewie54 <[EMAIL PROTECTED]> wrote:
>
> I would prefer to use Python but can't deny how popular Tcl is, as
> mentioned above, so my question is why wasn't Python selected by
> these companies as the choice of scripting languages for their
> product?
>
Here are some reasons wh
On Oct 30, 1:57 pm, [EMAIL PROTECTED] wrote:
> Hello,
> I have a network on same subnet. I have an ip address of a machine.
> but i need to get its MAC Adress.
> Sendingf ARP request is the way i am taking.
>
> IS there any other way to get this MAC Adress in python.??
>
> Also does python go down
On Nov 1, 1:08 pm, [EMAIL PROTECTED] wrote:
> Hi everyone
>
> I've come across the following problem: on two different linux
> machines, both running python 2.5 (r25:51908), I have the same file
> 'd.dat'. The md5 checksums are the same.
>
> Now, on one machine the following code works
>
> >>> impo
On Nov 1, 7:16 am, Robert LaMarca <[EMAIL PROTECTED]> wrote:
> So.. how is Python for memory management? ...
>
Terrible. If you have a memory-intensive application, use ASM (perhaps
C), not Python (or any other high-level language for that matter.)
> My plan is to try measuring the memory usage
http://www.diveintopython.org/html_processing/index.html
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
What are you trying to make in the first place? A singly linked list? If so
google is littered with examples of linked lists done in python. A simple
search for 'python linked list' brings up many results.
Btw, for future reference, no need for apologetics (the second post).
27;ve gathered from your code) it would be wise to use
SAX. I highly suggest looking into this method of processing.
- Jonathan Curran
--
http://mail.python.org/mailman/listinfo/python-list
ing it out.
Sorry about all that. I'd still ask you to look into SAX though :)
Especially
when dealing with really large XML documents, whether it be reading or
writing them.
- Jonathan Curran
--
http://mail.python.org/mailman/listinfo/python-list
Dan,
Take a look at http://www.xml.com/pub/a/2003/03/12/py-xml.html. It's a
starting point to output XML data via use of SAX. Bruno also mentioned
Genshi. I haven't used Genshi myself, but it'd be worth it to take a look at
what it has to offer.
- Jonathan
--
http://
Greg,
You have managed to peak my interest. I'll be dabbling with this in the
next
few hours. This looks very promising, keep up the good work.
- Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
2d games to learn more.
Good places to look at: gamedev.net, allegro.cc, amit's game programming
information
Good luck!
- Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
I've been seeing this topic for a day or two so far. Why don't we stick to
discussing python on this mailing list? I'm sure there are other mailing
lists specifically for discussing chemistry. =\
- Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
dude, please go spam elsewhere. don't post unrelated material here.
--
http://mail.python.org/mailman/listinfo/python-list
Frank,
Could you please try and stick to discussing python related subjects on
this
mailing list?
- Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
On Monday 05 February 2007 10:07, Zahid Ahmadzai wrote:
> HI THERE
>
> I NEED HELP WITH THE FOLLOWING EXERSISE CAN YOU PLEASE HELP IF YOU CAN.
>
> PLEASE SEND ME THE CODE ON E-MAIL
>
> MANY THANKS
>
>
Quick, everyone, send him the solution to his homework problem!
=P
--
http://mail.python.org/ma
lar version
(x86) then I assume it would work just fine. D/L an evaluation copy of Vista
and try it yourself.
- Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
1] = 2
assert f[1] == 2
assert g[2] == 1
assert f.has_value(2)
import weakref
wr_g = weakref.ref(g)
del g
assert wr_g() == None
assert f.inverse == None
===
best regards
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
make the above code much more complicated and
error prone.
Perhaps it helps to think of
f, g = biject()
as establishing a database, that has a consistency
condition, and which has two views.
There we are: biject() gives two views on a
mapping (of a particular type). Thank you for
you
= bidict() # Use the better name.
assert f = g.inverse
assert g = f.inverse
and also
f[a] = b if and only if g[b] = a
By the way, it turns out that a bidict is not what
my application needs. But I find it an interesting
problem, and time spent on it I do not consider
wasted.
Best regards
Hello
I find the following inconsistent:
===
>>> sys.version
'2.4.1a0 (#2, Feb 9 2005, 12:50:04) \n[GCC 3.3.5 (Debian 1:3.3.5-8)]'
>>> pack('>B', 256)
'\x00'
>>> pack('>> pack('B', 256)
Traceback (most recent call last):
File "", line 1, in ?
struct.error: ubyte format requires 0<=number<=2
On Sunday 11 February 2007 11:47, soussou97 wrote:
> Hi;
>
> I would like to automatically delivery, I seek a script in python which
> will be excecute from a Windows station to allows via sftp:
>
> 1- to connect to a Linux server for storing of the files
> 2- Next execute on the Linux server, some
on-list mailing list archive at Nabble.com.
Just joking with the last message, though I hope that you weren't looking for
someone to just send it to you. Take a look at Paramiko, it's exactly the
library you need to do these things.
- Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
On Sunday 11 February 2007 13:40, darren112 wrote:
> Hi Im new to python and I desperately need help with this task
> This is everything of what I need to do...
>
> The program to be written in Python obviously..
>
> The program should support brute-forcing of the authentication process
ld need to make this a threaded application. One thread to
process the messages and the other thread(s) would be used to listen for
messages and insert it into the message queue.
Is my thinking correct? Is there a better way to do such a thing?
Thanks for any input,
- Jonathan
--
http://mail.
Today, we are pleased to announce the release of Elixir
(http://elixir.ematia.de), a declarative mapper for SQLAlchemy. Elixir
is the successor to ActiveMapper and TurboEntity, and is a collaboration
between Daniel Haus, Jonathan LaCour and Gaëtan de Menten. Elixir's
website pro
Some languages, such as Scheme, permit you to make a transcript of an
interactive console session. Is there a way to do that in Python?
--
http://mail.python.org/mailman/listinfo/python-list
s a space or console is in the output it wont print anything or it
wont match anything...I want to be able to match just the hostname
and print it out.
Any ideas?
Thanks,
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
vity, system personnel may provide
> the #
> # evidence of such monitoring to law enforcement
> officials. #
> #
> pa11-chi1 login:
>
> The second one works and it will print out pa11-chi1 but when there
> is a space or console is in the output it wont print anything or it
> wont match anything...I want to be able to match just the hostname
> and print it out.
>
> Any ideas?
>
> Thanks,
>
> Jonathan
It is also posted here more clearly and formatted as it would appear
on the terminal: http://www.pastebin.ca/366822
--
http://mail.python.org/mailman/listinfo/python-list
://www.jisc.ac.uk/whatwedo/programmes/elearning_framework/toolkit_mathtran.aspx
--
Jonathan Fine
The Open University, Milton Keynes, England
--
http://mail.python.org/mailman/listinfo/python-list
ir
(http://elixir.ematia.de), which makes things look a bit more familiar.
Elixir does support composite primary keys.
--
Jonathan LaCour
http://cleverdevil.org
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 9, 7:12 pm, Mark Shroyer <[EMAIL PROTECTED]> wrote:
> I guess this sort of falls under the "shameless plug" category, but
> here it is: Recently I used a custom metaclass in a Python program
> I've been working on, and I ended up doing a sort of write-up on it,
> as an example of what a "rea
On Nov 10, 3:34 am, Mark Shroyer <[EMAIL PROTECTED]> wrote:
> On 2007-11-10, Jonathan Gardner <[EMAIL PROTECTED]> wrote:
> > What would I have done? I wouldn't have had an age matching class. I
> > would have had a function that, given the datetime and a range
>
On Dec 13, 11:32 am, [EMAIL PROTECTED] wrote:
> Is there a pythonic design I'm overlooking?
Well, if using something like PLY ( http://www.dabeaz.com/ply/ ) is
considered more Pythonic than writing your own parser and lexer...
Python doesn't have all of life's answers unfortunately.
--
http://m
On Dec 13, 3:45 pm, Breal <[EMAIL PROTECTED]> wrote:
> I have a list that looks like the following
> [(10, 100010), (15, 17), (19, 100015)]
>
> I would like to be able to determine which of these overlap each
> other. So, in this case, tuple 1 overlaps with tuples 2 and 3. Tuple
>
On Dec 14, 8:02 am, [EMAIL PROTECTED] wrote:
>
> Lex is very crude. I've found that it takes about half a day to
> organize your token definitions and another half day to write a
> tokenizer by hand. What's the point of the second half-day's work?
>
As someone who has earned a BS in Physics, I hav
On Dec 18, 7:08 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> We are trying to monkey-patch a third-party library that mixes new and
> old-style classes with multiple inheritance. In so doing we have
> uncovered some unexpected behaviour:
>
>
> I know this level of messing with python inte
On Dec 18, 5:55 am, Adam Funk <[EMAIL PROTECTED]> wrote:
> I'm using this sort of standard thing:
>
>for line in fileinput.input():
> do_stuff(line)
>
> and wondering whether it reads until it hits an EOF and then passes
> lines (one at a time) into the variable line. This appears to be
On Dec 18, 4:41 am, tomasz <[EMAIL PROTECTED]> wrote:
> Is there an alternative to it? Am I missing something? Python doesn't
> have special variables $1, $2 (right?) so you must assign the result
> of a match to a variable, to be able to access the groups.
>
> I'd appreciate any hints.
>
Don't us
On Dec 18, 2:16 pm, Sam <[EMAIL PROTECTED]> wrote:
> layouts = ['column', 'form', 'frame']
> cmds.window(t='gwfUI Builder')
> cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20,
> 100)))
> cmds.paneLayout(configuration='horizontal2')
> cmds.frameLayout(l='Layouts')
>
I think there's a slight design flaw in the Queue class that makes it
hard to avoid nested monitor deadlock. The problem is that the mutex
used by the Queue is not easy to change. You can then easily get
yourself into the following situation (nested monitor deadlock):
Say we have a class that cont
If you don't want to call it deadlock, fine, but the program execution
I describe will make no progress to the end of time. Thread 2 can never
put anything in the queue, because Thread 1 holds M, and Thread 1 will
never release M because that can only happen if someone puts something
on the queue.
This is a reply to Alan Morgan, Paul McGuire and Duncan Booth.
I need mutex M because I have other fields in my class that need to be
thread-safe.
The reason I want to use a Queue and not a list is that a Queue has
additional synchronization besides the mutex. For instance, Queue.get()
will block
# In Python, you would simply call the functions you need. No need to
# make things that rigidly defined.
Except when you need to handle exceptions when those methods don't
exist. I think interfaces can definitely be useful.
--
Jonathan Daugherty
http://www.parsed.org
--
# so with interfaces, missing methods will suddenly appear out of thin
# air ?
With interfaces, the idea is that they're enforced; so, they'll appear
because someone implements them.
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/mailman/listinfo/python-list
# enforced by whom, at what point ?
In the case of Java, I think the JVM enforces interface implementation
(probably at the parser level).
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/mailman/listinfo/python-list
# Thanks for the responses...Looks like I might have opened Pandora's
# box here. Could I accomplish the above with an abstract class?
Zope 3 has an interface system which is good. I recommend you look at
that.
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/ma
early
know more about (or have more recent experience with) Java than I do.
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/mailman/listinfo/python-list
Interesting; thanks.
# So much for "compiler enforcement", hm?-)
Yes, indeed. :)
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/mailman/listinfo/python-list
No redesign necessary. I simply make M be the Queue's mutex, via the
LQueue class I posted. I am making the modest suggestion that this
feature be documented and exposed in the Queue class.
--
http://mail.python.org/mailman/listinfo/python-list
ed methods actually do the right thing.
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/mailman/listinfo/python-list
draw
graphs similar to those created by RRDtool.
Thanks!
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/mailman/listinfo/python-list
# http://ttcom.blogspot.com/2006/04/345-free-online-programming-books.html
It seems this has been making the rounds today. The Practical
PostgreSQL link is also broken; OpenDocs Publishing ceased to exist
starting several months ago.
--
Jonathan Daugherty
http://www.parsed.org
--
http
t; That's crazy. Some of the key developers of Smalltalk continue to work
> on the Squeak project (Alan Kay, Dan Ingalls, and I'm leaving someone
> out, I know it...). So please remove Smalltalk from that list.
I thought it was clear that Alex was talking about "smalltalk gurus who
work for Google."
-Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
Gross, Dorit (SDRN) wrote:
> [snip]
> for f in fileList:
> try:
> globvars = {'infile' : f}
> locvars = {}
> execfile('/scripts/second.py', globvars(), locvars)
> except IOError:
> exit(0)
> print locva
On Jan 24, 12:35 pm, William Pursell <[EMAIL PROTECTED]> wrote:
> I'm not sure that describes the method well. Basically, you can
> instantiate an object A of class Foo, and later change A to be an
> object of class Bar. Does Python support this type of flexibility?
> As I stated above, I've bee
On Jan 24, 12:13 pm, SMALLp <[EMAIL PROTECTED]> wrote:
> Hy. Is there any way to make interrupter ignore exceptions. I'm working
> on bigger project and i used to put try catch blocks after writing and
> testing code what's boring and it's easy to make mistake. I remember of
> something like that
On Jan 24, 12:14 pm, Shoryuken <[EMAIL PROTECTED]> wrote:
> Given a regular expression pattern, for example, \([A-Z].+[a-z]\),
>
> print out all strings that match the pattern in a file
>
> Anyone tell me a way to do it? I know it's easy, but i'm completely
> new to python
>
> thanks alot
You may
turns a list is .findall(string), but then I get back the
groups as tuples, which is sort of a problem.
Thank you,
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
in terms]
>>> delisted_terms = [''.join(term_list) for term_list in detupled_terms]
which achieves the desired result, but I am not a programmer and so I
would still be interested to know if there is a more elegant way of
doing this.
I appreciate the help.
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 15, 8:31 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 15 Feb 2008 19:25:59 -0200, Jonathan Lukens
> <[EMAIL PROTECTED]> escribió:
>
>
>
> >> What would you like to see instead?
>
> > I had mostly just expected that
nd would be interested in seeing how a
programmer with training
and experience would go about this."
Thank you,
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 19, 6:14 am, "Adam W." <[EMAIL PROTECTED]> wrote:
> So I deleted my .pyc files and reran, same thing, but then I closed all
> open windows and reran it, and it recompiled the pyc and the code
> "worked".
> ...
> But now I know I have to keep deleting my
> pyc files or else I will run into tr
On Feb 21, 3:34 pm, john_sm3853 <[EMAIL PROTECTED]> wrote:
> Hey guys, I am interested in knowing, what new Web Development projects you
> are doing, curious to know, what data base you use, and if you are using
> Linux or Windows platform. Also, will like to know, if there are any
> alternatives
So, I ran into a problem that I would like to write as little code as
possible to solve.
The problem is that I would like to send out a bunch of HTTP requests
simultaneously, using asynchronous techniques, and then do stuff with
the results in parallel. Think of something like Google's map-reduce.
On Mar 2, 8:35 am, Michele Simionato <[EMAIL PROTECTED]>
wrote:
> On Mar 2, 5:23 pm, js <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Have you ever seen Beautiful Python code?
> > Zope? Django? Python standard lib? or else?
>
> > Please tell me what code you think it's stunning.
>
> The doctest module
This is an interesting issue because we who write web applications
face the same problem. Except in the web world, the application state
is stored in the browser so we don't have to work our way back to
where we were. We just keep our url, cookies, and request parameters
handy.
Before I go on, I w
On Mar 12, 6:37 pm, Carl Banks <[EMAIL PROTECTED]> wrote:
> On Mar 12, 8:11 pm, Justus Schwabedal <[EMAIL PROTECTED]>
> wrote:
>
> > What do you need it for anyway? I just read about it and I think it's
> > useless
> > in python.
>
> Perl, like Python, has a separate compilation and run times. One
On Mar 14, 8:00 am, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> The %x conversion specifier is documented
> inhttp://docs.python.org/lib/typesseq-strings.htmlas "Unsigned
> hexadecimal (lowercase)." What does "unsigned" refer to?
>
> >>> '0x%x' % 10
> '0xa'
Somewhat unrelated, but have you seen t
On Mar 13, 11:32 pm, Gilles Ganault <[EMAIL PROTECTED]> wrote:
> I'd like to monitor connections to a remote SSH and web server. Does
> someone have some code handy that would try to connect every 5mn, and
> print an error if the script can't connect?
from time import sleep
while True:
# Try to
eaction.
But the vast majority of the vendor lightning talks were a waste of
time, I agree.
-Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 20, 5:20 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote:
> How can I specify encoding for the built-in eval function? Here is the
> documentation:
>
> http://docs.python.org/lib/built-in-funcs.html
>
> It tells that the "expression" parameter is a string. But tells nothing
> about the encoding. S
On Mar 20, 4:51 am, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote:
> Hi all.
> Is there any way to su or login as a different user within a python
> script? I mainly need to temporarily impersonate another user to
> execute a command and then come back to the original user.
> I tried to google a li
201 - 300 of 617 matches
Mail list logo