Save the date for the 8th annual O'Reilly Open Source Convention, happening
July 24-28, 2006 at the Oregon Convention Center in beautiful Portland,
Oregon.
Call For Participation
--
Submit a proposal-fill out the form at:
PyInstaller 1.1
***
PyInstaller 1.1 has been released! This release has been composed also with
the help of patches provided by the community: many thanks to everybody!
Find the downloads at the usual locations:
http://pyinstaller.hpcf.upr.edu (website)
Greetings,
Can I get a code snippet of how to call a DLL and it's functionalities from
Python?
Thanks for your help.
Best regards,
Anand
--
http://mail.python.org/mailman/listinfo/python-list
Lad wrote:
What editor shall I use if my Python script must contain utf-8
characters?
Also, don't overlook IDLE, the IDE that ships with python. I use it in my work
every day. Once every three months or so I invest a day in looking for a better
free python IDE/editor, and still after 3 years
John Salerno wrote:
I know it comes from the suffix -tuple, which makes me think it's
pronounced as 'toople', but I've seen (at m-w.com) that the first
pronunciation option is 'tuhple'
I went to university in Pittsburgh and work in Washington, DC. I've
only ever heard it as toople.
If I
Anand [EMAIL PROTECTED] wrote:
Can I get a code snippet of how to call a DLL and it's functionalities from
Python?
start here:
http://starship.python.net/crew/theller/ctypes/
(there's no standard mechanism in Python for calling functions in
DLLs, unless they're explicitly designed for
I'm working on writing a web robot (for searching web pages) in Python
so I've been browsing around the web looking for data about building
web robots.
I'm surprised to find that I didn't find much data. Seems like robots
would be kind of a common thing to build. I know there is this: The
Web
Save the date for the 8th annual O'Reilly Open Source Convention, happening
July 24-28, 2006 at the Oregon Convention Center in beautiful Portland,
Oregon.
Call For Participation
--
Submit a proposal-fill out the form at:
[EMAIL PROTECTED]:
Anybody know some good places to go to get information on
building a web robots?
Some pointers:
http://safari.oreilly.com/0596005776
http://www.python.org/doc/2.4.2/lib/module-HTMLParser.html
http://www.crummy.com/software/BeautifulSoup/
slogging_away wrote:
bruno at modulix wrote:
Looks like a memory problem then...
The system I am using has 2GB of memory, (unless you are syaing the
memory is faulty).
Nope, just that I don't know of any system with unlimited memory. BTW,
having 2GB of ram does not mean there are 2GB
HappyHippy wrote:
More of a minor niggle than anything but how would I remove the
aforementioned space?
eg.
strName = 'World'
print 'Hello', strName, ', how are you today?'
Already got an anwser, now just a coding-style suggestion: hungarian
notation is *evil*. And even *more* evil with a
[EMAIL PROTECTED] schrieb:
I'm working on writing a web robot (for searching web pages) in Python
so I've been browsing around the web looking for data about building
web robots.
I'm surprised to find that I didn't find much data. Seems like robots
would be kind of a common thing to build.
Sir, Pls help me to know About undisclosed recipient. How we can sent mails to other like this.Regards, Liya Robert.
What are the most popular cars? Find out at Yahoo! Autos
--
http://mail.python.org/mailman/listinfo/python-list
On Monday 13 February 2006 12:33 am, John J. Lee wrote:
Kevin Walzer [EMAIL PROTECTED] writes:
[...]
Commercial Qt is a little out of my price range.
Commercial *PyQt* (including a license for Qt for use only with PyQt)
is $400 (USD) per developer (plus an extra $300/year if you want
hi
i am currently using the FTP wrapper from
http://cheeseshop.python.org/pypi/ftputil/2.0.3
The documentation states In the current implementation, this doesn't
construct intermediate directories which don't already exist.
i would like to make directories at the remote server whenever the path
dirvine wrote:
Yes I did
I was trying to do something like (pseudo code)
write:
get files in path
for each filename get size, type
create dic called filename assign size:xx,type:y
pickle to file
read:
open pickled file
read dict name and contents (hoping unpickling file gives me
[EMAIL PROTECTED] wrote:
But it turns out he actually had one, which he graciously provided
in response to my observation. If I had kept my trap shut, I wouldn't
have it, would I?
I completely agree, but you could put your questions in
a way that increases your chances of helpful replies...
Problem solved. Used try and except method
--
http://mail.python.org/mailman/listinfo/python-list
mwt wrote:
This code works fine to download files from the web and write them to
the local drive:
import urllib
f = urllib.urlopen(http://www.python.org/blah/blah.zip;)
g = f.read()
file = open(blah.zip, wb)
file.write(g)
file.close()
The process is pretty opaque, however. This
Liyana Robert [EMAIL PROTECTED] writes:
Pls help me to know About undisclosed recipient.
How we can sent mails to other like this.
Use Bcc header instead of To or Cc.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Nogradi [EMAIL PROTECTED] wrote:
Is it possible to pass a python object to a python program as
argument?
Yes - you can pickle it.
http://www.python.org/doc/2.4.2/lib/module-cPickle.html
You can pickle just about anything into a string and unpickle it back
into python objects. You
[EMAIL PROTECTED] wrote:
snip
Can you say paranoid-schizophrenic? I knew you could...
Schizophrenic is more than enough in this case...
--- Heiko.
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber wrote:
On Sun, 12 Feb 2006 23:30:25 -0500, Steve Holden [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
I teach on both sides of the Atlantic, and have learned to draw a mental
breath before trying to pronounce the word router. Americans find the
British
On 12 Feb 2006 17:27:56 -0800, André [EMAIL PROTECTED] wrote:
It's also possible to something like that with wxPython. Try:
import wx
app = wx.PySimpleApp()
dlg = wx.TextEntryDialog(None, 'Enter value', 'Title', '')
if dlg.ShowModal() == wx.ID_OK:
val = dlg.GetValue() # this line
Peter Decker wrote:
It's also possible to something like that with wxPython. Try:
import wx
app = wx.PySimpleApp()
dlg = wx.TextEntryDialog(None, 'Enter value', 'Title', '')
if dlg.ShowModal() == wx.ID_OK:
val = dlg.GetValue() # this line should be indented
dlg.Destroy()
Yeah, I was going to say it's I-66, not Route 66, which has been
replaced in pertainent parts by I-40.
tuh-ple.
--
http://mail.python.org/mailman/listinfo/python-list
On 2/13/06, Andre Roberge [EMAIL PROTECTED] wrote:
While I agree that dabo's version is more Pythonic than wxPython, my
understanding is that dabo is built on top of wxPython.
Yes. You get all the power of wxPython without having to deal with the
C++ style of coding.
There are
other
Thank you all for your helping.
--
http://mail.python.org/mailman/listinfo/python-list
py2exe 0.6.4 released
=
py2exe is a Python distutils extension which converts Python scripts
into executable Windows programs, able to run without requiring a
Python installation. Console and Windows (GUI) applications, Windows
NT services, exe and dll COM servers are
LittlePython wrote:
That is exactly what I was look for .. thx
Surprised to hear that.
As VisualBasic programmer I would expect you to have experience with
ActiveX on Windows, where the best way to go with Python is to reuse all
the ActiveX components and their known user interfaces (i.e.
Alex Martelli wrote:
From this constuct I assume self.sections is a dict, in which case there
may be better way to loop over the values in the dict; but that's an
aside and does not affect your stated problem. Rather, said problem is
already shown in the next couple lines:
Ed Singleton wrote:
How about putting the current tutorial into the wiki and seeing if
people start updating it? I'm not saying it would work, but it might
have interesting effects...
There are abviously a lot of ideas in the air concerning on-line
editing of the new python web site, support
Markus Wankus wrote:
I'm not sure, but I think it is pronounced ménage à trois.
LOL. You guys are hilarious. I think I made the right decision to start
learning Python! :)
--
http://mail.python.org/mailman/listinfo/python-list
Erik Max Francis wrote:
Even in mathematics, a tuple, or formally an n-tuple, makes more sense
to me pronounced the latter if you list out the various pronounciations
for large n, seems me the _uhs_ outweigh the _oos_. (There's quadruple
on one side, but then quintuple, sextuple,
On 2006-02-13, John Salerno [EMAIL PROTECTED] wrote:
Markus Wankus wrote:
I'm not sure, but I think it is pronounced ménage à trois.
LOL. You guys are hilarious. I think I made the right decision
to start learning Python! :)
Of course! What did you expect from devotees of a language
named
Dimitrios Charitatos wrote:
Hello,
I suspect that there is a quite straight forward answer to this, but I
can't find it... I want to import an image and extract a matrix (or array)
from it with elements showing the RGB value of each pixel. But I want to
be able to do this with all types of
PyInstaller 1.1
***
PyInstaller 1.1 has been released! This release has been composed also with
the help of patches provided by the community: many thanks to everybody!
Find the downloads at the usual locations:
http://pyinstaller.hpcf.upr.edu (website)
Using ftplib from Python I am trying to get all files in a particular
directory using ftplib and then send those same files to another ftp
server. I have tried using commands like 'get *' and 'mget *' with no
success.
I am using the following:
srcFtp = FTP(srcHost)
srcFtp.login(srcUser, srcPass)
The Apache Software Foundation and The Apache HTTP Server Project are
pleased to announce the 3.2.7 release of mod_python. Mod_python 3.2.7
is considered a stable release, suitable for production use.
Mod_python is an Apache HTTP Server module that embeds the Python
language interpreter within
I am trying to execute a batch script on a remote computer.
The batch script looks like:
@echo off
start c:\python24\python.exe c:\a_script.py
Here's the setup:
Computer A (my computer), Computer B (the remote computer).
So I map W: to Computer B and then copy the batch script to Computer
B.
Grant Edwards wrote:
On 2006-02-13, John Salerno [EMAIL PROTECTED] wrote:
Markus Wankus wrote:
I'm not sure, but I think it is pronounced ménage à trois.
LOL. You guys are hilarious. I think I made the right decision
to start learning Python! :)
Of course! What did you expect from
PA wrote:
On Feb 13, 2006, at 06:44, [EMAIL PROTECTED] wrote:
And if we use market penetration as measure, Perl seems to be easier
for people ?
Perl: Shell scripts/awk/sed are not enough like programming languages.
Python: Perl is a kludge.
What Languages Fix
Magnus Lycka wrote:
Ed Singleton wrote:
How about putting the current tutorial into the wiki and seeing if
people start updating it? I'm not saying it would work, but it might
have interesting effects...
There are abviously a lot of ideas in the air concerning on-line
editing of the new
In article [EMAIL PROTECTED],
Thomas Heller [EMAIL PROTECTED] wrote:
.
.
.
Usually the bundle=1 option in py2exe can create a single file exe, but it also
allows to have a separate shared library.zip file, which is useful if
QOTW: Dangit! I need to find a less honest programming language. Anyone
have a Perl cookbook handy? ... - Lonnie Princehouse
The pursuit of orthogonality, while admirable, can lead to insanity if
pushed too far. - Steve Holden
One of this week's half-dozen examples of the, Is there a
[py]
| I am trying to execute a batch script on a remote computer.
|
| The batch script looks like:
|
| @echo off
| start c:\python24\python.exe c:\a_script.py
|
|
| Here's the setup:
| Computer A (my computer), Computer B (the remote computer).
|
| So I map W: to Computer B and then copy
Diez B. Roggisch wrote:
Dimitrios Charitatos wrote:
Hello,
I suspect that there is a quite straight forward answer to this, but I
can't find it... I want to import an image and extract a matrix (or array)
from it with elements showing the RGB value of each pixel. But I want to
be able to do
Steve Holden wrote:
No, no, no. The correct pronunciation is tyoople (or, if you're being
lazy, choople). Anything else is wrong, but we English are usually
prepared to forgive foreigners their ignorance :-)
[If I pronounced as badly as I type nobody would ever know what I was
saying].
On 7 Feb 2006 10:02:23 -0800, rumours say that [EMAIL PROTECTED]
[EMAIL PROTECTED] might have written:
_)_
On 7 Feb 2006 10:02:25 -0800, rumours say that [EMAIL PROTECTED]
[EMAIL PROTECTED] might have written:
_)_
You can't beat Steve with a pair of arses, because Steve's hand is
physically
John Salerno wrote:
Erik Max Francis wrote:
Even in mathematics, a tuple, or formally an n-tuple, makes more sense
to me pronounced the latter if you list out the various pronounciations
for large n, seems me the _uhs_ outweigh the _oos_. (There's quadruple
on one side, but then
WMI will work, i can create a new Win32_Process. XML_RCP would be
nice, but probably to much for what i need.
thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 13 Feb 2006 11:03:55 -0500,
Steve Holden [EMAIL PROTECTED] wrote:
What we are talking about here is a Python Language Users' Guide.
I actually started on such a document over the holidays, but have only
described about 3 or 4 statements at this point. However, it's
probably not
QOTW: Dangit! I need to find a less honest programming language. Anyone
have a Perl cookbook handy? ... - Lonnie Princehouse
The pursuit of orthogonality, while admirable, can lead to insanity if
pushed too far. - Steve Holden
One of this week's half-dozen examples of the, Is there a
Or just do the message box.
import CLR.System.Windows.Forms as Forms
Forms.MessageBox.Show(message goes here, Window title goes here)
http://www.zope.org/Members/Brian/PythonNet/
In theory this will also work on a linux system with Mono installed
--
Is there a difference between the 'Numeric' and 'numeric' module?
I have on my system only Numeric... And this has no function like
'from_image'.
I actually didn't check that - I just wanted to point the OP to the
numeric-module(s) available, as he suggested that
The usual way of doing such
On 2006-02-13, John Salerno [EMAIL PROTECTED] wrote:
Grant Edwards wrote:
On 2006-02-13, John Salerno [EMAIL PROTECTED] wrote:
Markus Wankus wrote:
I'm not sure, but I think it is pronounced ménage à trois.
LOL. You guys are hilarious. I think I made the right decision
to start learning
This is technically off-topic, but scite/scinitilla seems to
have a particular connection to the Python community.
I just tried scite for the first time and rather like it. It
uses GTK, which is shared with my desktop (XFCE) so it starts
up fast. It's fairly lean (at least by Emacs/Gnome/KDE
[EMAIL PROTECTED] wrote:
There are now more than 300 tutorials listed at
www.awaretek.com/tutorials.html so one could even imagine a
mega-tutorial using the best-of-breed tutorial for each sub-section,
a la Turbogears ;-)))
We certainly don't need 300 tutorials. :) Pick the best in the
most
Grant Edwards wrote:
On 2006-02-13, John Salerno [EMAIL PROTECTED] wrote:
Grant Edwards wrote:
On 2006-02-13, John Salerno [EMAIL PROTECTED] wrote:
Markus Wankus wrote:
I'm not sure, but I think it is pronounced ménage à trois.
LOL. You guys are hilarious. I think I made the right decision
I have a task that involves knowing when a file has changed. But while
for small files this is an easy enough task, checking the modification
dates, or doing a compare on the contents, I need to be able to do this
for very large files.
Is there anything already available in Python that will
Cameron Laird wrote:
In article [EMAIL PROTECTED],
Thomas Heller [EMAIL PROTECTED] wrote:
.
.
.
Usually the bundle=1 option in py2exe can create a single file exe, but it
also
allows to have a separate shared library.zip
Diez B. Roggisch wrote:
Is there a difference between the 'Numeric' and 'numeric' module?
I have on my system only Numeric... And this has no function like
'from_image'.
I actually didn't check that - I just wanted to point the OP to the
numeric-module(s) available, as he suggested that
On 2006-02-13, Grant Edwards [EMAIL PROTECTED] wrote:
This is technically off-topic, but scite/scinitilla seems to
have a particular connection to the Python community.
I just tried scite for the first time and rather like it. It
uses GTK, which is shared with my desktop (XFCE) so it starts
John Salerno [EMAIL PROTECTED] writes:
Yes, silly question, but it keeps me up at night. :)
I know it comes from the suffix -tuple, which makes me think it's
pronounced as 'toople', but I've seen (at m-w.com) that the first
pronunciation option is 'tuhple', so I wasn't sure. Maybe it's
In the spirit of pointless pessimization and obfuscation I have crushed
something very similar to Alex Martelli's eratosthenes function onto a
single line. It's truly monstrous, but somewhat entertaining [Some
preemptive linebreaks added]:
def short():import itertools as
VSmirk:
I have a task that involves knowing when a file has changed. But while
for small files this is an easy enough task, checking the modification
dates,
Checking the modification time works the same way for large files. Why is
that not good enough?
What's your platform?
--
René Pijlman
Looks like a space is missing before VALUES keyword ?
--
http://mail.python.org/mailman/listinfo/python-list
I have a script that uses utf-8 encoding. Now I would like to send some
data to an application ( on another server) that uses 1250 encoding.
How can I tell the server that the coming data will be in utf-8 code?
I tried this
params='some data'
h = httplib.HTTP(self.host)
h.putheader(Content-type,
Pretty much self explanatry, where are Python modules stored in Linux?
(i.e. in /usr/bin/local, or where?)
--
http://mail.python.org/mailman/listinfo/python-list
what about params='some data'.decode('utf8').encode('1250') ?
--
http://mail.python.org/mailman/listinfo/python-list
/usr/lib/python2.4/site-packages ?
--
http://mail.python.org/mailman/listinfo/python-list
Lol, that was a copy paste error into the post on my part...but the
problem has been fixed. Turns out that there was a string.replace call
somewhere else in the code that replaced all single quotes with empty
strings, which thus caused the singe quotes to disappear! Whoops!
Thanks for the look,
No, not there
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Byte wrote:
Pretty much self explanatry, where are Python modules stored in Linux?
(i.e. in /usr/bin/local, or where?)
it depends on how and where Python is installed. to see where they
are on your install, use
$ python -c import sys; print sys.path
['', '/usr/lib/python24.zip',
Byte wrote:
Pretty much self explanatry, where are Python modules stored in Linux?
(i.e. in /usr/bin/local, or where?)
Depends on how you installed Python (or how your distro package system
installed it). But it's usually in $PREFIX/lib/pythonX.X , with $PREFIX
being one of /usr or /usr/local
Harlin Seritt wrote:
Using ftplib from Python I am trying to get all files in a particular
directory using ftplib and then send those same files to another ftp
server. I have tried using commands like 'get *' and 'mget *' with no
success.
I am using the following:
srcFtp = FTP(srcHost)
[EMAIL PROTECTED]:~$ python
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
They are in one of the directories listed in sys.path, for me this is:
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type help, copyright, credits or license for more information.
import sys
print sys.path
Lad wrote:
I have a script that uses utf-8 encoding. Now I would like to send some
data to an application ( on another server) that uses 1250 encoding.
How can I tell the server that the coming data will be in utf-8 code?
You can't, normally. In theory, you should put
Content-type:
Byte wrote:
No, not there
Sure:
[EMAIL PROTECTED]:~$ ls /usr/lib/python2.4/site-packages
apt debconf.pyNumeric pygtk.py
README
apt_inst.so debconf.pyc Numeric.pth pygtk.pyc
setuptools-0.6a8-py2.4.egg
apt_pkg.so easy-install.pth
Found it in /usr/local/lib/python2.4/site-packages, thanks. Now, how do
i convert a .py program into a module?
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 2006-02-13 at 13:18, MooMaster wrote:
Lol, that was a copy paste error into the post on my part...but the
problem has been fixed. Turns out that there was a string.replace call
somewhere else in the code that replaced all single quotes with empty
strings, which thus caused the singe
On Mon, 2006-02-13 at 13:50, Carsten Haese wrote:
By using parametrized queries, you don't have to worry about any of the
supplied values requiring special treatment due to any quotation marks
or apostrophes that might they might contain.
Add grammar corrections to taste.
-Carsten
--
Byte [EMAIL PROTECTED] wrote:
Found it in /usr/local/lib/python2.4/site-packages, thanks. Now, how do
i convert a .py program into a module?
a .py program is a module (the module's content is what's left when the
program is finished).
to make a useful module, just make sure that it defines
[EMAIL PROTECTED] wrote:
Problem:
You have a list of unknown length, such as this: list =
[X,X,X,O,O,O,O]. You want to extract all and only the X's. You know
the X's are all up front and you know that the item after the last X is
an O, or that the list ends with an X. There are never O's
LOL
a .py program is a module, you can import it:
if it is in the sys.path (import modulename).
if it sits in a directory that is in the sys.path and the directory
also has a __init__.py file (import dirname.modulename / from dirname
import modulname).
if there is a modulename.pth file in the
I'm working primarily on Windows XP, but my solution needs to be cross
platform.
The problem is that I need more than the fact that a file has been
modified. I need to know what has been modified in that file.
I am needing to synchronize the file on a remote folder, and my current
solution,
thanks to the help of this group I moved a tiny step forward. Obviously
it is not possible to resolve name localhost:
Type copyright, credits or license for more information.
import socket
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(localhost, 8080)
Traceback (innermost last):
hy...
if you dont know how to help people here... dont say google it.
groups.google was made to help! not to say google it!
i really dont not what kind of professional you are to say google it!
you are smart boy!
i think your mom has much pride of you!
google it to learn more than say google
VSmirk [EMAIL PROTECTED] writes:
I am needing to synchronize the file on a remote folder, and my current
solution, which simply copies the file if a date comparison or a
content comparison, becomes a bit unmanageable for very large files.
Some of the files I'm working with are hundreds of MB
Hello:
Suppose I write a function that I want to be called
with ONLY keyword argumnts, how do I raise an
exception should the function get called with
what look like position-specfic arguments?
Any help would be appreciated.
Avi Kak
--
I need some help here. When i build using the following jamfile it
moves my build files into the directories specified below except for
the boost_python.dll. What would I add in to make the
boost_python.dll go to the same directory as the rest of the files.
SubDir TOP Dummy;
import python ;
On Mon, 2006-02-13 at 14:13, Avi Kak wrote:
Hello:
Suppose I write a function that I want to be called
with ONLY keyword argumnts, how do I raise an
exception should the function get called with
what look like position-specfic arguments?
Any help would be appreciated.
Avi Kak wrote:
Suppose I write a function that I want to be called
with ONLY keyword argumnts, how do I raise an
exception should the function get called with
what look like position-specfic arguments?
here's one way to do it:
def func(*args, **kw):
... def myrealfunc(a=1, b=2, c=3):
Hi Kent,
many thanks for your help! In the meantime I received my Jython
Essentials book and hope that I have much fewer questions in the near
future.
One last question for this thread. I tried to inherit from a Java class
and override on method. I figured that this approach was nonsense
because
While we're at it... Can someone point me to either an old post, or
documentation about tuple expansion with * ? I recently saw it used
and was shocked as i had no clue what it really did. I didn't know it
could be used outside of function definitions.
On 2/13/06, Fredrik Lundh [EMAIL PROTECTED]
Avi Kak wrote:
Hello:
Suppose I write a function that I want to be called
with ONLY keyword argumnts, how do I raise an
exception should the function get called with
what look like position-specfic arguments?
Any help would be appreciated.
Say you want the signature to be
Buenos dias, amigos!
I have to write _simple_ gui library, for embedding into game. My
first attempt was to use XML: isn't it cute to describe ui in such a
way:
window
titleHello World!/title
image text=nice picture here pos=... src=... /
text opts=...
(some text here)
I agree with you wholeheartedly, but the large files is part of the
business requirements.
Thanks for the link. I'll look into it.
V
--
http://mail.python.org/mailman/listinfo/python-list
Thank U. 10,
i ve got an error messageerror number port or similiar..(i dont
have it now)
its a PCI modem, using COM 4 on Windows 98.what do you say? no se
cómo ha
gracias de nuevo...Pablo.
Diez B. Roggisch ha escrito:
pdt wrote:
Hello, i wanna know how to communicate my python
Andrew Gwozdziewycz wrote:
While we're at it... Can someone point me to either an old post, or
documentation about tuple expansion with * ? I recently saw it used
and was shocked as i had no clue what it really did. I didn't know it
could be used outside of function definitions.
the
1 - 100 of 239 matches
Mail list logo