Frank Millman wrote:
> 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?
>>Thanks
I read almost every published book about Python and I found Magnus'
"Beginning Python" the best book to start with. As Alex said it is
particularly appreciated by those who like learning by examples and by "try
and error": it is actually the opposite to what Alex believed as "Beginning
Python" is m
I got the answers myself. Thanks to http://tinyurl.com/ld2c9. With just
basic installation of Python on Win32 (i.e.
http://www.python.org/ftp/python/2.4.3/python-2.4.3.msi) it is possible
to install .egg files (Python Eggs).
1) download http://peak.telecommunity.com/dist/ez_setup.py
2) run ez_setu
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?
> Thanks,
> Nagy
My habit is to
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 "re
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 /usr/lib/python2.4/
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
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
(http:/
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 ha
hi...
i have the following section of test code where i'm trying to get the
attribute of a frame
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 underlying value in
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
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 ba
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 fr
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
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
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
> progra
>> 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
Quickstar
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
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 t
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 MANO
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 scri
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 foundation
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.
--
http://mail.python.org/mailm
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 em
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
> 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),
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 E
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 som
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
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 che
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
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? Does
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:
http://docs.python.org/ref/
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 list
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 discussi
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 "", line 1, in ?
File "D:\python24\li
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.
>>
>> T
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
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 the
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 t
"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 Li
IE is for Windows...I need something for unix-systems :(
Thx
--
spooky
--
http://mail.python.org/mailman/listinfo/python-list
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.unam
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
--
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! No
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.
--
http://mail.python.org/mailman/l
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: Sh
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 th
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 thi
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
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
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 incomplet
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.
than
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
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 str
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
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.
Hey,
I need a tool for python to create dynamic links from a javascript.
Thx,
Spooky
--
http://mail.python.org/mailman/listinfo/python-list
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
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
re
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
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.
--
http://mail.python.org/mailman/listinfo/python-list
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 detecti
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 di
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
>
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 y
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
=
---
Pyth
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
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 desig
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
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 we
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
73 matches
Mail list logo