if statement on lenght of a list

2011-05-17 Thread Joe Leonardo
print 'YAY!' If I pass: breakLine([]) I get: YAY! I expect: You must pass a list that contains 19 fields. If I print len(value) I get: 0 What is going on here? Thanks! [cid:[email protected]] Joe Leonardo | Business Intelligence Analyst | DataLogix<h

IDLE help.

2017-10-08 Thread Joe Wilde
so I don't have a lot of technical knowledge. Thanks in advance, Joe. -- https://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError: multiple statements found while compiling a single statement

2022-08-07 Thread Joe Pfeiffer
Sohail Ahmad writes: > kindly please help me about issues > SyntaxError: multiple statements found while compiling a single statement > how to solve this issues Please post the code that got the error. Preferably several lines before the actual error, and the line with the error itself. -- h

Re: Find the path of a shell command

2022-10-12 Thread Joe Pfeiffer
Jon Ribbens writes: > On 2022-10-12, Michael F. Stemper wrote: >> On 12/10/2022 07.20, Chris Green wrote: >>> ... and rm will just about always be in /usr/bin. >> >> On two different versions of Ubuntu, it's in /bin. > > It will almost always be in /bin in any Unix or Unix-like system, > because

Re: Find the path of a shell command

2022-10-12 Thread Joe Pfeiffer
Cameron Simpson writes: > On 12Oct2022 20:54, Jon Ribbens wrote: >>On 2022-10-12, Jon Ribbens wrote: >>> On 2022-10-12, Joe Pfeiffer wrote: >>>> Jon Ribbens writes: >>>>> on Amazon Linux: >>>>> >>>>> $

Re: name for a mutually inclusive relationship

2021-02-25 Thread Joe Pfeiffer
Ethan Furman writes: > I'm looking for a name for a group of options that, when one is specified, > all of them must be specified. I don't fully understand the question (yes, I read the part I snipped). Why is this not just a single option? Or is it hierarchical or something so option 1 impli

Re: name for a mutually inclusive relationship

2021-02-25 Thread Joe Pfeiffer
Ethan Furman writes: > On 2/24/21 1:54 PM, [email protected] wrote: >> Ethan Furman wrote: > >>> I didn't say it was a good example. ;-) Hopefully it gets the idea across. >> Ditto. ;-) >> IMO, the whole idea of "my program has two options, and the user has >> to >> specify bo

Re: all versions of python fail to indent after conditional statement

2021-04-02 Thread Joe Pfeiffer
It's not a bug, it's a design choice you are disagreeing with: managing indentation is your job, not the interpreter's. For anything other than an absolutely trivial three-line script, I write in an editor that does a good job helping me manage indentation (in my case, emacs in Python mode). wr

Re: Bloody rubbish

2021-05-05 Thread Joe Pfeiffer
Mr Flibble writes: > Python is slow and significant whitespace is patently absurd. Why am I not surprised to learn your "fast" implementation turns out to be something other than python? -- https://mail.python.org/mailman/listinfo/python-list

Re: Bloody rubbish

2021-05-06 Thread Joe Pfeiffer
Skip Montanaro writes: >> >> Machine language is so much simpler, and you can code with just a hexpad. >> > > Pshaa... All you need are front panel switches. ;-) (Yes, I had a professor > who required is to 'key' in our programs on the front panel, of a rack > mounted PDP-11 as I recall. Needless

Re: on floating-point numbers

2021-09-07 Thread Joe Pfeiffer
Hope Rouselle writes: > Christian Gollwitzer writes: >> >> I believe it is not commutativity, but associativity, that is >> violated. > > Shall we take this seriously? (I will disagree, but that doesn't mean I > am not grateful for your post. Quite the contary.) It in general > violates assoc

Re: Friday Finking: Contorted loops

2021-09-10 Thread Joe Pfeiffer
[email protected] (Stefan Ram) writes: > [email protected] (Stefan Ram) writes: >>can be misleading, because the "..." part can still contain >>"break", "raise", "continue", and "return" statement. So one >>better should always be on the watch when reading source code >>of a language l

Re: Friday Finking: Contorted loops

2021-09-10 Thread Joe Pfeiffer
[email protected] writes: > On 2021-09-10 at 15:08:19 -0600, > Joe Pfeiffer wrote: > >> [email protected] (Stefan Ram) writes: > >> > The existence of statements like "break" renders >> > proof techniques for loops (suc

Re: Friday Finking: Contorted loops

2021-09-12 Thread Joe Pfeiffer
[email protected] (Stefan Ram) writes: > Alan Gauld writes: >>OK, That's a useful perspective that is at least consistent. >>Unfortunately it's not how beginners perceive it > ... > > Beginners perceive it the way it is explained to them by > their teacher. My life as a professor would

Re: XML Considered Harmful

2021-09-21 Thread Joe Pfeiffer
Eli the Bearded <*@eli.users.panix.com> writes: > In comp.lang.python, Michael F. Stemper wrote: >> I've heard of JSON, but never done anything with it. > > You probably have used it inadvertantly on a regular basis over the > past few years. Websites live on it. If the user has any interaction

Re: XML Considered Harmful

2021-09-21 Thread Joe Pfeiffer
[email protected] (Stefan Ram) writes: > - S expressions (i.e., LISP notation) If you're looking at hierarchical data and you don't have some good reason to use something else, this is very likely to be your simplest option. -- https://mail.python.org/mailman/listinfo/python-list

Re: doubt About import machine

2021-11-21 Thread Joe Pfeiffer
Daniel Eduardo Almeida Correa writes: > Hello, I'm trying to use the machine library in python 3.10 version, but I > can't import it with the pip install machine, could you tell me a way to > solve it or a python version compatible with the library? Thank you a lot > for your answer. The "machi

Re: Functionality like local static in C

2022-04-14 Thread Joe Pfeiffer
Cecil Westerhof writes: > In C when you declare a variable static in a function, the variable > retains its value between function calls. > The first time the function is called it has the default value (0 for > an int). > But when the function changes the value in a call (for example to 43), > t

Re: Entering a very large number

2018-03-25 Thread Joe Pfeiffer
ast writes: > Hi > > I found this way to put a large number in > a variable. > > C = int( > "28871482380507712126714295971303939919776094592797" > "22700926516024197432303799152733116328983144639225" > "94197780311092934965557841894944174093380561511397" > "42154241693397290542371100275104208

Re: Entering a very large number

2018-03-25 Thread Joe Pfeiffer
bartc writes: > On 25/03/2018 15:53, Joe Pfeiffer wrote: >> ast writes: > >>> C = int( >>> "28871482380507712126714295971303939919776094592797" >>> "22700926516024197432303799152733116328983144639225&qu

Re: Entering a very large number

2018-03-26 Thread Joe Pfeiffer
Steven D'Aprano writes: > On Mon, 26 Mar 2018 02:37:44 +0100, bartc wrote: > >> If I instead initialise C using 'C = int("288712...")', then timings >> increase as follows: > > Given that the original number given had 397 digits and has a bit length > of 1318, I must admit to some curiosity as t

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Joe Pfeiffer
Mikhail V writes: > On Mon, May 21, 2018 at 1:41 PM, Chris Lindsay via Python-list > wrote: > >> If a block of static data is large enough to start to be ugly, a common >> approach is to load the data from some other file, in a language which is >> designed around structured data. > > > Maybe it

Re: Python list vs google group

2018-06-18 Thread Joe Pfeiffer
Peter Otten <[email protected]> writes: > Gene Heskett wrote: > >> This biggest single thing wrong with any of those old scsi interfaces is >> the bus's 5 volt isolation diode, the designer speced a shotkey(sp) >> diode, and some damned bean counter saw the price diff and changed it to > > Is this

Re: Folk etymology, was Re: Python list vs google group

2018-06-18 Thread Joe Pfeiffer
Peter Otten <[email protected]> writes: > Grant Edwards wrote: > >> On 2018-06-18, Joe Pfeiffer wrote: >>> Peter Otten <[email protected]> writes: >>> >>>> Gene Heskett wrote: >>>> >>>>> This biggest single thing wron

Re: File names with slashes [was Re: error in os.chdir]

2018-07-04 Thread Joe Pfeiffer
Mikhail V writes: > [Steven D'Aprano] > >> (The same applies to Unix/Linux systems too, of course.) But while you're >> using Python to manipulate files, you should use Python rules, and that >> is "always use forward slashes". >> >> Is that reasonable? >> >> Under what circumstances would a user

Re: Kindness

2018-07-13 Thread Joe Pfeiffer
I notice a correlation: the less people have interacted with Bart, the more tolerant they are. He once went on for *weeks* about C's (yes, this was in c.l.c) failure to have what he regards as a "proper" for-loop. -- https://mail.python.org/mailman/listinfo/python-list

Re: Looking for a Scrapy cheatsheet

2018-09-14 Thread Joe Gulizia
I just goolged for SANS Scrapy Cheatsheetthey have several SANS.org From: Python-list on behalf of Jim Sent: Friday, September 14, 2018 8:15:05 AM To: [email protected] Subject: Re: Looking for a Scrapy cheatsheet On 09/14/2018 01:27 AM, Danyelle Da

OT?: Where can I find python programming material in different languages?

2016-06-22 Thread Joe Gulizia
Potentially Off Topic I am looking for python programming related blogs, papers, videos in Swahili, Tagalog, Somali, Javanese (Indonesian?), Lithuanian, Pashto, Bulgarian, Farsi, Amharic, Georgian, Kazakh, and Tamil. Although blogs are not online I am looking for material that is not easily a

RE: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-23 Thread Joe Gulizia
t with FSF.org (Free Software Foundation) or EFSF (European FSF) https://fsfe.org/ Joe -- https://mail.python.org/mailman/listinfo/python-list

Re: Why Python don't accept 03 as a number?

2018-12-07 Thread Joe Pfeiffer
[email protected] writes: > MRAB at 2018/12/8 UTC+8 AM10:04:51 wrote: >> Before Python 3, a leading 0 in an integer literal would indicate an >> octal (base 8) number. > > So, the reason is historical. > >> The old form is now invalid in order to reduce the chance of bugs. > > I encounter this

Re: 03 digression by brute force

2018-12-11 Thread Joe Pfeiffer
"Avi Gross" writes: > SYNOPSIS: One way to solve math puzzle by brute force. (message sent earlier > disappeared) > > > > Quick note. Jack started by asking why python does not like decimal > numbers with leading zeroes. When asked to explain, he said he was > trying to solve word problems usi

Re: Why float('Nan') == float('Nan') is False

2019-02-13 Thread Joe Pfeiffer
ast writes: > Hello > float('Nan') == float('Nan') > False > > Why ? > > Regards Others have given the real answer -- IEEE says so, and the people who wrote the standard are smarter than me. All the same, this is my take on the reason for it: NaN is specifically a representation for "this

Re: Why float('Nan') == float('Nan') is False

2019-02-13 Thread Joe Pfeiffer
songbird writes: > Chris Angelico wrote: >> On Thu, Feb 14, 2019 at 7:12 AM Test Bot wrote: >>> >>> This definition of NaN is much better in mentally visualizing all the so >>> called bizarreness of IEEE. This also makes intuitive that no 2 NaN will be >>> equal just as no 2 infinities would be

Re: Why float('Nan') == float('Nan') is False

2019-02-13 Thread Joe Pfeiffer
[email protected] writes: > There are more integers than odd numbers, and more odd numbers than prime > numbers. An infinite set may be a subset of another infinite set although > they may both have the same cardinality. Or in other words, the number of > elements in each set is not equal. One has m

Re: Why float('Nan') == float('Nan') is False

2019-02-14 Thread Joe Pfeiffer
ast writes: > Le 13/02/2019 à 14:21, ast a écrit : >> Hello >> >> >>> float('Nan') == float('Nan') >> False >> >> Why ? >> >> Regards >> > > Thank you for answers. > > If you wonder how I was trapped with it, here > is the failing program. > > > r = float('Nan') > > while r==float('Nan'): >

Re: Why float('Nan') == float('Nan') is False

2019-02-14 Thread Joe Pfeiffer
Chris Angelico writes: > > Or even better, use None instead of nan. There's nothing in Python > says you have to (ab)use a floating-point value as a signal. Or use > "while True" and add a break if the exception isn't thrown. Good point. -- https://mail.python.org/mailman/listinfo/python-list

Re: problem in installing packages

2019-05-29 Thread Joe Pfeiffer
Joel Goldstick writes: > On Wed, May 29, 2019 at 1:17 AM Sri Tharun wrote: >> >> Problem not resolved.Yet >> >> On Wed 29 May, 2019, 6:39 AM Tharun, wrote: >> >> > >> > >>> sudo apt-get update >> > >> > File "", line 1 >> > >> > sudo apt-get update >> >^ >> > SyntaxError:

Re: FW: Pycharm Won't Do Long Underscore

2020-06-24 Thread Joe Pfeiffer
One other note -- while you may want various good-looking fonts with ligatures in other domains, for writing code a monospace font with no ligatures lets you see exactly what's there and saves a host of problems. My personal favorite for these purposes is called "Terminus Regular", but which speci

Re: FW: Pycharm Won't Do Long Underscore

2020-06-30 Thread Joe Pfeiffer
"Peter J. Holzer" writes: > On 2020-06-24 15:33:16 -0600, Joe Pfeiffer wrote: >> One other note -- while you may want various good-looking fonts with >> ligatures in other domains, for writing code a monospace font with no >> ligatures lets you see exactly w

Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Joe Pfeiffer
Jeff Linahan writes: > > See attached image. Would be nice if it printed "SyntaxError: unbalanced > parens" as it can difficult to see the problem if code like this is run in > an environment that only prints the problematic line, which in this case > the compiler is confused and one line off. I

Re: Where read() is documented

2020-08-29 Thread Joe Pfeiffer
Chris Green writes: > Stefan Ram wrote: >> Chris Green writes:I can't find the documentation for >> >read(). It's not a built-in function and it's not documented with >> >(for example) the file type object sys.stdin. >> >> |read() (asyncio.StreamReader method), 894 >> |read() (chunk.Chunk

Re: Use of a variable in parent loop

2020-09-27 Thread Joe Pfeiffer
Stephane Tougard writes: > On 2020-09-27, Stefan Ram wrote: >>>Is there any other instruction to end a if than pass and ensure Emacs >>>does not break the indentation during a copy paste or an indent-region ? >> >> We usually do not wish to tie our code to a defective editor. >> I use vi, an

For Creatives and Developers Only

2020-10-10 Thread Joe Mayami
We are recruiting Developers, and Creatives to join our community into building personal portfolios, personal development skills, work on Open Source Projects, Devops, Collaboration, User Testing and Supports. Community members include experts in product designs, python programming, data scienc

Re: Function returns old value

2020-12-11 Thread Joe Pfeiffer
Bischoop writes: > I've function asking question and comparing it, if is not matching 'yes' > it does call itself to ask question again. The problem is that when > function is called second time it returns old value or with additional > else statement it returns none. > > Code: https://bpa.st/KVG

Re: Function returns old value

2020-12-12 Thread Joe Pfeiffer
Bischoop writes: > On 2020-12-12, Joe Pfeiffer wrote: >> Bischoop writes: >> >>> I've function asking question and comparing it, if is not matching 'yes' >>> it does call itself to ask question again. The problem is that when >>> fu

Re: Review, suggestion etc?

2020-12-17 Thread Joe Pfeiffer
Bischoop writes: > On 2020-12-17, Dennis Lee Bieber wrote: >>> >> >> The main concern is that you are using a RECURSIVE call. It is much >> better for such input checking to use an ITERATIVE (loop) scheme. >> >> def marriage(): >> #loop forever >> while True:

Re: Review, suggestion etc?

2020-12-18 Thread Joe Pfeiffer
Grant Edwards writes: > On 2020-12-18, Joe Pfeiffer wrote: > >> Recursion has very limited application, but where it's the right >> tool it's invaluable (top-down parsers, some graph algorithms...). >> We teach it primarily because by the time a student has

Re: The best way to do web apps with Python?

2005-01-08 Thread Joe Francia
worzel wrote: What is the best way to web developemnt with Python? Is there anything close to PHP style in-page script placement that can create and use other Python objects? I am not really interested in Zope (I believe that is more a CMS than anything else?) I am also looking for something a litt

Re: python without OO

2005-01-27 Thread Joe Francia
Timo Virkkala wrote: This guy has got to be a troll. No other way to understand. -- Timo Virkkala Not a troll, just another case of premature optimization run amok. -- http://mail.python.org/mailman/listinfo/python-list

Re: Reinstall python 2.3 on OSX 10.3.5?

2005-02-03 Thread Joe Block
In article <[EMAIL PROTECTED]>, Just <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, Robert Kern <[EMAIL PROTECTED]> > wrote: > > > Christian Dieterich wrote: > > > On Dé Céadaoin, Feabh 2, 2005, at 17:48 America/Chicago, > > > [EMAIL PROTECTED] wrote: > > > > > >> Hi there > > >

"long int..." exception reported with strange traceback location

2005-07-04 Thread Joe Peterson
e collection I am running Fedora Core 3, and it is Python version 2.3.4 [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)]. Thanks, Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: "long int..." exception reported with strange traceback location

2005-07-04 Thread Joe Peterson
t)) print "hi" This way, there's no "float" call, simply an asignment of a long int... Thanks, Joe Peter Otten wrote: > Terry Reedy wrote: > > >>>>>os.utime("foo_test_file", (0, float(sys.maxint+1))) >> >>Traceba

py2exe => can you go the other way?

2005-07-13 Thread Joe Woodward
I have an executable version of a script that I wrote, but my script and backups got erased.  Is it possible to get the python script back from an exe file created with py2exe?   Joe Woodward Phoenix Analysis & Design Technologies 7755 s. Research Drive - Suite 110 Tempe, Arizona 8

Python and the web

2005-08-22 Thread Joe T.
#x27;s a Jpython but what use would I get from using Python with Java? If I'm already familiar with Java programming why would I want to use Python with Java? Again I appreciate any help with the above two questions. Thanks, Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python versus Perl ?

2005-02-09 Thread Joe Francia
ython extensions directly in Delphi: http://membres.lycos.fr/marat/delphi/python.htm http://www.atug.com/andypatterns/PythonDelphiLatest.htm Demo09 (look in demodll.dpr & module.pas) in the download tells you how. Peace, Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and version control

2005-02-09 Thread Joe Francia
I usually just edit with SciTE and use the TortoiseSVN Explorer extension or the command-line utilities for checkins and updates. Peace, Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-09 Thread Joe Francia
.php Peace, Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and version control

2005-02-09 Thread Joe Francia
Chris wrote: Hi Joe, I'm curious. Why do you only use Eclipse for big projects? Habit, mainly; plus it's easier for one-offs and single-file scripts to just right-click a file in Explorer and "Edit with ScITE" and work from there. And to further complicate matters, when

Re: [perl-python] problem: reducing comparison

2005-02-15 Thread Joe Francia
Xah Lee wrote: here's a interesting real-world algoritm to have fun with. From you? Doubtful. Sorry, dude, but you've been replaced by über-troll Ilias Lazaridis. Security will escort you to the door. -- Soraia: http://www.soraia.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Joe Francia
Ilias Lazaridis wrote: Mike Meyer wrote: Ilias Lazaridis <[EMAIL PROTECTED]> writes: MinGW compatibility is not my need. Then why do you waste so much effort whining about it not being given to you? It is an community need. Based on the evidence at hand, this is a false statement. MinGW co

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Joe Francia
Ilias Lazaridis wrote: Joe Francia wrote: Ilias Lazaridis wrote: [...] MinGW compatibility is not [only] my need. It is an community need [at least partially] You keep using that word "community". I do not think it means what you think it means. The community is everyone aro

Re: How can I Fill in web form and post back

2005-02-15 Thread Joe Francia
Rigga wrote: Hi, I am looking for the best way to use Python to get a web page, look for some particular fields on a form, fill in the fields and submit the form but I have no idea where to start - any pointers appreciated many thanks Rigga Here's a pretty good resource: http://www.google.com/searc

Re: Calling a function from module question.

2005-02-15 Thread Joe Francia
Sean wrote: Sean wrote: Then I would have a script that uses the print_this function defined in the module without using the module name in the call. from module_name import print_this or, even: from module_name import print_this as other_nice_name So what if I have a whole bunch of functions -

Re: How can I Fill in web form and post back

2005-02-16 Thread Joe Francia
On Wed, 16 Feb 2005 19:05:35 GMT, Rigga <[EMAIL PROTECTED]> wrote: Joe Francia wrote: Rigga wrote: Hi, I am looking for the best way to use Python to get a web page, look for some particular fields on a form, fill in the fields and submit the form but I have no idea where to start - any po

Re: Multiple initialization methods?

2005-02-16 Thread Joe Francia
On 16 Feb 2005 13:31:31 -0800, alex <[EMAIL PROTECTED]> wrote: Hi, it is possible to define multiple initialization methods so that the method is used that fits? I am thinking of something like this: def __init__(self, par1, par2): self.init(par1, par2); def __init__(self, par1): self.i

Re: Moving to Python from PHP - 3 questions

2005-02-20 Thread Joe Francia
Michal Migurski wrote: Thank you. My impression of Zope in the past has been that it does what I need, along with 10,000 other things I don't (built in WebDAV server?!), but clearly I owe it another chance. I've been initially attracted to mod_python because of its raw simplicity and its apparen

Re: a wrapper to invoke functions using argument

2005-02-23 Thread Joe Francia
[EMAIL PROTECTED] wrote: Hi, support I have a library of function, called mylib.py, in which there are 2 functions 'f1' and 'f2' (1 arguments in either one); Now I want to write a wrapper that will invoke f1 or f2 using the command line argument. So for example, I want to write a function "call.py"

Re: Bug?

2005-03-13 Thread Joe Wong
I think python is expecting a octet number from the input?   - Joe   - Original Message - From: [EMAIL PROTECTED] To: [email protected] Sent: Monday, March 14, 2005 10:51 AM Subject: Bug? HelloIve recently found that you cannot type anything over 7 into a

Re: Plone

2004-12-03 Thread Joe Raul
verzeihung , was ist das? - Original Message - From: "merman" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python.announce To: <[EMAIL PROTECTED]> Sent: Thursday, November 25, 2004 8:12 PM Subject: Plone > Hallo, > > das ist schon wichtig: > > http://plone.org/newsitems/plone-2.0.5-rc >

Re: [Python-Help] (fwd)

2004-12-04 Thread Joe Raul
"Alfred Canoy" <[EMAIL PROTECTED]> news:[EMAIL PROTECTED] > Hello, > > I'm just new to programming and would like to ask for help.. > > Build a module that contains three functions that do the following: > > a.. Compute the average of a list of numbers > b.. Finds the statistical

Re: notification for cd insertion

2004-12-04 Thread Joe Raul
"Qiangning Hong" <[EMAIL PROTECTED]> news:[EMAIL PROTECTED] > Qiangning Hong wrote: > > I want one of my function to execute when a cdrom is inserted. How can > > I achieve that? > > > > Further more, I want to do different things depend on the inserted disc > > type: if it is a normal cd-ro

Re: Importing class from file in package

2004-12-05 Thread Joe Raul
from second import class -- == best regards == "Florian Lindner" <[EMAIL PROTECTED]> news:[EMAIL PROTECTED] > Hello, > I've two files in my package. > In the first file I want to inport a class which is declared in the > second file. How can do that

httpconnection class handle 302 redirect?

2004-12-06 Thread Joe Wong
Hi , it looks like that HTTPConnection class is not capable to handle 302 redirect response. Is there any sample implementation that tackle this problem? I am using python 2.3.3 on Windows platform.   best regards,   - Joe     ---Outgoing mail is certified Virus Free.Checked by AVG anti

convert \uXXXX to native character set?

2004-12-20 Thread Joe Wong
Hi,    Is there any library to convert HTML page with \u encoded text to native character set, e.g. BIG5.   Regards,   - Joe   No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 2004/12/17 -- http

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Joe Marshall
Jeremy Bowers <[EMAIL PROTECTED]> writes: > On Thu, 31 Mar 2005 23:30:42 -0800, Erik Max Francis wrote: > >> Daniel Silva wrote: >> >>> Shriram Krishnamurthi has just announced the following elsewhere; it might >>> be of interest to c.l.s, c.l.f, and c.l.p: >>> http://list.cs.brown.edu/pipermail/

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Joe Smith
Xah Lee wrote: of motherf***ing irrevalent drivel? I am greatly amused. A troll impersonating Xah Lee has made xah look like a total moron. LOL -- http://mail.python.org/mailman/listinfo/python-list

Re: Job openings for scientifically-oriented programmers

2005-04-28 Thread Joe Deasy
Email was scrambled by google: Correct email address is: bior _jobs @ yahoo.com (remove spaces). I apologize for that. - Joe Deasy -- http://mail.python.org/mailman/listinfo/python-list

Re: Class hierarchy problem

2013-08-06 Thread Joe Junior
On Tue, Aug 6, 2013 at 12:36 PM, BrJohan wrote: > On 06/08/2013 16:02, Chris Angelico wrote: > >>> My classhierarchy is like a multilevel tree where each non-leaf node >>> (class) >>> is given knowledge about its nearest subclasses and their 'capacities'. >>> >>> So, my idea is to let the 'upper'

Interface and duck typing woes

2013-08-28 Thread Joe Junior
t to check isistance(), I like duck typing, but should I check if hasattr() and callable() before adding to the container? What is the pythonic way to deal with it? Am I worrying too much ;-)? Thanks, Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: Interface and duck typing woes

2013-08-29 Thread Joe Junior
Well, the main reason for me asking this question here was because of the Java/C#/Whatever developer in me craving for an Interface for the container's items, and I noticed that I'm not alone in this. But I was actually expecting the "We're all consenting adults, here", I guess I just needed the co

Re: Interface and duck typing woes

2013-08-29 Thread Joe Junior
On 29 August 2013 10:07, Chris Angelico wrote: > Hmm. l don't know of any good articles off-hand. But what I'm talking > about is simply developing the skill of reading exceptions, plus a few > simple things like knowing where it's appropriate to catch-and-log; > sometimes, what that means is actu

Re: user interfaces python3.x

2013-09-02 Thread Joe Junior
Application. The examples Steven cited like GTK and Qt are libraries that provides it. The word "Interface" means a lot of things in programming. -- Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: user interfaces python3.x

2013-09-02 Thread Joe Junior
On 2 September 2013 14:30, Joel Goldstick wrote: > On Mon, Sep 2, 2013 at 1:16 PM, Joe Junior wrote: >> On 2 September 2013 14:00, Paul Rice wrote: >>> >>> I know that most of my time will be writing . I dont think i specified very >>> well what im asking.

Re: better and user friendly IDE recommended?

2013-09-12 Thread Joe Junior
eed impacts so much programmer's productivity. In my experience I spend a lot more time as a programmer (big emphasis on "lot") reading, thinking and designing then writing code. So I find a good navigation tool more important. My solution/suggestion for python: emacs (in cua-mode for me) with Jedi. Joe -- https://mail.python.org/mailman/listinfo/python-list

Re: Python GUI?

2013-09-13 Thread Joe Junior
on a keyboard was never the hard part of coding. > Nor the fun part. Joe -- https://mail.python.org/mailman/listinfo/python-list

Re: Python GUI?

2013-09-13 Thread Joe Junior
g. None of the mentioned graphical toolkits forces you to use them. And if you like debugging, GUI is not the main dish! Try networking and concurrent programming, loads and loads of fun! Of course, that's lots of other unnecessary time consuming stuff you can do. You just have to use your imagin

Re: beautifulSoup 4.1

2015-04-04 Thread Joe Farro
Could use zip: tds = iter(soup('td')) for abbr, defn in zip(tds, tds): print abbr.get_text(), defn.get_text() -- https://mail.python.org/mailman/listinfo/python-list

Which Python do I need for the below?

2015-08-01 Thread Joe Sanders
Hello- Which Python do I need for the below? with instructions please! [cid:[email protected]] Kind Regards, Gerald"Joe"Sanders Customer Global Quality Accounts 951 SanDisk Drive, building #5 | Milpitas, CA 95035 USA | cell +1,512.818.7798 corporate + 1.408.801.1000 |

Re: Design Pattern and Python: Any book recommendation? Your view?

2011-11-04 Thread Joe Riopel
On Fri, Nov 4, 2011 at 8:28 AM, John Roth wrote: > The first is that if you use TDD (Test Driven Development) and > refactor relentlessly to remove duplication, most of the basic design > patterns will emerge naturally from the code as you work. I agree, and there is a pretty good series of artic

Help with python-list archives

2012-01-05 Thread random joe
Hi. I am new to python and wanted to search the python-list archives for answers to my many questions but i can't seem to get the archive files to uncompressed? What gives? From what i understand they are gzip files so i assumed the gzip module would work, but no! The best i could do was to get a

Re: Help with python-list archives

2012-01-05 Thread random joe
On Jan 5, 5:39 pm, Miki Tebeka wrote: > Is the Google groups search not good enough? That works but i would like to do some regexes and set up some defaults. > Also, can you give an example of the code and an input file? Sure. Take the most recent file as example. "2012 - January.txt.gz". If yo

Re: Help with python-list archives

2012-01-05 Thread random joe
On Jan 5, 6:10 pm, Ian Kelly wrote: > Interesting.  I tried this on a Linux system using both gunzip and > your code, and both worked fine to extract that file.  I also tried > your code on a Windows system, and I get the same result that you do. > This appears to be a bug in the gzip module under

Re: Help with python-list archives

2012-01-05 Thread random joe
On Jan 5, 7:27 pm, MRAB wrote: > I've found that if I gunzip it twice (gunzip it and then gunzip the > result) using the gzip module I get the text file. On a windows machine? If so, can you post a code snippet please? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with python-list archives

2012-01-05 Thread random joe
On Jan 5, 9:00 pm, MRAB wrote: > On 06/01/2012 02:14, random joe wrote: > > > On Jan 5, 7:27 pm, MRAB  wrote: > > >>  I've found that if I gunzip it twice (gunzip it and then gunzip the > >>  result) using the gzip module I get the text file. > > > O

Re: Help with python-list archives

2012-01-05 Thread random joe
On Jan 5, 10:01 pm, random joe wrote: > On Jan 5, 9:00 pm, MRAB wrote: > > import gzip > > > in_file = gzip.open(r"C:\2012-January.txt.gz") > > out_file = open(r"C:\2012-January.txt.tmp", "wb") > > out_file.write(in_file.read()) > &

Re: Help with python-list archives

2012-01-06 Thread random joe
On Jan 6, 1:41 am, Ian Kelly wrote: > One could also avoid creating the intermediate file by using a > StringIO to keep it in memory instead: Yes StringIO is perfect for this. Many thanks to all who replied. -- http://mail.python.org/mailman/listinfo/python-list

Debugging difficulty in python with __getattr__, decorated properties and AttributeError.

2013-05-02 Thread Mr. Joe
Is there any way to raise the original exception that made the call to __getattr__? I seem to stumble upon a problem where multi-layered attribute failure gets obscured due to use of __getattr__. Here's a dummy code to demonstrate my problems: """ import traceback class BackupAlphabet(object):

Re: Debugging difficulty in python with __getattr__, decorated properties and AttributeError.

2013-05-03 Thread Mr. Joe
Thanks for clearing up. Developers of python should address this issue, in my opinion. 3.4/3.5 maybe, but better late than never. Recently, I've been beaten back for using some exotic features of python. One is this[ Took me hours to get to the bottom ]. The other one is 'property' decorator. I wa

changing ethernet mac

2005-12-26 Thread joe smith
Has anyone got a tip on how to control the source and destination ethernet macs using python?I am trying to test a bridge-like device. I have  tried to use dnet and some of the other modules from Dugsong, but without success. I am using a win2000 os, so my options are more limited than in the *nix

boost.python on Debian

2006-01-16 Thread Joe bloggs
Can anyone tell me how to get boost.python to work on Debian Sarge? When I try to build the tutorial hello world example bjam reports: /usr/share/doc/libboost-doc/examples/libs/python/example/boost-build.jam attempted to load the build system by invoking 'boost-build ../../../tools/build/

<    1   2   3   4   5   6   >