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

Your experience of backtacking during a pip install

2020-10-12 Thread Bernard Tyers - Sane UX Design
ll: https://saneuxdesign.survey.fm/your-experience-of-pip-backtracking To follow the implementation discussion, see it here: https://github.com/pypa/pip/issues/8975 best wishes, Bernard -- Bernard Tyers UX Designer, pip Team User Researcher & Interaction Designer | Sane UX Design PGP Key: http

pip UX studies: Test pip's new resolver and help us document dependency conflicts

2020-05-21 Thread Bernard Tyers - Sane UX Design
Hi there, It's Bernard and Nicole from the pip Team. The team is working on the improving the way that pip resolves package dependency conflicts. We're asking for your help to test pip's new resolver. We're especially interested in hearing from people who have p

Re: pip UX Studies - help improve the usability of pip

2020-03-10 Thread Bernard Tyers - Sane UX Design via Python-list
it. Have I answered your question sufficiently? Regards, Bernard On 07/03/2020 11:21, Marco Sulla wrote: > There's someone of the pip team that can confirm this? > > On Sat, 7 Mar 2020 at 02:49, Bernard Tyers - Sane UX Design > wrote: >> >> Hi there, >> &

pip UX Studies - help improve the usability of pip

2020-03-07 Thread Bernard Tyers - Sane UX Design
Hi there, My name is Bernard Tyers. I'm a UX designer and have recently started working on the PSF project to improve the usability of pip, funded by MOSS/CZI. I want to let you know about the pip UX Studies we've started today, and encourage you to sign-up and take part. The p

pip UX Studies - help improve the usability of pip

2020-03-06 Thread Bernard Tyers - Sane UX Design
Hi there, My name is Bernard Tyers. I'm a UX designer and have recently started working on the PSF project to improve the usability of pip, funded by MOSS/CZI. I want to let you know about the pip UX Studies we've started today, and encourage you to sign-up and take part. The p

Code for Using Keyboard to Play music notes "ABCDEFG"

2018-03-25 Thread Bernard via Python-list
Pyton Friends, Do you have any code that will play the notes "ABCDEFG" from my computer keyboard when a key is pressed ? For example if I press the "a" key the note "a" will sound out of my speaker. Thanks, BigB -- https://mail.python.org/mailman/listinfo/python-list

Can't load Python program on my HP ENVY computer

2018-02-04 Thread Bernard via Python-list
I have an HP ENVY TouchSmart 17 Notebook PC. Windows 8.1. Intel(R) Core(TM) i7-4700 mQ cpu @ 2.40 ghz 2.40ghz 64-bit operation system x64 based processor Full Windows touch support with 10 touch points Can you send me the link to the correct Python version that will run on this computer.

Re: Can not run the Python software

2017-01-13 Thread Bernard via Python-list
Thanks for the info.. -Original Message- From: Michael Torrie To: python-list Sent: Fri, Jan 13, 2017 11:08 pm Subject: Re: Can not run the Python software On 01/13/2017 08:32 PM, Joseph L. Casale wrote: >> Just downloaded Python 3.6.0 2016-12-23 and PyCharm. Tried to run the "Hel

Re: Can not run the Python software

2017-01-13 Thread Bernard via Python-list
: "Process finished with exit code 1073741515 (0xC135)" I am using Windows 8.1 on an HP ENVY Touchsmart Notebook (64-bit OS, x64-based processor). Help Needed Thanks, Bernard -- https://mail.python.org/mailman/listinfo/python-list

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

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

Re: associative array

2010-04-02 Thread Bernard Czenkusz
On Thu, 01 Apr 2010 11:57:11 +, Harishankar wrote: > On Wed, 31 Mar 2010 09:40:30 -0700, Javier Montoya wrote: > >> Dear all, >> >> I'm a newbie in python and would be acknowledge if somebody could shed >> some light on associative arrays. >> More precisely, I would like to create a multi-di

Re: Starting with Classes - basic problem

2010-02-22 Thread Bernard Czenkusz
On Mon, 22 Feb 2010 09:26:18 -0800, barryjogorman wrote: > HAVE THE FOLLOWING VERY BASIC PROGRAM: > > class Person: > def _init_(self,name, job=None, pay=0): > self.name=name > self.job=job > self.pay=pay > > bob = Person('Bob Smith') > sue = Person('Sue Jones', job='

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) > > >

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: error on building 2.6.1. (_ctypes)

2009-02-01 Thread Bernard Rankin
> > >> > I am trying to build python 2.6 on a machine (web server) that I do not > have > >> root access to. (has 2.4 installed) > >> > > >> > Python 2.5 builds fine, but I am getting an error when I run "make" for > 2.6.1. > > >> Mmm... my 2.6.1 source show different line numbers, maybe you

Re: error on building 2.6.1. (_ctypes)

2009-01-30 Thread Bernard Rankin
> > > I am trying to build python 2.6 on a machine (web server) that I do not > > have > root access to. (has 2.4 installed) > > > > Python 2.5 builds fine, but I am getting an error when I run "make" for > > 2.6.1. > > > > > > /home/username/local-src/

error on building 2.6.1. (_ctypes)

2009-01-29 Thread Bernard Rankin
Hello, I am trying to build python 2.6 on a machine (web server) that I do not have root access to. (has 2.4 installed) Python 2.5 builds fine, but I am getting an error when I run "make" for 2.6.1. Here is the command line I am using: ../configure -prefix=/home/username/local-python/ --enable

Re: Python Package Managment

2009-01-28 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 Setu

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

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

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

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

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

Re: Updating python dictionary

2008-09-07 Thread MK Bernard
On Sep 7, 3:37 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Sep 8, 7:51 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Hello... > > > I have a dict of key/values and I want to change the keys in it, based > > on another mapping dictionary. An example follows: > > > MAPPING_DICT = {

Re: Updating python dictionary

2008-09-07 Thread MK Bernard
On Sep 7, 2:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello... > > I have a dict of key/values and I want to change the keys in it, based > on another mapping dictionary. An example follows: > > MAPPING_DICT = { >     'a': 'A', >     'b': 'B', > > } > > my_dict = { >     'a': '1', >  

Re: Python as a Testing Language - TTCN-3 Comparison

2008-08-12 Thread Bernard Stepien
ue to its lack of typing and semantics is by definition not precise. Thus, in that domain it is better to use TTCN-3. However, this doesn't exclude Python. Python can be used very efficiently for the codecs as another paper by Industry showed at that same conference. Bernard Stepien Uni

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

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

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: 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: 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: 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: 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: 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: 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: 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: (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: 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: 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

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: 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

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

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: 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

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
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
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: 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.

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

[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: 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

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. --

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: 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

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

pywin32 for Windows x64

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

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: 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: 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: 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: 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: 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-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: 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

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: 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: 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: 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: 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: 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

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: 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: 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: 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: 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: 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-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: 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: 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: 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: 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: 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: 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

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

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: 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 "

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: 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

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

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: 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

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: 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

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

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.

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: Problems writing to file

2006-03-27 Thread Bernard Lebel
ument. When I started using it, everything went back to normal! Anyone has a take on this behavior? Thanks Bernard On 3/21/06, Bernard Lebel <[EMAIL PROTECTED]> wrote: > Hi Gary, > > That is actually what I do. Each time the program prints something to > the file, it flushes

Re: Problems writing to file

2006-03-21 Thread Bernard Lebel
ile ) return LOGOPFAILURE else: if self.printmsg == True: print '\nWARNING > log.__output : Attempt "%i" to write to log file %s rais

  1   2   >