Script stops running with no error

2024-08-28 Thread Daniel via Python-list
er += 1 sub_counter = 'a' cleaned_line = clean_definition(line) definition.append(f"{main_counter}. {cleaned_line}") elif line.startswith('##'): cleaned_line = clean_definition(line) definition.append(f"   {sub_counter}. {cleaned_line}") sub_counter = chr(ord(sub_counter) + 1) if definition: print(f"\n{word_type.capitalize()}\n") print("\n".join(definition)) break else: print("try again beotch") Thanks, Daniel -- https://mail.python.org/mailman/listinfo/python-list

Re: new here

2024-08-28 Thread Daniel via Python-list
rsing the JSON reply would be almost > identical to the desktop code. Conversely I could use the Pico W as a web > server to make its sensor reading available. That is so cool. I've had the same idea to use the API with AWS for my bbs. I also want to do the same thing for other government sites like ecfr for pulling aviation regulations. Is your code somewhere I can look at it? Daniel -- https://mail.python.org/mailman/listinfo/python-list

Re: new here

2024-08-22 Thread Daniel via Python-list
Jason Friedman writes: > On Wed, Aug 21, 2024 at 4:04 PM Daniel via Python-list < > python-list@python.org> wrote: > >> >> An example of use, here's a weather service tied to a finger. Put your >> city name as the user. This isn't mine, but it is insp

Re: new here

2024-08-22 Thread Daniel via Python-list
rbowman writes: > On Wed, 21 Aug 2024 22:15:37 +0100, Daniel wrote: > >> Lesser used protocols not known by many in the mainstream. Such as: >> >> gopher, gemini, finger, spartan, titan, etc. >> >> An example of use, here's a weather service tied to a

Re: new here

2024-08-21 Thread Daniel via Python-list
rbowman writes: > On Tue, 20 Aug 2024 23:26:39 +0100, Daniel wrote: > >> New here. I've perused some posts and haven't seen a posting FAQ for >> this NG. I'm learning python right now to realize some hobby goals I >> have regarding some smolnet services.

Re: new here

2024-08-21 Thread Daniel via Python-list
dn writes: > On 21/08/24 10:26, Daniel via Python-list wrote: >> Hi folks - >> New here. I've perused some posts and haven't seen a posting FAQ for >> this NG. I'm learning python right now to realize some hobby goals I >> have regarding some smol

new here

2024-08-20 Thread Daniel via Python-list
if it's over a certain number of lines? I know this isn't IRC - just asking. Daniel -- https://mail.python.org/mailman/listinfo/python-list

Re: python for irc client

2024-07-04 Thread Daniel via Python-list
inhahe writes: > On Thu, Jul 4, 2024 at 5:14 AM Daniel via Python-list < > python-list@python.org> wrote: > >> Hi guys - >> >> I have historical experience developing sofwtare for my own use. It has >> been >> quite a while since doing so and the a

python for irc client

2024-07-04 Thread Daniel via Python-list
be to minimize the memory footprint of the application. I don't use standard desktop computers anymore - I'm writing this on my beloved pi400 using emacs. Thanks Daniel -- https://mail.python.org/mailman/listinfo/python-list

complaint

2023-05-30 Thread Daniel Ifechukwude Dibie
i tried to uninstall the python 3.11.3 program from my machine so that i can re-install it is showing successful but it is ligerning on the program and features -- https://mail.python.org/mailman/listinfo/python-list

回复: UTF-8 and latin1

2022-08-19 Thread Daniel Lee
Thanks! 发件人: Stefan Ram 发送时间: 2022年8月19日 6:23 收件人: python-list@python.org 主题: Re: UTF-8 and latin1 Tobiah writes: > When a person enters >Montréal, Quebéc into a form field, what are they >doing on the ke

回复: Problem using cx_Freeze

2022-08-19 Thread Daniel Lee
Thank you! 发件人: subin 发送时间: 2022年8月19日 8:02 收件人: python-list@python.org 主题: Re: Problem using cx_Freeze Hope you had a good time. On Wed, Aug 17, 2022 at 10:19 PM Peter J. Holzer wrote: > On 2022-08-17 12:09:14 -0600, David at Booom

回复: setup.py + cython == chicken and the egg problem

2022-08-19 Thread Daniel Lee
Thank you! 从 Windows 版邮件发送 发件人: Dan Stromberg 发送时间: 2022年8月19日 8:35 收件人: Python List 主题: Re: setup.py + cython == chicken and the egg problem On Tue, Aug 16, 2022 at 2:03 PM Dan Stromberg

回复: Problem using cx_Freeze > auto-py-to-exe

2022-08-19 Thread Daniel Lee
Thank you so much, I really appreciate it. 发件人: Chris Angelico 发送时间: 2022年8月19日 8:39 收件人: python-list@python.org 主题: Re: Problem using cx_Freeze > auto-py-to-exe On Fri, 19 Aug 2022 at 10:07, Grant Edwards wrote: > > On 2022-08-18, Chris An

Tkinter not working

2022-08-01 Thread Daniel Lee
Hello, I my code with tkinter was working before, and now, it has many errors in it. I’m not sure what has happened. The results after running are below: "D:\Python Projects\tes\venv\Scripts\python.exe" "D:/Python Projects/tes/main.py" Traceback (most recent call last): File "D:\Python Project

doubt About import machine

2021-11-21 Thread Daniel Eduardo Almeida Correa
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. -- https://mail.python.org/mailman/listinfo/python-list

Re: Ann: New Python curses book

2021-04-11 Thread Daniel Nelson
On Tue, Mar 30, 2021 at 12:12:19PM +0100, Alan Gauld via Python-list wrote: > I've just published, in Kindle and paperback formats, > my book on "Programming curses with Python". > > https://www.amazon.co.uk/dp/B091B85B77/ > > (It should be available in most other Amazon stores too) This looks h

Re: Clarification on Immutability please

2020-01-28 Thread Daniel Haude
Am 27.01.2020 15:23 schrieb Chris Angelico: The way execution works in Python, you first evaluate the object, then assign it to the target. The new object HAS to exist before the old one is replaced. There's no such thing as "atomic reassignment" that simultaneously destroys the old object and a

Re: Python3 - How do I import a class from another file

2019-12-11 Thread Daniel Haude
Am 10.12.2019 22:29 schrieb Chris Angelico: And once again, you are maintaining your assumptions despite being very clearly shown that they are wrong. "del instance" does not directly call __del__ any more than "instance = 1" does. You HAVE been shown. Much of the confusion in this thread come

Re: More efficient/elegant branching

2019-12-10 Thread Daniel Haude
Hello Neil, thanks for the detailed answer. Question: are there other people/factors who/which should be regarded as more important than the linter's opinion? Yes. Mine. I was just puzzled at the linter's output (took me a while to figure out what it actually meant), and that got me started

Python 3.8 install

2019-11-07 Thread Daniel
How to install Python 3.8 on top of Python 3.6? -- Este email foi escaneado pelo Avast antivírus. https://www.avast.com/antivirus -- https://mail.python.org/mailman/listinfo/python-list

Print to Paper

2019-10-04 Thread Daniel
How to do a code to print to paper? please post here a "Hello World" code to be printed on paper with an inkjet. Thanks Daniel --- Este email foi escaneado pelo Avast antivírus. https://www.avast.com/antivirus -- https://mail.python.org/mailman/listinfo/python-list

Tkinter Progress Bar

2019-08-22 Thread Daniel
If i have a figure like 13247347347437x23828328382 how to make a progress bar in tkinter that shows the time the pc takes to give the result? --- Este email foi escaneado pelo Avast antivírus. https://www.avast.com/antivirus -- https://mail.python.org/mailman/listinfo/python-list

Fwd: [Python-ideas] Re: PEP: add a `no` keyword as an alias for `not`

2019-08-01 Thread Daniel Okey-Okoro
-- Forwarded message - From: Daniel Okey-Okoro Date: Thu, Aug 1, 2019 at 1:37 PM Subject: Re: [Python-ideas] Re: PEP: add a `no` keyword as an alias for `not` To: Chris Angelico > not a strong enough justification for breaking any code that uses "no" in any other

Fwd: PEP: add a `no` keyword as an alias for `not`

2019-08-01 Thread Daniel Okey-Okoro
-- Forwarded message - From: Daniel Okey-Okoro Date: Thu, Aug 1, 2019 at 1:24 PM Subject: Re: PEP: add a `no` keyword as an alias for `not` To: Calvin Spealman Good point Calvin, But in many cases, when people write

PEP: add a `no` keyword as an alias for `not`

2019-08-01 Thread Daniel Okey-Okoro
st example. This PEP would make the difference between the two usecases explicit. Thoughts? Best Intentions, Daniel Okey-Okoro. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make an application run "online"

2019-04-09 Thread Daniel Tkach
Thanks again for putting me on track. On Tuesday, April 9, 2019 at 3:05:22 PM UTC-3, Chris Angelico wrote: > On Wed, Apr 10, 2019 at 2:46 AM Daniel Tkach wrote: > > What I want to do now is ... I want the Kajabi product be activated for > > that user as soon as he checks out

How to make an application run "online"

2019-04-09 Thread Daniel Tkach
Hello group. I started learning Python about a week ago. I have a few years of experience with other languages, mostly Pascal and C#, and I've always programmed for desktop, so I'm a bit clueless when it comes to web programming. So I was able to pull off my first working app with Python using A

RE: Undocumented issue: Open system call blocks on named pipes (and a feature request)

2018-12-28 Thread Daniel Ojalvo via Python-list
nted issue: Open system call blocks on named pipes (and a feature request) On Fri, Dec 28, 2018 at 1:38 PM Daniel Ojalvo via Python-list wrote: > > Hello, > > I've been working on a python3 project and I came across an issue with the > open system call that, at the ver

Undocumented issue: Open system call blocks on named pipes (and a feature request)

2018-12-27 Thread Daniel Ojalvo via Python-list
Hello, I've been working on a python3 project and I came across an issue with the open system call that, at the very least, isn't documented. In my humble opinion, the documentation should be updated because folks wouldn't expect open to be

hello from a very excited and totally blind python programmer and game player

2018-07-24 Thread Daniel Perry
Hi there everyone, my name is Daniel Perry and I'm a totally blind new Python user. I've only just recently started picking up python and playing with it and I intend on building some unique audio computer games for the blind. Such things mostly as simulation games like farming, bui

Re: Understanding memory location of Python variables

2018-06-18 Thread Daniel Montecillo
I am also wondering about this behavior. Thank you Chris A for providing the explanation. On Jun 16, 2018, at 5:45 PM, Chris Angelico mailto:ros...@gmail.com>> wrote: On Sun, Jun 17, 2018 at 2:38 AM, mailto:ip.b...@gmail.com>> wrote: Hi everyone, I'm intrigued by the output of the following

Valid encodings for a Python source file

2018-06-07 Thread Daniel Glus
ps://github.com/python/cpython/blob/master/Lib/encodings/aliases.py>, or equivalently, the set of filenames in /Lib/encodings/ <https://github.com/python/cpython/blob/master/Lib/encodings/>, but again I'm not sure.) -Daniel -- https://mail.python.org/mailman/listinfo/python-list

Re: error from Popen only when run from cron

2018-04-17 Thread daniel . chmielewski
gt; can debug this further? Larry, I have exactly the same problem. I'd like to run a script and from normal user it works, and from cron doesn't. In sumarry I was googled to find information how to set two or more env. variables and pass them to subprocess.open. I also try to read

reading text in pdf, some working sample code

2017-11-21 Thread Daniel Gross
ncoding of the text included in the PDF when opening the file. Still trying to figure out how to get the encoding info out of the PDF ... (if available there) thank you, Daniel -- https://mail.python.org/mailman/listinfo/python-list

Re: IDLE doesn't recognise installed packages

2017-10-26 Thread Daniel Tangemann
hi, I had tried typing: "path-to-binary -m pip Terry Reedy hat am 26. Oktober 2017 um 21:35 geschrieben: > > > On 10/26/2017 12:37 AM, Daniel Tangemann wrote: > > ok, I did that. I noticed that this path: > > 'C:\\Users\\Daniel86\\AppData\\Local\\Programs\

Re: IDLE doesn't recognise installed packages

2017-10-25 Thread Daniel Tangemann
08:36 geschrieben: > > > On 10/23/2017 10:23 AM, Daniel Tangemann wrote: > > I've recently downloaded and installed python 3.6. (I had already also 2.7 > > and 3.2 on my computer) Initially pip was looking in the wrong directory to > > install to, so I changed that. th

IDLE doesn't recognise installed packages

2017-10-23 Thread Daniel Tangemann
hi, I've recently downloaded and installed python 3.6. (I had already also 2.7 and 3.2 on my computer) Initially pip was looking in the wrong directory to install to, so I changed that. then it had trouble installing matplotlib, so I decided to get rid of the older versions of python, which srew

Re: Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25

2017-10-19 Thread Daniel Flick
The problem was with the validation code. Within the python section of the template, the class IPv4Interface will throw an exception due to the invalid value during the validation process. Therefore, the server rejects the form data and the template is not created. Solution: It would work if y

Re: Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25

2017-10-17 Thread Daniel Flick
On Tuesday, October 17, 2017 at 8:24:52 PM UTC-5, Daniel Flick wrote: > On Tuesday, October 17, 2017 at 5:01:13 PM UTC-5, Peter Otten wrote: > > Daniel Flick wrote: > > > > > On Tuesday, October 17, 2017 at 4:25:02 PM UTC-5, Daniel Flick wrote: > > >> > &

Re: Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25

2017-10-17 Thread Daniel Flick
On Tuesday, October 17, 2017 at 8:27:03 PM UTC-5, Daniel Flick wrote: > On Tuesday, October 17, 2017 at 8:24:52 PM UTC-5, Daniel Flick wrote: > > On Tuesday, October 17, 2017 at 5:01:13 PM UTC-5, Peter Otten wrote: > > > Daniel Flick wrote: > > > > > > > On

Re: Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25

2017-10-17 Thread Daniel Flick
On Tuesday, October 17, 2017 at 5:01:13 PM UTC-5, Peter Otten wrote: > Daniel Flick wrote: > > > On Tuesday, October 17, 2017 at 4:25:02 PM UTC-5, Daniel Flick wrote: > >> > >> Peter, I am not following. Are you saying that there is a function that

Re: Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25

2017-10-17 Thread Daniel Flick
On Tuesday, October 17, 2017 at 4:25:02 PM UTC-5, Daniel Flick wrote: > > Peter, I am not following. Are you saying that there is a function that > returns the network only? network_address was giving me the mask attached to > the end but maybe I was doing something wrong. >

Re: Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25

2017-10-17 Thread Daniel Flick
Peter, I am not following. Are you saying that there is a function that returns the network only? network_address was giving me the mask attached to the end but maybe I was doing something wrong. For an input of LAN_IP=192.168.99.1/24 ipaddress.IPv4Interface(LAN_IP).ip returns 192.168.99.0/

Re: Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25

2017-10-17 Thread Daniel Flick
I was hoping for something more like netaddr.network. Trying to save lots of code as this will be inside a Mako template and I don't want it to get messy. Sounds like the split function will allow me to chop off the /xx from the end of the string which gives me what I need. Off to read docu

Re: Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25

2017-10-17 Thread Daniel Flick
On Tuesday, October 17, 2017 at 12:37:03 PM UTC-5, Rob Gaddi wrote: > On 10/17/2017 09:59 AM, Daniel Flick wrote: > > I am very new to Python and have been struggling to find some info on > > processing IP addresses. > > > > get_network returns 192.168.1.128/25 but I

Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25

2017-10-17 Thread Daniel Flick
I am very new to Python and have been struggling to find some info on processing IP addresses. get_network returns 192.168.1.128/25 but I need 192.168.1.128 only. I can do this with netaddr but I am working with Mako templates and ipaddress is a built in module so there are less dependencies.

Re: on a very slow function

2017-10-02 Thread Daniel Bastos
Ben Bacarisse writes: > Daniel Bastos writes: > >> def make_sequence_non_recursive(N, x0 = 2, c = -1): >> "What's wrong with this function? It's very slow." >> last = x0 >> def sequence(): >> nonlocal last >>

Re: on a very slow function

2017-10-02 Thread Daniel Bastos
Chris Angelico writes: [...] > Maybe "linear_congruential" would be a good name for the function? I > don't know. Sounds good to me --- in absence of a smaller name. > Anyhow, the basic memoization technique should help you some. It did! Thanks so much to you and to everyone who contributed

Re: on a very slow function

2017-10-02 Thread Daniel Bastos
r...@zedat.fu-berlin.de (Stefan Ram) writes: > Daniel Bastos writes: >> That function produces a function which yields the values of the >> sequence x^2 - 1 mod N > > Thats a term with two free variables. > I am not sure what the sequence is. > > And if that&

Re: on a very slow function

2017-10-01 Thread Daniel Bastos
Chris Angelico writes: > On Mon, Oct 2, 2017 at 8:27 AM, Daniel Bastos wrote: >> def make_sequence_non_recursive(N, x0 = 2, c = -1): >> "What's wrong with this function? It's very slow." >> last = x0 >> def sequence(): >> nonlo

on a very slow function

2017-10-01 Thread Daniel Bastos
def make_sequence_non_recursive(N, x0 = 2, c = -1): "What's wrong with this function? It's very slow." last = x0 def sequence(): nonlocal last next = last last = last**2 + c return next % N return sequence It crawls pretty soon. Please advise? Thank you. >>> f = make_se

Re: "Best" websocket implementation for Python 2.x?

2017-03-09 Thread Daniel Bastos
Skip Montanaro writes: [...] > These two packages would appear to have stalled. Looking around, I also > found > > ws4py > websockets - Python 3.3 or later > autobahn.websocket > > There are probably others I haven't yet stumbled upon. (I'd continue poking > around PyPI, but it seems the server

How to inherit classmethod constructors?

2017-02-18 Thread Daniel Andersson
I have a class "A" below, that have a very simple __init__ method, which only wants a "needle". class A: def __init__(self, needle): self.needle = needle @classmethod def from_haystack(cls, haystack): # ... # Many lines of code (omitted here) # that p

Re: Python 3 tkinter graphical statistical distributions fitter

2016-08-24 Thread Daniel Riaño
Please accept my apologies for sending the message to the full list 😬 2016-08-24 13:11 GMT+02:00 Daniel Riaño : > Thanks, James! > > 2016-08-13 12:46 GMT+02:00 : > >> I created a Python 3 tkinter graphical statistical distributions fitting >> application that will fit

Re: Python 3 tkinter graphical statistical distributions fitter

2016-08-24 Thread Daniel Riaño
Thanks, James! 2016-08-13 12:46 GMT+02:00 : > I created a Python 3 tkinter graphical statistical distributions fitting > application that will fit a 1D data set to all of the continuous > statistical distributions in scipy.stats, with graphical display of the > distributions plotted against norma

Re: making executables smaller

2016-07-27 Thread Daniel Bradburn
A couple of things you can try: * Generate a directory rather than onefile, on the directory you can apply du -hs * | sort -h -r (or treesize if you are using windows https://www.jam-software.com/treesize_free) to see which folders / files are taking up a lot of space. Then once you see what is ta

Re: gevent

2016-05-16 Thread Daniel Bradburn
#x27;, > 'SERVER_PORT': '8000', > 'SERVER_PROTOCOL': 'HTTP/1.0', > 'SERVER_SOFTWARE': 'gevent/1.0 Python/2.7', > 'wsgi.errors': ', mode 'w' at 0x7f4c299bc1e0>, > 'wsgi.input': , >

Re: crash while using PyCharm / Python3

2016-04-02 Thread Daniel Wilcox
ity > > > > System crashed while using PyCharm / Python3. > > Booting takes forever and stuck at the purple screen with > > the Ubuntu logo and the five dots cycling. > > How to fix? > > > > Searching for this thread in a browser lead to > the code.actives

Issue with opening a python file

2016-03-31 Thread Daniel Ding
Hello, I'm relatively new to python. Recently I have been receiving errors every time I attempt to open python files. When try open them, it sends me directly to the 'Modify Setup' window. Clicking on repair or modify does not fix the problem, it simply goes through the repair or modify process

Re: crash while using PyCharm / Python3

2016-03-22 Thread Daniel Wilcox
Now as for *why* you needed to reinstall your graphics driver... did the graphics driver get updated before the crash? Or do we think something in the java runtime for PyCharm ate libglx or friends? I did find this PyCharm crash in which Java ate itself -- though didn't eat any library files (as

Re: WP-A: A New URL Shortener

2016-03-20 Thread Daniel Wilcox
> > > +list >> >> > You will be far more welcome here if you intersperse your replies or > bottom post. Top posting is very heavily frowned upon. Thanks. noted. lol -- https://mail.python.org/mailman/listinfo/python-list

Re: WP-A: A New URL Shortener

2016-03-19 Thread Daniel Wilcox
tation, involved but might be fun -- and who knows it could spark a land rush to claim useful short URLs like wp-a.co/flask-tips. :) Speak up if you need any pointers! Daniel On Tue, Mar 15, 2016 at 12:56 PM, Vinicius Mesel wrote: > Hey guys, > > I'm a 16 year old Python Prog

Re: WP-A: A New URL Shortener

2016-03-19 Thread Daniel Wilcox
rcise to see what you can escape into a URL that might get unescaped later (with hilarious insecurity for all). Then you'll want to either a) learn SQL escaping for your database of choice *really really well* or b) use an ORM. Be well, -D On Thu, Mar 17, 2016 at 4:46 AM, Vinicius wrote:

Re: Obfuscating Python code

2016-03-19 Thread Daniel Wilcox
If you really want to learn about obfuscating python bytecode so it can't be reverse engineered (easily) -- there are people who are doing it. Search for 'pyasm' on github as a starting point. tldr; yes people are patching .pyc files. yes you can make them a nightmare to disassemble. and yes it sl

About PyPi: ETA from publish to searchable?

2016-03-19 Thread Daniel Wilcox
Hello! I just recently published my first package to PyPi and was wondering -- how long will it take before I actually can see it if I'm searching for it? I imagine the indexes are on some schedule but I'm chomping at the bit -- about how long is that? Thanks, -D https://pypi.python.org/pypi/vc

Re: retrieve key of only element in a dictionary (Python 3)

2016-03-19 Thread Daniel Wilcox
I think you're looking for something like popitem(). >>> d = {'asdf':1} >>> d.popitem()[0] 'asdf' Cheers On Fri, Mar 18, 2016 at 2:33 PM, Fillmore wrote: > > I must be missing something simple, but... > > Python 3.4.0 (default, Apr 11 2014, 13:05:11) > [GCC 4.8.2] on linux > Type "help", "cop

Re: WP-A: A New URL Shortener

2016-03-19 Thread Daniel Wilcox
=D On Wed, Mar 16, 2016 at 11:16 AM, Rick Johnson wrote: > On Wednesday, March 16, 2016 at 7:02:16 AM UTC-5, Daniel Wilcox wrote: > > I dare say I'm with Rick on this point[...] > > Contrary to "pseudo popular belief", it's perfectly okay to > agree with

Re: crash while using PyCharm / Python3

2016-03-18 Thread Daniel Wilcox
> > Host OS:Ubuntu Desktop 14.04 LTS / Unity > > System crashed while using PyCharm / Python3. > Booting takes forever and stuck at the purple screen with > the Ubuntu logo and the five dots cycling. > How to fix? > First off your machine not booting isn't really Python related. Python may ha

Python.Exe Problem

2015-12-29 Thread Daniel Lee
Hello, When I try to run python.exe on my computer with Windows 8, I get the following error: "Python.exe - Entry Point Not Found" "The Procedure entry point ?terminate@@YAXXZ could not be located in the dynamic link library C:\Program Files\Python3.5\python.exe." What does this error mean and

failing to run python on my pc

2015-11-19 Thread Daniel Kasuza
to use it for some practice but i am failing. Please help Daniel -- https://mail.python.org/mailman/listinfo/python-list

Writing SOME class methods in C

2015-11-17 Thread Daniel Haude
Hello, I'm trying to implement some (but not all) methods of a Python class in C. What I've found on the Net is: - how to implement entire modules in C so that I can import that module and use the C functions (successfully done it, too). - how to implement entire classes in C But I can't fin

same problem even after repair

2015-11-02 Thread Daniel Joffe
-- https://mail.python.org/mailman/listinfo/python-list

python doesn't install

2015-11-01 Thread Daniel Joffe
WinXP...32 bits...professional I keep getting message note also that there is no place on the install box to start...you just click somewhere, and the install started. -- https://mail.python.org/mailman/listinfo/python-list

Re: Downloading Python

2015-10-06 Thread Daniel Bradburn
Hi Sharon, Here are the links for the Python 3.4.2 downloads: https://www.python.org/downloads/release/python-342/#download Regards 2015-10-06 6:49 GMT+02:00 Sharon MOrine : > Hello: > Can you please tell me how to download python 3.4.2 (or .3)? I am new to > programming and the website is

Re: 'NoneType' in contextmanager prevent proper RuntimeError to be raised

2015-05-20 Thread Daniel Gonçalves
ibute 'next', instead of the proper RuntimeError, making it harder to debug. Anyways, I know that it's strange to have a contextmanager that didn't yield. I just stumbled upon this, by accident, and I think the way it's implemented looks wrong :) 2015-05-20 20:44 GMT

'NoneType' in contextmanager prevent proper RuntimeError to be raised

2015-05-20 Thread Daniel Gonçalves
When you decorate a function with contextmanager that didn't yield you got an AttributeError instead of a proper RuntimeError "generator didn't yield". For example: >>> @contextlib.contextmanager >>> def foo(): ... pass ... >>> with foo(): ... do_something() ... Traceback (most recent ca

Re: Help with pipes, buffering and pseudoterminals

2015-04-06 Thread Daniel Ellis
nd isn't that big of a deal. Thanks again for the explanation. I think I'm understanding a bit better now, or at least understanding why my current means of tackling the problem won't work. I'd still very much like to figure out the reading/writing to the master & slave stuff th

Help with pipes, buffering and pseudoterminals

2015-04-05 Thread Daniel Ellis
I have a small little tool I'd like to make. It essentially takes piped input, modifies the text in some way, and immediately prints the output. The problem I'm having is that any output I pipe to the program seems to be buffered, removing the desired effect. >From what I understand, I need t

Re: Mock return_value

2015-03-09 Thread Daniel
On Monday, March 9, 2015 at 10:28:20 AM UTC-5, Daniel wrote: > I have a dao.py module with a dao class declared and I want to use mock to > set a return value for a dao function, dao.execute_ldap_search(). > > import mock > import unittest > import model, dao >

Re: Mock return_value

2015-03-09 Thread Daniel
I found that the following change worked: @mock.patch('dao.dao.execute_ldap_search') def test_find_by_last_first_comma(self, mock_dao): # setup the mock mock_dao.return_value = self.ldap_person_response Daniel On Monday, March 9, 2015 at 10:28:20 AM UTC-5, Da

Mock return_value

2015-03-09 Thread Daniel
I have a dao.py module with a dao class declared and I want to use mock to set a return value for a dao function, dao.execute_ldap_search(). import mock import unittest import model, dao class TestPeopleDAO(unittest.TestCase): ldap_person_response = SOME_DICT @mock.patch('dao.dao')

Re: Google Maps and Python: creating a map, embedding it, adding images, videos, markers, using python

2014-12-19 Thread Daniel da Silva
Kevin, that client library looks like it is for accessing Google Maps related services, not modifying maps themselves. On Fri, Dec 19, 2014 at 1:02 AM, Kev Dwyer wrote: > Veek M wrote: > > > I'm messing with Google-Maps. Is there a way I can create a map, embed it > > on a page (CSS/HTML/Javas

Re: comparing alternatives to py2exe

2014-09-06 Thread daniel . e . rossy
I found this: https://pypi.python.org/pypi/py2exe/0.9.2.0 Also, thanks for the spreadsheet, it's very useful. -- https://mail.python.org/mailman/listinfo/python-list

Re: Regular Expression for the special character "|" pipe

2014-05-27 Thread Daniel
What about skipping the re and try this: 'start=|ID=ter54rt543d|SID=ter54rt543d|end=|'.split('|')[1][3:] On 27.05.2014 14:09, Vlastimil Brom wrote: 2014-05-27 12:59 GMT+02:00 Aman Kashyap : I would like to create a regular expression in which i can match the "|" special character too. e.g.

Re: [Python-Dev] [RELEASED] Python 3.4.0

2014-03-26 Thread Daniel Pimentel (d4n1)
dev >>>> Unsubscribe: https://mail.python.org/mailman/options/python-dev/ >>>> rymg19%40gmail.com >>>> >>> >>> >>> >>> -- >>> Ryan >>> If anybody ever asks me why I prefer C++ to C, my answer will be simple: >>> "It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was >>> nul-terminated." >>> >>> >>> -- >>> https://mail.python.org/mailman/listinfo/python-list >>> >>> >> >> >> -- >> Giampaolo - http://grodola.blogspot.com >> >> >> ___ >> Python-Dev mailing list >> python-...@python.org >> https://mail.python.org/mailman/listinfo/python-dev >> Unsubscribe: >> https://mail.python.org/mailman/options/python-dev/dia.aliounes%40gmail.com >> >> > > ___ > Python-Dev mailing list > python-...@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/d4n1h4ck%40gmail.com > > -- Msc. Daniel Pimentel (d4n1 <http://about.me/d4n1>) -- https://mail.python.org/mailman/listinfo/python-list

Re: piping with subprocess

2014-02-01 Thread Daniel da Silva
Try this: from subprocess import check_output import sys check_output("textutil -convert html %s -stdout | pandoc -f html -t markdown -o %s" % sys.argv[1:3], shell=True) On Sat, Feb 1, 2014 at 7:19 AM, Rick Dooling wrote: > I spent half a day trying to convert this bash script (on Mac) > > t

Re: Chanelling Guido - dict subclasses

2014-01-15 Thread Daniel da Silva
wiki/Liskov_substitution_principle> Since S (TextOnlyDict) is more restrictive, it cannot be replaced for T (dict) because the program may be using non-string keys. Daniel -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 __bytes__ method

2014-01-11 Thread Daniel da Silva
On Sat, Jan 11, 2014 at 9:44 PM, Ethan Furman wrote: > On 01/11/2014 06:19 PM, Daniel da Silva wrote: > >> >> One use case is: >> Suppose you have existing function that accepts a /bytes/ object. If you >> subclass /bytes/ and want it to be guaranteed >>

Re: Python 3 __bytes__ method

2014-01-11 Thread Daniel da Silva
wrote: > On 01/11/2014 04:53 PM, Daniel da Silva wrote: > >> >> Where did you read this? I can't find any documentation about __bytes__ >> on google. >> > > http://docs.python.org/3.3/reference/datamodel.html? > highlight=__bytes__#object.__bytes__ >

Re: Python 3 __bytes__ method

2014-01-11 Thread Daniel da Silva
Where did you read this? I can't find any documentation about __bytes__ on google. Regards, Daniel On Sat, Jan 11, 2014 at 7:24 PM, Ethan Furman wrote: > Python 3 has a new method, __bytes__. The docs say: Called by bytes() to > compute a byte-string representation of an object.

Trouble writing lines into file with line feeds- Python Newb

2013-12-23 Thread daniel . t . healy
Overview: I'm attempting to read strings from a serial port. Each string ends with a carriage return and line feed. I want to write those strings to a file, like a log file. So, if I send P1 and the P2 on a new line, I would expect to open this file and find (line 1) P1 (line 2) P2. Problem: T

Re: ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'S SIZE 11.5 NEW IN BOX', '$49.99')'

2013-12-09 Thread Daniel Watkins
On Mon, Dec 09, 2013 at 12:41:57AM -0800, Jai wrote: > sql = """insert into `category` (url, catagory,price) VAlUES ('%s', > '%s', '%s')"""%(link1,x,y) > sql = unicodedata.normalize('NFKD', sql).encode('ascii','ignore') > cursor.execute(sql) > > ProgrammingError: (1064, "Y

Re: [newbie] problem trying out simple non object oriented use of Tkinter

2013-12-06 Thread Daniel Watkins
Hi Jean, On Fri, Dec 06, 2013 at 04:24:59AM -0800, Jean Dubois wrote: > I'm trying out Tkinter with the (non object oriented) code fragment below: > It works partially as I expected, but I thought that pressing "1" would > cause the program to quit, however I get this message: > TypeError: quit()

Re: Stop posting HTML [was Re: I haev fixed it]

2013-10-01 Thread Daniel Stojanov
On 2 October 2013 12:40, Steven D'Aprano wrote: >>> Joel, you've been asked repeatedly to please stop posting HTML. > [...] > >> > class="gmail_extra">I'm very sorry. I didn't realize I was. I >> use gmail for this list, and I believe it replies with html if the >> previous message was written w

Re: JUST GOT HACKED

2013-10-01 Thread Daniel Stojanov
On 02/10/2013 12:05 AM, "Νίκος" wrote: > Thanks for visting my website: you help me increase my google page rank without actually utilizing SEO. > > -- > https://mail.python.org/mailman/listinfo/python-list 1) You need links, not page views to improve your Google rank. 2) I just signed up the t

Weird bahaviour from shlex - line no

2013-09-27 Thread Daniel Stojanov
Can somebody explain this. The line number reported by shlex depends on the previous token. I want to be able to tell if I have just popped the last token on a line. import shlex first = shlex.shlex("word1 word2\nword3") print first.get_token() print first.get_token() print "line no", first.li

Re: Help with pygame

2013-07-16 Thread Daniel Kersgaard
I didn't even think about that! I added one more draw and it worked like a charm, thanks so much! I'm not sure why I couldn't think of that! -- http://mail.python.org/mailman/listinfo/python-list

Help with pygame

2013-07-16 Thread Daniel Kersgaard
I'm having a little trouble, tried Googling it, but to no avail. Currently, I'm working on making a snake game, however I'm stuck on a simple border. The only thing I need help with is when you run the program, the bottom right corner of the border is missing. I'm not sure why. And I know I'm no

Re: Encodign issue in Python 3.3.1 (once again)

2013-06-12 Thread Daniel Gagliardi Ramos
don't ya have something intelligent to say motherfucker? 2013/5/28 rusi > On May 28, 10:55 am, Νίκος Γκρ33κ wrote: > > Ôç Ôñßôç, 28 ÌáÀïõ 2013 1:18:06 ð.ì. UTC+3, ï ÷ñÞóôçò Chris Angelico > Ýãñáøå: > > > > > You're effectively asking people to put in a few minutes' work, > > > sometimes quite

  1   2   3   4   5   6   7   8   9   10   >