Can't uninstall wxPython

2005-11-11 Thread Justin
ssage: $ sudo: uninstall_wxPython.py: command not found Is there any way I could delete one, or both, of these installations manually? For some reason, whenever I try to run a wxPython script, it uses the older version of wxPython and it doesn't always run correctly. Thanks in advance. Justin

missing cephes module

2005-07-01 Thread Justin
When I used py2exe to create executable file, "cephes" module missing error occurred.  I have installed python 2.3 and scientific and numeric python.  Can anybody suggest me how to resolve the problem?   Justin__Do You Yahoo!?Tired of spam? Yahoo! Ma

missing cephes module

2005-07-04 Thread Justin
Hi All:   When I used py2exe to create executable file, "cephes" module missing error occurred. I have installed python 2.3 and scientific and numeric python. Can anybody suggest me how to resolve the problem?   Justin Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on y

Re: Asychronous execution *with* return codes?

2006-10-05 Thread Justin
If you're on a POSIX system, you could use the usual fork/exec/wait: import os for lstArgs in pileOflstArgs: pid = os.fork() if not pid: os.execv( app, lstArgs ) for i in range(len(pileOflstArgs)): pid, status = os.wait() Of couse, os.wait() will block until a child exits. Lo

How can I catch segmentation fault in python?

2010-11-16 Thread justin
arched the Internet, but couldn't get the right answer to catch them. Could any of you please let me know how to deal with this and catch the segmentation fault in Python? Thanks, Justin. -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I catch segmentation fault in python?

2010-11-17 Thread justin
On Nov 17, 1:06 am, John Nagle wrote: > On 11/16/2010 10:15 PM, swapnil wrote: > > > > > > > On Nov 17, 10:26 am, justin  wrote: > >> Hi all, > > >> I am calling a program written in C inside Python using ctypes, > >> and it seems that sometim

Re: How can I catch segmentation fault in python?

2010-11-17 Thread justin
Just checked what is valgrind, sounds promising. Let me try that. Thanks a lot, Justin. On Nov 17, 9:47 am, Wolfgang Rohdewald wrote: > On Mittwoch 17 November 2010, Wolfgang Rohdewald wrote: > > > On Mittwoch 17 November 2010, justin wrote: > > > But the problem is that

How to populate all possible hierarchical clusterings from a set of elements?

2011-01-12 Thread justin
) would be legitimate ones. How do you think can I, using the modules of Python such as itertools as much as possible, make all possible such clusterings? Thanks in advance, Justin. -- http://mail.python.org/mailman/listinfo/python-list

list 'results' from maps.google then crawl

2009-08-22 Thread Justin
list 'results' from maps.google then crawl through the (engine of some sort) space to the 'results' website and look at it html to find the contact -- http://mail.python.org/mailman/listinfo/python-list

Flowcharting in Python?

2009-09-07 Thread Justin
Hi guys, Does anyone know of any code or projects around that are written in Python or can be used by Python to write a flowcharting application? I haven't been able to find any, but the closest thing I have come across is FlowchartPython which allows you to code in Python from flowcharts, which is

numpy is not installed with Python2.

2010-08-27 Thread justin
e the manual says this package is the one that's automatically turned on in startup. Thanks, Justin. -- http://mail.python.org/mailman/listinfo/python-list

Re: numpy is not installed with Python2.

2010-08-27 Thread justin
On Aug 27, 12:10 pm, Robert Kern wrote: > On 8/27/10 11:40 AM, justin wrote: > > > > > > > My university has a cluster computer, on which I want to run my python > > program that uses numpy. > > I am installing my Python2.7 locally separated from the main sys

AMQP listening and user-facing daemon

2013-07-05 Thread Justin Chiu
://twistedmatrix.com/trac/wiki/Documentation [2]: http://docs.python.org/2/library/threading.html [3]: http://greenlet.readthedocs.org/en/latest/ [4]: https://wiki.openstack.org/wiki/NotificationEventExamples#Immediate_Notifications: [5]: http://www.clusterresources.com/torquedocs21/com

AMQP listening and user-facing daemon

2013-07-08 Thread Justin Chiu
://twistedmatrix.com/trac/wiki/Documentation [2]: http://docs.python.org/2/library/threading.html [3]: http://greenlet.readthedocs.org/en/latest/ [4]: https://wiki.openstack.org/wiki/NotificationEventExamples#Immediate_Notifications: [5]: http://www.clusterresources.com/torquedocs21/com

Re: [newbie] problem with data (different behaviour between batch and interactive use)

2012-06-27 Thread Justin Barber
When you are reading it in measurement is a string. The indicies of the string are going to be returned in your print statements. Similar to having done this in the interpreter: In [17]: measurement = '+3.874693E01,+9.999889E03,+9.91E+37,+1.876595E+04,+3.994000E+04' In [18]: measurement[1]

Re: retry many times decorator

2012-06-29 Thread Justin Barber
On Friday, June 29, 2012 4:53:43 AM UTC-4, andrea crotti wrote: > On the other hand now that I think again even supposing there is a > permanent error like MySql completely down, retrying continuosly > won't do any harm anyway because the machine will not be able to do > anything else anyway, when

Re: from calendar import* doesn't import everything

2012-04-24 Thread Justin Ezequiel
see http://docs.python.org/tutorial/modules.html#importing-from-a-package http://stackoverflow.com/questions/2187583/whats-the-python-all-module-level-variable-for I know the 1st link is for importing from a package but the same applies for modules -- http://mail.python.org/mailman/listinfo/pytho

send function keys to a legacy DOS program

2011-03-10 Thread Justin Ezequiel
Greetings, We have an old barcode program (MSDOS and source code unavailable.) I've figured out how to populate the fields (by hacking into one of the program's resource files.) However, we still need to hit the following function keys in sequence. F5, F2, F7 Is there a way to pipe said keys into

Re: send function keys to a legacy DOS program

2011-03-20 Thread Justin Ezequiel
On Mar 20, 7:30 am, Alexander Gattin wrote: > On Sun, Mar 20, 2011 at 12:52:28AM +0200, > > You need to place 2 bytes into the circular buffer > to simulate key press. Lower byte is ASCII code, > higher byte is scan code (they are the same for > functional keys, whe using default keycode set#1): >

Re: send function keys to a legacy DOS program

2011-03-29 Thread Justin Ezequiel
On Tue, Mar 29, 2011 at 9:59 PM, Alexander Gattin wrote: > I'm not sure regarding the ASCII part. I think it > might need to be set to 0x00 for all functional > keys instead of 0x3F/0x3C/0x41, but probably no > application actually cares. > > Another thing is that you may need to send key > releas

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-13 Thread justin walters
On Tue, Sep 12, 2017 at 11:44 PM, Paul Rubin wrote: > Chris Angelico writes: > > Why? Unless they're going to be maintaining a Py2 codebase, why should > > they learn the older version with less features? > > Are there actually Py3 codebases? I guess there must be, even though > I've never seen

Re: Even Older Man Yells At Whippersnappers

2017-09-19 Thread justin walters
On Tue, Sep 19, 2017 at 8:00 AM, Stefan Ram wrote: > D'Arcy Cain writes: > >of course, I use calculators and computers but I still understand the > >theory behind what I am doing. > > I started out programming in BASIC. Today, I use Python, > the BASIC of the 21st century. Python has no GOTO

Re: Even Older Man Yells At Whippersnappers

2017-09-19 Thread justin walters
On Tue, Sep 19, 2017 at 8:59 AM, Grant Edwards wrote: > On 2017-09-19, Rhodri James wrote: > > On 19/09/17 16:00, Stefan Ram wrote: > >> D'Arcy Cain writes: > >>> of course, I use calculators and computers but I still understand the > >>> theory behind what I am doing. > >> > >>I started ou

Re: Old Man Yells At Cloud

2017-09-19 Thread justin walters
On Tue, Sep 19, 2017 at 9:17 AM, Grant Edwards wrote: > On 2017-09-19, Jan Erik =?utf-8?q?Mostr=C3=B6m?= > wrote: > > > And I'm amazed how often I see people trying to calculate > > > > change = sum handed over - cost > > > > and then trying to figure out what bills/coins should be returned

Re: Even Older Man Yells At Whippersnappers

2017-09-19 Thread justin walters
On Tue, Sep 19, 2017 at 9:12 AM, Rhodri James wrote: > On 19/09/17 16:59, Grant Edwards wrote: > >> On 2017-09-19, Rhodri James wrote: >> >>> On 19/09/17 16:00, Stefan Ram wrote: >>> D'Arcy Cain writes: > of course, I use calculators and computers but I still understand the >

Re: Old Man Yells At Cloud

2017-09-19 Thread justin walters
On Tue, Sep 19, 2017 at 9:26 AM, Larry Martell wrote: > On Tue, Sep 19, 2017 at 10:30 AM, D'Arcy Cain > wrote: > > On 09/19/2017 06:46 AM, Larry Martell wrote: > >> > >> True story - the other day I was in a store and my total was $10.12. I > > > > > > One time I was at a cash with three or four

Re: Even Older Man Yells At Whippersnappers

2017-09-20 Thread justin walters
On Wed, Sep 20, 2017 at 7:29 AM, Larry Martell wrote: > On Wed, Sep 20, 2017 at 5:09 AM, Gregory Ewing > wrote: > > > > Never mind that fake assembly rubbish, learn a real assembly > > language! And hand-assemble it and toggle it into the front > > panel switches like I did! > > 1979, I was work

Re: Beginners and experts (Batchelder blog post)

2017-09-29 Thread justin walters
On Fri, Sep 29, 2017 at 2:57 AM, Leam Hall wrote: > On 09/27/2017 10:33 PM, Stefan Ram wrote: > >Some areas of knowledge follow, a programmer should not be >>ignorant in all of them: >> > > --- > > Stefan, this is list AWESOME! > > I have started mapping skills I have to the list and ways

Re: Beginners and experts (Batchelder blog post)

2017-09-29 Thread justin walters
On Fri, Sep 29, 2017 at 12:14 PM, Bill wrote: > > I'll write for the possible benefit of any beginners who may be reading. > I guess by definition, if one still has a "bug" it's because one doesn't > quite understand what the code is doing. And I would say you should lose > your license if you "f

Re: choice of web-framework

2017-10-22 Thread justin walters
On Sun, Oct 22, 2017 at 3:24 AM, Patrick Vrijlandt wrote: > Hello list, > > I would like your recommendation on the choice of a web framework. > > The project is completely new, there are no histories to take into account > (current solutions are paper-based). The website involves questionnaires

Re: choice of web-framework

2017-10-24 Thread justin walters
On Tue, Oct 24, 2017 at 4:14 AM, Chris Angelico wrote: > > (There are other ORMs than SQLAlchemy, of course; I can't recall the > exact syntax for Django's off the top of my head, but it's going to be > broadly similar to this.) > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-li

Re: Need some help with Python Job Board

2017-11-12 Thread justin walters
On Sat, Nov 11, 2017 at 3:27 PM, Skip Montanaro wrote: > The Python Job Board could use a little help in a couple areas. One, we can > always use help reviewing and approving (or rejecting) submissions. The > backlog keeps growing, and the existing volunteers who help can't always > keep up. (Thi

Re: [Jobs] Need some help with Python Job Board

2017-11-13 Thread justin walters
On Mon, Nov 13, 2017 at 1:16 AM, M.-A. Lemburg wrote: > Hi Justin, > > the default markup is currently set to restructuredtext: > > https://github.com/python/pythondotorg/blob/master/jobs/models.py > > but this can be changed to any of these supported ones: > > h

Re: Linear Time Tree Traversal Generator

2016-09-20 Thread justin walters
On Tue, Sep 20, 2016 at 9:46 AM, ROGER GRAYDON CHRISTMAN wrote: > I am trying to find a better (i.e. more efficient) way to implement a > generator > that traverses a tree. > > The current model of the code (which is also used by a textbook I am > teaching > from does this) > >def __iter__(no

Re: New to python

2016-10-17 Thread justin walters
On Mon, Oct 17, 2016 at 12:51 PM, Bill Cunningham wrote: > I just installed python I might start with 3. But there is version 2 out > too. So far I can '3+4' and get the answer. Nice. I typed the linux man > page > and got a little info. So to learn this language is there an online > tutorial? I

Re: Obtain javascript result

2016-10-21 Thread justin walters
On Fri, Oct 21, 2016 at 8:07 AM, wrote: > Yes, > > the page is http://www.betexplorer.com/next/soccer/ > and You have to open any match You want. > > This pop-up new windows with match detail and odds > (if present). > > I try to extract home team, away team, results, and > bet365's bookmaker odd

New REST API Library for Django

2016-10-22 Thread justin walters
ot; open source project. Let me know what you would like to see from a REST API library and I can add it to the schedule. Thank you, - Justin -- https://mail.python.org/mailman/listinfo/python-list

Re: advanced SimpleHTTPServer?

2016-11-02 Thread justin walters
On Wed, Nov 2, 2016 at 11:40 AM, Chris Warrick wrote: > The other frameworks are simple to set up, too. I’ve personally had > Unicode issues with Bottle, and it doesn’t even do sessions. Unlike > Flask, or of course Django. > > Because, as the old saying goes, any sufficiently complicated Bottle

Re: advanced SimpleHTTPServer?

2016-11-02 Thread justin walters
On Wed, Nov 2, 2016 at 12:52 PM, Eric S. Johansson wrote: > So this brings me back to my question. What is missing in > SimpleHTTPServer to keep it from being secure enough? > There's no way to vet requests. You can't stop a request from accessing anything in the directory that SimpleHTTPServer

Re: need some kind of "coherence index" for a group of strings

2016-11-03 Thread justin walters
On Thu, Nov 3, 2016 at 9:18 AM, Fillmore wrote: > > Hi there, apologies for the generic question. Here is my problem let's say > that I have a list of lists of strings. > > list1:#strings are sort of similar to one another > > my_nice_string_blabla > my_nice_string_blqbli > my_nice_stri

Re: advanced SimpleHTTPServer?

2016-11-03 Thread justin walters
On Thu, Nov 3, 2016 at 10:27 PM, Rustom Mody wrote: > On Thursday, November 3, 2016 at 1:23:05 AM UTC+5:30, Eric S. Johansson > wrote: > > On 11/2/2016 2:40 PM, Chris Warrick wrote: > > > Because, as the old saying goes, any sufficiently complicated Bottle > > > or Flask app contains an ad hoc, i

Re: key and ..

2016-11-17 Thread justin walters
On Thu, Nov 17, 2016 at 7:05 PM, Val Krem via Python-list < python-list@python.org> wrote: > > > Hi all, > Sorry for asking such a basic question butI am trying to merge two > files(file1 and file2) and do some stuff. Merge the two files by the first > column(key). Here is the description of file

Re: Quick help for a python newby, please

2016-11-23 Thread justin walters
On Wed, Nov 23, 2016 at 7:13 AM, Dayton Jones wrote: > ah...yes, but then how could I strip the rest (h:m:s) from it? > > Enter the numerical month you were born: 3 > Enter the numerical day of the month you were born: 30 > Enter the year you were born: 1989 > 10100 days, 0:00:00 > -- > https://m

Re: When will they fix Python _dbm?

2016-12-05 Thread justin walters
On Mon, Dec 5, 2016 at 6:45 AM, clvanwall wrote: > I have been a Perl programmer for 15+ years and decided to give Python a > try. My platform is windows and I installed the latest 3.5.2. Next I > decided to convert a perl program that uses a ndbm database since according > to the doc on python,

Re: When will they fix Python _dbm?

2016-12-06 Thread justin walters
On Mon, Dec 5, 2016 at 5:06 PM, clvanwall wrote: > will thid do? John > Looks like you need to use dbm.ndbm.open() instead of just dbm.open(). See the docs here for more info: https://docs.python.org/3/library/dbm.html#module-dbm.ndbm -- https://mail.python.org/mailman/listinfo/python-list

Re: Django broken pipe error

2016-12-06 Thread justin walters
On Tue, Dec 6, 2016 at 6:21 AM, wrote: > Hi, > > I'm facing strange Django broken pipe error (Python 2.7 on Ubuntu) that > apparently is a not fixed Django bug. Does anybody now how to fix it? I've > been searching a lot and didn't find any solution. > > This error happens very irregularly by Pos

Re: Django broken pipe error

2016-12-07 Thread justin walters
On Wed, Dec 7, 2016 at 1:08 AM, wrote: > Thank you Justin, > > I'm on the dev server and should present results in this way. > > Yes, I use manage.py runserver --insecure to start the server (from > PyCharm). > > My views.py call: > > @detail_route(m

Re: "Best" websocket implementation for Python 2.x?

2016-12-07 Thread justin walters
On Wed, Dec 7, 2016 at 8:50 AM, Skip Montanaro wrote: > PyPI came back. A bit more sleuthing suggests that the > websocket-client package on PyPI is Ohtani's package, and is more > up-to-date than the copyright notices would suggest. The package was > updated a few days ago on GitHub. > > Taking

Re: Django broken pipe error

2016-12-12 Thread justin walters
On Mon, Dec 12, 2016 at 7:27 AM, roma wrote: > Thanks Justin, > > I believe, the whole database story has no influence on the broken pipe > error. I've commented out the whole block and leave only return line: > return HttpResponse(res, content_type="text/plain; chars

Re: Django broken pipe error

2017-01-02 Thread justin walters
On Mon, Jan 2, 2017 at 6:14 AM, wrote: > > Thanks a lot Justin, > > The problem was solved when I employed standard Framework methods for > creation of new database object: > > in JS: > var trendModel = new App.TrendModel(); > trendModel.set("phrase",

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread justin walters
On Mon, Jan 2, 2017 at 3:38 AM, Antonio Caminero Garcia < tonycam...@gmail.com> wrote: > Hello, I am having a hard time deciding what IDE or IDE-like code editor > should I use. This can be overwhelming. > > So far, I have used Vim, Sublime, Atom, Eclipse with PyDev, Pycharm, > IntelliJ with Pytho

Re: The perils of multiple Pythons

2018-04-30 Thread justin walters
On Mon, Apr 30, 2018 at 10:32 AM, Chris Angelico wrote: > On Tue, May 1, 2018 at 3:30 AM, Ned Batchelder > wrote: > > On 4/30/18 1:15 PM, Chris Angelico wrote: > >> > >> https://xkcd.com/1987/ > >> > >> So take-away is: On a Mac, just use Homebrew. > >> > >> (Cue the angry hordes telling me

Re: The perils of multiple Pythons

2018-04-30 Thread justin walters
On Mon, Apr 30, 2018 at 1:40 PM, Chris Angelico wrote: > On Tue, May 1, 2018 at 6:22 AM, justin walters > wrote: > > On Mon, Apr 30, 2018 at 10:32 AM, Chris Angelico > wrote: > > > >> On Tue, May 1, 2018 at 3:30 AM, Ned Batchelder > >> wrote: > >

Re: The perils of multiple Pythons

2018-04-30 Thread justin walters
On Mon, Apr 30, 2018 at 3:24 PM, Rich Shepard wrote: > On Mon, 30 Apr 2018, justin walters wrote: > > With Python 3.5+, venv is a built in module. If using a venv, default to >> using the binary in the venv. That's what I do anyways. >> > > I'm runnin

Re: Introducing Coconut

2018-06-24 Thread justin walters
On Sun, Jun 24, 2018 at 5:51 AM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > Coconut, the functional programming language which compiles to Python: > > http://coconut.readthedocs.io/en/master/FAQ.html > > http://coconut-lang.org/ > > (Its not my language. I just think its cool

Re: Introducing Coconut

2018-06-25 Thread justin walters
From: justin walters On Sun, Jun 24, 2018 at 5:51 AM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > Coconut, the functional programming language which compiles to Python: > > http://coconut.readthedocs.io/en/master/FAQ.html > > http://coconut

Re: Which are best, well-tested ways to create REST services, with Json, in Python?

2016-03-28 Thread justin walters
On Mon, Mar 28, 2016 at 2:06 PM, David Shi via Python-list < python-list@python.org> wrote: > Has anyone done a recent reviews of creating REST services, in Python? > Regards. > David > -- > https://mail.python.org/mailman/listinfo/python-list > There are a ton of different ways to do this. Can y

Re: Which are best, well-tested ways to create REST services, with Json, in Python?

2016-03-28 Thread justin walters
On Mon, Mar 28, 2016 at 5:17 PM, David Shi wrote: > Hello, Justin, > > I am thinking of a fast, responsive, secure way of doing this. Python at > server-side. It provides REST services. Data exchange with the > web--page. Formatted XML or Json. > > Ideally, it uses th

Re: Which are best, well-tested ways to create REST services, with Json, in Python?

2016-03-28 Thread justin walters
Hi David, once again, please reply all on this list. I sent you a couple of step by step guides. Pleas look at the links that I sent. On Mon, Mar 28, 2016 at 9:12 PM, David Shi wrote: > Hello, Justin, > > Is there any official step by step guide. > > Send me the download l

Re: ANN: Python 201 - Intermediate Python book

2016-03-30 Thread justin walters
On Mar 30, 2016 8:41 AM, "Mike Driscoll" wrote: > > Hi, > > I just wanted to let you know that I am hard at work on my second book, which is entitled Python 201 which will come out this Fall 2016. I currently have a Kickstarter going where you can pre-order the book: https://www.kickstarter.com/pr

Re: ANN: Python 201 - Intermediate Python book

2016-03-30 Thread justin walters
On Mar 30, 2016 11:21 AM, "Mike Driscoll" wrote: > > Hi Justin, > > > > https://mail.python.org/mailman/listinfo/python-list > > > > Can you go over a couple of the topics you are going to cover? > > > > Are you going to cover any of the

Django Channels examples

2016-04-01 Thread justin walters
To all of my Web developer bros and broettes, You all should check out this github repo: https://github.com/andrewgodwin/channels-examples This is not my repo or my work. Channels is a package for Django that allows Django to work more easily with websockets through an asgi interface. The Django

Re: mod_wsgi not compatible with Wamp 2.4 and python 3.4.3

2016-04-05 Thread justin walters
On Apr 5, 2016 12:51 PM, "asimkon ." wrote: > > I am using Apache to develop Python Web applications via Django. As i am > new to python web development, i am having problem to find the right > version for mod_wsgi.so (compiled version for Apache 2.4.4 - WampServer 2.4 > - and python 3.4.3 latest

Re: mod_wsgi not compatible with Wamp 2.4 and python 3.4.3

2016-04-06 Thread justin walters
On Wed, Apr 6, 2016 at 3:57 AM, asimkon . wrote: > I managed to connect Apache 2.2 with django framework successfully using > Python 2.7 and mod_wsgi.so (Apache module) thanks to the instructions from > https://pusonchen.wordpress.com/2013/06/03/build-django-website-with-apache-mod_wsgi-on-window

Looking for feedback on weighted voting algorithm

2016-04-13 Thread justin walters
Hi all, I'm looking for feedback on the below vote weighting algorithm which includes sample input. This is written in Python3. def weight(votes): """ Takes a list of tuples in the form of '(vote %, weight)' where vote % is the rating that a user gave and weight is the number of votes

Re: Looking for feedback on weighted voting algorithm

2016-04-14 Thread justin walters
On Apr 14, 2016 9:41 AM, "Martin A. Brown" wrote: > > > Greetings Justin, > > >score = sum_of_votes/num_of_votes > > >votes = [(72, 4), (96, 3), (48, 2), (53, 1), (26, 4), (31, 3), (68, 2), (91, 1)] > > >Specifically, I'm wondering

Re: I have been dealing with Python for a few weeks...

2016-04-14 Thread justin walters
On Thu, Apr 14, 2016 at 1:50 PM, Fillmore wrote: > > ...and I'm loving it. > > Sooo much more elegant than Perl...and so much less going back to the > manual to lookup the syntax of simple data structures and operations... > > REPL is so useful > > and you guys rock too > > cheers > -- > https://

Re: Looking for feedback on weighted voting algorithm

2016-04-14 Thread justin walters
s O(n) or O(n+1), but I never really studied Compsci, so I'm not sure. Either way, I think it should perform well enough. On Thu, Apr 14, 2016 at 1:48 PM, Michael Selik wrote: > > > On Thu, Apr 14, 2016, 7:37 PM justin walters > wrote: > >> On Apr 14, 2016 9:

Re: Static files load problem Django 1.9

2016-04-15 Thread justin walters
On Fri, Apr 15, 2016 at 5:13 AM, asimkon . wrote: > I have got a problem with static files regarding Django 1.9. These files > are (js,css) in the standard folder static, inside project folder > directory. I got an error Http 404 that can not be loaded. > > Project folder / static / css / severa

Re: PEP proposal: sequence expansion support for yield statement: yield *

2016-04-21 Thread justin walters
I agree with the others that the new syntax is not needed. I would also like to point out that I believe any new added syntax or functionality should avoid the use of '*' and '**' as both of these characters are already used for many things such as optional arguments and mathematical operators. Ad

Re: Error 0*80070570

2016-04-21 Thread justin walters
On Thu, Apr 21, 2016 at 2:06 AM, Allan Leo wrote: > When running the setup for your 3.5.1(32-bit version), the setup > experiences error 0*80070570 and tells me to check the log file. What could > be the problem and whats the solution. > On Apr 21, 2016 7:05 AM, "Allan Leo" wrote: > > > When ru

Re: Writing different sections into a file

2016-04-25 Thread justin walters
On Mon, Apr 25, 2016 at 3:04 AM, Karim wrote: > > > On 25/04/2016 09:30, Palpandi wrote: > >> Hi, >> >> I need to write different sections into a file. >> At any point of time, content can be added to any section. >> >> I don't want keep each section into a temporary file. >> What is the better w

Re: how to create a dictionary from csv file?

2016-04-26 Thread justin walters
On Tue, Apr 26, 2016 at 7:18 AM, +dime+ wrote: > I am learning python. > > if I have a csv file, like this > banana,4.0 > apple,3.5 > orange,3.0 > > Can anyone show me how to read the csv file line by line and then create a > dictionary to contain these keys and values? > > > Regards, > +dime+ >

Re: online python courses

2016-04-28 Thread justin walters
On Thu, Apr 28, 2016 at 7:57 AM, Joel Goldstick wrote: > On Thu, Apr 28, 2016 at 10:15 AM, wrote: > > I am follows on this moment two online pythoncourses from > code.tutsplus.com > > But I am interested in following more online pythoncourses. > > Maby someone have some links to websites for me

Re: Best way to clean up list items?

2016-05-02 Thread justin walters
On May 2, 2016 10:03 AM, "Jussi Piitulainen" wrote: > > DFS writes: > > > Have: list1 = ['\r\n Item 1 ',' Item 2 ','\r\n '] > > Want: list1 = ['Item 1','Item 2'] > > > > > > I wrote this, which works fine, but maybe it can be tidier? > > > > 1. list2 = [t.replace("\r\n", "") for t in list1]

Re: python - handling HTTP requests asynchronously

2016-05-06 Thread justin walters
On Thu, May 5, 2016 at 11:56 PM, wrote: > Hi everyone, > I need to generate a PDF report for each entry of a django queryset. > There'll be between between 30k and 40k entries. > > The PDF is generated through an external API. Since currently is generated > on demand, this is handled synchronousl

Re: html & python connection problem with hyperlinks

2016-05-25 Thread justin walters
On Wed, May 25, 2016 at 3:24 AM, wrote: > Why not created the field title, that located on the template > BusinessList.html as a link to go to Business_Detail.html..? please check > > Code: > > models. py: > > from django.db import models > > > REGIONS = ( > ('ΘΕΣ', 'ΘΕΣΣΑΛΟΝΙΚΗ'), > ('ΣΕΡ', 'ΣΕΡ

Re: Tie dictionary to database table?

2016-06-09 Thread justin walters
It looks like you might be looking for an ORM. Have you checked out sqlalchemy? -- https://mail.python.org/mailman/listinfo/python-list

Django Tastypie Vs. Djaogn Rest Framework

2016-07-13 Thread justin walters
Hi guys and gals. I've been building a new web application with my business partner. We're using Django and postreSQL. We needed a restful API as we wanted the back end to be completely decoupled from the front end. We ended up going with Tastypie over DRF due to the former being seemingly less co

Re: Just starting to learn Python, and encounter a problem

2016-07-22 Thread justin walters
: On Jul 22, 2016 7:46 AM, "Gordon Levi" wrote: > > Zagyen Leo wrote: > > >yeah, it may be quite simple to you experts, but hard to me. > > > >In one of exercises from the Tutorial it said: "Write a program that asks the user their name, if they enter your name say "That is a nice name", if they

Re: learning python. learning defining functions . need help

2016-07-22 Thread justin walters
On Fri, Jul 22, 2016 at 6:24 AM, Chris Angelico wrote: > On Fri, Jul 22, 2016 at 11:13 PM, Dennis Lee Bieber > wrote: > > Now... Going much beyond the assignment (if you were having > trouble > > with the assignment, this will seem like magic) [Python 2.7]: > > I'm not sure, but I think

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-17 Thread justin walters
I for one don't want to see politics involved in PL development. However, inclusivity isn't a political issue, it's a human rights issue. Do I agree with the PR, not exactly. However, I do think we as a community should be accommodating to people Whose use of the English language differs from the

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-18 Thread justin walters
I believe the commit message was written in bad faith. It reeks of virtue signaling. Commit messages should remain purely technical in nature. However, I do think the change itself is valid. I don't care about the style of comments as long as they are clear and communicate their message well. How

Wits end with Python and cron

2005-09-28 Thread Justin Delvecchio
g on?  I’ve googled this thing to death and it seems like I’ve got two different solutions, PYTHONPATH and LD_LIBRARY_PATH, that should satisfy this.  /u01/app/oracle/product/10.1.0/Db_1/lib is where the lib resides.     Justin Del Vecchio Computer Engineer -- http://mail.python.org/mailman/listinfo/python-list

parsing a tuple in embedded python

2005-10-30 Thread jenkins . justin
I am returning a tuple from my python method and am stuck trying to figure out how to read it into a C array using PyArg_Parse. My C Code: int array[3]; PyArg_Parse(return, "(iii)", &array); My Python Code: mytuple = (1,2,3) return mytuple That gives me a segmentation fault. What am I doing wrong

Re: parsing a tuple in embedded python

2005-10-30 Thread jenkins . justin
Thanks Fredrik. Yes, I see now how the function works. I'm new to Python and the book I'm studying out of wasn't too explicit in how to handle arrays. I've changed the code to what you suggested, but strangely enough nothing got read into my array. If I return a single integer from my Python method

get current function name

2005-12-01 Thread Ezequiel, Justin
See module inspect -- http://mail.python.org/mailman/listinfo/python-list

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-04 Thread Ezequiel, Justin
Try lambda_hrs = lambda x: (x/60,x%60) -- http://mail.python.org/mailman/listinfo/python-list

pyparsing and LaTeX?

2005-12-09 Thread Ezequiel, Justin
> Anyone parsing simple LaTeX constructs with pyparsing? Greetings Tim, Have always wanted a way to parse LaTeX myself. Unfortunately, I have been moved to a different project. However, I am still very much interested. Did you ever get a reply? -- http://mail.python.org/mailman/listinfo/python-l

MMTK Install Problem

2005-01-26 Thread Justin Lemkul
c:134: warning: function declaration isn't a prototype Src/lapack_mmtk.c:132: warning: `lapack_mmtkError' defined but not used error: command 'gcc' failed with exit status 1 I am attempting the install on a Mac OS X v10.3 with Python v2.3, NumPy v23.1, and SciPy v2.4.3 Thanks in advance for any help you can give me. -Justin Lemkul -- http://mail.python.org/mailman/listinfo/python-list

tkSnack pitch() for frequency estimation

2005-01-30 Thread Justin Shaw
on how I can estimate the pitch of a sound up to 880 Hertz (with tkSnack or not)? Thanks Justin Shaw -- http://mail.python.org/mailman/listinfo/python-list

Atlas and NumPy Problems

2005-02-01 Thread Justin Lemkul
;m out of ideas. I am running OS X v10.3, gcc v3.3, Python v2.3, ScientificPython v2.4.3, and am attempting to install NumPy 23.7 Thank you! -Justin ATLAS install problem: n file included from /Users/jalemkul/Desktop/ATLAS/include/ atlas_prefetch.h:8, from ../ATL_col2blk.c:33:

Re: An absolute Newbie question

2005-07-10 Thread Justin Straube
or an Edit Window to open at startup. Then hitting F5 will execute the written code, and you can also go to Run >> Python Shell and open an interactive prompt window. Justin -- http://mail.python.org/mailman/listinfo/python-list

tkFileDialog.askopenfilename filetypes problem

2005-07-13 Thread Justin Straube
(most recent call last): File "E:\PYTHON~1\lib\lib-tk\Tkinter.py", line 1345, in __call__ return self.func(*args) File "P:\work\Python\PYZoid\PYZoid.pyw", line 213, in do_ask_fn_1 filetypes=[('AIFF Files','*.aiff'), TypeError: askopenfilename() tak

Re: Some simple performace tests (long)

2005-08-06 Thread Justin Azoff
How much ram does your machine have? the main point is "except when a very large range is used on a memory-starved machine" run x = range(10 ** 6) and look at the memory usage of python.. what happens when you run this program: import time def t(func, num): s = time.time() for x in fun

Filetypes in email attachments.

2005-08-25 Thread justin . vanwinkle
o use the magic file to detect the filetype, if this is possible. I have the attachement stored and (generally) decoded in a variable. Justin -- http://mail.python.org/mailman/listinfo/python-list

problems with tarfile.open and tar.bz2

2005-08-26 Thread justin . vanwinkle
read() #except: #print 'Error while extracting %s.' % (attach_type) #return '' I'm at my wits end with this error, it doesn't make any sense that it would treat bzip2'd tar archives very differently than gz'd tar archives. Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with tarfile.open and tar.bz2

2005-08-26 Thread justin . vanwinkle
r is supposed to autodetect the archive type. However, even changing it to 'r:bz2' produces an identical error. -- http://mail.python.org/mailman/listinfo/python-list

how to do this?

2005-09-03 Thread Justin Straube
umn=0, columnspan=3) set_info() # example to show what will be displayed. ROOT.mainloop() End Example Can anyone point me in the right direction for how to do this? Regards, Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: how to do this?

2005-09-04 Thread Justin Straube
/tkinterbook/tkinter-events-and-bindings.htm Justin -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >