What is the semantics meaning of 'object'?

2013-06-22 Thread Adam
the semantics meaning of such kind of notation? Thanks, /Adam -- http://mail.python.org/mailman/listinfo/python-list

PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-26 Thread Adam
Host OS:Ubuntu 10.04 LTS Guest OS:Windows XP Pro SP3 I am able to open port COM4 with Terminal emulator. So, what can cause PySerial to generate the following error ... C:\Wattcher>python wattcher.py Traceback (most recent call last): File "wattcher.py", line 56, in ser.open()

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"John Nagle" wrote in message news:jse604$1cq$1...@dont-email.me... > On 6/26/2012 9:12 PM, Adam wrote: >> Host OS:Ubuntu 10.04 LTS >> Guest OS:Windows XP Pro SP3 >> >> >> I am able to open port COM4 with Terminal emulator. >> >>

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Paul" wrote in message news:jseu9c$sp3$1...@dont-email.me... > Adam wrote: >> "John Nagle" wrote in message >> news:jse604$1cq$1...@dont-email.me... >>> On 6/26/2012 9:12 PM, Adam wrote: >>>> Host OS:Ubuntu 10.04 LTS >>>&

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Paul" wrote in message news:jsfatv$djt$1...@dont-email.me... > Adam wrote: >> "Paul" wrote in message >> news:jseu9c$sp3$1...@dont-email.me... >>> Adam wrote: >>>> "John Nagle" wrote in message >>>> news:jse604

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Paul" wrote in message news:jsfhv2$ta9$1...@dont-email.me... > Adam wrote: > >> >> This is a tough one. > > Try > >handle -a > allhand.txt > > Then open the allhand.txt with Notepad and look for interesting entries. > > **

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Grant Edwards" wrote in message news:jsftah$bb5$1...@reader1.panix.com... > On 2012-06-27, Adam wrote: > >> The Python script needed a call to ser.close() before ser.open() in >> order to work. > > IOW, the port opened OK, but when you tried to open it a seco

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Temia Eszteri" wrote in message news:ra2nu7h75720i75ijhabg12dngrab75...@4ax.com... > On Wed, 27 Jun 2012 22:18:59 + (UTC), Grant Edwards > wrote: > >>> Can you post a small example showing what you're doing? >> >>The best way to get help is to write as small a program as possible >>that de

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Grant Edwards" wrote in message news:jsg4o8$o4p$1...@reader1.panix.com... > On 2012-06-27, Adam wrote: >> >>> Actually, I believe someone in an earlier thread in the newsgroup or >>> elsewhere pointed out that serial ports automatically open under >>

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-28 Thread Adam
"Grant Edwards" wrote in message news:jshotj$s55$1...@reader1.panix.com... > On 2012-06-28, Adam wrote: > >> Obviously pySerial considers the serial port open > > Because it's already been opened by the Python program. > >> and will not open an a

Re: PySerial could not open port COM4: [Error 5] Access is denied- please help

2012-06-28 Thread Adam
"Roel Schroeven" wrote in message news:mailman.1618.1340910525.4697.python-l...@python.org... > Temia Eszteri schreef: >> Actually, I believe someone in an earlier thread in the newsgroup or >> elsewhere pointed out that serial ports automatically open under >> Windows. I'd have to look it back

Re: crash while using PyCharm / Python3

2016-05-03 Thread Adam
"Jonathan N. Little" wrote in message news:ncqc7j$na1$1...@dont-email.me... > Adam wrote: >> "Adam" wrote in message >> news:ncprqb$tl9$1...@news.albasani.net... >>> >>> "Jonathan N. Little" wrote in message >>> news:ncp

Re: FTP over TLS

2005-11-28 Thread adam
quest for SSL 3) SSL your socket to the FTP server 4) Continue on your merry FTP way. -adam -- http://mail.python.org/mailman/listinfo/python-list

getting words from readline

2005-09-10 Thread Adam
How is best to extract word strings from a line = infile.readline() I wish to quickly check the first word of each line of a text file. Indeed, How do I break a lineinput() line into component words (separate by spaces etc) ? Should I be looking at; Re Parser Slice StringIO ? Any help

Re: getting words from readline

2005-09-11 Thread Adam
Ouch. That is simple with .split I must have got confused amongst slice re etc. searching searching. Thanks folks. Painless. -- http://mail.python.org/mailman/listinfo/python-list

Font size

2005-02-15 Thread Adam
Please help me. How do you clear the screen and then display a number with an enlarged font size (about 300). Adam. -- http://mail.python.org/mailman/listinfo/python-list

Re: Font size

2005-02-15 Thread Adam
"BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: > >> Please help me. >> How do you clear the screen and then display a number with an enlarged >> font >> size (about 300). >

Re: Font size

2005-02-16 Thread Adam
"Adam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: >> >>> Please help me. >>>

Re: Font size

2005-02-17 Thread Adam
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Adam" <[EMAIL PROTECTED]> wrote: > >> So we came up with the idea of using a random number generator to >> generate numbers from 0 to 36 and display them in large f

Re: Font size

2005-02-18 Thread Adam
Thanks Fredrik, I got your program running (with a couple of tweaks) with just a quarter of an hour to spare before using it at our happy hour yesterday. The old ladies loved it. I can now adapt it for bingo. Thanking you Adam. -- http://mail.python.org/mailman/listinfo/python-list

Python consultant

2004-12-07 Thread Adam
I know Java and C very well, and I've also decided to learn python. I am currently coding a web based massively multiplayer Nation Simulation with Python(that's how I learn languages, I undertake fairly large projects.) My friend and I have written a lot of it, and we started a project on sourcefor

Re: Python SSL Socket issue

2005-04-20 Thread adam
Try con.connect() before the first putrequest -adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Redhat 9, Python 2.4.1, CGIHTTPServer problem

2005-04-20 Thread adam
l for the apache user. -adam -- http://mail.python.org/mailman/listinfo/python-list

Code review?

2014-01-13 Thread Adam
images via a form in Flask, but that’s another story). Happy coding Adam -- https://mail.python.org/mailman/listinfo/python-list

crash while using PyCharm / Python3

2016-03-18 Thread Adam
Host OS:Ubuntu Desktop 14.04 LTS / Unity System crashed while using PyCharm / Python3. Booting takes forever and stuck at the purple screen with the Ubuntu logo and the five dots cycling. How to fix? -- https://mail.python.org/mailman/listinfo/python-list

Re: crash while using PyCharm / Python3

2016-03-21 Thread Adam
"Adam" wrote in message news:ncikss$tks$1...@news.albasani.net... > > Host OS:Ubuntu Desktop 14.04 LTS / Unity > > System crashed while using PyCharm / Python3. > Booting takes forever and stuck at the purple screen with > the Ubuntu logo and the five dots cyc

Re: crash while using PyCharm / Python3

2016-03-21 Thread Adam
"Adam" wrote in message news:ncp8r1$ofd$1...@news.albasani.net... > > "Adam" wrote in message > news:ncikss$tks$1...@news.albasani.net... >> >> Host OS:Ubuntu Desktop 14.04 LTS / Unity >> >> System crashed while using PyCharm / Pyth

Re: crash while using PyCharm / Python3

2016-03-21 Thread Adam
"Dirk T. Verbeek" wrote in message news:56f03080$0$5924$e4fe5...@news.xs4all.nl... > Op 21-03-16 om 17:51 schreef Adam: >> "Adam" wrote in message >> news:ncikss$tks$1...@news.albasani.net... >>> >>> Host OS:Ubuntu Desktop 14.04 L

Re: crash while using PyCharm / Python3

2016-03-21 Thread Adam
"Dirk T. Verbeek" wrote in message news:56f03080$0$5924$e4fe5...@news.xs4all.nl... > Op 21-03-16 om 17:51 schreef Adam: >> "Adam" wrote in message >> news:ncikss$tks$1...@news.albasani.net... >>> >>> Host OS:Ubuntu Desktop 14.04 L

Re: crash while using PyCharm / Python3

2016-03-21 Thread Adam
"Jonathan N. Little" wrote in message news:ncpjj0$7ug$1...@dont-email.me... > Adam wrote: >> There ought to be a way to just reinstall the graphics subsystem rather >> than >> an all-or-none installation approach. > > Yes you can. Did it for a borked in

Re: crash while using PyCharm / Python3

2016-03-21 Thread Adam
"Adam" wrote in message news:ncprqb$tl9$1...@news.albasani.net... > > "Jonathan N. Little" wrote in message > news:ncpjj0$7ug$1...@dont-email.me... >> Adam wrote: >>> There ought to be a way to just reinstall the graphics subsystem rather >&

Re: crash while using PyCharm / Python3

2016-03-21 Thread Adam
"Adam" wrote in message news:ncpev8$51d$1...@news.albasani.net... > > "Dirk T. Verbeek" wrote in message > news:56f03080$0$5924$e4fe5...@news.xs4all.nl... >> Op 21-03-16 om 17:51 schreef Adam: >>> "Adam" wrote in message >>&

Re: crash while using PyCharm / Python3

2016-03-22 Thread Adam
"Jonathan N. Little" wrote in message news:ncqc7j$na1$1...@dont-email.me... > Adam wrote: >> "Adam" wrote in message >> news:ncprqb$tl9$1...@news.albasani.net... >>> >>> "Jonathan N. Little" wrote in message >>> news:ncp

Re: crash while using PyCharm / Python3

2016-03-22 Thread Adam
"Jonathan N. Little" wrote in message news:ncqd2d$pab$1...@dont-email.me... > Adam wrote: >> Sure glad I did not reinstall Ubuntu. Whew!! > > Unless you really-really-really screw things up, you usually do not have > to. Linux is not Windows ;-) Even if you h

Re: crash while using PyCharm / Python3

2016-03-22 Thread Adam
"Big Bad Bob" wrote in message news:mp6dnavahbnh6gzlnz2dnuu7-y_nn...@earthlink.com... > On 03/21/16 17:23, Adam so wittily quipped: >> "Adam" wrote in message >> news:ncprqb$tl9$1...@news.albasani.net... >>> >>> "Jonathan N. Little

Re: crash while using PyCharm / Python3

2016-03-22 Thread Adam
"Jonathan N. Little" wrote in message news:ncrg2v$jo$2...@dont-email.me... > Adam wrote: >> Thanks, but why fix if it ain't broke?:-) > > No reason to. Yup, I agree. > > -- > Take care, > > Jonathan > --- > LIT

Re: crash while using PyCharm / Python3

2016-03-23 Thread Adam
"Adam" wrote in message news:ncikss$tks$1...@news.albasani.net... > > Host OS:Ubuntu Desktop 14.04 LTS / Unity > > System crashed while using PyCharm / Python3. > Booting takes forever and stuck at the purple screen with > the Ubuntu logo and the fiv

application console with window

2015-01-07 Thread adam
Is in here maybe someone who speak Polish? I would like to write application witch looks like this http://linuxiarze.pl/obrazy/internet1/ceni1.png I'm looking for some libs, tutorials, or other informations. I'm searching this informations for python3. adam -- https://mail.python.o

Re: application console with window

2015-01-08 Thread adam
Hej, no właśnie niechodzi o przeniesienie do okienek tylko jeśli znasz taki program jak np fk dla dos-a to chodzi mi o taki efekt. Czyli aplikacja konsolowa z pseudo okienkami. Adam jacek pozniak wrote: > adam wrote: > >> Is in here maybe someone who speak Polish? >>

Re: application console with window

2015-01-08 Thread adam
Dennis Lee Bieber wrote: > On Wed, 07 Jan 2015 22:17:09 +0100, adam > declaimed the following: > >>Is in here maybe someone who speak Polish? >> >>I would like to write application witch looks like this >>http://linuxiarze.pl/obrazy/internet1/ceni1.png >>

Re: application console with window

2015-01-08 Thread adam
Emil Oppeln-Bronikowski wrote: > 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 applicatio

Re: application console with window

2015-01-08 Thread adam
Emil Oppeln-Bronikowski wrote: > 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

Re: Proposal: Inline Import

2005-12-12 Thread adam
_name) print "imported %s" % mod_name except: print "NameError: %s" % error_value.args[0] pass -adam -- http://mail.python.org/mailman/listinfo/python-list

newbie graphing recommendations ?

2006-07-02 Thread Adam
Where should a py newbie start to do some 2D graphs on screen ? PythonGraphApi, Gato, looks interesting pygraphlib, matplotlib, is there a best native Python place to start ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning to program in Python

2007-01-05 Thread Adam
jbchua wrote: > Hello everybody. > > I am an Electrical Engineering major and have dabbled in several > languages such as Python, C, and Java in my spare time because of my > interest in programming. However, I have not done any practical > programming because I have no idea where to get started.

Pyro problems...

2006-01-23 Thread adam
I'm using Pyro to develop a distribuited system running my integration test suite I've found a strange behaviour it seems that whenever I have a failed resolve or unregister on a name server, the name server acts normally during its life span, but when I shut it down... something remains up...

Re: seperating directories from files

2006-01-30 Thread adam
Check out the os.path (http://docs.python.org/lib/module-os.path.html) module. It has the functions you are looking for. -adam -- http://mail.python.org/mailman/listinfo/python-list

Re: New to Tkinter GUI building

2007-03-02 Thread Adam
Thanks for the reply, will work with this tomorrow. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Where I could find older python releases ?

2007-03-04 Thread Adam
On Mar 4, 9:52 am, 13 <[EMAIL PROTECTED]> wrote: > Hello list, > > I have been searching the internet for python version 0.9.0 sources > which had been posted to alt.sources list, but without any luck. Maybe > someone has it available somewhere ? > > Thanks, > Martins http://www.python.org/downloa

Re: Where I could find older python releases ?

2007-03-04 Thread Adam
Sorry jumped the gun a little there. Is this what you are looking for? http://codespeak.net/download/py/py-0.9.0.zip -- http://mail.python.org/mailman/listinfo/python-list

Logfile for my App not "rewriting"

2007-03-10 Thread Adam
()) self.logfile.write(i + "\n" + "\n" + "Violating File #: " + str(index) + "\n" + "Shorten by: " + str(dif) + "\n" + "\n" + "-" + "\n") self.txtBoxvi.insert(tk.END, i + "\n") self.labVi2.configure(text=txt) self.logfile.close() def quitEvent(self): raise SystemExit if __name__ == "__main__": app = Theapp() app.mainWindow.mainloop() ###End Code### TIA Adam -- http://mail.python.org/mailman/listinfo/python-list

How to tell when a file is opened

2007-04-07 Thread Adam
scale. So checking a directory on a loop for accesses won't work. Maybe some way to monitor the Open Files section of Computer Management? I check through Tim Golden's site but nothing jumped out at me. Any pointers would be great. Thanks, Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: How to tell when a file is opened

2007-04-07 Thread Adam
On Apr 7, 5:09 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > Adam wrote: > > I want to know if it possible to tell when a file is opened. However I > > don't want it to be the last access time. I want to know how many > > times a file opened so I can generate statis

Re: How to tell when a file is opened

2007-04-07 Thread Adam
On Apr 7, 8:02 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > Adam wrote: > > On Apr 7, 5:09 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > > > Adam wrote: > > > > I want to know if it possible to tell when a file is opened. However I > &g

Re: Anyone has a nice "view_var" procedure ?

2007-01-15 Thread Adam
nt "test" test #-End Code--- There are also function like len(). Usage: #-Python Code- >>> len(aVar) 3 >>> len(aVar[0]) 4 #-End Code--- Hope this helps. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Ip address

2007-01-28 Thread Adam
Hey, This will get your IP address: ###Code print socket.gethostbyaddr(socket.gethostname()) ('compname', [], ['192.168.1.2']) End Code If you are wanting to to communicate over the internet you will have to get the IP of you rounter. So you will have to either find

Re: Conversion of string to integer

2007-01-29 Thread Adam
over the list and use the type() function to work out what each entry and choose what to do with it. type() works like so: ###Code### >>> a = ["test", 1.25, "test2"] >>> if type(a[2]) == str: print "a string" a string >>> ###End Code### Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Walk thru each subdirectory from a top directory

2007-02-26 Thread Adam
On Feb 26, 9:28 pm, [EMAIL PROTECTED] wrote: > i am trying to use python to walk thru each subdirectory from a top > directory. Here is my script: > > savedPagesDirectory = "/home/meryl/saved_pages/data" > > dir=open(savedPagesDirectory, 'r') > > for file in dir: > if (isdir(file)): >

Re: Walk thru each subdirectory from a top directory

2007-02-26 Thread Adam
Whoops, the first bit of my reply ended up in the quoted text. See above. Adam -- http://mail.python.org/mailman/listinfo/python-list

New to Tkinter GUI building

2007-02-28 Thread Adam
f, base): pass def fillboxes(self): pass def quitEvent(self): raise SystemExit app = Theapp() app.mainWindow.mainloop() ##End Code### I have only posted the code relevant to the GUI. TIA Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: convert many excel files to pdf in batch

2007-02-28 Thread Adam
1. Get PDFCreator 2. Install 3. Set as default printer 4. Have all excel files in same folder 5. Select all excel files 6. Right click 7. Select Print 8. Save Each PDF to a location 9. ??? 10. Profit Never done it with Adobe Writer. I'm a cheapskate. Regards, Adam -- http://mail.pytho

Re: New to Tkinter GUI building

2007-02-28 Thread Adam
On Feb 28, 9:13 pm, Adonis Vargas <[EMAIL PROTECTED]> wrote: > Adam wrote: > > > > > I think my main questions are: > > 1. How can I get the Window to be sized the way I want it? > > 2. How can I get the Scrollbars to fill the side of the text box > >

Re: New to Tkinter GUI building

2007-03-01 Thread Adam
oxes(self): Pass def quitEvent(self): raise SystemExit app = Theapp() app.mainWindow.mainloop() #END# Regards, Adam -- http://mail.python.org/mailman/listinfo/python-list

python - stealth window

2007-11-07 Thread Adam
("ConsoleWindowClass",NULL); ShowWindow(stealth,0); So I start my script and that is will be run in the background and I can trick with "hotkeys" in WINAMP. I do not worry for a new one window. :-) I hope you understand me because my english is not perfect. Regards, Adam -- http://mai

ILOG Server integration

2006-04-27 Thread adam
Does anybody have experiences of Python and ILOG Server (distribution framework) integration? I need to access to a server application "exposed" through ILOG Server. Thanks Vieri -- http://mail.python.org/mailman/listinfo/python-list

call an exturnal program in python

2008-11-21 Thread Adam
I am trying to run an external program in my code using os.system('exename -exearg') but the exe has an "&" in it so windows thinks it's two commands any way around this? Adam -- http://mail.python.org/mailman/listinfo/python-list

Mangle function name with decorator?

2009-03-17 Thread Adam
I am using Python 2.5, and I would like to write a decorator (or using some other elegant, declarative approach) to mangle the name of function in a class. I would like to be able to have two methods declared with the same name, but one of them will have a decorator (or whatever) that will change

Re: Mangle function name with decorator?

2009-03-17 Thread Adam
Thanks, Andrew. I'm trying to accomplish something with a metaprogramming flavor, where, for the convenience of the programmer and the clarity of code, I'd like to have a decorator or some other mechanism do twiddling behind the scenes to make a class do something it wouldn't normally do. Here's

Re: Mangle function name with decorator?

2009-03-18 Thread Adam
On Mar 17, 1:49 pm, Aaron Brady wrote: > You would need a unique attribute to look for on values in the > dictionary, which means you'd need to detect what functions you are > renaming; possibly by using a decorator to mark them.  (Untested:) > > class X( metaclass= M ): >   @mark( 'A' ) >   def

Re: Mangle function name with decorator?

2009-03-18 Thread Adam
On Mar 18, 10:33 am, "J. Cliff Dyer" wrote: > You might be interested in redefining __getattribute__(self, attr) on > your class.  This could operate in conjunction with the hash tables > (dictionaries) mentioned by andrew cooke.  i.e. (untested code): > > class C(object): >     def __init__(self)

Re: Mangle function name with decorator?

2009-03-18 Thread Adam
On Mar 18, 11:11 am, "R. David Murray" wrote: > I don't have any wisdom on the metaclass/decorator stuff, but what > about slightly reformulating the interface?  Instead of having the > programmer type, eg: > >     @GET >     def foo(self): pass > >     @POST >     def foo(self): pass > > have the

How to set proxy for a python script to run

2008-04-17 Thread Adam
Hi, everyone, I am using /usr/share/system-config-language/ language_gui.py in Python. For some reason I have to bypass the firewall using a proxy. I read the urllib reference and set http_proxy="my proxy". But it didn't work. Is there anyway that we can set the proxy? -- http://mail.python.org/ma

How to set proxy for a python script to run

2008-04-17 Thread Adam
Hi, I am using a script written in Python. For some reasons I should pass the fireware by proxy setting. But it seems not work when I set the 'http_proxy' 'ftp_proxy' environment variable. I also expored 'HTTP_PROXY' 'FTP_PROXY', but the problem remained. How can I set proxy for it to run the scrip

Re: can httplib.HTTPConnection use proxy?

2006-03-16 Thread adam
>>> import httplib >>> h = httplib.HTTPConnection("www.google.ca") >>> h.connect() Traceback (most recent call last): File "", line 1, in ? File "C:\Python24\lib\httplib.py", line 627, in connect raise socket.error, msg error: (10061, 'Connection refused') >>> h2 = httplib.HTTPConnection("m

Re: Content Management System

2006-03-29 Thread Adam
s much MX cr*p as it can - but it's a tall order! I've [even] used Joomla for pretty simple non-"blog" sites simply for the remote admin and the search functions. It really is best suited for the more "newsy" community sites. It's definitely worth a look at, IMHO. Adam. -- http://mail.python.org/mailman/listinfo/python-list

which scipy binary for Win32

2011-01-25 Thread Adam
Am looking at http://sourceforge.net/projects/scipy/files/scipy/0.8.0/ and I wonder which is the binary to install on WinXP ? As pointed to by this page, http://www.scipy.org/Download All I can see on that sourceforge page are the huge python2.6 and python2.7 Powerpacks, at 43megs or so each.

Re: Compiling 64 bit python on a mac - cannot compute sizeof (int)

2009-07-03 Thread Adam
honmac- > sig mailing list. (http://mail.python.org/mailman/listinfo/pythonmac- > sig) > > Mark Thanks. I also determined after the fact that universalsdk was the problem, but I didn't know how to fix it. Unfortunately, it turns out what you identified was a transcription

Re: Entry Level Python Jobs

2009-09-02 Thread Adam
On Sep 2, 11:31 am, JonathanB wrote: > For the hiring managers, if the job post said > "CS Major" in the requirements, would you consider a liberal arts > major at all? I got my English Writing degree in 1990, and I have been a software engineer ever since. Landing the first job was very difficul

Re: Entry Level Python Jobs

2009-09-02 Thread Adam
On Sep 2, 12:52 pm, JonathanB wrote: > Any other tips? I'm probably going to come off as very old school, but give yourself a good and thorough education in data structures and algorithms. You might never be called on to actually code a quick sort, merge sort, heap sort, doubly-linked list or tr

ValueError: I/O operation on closed file. with python3

2013-06-11 Thread Adam Mercer
tarting to have some users wanting to use python3 and others sticking to python2 so I'd like to accommodate them both if possible. Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: ValueError: I/O operation on closed file. with python3

2013-06-12 Thread Adam Mercer
8')) > > I've run it with 2.6, 2.7, 3.2, and 3.3. Thanks that's very helpful, I hadn't realised that .readfp() had been deprecated. Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the semantics meaning of 'object'?

2013-06-23 Thread Adam Jiang
rint "A" class B(A): def __init__(self, arg): super(B, self).__init__(arg) Is this correct? As the result, whenever you wanted to refer to a method in parent class, super() functions has to be called. This seems inefficient. How to refer to a field defined in parent class?

Sending USB commands with Python

2012-08-28 Thread Adam W.
eone could tell me how to send and receive these commands with Python. Perhaps if you were feeling generous and wanted to write a bit of sample code, sending the "Get Printer Status" command and receiving the response (page 17 of the PDF) would be perfect to get me on my way. T

Re: Sending USB commands with Python

2012-08-29 Thread Adam W.
On Wednesday, August 29, 2012 2:45:17 AM UTC-4, Tim Roberts wrote: > Which operating system are you using? If you are on Windows, then the > > operating system has already loaded a printer driver for this device. > > > The libusb or libusbx libraries can be used to talk to USB devices. There

Re: Sending USB commands with Python

2012-08-29 Thread Adam W.
On Wednesday, August 29, 2012 4:09:49 PM UTC-4, Dennis Lee Bieber wrote: > > Don't the commands require an character? "\x1BA" (or >"\x1B\x41") > > OTOH, if the is issued behind the scenes, I'm not sure which esc char it is asking for, I don't think libusb is providing its own,

Re: Sending USB commands with Python

2012-08-29 Thread Adam W.
On Wednesday, August 29, 2012 6:56:16 PM UTC-4, Dennis Lee Bieber wrote: > > BUT you do give a possible clue. Is the OP using a 3.x Python where > > strings are Unicode -- in which case the above may need to be explicitly > > declared as a "byte string" rather than text (unicode) string. >

Re: Sending USB commands with Python

2012-08-29 Thread Adam W.
On Wednesday, August 29, 2012 10:07:54 PM UTC-4, Dennis Lee Bieber wrote: > On Wed, 29 Aug 2012 16:45:10 -0700 (PDT), "Adam W." > > I'm a tad curious if using the notation > > > > b'\x1bA' > > > > without the .en

Re: Sending USB commands with Python

2012-08-30 Thread Adam W.
On Thursday, August 30, 2012 12:55:14 AM UTC-4, Dennis Lee Bieber wrote: > > How many bytes did it claim to send? > 11, which is what I expected. But I changed the byte value to 16 (because I was having trouble getting single digit hex values working in the command) and sent this command:

Re: python file API

2012-09-24 Thread Mark Adam
On Mon, Sep 24, 2012 at 5:55 PM, Oscar Benjamin wrote: > There are many situations where a little bit of attribute access magic is a > good thing. However, operations that involve the underlying OS and that are > prone to raising exceptions even in bug free code should not be performed > implicitl

Re: Are ABCs an anti-pattern?

2012-10-02 Thread Mark Adam
On Tue, Oct 2, 2012 at 9:23 AM, Demian Brecht wrote: > I don't use them anymore, but I'm curious about others opinions on this > list... > Interesting question. I think they haven't been useful for representing the real world as everyone hoped, but are pretty good for organizing structures withi

Re: Emulating C++ namespaces with ChainMap and metaclass trickery

2012-10-03 Thread Mark Adam
On Wed, Oct 3, 2012 at 1:26 PM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > C++ namespaces are useful for encapsulating related objects within a > single file, subdividing the global namespace without using classes. > Python has modules, but they come in separate files. > > Us

Re: Can't run any script without it failing due to calling tkinter for no reason

2012-10-14 Thread Adam G
ve built them as command line apps. I've tried uninstalling python 3 > > and reinstalling it to no avail. What did I do, and how can I fix it? > > > > > > Thanks, > > > Adam > > > -- > > > > IDLE uses Tkinter. If you don't have Tk installed, just

Re: a.index(float('nan')) fails

2012-10-27 Thread Mark Adam
On Thu, Oct 25, 2012 at 9:04 PM, Terry Reedy wrote: > On 10/25/2012 9:46 PM, mambokn...@gmail.com wrote: > > a = [float('nan'), 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] > a >> >> [nan, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] > > a.index(float('nan')) >> >> Traceback (most recent call last):

Re: Paid Python work for 30mins - 1 hour

2012-11-19 Thread Mark Adam
On Mon, Nov 19, 2012 at 10:14 AM, wrote: > I have three scripts that I would like written, they are designed to do the > following: > > Backup.py – Zip a folder and store it on amazon S3 using BOTO with the date > and time as the folder name. > > Restore.py – Grab a file from S3 and download it

Determining version of OpenSSL linked against python?

2012-01-23 Thread Adam Mercer
buteError: 'module' object has no attribute '__file__' >>> Can anyone offer any suggestions as to what is going wrong with the above code or offer an alternative way of determining the OpenSSl version using python-2.6? Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
Hi Is this possible at all? Cheers Adam On Mon, Jan 23, 2012 at 14:01, Adam Mercer wrote: > Hi > > I'm trying to write a script that determines the version of OpenSSL > that python is linked against, using python-2.7 this is easy as I can > use: > >    import ss

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
...' constructs with > 'try ... except...' constructs. My code already has a try... except block that tries the ssl.OPENSSL_VERSION approach first but I wanted to have a fallback method that works with python-2.6. Looks like I may need to hardcode certain things. Cheers Adam -- h

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
s that ssh and python would use the same version of openssl: > not guaranteed, but seems like a "reasonable" assumption to me. Hmm, I like that idea. Thanks for the suggestion. Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
t; openssl_version = libssl.SSLeay() > print "%.9X" % openssl_version > > This gives me 0009080FF which corresponds to 0.9.8o release which is > what I have installed in Debian Squeeze. Thanks, that looks useful. Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: multithreading

2012-04-07 Thread Adam Skutt
ython modules. Non-thread-safe object instances is usually fine. Object construction needs to be thread-safe, but that's also the default behavior. You need not worry about it unless you're doing very unusual things. Plainly, most of the time you shouldn't need to do anything to

  1   2   3   4   5   6   7   8   9   10   >