Re: Help in Nltk

2013-08-25 Thread projectfack
im a beginner so im trying to code using python ,Here system is just the program ,as the program can be done in any language i chose to do in nltk lib in python -- http://mail.python.org/mailman/listinfo/python-list

Re: python eval function

2013-08-25 Thread Steven D'Aprano
On Sun, 25 Aug 2013 23:48:34 +0430, Mohsen Pahlevanzadeh wrote: > Dear all, > > eval doesn't run my code at the following link: > http://stackoverflow.com/questions/18432198/eval-function-doesnt-work- in-python Are you asking a question or just sharing a useful link? > Thank you before your

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread MRAB
On 25/08/2013 23:32, David M. Cotter wrote: i got it!! OMG! so sorry for the confusion, but i learned a lot, and i can share the result: the CORRECT code *was* what i had assumed. the Python side has always been correct (no need to put "u" in front of strings, it is known that the bytes are u

Re: python eval function

2013-08-25 Thread Ned Batchelder
On 8/25/13 7:49 PM, Terry Reedy wrote: On 8/25/2013 3:18 PM, Mohsen Pahlevanzadeh wrote: eval doesn't run my code at the following link: http://stackoverflow.com/questions/18432198/eval-function-doesnt-work-in-python Already answered there (code is statememt, not expression) The larger iss

Re: python eval function

2013-08-25 Thread Terry Reedy
On 8/25/2013 3:18 PM, Mohsen Pahlevanzadeh wrote: eval doesn't run my code at the following link: http://stackoverflow.com/questions/18432198/eval-function-doesnt-work-in-python Already answered there (code is statememt, not expression) -- Terry Jan Reedy -- http://mail.python.org/mailman/

python eval function

2013-08-25 Thread Mohsen Pahlevanzadeh
Dear all, eval doesn't run my code at the following link: http://stackoverflow.com/questions/18432198/eval-function-doesnt-work-in-python Thank you before your answer... --mohsen -- http://mail.python.org/mailman/listinfo/python-list

Imaplib gmail move email from inbox to another folder then delete from inbox not working

2013-08-25 Thread rob
I am using imaplib to copy a message from inbox to another folder. I then use /Deleted on the message. When I use expunge it does not remove the message from the inbox. I still have the 'Inbox' and 'newfolder' labels on the message. I want to only have the 'newfolder' label on the message. -

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread David M. Cotter
i got it!! OMG! so sorry for the confusion, but i learned a lot, and i can share the result: the CORRECT code *was* what i had assumed. the Python side has always been correct (no need to put "u" in front of strings, it is known that the bytes are utf8 bytes) it was my "run script" function

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread David M. Cotter
fair enough. I can provide further proof of strangeness. here is my latest script: this is saved on disk as a UTF8 encoded file, and when viewing as UTF8, it shows the correct characters. == # -*- coding: utf-8 -*- import time, kjams, kjams_lib def log_success(msg, successB, s

Re: Python and mysql 3 tier programming

2013-08-25 Thread Gary Roach
On 08/23/2013 08:38 AM, Jason Friedman wrote: System Debian Wheezy Linux Python 2.7 Mysql 5.5.31 Apache Server I am somewhat conversant with html, css, SQL, mysql, Apache and Debian Linux. Actually I have been using Debian for over 10 year. I spent over 5 year, prior to retirement, programming d

Re: Checking homogeneity of Array using List in Python

2013-08-25 Thread Dave Angel
sahil301...@gmail.com wrote: > I am unable to check homogeneity of Array. > I have take Array type Int to be default for my code. > > Instead of getting Error on NON-INT Values. But none of them below are int values. > I want to take input as string. > Then check if all input is in (0-9) form, I

About executable

2013-08-25 Thread Luis José Novoa
Hi All. I am trying to create an executable file containing an optimization code using the pyomo package for optimization modeling along with ither packages like Numpy. When using py2exe to perform the task it generates the executable file, but when I try to run it it reports: Import Error: No m

Re: multifile programming on python 3

2013-08-25 Thread Mohsen Pahlevanzadeh
On Sun, 2013-08-25 at 12:13 +, Dave Angel wrote: > Mohsen Pahlevanzadeh wrote: > > > Dear all, > > > > I need help about multifile programming on python 3 and i questioned on > > stackoverflow : > > http://stackoverflow.com/questions/18391230/eclipse-python-nameerror-name-mymodule-is-not-defin

Re: Which DLL did fail to load

2013-08-25 Thread Terry Reedy
On 8/25/2013 7:23 AM, Александров Петр wrote: When DLL load is failed, Python doesn't writes the DLL name. Wouldn't it better to add a feature to Python to write the name of DLL which load has been failed? If Python initiates a dll load and Python knows the name of the dll and Python writes t

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread Terry Reedy
On 8/25/2013 1:57 PM, David M. Cotter wrote: i'm sorry this is so confusing, let me try to re-state the problem in as clear a way as i can. I have a C++ program, with very well tested unicode support. All logging is done in utf8. I have conversion routines that work flawlessly, so i can assu

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread Vlastimil Brom
2013/8/25 David M. Cotter : > i'm sorry this is so confusing, let me try to re-state the problem in as > clear a way as i can. > > I have a C++ program, with very well tested unicode support. All logging is > done in utf8. I have conversion routines that work flawlessly, so i can > assure you

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread David M. Cotter
i'm sorry this is so confusing, let me try to re-state the problem in as clear a way as i can. I have a C++ program, with very well tested unicode support. All logging is done in utf8. I have conversion routines that work flawlessly, so i can assure you there is nothing wrong with logging and

PyPI and TestPyPI registration problems

2013-08-25 Thread Lele Gaifax
Hi all, I tried registering myself on the TestPyPI site, but all the methods failed: * the "manual" method terminates with an Internal Error: Error... Internal Server Error Traceback (most recent call last): File "/data/testpypi/src/pypi/webui.py", line 324, in run se

Re: Checking homogeneity of Array using List in Python

2013-08-25 Thread Joel Goldstick
On Sun, Aug 25, 2013 at 2:03 AM, Chris Angelico wrote: > On Sun, Aug 25, 2013 at 3:50 PM, wrote: >> NOTE: NO INBUILT FUNCTION BE USED. Thank you in advance. You don't make it easy to help you with your homework by leaving out information about what you have learned so far, and perhaps what you

Re: Help in Nltk

2013-08-25 Thread Joel Goldstick
On Sat, Aug 24, 2013 at 5:41 PM, wrote: > > Can anyone help me for the tasks below in nltk > > > 1. The system mustdemonstrate false positiveand false > negativeexamples > using any stemmer (Task 1.1) > 2. The system mustdemonstrate the diffe

Re: multifile programming on python 3

2013-08-25 Thread Dave Angel
Mohsen Pahlevanzadeh wrote: > Dear all, > > I need help about multifile programming on python 3 and i questioned on > stackoverflow : > http://stackoverflow.com/questions/18391230/eclipse-python-nameerror-name-mymodule-is-not-defined > > I thank you if you answer me. > > --mohsen You have a respo

Which DLL did fail to load

2013-08-25 Thread Александров Петр
Hello. When DLL load is failed, Python doesn't writes the DLL name. Wouldn't it better to add a feature to Python to write the name of DLL which load has been failed? -- http://mail.python.org/mailman/listinfo/python-list

Re: typeid(obj).name in C++ vs (python)

2013-08-25 Thread Ian Kelly
type(obj).__name__ On Sun, Aug 25, 2013 at 2:40 AM, Mohsen Pahlevanzadeh wrote: > Dear all, > > If you C++, I need to (typeid(obj).name) in python. Does python same > thing? > > --mohsen > > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/pytho

Re: cpmplex function call

2013-08-25 Thread Chris Angelico
On Sun, Aug 25, 2013 at 7:33 PM, Mohsen Pahlevanzadeh wrote: > Dear all, > > > Suppose I have function with with 10 > args: > > "def foo(arg1,arg2,arg3,arg4.): " > > I need to call somtimes with arg1 , somtimes arg1, arg4, , somtimes arg 4 , > arg7 , my program doesn't specify to type of call

cpmplex function call

2013-08-25 Thread Mohsen Pahlevanzadeh
Dear all, Suppose I have function with with 10 args: "def foo(arg1,arg2,arg3,arg4.): " I need to call somtimes with arg1 , somtimes arg1, arg4, , somtimes arg 4 , arg7 , my program doesn't specify to type of call. Does python same way to help me? My link: http://stackoverflow.com/quest

Re: typeid(obj).name in C++ vs (python)

2013-08-25 Thread Mohsen Pahlevanzadeh
On Sun, 2013-08-25 at 13:10 +0430, Mohsen Pahlevanzadeh wrote: > Dear all, > > If you C++, I need to (typeid(obj).name) in python. Does python same > thing? > > --mohsen > Of course i need to typeof(). -- http://mail.python.org/mailman/listinfo/python-list

typeid(obj).name in C++ vs (python)

2013-08-25 Thread Mohsen Pahlevanzadeh
Dear all, If you C++, I need to (typeid(obj).name) in python. Does python same thing? --mohsen -- http://mail.python.org/mailman/listinfo/python-list

multifile programming on python 3

2013-08-25 Thread Mohsen Pahlevanzadeh
Dear all, I need help about multifile programming on python 3 and i questioned on stackoverflow : http://stackoverflow.com/questions/18391230/eclipse-python-nameerror-name-mymodule-is-not-defined I thank you if you answer me. --mohsen -- http://mail.python.org/mailman/listinfo/python-list