Re: Is there an easy way to control indents in Python

2014-10-15 Thread Chris “Kwpolska” Warrick
ode? > -- > https://mail.python.org/mailman/listinfo/python-list It should parse this as else: print 'false' print 'done' Why? Because things like `print 'done'` usually have an empty line before it: if True: print 'true' else: print 'fal

Re: Python 2.76

2014-10-06 Thread Chris “Kwpolska” Warrick
ct “the manufacturer”? Python is an open-source language with multiple people involved. Depending on what your query is, you may want the Python Software Foundation, a release manager, tons of other people… State your question here and you may receive an answer or a pointer to someone with an answer.

Re: Python 2.76

2014-10-06 Thread Chris “Kwpolska” Warrick
and security fixes (including Heartbleed…) without breaking backwards compatibility. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Flask and Python 3

2014-09-25 Thread Chris “Kwpolska” Warrick
specially because it’s error-prone. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Flask and Python 3

2014-09-25 Thread Chris “Kwpolska” Warrick
On Wed, Sep 24, 2014 at 9:39 PM, Juan Christian wrote: > On Wednesday, September 24, 2014, Chris “Kwpolska” Warrick > wrote: >> >> Learning from videos is the worst thing you can do. Use the official >> flask documentation at http://flask.pocoo.org/docs/0.10/qu

Re: Flask and Python 3

2014-09-24 Thread Chris “Kwpolska” Warrick
a video. Also, there is nothing to “learn” — just change the line, and you will have more helpful errors. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: python-distribute.org down

2014-09-17 Thread Chris “Kwpolska” Warrick
ist.github.com/anonymous/947191a4635cd7b7f79a distribute is long dead (probably why the website is down). Use setuptools instead: https://pythonhosted.org/setuptools/ https://bootstrap.pypa.io/ez_setup.py -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | a

Re: Example of python service running under systemd?

2014-09-11 Thread Chris “Kwpolska” Warrick
or use one of the more magical methods and implement them. Describe your needs to get more details. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: How to turn a string into a list of integers?

2014-09-05 Thread Chris “Kwpolska” Warrick
ode representation. The codepoint for Ä is U+00C4 (196 decimal). It's just a coincidence that it also matches latin1 aka ISO 8859-1 as Unicode starts with all 256 latin1 codepoints. Please kindly forget encodings other than UTF-8. BTW: ASCII covers only the first 128 bytes. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> Sent from my Galaxy S3. -- https://mail.python.org/mailman/listinfo/python-list

Re: Looking for a suitable Python resource

2014-09-04 Thread Chris “Kwpolska” Warrick
Is there any other good > source which can be used by a person who knows the basics of programming > already? The official Python tutorial should suit you: version 2 — https://docs.python.org/2/tutorial/index.html version 3 — https://docs.python.org/3/tutorial/index.html -- Chris

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread Chris “Kwpolska” Warrick
you may try to install from the Terminal: cd /path/to/your/virtualenv bin/pip install psycopg2 -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-27 Thread Chris “Kwpolska” Warrick
ows,Entertainment,Music,Radio $ get_iplayer --type=radio 12878 --get And kaboom, #12878, "Peter Capaldi, Daniel Radcliffe, Jon Hamm and Ruby Turner", is downloaded and stored on your hard drive. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: GO vs Python

2014-08-25 Thread Chris “Kwpolska” Warrick
thon-list Your browser helpfully ignores that header and uses ISO-8859-1, which *is* the actual encoding of that message. Gmail displays the message properly me, but apparently Google Groups defaults to UTF-8, and that results in question marks. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: what do you get with 1 divide by 998001, interesting results

2014-08-21 Thread Chris “Kwpolska” Warrick
On Thu, Aug 21, 2014 at 3:22 AM, Everything You Need To Know wrote: > I do understand where you are coming from 'Chris "Kwpolska" Warrick', though, > your own self serving link to your own website and unproductive post is > closer to spam than my own, I offer someth

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Chris “Kwpolska” Warrick
erphile video at https://www.youtube.com/watch?v=daro6K6mym8 or any other sane source — and not reproduce it with this weird division scheme. Your video does not tell a thing about the number anyway. Please stop spamming with your barely original content. -- Chris “Kwpolska” Warrick <http

Re: How to look up historical time zones by date and location

2014-08-18 Thread Chris “Kwpolska” Warrick
ally LMT. This can be problematic, as there are ways to attach a ~100 years ago time zone object to a 2014 date. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> Sent from my SGS3. -- https://mail.python.org/mailman/listinfo/python-list

Re: How can I get the timezone time of a location?

2014-08-18 Thread Chris “Kwpolska” Warrick
standards. AFAIK there is no easy solution, you'd have to calculate it manually from the longitude, which you'd have to find somewhere (online?) -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> Sent from my SGS3. -- https://mail.python.org/mailman/listinfo/python-list

Re: Which OAuth library?

2014-08-14 Thread Chris “Kwpolska” Warrick
; > Richard > -- > https://mail.python.org/mailman/listinfo/python-list Google hints at https://flask-oauthlib.readthedocs.org/en/latest/ and it's looking pretty good. There is also flask-oauth, but it seems quite outdated. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> Sent from my SGS3. -- https://mail.python.org/mailman/listinfo/python-list

Re: a python console in bluestacks

2014-08-14 Thread Chris “Kwpolska” Warrick
nnectBot (though better apps likely exist.) Another alternative might be to use a real device with adb shell. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> Sent from my SGS3. -- https://mail.python.org/mailman/listinfo/python-list

Re: newbee

2014-08-13 Thread Chris “Kwpolska” Warrick
es for Raspbian or other RPi-friendly distros and see python-tk there, or various Python tutorials for the device: http://davidbriddock.blogspot.com/2013/04/learn-python-installing-tkinter.html -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> Sent from my SGS3. -- https://mail.pyt

Re: a python console in bluestacks

2014-08-13 Thread Chris “Kwpolska” Warrick
to make it run. > > Is there a python console to type python command to run python directly such as in pc ? Why are you using an Android emulator to run Python, a PC-first software?! Just install the Windows version from http://python.org/ and use that. -- Chris “Kwpolska” Warrick <http://

Re: how to write file into my android phone?

2014-08-13 Thread Chris “Kwpolska” Warrick
On Aug 14, 2014 8:11 AM, "alex23" wrote: > > On 10/08/2014 7:08 PM, Chris “Kwpolska” Warrick wrote: >>> >>> 2) the phone isn't necessarily visible on a pc as a drive at all. >>> For example the Samsung gs4. >> >> >> This i

Re: Linux distros w/o Python in "base" installation

2014-08-12 Thread Chris “Kwpolska” Warrick
heless, most people will likely install Python by themselves, or with a package that depends on Python. On Mon, Aug 11, 2014 at 9:02 PM, Chris Rebert wrote: > It would seem that such distros are opting to not be LSB-compliant?: > http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Languages/LSB

Re: how to write file into my android phone?

2014-08-10 Thread Chris “Kwpolska” Warrick
is is actually true for ALL android devices, starting with Android 3.0. It’s possible that the OP is running an ancient device, or a modern one that appears as a USB drive for some reason (eg. custom ROM from the manufacturer). -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP

Re: how to write file into my android phone?

2014-08-09 Thread Chris “Kwpolska” Warrick
on.org/2/tutorial/inputoutput.html#reading-and-writing-files However, if you want to do it via Bluetooth for some reason, you need to find a library that does OBEX — Google hints at http://lightblue.sourceforge.net/ . -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Chris “Kwpolska” Warrick
exe window (there is a thing named PowerShell ISE, which circumvents cmd.exe; I have no idea whether all the Unicode issues apply to that, too) -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.

Re: CodeSkulptor

2014-08-04 Thread Chris “Kwpolska” Warrick
at that) — you are not running away from all the issues of running in a Windows environment, and add issues of running in a remote Windows environment. Please stop, for your own good. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | o

Re: Is there a tracker target for this mailing list?

2014-07-31 Thread Chris “Kwpolska” Warrick
Possible cause: dmarc=fail (p=REJECT dis=NONE) header.from=wegge.dk -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to find ssh library supporting python 3.1

2014-07-30 Thread Chris “Kwpolska” Warrick
patible with each other. Instead, upgrade to the most recent version, 3.4.1, which is happily supported by Paramiko. Many Python 3-compatible libraries dropped/never had support for 3.0—3.2 due to <http://legacy.python.org/dev/peps/pep-0414/>, which makes porting between Python 2 and 3 muc

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Chris “Kwpolska” Warrick
instruction. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Chris “Kwpolska” Warrick
eem to be able to get separately, and doesn't seem to have any > documentation (ie 3rd party books on it). But there is Evernote. OneNote is actually available for free: http://www.onenote.com/ (though Evernote is superior) -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EA

Re: Exploring Python for next desktop GUI Project

2014-07-24 Thread Chris “Kwpolska” Warrick
On Thu, Jul 24, 2014 at 8:33 PM, Zachary Ware wrote: > On Thu, Jul 24, 2014 at 12:04 PM, Chris “Kwpolska” Warrick > wrote: >> Tk is neither sane > > How so? Like any other facet of programming, using Tk(inter) has it's > frustrations, but for the most part it has alway

Re: Exploring Python for next desktop GUI Project

2014-07-24 Thread Chris “Kwpolska” Warrick
neither sane nor native-feeling, especially on Linux, where it looks like something from two decades ago. On other platforms, it also is not 100% native. I personally recommend PyQt4/PySide. wxPython is also worth checking out. And it might be better to stay with Python 2, there are still things

Re: I am stuck on OOP

2014-07-19 Thread Chris “Kwpolska” Warrick
On Sat, Jul 19, 2014 at 5:44 PM, Sibylle Koczian wrote: > Am 18.07.2014 20:45, schrieb Chris “Kwpolska” Warrick: > >> Yes, exceptions do exist. But most video tutorials are produced by >> people without enough knowledge, and people that should not be working >> on educa

Re: Pip doesn't install my scripts

2014-07-19 Thread Chris “Kwpolska” Warrick
ancient methods. Upgrade your setup.py to use setuptools, and its entry points mechanism. I’ve sent a PR to fix all of your errors: https://github.com/yasar11732/tklsystem/pull/1 -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.4.1 64 bit Version

2014-07-19 Thread Chris “Kwpolska” Warrick
On Sat, Jul 19, 2014 at 1:23 AM, Terry Reedy wrote: > On 7/18/2014 2:56 PM, Chris “Kwpolska” Warrick wrote: > >> It’s also slightly easier to find pre-made binaries for 32-bit than >> 64-bit. > > > Searching 'python windows binaries' on Google and the first hi

Re: Python 3.4.1 64 bit Version

2014-07-18 Thread Chris “Kwpolska” Warrick
On Fri, Jul 18, 2014 at 3:54 PM, Zachary Ware wrote: > On Fri, Jul 18, 2014 at 8:48 AM, Chris “Kwpolska” Warrick > wrote: >> “win32” is the name given to the Windows API as of Windows NT 3.1 and >> Windows 95. The “AMD64” part in parentheses tells the truth, that >> you

Re: I am stuck on OOP

2014-07-18 Thread Chris “Kwpolska” Warrick
anything good. (In order to be more precise, I'd have to be politically incorrect.) -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> Sent from my SGS3. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.4.1 64 bit Version

2014-07-18 Thread Chris “Kwpolska” Warrick
> -- > https://mail.python.org/mailman/listinfo/python-list “win32” is the name given to the Windows API as of Windows NT 3.1 and Windows 95. The “AMD64” part in parentheses tells the truth, that you’re actually running the 64-bit version (which can cause problems, though — i

Re: I am stuck on OOP

2014-07-18 Thread Chris “Kwpolska” Warrick
utorials are the most evil invention of the human race. It’s hard to learn from them. You should not watch any — use text tutorials instead. -- Chris “Kwpolska” Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.

Re: Python 3 is killing Python

2014-07-16 Thread Chris “Kwpolska” Warrick
And if someone brings the “people need to download it anyway” argument: it’s 2014, people: hard-drives are large nowadays (or you can just use IMAP) and if you’re paying $100 per kilobyte, you’re doing it wrong and should not be online in the first place. * trickier on mobile, though. -- Chris “K

Re: I am confused about ' and "

2014-07-10 Thread Chris “Kwpolska” Warrick
('...') or double quotes ("...") with the same result [2]. \ can be > used to escape quotes. > > [snip] > > [2] Unlike other languages, special characters such as \n have the > same meaning with both single ('...') and double ("...") quotes. >

Re: What does (A ``quote'' is the character used to open the string, i.e. either ' or ".) mean?

2014-07-10 Thread Chris “Kwpolska” Warrick
om 2001. You should learn from modern documentation: https://docs.python.org/ (if not running 3.4.x, change the version in the top) You also should not read the language reference, it’s meant for people who really care about what’s under the hood. The official tutorial is better for learning:

Re: PEP8 and 4 spaces

2014-07-04 Thread Chris “Kwpolska” Warrick
the line lengths in the original message: [47, 45, 45, 46, 46, 47, 45, 5, 46, 43, 46, 47, 47, 49, 31, 57, 52, 34, 42, 23] [RFC 5322]: http://tools.ietf.org/html/rfc5322#section-2.1.1 [RFC 2822]: http://tools.ietf.org/html/rfc2822#section-2.1.1 -- Chris “Kwpolska” Warrick <http://kwpolska.tk>

Re: why i can't install ez_setup

2014-06-28 Thread Chris “Kwpolska” Warrick
= > [System.Net.CredentialCache]::Default > Credentials; (new-object > System.Net.WebClient).DownloadFile('https://pypi.python > .org/packages/source/s/setuptools/setuptools-5.2.zip', > 'C:Userspengsir\\ > \\setuptools-5.2.zip')"]' returned non

Fwd: What can Nuitka do?

2014-06-28 Thread Chris “Kwpolska” Warrick
the one used here is setuptools entrypoints, which produces a nicer .exe file. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: can I get 0./0. to return nan instead of exception?

2014-06-19 Thread Chris “Kwpolska” Warrick
at('nan') nan >>> also: https://docs.python.org/2/library/math.html#math.isnan > Check if the float x is a NaN (not a number). For more information on NaNs, > see the IEEE 754 standards. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop htm

Re: Shared web hosting where python is *not* a second class citizen

2014-05-25 Thread Chris “Kwpolska” Warrick
r my current uses) in a VPS. I just want some > place where it doesn't feel like python support is some sort of bone thrown > out there just to say that they 'support' python. Heroku, Google App Engine, or pretty much any other Platform-as-a-Service provider. -- Chris “Kwpolska

Re: TeX $\times$ symbol not working in matplotlib?

2014-04-18 Thread Chris “Kwpolska” Warrick
e this: > plt.title(r'$\mathrm{poles}$ $(\times)$ \ >$\mathrm{\&}$ $\mathrm{zeros}$ \ >$(\circ)$ $\mathrm{of}$ $T(s)T(-s)$',\ >fontsize=16) Moreover, in the next two things, you already did it right in the first place: > plt.xlabel(r

Re: change spacing to two instead of four with pep8 or flake8?

2014-04-08 Thread Chris “Kwpolska” Warrick
s “indentation is not a multiple of four”. Which you are never going to listen to anyways if you want 2 spaces per indentation level. If you *really* want to do 2 spaces (and look weird), then just ignore that. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop ht

Re: Calculating time differences given daylight savings time

2014-04-03 Thread Chris “Kwpolska” Warrick
ou. [0]: http://www.youtube.com/watch?v=-5wpm-gesOY -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Time we switched to unicode?

2014-03-25 Thread Chris “Kwpolska” Warrick
ot differentiate them, you may think they’re the same. If you ask some intelligent software (like `unicodedata.name()` in Python), you’ll quickly find out the first is MICRO SIGN, and the other is GREEK SMALL LETTER MU. Such craziness is what makes Unicode Unicode. -- Chris “Kwpolska” Warrick &l

Re: Github down?

2014-03-21 Thread Chris “Kwpolska” Warrick
t a couple days ago). Does that > mean I'm a curmudgeon? :-) If you dislike social media (or prefer a nice website with graphs and such), then go there: https://status.github.com/ (though GitHub could qualify as social media for some…) -- Chris “Kwpolska” Warrick <http://kwpolska.tk>

Re: test

2014-03-16 Thread Chris “Kwpolska” Warrick
t instead? It’s a much easier way to access this place. https://mail.python.org/mailman/listinfo/python-list -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: The sum of numbers in a line from a file

2014-02-20 Thread Chris “Kwpolska” Warrick
t; stu_scores because the table from above starts on line 11. > -- > https://mail.python.org/mailman/listinfo/python-list -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Wheezy.web - is it been developed?

2014-02-19 Thread Chris “Kwpolska” Warrick
rt. You can often find good solutions for popular problems (like user accounts) without reinventing wheels. Flask is the easiest option, and it’s very popular. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https:/

Re: Python Requests script to login to a phpbb forum

2014-02-19 Thread Chris “Kwpolska” Warrick
#x27;, 'sid': sid} r = session.post("http://www.tt-forums.net/ucp.php",params=parameters,data=payload) if "Logout" in r.text: print("We are in") (for the record, I added the session creation line and replaced requests. with session. so it uses your session. Th

Re: How to turn a package into something pip can install

2014-02-16 Thread Chris “Kwpolska” Warrick
is something which has changed in newer versions of pip? > I've got 1.1 (and python 2.7.3). I'm pretty sure both of these are what > came with Ubuntu Precise. > -- > https://mail.python.org/mailman/listinfo/python-list It’s heavily outdated, and that IS the cause of your

Re: How to turn a package into something pip can install

2014-02-15 Thread Chris “Kwpolska” Warrick
ould produce two almost-identical-but-not-quite tarballs). -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: imperative mood in docstrings

2014-02-09 Thread Chris “Kwpolska” Warrick
ir under control. 2. move or be hurled quickly through the air. Those could be valid docstrings (if sheep could fly, of course…) — so, in other words, act as if you were writing a dictionary and not Python code. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Editor for Python

2014-01-08 Thread Chris “Kwpolska” Warrick
be privileged. If you are not the intended recipient, please notify the > sender immediately and do not disclose the contents to any other person, use > it for any purpose, or store or copy the information in any medium. Thank you. > > -- > https://mail.python.org/mailman/li

Re: Apache restart after source changes

2013-12-26 Thread Chris “Kwpolska” Warrick
d by production environments, in which uWSGI (in Emperor mode if possible/makes sense on Windows) and nginx is the best solution around, and auto-reload isn’t supported (for good reasons, as mentioned before). -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail |

Re: unicode to human readable format

2013-12-22 Thread Chris “Kwpolska” Warrick
t;>> s [u'\u0105\u017c\u0119\u0142\u0144'] >>> s[0] u'\u0105\u017c\u0119\u0142\u0144' >>> print s [u'\u0105\u017c\u0119\u0142\u0144'] >>> print s[0] ążęłń However, that is only the case with Python 2, as Python 3 has a human-f

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-15 Thread Chris “Kwpolska” Warrick
oper Unicode support: £ = GBP. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Islam is the fastest growing religion in the world especially since sept. 11.

2013-12-13 Thread Chris “Kwpolska” Warrick
d traditions of other cultures an >> amazing thing began to happen. They opened their minds and their hearts to >> the true message of the submission and surrender and obedience to the One >> True God, Allah -- in Islam. >> >> Back to Islam >> >> Since September 11th, I have seen a huge increase in the interest of >

Re: Is It Bug?

2013-12-08 Thread Chris “Kwpolska” Warrick
slash. >>> r'a\a' 'a\\a' >>> r'a\' File "", line 1 r'a\' ^ SyntaxError: EOL while scanning string literal >>> r'\' File "", line 1 r'\' ^ SyntaxError: EOL while scanni

Re: SetupTools

2013-11-25 Thread Chris “Kwpolska” Warrick
Tell your legal department that such notices have no legal power whatsoever and are just a waste of everyone’s bandwidth, time and the like. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Terry Jones: "Monty Python to reunite for stage show"

2013-11-19 Thread Chris “Kwpolska” Warrick
gt; > Thomas > -- > https://mail.python.org/mailman/listinfo/python-list The PSF should buy all the tickets and give them out to Python devs. Or even invite the group to PyCon 2014. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8

Re: Self-defence

2013-11-17 Thread Chris “Kwpolska” Warrick
hing for killfile evasion (my original attempted report); (c) spam (if I understand the Breidbart Index correctly, we might have to wait for this, at least two emails to be precise) [0]: http://www.eternal-september.org/index.php?showpage=abuse -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Static Website Generator

2013-11-16 Thread Chris “Kwpolska” Warrick
On Nov 16, 2013 3:45 PM, "Silvio Siefke" wrote: > > Hello, > > i want try a static Website Generator. Has someone an advice for a simple > and easy System to use? I want run my blog with it, so the system should > run with my design of Website. > > I has try Pelican, but its i dont know that theme

Re: Odd msg received from list

2013-11-15 Thread Chris “Kwpolska” Warrick
not to enter a password, one will be automatically > generated for you, and it will be sent to you once you've confirmed > your subscription. You can always request a mail-back of your > password when you edit your personal options. Once a month, your > password will be emailed to y

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Chris “Kwpolska” Warrick
it. That should install it for the Python 2.6.6 you have, and possibly under the name `python-pip` because of various shenanigans in the redhatesque repos. > Please help me install 'pip' so i can install the modules. http://www.pip-installer.org/en/latest/installing.html#install-or-u

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Chris “Kwpolska” Warrick
ch python3 Alternatively, you could run `where python3` to see how big the mess on your system is (i.e. how many interpreters you have). -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Install Tkinter for Windows 7 64-bit

2013-11-11 Thread Chris “Kwpolska” Warrick
ter import Tk, Canvas, Frame, BOTH > ImportError: No module named 'Tkinter' > === In Python 3, 'Tkinter' was renamed to 'tkinter' (both sans quotes). Please change the file to reflect that (as the traceback points out, line 16). -- Chris “Kwpolska” Warrick <ht

Re: To whoever hacked into my Database

2013-11-10 Thread Chris “Kwpolska” Warrick
On Nov 10, 2013 9:01 PM, "Rod Person" wrote: > Tortoise? What's a tortoise? Is that a real question? If yes, then it's an animal, similar to a turtle. Ask Google or Wikipedia for more details. -- https://mail.python.org/mailman/listinfo/python-list

Re: Immediate requirement - Sr. Business Analyst for Pricewaterhouse Coopers (PwC) in Tampa, FL.

2013-11-07 Thread Chris “Kwpolska” Warrick
oreover, this list/newsgroup IS NOT the valid place for job offers, Python or otherwise. Please stop sending them. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: To whoever hacked into my Database

2013-11-07 Thread Chris “Kwpolska” Warrick
longer quotes (Google Groups does the same, so they don’t get to see their double-spaced nonsense) AS WELL AS signatures. Well, world couldn’t be more wonderful than Nikos posting nothing. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post |

Re: Basic Python Questions - Oct. 31, 2013

2013-10-31 Thread Chris “Kwpolska” Warrick
quires pywin32 from [1]). [0]: http://win32com.goermezer.de/content/view/136/254/ [1]: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/ -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Basic Python Questions - Oct. 31, 2013

2013-10-31 Thread Chris “Kwpolska” Warrick
ystem as if it were typed in from the keyboard? Perl can do that and I > would imagine that Python probably has that same capability. Definitely possible, but might take you a bit of work and knowledge of Windows internals (go ask Google). -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP:

Re: indentation blocking in Python

2013-10-27 Thread Chris “Kwpolska” Warrick
emicolon (same case). So, the proper code would be: a=1 if a==1: print(1) else: print(0) wait = input("press key") (I resisted the urge to add spaces around `=` and `==`, something most people want you to do.) -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAE

Re: OT: looking for best solutions for tracking projects and skills

2013-10-13 Thread Chris “Kwpolska” Warrick
equest -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make Tkinter Listbox entry insensitive?

2013-10-10 Thread Chris “Kwpolska” Warrick
e entries is not much of a hack. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Mysql's mysql module

2013-10-07 Thread Chris “Kwpolska” Warrick
On Oct 7, 2013 9:36 PM, "Duncan Booth" wrote: > > Skip Montanaro wrote: > > > On Mon, Oct 7, 2013 at 1:08 PM, Tobiah wrote: > >> I just noticed this: > >> > >> > >> http://dev.mysql.com/doc/connector-python/en/index.html > > > > * Does it adhere to the Python database API? > > http://www.python.

Re: Image manipulation

2013-10-06 Thread Chris “Kwpolska” Warrick
e, go use Pillow, the Python 3-compatible fork. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Database statements via python but database left intact

2013-10-06 Thread Chris “Kwpolska” Warrick
On Sun, Oct 6, 2013 at 1:36 PM, rusi wrote: > On Sunday, October 6, 2013 2:35:24 PM UTC+5:30, Chris “Kwpolska” Warrick > wrote: >> So, instead of this, maybe we should work on getting psycopg2 to the >> top result on Googling “python sql”, or even “python mysql” with an >&

Re: Database engine bindings for Python (was: Database statements via python but database left intact)

2013-10-06 Thread Chris “Kwpolska” Warrick
The wiki (that nobody reads anyways) could also use some marketing fixes. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: Database statements via python but database left intact

2013-10-06 Thread Chris “Kwpolska” Warrick
) could also use some marketing fixes. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: JUST GOT HACKED

2013-10-02 Thread Chris “Kwpolska” Warrick
the brilliance you display that there could > be any possibility of login details being kept in plaintext in your > database. Or the statement is a blatant lie and was meant to be mysql_password is not account_password as they have the same value, but are set independently. (too

Fwd: JUST GOT HACKED

2013-10-01 Thread Chris “Kwpolska” Warrick
Why is this list not setting Reply-To correctly again? -- Forwarded message -- From: Chris “Kwpolska” Warrick Date: Tue, Oct 1, 2013 at 3:55 PM Subject: Re: JUST GOT HACKED To: Νίκος On Tue, Oct 1, 2013 at 3:42 PM, Νίκος wrote: > Στις 1/10/2013 4:27 μμ, ο/η Chris “Kwpol

Re: JUST GOT HACKED

2013-10-01 Thread Chris “Kwpolska” Warrick
hit password, (c) is the best option. Unless your password is very long, in which case is not. I’m also wondering what language your password is in. If you actually used a Greek phrase, how long will it take you to get locked out due to encoding bullshit? -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Chris “Kwpolska” Warrick
direction that someone will be able to help me > with this since the provider doesn't care to do so? I can point you to “find a sysadmin that will work for you and fix your problems for money”. Where can you find one? That’s not a question for me. I suggest looking around Greek websites, a

Re: Referrer key missing form os.environ dictionary?

2013-09-25 Thread Chris “Kwpolska” Warrick
xisted in the os.environ dictionary i issues a print( > os.environ ) to see all available keys and their values: The Referer header is not mandatory by any means. Your client probably does not send it. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail |

Re: How to login to a website using Python 3.x?

2013-09-25 Thread Chris “Kwpolska” Warrick
s urllib2 which in Python 3 aint there. I will greatly >> appreciate any help >> > > urllib2 has been renamed in Python 3 see > http://www.python.org/dev/peps/pep-3108/#urllib-package Note that, for sanity, you should use <http://python-requests.org/> (a third-party

Re: In Python language, what is (void) referring to?

2013-09-21 Thread Chris “Kwpolska” Warrick
On Sat, Sep 21, 2013 at 11:10 AM, Don Sylvia wrote: > void...? > -- > https://mail.python.org/mailman/listinfo/python-list void does not exist in Python, unless you named a variable “void”. In that case, it means whatever you set it to. -- Chris “Kwpolska” Warrick <http:/

Re: How to display ReST properly on pypi?

2013-09-14 Thread Chris “Kwpolska” Warrick
Cheeseshop and produce garbage in the output. [kwpolska@kwpolska-lin config_resolver-3.3.0]% rst2html README.rst README.rst:67: (WARNING/2) Inline emphasis start-string without end-string. README.rst:108: (ERROR/3) Unknown interpreted text role "py:class". README.rst:115: (ERROR/3) Unknown int

Re: How can I remove the first line of a multi-line string?

2013-09-02 Thread Chris “Kwpolska” Warrick
fullstring.split('\n') turns it into a list of ['foo', 'bar', 'baz'] 2. the [1:] slice removes the first element, making it ['bar', 'baz'] 3. Finally, '\n'.join() turns the list into a string separated by newlines ("""

Re: What does mean @ sign in first of statement

2013-09-01 Thread Chris “Kwpolska” Warrick
> > Sorry for cheap question. > > Yours, > Mohsen > > -- > http://mail.python.org/mailman/listinfo/python-list @hybrid_property is a decorator. Great resource: http://simeonfranklin.com/blog/2012/jul/1/python-decorators-in-12-steps/ -- Chris “Kwpolska” Warrick <

Re: Newbie: use of built-in exceptions

2013-09-01 Thread Chris “Kwpolska” Warrick
ld use common sense instead: if the exception fits your needs (eg. ValueError when incorrect output occurs) then use it. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- http://mail.python.org/mailman/listinfo/python-list

Re: Moving to Python for web

2013-08-29 Thread Chris “Kwpolska” Warrick
ct you from your website going down when something crashes. You run the Emperor through your OS’s init system (e.g. upstart in Ubuntu, systemd in many others). -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- http://m

Re: Moving to Python for web

2013-08-29 Thread Chris “Kwpolska” Warrick
de.) -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >