Re: Making posts to an ASP.NET webform.

2006-10-04 Thread Bernard
Bernard wrote: > Gabriel Genellina wrote: > > At Monday 2/10/2006 13:05, Bernard wrote: > > > > > > > Has anyone tried what I'm doing? and if you tried how have you > > > > > succeeded getting the data back after the post action? > > > &g

Re: extract certain values from file with re

2006-10-06 Thread Bernard
Hi Fabian, I'm still a youngster in Python but I think I can help with the "extracting data from the log file" part. As I'm seeing it right now, the only character separating the numbers below is the space character. You could try splitting all the lines by that character starting from the NO Colum

Re: How to share session with IE

2006-10-10 Thread Bernard
useful module : http://wwwsearch.sourceforge.net/mechanize/ The documentation is pretty clear for an initiated python programmer. If it's not your case, I'd recommend to read some ebooks on the python language first to get use to it. Bernard zdp wrote: > Hello! > > I n

Re: Format a number as currency! I can't find any help on this simple problem.

2006-10-10 Thread Bernard
>>> import locale >>> locale.setlocale(locale.LC_ALL, 'English_United States.1252') 'English_United States.1252' >>> conv = locale.localeconv() >>> x = 1234567.8 >>> locale.format("%d", x, grouping=True) '1,234,567' >>> locale.format("%s%.*f", (conv['currency_symbol'], conv['int_frac_digits'], >>>

Re: error handling

2006-10-11 Thread Bernard
Hi Fulvio, I often use this try except to find out about what type of errors might happen in my code: I use it when I really don't know what might happen. try: # do something except: print "Unexpected error:", sys.exc_info()[0] continue once it catches an error, just take a good look

Re: error handling

2006-10-11 Thread Bernard
I just found this webpage showing the most common exceptions: http://pydoc.org/1.5.2/exceptions.html I hope this can help in some way. Fulvio wrote: > *** > Your mail has been scanned by InterScan MSS. > *** > > > Hello there, > > Simple question : how do

Re: error handling

2006-10-12 Thread Bernard
lol you are so right! I didn't even notice this was the 1.5.2 version! Gabriel Genellina wrote: > At Wednesday 11/10/2006 16:16, Bernard wrote: > > >I just found this webpage showing the most common exceptions: > >http://pydoc.org/1.5.2/exceptions.html > >

Re: Click and Drag Functionality in Web Apps with Python

2006-10-12 Thread Bernard
pt to create such effects. Bernard Wijaya Edward wrote: > Hi, > > Some recent webapps like Kiko <http://www.kiko.com/> , Google's gadget > <http://www.google.com/ig/directory?hl=en> , and spreadsheets > <http://spreadsheets.google.com> to name a few, >

Re: Best IDE?

2006-10-13 Thread Bernard
IDE : SPE (Stani's python editor) : http://stani.be/python/spe/blog/ Why?: because this IDE is not complicated. it ships with a debugger, a gui designer, a source code checker and a regex console. Like: obviously everything Hate: sometimes it doesn't start on windows 2000 Platform: Windows, Linux,

Re: Best IDE?

2006-10-13 Thread Bernard
hey thanks limodou, I'm trying it out right now and it works pretty well! SPE has been crashing often lately so count on me to use it frequently. Bernard limodou wrote: > On 10/13/06, Theerasak Photha <[EMAIL PROTECTED]> wrote: > > On 13 Oct 2006 07:37:07 -0700, Berna

Re: ANN: SPE 0.8.3.c Python IDE editor

2006-10-30 Thread Bernard
thanks Stani! SPE - Stani's Python Editor wrote: > This is a maintenance release (mostly bug fixing) to prove that SPE is > alive and well! In case you are using wxPython2.7 you'll need to > upgrade to this release. Submitted patches will be reviewed and > included if approved for next release. Th

Re: WebScraping

2006-11-06 Thread Bernard
yup yup BeautifulSoup is the way to go. what would you like to scrape by the way? Graham Feeley wrote: > Can someone steer me to scripts / modules etc on webscraping please??? > Ultimately I would like someone to write a script for me. > However i am still searching for documentation on this subj

Re: substring search without using built in utils

2006-11-09 Thread Bernard
do your homework and use regexes! but the find() and in() function works great for normal strings...why don't you want to use them? zeal elite a écrit : > Hi, > > I am looking for substring search python program without using the built in > funtions like find, or 'in'. > > Appreciate it. Thanks i

Re: HTML Parsing and Indexing

2006-11-13 Thread Bernard
a combination of urllib, urlib2 and BeautifulSoup should do it. Read BeautifulSoup's documentation to know how to browse through the DOM. [EMAIL PROTECTED] a écrit : > Hi All, > > I am involved in one project which tends to collect news > information published on selected, known web sites int

Making posts to an ASP.NET webform.

2006-10-02 Thread Bernard
hiya everyone, I've made this little webcrawler using BeautifulSoup, urllib and urllib2. I've been encountering ASP.NET Forms recently and I can't seem to make a proper post to some of them. My post function has been doing great until this particular website. Here's some explanations first so that

Re: Making posts to an ASP.NET webform.

2006-10-02 Thread Bernard
Max M wrote: > Bernard skrev: > > > Has anyone tried what I'm doing? and if you tried how have you > > succeeded getting the data back after the post action? > > Most likely you get assigned a cookie that you then need to return. > > Try the cookielib which a

Re: Making posts to an ASP.NET webform.

2006-10-04 Thread Bernard
Gabriel Genellina wrote: > At Monday 2/10/2006 13:05, Bernard wrote: > > > > > Has anyone tried what I'm doing? and if you tried how have you > > > > succeeded getting the data back after the post action? > > Use a packet sniffer or something to look at

Re: SPE (Stani's Python Editor) web site?

2006-11-28 Thread Bernard
I can send you the latest tar.gz ( SPE-0.8.3.c-wx2.6.1.0.tar ) file if you want it :) Bernard John DeRosa wrote: > SPE's site (http://pythonide.stani.be/) has been inaccessible to me > for at least a day. Can anyone else get to it? > > I looked on Google and didn't see

Re: please provide urls for some python success stories.

2006-12-04 Thread Bernard
http://pythonology.org/success this should be enough...but why don't you write a solid app in python and show it to them? Seeing is believing. Bernard krishnakant Mane a écrit : > hello all. > actually I have been recently appointed as a technology consulltent at > a huge company

Re: SPE (Stani's Python Editor) web site?

2006-12-04 Thread Bernard
yes sir should I send them to you? John DeRosa a écrit : > On 28 Nov 2006 13:16:41 -0800, "Bernard" <[EMAIL PROTECTED]> > wrote: > > > > >I can send you the latest tar.gz ( SPE-0.8.3.c-wx2.6.1.0.tar ) file if > >you want it :) > > I'm l

Re: need guidance on sending emails with attachment with python.

2006-12-11 Thread Bernard
here's the function I've been using for while :P import smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email.Utils import COMMASPACE, formatdate from email import Encoders def sendMail(arrRecipients, sender, subje

Re: spidering script

2007-01-19 Thread Bernard
4 easy steps to get the links: 1. Download BeautifulSoup and import it in your script file. 2. Use urllib2 to download the html of the url. 3. mash the html using BeautifulSoup 4. [code] for tag in BeautifulSoupisedHTML.findAll('a'): print tag [/code] David Waizer a écrit : > Hello.. > >

Re: Arrays

2007-11-12 Thread Bernard
On 12 nov, 20:19, "Gordon C" <[EMAIL PROTECTED]> wrote: > Absolute newbie here. In spite of the Python Software Foundation tutorial's > (http://www.python.org/doc/current/tut/tut.html) use of the array > declaration > array(type[,initializer]), the Python interpreter does NOT accept the word > ar

Re: Python web frameworks

2007-11-20 Thread Bernard
On 20 nov, 07:19, joe jacob <[EMAIL PROTECTED]> wrote: > There are a lot of web frameworks for python like django, mod_python, > spyce, turbo gears, Zope, Cherrypy etc. Which one is the best in terms > of performance and ease of study. I'm making web apps with CherryPy at work and it's quite good.

sending a handmade SOAP request

2008-01-31 Thread Bernard
Hey y'all, Is there a way to POST a handmade SOAP request *without* using any libraries like SOAPpy? I've been having some communication trouble with a server using the new wse3 (http://www.microsoft.com/Downloads/ details.aspx? familyid=018A09FD-3A74-43C5-8EC1-8D789091255D&displaylang=en). they

Re: sending a handmade SOAP request

2008-01-31 Thread Bernard
On 31 jan, 15:23, Van Gale <[EMAIL PROTECTED]> wrote: > Yes, it's quite easy to SOAP by hand. > > I use Oren Tirosh's ElementBuilder class (on top of lxml instead of > ElementTree) to build the SOAP request and the xpath capabilities in lxml > to pull out the data I need from the response. > > http

Re: Getting Python to fork?

2008-02-04 Thread Bernard
On 3 fév, 21:52, Gilles Ganault <[EMAIL PROTECTED]> wrote: > Hello > > I need to launch a Python script, and fork it so that the calling > script can resume with the next step will the Python script keeps > running. > > I tried those two, but they don't work, as the calling script is stuck

Re: (websearch) script ?

2008-02-04 Thread Bernard
On 4 fév, 17:17, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > Being very satisfied with Python as a general program language, > and having troubles with a number of PHP scripts, moving to another > provider, > I wanted to replace the PHP scripts with Python Scripts. > > The most important o

Re: Suggestions for structure of HTML-generating app

2008-02-05 Thread Bernard
On 5 fév, 10:09, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > This isn't a strictly Python question but I wonder if someone could > give me some clues here. I've been writing a number of stand-alone > apps that use CherryPy as an embedded web server for displaying > processed data and

Re: Traversing python datatypes via http

2008-02-05 Thread Bernard
On 5 fév, 18:10, Mark <[EMAIL PROTECTED]> wrote: > Is it possible to traverse say python lists via http:// > > say there is a list in the memory > > can we traverse the list using list/next list/prev list/first list/last > > is there a pythonic library to do that? > > thanks I'm not sure I totally

Re: most loved template engine on python is?

2008-02-24 Thread Bernard
I've been using Cheetah Template for a year now and loved every bit of it. There's plenty of well written documentation[1] files as well so that you may learn it quick. [1]: http://www.cheetahtemplate.org/learn.html On 24 fév, 14:01, Tamer Higazi <[EMAIL PROTECTED]> wrote: > Hi people! > After de

Re: Looking for very light weight template library (not framework)

2008-03-06 Thread Bernard
Cheetah! Cheetah! Cheetah! On 6 mar, 20:56, "Malcolm Greene" <[EMAIL PROTECTED]> wrote: > New to Python and looking for a template library that allows Python > expressions embedded in strings to be evaluated in place. In other words > something more powerful than the basic "%(variable)s" or "$vari

Re: Edit and continue for debugging?

2008-03-07 Thread Bernard
As Jonathan says. :) I had a lot of fun learning how to plug doctests[1] into my python web apps and now I'm just adding them automatically as I create classes and functions. Those tests tidbits says so much more than a paragraph of comments. [1] : http://docs.python.org/lib/module-doctest.html

Re: identifying and parsing string in text file

2008-03-08 Thread Bernard
Hey Brian, It seems the text you are trying to parse is similar to XML/HTML. So I'd use BeautifulSoup[1] if I were you :) here's a sample code for your scraping case: from BeautifulSoup import BeautifulSoup # assume the s variable has your text s = "whatever xml or html here" # turn it into a

Re: frequency count or number of occurences of a number in an array

2008-03-12 Thread Bernard
Hey Larry, that one is fairly easy: >>> from array import array >>> array('i', [1, 2, 3, 4, 5, 1, 2]) >>> def count(x, arr): cpt = 0 # declare a counter variable for el in arr: # for each element in the array if el == x: # when it is equal to the 'x' value

Re: frequency count or number of occurences of a number in an array

2008-03-13 Thread Bernard
d'oh! On 12 mar, 07:58, John Machin <[EMAIL PROTECTED]> wrote: > On Mar 12, 10:29 pm, Bernard <[EMAIL PROTECTED]> wrote: > > > > > Hey Larry, > > > that one is fairly easy: > > > >>> from array import array > > >>> array

Re: simple web-server

2008-03-28 Thread Bernard
Did you take a look at web.py? That one looks terribly small and efficient :) We use CherryPy coupled with compiled Cheetah Templates for every web server based projects at my workplace and we've been really satisfied with it so far. On 28 mar, 07:53, "Pavol Murin" <[EMAIL PROTECTED]> wrote: > he

Re: matching patterns after regex?

2009-08-12 Thread Bernard
"NORTHBOUNDINGCOORDINATE" and printed the > decimal number before it hit the next string > "NORTHBOUNDINGCOORDINATE". But I am not sure how to do this. any > suggestions would be appreciated. > > Many thanks > > Martin Hey Martin, here's a regex I've just tested : (\w+COORDINATE).*\s+VALUE\s+=\s([\d\. \w-]+) the first match corresponds to the whateverBOUNDINGCOORDINATE and the second match is the value. please provide some more entries if you'd like me to test my regex some more :) cheers Bernard -- http://mail.python.org/mailman/listinfo/python-list

Re: matching patterns after regex?

2009-08-12 Thread Bernard
On 12 août, 12:43, Martin wrote: > On Aug 12, 1:42 pm, Martin wrote: > > > > > > > On Aug 12, 1:23 pm, Steven D'Aprano > > cybersource.com.au> wrote: > > > On Wed, 12 Aug 2009 05:12:22 -0700, Martin wrote: > > > > I tried > > > > > re.findall((\w+COORDINATE).*\s+VALUE\s+=\s([\d\.\w-]+),s) > > >

str.replace() when str contains \

2022-10-29 Thread Bernard LEDRU
string contains the escape character. Consider : a="H:\2023"; print(a.replace("\\","/")) H:3 a="H:\a2023"; print(a.replace("\\","/")) H:2023 a="H:\_2023"; print(a.replace("\\","/")) H:/_2023 Best regards, Bernard LEDRU -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Oracle 9i client for Linux

2005-11-29 Thread Bernard Delmée
download the smallish "sdk" if you want to compile client code (e.g. cx_oracle - highly recommended!) Hope this helps, Bernard. -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Oracle 9i client for Linux

2005-11-30 Thread Bernard Delmée
er setup.py. cx_oracle has a support list, see http://sourceforge.net/projects/cx-oracle/ Cheers, Bernard. -- http://mail.python.org/mailman/listinfo/python-list

float default formatting

2005-03-24 Thread Bernard Delmée
Is there a simple way to modify the default sprintf mask used for floats ? (eg something like sys.float_mask = '%.2f') I've tried assigning to float.__dict__[ '__str__' ], but that's apparently not allowed. -- http://mail.python.org/mailman/listinfo/python-list

Re: float default formatting

2005-03-26 Thread Bernard Delmée
Are you trying to do currency? There are better ways, using the locale methods. No, just dumping some data structures and I'd rather not check every item's type and format floats explicitly. I was hoping the sprintf mask float's __str__ probably uses was somehow exposed and could be altered. -- ht

Re: oracle interface

2005-04-05 Thread Bernard Delmée
We're so satisfied with cx_Oracle (HP-UX & Win32) that we have not even bothered checking the other ones. Highly recommended. -- http://mail.python.org/mailman/listinfo/python-list

some sort of permutations...

2005-04-11 Thread Bernard A.
hello, i'm looking for a way to have all possible length fixed n-uples from a list, i think generators can help, but was not able to do it myself, maybe some one could point me out to an idea to do it ? for example, from : l = [0, 1, 2, 3, 4] and searching for n-uples of 3, i should produce : (

inner sublist positions ?

2005-04-20 Thread Bernard A.
hello, while trying to play with generator, i was looking for an idea to get the position of a inner list inside another one, here is my first idea : - first find position of first inner element, - and then see if the slice starting from here is equal to the inner -> >>> def subPositions(alist,

install 3.4.3 or 3.5.0a4 -immediate fail

2015-05-17 Thread Bernard Baillargeon
Win 8.1pro 64b Both/either of the 64b versions fail on "idle", "python" with 'no encodings' module error. It is there. install had set the path to include install dir & the \scripts subdir. Just uninstalled, will have to try later. Been working this -googling the many

3.5 64b windows

2015-11-23 Thread Bernard Baillargeon
I'd just installed py3.5 most recent (downloaded, installed 11/23/15) and when starting via the windows start (win 8.1pro) shortcut, I always get this error. I'd navigated to the program directory (it installed in C:\Users\my-ID\AppData\Local\Programs\Python\Python35) and started the python.exe an

mail attachment with non-ascii name

2005-12-11 Thread Bernard Delmée
y 'somefile.zip' ? I have looked into email.Utils and codecs, but cannot find what should work. TIA, Bernard. -- http://mail.python.org/mailman/listinfo/python-list

Re: mail attachment with non-ascii name

2005-12-12 Thread Bernard Delmée
Thank you Neil, that is what I needed. B. Neil Hodgson wrote: > > >>> import email.Header > >>> x = '=?iso-8859-1?q?somefile=2ezip?=' > >>> email.Header.decode_header(x) > [('somefile.zip', 'iso-8859-1')] > >Neil -- http://mail.python.org/mailman/listinfo/python-list

Testing MySQLdb connection object

2006-01-09 Thread Bernard Lebel
27;m not sure how to interpret. Any suggestion is welcomed. Thanks Bernard -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb - Query/fetch don't return result when it *theorically* should

2006-01-18 Thread Bernard Lebel
transaction management module - fcJob has a function called readyGetJob(), wich is at the origin of the MySQL query. The actual query being used is located on line 202. The sql file is used to create the database Thanks for any help, let me know if you need more details Bernard -- http://mail.pyth

Re: MySQLdb - Query/fetch don't return result when it *theorically* should

2006-01-18 Thread Bernard Lebel
Oops, sorry: link to sources http://www.bernardlebel.com/scripts/nonxsi/help/ Thanks again Bernard On 1/18/06, Bernard Lebel <[EMAIL PROTECTED]> wrote: > Hello, > > I'm stumbled at a serious problem, and quite frankly getting > desparate. This is a rather long-winded

Re: MySQLdb - Query/fetch don't return result when it *theorically* should

2006-01-18 Thread Bernard Lebel
Btw I have tried running much simpler versions of the query, like "SELECT * FROM TB_CURRENT_JOBS WHERE Status = 'Pending'", but yet again I get the same results. *sigh* Bernard On 1/18/06, Bernard Lebel <[EMAIL PROTECTED]> wrote: > Oops, sorry: link to sources

Re: MySQLdb - Query/fetch don't return result when it *theorically* should

2006-01-18 Thread Bernard Lebel
een knocking my head on that for almost 3 full days :-( Bernard On 1/18/06, Bernard Lebel <[EMAIL PROTECTED]> wrote: > Btw I have tried running much simpler versions of the query, like > "SELECT * FROM TB_CURRENT_JOBS WHERE Status = 'Pending'", but yet >

Re: MySQLdb - Query/fetch don't return result when it *theorically* should

2006-01-18 Thread Bernard Lebel
Hi Alan, On 1/18/06, Alan Franzoni <[EMAIL PROTECTED]> wrote: > Il Wed, 18 Jan 2006 14:39:09 -0500, Bernard Lebel ha scritto: > 1) It would be great if you didn't post four messages in less than an hour > ^_^ Yeah I know :-) But like I said, I've been stuck for 3 days o

Re: MySQLdb - Query/fetch don't return result when it *theorically* should

2006-01-18 Thread Bernard Lebel
always got proper fetch results. Thanks Bernard On 1/18/06, Stephen Prinster <[EMAIL PROTECTED]> wrote: > Have you tried doing a "connection.commit()" after each query attempt? > I believe mysqldb also has a connection.autocommit feature. > -- > http://mail.python.org/m

Re: MySQLdb - Query/fetch don't return result when it *theorically* should

2006-01-19 Thread Bernard Lebel
Thanks a lot for the explanations Alan. That really helped. Bernard On 1/19/06, Alan Franzoni <[EMAIL PROTECTED]> wrote: > Bernard Lebel on comp.lang.python said: > > > I'm absolutely flabbergasted. > > As I told you, i think this is related to the isolation le

Problem with sub-classing

2006-07-17 Thread Bernard Lebel
Hello, I have this problem when subclassing classes where I get this error: Traceback (most recent call last): File "

Re: Problem with sub-classing

2006-07-17 Thread Bernard Lebel
? Thanks Bernard On 7/17/06, Peter Otten <[EMAIL PROTECTED]> wrote: > Bernard Lebel wrote: > > > Hello, > > > > I have this problem when subclassing classes where I get this error: > > > > Traceback (most recent call last): > > > > File "

Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Bernard Lebel
use pyd and dll for Python stuff. Is there any chance to disable Python from looking at these? Perhaps a flag we can change in Python? Or would it be doable by recompiling the sources? Any advice is welcomed Bernard -- http://mail.python.org/mailman/listinfo/python-list

Re: Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Bernard Lebel
waste less time waiting after the startup. Thanks Bernard On 10/19/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > You can't; part of the standard library are .pyd/.dll files. > Those existence checks should be fairly fast - why are you worried about them? -- http://mail.python.org/mailman/listinfo/python-list

Re: Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Bernard Lebel
s? In locations were you expect not to have such files for example? Thanks Bernard On 10/19/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Thursday 19/10/2006 22:38, Bernard Lebel wrote: > > >That's because I'm using Python through another application

Re: cx_Oracle and NCLOBs

2006-11-09 Thread Bernard Delmée
Sorry I have no direct answer for you, but suspect you should post to the cx_Oracle group. Check the sourceforge project page. It is also conveniently mirrored at news.gmane.org. -- http://mail.python.org/mailman/listinfo/python-list

Re: Running Python scripts under a different user

2006-05-29 Thread Bernard Lebel
Thanks Laszlo, I'll check it out. Bernard On 5/29/06, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > > >> > >> From what you wrote, I think that you need to change architecture. You > >> should write your own service rather than write tricky program

Tkinter: select multiple entries in Listbox widget?

2006-06-01 Thread Bernard Lebel
Hello, Is there an option or a way to allow the selection of multiple entries in the Listbox widget? I could not find any, and would like to allow the end user to select multiple entries. Thanks Bernard -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: select multiple entries in Listbox widget?

2006-06-01 Thread Bernard Lebel
Oh, thanks a lot Rob. Bernard On 6/1/06, Rob Williscroft <[EMAIL PROTECTED]> wrote: > Bernard Lebel wrote in news:mailman.6413.1149178158.27775.python- > [EMAIL PROTECTED] in comp.lang.python: > > > Hello, > > > > Is there an option or a way to allow the sel

Little question about Tkiner: window focus

2006-06-05 Thread Bernard Lebel
ave any effect. I'm using Python 2.4 on Windows XP Pro SP1. Thanks Bernard -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI Program Error

2006-06-05 Thread Bernard Lebel
On 6/5/06, John Salerno <[EMAIL PROTECTED]> wrote: > What is dir(), btw? Is it a class for creating the application? [Bernard] In your Python documentation, dir() is described in the built-in functions (section 2.1) as well as the tutorial, in the "Modules" section (chapter

Re: Very nice python IDE (windows only)

2006-06-07 Thread Bernard Lebel
ories is done with a transition effect that drives me nuts Bernard On 7 Jun 2006 10:38:00 -0700, sam <[EMAIL PROTECTED]> wrote: > Very interesting, I have downloaded it,and I like what I see. > > ago wrote: > > I have just discovered Python Scripter by Kiriakos Vla

Creating an executable installer on Windows

2006-08-25 Thread Bernard Lebel
r answers a few questions, click OK, and then everything is there. Thanks Bernard -- http://mail.python.org/mailman/listinfo/python-list

Re: Restricting import file lookup for pyd, dll, ...

2006-12-11 Thread Bernard Lebel
"that don't make sense"). [Bernard] I customized the PYTHONPATH using a pth file. The pth file contains this: \\Linuxserver\ANIMATION\XSI\WORKGROUP_ANIMATION\Data\Scripts \\Linuxserver\ANIMATION\DB\MT\MT_WORKGROUP\Data\Scripts \\Linuxserver\ANIMATION\DB\TS\TS_WORKGROUP\Data\Scripts \\L

Re: Restricting import file lookup for pyd, dll, ...

2006-12-11 Thread Bernard Lebel
Oops, sorry for the inconsistency. The pth file rather looks like this: d:\bernard\work\workgroups\workgroup_animation\data\scripts d:\bernard\work\workgroups\mt_workgroup\data\scripts d:\bernard\work\workgroups\ts_workgroup\data\scripts \\Linuxserver\ANIMATION\FARM\PYTHON\RELEASE c:\users\blebel

Re: get output of cmd-line command under MS windows

2006-02-08 Thread Bernard Lebel
27;No more line from pipe, exit.' break Cheers Bernard On 2/8/06, calmar <[EMAIL PROTECTED]> wrote: > Hi all, > > unfotunately, 'commands.getstatusoutput(command)' does not work under > windows. > > Would there be any alternative? > >

python 2.3 + cx_oracle on HP-UX Itanium

2005-05-18 Thread Bernard Delmée
compiler, or is gcc known to work for this purpose ? Thanks for any hint, Bernard. -- http://mail.python.org/mailman/listinfo/python-list

Re: import cx_Oracle fails!

2005-05-21 Thread Bernard Delmée
) but python refuses to load the cx_oracle.sl shared lib... Bernard. -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_oracle

2007-06-24 Thread Bernard Delmée
standard Oracle command-line client), and cx should then pose no problem. Cheers, Bernard. -- http://mail.python.org/mailman/listinfo/python-list

[python 3.0] reload() gone?

2007-08-31 Thread Bernard Lebel
I read in the Python 3.0 documentation that reload() was removed, without further explanations. http://docs.python.org/dev/3.0/whatsnew/3.0.html?highlight=reload So what are we supposed to do to reload modules? Thanks Bernard -- http://mail.python.org/mailman/listinfo/python-list

Re: No zlib in Python 2.4.4

2007-04-11 Thread Bernard Delmée
> I need Python to be compiled with Zlib so that I can compile and use > Zope. I am guessing you need zlib_dev.rpm (or somesuch) installed for the python build process to find the relevant headers. Sorry I cannot be more specific not being a SuSE user myself (anymore)... Bernard. --

pywin32 for Windows x64

2007-01-20 Thread Bernard Lebel
on 64) Cheers Bernard -- http://mail.python.org/mailman/listinfo/python-list

How much memory used by a name

2007-02-14 Thread Bernard Lebel
written. However I would like to know how much memory, before writing to the file, is this list using. Is it possible at all? Thanks Bernard -- http://mail.python.org/mailman/listinfo/python-list

Re: How much memory used by a name

2007-02-14 Thread Bernard Lebel
or a write() to the file object, which in turns write to the text file. The file is on the network. This is taking a long time, and I'm looking for ways to speed up this process. I though that keeping the list in memory and dropping to the file at the very end could be a possible approach. B

handling secure attachments in email messages

2007-02-17 Thread Bernard Delmée
compatibility so senders could submit files with PGP integrated to their mail system. Can anyone suggest a module that can help achieve this goal? Any pointer or evidence of a working solution with or without usage of the aforementioned libraries would be appreciated. Thanks, Bernard. -- http://ma

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
Hi Jim, I guess you're missing tk and its tkinter python wrapper. Sorry I don't know what the corresponding packages would be called under fedora... -- http://mail.python.org/mailman/listinfo/python-list

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
FWIW I am using 2.4.4 under debian etch and 2.5.1 under windows XP, and pydoc seems to support the -[pgkw] flags under both versions. When trying -g under debian, I am getting a stack-trace and a message inviting me to install the python-tk package. Does "pydoc -g" provide any feedback on your ins

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
I see what you mean, having started my fedora8-live image under virtualbox. -g support is apparently not there with this distribution, oddly enough. Perhaps you should post your question on a fedora support forum. Under the live cd (hence probably with a smaller selection of available packages tha

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
(I know replying to self is a sure sign of aging :-) A quick update: after installing the 'tkinter' fedora package (still in live-cd mode), the following 3 lines script does what "pydoc -g " should: import Tkinter import pydoc pydoc.gui() HTH, Bernard. -- ht

Running Python scripts under a different user

2006-05-26 Thread Bernard Lebel
dule), but failed to find anything for #2. Thanks in advance Bernard -- http://mail.python.org/mailman/listinfo/python-list

Re: Running Python scripts under a different user

2006-05-26 Thread Bernard Lebel
On 5/26/06, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > And as you refrain form telling us which OS you are running under [Bernard] The network file server is Red Hat Enterprise 4. The user workstation run through MS Windows XP Pro 32bit SP2, accessing the file server through Samba.

Re: Running Python scripts under a different user

2006-05-26 Thread Bernard Lebel
ressource you could point me to as to write services? I'm totally unexperienced with that. Thanks a bunch. Bernard -- http://mail.python.org/mailman/listinfo/python-list

stdin, stdout, redmon

2008-01-21 Thread Bernard Desnoues
" doesn't work. "f = open(sys.stdin)" doesn't work. I don't find anything in the documentation. How to do that ? Thanks in advance. Bernard Desnoues Librarian Bibliothèque de géographie - Sorbonne -- http://mail.python.org/mailman/listinfo/python-list

Re: stdin, stdout, redmon

2008-01-21 Thread Bernard Desnoues
> one search for the terms 'python read stdin' > > Rolf > > Bernard Desnoues wrote: >> Hi, >> >> I've got a problem with the use of Redmon (redirection port monitor). >> I intend to develop a virtual printer so that I can modify data sent &g

Re: stdin, stdout, redmon

2008-01-22 Thread Bernard Desnoues
ontains: > > import sys > > print sys.stdin.readlines() > > > test.txt contains: > > Testline1 > Testline2 > > > Output of 'python test3.py < test.txt' is: > > ['Testline1\n', 'Testline2'] > > > Just plain

Immutable and Mutable Types

2008-03-16 Thread Bernard Lim
above statement: >>> a = 1 >>> b = 1 >>> a is b True >>> id(a) 10901000 >>> id(b) 10901000 Is this correct? Regards Bernard -- http://mail.python.org/mailman/listinfo/python-list

Library for extracting new content from email reply messages?

2009-01-15 Thread Bernard Rankin
Hello, I'm looking to build a simple mostly email-based trouble ticket system. (I've yet to find a ready-made python solution that is both simple and well designed) Is there a Python email parsing library that can assist in extracting new content from messages that have been sent in reply

Python Package Managment

2009-01-27 Thread Bernard Rankin
[extracted from pylons-discuss] > >> I hate to pass the buck, but this is Python's fault for not having > >> reliable package management built in. There's nothing Pylons can do > >> about it except switch to another programming language. > > [SNIP] > > Without Setuptools, > Pylons and TurboGear

Best/better way? (histogram)

2009-01-27 Thread Bernard Rankin
Hello, I've got several versions of code to here to generate a histogram-esque structure from rows in a CSV file. The basic approach is to use a Dict as a bucket collection to count instances of data items. Other than the try/except(KeyError) idiom for dealing with new bucket names, which I d

Re: Best/better way? (histogram)

2009-01-28 Thread Bernard Rankin
> > The simplest. That would be #3, cleaned up a bit: > > from collections import defaultdict > from csv import DictReader > from pprint import pprint > from operator import itemgetter > > def rows(filename): > infile = open(filename, "rb") > for row in DictReader(infile): > yi

small python-cgi wiki?

2009-01-28 Thread Bernard Rankin
Hello, I'm looking to set up a small private wiki, and am looking for recommendations. Some sort of CGI based package that I could just untar somewhere web accessable via Apache would be great. Any ideas? Thanks, :) -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >