Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-29 Thread Asif Ali Hirekumbi via Python-list
Thanks Abdur Rahmaan.
I will give it a try !

Thanks
Asif

On Mon, Sep 30, 2024 at 11:19 AM Abdur-Rahmaan Janhangeer <
arj.pyt...@gmail.com> wrote:

> Idk if you tried Polars, but it seems to work well with JSON data
>
> import polars as pl
> pl.read_json("file.json")
>
> Kind Regards,
>
> Abdur-Rahmaan Janhangeer
> about <https://compileralchemy.github.io/> | blog
> <https://www.pythonkitchen.com>
> github <https://github.com/Abdur-RahmaanJ>
> Mauritius
>
>
> On Mon, Sep 30, 2024 at 8:00 AM Asif Ali Hirekumbi via Python-list <
> python-list@python.org> wrote:
>
>> Dear Python Experts,
>>
>> I am working with the Kenna Application's API to retrieve vulnerability
>> data. The API endpoint provides a single, massive JSON file in gzip
>> format,
>> approximately 60 GB in size. Handling such a large dataset in one go is
>> proving to be quite challenging, especially in terms of memory management.
>>
>> I am looking for guidance on how to efficiently stream this data and
>> process it in chunks using Python. Specifically, I am wondering if there’s
>> a way to use the requests library or any other libraries that would allow
>> us to pull data from the API endpoint in a memory-efficient manner.
>>
>> Here are the relevant API endpoints from Kenna:
>>
>>- Kenna API Documentation
>><https://apidocs.kennasecurity.com/reference/welcome>
>>- Kenna Vulnerabilities Export
>><https://apidocs.kennasecurity.com/reference/retrieve-data-export>
>>
>> If anyone has experience with similar use cases or can offer any advice,
>> it
>> would be greatly appreciated.
>>
>> Thank you in advance for your help!
>>
>> Best regards
>> Asif Ali
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-29 Thread Asif Ali Hirekumbi via Python-list
Dear Python Experts,

I am working with the Kenna Application's API to retrieve vulnerability
data. The API endpoint provides a single, massive JSON file in gzip format,
approximately 60 GB in size. Handling such a large dataset in one go is
proving to be quite challenging, especially in terms of memory management.

I am looking for guidance on how to efficiently stream this data and
process it in chunks using Python. Specifically, I am wondering if there’s
a way to use the requests library or any other libraries that would allow
us to pull data from the API endpoint in a memory-efficient manner.

Here are the relevant API endpoints from Kenna:

   - Kenna API Documentation
   <https://apidocs.kennasecurity.com/reference/welcome>
   - Kenna Vulnerabilities Export
   <https://apidocs.kennasecurity.com/reference/retrieve-data-export>

If anyone has experience with similar use cases or can offer any advice, it
would be greatly appreciated.

Thank you in advance for your help!

Best regards
Asif Ali
-- 
https://mail.python.org/mailman/listinfo/python-list


Weak Type Ability for Python

2023-04-12 Thread Ali Mohseni Roodbari
Hi all,
Please make this command for Python (if possible):

>>> x=1
>>> y='a'
>>> wprint (x+y)
>>> 1a

In fact make a new type of print command which can print and show strings
and integers together.

Sincerely yours,
Ali.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Convert MBOX thunderbird to PST outlook

2021-02-07 Thread Kr4ck ALI
I have about 1000 mailbox to migrate and all are store in local on each
computers.
I know PST files store contacts, calendar, tasks... So, I think that is
possible to build a PST file with python to integrate the differents items
(emails, calendar, tasks,...) from thunderbird files.


Le lun. 8 févr. 2021 à 00:45, Cameron Simpson  a écrit :

> On 07Feb2021 15:06, Kr4ck ALI  wrote:
> >I have to migrate multiple mailbox (emails, contacts, calendar, tasks)
> >from thunderbird to outlook Office 365.
>
> I am also sorry to hear that.
>
> Had you considered getting them to enable IMAP access? Then you can
> migrate just by moving messages inside Thunderbird. And you can keep
> using your mail reader of choice.
>
> >I plan to export all items from thunderbird files (.mbox for email,
> .sqlite
> >or .sdb for calendar, .mab to contact) to PST files and import each PST
> >files to Office 365.
>
> The contacts and calendar stuff I have less idea about, alas. CalDAV for
> the calendar? I know that's a vague and unspecific suggestion.
>
> Cheers,
> Cameron Simpson 
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Convert MBOX thunderbird to PST outlook

2021-02-07 Thread Kr4ck ALI
Hello,

I have to migrate multiple mailbox (emails, contacts, calendar, tasks) from
thunderbird to outlook Office 365.
I plan to export all items from thunderbird files (.mbox for email, .sqlite
or .sdb for calendar, .mab to contact) to PST files and import each PST
files to Office 365.
I know it's a tedious task ... But I know that nothing is impossible !
I found this script very helpfull to begin :

#!python3
import os, sys
import gzip
import mailbox
import urllib.request
import win32com.client

dispatch = win32com.client.gencache.EnsureDispatch
const = win32com.client.constants
PST_FILEPATH =
os.path.abspath(os.path.join(os.path.expandvars("%APPDATA%"),
"scratch.pst"))
if os.path.exists(PST_FILEPATH):
os.remove(PST_FILEPATH)
ARCHIVE_URL =
"https://mail.python.org/pipermail/python-list/2015-November.txt.gz";
MBOX_FILEPATH = "archive.mbox"

def download_archive(url, local_mbox):
with gzip.open(urllib.request.urlopen(url)) as archive:
with open(local_mbox, "wb") as f:
print("Writing %s to %s" % (url, local_mbox))
f.write(archive.read())

def copy_archive_to_pst(mbox_filepath, pst_folder):
archive = mailbox.mbox(mbox_filepath)
for message in archive:
print(message.get("Subject"))
pst_message = pst_folder.Items.Add()
pst_message.Subject = message.get("Subject")
pst_message.Sender = message.get("From")
pst_message.Body = message.get_payload()
pst_message.Move(pst_folder)
pst_message.Save()

def find_pst_folder(namespace, pst_filepath):
for store in dispatch(mapi.Stores):
if store.IsDataFileStore and store.FilePath == PST_FILEPATH:
return store.GetRootFolder()

download_archive(ARCHIVE_URL, MBOX_FILEPATH)
outlook = dispatch("Outlook.Application")
mapi = outlook.GetNamespace("MAPI")
pst_folder = find_pst_folder(mapi, PST_FILEPATH)
if not pst_folder:
mapi.AddStoreEx(PST_FILEPATH, const.olStoreDefault)
pst_folder = find_pst_folder(mapi, PST_FILEPATH)
if not pst_folder:
raise RuntimeError("Can't find PST folder at %s" % PST_FILEPATH)
copy_archive_to_pst(MBOX_FILEPATH, pst_folder)

My question is : Have you already make a mission like that ?

Thanks in advance !

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


Re: Converting hex data to image

2021-01-31 Thread Ali Sajadian
dimplem...@gmail.com در تاریخ سه‌شنبه ۱۲ مارس ۲۰۱۹ ساعت ۱۳:۰۱:۴۵ (UTC+3:30) 
نوشت:
> On Tuesday, March 12, 2019 at 2:53:49 PM UTC+5:30, Peter Otten wrote: 
> > dimplem...@gmail.com wrote: 
> > 
> > >> Save the image to a file (in binary mode!) and then try to open it with 
> > >> an image viewer. The data may be corrupted. 
> > > 
> > > When i tried doing that it says Invalid Image... 
> > 
> > So it looks like the problem occurs somewhere before you are decoding the 
> > image with the PIL...
> This is what i am doing : 
> for associate in self.conn.response[:-1]: 
> attributes = associate['attributes'] 
> obj = { 
> 'img':attributes['thumbnailPhoto'],} 
> This img i am calling in my view and writing to the file...

Hi could you solve this problem dimplem?
I have exactly the same issue when I read thumbnailPhoto from active directory
-- 
https://mail.python.org/mailman/listinfo/python-list


HELP NEEDED application error 0xc000005

2019-09-25 Thread arshad ali via Python-list
Note: Forwarded message attached

-- Original Message --

From: "arshad ali"arsh...@rediffmail.com
To: python-list@python.org
Subject: HELP  NEEDED application error 0xc05--- Begin Message ---
Respected sir,
  In my laptop with windows 7 ultimate 64 bit, when python 3.7.4  
executable 64 bit installed 
it is giving me the error " THE APPLICATION WAS UNABLE TO START CORRECTLY 
(0xc005) CLICK OK TO CLOSE" 
I tried many times.

But python 2.7.16 is working in my laptop.

please help me in getting out of this error for which i will be highly grateful 
to you.

Dr. Arshad
Hyderabad, INDIA--- End Message ---
-- 
https://mail.python.org/mailman/listinfo/python-list


a problem in Libs installs

2019-07-27 Thread Ali Keshavarz Nasab
Hi dear Mr/Maddam
When I install some libs in CMD or Power shield the error is appeared: “Running 
setup.py install for pillow ... error”. Whats the solution and what is the best 
way to install Libs? I use 3.8.0b2 version. What is the best editor for python?
Thanks alot

Sent from Mail for Windows 10

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


Re: email automation

2018-10-23 Thread Ali Rıza KELEŞ
On Tue, 23 Oct 2018 at 09:07, Thomas Jollans  wrote:
> > After some basic research I have a few options:
> >
> >  1. Grapple with OpenEMM (interesting software, has python library, 
> > still alive and kicking, a bit overkill for my use-case);
> >  2. build on the examples in 'Automate the boring stuff';
>
> From briefly skimming the relevant section, it looks like this gives
> some examples with smtplib and imaplib. That sounds like a good place to
> start!
>
> If you happen to have a server (VPS, Raspberry Pi, PC, whatever) running
> a full MTA that you can forward your emails to, you could feed the
> relevant messages to your script directly with the help of procmail,
> rather than polling an IMAP server.

+1

I experienced procmail and worked like a charm for me, in a case like
yours. My script was parsing emails to grab some URIs of binary
objects and queue them to be processed later.

You can easily trigger a python script and do whatever you need in
that script. If it is a long term process, you should just parse email
and use queues for the rest.

-- 
--
Ali Rıza Keleş
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python3 byte decode

2017-11-07 Thread Ali Rıza KELEŞ
Hi,

On 5 November 2017 at 04:06, Cameron Simpson  wrote:
> On 04Nov2017 01:47, Chris Angelico  wrote:
>>
>> On Fri, Nov 3, 2017 at 8:24 PM, Ali Rıza KELEŞ 
>> wrote:
>>>
>>> Yesterday, while working with redis, i encountered a strange case.
>>>
>>> I want to ask why is the following `True`
>>>
>>> ```
>>> "s" is b"s".decode()
>>> ```
>>>
>>> while the followings are `False`?
>>>
>>> ```
>>> "so" is b"so".decode()
>>> "som" is b"som".decode()
>>> "some" is b"some".decode()
>>> ```
>>>
>>> Or vice versa?
>>>
>>> I read that `is` compares same objects, not values. So my question is
>>> why "s" and b"s".decode() are same objects, while the others aren't?
>>>
>>> My python version is 3.6.3.


> For speed and memory reasons, Python notices small values of strings and
> ints, and allocates them only once. So When your write:
>
>  a = "s"
>  b = "s"
>
> Python will reuse the same str object for both. Because of this, not only is
> "a == b" (i.e. they have the same value) but also "a is b" (a and b refer to
> the same object). But this is not guarrenteed, and certainly for larger
> values Python doesn't bother. Eg:

Actually I guessed that it should be a caching mechanism or something
like, but i was not sure since I do not know python internals in
detail.


>> You shouldn't be comparing string objects with 'is'. Sometimes two
>> equal strings will be identical, and sometimes they won't. All you're
>> seeing is that the interpreter happened to notice and/or cache this
>> particular lookup.
>
>
> To be more clear here, usually when humans say "identical" they mean having
> exactly the same value or attributes.
> Here, Chris means that the two strings are actually the same object rather
> than two equivalent objects. "is" tests the former (the same object). "=="
> is for testing the latter (the objects have the same value).

Initially the 'is' compared returned value with None, I changed the
code and it remained as is. After i have noticed this issue.

Using `is` to compare with None  is OK, isn't it?

Cameron, Terry, Chris thanks for your replies in depth.

-
Ali Riza

>>
>>

>
>
>  a = "ghghghghghg"
>  b = "ghghghghghg"
>
> Here they will have the same value but be different objects. So "==" will
> still return True, but "is" would return False.
>
> You should usually be using "==" to compare things. "is" has its place, but
> it is usually not what you're after.
>
> In your example code, b"s".decode() returns the string value "s", and Python
> is internally deciding to reuse the existing "s" from the left half of your
> comparison. It can do this because strings are immutable. (For example, "+="
> on a string makes a new string).
>
> Hoping this is now more clear,
> Cameron Simpson  (formerly c...@zip.com.au)
> --
> https://mail.python.org/mailman/listinfo/python-list



-- 
--
Ali Rıza Keleş
-- 
https://mail.python.org/mailman/listinfo/python-list


python3 byte decode

2017-11-03 Thread Ali Rıza KELEŞ
Hi,

Yesterday, while working with redis, i encountered a strange case.

I want to ask why is the following `True`

```
"s" is b"s".decode()
```

while the followings are `False`?

```
"so" is b"so".decode()
"som" is b"som".decode()
"some" is b"some".decode()
```

Or vice versa?

I read that `is` compares same objects, not values. So my question is
why "s" and b"s".decode() are same objects, while the others aren't?

My python version is 3.6.3.

Thanks.

-- 
--
Ali Rıza Keleş
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python on Windows with linux environment

2016-06-02 Thread Muhammad Ali
On Friday, June 3, 2016 at 6:27:50 AM UTC+8, Eric S. Johansson wrote:
> On 6/2/2016 2:03 PM, Joel Goldstick wrote:
> > Although the OP is using Windows 7, according to recent articles,
> > Ubuntu is teaming with MS for Windows 10 to include a bash shell,
> > presumably with the package management of Ubuntu (debian), with pip
> > goodness and virtualenv and virtualenvwrapper.  That route should make
> > W10 and linux (ubuntu) nearly identical environments to deal with
> 
> had forgotten about that.  it should be released end of july and I am
> looking forward to the update! in the meantime, I'm suffering with
> cygwin :-)


Please send me the link through which I can get regular updates about this new 
release.
-- 
https://mail.python.org/mailman/listinfo/python-list


Python on Windows with linux environment

2016-06-02 Thread Muhammad Ali

Hi,

I use windows regularly, however, I use linux for only my research work at 
supercomputer. In my research field (materials science) most of the scripts are 
being written in python with linux based system. Could I installed such linux 
based python on my window 7? So that I can use those linux based scripts 
written in python and I can also write my own scripts/code without entirely 
changing my operating system from windows to linux.

Looking for your valuable suggestions.

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


Re: Self Learning Fortran Programming

2016-06-01 Thread Muhammad Ali

I don't know how to change the title now, but I am looking for python.
-- 
https://mail.python.org/mailman/listinfo/python-list


Self Learning Fortran Programming

2016-05-31 Thread Muhammad Ali

Hello, 

I am interested in Python programming, however, it will be my first serious 
attempt towards coding/simulation/programming. My back ground is Physics, no 
practical experience with programming languages. 

So, this post is for the valuable suggestions from the experts that how can I 
start self learning Python from scratch to advanced level in minimum time. For 
this, please recommend Python version, literature, text books, websites, video 
lectures, your personnel tips, etc. In addition, you may also add some extra 
suggestions for shell script writing as well. You may recommend for both Linux 
and Windows operating systems. 

Looking for your posts. 

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


Re: python script for .dat file

2016-04-05 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 2:24:02 PM UTC-7, Joel Goldstick wrote:
> On Tue, Apr 5, 2016 at 4:47 PM, Mark Lawrence via Python-list
>  wrote:
> > On 05/04/2016 21:35, Michael Selik wrote:
> >>
> >> What code have you written so far?
> >>
> >
> > Would you please not top post on this list, it drives me nuts!!!
> >
> >
> A short drive? ;)


> 
> -- 
> Joel Goldstick
> http://joelgoldstick.com/blog
> http://cc-baseballstats.info/stats/birthdays


Would any one paste here some reference/sample python code for such extraction 
of data into text file?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python script for .dat file

2016-04-05 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 9:07:54 AM UTC-7, Oscar Benjamin wrote:
> On 5 April 2016 at 16:44, Muhammad Ali  wrote:
> > On Tuesday, April 5, 2016 at 8:30:27 AM UTC-7, Joel Goldstick wrote:
> >> On Tue, Apr 5, 2016 at 11:23 AM, Muhammad Ali
> >>  wrote:
> >> >
> >> > Could any body tell me a general python script to generate .dat file 
> >> > after the extraction of data from more than 2 files, say file A and file 
> >> > B?
> >> >
> >> > Or could any body tell me the python commands to generate .dat file 
> >> > after the extraction of data from two or more than two files?
> >> >
> >> > I have to modify some python code.
> >>
> >> What exactly is a .dat file? and how is it different from any other
> >> file? Is it binary or text data?
> >
> > It is text data.
> 
> You haven't provided enough information for someone to answer your
> question. This is a text mailing list so if a .dat file is text then
> you can paste here an example of what it would look like. What would
> be in your input files and what would be in your output files? What
> code have you already written?
> 
> If the file is large then don't paste its entire content here. Just
> show an example of what the data would look like if it were a smaller
> file (maybe just show the first few lines of the file).
> 
> Probably what you want to do is easily achieved with basic Python
> commands so I would recommend to have a look at a tutorial. There are
> some listed here:
> https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
> 
> Also the tutor mailing list is probably more appropriate for this
> level of question:
> https://mail.python.org/mailman/listinfo/tutor
> 
> --
> Oscar

Input and outout files are text files. e.g: 
#KptCoord #E-E_Fermi #delta_N
  0.  -22.   0.000E+00
  0.0707  -22.   0.000E+00
  0.1415  -22.   0.000E+00
  0.2122  -22.   0.000E+00
  0.2830  -22.   0.000E+00
  0.3537  -22.   0.000E+00
  0.4245  -22.   0.000E+00
  0.4952  -22.   0.000E+00
  0.5660  -22.   0.000E+00
  0.6367  -22.   0.000E+00
  0.7075  -22.   0.000E+00
  0.7782  -22.   0.000E+00
  0.8490  -22.   0.000E+00
  0.9197  -22.   0.000E+00
  0.9905  -22.   0.000E+00
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python script for .dat file

2016-04-05 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 8:30:27 AM UTC-7, Joel Goldstick wrote:
> On Tue, Apr 5, 2016 at 11:23 AM, Muhammad Ali
>  wrote:
> >
> > Hello,
> >
> > Could any body tell me a general python script to generate .dat file after 
> > the extraction of data from more than 2 files, say file A and file B?
> >
> > Or could any body tell me the python commands to generate .dat file after 
> > the extraction of data from two or more than two files?
> >
> > I have to modify some python code.
> >
> > Looking for your valuable posts.
> >
> > Thank you.
> >
> > Ali
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> 
> What exactly is a .dat file? and how is it different from any other
> file? Is it binary or text data?
> 
> 
> -- 
> Joel Goldstick
> http://joelgoldstick.com/blog
> http://cc-baseballstats.info/stats/birthdays

It is text data.
-- 
https://mail.python.org/mailman/listinfo/python-list


python script for .dat file

2016-04-05 Thread Muhammad Ali

Hello,

Could any body tell me a general python script to generate .dat file after the 
extraction of data from more than 2 files, say file A and file B?

Or could any body tell me the python commands to generate .dat file after the 
extraction of data from two or more than two files?

I have to modify some python code.

Looking for your valuable posts.

Thank you.

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


Re: Plot/Graph

2016-04-04 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 8:16:22 AM UTC+8, Muhammad Ali wrote:
> On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote:
> > On 3 Apr 2016 22:21, "Muhammad Ali"  wrote:
> > >
> > >  How do I convert/change/modify python script so that my data could be
> > extracted according to python script and at the end it generates another
> > single extracted data file instead of displaying/showing some graph? So
> > that, I can manually plot the newly generated file (after data extraction)
> > by some other software like origin.
> > 
> > It depends what you're computing and what format origin expects the data to
> > be in. Presumably it can use CSV files so take a look at the CSV module
> > which can write these.
> > 
> > (You'll get better answers to a question like this if you show us some code
> > and ask a specific question about how to change it.)
> > 
> > --
> > Oscar
> 
> Yes, it is complete script and it works well with matplotlib.

But I have to modify it to extract data into a single .dat file instead of 
directly plotting it by using matplotlib. I want to plot the data file in some 
other software.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Plot/Graph

2016-04-04 Thread Muhammad Ali
On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote:
> On 3 Apr 2016 22:21, "Muhammad Ali"  wrote:
> >
> >  How do I convert/change/modify python script so that my data could be
> extracted according to python script and at the end it generates another
> single extracted data file instead of displaying/showing some graph? So
> that, I can manually plot the newly generated file (after data extraction)
> by some other software like origin.
> 
> It depends what you're computing and what format origin expects the data to
> be in. Presumably it can use CSV files so take a look at the CSV module
> which can write these.
> 
> (You'll get better answers to a question like this if you show us some code
> and ask a specific question about how to change it.)
> 
> --
> Oscar

Yes, it is complete script and it works well with matplotlib.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Plot/Graph

2016-04-04 Thread Muhammad Ali
On Sunday, April 3, 2016 at 5:19:15 PM UTC-7, MRAB wrote:
> On 2016-04-04 01:04, Muhammad Ali wrote:
> > On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote:
> >> On 3 Apr 2016 22:21, "Muhammad Ali"  wrote:
> >> >
> >> >  How do I convert/change/modify python script so that my data could be
> >> extracted according to python script and at the end it generates another
> >> single extracted data file instead of displaying/showing some graph? So
> >> that, I can manually plot the newly generated file (after data extraction)
> >> by some other software like origin.
> >>
> >> It depends what you're computing and what format origin expects the data to
> >> be in. Presumably it can use CSV files so take a look at the CSV module
> >> which can write these.
> >>
> >> (You'll get better answers to a question like this if you show us some code
> >> and ask a specific question about how to change it.)
> >>
> >> --
> >> Oscar
> >
> > How could the python script be modified to generate data file rather than 
> > display a plot by using matplotlib?
> >
> >
> > def make_plot(plot):
> >  indent = plot.plot_options.indent
> >  args = plot.plot_options.args
> >  # Creating the plot
> >  print ('Generating the plot...')
> >  fig = 
> > plt.figure(figsize=(plot.fig_width_inches,plot.fig_height_inches))
> >  ax = fig.add_subplot(111)
> >  # Defining the color schemes.
> >  print (indent + '>>> Using the "' + plot.cmap_name + '" colormap.')
> >  if(plot.plot_options.using_default_cmap and not args.running_from_GUI):
> >  print (2 * indent + 'Tip: You can try different colormaps by 
> > either:')
> >  print (2 * indent + ' * Running the plot tool with the option 
> > -icmap n, ' \
> > 'with n in the range from 0 to', 
> > len(plot.plot_options.cmaps) - 1)
> >  print (2 * indent + ' * Running the plot tool with the option 
> > "-cmap cmap_name".')
> >  print (2 * indent + '> Take a look at')
> >  print (4 * indent + 
> > '<http://matplotlib.org/examples/color/colormaps_reference.html>')
> >  print (2 * indent + '  for a list of colormaps, or run')
> >  print (4 * indent + '"./plot_unfolded_EBS_BandUP.py --help".')
> >
> >  # Building the countour plot from the read data
> >  # Defining the (ki,Ej) grid.
> >  if(args.interpolation is not None):
> >  ki = np.linspace(plot.kmin, plot.kmax, 2 * 
> > len(set(plot.KptsCoords)) + 1, endpoint=True)
> >  Ei = np.arange(plot.emin, plot.emax + plot.dE_for_hist2d, 
> > plot.dE_for_hist2d)
> >  # Interpolating
> >  grid_freq = griddata((plot.KptsCoords, plot.energies), 
> > plot.delta_Ns, (ki[None,:], Ei[:,None]),
> >   method=args.interpolation, fill_value=0.0)
> >  else:
> >  ki = np.unique(np.clip(plot.KptsCoords, plot.kmin, plot.kmax))
> >  Ei = np.unique(np.clip(plot.energies, plot.emin,  plot.emax))
> >  grid_freq = griddata((plot.KptsCoords, plot.energies), 
> > plot.delta_Ns, (ki[None,:], Ei[:,None]),
> >   method='nearest', fill_value=0.0)
> >
> >  if(not args.skip_grid_freq_clip):
> >  grid_freq = grid_freq.clip(0.0) # Values smaller than zero are 
> > just noise.
> >  # Normalizing and building the countour plot
> >  manually_normalize_colorbar_min_and_maxval = False
> >  if((args.maxval_for_colorbar is not None) or (args.minval_for_colorbar 
> > is not None)):
> >  manually_normalize_colorbar_min_and_maxval = True
> >  args.disable_auto_round_vmin_and_vmax = True
> >  maxval_for_colorbar = args.maxval_for_colorbar
> >  minval_for_colorbar = args.minval_for_colorbar
> >  else:
> >  if not args.disable_auto_round_vmin_and_vmax:
> >  minval_for_colorbar = float(round(np.min(grid_freq)))
> >  maxval_for_colorbar = float(round(np.max(grid_freq)))
> >  args.round_cb = 0
> >  if(manually_normalize_colorbar_min_and_maxval or not 
> > args.disable_auto_round_vmin_and_vmax):
> >  modified_vmin_or_vmax =

How can I install

2016-04-04 Thread Mohamed Ali via Python-list

I have tried to install python and nltk but I couldn't. Please could you please 
help me because I need to work on natural language processing using Python.

Regards,Mohamed
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Plot/Graph

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote:
> On 3 Apr 2016 22:21, "Muhammad Ali"  wrote:
> >
> >  How do I convert/change/modify python script so that my data could be
> extracted according to python script and at the end it generates another
> single extracted data file instead of displaying/showing some graph? So
> that, I can manually plot the newly generated file (after data extraction)
> by some other software like origin.
> 
> It depends what you're computing and what format origin expects the data to
> be in. Presumably it can use CSV files so take a look at the CSV module
> which can write these.
> 
> (You'll get better answers to a question like this if you show us some code
> and ask a specific question about how to change it.)
> 
> --
> Oscar

How could the python script be modified to generate data file rather than 
display a plot by using matplotlib?


def make_plot(plot):
indent = plot.plot_options.indent
args = plot.plot_options.args
# Creating the plot
print ('Generating the plot...')
fig = plt.figure(figsize=(plot.fig_width_inches,plot.fig_height_inches))
ax = fig.add_subplot(111)
# Defining the color schemes.
print (indent + '>>> Using the "' + plot.cmap_name + '" colormap.')
if(plot.plot_options.using_default_cmap and not args.running_from_GUI):
print (2 * indent + 'Tip: You can try different colormaps by either:')
print (2 * indent + ' * Running the plot tool with the option 
-icmap n, ' \
   'with n in the range from 0 to', len(plot.plot_options.cmaps) - 
1)
print (2 * indent + ' * Running the plot tool with the option 
"-cmap cmap_name".')
print (2 * indent + '> Take a look at')
print (4 * indent + 
'<http://matplotlib.org/examples/color/colormaps_reference.html>')
print (2 * indent + '  for a list of colormaps, or run')
print (4 * indent + '"./plot_unfolded_EBS_BandUP.py --help".')

# Building the countour plot from the read data
# Defining the (ki,Ej) grid.
if(args.interpolation is not None):
ki = np.linspace(plot.kmin, plot.kmax, 2 * len(set(plot.KptsCoords)) + 
1, endpoint=True)
Ei = np.arange(plot.emin, plot.emax + plot.dE_for_hist2d, 
plot.dE_for_hist2d)
# Interpolating
grid_freq = griddata((plot.KptsCoords, plot.energies), plot.delta_Ns, 
(ki[None,:], Ei[:,None]), 
 method=args.interpolation, fill_value=0.0)
else:
ki = np.unique(np.clip(plot.KptsCoords, plot.kmin, plot.kmax))
Ei = np.unique(np.clip(plot.energies, plot.emin,  plot.emax))
grid_freq = griddata((plot.KptsCoords, plot.energies), plot.delta_Ns, 
(ki[None,:], Ei[:,None]), 
 method='nearest', fill_value=0.0)

if(not args.skip_grid_freq_clip):
grid_freq = grid_freq.clip(0.0) # Values smaller than zero are just 
noise.
# Normalizing and building the countour plot
manually_normalize_colorbar_min_and_maxval = False
if((args.maxval_for_colorbar is not None) or (args.minval_for_colorbar is 
not None)):
manually_normalize_colorbar_min_and_maxval = True
args.disable_auto_round_vmin_and_vmax = True
maxval_for_colorbar = args.maxval_for_colorbar
minval_for_colorbar = args.minval_for_colorbar
else:
if not args.disable_auto_round_vmin_and_vmax:
minval_for_colorbar = float(round(np.min(grid_freq)))
maxval_for_colorbar = float(round(np.max(grid_freq)))
args.round_cb = 0
if(manually_normalize_colorbar_min_and_maxval or not 
args.disable_auto_round_vmin_and_vmax):
modified_vmin_or_vmax = False
if not args.disable_auto_round_vmin_and_vmax and not 
args.running_from_GUI:
print (plot.indent + '* Automatically renormalizing color scale '\
   '(you can disable this with the option 
--disable_auto_round_vmin_and_vmax):')
if manually_normalize_colorbar_min_and_maxval:
print (plot.indent + '* Manually renormalizing color scale')
if(minval_for_colorbar is not None):
previous_vmin = np.min(grid_freq)
if(abs(previous_vmin - minval_for_colorbar) >= 0.1):
modified_vmin_or_vmax = True
print (2 * indent + 'Previous vmin = %.1f, new vmin = %.1f' % 
(previous_vmin, 
   
minval_for_colorbar))
else:
minval_for_colorbar = np.min(grid_freq)
if(maxval_for_colorbar is not None):
previous_vmax = np.max(grid_freq)
if(abs(previous_vmax

Re: Plot/Graph

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 2:04:45 PM UTC-7, Michael Selik wrote:
> Indeed there is. Every example in the gallery shows the code to produce it.
> 
> http://matplotlib.org/gallery.html
> 
> On Sun, Apr 3, 2016, 8:05 PM Muhammad Ali 
> wrote:
> 
> >
> > Hi,
> >
> > Could anybody tell me that how can I plot graphs by matplotlib and get
> > expertise in a short time? I have to plot 2D plots just like origin
> > software.
> >
> > Secondly, how could we draw some horizontal reference line at zero when
> > the vertical scale is from -3 to 3?
> >
> > Looking for your posts, please.
> >
> > Thank you.
> >
> > p.s: Is there any short and to the point text book/manual/pdf to learn 2D
> > plotting with matplotlib?
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> >

Thank you for your post.

 How do I convert/change/modify python script so that my data could be 
extracted according to python script and at the end it generates another single 
extracted data file instead of displaying/showing some graph? So that, I can 
manually plot the newly generated file (after data extraction) by some other 
software like origin.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PyQt4

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 12:15:06 PM UTC-7, Michael Torrie wrote:
> On 04/03/2016 12:57 PM, Muhammad Ali wrote:
> > 
> > Hi,
> > 
> > How can we confirm that either  PyQt4 is already installed on LInux machine 
> > or not?
> > 
> > Please suggest commands to confirm the already existence of  PyQt4 in the 
> > machine.
> 
> Ideally you make a distribution-specific package of the binary in a .deb
> on Debian or an RPM on other distros, and specify that it depends on the
> package that provides PyQt4.  That way when it's installed, modern
> package managers will automatically install the dependencies.
> 
> Alternatively you can use try and except in your python code to attempt
> to import something from PyQt4 and see if it fails or not.  This
> technique is also used to make your code work either PyQt4 or PySide,
> depending on which the user has installed.
> 
> try:
> from PySide import QtGui
> except ImportError:
> from PyQt4 import QtGui
> 
> If neither are installed, this little example will end with an ImportError.

Thank you for your suggestions. I tried both but it shows the following error:
IndentationError: expected an indented block

Actually, I have to plot some graphs by using matplotlib and PyQt4 at 
supercomputer.

Any other suggestion???
-- 
https://mail.python.org/mailman/listinfo/python-list


Plot/Graph

2016-04-03 Thread Muhammad Ali

Hi,

Could anybody tell me that how can I plot graphs by matplotlib and get 
expertise in a short time? I have to plot 2D plots just like origin software. 

Secondly, how could we draw some horizontal reference line at zero when the 
vertical scale is from -3 to 3? 

Looking for your posts, please.

Thank you.

p.s: Is there any short and to the point text book/manual/pdf to learn 2D 
plotting with matplotlib?
-- 
https://mail.python.org/mailman/listinfo/python-list


PyQt4

2016-04-03 Thread Muhammad Ali

Hi,

How can we confirm that either  PyQt4 is already installed on LInux machine or 
not?

Please suggest commands to confirm the already existence of  PyQt4 in the 
machine.

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


problem fixed

2015-12-04 Thread Ali Zarkesh
My problem fixed
That was only about User Account Control
-- 
https://mail.python.org/mailman/listinfo/python-list


Problem in pip

2015-12-04 Thread Ali Zarkesh
My pip can't download or upgrade anything
I use python 3.5 (win 32) and my pip version is 7.1.2.
The error message is this:

Exception:
Traceback (most recent call last):
File "c:\program files\python 3.5\lib\site-packages\pip\basecommand.py",
line 211, in main
status = self.run(options, args)
File "c:\program files\python
3.5\lib\site-packages\pip\commands\install.py", line 311, in run
root=options.root_path,
File "c:\program files\python 3.5\lib\site-packages\pip\req\req_set.py",
line 646, in install
**kwargs
File "c:\program files\python
3.5\lib\site-packages\pip\req\req_install.py", line 803, in install
self.move_wheel_files(self.source_dir, root=root)
File "c:\program files\python
3.5\lib\site-packages\pip\req\req_install.py", line 998, in move_wheel_files
insolated=self.isolated,
File "c:\program files\python 3.5\lib\site-packages\pip\wheel.py", line
339, in move_wheel_files
clobber(source, lib_dir, True)
File "c:\program files\python 3.5\lib\site-packages\pip\wheel.py", line
317, in clobber
shutil.copyfile(srcfile, destfile)
File "c:\program files\python 3.5\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'c:\program files\python
3.5\Lib\site-packages\PyWin32.chm'

What do I do?
-- 
https://mail.python.org/mailman/listinfo/python-list


Qestion

2015-08-22 Thread ali ranjbar
hi dear friend

I have python version 2.4.3

Which version of PIL is appropriate for me and how can I add it to my systems?

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


AttributeError: LineLogic instance has no attribute 'probe'

2015-07-27 Thread Abder-Rahman Ali
Hello,

I'm quite puzzled with an error I'm having in my code.

In the class ---> LineLogic

I have the following portion of code:

def __init__(self):
  self.probe = vtk.vtkProbeFilter()

probe.SetInputConnection(line.GetOutputPort())
probe.SetSourceData(volumeNode.GetImageData())
probe.Update()

In another class ---> LineLogicTest

I had the following portion of code:

logic = LineLogic()
probe = logic.probe
data = probe.GetOutput().GetPointData().GetScalars()

When I try running the program, I get the following error:

AttributeError: LineLogic instance has no attribute 'probe'

How can I solve this error?

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


Object Pool design pattern

2015-07-23 Thread Abder-Rahman Ali
Hello,

How can we implement the Object Pool design pattern in Python, especially
when the pool consists of array data types?

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


Authentication method with txjson-rpc.

2014-11-14 Thread ali . hallaji1
Hi,
I want to write authentication by txjson,
Please help me in this way.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Twisted and txJSON-RPC

2014-11-14 Thread ali . hallaji1
Hi,
I want to write authentication with txjson-rpc.
please guide me in this method!
best Regards,
Ali Hallaji
-- 
https://mail.python.org/mailman/listinfo/python-list


Attribute error while executing python script

2014-04-16 Thread ali hanif
gr_complex*1,"/home/ubuntu/radar-rx3.capture", True)
self.gr_file_source_0 =
gr.file_source(gr.sizeof_gr_complex*1,"/home/ubuntu/radar-rx3.capture",
True)
self.gr_delay_0_0 = gr.delay(gr.sizeof_gr_complex*1, delay_length)
self.blocks_mult
iply_xx_0 = blocks.multiply_vcc(1)
##
# Connections
##
self.connect((self.uhd_usrp_source_0, 0),
(self.wxgui_waterfallsink2_0, 0))
self.connect((self.gr_file_source_0_0, 0), (self.gr_delay_0_0, 0))
self.connect((self.gr_file_source_0, 0), (self.blocks_multiply_xx_0, 0))
self.connect((self.gr_delay_0_0, 0), (self.blocks_multiply_xx_0, 1))
self.connect((self.blocks_multiply_xx_0, 0), (self.uhd_usrp_sink_0, 0))
self.connect((self.blocks_multiply_xx_0, 0),
(self.wxgui_waterfallsink2_0_0, 0))
def get_variable_slider_1(self):
return self.variable_slider_1
def set_variable_slider_1(self, variable_slider_1):
self.variable_slider_1 = variable_slider_1
self.set_gain(self.variable_slider_1)
self._variable_slider_1_slider.set_value(self.variable_slider_1)
self._variable_slider_1_text_box.set_value(self.variable_slider_1)

def get_variable_slider_0(self):
return self.variable_slider_0
def set_variable_slider_0(self, variable_slider_0):
self.variable_slider_0 = variable_slider_0
self.set_delay_length(self.variable_slider_0)
self._variable_slider_0_slider.set_value(self.variable_slider_0)
self._variable_slider_0_text_box.set_value(self.variable_slider_0)
def get_samp_rate(self):
return self.samp_rate
def set_samp_rate(self, samp_rate):
self.samp_rate = samp_rate
self.wxgui_waterfallsink2_0.set_sample_rate(self.samp_rate)
self.wxgui_waterfallsink2_0_0.set_sample_rate(self.samp_rate)
self.uhd_usrp_sink_0.set_samp_rate(self.samp_rate)
self.uhd_usrp_source_0.set_samp_rate(self.samp_rate)
def get_gain(self):
return self.gain
def set_gain(self, gain):
self.gain = gain
self.uhd_usrp_sink_0.set_gain(self.gain, 0)
def get_delay_length(self):
return self.delay_length
def set_delay_length(self, delay_length):
self.delay_length = delay_length
self.gr_delay_0_0.set_delay(self.delay_length)if __name__ == '__main__':
parser = OptionParser(option_class=eng_option,usage="%prog: [options]")
(options, args) = parser.parse_args()
tb = top_block()
tb.Run(True)

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


Why is pexpect acting funny with sendline() and expect()?

2012-12-26 Thread saqib . ali . 75
I am running Solaris 5-10, python 2.6.2 and pexpect 2.4

I have the very simple python script below which exercises the functionality of 
sending and receiving text from the shell.

My understanding is that pexepect([pexpect.TIMEOUT, x,y,z], timeout=w) will 
return the index of the match that it found *since the last time pexpect was 
called*, but if it takes longer than w seconds, it will return 0.


Here is my very simple script:


#!/usr/bin/env python

import pexpect
myPrompt = " % "

myShell = pexpect.spawn("/bin/tcsh")
print "Sending 'JUNK-0' to shell"
x = myShell.sendline("JUNK-0")
y = myShell.expect([pexpect.TIMEOUT], timeout=1)   
print "y = %s" % y
print myShell.before 
print "=" * 80
print "\n\n"
 
for i in range(2):
print "i = %d" % (i+1)
print "Sending 'JUNK-%d' to shell" % (i+1)
x = myShell.sendline("JUNK-%d" % (i+1))
y = myShell.expect([pexpect.TIMEOUT, myPrompt], timeout=10)  
print "y = %s" % y
print myShell.before
print "=" * 80
print "\n\n"



FYI, my shell prompt is "myMachine % ", however in this script I have simply 
used " % " to keep it generic.

When I run it, I see the following output: 




Sending 'JUNK-0' to shell
y = 0
JUNK-0
myMachine % JUNK-0
JUNK-0: Command not found.
myMachine % 




i = 1
Sending 'JUNK-1' to shell
y = 1
JUNK-0
myMachine 




i = 2
Sending 'JUNK-2' to shell
y = 1
JUNK-0
JUNK-0: Command not found.
myMachine 





Why do I see "JUNK-0" consistently recurring in the output? It should be 
consumed by the first myShell.expect() statement, but it keeps showing up. Why??
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Why does os.stat() tell me that my file-group has no members?

2012-12-19 Thread saqib . ali . 75

Thanks!! This was very helpful. It worked perfectly.
I had no clue about the intricacies of how python represents the group data 
from the underlying OS.

This page doesn't go into to detailed explanation like you did: 
http://docs.python.org/2/library/grp.html



On Wednesday, December 19, 2012 6:17:16 PM UTC-5, Hans Mulder wrote:
> On 19/12/12 22:40:00, saqib.ali...@gmail.com wrote:
> 
> > 
> 
> > 
> 
> > I'm using python 2.6.4 on Solaris 5-10.
> 
> > 
> 
> > I have a file named "myFile". It is owned by someone else, by
> 
> > I ("myuser") am in the file's group ("mygrp"). Below is my python
> 
> > code. Why does it tell me that mygrp has no members???
> 
> > 
> 
> > 
> 
>  import os, pwd, grp
> 
>  stat_info = os.stat("myFile")
> 
>  fileUID = stat_info.st_uid
> 
>  fileGID = stat_info.st_gid
> 
>  fileGroup = grp.getgrgid(fileGID)[0]
> 
>  fileUser = pwd.getpwuid(fileUID)[0]
> 
>  print "grp.getgrgid(fileGID) = %s" % grp.getgrgid(fileGID)
> 
> > 
> 
> > grp.getgrgid(fileGID) = grp.struct_group(gr_name='mygrp', gr_passwd='', 
> > gr_gid=100, gr_mem=[])
> 
> 
> 
> It doesn't say that your group has no members.
> 
> 
> 
> Every account has a primary group, and some accounts also
> 
> have addtional groups.  The primary group is the one in the
> 
> .pw_gid attribute in the pwd entry.  The additional groups
> 
> are those that mention the account in the .gr_mem attribute
> 
> in their grp entry.
> 
> 
> 
> Your experiment shows that nobody has "mygrp" as an additional
> 
> group.  So if you're a member of mygrp, then it must be your
> 
> primary group, i.e. os.getgid() should return 100 for you.
> 
> 
> 
> You can get a complete list of members of group by adding
> 
> two lists:
> 
> 
> 
> def all_members(gid):
> 
> primary_members = [ user.pw_name
> 
> for user in pwd.getpwall() if user.pw_gid == gid ]
> 
> additional_members = grp.getgrgid(gid).gr_mem
> 
> return primary_members + additional_members
> 
> 
> 
> 
> 
> Hope this helps,
> 
> 
> 
> -- HansM
-- 
http://mail.python.org/mailman/listinfo/python-list


Why does os.stat() tell me that my file-group has no members?

2012-12-19 Thread saqib . ali . 75


I'm using python 2.6.4 on Solaris 5-10.

I have a file named "myFile". It is owned by someone else, by I ("myuser") am 
in the file's group ("mygrp"). Below is my python code. Why does it tell me 
that mygrp has no members???


>>> import os, pwd, grp
>>> stat_info = os.stat("myFile")
>>> fileUID = stat_info.st_uid
>>> fileGID = stat_info.st_gid
>>> fileGroup = grp.getgrgid(fileGID)[0]
>>> fileUser = pwd.getpwuid(fileUID)[0]
>>> print "grp.getgrgid(fileGID) = %s" % grp.getgrgid(fileGID)

grp.getgrgid(fileGID) = grp.struct_group(gr_name='mygrp', gr_passwd='', 
gr_gid=100, gr_mem=[])
-- 
http://mail.python.org/mailman/listinfo/python-list


Detect file is locked - windows

2012-11-13 Thread Ali Akhavan
I am trying to open a file in 'w' mode open('file', 'wb'). open() will throw 
with IOError with errno 13 if the file is locked by another application or if 
user does not have permission to open/write to the file. 

How can I distinguish these two cases ? Namely, if some application has the 
file open or not. 

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


Re: solutions books

2012-04-28 Thread ali deli
Hi,




I'am a college physics student.




If you have the following document "

SOLUTIONS MANUAL
  TO FUNDAMENTALS OF ENGINEERING ELECTROMAGNETICS, by

DAVID CHENG ",




Could you please send me the document?
-- 
http://mail.python.org/mailman/listinfo/python-list


How to make PyDev pep8 friendly?

2012-02-08 Thread Ali Zandi
Hi,

I was trying to find a way to configure PyDev e.g. in Eclipse to be
pep8 friendly.

There are a few configurations like right trim lines, use space after
commas, use space before and after operators, add new line at the end
of file which can be configured via Eclipse -> Window -> Preferences -
> PyDev -> Editor -> Code Style -> Code Formatter. But these are not
enough; for example I couldn't find a way to configure double line
spacing between function definitions.

So is there any way to configure eclipse or PyDev to apply pep8 rules
e.g. on each save?

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


Re: Problem while doing a cat on a tabbed file with pexpect

2012-01-15 Thread Saqib Ali

The file me.txt does indeed contain tabs. I created it with vi.

>>> text = open("me.txt", "r").read()
>>> print "\t" in text
True


% od -c me.txt
000   A  \t   B  \t   C  \n
006


% ls -al me.txt
-rw-r--r--   1 myUsermyGroup   6 Jan 15 12:42 me.txt



On Jan 15, 6:40 pm, Cameron Simpson  wrote:
> On 15Jan2012 23:04, Steven D'Aprano  
> wrote:
> | On Sun, 15 Jan 2012 09:51:44 -0800, Saqib Ali wrote:
> | > I am using Solaris 10, python 2.6.2, pexpect 2.4
> | >
> | > I create a file called me.txt which contains the letters "A", "B", "C"
> | > on the same line separated by tabs.
> | [...]
> | > Now, clearly the file contains tabs.
> |
> | That is not clear at all. How do you know it contains tabs? How was the
> | file created in the first place?
> |
> | Try this:
> |
> | text = open('me.txt', 'r').read()
> | print '\t' in text
> |
> | My guess is that it will print False and that the file does not contain
> | tabs. Check your editor used to create the file.
>
> I was going to post an alternative theory but on more thought I think
> Steven is right here.
>
> What does:
>
>   od -c me.txt
>
> show you? TABs or multiple spaces?
>
> What does:
>
>   ls -ld me.txt
>
> tell you about the file size? Is it 6 bytes long (three letters, two
> TABs, one newline)?
>
> Steven hasn't been explicit about it, but some editors will write spaces when
> you type a TAB. I have configured mine to do so - it makes indentation more
> reliable for others. If I really need a TAB character I have a special
> finger contortion to get one, but the actual need is rare.
>
> So first check that the file really does contain TABs.
>
> Cheers,
> --
> Cameron Simpson  DoD#743http://www.cskk.ezoshosting.com/cs/
>
> Yes Officer, yes Officer, I will Officer. Thank you.

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


Re: Problem while doing a cat on a tabbed file with pexpect

2012-01-15 Thread Saqib Ali

Very good question. Let me explain why I'm not opening me.txt directly
in python with open.

The example I have posted is simplified for illustrative purpose. In
reality, I'm not doing pexpect.spawn("/bin/tcsh"). I'm doing
pexpect.spawn("ssh myuser@ipaddress"). Since I'm operating on a remote
system, I can't simply open the file in my own python context.


On Jan 15, 2:24 pm, Dennis Lee Bieber  wrote:
> On Sun, 15 Jan 2012 09:51:44 -0800 (PST), Saqib Ali
>
>  wrote:
> >Now, clearly the file contains tabs. But when I cat it through expect,
> >and collect cat's output, those tabs have been converted to spaces.
> >But I need the tabs!
>
> >Can anyone explain this phenomenon or suggest how I can fix it?
>
>         My question is:
>
>         WHY are you doing this?
>
>         Based upon the problem discription, as given, the solution would
> seem to be to just open the file IN Python -- whether you read the lines
> and use split() by hand, or pass the open file to the csv module for
> reading/parsing is up to you.
>
> -=-=-=-=-=-=-
> import csv
> import os
>
> TESTFILE = "Test.tsv"
>
> #create data file
> fout = open(TESTFILE, "w")
> for ln in [  "abc",
>             "defg",
>             "hijA"  ]:
>     fout.write("\t".join(list(ln)) + "\n")
> fout.close()
>
> #process tab-separated data
> fin = open(TESTFILE, "rb")
> rdr = csv.reader(fin, dialect="excel-tab")
> for rw in rdr:
>     print rw
>
> fin.close()
> del rdr
> os.remove(TESTFILE)
> -=-=-=-=-=-=-
> ['a', 'b', 'c']
> ['d', 'e', 'f', 'g']
> ['h', 'i', 'j', 'A']
> --
>         Wulfraed                 Dennis Lee Bieber         AF6VN
>         wlfr...@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

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


Problem while doing a cat on a tabbed file with pexpect

2012-01-15 Thread Saqib Ali

I am using Solaris 10, python 2.6.2, pexpect 2.4

I create a file called me.txt which contains the letters "A", "B", "C"
on the same line separated by tabs.

My shell prompt is "% "

I then do the following in the python shell:


>>> import pexpect
>>> x = pexpect.spawn("/bin/tcsh")
>>> x.sendline("cat me.txt")
11
>>> x.expect([pexpect.TIMEOUT, "% "])
1
>>> x.before
'cat me.txt\r\r\nA   B   C\r\n'
>>> x.before.split("\t")
['cat me.txt\r\r\nA   B   C\r\n']



Now, clearly the file contains tabs. But when I cat it through expect,
and collect cat's output, those tabs have been converted to spaces.
But I need the tabs!

Can anyone explain this phenomenon or suggest how I can fix it?
-- 
http://mail.python.org/mailman/listinfo/python-list


Changing the system clock with pexpect confuses pexpect!

2011-12-26 Thread Saqib Ali

See my code below.

I'm controlling a shell logged in as root with pexpect.

The class below has a method (startProc) which spawns a shell and
keeps it alive until told to destroy it (stopProc).

The other 2 methods in this class allow me to change the system clock
and to get the IP Address of this machine.

They all work fine except when I advance the system clock, and
then try to get the IP Address.
In that case, I get an exception because pexpect incorrectly thinks
the output it is getting from ifconfig is invalid. But it is not.
Pexpect is just confused. This doesn't happen when I move the clock
backwards. It only happens when I move the clock forward.

I believe what is going on is that internally pexpect uses the system
clock to keep track of when it receives data from spawned processes.
When I mess with the clock, that messes up the internal workings of
pexpect.

Any suggestions what I should do? I have numerous concurrent pexpect
processes running when I modify the clock. Is there anyway to prevent
them all from getting totally screwed up??

-


#!/usr/bin/env python
import pexpect, os, time, datetime, re

def reportPrint(string):
print string

def reportAssert(condition, string)
if condition == False:
print string
raise Exception


class rootManager:

rootProc = None
rootPrompt = "] % "
myPrompt = "] % "

def __init__(self):
pass




def startProc(self):
if self.rootProc != None:
reportPrint("\t\t- Root Process is already created")
else:
self.rootProc = pexpect.spawn ('/bin/tcsh',)
i = self.rootProc.expect([pexpect.TIMEOUT,
self.myPrompt,])
reportAssert(i != 0, "Time-Out exiting")

reportPrint("\t\t- Sending su")
self.rootProc.sendline("su")
i = self.rootProc.expect([pexpect.TIMEOUT, "Password: ",])
reportAssert(i != 0, "Time-Out exiting")

reportPrint("\t\t- Sending Password")
self.rootProc.sendline(ROOT_PASSWORD)
i = self.rootProc.expect([pexpect.TIMEOUT,
self.rootPrompt,])
reportAssert(i != 0, "Time-Out exiting")

reportPrint("\t\t- Root Process created")


def getIPAddr(self):
reportAssert(self.rootProc != None, "No active Root Process!")

reportPrint("\t\t- Sending ifconfig -a")
self.rootProc.sendline("ifconfig -a")
i = self.rootProc.expect([pexpect.TIMEOUT, self.rootPrompt,])
reportAssert(i != 0, "Time-Out exiting")

outputTxt = self.rootProc.before
ipList = [i for i in re.compile("(?<=inet )\d{1,3}\.\d{1,3}\.
\d{1,3}\.\d{1,3}").findall(outputTxt) if i != "127.0.0.1"]
reportAssert(len(ipList) == 1, "Cannot determine IP Address
from 'ifconfig -a': \n%s" % outputTxt)
return ipList[0]


def changeClock(self, secondsDelta):
reportAssert(self.rootProc != None, "No active Root Process!")

newTime = datetime.datetime.now() +
datetime.timedelta(seconds=secondsDelta)
dateStr = "%02d%02d%02d%02d%s" % (newTime.month, newTime.day,
newTime.hour, newTime.minute, str(newTime.year)[-2:])
reportPrint("\t\t- Sending 'date %s' command" % dateStr)
self.rootProc.sendline("date %s" % dateStr)
#Remember, by changing the clock, you are confusing pexpect's
timeout measurement!
# so ignore timeouts in this case
i = self.rootProc.expect([pexpect.TIMEOUT,
self.rootPrompt,],)






def stopProc(self):
if self.rootProc == None:
reportPrint("\t\t- Root Process is already destroyed")
else:

reportPrint("\t\t- Sending exit command")
rootProc.sendline("exit")
i = rootProc.expect([pexpect.TIMEOUT, self.myPrompt])
reportAssert(i != 0, "Time-Out exiting")

reportPrint("\t\t- Sending exit command")
rootProc.sendline("exit")
i = rootProc.expect([pexpect.TIMEOUT, pexpect.EOF])
reportAssert(i != 0, "Time-Out exiting")
self.rootProc.close()
self.rootProc = None
reportPrint("\t\t- Root Process Destroyed")



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


Re: Can't I define a decorator in a separate file and import it?

2011-12-22 Thread Saqib Ali
Thanks for pointing out the mistake!
Works.
- Saqib




On Thu, Dec 22, 2011 at 4:31 PM, Ethan Furman  wrote:

> Saqib Ali wrote:
>
>> MYCLASS.PY:
>>
>> #!/usr/bin/env python
>> import os, sys, string, time, re, subprocess
>> import Singleton
>>
>
> This should be 'from Singleton import Singleton'
>
>
>
>  @Singleton
>> class myClass:
>>def __init__(self):
>>print 'Constructing myClass'
>>
>
> At this point, the *instance* of myClass has already been constructed and
> it is now being initialized.  The __new__ method is where the instance is
> actually created.
>
>
>
>>def __del__(self):
>>print 'Destructing myClass'
>>
>>
>>  > class Singleton:
> >
> > def __init__(self, decorated):
> > self._decorated = decorated
> >
> > def Instance(self):
> > try:
> > return self._instance
> > except AttributeError:
> > self._instance = self._decorated()
> > return self._instance
> >
> > def __call__(self):
> > raise TypeError(
> > 'Singletons must be accessed through the `Instance`
> > method.')
>
>
> ~Ethan~
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Can't I define a decorator in a separate file and import it?

2011-12-22 Thread Saqib Ali
BTW Here is the traceback:

>>> import myClass
Traceback (most recent call last):
  File "", line 1, in 
  File "myClass.py", line 6, in 
@Singleton
TypeError: 'module' object is not callable



Here is Singleton.py:



class Singleton:

def __init__(self, decorated):
self._decorated = decorated

def Instance(self):
try:
return self._instance
except AttributeError:
self._instance = self._decorated()
return self._instance

def __call__(self):
raise TypeError(
'Singletons must be accessed through the `Instance`
method.')



Here is myClass.py:

#!/usr/bin/env python
import os, sys, string, time, re, subprocess
import Singleton


@Singleton
class myClass:

def __init__(self):
print 'Constructing myClass'

def __del__(self):
print 'Destructing myClass'
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Can't I define a decorator in a separate file and import it?

2011-12-22 Thread Saqib Ali
MYCLASS.PY:

#!/usr/bin/env python
import os, sys, string, time, re, subprocess
import Singleton


@Singleton
class myClass:

def __init__(self):
print 'Constructing myClass'

def __del__(self):
print 'Destructing myClass'


SINGLETON.PY:


#!/usr/bin/env python
import os, sys, string, time, re, subprocess
import Singleton


@Singleton
class myClass:

def __init__(self):
print 'Constructing myClass'

def __del__(self):
print 'Destructing myClass'

TRACEBACK:

>>> import myClass
Traceback (most recent call last):
  File "", line 1, in 
  File "myClass.py", line 6, in 
@Singleton
TypeError: 'module' object is not callable



- Saqib





>>
> Post the code, and the traceback.
>
> ~Ethan~
-- 
http://mail.python.org/mailman/listinfo/python-list


Can't I define a decorator in a separate file and import it?

2011-12-22 Thread Saqib Ali


I'm using this decorator to implement singleton class in python:

http://stackoverflow.com/posts/7346105/revisions

The strategy described above works if and only if the Singleton is
declared and defined in the same file. If it is defined in a different
file and I import that file, it doesn't work.

Why can't I import this Singleton decorator from a different file?
What's the best work around?
-- 
http://mail.python.org/mailman/listinfo/python-list


Can I get use pexpect to control this process?

2011-12-21 Thread Saqib Ali

I have a program X that constantly spews output, hundreds of lines per
minute.
X is not an interactive program. IE: it doesn't take any user input.
It just produces a lot of textual output to STDOUT.

I would like to save the output produced by X into a different file
every 5 seconds regardless of the actual content. I want one file to
contain the output from seconds 0-5, another file should contain 6-10,
etc. etc.

Can I do this with pexpect? I'm not sure I can because the "before"
argument gives me EVERYTHING upto the most recent match. What I really
need is something that will give me what was produced between the last
2 calls to pexpect.expect().
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Need help with really elementary pexpect fragment

2011-12-20 Thread Saqib Ali
Oops! Good call.
Thank you. You pointed out my mistake.


- Saqib




On Tue, Dec 20, 2011 at 12:31 AM, Nick Dokos  wrote:

> Saqib Ali  wrote:
>
> >
> > I want to write a pexpect script that simply cd's into a directory ("~/
> > install") and then runs a command from there. It should be so easy.
> > But even my cd command is failing. Can't figure out what the problem
> > is. The command line prompt is "[my machine name here] % "
> >
> > Here is the code fragment:
> >
> > print "Spawning Expect"
> > p = pexpect.spawn ('/bin/tcsh',)
> >
>
> If you execute /bin/tcsh by hand, do you get a "%" prompt?
>
> Nick
>
> > print "Sending cd command"
> > i = p.expect([pexpect.TIMEOUT, "%",])
> > assert i != 0, "Time-Out exiting"
> > p.sendline("cd ~/install")
> >
> > Here is the output:
> >
> > Spawning Expect
> > Sending cd command
> > Time-Out exiting
> >
> >
> > How could I be screwing something so simple up??
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Need help with really elementary pexpect fragment

2011-12-19 Thread Saqib Ali

I want to write a pexpect script that simply cd's into a directory ("~/
install") and then runs a command from there. It should be so easy.
But even my cd command is failing. Can't figure out what the problem
is. The command line prompt is "[my machine name here] % "

Here is the code fragment:

print "Spawning Expect"
p = pexpect.spawn ('/bin/tcsh',)

print "Sending cd command"
i = p.expect([pexpect.TIMEOUT, "%",])
assert i != 0, "Time-Out exiting"
p.sendline("cd ~/install")

Here is the output:

Spawning Expect
Sending cd command
Time-Out exiting


How could I be screwing something so simple up??
-- 
http://mail.python.org/mailman/listinfo/python-list


Hot Bollwood Actresses and Hot Football Players of Spain Soccer Team

2011-08-26 Thread Ashraf Ali
Hot Bollywood Actresses and Hot Football Players of Spain Nation
Soccer Team.

http://bollywoodactresseshotdresses.blogspot.com/
http://spainnationalfootballteamwallpapers.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello My Sweet Friends.

2011-07-31 Thread Ashraf Ali
Hello Friends.
How are you all?
Please Visit the following link if you know about Pakistan and what
happening in the world.

http://bollywoodactresseshotpictures.blogspot.com/
http://jobopportunitiesinpakistan.blogspot.com/
http://hotfemaletennisplayershotphotos.blogspot.com/
http://watchonlineindianmovies.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python-list Digest, Vol 94, Issue 52

2011-07-08 Thread Mapere Ali
Hi,

I need help with a python script to monitor my wireless router
internet usage using a Mac address and then backup the report files on
the server. i would also like to create login access on the website to
have users checkout their bandwidth usage...Please help anyone
I'm a newbie in Python..

Regards
mapere

I'v
On 7/8/11, python-list-requ...@python.org
 wrote:
> Send Python-list mailing list submissions to
>   python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>   http://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subject or body 'help' to
>   python-list-requ...@python.org
>
> You can reach the person managing the list at
>   python-list-ow...@python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Python-list digest..."
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Sweet Friends.

2011-07-07 Thread Ashraf Ali
I bring you a source of entertaintment.Just visit the following link
and know about Bollywood actresses
www.bollywoodactresseshotpictures.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Inexplicable behavior in simple example of a set in a class

2011-07-02 Thread Saqib Ali
> Instance variables are properly created in the __init__()
> initializer method, *not* directly in the class body.
>
> Your class would be correctly rewritten as:
>
> class MyClass2(object):
>     def __init__(self):
>         self.mySet = sets.Set(range(1,10))
>
>     def clearSet(self):
> # ...rest same as before...


Thanks Chris. That was certainly very helpful!!

So just out of curiosity, why does it work as I had expected when the
member contains an integer, but not when the member contains a set?
-- 
http://mail.python.org/mailman/listinfo/python-list


Inexplicable behavior in simple example of a set in a class

2011-07-02 Thread Saqib Ali


I have written two EXTREMELY simple python classes. One class
(myClass1) contains a data attribute (myNum) that contains an integer.
The other class (myClass2) contains a data attribute (mySet) that
contains a set.

I instantiate 2 instances of myClass1 (a & b). I then change the value
of a.myNum. It works as expected.

Then I instantiate 2 instances of myClass2 (c & d). I then change the
value of c.mySet. Bizarrely changing the value of c.mySet also affects
the value of d.mySet which I haven't touched at all!?!?! Can someone
explain this very strange behavior to me? I can't understand it for
the life of me.

Please see below the source code as well as the output.


-- SOURCE CODE --
import sets

class myClass1:

myNum = 9

def clearNum(self):
self.myNum = 0

def __str__(self):
  return str(self.myNum)

class myClass2:

mySet = sets.Set(range(1,10))

def clearSet(self):
self.mySet.clear()

def __str__(self):
  return str(len(self.mySet))

if __name__ == "__main__":

# Experiment 1. Modifying values of member integers in two
different instances of a class
# Works as expected.
a = myClass1()
b = myClass1()
print "a = %s" % str(a)
print "b = %s" % str(b)
print "a.clearNum()"
a.clearNum()
print "a = %s" % str(a)
print "b = %s\n\n\n" % str(b)



# Experiment 2. Modifying values of member sets in two different
instances of a class
# Fails Unexplicably. d is not being modified. Yet calling
c.clearSet() seems to change d.mySet's value
c = myClass2()
d = myClass2()
print "c = %s" % str(c)
print "d = %s" % str(d)
print "c.clearSet()"
c.clearSet()
print "c = %s" % str(c)
print "d = %s" % str(d)




-- OUTPUT --
> python.exe myProg.py

a = 9
b = 9
a.clearNum()
a = 0
b = 9



c = 9
d = 9
c.clearSet()
c = 0
d = 0
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-05-02 Thread Ashraf Ali
What are you lookink for. Just visit to see what you want
www.bollywoodhotactresswallpapers.blogspot.com

www.bollywoodhotwallpaperz.blogspot.com

www.bollywoodhotactresspicz.blogspot.com

www.hottesthitsbollywood.blogspot.com

www.bollywoodhotphotoz.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Sweet Friends

2011-04-20 Thread Ashraf Ali
Friends . What are you looking for? Just visit the folowing link and
find what you want
www.spicybollywoodpix.blogspot.com
hothitsbollywood.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Have a nice day.

2011-04-16 Thread Ashraf Ali
Just visit and know the basic information about Bollywood actresses.
You can here Biographies of all bollywood Actresses.
www.bollystarsbiographies.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-04-12 Thread Ashraf Ali
The most sexiest collection of bollywood.
just visit
www.hottesthitsbollywood.blogspot.com
www.bollywoodhotactresspicz.blogspot.com
www.bollywoodhotphotoz.blogspot.com
www.bollywoodhotactresswallpapers.blogspot.com
www.bollywoodhotwallpaperz.blogspot.com
www.onlineshoppingpk.blogspot.com
www.bollywoodhotpik.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Have a nice day.

2011-04-10 Thread Ashraf Ali
Sale Sale Sale. Just visit the following link to buy computer
accessories. You can buy computer accessories on reasonable prices.
just visit
http://www.onlineshoppingpk.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Have a nice day.

2011-04-04 Thread Ashraf Ali
Hello friends.
 What are you looking for. You can find everything
what you want.
just visit: www.hothitsbollywood.blogspot.com
www.aishwaryaraismile.blogspot.com
www.bollywoodhotpik.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-03-30 Thread Ashraf Ali
you can fine bollywood actresses biography,wallpapers & pictures on
this website
www.bollywoodhotactresses.weebly.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-03-30 Thread Ashraf Ali
You can fine Bollywood Actresses Biography, WAllpapers & Pictures on
the following website.
www.bollywoodhotactresses.weebly.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-03-26 Thread Ashraf Ali
For Biography of Bollywood actresses just visit 
www.hothitsbollywood.blogspot.com
Here Just for You
Aiswarya Rai

Aishwarya Rai Biography
Ash Ash Baby
Aishwarya Krishnaraj Rai was born on 1 November 1973 in Mangalore. Her
father Krishnaraj Rai was a marine engineer and her mother Vrinda Rai
is a writer. She has an older brother Aditya Rai who is in the
merchant navy. He also happened to co-produce Dil Ka Rishta in 2003,
which starred Ash. The family moved to Mumbai where she studied at the
Arya Vidya Mandir and later moved to Ruparel College. She was aspiring
to study architecture but that did not take off while her career in
the glamour industry took off.

Ash won the coveted Miss World crown in 2004. Soon after this she
pledged to donate her eyes after her death. She went on to become the
brand ambassador for brands like L’Oreal, Pepsi, and Coco Cola. She
struck a pose for many international magazines like TIME and was also
voted one of the most attractive and influential women by several
polls. She is the first Indian actor to be part of the jury at the
prestigious Cannes Film Festival. She has appeared in The Oprah
Winfrey Show, Late Show with David Letterman, and 60 Minutes. She was
also the first Indian actress to be replicated in wax at Madame
Tussaud’s Museum in London.

She was briefly involved with actors Salman Khan and Vivek Oberoi
before marrying actor Abhishek Bachchan, son of the iconic Amitabh
Bachchan and Jaya Bachchan. They were married in 2007. The couple have
acted together in many movies. They were seen in the latest Lux ad and
have been roped in to be part of PETA’s Lovebirds campaign.

The Rai Magic
Aishwarya began her career in the film industry with a Tamil film
Iruvar in 1997 which was a hit as opposed to her Hindi film Aur Pyaar
Ho Gaya with Bobby Deol. She won the Filmfare Best Actress Award for
her next Tamil film Jeans, which was also an entry to the Oscars. In
1999, she gained recognition in Bollywood with hits like Taal and Hum
Dil De Chuke Sanam, in which she played opposite Salman Khan and Ajay
Devgan, her role as Nandini fetching her the Filmfare Best Actress
Award.

In 2000, her Tamil film Kandukondain Kandukondain, saw a good turnout.
She took on the role of Shirley, Shahrukh Khan’s sister in Josh and
then played his love interest in Mohabbatein which won her a
nomination for the Filmfare Best Supporting Actress Award. In Hamara
Dil Aapke Paas Hai, she played Preeti Virat, a rape victim and was
considered for the Filmfare Best Actress Award. The year 2001 was a
quiet year for Ash.

Sanjay Leela Bhansali’s Devdas (2002), in which she played Paro with
Shahrukh Khan and Madhuri Dixit, was an instant blockbuster. It also
received a special screening at the Cannes Film Festival. She won the
Filmfare Best Actress award. In 2003, she acted the part of Binodini
in a Bengali film Choker Bali which was based on a novel by
Rabindranath Tagore. The film was nominated for the Golden Leopard at
the Locarno International Film Festival.

The year 2004 saw Ash in her first English film, Gurinder Chaddha’s
Bride & Prejudice, an adaptation of Jane Austen’s Pride & Prejudice.
Her performance as Neerja in Rituparno Ghosh’s Raincoat was praised.
This was followed by her second English film in 2005, The Mistress of
Spices, with Dylan McDermott of The Practice fame. Her dance sequence
Kajra Re from Bunty Aur Babli became one of the most popular tunes of
the year.

She had two films out in 2006. Umrao Jaan with Abhishek Bachchan
failed to do well while Dhoom 2 where she played Sunehri and shared a
‘controversial’ liplock with Hrithik Roshan was a big hit. In 2007,
she played Sujata opposite Abhishek Bachchan in Guru, based on the
industrialist Dhirubhai Ambani and it was successful. Provoked, which
was based on a real episode of domestic violence, won critical
acclaim. The other English film, The Last Legion, did not do so well.

Jodhaa Akbar, released in 2008, in which she acted the part of Jodhaa
Bai with Hrithik Roshan was average. The sequel to Sarkar, Ram Gopal
Varma’s Sarkar Raj, in which she plays a CEO alongside Amitabh
Bachchan and Abhishek Bachchan, is said to be one of her best
performances till date.

In 2009, Rai looked her gorgeous self in The Pink Panther 2 with Steve
Martin.

Going Strong
She was also busy shooting for Mani Ratnam’s Raavan with Abhishek
Bachchan and Endhiran with Rajnikanth in 2009. Both movies will be
released in 2010 along with Action Replay with Akshay Kumar and
Guzaarish, in which she will play Hrithik Roshan’s nurse.
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-03-13 Thread Ashraf Ali
If someone want to know about Bollywood Hot actress and the biography,
Just
www.hotpics00.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-03-02 Thread Ashraf Ali
It’s good to be informed of the world.For lattest news just visit
www.newsbeam.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-03-01 Thread Ashraf Ali
It's a suprise.Do you know what the following blog is about.Just visit
to know
www.hotpics00.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-03-01 Thread Ashraf Ali
It's a suprise.Do you know what the following blog is about.Just visit
to know
www.hotpics00.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Today's Hottest actresses

2011-02-25 Thread Ashraf Ali
Hello friends, what's going on? Would you like to watch hollywood,
bollywood. tollywood, hot actresses pictures,biography, filmography.
Just visit
www.hotpics00.blogspot.com
www.hollywood-99.blogspot.com
www.hollywoodactors-99.blogspot.com
www.bollywoodactors00.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Today's Hottest actresses

2011-02-24 Thread Ashraf Ali
Hello friends. Would you like to know about bollywood hot and
beautiful actresses?You can fine a lot of information about bollywood
actresses.Just visit

 www.hotpics00.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Hello Friends

2011-02-19 Thread Ashraf Ali
Would you like to know about indian acttractive actresses.
You can know about their life.Would you like to remain informed about
latest News. So, just visit the following websites
www.newsbeam.blogspot.com
www.hotpics00.blogspot.com
www.onlinegames786.blogspot.com
www.tvlive00.blogspot.com
www.funnyvids00.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


hot hot and hot indian actresses

2011-02-16 Thread Ashraf Ali
Hello friends how r u all? what about indian hot girls? just visit
www.hotpictures-glaxi.blogspot.com

www.onlinetv-glaxi.blogspot.com

www.onlineradio-glaxi.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


video

2010-06-28 Thread ali alali
http://www.islamhouse.com/tp/236845
-- 
http://mail.python.org/mailman/listinfo/python-list


Particle research opens door for new technology

2009-07-29 Thread Rashid Ali Soomro
Big uses for small particles will be explored at the annual Particle
Technology Research Centre Conference at The University of Western
Ontario July 9 and 10.more http://0nanotechnology0.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Particle research opens door for new technology

2009-07-27 Thread Rashid Ali Soomro
Big uses for small particles will be explored at the annual Particle
Technology Research Centre Conference at The University of Western
Ontario July 9 and 10.more http://0nanotechnology0.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Particle research opens door for new technology

2009-07-21 Thread Rashid Ali Soomro
Big uses for small particles will be explored at the annual Particle
Technology Research Centre Conference at The University of Western
Ontario July 9 and 10.more link http://0nanotechnology0.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Particle research opens door for new technology

2009-07-09 Thread Rashid Ali Soomro
Big uses for small particles will be explored at the annual Particle
Technology Research Centre Conference at The University of Western
Ontario July 9 and 10.
for more details on http://0nanotechnology0.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


pyMPI error on mpi.barrier

2009-05-09 Thread Dina Ali
Hello there

I am trying to paralleize GA code using pyMPI. part of the code and and the
error message is as below.
i write the new positions in a file by root (which is mpi.rank = 0) then
other processes are suppose to wait
until the written in the file finishes to start evaluating the objective.
the problem arises in the barrier method...
any ideas on how to do this would be very much appreciated..

for i in xrange(max_iter):
if (mpi.rank == 0):
update_positions()
save_GA_pops_iter()

mpi.barrier()  < error is here
evaluate_objective()
mpi.barrier()

error message:
mpi.barrier()
mpi.MPIError: MPI_Error_string: invalid communicator: Input/output error
(pyMPI_comm_io.c:367)


Thanks very much
Dina
--
http://mail.python.org/mailman/listinfo/python-list


pyMPI error on mpi.barrier

2009-05-09 Thread Dina Ali
Hello there

I am trying to paralleize GA code using pyMPI. part of the code and and the
error message is as below.
i write the new positions in a file by root (which is mpi.rank = 0) then
other processes are suppose to wait
until the written in the file finishes to start evaluating the objective.
the problem arises in the barrier method...
any ideas on how to do this would be very much appreciated..

for i in xrange(max_iter):
if (mpi.rank == 0):
update_positions()
save_GA_pops_iter()

mpi.barrier()  < error is here
evaluate_objective()
mpi.barrier()

error message:
mpi.barrier()
mpi.MPIError: MPI_Error_string: invalid communicator: Input/output error
(pyMPI_comm_io.c:367)


Thanks very much
Dina
--
http://mail.python.org/mailman/listinfo/python-list


pyMPI error on mpi.barrier

2009-05-09 Thread Dina Ali
Hello there

I am trying to paralleize GA code using pyMPI. part of the code and and the
error message is as below.
i write the new positions in a file by root (which is mpi.rank = 0) then
other processes are suppose to wait
until the written in the file finishes to start evaluating the objective.
the problem arises in the barrier method...
any ideas on how to do this would be very much appreciated..

for i in xrange(max_iter):
if (mpi.rank == 0):
update_positions()
save_GA_pops_iter()

mpi.barrier()  < error is here
evaluate_objective()
mpi.barrier()

error message:
mpi.barrier()
mpi.MPIError: MPI_Error_string: invalid communicator: Input/output error
(pyMPI_comm_io.c:367)


Thanks very much
Dina
--
http://mail.python.org/mailman/listinfo/python-list


pyMPI error on mpi.barrier()

2009-05-07 Thread Dina Ali
Hello there

I am trying to paralleize GA code using pyMPI. part of the code and and the
error message is as below.
i write the new positions in a file by root (which is mpi.rank = 0) then
other processes are suppose to wait
until the written in the file finishes to start evaluating the objective.
the problem arises in the barrier method...
any ideas on how to do this would be very much appreciated..

Thanks very much
Dina

for i in xrange(max_iter):
if (mpi.rank == 0):
update_positions()
save_pso_pops_iter()

mpi.barrier()  

Re: platform.machine(): ImportError: No module named select

2009-04-15 Thread Ali H. Caliskan
I'm using Arch Linux and the current python version is 2.6.1, so I did
create a custom python3 package by myself and tried to install it on /opt
directory. I believe it's a installation issue, because I skipped "make
test" part during compilation, which failed with some errors.

ali


>
> It should work.  The select module should be there; if not, the Python
> build/installation is probably faulty.  From the path names, I'll guess
> this is on Solaris.  If so, there seems to be a long history of problems
> building select and friends.  See, for example:
> <http://mail.python.org/pipermail/python-list/2007-June/617030.html>
>
> Someone with current Solaris experience may be able to help.
>  <http://mail.python.org/mailman/listinfo/python-list>
>
--
http://mail.python.org/mailman/listinfo/python-list


platform.machine(): ImportError: No module named select

2009-04-15 Thread Ali H. Caliskan
Hi!

I'm trying to use "platform.machine()" function, but it doesn't work on
python 3.0.1. Am I doing something wrong here or is it suppose to not work
on py3k? The errors I get while using the python interpreter:

>>> import platform
>>> platform.machine()
Traceback (most recent call last):
  File "", line 1, in 
  File "/opt/lib/python3.0/platform.py", line 1222, in machine
return uname()[4]
  File "/opt/lib/python3.0/platform.py", line 1152, in uname
processor = _syscmd_uname('-p','')
  File "/opt/lib/python3.0/platform.py", line 905, in _syscmd_uname
f = os.popen('uname %s 2> /dev/null' % option)
  File "/opt/lib/python3.0/os.py", line 629, in popen
import subprocess, io
  File "/opt/lib/python3.0/subprocess.py", line 361, in 
import select
ImportError: No module named select


Kind regards,
Ali
--
http://mail.python.org/mailman/listinfo/python-list


UnicodeEncodeError

2008-12-15 Thread Ali art

Hello!
I am using Windows XP professional version 2002 Service pack 3. AMD 
Athlon(TM)XP 2400+ 2.00GHz 992MB RAM.
I have downloaded Windows x86 MSI Instaler Python 3.0 (sig) (r30:67507, Dec  3 
2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win32 
Control Panel -> System -> Advanced -> Environment Variables. System Variables 
-> Path -> edit C:\Windows\System32\Wbem;C:\Python30
start -> programs -> python 3.0 -> IDLE(Python GUI) 
-> IDLE 3.0 -> File -> New Window -> i wrote "print('ğüşçöı')" without qutes-> 
File -> Save -> Python30 -> i gave file name "d2.py" without qutes-> and Run -> 
Run Module -> it gives error "invalid character in identifier"
then i tried second method
start -> run -> cmd -> d2.py and enter it gives the error
C:\>d2.pyTraceback (most recent call last):  File "C:\Python30\d2.py", line 4, 
in print('\u011fü\u015fçö\u0131')  File "C:\Python30\lib\io.py", 
line 1491, in writeb = encoder.encode(s)  File 
"C:\Python30\lib\encodings\cp437.py", line 19, in encodereturn 
codecs.charmap_encode(input,self.errors,encoding_map)[0]UnicodeEncodeError: 
'charmap' codec can't encode character '\u011f' in position0: character maps to 

C:\>
But if i write in Phyton Shell -> >>> print('ğüşçöı') and pressed enter -> 
gives 'ğüşçöı' it works.
What is wrong?
all the best
_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline--
http://mail.python.org/mailman/listinfo/python-list


Feedback

2008-11-22 Thread Ali art

I am using Windows XP professional version 2002 Service pack 3. AMD 
Athlon(TM)XP 2400+ 2.00GHz 992MB RAM.I have download Windows x86 MSI Instaler 
(3.0rc2) Python 3.0rc2 Release: 06-Nov-2008. 
I want to use source code file from Python Command line but I could not.
 
Firstly i opened IDLE and clicked on File → New Window and pasted  
#!/usr/bin/python #Filename: helloworld.py print('Hello World')
and saved  "helloworld.py" without quotes.Then i invoced pyton command line.
Python 3.0rc2 (r30rc2:67141, Nov  7 2008, 11:43:46) [MSC v.1500 32 bit 
(Intel)]on win32Type "help", "copyright", "credits" or "license" for more 
information.>>> python helloworld.py 
and pressed enterBut it did not work gives the error
 Python 3.0rc2 (r30rc2:67141, Nov  7 2008, 11:43:46) [MSC v.1500 32 bit 
(Intel)]on win32Type "help", "copyright", "credits" or "license" for more 
information.>>> python helloworld.py  File "", line 1python 
helloworld.py^SyntaxError: invalid syntax>>>
Did i meke any misteke? I tried Control Panel -> System -> Advanced -> 
Environment Variables. System Variables -> C:\Python30
but it still gives same error.
_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE--
http://mail.python.org/mailman/listinfo/python-list


Re: Test if list contains another list

2008-11-16 Thread Ali

Its funny, I just visited this problem last week.

<http://dulceetutile.blogspot.com/2008/11/strange-looking-python-
statement_17.html>

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


Socket Question

2008-10-01 Thread Ali Hamad
Hello All :

A socket question from a networking newbie.  I need to create
a server that:

1) receive a message from client.
2) check that message and response to it.
3) the client get the server message and send another message.
4) finally, the server receive the message and close the connection.

I have successfully done this. However, I couldn't use the same socket
to send the second message
to the server. I have googled but all the examples are only for sending
one message and receiving the response.

in my client code, I have :

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', 1888))
s.send("1st message")
response = s.recv(1024)
validate(response)
s.send("2nd message")
response2 = s.recv(1024)
s.close()

However, I got the first response just fine from the server but the
second message didn't get to the server.

So, the solution I came up with is to send the 1st message, close the
socket, create new socket,
and send the 2nd message.

I came up with something like :

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', 1888))
s.send("1st message")
response = s.recv(1024)
s.close()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', 1888))
s.send("2nd message")
response = s.recv(1024)
s.close()

and it works !

My Question :

is it possible to send/receive from the same socket more than one message ?

Thank you for your assistance in advance,
--
http://mail.python.org/mailman/listinfo/python-list


pympi and threading in python

2008-08-11 Thread Dina Ali
Hello there

I am confused in the usage/differences of pympi and threading in python.
What I want to do it to run multiple MCMC simulations by dividing the number
of the chains I want to run on number of the processors available. Some
methods need to be synchronized/locked until some addition operation is
finished.

I will be very grateful if some one could help.

Thanks very much

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

Re: Freesoftware for auto/intelligent code completing in Python

2008-07-10 Thread Ali Servet Dönmez
On Jul 10, 1:07 am, Gros Bedo <[EMAIL PROTECTED]> wrote:
> Hello,
> Ali I totally support you, neither I couldn't find any really working code 
> completion for python in a free software, and it's really a mess, at least on 
> Linux.
>
> On Windows, there is PyScripter (http://pyscripter.googlepages.com/), but it 
> is based on Delphi, and as such it's not portable. But it's a free software 
> (even if I couldn't find the sources, they say you can download them).
>
> It is said to be working on Linux via Wine, so if you really need a code 
> completion tool you could give it a try.
> _
> Téléchargez gratuitement des émoticônes pour pimenter vos conversations 
> Messengerhttp://specials.fr.msn.com/femmes/amour/emoticonesLove.aspx

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


Re: Freesoftware for auto/intelligent code completing in Python

2008-07-06 Thread Ali Servet Dönmez
On Jul 4, 8:58 am, Aspersieman <[EMAIL PROTECTED]> wrote:
> Jeroen Ruigrok van der Werven wrote:> -On [20080630 23:51], Ali Servet Dönmez 
> ([EMAIL PROTECTED]) wrote:
>
> >> This could be an extension, a plugin, an Emacs mode, a new editor or
> >> even a brand new huge all-fancy IDE, I don't care, but what am I
> >> missing here?
>
> > Vim's omnicomplete (CTRL-X CTRL-O).
>
> > See :help omnifunc within vim.
>
> I find Vim with ctags, omnicomplete and calltip support the BEST I've
> tried so far. And I've tried many.
>
> Here's a tutorial on setting this up.
>    http://blog.sontek.net/2008/05/11/python-with-a-modular-ide-vim/
>
> Regards
>
> Nicol
>
> --
>
> The three things to remember about Llamas:
> 1) They are harmless
> 2) They are deadly
> 3) They are made of lava, and thus nice to cuddle.

Oh my, that thing seems to work! I didn't try it my self, but checked
out the URL you've mentioned. I think I've been unfair to Yu-Xi Lim
before... Thank you.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Freesoftware for auto/intelligent code completing in Python

2008-07-06 Thread Ali Servet Dönmez
On Jul 4, 7:31 am, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]
nomine.org> wrote:
> -On [20080630 23:51], Ali Servet Dönmez ([EMAIL PROTECTED]) wrote:
>
> >This could be an extension, a plugin, an Emacs mode, a new editor or
> >even a brand new huge all-fancy IDE, I don't care, but what am I
> >missing here?
>
> Vim's omnicomplete (CTRL-X CTRL-O).
>
> See :help omnifunc within vim.
>
> --
> Jeroen Ruigrok van der Werven  / asmodai
> イェルーン ラウフロック ヴァン デル ウェルヴェンhttp://www.in-nomine.org/|http://www.rangaku.org/| 
> GPG: 2EAC625B
> Don't always think in a straight line...

Jeroen, your advice might be *the solution* to the problem; but I'm
not really into using Vi(m). Thank your very much anyway!
--
http://mail.python.org/mailman/listinfo/python-list

Re: Freesoftware for auto/intelligent code completing in Python

2008-07-06 Thread Ali Servet Dönmez
On Jul 4, 7:10 am, Yu-Xi Lim <[EMAIL PROTECTED]> wrote:
> Ali Servet Dönmez wrote:
>
> > I tried code come completion options in Emacs for Python, but none of
> > them was satisfactory to me. I'd be glad to hear how did your friend
> > get it work though.
>
> Perhaps it would help to say what ways the completion in Emacs was not
> satisfactory?

I simply couldn't manage to get it work.

> FWIW, it should be possible to get IPython-type completion in Emacs, but
> I hadn't managed that yet :( Refactoring, too. Both involve Pymacs but
> I've had limited success with that.

Yeah, that's what I'm talking about.

> As for PyDev (I know you said "No" to this already), the main problem I
> have with PyDev/Eclipse is the woefully underpowered editor (compared to
> Emacs), and poor indentation logic. On the plus side, refactoring works
> pretty well. So why not PyDev?

I tried PyDev with Eclipse too and it's an aweful environment to me.
Auto-completion was a total failure too...

> I'm just wondering, you insist on Free/Libre software solutions, and say
> the ones you tried don't work for you. Why not "use the source" and fix
> them so they work your way? ;) To quote you: "how hard it could be be
> writing a freesoftware which would automatically/intelligently auto
> complete Python code?"

Yes Yu-Xi Lim, you are right. Let me quote my self here: "I made my
mind
and I could volunteer to make this happen as thesis project for my
incoming graduation in the next year."
--
http://mail.python.org/mailman/listinfo/python-list


Re: Freesoftware for auto/intelligent code completing in Python

2008-07-06 Thread Ali Servet Dönmez
On Jul 4, 12:56 am, "Python Nutter" <[EMAIL PROTECTED]> wrote:
> If you guys can get your head out of IDE land, you'll find iPython
> does a fantastic job at introspection and Auto-completion, you can
> launch shell commands and editors and when done saving be back in the
> iPython shell, save memory/variable space to disk so you can come back
> the next day and continue off where you were. It puts IDEs to shame.

I have quick tried iPython and autocomplete seems to work pretty
decently, even if it's not same as in a GUI. Thank you very much for
your advice.

Could you let me know how do work with .py files in iPython please?

> If you can't get your Windows-centric IDE need eliminated, then Wing
> IDE 101 will not auto-complete, its been deliberately disabled to
> force students (hence 101) to memorize python/function names.
>
> Komodo Edit is a free download and will Auto-complete.

Yes, Komodo Edit works well too... Thanks.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Freesoftware for auto/intelligent code completing in Python

2008-07-03 Thread Ali Servet Dönmez
On Jul 2, 10:39 pm, Ivan Ven Osdel <[EMAIL PROTECTED]> wrote:
> Not really, I have just worked with them more.
>
> - Original Message -----
> From: "Ali Servet Dönmez" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Sent: Wednesday, July 2, 2008 1:15:04 PM GMT -06:00 US/Canada Central
> Subject: Re: Freesoftware for auto/intelligent code completing in Python
>
> On Jul 2, 7:55 pm, Ivan Ven Osdel <[EMAIL PROTECTED]> wrote:
> > The free Python editors/IDEs really do need work as far as code completion 
> > goes but I am hopeful.
>
> > IMO Stani's Python Editor comes closest by providing some code sense 
> > through a combination of history and doc strings for Python built-ins. 
> > Where it falls short is the ability to scan doc strings for your own code 
> > and non built-in modules in the Python path. Python already has the ground 
> > work in place to accomplish something similar to VS's XML 
> > commenting/intellisense system. With a Python interpretor you can type 
> > help(myModule) and get the doc string documentation. So I imagine 
> > implementing code sense for code being developed as well as non built-in 
> > modules would just be a matter of finding the appropriate module at the 
> > right time and piping the output of help([module]) to a popup window.
>
> > If your willing to help work on something like that I suggest contacting 
> > Stani directlyhttp://pythonide.stani.be/orcreating a plugin for 
> > Geanyhttp://geany.uvena.de/
>
> > Ivan Ven Osdel
> > Software Engineerhttp://www.datasyncsuite.com/
>
> > - Original Message -
> > From: "Ali Servet Dönmez" <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Sent: Wednesday, July 2, 2008 3:33:59 AM GMT -06:00 US/Canada Central
> > Subject: Re: Freesoftware for auto/intelligent code completing in Python
>
> > On Jul 1, 12:15 am, Fuzzyman <[EMAIL PROTECTED]> wrote:
> > > On Jun 30, 10:46 pm, Ali Servet Dönmez <[EMAIL PROTECTED]> wrote:
>
> > > > I don't want to be so mean here, but how hard it could be be writing a
> > > > freesoftware which would automatically/intelligently auto complete
> > > > Python code? (I mean something that really does the job, like
> > > > Microsoft's Visual Studio or Sun's NetBeans or something else, you
> > > > name it, but just don't give me PyDev please...)
>
> > > > This could be an extension, a plugin, an Emacs mode, a new editor or
> > > > even a brand new huge all-fancy IDE, I don't care, but what am I
> > > > missing here?
>
> > > > Could someone please point me out something that I'm really missing
> > > > which is already present in the wild, otherwise I'd like discuss with
> > > > whoever is willing to help me to get this thing done. I made my mind
> > > > and I could volunteer to make this happen as thesis project for my
> > > > incoming graduation in the next year.
>
> > > > Regards you all,
> > > > Ali Servet Dönmez
>
> > > Vim, Emacs, Wing, Komodo, ... more?
>
> > > Yeah, I guess you're missing something. :-)
>
> > > Michael Foordhttp://www.ironpythoninaction.com/http://www.trypython.org/
>
> > I've checkout Wing IDE's license and it doesnt' seem to be a
> > freesoftware; am I wrong?
>
> Ivan, thanks for your reply. I am curious how come you're suggesting
> me those two, but not others. Is there a good/particular reason for
> that?
>
>

I see, thank you! I'll certainly keep that in mind.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Freesoftware for auto/intelligent code completing in Python

2008-07-03 Thread Ali Servet Dönmez
On Jul 3, 7:42 pm, Fuzzyman <[EMAIL PROTECTED]> wrote:
> On Jun 30, 11:25 pm, Ali Servet Dönmez <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jul 1, 12:15 am, Fuzzyman <[EMAIL PROTECTED]> wrote:
>
> > > On Jun 30, 10:46 pm, Ali Servet Dönmez <[EMAIL PROTECTED]> wrote:
>
> > > > I don't want to be so mean here, but how hard it could be be writing a
> > > > freesoftware which would automatically/intelligently auto complete
> > > > Python code? (I mean something that really does the job, like
> > > > Microsoft's Visual Studio or Sun's NetBeans or something else, you
> > > > name it, but just don't give me PyDev please...)
>
> > > > This could be an extension, a plugin, an Emacs mode, a new editor or
> > > > even a brand new huge all-fancy IDE, I don't care, but what am I
> > > > missing here?
>
> > > > Could someone please point me out something that I'm really missing
> > > > which is already present in the wild, otherwise I'd like discuss with
> > > > whoever is willing to help me to get this thing done. I made my mind
> > > > and I could volunteer to make this happen as thesis project for my
> > > > incoming graduation in the next year.
>
> > > > Regards you all,
> > > > Ali Servet Dönmez
>
> > > Vim, Emacs, Wing, Komodo, ... more?
>
> > > Yeah, I guess you're missing something. :-)
>
> > > MichaelFoordhttp://www.ironpythoninaction.com/http://www.trypython.org/
>
> > I probabily am... Could you please kindly tell me what's the way to
> > get it work for Emacs?
>
> Not personally I'm afraid. Although I did use Emacs today for the
> first time (pairing with a colleague who inflicted it upon me). We did
> have code completion working fine, but I have no idea how to set it up
> (maybe the intarwebz can help?).
>
> Michael Foord
> --http://www.ironpythoninaction.com/http://www.trypython.org/

I tried code come completion options in Emacs for Python, but none of
them was satisfactory to me. I'd be glad to hear how did your friend
get it work though.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Freesoftware for auto/intelligent code completing in Python

2008-07-03 Thread Ali Servet Dönmez
On Jul 3, 7:38 pm, Fuzzyman <[EMAIL PROTECTED]> wrote:
> On Jul 2, 9:33 am, Ali Servet Dönmez <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jul 1, 12:15 am, Fuzzyman <[EMAIL PROTECTED]> wrote:
>
> > > On Jun 30, 10:46 pm, Ali Servet Dönmez <[EMAIL PROTECTED]> wrote:
>
> > > > I don't want to be so mean here, but how hard it could be be writing a
> > > > freesoftware which would automatically/intelligently auto complete
> > > > Python code? (I mean something that really does the job, like
> > > > Microsoft's Visual Studio or Sun's NetBeans or something else, you
> > > > name it, but just don't give me PyDev please...)
>
> > > > This could be an extension, a plugin, an Emacs mode, a new editor or
> > > > even a brand new huge all-fancy IDE, I don't care, but what am I
> > > > missing here?
>
> > > > Could someone please point me out something that I'm really missing
> > > > which is already present in the wild, otherwise I'd like discuss with
> > > > whoever is willing to help me to get this thing done. I made my mind
> > > > and I could volunteer to make this happen as thesis project for my
> > > > incoming graduation in the next year.
>
> > > > Regards you all,
> > > > Ali Servet Dönmez
>
> > > Vim, Emacs, Wing, Komodo, ... more?
>
> > > Yeah, I guess you're missing something. :-)
>
> > > MichaelFoordhttp://www.ironpythoninaction.com/http://www.trypython.org/
>
> > I've checkout Wing IDE's license and it doesnt' seem to be a
> > freesoftware; am I wrong?
>
> Wing 101 is free. The software is good enough though that it is worth
> supporting its development by paying for it.
>
> Michael Foord
> --http://www.ironpythoninaction.com/http://www.trypython.org/

I wasn't referring to its fee, but the fact of having a freedom
restricting license.
--
http://mail.python.org/mailman/listinfo/python-list


  1   2   >