Re: [Tutor] Error

2016-10-04 Thread Ramanathan Muthaiah
> > I began to learn Python and after saving a file gra.py tried to reopen it > and got an error (in the Annex). > > What's the error on re-opening the file ? Also, share what version of Python, OS and editor you are using. FYI, this is a text only list, images of attachments will be filtered.

[Tutor] remove ^ in field

2016-10-04 Thread PERRAS Pierre
Hi, Sending lab result in HL7. In the following example, I want everything (PATNUMBER~000925015-001) after 000925015 in PID3-1. I want also to remove everything (^^L) after PID5-2. [cid:image002.jpg@01D21E51.F1A0B0B0] Regards, Pierre Perras

Re: [Tutor] Error

2016-10-04 Thread Alan Gauld via Tutor
On 04/10/16 18:41, Agnieszka Socha wrote: > I began to learn Python and after saving a file gra.py tried to reopen it > and got an error (in the Annex). This is a text only list so attachments tend to get stripped off. We need a lot more information I'm afraid. What are you using to "reopen"

Re: [Tutor] xpath - html entities issue --

2016-10-04 Thread Alan Gauld via Tutor
On 04/10/16 15:02, bruce wrote: > I did a quick replace ('','&') and it replaced the '' as desired. > So the content only had '&' in it.. You are preonbably better using your parseers escape/unescape facilities. Simple string replacement is notioriously hard to get right. > I can provide a more

Re: [Tutor] please help me modify this code so that I can utilize raw_input

2016-10-04 Thread Alan Gauld via Tutor
On 04/10/16 15:04, Richard Koeman wrote: > I would like to modify this code so that instead of me calling the function > with the list as shown [1,2,3,4], the user inputs the list with raw_input. > You don't need to modify your code you just need ton write a function that reads a list from the

[Tutor] please help me modify this code so that I can utilize raw_input

2016-10-04 Thread Richard Koeman
I would like to modify this code so that instead of me calling the function with the list as shown [1,2,3,4], the user inputs the list with raw_input. Thanks in advance """Define a function sum() and a function multiply() that sums and multiplies (respectively) all the numbers in a list of

[Tutor] Error

2016-10-04 Thread Agnieszka Socha
I began to learn Python and after saving a file gra.py tried to reopen it and got an error (in the Annex). Agnieszka Socha ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

[Tutor] xpath - html entities issue --

2016-10-04 Thread bruce
Hi. Just realized I might have a prob with testing a crawl. I get a page of data via a basic curl. The returned data is html/charset-utf-8. I did a quick replace ('','&') and it replaced the '' as desired. So the content only had '&' in it.. I then did a parseString/xpath to extract what I

Re: [Tutor] Need help

2016-10-04 Thread niraj pandey
Ok I got it from the solution you provided on your previous mail. Thanks again Thanks Niraj On Tue, Oct 4, 2016 at 12:05 PM, niraj pandey wrote: > Attaching two snapshots here. > > In first snapshot (1.png) I have the label windows without the values and > in

Re: [Tutor] Need help

2016-10-04 Thread niraj pandey
Attaching two snapshots here. In first snapshot (1.png) I have the label windows without the values and in second window (2.png) every label have some value. I want to put these values in front of every label. I have already stored these values in a variable. Thanks Niraj On Mon, Oct 3, 2016 at