The follow statement comes from the Python 2.5 documentation
--
encode( [encoding[,errors]])
Return an encoded version of the string. Default encoding is the
current default string encoding. errors may be given to set a
different error handling scheme.
---
what's the "Defau
Hi!
This image show IronPython.
But... what is it?
Link :
http://msdn2.microsoft.com/en-us/vstudio/bb510103.vss_IronPython_large.jpg
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> On Tue, 05 Jun 2007 18:08:31 +, Lenard Lindstrom wrote:
>
>> Steven D'Aprano wrote:
>>> On Mon, 04 Jun 2007 22:19:35 +, Lenard Lindstrom wrote:
>>>
What is "magic" about __init__ and __repr__? They are identifiers just
like "foo" or "JustAnotherClass". T
Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote:
> But you can't ever catch sigkill.
> Isn't there a way to make sure the os kills the childprocess when the
> parrent dies?
Not as far as I know.
If you've got a pipe open to the child then killing the parent should
deliver SIGPIPE to the child w
In article <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]> wrote:
>
>ZioMiP je napisao/la:
>> Hi to all...
>>
>> I'm actually using Tkinter for my GUI... but I need to "put a piece of a
>> web-page in a widget" how can I do?
>>
>> which GUI module do you suggest me to use for do that?
>>
>> or which GUI
On 2007-06-06, Vijayendra Bapte <[EMAIL PROTECTED]> wrote:
> Python is a rapid application development language..we uses it
> every where.. in web application development..GUI
> development..Automation/Regression test-suite
> development..Text/XML processing..website Scrapping
Boy, do I know some
En Tue, 05 Jun 2007 17:59:18 -0300, Thomas Dybdahl Ahle <[EMAIL PROTECTED]>
escribió:
> When I close my (gtk) program, I get errors like the below.
> It seams that when the interpreter shuts down, it sets every variable to
> None, but continues running the threads, (seems only in cases where
> t
On Jun 5, 12:37 am, walterbyrd <[EMAIL PROTECTED]> wrote:
> I mean other than sysadmins, programmers, and web-site developers?
>
> I have heard of some DBAs who use a lot of python.
>
> I suppose some scientists. I think python is used in bioinformatics. I
> think some math and physics people use p
On Jun 6, 12:13 pm, Eric <[EMAIL PROTECTED]> wrote:
> On Jun 5, 4:17 pm, ZioMiP <[EMAIL PROTECTED]> wrote:
>
>
>
> > Cameron Laird ha scritto:
>
> > > In article <[EMAIL PROTECTED]>,
> > > ZioMiP <[EMAIL PROTECTED]> wrote:
> > >> Hi to all...
>
> > >> I'm actually using Tkinter for my GUI... but I
On Jun 5, 9:24 pm, Christoph Haas <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 05, 2007 at 03:01:01PM -0400, Chris Stewart wrote:
> > I'm interested in learning web based python without the use of fancy
> > frameworks
> > that are out there. I'm having a hard time coming up with resources and
> > exa
On Jun 6, 12:07 pm, Steve Howell <[EMAIL PROTECTED]> wrote:
> --- walterbyrd <[EMAIL PROTECTED]> wrote:
> > I am getting the idea that most python "programmers"
> > use python more
> > like a tool, rather than as their primary
> > specialization. In other
> > words, python is usually not the primar
En Tue, 05 Jun 2007 03:41:19 -0300, <[EMAIL PROTECTED]> escribió:
> On 5 Jun., 01:32, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>> Yes, it appears that you are building a plain list but your code is
>> expecting another kind of object. I'm unfamiliar with Numeric arrays, if
>> that is what y
Steven D'Aprano wrote:
> On Tue, 05 Jun 2007 18:26:50 -0400, Terry Reedy wrote:
>
>> "Warren Stringer" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED] | I am porting code that
>> only uses this form |a[:4]b()
>> |
>> | Which translates to:
>> |
>> | for i in range(4):
>> |a
On Tue, 05 Jun 2007 19:16:53 -0700, Bill Jackson wrote:
[snip]
> From the above, it seems that Python always uses the function defined
> by the class on the LEFT. However, I don't understand the following
> then:
[snip]
In general, infix operators like + - * etc. will call the appropriate
me
Try adding the following diagnostic messages to your __eq__ class
definitions, and see if it will dispel the confusion for the four
equality tests you have tried:
class A:
def __init__(self,a):
self.a = a
def __eq__(self, other):
print "(A) self:%r, other:%r" %(self.__class__,
En Mon, 04 Jun 2007 23:03:04 -0300, <[EMAIL PROTECTED]> escribió:
> Thanks Gabriel. That was exactly what I was looking for. Also, I'm
> glad to make a connection to the StringIO class. I'm sure I will
> remember it the next time I need it.
Glad to see it helped. Certainly StringIO is a good t
Interesting. So I guess to accomplish my goals, I'll have to explore one of
these frameworks.
On 6/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
On Jun 5, 9:24 pm, Christoph Haas <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 05, 2007 at 03:01:01PM -0400, Chris Stewart wrote:
> > I'm intereste
On Tue, 05 Jun 2007 18:26:50 -0400, Terry Reedy wrote:
> "Warren Stringer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED] | I am porting code that
> only uses this form |a[:4]b()
> |
> | Which translates to:
> |
> | for i in range(4):
> |a[i].b()
>
> Or, more directly and p
Steve,
Hey, thanks. I'll try that.
Horace
In article <[EMAIL PROTECTED]>,
Steven Bethard <[EMAIL PROTECTED]> wrote:
> Horace Enea wrote:
> > My example wasn't very good. Here's another try:
> >
> > def foo():
> >yield 1
> >yield 2
> >yield 3
> >
> > f = foo()
> > f.next()
> > 1
>
For example,
class A:
def __init__(self,a):
self.a = a
def __eq__(self, other):
return self.a == other.a
class B:
def __init__(self,b):
self.b = b
def __eq__(self, other):
return self.b == other.b
A(1) == B(1)
---> AttributeError: B instance has no attribute a
B
On Jun 5, 4:17 pm, ZioMiP <[EMAIL PROTECTED]> wrote:
> Cameron Laird ha scritto:
>
>
>
> > In article <[EMAIL PROTECTED]>,
> > ZioMiP <[EMAIL PROTECTED]> wrote:
> >> Hi to all...
>
> >> I'm actually using Tkinter for my GUI... but I need to "put a piece of a
> >> web-page in a widget" how can I do
--- walterbyrd <[EMAIL PROTECTED]> wrote:
> I am getting the idea that most python "programmers"
> use python more
> like a tool, rather than as their primary
> specialization. In other
> words, python is usually not the primary
> specialization.
I'm one of the exceptions to this rule. My prima
On Jun 5, 6:17 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Jun 5, 1:04 pm, james_027 <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jun 4, 8:16 pm, John Machin <[EMAIL PROTECTED]> wrote:
>
> > > On Jun 4, 3:52 pm, yuce <[EMAIL PROTECTED]> wrote:
>
> > > > i think this one works pretty nice:http://www.
Horace Enea wrote:
> My example wasn't very good. Here's another try:
>
> def foo():
>yield 1
>yield 2
>yield 3
>
> f = foo()
> f.next()
> 1
>
> g=copy(f) # copy the generator after an iteration
>
> f.next()
> 2
> f.next()
> 3
>
> g.next()
> 2
>
> I want to copy the generat
My example wasn't very good. Here's another try:
def foo():
yield 1
yield 2
yield 3
f = foo()
f.next()
1
g=copy(f) # copy the generator after an iteration
f.next()
2
f.next()
3
g.next()
2
I want to copy the generator's state after one or more iterations.
In article <[EMAI
On 2007-06-05, ZioMiP <[EMAIL PROTECTED]> wrote:
> I know that WxPython work only under Windows and PyGTK work only under
> Linux...
You 'know' wrong.
wxPython works fine under Windows, Linux and OSX.
PyGTK works under Linux and Windows, but doens't use native
widgets under Windows, so it wo
I have about a 1600 line Pythron program I'd like to make some simple mods
to, but have really just a nodding acquaintance with Python and Tkinter. I
know quite a few languages, including C++. Let's change that. I've not used
anything but C in recent years, and C++ was in my bag before that alon
Why not just do this:
>>> def foo():
... yield 1
... yield 2
... yield 3
...
>>> f = foo()
>>> g = foo()
>>> f.next()
1
>>> f.next()
2
>>> f.next()
3
>>> g.next()
1
>>> g.next()
2
>>> g.next()
3
--
http://mail.python.org/mailman/listinfo/python-list
Modify the PATHEXT environment variable to include .py;
For example the default one on Windows XP is:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;
Modify it so it says:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py
Now you can run python programs from your c
Cameron Laird ha scritto:
> In article <[EMAIL PROTECTED]>,
> ZioMiP <[EMAIL PROTECTED]> wrote:
>> Hi to all...
>>
>> I'm actually using Tkinter for my GUI... but I need to "put a piece of a
>> web-page in a widget" how can I do?
>>
>> which GUI module do you suggest me to use for do that?
>>
>>
Does anyone have code to copy a generator?
Here is what I'd like to do:
def foo():
yield 1
yield 2
yield 3
f = foo()
g = copy(foo)
print f.next()
1
print f.next()
2
print g.next()
1
Thanks,
Horace
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 3, 8:56 am, [EMAIL PROTECTED] (Alex Martelli) wrote:
> Allowing a trailing ! in method names has no such cost, because in no
> language I know is ! used as a "postfix unary operator"; the gain in the
> convention "mutators end with !" is not huge, but substantial. So, the
> tradeoffs are d
In article <[EMAIL PROTECTED]>,
ZioMiP <[EMAIL PROTECTED]> wrote:
>Hi to all...
>
>I'm actually using Tkinter for my GUI... but I need to "put a piece of a
>web-page in a widget" how can I do?
>
>which GUI module do you suggest me to use for do that?
>
>or which GUI module do you suggest me to us
On Tue, 05 Jun 2007 18:08:31 +, Lenard Lindstrom wrote:
> Steven D'Aprano wrote:
>> On Mon, 04 Jun 2007 22:19:35 +, Lenard Lindstrom wrote:
>>
>>> What is "magic" about __init__ and __repr__? They are identifiers just
>>> like "foo" or "JustAnotherClass". They have no special meaning to
> The solution was to recognize when we where finished with it to set
> self.over_there to None.
To my knowledge python does not handle all cyclic gc anyway. Here is
some information from the gc documentation:
[doc]
garbage
A list of objects which the collector found to be unreachable but
could
On Jun 4, 12:37 pm, walterbyrd <[EMAIL PROTECTED]> wrote:
> I mean other than sysadmins, programmers, and web-site developers?
>
> I have heard of some DBAs who use a lot of python.
>
> I suppose some scientists. I think python is used in bioinformatics. I
> think some math and physics people use p
Il Tue, 05 Jun 2007 23:57:15 +0200, Stef Mientki ha scritto:
> hello,
>
> after cleaning up a PC, Python can't find any libraries anymore.
> But happily I've still one PC, where Python is running perfect.
> Now I always read about the environment variable "PYTHONPATH".
> But on neither PC there e
On Jun 5, 2007, at 5:13 PM, Michael Bentley wrote:
>
> On Jun 5, 2007, at 4:17 PM, Thomas Dybdahl Ahle wrote:
>
>> Den Tue, 05 Jun 2007 15:46:39 -0500 skrev Michael Bentley:
>>
>>> But actually *that* is an orphan process. When a parent process
>>> dies
>>> and the child continues to run, the
"Warren Stringer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| I am porting code that only uses this form
|a[:4]b()
|
| Which translates to:
|
| for i in range(4):
|a[i].b()
Or, more directly and perhaps more efficiently:
for e in a[:4]: e.b()
tjr
--
http://mail.py
ZioMiP je napisao/la:
> Hi to all...
>
> I'm actually using Tkinter for my GUI... but I need to "put a piece of a
> web-page in a widget" how can I do?
>
> which GUI module do you suggest me to use for do that?
>
> or which GUI module do you suggest me to use at all?
>
> I'm acutally using Windows
Matimus ha scritto:
>> I know that WxPython work only under Windows
>
> Hmm, there seems to be some disparity between what you know and the
> truth...
>
> WxPython works everywhere (Windows, Linux, MacOS), and it works well.
> Also, it has web widgets that come standard (wx.html.HtmlWindow).
>
>
> I know that WxPython work only under Windows
Hmm, there seems to be some disparity between what you know and the
truth...
WxPython works everywhere (Windows, Linux, MacOS), and it works well.
Also, it has web widgets that come standard (wx.html.HtmlWindow).
Matt
--
http://mail.python.org/mai
On Jun 5, 2:57 pm, ZioMiP <[EMAIL PROTECTED]> wrote:
> Hi to all...
>
> I'm actually using Tkinter for my GUI... but I need to "put a piece of a
> web-page in a widget" how can I do?
>
> which GUI module do you suggest me to use for do that?
>
> or which GUI module do you suggest me to use at all?
On Jun 5, 8:38 pm, Chris Shenton <[EMAIL PROTECTED]> wrote:
> Yeah, I think this is the cause. Unfortunately I'm using a couple
> dozen files and a bunch more libraries and if they're doing a logging.debug()
> or whatnot they're creating this.
I wouldn't have thought that well-written third part
On Jun 5, 2007, at 4:17 PM, Thomas Dybdahl Ahle wrote:
> Den Tue, 05 Jun 2007 15:46:39 -0500 skrev Michael Bentley:
>
>> But actually *that* is an orphan process. When a parent process dies
>> and the child continues to run, the child becomes an orphan and is
>> adopted by init. Orphan processe
In article <[EMAIL PROTECTED]>,
jim-on-linux <[EMAIL PROTECTED]> wrote:
>On Monday 04 June 2007 16:29, [EMAIL PROTECTED]
>wrote:
>> Hi,
>> Is there a way to resize the width of the
>> "tkMessageBox.askyesno" dialog box, so that the
>> text does not wrap to the next line. Thanks
>> Rahul
>I don't
In article <[EMAIL PROTECTED]>,
Glenn Hutchings <[EMAIL PROTECTED]> wrote:
>On 4 Jun, 21:29, [EMAIL PROTECTED] wrote:
>> Is there a way to resize the width of the "tkMessageBox.askyesno"
>> dialog box, so that the text does not wrap to the next line.
>
>You can use the Tk option database, either e
Hi!
Only under Win: PLUIE (http://ponx.org/ponx/guie)
This GUI is natively HTML.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi to all...
I'm actually using Tkinter for my GUI... but I need to "put a piece of a
web-page in a widget" how can I do?
which GUI module do you suggest me to use for do that?
or which GUI module do you suggest me to use at all?
I'm acutally using Windows Xp but I also use Linux...
I know th
hello,
after cleaning up a PC, Python can't find any libraries anymore.
But happily I've still one PC, where Python is running perfect.
Now I always read about the environment variable "PYTHONPATH".
But on neither PC there exists a "PYTHONPATH".
On the PC that works ok,
there is the standard "PAT
On 2007-06-05, Troels Thomsen wrote:
> with the printf inspired solution you can set the precision like this:
>
a = "12\n34"
for c in a:
> ... print "%#04x" % ord(c),
> ...
> 0x31 0x32 0x0a 0x33 0x34
And if you just want to do the conversion w/o printing:
>>> a = "12\n34"
>>> ' '.j
Den Tue, 05 Jun 2007 15:46:39 -0500 skrev Michael Bentley:
> But actually *that* is an orphan process. When a parent process dies
> and the child continues to run, the child becomes an orphan and is
> adopted by init. Orphan processes can be cleaned up on most Unices with
> 'init q' (or somethin
> I am looking at ctypes and it might do what I need but I can't figure
> out a way to convert a Python File object to a C FILE pointer (which is
> the needed argument for getmntent).
>
> Any ideas?
I think you are supposed to pass the pointer to getmntent that you
obtained from setmntent (likely
Den Tue, 05 Jun 2007 22:01:44 +0200 skrev Rob Wolfe:
> Thomas Dybdahl Ahle <[EMAIL PROTECTED]> writes:
>
>> But you can't ever catch sigkill.
>
> There is no protection against sigkill.
>
>> Isn't there a way to make sure the os kills the childprocess when the
>> parrent dies?
>
> If the paren
> Great! It works.
>
There is a builtin function called hex() that does the same, but also shares
the same problem as the solution above:
>>> hex(10)
'0xa'
>>>
This is probably not "nice" in your printouts, it doesn't allign.
with the printf inspired solution you can set the precision like
On Tue, 05 Jun 2007 21:32:21 +0200
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> You could try to invoke getmntent(3). I'm not aware of a Python wrapper
> for it, so you either try to write one yourself in C, or use ctypes to
> write it in Python.
I am looking at ctypes and it might do what I ne
When I close my (gtk) program, I get errors like the below.
It seams that when the interpreter shuts down, it sets every variable to
None, but continues running the threads, (seems only in cases where
they've just been asleep)
I don't think this would be intended behavior?
Exception in thread Th
On Jun 5, 2007, at 3:01 PM, Rob Wolfe wrote:
> Thomas Dybdahl Ahle <[EMAIL PROTECTED]> writes:
>
>> But you can't ever catch sigkill.
>
> There is no protection against sigkill.
>
>> Isn't there a way to make sure the os kills the childprocess when the
>> parrent dies?
>
> If the parent dies sudd
Thomas Dybdahl Ahle <[EMAIL PROTECTED]> writes:
> But you can't ever catch sigkill.
There is no protection against sigkill.
> Isn't there a way to make sure the os kills the childprocess when the
> parrent dies?
If the parent dies suddenly without any notification childprocesses
become zombies
On Jun 5, 9:24 pm, Christoph Haas <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 05, 2007 at 03:01:01PM -0400, Chris Stewart wrote:
> > I'm interested in learning web based python without the use of fancy
> > frameworks
> > that are out there. I'm having a hard time coming up with resources and
> > exa
walterbyrd wrote:
> On Jun 5, 3:01 am, Maria R <[EMAIL PROTECTED]> wrote:
>> I tend to agree with some earlier poster that if you use Python you
>> are, in a sense, a programmer :o)
>>
>
> Yes, in a sense. But, in another sense, that is sort of like saying
> that people who post on message boards
Vinay Sajip <[EMAIL PROTECTED]> writes:
> The default handler is created because you are calling the convenience
> functions of the logging package: logging.error, etc. If you don't
> want the default handler to be created, either
>
> (a) Configure the logging system yourself before any logging ca
Mitko Haralanov schrieb:
> On Tue, 05 Jun 2007 20:14:01 +0200
> "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
>
>> Ah, ok. I recommend to parse /proc/mounts.
>
> I was looking for something that reminded me less of Perl and more of C
> but haven't been able to find such a method.
You could try to
We encountered a situation today where it appeared that a
Boost.Python-provided class didn't participate in Python's cyclic garbage
collection. The wrapped C++ instance held a reference to a method in the
Python object which referenced the Boostified C++ instance, e.g.:
class Foo:
def
On Tue, Jun 05, 2007 at 03:01:01PM -0400, Chris Stewart wrote:
> I'm interested in learning web based python without the use of fancy
> frameworks
> that are out there. I'm having a hard time coming up with resources and
> examples for this. Does anyone have anything that could be helpful?
I'd
In article <[EMAIL PROTECTED]>,
Hendrik van Rooyen <[EMAIL PROTECTED]> wrote:
> "walterbyrd" <[EMAIL PROTECTED]> wrote:
>
>> Anything else? Finance? Web-analytics? SEO? Digital art?
>
>Industrial control and alarm annunciation
.
.
In article <[EMAIL PROTECTED]>,
Matimus <[EMAIL PROTECTED]> wrote:
>On Jun 4, 6:31 am, "js " <[EMAIL PROTECTED]> wrote:
>> Hi list.
>>
>> If I'm not mistaken, in python, there's no standard library to convert
>> html entities, like & or > into their applicable characters.
>>
>> htmlentitydefs prov
On Tue, 05 Jun 2007 20:14:01 +0200
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> Ah, ok. I recommend to parse /proc/mounts.
I was looking for something that reminded me less of Perl and more of C
but haven't been able to find such a method.
--
Mitko Haralanov [
Roland Puntaier [mailto:[EMAIL PROTECTED]
> Warren, can you please restate your point.
Hey Roland, where were you a few days ago ;-) I think most suggestions were
valid, in their own context. Only yesterday, was I finally able to get it in
perspective, so here goes:
There are two idioms: a domain
I'm interested in learning web based python without the use of fancy
frameworks that are out there. I'm having a hard time coming up with
resources and examples for this. Does anyone have anything that could be
helpful?
--
Chris Stewart
[EMAIL PROTECTED]
http://www.compiledmonkey.com
--
http:/
On 27 May 2007 10:49:06 -0700, 7stud <[EMAIL PROTECTED]> wrote:
> On May 27, 11:28 am, Steve Howell <[EMAIL PROTECTED]> wrote:
> > The groupby method has its uses, but it's behavior is
> > going to be very surprising to anybody that has used
> > the "group by" syntax of SQL, because Python's groupb
Tim Golden wrote this on Mon, 04 Jun 2007 15:55:30 +0100. My reply is
below.
> Chuck Rhode wrote:
>> samwyse wrote this on Mon, 04 Jun 2007 12:02:03 +. My reply is
>> below.
>>> I think it would be a good thing if a standardized interface
>>> existed, similar to PEP 247. This would make i
Who else is using python (programmers, scientists, finance)?
Me! Graduated in fine arts. Python is what I do when I am fed up with
all those colors. Much easier to manufacture sense with.
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 5, 9:14 am, [EMAIL PROTECTED] wrote:
> I need to download files off a password protected website. So if I try
> to download files off the site with python I will be blocked. Is there
> anyway to send cookies with python. So I will be authenticated.
Yes. I haven't done it but I know you shou
you can take a look urlib.quote or quote_plus methods.
Jim
On 6/5/07, Lee Jones <[EMAIL PROTECTED]> wrote:
Hello,
I am trying to urlencode a string. In python the only thing I can see is
the urllib.urlencode(). But this takes a dictionary, and returns
"key=value", which is not what I wan
> I am on machine A, which has a NFS mounted filesystem hosted on machine
> B. All I need to find out is whether the NFS filesystem is mounted
> using tcp or udp.
Ah, ok. I recommend to parse /proc/mounts.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> On Mon, 04 Jun 2007 22:19:35 +, Lenard Lindstrom wrote:
>
>> What is "magic" about __init__ and __repr__? They are identifiers just
>> like "foo" or "JustAnotherClass". They have no special meaning to the
>> Python compiler. The leading and trailing double underscore
On Tue, 05 Jun 2007 09:19:08 +0200
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> I'm not quite sure what you want to achieve. You are on machine B,
> and you want to find out whether a remote file system (on machine A)
> is mounted remotely (say, from machine C)?
Ok, let me try to explain:
I am
matplotlib-0.90.1 has just been released. matplotlib is a graphing
package for python which can be used interactively from the python
shell ala Mathematica or Matlab, embedded in a GUI application, or
used in batch mode to generate graphical hardcopy, eg in a web
application server. Many raster a
yes. urllib2 has Request class that compose html headers (dict object) into
a request object where you can put Cookie: header into it. Also, there are a
few Cookie related modules you can use too.
An example using urllib2 can be something like this:
def myrequest(url):
req = urllib2.Request(ur
[EMAIL PROTECTED] wrote:
> On May 27, 7:50 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote:
> > The groupby itertool came-out in Py2.4 and has had remarkable
> > success (people seem to get what it does and like using it, and
> > there have been no bug reports or reports of usability problems).
>
>
walterbyrd wrote:
> On Jun 5, 3:01 am, Maria R <[EMAIL PROTECTED]> wrote:
> > I tend to agree with some earlier poster that if you use Python you
> > are, in a sense, a programmer :o)
> >
>
> Yes, in a sense. But, in another sense, that is sort of like saying
> that people who post on message board
On Jun 5, 3:01 am, Maria R <[EMAIL PROTECTED]> wrote:
> I tend to agree with some earlier poster that if you use Python you
> are, in a sense, a programmer :o)
>
Yes, in a sense. But, in another sense, that is sort of like saying
that people who post on message boards are "writers."
I should have
On May 27, 7:50 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote:
> The groupby itertool came-out in Py2.4 and has had remarkable
> success (people seem to get what it does and like using it, and
> there have been no bug reports or reports of usability problems).
With due respect, I disagree. Bug
Hi everybody.
I have this code snippet that shows a window without a titlebar (using
overrideredirect) and two buttons on it: one quits and the other one
brings up a simple tkMessageBox.
On Windows (any flavour) the tkMessagebox brings up over the
underlying window.
On Linux (apparently any flavou
I need to download files off a password protected website. So if I try
to download files off the site with python I will be blocked. Is there
anyway to send cookies with python. So I will be authenticated.
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 5, 10:19 am, azrael <[EMAIL PROTECTED]> wrote:
> Hy guys.
> I'd like to ask you for a favour.
> I tried several times to implement the otsu threshold filter in
> python. but I failed every time. I found the soucre code i n Java from
> the ImageJ project but I never worked in Java and there h
On Jun 5, 2007, at 9:29 AM, abhiee wrote:
> Hello , I have just begun learning python...and I'm loving it...Just
> wanted to ask you that how much time would it take me to learn python
> completely and which languages should i learn alongwith python to be a
> good professional programmer?...Now i
On Jun 5, 9:29 am, abhiee <[EMAIL PROTECTED]> wrote:
> Hello , I have just begun learning python...and I'm loving it...Just
> wanted to ask you that how much time would it take me to learn python
> completely and which languages should i learn alongwith python to be a
> good professional programmer
Google Groups appears to have thrown away my original reply, so sorry
if this appears twice...
On Jun 4, 9:51 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> 'i' and 'j' are the canonical names for for loops indices in languages
> that don't support proper iteration over a sequence. Using th
Pieter,
I've found when I have questions like this, that thinking about how I'd
do it in C/C++, then searching on some of those key words leads me to a
Python equivalent solution, or at least heading down the right path.
In this case, I believe you'll find the "file" module helpfull. You can
rea
On Jun 5, 4:28 pm, Marco Aloisio <[EMAIL PROTECTED]> wrote:
> Hi, I'm a Python newbie;
> I have to write a simple webserver, and I need to
> implement a basic authentication as specified in the RFC2617.
> I wonder if there is a Python library for doing that.
>
> Thanks!
>
> --
> Marco Aloisio
Hav
On Jun 5, 7:31 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> JonathanB wrote:
> > Ok, this is probably definitely a newbie question, but I have looked
> > all over the Python library reference material and tutorials which I
> > can find online and I cannot find a clear definition of what thes
Den Tue, 05 Jun 2007 07:06:15 -0700 skrev Rob Wolfe:
> Thomas Dybdahl Ahle wrote:
>
>> Problem is - I can't do that when I get killed. Isn't it possible to
>> open processes in such a way like terminals? If I kill the terminal,
>> everything open in it will die too.
>
> On POSIX platform you can
> But that perspective is not directly relevant to *your* topic line. When
> you make a claim that os.stat is 'broken' and bugged, you are making a
> claim about the *programmer* experience -- in particular, experiencing a
> discrepancy between performance and reasonable expectation based on the
>
Neil Cerutti wrote:
> I find i and j preferable to overly generic terms like "item."
Well, I probably wouldn't use "item" in a real example, unless it were
for a truly generic function designed to act on all sequences.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 5, 2:44 pm, Chris Shenton <[EMAIL PROTECTED]> wrote:
> I am setting up handlers to log DEBUG and above to a rotating file and
> ERROR and above to console. But if any of my code calls a logger
> (e.g.,logging.error("foo")) before I setup my handlers, thelogging
> system will create a defaul
Hello , I have just begun learning python...and I'm loving it...Just
wanted to ask you that how much time would it take me to learn python
completely and which languages should i learn alongwith python to be a
good professional programmer?...Now i only know C
thanx in advance!
--
http://mail.
Hi, I'm a Python newbie;
I have to write a simple webserver, and I need to
implement a basic authentication as specified in the RFC2617.
I wonder if there is a Python library for doing that.
Thanks!
--
Marco Aloisio
--
http://mail.python.org/mailman/listinfo/python-list
Hy guys.
I'd like to ask you for a favour.
I tried several times to implement the otsu threshold filter in
python. but I failed every time. I found the soucre code i n Java from
the ImageJ project but I never worked in Java and there have been used
some built in Java functions which I don't know ho
1 - 100 of 155 matches
Mail list logo