Re: Module Issue

2018-03-08 Thread dieter
Abdur-Rahmaan Janhangeer writes: > i have a project at > > https://github.com/Abdur-rahmaanJ/honeybot > > see https://github.com/Abdur-rahmaanJ/honeybot/tree/master/honeybot > > my question is : > > how to include a util file / module that can be imported in both > core_plugins and > user_plugins?

Module Issue

2018-03-07 Thread Abdur-Rahmaan Janhangeer
i have a project at https://github.com/Abdur-rahmaanJ/honeybot see https://github.com/Abdur-rahmaanJ/honeybot/tree/master/honeybot my question is : how to include a util file / module that can be imported in both core_plugins and user_plugins? if that is too difficult, let us take only core_pl

Python STEP file color and module issue.

2015-02-25 Thread Shiladittya Chakraborty
In the latest version of pythonOCC-0.16.0-win32-py34 its supporting WEBGGL that's a great one but its showing only one color and also its does not have all the module when I am going to compare this pythonOCC-0.16.0-win32-py34 with pythonOCC-0.4.win32-py2.6. So my questions are - 1) How to get

Re: deprecated string module issue

2010-06-26 Thread Stephen Hansen
On 6/26/10 3:56 AM, John Pinner wrote: On Jun 25, 11:14 pm, Steven D'Aprano wrote: Terry made the very reasonable observation that you would serve the community, and thank us, by posting a bug report to pylint, rather than just ignoring it, and you respond with a totally bogus accusation of "ru

Re: deprecated string module issue

2010-06-26 Thread John Pinner
On Jun 25, 11:14 pm, Steven D'Aprano wrote: > On Fri, 25 Jun 2010 16:31:17 -0500, GrayShark wrote: > > Why the rudness Terry Jan Reedy? Get up on the wrong side of the bed? Or > > worse luck, no one on the other side to create a wrong side? > > I see only one person being rude here, and that's you

Re: deprecated string module issue

2010-06-25 Thread Robert Kern
On 6/25/10 4:31 PM, GrayShark wrote: Why the rudness Terry Jan Reedy? Get up on the wrong side of the bed? Or worse luck, no one on the other side to create a wrong side? As to your comment about Logilab's pylint. I'v seen a ticket similar to this from three months back. I assume they're not fix

Re: deprecated string module issue

2010-06-25 Thread Stephen Hansen
Uhh... On Fri, Jun 25, 2010 at 2:31 PM, GrayShark wrote: > As to your comment about Logilab's pylint. I'v seen a ticket similar to > this from three months back. I assume they're not fixing it because if > you review 'string' via pydoc you'd read this: > > ---

Re: deprecated string module issue

2010-06-25 Thread Mark Lawrence
First up please don't top post. Second (although I'm sure Terry Reedy can speak for himself) said TJR has put more into Python than I've drunk pints of beer, and that's saying something, so you accusing him of being rude to me stinks!!! Please apologise or get off of this ng/ml. Disgusted.

Re: deprecated string module issue

2010-06-25 Thread Steven D'Aprano
On Fri, 25 Jun 2010 16:31:17 -0500, GrayShark wrote: > Why the rudness Terry Jan Reedy? Get up on the wrong side of the bed? Or > worse luck, no one on the other side to create a wrong side? I see only one person being rude here, and that's you. Terry made the very reasonable observation that yo

Re: deprecated string module issue

2010-06-25 Thread GrayShark
Why the rudness Terry Jan Reedy? Get up on the wrong side of the bed? Or worse luck, no one on the other side to create a wrong side? As to your comment about Logilab's pylint. I'v seen a ticket similar to this from three months back. I assume they're not fixing it because if you review 'string

Re: deprecated string module issue

2010-06-25 Thread Terry Reedy
On 6/25/2010 10:02 AM, GrayShark wrote: Thanks for the suggestion. I gave it a quick try. Same 'warning'. No, using the string module is the issue. Perhaps I'll just ignore it. And what about the next naive user of pylint? Submitting a bug report to the author of pylint would take much less t

Re: deprecated string module issue

2010-06-25 Thread Stephen Hansen
On Fri, Jun 25, 2010 at 7:02 AM, GrayShark wrote: > Thanks for the suggestion. I gave it a quick try. Same 'warning'. No, > using the string module is the issue. Perhaps I'll just ignore it. > Perhaps? Why perhaps? The warning is simply factually wrong-- therefore, there's no reason in the world

Re: deprecated string module issue

2010-06-25 Thread GrayShark
On Fri, 25 Jun 2010 01:29:22 +, Benjamin Peterson wrote: > GrayShark gmail.com> writes: > >> Sorry, I meant "from string import lowercase, uppercase" > > Technically, you should use ascii_lowercase and ascii_uppercase, though > I don't know if that's the cause of pylint's complaints. Thank

Re: deprecated string module issue

2010-06-24 Thread Benjamin Peterson
GrayShark gmail.com> writes: > Sorry, I meant "from string import lowercase, uppercase" Technically, you should use ascii_lowercase and ascii_uppercase, though I don't know if that's the cause of pylint's complaints. -- http://mail.python.org/mailman/listinfo/python-list

Re: deprecated string module issue

2010-06-24 Thread Terry Reedy
On 6/24/2010 1:50 PM, Ixokai wrote: On Thu, Jun 24, 2010 at 10:39 AM, GrayShark So if the constants are not deprecated, why is the module? Is some Again: the string module is not deprecated. It simply is not. GrayShark, pylint has a bug. Tell the author that its over-enthusiastic message

Re: deprecated string module issue

2010-06-24 Thread Thomas Jollans
On 06/24/2010 07:39 PM, GrayShark wrote: > On Jun 24, 10:06 am, GrayShark wrote: >> In my code I have: >> from string import lower, upper >> >> When I use pylint on the program I get just one warning: >> >> Uses of a deprecated module 'string'. >> >> Iv'e noted that many if not all string function

Re: deprecated string module issue

2010-06-24 Thread Ixokai
On Thu, Jun 24, 2010 at 10:39 AM, GrayShark wrote: > Sorry, I meant "from string import lowercase, uppercase" > > As I was joining these two, I just changed the import to 'letters' > > So if the constants are not deprecated, why is the module? Is some > other > state then deprecated needed to des

Re: deprecated string module issue

2010-06-24 Thread GrayShark
On Jun 24, 10:06 am, GrayShark wrote: > In my code I have: > from string import lower, upper > > When I use pylint on the program I get just one warning: > > Uses of a deprecated module 'string'. > > Iv'e noted that many if not all string functions are now in _builtin_. > Where are the constants?

Re: deprecated string module issue

2010-06-24 Thread Stephen Hansen
On Thu, Jun 24, 2010 at 10:06 AM, GrayShark wrote: > In my code I have: > from string import lower, upper > > When I use pylint on the program I get just one warning: > > Uses of a deprecated module 'string'. > > Iv'e noted that many if not all string functions are now in _builtin_. > Where are t

deprecated string module issue

2010-06-24 Thread GrayShark
In my code I have: from string import lower, upper When I use pylint on the program I get just one warning: Uses of a deprecated module 'string'. Iv'e noted that many if not all string functions are now in _builtin_. Where are the constants? Thanks Steven -- http://mail.python.org/mailman/list

Re: Tar module issue

2005-02-07 Thread Eddie Corns
I don't have the original query any more but I think your problem is related to mixing absolute and relative file paths. That is the filenames themselves, I think I recall in your original message you were mixing up the idea of global variables in your code versus the filenames stored in the TAR a

Re: Tar module issue

2005-02-07 Thread chaica
Thx for your response. The fact is that I use tar.close() at the end of my code. This is really a random behaviour cause with an archive which has a short directory tree, I don't have this kind of beahavior and the archive works. thx On Mon, 2005-02-07 at 13:01 +, Russell Bungay wrote: > Hel

Re: Tar module issue

2005-02-07 Thread Russell Bungay
Hello, I'm using tarfile module to create an archive. For my example I'm using Amsn file and directory tree. My variables are like these ones: path = /home/chaica/downloads/amsn-0_94/skins/Tux/smileys/shades.gif fileName = amsn-0_94/skins/Tux/smileys/shades.gif tar.add( path, fileName ) and while

Tar module issue

2005-02-07 Thread chaica
Hi, [EMAIL PROTECTED] chaica $ python Python 2.4 (#1, Jan 10 2005, 22:28:10) [GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)] on linux2 I'm using tarfile module to create an archive. For my example I'm using Amsn file and directory tree. My variables are like these ones: path = /hom