Re: Problem using pip

2020-01-14 Thread Jerry Hill
On Tue, Jan 14, 2020 at 2:18 AM proplayer raj wrote: > > dear team > I have encountered a problem while using pip , that it did not allowed to > install webbrowsing and OS module it show the error that it does not found > any matching distributor and does not fount the version which can fulfill >

Re: Python Console Menu

2018-07-31 Thread Jerry Hill
On Tue, Jul 31, 2018 at 12:31 PM juraj.papic--- via Python-list wrote: > I will check the links thanks for that tips, is there any page where I can > see more examples? I like Doug Hellmann's Python Module of the Week site for in-depth looks at particular modules (including subprocess). If you'

Re: Missing python36.dll

2018-03-19 Thread Jerry Hill
On Mon, Mar 19, 2018 at 5:07 PM, MRAB wrote: > You didn't say which installer you used. > ​It might also be helpful to know: Did you install python for "Just Me" or "All Users" in the installer? Does the user you're logged in as have enough authority to install for All Users if that's what you

Re: Can't Uninstall !

2018-02-13 Thread Jerry Hill
On Tue, Feb 13, 2018 at 10:30 AM, Pedro Crescencio wrote: 3. How did you try to uninstall it? > Using Windows standard uninstall procedure > https://www.windowscentral.com/how-to-uninstall-apps-windows-10 > ​That page describes two different ways of uninstalling programs (from the start screen,

Re: replacing `else` with `then` in `for` and `try`

2017-11-02 Thread Jerry Hill
On Wed, Nov 1, 2017 at 5:12 PM, Alexey Muranov wrote: > what do you think about the idea of replacing "`else`" with "`then`" in > the contexts of `for` and `try`? > ​I wish the core python developers​ had done it 20 years ago. Given that python is a relatively mature language at this point, I d

Re: Finding keyword arguments in the documentation

2017-09-26 Thread Jerry Hill
On Tue, Sep 26, 2017 at 12:32 PM, Peter Otten <__pete...@web.de> wrote: > Newer Python versions will show > > Help on built-in function sin in module math: > > sin(x, /) > Return the sine of x (measured in radians). > > > where the arguments before the slash are positional-only: What version o

Re: [Tutor] beginning to code

2017-09-20 Thread Jerry Hill
On Tue, Sep 19, 2017 at 8:26 PM, Rick Johnson wrote: > In the spirit of my last comment, i was going to say: "Or if > `x` does not support rich comparisons", but alas, it seems that > _all_ objects in Python support rich comparisons, even when > it doesn't make sense to! o_O For example: > > >

Re: If you are running 32-bit 3.6 on Windows, please test this

2017-08-30 Thread Jerry Hill
On Wed, Aug 30, 2017 at 1:48 PM, MRAB wrote: > > On 2017-08-30 18:35, Terry Reedy wrote: >> >> https://stackoverflow.com/questions/45965545/math-sqrt-domain-error-when-square-rooting-a-positive-number >> >> reports the following: >> - >> Microsoft Windows [Version 10.0.16251.1002] >> (c) 2017

Re: how to write add frequency in particular file by reading a csv file and then making a new file of multiple csv file by adding frequency

2017-06-27 Thread Jerry Hill
On Fri, Jun 23, 2017 at 4:07 PM, Mark Byrne wrote: > Possible fix is to replace this: > > count = frequency.get(word,0) > count1 = frequency.get(word1,0) > if word1 == word: > frequency[word] = count + count1 > else: > frequency[word] = count > > with this: > > if word1 == word: > if

Re: Two variable dictionary comprehension

2017-04-03 Thread Jerry Hill
On Mon, Apr 3, 2017 at 5:50 PM, Deborah Swanson wrote: > Ah, but did you actually try to use the proposed solutions on the two > stackoverflow pages? It's been several weeks now, but I did, and neither > of those two examples fit my situation, which is why I ended up writing > my own, and unsatisf

Re: Two variable dictionary comprehension

2017-04-03 Thread Jerry Hill
On Mon, Apr 3, 2017 at 10:30 AM, Deborah Swanson wrote: > Regular updates as the docs are updated would be a good idea too. It's > obvious that today's Google isn't up to it, although it occurs to me > that I haven't tried Google's site search on python.org. So, when you search google for the phr

Re: how to evaluate a ast tree and change Add to Multiply ?

2016-10-19 Thread Jerry Hill
On Wed, Oct 12, 2016 at 5:55 AM, meInvent bbird wrote: > i just expect to > rewrite + become multiply > by edit the example in the link provided This seems to work. You need to define visit_BinOp instead of visit_Num (since you want to mess with the binary operations, not the numbers). Then,in

Re: Why don't we call the for loop what it really is, a foreach loop?

2016-09-13 Thread Jerry Hill
On Tue, Sep 13, 2016 at 4:57 PM, wrote: > It would help newbies and prevent confusion. Are you asking why Guido didn't call it foreach back in 1989, or why the core developers don't change it now, 27 years later? I can't speak for the historical perspective, but I'm sure there's basically no ch

Re: Text input with keyboard, via input methods

2016-03-10 Thread Jerry Hill
On Thu, Mar 10, 2016 at 5:51 AM, Marko Rauhamaa wrote: > I don't have an answer. I have requirements, though: > > * I should be able to get the character by knowing its glyph (shape). > > * It should be very low-level and work system-wide, preferably over the >network (I'm typing this over t

Re: Need Help w. Getting the Eclipse Python Add-On.

2015-07-17 Thread Jerry Hill
On Fri, Jul 17, 2015 at 2:22 PM, Steve Burrus wrote: > I Need immediate Help w. Getting the Eclipse Python Add-On. I looked all > around the Eclipse website to try to get this but didn't see the add-on for > this. Can someone please help me to find it? Thanx. I think you're looking for PyDev: h

Re: What means "->"?

2015-04-28 Thread Jerry Hill
On Tue, Apr 28, 2015 at 1:18 PM, wrote: > in the Python Language Specification, I've found the delimiter -> (cf. > https://docs.python.org/3/reference/lexical_analysis.html#delimiters, last > entry in the table´s second line). Could you please describe the effects of > this delimiter? I read noth

Re: Anyone used snap.py for drawing a graph?

2015-04-13 Thread Jerry Hill
On Sun, Apr 12, 2015 at 10:29 PM, Pippo wrote: > Any guide on this? > > http://snap.stanford.edu/snappy/#download Sure. http://snap.stanford.edu/snappy/#docs -- https://mail.python.org/mailman/listinfo/python-list

Re: Automation of Windows app?

2015-03-20 Thread Jerry Hill
On Fri, Mar 20, 2015 at 2:10 PM, Grant Edwards wrote: > I need to automate operation of a Windows application. I've used Sikuli (http://www.sikuli.org/) for similar things in the past. It's an automation framework built on Jython, and it worked great for what I needed at the time. I think AutoH

Re: html page mail link to webmail program

2014-11-12 Thread Jerry Hill
On Tue, Nov 11, 2014 at 8:04 PM, Ethan Furman wrote: > My wife (using a Win7 machine) will be on a web page that has a link to mail > somebody. She clicks on it, and it opens the currently installed but unused > Thunderbird. As others have mentioned, this is more a question of configuring your b

Re: NumPy, SciPy, & Python 3X Installation/compatibility issues

2014-09-23 Thread Jerry Hill
On Tue, Sep 23, 2014 at 1:54 PM, SK wrote: > Hi EK, > Did you figure out questions 1, 2 and 3? SciPy (0.14.0) on installation asks > me for Python 2.7. First day on Python here, I am really struggling :/ > Thanks, > SK Did you download the SciPy installer for python 3.3? I see it listed for dow

Re: .Net Like Gui Builder for Python?

2014-07-25 Thread Jerry Hill
On Fri, Jul 25, 2014 at 10:55 AM, Orochi wrote: > So,Is there any Gui App builder like Visual Studio or having features like > Visual Studio for Python. I'm not aware of anything with the same level of functionality as Visual Studio's GUI building tools. Glade is the closest I've seen, and as y

Re: Question about Pass-by-object-reference?

2014-07-22 Thread Jerry Hill
On Tue, Jul 22, 2014 at 6:17 PM, fl wrote: > Thanks for your example. I do not find the explanation of [:] on line. Could > you > explain it to me, or where can I find it on line? It's pretty hard to find if you don't already know what's going on. First, you need to know that mylst[i:j] refers

Re: Error while calling round() from future.builtins

2014-05-10 Thread Jerry Hill
On Sat, May 10, 2014 at 7:39 AM, Preethi wrote: > future==0.9.0 It looks like that library is out of date. The current version looks to be 0.12.0, and it also looks like this bug was fixed in the 0.12.0 release. I'd upgrade your version if at all possible. -- Jerry -- https://mail.python.org

Re: The “does Python have variables?” debate

2014-05-07 Thread Jerry Hill
On Wed, May 7, 2014 at 2:18 AM, Marko Rauhamaa wrote: > Ned Batchelder : > >> Why is "variable" sacrosanct and can only be used to describe C >> semantics, but we're OK reusing class, int, and function? > > The Python language specification calls them variables; the terminology > discussion should

Re: Joining centos 6.5 member Domain Controller to an existing Windows Domain

2014-05-06 Thread Jerry Hill
On Mon, May 5, 2014 at 11:18 AM, Joshua Knights wrote: > > Here is my Issue and I think it may be a python path bug? It's not a bug in Python. It looks to me like a configuration problem. I'm going to assume you have a good reason for bypassing your OS's package management system. In general,

Re: Reference

2014-03-04 Thread Jerry Hill
On Mon, Mar 3, 2014 at 11:52 PM, Steven D'Aprano wrote: > If your intention is to treat None as a singleton sentinel, not as a > value, then you ought to use "is" to signal that intention, rather than > using == even if you know that there won't be any false positives. In all of the years I've be

Re: Reference

2014-03-03 Thread Jerry Hill
On Mon, Mar 3, 2014 at 4:51 PM, Tim Chase wrote: > There are a couple use-cases I've encountered where "is" matters: > > 1) the most popular: > > if foo is None: > do_stuff() I know this is the one that always comes up, but honestly, I feel like "is" doesn't matter here. That code would be

Re: posting code snippets

2014-02-27 Thread Jerry Hill
On Thu, Feb 27, 2014 at 7:13 AM, Mark H. Harris wrote: > hi folks, >Its been too long... can't remember... are there rules here about posting > code snippets, or length considerations, and so forth? Chris' advice about just posting your code inline with your message is good. If the problem

Re: Win32 Write RAW Physical Disk Python 3.3.2

2014-02-21 Thread Jerry Hill
On Wed, Feb 19, 2014 at 7:42 AM, khanta wrote: > Hello, > I am trying to write to the raw physical disk on Windows 8.1 but I > get an error: > PermissionError: [Errno 13] Permission denied: '.\\PHYSICALDRIVE2' Is there a volume mounted from the drive at the time you're attempting to writ

Re: Simple Object assignment giving me errors

2014-02-12 Thread Jerry Hill
On Wed, Feb 12, 2014 at 4:42 PM, Nir wrote: > If this makes sense to you, great. I am trying to break it down so that I can > make sense of it. As you mentioned self["name"] = filename doesn't work > unless I built a class to handle it. I guess my question then, is how is the > class handling i

Re: [OT] Usage of U+00B6 PILCROW SIGN (was: generator slides review and Python doc (+/- text bug))

2014-02-04 Thread Jerry Hill
On Tue, Feb 4, 2014 at 1:51 AM, wrote: > I got it. If I'm visiting a page like this: > > http://docs.python.org/3/tutorial/index.html#the-python-tutorial > > 1) To read the page, I'm scrolling down. > 2) When I have finished to read the page, I scroll up > (or scroll back/up) to the top of the pa

Re: How to make a tkinter GUI work on top of a CUI program?

2014-01-03 Thread Jerry Hill
On Fri, Jan 3, 2014 at 9:44 PM, Beinan Li wrote: > But some console programs have their own shell or ncurse-like CUI, such as > cscope. > So I figured that I need to first subprocess.popen a bidirectional pipe and > send command through stdin and get results from stdout and stderr. > > But in such

Re: how to develop code using a mix of an existing python-program and console-commands

2013-12-18 Thread Jerry Hill
On Wed, Dec 18, 2013 at 3:17 PM, Jean Dubois wrote: > I have a python-program which I want to perform its task first, then > switch to > the python console to experiment with further commands, using what was > already > defined in the python-program. > I want this as an alternative for what I do n

Re: Copy a file like unix cp -a --reflink

2013-12-18 Thread Jerry Hill
On Wed, Dec 18, 2013 at 1:37 PM, Paulo da Silva wrote: > Hi! > > Is there a way to copy a file the same as Unix command: > > cp -a --reflink src dest > > without invoking a shell command? I started to dig through the cp man page to see what that did, then gave up when each option expanded out to

Re: Why is there no natural syntax for accessing attributes with names not being valid identifiers?

2013-12-04 Thread Jerry Hill
On Wed, Dec 4, 2013 at 3:35 PM, Piotr Dobrogost wrote: > Right. If there's already a way to have attributes with these "non-standard" > names (which is a good thing) then for uniformity with dot access to > attributes with "standard" names there should be a variant of dot access > allowing to a

Re: Python GUI?

2013-09-12 Thread Jerry Hill
On Wed, Sep 11, 2013 at 4:55 PM, wrote: > Have you got anything to say on what one I should be using(excluding PyQT > because it has a D&D designer >:( )? Is Tkinter really dead? Should I stick > with wxPython? If that's a reason for excluding a GUI toolkit, you're in trouble. Drag and drop la

Re: subprocess.Popen instance hangs

2013-08-30 Thread Jerry Hill
On Fri, Aug 30, 2013 at 11:32 AM, Tim Johnson wrote: > The objective is to display all output, but to also separate error > messages from normal output. I still think you want to use communicate(). Like this: p = subprocess.Popen(args,stderr=subprocess.PIPE,stdout=subprocess.PIPE) output, e

Re: PEPs should be included with the documentation download

2013-08-21 Thread Jerry Hill
On Wed, Aug 21, 2013 at 1:55 PM, wrote: > I think, though, that if there's any useful information that can be > obtained by reading accepted PEPs but not the documentation, or if > things are explained less clearly than in the PEPs, that's a bug in the > documentation, and should be remedied by a

Re: PyGLet, 2to3...?

2013-07-26 Thread Jerry Hill
On Thu, Jul 25, 2013 at 7:49 PM, John Ladasky wrote: > === > > john@john:~/Desktop/pyglet-1.2alpha1$ sudo python3 setup.py install > > [sudo] password for john: > > running install > running build > running build_py > running install_lib > running install_egg_in

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Jerry Hill
On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k wrote: > Is there a way to extract out of some environmental variable the Geo > location of the user being the city the user visits out website from? > > Perhaps by utilizing his originated ip address? No, you'd need to take the originating IP address a

Re: detect key conflict in a JSON file

2013-05-29 Thread Jerry Hill
On Wed, May 29, 2013 at 1:10 PM, Chris Rebert wrote: > On Wed, May 29, 2013 at 4:16 AM, Jabba Laci wrote: > > I have a growing JSON file that I edit manually and it might happen > > that I repeat a key. If this happens, I would like to get notified. > > Currently the value of the second key sile

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-23 Thread Jerry Hill
On Thu, May 23, 2013 at 6:20 PM, Carlos Nepomuceno < carlosnepomuc...@outlook.com> wrote: > Can str.format() do the following? > > f = '%d %d %d' > v = '1,2,3' > print f % eval(v) > ​Sure: Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win32 >>> f = "{} {} {}" >>> v

Re: python backup script

2013-05-06 Thread Jerry Hill
On Mon, May 6, 2013 at 3:01 PM, MMZ wrote: > I am trying to backup database on CentOS linux server,I'm getting error > when running the following script. anyone can help? > > Traceback (most recent call last): > File "./backup.py", line 8, in ? > username = config.get('client', 'mmz') > F

Re: import in Python3.3

2013-03-26 Thread Jerry Hill
On Mon, Mar 25, 2013 at 11:49 PM, rocky wrote: >> On Sun, 24 Mar 2013 18:12:49 -0500, Fabian von Romberg wrote: >> > I have a package name collections and inside of my package I want to > I find this kind of thing sad: it feels to me that programmers are working > around somewhat arbitrary and c

Re: Maximum Likelihood Estimation

2013-02-01 Thread Jerry Hill
On Fri, Feb 1, 2013 at 1:59 PM, Michael Torrie wrote: > Most people on this list consider 8 dihedral to be a badly > programmed bot. For what it's worth, I think it's a very cleverly programmed bot. It usually makes just enough sense for me to wonder if there really is a human being behind t

Re: Else statement executing when it shouldnt

2013-01-23 Thread Jerry Hill
On Wed, Jan 23, 2013 at 8:35 AM, Jussi Piitulainen wrote: >> The feature isn't bad, it's just very, very badly named. > > I believe it would read better - much better - if it was "for/then" > and "while/then" instead of "for/else" and "while/else". That's always been my opinion too. I'd remember

Re: Python parser problem

2012-12-12 Thread Jerry Hill
On Wed, Dec 12, 2012 at 2:10 PM, RCU wrote: > With this occasion I would like to ask also what are the limits of the > Python 2.x and 3.x parser. Where can I find what are the limits on the > size/lines of the parsed script? The Python Language Reference is probably what you're looking for: h

Re: problem with usbtmc-communication

2012-12-11 Thread Jerry Hill
On Tue, Dec 11, 2012 at 1:58 AM, Jean Dubois wrote: > > I found examples in the usbtmc kernel driver documentation (the > examples there are given in C): > http://www.home.agilent.com/upload/cmc_upload/All/usbtmc.htm?&cc=BE&lc=dut Thanks for that link. I think it explains how the driver works pr

Re: string contains and special characters

2012-10-09 Thread Jerry Hill
On Tue, Oct 9, 2012 at 10:02 AM, loial wrote: > I am trying to match a string that containing the "<" and ">" characters, > using the string contains function, but it never seems to find the lines > containing the string > > e.g if mystring.contains("") : > > Do I need to escape the characters..

Re: get google scholar using python

2012-10-01 Thread Jerry Hill
On Mon, Oct 1, 2012 at 1:28 PM, রুদ্র ব্যাণার্জী wrote: > So, If I manage to use the User-Agent as shown by you, will I still > violating the google EULA? Very likely, yes. The overall Google Terms of Services (http://www.google.com/intl/en/policies/terms/) say "Don’t misuse our Services. For ex

Re: Python source code easy to hack?

2012-09-28 Thread Jerry Hill
On Fri, Sep 28, 2012 at 10:18 AM, wrote: > Python bytecode is not easier to hack than Java or .NET bytecodes. This is true, but both java and .net are also relatively easy to decompile. In general though, why does it matter? What are you trying to protect yourself against? If you're including

Re: How to limit CPU usage in Python

2012-09-27 Thread Jerry Hill
On Thu, Sep 27, 2012 at 12:58 PM, Prasad, Ramit wrote: > On *nix you should just set the appropriate nice-ness and then > let the OS handle CPU scheduling. Not sure what you would do > for Windows--I assume OS X is the same as *nix for this context. On windows, you can also set the priority of a

Re: How to apply the user's HTML environment in a Python programme?

2012-09-21 Thread Jerry Hill
On Fri, Sep 21, 2012 at 9:31 AM, BobAalsma wrote: > Thanks, Joel, yes, but as far as I'm aware these would all require the Python > programme to have the user's username and password (or "credentials"), which > I wanted to avoid. No matter what you do, your web service is going to have to authe

Re: How to limit CPU usage in Python

2012-09-20 Thread Jerry Hill
On Thu, Sep 20, 2012 at 11:12 AM, Rolando Cañer Roblejo wrote: > Hi all, > > Is it possible for me to put a limit in the amount of processor usage (% > CPU) that my current python script is using? Is there any module useful for > this task? I saw Resource module but I think it is not the module I

Re: Accessing dll

2012-09-06 Thread Jerry Hill
On Thu, Sep 6, 2012 at 12:46 PM, Helpful person wrote: > The reference might help if I could get Python to recognize the dll as > a module. That's never going to happen. It's a DLL, not a python module. I think the documentation lays that out pretty explicitly. Have you experimented with the v

Re: Accessing dll

2012-09-06 Thread Jerry Hill
On Thu, Sep 6, 2012 at 11:07 AM, Helpful person wrote: > I am a complete novice to Python. I wish to access a dll that has > been written to be compatible with C and VB6. I have been told that > after running Python I should enter "from ctypes import *" which > allows Python to recognize the dl

Re: Objects in Python

2012-08-23 Thread Jerry Hill
On Thu, Aug 23, 2012 at 4:59 AM, Jussi Piitulainen wrote: > I don't get it either. To me the python-has-no-variables campaigners > seem confused. As far as I can see, Python can be seen in terms of > variables bound to (locations containing) values perfectly well, in a > way that should be quite f

Re: writelines puzzle

2012-08-22 Thread Jerry Hill
On Wed, Aug 22, 2012 at 11:38 AM, William R. Wing (Bill Wing) wrote: > Much to my surprise, when I looked at the output file, it only contained 160 > characters. Catting produces: > > StraylightPro:Logs wrw$ cat RTT_monitor.dat > 2354[ 734716.72185185 734716.72233796 734716.72445602 ..., 7347

Re: python 6 compilation failure on RHEL

2012-08-21 Thread Jerry Hill
On Tue, Aug 21, 2012 at 12:34 AM, John Nagle wrote: > After a thread of clueless replies, it's clear that nobody > responding actually read the build log. Here's the problem: The very first reply, Emile's, pointed out that these were optional modules, and that python did, in fact build succe

Re: Why doesn't Python remember the initial directory?

2012-08-19 Thread Jerry Hill
On Sun, Aug 19, 2012 at 9:57 PM, kj wrote: > By now I have learned to expect that 99.99% of Python programmers > will find that there's nothing wrong with behavior like the one > described above, that it is in fact exactly As It Should Be, because, > you see, since Python is the epitome of perfect

Re: ONLINE SERVER TO STORE AND RUN PYTHON SCRIPTS

2012-08-19 Thread Jerry Hill
On Sun, Aug 19, 2012 at 6:27 PM, coldfire wrote: > Also I have no idea how to deploy a python script online. > I have done that on my local PC using Apache server and cgi but it Works fine. > Whats this all called? as far as I have searched its Web Framework but I dont > wont to develop a websit

Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread Jerry Hill
On Fri, Aug 17, 2012 at 1:49 PM, wrote: > The character '…', Unicode name 'HORIZONTAL ELLIPSIS', > is one of these characters existing in the cp1252, mac-roman > coding schemes and not in iso-8859-1 (latin-1) and obviously > not in ascii. It causes Py3.3 to work a few 100% slower > than Py<3.3 ve

Re: print(....,file=sys.stderr) buffered?

2012-08-13 Thread Jerry Hill
On Mon, Aug 13, 2012 at 11:16 AM, Helmut Jarausch wrote: > Now, when executing this, I always get > > +++ before calling foo > --- after calling foo entering foo ... Can you give us a piece of code we can run that produces this output for you? You gave us an outline in your original post,

Re: howto do a robust simple cross platform beep

2012-07-24 Thread Jerry Hill
On Fri, Jul 13, 2012 at 9:00 PM, Gelonida N wrote: > I tried the simplest approach (just printing the BEL character '\a' chr(7) > to the console. That's what I do when I want to send an audible alert to the user of a console based program. It's then up to the user's terminal to do whatever the u

Re: using identifiers before they are defined

2012-06-12 Thread Jerry Hill
On Tue, Jun 12, 2012 at 2:33 PM, Julio Sergio wrote: > Suppose I have to define two functions, aa, and, bb that are designed to call > each other: > >  def aa(): >     ... >     ... a call of bb() somewhere in the body of aa >     ... > >  def bb(): >     ... >     ... a call of aa() somewhere in

Re: English version for Mémento Python 3 (draft, readers needed)

2012-06-06 Thread Jerry Hill
On Wed, Jun 6, 2012 at 4:10 PM, Alec Ross wrote: > FWIW, English idiomatic usage includes "see overleaf", and "see over", for > the obverse side of a page/sheet, i.e, the following page; and "see facing > page", w/ the obvious meaning. For what it's worth, I've never seen either of those construc

Re: DateTime objectFormatting

2012-05-02 Thread Jerry Hill
On Wed, May 2, 2012 at 10:49 AM, Nikhil Verma wrote: > What i am able to achieve with this class object to return is :- > > Gen GI Monday  May 7 > > I want that the this class should return object like this :- > > Gen GI Monday AM, May 7 > Pancreas Tuesday PM, May 8 Check the documentation for th

Re: syntax for code blocks

2012-05-01 Thread Jerry Hill
On Tue, May 1, 2012 at 1:07 PM, Kiuhnm wrote: > If you had read the module's docstring you would know that the public > version uses Are you aware that you've never posted a link to your module, nor it's docstrings? Are you also aware that your module is essentially unfindable on google? Certai

Re: md5 check

2012-04-18 Thread Jerry Hill
On Wed, Apr 18, 2012 at 9:31 PM, contro opinion wrote: > i have download  file (gpg4win-2.1.0.exe  from > http://www.gpg4win.org/download.html) > when i run : > > Type "help", "copyright", "credits" or "license" for import md5 f=open('c:\gpg4win-2.1.0.exe','r') print md5.new(f.read(

Re: Python Script Works Locally But Not Remotely with SSH

2012-04-08 Thread Jerry Hill
On Sat, Apr 7, 2012 at 5:41 PM, Dennis Lee Bieber wrote: >        The WinXP machine would need to have X-client translator (something > that redirects all the Windows native graphics into X protocol and ships > it to the specified server machine). > >        As I recall -- such are not cheap appli

Re: Python Script Works Locally But Not Remotely with SSH

2012-04-02 Thread Jerry Hill
On Tue, Mar 27, 2012 at 8:51 PM, goldtech wrote: > I have a WinXP PC running an SSH server and I have a Linux PC with an > SSH client  and logged into the XP seemingly OK. It's all on my > personal LAN, the connection seems OK. > > I have a py file on the XP that I run via SSH from the Linux, it's

Re: Python simulate browser activity

2012-03-15 Thread Jerry Hill
On Thu, Mar 15, 2012 at 10:54 PM, Chris Rebert wrote: > On Thu, Mar 15, 2012 at 7:23 PM, choi2k wrote: >> The application aims to simulate user activity including visit a >> website and perform some interactive actions (click on the menu, >> submit a form, redirect to another pages...etc) > > Did

Re: GUI for pickle read

2012-02-28 Thread Jerry Hill
On Tue, Feb 28, 2012 at 12:51 PM, Smiley 4321 wrote: > Can I have some thoughts about - building a GUI to display the results of > the pickle read? > > A prototype code should be fine on Linux. It doesn't seem like it would be all that useful, though I may just be lacking in imagination. What wo

Re: Just curious: why is /usr/bin/python not a symlink?

2012-02-23 Thread Jerry Hill
On Thu, Feb 23, 2012 at 2:34 PM, HoneyMonster wrote: > On Thu, 23 Feb 2012 14:24:23 -0500, Jerry Hill wrote: >> It's not two files, it's a hardlink.  You can confirm by running ls -li >> python* and comparing the inode numbers. > > You are spot on. Thank you, and s

Re: Just curious: why is /usr/bin/python not a symlink?

2012-02-23 Thread Jerry Hill
On Thu, Feb 23, 2012 at 2:11 PM, HoneyMonster wrote: > $ cd /usr/bin > $ ls -l python* > -rwxr-xr-x 2 root root 9496 Oct 27 02:42 python > lrwxrwxrwx 1 root root    6 Oct 29 19:34 python2 -> python > -rwxr-xr-x 2 root root 9496 Oct 27 02:42 python2.7 > $ diff -s  python python2.7 > Files python an

Re: package extension problem

2012-02-13 Thread Jerry Hill
On Sun, Feb 12, 2012 at 1:46 PM, Fabrizio Pollastri wrote: > Hello, > > I wish to extend the functionality of an existing python package by > creating > a new package that redefines the relevant classes of the old package. Each > new class inherits the equivalent old class and adds new methods. >

Re: object aware of others

2012-01-29 Thread Jerry Hill
On Sun, Jan 29, 2012 at 1:47 AM, Lee wrote: > I was afraid that a list/set/dictionary and alike is the answer, but, > anyway, thanks everybody. > > It doesn't seem too bad to keep track of the instances in the class object using weak references (http://docs.python.org/py3k/library/weakref.html).

Re: search google with python

2012-01-25 Thread Jerry Hill
On Wed, Jan 25, 2012 at 5:36 AM, Tracubik wrote: > thanks a lot but it say it's deprecated, is there a replacement? Anyway > it'll useful for me to study json, thanks :) I don't believe Google is particularly supportive of allowing third-parties (like us) to use their search infrastructure. All

Re: windows and home path

2012-01-24 Thread Jerry Hill
On Tue, Jan 24, 2012 at 11:10 AM, Andrea Crotti wrote: > Ah yes thanks for the explanation, on Python 2.7 on Linux I don't see > the same doc, it might have been updated later.. > Anyway I just want to make sure that I get always the same path, > not depending on the program. > > From a first look

Re: windows and home path

2012-01-24 Thread Jerry Hill
On Tue, Jan 24, 2012 at 11:05 AM, Jerry Hill wrote: > So, my guess is that emacs is mangling your HOME environment variable. >  That appears to be confirmed by the emacs documentation here: > http://www.gnu.org/software/emacs/manual/html_node/emacs/General-Variables.html#General-Variable

Re: windows and home path

2012-01-24 Thread Jerry Hill
On Tue, Jan 24, 2012 at 9:56 AM, Andrea Crotti wrote: > Window never stops to surprise me, I've been banging my head since yesterday > and only > now I now what is the problem. > > So suppose I have something like > > from os import path > print path.expanduser('~') > > If I run it from cmd.exe I

Re: Parsing a serial stream too slowly

2012-01-23 Thread Jerry Hill
On Mon, Jan 23, 2012 at 4:48 PM, M.Pekala wrote: > Hello, I am having some trouble with a serial stream on a project I am > When one sensor is running my python script grabs the data just fine, > removes the formatting, and throws it into a text control box. However > when 3 or more sensors are r

Re: Please don't use "setuptools", the "rotten .egg" install system.

2012-01-18 Thread Jerry Hill
On Wed, Jan 18, 2012 at 1:24 PM, John Nagle wrote: > Please don't use "setuptools", the so-called "easy" > installation system in your packages. It just makes things > more complicated, adds dependencies, and needs too many weird > options if things aren't exactly where it wants them. Since >

Re: Type object returned by the re.compile function

2011-12-27 Thread Jerry Hill
On Tue, Dec 27, 2011 at 4:56 PM, candide wrote: import re reo = re.compile('') reo.__class__ > Traceback (most recent call last): >  File "", line 1, in > AttributeError: __class__ I'm not going to comment on what type is returned from the various functions in the re module,

Re: Upgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work?

2011-12-20 Thread Jerry Hill
On Tue, Dec 20, 2011 at 5:43 PM, John Ladasky wrote: > I was running Ubuntu Linux 10.10, on which Python 2.6.6 was the > standard distribution.  I succeeded in doing an "alternate install" of > Python 2.7.2, over Ubuntu 10.10.  But I use so many packages in my > code.  Dealing with the package dep

Re: tracking variable value changes

2011-12-08 Thread Jerry Hill
On Thu, Dec 8, 2011 at 3:17 PM, Catherine Moroney < catherine.m.moro...@jpl.nasa.gov> wrote: > Is there some way to rewrite the code above so the change of "a" from > 1.0 to 100.0 is reflected in the dictionary. I would like to use > simple datatypes such as floats, rather than numpy arrays or cl

Re: Python horks on WinXP path names

2011-12-08 Thread Jerry Hill
On Thu, Dec 8, 2011 at 3:16 PM, Eric wrote: > I'm running Python 2.7 on WinXP (ActiveState community version) and > when I try to do this: > > if __name__ == '__main__': >root = Tkinter.Tk() >root.withdraw() >fileNames = tkFileDialog.askopenfilenames() >root.destroy() >print f

Re: Py and SQL

2011-11-30 Thread Jerry Hill
On Wed, Nov 30, 2011 at 3:30 PM, Verde Denim wrote: > dbCursor1.execute('select lpad(' ', 2*level) || c "Privilege, Roles and > Users" from ( select null p, name c from system_privilege_map where name > like upper(\'%&enter_privliege%\') union select granted_role p, grantee c > from dba_role_priv

Re: Can I submit an issue with Python 2.5.6?

2011-11-29 Thread Jerry Hill
2011/11/29 Toshiyuki Ogura > I found a problem with Python 2.5.6. > ... > Can I submit the issue at bugs.python.org? > I think many people are still using Python 2.5 because of Google App > Engine and fixing bugs with 2.5 is still helpful. > I don't think they'll be accepted. Python 2.5 is no

Re: String splitting by spaces question

2011-11-23 Thread Jerry Hill
On Wed, Nov 23, 2011 at 12:10 PM, Massi wrote: > Hi everyone, > > I have to parse a string and splitting it by spaces. The problem is > that the string can include substrings comprises by quotations which > must mantain the spaces. What I need is to pass from a string like: > > This is an 'exampl

Re: How to mix-in __getattr__ after the fact?

2011-10-28 Thread Jerry Hill
On Fri, Oct 28, 2011 at 1:34 PM, dhyams wrote: > If I call __getattr__ directly, as in bessie.__getattr__('foo'), it > works as it should obviously; so the method is bound and ready to be > called.  But Python does not seem to want to call __getattr__ > appropriately if I mix it in after the objec

Re: Reading pen drive data

2011-09-03 Thread Jerry Hill
On Sat, Sep 3, 2011 at 12:21 PM, mukesh tiwari wrote: > I am getting > Traceback (most recent call last): > File "Mount.py", line 7, in >observer = QUDevMonitorObserver(monitor) > NameError: name 'QUDevMonitorObserver' is not defined > > Could any one please tell me how to avoid this error

Re: How to convert a list of strings into a list of variables

2011-08-18 Thread Jerry Hill
On Thu, Aug 18, 2011 at 11:19 AM, noydb wrote: > I am being passed the list of strings.  I have variables set up > already pointing to files.  I need to loop through each variable in > the list and do things to the files.  The list of strings will change > each time, include up to 22 of the same s

Re: Wait for a keypress before continuing?

2011-08-16 Thread Jerry Hill
On Tue, Aug 16, 2011 at 5:59 PM, John Doe wrote: > No. I am running this from within Windows, all sorts of Windows. What does that mean? You seem very resistant to answering anyone's questions about your code. Is your code run from the command line, or does it have a GUI? If it has a GUI, what

Re: Determine what msvcrt.getch() is getting?

2011-08-16 Thread Jerry Hill
On Tue, Aug 16, 2011 at 5:43 PM, John Doe wrote: > Whatever msvcrt.getch() is returning here in Windows, it's not within > the 1-255 number range. How can I determine what it is returning? > > I would like to see whatever it is getting. Just print it. Like this: import msvcrt ch = msvcrt.getch(

Re: What is xrange?

2011-07-29 Thread Jerry Hill
On Fri, Jul 29, 2011 at 3:36 PM, Billy Mays wrote: > Is xrange not a generator?  I know it doesn't return a tuple or list, so > what exactly is it?  Y doesn't ever complete, but x does. > > x = (i for i in range(10)) > y = xrange(10) xrange() does not return a generator. It returns an iterable x

Re: Only Bytecode, No .py Files

2011-07-29 Thread Jerry Hill
On Fri, Jul 29, 2011 at 8:51 AM, John Roth wrote: > Sorry. I thought what you posted was from the OP. I guess I don't > really expect someone to post a completely irrelevant trace in a > thread started by someone who has a problem. I'm not sure why you would think that that post was by the origin

Re: How do I access IDLE in Win7

2011-07-28 Thread Jerry Hill
On Wed, Jul 27, 2011 at 5:26 PM, W. eWatson wrote: > .py=Python.File > .pyw=Python.NoConFile > Python.File="C:\Python25\python.exe" "%1" %* > Python.File="C:\Python25\python.exe" "%1" %* > Python.NoConFile="C:\Python25\pythonw.exe" "%1" %* That all looks good. > I cannot copy from the cmd window

Re: How do I access IDLE in Win7

2011-07-27 Thread Jerry Hill
On Wed, Jul 27, 2011 at 3:34 PM, W. eWatson wrote: > On 7/27/2011 9:48 AM, Jerry Hill wrote: >> So, you don't have an idle.py or idle.pyw in C:\Python26\Lib\idlelib\ >> (or where ever you installed python)?  If not, it sounds to me like >> your python installation

Re: How do I access IDLE in Win7

2011-07-27 Thread Jerry Hill
On Wed, Jul 27, 2011 at 12:28 PM, W. eWatson wrote: > If I run cmd.exe and work my way down to  .../idlelib, I find nothing but > idle.bat. strange. Hidden?  I can get into line mode by using python.exe. > That is, I can type in print "abc", and get a result. So, you don't have an idle.py or idle

  1   2   3   4   >