Re: [Tutor] MIT - Free Python course started today

2014-06-12 Thread Dotan Cohen
nk you, I'm signing up! The same organization is doing an introduction to Linux course that starts on August 1st. I'm signed up for that one as well: https://www.edx.org/course/linuxfoundationx/linuxfoundationx-lfs101x-introduction-1621 -- Dot

Re: [Tutor] Wrapping with list

2013-09-16 Thread Dotan Cohen
Thank you to everyone who commented! I've refactored the code and I'm looking into "duck typing" to see if it fits this usage scenario. Thank you very much! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Tuto

[Tutor] Wrapping with list

2013-09-13 Thread Dotan Cohen
appending the original value: if not isinstance(someVar, list): temp = someVar someVar = [] someVar.append(temp) Is my prudence unwarrented? Thanks! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Tutor maillist

Re: [Tutor] What are these two string-formatting styles called?

2013-06-16 Thread Dotan Cohen
lear we mean a > class-method is to name the class. If it were being written, the > parentheses might be enough. But parentheses are usually silent when > speaking. > I see, thanks. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com

Re: [Tutor] What are these two string-formatting styles called?

2013-06-15 Thread Dotan Cohen
On Sat, Jun 15, 2013 at 2:41 PM, Steven D'Aprano wrote: > On 15/06/13 20:18, Dotan Cohen wrote: >> > "I prefer % formatting over str.format method." > > "I prefer percent-formatting over brace-formatting." > > "I prefer C-style string formatt

Re: [Tutor] What are these two string-formatting styles called?

2013-06-15 Thread Dotan Cohen
other relevant class that I know of which has a format() method. But I'm here to learn, and I would love nothing more than for you to tell me where the sentence is ambiguous. Thank you! Python is both wide and deep, and this thread has been very enlightening. -- Dotan Cohen http://gibberis

Re: [Tutor] What are these two string-formatting styles called?

2013-06-15 Thread Dotan Cohen
On Fri, Jun 14, 2013 at 7:01 PM, Jim Mooney wrote: > On 14 June 2013 08:23, Dotan Cohen wrote: >> >> What are these two string-formatting styles called? >> '%.3f' % x >> '{0:.3f}'.format(x) > > > The first one is a string Expression,

Re: [Tutor] What are these two string-formatting styles called?

2013-06-15 Thread Dotan Cohen
On Fri, Jun 14, 2013 at 6:46 PM, Steven D'Aprano wrote: > On 15/06/13 01:23, Dotan Cohen wrote: >> >> What are these two string-formatting styles called? >> '%.3f' % x >> '{0:.3f}'.format(x) > > > "String formatting", a

[Tutor] What are these two string-formatting styles called?

2013-06-14 Thread Dotan Cohen
What are these two string-formatting styles called? '%.3f' % x '{0:.3f}'.format(x) Where in the fine manual is their names shown? Thanks! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Tutor maillist -

Re: [Tutor] Json encode and decode on Puython 2.4

2013-01-17 Thread Dotan Cohen
s, methinks. > The time to get rid of this host has long passed, alas it is not my decision! In any case the only thing running on it are non-critical stuff used to test that the critical stuff hosted on a real server are working as intended. Nothing facing the bid bad web. Thanks. -- Do

Re: [Tutor] Json encode and decode on Puython 2.4

2013-01-16 Thread Dotan Cohen
on (or anything else needed by root) is not going to happen on this particular webhost. Thanks. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Move all files to top-level directory

2010-04-13 Thread Dotan Cohen
The code checks for that, and assigns a different filename if the name is already taken. See the renameNumber variable. Thank you very much for your help. -- Dotan Cohen http://bido.com http://what-is-what.com ___ Tutor maillist - Tutor@python.org To uns

Re: [Tutor] Move all files to top-level directory

2010-04-13 Thread Dotan Cohen
uld be wise to perform. Again, thanks to all who have helped. -- Dotan Cohen http://bido.com http://what-is-what.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Move all files to top-level directory

2010-04-13 Thread Dotan Cohen
For certain values of "fun"! Actually, I did enjoy this exercise. I learned a lot, and found some great resources. Python really is a fun language. -- Dotan Cohen http://bido.com http://what-is-what.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Move all files to top-level directory

2010-04-13 Thread Dotan Cohen
I actually have some comments about the site, would you like them in private mail if you are interested? Thanks! -- Dotan Cohen http://bido.com http://what-is-what.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Move all files to top-level directory

2010-04-13 Thread Dotan Cohen
hat I should know about? Being new to the Python community, I am as of yet unfamiliar with the standard resources. Thanks! -- Dotan Cohen http://bido.com http://what-is-what.com Please CC me if you want to be sure that I read your message. I do not read all list mail. ___

Re: [Tutor] Move all files to top-level directory

2010-04-13 Thread Dotan Cohen
scii UTF-8 characters in filenames and directories 5) Confirmation button to prevent accidental runs in $HOME for instance. Thank you to everyone who helped! -- Dotan Cohen http://bido.com http://what-is-what.com ___ Tutor maillist - Tutor@pyt

Re: [Tutor] Move all files to top-level directory

2010-04-13 Thread Dotan Cohen
m really enjoying Python now that I am starting to get the hang of it. I do wish that the docs had more usage examples but the help on this list and the volume of information available through google mostly negates that. Thank you very much. -- Dotan Cohen http://bido.com http://what-is-what.

Re: [Tutor] Move all files to top-level directory

2010-04-13 Thread Dotan Cohen
r off using prints than really moving > files around.  You might be amazed how much damage a couple of minor bugs > could cause. > I know that you are right. However, using prints would not have helped me in my current case of not fully understanding the os.rename function. I shoul

Re: [Tutor] Move all files to top-level directory

2010-04-13 Thread Dotan Cohen
n to > do is os.rename(toMove, currentDir+f) > Well, actually, that would be currentDir+"/"+f but you are correct! I was thinking too much in terms of the unix mv command, which adds that automatically. Thank you! -- Dotan Cohen http://bido

Re: [Tutor] Move all files to top-level directory

2010-04-12 Thread Dotan Cohen
hat the directory is not empty, nor should it be! How can I override this? Thanks! -- Dotan Cohen http://bido.com http://what-is-what.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Move all files to top-level directory

2010-04-12 Thread Dotan Cohen
On 12 April 2010 20:12, Sander Sweers wrote: > On 12 April 2010 18:28, Dotan Cohen wrote: >> However, it fails like this: >> $ ./moveUp.py >> Traceback (most recent call last): >>  File "./moveUp.py", line 8, in >>    os.rename(f, currentDir) >&g

Re: [Tutor] Move all files to top-level directory

2010-04-12 Thread Dotan Cohen
I be reading now? Thanks! -- Dotan Cohen http://bido.com http://what-is-what.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Move all files to top-level directory

2010-04-12 Thread Dotan Cohen
e functions that I need I can google my out of this! I will write back when I have a working solution, for the sake of the archives. Thanks! -- Dotan Cohen http://bido.com http://what-is-what.com ___ Tutor maillist - Tutor@python.org To un

Re: [Tutor] Move all files to top-level directory

2010-04-12 Thread Dotan Cohen
; There are a bunch of recipes on ActiveState and elsewhere online that can > demonstrate how the os methods are used to work with files and directories. > Some googling for the various method names (eg. os.mkdir ) should turn them > up. > ActiveState looks like a great resource. Thanks! --

[Tutor] Move all files to top-level directory

2010-04-12 Thread Dotan Cohen
so I figure that Python is the language that I need. I have googled file handling in Python but I simply cannot get something to replicate the current functionality of that lovely one-liner. What fine manual should I be reading? I am not asking for code, rather just a link to the right docume

Re: [Tutor] Where to start, running interactive bash script in Qt GUI

2010-04-07 Thread Dotan Cohen
On 7 April 2010 21:23, Alan Gauld wrote: > > "Dotan Cohen" wrote > >> I have an interactive bash script that asks for a password, then >> connects a remote machine via fuse with the supplied password. > >> there a way to wrap a bash script with Python fo

[Tutor] Where to start, running interactive bash script in Qt GUI

2010-04-07 Thread Dotan Cohen
Python and have never used Qt. Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и

Re: [Tutor] Porting PHP web app to Python GUI

2009-10-12 Thread Dotan Cohen
Thanks, all, I have subscribed to the Dabo list and I will almost certainly bug both lists in the near future. Thank you! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il ___ Tutor maillist - Tutor@python.org To unsubscribe or change

[Tutor] Porting PHP web app to Python GUI

2009-10-12 Thread Dotan Cohen
predefined queries. I am familiar with the SQL language, some PHP and some C programing. I have never done GUI programming other than HTML. Does PyQt seem to have a reasonable learning curve for this application? Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il

Re: [Tutor] Considering translating bash script to Python to learn

2009-05-12 Thread Dotan Cohen
not specifically designed >> to manipulate PDF files, but as the script is getting more complex and >> performs logic in other sections (not shown here) I would like to take >> advantage of other Python properties. > > For PDF you should look at ReportLab. It is really

Re: [Tutor] Considering translating bash script to Python to learn

2009-05-12 Thread Dotan Cohen
> I think you should first keep these very pdf-specific tasks the way > they are. Use the subprocess module to launch os commands. So > that you can concentrate on translating the overall logic into python, > which should not be too hard, probably. This is what I thought, thanks. --

[Tutor] Considering translating bash script to Python to learn

2009-05-12 Thread Dotan Cohen
ulate PDF files, but as the script is getting more complex and performs logic in other sections (not shown here) I would like to take advantage of other Python properties. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il ___ Tutor mai

Re: [Tutor] Yet another Python book

2009-04-11 Thread Dotan Cohen
very little effort. Other than that, I'd really like to see a chapter on PyQt. PyGTK is nice from what I understand (I've actually never used it) but PyQt with Qt 4 really is the cutting edge, and is very cross-platform compatible. -- Dotan Cohen http://what-is-what.com http://gibbe

Re: [Tutor] Including files for security.

2008-08-24 Thread Dotan Cohen
2008/8/24 Alan Gauld <[EMAIL PROTECTED]>: > > "Dotan Cohen" <[EMAIL PROTECTED]> wrote > >> I think that I will use the open() and read() functions, thanks! I did >> think of that, but I wanted to know if there was a better wheel >> invented

Re: [Tutor] Including files for security.

2008-08-24 Thread Dotan Cohen
2008/8/24 Kent Johnson <[EMAIL PROTECTED]>: > On Sun, Aug 24, 2008 at 12:08 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> I have a specific file in the web tree that makes a database call. I >> am uncomfortable keeping the database username and password in the >&g

[Tutor] Including files for security.

2008-08-24 Thread Dotan Cohen
. Is there a similar mechanism in Python? What do other Python programmers use? Thanks. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü ___ Tutor maillist - Tutor

[Tutor] Python Docs (Was: Reformatting phone number)

2008-08-22 Thread Dotan Cohen
list some other topics you could pass to help() I will go through them. Thanks. > The "online"[1] help is a very powerful tool, use it often. help() and > dir() can also be used from a script, although you might need to add > print statement. > > [1] online refers to the f

Re: [Tutor] Tutor Digest, Vol 54, Issue 72

2008-08-21 Thread Dotan Cohen
n integer. Thanks. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python Docs (Was: Reformatting phone number)

2008-08-21 Thread Dotan Cohen
2008/8/21 Jerry Hill <[EMAIL PROTECTED]>: > On Thu, Aug 21, 2008 at 12:01 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> 2008/8/21 Kent Johnson <[EMAIL PROTECTED]>: >>> Chapters 2 and 3 of the library reference are highly recommended. >>> http://docs.p

Re: [Tutor] Python Docs (Was: Reformatting phone number)

2008-08-21 Thread Dotan Cohen
2008/8/21 Alan Gauld <[EMAIL PROTECTED]>: > "Dotan Cohen" <[EMAIL PROTECTED]> wrote > >> Let's start from there. I need the startswith() function, but I do not >> know it's name. I search for "strings" and find this: >> 4. String S

Re: [Tutor] Python Docs (Was: Reformatting phone number)

2008-08-21 Thread Dotan Cohen
2008/8/21 Kent Johnson <[EMAIL PROTECTED]>: > On Thu, Aug 21, 2008 at 12:01 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> 2008/8/21 Kent Johnson <[EMAIL PROTECTED]>: >>> Chapters 2 and 3 of the library reference are highly recommended. >>> http://docs.p

[Tutor] Python Docs (Was: Reformatting phone number)

2008-08-21 Thread Dotan Cohen
2008/8/21 W W <[EMAIL PROTECTED]>: > On Thu, Aug 21, 2008 at 5:13 AM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> >> 2008/8/21 OmerT <[EMAIL PROTECTED]>: >> > mostly, I google "docs.python" and the term or class I'm looking for. >> >

[Tutor] Python Docs (Was: Reformatting phone number)

2008-08-21 Thread Dotan Cohen
he python.org site it is suggested to email website bugs to the site admin. Does that go for the docs? I am not the one to improve them at this time, as I am unfamiliar with the language, but I could report usability issues such as that mentioned here. -- Dotan

Re: [Tutor] Reformatting phone number

2008-08-21 Thread Dotan Cohen
thread, which I am sure would degrade quickly into a flamewar. I don't want to be the cause of that :) -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü _

Re: [Tutor] Reformatting phone number

2008-08-20 Thread Dotan Cohen
un time. The interpretor errors tend to be very easy to spot > and to fix; they are primarily indentation or syntax errors. The run time > errors actually show you what failed. You can experiment until you fix them. Error are certainly the best way to learn. > I hope you enjoy using th

Re: [Tutor] Reformatting phone number

2008-08-20 Thread Dotan Cohen
. > http://docs.python.org/lib/typesseq.html This I will read, to keep up to speed. Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü ___ Tutor maillist - Tutor

Re: [Tutor] Reformatting phone number

2008-08-20 Thread Dotan Cohen
> depending, will return, 'str','int', etc. > > Hope this helps a bit. > It does help, and I will make a point of familiarizing myself with the errors reported by runtime errors (is this a valid term in Python, as there are no compile errors) such as those generated f

Re: [Tutor] Reformatting phone number

2008-08-20 Thread Dotan Cohen
2008/8/21 Alan Gauld <[EMAIL PROTECTED]>: > "Dotan Cohen" <[EMAIL PROTECTED]> wrote > >> know if this is the case. Can I declare a variable type in Python as >> in C? > > In Python values have types and variables are simply > names associated

Re: [Tutor] Reformatting phone number

2008-08-20 Thread Dotan Cohen
. Can I declare a variable type in Python as in C? -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Reformatting phone number

2008-08-20 Thread Dotan Cohen
I was missing the quotes in the if statement. Changing if preNumber[0] == 0: to if preNumber[0] == "0": fixed the problem. Why did I need those quotes? The 0 is numerical, so it should not need the quotes, no? -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו

Re: [Tutor] Reformatting phone number

2008-08-20 Thread Dotan Cohen
I have gotten a bit farther, but I cannot get this to work as described in the previous mail: #!/usr/bin/env python import sys preNumber = sys.argv[1] if preNumber[0] == 0: number = '+972' + preNumber[1:] else: number = '+' + preNumber Where is my flaw? -- Dotan C

[Tutor] Reformatting phone number

2008-08-20 Thread Dotan Cohen
uot;. How is this done? Better yet, where in the fine manual would I find this? Thanks in advance. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Why not to use include?

2008-06-09 Thread Dotan Cohen
2008/6/9 Kent Johnson <[EMAIL PROTECTED]>: > On Mon, Jun 9, 2008 at 11:54 AM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> I must learn about these things, I've discovered, in this order: > > I suggest you look at Django, it helps with most of this. Probably &g

Re: [Tutor] Why not to use include?

2008-06-09 Thread Dotan Cohen
2008/6/9 W W <[EMAIL PROTECTED]>: > On Mon, Jun 9, 2008 at 11:21 AM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> 2008/6/9 W W <[EMAIL PROTECTED]>: >> I was doing this in PHP: >> $title="Page title"; >> include"/path/to/header.php"; >

Re: [Tutor] Why not to use include?

2008-06-09 Thread Dotan Cohen
makeHeader("Page title") I would define makeHeader() in a class, so that I could use it (and other functions) across multiple pages. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-

Re: [Tutor] Why not to use include?

2008-06-09 Thread Dotan Cohen
lates/) but in the > background it is completely python (i.e. the template compiler), so it > is not as straight forward as > "preprocessing" html, but it amounts to the same. > > Let me know if that helps, > > Jordan > Thanks, Jordan, I don't exactly understand b

Re: [Tutor] Why not to use include?

2008-06-09 Thread Dotan Cohen
on. 6) How to send mail with Python and sendmail. 7) How to manipulate images with Python. From what I understand this is _not_ possible, so I may have to stick with php on this one. Thanks. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-

Re: [Tutor] Why not to use include?

2008-06-08 Thread Dotan Cohen
2008/6/8 Kent Johnson <[EMAIL PROTECTED]>: > On Sun, Jun 8, 2008 at 3:14 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> If this is not the case, then why are there so many "PHP vs. Python" >> flame wars? PHP is designed for _only_ programming web pages, so

Re: [Tutor] Why not to use include?

2008-06-08 Thread Dotan Cohen
web. Often python > web frameworks are more persistent then that: > http://blog.ianbicking.org/2008/01/12/what-php-deployment-gets-right/ > Thank you very much, I will keep that in mind. If I do not have root access, what is the best way to check memory usage? I do have SSH access, of course.

Re: [Tutor] Why not to use include?

2008-06-08 Thread Dotan Cohen
t the case, with an .httaccess directive? > > Generally no. If this is not the case, then why are there so many "PHP vs. Python" flame wars? PHP is designed for _only_ programming web pages, so far as I understand, so if Python cannot do that why are the two languages compared so oft

Re: [Tutor] Why not to use include?

2008-06-08 Thread Dotan Cohen
re my PHP code with indentation as well as {}. >> Could I do something similar with a function? Something like >> printHeader() and I would define that function in a class? > > Consult http://wiki.python.org/moin/WebProgramming first, please ;) Thank you! Dotan Cohen http://wha

Re: [Tutor] Why not to use include?

2008-06-08 Thread Dotan Cohen
2008/6/8 Kent Johnson <[EMAIL PROTECTED]>: > On Sun, Jun 8, 2008 at 6:46 AM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> I am moving a website from php to python gradually. The first step is >> replacing the page headers and footers. > > I'm not sure how

[Tutor] Why not to use include?

2008-06-08 Thread Dotan Cohen
tices'. Please enlighten me. Thanks. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a

Re: [Tutor] A bit about python culture

2008-02-07 Thread Dotan Cohen
orbidden and will be prosecuted. DK Hostmaster A/S # requests to be notified of any such activities or suspicions thereof. No entries found for the selected source. [EMAIL PROTECTED]:~$ pyden.dk doesn't sound too bad. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז

Re: [Tutor] Bad time to get into Python?

2008-02-04 Thread Dotan Cohen
from 2.x to 3.0 is going to be tricky - and most of these > are related to dealings with strings and unicode characters, something > not everyone has to deal with. > Since my language is Hebrew, I will be dealing with unicode characters a lot. Dotan Cohen http://what-is-what.com http://

Re: [Tutor] Bad time to get into Python?

2008-02-04 Thread Dotan Cohen
ll I need to do is learn to print("") instead of print"" then that's fine. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in w

Re: [Tutor] Bad time to get into Python?

2008-02-03 Thread Dotan Cohen
On 03/02/2008, Kent Johnson <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > The little programming that I need I have been able to get away with > > silly php and bash scripts. However, my needs are getting bigger and I > > see Python as an ideal language f

Re: [Tutor] Bad time to get into Python?

2008-02-03 Thread Dotan Cohen
On 03/02/2008, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Dotan Cohen" <[EMAIL PROTECTED]> wrote > > > coming of Python3 and the new syntax, is this a bad time to start > > learning Python? I don't want to learn 2.x if 3.x will replace it, > &g

[Tutor] Bad time to get into Python?

2008-02-03 Thread Dotan Cohen
this system. Is there some error-level code that I can run? Thanks in advance. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting s

Re: [Tutor] Fixing garbled email addresses

2007-05-01 Thread Dotan Cohen
d" "Nun" "Tet" "Tsadi" "Final Nun" > > I'm sure these consonants make more sense to you than they do to me, since > I don't speak Hebrew. In any case, the point is that you may be able to > maintain the name-to-email correspondence

Re: [Tutor] Fixing garbled email addresses

2007-05-01 Thread Dotan Cohen
On 01/05/07, Ben Sherman <[EMAIL PROTECTED]> wrote: > Hey there - it would be better if you replied to the list - that way the > answers below could help others.. > > On 5/1/07, Dotan Cohen <[EMAIL PROTECTED]> wrote: > [snip] > > > > # Then filter

[Tutor] Fixing garbled email addresses

2007-05-01 Thread Dotan Cohen
, and have it return: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], Thanks in advance. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Writing KDE apps in Python.

2007-04-06 Thread Dotan Cohen
On 06/04/07, Dotan Cohen <[EMAIL PROTECTED]> wrote: > Hi all, I'm new to python but I've some limited experience with C and > PHP. I'm having a rather hard time piecing together a simple GUI > Hello, world! app. All the documentation online seems to be outdated, &

[Tutor] Writing KDE apps in Python.

2007-04-06 Thread Dotan Cohen
someone please RTFM me with a link to the Python Qt bindings. I use KDE in Fedora and I've a few self-made console apps that I'd like to run in the KDE system tray to make life a little cleaner. Thanks. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ ___