Re: Python & Sybase

2011-04-13 Thread Ivan
Chris, There are few more, depending which sybase database. More info on this link: http://wiki.python.org/moin/Sybase Cheers, Ivan On Thu, Apr 14, 2011 at 6:36 AM, Dan Stromberg wrote: > http://www.freetds.org/ > > There's likely also one you could get from your database adm

Re: My Issues

2017-09-13 Thread ivan
it in there the first time. Ivan -- https://mail.python.org/mailman/listinfo/python-list

How to support a non-standard encoding?

2012-01-06 Thread Ivan
n-standard characeter encoding? Would anyone be interested in reading one? With thanks and best wishes Ivan -- ==== Ivan A. Uemlianin Llaisdy Speech Technology Research and Development i...@llaisdy.com

Re: How to support a non-standard encoding?

2012-01-08 Thread Ivan
Dear jmf, Tim Thanks for these pointers. They look v useful. I'll have a go and report back (with success I hope). Best wishes Ivan On 06/01/2012 20:42, Tim Wintle wrote: On Fri, 2012-01-06 at 12:00 -0800, jmfauth wrote: The distibution of such a codec may be a problem. There

Perl / python regex / performance comparison

2009-03-03 Thread Ivan
uch size ? As compared to perl ?) 3. This last one is somewhat subjective, but what do you think, in the future, which will be more useful. Which, in your (humble) opinion "has a future" ? Thank you for all the info you can spare, and expecially grateful for the time in doing so. -- Ivan --

Perl-python regex-performance comparison

2009-03-03 Thread Ivan
uch size ? As compared to perl ?) 3. This last one is somewhat subjective, but what do you think, in the future, which will be more useful. Which, in your (humble) opinion "has a future" ? Thank you for all the info you can spare, and expecially grateful for the time in doing so. -- Ivan --

Perl-python regex-performance comparison

2009-03-03 Thread Ivan
uch size ? As compared to perl ?) 3. This last one is somewhat subjective, but what do you think, in the future, which will be more useful. Which, in your (humble) opinion "has a future" ? Thank you for all the info you can spare, and expecially grateful for the time in doing so. -- Ivan p

Perl python - regex performance comparison

2009-03-03 Thread Ivan
uch size ? As compared to perl ?) 3. This last one is somewhat subjective, but what do you think, in the future, which will be more useful. Which, in your (humble) opinion "has a future" ? Thank you for all the info you can spare, and expecially grateful for the time in doing so. -- Ivan p

Re: Re: File-writing not working in Windows?

2008-06-07 Thread Ivan
to "foo", and "foo == False" to "not foo". Browse http://www.python.org/dev/peps/pep-0008/ HTH, John Hello, I tried os.path.join() under Windows XP and everything works as expected. The problem is in your script. You may use logger or use additional checks (John Machin

Re: Python-by-example - new online guide to Python Standard Library

2008-04-04 Thread ivan
Very cool. Have you thought about making a printable version that doesn't wrap any lines that shouldn't be and has page breaks at good spots? -- ivan -- http://mail.python.org/mailman/listinfo/python-list

Tix.HList - Move Cursor

2008-04-29 Thread ivan
.selection_clear() hlist1.selection_set(rightselected) callpopup(rightselected) hlist1.bind("", onrightclick) Thanks, Ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple import question about mac osx

2008-04-29 Thread ivan
try adding the following to the end of your chap2.py: print "Hello World" somevar = 12345 And run in PythonWin and see what happens to your interactive window and if somevar is defined. If you close and open PythonWin and use the interactive window without having first run chap2.py, you will find it behaves the same as the mac. Ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonwin

2008-05-09 Thread ivan
do this? Ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: another language with classes?

2013-06-19 Thread Ivan Shmakov
> R Kantas writes: [Cross-posting to news:comp.lang.python, news:comp.lang.scheme, looking for more first-hand experience with these. Sadly, there's no news:comp.lang.go as of yet.] > I came into first contact with objects and classes programming under > Visual Bas

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Ivan Shmakov
> Gilles writes: > On Sun, 21 Jul 2013 11:46:52 -0600, Michael Torrie wrote: [Cross-posting to news:comp.mail.misc.] >> What you're looking for is not an SMTP server but a Mail Transfer >> Agent, called an MTA. [...] >> Dennis is correct, though, that most ISPs do block out

Re: My first ever Python program, comments welcome

2012-07-23 Thread Ivan@work
On 21.07.2012 21:08, Lipska the Kat wrote: Greetings Pythoners A short while back I posted a message that described a task I had set myself. I wanted to implement the following bash shell script in Python Here's the script sort -nr $1 | head -${2:-10} this script takes a filename and an optio

Re: Functional way to compare things inside a list

2012-09-21 Thread Ivan@work
On 21.09.2012 00:58, thorso...@lavabit.com wrote: Hi, list = [{'1': []}, {'2': []}, {'3': ['4', '5']}] I want to check for a value (e.g. '4'), and get the key of the dictionary that contains that value. (Yep, this is bizarre.) some_magic(list, '4') => '3' What's the functional way to do it? I

Wgy isn't there a good RAD Gui tool fo python

2011-07-10 Thread Ivan Kljaic
Ok Guys. I know that most of us have been expiriencing the need for a nice Gui builder tool for RAD and most of us have been googling for it a lot of times. But seriously. Why is the not even one single RAD tool for Python. I mean what happened to boa constructor that it stopped developing. I simpl

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-11 Thread Ivan Kljaic
Ok. I asked about this questio because I am working with python for the last 5 years and I am always in touch about signifigact things in Python. I am pissed of that I make my living by developing applications at work in Java an C#. My comPany would switch to python but they complained that there i

Property for dataclass field with default value

2020-06-17 Thread Ivan Ivanyuk
nt): if z > 1: self._x = z else: raise ValueError c= Container(x=10) print(c) c= Container() print(c) output is: Container(x=10) Container(x=30) So, what I'm missing here? Is there some way to use field() or decorators to make property just work th

Re: Property for dataclass field with default value

2020-06-18 Thread Ivan Ivanyuk
On Thu, 18 Jun 2020 at 11:26, Peter Otten <__pete...@web.de> wrote: > > Ivan Ivanyuk wrote: > > > Hello All, > > > > I have some trouble using @dataclass together with @property decorator > > or property() function. > > > > From the documentat

Re: How to decompile an exe file compiled by py2exe?

2005-09-24 Thread Ivan Voras
Thomas Jollans wrote: > interpreter. This is based on the assumption that py2exe really > generates a pure exe and not an exe that interprets bytecode python. > be that the case, it may yield decent results, but ugly nontheless. It is - py2exe embeds python bytecodes. It seems it does it in the

Re: Using '__mul__' within a class

2005-09-24 Thread Ivan Voras
Gerard Flanagan wrote: > def Square( self ): > self *= self You probably mean return self * self > A = FibonacciMatrix() > A.Square() Make this A = A.Square() -- http://mail.python.org/mailman/listinfo/python-list

Carrying variables over from function to function

2005-09-25 Thread Ivan Shevanski
rom the first function over to the next. Is there any way to do this? -Ivan _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Carrying variables over from function to function

2005-09-26 Thread Ivan Shevanski
Thanks for your quick responce Roy, thats exactly what I needed. =) -Ivan _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement -- http

Help with syntax warnings

2005-09-29 Thread Ivan Shevanski
Here's a noob question for everyone (I'm not sure if my first message got through, is had a "suspicious header" so sorry for double post is so), is there a way to turn off syntax warnings or just make them not visi

Turning off syntax warnings?

2005-09-30 Thread Ivan Shevanski
Here's a noob question for everyone which i can't seem to find the answer to on google. . .Is there a way to turn off syntax warnings? -Ivan _ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar

Re: Help with syntax warnings

2005-10-01 Thread Ivan Shevanski
Well I've been experimenting with the warning filter and it doesn't seem to be working. . .I think it has something to do with the fact that warnings are issued during the compiling and not during the excecution. . .So the filter would come in to late to block them? Any ide

Class Help

2005-10-01 Thread Ivan Shevanski
rson explained it to me I would finally get it =/ thanks in advance, -Ivan _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python CGI Script

2005-10-02 Thread Ivan Herman
nfigure. Actually, in case you run on a MacOS X by any chance, Apache is already installed afaik... I hope this helps Ivan Original Message From: Efrat Regev <[EMAIL PROTECTED]> To: Subject: Python CGI Script Date: 30/9/2005 12:50 > Hello, > > I'm a

Re: Class Help

2005-10-02 Thread Ivan Shevanski
Thanks everyone for helping me out and tolerating the noob question =D The last part was confusing to me and thanks for explaining it so I get it! -Ivan _ Express yourself instantly with MSN Messenger! Download today - it's

noob question Letters in words?

2005-10-07 Thread Ivan Shevanski
choice1 in ('2', 'E', 'e'): #do second option For instance I could type in Stop and would get the first option since it had an "s" in it? Anyone heard of any way to do this? Thanks, -Ivan By the way, if anyone gets tired of my persistant noo

Re: noob question Letters in words?

2005-10-07 Thread Ivan Shevanski
'1': print 'Start' > elif x is '2': print 'Something else' > elif x is '3': print 'End' > else: main() Right but see what if the user wants to type Start? I've already used the number menu but too many people get c

Re: noob question Letters in words?

2005-10-07 Thread Ivan Shevanski
new input but that didnt seem to work. . .Any ideas for that? Thanks, Ivan _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ -- http://mail.python.org/mailman

Re: noob question Letters in words?

2005-10-07 Thread Ivan Shevanski
've seen a "Do what I don't >mean, not what I said" system. =D Alright, I'm going to stop trying to defend my idea since it's obviously a bad one. What do you recommend? -Ivan _ Express yourself in

Re: noob question Letters in words?

2005-10-08 Thread Ivan Shevanski
Thanks everyone for helping once again, lots of good ideas there Thanks, -Ivan _ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ -- http

Re: Newbie needs help. Setting PYTHONDOCS to read HTML.

2005-10-10 Thread Ivan Shevanski
You can still use it, but you can't use the help. I don't know but this has always been better than the help for me! =D-- -Ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: Let My Terminal Go

2005-10-11 Thread Ivan Voras
Mike Meyer wrote: > The easy way to do all these things - from C, anyway - is with > daemon(3). That isn't wrapped as part of the Python library. The > easiest way to solve your problem may be write a wrapper for that > call. If daemon exists on enough systems, submitting your wrapper as a > patch

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-15 Thread Ivan Shevanski
ompt at the given directory that I've been using. . .Here's a link. http://www.winguides.com/registry/display.php/260/Hope that helps,-Ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: WTF?

2005-11-01 Thread Ivan Shevanski
On 11/1/05, James Stroud <[EMAIL PROTECTED]> wrote: Why do my posts get held for suspcious headers and troll Xha Lee gets to postall sorts of profanity and ranting without any problem?--James StroudUCLA-DOE Institute for Genomics and ProteomicsBox 951570 Los Angeles, CA 90095http://www.jamesstroud.

Re: putting an Icon in "My Computer"

2005-11-03 Thread Ivan Shevanski
he icons for the recycle bin and special folders through it. . .I would figure adding folders might even be under the same key.  Try google.     -Ivan  -- http://mail.python.org/mailman/listinfo/python-list

Re: putting an Icon in "My Computer"

2005-11-03 Thread Ivan Shevanski
On 11/3/05, Ivan Shevanski <[EMAIL PROTECTED]> wrote: On 3 Nov 2005 18:28:49 -0800, Brett Hoerner < [EMAIL PROTECTED]> wrote: > I've been asked by my boss to put an Icon in WinXP's "My Computer" for> a utility we use around the shop.  My tool of choice is

Can somebody help compiling 'mssqldb.pyd' for Python24 [win]?

2005-11-04 Thread Ivan Perez
Did you ever find any information about this...   I've been trying to compile it, but wanted to know if someone had done it first.   -- http://mail.python.org/mailman/listinfo/python-list

Shareware in Python

2005-11-04 Thread Ivan Sas
I want to create some shareware program in Python. Can I distribute this program with python24.dll file from Python 2.4.2? I'm not sure if Python GPL compatible license allowing for doing it. Thanks, Ivan Sas -- http://mail.python.org/mailman/listinfo/python-list

Multiples of a number

2005-11-05 Thread Ivan Shevanski
I've searched on google for a bit but I can't seem to find a way to get multiples of a number. . .For instance what would I do if I wanted something to happen every time x reached a multiple of 100 in this sample code: x = 0 while x < 2000: x += 1 Thanks in advance, -

Re: Multiples of a number

2005-11-06 Thread Ivan Shevanski
On 11/5/05, Steven D'Aprano <[EMAIL PROTECTED]> wrote: On Sun, 06 Nov 2005 02:39:40 +0100, Carl Friedrich Bolz wrote:> Hi!>> Ivan Shevanski wrote:>> I've searched on google for a bit but I can't seem to find a way to get>> multiples of a number. .

Clearing output screen

2005-11-06 Thread Ivan Shevanski
I know there is a way to do this, but google doesn't seem to want to find it =)  There is a command to clear the output screen right? Thanks in advance,  -Ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing output screen

2005-11-06 Thread Ivan Shevanski
On 11/6/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Ivan Shevanski wrote> I know there is a way to do this, but google doesn't seem to want to find it> =) There is a command to clear the output screen right?no, because "output screen" isn't a well-defined concept o

Favorite flavor of Linux? (for python or anything else)

2005-12-04 Thread Ivan Shevanski
Looking to replace my older flavor of linux with something new. . .What are some of your favorites for python programming and anything else?  Thanks,  -Ivan -- http://mail.python.org/mailman/listinfo/python-list

PIL question: keeping metadata

2005-06-29 Thread Ivan Herman
PIL? Alternatively, is there a simple image processing package that does it? Ivan -- http://mail.python.org/mailman/listinfo/python-list

Open the command line within a script

2005-06-30 Thread Ivan Shevanski
Hey this is probally a noob question but here goes. . .How could I open the command line inside of a python script? Would I have to use COM? -Ivan _ Don’t just search. Find. Check out the new MSN Search! http

How to run commands in command line from a script

2005-06-30 Thread Ivan Shevanski
I know there is an easy way to do this, and I just can not remember. I have already searched where I thought the module would be. . . I just want to run some name specific commands. Is this easily possible? Thanks, -Ivan

Re: How to run commands in command line from a script

2005-06-30 Thread Ivan Shevanski
pts C:\Python24\Python Scripts The cd never changed. . . Can somebody explain this? I think I need to add something simple, i didnt quite get the example 'os.system('./some --command')' -Ivan From: Robert Kern <[EMAIL PROTECTED]> To: pytho

Re: How to run commands in command line from a script

2005-07-01 Thread Ivan Shevanski
of you that care, the multaple arcade machine emulator and the command runs the classic game strikers 1945. I'm just trying to automate the tedious process of running it through the command line. By the way, thanks to everyone who responded I'm really getting along here. Tha

Re: PostgreSQL & Python vs PHP

2005-07-23 Thread Ivan Voras
Luis P. Mendes wrote: > I need to build it from the server and also client side. > > For the client side I'll be using Python. > > But for the server side, I would like to hear some opinions. Is it worth > learning Php? If you know Python and don't know PHP, there's little benefit from spend

hotmail filter question with list

2005-08-11 Thread Ivan Shevanski
Just a quick mailing question for anyone who uses hotmail and gets this. Im having problems with my filters =/ i have a filter for mails with python-list@python.org in to or cc, but i still get some in my inbox. anyone? -Ivan

Re: py to exe: suggestions?

2005-08-30 Thread Ivan Shevanski
Not sure if you already got the answer to this lol but since this is one thing about python i do know how to do, use CXFreeze. Its basicly a combination of all the programs you have already tryed. Works great for me =D sorry I dont have a link, just google it. -Ivan

RE: Survey Tool

2005-08-31 Thread Ivan Shevanski
Wait. . .Do you want it on a website? I don't really understand you -Ivan _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ -- http://mail.python.org/ma

Re: Best dbm to use?

2005-09-07 Thread Ivan Voras
[EMAIL PROTECTED] wrote: > I'm creating an persistant index of a large 63GB file > containing millions of peices of data. For this I would > naturally use one of python's dbm modules. But which is the > best to use? BDB4, but consider using sqlite - it's really simple, holds all data in a single

Re: 64 bit Python

2005-02-14 Thread Ivan Voras
Mathias Waack wrote: amounts of data. I figured out that a 32 bit application on HP-UX cannot address more than 1 GB of memory. In fact (I think due to the overhead of memory management done by python) a python application cannot use much more than 500 MB of "real" data. For this reason I don't thi

Re: 64 bit Python

2005-02-14 Thread Ivan Voras
Mathias Waack wrote: As I stated I wrote a simple C-program before. The c-program was able to allocate a bit more than 900MB in 32 bit mode. Sorry, I should've paid more attention :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python like VB?

2005-03-19 Thread Ivan Voras
Cappy2112 wrote: Eric3 has been compiled for Windows, without Cygwin and Without a commercial license Can it be downloaded from somewhere? (where from?) Or is it forbidden by the license? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python like VB?

2005-03-19 Thread Ivan Voras
Dennis Lee Bieber wrote: You know of an assembly language that does Object Oriented? My... The world has been waiting with bated breath for that. Hey, IIRC, old Turbo Assembler (tasm, by Borland) had those. Much of it was still manual, by it supported semi-automatic vtables and such :) --

Re: Simple XML-to-Python conversion

2005-03-19 Thread Ivan Voras
[EMAIL PROTECTED] wrote: I've been searching high and low for a way to simply convert a small XML configuration file to Python data structures. I came across gnosis XML tools, but need a built-in option for doing something similar. I too needed such thing, and made this simple parser: http://ivora

Re: Is Python like VB?

2005-03-19 Thread Ivan Voras
Dennis Lee Bieber wrote: On Sat, 19 Mar 2005 14:36:02 +0100, Ivan Voras <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: Hey, IIRC, old Turbo Assembler (tasm, by Borland) had those. Much of it was still manual, by it supported semi-automatic vtables and such :) I

Re: Python to c++ conversion problem

2005-03-23 Thread Ivan Vecerina
0comcast.com ) But for a game, most typically, the code would load room descriptions from a data file at run-time, and dynamically generate the equivalent of sRoomLookup. I hope this helps, Ivan -- http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form Brainbench MVP for C++ <> http://www.brainbench.com -- http://mail.python.org/mailman/listinfo/python-list

Re: XML parsing per record

2005-04-16 Thread Ivan Voras
Irmen de Jong wrote: XML is not known for its efficiency Surely you are blaspheming, sir! XML's the greatest thing since peanut butter! I'm just *waiting* for the day someone finds its use on the rolls of toilet paper... oh the glorious day... -- http://mail.python.org/mailman/listinfo/py

Unicode problems, yet again

2005-04-23 Thread Ivan Voras
I have a string fetched from database, in iso8859-2, with 8bit characters, and I'm trying to send it over the network, via a socket: File "E:\Python24\lib\socket.py", line 249, in write data = str(data) # XXX Should really reject non-string non-buffers UnicodeEncodeError: 'ascii' codec can'

Re: Unicode problems, yet again

2005-04-24 Thread Ivan Voras
Jp Calderone wrote: You don't have a string fetched from a database, in iso-8859-2, alas. That is the root of the problem you're having. What you have is a unicode string. Yes, you're right :) I actually did have iso-8859-2 data, but, as I found out late last night, the data got converted to

Re: Unicode problems, yet again

2005-04-24 Thread Ivan Voras
John Machin wrote: (Does anyone else feel that python's unicode handling is, well... suboptimal at least?) Your posting gives no evidence for such a conclusion. Sorry, that was just steam venting from my ears - I often get bitten by the "ordinal not in range(128)" error. :) -- http://mail.python

Re: Unicode problems, yet again

2005-04-24 Thread Ivan Voras
John Machin wrote: Just a thought: I noticed from the traceback that you are running this on a Windows box. Profound apologies in advance if this question is an insult to your intelligence, but you do know that Windows code page 1250 (Latin 2) -- which I guess is the code page that you would be usi

Re: Getting into Python, comming from Perl.

2005-04-24 Thread Ivan Voras
Mage wrote: foo = dict() or: foo = {} -- http://mail.python.org/mailman/listinfo/python-list

HTML cleaner?

2005-04-24 Thread Ivan Voras
Is there a HTML clean/tidy library or module written in pure python? I found mxTidy, but it's a interface to command-line tool. What I'm searching is something that will accept a list of allowed tags and/or attributes and strip the rest from HTML string. -- http://mail.python.org/mailman/listin

Re: HTML cleaner?

2005-04-25 Thread Ivan Voras
M.-A. Lemburg wrote: Not true: mxTidy integrates tidy as C lib. It's not an interface to the command line tool. Thanks, I'll look at it again! -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK vs. wxPython

2005-04-25 Thread Ivan Voras
Grant Edwards wrote: Huh? wxPythonGTK requires GTK runtimes as well: He was probably talking about Windows, where wx toolkit uses native (more or less...) controls. But then, installing GTK runtime libraries on Windows is a one-click job, there are automated installers for it. -- http://mail.py

Reusing object methods?

2005-04-29 Thread Ivan Voras
Can this be done: (this example doesn't work) class A: def a_lengthy_method(self, params): # do some work depending only on data in self and params class B: def __init__(self): self.a_lengthy_method = A.a_lengthy_method # I know that data in "self" of class B o

Re: Reusing object methods?

2005-04-29 Thread Ivan Voras
Jp Calderone wrote: I want to 'reuse' the same method from class A in class B, and without introducing a common ancestor for both of them - is this possible in an elegant, straightforward way? This is what sub-classing is for. If it makes you feel better, call it "mixing in" instead. You can

Re: creating multiple python Django projects in Windows environment

2016-03-19 Thread Ivan Jankovic
Hi Reto. I understand that i need to run Django on a server. I have deployed projects to AWS (ubuntu) in the past. My main question is around how to tie it into the windows environment. Ivan On Mar 18, 2016 7:40 PM, Reto Brunner wrote: Well you can just put it on a proper server. In the

Understanding "help" command description syntax - explanation needed

2014-11-05 Thread Ivan Evstegneev
les. I need to get more familiar with "help", but the main problem, is that I couldn't find any suitable explanations/tutorials about "help" syntax and etc. (maybe didn't search well). Any explanations/links will be greatly appreciated. I need some help for "help" ^_^ Thanks in advance, Ivan. -- https://mail.python.org/mailman/listinfo/python-list

RE: Understanding "help" command description syntax - explanation needed

2014-11-05 Thread Ivan Evstegneev
his one(just for example): class bytearray([source[, encoding[, errors]]]) --- What does it mean? Is that I can use it in optional way? Like: class bytearray(source) or class bytearray(encoding) ? or just write down all three of them? In which format do I do so? Sincerely, Ivan. -

RE: Understanding "help" command description syntax - explanation needed

2014-11-05 Thread Ivan Evstegneev
standing "help" command description syntax - explanation needed On Wed, Nov 5, 2014 at 10:00 PM, Ivan Evstegneev wrote: > range(start, stop[, step]) -> range object > > For instance, how do I need to understand that (start,stop[,step]) > it’s just a three numbers? >

Comprehension with two variables - explanation needed

2014-11-23 Thread Ivan Evstegneev
uestions is still persists: 1) Is it possible to realize such a thing by applying changes only to initial comprehension? If yes, it would be nice to see the solution. 2) How actually bad is my solution? I mean, after all, there are nested functions call in my code, so how much the speed is affected(if any)? Thanks a lot in advance, Ivan. -- https://mail.python.org/mailman/listinfo/python-list

RE: Comprehension with two variables - explanation needed

2014-11-23 Thread Ivan Evstegneev
[target with nested loop] <--- main loop with initial values for target] On the other hand, if I'm comparing to my tryouts: noprimes = [[j for i in range(2, 8)] for j in range(i*2, 50, i)] It looks same but the variables are not separated, so it definitely was not defined Sincerely,

RE: Comprehension with two variables - explanation needed

2014-11-23 Thread Ivan Evstegneev
Got the main idea. Still need to "chew it up" in depth. (As I mentioned I'm a beginner EE student, so please excuse me for my "lameness" ^_^) -Original Message- From: Python-list [mailto:python-list-bounces+webmailgroups=gmail@python.org] On Behalf Of Rustom Mody Sent: Sunday,

Python Iterables struggling using map() built-in

2014-12-07 Thread Ivan Evstegneev
This is kind of a "dirty trick", because author do not talk about this anywhere. 3. The last question Author says: " But it falls into an infinite loop and fails in Python 3.X, because the 3.X map returns a one-shot iterable object instead of a list as in 2.X. In 3.X, as soon as we've run the list comprehension inside the loop once, iters will be exhausted but still True. To make this work in 3.X, we need to use the list built-in function to create an object that can support multiple iterations". (Like:"Wat?!" ^_^) Why the infinite loop would be there and why should list() to make it finite? o_0 Hope you have not get annoyed too much. Thanks in advance, Ivan -- https://mail.python.org/mailman/listinfo/python-list

Tuple of lists concatenation - function vs comprehension

2014-12-07 Thread Ivan Evstegneev
[1, 2, 3, 4, 5, 6] The question is why I'm getting empty list while working with comprehension in interactive console? Thanks for your help. Ivan. -- https://mail.python.org/mailman/listinfo/python-list

RE: Tuple of lists concatenation - function vs comprehension

2014-12-07 Thread Ivan Evstegneev
age- From: Shiyao Ma [mailto:i...@introo.me] Sent: Sunday, December 7, 2014 17:18 To: Ivan Evstegneev Cc: python-list@python.org Subject: Re: Tuple of lists concatenation - function vs comprehension On 12/07, Ivan Evstegneev wrote: > Hello, > > When I have worked in Python shell (IDL

RE: Python Iterables struggling using map() built-in

2014-12-07 Thread Ivan Evstegneev
iling list too. ^_^ But, you was a bit faster. What a surprise. ))) ))) ))) Thanks a lot for your answer. Ivan. -Original Message- From: Python-list [mailto:python-list-bounces+webmailgroups=gmail@python.org] On Behalf Of Ned Batchelder Sent: Sunday, December 7, 2014 17:29 To: p

Classes - converting external function to class's method.

2014-12-14 Thread Ivan Evstegneev
ed. Why actually in instance "x" >>>x.method() can auto-assign an "x" to uppername() function argument, but it doesn't work in a class "rec" itself? So I need to write down an "obj" argument manually. Why '__self__' exists only in i

RE: Classes - converting external function to class's method.

2014-12-14 Thread Ivan Evstegneev
Python to code of function "uppername()" when it becomes class method (after using this command: rec.method = uppername) Never mind, you already answered it here: > This is almost equivalent to the following: > > class rec: > name = 

RE: Classes - converting external function to class's method.

2014-12-15 Thread Ivan Evstegneev
ce inheritance, and for operator overloading." I'm not pretending to be a "smartass" here, but as I can understand from the context: Classes are namespaces, but they also have an additional capabilities. BR, Ivan > -Original Message- &g

Classes - "delegation" question.

2014-12-17 Thread Ivan Evstegneev
ent + bonus) (when self.person actually implies "Person") But why we don't use "self" argument in --> self.person.giveRaise(percent + bonus)? So it should look like --> self.person.giveRaise(self, percent + bonus)? Is it because of embedding "Person&quo

Advice needed - Choosing appropriate GUI (IDE) and Data Visualization software (3D also)

2014-12-19 Thread Ivan Evstegneev
able for my purposes. I need to redefine a lot of things and build them from scratch. e. In general I think Python can handle all my needs Any advice will be highly appreciated. Sincerely, Ivan. -- https://mail.python.org/mailman/listinfo/python-list

symple programming task

2014-04-20 Thread Ivan Ivanivich
hi all, i have simple programming task: [quot] If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. [/quote] this task from http://projecteuler.net/ site I wrote

Re: symple programming task

2014-04-20 Thread Ivan Ivanivich
On Sunday, April 20, 2014 10:43:37 PM UTC+4, Ivan Ivanivich wrote: > hi all, i have simple programming task: > > > > [quot] > > If we list all the natural numbers below 10 that are multiples of 3 or 5, we > get 3, 5, 6 and 9. The sum of these multiples is 23. >

Re: symple programming task

2014-04-21 Thread Ivan Ivanivich
On Sunday, April 20, 2014 10:43:37 PM UTC+4, Ivan Ivanivich wrote: > hi all, i have simple programming task: > > > > [quot] > > If we list all the natural numbers below 10 that are multiples of 3 or 5, we > get 3, 5, 6 and 9. The sum of these multiples is 23. >

Function Defaults - avoiding unneccerary combinations of arguments at input

2015-03-25 Thread Ivan Evstegneev
full" condition. What is the common accepted way to deal with such unwanted situations? Thanks a lot in advance, Ivan. -- https://mail.python.org/mailman/listinfo/python-list

RE: Function Defaults - avoiding unneccerary combinations of arguments at input

2015-03-25 Thread Ivan Evstegneev
Hi Terry, Thanks for answer, I'll google these stdlib instances. Sincerely, Ivan. > -Original Message- > From: Python-list [mailto:python-list- > bounces+webmailgroups=gmail@python.org] On Behalf Of Terry Reedy > Sent: Wednesday, March 25, 2015 20:43 > To: py

RE: Function Defaults - avoiding unneccerary combinations of arguments at input

2015-03-25 Thread Ivan Evstegneev
print("No valid input! Please try again ...") .. some code here.. Or I'm just too optimistic ^_^? Thanks in advance, Ivan. > -Original Message- > From: Python-list [mailto:python-list- > bounces+webmailgroups=gmail@pyth

RE: Function Defaults - avoiding unneccerary combinations of arguments at input

2015-03-25 Thread Ivan Evstegneev
of > arguments at input > > On Wed, 25 Mar 2015 21:50:40 +0200, Ivan Evstegneev wrote: > > > Hello again ^_^, > > > > Googled a bit, and found only one, a "ValueError" exception, but still > > don't understand how it should be implemented in my

  1   2   3   4   5   6   >