Thanks Tim and Gerard for recommending karrigell.
I just checked it out. It is indeed a nice package. However, I didn't find
it
easier to learn or use than CherryPy though. I read through CherryPy
tutorials
and have got a good idea how to use it. I also read Karrigell docs. The way
Karrigell
Kenneth McDonald wrote:
The problem I'm having with HTMLParser is simple; I don't seem to be
getting the actual text in the HTML document. I've implemented the
do_data method of HTMLParser.HTMLParser in my HTMLParser subclass, but
it never seems to receive any data. Is there another way to
Hi all,
I am very interesting in the detailed implement of bittorrent and have
read some p2p protocol document, but I want to know more of the
technique implementation. It's time-consuming to reverse-engineering
the code to understand the design intention of it. So my question is:
Is there any
Filipe wrote:
The only reason I still think Pymssql (and therefore, DB-Library) might
be the best option is that, it is the only one I know that is both
cross-platform and free - as in beer and as in freedom. (check, in this
thread, a previous message by Tim Golden)
I have bookmarked this
In [EMAIL PROTECTED], Moore Liu
wrote:
Hi all,
I am very interesting in the detailed implement of bittorrent and have
read some p2p protocol document, but I want to know more of the
technique implementation. It's time-consuming to reverse-engineering
the code to understand the design
Alex Martelli wrote:
Istvan Albert [EMAIL PROTECTED] wrote:
Stéphane Ninin wrote:
Is a lock required in such a case ?
I believe that assignment is atomic and would not need a lock.
Wrong, alas: each assignment *could* cause the dictionary's internal
structures to be reorganized
python-dev Summary for 2006-06-01 through 2006-06-15
.. contents::
[The HTML version of this Summary is available at
http://www.python.org/dev/summary/2006-06-01_2006-06-15]
=
Announcements
=
---
Alex Biddle wrote:
Ah, so separate downloads then. At least now I know.
Ergh... I checked the version of Python my current host is running and its
2.2.
...ergh
This is why you really want a VPS (virtual private server). The cost is
similar to a web host but you get to choose your
In article [EMAIL PROTECTED],
Rob Cowie [EMAIL PROTECTED] wrote:
Just forget the lists...
counters = {0:0, 1:0, 2:0, 3:0, 4:0}
def increment(value):
counters[value] += 1
increment(1)
increment(1)
increment(3)
increment(4)
print counters[0]
0
print counters[1]
2
print coutners[2]
0
print
Alex Martelli wrote:
Wrong, alas: each assignment *could* cause the dictionary's internal
structures to be reorganized (rehashed) and impact another assignment
(or even 'get'-access).
but wont the GIL be locked when the rehash occurs?
Regards
Sreeram
signature.asc
Description: OpenPGP
In article [EMAIL PROTECTED],
dwelch91 [EMAIL PROTECTED] wrote:
I need to detect whether the operating system I am running on (not the
Python version) is 64bit or 32bit. One requirement is that I need to
include support for non-Intel/AMD architectures.
The 2 ways I have thought detecting 64bit
Fredrik Lundh wrote:
the only difference between the libs (*) is that HTMLParser is a bit
stricter
*) the libs referring to htmllib and HTMLParser, not htmllib and sgmllib.
/F
--
http://mail.python.org/mailman/listinfo/python-list
In [EMAIL PROTECTED], K.S.Sreeram
wrote:
Alex Martelli wrote:
Wrong, alas: each assignment *could* cause the dictionary's internal
structures to be reorganized (rehashed) and impact another assignment
(or even 'get'-access).
but wont the GIL be locked when the rehash occurs?
If there is a
Hello,
Pls excuse if you consider this off-topic. Conceptual artists seek
programmers here.
We are authors of Exhibition of Living Managers (MANAGEX,
www.managex.info) which is is global conceptual art project, performed
in world's leading contemporary art centres. Art objects at MANAGEX are
What is the best way to print a graphic image contained within the
canvas oject in Tkinter ruinng under Windows (XP)? The only thing I
found so far was the canvas postscript method...it there a more direct
way?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hey,
I need a tool for python to create dynamic links from a javascript.
Thx,
Spooky
--
http://mail.python.org/mailman/listinfo/python-list
Marc 'BlackJack' Rintsch wrote:
Wrong, alas: each assignment *could* cause the dictionary's internal
structures to be reorganized (rehashed) and impact another assignment
(or even 'get'-access).
but wont the GIL be locked when the rehash occurs?
If there is a GIL then maybe yes. But the
Hey,
For windows there is a object wx.lib.iewin to integrate a browserwindow
into a python-wx-application.
I need a similar object, that runs under linux.
Need help!!!
Thx,
Spooky
--
http://mail.python.org/mailman/listinfo/python-list
h3m4n wrote:
i have a short script that allows users to upload files, but when i try
to check for a valid filesize (using fileitem) i get '-1' i can't find
information about using filesize anywhere. any ideas?
code:
form = cgi.FieldStorage()
fileitem = form[datafile]
print
Alex Martelli wrote:
Wrong, alas: each assignment *could* cause the dictionary's internal
structures to be reorganized (rehashed) and impact another assignment
(or even 'get'-access).
(been thinking about this further...)
Dictionary get/set operations *must* be atomic, because Python makes
hi..
i have the following piece of test code. i'm trying to implement/check out
the follow-link method. i'm just trying to figure out how to get a link from
the page.
i was hoping that the regex would basically get the 1st url link...
any thoughts/comments/ideas as to what i'm doing wrong.
Marc 'BlackJack' Rintsch wrote:
It's not in Jython nor IronPython and maybe not forever in
CPython.
Whether or not a feature is present in Jython or IronPython does not
seem relevant, after all these languages emulate Python, one could
argue that it only means that this emulation is
K.S.Sreeram [EMAIL PROTECTED] wrote:
...
Consider two threads A and B, which are independent except for the fact
that they reside in the same module.
def thread_A() :
global foo
foo = 1
def thread_B() :
global bar
bar = 2
These threads create entries in the same
Istvan Albert [EMAIL PROTECTED] wrote:
Marc 'BlackJack' Rintsch wrote:
It's not in Jython nor IronPython and maybe not forever in
CPython.
Whether or not a feature is present in Jython or IronPython does not
seem relevant, after all these languages emulate Python, one could
Not at
dwelch91 wrote:
I'm trying unsuccessfully to do something in Tk that I though would be
easy.
It is easy.
The basic idea is that my application will consist of a series of modal
dialogs, that are chained together in wizard fashion.
Didn't have time to get into the code you posted. Just think
Alex Martelli wrote:
Well then, feel free to code under such assumptions (as long as you're
not working on any project in which I have any say:-)
Hey, I would *never* write code which depends on such intricate
implementation details! Nonetheless, its good to *know* whats going on
inside. As
Frank Millman wrote:
Filipe wrote:
Try out the suggestions and let us know what happened. I for one will
be very interested.
The last version of ODBTPAPI is 0.1-alpha, last updated 2004-09-25.
Which is a bit scary...
I might try it just the same though.
--
Hi All,
Pydev and Pydev Extensions 1.0.6 have been released
Check http://www.fabioz.com/pydev for details on Pydev Extensions
and http://pydev.sf.net for details on Pydev
Release Highlights in Pydev Extensions:
-
- New Feature:
K.S.Sreeram [EMAIL PROTECTED] wrote:
...
Alex Martelli wrote:
Well then, feel free to code under such assumptions (as long as you're
not working on any project in which I have any say:-)
Hey, I would *never* write code which depends on such intricate
implementation details!
The wx demos contain an embedded browser (integrates an IE window)
example.
spooky wrote:
Hey,
For windows there is a object wx.lib.iewin to integrate a browserwindow
into a python-wx-application.
I need a similar object, that runs under linux.
Need help!!!
Thx,
Spooky
--
The wx demos contain an embedded browser (integrates an IE window)
example.
spooky wrote:
Hey,
For windows there is a object wx.lib.iewin to integrate a browserwindow
into a python-wx-application.
I need a similar object, that runs under linux.
Need help!!!
Thx,
Spooky
--
Try function architecture() from the platform module in Python 2.3 and
2.4. The first item of the returned tuple shows whether the underlying
system is 64-bit capable.
Here is what it returns on RedHat Fedora Core 2 Linux on Opteron:
platform.architecture()
('64bit', 'ELF')
platform.uname()
IE is for Windows...I need something for unix-systems :(
Thx
--
spooky
--
http://mail.python.org/mailman/listinfo/python-list
MrJean1 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Try function architecture() from the platform module in Python 2.3 and
2.4. The first item of the returned tuple shows whether the underlying
system is 64-bit capable.
Here is what it returns on RedHat Fedora Core 2 Linux on
Thanks, Kirk.
I considered the += as only a shorthand notation for the assignment
operator.
Since for lists + is simply a concatetation, I am not sure it x=x+[2]
is creating a brand
new list. Could you refer me to any documentation on this?
Thanks,
Nagy
Kirk McDonald wrote:
nagy wrote:
I do the
On 2006-07-07, Terry Reedy [EMAIL PROTECTED] wrote:
Antoon Pardon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
And if Nested variables are harmfull,
I don't know if anyone said that they were, but Guido obviously does not
think so, or he would not have added them. So skip
Hi Spooky,
Try looking at the wx.HtmlWindow demo - it is cross platform and is
pretty capable.
Thanks,
Davy Mitchell
http://www.latedecember.com/sites/personal/davy/
--
http://mail.python.org/mailman/listinfo/python-list
Jim Segrave wrote:
In article [EMAIL PROTECTED],
dwelch91 [EMAIL PROTECTED] wrote:
I need to detect whether the operating system I am running on (not the
Python version) is 64bit or 32bit. One requirement is that I need to
include support for non-Intel/AMD architectures.
The 2 ways I
I'm running Python 2.4.3 on Windows Vista June CTP. I'm not able to
open any site using the urllib2 and related family of modules
Here's what I get
import urllib2
urllib2.urlopen(http://www.microsoft.com;)
Traceback (most recent call last):
File stdin, line 1, in ?
File
On 2006-07-07, Piet van Oostrum [EMAIL PROTECTED] wrote:
Antoon Pardon [EMAIL PROTECTED] (AP) wrote:
AP On 2006-07-07, Piet van Oostrum [EMAIL PROTECTED] wrote:
Antoon Pardon [EMAIL PROTECTED] (AP) wrote:
AP Could you maybe clarify what problem we are discussing? All I wrote
AP was that with
Looks like x=x+[2] creats a new list to me:
b = [8,5,6]
x = b
x = x + [2]
print b,x
[8, 5, 6] [8, 5, 6, 2]
-Chris
On Sat, Jul 08, 2006 at 11:56:11AM -0700, nagy wrote:
Thanks, Kirk.
I considered the += as only a shorthand notation for the assignment
operator.
Since for lists + is simply a
nagy wrote:
Thanks, Kirk.
I considered the += as only a shorthand notation for the assignment
operator.
Since for lists + is simply a concatetation, I am not sure it x=x+[2]
is creating a brand
new list. Could you refer me to any documentation on this?
Yes:
Hi Folks,
I am trying to scan the lines in the string text:
lines = text.split('\n')
seemed to do the job but has the side effect of stripping the
whitespace. As I am reading Python source in this text and checking
identation this is a bit annoying :-)
How can I stop this happening?
Hey,
Try looking at the wx.HtmlWindow demo
Thank you...I know wx.HtmlWindow but that object can not parse
Javascript code :((
I need a cross-platform object that can parse js-scripts :(
Can someone help me??
Bye,
Spooky
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I am trying to scan the lines in the string text:
lines = text.split('\n')
seemed to do the job but has the side effect of stripping the
whitespace. As I am reading Python source in this text and checking
Just wrote:
a\nb\nc\n.splitlines(True)
['a\n', 'b\n', 'c\n']
Genius - Thanks alot for the quick response !! :-)
Thanks,
Davy Mitchell
The Good Ol' Blog
http://www.latedecember.com/sites/personal/davy/
--
http://mail.python.org/mailman/listinfo/python-list
Hi all:
I was just wondering if there is a way to check (using python
scripting) whether the computer's connectivity is via Dial-up or
LAN/Ethernet adaptor? Is there a way in python to check the status of
all available Ethernet adaptors? If not is there a way to achieve this
by just checking
In article [EMAIL PROTECTED],
jb [EMAIL PROTECTED] wrote:
Hi all:
I was just wondering if there is a way to check (using python
scripting) whether the computer's connectivity is via Dial-up or
LAN/Ethernet adaptor? Is there a way in python to check the status of
all available Ethernet
Try this
fileitem.seek(0, 2) # Seek to the end of the file.
filesize = fileitem.tell() # Get the position of EOF.
fileitem.seek(0) # Reset the file position to the beginning.
thanks for the info. i just had to change it from fileitem to
fileitem.file, e.g. fileitem.file.seek(0, 2), and
Jim wrote:
Is there some easy way to split a line, keeping together double-quoted
strings?
Thank you for the replies.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Istvan Albert [EMAIL PROTECTED] wrote:
Marc 'BlackJack' Rintsch wrote:
It's not in Jython nor IronPython and maybe not forever in
CPython.
Whether or not a feature is present in Jython or IronPython does not
seem relevant, after all these languages emulate Python,
Sriram Krishnan wrote:
I'm running Python 2.4.3 on Windows Vista June CTP. I'm not able to
open any site using the urllib2 and related family of modules
My wil guess is that it is a firewall problem. Perhaps you'll have to
specify that python.exe is trusted.
--
I want to learn python.
I plan to buy a book. I always find printed material more convenient than
reading on-line tutorials.
I don't know PERL or any other scripting language. I only know some BASH
programming. I am looking for a book which will help me get started and
should contain the
I don't know, if I were the genious that made up Python I would not believe
in any bible (small b)
IOANNIS MANOLOUDIS wrote:
I want to learn python.
I plan to buy a book. I always find printed material more convenient than
reading on-line tutorials.
I don't know PERL or any other
Try Learning Python which is part of the O'Reilly series of books
they publish on computer programming. It's a good start. Most public
library systems have copies you can check out, and most larger
bookstores have it. Otherwise there's always Amazon.Com. Welcome to
Python and enjoy!
IOANNIS
Philippe Martin wrote:
I don't know, if I were the genious that made up Python I would not believe
in any bible (small b)
Take it to alt.religion please.
I want to learn python.
I plan to buy a book. I always find printed material more convenient than
reading on-line tutorials.
I had the
In article [EMAIL PROTECTED],
IOANNIS MANOLOUDIS [EMAIL PROTECTED] wrote:
I want to learn python.
I plan to buy a book. I always find printed material more convenient than
reading on-line tutorials.
I don't know PERL or any other scripting language. I only know some BASH
programming. I am looking
I always find printed material more convenient than
reading on-line tutorials.
If you are sure you want a book and not online tutorials, then it's
important that you have many code examples which include both the
statements and the results. You may like Chris Fehily's Python Visual
Quickstart
On Sat, 08 Jul 2006 14:41:52 -1000, IOANNIS MANOLOUDIS
[EMAIL PROTECTED] wrote:
I want to learn python.
I plan to buy a book. I always find printed material more convenient than
reading on-line tutorials.
I don't know PERL or any other scripting language. I only know some BASH
programming.
spooky wrote:
Hey,
Try looking at the wx.HtmlWindow demo
Thank you...I know wx.HtmlWindow but that object can not parse
Javascript code :((
I need a cross-platform object that can parse js-scripts :(
Can someone help me??
Bye,
Spooky
http://wxmozilla.sourceforge.net/ exists
IOANNIS MANOLOUDIS [EMAIL PROTECTED] writes:
I plan to buy a book. I always find printed material more convenient than
reading on-line tutorials.
Why not print out the on-line tutorial and read the hardcopy?
--
http://mail.python.org/mailman/listinfo/python-list
I've finally figured out the basics of OOP; I've created a basic character
creation class for my game and it works reasonably well. Now that I'm
trying to build a subclass that has methods to determine the rank of a
character but I keep getting errors.
I want to redefine some attributes
There have been lots of recommendations for the O'Reilly book, which is
a good one. However, I would recommend Beginning Python by Magnus Lie
Hetland. All I knew before starting Python was Mathematica, and this
book was very helpful. It may seem to start out slow, but I've found
that I'm going
Jake Emerson [EMAIL PROTECTED] wrote:
There have been lots of recommendations for the O'Reilly book, which is
a good one. However, I would recommend Beginning Python by Magnus Lie
Hetland. All I knew before starting Python was Mathematica, and this
book was very helpful. It may seem to start
hi...
i have the following section of test code where i'm trying to get the
attribute of a frame
frame src=
i'm trying to print/get the src value. the xpath query that i have displays
the src attribute in the Xpather/Firefox plugin. however, i can't quite
figure out how to get the
dear python ,
as a result of the following posting http://mail.python.org/pipermail/python-list/2006-January/318387.html
as well as this posting
http://mail.python.org/pipermail/python-list/2006-January/318938.html
we are receiving emails from people regarding services and websites we have
I have browsed the following links
1) http://peak.telecommunity.com/DevCenter/EasyInstall
2) When Python *Eggs* better than Python *distutils*?? What's Eggs?
(http://tinyurl.com/m8dyd)
But I am still not clear what to do with an .egg file. For example, if
I have a basic Python installation
Suppose a C extension locally built an array of PyObject* 's as
follows...
my_array = malloc(n * sizeof(PyObject*));
for (i = 0; i n; i++) {
my_array[i] = PyList_New(0);
}
Q1: Must I do a Py_DECREF(my_array[i]) on all elements
before exiting this C extension function? (What if
Simon Forman [EMAIL PROTECTED] wrote:
Just an idea, but if you're sure that
/usr/lib/python2.4/lib-dynload/_tkinter.so exists, check it's
permissions and the permissions of /usr/lib/python2.4/lib-dynload/
Also run ldd on it - you could be missing a library
eg
$ ldd
crystalattice wrote:
I've finally figured out the basics of OOP; I've created a basic character
creation class for my game and it works reasonably well. Now that I'm
trying to build a subclass that has methods to determine the rank of a
character but I keep getting errors.
I want to redefine
Bugs item #1514451, was opened at 2006-06-29 09:42
Message generated for change (Comment added) made by greg
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1514451group_id=5470
Please note that this message will contain a full copy of the comment thread,
Feature Requests item #1506340, was opened at 2006-06-14 14:14
Message generated for change (Settings changed) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=355470aid=1506340group_id=5470
Please note that this message will contain a full copy of
Feature Requests item #1399936, was opened at 2006-01-08 13:50
Message generated for change (Settings changed) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=355470aid=1399936group_id=5470
Please note that this message will contain a full copy of
Bugs item #1519452, was opened at 2006-07-09 01:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1519452group_id=5470
Please note that this message will contain a full copy of
Bugs item #1519452, was opened at 2006-07-09 01:57
Message generated for change (Settings changed) made by shmengie
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1519452group_id=5470
Please note that this message will contain a full copy of the comment
75 matches
Mail list logo