Re: python 6 compilation failure on RHEL

2012-08-20 Thread Kwpolska
Python-2.6.6/Modules/_ctypes/libffi/src/prep_cif.o > build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/ffi64.o > build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/unix64.o > build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.

argparse localization support

2012-08-26 Thread Kwpolska
pliki do wyrzucenia optional arguments: -h, --helpshow this help message and exit -V, --version show program's version number and exit (a snippet of help for Trashman, a Python trash manager, with LANG='pl_PL.UTF-8'; https://github.com/Kwpolska/trashman ) A

Re: What’s the differences between these two pieces of code ?

2012-09-09 Thread Kwpolska
gt;> Who can tell me why ? > > -- > http://mail.python.org/mailman/listinfo/python-list Well, (2) is inserting an additional newline, and (1) isn’t. The shell might not show that, but try running this as a standalone script. -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16 -- http://mail.python.org/mailman/listinfo/python-list

Re: Missing library path (WIndows)

2012-09-29 Thread Kwpolska
lman/listinfo/python-list Python has problems with encoding the arguments to look properly with the crappy Windows cmd.exe encodings. They cannot be encoded for some reason. You may need magic, but I’m not quite sure what in Py3k (bytestrings?) -- Kwpolska <http://kwpolska.tk> stop html mail

Re: Missing library path (WIndows)

2012-09-30 Thread Kwpolska
On Sat, Sep 29, 2012 at 10:32 PM, FPEFPE wrote: > On Saturday, September 29, 2012 4:02:13 AM UTC-4, Kwpolska wrote: >> >> Python has problems with encoding the arguments to look properly with >> >> the crappy Windows cmd.exe encodings. They cannot be encoded for some

Re: Help me abstract this (and stop me from using eval)

2012-10-03 Thread Kwpolska
hon.org/mailman/listinfo/python-list Easy. tempmes = myissue.name language = 'polish' setattr(tempmes, language, row[1]) tempmes.save() -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16 -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic JSON question: Do I really need the quotes

2012-10-12 Thread Kwpolska
ormat is the one used by ConfigParser (close to INI, but not quite). Also, JSON is supposed to be generated by computers, not humans. -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16 --

Re: Where are documentation for Gnome

2012-10-13 Thread Kwpolska
pub/GNOME/sources/eog/3.6/eog-3.6.0.tar.xz Have fun— oh wait. You can’t, because PyGTK is an unreadable mess. And you are working with undocumented stuff. -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG

Re: py2exe with python 3.x

2012-11-05 Thread Kwpolska
ly, > Monkey > -- > http://mail.python.org/mailman/listinfo/python-list Use cx_Freeze: http://cx-freeze.sourceforge.net/ -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16 -- http://

Re: Format specification mini-language for list joining

2012-11-10 Thread Kwpolska
much worse. And I hate to consult the docs while working on something. As I said, it’s hard to even get this one changed because str.format is 4 years old. -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16 -- http://mail.python.org/mailman/listinfo/python-list

Re: Yet another Python textbook

2012-11-19 Thread Kwpolska
rrently, your text is in a fancy font and maths are in Computer Modern. 2. IMO, you should be doing a bit more general usage programming, not science-specific. 3. Code highlighting for inline code and other languages, please. This are just my basic thoughts from looking through it. -- Kwpolska &l

Re: 10 sec poll - please reply!

2012-11-23 Thread Kwpolska
r non-Pythonistas. And also, my general thoughts: type() is just fine. Unless you want to call it simulate_pressing_keys_on_the_keyboard_without_getting_a_mechanical_arm_out_of_the_screen_and_pressing_the_keys_with_it(), but then you will need to create simulate_using_the_mouse_without_getting_a_mechanical_arm_out_of_the_screen_and_moving_the_mouse_or_pressing_its_buttons_with_it(),

Re: Establishing Https connection

2012-12-11 Thread Kwpolska
ing along the lines of: import requests xml = """ ...""" files = {'file-field-as-requested-by-the-service': xml} requests.post(url, files=files, auth=HTTPDigestAuth('user', 'pass')) Plus http://docs.python-requests.org/en/latest/user/adva

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Kwpolska
using Windows Python 32 bit v2.6.8 > > Download of the code here: > > https://www.box.com/s/2lupxeyk5jvsxs0zkdfb > > Copy of the code here: > > http://pastebin.com/MNdgiuSY > > Thanks in advance for your help... > -- > http://mail.python.org/mailman/listinfo

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Kwpolska
On Sun, Dec 16, 2012 at 6:25 PM, wrote: > On Sunday, December 16, 2012 10:09:53 AM UTC-7, Kwpolska wrote: >>[...] >> PS. please do not use pastebin.com. > > Why? > -- > http://mail.python.org/mailman/listinfo/python-list http://news.ycombinator.com/item?id=2595

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Kwpolska
out the results. Any ideas? > > http://puu.sh/1BCbG > > Code Preview/Download > > https://www.box.com/s/jiu0259nohx0kae2am57 > -- > http://mail.python.org/mailman/listinfo/python-list Put this on top of your function: global winx, winy PS. Why did you put those dela

Re: Plz Suggest... How can i install the pure python package py-bidi in WIndows.

2012-12-22 Thread Kwpolska
On Sat, Dec 22, 2012 at 3:10 PM, Arsalan Khan wrote: > I tried installing but it gives error.. > Can anyone guide the procedure of configuring/Installing a python package in > windows ??? > -- > http://mail.python.org/mailman/listinfo/python-list What error, exactly? --

Re: how to detect the character encoding in a web page ?

2012-12-24 Thread Kwpolska
se nobody in the right mind would use something else today. -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16 -- http://mail.python.org/mailman/listinfo/python-list

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-28 Thread Kwpolska
b.com/klen/python-mode > Oh, by the way, after 7 days I'm completely in love with this python thing. I > should have made the switch much earlier! That is great news. -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister

Re: PYTHON 3.3 + GUI + COMPILE

2012-12-29 Thread Kwpolska
Tk is an ugly non-native toolkit, while GTK+ is a huge mess that I suggest to avoid for your own sanity. -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16 -- http://mail.python.org/mailman/listinfo/python-list

Re: Vote tallying...

2013-01-18 Thread Kwpolska
On Fri, Jan 18, 2013 at 4:19 PM, Nick Cash wrote: > MySQL would certainly be fine, although I always recommend PostgreSQL over it. Bonus question, why? -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org

Re: Beginner Tutorials

2013-01-19 Thread Kwpolska
Who thought that not setting the “Reply replies to the ML” option was a good idea? -- Forwarded message -- From: Rik Date: Fri, Jan 18, 2013 at 8:31 PM Subject: Re: Beginner Tutorials To: [email protected] On Friday, January 18, 2013 7:20:13 PM UTC, Kwpolska wrote: > >

Re: I have issues installing pycrypto (and thus fabric) with pip

2013-01-28 Thread Kwpolska
o compile the C code used by pycrypto (for speed in certain operations, because they are quite resource-intensive). Where can you get them? I don’t know, ask your distro. They are usually in a package ending with -dev or -devel (depending on your distro; human distros do not bother with this and ship them along with the rest of the thing…) -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: pip and distutils

2013-02-02 Thread Kwpolska
--Vraj > -- > http://mail.python.org/mailman/listinfo/python-list You should put your requirements in the requirements.txt, replaced by newlines. Example: Foo >= 0.7 Bar >= 2.4.5 Or something like that. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail

Re: how to change system-wide proxy settings by Python ?

2013-02-03 Thread Kwpolska
mple of this ? > thanks in advance ! > -- > http://mail.python.org/mailman/listinfo/python-list This may help you: http://stackoverflow.com/questions/1068212/programmatically-detect-system-proxy-settings-on-windows-xp-with-python Next time, please use Google before you ask. -- Kwpolska <h

Re: Is Python programming language?

2013-02-08 Thread Kwpolska
use C++ in that way. > > ChrisA > -- > http://mail.python.org/mailman/listinfo/python-list Did you mean: And if one is sufficiently sadistic to actually use C++ in any way. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post h

Re: Jinja2 installation help

2013-02-09 Thread Kwpolska
ls (only distribute). http://www.pip-installer.org/en/latest/installing.html#using-get-pip -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: news.gmane.org (was Re: Awsome Python - chained exceptions

2013-02-18 Thread Kwpolska
ttp://mail.python.org/mailman/listinfo/python-list Or something even better: use the Mailman mailing list, http://mail.python.org/mailman/listinfo/python-list (mirrored to Usenet). -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http:/

Re: How to install development package on linux?

2013-03-02 Thread Kwpolska
d provide nice binary packages for Python and mod_wsgi. And in case it doesn’t, your distro sucks and you should find a better one. The development things are usually installed by default by most things. Distributions offer them in -dev or -devel packages. -- Kwpolska <http://kwpolska.tk>

Re: Dealing with exceptions

2013-03-02 Thread Kwpolska
or and OSError should cover all copy problems, I think. Also, you can do `except:` for a catch-all, but it is discouraged unless you have REALLY good reasons to do this. And, most of the time, you don’t. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Fwd: How to install development package on linux?

2013-03-02 Thread Kwpolska
On Sat, Mar 2, 2013 at 7:00 PM, Sarbjit singh wrote: > On Saturday, March 2, 2013 2:15:08 PM UTC+5:30, Kwpolska wrote: >> On Sat, Mar 2, 2013 at 7:24 AM, Sarbjit singh wrote: >> >> > Sorry for this basic question but I am having problem compiling mod_wsgi >> >

Re: i need help

2013-03-03 Thread Kwpolska
It is! How else could he type those two question marks and 10 double-quotes? -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Binary for numpy 1.7.0 with Python 2.7.3

2013-03-21 Thread Kwpolska
likes nor uses SourceForge today. Python can be found on the website, http://www.python.org/getit/ and numpy is in the PyPI: https://pypi.python.org/pypi/numpy . Both links have Windows binaries, which I assume you want. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail

Re: ImportError: No module named multipli

2013-03-24 Thread Kwpolska
s: > > python3 test > > I get this error: > Traceback (most recent call last): > File "test", line 5, in > from multipli import table > ImportError: No module named multipli > both files are in the same directory. > any help thanks i

Re: Help me pick an API design (OO vs functional)

2013-03-25 Thread Kwpolska
press(CTRL + 'v') That is nice and makes sense, because a global function feels wrong, at least for me. > It would be extremely helpful for us if you could let me know which way of > using the API you would prefer. If you opt for an explicit version, how would > you

Re: Anybody familiar with pygments ?

2013-05-10 Thread Chris “Kwpolska” Warrick
the Python code was unnecessary in this case, because it would be cheaper to use the pygmentize app included. Second off, CSS is available at https://github.com/richleland/pygments-css or by running `pygmentize -f html -O full FILE`. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16

Re: in need of some help...

2013-05-12 Thread Chris “Kwpolska” Warrick
ng > each version of Google groups even worse), but it's rather > likely just another case of pure incompetence (or a "why > should we care" attitude:-( They shouldn’t care because Usenet users often yell “Get off my lawn!”. Young people don’t use newsgroups.

Re: ssl proxy server

2013-05-14 Thread Chris “Kwpolska” Warrick
On Tue, May 14, 2013 at 2:34 PM, 23alagmy wrote: > ssl proxy server > > hxxp://natigtas7ab.blogspot.com/2013/05/ssl-proxy-server.html > -- > http://mail.python.org/mailman/listinfo/python-list I have been seeing those mails for a long time. Why didn’t anybody ban that guy? If it comes from Usen

Re: ssl proxy server

2013-05-15 Thread Chris “Kwpolska” Warrick
through unscathed. No filter is perfect. > > Skip A filter on this guy altogether would be. He sent 24 messages there since February 25. All of them spam. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.or

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Chris “Kwpolska” Warrick
s something worse. Just do that: >>> sys.stdout.write('Number = {:,.0f}\n'.format(x)) Much more peaceful. You can also do a print, like everyone sane would. Where did you learn Python from? “Python Worst Practice for Dummies”? -- Kwpolska <http://kwpolska.tk> | GPG KE

Re: Problems with python and pyQT

2013-05-27 Thread Chris “Kwpolska” Warrick
You would need to convert them to strings first. You may want bin() and hex() for that. And if you want to convert 'q' to 0x71, hex(ord("q")). And if you want to turn 'hello' into 0x68656c6c6f, you would need to iterate over 'hello' and run the above funct

Re: Apache and suexec issue that wont let me run my python script

2013-06-04 Thread Chris “Kwpolska” Warrick
]: http://bofh.ntk.net/BOFH//bastard07.php -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-04 Thread Chris “Kwpolska” Warrick
ters. 2. Get rid of your bullshit system and use Flask or Pyramid. It will make your life much easier. 3. Put the files in a directory on your server and tell Apache to create an index, making your life easier, but not as easy as it would if you did (2) and anywhere near as easy as (2) and (3) combi

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-04 Thread Chris “Kwpolska” Warrick
t; browser direcory listing. Create an index.html you mean? If they do, they are already indexed. Now link stuff to that directory instead of your fancy files.py thing. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asci

Re: A few questiosn about encoding

2013-06-09 Thread Chris “Kwpolska” Warrick
5 decimal. > 'a chinese ideogramm' to be utf8 encoded needs 4 byte to be stored ? (since > ordinal > 65000 ) Not necessarily, as CJK characters start at U+2E80, which is in the 3-byte range (0x0800 through 0x) — the table is here: http://en.wikipedia.org/wiki/UTF-8#Description -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't feed the troll...

2013-06-15 Thread Chris “Kwpolska” Warrick
would you do that when replying to a mailing list??? They're already > getting a reply. Sending them TWO identical replies is just rude. Mailman is intelligent enough not to send a second copy in that case. This message was sent with a CC, and you got only one copy. -- Kwpolska <http://

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-15 Thread Chris “Kwpolska” Warrick
legal. I have already thrown an e-mail address to the domain registrar. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't feed the troll...

2013-06-15 Thread Chris “Kwpolska” Warrick
On Sat, Jun 15, 2013 at 7:07 PM, D'Arcy J.M. Cain wrote: > On Sat, 15 Jun 2013 18:41:41 +0200 > Chris “Kwpolska” Warrick wrote: >> On Sat, Jun 15, 2013 at 5:40 PM, Steven D'Aprano >> wrote: >> > In the name of all that's good and decent in the world

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-15 Thread Chris “Kwpolska” Warrick
On Sat, Jun 15, 2013 at 7:29 PM, Nick the Gr33k wrote: > On 15/6/2013 8:11 μμ, Chris “Kwpolska” Warrick wrote: >> >> On Fri, Jun 14, 2013 at 5:25 AM, alex23 wrote: >>> >>> On Jun 14, 2:24 am, Νικόλαος Κούρας wrote: >>>> >>>> iam researc

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-15 Thread Chris “Kwpolska” Warrick
On Sat, Jun 15, 2013 at 7:52 PM, Alister wrote: > On Sat, 15 Jun 2013 20:29:09 +0300, Nick the Gr33k wrote: > >> On 15/6/2013 8:11 μμ, Chris “Kwpolska” Warrick wrote: >>> On Fri, Jun 14, 2013 at 5:25 AM, alex23 wrote: >>>> On Jun 14, 2:24 am, Νικόλαος Κούρα

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Chris “Kwpolska” Warrick
; Thank you Steven i don't want to enter there as mail but wish to find it as a > newsgroups, which i tried to subscribe but TB couldn't find it. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Chris “Kwpolska” Warrick
his is not a valid nrewgroup name/ >> > > Not valid in the same way that [email protected] is not valid? http://en.wikipedia.org/wiki/Usenet#Organization -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://ascii

Re: Version Control Software

2013-06-16 Thread Chris “Kwpolska” Warrick
“c2” and did this one more time, making the file “123” at commit named “c3”. [kwpolska@kwpolska-lin .hg@default]% cat * */* */*/* 2>/dev/null | wc -c 1481 [kwpolska@kwpolska-lin .git@master]% cat * */* */*/* */*/*/* 2>/dev/null | wc -c 16860 ← WRONG! There is just one problem with this: an empt

Re: A few questiosn about encoding

2013-06-16 Thread Chris “Kwpolska” Warrick
able to do that in their brain, at least with small numbers. Or at least know that: http://lmgtfy.com/?q=0x1B+in+decimal Or at least `hex(27)`; or '`{:X}'.format(27)`; or `'%X' % 27`. (I despise hex numbers with lowercase letters, but that’s my personal opinion.) -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Loop Question

2013-06-24 Thread Chris “Kwpolska” Warrick
t code before submitting. And note that the getpass module is what you should use for that second thing in real life, for the security of your users. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread Chris “Kwpolska” Warrick
the > one for your OS. That is not necessary. Because it is a sane OS, it is likely that hunspell is packaged in the repositories of OP’s system, and might be even installed there. And if the package is installed, hunspell should reside in /usr/lib/libhunspell.so or a similar place. -- Kwpols

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread Chris “Kwpolska” Warrick
everywhere else. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Chris “Kwpolska” Warrick
ell me how to use the rsync method especially it would be best if i > cna use it via text editor, Notepad++ or even better with Sublime Text. Under Windows? I suggest installing Cygwin or switching over to Linux, for your sanity. If you don’t want either, look for a Windows port of r

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Chris “Kwpolska” Warrick
one, use sftp or edit directly on the server with vim, my editor of choice. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list

Re: hex dump w/ or w/out utf-8 chars

2013-07-09 Thread Chris “Kwpolska” Warrick
g rules have you replace ß with SS. And, surprise surprise, STRASSE is the example the Council for German Orthography used ([0] page 29, §25 E3). [0]: http://www.neue-rechtschreibung.de/regelwerk.pdf -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| a

Re: How do I get the OS System Font Directory(Cross-Platform) in python?

2013-07-11 Thread Chris “Kwpolska” Warrick
nt to hard-code paths. > -- > http://mail.python.org/mailman/listinfo/python-list Why do you want the paths to the fonts? You do not need them 99.9% of the time. So, what *exactly* are you trying to accomplish? -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html

Re: How do I get the OS System Font Directory(Cross-Platform) in python?

2013-07-11 Thread Chris “Kwpolska” Warrick
that is empty). You also need `os.expanduser()`. Oh: and you need to go recursively through them, as subdirectories are also checked for fonts (and it probably goes further) -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail| always bottom-post

Re: Question about mailing list rules

2013-07-12 Thread Chris “Kwpolska” Warrick
thon-list One more thing Devyn should do is watch the “To:” field and make sure it says [email protected], because the above message was sent to Chris only, and that is not what should happen most of the time. Another option is to use Reply All, but it will make old Usenet hags angry, bec

Re: Question about mailing list rules

2013-07-12 Thread Chris “Kwpolska” Warrick
On Fri, Jul 12, 2013 at 2:25 PM, Devyn Collier Johnson wrote: > > On 07/12/2013 07:11 AM, Chris “Kwpolska” Warrick wrote: >> >> On Fri, Jul 12, 2013 at 12:47 PM, Chris Angelico wrote: >>> >>> On Fri, Jul 12, 2013 at 8:44 PM, Devyn Collier Johnson >>&

Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-21 Thread Chris “Kwpolska” Warrick
decent Python editor or IDE (e.g. Idle): …and one more thing: pyside-uic, for transforming the .ui files into (ugly) .py files. It seems to be in /PythonXY/Scripts according to Stack Overflow if you have PySide installed. -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail

Re: Cross-Platform Python3 Equivalent to notify-send

2013-07-27 Thread Chris “Kwpolska” Warrick
t notifications framework. -- 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: Cross-Platform Python3 Equivalent to notify-send

2013-07-27 Thread Chris “Kwpolska” Warrick
Whoops! On Sat, Jul 27, 2013 at 1:30 PM, Chris “Kwpolska” Warrick wrote: > You already asked this on Thursday. And the answer is probably “no”. > Creating …a solution for this is not the easiest thing one can do. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 st

Re: Critic my module

2013-07-27 Thread Chris “Kwpolska” Warrick
7;/home/collier' >>>> pwd() = os.getcwd() > File "", line 1 > SyntaxError: can't assign to function call > > > How could I make pwd() work? > > > Mahalo, > > DCJ > -- > http://mail.python.org/mailman/listinfo/python-list >>

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: ImportError: No module named appengine.ext

2013-07-31 Thread Chris “Kwpolska” Warrick
No module named appengine.ext > > > what to do please help . > -- > http://mail.python.org/mailman/listinfo/python-list You do not have the Google AppEngine packages installed on your system. You may want to get the AppEngine SDK or the AppEngine development server. -- Chris “Kwpols

Re: PEP8 revised: max line lengths

2013-08-02 Thread Chris “Kwpolska” Warrick
stdlib, PEP 8 is not mandated by Python (but it might be by the project leader or similar entities). If someone wanted long lines, then they could do so ALL THE TIME. So, what are you feasting for? Nothing? -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html

Re: New VPS Provider needed

2013-08-27 Thread Chris “Kwpolska” Warrick
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
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

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: 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

  1   2   >