A question about import

2024-02-16 Thread Gabor Urban via Python-list
Hi guys, I need something about modules to be clarified. Suppose I have written a module eg: ModuleA which imports an other module, let us say the datetime. If I import ModuleA in a script, will be datetime imported automatically? Thanks in advance, -- Urbán Gábor Linux is like a wigwam: no G

Testing list sequence question -- thanks for the info

2023-03-05 Thread Gabor Urban
Hi guys, Thank you very much for the accurate answer. Upgrading our Python to 3.7 seems to be out of question at the moment. I will check the requirement specification if the order of the keys is important at all. It could be a wish only. -- Urbán Gábor Linux is like a wigwam: no Gates, no Win

Testing list sequence question

2023-03-04 Thread Gabor Urban
Hi guys, I have a strange problem that I do not understand. I am testing function which returns a dictionary. The code should ensure that the keys of the dictionary are generated in a given order. I am testing the function with the standard unittest module and use the assertListEqual statement t

A problem with opening a file -- again

2020-11-29 Thread Gabor Urban
Hi guys, I tried to solve the problem once again. I have inserted some print statements the check the variables. The actual code (naplo.py) is copy-pasted here: class Naplo: def __init__(self, pNeve, pMeret, pMode = 'a'): self.logNev = pNeve self.meret = pMeret

A problem with opening a file

2020-11-28 Thread Gabor Urban
Hi, I am facing an issue I was not able to solve yet. I have a class saving messages to a file. The relevant code is: import OS import sys class MxClass: def __init__(self, fName, fMode,): self.fileName = fName self.fileMode = fMode def writeMetho

Re: Module import question

2020-08-09 Thread Gabor Urban
Hi guys, Thanks for the answers. IT is clear Noé. Gábor -- https://mail.python.org/mailman/listinfo/python-list

Module import question

2020-08-08 Thread Gabor Urban
Hi guys, I have a quite simple question but I could not find the correct answer. I have twoo modules A and B. A imports B. If I import A in a script, Will be B imported automatically? I guess not, but fő not know exactly. Thanks for your answer ín advance, Gábor -- https://mail.python.org/mail

Teaching Python

2014-09-29 Thread Gabor Urban
Hi, my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn anybody has an idea how to start? -- Urbán Gábor Linux is like a wigwam: no Gates, no Windows and an Apache inside. -- https:

Python 2.3 and ODBC

2014-04-08 Thread Gabor Urban
Hi guys, I am using Python 2.3 on an XP box at my company. (I know it is quite outdated, but we could not make the management to upgrade.) I have started a pilot project the last week to show the possibility of processing incoming XML files and extracting data into Oracle tables. Now I am almost

Repository of non-standard modules.

2013-07-31 Thread Gabor Urban
seems to be far from complete. Thanks in advance, Gabor Urban -- Urbán Gábor Linux is like a wigwam: no Gates, no Windows and an Apache inside. -- http://mail.python.org/mailman/listinfo/python-list

Set initial size in TKinter

2011-12-20 Thread Gabor Urban
Hi, I am quite newbie with Tkinter and I could not find the way to set the size of the application. (I could find the method to make it resizeable, though :-)) ) Any ideas, suggestions or links to references are wellcome. Here is my code: from Tkinter import * class Application(Frame): def

Class attributes / methods..... full Python script

2010-03-01 Thread Gabor Urban
Hi guys, thanks for the ideas. Here you are the code. Not transcoded from Java for I do not know Java enough.. I am scanning an XML file, and have a large ammount of logging. Any ideas are wellcome as before Thnx Code:> #- ## Generate CSV from O

Class attributes / methods lost?

2010-03-01 Thread Gabor Urban
Hi guys, I am building a nested data structure with the following compontens: <> class Item: def __init__(self, pId, pChange, pComment): self.ID = pId self.Delta = pChange self.Comment = pComment def PrintItem(self): str = '%s,%s,%s'%(self.ID,self.Delta,s

Two questions ( Oracle and modules )

2009-12-07 Thread Gabor Urban
Hi guys, I have two questions. 1. I have choice to introduce Python to my new employee. We are to write and application that uses databases stored partially in Oracle 10 and partially in Oracle 11. We have to execute standard SQL commands and stored procedures as well. Which is best conection / m

More Python versions on an XP machine

2009-11-14 Thread Gabor Urban
Hi guys, this a very MS specific question. I do use a rather old Python version, because we have a couple of applications written for that. Porting them to a newer Python is not allowed by the bosses. Now we will start a new project with latest stable Python. Can I have them both on my computer, a

Re: Question on PEP 337 (Vinay Sajip)

2009-10-28 Thread Gabor Urban
Hy guys, Sorry, Vinay Sajip was right. I wrote my questions about PEP 391. I would like to know your ideas about my questions posted in my last mail. Gabor -- Linux: Choice of a GNU Generation -- http://mail.python.org/mailman/listinfo/python-list

Question on PEP 337

2009-10-28 Thread Gabor Urban
Hy guys, this PEP is very well written, and I have found the discussion inspiring. Every time I use the logging module, I have the configuration hardcoded in the application. That is why I never used the configuration file based approach. Now I will give it a try. I think we should discuss t

Re: best vi / emacs python features

2009-10-12 Thread Gabor Urban
Hey guys, this is supposed to be a Python mailing list... Both editors are great and are with great potentials. I do use both of them daily, though for different purposes. It is meaningless to start this old issue of preferences anew. -- Linux: Choice of a GNU Generation -- http://mail.python.

Logging question

2009-09-22 Thread Gabor Urban
Hi guys, I have embarassing problem using the logging module. I would like to encapsulate the creation and setting up of the logger in a class, but it does not seem working. Here are my relevant parts of the code: -- import sys import logging class LogClass: def __init__(self, fileName, lo

Re: What text editor is everyone using for Python

2009-05-28 Thread Gabor Urban
Hi guys, I would like to reflect this issue for the last time, though I found this thread to be quite inspiring. In one the last postings about this topic Steven D'Aprano has written: "As a general rule, menus are discoverable, while keyboard commands aren't. There's nothing inherent to text edit

Re: What text editor is everyone using for Python

2009-05-28 Thread Gabor Urban
I use Emacs, as for the other editing activities. I like it for it is very powerfull. -- Linux: Choice of a GNU Generation -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeking old post on developers who like IDEs vs developers who like simple languages

2009-05-18 Thread Gabor Urban
Hi guys, I think this issue is long-long displute over tools and IDE-s. No need to combine it with the question of the complexity of the programming language used. I know guys, who did every development project using a simple GVIM and command line tools, and vere extremly productive. Even in Java

Re: New to python, can i ask for a little help? (Andrew Chung)

2009-05-15 Thread Gabor Urban
I gues, it was rather simple... Begin with simple tasks, figure out how to do them. If you are proceding well, then increase difficulty/complexity. Gabor -- Linux: Choice of a GNU Generation -- http://mail.python.org/mailman/listinfo/python-list

Porting to new Python version

2009-02-19 Thread Gabor Urban
Hi, I have a tough issue: we are using a Python application written quite a time ago for version 2.4. The code is mature, and there are no bugs. My bosses came up with the idea to port it to the latest release... I am not really convinced that it's a good step. I wellcome any information pro and

Re: Volume id

2007-11-15 Thread Gabor Urban
OK, you are right... Problem was not precise enough. I need to process CDs to create a list. Does it ring a bell for you? Thanks 2007/11/15, Laszlo Nagy <[EMAIL PROTECTED]>: > > Gabor Urban wrote: > > Hi, > > > > I have a problem, which may be trivial, but I could

Volume id

2007-11-15 Thread Gabor Urban
Hi, I have a problem, which may be trivial, but I could not find an answer. I have to write a Python script, which does a directory tree walking on given mounted disk. But I do need to extract the volume id, somehow. And that's the problem. An additional issue, the script will be used on unix ty

Re: Simple question about logging module.

2007-07-31 Thread Gabor Urban
Thx guys You gave me good ideas. At the moment I do not have time for it, but I would like to write a summary. Have fun -- http://mail.python.org/mailman/listinfo/python-list

Simple question about logging module.

2007-07-31 Thread Gabor Urban
Hullo, I have started to use Python's logging, and got a problem. I have created some loggers and wrote some lines in the log. The problem is, that most of the lines appear doubled in the log, and some lines do not appear at all. Any ideas or comments are wellcome, Gabor Here is the code: impo

Re: The Modernization of Emacs: terminology buffer and

2007-07-13 Thread Gabor Urban
Hullo, I was just wondering if this thread was whithering out.. I gues not for a good time. A short summary in the hope for the last posting in this topic. Some provocative posting caused or Twister brother to send a large amount of doubtful info. It seems, he had some very bad experience w

Dynamic method

2007-07-10 Thread Gabor Urban
Hi guys. I have an issue I think Python could handle. But I do not have the knowledge to do it. Suppose I have a class 'myClass' and instance 'var'. There is function 'myFunc(..)'. I have to add (or bind) somehow the function to the class, or the instance. Any help, info or point of referenc

Emacs topic should be stopped....

2007-06-25 Thread Gabor Urban
Hi guys, I was going through most of this topic, but I find this not relevant on THIS mailing list... A short summary: there are some people who are not disturbed by proven facts. They are mostly attackers of emacs/Xemacs or vim... Or even linux and open source. Quite funny, since this is a

Emacs topic

2007-06-21 Thread Gabor Urban
Hi guys, I kindly ask you to stop this topic. Though I see the importance to have a good editor for programming, this is outside of the focus of a Python mailing list. The open source world offers a lot of very good tools to edit source files, even for cross-platform development. Emacs is one of

Re: The Modernization of Emacs

2007-06-20 Thread Gabor Urban
Hi guys... This topic is not relevant in this mailing list. Though some info from an other mailing list. Emacs (and xemacs) runs perfectly well on non-gui environments as well. So keyboard commands are the only efficient way to work with. It is true, Emacs may be a bit antiquated, but it honed