Re: Problem with giant font sizes in tkinter

2011-02-10 Thread Jason Swails
On Thu, Feb 10, 2011 at 11:52 AM, rantingrick wrote: > > Oh, and about your problem. READ THE FREAKING MANUAL! > > Google Translation: i have no clue -- Jason M. Swails Quantum Theory Project, University of Florida Ph.D. Graduate Student 352-392-4032 -- http://mail.python.org/mail

Re: Easy function, please help.

2011-02-10 Thread Jason Swails
On Thu, Feb 10, 2011 at 12:01 PM, Terry Reedy wrote: > On 2/10/2011 11:52 AM, Ethan Furman wrote: > > Jason Swails wrote: >> > > > How is "while n != 0:" any worse? >>> >> > 1. It is redundant, just like 'if bool_value is not False:'

Sending email via proxy

2011-02-13 Thread Jason Sergeant
Hello, Is chilkat the best option for doing this?(Sending email via proxy) Kind Regards, Jason Sergeant This email has been processed by SmoothZap - www.smoothwall.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on OSX

2011-02-21 Thread Jason Swails
ommand. It's quite useful for testing compatibility of scripts that use "#!/usr/bin/env python" as the shebang line. I haven't tried Fink, but the MacPorts approach works well for me. Good luck! Jason > > Cheers, > Chris > -- > http://mail.python.org/mail

pythonrag

2010-04-05 Thread Jason Friedman
I saw this posted in the July issue but did not see any follow-up there: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> a = 500 >>> b = 500 >>> a == b True >>> a is b False >>> p = 50 >>> q

Re: Python date time API

2010-04-26 Thread Jason Scheirer
On Apr 26, 8:21 am, rk wrote: > Hi, > >  I am python novice, trying to convert a boost::gregorian::date out to > python using PyDateTime C-api interface. I was coring because the C- > API failed to initialize. The error was: > > AttributeError: "module" object has not attribute datetime_CAPI > > A

Re: Parser

2010-05-02 Thread Jason Scheirer
On May 2, 12:54 pm, Andreas Löscher wrote: > Hi, > I am looking for an easy to use parser. I am want to get an overview > over parsing and want to try to get some information out of a C-Header > file. Which parser would you recommend? > > Best, > Andreas Pyparsing: http://pyparsing.wikispaces.com

Data store solution need help

2010-05-14 Thread Haulyn Jason
No. 1 Shunhua Rd High-Tech Development Zone Jinan, China 250101 Website: http://www.haulynjason.net/haulyn Mobile: +86 15854103759 Haulyn Jason -- http://mail.python.org/mailman/listinfo/python-list

Re: where are the program that are written in python?

2010-05-21 Thread Jason Scheirer
On May 21, 3:21 am, Deep_Feelings wrote: > python is not a new programming language ,it has been there for the > last 15+ years or so ? right ? > > however by having a look at this pagehttp://wiki.python.org/moin/Applications > i could not see many programs written in python (i will be intere

Re: Python vs. Fedora and CentOS

2010-05-31 Thread Jason D
packed into the system and uses python. e.g. GUI based tools, system scripts etc. There is however never been an issue to locate different version of python in your system as you deem fit without problems. So I dont understand why your concern. regards Jason posted

Re: assign class variable in __init__

2010-06-08 Thread Jason Scheirer
On Jun 8, 9:37 am, Peter Otten <__pete...@web.de> wrote: > Ross Williamson wrote: > > Hi Everyone, > > > Just a quick question - Is it possible to assign class variables in > > the __init__() - i.e. somthing like: > > > def __init__(self,self.source = "test", self.length = 1) > > > rather than > >

CFP for Surge Scalability Conference 2010

2010-06-14 Thread Jason Dixon
n Surge is just what you've been waiting for. For more information, including CFP, sponsorship of the event, or participating as an exhibitor, please contact us at su...@omniti.com. Thanks, -- Jason Dixon OmniTI Computer Consulting, Inc. jdi...@omniti.com 443.325.1357 x.241 -- http://mai

CFP for Surge Scalability Conference 2010

2010-07-02 Thread Jason Dixon
icipating as an exhibitor, please visit the Surge website or contact us at su...@omniti.com. Thanks, -- Jason Dixon OmniTI Computer Consulting, Inc. jdi...@omniti.com 443.325.1357 x.241 -- http://mail.python.org/mailman/listinfo/python-list

Last day to submit your Surge 2010 CFP!

2010-07-09 Thread Jason Dixon
your business sponsor/exhibit at Surge 2010, please contact us at su...@omniti.com. Thanks! -- Jason Dixon OmniTI Computer Consulting, Inc. jdi...@omniti.com 443.325.1357 x.241 -- http://mail.python.org/mailman/listinfo/python-list

rstrip()

2010-07-16 Thread Jason Friedman
$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> "x.vsd-dir".rstrip("-dir") 'x.vs' I expected 'x.vsd' as a return value. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to redirect every urel request to test.py script with the visitors page request as url parameter.

2010-07-20 Thread Jason Friedman
2010/7/20 Νίκος : > Hello guys! This is my first post in this group! I do not have an answer to your question, other than to suggest you look at (and/or post) relevant lines from Apache's access.log and error.log. I write mostly to say that, in my experience, folks on this list are very helpful,

Re: Microsoft lessening commitment to IronPython and IronRuby

2010-08-11 Thread Jason Earl
hich is better than what Python can say. If you happen to be believe that Microsoft is likely to attack Free Software via patents then Mono is arguably the safest choice. Especially if you confine yourself to the ECMA-sponsored core and the Free Software libraries that are not re-implementations of Microsoft's technology. Jason -- http://mail.python.org/mailman/listinfo/python-list

Re: generator expression works in shell, NameError in script

2009-06-17 Thread Jason Tackaberry
On Wed, 2009-06-17 at 15:38 -0700, Chris Rebert wrote: > See what Emile said, but here's a nicer way to code it, IMHO: > > titles = ['Dr', 'Miss', 'Mr', 'Mrs', 'Ms'] > title_choices = zip(range(len(titles)+1), ['']+titles) > > zip() to the rescue! How about: enumerate([''] + titles) -- htt

IDLE comments

2009-06-19 Thread Jason Gervich
Why does IDLE use two hash marks for comments (##)? Most other editors (Geany, SPE) use a single hash mark (#) to designate comments. How does one change IDLE to use just a single (#) hash mark for comments? Thanks, Jason Gervich Santa Cruz, CA -- http://mail.python.org/mailman/listinfo/python

Re: IDLE comments

2009-06-19 Thread Jason Gervich
ut which Python editor to use, IDLE is seldom mentioned. Perhaps the Curse of the Gnuby lies upon it! Thanks for the quick response. Jason Gervich Santa Cruz, CA On Fri, 2009-06-19 at 20:51 -0700, Chris Rebert wrote: > On Wed, Jun 17, 2009 at 11:23 PM, Jason Gervich wrote: > > Wh

Re: No trees in the stdlib?

2009-06-26 Thread Jason Scheirer
On Jun 25, 10:32 pm, a...@pythoncraft.com (Aahz) wrote: > In article , > Tom Reed   wrote: > > > > >Why no trees in the standard library, if not as a built in? I searched > >the archive but couldn't find a relevant discussion. Seems like a > >glaring omission considering the batteries included phil

Re: Distinguishing active generators from exhausted ones

2009-07-25 Thread Jason Tackaberry
raised StopIteration), it seems that gen.gi_frame will be None. Cheers, Jason. -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing an array

2009-07-29 Thread Jason Tackaberry
,2,3] >>> l2 = l1 >>> l1 = [] >>> print l2 [1, 2, 3] So the original list 'l1' lives on. However: >>> l1 = [1,2,3] >>> l2 = l1 >>> del l1[:] >>> print l1, l2 [] [] Cheers, Jason. -- http://mail.python.org/mailman/listinfo/python-list

Re: intricated functions: how to share a variable

2009-08-05 Thread Jason Tackaberry
de a closure, I prefer this idiom: def foo(): def bar(): print bar.a bar.a = 4 print bar.a bar.a = 2 bar() Python 3's nonlocal is obviously much more elegant. Cheers, Jason. -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode() vs. s.decode()

2009-08-05 Thread Jason Tackaberry
ot;)') 1.698289155960083 >>> timeit.timeit('unicode("foobarbaz", "utf-8")') 0.53305888175964355 So indeed, uncode(s, 'utf-8') is faster by a fair margin. On the other hand, unless you need to do this in a tight loop several

Re: unicode() vs. s.decode()

2009-08-06 Thread Jason Tackaberry
try for common encodings (which includes 'utf-8' specifically), whereas s.decode('utf-8') necessarily consults the codec registry. Cheers, Jason. -- http://mail.python.org/mailman/listinfo/python-list

Re: A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode

2009-08-17 Thread Jason Earl
ainly disagree with the need to use profanity on your usenet post on the subject, but it is hard to argue against your whitespace-mode.html page. Very well done. Thanks, Jason -- http://mail.python.org/mailman/listinfo/python-list

Non-deprecated equivalent of rfc822.AddressList

2009-09-16 Thread Jason Tackaberry
But that's obviously not a documented, public interface. Amusingly, even in 3.1, the code for AddrlistClass says: Note: this class interface is deprecated and may be removed in the future. Use rfc822.AddressList instead. Is there some non-deprecated method I can use to parse an RFC 2822 address list? Thanks, Jason. -- http://mail.python.org/mailman/listinfo/python-list

Re: Non-deprecated equivalent of rfc822.AddressList

2009-09-21 Thread Jason Tackaberry
On Wed, 2009-09-16 at 14:49 -0400, Jason Tackaberry wrote: > Since the rfc822 module was removed in Python 3, and is deprecated in > 2.3, I am obviously trying to avoid using it. > > But I'm having a hard time finding an equivalent to rfc822.AddressList > in the email module,

Re: Most "active" coroutine library project?

2009-09-23 Thread Jason Tackaberry
ome_network_stuff() kaa.main.run() Of course, it does require a "coroutine scheduler" be implemented, which, in kaa, is taken care of by the main loop. Cheers, Jason. [1] The curious can visit http://doc.freevo.org/api/kaa/base/ and http://freevo.org/kaa/ although a 1.0 hasn't yet been released and the docs are still rather sketchy. -- http://mail.python.org/mailman/listinfo/python-list

Re: Most "active" coroutine library project?

2009-09-23 Thread Jason Tackaberry
rse the coroutine implementation supports preemption. Cheers, Jason. -- http://mail.python.org/mailman/listinfo/python-list

Re: Most "active" coroutine library project?

2009-09-23 Thread Jason Tackaberry
-defined points of reentry. But I don't believe it's a necessary condition that coroutines allow arbitrary (in the non-deterministic sense) reentry points, only multiple. Cheers, Jason. -- http://mail.python.org/mailman/listinfo/python-list

Surge 2010 Early Registration ends Tuesday!

2010-08-30 Thread Jason Dixon
t and guarantee your seat to this year's event! -- Jason Dixon OmniTI Computer Consulting, Inc. jdi...@omniti.com 443.325.1357 x.241 -- http://mail.python.org/mailman/listinfo/python-list

Re: (Webinar) Connecting the Dots: US SEC, ABS Mandates, Financial Modeling and Python

2010-09-07 Thread Jason Galyon
Will this webcast/webinar perform on Linux? Jason On Tue, 2010-09-07 at 14:08 -0700, Kendra Penrose wrote: > Connecting the Dots: US SEC, ABS Mandates, Financial Modeling and Python > > Date: Wednesday September 22, 2010python-announce-l...@python.org, > Time: 10:00am PST/1:00pm ES

Re: Hide DOS console for .pyc file

2010-09-10 Thread Jason Earl
#x27;t really use Windows any more, so I might be off the mark, but I think that you need to look into using pythonw.exe instead of python.exe. Solving your problem might be as easy as changing the name of your file from foo.py to foo.pyw. Jason -- http://mail.python.org/mailman/listinfo/python-list

classes and dictionaries

2010-09-15 Thread Jason Swails
If anyone can tell me why the dictionary from 2 different objects are exactly the same for pointers, but are different for, e.g. parm_data and formats, that would be greatly appreciated. Thanks! Jason -- Jason M. Swails Quantum Theory Project, University of Florida Ph.D. Graduate Student 352-3

Re: Very stupid question about a % symbol

2010-09-16 Thread Jason Swails
ves backwards compatibility to pythons older than 2.6. Before I found out how to cancel the %, the statement looked like ("%"+"%s" % format) % number. Not much of a change, but still a nice thing to know since I play with %s a lot. Thanks! (even though I'm not the original

Re: File read from stdin and printed to temp file are not identicial?

2010-09-16 Thread Jason Swails
ne > %d:\nfile(%d):\"%s\"\narray(%d):\"%s\"" % > (i+1, len(line), line, len(data[i]), data[i]) >i += 1 >sys.exit() > > #- > > I feel that I must be doing something very stupid, but I don't really > know what. > > Any i

Re: compile Py2.6 on SL

2010-09-17 Thread Jason Swails
> -- > Michel Claveau > -- > http://mail.python.org/mailman/listinfo/python-list > -- Jason M. Swails Quantum Theory Project, University of Florida Ph.D. Graduate Student 352-392-4032 -- http://mail.python.org/mailman/listinfo/python-list

Re: Plz comment on this code

2010-09-18 Thread Jason Swails
s=[zero,one,zero,one,zero,one,zero,one,zero,one] > > inputted_digit=sys.argv[1] > column_max=len(inputted_digit) > row_max=3 > > r=0 > while r<3: > line="" > c=0 > while c digit_i=int(inputted_digit[c]) > digit=digits[digit_i] > line+=digi

Subprocess does not return for longer-running process

2010-09-21 Thread Jason Friedman
Hello, The Popen call does not return if the underlying OS call runs longish, as the example below shows. Although, if the underlying OS call is merely "sleep N" it will return even after quite a long time. wikiu...@dvprwiki1:~> python --version Python 2.6.4 wikiu...@dvprwiki1:~> time /opt/confl

Re: help!!!

2010-10-05 Thread Jason Swails
new to python. I just wanna learn it > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- Jason M. Swails Quantum Theory Project, University of Florida Ph.D. Graduate Student 352-392-4032 -- http://mail.python.org/mailman/listinfo/python-list

Re: mantissa and exponent in base 10

2010-10-07 Thread Jason Swails
the program, so that didn't add to the time of the math-execution. Good luck! Jason => (1.2345, 7) > > (0.12345, 8) would also be acceptable. > > > The math module has a frexp() function, but it produces a base-2 exponent: > > >>> math.frexp(1.2345e7) &g

Re: mantissa and exponent in base 10

2010-10-07 Thread Jason Swails
; me(12345) > (0.12351, 5.0) > >>> me(1.2345e-9) > (0.12351, -8.0) > >>> me(1.2345e-9, 2) > (0.12, -8.0) > > Best regards, > Chris Smith > -- > http://mail.python.org/mailman/listinfo/python-list > -- Jason M. Swails Quantum Theory Project, University of Florida Ph.D. Graduate Student 352-392-4032 -- http://mail.python.org/mailman/listinfo/python-list

Re: open file on mac

2010-10-08 Thread Jason Swails
I import the module and execute > simpleModule.Starter().init(48) > If you had renamed the function __init__ above, all you would have to do is: instance_of_starter = Starter(48) Which makes more sense IMO. Good luck! Jason > > on mac I get an error if i do not give the full pat

Re: open file on mac

2010-10-08 Thread Jason Swails
On Fri, Oct 8, 2010 at 3:39 PM, Jason Swails wrote: > > > On Fri, Oct 8, 2010 at 10:16 AM, tinauser wrote: > >> hi, sorry if it is a stupid qustio,but i cannot figure out where's the >> problem. >> i've a simpleModule: >> class Starter: >&g

Re: help!!!

2010-10-11 Thread Jason Swails
On Mon, Oct 11, 2010 at 9:25 AM, Andreas Waldenburger wrote: > On Mon, 11 Oct 2010 23:51:46 +1300 Lawrence D'Oliveiro > wrote: > > > In message , > > Emile van Sebille wrote: > > > > > Oh come now -- isn't being lazy a primary programmer's attribute? > > > > I wonder if that’s why more men are g

Re: help!!!

2010-10-11 Thread Jason Swails
On Mon, Oct 11, 2010 at 11:11 AM, Robert Kern wrote: > On 10/11/10 8:44 AM, Jason Swails wrote: > >> >> >> On Mon, Oct 11, 2010 at 9:25 AM, Andreas Waldenburger >> >> wrote: >> >>On Mon, 11 Oct 2010 23:51:46 +1300 Lawrence D'Oliveiro >

Re: help!!!

2010-10-11 Thread Jason Swails
On Mon, Oct 11, 2010 at 3:05 PM, Robert Kern wrote: > On 10/11/10 11:44 AM, Jason Swails wrote: > >> >> >> On Mon, Oct 11, 2010 at 11:11 AM, Robert Kern > <mailto:robert.k...@gmail.com>> wrote: >> >>On 10/11/10 8:44 AM, Jason Swails wrote: &g

Re: Compiling as 32bit on MacOSX

2010-10-12 Thread Jason Swails
Try setting the compiler itself as "gcc -m32" -- Jason Swails Quantum Theory Project, University of Florida Ph.D. Graduate Student 352-392-4032 On Oct 12, 2010, at 8:29 PM, Gregory Ewing wrote: > I'm getting my Python environment set up on a new > Snow Leopard machine, an

Re: how to add patch

2010-10-13 Thread Jason Swails
n the patch file itself, then this will be automatic. Otherwise, you'll need to specify the file you want to patch. You can see the man page for more details and options. Good luck! Jason > thanks > jim > -- > http://mail.python.org/mailman/listinfo/python-list > -- Jason M

Re: Man pages and info pages

2010-11-03 Thread Jason Earl
a bit strange. The printed > python docs come to several thousand pages. Do we want them to be 1 > manpage? a hundred? a thousand? I am pretty conversant with the Python documentation. I almost never need to search them. I do miss being able to read (and search) the documentation in

Re: Online Python Editor with Live Syntax Checking

2017-03-05 Thread Jason Friedman
> > I made a tool called PythonBuddy (http://pythonbuddy.com/). > > I made this so that MOOCs like edX or codecademy could easily embed and > use this on their courses so students wouldn't have to go through the > frustrations of setting up a Python environment and jump right into Python > programm

Re: Python Command Line Arguments

2017-04-12 Thread Jason Friedman
> > I have this code which I got from https://www.tutorialspoint. > com/python/python_command_line_arguments.htm The example works fine but > when I modify it to what I need, it only half works. The problem is the > try/except. If you don't specify an input/output, they are blank at the end > but i

Re: Moderating the list [was: Python and the need for speed]

2017-04-12 Thread Jason Friedman
> > However, it's simply a technical fact: the thing which we moderate is the >> mailing list. We can control which posts make it through from the newsgroup >> by blocking them at the gateway. But the posts will continue to appear on >> comp.lang.python which is, as the description says, unmoderate

Re: homework confusion

2017-04-12 Thread Jason Friedman
> > The example command is: Lockable("diary", "under Sam's bed", tiny_key, > True) > > And I keep getting a NameError: tiny_key is not defined. > > What do I do? > Without knowing what your professor intends this is a guess: define tiny_key. For example tiny_key = "some string" thing = Lockable

Re: TIC TAE TOE's problem(i am beginner)

2017-04-15 Thread Jason Friedman
> > P=input("X/O:") > if P=="X": > my_func1() > else: > my_func2() > > > > why cant function to print X or O win... > As a beginner I'd try to code using Python idioms rather than writing Python using BASIC idioms. Try to understand how this code works: https://codereview.stackexchange.com

Not understanding itertools.dropwhile()

2017-04-29 Thread Jason Friedman
< start code > import itertools data = """Line1 Line2 Line4 Line5""" def test_to_start(s): return "2" in s for line in itertools.dropwhile(test_to_start, data.splitlines()): print(line) < end code > I expect: $ python3 dropwhile.py Line2 Line4 Line5 I get: $ pyth

__getattribute__'s error is not available in __getattr__

2017-05-02 Thread Jason Maldonis
letely discarded. So basically I want access to the intermediate AttributeError that caused __getattr__ to be raised in the first place. This is complicated, and I may have explained something poorly. If so, please don't hesitate to ask for more explanation or examples. This is already long, so I'll stop typing now. Thanks, Jason -- https://mail.python.org/mailman/listinfo/python-list

Re: __getattribute__'s error is not available in __getattr__

2017-05-02 Thread Jason Maldonis
-- I.e. if you just remove @property from the first example, it returns the full error stack exactly like we'd expect. That means the @property is changing the call order (?) in some way that I don't understand. Thanks! Jason On Tue, May 2, 2017 at 7:11 PM, Ethan Furman wrote: > On 0

Re: __getattribute__'s error is not available in __getattr__

2017-05-04 Thread Jason Maldonis
Thank you Ethan and Chris for the tips. I may be able to adapt that decorator for my use cases -- I hadn't thought of using something like that. Ethan, I'll drop a note over at Python Ideas too with some details about this. Thanks for your help, Jason On Tue, May 2, 2017 at 9:47

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2017-05-12 Thread Jason Friedman
> > menu_list = ["O -open account"] > menu_list =["l - load details"] > menu_list =["D- display details"] > menu_list =["A - Make deposit"] > menu_list =["W- Make withdraw",] > menu_list =["S - save"] > menu_list =["Q - quit"] > > command = input("command:") > if command.upper() == "O": > open_() >

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2017-05-12 Thread Jason Friedman
> > >> The first section does not do what I think you want: a list with 7 > options. It makes a list with one option, then overwrites it with a new > list with one option, and so on. You want something like: > menu_list = [ > "O - open account" > "L - load details" > "D - display det

Re: No module named vtkCommonCorePython

2017-05-20 Thread Jason Friedman
> > I have a problem to finding file in Python path,Anybody knows how to solve > it? > > Unexpected error: > Traceback (most recent call last): > File > "/home/nurzat/Documents/vmtk-build/Install/bin/vmtklevelsetsegmentation", > line 20, in > from vmtk import pypeserver > File "/usr/loca

Re: Nested Loop Triangle

2017-05-25 Thread Jason Friedman
> > I need the triangle to be in reverse. The assignment requires a nested > loop to generate a triangle with the user input of how many lines. > > Currently, I get answers such as: (A) > > OOO > OO > O > > When I actually need it to be like this: (B) > > OOO >OO > O > Try the

Re: Bloody rubbish

2021-05-08 Thread Jason C. McDonald
on turns out to >> be something other than python? > > And it's bizarre that the OP, since he despises Python so much, and > finds its syntax absurd, would even bother to make any sort of > implementation of it. > -- Jason C. McDonald (CodeMouse92) Author | Speaker | Hacker | Time Lord -- https://mail.python.org/mailman/listinfo/python-list

Re: for the installation of pycharm

2021-05-08 Thread Jason C. McDonald
t; > > > >Sent from [1]Mail for Windows 10 > > > > References > >Visible links > 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- Jason C. McDonald (CodeMouse92) Author | Speaker | Hacker | Time Lord -- https://mail.python.org/mailman/listinfo/python-list

Re: Bloody rubbish

2021-05-08 Thread Jason C. McDonald
s open > source on github. > > Claim #2, "he invented smartphones": > > Yes, he did (as part of a team) create the first smartphone, > the Ericsson R380: > > https://en.wikipedia.org/wiki/Ericsson_R380 > > /Toaster -- Jason C. McDonald (CodeMouse92) Author | Speaker | Hacker | Time Lord -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-08 Thread Jason C. McDonald
SS > person is ever called for any possibly disrespecting words or > behavior. A fluffy cloud echo chamber where everybody just accepts > and respects you for what you are. Does the concept sound familiar? > > > P.S.: *NOT* among the core symptoms of (the high-functioning levels) > of ASS is the inability to learn. Mind that! (And that includes > social norms.) -- Jason C. McDonald (CodeMouse92) Author | Speaker | Hacker | Time Lord -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-09 Thread Jason C. McDonald
e the aforementioned on further inspection. (But I don't know all cases either.) > I do agree asking people to simply not be stupid doesn't seem to work > these days for whatever reason. I hadn't noticed. ;) -- Jason C. McDonald (CodeMouse92) Author | Speaker | Hacker | Time Lord -- https://mail.python.org/mailman/listinfo/python-list

Standarize TOML?

2021-05-16 Thread Jason C. McDonald
eason not to adopt pyproject.toml...and the topic thus became weirdly political. I understand that Brett Cannon intends to bring this up at the next language summit, but, ah, might as well put the community two-cents in now, hey? I, for one, feel like this is obvious. -- Jason C. McDonald (CodeMo

Need help with coding a function in Python

2016-10-31 Thread devers . meetthebadger . jason
http://imgur.com/a/rfGhK#iVLQKSW How do I code a function that returns a list of the first n elements of the sequence defined in the link? I have no idea! So far this is my best shot at it (the problem with it is that the n that i'm subtracting or adding in the if/else part does not represe

Re: I was really uncomfort with any programming...

2020-06-06 Thread Jason C. McDonald
well, but that doesn't mean they'll necessarily enjoy it. I'm actually rather curious why you *need* to become "efficient" (proficient?) in Python? Work requirement? By the way, you should put your message the the BODY of the email, not in the subject line. Keep subject lin

Re: new feature in Python.

2020-09-30 Thread Jason C. McDonald
ators and abuse them thusly, that's a consenting adults situation. Introducing this new syntax into the language creates a trip hazard for the user. Third, that proposed operator, .=  oww that's hard to see. It looks like a typo, and could easily be typed as one, or overlooked altogether (ag

sys.stdin and idle bug?

2005-01-20 Thread Jason B Burke
d typing sys.stdin.fileno() returns an AttributeError: fileno. Is this a bug in idle, or is this normal? If it's normal is there a work around for it? Thanks for any replies and references to more info on this issue. Sincerely, Jason Burke-- http://mail.python.org/mailman/listinfo/python-list

Brief Code Review Please - Learning Python

2015-12-06 Thread Jason Alan Smith
me text\na new line", 23 "Segoe UI", 24 40, 25 "True")) Any and all feedback is much appreciated. As I said, I'm just beginning to learn Python and want to start off with a solid foundation. Thank you to everyone in advance for your time and thoughts. Jason -- https://mail.python.org/mailman/listinfo/python-list

Brief Code Review Please - Learning Python

2015-12-06 Thread Jason Alan Smith
me text\na new line", 23 "Segoe UI", 24 40, 25 "True")) Any and all feedback is much appreciated. As I said, I'm just beginning to learn Python and want to start off with a solid foundation. Thank you to everyone in advance for your time and thoughts. Jason -- https://mail.python.org/mailman/listinfo/python-list

Re: pip won't ignore system-installed files

2013-10-22 Thread jason . gors . work
if you use a newer version of pip i think this should work. On Tuesday, October 22, 2013 9:11:40 AM UTC-4, Neal Becker wrote: > IIUC, it is perfectly legitimate to do install into --user to override system- > > wide installed modules. Thus, I should be able to do: > > > > pip install --user

Re: Moving to Python 3.x

2015-05-09 Thread Jason C. McDonald
code to run on both Py2 and Py3. NINJA-IDE (an open source Python IDE) will lint your code so it'll run in both. -- Jason C. McDonald (CodeMouse92) [CEO, Lead Dev @ MousePaw Games] -- https://mail.python.org/mailman/listinfo/python-list

Re: rsync module?

2007-06-23 Thread Jason F. McBrayer
You could pull those in to your project. -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one | | is the greatest of all conquerors. --- The Dhammapad

How to save initial configuration? (program installation)

2007-06-25 Thread Jason Zapman II
, re-write that line with the new value, quit). Is there a better way to do this? There almost has to be... If not, are there some 'best practices' on how to do the self- modification? Thanks for any help; Jason -- http://mail.python.org/mailman/listinfo/python-list

Re: How to save initial configuration? (program installation)

2007-06-25 Thread Jason Zapman II
On Jun 25, 11:10 am, [EMAIL PROTECTED] wrote: > I would think you could pop-up some dialog when the program is first > run to ask where they want the file to be. On the first run though, > you can just have the config file located in the current working > directory with the script file itself. Then

Re: How to save initial configuration? (program installation)

2007-06-25 Thread Jason Zapman II
a python package (it's a standalone program). --Jason -- http://mail.python.org/mailman/listinfo/python-list

Re: How to save initial configuration? (program installation)

2007-06-25 Thread Jason Zapman II
On Jun 25, 12:14 pm, [EMAIL PROTECTED] wrote: > > usersChosenPath = /usr/Path/to/Config > > > Kind of redundant, but I would think it would still work. Ok... How do I tell the program where the INI file lives? (What I want is to be able to ask the user Where do you want the datafile to live?

Re: Hide the python-script from user

2007-04-08 Thread Jason F. McBrayer
Basically, this doesn't work for the same reason that DRM doesn't work. -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one | | is the greatest of all

Freetype bindings, finally?

2007-09-19 Thread Jason Yamada-Hanff
whole other level of complexity here. Thanks, Jason p.s. There is a sad message on Freetype's website about this ("Unfortunately, no mature Python bindings for FreeType 2 are available currently..."), right above its notes about all the other languages that do have bindin

Re: An Editor that Skips to the End of a Def

2007-09-25 Thread Jason M Barnes
't use backspace, you have to use "X". What does > backspace do when not in insert mode? It just moves you through the text. > What does the forward-delete key do? In both modes, it actually deletes > text! Actually, vim always deletes the same way regardless of when it was inserted -- one of the many *improvements* over vi. That's my religion anyway ;-), but I thought this was a python mailing list ;-) Jason > > At least with Emacs, text is text--it doesn't matter when it was inserted, > it still behaves the same way. > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

2007-09-26 Thread Jason M Barnes
On 9/26/07, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-09-26, Jason M Barnes <[EMAIL PROTECTED]> wrote: > > Off the top of my head, I can think of a few vim commands that > > have come in handy. I can search through a webpage in Firefox > > by using the sam

Re: Bug with lists of pairs of lists and append()

2007-09-28 Thread Jason M Barnes
which in turn holds a pointer to l and r, so when you change l or r, x (and s indirectly) is still pointing to the same lists which by the end of your loop have changed to r=[] and l=[0,1,2]. BTW: It's not really "misbehaving." It's doing exactly what you're telling it to do ;-) Jason -- http://mail.python.org/mailman/listinfo/python-list

Re: A way of checking if a string contains a number

2007-12-12 Thread jason . s . trowbridge
thing" or, even more simply: if regularExpressionCheck: print "Something" I recommend that you peruse a Python tutorial or two. These are fairly basic attributes of the Python language. If you're using regular expressions, you'll want to be aware of how to make raw strings to help you out. --Jason -- http://mail.python.org/mailman/listinfo/python-list

Re: What text editor is everyone using for Python

2009-05-28 Thread Jason S. Friedman
I use Eclipse (www.eclipse.org) with the PyDev plugin (pydev.sourceforge.net). -- http://mail.python.org/mailman/listinfo/python-list

Wording suggestion for documentation (Data Model)

2008-06-12 Thread Jason R. Coombs
thing like: deleting <__main__.X object at 0x01BB1A50> caught exception, np made it past the exception x has been deleted, now what? """ # - Jason R. Coombs -- http://mail.python.org/mailman/listinfo/python-list

namedtuple suggestions

2008-06-13 Thread Jason R. Coombs
'm willing to take up the latter effort if there's agreement this could be included in the release. Regards, Jason R. Coombs -- http://mail.python.org/mailman/listinfo/python-list

RE: namedtuple suggestions

2008-06-13 Thread Jason R. Coombs
(see lib/urlparse for a prime example of extending the namedtuple class). Regards, Jason -Original Message- From: Calvin Spealman [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June, 2008 12:17 To: Jason R. Coombs Cc: python-list@python.org Subject: Re: namedtuple suggestions On Jun 13, 2008

Relative versus absolute paths on Windows

2009-11-20 Thread Jason R. Coombs
The current implementation of Python (2.6.4, 3.1.1) treats \bar as a relative path but reports it as an absolute path. >>> ntpath.isabs('\\bar') True >>> ntpath.abspath('\\bar') 'C:\\bar' >>> os.chdir('d:\\') >>> ntpath.abspath('\\bar') 'd:\\bar' >>> os.chdir('server\\share') >>> ntpath.abspat

Re: Relative versus absolute paths on Windows

2009-11-23 Thread Jason R. Coombs
On Nov 20, 3:52 pm, Ethan Furman wrote: > It is often said on this list that 'Python is not Java'.  It is also > true that 'Windows is not Unix'. > > Unlike the *nix world where there is a *single* root, and everything > else is relative to that, in the Windows world there are several roots > -- e

language analysis to enforce code standards

2009-07-09 Thread Jason S. Friedman
Hello, I administer the Informatica ETL tool at my company. Part of that role involves creating and enforcing standards. I want the Informatica developers to add comments to certain key objects and I want to be able to verify (in an automated fashion) that they have done so. I cannot merely

How do I use PyGTK to put text besides clickable buttons?

2012-04-02 Thread Jason Hsu, Mr. Swift Linux
I've decided to use PyGTK instead of gtkdialog for providing configuration menus/dialog boxes in Swift Linux, the Linux distro I started. The problem with gtkdialog is that the i386 version is no longer available in the Debian repository. Since a picture is worth a thousand words, I'll give you a

Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread Jason Qian via Python-list
object): def init(self): self.obj = lib.loadInstance() def create_services(self,servicename): result=lib.createService(self.obj,servicename) return result driver=myDriver() driver.create_services(b"myExample") Thanks for the help Jason -- https://mail.python.org/mailman/listinfo/python-list

Re: Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread Jason Qian via Python-list
Thanks you very much, fixed the problem :) On Mon, Jan 22, 2018 at 4:28 PM, Random832 wrote: > On Mon, Jan 22, 2018, at 16:00, Jason Qian via Python-list wrote: > > Hello! > > > > I am using ctypes on Windows to interface with a dll and it works fine > > on Linu

<    5   6   7   8   9   10   11   >