ANN: Proposals due today, Feb. 13th, for OSCON 2006 (Python 14)

2006-02-13 Thread Kevin Altis
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:

[ANN] PyInstaller 1.1 released

2006-02-13 Thread Giovanni Bajo
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)

How To Call A DLL?

2006-02-13 Thread Anand
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

Re: What editor shall I use?

2006-02-13 Thread Joel Hedlund
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

Re: how do you pronounce 'tuple'?

2006-02-13 Thread [EMAIL PROTECTED]
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

Re: How To Call A DLL?

2006-02-13 Thread Fredrik Lundh
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

Writing a Web Robot in Python

2006-02-13 Thread [EMAIL PROTECTED]
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

ANNOUNCE: Proposals due today, Feb. 13th, for OSCON 2006 (Python 14)

2006-02-13 Thread Kevin Altis
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:

Re: Writing a Web Robot in Python

2006-02-13 Thread Rene Pijlman
[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/

Re: Too Many if Statements?

2006-02-13 Thread bruno at modulix
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

Re: Another n00b: Removing the space in print 'text', var

2006-02-13 Thread bruno at modulix
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

Re: Writing a Web Robot in Python

2006-02-13 Thread WEINHANDL Herbert
[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.

About undisclosed recipient

2006-02-13 Thread Liyana Robert
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

Re: Yet another GUI toolkit question...

2006-02-13 Thread Phil Thompson
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

Question regarding mkdir of ftputil

2006-02-13 Thread s99999999s2003
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

Re: by reference

2006-02-13 Thread Martin P. Hellwig
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

Re: Pulling all n-sized combinations from a list

2006-02-13 Thread Magnus Lycka
[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...

Re: Question regarding mkdir of ftputil

2006-02-13 Thread s99999999s2003
Problem solved. Used try and except method -- http://mail.python.org/mailman/listinfo/python-list

Re: Downloading Large Files -- Feedback?

2006-02-13 Thread Fuzzyman
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

Re: About undisclosed recipient

2006-02-13 Thread Ganesan Rajagopal
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

Re: pythonic exec* spawn*

2006-02-13 Thread Nick Craig-Wood
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

Re: Mental Abuse

2006-02-13 Thread Heiko Wundram
[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

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Steve Holden
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

Re: Python equivilant to msgbox()

2006-02-13 Thread Peter Decker
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

Re: Python equivilant to msgbox()

2006-02-13 Thread Fredrik Lundh
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()

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Ben Wilson
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

Re: Python equivilant to msgbox()

2006-02-13 Thread Peter Decker
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

Re: Netstat in python. Does it's possible?

2006-02-13 Thread billie
Thank you all for your helping. -- http://mail.python.org/mailman/listinfo/python-list

py2exe 0.6.4 released

2006-02-13 Thread Jimmy Retzlaff
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

Re: Python equivilant to msgbox()

2006-02-13 Thread Claudio Grondi
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.

Re: Need a bit of help with a list..

2006-02-13 Thread rh0dium
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:

Re: Rethinking the Python tutorial

2006-02-13 Thread Magnus Lycka
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

Re: how do you pronounce 'tuple'?

2006-02-13 Thread John Salerno
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

Re: how do you pronounce 'tuple'?

2006-02-13 Thread John Salerno
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,

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Grant Edwards
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

Re: Image to numeric array

2006-02-13 Thread Diez B. Roggisch
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

[ANN] PyInstaller 1.1 released

2006-02-13 Thread Giovanni Bajo
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)

FTPlib

2006-02-13 Thread Harlin Seritt
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)

ANNOUNCE: Mod_python 3.2.7

2006-02-13 Thread Gregory (Grisha) Trubetskoy
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

Execute batch script on remote computer

2006-02-13 Thread 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 the batch script to Computer B.

Re: how do you pronounce 'tuple'?

2006-02-13 Thread John Salerno
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

Re: Is python very slow compared to C

2006-02-13 Thread Peter Hansen
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

Re: Rethinking the Python tutorial

2006-02-13 Thread Steve Holden
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

Arcane deployment considerations (was: Single-file executables)

2006-02-13 Thread Cameron Laird
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

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 13)

2006-02-13 Thread Cameron Laird
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

RE: Execute batch script on remote computer

2006-02-13 Thread Tim Golden
[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

Re: Image to numeric array

2006-02-13 Thread Claudio Grondi
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

Re: how do you pronounce 'tuple'?

2006-02-13 Thread John Salerno
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].

Re: python-ldap

2006-02-13 Thread Christos Georgiou
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

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Steve Holden
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

Re: Execute batch script on remote computer

2006-02-13 Thread py
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

Re: Rethinking the Python tutorial

2006-02-13 Thread A.M. Kuchling
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

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 13)

2006-02-13 Thread Cameron Laird
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

Re: Python equivilant to msgbox()

2006-02-13 Thread [EMAIL PROTECTED]
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 --

Re: Image to numeric array

2006-02-13 Thread Diez B. Roggisch
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

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Grant Edwards
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

emacs keybindings for scite/scinitilla?

2006-02-13 Thread Grant Edwards
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

Re: Rethinking the Python tutorial

2006-02-13 Thread Magnus Lycka
[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

Re: how do you pronounce 'tuple'?

2006-02-13 Thread John Salerno
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

hard disk activity

2006-02-13 Thread 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, 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

Re: Arcane deployment considerations

2006-02-13 Thread Thomas Heller
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

Re: Image to numeric array

2006-02-13 Thread Claudio Grondi
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

Re: emacs keybindings for scite/scinitilla?

2006-02-13 Thread Grant Edwards
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

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Sergei Organov
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

Re: Shortest prime number program

2006-02-13 Thread Tim Hochberg
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

Re: hard disk activity

2006-02-13 Thread Rene Pijlman
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

Re: cx_Oracle string problems...

2006-02-13 Thread tooper
Looks like a space is missing before VALUES keyword ? -- http://mail.python.org/mailman/listinfo/python-list

Encoding

2006-02-13 Thread Lad
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,

Location of Python modules

2006-02-13 Thread Byte
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

Re: Encoding

2006-02-13 Thread Szabolcs Nagy
what about params='some data'.decode('utf8').encode('1250') ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Location of Python modules

2006-02-13 Thread Szabolcs Nagy
/usr/lib/python2.4/site-packages ? -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_Oracle string problems...

2006-02-13 Thread MooMaster
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,

Re: Location of Python modules

2006-02-13 Thread Byte
No, not there -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Re: Location of Python modules

2006-02-13 Thread Fredrik Lundh
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',

Re: Location of Python modules

2006-02-13 Thread bruno at modulix
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

Re: FTPlib

2006-02-13 Thread Fredrik Lundh
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)

Re: Location of Python modules

2006-02-13 Thread [EMAIL PROTECTED]
[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

Re: Encoding

2006-02-13 Thread Martin v. Löwis
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:

Re: Location of Python modules

2006-02-13 Thread Martin v. Löwis
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

Re: Location of Python modules

2006-02-13 Thread Byte
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

Re: cx_Oracle string problems...

2006-02-13 Thread Carsten Haese
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

Re: cx_Oracle string problems...

2006-02-13 Thread Carsten Haese
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 --

Re: Location of Python modules

2006-02-13 Thread Fredrik Lundh
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

Re: is there a better way?

2006-02-13 Thread Magnus Lycka
[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

Re: Location of Python modules

2006-02-13 Thread Szabolcs Nagy
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

Re: hard disk activity

2006-02-13 Thread VSmirk
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,

Re: Jython socket typecasting problems

2006-02-13 Thread Mark Fink
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):

Re: python-ldap

2006-02-13 Thread [EMAIL PROTECTED]
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

Re: hard disk activity

2006-02-13 Thread Paul Rubin
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

trapping errors in function call syntax

2006-02-13 Thread Avi Kak
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 --

Bjam Boost Python Build

2006-02-13 Thread timsson
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 ;

Re: trapping errors in function call syntax

2006-02-13 Thread Carsten Haese
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.

Re: trapping errors in function call syntax

2006-02-13 Thread Fredrik Lundh
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):

Re: Jython inherit from Java class

2006-02-13 Thread Mark Fink
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

Re: trapping errors in function call syntax

2006-02-13 Thread Andrew Gwozdziewycz
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]

Re: trapping errors in function call syntax

2006-02-13 Thread Tim Hochberg
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

Pythonic gui format?

2006-02-13 Thread Gregory Petrosyan
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)

Re: hard disk activity

2006-02-13 Thread VSmirk
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

Re: how to...python with winmodem...

2006-02-13 Thread pdt
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

Re: trapping errors in function call syntax

2006-02-13 Thread Fredrik Lundh
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   2   3   >