Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Emil Oppeln-Bronikowski



This doesn't seem to work because it's a wildcard filename. What is the
proper way to delete files using wildcards?


You could try glob[1] and then iterate over collected list (it also 
gives you a chance to handle errors like unreadable/not owned by you files).


[1] https://docs.python.org/2/library/glob.html

--

Emil Oppeln-Bronikowski *|* http://fuse.pl
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread Emil Oppeln-Bronikowski
On Fri, Jan 02, 2015 at 11:11:05AM -0800, André Roberge wrote:

Sorry if this was asked before: have you tried building a portable version 
using py2exe/Nuitka/etc? I always hit a wall when it comes to building against 
huge libraries like Python-Qt.

-- 
People are like potatos. They die when you eat them.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread Emil Oppeln-Bronikowski
On Fri, Jan 02, 2015 at 11:53:26AM -0800, André Roberge wrote:
> How could it then be used?

Maybe I failed to explain myself fully. What I meant to say is building a 
distribution-ready program that utilizes your library; not your library being 
turn into a executable.

Or maybe something is going over my head? Tell you what, once I get to some 
decent network I'll try it on my own. :)
-- 
People are like potatos. They die when you eat them.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: application console with window

2015-01-07 Thread Emil Oppeln-Bronikowski
On Wed, Jan 07, 2015 at 10:17:09PM +0100, adam wrote:
> Is in here maybe someone who speak Polish?

Mówię, a raczej piszę.

> I'm looking for some libs, tutorials, or other informations.

This is terminal application using (n)curses or smilar library that helps you 
draw & interact with windows, forms and other widgets.

You can use curses library, but it's a little big hairy. There are a few extra 
libraries that make writing "full-screen" terminal application a breeze.

The most popular one (…and complete?) is urwid, and there are pages of tutorial 
once you google for it. 

PS. if you need some help feel free to e-mail me off-list.

-- 
vag·a·bond adjective \ˈva-gə-ˌbänd\
 a :  of, relating to, or characteristic of a wanderer 
 b :  leading an unsettled, irresponsible, or disreputable life

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: application console with window

2015-01-08 Thread Emil Oppeln-Bronikowski
On Thu, Jan 08, 2015 at 05:18:07PM +0100, adam wrote:

> I just learn python.

We all do. It's a constant process.

> If you write in Polish it will be easier for me to 
> explain any problem, because my English is very thin.

I don't really want to force others to read Polish, hit me private if you have 
any questions.

-- 
vag·a·bond adjective \ˈva-gə-ˌbänd\
 a :  of, relating to, or characteristic of a wanderer 
 b :  leading an unsettled, irresponsible, or disreputable life

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What killed Smalltalk could kill Python

2015-01-21 Thread Emil Oppeln-Bronikowski
On Thu, Jan 22, 2015 at 10:55:27AM +1100, Chris Angelico wrote:

> Where's REXX today?

Still (somehow) alive in neo-Amiga platforms like AmigaOS4.x, MorphOS and AROS. 
I know that's as good as dead but there are still people writing AREXX glue 
code.

-- 
vag·a·bond adjective \ˈva-gə-ˌbänd\
 a :  of, relating to, or characteristic of a wanderer 
 b :  leading an unsettled, irresponsible, or disreputable life

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What killed Smalltalk could kill Python

2015-01-22 Thread Emil Oppeln-Bronikowski
On Thu, Jan 22, 2015 at 07:26:31AM -0500, Gene Heskett wrote:

> > Still (somehow) alive in neo-Amiga platforms like AmigaOS4.x, MorphOS
> > and AROS. I know that's as good as dead but there are still people
> > writing AREXX glue code.
> He asked about REXX, not AREXX. There is no comparison between the two as 
> AREXX was a huge superset of REXX.

Never seeing a proper REXX I always assumed it's just Amiga port retrofitted to 
serve as OS' needs as IPC language.

You learn everyday.

> If, when anyone here was using an amiga, and was using EzCron to schedule 
> stuff, Jim Hines and I wrote it as there was no such scheduler for 
> amigados.

I used few cron-like daemons and the name rings a bell!

> Trivia bit: William Hawes, who wrote AREXX and sold it thru the commode 
> door sales channels, was never paid a dime for his work.

There are still problems with AREXX copyright/distribution, but as you can 
guess after few changes of hand Amiga's IP is mess.

AROS, begin FOSS reimplementation of AmigaOS API, uses Regina to replace AREXX

http://regina-rexx.sourceforge.net/
-- 
vag·a·bond adjective \ˈva-gə-ˌbänd\
 a :  of, relating to, or characteristic of a wanderer 
 b :  leading an unsettled, irresponsible, or disreputable life

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: URL - Python ?

2015-02-17 Thread Emil Oppeln-Bronikowski



I would want to know if it's possible to trace the url to the new location


If the webmaster did a proper thing you'll get server 3xx HTTP header 
that will point you to new URL.


http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection

If you're using a good library to do your HTTP (like requests) the 
URL-following is build in and free



r  =  requests.get('http://github.com')
r.url

'https://github.com/'

r.status_code

200

r.history

[]

If you want to track changes just check if response.history has some items in 
it.

--

Emil Oppeln-Bronikowski *|* http://fuse.pl
-- 
https://mail.python.org/mailman/listinfo/python-list