Re: Help Needed With a Python Gaming Module

2024-04-03 Thread Thomas Passin via Python-list
On 4/3/2024 3:06 PM, WordWeaver Evangelist via Python-list wrote: Hello everyone! It has been a l-o-n-g time -- nine years in fact --since I last participated on this mailing list. [snip] 3. You are very familiar with the Jython 2 environment, which I am told is based on Python 2 and NOT

Help Needed With a Python Gaming Module

2024-04-03 Thread WordWeaver Evangelist via Python-list
Hello everyone! It has been a l-o-n-g time -- nine years in fact --since I last participated on this mailing list. At that time, I was trying to write a door/external for my PC-ANSI, Macintosh-based BBS. Thanks to some of the folks here, I got it done although I eventually lost the module

HELP NEEDED application error 0xc000005

2019-09-25 Thread arshad ali via Python-list
Note: Forwarded message attached -- Original Message -- From: "arshad ali"arsh...@rediffmail.com To: python-list@python.org Subject: HELP NEEDED application error 0xc05--- Begin Message --- Respected sir, In my laptop with windows 7 ultimate 64 bit, when py

Re: Help needed urgently for running some code!!!!

2019-09-03 Thread Joel Goldstick
On Tue, Sep 3, 2019 at 1:38 PM Dennis Lee Bieber wrote: > > On Mon, 2 Sep 2019 08:05:14 -0700 (PDT), Spencer Du > declaimed the following: > > >Hi > > > >I want to execute > > > >"from devicesEmbedded import *": in GUI.py after all code in GUI.py is run. > >Also how do I make the

Re: Help needed to run some code!!!!

2019-09-03 Thread Calvin Spealman
It sounds like you have module-level behavior you don't want to happen during normal import-time. If that is the case, move that behavior into a class or function you can invoke at the correct time, rather than trying to do your imports at strange times. On Mon, Sep 2, 2019 at 11:50 AM Spencer Du

Help needed to run some code!!!!

2019-09-02 Thread Spencer Du
Hi How can I execute "from devicesEmbedded import *" after this: "print("Device added to list")" in GUI.py because currently if I have the import added at the top of GUI.py file it always executes first before the GUI.py file is executed. I want the devicesEmbedded.py to execute after GUI.py

Help needed urgently for running some code!!!!

2019-09-02 Thread Spencer Du
Hi I want to execute "from devicesEmbedded import *": in GUI.py after all code in GUI.py is run. Also how do I make the devicesEmbedded.py reload and run when a txt file is created in the name of "list_of_devices.txt" in the GUI.py python program. GUI.py import logging from datetime import

Re: Python help needed

2019-08-08 Thread Dan Sommers
On 8/8/19 12:26 PM, Paolo G. Cantore wrote: > I think the special case treatment could be avoided. > > First: Join all items with ' and ' > Second: Replace all ' and ' with ', ' except the last That works great, until one of the elements of the original list is "spam and eggs": >>> spam =

Re: Python help needed

2019-08-08 Thread Paolo G. Cantore
Am 08.08.19 um 01:18 schrieb MRAB: On 2019-08-07 21:36, Kuyateh Yankz wrote: #trying to write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous

Re: Python help needed

2019-08-07 Thread MRAB
On 2019-08-07 21:36, Kuyateh Yankz wrote: #trying to write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous spam list to the function would

Python help needed

2019-08-07 Thread Kuyateh Yankz
#trying to write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous spam list to the function would return 'apples, bananas, tofu, and cats'. But

Re: Help Needed : script weird result.

2018-09-01 Thread mohan4h
On Sunday, September 2, 2018 at 1:12:17 AM UTC+8, moh...@gmail.com wrote: > All, > > I m trying to run this small script to find the lowest of the given array of > numbers. The script works fine for various combination of inputs but fails in > a weird way for a particular set of inputs, can

Re: Help Needed : script weird result.

2018-09-01 Thread Peter Pearson
On Sat, 1 Sep 2018 10:11:59 -0700 (PDT), moha...@gmail.com wrote: > All, > > I m trying to run this small script to find the lowest of the given > array of numbers. The script works fine for various combination of > inputs but fails in a weird way for a particular set of inputs, can > anyone point

Re: Help Needed : script weird result.

2018-09-01 Thread Dan Sommers
On 9/1/18 1:11 PM, moha...@gmail.com wrote: All, I m trying to run this small script to find the lowest of the given array of numbers. The script works fine for various combination of inputs but fails in a weird way for a particular set of inputs, can anyone point the mistake in the script

Re: Help Needed : script weird result.

2018-09-01 Thread Joel Goldstick
On Sat, Sep 1, 2018 at 1:26 PM duncan smith wrote: > > On 01/09/18 18:11, moha...@gmail.com wrote: > > All, > > > > I m trying to run this small script to find the lowest of the given array > > of numbers. The script works fine for various combination of inputs but > > fails in a weird way for

Re: Help Needed : script weird result.

2018-09-01 Thread duncan smith
On 01/09/18 18:11, moha...@gmail.com wrote: > All, > > I m trying to run this small script to find the lowest of the given array of > numbers. The script works fine for various combination of inputs but fails in > a weird way for a particular set of inputs, can anyone point the mistake in >

Help Needed : script weird result.

2018-09-01 Thread mohan4h
All, I m trying to run this small script to find the lowest of the given array of numbers. The script works fine for various combination of inputs but fails in a weird way for a particular set of inputs, can anyone point the mistake in the script and the behavior. Script x = input ("Enter

Help needed in mapping Magento 1.x/PHP data structure into Python equivalent for suds

2016-06-01 Thread Parul M
Hello All, I need assistance in calling Magento 1.x SOAP API's using Python suds library. How to map the *PHP data structure array(array(k1=>v1, k2=>v2,.)) in terms of python suds*??? The exposed SOAP API syntax for creating a new customer in magento: ult = $client->call($session,

Re: Help needed with compiling python

2015-11-26 Thread Cecil Westerhof
On Thursday 26 Nov 2015 09:29 CET, Steven D'Aprano wrote: > On Thursday 26 November 2015 18:00, Cecil Westerhof wrote: > >> On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >> >>> In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof >>> writes: My system python was

Re: Help needed with compiling python

2015-11-26 Thread Cecil Westerhof
On Thursday 26 Nov 2015 12:07 CET, Dave Farrance wrote: > Cecil Westerhof wrote: > >> On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >>> >>> Your Suse system probably wants to use python for something. If >>> your system python is damaged, you badly need to fix

Re: Help needed with compiling python

2015-11-26 Thread Zachary Ware
On Thu, Nov 26, 2015 at 3:39 PM, Cecil Westerhof wrote: > On Thursday 26 Nov 2015 12:07 CET, Dave Farrance wrote: >> zypper in -f >> >> So you'll want to try package names like "python" and "python2.7". > > Sadly that also only installs only libraries and no applications. Try

Re: Help needed with compiling python

2015-11-26 Thread Kev Dwyer
Cecil Westerhof wrote: > On Thursday 26 Nov 2015 09:29 CET, Steven D'Aprano wrote: > >> On Thursday 26 November 2015 18:00, Cecil Westerhof wrote: >> >>> On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >>> In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof

Re: Help needed with compiling python

2015-11-26 Thread Steven D'Aprano
On Thursday 26 November 2015 18:00, Cecil Westerhof wrote: > On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: > >> In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof >> writes: >>> >>> My system python was all-ready damaged: that is why I wanted to >>> build myself. >> >>

Re: Help needed with compiling python

2015-11-26 Thread Dave Farrance
Cecil Westerhof wrote: >On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >> >> Your Suse system probably wants to use python for something. If your >> system python is damaged, you badly need to fix that, using the >> system package managers tools, before Suse does

Re: Help needed with compiling python

2015-11-25 Thread Zachary Ware
On Wed, Nov 25, 2015 at 3:52 PM, Cecil Westerhof wrote: > My system python was all-ready damaged: that is why I wanted to build > myself. Then you should try to repair the system Python install via the system package manager. It's not worth the hassle to try to replace it; it

Re: Help needed with compiling python

2015-11-25 Thread Laura Creighton
In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof writes: > >My system python was all-ready damaged: that is why I wanted to build >myself. Your Suse system probably wants to use python for something. If your system python is damaged, you badly need to fix that, using the system

Re: Help needed with compiling python

2015-11-25 Thread Cecil Westerhof
On Wednesday 25 Nov 2015 21:49 CET, Zachary Ware wrote: > On Wed, Nov 25, 2015 at 2:23 PM, Cecil Westerhof wrote: >> I wanted to install python myself. I started with 2.7.10. If that >> works I also will install 3.5.0. >> >> I did: >> ./configure --prefix=/usr >> make >> make

Re: Help needed with compiling python

2015-11-25 Thread Zachary Ware
On Wed, Nov 25, 2015 at 2:23 PM, Cecil Westerhof wrote: > I wanted to install python myself. I started with 2.7.10. If that > works I also will install 3.5.0. > > I did: > ./configure --prefix=/usr > make > make altinstall > > I have: > /usr/bin/python2.7 > > But

Help needed with compiling python

2015-11-25 Thread Cecil Westerhof
I wanted to install python myself. I started with 2.7.10. If that works I also will install 3.5.0. I did: ./configure --prefix=/usr make make altinstall I have: /usr/bin/python2.7 But when I execute this, I get: Could not find platform dependent libraries Consider

Re: Help needed with compiling python

2015-11-25 Thread Cecil Westerhof
On Wednesday 25 Nov 2015 23:39 CET, Zachary Ware wrote: > On Wed, Nov 25, 2015 at 3:52 PM, Cecil Westerhof wrote: >> My system python was all-ready damaged: that is why I wanted to >> build myself. > > Then you should try to repair the system Python install via the > system

Re: Help needed with compiling python

2015-11-25 Thread Cecil Westerhof
On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: > In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof > writes: >> >> My system python was all-ready damaged: that is why I wanted to >> build myself. > > Your Suse system probably wants to use python for something. If your >

Re: Help needed

2014-11-30 Thread Denis McMahon
On Sat, 29 Nov 2014 11:35:18 -0800, Gautam R Bharadwaj wrote: Here is the code in python, this code arranges the alphabets in descending order and now I want to encode each alphabet with 0 and next alphabet with 1, then 00,01,10,11,000,001 and so on. Please help me with that.

Help needed

2014-11-29 Thread Gautam R Bharadwaj
Here is the code in python, this code arranges the alphabets in descending order and now I want to encode each alphabet with 0 and next alphabet with 1, then 00,01,10,11,000,001 and so on. Please help me with that. //

Re: Help needed to create a Python extension library for an existing shared memory hash table library

2014-03-23 Thread Jens Thoms Toerring
Simon Hardy-Francis simo...@gmail.com wrote: Hi Python fans, I just released my first open source project ever called SharedHashFile [1]. It's a shared memory hash table written in C. Some guy on Quora asked [2] whether there's an extension library for Python coming out. I would like to do one

Re: Help needed to create a Python extension library for an existing shared memory hash table library

2014-03-23 Thread Rustom Mody
On Sunday, March 23, 2014 6:37:11 PM UTC+5:30, Jens Thoms Toerring wrote: Simon Hardy-Francis wrote: Hi Python fans, I just released my first open source project ever called SharedHashFile [1]. It's a shared memory hash table written in C. Some guy on Quora asked [2] whether there's an

Help needed to create a Python extension library for an existing shared memory hash table library

2014-03-22 Thread Simon Hardy-Francis
Hi Python fans, I just released my first open source project ever called SharedHashFile [1]. It's a shared memory hash table written in C. Some guy on Quora asked [2] whether there's an extension library for Python coming out. I would like to do one but I know little about Python. I was

Anki add-on - Help needed

2013-11-06 Thread SH
Is anybody here able to help me finish off an Anki add-on? If you're not familiar with it, Anki (http://ankisrs.net/) is an open source, cross platform flashcard learning program, in PyQT. It's extensible, with add- ons. Thing is, I'm not a programmer, but I've managed to make my own add-on by

Re: Anki add-on - Help needed

2013-11-06 Thread Joel Goldstick
On Wed, Nov 6, 2013 at 9:17 AM, SH sshh@invalid.invalid wrote: Is anybody here able to help me finish off an Anki add-on? If you're not familiar with it, Anki (http://ankisrs.net/) is an open source, cross platform flashcard learning program, in PyQT. It's extensible, with add- ons.

pyGTK Help Needed Please

2013-09-20 Thread bingefeller
Hi folks, I'm trying to run a program called Nicotine+ on my Mac which is running 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have all of these installed via Macports (please see here - http://pastebin.com/nwmrpp2Y ) When I try to run Nicotine+ I get this message:

Re: pyGTK Help Needed Please

2013-09-20 Thread Michael Torrie
On 09/20/2013 12:30 PM, bingefel...@gmail.com wrote: Hi folks, I'm trying to run a program called Nicotine+ on my Mac which is running 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have all of these installed via Macports (please see here -

Re: help needed

2013-04-09 Thread leonardo
thanks i did it! Il giorno 08/apr/2013, alle ore 13:56, rusi rustompm...@gmail.com ha scritto: On Apr 8, 4:41 pm, Dave Angel da...@davea.name wrote: Go back to the previous message and you'll see Adam tells you exactly what to type at the terminal. But to be more literal: python

help needed

2013-04-08 Thread leonardo selmi
hello all, i have typed the following program from the book learn python the hard way: from sys import argv script, first, second, third = argv print The script is called:, script print Your first variable is:, first print Your second variable is:, second print Your third variable is:, third

Re: help needed

2013-04-08 Thread Barrett Lewis
Do you happen to be on windows? Because if you are then you need to edit the registry. If you are on windows let me know and I will walk you through the fix, but if not then it would be a waste of time for me to explain it. -- http://mail.python.org/mailman/listinfo/python-list

Re: help needed

2013-04-08 Thread Adam Mesha
On Mon, Apr 8, 2013 at 11:01 AM, leonardo selmi l.se...@icloud.com wrote: then i get this error: Traceback (most recent call last): File /Users/leonardo/Documents/ex13.py, line 3, in module script, first, second, third = argv ValueError: need more than 1 value to unpack You didn't

Re: help needed

2013-04-08 Thread leonardo
thanks barrett, but i am using a mac.. Il 08/04/2013 11.15, Barrett Lewis ha scritto: Do you happen to be on windows? Because if you are then you need to edit the registry. If you are on windows let me know and I will walk you through the fix, but if not then it would be a waste of time for

Re: help needed

2013-04-08 Thread Chris Angelico
On Mon, Apr 8, 2013 at 7:29 PM, leonardo tampucciol...@libero.it wrote: thanks barrett, but i am using a mac.. Open up Terminal - that'll give you a window with a bash prompt. Proceed from there; it's the same as the default shell on many Linuxes. ChrisA --

Re: help needed

2013-04-08 Thread leonardo
thanks adam, but it is not clear to me yet. if i open the terminal how do i work on it? what should i type in? thanks Il giorno 08/apr/2013, alle ore 11:25, Adam Mesha a...@mesha.org ha scritto: On Mon, Apr 8, 2013 at 11:01 AM, leonardo selmi l.se...@icloud.com wrote: then i get this error:

Re: help needed

2013-04-08 Thread Dave Angel
On 04/08/2013 07:24 AM, leonardo wrote: thanks adam, but it is not clear to me yet. if i open the terminal how do i work on it? what should i type in? Please don't top-post. It kills off the context. Go back to the previous message and you'll see Adam tells you exactly what to type at the

Re: help needed

2013-04-08 Thread rusi
On Apr 8, 4:41 pm, Dave Angel da...@davea.name wrote: Go back to the previous message and you'll see Adam tells you exactly what to type at the terminal.  But to be more literal: python ex13.py  first 2nd 3rd followed by RET (also called ENTER) key --

Re: Help needed installing easy_install and lxml2

2012-08-16 Thread Stefan Behnel
Ian, 15.08.2012 21:39: On a reasonably fresh (3 day old) install of 64 bit windows 7, I have installed the 64 bit Python 2.7.3 from http://www.python.org/download/ Then I installed the 64 bit version of easy_install using http://pypi.python.org/pypi/setuptools And then install lxml

Re: Help needed installing easy_install and lxml2

2012-08-16 Thread Ian
On 16/08/2012 08:01, Stefan Behnel wrote: http://lxml.de/FAQ.html#where-are-the-binary-builds Stefan Hi Stefan, Thanks Stefan, everything is working fine now. Regards Ian -- http://mail.python.org/mailman/listinfo/python-list

Help needed installing easy_install and lxml2

2012-08-15 Thread Ian
Hi, On a reasonably fresh (3 day old) install of 64 bit windows 7, I have installed the 64 bit Python 2.7.3 from http://www.python.org/download/ Then I installed the 64 bit version of easy_install using http://pypi.python.org/pypi/setuptools And then install lxml 2.3.5, for which I use

Re: help needed with subprocess, pipes and parameters

2012-07-17 Thread John Pote
nuffi, Have you tried running your piped commands c:\Programs\bob\bob.exe -x -y C:\text\path\to some\file.txt | c:\Programs\kate\kate.exe -A 2 --dc Print Media Is Dead --da Author --dt Title --hf Times --bb 14 --aa --font Ariel - C:\rtf\path\to some\file.rtf in a single instance of

Re: help needed with subprocess, pipes and parameters

2012-07-14 Thread Chris Rebert
On Friday, July 13, 2012, nuffi wrote: If I copy and paste the following command into a command window, it does what I need. c:\Programs\bob\bob.exe -x -y C:\text\path\to some\file.txt | c:\Programs\kate\kate.exe -A 2 --dc Print Media Is Dead --da Author --dt Title --hf Times --bb 14

help needed with subprocess, pipes and parameters

2012-07-13 Thread nuffi
If I copy and paste the following command into a command window, it does what I need. c:\Programs\bob\bob.exe -x -y C:\text\path\to some\file.txt | c:\Programs\kate\kate.exe -A 2 --dc Print Media Is Dead --da Author --dt Title --hf Times --bb 14 --aa --font Ariel - C:\rtf\path\to

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread Eelco
thank you both for your replies. Unfortunately it is a pre-existing file format imposed by an external system that I can't change. Thank you for the code snippet. Hi Richard, Despite the fact that it is a preexisting format, it is very close indeed to valid YAML code. Writing your own

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 4, 3:20 pm, richard pullenjenn...@gmail.com wrote: On Jun 4, 3:14 pm, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: richard pullenjenn...@gmail.com writes: Hi guys i am having a bit of dificulty finding the best approach / solution to parsing a file into a list of

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 8:50 pm, Eelco hoogendoorn.ee...@gmail.com wrote: thank you both for your replies. Unfortunately it is a pre-existing file format imposed by an external system that I can't change. Thank you for the code snippet. Hi Richard, Despite the fact that it is a preexisting format, it

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread Alain Ketterlin
richard pullenjenn...@gmail.com writes: [I'm leaving the data in the message in case anybody has troubles going up-thread.] Hi guys still struggling to get the code that was posted to me on this forum to work in my favour and get the output in the format shown above. This is what I have so

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 9:40 pm, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: richard pullenjenn...@gmail.com writes: [I'm leaving the data in the message in case anybody has troubles going up-thread.] Hi guys still struggling to get the code that was posted to me on this forum to work in

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 9:40 pm, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: richard pullenjenn...@gmail.com writes: [I'm leaving the data in the message in case anybody has troubles going up-thread.] Hi guys still struggling to get the code that was posted to me on this forum to work in

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 10:21 pm, richard pullenjenn...@gmail.com wrote: On Jun 5, 9:40 pm, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: richard pullenjenn...@gmail.com writes: [I'm leaving the data in the message in case anybody has troubles going up-thread.] Hi guys still

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread Alain Ketterlin
richard pullenjenn...@gmail.com writes: An instance of TestArray  a=a  b=b  c=c  List of 2 A elements:   Instance of A element    a=1    b=2    c=3   Instance of A element    d=1    e=2    f=3  List of 1 B elements   Instance of B element    a=1    b=2    c=3

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 10:33 pm, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: richard pullenjenn...@gmail.com writes: An instance of TestArray  a=a  b=b  c=c  List of 2 A elements:   Instance of A element    a=1    b=2    c=3   Instance of A element    d=1    e=2  

Help needed with nested parsing of file into objects

2012-06-04 Thread richard
Hi guys i am having a bit of dificulty finding the best approach / solution to parsing a file into a list of objects / nested objects any help would be greatly appreciated. #file format to parse .txt [code] An instance of TestArray a=a b=b c=c List of 2 A elements: Instance of A element

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread Roy Smith
In article 6b296278-fd32-45fb-b5c7-6c0fe5ce4...@q2g2000vbv.googlegroups.com, richard pullenjenn...@gmail.com wrote: Hi guys i am having a bit of dificulty finding the best approach / solution to parsing a file into a list of objects / nested objects any help would be greatly appreciated.

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread Alain Ketterlin
richard pullenjenn...@gmail.com writes: Hi guys i am having a bit of dificulty finding the best approach / solution to parsing a file into a list of objects / nested objects any help would be greatly appreciated. #file format to parse .txt [code] An instance of TestArray a=a b=b c=c

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread richard
On Jun 4, 3:14 pm, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: richard pullenjenn...@gmail.com writes: Hi guys i am having a bit of dificulty finding the best approach / solution to parsing a file into a list of objects / nested objects any help would be greatly appreciated. #file

Re: help needed to understand an error message.

2012-03-30 Thread J. Cliff Dyer
So the problem is that python doesn't know what you're trying to do. It doesn't know that you meant to say print. When the parser is looking at the word Print, it assumes you are referencing an object named Print, which is completely legal. It's only once you've created the next token, a string

help needed to understand an error message.

2012-03-26 Thread Aloke Ghosh
Hi, I am learning Python and do not have programming experience. I was following an exercise from http://learnpythonthehardway.org/book/ex2.html and made a mistake in entry : *PrintI like typing this.* and got the following error message: *In [2]: PrintI like typing this.*

Re: help needed to understand an error message.

2012-03-26 Thread Jean-Michel Pichavant
Aloke Ghosh wrote: Hi, I am learning Python and do not have programming experience. I was following an exercise from http://learnpythonthehardway.org/book/ex2.html and made a mistake in entry : *PrintI like typing this.* and got the following error message: *In [2]: PrintI like typing

RE: help needed to understand an error message.

2012-03-26 Thread Prasad, Ramit
I feel the error is in Capital P in print . However the error indicated with *^* hints at quote at the end of the line. Anyway, the hint indicates the last quote because this is the location where the python interpreter realizes it won't be able to execute the code. You should not worry

Help needed to understand the error message

2012-03-23 Thread Aloke Ghosh
Hi, I am learning Python and do not have programming experience. I was following an exercise from http://learnpythonthehardway.org/book/ex2.html and made a mistake in entry : *PrintI like typing this.* and got the following error message: *In [2]: PrintI like typing this.*

Re: Help needed to understand the error message

2012-03-23 Thread MRAB
On 24/03/2012 03:37, Aloke Ghosh wrote: Hi, I am learning Python and do not have programming experience. I was following an exercise from http://learnpythonthehardway.org/book/ex2.html and made a mistake in entry : *PrintI like typing this.* and got the following error message: *In [2]:

RE: Help needed: dynamically pull data from different levels of a dict

2012-03-01 Thread Peter Rubenstein
Thanks, Chris. That's the algorithm I was looking for. And I will be converting most of this data to objects. Thanks again. -Original Message- From: Chris Rebert [mailto:c...@rebertia.com] Sent: Wednesday, February 29, 2012 11:44 PM Subject: Re: Help needed: dynamically pull data

Help needed: dynamically pull data from different levels of a dict

2012-02-29 Thread Peter Rubenstein
Hi, I'd appreciate a bit of help on this problem. I have some data that I've converted to a dict and I want to pull out individual pieces of it. Simplified version-- a={'1':'a', '2':'b', '3':{4:'d'}, '5':{'6': {'7': [ {'8':'e'}, {'9':'f'} ] } } } I'd like to be able to code something like:

Re: Help needed: dynamically pull data from different levels of a dict

2012-02-29 Thread Peter Rubenstein
--Reposting in plan text, apologies-- Hi, I'd appreciate a bit of help on this problem.  I have some data that I've converted to a dict and I want to pull out individual pieces of it. Simplified version-- a={'1':'a', '2':'b', '3':{4:'d'}, '5':{'6': {'7': [ {'8':'e'}, {'9':'f'} ] } } } I'd

Re: Help needed: dynamically pull data from different levels of a dict

2012-02-29 Thread Chris Rebert
On Wed, Feb 29, 2012 at 7:56 PM, Peter Rubenstein peter.rubenst...@hotmail.com wrote: Hi, I'd appreciate a bit of help on this problem.  I have some data that I've converted to a dict and I want to pull out individual pieces of it. Simplified version-- a={'1':'a', '2':'b', '3':{4:'d'},

Re: Help needed: dynamically pull data from different levels of a dict

2012-02-29 Thread Terry Reedy
On 2/29/2012 11:04 PM, Peter Rubenstein wrote: I'd appreciate a bit of help on this problem. I have some data that I've converted to a dict and I want to pull out individual pieces of it. Simplified version-- a={'1':'a', '2':'b', '3':{4:'d'}, '5':{'6': {'7': [ {'8':'e'}, {'9':'f'} ] } } }

help needed on decimal formatting issue

2011-09-19 Thread Robin Becker
I'm not really very used to the decimal module so I'm asking here if any one can help me with a problem in a well known third party web framework The code in question is def format_number(value, max_digits, decimal_places): Formats a number into a string with the requisite number of

Re: help needed on decimal formatting issue

2011-09-19 Thread Mark Dickinson
On Sep 19, 1:42 pm, Robin Becker ro...@reportlab.com wrote: I'm not really very used to the decimal module so I'm asking here if any one can help me with a problem in a well known third party web framework The code in question is def format_number(value, max_digits, decimal_places):      

Help needed with using SWIG wrapped code in Python

2011-08-15 Thread Vipul Raheja
Hi, I have wrapped a library from C++ to Python using SWIG. But I am facing problems while importing and using it in Python. $ python import pyossimtest import pyossim a = [Image1.png,Image2.png] b = pyossimtest.Info() b.initialize(len(a),a) Traceback (most recent call last): File stdin,

Re: Help needed with using SWIG wrapped code in Python

2011-08-15 Thread Stefan Behnel
Vipul Raheja, 15.08.2011 10:08: I have wrapped a library from C++ to Python using SWIG. But I am facing problems while importing and using it in Python. $ python import pyossimtest import pyossim a = [Image1.png,Image2.png] b = pyossimtest.Info() b.initialize(len(a),a) Traceback (most

Re: Help needed with using SWIG wrapped code in Python

2011-08-15 Thread Philip Semanchuk
On Aug 15, 2011, at 4:08 AM, Vipul Raheja wrote: Hi, I have wrapped a library from C++ to Python using SWIG. But I am facing problems while importing and using it in Python. Hi Vipul, Did you try asking about this on the SWIG mailing list? bye Philip --

Newby Python help needed with functions

2011-06-03 Thread Cathy James
I need a jolt here with my python excercise, please somebody!! How can I make my functions work correctly? I tried below but I get the following error: if f_dict[capitalize]: KeyError: function capitalize at 0x00AE12B8 Code below: def capitalize (s): capitalize accepts a string parameter

Re: Newby Python help needed with functions

2011-06-03 Thread Andrew Berg
On 2011.06.03 09:42 AM, Cathy James wrote: I need a jolt here with my python excercise, please somebody!! How can I make my functions work correctly? I tried below but I get the following error: if f_dict[capitalize]: KeyError: function capitalize at 0x00AE12B8 ... def capitalize (s):

Re: Newby Python help needed with functions

2011-06-03 Thread Tim Chase
On 06/03/2011 09:42 AM, Cathy James wrote: I need a jolt here with my python excercise, please somebody!! How can I make my functions work correctly? I tried below but I get the following error: if f_dict[capitalize]: KeyError:function capitalize at 0x00AE12B8 def capitalize (s): Here you

Re: Newby Python help needed with functions

2011-06-03 Thread Jonathan Gardner
On Fri, Jun 3, 2011 at 7:42 AM, Cathy James nambo...@gmail.com wrote: I need a jolt here with my python excercise, please somebody!! How can I make my functions work correctly? I tried below but I get the following error: if f_dict[capitalize]: KeyError: function capitalize at 0x00AE12B8

Re: Newby Python help needed with functions

2011-06-03 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Cathy James wrote: I need a jolt here with my python excercise, please somebody!! How can I make my functions work correctly? I tried below but I get the following error: if f_dict[capitalize]: KeyError:function capitalize at 0x00AE12B8 Code below: def capitalize

Help needed with unittest and global

2011-01-09 Thread Ian Hobson
Hi all, I am trying to develop a PyQt application, and I want to unittest it. After three false starts, I am plainly unaware of something rather basic - can some kind person please help me out? This is a log to show what I have so far D:\work\iantype testAll.py # coding=utf8 # testAll.py

Re: Help needed with unittest and global

2011-01-09 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Ian Hobson wrote: Hi all, I am trying to develop a PyQt application, and I want to unittest it. After three false starts, I am plainly unaware of something rather basic - can some kind person please help me out? This is a log to show what I have so far

Re: Help needed with unittest and global

2011-01-09 Thread Ian
On 09/01/2011 19:53, Dave Angel wrote: On 01/-10/-28163 02:59 PM, Ian Hobson wrote: Hi all, I am trying to develop a PyQt application, and I want to unittest it. snip D:\work\ianpython testAll.py E == ERROR:

Help Needed - Using Safenet( Previously, Aladdin) HASP Hardware Lock with Python

2010-10-21 Thread Bishwarup Banerjee
Dear All, It will be very kind of you, if you can let me know (Or point to some links), how to use HASP Hardware Lock using Python ? I am trying to handle Hardware Lock authentication for our project, but cant find any clear cut solution. I am using python 2.5 on windows XP platform. With Warm

Re: Help needed - To get path of a directory

2010-10-14 Thread Tim Golden
On 13/10/10 15:26, Bishwarup Banerjee wrote: I want to get the absolute path of the Directory I pass explicitly. Like functionName(\abcd). On 13/10/2010 05:44, Kingsley Turner wrote: One way to achieve this is to fetch a recursive directory list for all drives, and then search for your

Re: Help needed - To get path of a directory

2010-10-14 Thread Emmanuel Surleau
Dear Emmanuel, Thank you for your reply. Actually what I want to do is, at the run time I want to know the location of a specific directory. Then I will add some file name to the path and load the file. The directory can reside in any drive, depending on the user. Well... If you don't

Re: Help needed - To get path of a directory

2010-10-13 Thread Emmanuel Surleau
Dear All, I want to get the absolute path of the Directory I pass explicitly. Like functionName(\abcd). I should pass the name of the directory and the function should search for it in the Hard drives and return me the full path of location on the drive. I tried using os.path, but didn't

Re: Help needed - To get path of a directory

2010-10-13 Thread Bishwarup Banerjee
Dear Emmanuel, Thank you for your reply. Actually what I want to do is, at the run time I want to know the location of a specific directory. Then I will add some file name to the path and load the file. The directory can reside in any drive, depending on the user. With Warm Regards, On Wed,

Re: Help needed - To get path of a directory

2010-10-13 Thread Kingsley Turner
On 13/10/10 15:26, Bishwarup Banerjee wrote: I want to get the absolute path of the Directory I pass explicitly. Like functionName(\abcd). I should pass the name of the directory and the function should search for it in the Hard drives and return me the full path of location on the drive. I

Re: Help needed - To get path of a directory

2010-10-13 Thread Lawrence D'Oliveiro
In message mailman.1697.1287023724.29448.python-l...@python.org, Kingsley Turner wrote: I don't know how to enumerate all your windows device letters. There are only 26 of them, so you can try them all, right? -- http://mail.python.org/mailman/listinfo/python-list

Help needed - To get path of a directory

2010-10-12 Thread Bishwarup Banerjee
Dear All, I want to get the absolute path of the Directory I pass explicitly. Like functionName(\abcd). I should pass the name of the directory and the function should search for it in the Hard drives and return me the full path of location on the drive. I tried using os.path, but didn't

  1   2   3   4   5   >