"Steven Bethard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> So I assume the language spec is basically the grammar and the
> Language Reference docs[1]?
Yes. The de facto governing syntax specification is the grammar file in
the source code from which the parser is generate
Philippe Fremy <[EMAIL PROTECTED]> wrote:
> Any other idea of a fun python improvement project I could join without
> too much hassle ? I can't help but thinking that pychecker ought to be
> able to do a better job.
Have a look at pypy -- around the key idea of reimplementing Python's
runtime in
Paul Rubin wrote:
> "Fuzzyman" <[EMAIL PROTECTED]> writes:
> > The sourceforge bug tracker *is* the single right place to post
such
> > issues. The py-dev mailing list would be a second *useful* place to
> > post such a comment, although not really the right place. The OP
seemed
> > to want an ind
On Wed, 02 Feb 2005 17:36:04 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote:
> jrlen balane wrote:
> > i have a 4 digit hex number (2 bytes) and i want to separate it into 2
> > digit hex (1 byte each) meaning i want to get the upper byte and the
> > lower byte since i am going to add this two.
> >
jrlen balane <[EMAIL PROTECTED]> writes:
> would i be able to perform bitwise operation with the result?
> say, i want to get the two's complement of the result, is this correct:
>
> twos_complement = (~ hex(hi + lo)) + 1
You can do bit operations, but hex(n) is the hex string for n, which
is not
Kartic <[EMAIL PROTECTED]> wrote:
...
> I am not sure what book you are using but I don't think it is a very
> good one.
Hmmm, considering he said it's "Python in a Nutshell", I disagree with
you;-). If he had understood that he probably wanted to use lists, not
arrays, the top paragraph on p.
Hi all, i'm working on an app that embed python 2.3
with Gnu/Linux, and i'd like to have some precisions:
I'm making python's modules to extend my
application's functions with a built in script editor.
At now all works very well, but i'd like to know if
i'm not forgetting some references
[Chris Jameyson]
| Is there a way to check driver version information on windows through
| Python?
|
| I'd like to pull driver version, digital sig from the same place that
| 'device manager' gets it's information.
It's possible that WMI can do it, although device etc. aren't
my area, so I'm no
Hi,
Thank you very much, you have collectively cleared up some of the confusion.
English windows command prompt uses cp437 charset.
To be exact my Windows is german but I am not outputting to the command
prompt
window. I am using eclipse with the pydev plugin as development platform and
the output
Le mercredi 2 Février 2005 00:28, Philippe Fremy a écrit :
> I really hope that pypy will provide that kind of choice. Give me python
> with eiffel like contracts, super speed optimisation thank to type
> inference and I will be super happy.
That's also my dream. Type inference not so much for spe
>You could probably write your own FixedPoint function without too much
>difficulty, with the only tricky part being for it to know when to
stop!
It would be quite interesting to have this kind of function. But
likely its far from trivial.
FixedPoint seems to be one of the core functions in Mathem
Sean McIlroy wrote:
> I'd like to be able to save a Tkinter Canvas in a format other than
> postscript (preferably gif). Is there a tool out there for
> accomplishing that? Any help will be much appreciated.
pnmtools - for converting.
--
Regards,
Diez B. Roggisch
--
http://mail.python.org/mai
Hi,
Don't be tempted to ever change sys.defaultencoding in site.py, this is
site specific, meaning that if you ever distribute them, programs
relying on this setting may fail on other people's Python installations.
But wouldn't that be correct in my case?
> If you're printing to the console, mode
> I suppose that I am willing to lessen my expectations from _all_ to most.
> ;-) Regarding your example I could also do:
>
> if something():
> def nothing(): return 0
> else:
> def nothing(): return 1
>
> But this doesn't stop IDEs from attempting to do auto-completion.
Skip Montanaro wrote:
Francis> "Every well-formed expression of the language can be assigned a
Francis> type that can be deduced from the constituents of the
Francis> expression alone." Bird and Wadler, Introduction to Functional
Francis> Programming, 1988
Francis> This is certa
Hello,
i have an apache 1.3 server with python on debian. Python works fine but
the scripts wont´t work.
This easy script i want to do on apache:
#!/usr/bin/python
import os
os.getcwd()
in apache config i have done this:
AddHandler python-program .py
PythonHandler python
Order allow
http://digitoday.fi/showPage.php?page_id=9&news_id=40179
Literal translation for those who can't read Finnish:
Nokia has published the Open Source Python language for Series 60
based mobile devices. The company states that the language makes it
easy for the wordwide Python community to execute co
Marian Aldenhövel wrote:
> If you're printing to the console, modern Pythons will try to guess the
> console's encoding (e.g. cp850).
But it seems to have quessed wrong. I don't blame it, I would not know of
any way to reliably figure out this setting.
Have you set the coding cookie in your file?
*** WARNING **
Este mensaje ha sido analizado por MDaemon AntiVirus y ha encontrado
un fichero anexo(s) infectado(s). Por favor revise el reporte de abajo.
AttachmentVirus name Action taken
---
To complete Philippe's answer :
As Bird and Wadler continue :
"The major consequence of the discipline imposed by strong-typing is that any
expression which cannot be assigned a "sensible" type is regarded as not
being well-formed and is rejected by the computer before evaluation. Such
express
Diez B. Roggisch wrote:
I suppose that I am willing to lessen my expectations from _all_ to most.
;-) Regarding your example I could also do:
<
There is AFAIK only one language that this can de accomplished - java, and
that's because of these checked exceptions of theirs. But checked
exceptio
Sean McIlroy wrote:
I'd like to be able to save a Tkinter Canvas in a format other than
postscript (preferably gif). Is there a tool out there for
accomplishing that? Any help will be much appreciated.
Peace,
STM
I was massively disappointed, I thought this was a lead up to a protest
march!
Sa
In a file there can be several dictionaries like this
{Key11: Value11
Key12: Value12
Key13: Value13,
...
...
Key1n:Value1n}
{Key21: Value21
Key22: Value22
Key23: Value23,
...
...
Key2n:Value2n}
{Key31: Value31
Key32: Value32
Key33: Value33,
...
...
Key3n:Value3n}
{Keyn1: Valuen1
Keyn
Hi,
>I'm afraid that the only reliable way to gather what exceptions are
> raised is to read docs and/or come up with test cases. This has been a
> bugbear of mine in Python as it's not common to find a nice :Exceptions:
> IOError , IllegalArgumentError type of description in the
> docs.
>
Hi,
Have you set the coding cookie in your file?
Yes. I set it to Utf-8 as that's what I use for all my development.
Try adding this as the first or second line.
# -*- coding: cp850 -*-
Python will then know how your file is encoded
That is relevant to the encoding of source-files, right? How does
The following two passages from the python documentation *appear* to
contradict each other. Equally possible (or more likely !) is that I
misunderstand it :
eval :
This function can also be used to execute arbitrary code objects (such
as those created by compile()). In this case pass a code object
Paul Rubin wrote:
jrlen balane <[EMAIL PROTECTED]> writes:
would i be able to perform bitwise operation with the result?
say, i want to get the two's complement of the result, is this correct:
twos_complement = (~ hex(hi + lo)) + 1
You can do bit operations, but hex(n) is the hex string for n, whi
Of course there is the whole hog and more in the official Nokia press
release, this time in English:
http://press.nokia.com/PR/200501/978226_5.html
It also paints an accurate and quite positive picture of Python. Now
we just need ctypes or Symbianic Swig and world domination will be
ours ;-).
(Y
On Tuesday 01 February 2005 01:07, aurora wrote:
> Let's stop discussing about the perl-python non-sense. It is so boring.
>
> For a break, just visit Mr Xah Lee's personal page
> (http://xahlee.org/PageTwo_dir/Personal_dir/xah.html). You'll find lot of
> funny information and quotes from this quee
Hi,
When I tryed to compile a python module using distutils under windows,
and there is an error message if we do not have Microsoft Visual C++ 6
installed.
This is because python have been compiled with MSVC6 and distutils wants it
in order to compile C++ python modules.
One of the reasons why I
> Stephen Thorne <[EMAIL PROTECTED]> writes:
> On Tue, 01 Feb 2005 21:19:34 -0500, Chris Smith
> <[EMAIL PROTECTED]> wrote:
>> Falls into the 'cure worse than the disease' category. It's
>> really just a prompt to explore the corners of Gnus, and
>> determine how to give X
Hello,
I'm running a test and having issues with logging, if I call
logging.shutdown() and then want to start the logging going again then I
get a problem as if I call shutdown, I can't get the root logger again,
such as :
.>>> import logging
.>>> objTestLogger = logging.getLogger()
.>
I thought we had resolved to stop giving this troll so much negative
attention. Most of us know that that only increases the problem, and
yet now I see a handful of topics at the top-most of this list devoted
solely to him. I think we should go with the idea of a program that
tags his perl-python t
Neil Benn wrote:
Hello,
I'm running a test and having issues with logging, if I call
logging.shutdown() and then want to start the logging going again then
I get a problem as if I call shutdown, I can't get the root logger
again, such as :
.
Previous code missed out a line :
.>>> impor
Ville Vainio <[EMAIL PROTECTED]> writes:
> Of course there is the whole hog and more in the official Nokia press
> release, this time in English:
>
> http://press.nokia.com/PR/200501/978226_5.html
>
> It also paints an accurate and quite positive picture of Python. Now
> we just need ctypes or Sym
Olivier Ravard wrote:
... use another compilator
Is there anyone that have experienced this "free" problem and is there a
solution
that I did not note. I don't want to buy MSVC...
Thanks
O.R.
Googled mingw lib for python brings me to
http://www.mingw.org/MinGWiki/index.php/Python%20extensions
Hi
How to take access to serial port (rs232) ??
Is't possible?? Just tell me guy's where I can take o look
Now I work under Windows XP but finally I need to make script to communicate
witch
GSM modem under Linux. There will be a typical AT commands
Thanks
--
http://mail.python.org/mailman/l
Fuzzyman a écrit :
The following two passages from the python documentation *appear* to
contradict each other. Equally possible (or more likely !) is that I
misunderstand it :
eval :
This function can also be used to execute arbitrary code objects (such
as those created by compile()). In this case
Folks:
here is a small summary:
For Linux based system, xawt seems to be the solution:
http://linux.bytesex.org/xawtv/
where one can get access to the stream from any device that has a video
output.
For win32, it looks like the solution is this:
http://videocapture.sourceforge.net/
where one has
Skip Montanaro wrote:
Francis> "Every well-formed expression of the language can be assigned a
Francis> type that can be deduced from the constituents of the
Francis> expression alone." Bird and Wadler, Introduction to Functional
Francis> Programming, 1988
Francis> This is certa
> "Thomas" == Thomas Heller <[EMAIL PROTECTED]> writes:
>> (Yeah, ctypes will probably be a problem because of the way Symbian
>> handles DLLs)
Thomas> How *does* symbian handle DLLs?
By ordinal, so the dll does not include the symbol name (in order to
keep the size small). Linke
Pierre Barbier de Reuille wrote:
[EMAIL PROTECTED] a écrit :
Thank you guys.
My function should multiply every element of a list, for example
"something"
and "something" can be an integer or another list.
If it deals with integer than it is ok, but
If it deals with list than it become false for ex
Leif K-Brooks:
>They look exactly the same speed-wise to me:
There's a little overhead, you can see it with a bigger test:
.from time import clock
.n = 1*10**6
.
.t1 = clock()
.d = set()
.for i in xrange(n):
. d.add(i)
.t2 = clock()
.for i in xrange(n):
. d.remove(i)
.t3 = clock()
.d = set(xra
Hi!
I'm writing a parser using pyparsing and I would like to augment the
ParserException tracebacks with information about the actual error line *in
the parsed text*. Pyparsing provides me with everything I need (parsed line
and column), but is there a way to push that information on the traceba
> How to take access to serial port (rs232) ??
> Is't possible?? Just tell me guy's where I can take o look
> Now I work under Windows XP but finally I need to make script to
> communicate witch
> GSM modem under Linux. There will be a typical AT commands
As always: Google is your friend:
google
Nick Coghlan wrote:
When not working at the hardware level, just go with the definition:
Py> def complement(val, limit=256):
... if val >= limit or val < 0:
... raise ValueError("Value out of range for complemented format")
... if val == 0:
... return 0
... return limit - val
...
Py>
Pierre Barbier de Reuille wrote:
> Fuzzyman a écrit :
> > The following two passages from the python documentation *appear*
to
> > contradict each other. Equally possible (or more likely !) is that
I
> > misunderstand it :
> >
> > eval :
> > This function can also be used to execute arbitrary code
Not that funny ! ;-)
Regards,
Fuzzy
http://www.voidspace.org.uk/python/index.shtml
--
http://mail.python.org/mailman/listinfo/python-list
r = {}
for x in a: if x not in b: r[x] = r[a]
for x in b: if x not in a: r[x] = r[b]
I know, this is wrong :-]
This looks better:
r = {}
for x in a: if x not in b: r[x] = a[x]
for x in b: if x not in a: r[x] = b[x]
Bearophile
--
http://mail.python.org/mailman/listinfo/python-list
Pawe³ Chrobak wrote:
Hi
How to take access to serial port (rs232) ??
Is't possible?? Just tell me guy's where I can take o look
The same place you should always look - Google.
Keywords: python serial
Cheers,
Nick.
--
Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia
--
What does the error log report ?
It is *possible* that you are getting an error 500 because your are
not emitting valid headers.
Try this instead :
#!/usr/bin/python
print 'Content-Type: text/plain\r'
print '\r'
import os
print os.getcwd()
Regards,
Fuzzy
http://www.voidspace.org.uk/python/in
Fuzzyman wrote:
The following two passages from the python documentation *appear* to
contradict each other. Equally possible (or more likely !) is that I
misunderstand it :
eval :
This function can also be used to execute arbitrary code objects (such
as those created by compile()). In this case pas
Dean,
On Tue, Feb 01, 2005 at 08:01:13AM -0800, Dean N. Williams wrote:
> I am getting the following error message from the Python build:
>
> Traceback (most recent call last):
> File "", line 1, in ?
> File "/usr/local/ASD_work/cdat/lib/python2.4/lib-tk/Tkinter.py", line
> 38, in ?
>impor
> Keywords: python serial
>
Great, I needed exactly this information ( pyserial) . Thanks a lot ;)
--
http://mail.python.org/mailman/listinfo/python-list
Dean,
Please keep your replies on-list.
On Wed, Feb 02, 2005 at 05:06:30AM -0800, Dean N. Williams wrote:
> It appears that I built the Tcl/Tk libraries, but for some reasons
> they are not correct. So I am using the Tcl/Tk libraries that were
> distributed with Cygwin. This seemed to work... No
[EMAIL PROTECTED] a écrit :
In a file there can be several dictionaries like this
(snip)
I need to read only the the first and the last dictionaries.What is a
best solution?
Depends on your definition of 'best solution'.
--
http://mail.python.org/mailman/listinfo/python-list
Can your dictionaries contain dictionaries ?
If not you can read the file and cut at the first '}' and the last '{'.
The two chunks will then be a single dictionary which can be eval'd.
*However* your example above does not show ',' between all of the
pairs... but only some. This will bugger you
Dean,
Please keep your replies on-list.
On Wed, Feb 02, 2005 at 05:14:21AM -0800, Dean N. Williams wrote:
> I am trying to do the following according to your notes:
>
> 3. Due to issues with Cygwin's fork() and DLL base address conflicts,
> one should rebase their Cygwin system to prevent fork()
Steve Holden a écrit :
Pierre Barbier de Reuille wrote:
[EMAIL PROTECTED] a écrit :
Thank you guys.
My function should multiply every element of a list, for example
"something"
and "something" can be an integer or another list.
If it deals with integer than it is ok, but
If it deals with list than
Fuzzyman a écrit :
Yes.. but that would mean that eval could only run code objects that
"consist[s] of a single expression".. which I doubt is the reality or
the intention.
Regards,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
[Sorry, I deleted the commented lines because they were comp
alex23 wrote:
> Luis M. Gonzalez wrote:
> > I kind of like this guy... it's like he has a few bugs in his
brain,
> > but other parts are surprisingly interesting.
>
> Which bits especially impress you, the rampant misogyny or the
> unwarranted intellectual arrogance?
I didn't say that I'm "impre
#33
#! /usr/bin/env python
import MySQLdb
db=MySQLdb.connect(host='localhost', db='photum_0_6_2', user='root',
passwd='thkhgfgd')
c=db.cursor()
c.execute('select person from persons order by person')
for (person,) in c: # or c.fetchall() (may be more portable
Steve Holden wrote:
> Fuzzyman wrote:
>
> > The following two passages from the python documentation *appear*
to
> > contradict each other. Equally possible (or more likely !) is that
I
> > misunderstand it :
> >
> > eval :
> > This function can also be used to execute arbitrary code objects
(such
Pierre Barbier de Reuille wrote:
> Fuzzyman a écrit :
> >
> >
> > Yes.. but that would mean that eval could only run code objects
that
> > "consist[s] of a single expression".. which I doubt is the reality
or
> > the intention.
> >
> > Regards,
> > Fuzzyman
> > http://www.voidspace.org.uk/python/i
On Tue, 01 Feb 2005 16:27:48 -0600, John Roth wrote:
>
> "Sylvain Thenault" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> On Tue, 01 Feb 2005 05:18:12 +0100, Philippe Fremy wrote:
>>
>> Did you take a look at the starkiller [1] and pypy projects [2] ?
>
> Has anything happened
[EMAIL PROTECTED] wrote:
Thank you guys.
My function should multiply every element of a list, for example
"something"
and "something" can be an integer or another list.
If it deals with integer than it is ok, but
If it deals with list than it become false for example list*2 =
listlist, and what I
Hi,
I'm using the following combination of software:
- Pydev Eclipse plugin (pydev 0.8.5)
- eclipse 3.0.1
- windows XP SP1
- pygtk 2.4.1
- GTK 2.6.1 (for windows32 native)
When trying to get a list of possible completions for the 'gtk' import object,
the python interpreter crashes. Happens wit
in the doc for re module
http://python.org/doc/lib/module-re.html
4.2.2 on Matching vs Searching
http://python.org/doc/lib/matching-searching.html
Its mentioning of Perl is irrelevant, since the majority reading that
page will not have expertise with Perl regex. The whole section should
be delete
It occurs to me that webbrowser could be more intelligent on Linux/Unix
systems. Both Gnome and KDE have default web browsers, so one could use
their settings to choose the appropriate browser.
I haven't been able to find a freedesktop common standard for web browser,
however.
Firefox now sets it
Steve Holden wrote:
Peter Otten wrote:
Steve Holden wrote:
This is even stranger: it makes it if I import the module a second time:
[second import seems to succeed]
Maybe you are experiencing some version confusion? What you describe
looks
much like the normal Python 2.3 behaviour (with no impor
Steve Holden <[EMAIL PROTECTED]> writes:
> What *I* would like to know is: who is allowing the import of bsddb.os,
> thereby somehow causing the code of the os library module to be run a
> second time.
I would guess (without actually running the code) that this part is
responsible:
> if
JGCASEY wrote:
The Artist Formerly Known as Kap'n Salty wrote:
Newbie wrote:
I am doing some robotics projects but my main area of interest is
trying out several algorithms for the processing of the stream of
data
coming from the video.
I am wondering what type of camera I should invest in. Either
Leeuw van der, Tim schrieb:
I'm using the following combination of software:
- Pydev Eclipse plugin (pydev 0.8.5)
- eclipse 3.0.1
- windows XP SP1
- pygtk 2.4.1
- GTK 2.6.1 (for windows32 native)
First of all, try tightening the field. Are all of these packages needed to
reproduce the error? Try
Fuzzyman schrieb:
Hmmm... my code will *never* need to run on anything other than CPython
because I use py2exe to turn it into a frozen python distribution. So
if it was always safe in CPython then that would be fine for me.
No one will ever need more than 640K of RAM and BTW, my program will be
r
Nick Coghlan <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > At the interactive python prompt i did/got the following:
> >
> > bash-2.04$ ./python
> > Python 2.4 (#1, Jan 29 2005, 10:31:35)
> > [GCC 2.95.3 20010315 (release)] on linux2
> > Type "help", "cop
Fuzzyman wrote:
> Can your dictionaries contain dictionaries ?
>
> If not you can read the file and cut at the first '}' and the last
'{'.
> The two chunks will then be a single dictionary which can be eval'd.
>
> *However* your example above does not show ',' between all of the
> pairs... but onl
Hi all
Does anybody know why it's not possible to raise Exceptions which are
types (new-style-classes). I know all standard exceptions are classic
classes, but if you make a custom exception which both inherits from a
exception class and a new-style one the it causes a type error when raised.
>
Bernhard Herzog wrote:
Steve Holden <[EMAIL PROTECTED]> writes:
What *I* would like to know is: who is allowing the import of bsddb.os,
thereby somehow causing the code of the os library module to be run a
second time.
I would guess (without actually running the code) that this part is
responsibl
Am Wed, 02 Feb 2005 13:55:24 +0100 schrieb Stefan Behnel:
> Hi!
>
> I'm writing a parser using pyparsing and I would like to augment the
> ParserException tracebacks with information about the actual error line *in
> the parsed text*. Pyparsing provides me with everything I need (parsed line
>
What about the syntax ? Will it have commas in the right place ?
(never, always, or sometimes ? - sometimes is much worse than never or
always).
*damn* - problem is that '{' might appear as one of the values
*So*... read the file in as a list of lines and strip each line.
Dictionaries will alw
In article <[EMAIL PROTECTED]>,
Steve Holden <[EMAIL PROTECTED]> wrote:
> Just to make things simpler, and (;-) to appeal to a wider audience,
> here is a program that doesn't use database at all (it loads the entire
> standard library into a dict) and still shows the error.
>
> What *I* would
Chris> I have Python C extensions that are giving me seg faults that I'd
Chris> like to run valgrind on.
Chris> Can I use valgrind on these through python?? HOW???
Just run Python under valgrind's control. It will automatically take care
of it for you.
Chris> Is it easy or mus
>> Does anybody know of a tool that can tell me all possible exceptions
>> that might occur in each line of code? What I'm hoping to find is
>> something like the following:
Paul> That is impossible. The parameter to the raise statement is a
Paul> class object, which can be
Assumptions:
1) You actually meant to have commas between each key value pair
(which your example DOES NOT have).
2) File can be read into memory
3) All the key and value variables are actually defined in the
local namespace or they are literal values instead of references
to variables.
This works:
Francis> But Skip, I am sure that you can easily find an example by
Francis> yourself. For example, replace "+" by a function that does
Francis> different things depending on its argument type.
Sure. I was thinking of the optimization use of type inferencing,
forgetting the subject o
Doesn't work if '{' or '}' can appear in the values.
Regards,
Fuzzy
http://www.voidspace.org.uk/python/index.shtml
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
System Administrator <[EMAIL PROTECTED]> wrote:
>
>>> Does anybody know of a tool that can tell me all possible exceptions
>>> that might occur in each line of code? What I'm hoping to find is
>>> something like the following:
>
>Paul> That is impos
Replace system exception hook with your on function that gets
called when exception is raised (not fully tested):
#
# Define a function that is called when system exception happens
#
def excepthook(self, type, value, tb):
#
# This function allows the user to redefine what happens if the pro
Andy Dustman wrote:
> #33
> #! /usr/bin/env python
> import MySQLdb
> db=MySQLdb.connect(host='localhost', db='photum_0_6_2', user='root',
> passwd='thkhgfgd')
> c=db.cursor()
> c.execute('select person from persons order by person')
> for (person,) in c: # o
i've noticed that in Python official doc
http://python.org/doc/lib/module-re.html
and also How-To doc
http://www.amk.ca/python/howto/regex/
both mentions the book "Mastering Regular Expressions" by Jeffrey
Friedl.
I suggest it be dropped in both places. The mentioning of this book in
the Perl/Pyt
Hi Jeremy & Robey
Acces_log:
172.16.38.6 - - [01/Feb/2005:17:36:14 -0800] "GET /test.py HTTP/1.1" 404 276
"-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)"
172.16.38.6 - - [01/Feb/2005:17:41:44 -0800] "GET /test/mptest.py/formLogin
HTTP/1.1" 404 293 "-" "Mozilla/4.0 (com
On Wed, 02 Feb 2005 10:28:46 +0100, Christian wrote:
> Hello,
>
> i have an apache 1.3 server with python on debian. Python works fine but
> the scripts wontÂt work.
I know what your problem is.
But first, check your apache error log. Then you will know what your error
is, too.
If you can't
Hello,
Is there any way that I can find the hash value of a class from an
instance?
>>> class A:
... pass
...
>>> a = A()
>>> hash(A)
10782976
>>> hash(a)
12251904
>>>
What I want is a function that returns the value of 'hash(A)':
> a.getHashOfClass()
10782976
Is this possible?
/Joakim
--
On Wed, 02 Feb 2005 02:35:03 -0800, python wrote:
> Each pair in a dictionary is separated by CRLF and in each dictionary
> numbers of pairs can be different.
> I need to read only the the first and the last dictionaries.What is a
> best solution?
> Thanks
> Lad
Who cares about the best solution?
Hello,
Is there any way that I can find the hash value of a class from an
instance?
>>> class A:
... pass
...
>>> a = A()
>>> hash(A)
10782976
>>> hash(a)
12251904
>>>
What I want is a function that returns the value of 'hash(A)':
> a.getHashOfClass()
10782976
Is this possible?
/Joakim
--
Joakim Storck wrote:
> Is there any way that I can find the hash value of a class from an
> instance?
>
You only had to post the question once. It seems a strange thing to want,
but just do:
hash(a.__class__)
--
http://mail.python.org/mailman/listinfo/python-list
Thanks!
Not so strange I think, the hash values of classes will be used as keys
in a dictionary that serve as an object pool.
Sorry about the double posting, I got a 'server error' message the
first time, so I figured it hadn't gone trhough.
/Joakim
--
http://mail.python.org/mailman/listinfo/p
"Xah Lee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i've noticed that in Python official doc
> http://python.org/doc/lib/module-re.html
> and also How-To doc
> http://www.amk.ca/python/howto/regex/
>
> both mentions the book "Mastering Regular Expressions" by Jeffrey
> Friedl.
Grumble <[EMAIL PROTECTED]> wrote:
> Pascal Bourguignon wrote:
>
>> You forgot to mention the coordinates of your secret mountain compound:
>>
>>28 deg 5 min N, 86 deg 58 min E
>
> Mount Everest?
Shhh!
--
Bradd W. Szonye
http://www.szonye.com/bradd
--
http://mail.python.or
Hi all,
I can use this version of gtk and PyGtk to run simple programs. There seems to
be no problem with the code-completion in PythonWin.
I can do: dir(gtk) without problems after importing the gtk module of PyGtk,
when I use idle or console. (Python version for this test: python2.4, python
2
1 - 100 of 250 matches
Mail list logo