Re: py2exe and croatian letters

2009-10-19 Thread Samir Alukovic'
Mark Tolonen wrote: "Samir aluko...@work" wrote in message news:ab6475d0-133c-478d-8f08-eafea0733...@j39g2000yqh.googlegroups.com... I am making a simple program in Croatian. In the beginning I set "# - *- coding: cp1250 -*-" code and when i run it in Python shell it come

Re: py2exe and croatian letters

2009-10-19 Thread Samir Aluković
Mark Tolonen wrote: "Samir aluko...@work" wrote in message news:ab6475d0-133c-478d-8f08-eafea0733...@j39g2000yqh.googlegroups.com... I am making a simple program in Croatian. In the beginning I set "# - *- coding: cp1250 -*-" code and when i run it in Python shell it come

py2exe and croatian letters

2009-10-17 Thread Samir aluko...@work
I am making a simple program in Croatian. In the beginning I set "# - *- coding: cp1250 -*-" code and when i run it in Python shell it comes out fine, but when i compile it with py2exe he doesn't print out croatian letters but he prints out tottaly other letters. I checked the CMD and it supports c

Re: The Python Papers, Volume 3 Issue 2

2008-09-04 Thread Samir
look towards all of your > continued support and contributions. > > Thank you. > > Cheers > Maurice Ling > Co-Editor-in-Chief, The Python Papers Anthology Good to see that the newest edition of the journal is out. Also, I believe the correct URL should either be: http://ojs.pythonpapers.org/ or http://ojs.pythonpapers.org/index.php/tpp Thanks for providing this great resource. Samir -- http://mail.python.org/mailman/listinfo/python-list

Re: Books to begin learning Python

2008-08-07 Thread Samir
com/thinkpython/thinkCSpy/html/index.html Incidentally, you can find documentatio for Python v3.0 at the official Python site here: http://docs.python.org/dev/3.0/ I hope that helps. Good luck! Samir -- http://mail.python.org/mailman/listinfo/python-list

Re: Request Help Debugging Program

2008-07-23 Thread Samir
On Jul 23, 9:14 pm, mzdude <[EMAIL PROTECTED]> wrote: > On Jul 23, 6:30 pm, Samir <[EMAIL PROTECTED]> wrote: > > > Hi Everyone, > > > def findSumOfDivisor(n): > > >     return sum(divisor)                # fine using function sum() > > >        

Request Help Debugging Program

2008-07-23 Thread Samir
llable Even after cluttering the code with print statements every other line, I am completely lost. Does anyone know why I get this error? Thanks in advance. Samir -- http://mail.python.org/mailman/listinfo/python-list

Re: Iterating Through List or Tuple

2008-07-22 Thread Samir
Fredrik, Marc, Larry -- Thank you all for your very fast and informative replies. I had not come across "itertools" in my search. This group is a great resource. Samir -- http://mail.python.org/mailman/listinfo/python-list

Iterating Through List or Tuple

2008-07-22 Thread Samir
without having to resort to an "if" or "while" statement? (My question concerns the more general use of lists and tuples, not necessarily determining days of the week. I know about using "import datetime" and "from calendar import weekday" but thought that using the days of the week would best illustrate my problem.) As always, thanks in advance. Samir -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting List of String to Integer

2008-07-22 Thread Samir
de come up with another way. Thank you. @ptn -- Thanks for the explanation between "append" and "extend". I guess I've gotten lazy and have always used "append", apparently even in situations where it may not be appropriate. Thanks again, everyone! Samir -- h

Re: Converting List of String to Integer

2008-07-21 Thread Samir
On Jul 21, 6:15 pm, Andrew Freeman <[EMAIL PROTECTED]> wrote: > Samir wrote: > > On Jul 21, 3:20 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > > >> Samir wrote: > > >>> Hi Everyone, > > >>> I am relatively new to Python so please forgiv

Re: Converting List of String to Integer

2008-07-21 Thread Samir
On Jul 21, 4:44 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > Samir wrote: > > On Jul 21, 3:20 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > > >> Samir wrote: > > >>> Hi Everyone, > > >>> I am relatively new to Python so please forgiv

Re: Converting List of String to Integer

2008-07-21 Thread Samir
On Jul 21, 3:20 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > Samir wrote: > > Hi Everyone, > > > I am relatively new to Python so please forgive me for what seems like > > a basic question. > > > Assume that I have a list, a, composed of nested lists with

Converting List of String to Integer

2008-07-21 Thread Samir
n.append([int(v) for v in k]) print n Does anyone know what I am doing wrong? Thanks in advance. Samir -- http://mail.python.org/mailman/listinfo/python-list

PyQt QScrollView/QGridLayout question

2008-07-11 Thread Samir Grover
folks, I am trying put some user input fields into a scrollable (QScrollView) window. So, I placed a QLabel at 0,0 and QLineEdit at 0,1, next to QLabel. Somehow, results are not what I am expecting.It is placing QLineEdit below QLabel. I am not using designer for this. Please, notice that I con

Re: Extracting text from a string + note

2006-09-07 Thread samir
Saluton! Tempo wrote: > I am having a little trouble extracting text from a string. The > string that I am dealing with is pasted below, and I want to > extract the prices that are contained in the string below. This string is absolutely an XML chunk. Just use xmllib. Adia

Re: Syntax suggestion.

2006-09-05 Thread samir
Sun workstation in your home network like that ;) and need a realtime custom check function or when you're using your computer as a "desk scientific calculator" you'd like to have a flexible, powerfull and light-weight-syntax interpretted programming language. That language wo

Re: Syntax suggestion.

2006-09-04 Thread samir
Alex Martelli wrote: > What a mess it would be to disambiguate statements such as > > x = foo bar baz bat > > is it x = (foo, bar, baz, bat) > or x = foo(bar, baz, bat) > or x = foo(bar(baz), bat) > or x = foo(bar, baz(bat)) > or x = foo(bar(baz, bat)) It will be x=foo(bar,baz,bat). The parenthes

Re: Syntax suggestion.

2006-09-03 Thread samir
1- If the function doesn't have any parameters, it will be called with the empty parentheses (just like usual!); 2- to indicate that this is a function call, we would be adding a $ at the end of the statement. Gxis la reskribo Samir -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax suggestion.

2006-09-01 Thread samir
le ligne function call or when it is inside an "if" statement. So i thought that ommiting the parentheses and, why not, the commas in such cases will be a sort of beautiful/easier :) Adiaux Samir -- http://mail.python.org/mailman/listinfo/python-list

Syntax suggestion.

2006-08-30 Thread samir
optional too when executing such instructions: >>> UShell.echo number result Instead of >>> UShell.echo number,result And finally, why not making the string parameter "-less when it is the only parameter: >>> UShell.ls M* Instead of >>> UShell.ls "M*" Adiaux Samir -- http://mail.python.org/mailman/listinfo/python-list